@goliapkg/gds 1.0.10 → 1.4.2

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.
Files changed (108) hide show
  1. package/README.md +10 -6
  2. package/dist/{avatar-By0U5Vts.js → avatar-l3SaMCmU.js} +10 -10
  3. package/dist/avatar-l3SaMCmU.js.map +1 -0
  4. package/dist/index.js +25 -25
  5. package/dist/l2-primitives/divider.d.ts +11 -2
  6. package/dist/l2-primitives/divider.d.ts.map +1 -1
  7. package/dist/l2-primitives/index.d.ts +1 -1
  8. package/dist/l2-primitives/index.d.ts.map +1 -1
  9. package/dist/l2-primitives/index.js +10 -10
  10. package/dist/l2-primitives/input.d.ts +6 -0
  11. package/dist/l2-primitives/input.d.ts.map +1 -1
  12. package/dist/l2-primitives/number-input.d.ts +4 -0
  13. package/dist/l2-primitives/number-input.d.ts.map +1 -1
  14. package/dist/{l2-primitives-BIiL8hFH.js → l2-primitives-Le0006ck.js} +105 -81
  15. package/dist/l2-primitives-Le0006ck.js.map +1 -0
  16. package/dist/l3-atoms/avatar-badge.d.ts +1 -0
  17. package/dist/l3-atoms/avatar-badge.d.ts.map +1 -1
  18. package/dist/l3-atoms/avatar.d.ts +2 -0
  19. package/dist/l3-atoms/avatar.d.ts.map +1 -1
  20. package/dist/l3-atoms/checkbox.d.ts +7 -0
  21. package/dist/l3-atoms/checkbox.d.ts.map +1 -1
  22. package/dist/l3-atoms/index.d.ts +4 -4
  23. package/dist/l3-atoms/index.d.ts.map +1 -1
  24. package/dist/l3-atoms/index.js +6 -6
  25. package/dist/l3-atoms/status-badge.d.ts +8 -0
  26. package/dist/l3-atoms/status-badge.d.ts.map +1 -1
  27. package/dist/l3-atoms/status-dot.d.ts +4 -0
  28. package/dist/l3-atoms/status-dot.d.ts.map +1 -1
  29. package/dist/l3-atoms/toggle-group.d.ts +16 -2
  30. package/dist/l3-atoms/toggle-group.d.ts.map +1 -1
  31. package/dist/{l3-atoms-CsN9IA9J.js → l3-atoms-BxDg3rXt.js} +196 -189
  32. package/dist/{l3-atoms-CsN9IA9J.js.map → l3-atoms-BxDg3rXt.js.map} +1 -1
  33. package/dist/l4-molecules/alert.d.ts +7 -1
  34. package/dist/l4-molecules/alert.d.ts.map +1 -1
  35. package/dist/l4-molecules/dialog.d.ts +8 -2
  36. package/dist/l4-molecules/dialog.d.ts.map +1 -1
  37. package/dist/l4-molecules/index.d.ts +3 -3
  38. package/dist/l4-molecules/index.d.ts.map +1 -1
  39. package/dist/l4-molecules/index.js +3 -3
  40. package/dist/l4-molecules/tabs.d.ts +1 -2
  41. package/dist/l4-molecules/tabs.d.ts.map +1 -1
  42. package/dist/{l4-molecules-DHsPjYhl.js → l4-molecules-DftsX-gO.js} +212 -205
  43. package/dist/l4-molecules-DftsX-gO.js.map +1 -0
  44. package/dist/l5-organisms/data-table/data-table-body.d.ts +31 -0
  45. package/dist/l5-organisms/data-table/data-table-body.d.ts.map +1 -0
  46. package/dist/l5-organisms/data-table/data-table-head.d.ts +22 -0
  47. package/dist/l5-organisms/data-table/data-table-head.d.ts.map +1 -0
  48. package/dist/l5-organisms/data-table/data-table-pagination.d.ts +13 -0
  49. package/dist/l5-organisms/data-table/data-table-pagination.d.ts.map +1 -0
  50. package/dist/l5-organisms/data-table/data-table-toolbar.d.ts +19 -0
  51. package/dist/l5-organisms/data-table/data-table-toolbar.d.ts.map +1 -0
  52. package/dist/l5-organisms/data-table/data-table-types.d.ts +88 -0
  53. package/dist/l5-organisms/data-table/data-table-types.d.ts.map +1 -0
  54. package/dist/l5-organisms/data-table/data-table-utils.d.ts +13 -0
  55. package/dist/l5-organisms/data-table/data-table-utils.d.ts.map +1 -0
  56. package/dist/l5-organisms/data-table/data-table.d.ts +6 -0
  57. package/dist/l5-organisms/data-table/data-table.d.ts.map +1 -0
  58. package/dist/l5-organisms/data-table/index.d.ts +4 -0
  59. package/dist/l5-organisms/data-table/index.d.ts.map +1 -0
  60. package/dist/l5-organisms/gantt-chart/gantt-chart-types.d.ts +52 -0
  61. package/dist/l5-organisms/gantt-chart/gantt-chart-types.d.ts.map +1 -0
  62. package/dist/l5-organisms/gantt-chart/gantt-chart-utils.d.ts +11 -0
  63. package/dist/l5-organisms/gantt-chart/gantt-chart-utils.d.ts.map +1 -0
  64. package/dist/l5-organisms/gantt-chart/gantt-chart.d.ts +3 -0
  65. package/dist/l5-organisms/gantt-chart/gantt-chart.d.ts.map +1 -0
  66. package/dist/l5-organisms/gantt-chart/index.d.ts +3 -0
  67. package/dist/l5-organisms/gantt-chart/index.d.ts.map +1 -0
  68. package/dist/l5-organisms/index.d.ts +4 -2
  69. package/dist/l5-organisms/index.d.ts.map +1 -1
  70. package/dist/l5-organisms/index.js +2 -2
  71. package/dist/l5-organisms/table.d.ts +12 -0
  72. package/dist/l5-organisms/table.d.ts.map +1 -1
  73. package/dist/{l5-organisms-z8mU4eoy.js → l5-organisms-Di1Bm_R6.js} +1352 -292
  74. package/dist/l5-organisms-Di1Bm_R6.js.map +1 -0
  75. package/dist/l6-charts/annotated-chart.d.ts +18 -0
  76. package/dist/l6-charts/annotated-chart.d.ts.map +1 -0
  77. package/dist/l6-charts/bullet-chart.d.ts +11 -0
  78. package/dist/l6-charts/bullet-chart.d.ts.map +1 -0
  79. package/dist/l6-charts/donut-gauge.d.ts +14 -0
  80. package/dist/l6-charts/donut-gauge.d.ts.map +1 -0
  81. package/dist/l6-charts/flame-chart.d.ts +13 -0
  82. package/dist/l6-charts/flame-chart.d.ts.map +1 -0
  83. package/dist/l6-charts/index.d.ts +12 -0
  84. package/dist/l6-charts/index.d.ts.map +1 -1
  85. package/dist/l6-charts/index.js +2 -2
  86. package/dist/l6-charts/realtime-chart.d.ts +13 -0
  87. package/dist/l6-charts/realtime-chart.d.ts.map +1 -0
  88. package/dist/l6-charts/waterfall-chart.d.ts +12 -0
  89. package/dist/l6-charts/waterfall-chart.d.ts.map +1 -0
  90. package/dist/l6-charts-Bn9RQLbe.js +2145 -0
  91. package/dist/l6-charts-Bn9RQLbe.js.map +1 -0
  92. package/dist/l7-patterns/index.js +1 -1
  93. package/dist/{l7-patterns-E9ls7Nw6.js → l7-patterns-BCpw0-CS.js} +4 -4
  94. package/dist/{l7-patterns-E9ls7Nw6.js.map → l7-patterns-BCpw0-CS.js.map} +1 -1
  95. package/dist/{resize-handle-CktEYqwi.js → resize-handle-ilSc7QRM.js} +6 -3
  96. package/dist/{resize-handle-CktEYqwi.js.map → resize-handle-ilSc7QRM.js.map} +1 -1
  97. package/dist/{spinner-D8Ti-TFe.js → spinner-N7UNjdsQ.js} +66 -23
  98. package/dist/spinner-N7UNjdsQ.js.map +1 -0
  99. package/package.json +1 -1
  100. package/dist/avatar-By0U5Vts.js.map +0 -1
  101. package/dist/l2-primitives-BIiL8hFH.js.map +0 -1
  102. package/dist/l4-molecules-DHsPjYhl.js.map +0 -1
  103. package/dist/l5-organisms/data-table.d.ts +0 -24
  104. package/dist/l5-organisms/data-table.d.ts.map +0 -1
  105. package/dist/l5-organisms-z8mU4eoy.js.map +0 -1
  106. package/dist/l6-charts-DYnr5B9X.js +0 -1743
  107. package/dist/l6-charts-DYnr5B9X.js.map +0 -1
  108. package/dist/spinner-D8Ti-TFe.js.map +0 -1
@@ -5,7 +5,7 @@ import { t as a } from "./badge-DTJq6AXr.js";
5
5
  import { t as o } from "./highlight-BAGZc-4h.js";
6
6
  import { t as s } from "./progress-wAKN3Czz.js";
7
7
  import { t as c } from "./portal-Bbl6F_Wj.js";
8
- import { t as l } from "./avatar-By0U5Vts.js";
8
+ import { t as l } from "./avatar-l3SaMCmU.js";
9
9
  import { r as u } from "./dom-17XgfxMq.js";
10
10
  import { t as d } from "./loading-dots-fB4X_Zh0.js";
11
11
  import { n as f, s as p, t as m } from "./hooks-BE-_EmDI.js";
@@ -61,7 +61,7 @@ var N = C(function({ className: e, items: n }, r) {
61
61
  scale: "animate-scale-out",
62
62
  "slide-up": "animate-slide-down",
63
63
  "slide-down": "animate-slide-up"
64
- }, ee = C(function({ children: e, animation: n = "fade", duration: r = 200, className: i }, a) {
64
+ }, I = C(function({ children: e, animation: n = "fade", duration: r = 200, className: i }, a) {
65
65
  let [o, s] = O(e != null && e !== !1), [c, l] = O(!1), u = D(e), d = D(null), f = e != null && e !== !1;
66
66
  if (T(() => {
67
67
  f ? (d.current !== null && (clearTimeout(d.current), d.current = null), l(!1), s(!0), u.current = e) : o && !c && (l(!0), d.current = setTimeout(() => {
@@ -85,12 +85,12 @@ var N = C(function({ className: e, items: n }, r) {
85
85
  "data-state": c ? "exiting" : "entering",
86
86
  children: m
87
87
  });
88
- }), te = {
88
+ }), ee = {
89
89
  fade: "animate-fade-in",
90
90
  scale: "animate-scale-in",
91
91
  "slide-left": "animate-slide-left",
92
92
  "slide-up": "animate-slide-up"
93
- }, ne = C(function({ animation: e = "slide-up", children: n, className: r, stagger: i = 50, ...a }, o) {
93
+ }, te = C(function({ animation: e = "slide-up", children: n, className: r, stagger: i = 50, ...a }, o) {
94
94
  let s = x.toArray(n);
95
95
  return /* @__PURE__ */ j("div", {
96
96
  className: t("flex flex-col", r),
@@ -98,7 +98,7 @@ var N = C(function({ className: e, items: n }, r) {
98
98
  ref: o,
99
99
  ...a,
100
100
  children: s.map((t, n) => /* @__PURE__ */ j("div", {
101
- className: te[e],
101
+ className: ee[e],
102
102
  style: { animationDelay: `${n * i}ms` },
103
103
  children: t
104
104
  }, n))
@@ -106,10 +106,10 @@ var N = C(function({ className: e, items: n }, r) {
106
106
  });
107
107
  //#endregion
108
108
  //#region src/l5-organisms/audio-player.tsx
109
- function I(e) {
109
+ function L(e) {
110
110
  return `${Math.floor(e / 60)}:${Math.floor(e % 60).toString().padStart(2, "0")}`;
111
111
  }
112
- var re = C(function({ src: e, title: r, glass: a, className: o }, s) {
112
+ var R = C(function({ src: e, title: r, glass: a, className: o }, s) {
113
113
  let c = D(null), [l, u] = O(!1), [d, f] = O(0), [p, m] = O(0), h = w(() => {
114
114
  let e = c.current;
115
115
  e !== null && (e.paused ? (e.play().catch(() => {}), u(!0)) : (e.pause(), u(!1)));
@@ -196,14 +196,14 @@ var re = C(function({ src: e, title: r, glass: a, className: o }, s) {
196
196
  className: "shrink-0 select-none text-xs tabular-nums text-fg-muted",
197
197
  "data-testid": "time-display",
198
198
  children: [
199
- I(d),
199
+ L(d),
200
200
  " / ",
201
- I(p)
201
+ L(p)
202
202
  ]
203
203
  })
204
204
  ]
205
205
  });
206
- }), ie = C(function({ className: e, entries: n, ...r }, i) {
206
+ }), z = C(function({ className: e, entries: n, ...r }, i) {
207
207
  return /* @__PURE__ */ j("div", {
208
208
  className: t("flex flex-col", e),
209
209
  "data-component": "audit-log",
@@ -220,7 +220,7 @@ var re = C(function({ src: e, title: r, glass: a, className: o }, s) {
220
220
  })
221
221
  }, e.id))
222
222
  });
223
- }), ae = C(function({ users: e, onSelect: r, compact: i = !1, glass: a, className: o, ...s }, c) {
223
+ }), ne = C(function({ users: e, onSelect: r, compact: i = !1, glass: a, className: o, ...s }, c) {
224
224
  return /* @__PURE__ */ j("div", {
225
225
  className: t("gds-radius-popover overflow-hidden border border-border", n(a), o),
226
226
  "data-component": "avatar-list",
@@ -253,7 +253,7 @@ var re = C(function({ src: e, title: r, glass: a, className: o }, s) {
253
253
  }, e.name);
254
254
  })
255
255
  });
256
- }), oe = [
256
+ }), B = [
257
257
  "Su",
258
258
  "Mo",
259
259
  "Tu",
@@ -261,7 +261,7 @@ var re = C(function({ src: e, title: r, glass: a, className: o }, s) {
261
261
  "Th",
262
262
  "Fr",
263
263
  "Sa"
264
- ], se = [
264
+ ], V = [
265
265
  "January",
266
266
  "February",
267
267
  "March",
@@ -275,26 +275,26 @@ var re = C(function({ src: e, title: r, glass: a, className: o }, s) {
275
275
  "November",
276
276
  "December"
277
277
  ];
278
- function L(e, t) {
278
+ function H(e, t) {
279
279
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
280
280
  }
281
- function ce(e, t, n) {
281
+ function re(e, t, n) {
282
282
  return t !== void 0 && e < new Date(t.getFullYear(), t.getMonth(), t.getDate()) || n !== void 0 && e > new Date(n.getFullYear(), n.getMonth(), n.getDate());
283
283
  }
284
- function le(e, t) {
284
+ function ie(e, t) {
285
285
  let n = [], r = new Date(e, t, 1);
286
286
  for (; r.getMonth() === t;) n.push(new Date(r)), r.setDate(r.getDate() + 1);
287
287
  return n;
288
288
  }
289
- function ue(e, t) {
290
- let n = le(e, t), r = n[0].getDay(), i = Array.from({ length: r }, () => null);
289
+ function U(e, t) {
290
+ let n = ie(e, t), r = n[0].getDay(), i = Array.from({ length: r }, () => null);
291
291
  for (i.push(...n); i.length < 42;) i.push(null);
292
292
  return i;
293
293
  }
294
294
  //#endregion
295
295
  //#region src/l5-organisms/calendar.tsx
296
- var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
297
- let c = /* @__PURE__ */ new Date(), l = e ?? c, [u, d] = O(l.getFullYear()), [f, p] = O(l.getMonth()), m = ue(u, f), h = () => {
296
+ var W = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
297
+ let c = /* @__PURE__ */ new Date(), l = e ?? c, [u, d] = O(l.getFullYear()), [f, p] = O(l.getMonth()), m = U(u, f), h = () => {
298
298
  f === 0 ? (d((e) => e - 1), p(11)) : p((e) => e - 1);
299
299
  }, g = () => {
300
300
  f === 11 ? (d((e) => e + 1), p(0)) : p((e) => e + 1);
@@ -324,7 +324,7 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
324
324
  /* @__PURE__ */ M("span", {
325
325
  className: "text-sm font-medium text-fg",
326
326
  children: [
327
- se[f],
327
+ V[f],
328
328
  " ",
329
329
  u
330
330
  ]
@@ -347,7 +347,7 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
347
347
  }),
348
348
  /* @__PURE__ */ j("div", {
349
349
  className: "grid grid-cols-7 gds-gap-xs text-center gds-text-body text-fg-muted",
350
- children: oe.map((e) => /* @__PURE__ */ j("div", {
350
+ children: B.map((e) => /* @__PURE__ */ j("div", {
351
351
  className: "gds-pad-y-sm font-medium",
352
352
  children: e
353
353
  }, e))
@@ -356,7 +356,7 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
356
356
  className: "grid grid-cols-7 gds-gap-xs text-center gds-text-body",
357
357
  children: m.map((o, s) => {
358
358
  if (o === null) return /* @__PURE__ */ j("div", { className: "gds-pad-y-sm" }, `e-${s}`);
359
- let l = ce(o, r, a), u = e !== void 0 && L(o, e), d = L(o, c);
359
+ let l = re(o, r, a), u = e !== void 0 && H(o, e), d = H(o, c);
360
360
  return /* @__PURE__ */ j("button", {
361
361
  type: "button",
362
362
  disabled: l,
@@ -370,7 +370,7 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
370
370
  })
371
371
  ]
372
372
  });
373
- }), de = () => /* @__PURE__ */ j("svg", {
373
+ }), G = () => /* @__PURE__ */ j("svg", {
374
374
  width: "16",
375
375
  height: "16",
376
376
  viewBox: "0 0 16 16",
@@ -380,7 +380,7 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
380
380
  strokeLinecap: "round",
381
381
  strokeLinejoin: "round",
382
382
  children: /* @__PURE__ */ j("path", { d: "M10 3L5 8l5 5" })
383
- }), fe = () => /* @__PURE__ */ j("svg", {
383
+ }), ae = () => /* @__PURE__ */ j("svg", {
384
384
  width: "16",
385
385
  height: "16",
386
386
  viewBox: "0 0 16 16",
@@ -390,7 +390,7 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
390
390
  strokeLinecap: "round",
391
391
  strokeLinejoin: "round",
392
392
  children: /* @__PURE__ */ j("path", { d: "M6 3l5 5-5 5" })
393
- }), pe = C(function({ children: e, autoPlay: r = !1, interval: i = 5e3, showDots: a = !0, showArrows: o = !0, glass: s = !1, className: c }, l) {
393
+ }), K = C(function({ children: e, autoPlay: r = !1, interval: i = 5e3, showDots: a = !0, showArrows: o = !0, glass: s = !1, className: c }, l) {
394
394
  let u = x.toArray(e), d = u.length, [f, p] = O(0), m = D(!1), h = D(null), g = w((e) => {
395
395
  p((e % d + d) % d);
396
396
  }, [d]), _ = w(() => g(f - 1), [f, g]), v = w(() => g(f + 1), [f, g]);
@@ -439,13 +439,13 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
439
439
  onClick: _,
440
440
  className: t("absolute left-2 top-1/2 -translate-y-1/2 rounded-full border border-border bg-bg/80 p-1.5 text-fg transition-colors hover:bg-bg", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
441
441
  "aria-label": "Previous slide",
442
- children: /* @__PURE__ */ j(de, {})
442
+ children: /* @__PURE__ */ j(G, {})
443
443
  }), /* @__PURE__ */ j("button", {
444
444
  type: "button",
445
445
  onClick: v,
446
446
  className: t("absolute right-2 top-1/2 -translate-y-1/2 rounded-full border border-border bg-bg/80 p-1.5 text-fg transition-colors hover:bg-bg", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
447
447
  "aria-label": "Next slide",
448
- children: /* @__PURE__ */ j(fe, {})
448
+ children: /* @__PURE__ */ j(ae, {})
449
449
  })] }),
450
450
  a && d > 1 && /* @__PURE__ */ j("div", {
451
451
  className: "absolute bottom-2 left-1/2 flex -translate-x-1/2 gap-1.5",
@@ -461,12 +461,12 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
461
461
  })
462
462
  ]
463
463
  });
464
- }), me = {
464
+ }), oe = {
465
465
  added: "bg-success/15 text-success",
466
466
  changed: "bg-accent/15 text-accent",
467
467
  fixed: "bg-warning/15 text-warning",
468
468
  removed: "bg-danger/15 text-danger"
469
- }, z = C(function({ entries: e, className: n, ...r }, i) {
469
+ }, se = C(function({ entries: e, className: n, ...r }, i) {
470
470
  return /* @__PURE__ */ j("div", {
471
471
  ref: i,
472
472
  className: t("flex flex-col gap-6", n),
@@ -488,7 +488,7 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
488
488
  children: e.changes.map((e, n) => /* @__PURE__ */ M("li", {
489
489
  className: "flex items-start gap-2 gds-text text-fg",
490
490
  children: [/* @__PURE__ */ j("span", {
491
- className: t("mt-0.5 shrink-0 rounded-full px-1.5 py-px text-[9px] font-bold uppercase leading-tight", me[e.type]),
491
+ className: t("mt-0.5 shrink-0 rounded-full px-1.5 py-px text-[9px] font-bold uppercase leading-tight", oe[e.type]),
492
492
  children: e.type
493
493
  }), /* @__PURE__ */ j("span", { children: e.text })]
494
494
  }, `${e.type}-${n}`))
@@ -498,7 +498,7 @@ var R = C(function({ value: e, onChange: n, min: r, max: a, className: o }, s) {
498
498
  });
499
499
  //#endregion
500
500
  //#region src/l5-organisms/command-palette-list.tsx
501
- function he({ groups: e, activeIndex: n, filteredCount: r, onSelect: i }) {
501
+ function ce({ groups: e, activeIndex: n, filteredCount: r, onSelect: i }) {
502
502
  let a = -1;
503
503
  return r === 0 ? /* @__PURE__ */ j("div", {
504
504
  className: "py-8 text-center text-sm text-fg-muted/40",
@@ -536,7 +536,7 @@ function he({ groups: e, activeIndex: n, filteredCount: r, onSelect: i }) {
536
536
  }
537
537
  //#endregion
538
538
  //#region src/l5-organisms/command-palette.tsx
539
- function ge({ open: e, onClose: n, items: r, onSelect: i, placeholder: a = "Search components, patterns, tokens...", className: o }) {
539
+ function le({ open: e, onClose: n, items: r, onSelect: i, placeholder: a = "Search components, patterns, tokens...", className: o }) {
540
540
  let [s, l] = O(""), [u, d] = O(0), m = D(null), h = D(null);
541
541
  p(e), f(e, n), T(() => {
542
542
  e && (l(""), d(0), requestAnimationFrame(() => m.current?.focus()));
@@ -613,7 +613,7 @@ function ge({ open: e, onClose: n, items: r, onSelect: i, placeholder: a = "Sear
613
613
  /* @__PURE__ */ j("div", {
614
614
  ref: h,
615
615
  className: "max-h-80 overflow-y-auto p-1.5",
616
- children: /* @__PURE__ */ j(he, {
616
+ children: /* @__PURE__ */ j(ce, {
617
617
  groups: _,
618
618
  activeIndex: u,
619
619
  filteredCount: g.length,
@@ -637,7 +637,7 @@ function ge({ open: e, onClose: n, items: r, onSelect: i, placeholder: a = "Sear
637
637
  }
638
638
  //#endregion
639
639
  //#region src/l5-organisms/comment-thread.tsx
640
- function B({ comment: e, depth: n = 0 }) {
640
+ function ue({ comment: e, depth: n = 0 }) {
641
641
  return /* @__PURE__ */ M("div", {
642
642
  className: t(n > 0 && "ml-8 border-l border-border pl-4"),
643
643
  children: [/* @__PURE__ */ M("div", {
@@ -663,14 +663,14 @@ function B({ comment: e, depth: n = 0 }) {
663
663
  })]
664
664
  }), e.replies !== void 0 && e.replies.length > 0 && /* @__PURE__ */ j("div", {
665
665
  className: "mt-3 flex flex-col gds-gap",
666
- children: e.replies.map((e) => /* @__PURE__ */ j(B, {
666
+ children: e.replies.map((e) => /* @__PURE__ */ j(ue, {
667
667
  comment: e,
668
668
  depth: n + 1
669
669
  }, e.id))
670
670
  })]
671
671
  });
672
672
  }
673
- var _e = C(function({ className: e, comments: n, ...r }, i) {
673
+ var de = C(function({ className: e, comments: n, ...r }, i) {
674
674
  return /* @__PURE__ */ j("div", {
675
675
  className: t("flex flex-col gds-gap", e),
676
676
  "data-component": "comment-thread",
@@ -679,13 +679,13 @@ var _e = C(function({ className: e, comments: n, ...r }, i) {
679
679
  ...r,
680
680
  children: n.map((e) => /* @__PURE__ */ j("div", {
681
681
  role: "listitem",
682
- children: /* @__PURE__ */ j(B, { comment: e })
682
+ children: /* @__PURE__ */ j(ue, { comment: e })
683
683
  }, e.id))
684
684
  });
685
685
  });
686
686
  //#endregion
687
687
  //#region src/l5-organisms/confetti-physics.ts
688
- function ve(e, t) {
688
+ function fe(e, t) {
689
689
  return {
690
690
  x: Math.random() * e,
691
691
  y: -10,
@@ -699,7 +699,7 @@ function ve(e, t) {
699
699
  drag: .98
700
700
  };
701
701
  }
702
- function ye(e) {
702
+ function pe(e) {
703
703
  return {
704
704
  ...e,
705
705
  x: e.x + e.vx,
@@ -709,12 +709,12 @@ function ye(e) {
709
709
  rotation: e.rotation + e.rotationSpeed
710
710
  };
711
711
  }
712
- function be(e, t) {
712
+ function me(e, t) {
713
713
  e.save(), e.translate(t.x, t.y), e.rotate(t.rotation * Math.PI / 180), e.fillStyle = t.color, e.fillRect(-t.size / 2, -t.size / 2, t.size, t.size * .6), e.restore();
714
714
  }
715
715
  //#endregion
716
716
  //#region src/l5-organisms/confetti.tsx
717
- var xe = [
717
+ var he = [
718
718
  "#6366f1",
719
719
  "#ec4899",
720
720
  "#14b8a6",
@@ -724,7 +724,7 @@ var xe = [
724
724
  "#22c55e",
725
725
  "#3b82f6"
726
726
  ];
727
- function Se({ active: e, className: n, colors: r = xe, duration: i = 3e3, particleCount: a = 100 }) {
727
+ function ge({ active: e, className: n, colors: r = he, duration: i = 3e3, particleCount: a = 100 }) {
728
728
  let o = D(null), s = D([]), l = D(0), u = D(0);
729
729
  return T(() => {
730
730
  if (!e) {
@@ -742,10 +742,10 @@ function Se({ active: e, className: n, colors: r = xe, duration: i = 3e3, partic
742
742
  let o = e - u.current;
743
743
  if (n.clearRect(0, 0, t.width, t.height), o < i) {
744
744
  let e = Math.min(a, Math.floor(o / i * a));
745
- for (; c < e;) s.current = [...s.current, ve(t.width, r)], c += 1;
745
+ for (; c < e;) s.current = [...s.current, fe(t.width, r)], c += 1;
746
746
  }
747
- s.current = s.current.map(ye).filter((e) => e.y < t.height + 20);
748
- for (let e of s.current) be(n, e);
747
+ s.current = s.current.map(pe).filter((e) => e.y < t.height + 20);
748
+ for (let e of s.current) me(n, e);
749
749
  (s.current.length > 0 || o < i) && (l.current = requestAnimationFrame(d));
750
750
  }
751
751
  return l.current = requestAnimationFrame(d), () => {
@@ -764,7 +764,7 @@ function Se({ active: e, className: n, colors: r = xe, duration: i = 3e3, partic
764
764
  }
765
765
  //#endregion
766
766
  //#region src/l5-organisms/contact-card.tsx
767
- var Ce = C(function({ actions: e, avatar: n, className: r, email: i, name: a, phone: o, role: s, ...c }, l) {
767
+ var _e = C(function({ actions: e, avatar: n, className: r, email: i, name: a, phone: o, role: s, ...c }, l) {
768
768
  let u = a.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase();
769
769
  return /* @__PURE__ */ M("div", {
770
770
  className: t("gds-ctx gds-radius-card border border-border bg-surface gds-pad text-center", r),
@@ -802,11 +802,11 @@ var Ce = C(function({ actions: e, avatar: n, className: r, email: i, name: a, ph
802
802
  })
803
803
  ]
804
804
  });
805
- }), we = {
805
+ }), ve = {
806
806
  running: "bg-success",
807
807
  stopped: "bg-danger",
808
808
  paused: "bg-warning"
809
- }, Te = C(function({ className: e, containers: n, ...r }, i) {
809
+ }, q = C(function({ className: e, containers: n, ...r }, i) {
810
810
  return /* @__PURE__ */ j("div", {
811
811
  className: t("gds-radius-popover overflow-hidden border border-border", e),
812
812
  "data-component": "container-list",
@@ -849,7 +849,7 @@ var Ce = C(function({ actions: e, avatar: n, className: r, email: i, name: a, ph
849
849
  className: "px-3 py-1.5",
850
850
  children: /* @__PURE__ */ M("span", {
851
851
  className: "inline-flex items-center gap-1.5",
852
- children: [/* @__PURE__ */ j("span", { className: t("h-2 w-2 rounded-full", we[e.status]) }), /* @__PURE__ */ j("span", {
852
+ children: [/* @__PURE__ */ j("span", { className: t("h-2 w-2 rounded-full", ve[e.status]) }), /* @__PURE__ */ j("span", {
853
853
  className: "text-fg-muted",
854
854
  children: e.status
855
855
  })]
@@ -863,7 +863,7 @@ var Ce = C(function({ actions: e, avatar: n, className: r, email: i, name: a, ph
863
863
  }, e.name)) })]
864
864
  })
865
865
  });
866
- }), Ee = "We use cookies to improve your experience. By continuing to use this site, you agree to our use of cookies.", De = C(function({ onAccept: e, onReject: n, message: i, className: a }, o) {
866
+ }), J = "We use cookies to improve your experience. By continuing to use this site, you agree to our use of cookies.", Y = C(function({ onAccept: e, onReject: n, message: i, className: a }, o) {
867
867
  return /* @__PURE__ */ M("div", {
868
868
  ref: o,
869
869
  className: t("fixed inset-x-0 bottom-0 z-50 flex items-center justify-between gap-4 border-t border-border bg-surface/80 px-6 py-4 backdrop-blur-lg", a),
@@ -871,7 +871,7 @@ var Ce = C(function({ actions: e, avatar: n, className: r, email: i, name: a, ph
871
871
  role: "banner",
872
872
  children: [/* @__PURE__ */ j("p", {
873
873
  className: "text-sm text-fg-muted flex-1",
874
- children: i ?? Ee
874
+ children: i ?? J
875
875
  }), /* @__PURE__ */ M("div", {
876
876
  className: "flex shrink-0 gap-2",
877
877
  children: [n !== void 0 && /* @__PURE__ */ j(r, {
@@ -887,12 +887,12 @@ var Ce = C(function({ actions: e, avatar: n, className: r, email: i, name: a, ph
887
887
  })]
888
888
  })]
889
889
  });
890
- }), Oe = C(function(e, t) {
891
- return c(/* @__PURE__ */ j(De, {
890
+ }), X = C(function(e, t) {
891
+ return c(/* @__PURE__ */ j(Y, {
892
892
  ...e,
893
893
  ref: t
894
894
  }));
895
- }), ke = [
895
+ }), ye = [
896
896
  "Sunday",
897
897
  "Monday",
898
898
  "Tuesday",
@@ -901,18 +901,18 @@ var Ce = C(function({ actions: e, avatar: n, className: r, email: i, name: a, ph
901
901
  "Friday",
902
902
  "Saturday"
903
903
  ];
904
- function Ae(e) {
904
+ function be(e) {
905
905
  let t = e.trim().split(/\s+/);
906
906
  if (t.length !== 5) return `Cron: ${e}`;
907
907
  let [n, r, i, , a] = t, o = r !== "*" && n !== "*" ? `${r.padStart(2, "0")}:${n.padStart(2, "0")}` : null;
908
908
  if (a !== "*" && a !== "?") {
909
- let e = parseInt(a, 10), t = isNaN(e) ? a : ke[e % 7] ?? a;
909
+ let e = parseInt(a, 10), t = isNaN(e) ? a : ye[e % 7] ?? a;
910
910
  return o === null ? `Every ${t}` : `Every ${t} at ${o}`;
911
911
  }
912
912
  return i !== "*" && i !== "?" ? o === null ? `Day ${i} of every month` : `Day ${i} of every month at ${o}` : r === "*" && n === "*" ? "Every minute" : r === "*" ? `Every hour at minute ${n}` : n === "0" && r === "0" ? "Every day at midnight" : o === null ? `Cron: ${e}` : `Every day at ${o}`;
913
913
  }
914
- var je = C(function({ expression: e, className: n, ...r }, i) {
915
- let a = E(() => Ae(e), [e]);
914
+ var Z = C(function({ expression: e, className: n, ...r }, i) {
915
+ let a = E(() => be(e), [e]);
916
916
  return /* @__PURE__ */ M("div", {
917
917
  ref: i,
918
918
  className: t("flex items-center gap-3", n),
@@ -926,11 +926,11 @@ var je = C(function({ expression: e, className: n, ...r }, i) {
926
926
  children: a
927
927
  })]
928
928
  });
929
- }), V = {
929
+ }), Q = {
930
930
  center: "text-center",
931
931
  left: "text-left",
932
932
  right: "text-right"
933
- }, Me = C(function({ columns: e, rows: r, compact: i = !1, striped: a = !1, glass: o, className: s }, c) {
933
+ }, xe = C(function({ columns: e, rows: r, compact: i = !1, striped: a = !1, glass: o, className: s }, c) {
934
934
  let l = i ? "px-3 py-1" : "px-3 py-2";
935
935
  return /* @__PURE__ */ j("div", {
936
936
  className: t("w-full overflow-auto", o === !0 && n(o), s),
@@ -941,7 +941,7 @@ var je = C(function({ expression: e, className: n, ...r }, i) {
941
941
  children: [/* @__PURE__ */ j("thead", { children: /* @__PURE__ */ j("tr", {
942
942
  className: "border-b border-border/40",
943
943
  children: e.map((e) => /* @__PURE__ */ j("th", {
944
- className: t("font-medium text-fg-muted select-none", l, V[e.align ?? "left"]),
944
+ className: t("font-medium text-fg-muted select-none", l, Q[e.align ?? "left"]),
945
945
  style: e.width === void 0 ? void 0 : { width: e.width },
946
946
  children: e.label
947
947
  }, e.key))
@@ -952,7 +952,7 @@ var je = C(function({ expression: e, className: n, ...r }, i) {
952
952
  }) }), r.map((n, r) => /* @__PURE__ */ j("tr", {
953
953
  className: t("border-b border-border/20", a && r % 2 == 1 && "bg-bg-secondary/30"),
954
954
  children: e.map((e) => /* @__PURE__ */ j("td", {
955
- className: t("text-fg", l, V[e.align ?? "left"]),
955
+ className: t("text-fg", l, Q[e.align ?? "left"]),
956
956
  children: n[e.key]
957
957
  }, e.key))
958
958
  }, `${String(n[e[0]?.key ?? ""] ?? "")}-${r}`))] })]
@@ -961,7 +961,7 @@ var je = C(function({ expression: e, className: n, ...r }, i) {
961
961
  });
962
962
  //#endregion
963
963
  //#region src/l5-organisms/data-list.tsx
964
- function Ne({ items: e, layout: r = "vertical", striped: i = !1, glass: a, className: o }) {
964
+ function Se({ items: e, layout: r = "vertical", striped: i = !1, glass: a, className: o }) {
965
965
  let s = r === "horizontal";
966
966
  return /* @__PURE__ */ j("div", {
967
967
  className: t("gds-radius-popover border border-border overflow-hidden", a !== void 0 && a !== !1 ? t("border-white/10 bg-bg/60", n(a)) : "", o),
@@ -980,80 +980,554 @@ function Ne({ items: e, layout: r = "vertical", striped: i = !1, glass: a, class
980
980
  });
981
981
  }
982
982
  //#endregion
983
- //#region src/l5-organisms/data-table.tsx
984
- function Pe({ dir: e }) {
985
- return e === void 0 ? /* @__PURE__ */ M("svg", {
983
+ //#region src/l5-organisms/data-table/data-table-utils.ts
984
+ function Ce(e) {
985
+ return e.label ?? e.header ?? e.key;
986
+ }
987
+ function we(e, t, n) {
988
+ return t === void 0 ? String(e.id ?? n) : typeof t == "function" ? t(e, n) : String(e[t] ?? n);
989
+ }
990
+ var Te = {
991
+ compact: {
992
+ td: "px-1.5 py-0.5 text-[11px]",
993
+ th: "px-1.5 py-1 text-[11px]"
994
+ },
995
+ default: {
996
+ td: "px-2.5 py-1.5 text-xs",
997
+ th: "px-2.5 py-1.5 text-xs"
998
+ },
999
+ comfortable: {
1000
+ td: "px-3 py-2.5 text-sm",
1001
+ th: "px-3 py-2 text-xs"
1002
+ }
1003
+ };
1004
+ function Ee(e = "default") {
1005
+ return Te[e];
1006
+ }
1007
+ function De(e, t, n) {
1008
+ let r = e.map((e) => {
1009
+ let n = e[t];
1010
+ return typeof n == "number" ? n : null;
1011
+ }).filter((e) => e !== null);
1012
+ return r.length === 0 ? null : n === "count" ? r.length : n === "sum" ? r.reduce((e, t) => e + t, 0) : n === "avg" ? r.reduce((e, t) => e + t, 0) / r.length : n === "min" ? Math.min(...r) : n === "max" ? Math.max(...r) : null;
1013
+ }
1014
+ function Oe(e, t, n) {
1015
+ let r = e.filter((e) => e.hidden !== !0), i = r.map((e) => Ce(e)), a = t.map((e) => r.map((t) => {
1016
+ let n = e[t.key], r = String(n ?? "");
1017
+ return r.includes(",") || r.includes("\"") || r.includes("\n") ? `"${r.replace(/"/g, "\"\"")}"` : r;
1018
+ })), o = [i.join(","), ...a.map((e) => e.join(","))].join("\n"), s = new Blob([o], { type: "text/csv;charset=utf-8;" }), c = URL.createObjectURL(s), l = document.createElement("a");
1019
+ l.href = c, l.download = `${n}.csv`, l.click(), URL.revokeObjectURL(c);
1020
+ }
1021
+ function ke(e, t) {
1022
+ return e[t];
1023
+ }
1024
+ //#endregion
1025
+ //#region src/l5-organisms/data-table/data-table-body.tsx
1026
+ function Ae({ columns: e, count: n, density: r, hasSelection: i, rowNumbers: a, hasActions: o, bordered: s }) {
1027
+ let c = Ee(r), l = s === !0 ? "border border-border" : "", u = e.length + (i ? 1 : 0) + (a ? 1 : 0) + (o ? 1 : 0);
1028
+ return /* @__PURE__ */ j(A, { children: Array.from({ length: n }, (e, n) => /* @__PURE__ */ j("tr", {
1029
+ className: "border-b border-border",
1030
+ children: Array.from({ length: u }, (e, n) => /* @__PURE__ */ j("td", {
1031
+ className: t(c.td, l),
1032
+ children: /* @__PURE__ */ j("div", { className: "h-4 animate-pulse rounded bg-bg-tertiary" })
1033
+ }, n))
1034
+ }, n)) });
1035
+ }
1036
+ function je({ colSpan: e, message: t, icon: n }) {
1037
+ return /* @__PURE__ */ j("tr", { children: /* @__PURE__ */ M("td", {
1038
+ colSpan: e,
1039
+ className: "py-12 text-center text-sm text-fg-muted",
1040
+ children: [n !== void 0 && /* @__PURE__ */ j("div", {
1041
+ className: "mb-2 flex justify-center text-fg-muted/30",
1042
+ children: n
1043
+ }), t]
1044
+ }) });
1045
+ }
1046
+ function Me({ colSpan: e, error: t }) {
1047
+ return /* @__PURE__ */ j("tr", { children: /* @__PURE__ */ j("td", {
1048
+ colSpan: e,
1049
+ className: "py-8 text-center text-sm text-danger",
1050
+ children: t
1051
+ }) });
1052
+ }
1053
+ function Ne(e, t, n, r) {
1054
+ let i = ke(t, e.key);
1055
+ if (e.render !== void 0) return e.render.length <= 1 ? e.render(t) : e.render(i, t, n);
1056
+ if (e.format !== void 0) return e.format(i, t);
1057
+ let a = String(i ?? "");
1058
+ if (r !== void 0 && r !== "" && a !== "") {
1059
+ let e = a.toLowerCase(), t = r.toLowerCase(), n = e.indexOf(t);
1060
+ if (n >= 0) return /* @__PURE__ */ M(A, { children: [
1061
+ a.slice(0, n),
1062
+ /* @__PURE__ */ j("mark", {
1063
+ className: "bg-warning/30 text-fg",
1064
+ children: a.slice(n, n + r.length)
1065
+ }),
1066
+ a.slice(n + r.length)
1067
+ ] });
1068
+ }
1069
+ return a;
1070
+ }
1071
+ function Pe({ columns: e, rows: n, density: r, loading: i, loadingRows: a = 5, error: o, emptyMessage: s = "No data", emptyIcon: c, striped: l, bordered: u, highlightOnHover: d = !0, rowNumbers: f, rowKey: p, getRowClassName: m, onRowClick: h, hasSelection: g, selectedKeys: _, onToggleSelect: v, expandedKeys: y, onToggleExpand: b, renderExpanded: x, actions: S, highlightQuery: C, pageOffset: w = 0 }) {
1072
+ let T = Ee(r), E = u === !0 ? "border border-border" : "", D = x !== void 0 && b !== void 0, O = e.length + (D ? 1 : 0) + (g ? 1 : 0) + (f ? 1 : 0) + (S === void 0 ? 0 : 1), k = e.some((e) => e.aggregate !== void 0);
1073
+ return /* @__PURE__ */ M("tbody", { children: [
1074
+ i === !0 && /* @__PURE__ */ j(Ae, {
1075
+ columns: e,
1076
+ count: a,
1077
+ density: r,
1078
+ hasSelection: g,
1079
+ rowNumbers: f,
1080
+ hasActions: S !== void 0,
1081
+ bordered: u
1082
+ }),
1083
+ i !== !0 && o !== void 0 && /* @__PURE__ */ j(Me, {
1084
+ colSpan: O,
1085
+ error: o
1086
+ }),
1087
+ i !== !0 && o === void 0 && n.length === 0 && /* @__PURE__ */ j(je, {
1088
+ colSpan: O,
1089
+ message: s,
1090
+ icon: c
1091
+ }),
1092
+ i !== !0 && o === void 0 && n.map((n, r) => {
1093
+ let i = we(n, p, w + r), a = _ !== void 0 && _.has(i), o = y !== void 0 && y.has(i), s = m === void 0 ? void 0 : m(n, w + r);
1094
+ return /* @__PURE__ */ M(Fe, { children: [/* @__PURE__ */ M("tr", {
1095
+ className: t("border-b border-border transition-colors", l === !0 && r % 2 == 1 && "bg-bg-secondary/30", d && "hover:bg-bg-secondary/60", a && "bg-accent/5", h !== void 0 && "cursor-pointer", s),
1096
+ onClick: h === void 0 ? void 0 : () => h(n),
1097
+ children: [
1098
+ D && /* @__PURE__ */ j("td", {
1099
+ className: t(T.td, E, "w-8 text-center"),
1100
+ children: /* @__PURE__ */ j("button", {
1101
+ className: "text-fg-muted/50 transition-transform hover:text-fg-muted",
1102
+ onClick: (e) => {
1103
+ e.stopPropagation(), b?.(i);
1104
+ },
1105
+ style: { transform: o ? "rotate(90deg)" : "rotate(0deg)" },
1106
+ type: "button",
1107
+ children: "▶"
1108
+ })
1109
+ }),
1110
+ g && /* @__PURE__ */ j("td", {
1111
+ className: t(T.td, E, "w-8 text-center"),
1112
+ children: /* @__PURE__ */ j("input", {
1113
+ type: "checkbox",
1114
+ checked: a,
1115
+ onChange: (e) => {
1116
+ e.stopPropagation(), v?.(i, n);
1117
+ },
1118
+ onClick: (e) => e.stopPropagation(),
1119
+ className: "accent-accent"
1120
+ })
1121
+ }),
1122
+ f === !0 && /* @__PURE__ */ j("td", {
1123
+ className: t(T.td, E, "w-8 text-center text-fg-muted/50 tabular-nums"),
1124
+ children: w + r + 1
1125
+ }),
1126
+ e.map((e) => /* @__PURE__ */ j("td", {
1127
+ className: t(T.td, E, "text-fg", e.align === "right" && "text-right tabular-nums", e.align === "center" && "text-center", e.muted === !0 && "text-fg-muted"),
1128
+ children: Ne(e, n, w + r, C)
1129
+ }, e.key)),
1130
+ S !== void 0 && /* @__PURE__ */ j("td", {
1131
+ className: t(T.td, E, "w-12 text-center"),
1132
+ onClick: (e) => e.stopPropagation(),
1133
+ children: S(n)
1134
+ })
1135
+ ]
1136
+ }), o && x !== void 0 && /* @__PURE__ */ j("tr", {
1137
+ className: "border-b border-border bg-bg-secondary/20",
1138
+ children: /* @__PURE__ */ j("td", {
1139
+ colSpan: O,
1140
+ className: "px-4 py-3",
1141
+ children: x(n)
1142
+ })
1143
+ })] }, i);
1144
+ }),
1145
+ i !== !0 && o === void 0 && k && n.length > 0 && /* @__PURE__ */ M("tr", {
1146
+ className: "border-t-2 border-border bg-bg-secondary/50 font-semibold",
1147
+ children: [
1148
+ D && /* @__PURE__ */ j("td", { className: t(T.td, E) }),
1149
+ g && /* @__PURE__ */ j("td", { className: t(T.td, E) }),
1150
+ f === !0 && /* @__PURE__ */ j("td", { className: t(T.td, E) }),
1151
+ e.map((r) => /* @__PURE__ */ j("td", {
1152
+ className: t(T.td, E, "text-fg", r.align === "right" && "text-right tabular-nums"),
1153
+ children: r.aggregate === void 0 ? r.key === e[0]?.key ? `Total (${n.length})` : "" : De(n, r.key, r.aggregate)?.toLocaleString() ?? ""
1154
+ }, r.key)),
1155
+ S !== void 0 && /* @__PURE__ */ j("td", { className: t(T.td, E) })
1156
+ ]
1157
+ })
1158
+ ] });
1159
+ }
1160
+ function Fe({ children: e }) {
1161
+ return /* @__PURE__ */ j(A, { children: e });
1162
+ }
1163
+ //#endregion
1164
+ //#region src/l5-organisms/data-table/data-table-head.tsx
1165
+ function Ie({ dir: e }) {
1166
+ return e == null ? /* @__PURE__ */ M("svg", {
986
1167
  className: "ml-1 inline h-3 w-3 text-fg-muted/40",
987
- viewBox: "0 0 12 12",
988
1168
  fill: "currentColor",
1169
+ viewBox: "0 0 12 12",
989
1170
  children: [/* @__PURE__ */ j("path", { d: "M6 2L9 5H3L6 2Z" }), /* @__PURE__ */ j("path", { d: "M6 10L3 7H9L6 10Z" })]
990
1171
  }) : /* @__PURE__ */ j("svg", {
991
1172
  className: "ml-1 inline h-3 w-3 text-fg-muted",
992
- viewBox: "0 0 12 12",
993
1173
  fill: "currentColor",
1174
+ viewBox: "0 0 12 12",
994
1175
  children: e === "asc" ? /* @__PURE__ */ j("path", { d: "M6 2L9 5H3L6 2Z" }) : /* @__PURE__ */ j("path", { d: "M6 10L3 7H9L6 10Z" })
995
1176
  });
996
1177
  }
997
- function Fe({ columns: e }) {
998
- return /* @__PURE__ */ j(A, { children: Array.from({ length: 5 }, (t, n) => /* @__PURE__ */ j("tr", {
999
- className: "border-b border-border",
1000
- children: e.map((e) => /* @__PURE__ */ j("td", {
1001
- className: "gds-pad-x gds-pad-y",
1002
- children: /* @__PURE__ */ j("div", { className: "h-4 animate-pulse rounded bg-bg-tertiary" })
1003
- }, e.key))
1004
- }, n)) });
1178
+ function Le({ columns: e, density: n, sortKey: r, sortDir: i, onSort: a, stickyHeader: o, rowNumbers: s, hasSelection: c, allSelected: l, someSelected: u, onToggleSelectAll: d, hasActions: f, hasExpand: p, bordered: m, columnFilters: h, onColumnFilterChange: g }) {
1179
+ let _ = Ee(n), v = m === !0 ? "border border-border" : "border-b border-border", y = e.some((e) => e.filterable === !0) && g !== void 0;
1180
+ return /* @__PURE__ */ M("thead", { children: [/* @__PURE__ */ M("tr", {
1181
+ className: t("bg-bg-secondary/50", o === !0 && "sticky top-0 z-10"),
1182
+ children: [
1183
+ p === !0 && /* @__PURE__ */ j("th", { className: t(_.th, v, "w-8") }),
1184
+ c && /* @__PURE__ */ j("th", {
1185
+ className: t(_.th, v, "w-8 text-center"),
1186
+ children: /* @__PURE__ */ j("input", {
1187
+ type: "checkbox",
1188
+ checked: l === !0,
1189
+ ref: (e) => {
1190
+ e !== null && (e.indeterminate = u === !0 && l !== !0);
1191
+ },
1192
+ onChange: () => d?.(),
1193
+ className: "accent-accent"
1194
+ })
1195
+ }),
1196
+ s === !0 && /* @__PURE__ */ j("th", {
1197
+ className: t(_.th, v, "w-8 text-center font-medium text-fg-muted select-none"),
1198
+ children: "#"
1199
+ }),
1200
+ e.map((e) => /* @__PURE__ */ M("th", {
1201
+ className: t(_.th, v, "font-semibold tracking-wide text-fg-muted select-none whitespace-nowrap", e.align === "right" && "text-right", e.align === "center" && "text-center", e.sortable === !0 && a !== void 0 && "cursor-pointer hover:text-fg"),
1202
+ style: {
1203
+ width: e.width,
1204
+ minWidth: e.minWidth
1205
+ },
1206
+ onClick: () => {
1207
+ e.sortable === !0 && a !== void 0 && a(e.key);
1208
+ },
1209
+ children: [Ce(e), e.sortable === !0 && /* @__PURE__ */ j(Ie, { dir: r === e.key ? i : void 0 })]
1210
+ }, e.key)),
1211
+ f && /* @__PURE__ */ j("th", { className: t(_.th, v, "w-12") })
1212
+ ]
1213
+ }), y && /* @__PURE__ */ M("tr", {
1214
+ className: "bg-bg-secondary/30",
1215
+ children: [
1216
+ p === !0 && /* @__PURE__ */ j("th", { className: t(_.th, v) }),
1217
+ c && /* @__PURE__ */ j("th", { className: t(_.th, v) }),
1218
+ s === !0 && /* @__PURE__ */ j("th", { className: t(_.th, v) }),
1219
+ e.map((e) => /* @__PURE__ */ j("th", {
1220
+ className: t("px-1 py-1", v),
1221
+ children: e.filterable === !0 ? e.filterOptions === void 0 ? /* @__PURE__ */ j("input", {
1222
+ className: "w-full rounded border border-border bg-bg px-1.5 py-0.5 text-[11px] text-fg outline-none placeholder:text-fg-muted/50",
1223
+ placeholder: "Filter...",
1224
+ value: h?.[e.key] ?? "",
1225
+ onChange: (t) => g?.(e.key, t.target.value)
1226
+ }) : /* @__PURE__ */ M("select", {
1227
+ className: "w-full rounded border border-border bg-bg px-1.5 py-0.5 text-[11px] text-fg outline-none",
1228
+ value: h?.[e.key] ?? "",
1229
+ onChange: (t) => g?.(e.key, t.target.value),
1230
+ children: [/* @__PURE__ */ j("option", {
1231
+ value: "",
1232
+ children: "All"
1233
+ }), e.filterOptions.map((e) => /* @__PURE__ */ j("option", {
1234
+ value: e.value,
1235
+ children: e.label
1236
+ }, e.value))]
1237
+ }) : null
1238
+ }, e.key)),
1239
+ f && /* @__PURE__ */ j("th", { className: t(_.th, v) })
1240
+ ]
1241
+ })] });
1005
1242
  }
1006
- function Ie({ colSpan: e, text: t }) {
1007
- return /* @__PURE__ */ j("tr", { children: /* @__PURE__ */ j("td", {
1008
- colSpan: e,
1009
- className: "gds-pad-x py-12 text-center text-sm text-fg-muted",
1010
- children: t
1011
- }) });
1243
+ //#endregion
1244
+ //#region src/l5-organisms/data-table/data-table-pagination.tsx
1245
+ function Re({ currentPage: e, totalPages: t, totalRows: n, pageSize: r, pageSizeOptions: i, visibleRowCount: a, onPageChange: o, onPageSizeChange: s }) {
1246
+ let c = (e - 1) * r + 1, l = Math.min(e * r, n);
1247
+ return /* @__PURE__ */ M("div", {
1248
+ className: "flex items-center justify-between border-t border-border px-3 py-2",
1249
+ children: [/* @__PURE__ */ M("div", {
1250
+ className: "flex items-center gap-2 text-[11px] text-fg-muted",
1251
+ children: [/* @__PURE__ */ j("span", { children: a === 0 ? "0 rows" : `${c}–${l} of ${n}` }), i !== void 0 && s !== void 0 && /* @__PURE__ */ j("select", {
1252
+ className: "rounded border border-border bg-bg px-1.5 py-0.5 text-[11px] text-fg outline-none",
1253
+ value: r,
1254
+ onChange: (e) => s(Number(e.target.value)),
1255
+ children: i.map((e) => /* @__PURE__ */ M("option", {
1256
+ value: e,
1257
+ children: [e, " / page"]
1258
+ }, e))
1259
+ })]
1260
+ }), /* @__PURE__ */ M("div", {
1261
+ className: "flex items-center gap-1",
1262
+ children: [
1263
+ /* @__PURE__ */ j(ze, {
1264
+ disabled: e <= 1,
1265
+ onClick: () => o(e - 1),
1266
+ label: "Previous",
1267
+ children: /* @__PURE__ */ j("svg", {
1268
+ className: "h-3 w-3",
1269
+ fill: "none",
1270
+ stroke: "currentColor",
1271
+ strokeWidth: "2",
1272
+ viewBox: "0 0 24 24",
1273
+ children: /* @__PURE__ */ j("path", {
1274
+ d: "M15 19l-7-7 7-7",
1275
+ strokeLinecap: "round",
1276
+ strokeLinejoin: "round"
1277
+ })
1278
+ })
1279
+ }),
1280
+ /* @__PURE__ */ M("span", {
1281
+ className: "px-2 text-[11px] text-fg-muted tabular-nums",
1282
+ children: [
1283
+ e,
1284
+ " / ",
1285
+ t
1286
+ ]
1287
+ }),
1288
+ /* @__PURE__ */ j(ze, {
1289
+ disabled: e >= t,
1290
+ onClick: () => o(e + 1),
1291
+ label: "Next",
1292
+ children: /* @__PURE__ */ j("svg", {
1293
+ className: "h-3 w-3",
1294
+ fill: "none",
1295
+ stroke: "currentColor",
1296
+ strokeWidth: "2",
1297
+ viewBox: "0 0 24 24",
1298
+ children: /* @__PURE__ */ j("path", {
1299
+ d: "M9 5l7 7-7 7",
1300
+ strokeLinecap: "round",
1301
+ strokeLinejoin: "round"
1302
+ })
1303
+ })
1304
+ })
1305
+ ]
1306
+ })]
1307
+ });
1012
1308
  }
1013
- function Le({ columns: n, data: r, className: i, onRowClick: a, sortKey: o, sortDir: s, onSort: c, emptyText: l = "No data", loading: u, glass: d }, f) {
1014
- let p = (e) => {
1015
- e.sortable !== !0 || c === void 0 || c(e.key);
1016
- };
1017
- return /* @__PURE__ */ j("div", {
1018
- ref: f,
1019
- className: t("overflow-auto gds-radius-popover border", d === !0 ? t(e(d), "bg-bg/60") : "border-border bg-surface", i),
1309
+ function ze({ children: e, disabled: n, onClick: r, label: a }) {
1310
+ return /* @__PURE__ */ j("button", {
1311
+ "aria-label": a,
1312
+ className: t("rounded p-1 text-fg-muted transition-colors", i, n ? "cursor-not-allowed opacity-30" : "hover:bg-bg-tertiary hover:text-fg"),
1313
+ disabled: n,
1314
+ onClick: r,
1315
+ type: "button",
1316
+ children: e
1317
+ });
1318
+ }
1319
+ //#endregion
1320
+ //#region src/l5-organisms/data-table/data-table-toolbar.tsx
1321
+ function Be({ globalFilter: e, globalFilterValue: n, globalFilterPlaceholder: r = "Search...", onGlobalFilterChange: i, columnToggle: a, columns: o, hiddenColumns: s, onToggleColumn: c, exportCsv: l, onExport: u, batchActions: d, selectedKeys: f, caption: p }) {
1322
+ let [m, h] = O(!1), g = f !== void 0 && f.size > 0;
1323
+ return e === !0 || a === !0 || l === !0 || p !== void 0 || g ? /* @__PURE__ */ M("div", {
1324
+ className: "flex items-center gap-2 border-b border-border px-3 py-2",
1325
+ children: [
1326
+ p !== void 0 && /* @__PURE__ */ j("span", {
1327
+ className: "text-xs font-semibold text-fg",
1328
+ children: p
1329
+ }),
1330
+ g && d !== void 0 && /* @__PURE__ */ M("div", {
1331
+ className: "flex items-center gap-2",
1332
+ children: [/* @__PURE__ */ M("span", {
1333
+ className: "text-[11px] text-fg-muted",
1334
+ children: [f.size, " selected"]
1335
+ }), d.map((e) => /* @__PURE__ */ j("button", {
1336
+ className: t("rounded px-2 py-0.5 text-[11px] font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg", e.variant === "danger" ? "text-danger hover:bg-danger/10" : "text-fg hover:bg-bg-tertiary"),
1337
+ onClick: () => e.onClick(f),
1338
+ type: "button",
1339
+ children: e.label
1340
+ }, e.label))]
1341
+ }),
1342
+ /* @__PURE__ */ M("div", {
1343
+ className: "ml-auto flex items-center gap-2",
1344
+ children: [
1345
+ e === !0 && /* @__PURE__ */ j("input", {
1346
+ className: t("w-48 rounded border border-border bg-bg px-2.5 py-1 text-[11px] text-fg outline-none placeholder:text-fg-muted/50", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
1347
+ placeholder: r,
1348
+ value: n ?? "",
1349
+ onChange: (e) => i?.(e.target.value)
1350
+ }),
1351
+ a === !0 && o !== void 0 && /* @__PURE__ */ M("div", {
1352
+ className: "relative",
1353
+ children: [/* @__PURE__ */ j("button", {
1354
+ className: t("rounded p-1 text-fg-muted transition-colors hover:bg-bg-tertiary hover:text-fg", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
1355
+ onClick: () => h((e) => !e),
1356
+ title: "Toggle columns",
1357
+ type: "button",
1358
+ children: /* @__PURE__ */ j("svg", {
1359
+ className: "h-3.5 w-3.5",
1360
+ fill: "none",
1361
+ stroke: "currentColor",
1362
+ strokeWidth: "2",
1363
+ viewBox: "0 0 24 24",
1364
+ children: /* @__PURE__ */ j("path", {
1365
+ d: "M12 3v18M3 12h18",
1366
+ strokeLinecap: "round"
1367
+ })
1368
+ })
1369
+ }), m && /* @__PURE__ */ j("div", {
1370
+ className: "absolute right-0 top-full z-50 mt-1 min-w-40 rounded border border-border bg-bg p-1 shadow-lg",
1371
+ children: o.map((e) => /* @__PURE__ */ M("label", {
1372
+ className: "flex items-center gap-2 rounded px-2 py-1 text-[11px] text-fg hover:bg-bg-tertiary",
1373
+ children: [/* @__PURE__ */ j("input", {
1374
+ type: "checkbox",
1375
+ checked: s === void 0 || !s.has(e.key),
1376
+ onChange: () => c?.(e.key),
1377
+ className: "accent-accent"
1378
+ }), Ce(e)]
1379
+ }, e.key))
1380
+ })]
1381
+ }),
1382
+ l === !0 && /* @__PURE__ */ j("button", {
1383
+ className: t("rounded p-1 text-fg-muted transition-colors hover:bg-bg-tertiary hover:text-fg", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
1384
+ onClick: u,
1385
+ title: "Export CSV",
1386
+ type: "button",
1387
+ children: /* @__PURE__ */ j("svg", {
1388
+ className: "h-3.5 w-3.5",
1389
+ fill: "none",
1390
+ stroke: "currentColor",
1391
+ strokeWidth: "2",
1392
+ viewBox: "0 0 24 24",
1393
+ children: /* @__PURE__ */ j("path", {
1394
+ d: "M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M7 10l5 5 5-5M12 15V3",
1395
+ strokeLinecap: "round",
1396
+ strokeLinejoin: "round"
1397
+ })
1398
+ })
1399
+ })
1400
+ ]
1401
+ })
1402
+ ]
1403
+ }) : null;
1404
+ }
1405
+ //#endregion
1406
+ //#region src/l5-organisms/data-table/data-table.tsx
1407
+ function Ve(n, r) {
1408
+ let { columns: i, className: a, glass: o, rows: s, data: c, emptyMessage: l, emptyText: u, sortKey: d, sortDir: f, onSort: p, page: m, pageSize: h, pageSizeOptions: g, totalRows: _, onPageChange: v, onPageSizeChange: y, selectable: b, selectedKeys: x, onToggleSelect: S, onToggleSelectAll: C, globalFilter: w, globalFilterValue: T, globalFilterPlaceholder: D, onGlobalFilterChange: k, highlightMatches: A, columnFilters: N, onColumnFilterChange: P, expandedKeys: F, onToggleExpand: I, renderExpanded: ee, batchActions: te, columnToggle: L, exportCsv: R, exportFilename: z = "export", density: ne, striped: B, bordered: V, stickyHeader: H, rowNumbers: re, highlightOnHover: ie, rowKey: U, getRowClassName: W, getRowHidden: G, onRowClick: ae, loading: K, loadingRows: oe, error: se, emptyIcon: ce, caption: le, footer: ue, actions: de } = n, fe = s ?? c, pe = E(() => fe ?? [], [fe]), me = l ?? u ?? "No data", [he, ge] = O(/* @__PURE__ */ new Set());
1409
+ function _e(e) {
1410
+ ge((t) => {
1411
+ let n = new Set(t);
1412
+ return n.has(e) ? n.delete(e) : n.add(e), n;
1413
+ });
1414
+ }
1415
+ let ve = E(() => i.filter((e) => e.hidden !== !0 && !he.has(e.key)), [i, he]), q = E(() => G === void 0 ? pe : pe.filter((e) => !G(e)), [pe, G]), J = h !== void 0 && v !== void 0, Y = m ?? 1, X = h ?? q.length, ye = _ ?? q.length, be = Math.max(1, Math.ceil(ye / X)), Z = E(() => {
1416
+ if (!J || _ !== void 0) return q;
1417
+ let e = (Y - 1) * X;
1418
+ return q.slice(e, e + X);
1419
+ }, [
1420
+ q,
1421
+ J,
1422
+ Y,
1423
+ X,
1424
+ _
1425
+ ]), Q = J && _ === void 0 ? (Y - 1) * X : 0, xe = b === !0 && S !== void 0, Se = E(() => Z.map((e, t) => we(e, U, Q + t)), [
1426
+ Z,
1427
+ U,
1428
+ Q
1429
+ ]), Ce = xe && x !== void 0 && x.size > 0 && Se.every((e) => x.has(e)), Te = xe && x !== void 0 && x.size > 0;
1430
+ function Ee() {
1431
+ C !== void 0 && C(Ce);
1432
+ }
1433
+ let De = A !== !1 && w === !0 ? T : void 0;
1434
+ function ke() {
1435
+ Oe(ve, q, z);
1436
+ }
1437
+ return /* @__PURE__ */ M("div", {
1438
+ ref: r,
1439
+ className: t("overflow-hidden gds-radius-popover border", o === !0 ? t(e(o), "bg-bg/60") : "border-border bg-surface", a),
1020
1440
  "data-component": "data-table",
1021
- "data-state": u === !0 ? "loading" : void 0,
1022
- children: /* @__PURE__ */ M("table", {
1023
- className: "w-full border-collapse text-sm",
1024
- children: [/* @__PURE__ */ j("thead", { children: /* @__PURE__ */ j("tr", {
1025
- className: "border-b border-border bg-bg-secondary/50",
1026
- children: n.map((e) => /* @__PURE__ */ M("th", {
1027
- className: t("gds-pad-x gds-pad-y text-left gds-text-body font-medium uppercase tracking-wider text-fg-muted select-none", e.sortable === !0 && "cursor-pointer hover:text-fg"),
1028
- style: e.width === void 0 ? void 0 : { width: e.width },
1029
- onClick: () => p(e),
1030
- children: [e.header, e.sortable === !0 && /* @__PURE__ */ j(Pe, { dir: o === e.key ? s : void 0 })]
1031
- }, e.key))
1032
- }) }), /* @__PURE__ */ M("tbody", { children: [
1033
- u === !0 && /* @__PURE__ */ j(Fe, { columns: n }),
1034
- u !== !0 && r.length === 0 && /* @__PURE__ */ j(Ie, {
1035
- colSpan: n.length,
1036
- text: l
1037
- }),
1038
- u !== !0 && r.map((e, r) => /* @__PURE__ */ j("tr", {
1039
- className: t("border-b border-border transition-colors", r % 2 == 1 && "bg-bg-secondary/30", a !== void 0 && "cursor-pointer hover:bg-bg-secondary/60"),
1040
- onClick: a === void 0 ? void 0 : () => a(e),
1041
- children: n.map((t) => /* @__PURE__ */ j("td", {
1042
- className: "gds-pad-x gds-pad-y text-fg",
1043
- children: t.render === void 0 ? String(e[t.key] ?? "") : t.render(e)
1044
- }, t.key))
1045
- }, `${String(e[n[0]?.key ?? ""] ?? "")}-${r}`))
1046
- ] })]
1047
- })
1441
+ "data-state": K === !0 ? "loading" : void 0,
1442
+ children: [
1443
+ /* @__PURE__ */ j(Be, {
1444
+ globalFilter: w,
1445
+ globalFilterValue: T,
1446
+ globalFilterPlaceholder: D,
1447
+ onGlobalFilterChange: k,
1448
+ columnToggle: L,
1449
+ columns: i,
1450
+ hiddenColumns: he,
1451
+ onToggleColumn: _e,
1452
+ exportCsv: R,
1453
+ onExport: ke,
1454
+ batchActions: te,
1455
+ selectedKeys: x,
1456
+ caption: le
1457
+ }),
1458
+ /* @__PURE__ */ j("div", {
1459
+ className: "overflow-auto",
1460
+ children: /* @__PURE__ */ M("table", {
1461
+ className: "w-full border-collapse",
1462
+ children: [/* @__PURE__ */ j(Le, {
1463
+ columns: ve,
1464
+ density: ne,
1465
+ sortKey: d,
1466
+ sortDir: f,
1467
+ onSort: p,
1468
+ stickyHeader: H,
1469
+ rowNumbers: re,
1470
+ hasSelection: xe,
1471
+ allSelected: Ce,
1472
+ someSelected: Te,
1473
+ onToggleSelectAll: Ee,
1474
+ hasActions: de !== void 0,
1475
+ hasExpand: ee !== void 0 && I !== void 0,
1476
+ bordered: V,
1477
+ columnFilters: N,
1478
+ onColumnFilterChange: P
1479
+ }), /* @__PURE__ */ j(Pe, {
1480
+ columns: ve,
1481
+ rows: Z,
1482
+ density: ne,
1483
+ loading: K,
1484
+ loadingRows: oe,
1485
+ error: se,
1486
+ emptyMessage: me,
1487
+ emptyIcon: ce,
1488
+ striped: B,
1489
+ bordered: V,
1490
+ highlightOnHover: ie,
1491
+ rowNumbers: re,
1492
+ rowKey: U,
1493
+ getRowClassName: W,
1494
+ onRowClick: ae,
1495
+ hasSelection: xe,
1496
+ selectedKeys: x,
1497
+ onToggleSelect: S,
1498
+ expandedKeys: F,
1499
+ onToggleExpand: I,
1500
+ renderExpanded: ee,
1501
+ actions: de,
1502
+ highlightQuery: De,
1503
+ pageOffset: Q
1504
+ })]
1505
+ })
1506
+ }),
1507
+ ue !== void 0 && /* @__PURE__ */ j("div", {
1508
+ className: "border-t border-border px-3 py-2 text-xs text-fg-muted",
1509
+ children: ue
1510
+ }),
1511
+ J && /* @__PURE__ */ j(Re, {
1512
+ currentPage: Y,
1513
+ totalPages: be,
1514
+ totalRows: ye,
1515
+ pageSize: X,
1516
+ pageSizeOptions: g,
1517
+ visibleRowCount: Z.length,
1518
+ onPageChange: v,
1519
+ onPageSizeChange: y
1520
+ })
1521
+ ]
1048
1522
  });
1049
1523
  }
1050
- var Re = C(Le);
1524
+ var He = C(Ve);
1051
1525
  //#endregion
1052
1526
  //#region src/l5-organisms/date-picker.tsx
1053
- function ze(e) {
1527
+ function Ue(e) {
1054
1528
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
1055
1529
  }
1056
- var Be = C(function({ value: e, onChange: r, placeholder: a = "Select date", min: o, max: s, glass: c, className: l }, u) {
1530
+ var We = C(function({ value: e, onChange: r, placeholder: a = "Select date", min: o, max: s, glass: c, className: l }, u) {
1057
1531
  let [d, p] = O(!1), h = D(null), g = w(() => p(!1), []);
1058
1532
  m(h, d, g), f(d, g);
1059
1533
  let _ = (e) => {
@@ -1083,10 +1557,10 @@ var Be = C(function({ value: e, onChange: r, placeholder: a = "Select date", min
1083
1557
  height: "11",
1084
1558
  rx: "1.5"
1085
1559
  }), /* @__PURE__ */ j("path", { d: "M2 6.5H14M5 1.5V4M11 1.5V4" })]
1086
- }), e === void 0 ? a : ze(e)]
1560
+ }), e === void 0 ? a : Ue(e)]
1087
1561
  }), d && /* @__PURE__ */ j("div", {
1088
1562
  className: "absolute left-0 top-full z-50 mt-1 animate-popup",
1089
- children: /* @__PURE__ */ j(R, {
1563
+ children: /* @__PURE__ */ j(W, {
1090
1564
  value: e,
1091
1565
  onChange: _,
1092
1566
  min: o,
@@ -1095,11 +1569,11 @@ var Be = C(function({ value: e, onChange: r, placeholder: a = "Select date", min
1095
1569
  })]
1096
1570
  })
1097
1571
  });
1098
- }), Ve = {
1572
+ }), Ge = {
1099
1573
  success: "bg-success/15 text-success",
1100
1574
  failure: "bg-danger/15 text-danger",
1101
1575
  pending: "bg-warning/15 text-warning"
1102
- }, He = C(function({ entries: e, className: n }, r) {
1576
+ }, Ke = C(function({ entries: e, className: n }, r) {
1103
1577
  return /* @__PURE__ */ j("div", {
1104
1578
  ref: r,
1105
1579
  className: t("gds-radius-popover overflow-hidden border border-border", n),
@@ -1148,7 +1622,7 @@ var Be = C(function({ value: e, onChange: r, placeholder: a = "Select date", min
1148
1622
  /* @__PURE__ */ j("td", {
1149
1623
  className: "px-3 py-1.5",
1150
1624
  children: /* @__PURE__ */ j("span", {
1151
- className: t("rounded-full px-2 py-0.5 text-[10px] font-medium", Ve[e.status]),
1625
+ className: t("rounded-full px-2 py-0.5 text-[10px] font-medium", Ge[e.status]),
1152
1626
  children: e.status
1153
1627
  })
1154
1628
  }),
@@ -1163,7 +1637,7 @@ var Be = C(function({ value: e, onChange: r, placeholder: a = "Select date", min
1163
1637
  });
1164
1638
  //#endregion
1165
1639
  //#region src/l5-organisms/description-list.tsx
1166
- function Ue({ items: e, layout: n = "stacked", dividers: r = !0, className: i }) {
1640
+ function qe({ items: e, layout: n = "stacked", dividers: r = !0, className: i }) {
1167
1641
  let a = n === "horizontal";
1168
1642
  return /* @__PURE__ */ j("dl", {
1169
1643
  className: t("gds-text-body", i),
@@ -1183,7 +1657,7 @@ function Ue({ items: e, layout: n = "stacked", dividers: r = !0, className: i })
1183
1657
  }
1184
1658
  //#endregion
1185
1659
  //#region src/l5-organisms/diff-algorithm.ts
1186
- function We(e, t) {
1660
+ function Je(e, t) {
1187
1661
  let n = e.length, r = t.length, i = Array.from({ length: n + 1 }, () => Array(r + 1).fill(0));
1188
1662
  for (let a = 1; a <= n; a++) for (let n = 1; n <= r; n++) e[a - 1] === t[n - 1] ? i[a][n] = i[a - 1][n - 1] + 1 : i[a][n] = Math.max(i[a - 1][n], i[a][n - 1]);
1189
1663
  let a = [], o = n, s = r;
@@ -1217,19 +1691,19 @@ function We(e, t) {
1217
1691
  }), s--;
1218
1692
  return a;
1219
1693
  }
1220
- function H(e) {
1694
+ function Ye(e) {
1221
1695
  return e === "added" ? "bg-success/10" : e === "removed" ? "bg-danger/10" : "";
1222
1696
  }
1223
- function Ge(e) {
1697
+ function Xe(e) {
1224
1698
  return e === "added" ? "+" : e === "removed" ? "-" : " ";
1225
1699
  }
1226
1700
  //#endregion
1227
1701
  //#region src/l5-organisms/diff-viewer.tsx
1228
- function Ke({ lines: e }) {
1702
+ function Ze({ lines: e }) {
1229
1703
  return /* @__PURE__ */ j("table", {
1230
1704
  className: "w-full border-collapse font-mono text-xs",
1231
1705
  children: /* @__PURE__ */ j("tbody", { children: e.map((e, t) => /* @__PURE__ */ M("tr", {
1232
- className: H(e.type),
1706
+ className: Ye(e.type),
1233
1707
  children: [
1234
1708
  /* @__PURE__ */ j("td", {
1235
1709
  className: "w-10 select-none pr-2 text-right text-fg-muted/50",
@@ -1241,7 +1715,7 @@ function Ke({ lines: e }) {
1241
1715
  }),
1242
1716
  /* @__PURE__ */ j("td", {
1243
1717
  className: "w-4 select-none text-center text-fg-muted/70",
1244
- children: Ge(e.type)
1718
+ children: Xe(e.type)
1245
1719
  }),
1246
1720
  /* @__PURE__ */ j("td", {
1247
1721
  className: "whitespace-pre px-2",
@@ -1251,7 +1725,7 @@ function Ke({ lines: e }) {
1251
1725
  }, t)) })
1252
1726
  });
1253
1727
  }
1254
- function qe({ lines: e, oldTitle: t, newTitle: n }) {
1728
+ function Qe({ lines: e, oldTitle: t, newTitle: n }) {
1255
1729
  let r = [], i = [];
1256
1730
  for (let t of e) t.type === "unchanged" ? (r.push(t), i.push(t)) : t.type === "removed" ? (r.push(t), i.push(null)) : (r.push(null), i.push(t));
1257
1731
  return /* @__PURE__ */ M("div", {
@@ -1262,7 +1736,7 @@ function qe({ lines: e, oldTitle: t, newTitle: n }) {
1262
1736
  }), /* @__PURE__ */ j("table", {
1263
1737
  className: "w-full border-collapse font-mono text-xs",
1264
1738
  children: /* @__PURE__ */ j("tbody", { children: r.map((e, t) => /* @__PURE__ */ M("tr", {
1265
- className: e === null ? "" : H(e.type),
1739
+ className: e === null ? "" : Ye(e.type),
1266
1740
  children: [/* @__PURE__ */ j("td", {
1267
1741
  className: "w-10 select-none pr-2 text-right text-fg-muted/50",
1268
1742
  children: e?.oldLineNum ?? ""
@@ -1277,7 +1751,7 @@ function qe({ lines: e, oldTitle: t, newTitle: n }) {
1277
1751
  }), /* @__PURE__ */ j("table", {
1278
1752
  className: "w-full border-collapse font-mono text-xs",
1279
1753
  children: /* @__PURE__ */ j("tbody", { children: i.map((e, t) => /* @__PURE__ */ M("tr", {
1280
- className: e === null ? "" : H(e.type),
1754
+ className: e === null ? "" : Ye(e.type),
1281
1755
  children: [/* @__PURE__ */ j("td", {
1282
1756
  className: "w-10 select-none pr-2 text-right text-fg-muted/50",
1283
1757
  children: e?.newLineNum ?? ""
@@ -1289,20 +1763,20 @@ function qe({ lines: e, oldTitle: t, newTitle: n }) {
1289
1763
  })] })]
1290
1764
  });
1291
1765
  }
1292
- var Je = C(function({ oldText: e, newText: n, mode: r = "unified", oldTitle: i = "Old", newTitle: a = "New", glass: o, className: s }, c) {
1293
- let l = E(() => We(e.split("\n"), n.split("\n")), [e, n]);
1766
+ var $e = C(function({ oldText: e, newText: n, mode: r = "unified", oldTitle: i = "Old", newTitle: a = "New", glass: o, className: s }, c) {
1767
+ let l = E(() => Je(e.split("\n"), n.split("\n")), [e, n]);
1294
1768
  return /* @__PURE__ */ j("div", {
1295
1769
  ref: c,
1296
1770
  className: t("overflow-auto gds-radius-popover border border-border", o === !0 && "bg-white/5 backdrop-blur-md", o !== !0 && "bg-bg-secondary", s),
1297
1771
  "data-component": "diff-viewer",
1298
1772
  "data-variant": r,
1299
- children: r === "split" ? /* @__PURE__ */ j(qe, {
1773
+ children: r === "split" ? /* @__PURE__ */ j(Qe, {
1300
1774
  lines: l,
1301
1775
  oldTitle: i,
1302
1776
  newTitle: a
1303
- }) : /* @__PURE__ */ j(Ke, { lines: l })
1777
+ }) : /* @__PURE__ */ j(Ze, { lines: l })
1304
1778
  });
1305
- }), Ye = C(function({ sender: e, senderAvatar: n, subject: r, preview: i, timestamp: a, unread: o, starred: s, selected: c, onClick: l, className: u }, d) {
1779
+ }), et = C(function({ sender: e, senderAvatar: n, subject: r, preview: i, timestamp: a, unread: o, starred: s, selected: c, onClick: l, className: u }, d) {
1306
1780
  let f = o === !0, p = n ?? e.charAt(0).toUpperCase();
1307
1781
  return /* @__PURE__ */ M("div", {
1308
1782
  ref: d,
@@ -1353,7 +1827,7 @@ var Je = C(function({ oldText: e, newText: n, mode: r = "unified", oldTitle: i =
1353
1827
  })
1354
1828
  ]
1355
1829
  });
1356
- }), Xe = C(function({ src: e, title: n, ratio: r = 16 / 9, allowFullscreen: i = !0, sandbox: a, loading: o = "lazy", glass: s = !1, className: c }, l) {
1830
+ }), tt = C(function({ src: e, title: n, ratio: r = 16 / 9, allowFullscreen: i = !0, sandbox: a, loading: o = "lazy", glass: s = !1, className: c }, l) {
1357
1831
  return /* @__PURE__ */ j("div", {
1358
1832
  ref: l,
1359
1833
  className: t("relative w-full overflow-hidden border border-white/[0.06] gds-radius-card", s && "gds-glass", c),
@@ -1369,11 +1843,11 @@ var Je = C(function({ oldText: e, newText: n, mode: r = "unified", oldTitle: i =
1369
1843
  "data-testid": "embed-iframe"
1370
1844
  })
1371
1845
  });
1372
- }), Ze = {
1846
+ }), nt = {
1373
1847
  active: "bg-success/15 text-success",
1374
1848
  inactive: "bg-danger/15 text-danger",
1375
1849
  onboarding: "bg-warning/15 text-warning"
1376
- }, Qe = C(function({ avatar: e, className: n, department: r, email: i, name: a, phone: o, role: s, status: c, ...l }, u) {
1850
+ }, rt = C(function({ avatar: e, className: n, department: r, email: i, name: a, phone: o, role: s, status: c, ...l }, u) {
1377
1851
  let d = a.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase();
1378
1852
  return /* @__PURE__ */ M("div", {
1379
1853
  className: t("gds-ctx gds-radius-card border border-border bg-surface gds-pad", n),
@@ -1409,7 +1883,7 @@ var Je = C(function({ oldText: e, newText: n, mode: r = "unified", oldTitle: i =
1409
1883
  ]
1410
1884
  }),
1411
1885
  c !== void 0 && /* @__PURE__ */ j("span", {
1412
- className: t("shrink-0 rounded-full px-2 py-0.5 text-xs font-medium", Ze[c]),
1886
+ className: t("shrink-0 rounded-full px-2 py-0.5 text-xs font-medium", nt[c]),
1413
1887
  children: c
1414
1888
  })
1415
1889
  ]
@@ -1418,7 +1892,7 @@ var Je = C(function({ oldText: e, newText: n, mode: r = "unified", oldTitle: i =
1418
1892
  children: [i !== void 0 && /* @__PURE__ */ j("div", { children: i }), o !== void 0 && /* @__PURE__ */ j("div", { children: o })]
1419
1893
  })]
1420
1894
  });
1421
- }), $e = class extends S {
1895
+ }), it = class extends S {
1422
1896
  state = { error: null };
1423
1897
  static getDerivedStateFromError(e) {
1424
1898
  return { error: e };
@@ -1443,7 +1917,7 @@ var Je = C(function({ oldText: e, newText: n, mode: r = "unified", oldTitle: i =
1443
1917
  };
1444
1918
  //#endregion
1445
1919
  //#region src/l5-organisms/file-browser.tsx
1446
- function et() {
1920
+ function at() {
1447
1921
  return /* @__PURE__ */ j("svg", {
1448
1922
  className: "h-4 w-4 text-warning",
1449
1923
  viewBox: "0 0 16 16",
@@ -1451,7 +1925,7 @@ function et() {
1451
1925
  children: /* @__PURE__ */ j("path", { d: "M1 3.5A1.5 1.5 0 012.5 2h3.379a1.5 1.5 0 011.06.44L8.062 3.5H13.5A1.5 1.5 0 0115 5v7.5a1.5 1.5 0 01-1.5 1.5h-11A1.5 1.5 0 011 12.5v-9z" })
1452
1926
  });
1453
1927
  }
1454
- function tt() {
1928
+ function ot() {
1455
1929
  return /* @__PURE__ */ M("svg", {
1456
1930
  className: "h-4 w-4 text-fg-muted",
1457
1931
  viewBox: "0 0 16 16",
@@ -1461,10 +1935,10 @@ function tt() {
1461
1935
  children: [/* @__PURE__ */ j("path", { d: "M4 1.5h5l3.5 3.5V14a.5.5 0 01-.5.5H4a.5.5 0 01-.5-.5V2a.5.5 0 01.5-.5z" }), /* @__PURE__ */ j("path", { d: "M9 1.5V5h3.5" })]
1462
1936
  });
1463
1937
  }
1464
- function nt(e) {
1938
+ function st(e) {
1465
1939
  return e === void 0 ? "—" : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1466
1940
  }
1467
- var rt = C(function({ files: e, onNavigate: n, onSelect: r, selected: a, className: o }, s) {
1941
+ var ct = C(function({ files: e, onNavigate: n, onSelect: r, selected: a, className: o }, s) {
1468
1942
  let c = (e) => {
1469
1943
  e.type === "folder" && n !== void 0 ? n(e.id) : e.type === "file" && r !== void 0 && r(e.id);
1470
1944
  };
@@ -1506,7 +1980,7 @@ var rt = C(function({ files: e, onNavigate: n, onSelect: r, selected: a, classNa
1506
1980
  className: "gds-pad-x gds-pad-y",
1507
1981
  children: /* @__PURE__ */ M("div", {
1508
1982
  className: "flex items-center gds-gap-sm text-fg",
1509
- children: [e.icon ?? (e.type === "folder" ? /* @__PURE__ */ j(et, {}) : /* @__PURE__ */ j(tt, {})), /* @__PURE__ */ j("span", {
1983
+ children: [e.icon ?? (e.type === "folder" ? /* @__PURE__ */ j(at, {}) : /* @__PURE__ */ j(ot, {})), /* @__PURE__ */ j("span", {
1510
1984
  className: e.type === "folder" ? "font-medium" : "",
1511
1985
  children: e.name
1512
1986
  })]
@@ -1514,7 +1988,7 @@ var rt = C(function({ files: e, onNavigate: n, onSelect: r, selected: a, classNa
1514
1988
  }),
1515
1989
  /* @__PURE__ */ j("td", {
1516
1990
  className: "gds-pad-x gds-pad-y text-right text-fg-muted",
1517
- children: e.type === "folder" ? "—" : nt(e.size)
1991
+ children: e.type === "folder" ? "—" : st(e.size)
1518
1992
  }),
1519
1993
  /* @__PURE__ */ j("td", {
1520
1994
  className: "gds-pad-x gds-pad-y text-right text-fg-muted",
@@ -1524,7 +1998,7 @@ var rt = C(function({ files: e, onNavigate: n, onSelect: r, selected: a, classNa
1524
1998
  }, e.id))] })]
1525
1999
  })
1526
2000
  });
1527
- }), it = C(function({ name: e, size: n, type: r, thumbnail: i, actions: o, onClick: s, className: c }, l) {
2001
+ }), lt = C(function({ name: e, size: n, type: r, thumbnail: i, actions: o, onClick: s, className: c }, l) {
1528
2002
  let u = s !== void 0;
1529
2003
  return /* @__PURE__ */ M("div", {
1530
2004
  ref: l,
@@ -1564,8 +2038,8 @@ var rt = C(function({ files: e, onNavigate: n, onSelect: r, selected: a, classNa
1564
2038
  ]
1565
2039
  })]
1566
2040
  });
1567
- }), U = t("w-full gds-radius-button border border-border bg-bg gds-pad-x gds-pad-y-sm text-sm text-fg", "placeholder:text-fg-muted/50", i);
1568
- function at(e, n, r) {
2041
+ }), ut = t("w-full gds-radius-button border border-border bg-bg gds-pad-x gds-pad-y-sm text-sm text-fg", "placeholder:text-fg-muted/50", i);
2042
+ function dt(e, n, r) {
1569
2043
  let a = `form-field-${e.id}`;
1570
2044
  return e.type === "checkbox" ? /* @__PURE__ */ M("label", {
1571
2045
  htmlFor: a,
@@ -1601,7 +2075,7 @@ function at(e, n, r) {
1601
2075
  value: String(n ?? ""),
1602
2076
  placeholder: e.placeholder,
1603
2077
  onChange: (t) => r(e.id, t.target.value),
1604
- className: t(U, "min-h-[72px] resize-y"),
2078
+ className: t(ut, "min-h-[72px] resize-y"),
1605
2079
  rows: 3
1606
2080
  })]
1607
2081
  }) : e.type === "select" ? /* @__PURE__ */ M("div", {
@@ -1617,7 +2091,7 @@ function at(e, n, r) {
1617
2091
  id: a,
1618
2092
  value: String(n ?? ""),
1619
2093
  onChange: (t) => r(e.id, t.target.value),
1620
- className: t(U, "cursor-pointer"),
2094
+ className: t(ut, "cursor-pointer"),
1621
2095
  children: [/* @__PURE__ */ j("option", {
1622
2096
  value: "",
1623
2097
  children: e.placeholder ?? "Select..."
@@ -1643,18 +2117,532 @@ function at(e, n, r) {
1643
2117
  onChange: (t) => {
1644
2118
  e.type === "number" ? r(e.id, t.target.value === "" ? "" : Number(t.target.value)) : r(e.id, t.target.value);
1645
2119
  },
1646
- className: U
2120
+ className: ut
1647
2121
  })]
1648
2122
  });
1649
2123
  }
1650
- var ot = C(function({ fields: e, values: n, onChange: r, className: i }, a) {
2124
+ var ft = C(function({ fields: e, values: n, onChange: r, className: i }, a) {
1651
2125
  return /* @__PURE__ */ j("div", {
1652
2126
  ref: a,
1653
2127
  className: t("flex flex-col gap-4", i),
1654
2128
  "data-component": "form-builder",
1655
- children: e.map((e) => /* @__PURE__ */ j("div", { children: at(e, n[e.id], r) }, e.id))
2129
+ children: e.map((e) => /* @__PURE__ */ j("div", { children: dt(e, n[e.id], r) }, e.id))
2130
+ });
2131
+ }), pt = [
2132
+ "var(--gds-palette-0)",
2133
+ "var(--gds-palette-1)",
2134
+ "var(--gds-palette-2)",
2135
+ "var(--gds-palette-3)",
2136
+ "var(--gds-palette-4)",
2137
+ "var(--gds-palette-5)",
2138
+ "var(--gds-palette-6)",
2139
+ "var(--gds-palette-7)"
2140
+ ], $ = 864e5, mt = (e) => new Date(e).getTime(), ht = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, gt = (e) => e.toLocaleDateString("en-US", { month: "short" }), _t = (e) => {
2141
+ let t = new Date(e), n = t.getDay(), r = n === 0 ? -6 : 1 - n;
2142
+ return t.setDate(t.getDate() + r), t.setHours(0, 0, 0, 0), t;
2143
+ }, vt = (e) => {
2144
+ let t = new Date(e);
2145
+ return t.setDate(1), t.setHours(0, 0, 0, 0), t;
2146
+ }, yt = (e, t, n) => {
2147
+ let r = [], i = t.getTime() + $;
2148
+ if (n === "day") {
2149
+ let t = new Date(e);
2150
+ for (t.setHours(0, 0, 0, 0); t.getTime() <= i;) r.push(new Date(t)), t.setDate(t.getDate() + 1);
2151
+ } else if (n === "week") {
2152
+ let t = _t(e);
2153
+ for (; t.getTime() <= i;) r.push(new Date(t)), t.setDate(t.getDate() + 7);
2154
+ } else {
2155
+ let t = vt(e);
2156
+ for (; t.getTime() <= i;) r.push(new Date(t)), t.setMonth(t.getMonth() + 1);
2157
+ }
2158
+ return r;
2159
+ }, bt = (e) => e === "day" ? 36 : e === "week" ? 80 : 120, xt = (e, t) => t === "day" ? String(e.getDate()) : t === "week" ? `${gt(e)} ${e.getDate()}` : `${gt(e)} ${e.getFullYear()}`, St = (e) => {
2160
+ let t = /* @__PURE__ */ new Map();
2161
+ e.forEach((e) => t.set(e.id, e));
2162
+ let n = /* @__PURE__ */ new Set();
2163
+ e.forEach((e) => {
2164
+ e.dependencies !== void 0 && e.dependencies.forEach((e) => n.add(e));
2165
+ });
2166
+ let r = e.filter((e) => !n.has(e.id)), i = /* @__PURE__ */ new Map(), a = (e) => {
2167
+ let n = i.get(e);
2168
+ if (n !== void 0) return n;
2169
+ let r = t.get(e);
2170
+ if (r === void 0) {
2171
+ let t = {
2172
+ chain: [],
2173
+ duration: 0
2174
+ };
2175
+ return i.set(e, t), t;
2176
+ }
2177
+ let o = mt(r.end) - mt(r.start);
2178
+ if (r.dependencies === void 0 || r.dependencies.length === 0) {
2179
+ let t = {
2180
+ chain: [e],
2181
+ duration: o
2182
+ };
2183
+ return i.set(e, t), t;
2184
+ }
2185
+ let s = {
2186
+ chain: [],
2187
+ duration: 0
2188
+ };
2189
+ r.dependencies.forEach((e) => {
2190
+ let t = a(e);
2191
+ t.duration > s.duration && (s = t);
2192
+ });
2193
+ let c = {
2194
+ chain: [...s.chain, e],
2195
+ duration: o + s.duration
2196
+ };
2197
+ return i.set(e, c), c;
2198
+ }, o = {
2199
+ chain: [],
2200
+ duration: 0
2201
+ };
2202
+ return r.forEach((e) => {
2203
+ let t = a(e.id);
2204
+ t.duration > o.duration && (o = t);
2205
+ }), new Set(o.chain);
2206
+ };
2207
+ //#endregion
2208
+ //#region src/l5-organisms/gantt-chart/gantt-chart.tsx
2209
+ function Ct({ className: e, editable: n = !1, headerHeight: r = 40, height: a, labelWidth: o = 180, onTaskClick: s, onTaskMove: c, onTaskResize: l, rowHeight: u = 36, showCriticalPath: d = !1, showDependencies: f = !0, showProgress: p = !0, showToday: m = !0, tasks: h, viewMode: g = "week" }) {
2210
+ let [_, v] = O(() => /* @__PURE__ */ new Set()), [y, b] = O(null), [x, S] = O(null), C = D(null), k = w((e) => {
2211
+ v((t) => {
2212
+ let n = new Set(t);
2213
+ return n.has(e) ? n.delete(e) : n.add(e), n;
2214
+ });
2215
+ }, []), A = E(() => d ? St(h) : /* @__PURE__ */ new Set(), [h, d]), N = E(() => {
2216
+ let e = [], t = /* @__PURE__ */ new Map(), n = [];
2217
+ h.forEach((e) => {
2218
+ if (e.group !== void 0) {
2219
+ let n = t.get(e.group);
2220
+ n === void 0 ? t.set(e.group, [e]) : n.push(e);
2221
+ } else n.push(e);
2222
+ });
2223
+ let r = 0;
2224
+ return t.forEach((t, n) => {
2225
+ let i = _.has(n);
2226
+ e.push({
2227
+ collapsed: i,
2228
+ kind: "group",
2229
+ label: n
2230
+ }), i || t.forEach((t) => {
2231
+ e.push({
2232
+ index: r++,
2233
+ kind: "task",
2234
+ task: t
2235
+ });
2236
+ });
2237
+ }), n.forEach((t) => {
2238
+ e.push({
2239
+ index: r++,
2240
+ kind: "task",
2241
+ task: t
2242
+ });
2243
+ }), e;
2244
+ }, [h, _]), { columns: P, timelineStart: F, timelineWidth: I, totalWidth: ee } = E(() => {
2245
+ if (h.length === 0) return {
2246
+ columns: [],
2247
+ timelineStart: 0,
2248
+ timelineWidth: 0,
2249
+ totalWidth: o
2250
+ };
2251
+ let e = Infinity, t = -Infinity;
2252
+ h.forEach((n) => {
2253
+ let r = mt(n.start), i = mt(n.end);
2254
+ r < e && (e = r), i > t && (t = i);
2255
+ });
2256
+ let n = g === "day" ? $ * 2 : g === "week" ? $ * 7 : $ * 30, r = yt(new Date(e - n), new Date(t + n), g), i = bt(g), a = r.length * i;
2257
+ return {
2258
+ columns: r,
2259
+ timelineStart: r.length > 0 ? r[0].getTime() : 0,
2260
+ timelineWidth: a,
2261
+ totalWidth: o + a
2262
+ };
2263
+ }, [
2264
+ h,
2265
+ g,
2266
+ o
2267
+ ]), te = E(() => {
2268
+ if (P.length === 0) return 0;
2269
+ let e = P[P.length - 1];
2270
+ if (g === "day") return e.getTime() + $;
2271
+ if (g === "week") return e.getTime() + $ * 7;
2272
+ let t = new Date(e);
2273
+ return t.setMonth(t.getMonth() + 1), t.getTime();
2274
+ }, [P, g]), L = te - F, R = E(() => I <= 0 ? 0 : L / I, [L, I]), z = w((e) => L <= 0 ? 0 : (mt(e) - F) / L * I, [
2275
+ F,
2276
+ L,
2277
+ I
2278
+ ]), ne = E(() => {
2279
+ let e = /* @__PURE__ */ new Map(), t = 0;
2280
+ return N.forEach((n) => {
2281
+ if (n.kind === "group") {
2282
+ t++;
2283
+ return;
2284
+ }
2285
+ let i = n.task, a = z(i.start), o = i.milestone ? a : z(i.end), s = Math.max(o - a, 2), c = r + t * u + u / 2;
2286
+ e.set(i.id, {
2287
+ w: s,
2288
+ x: a,
2289
+ y: c
2290
+ }), t++;
2291
+ }), e;
2292
+ }, [
2293
+ N,
2294
+ z,
2295
+ r,
2296
+ u
2297
+ ]), B = E(() => {
2298
+ if (!m) return null;
2299
+ let e = /* @__PURE__ */ new Date();
2300
+ e.setHours(12, 0, 0, 0);
2301
+ let t = e.getTime();
2302
+ return t < F || t > te ? null : (t - F) / L * I;
2303
+ }, [
2304
+ m,
2305
+ F,
2306
+ te,
2307
+ L,
2308
+ I
2309
+ ]), V = a ?? r + N.length * u + 8, H = Math.round(u * .56), re = Math.round((u - H) / 2), ie = w((e, t, r) => {
2310
+ if (!n) return;
2311
+ r.preventDefault(), r.stopPropagation();
2312
+ let i = h.find((t) => t.id === e);
2313
+ i !== void 0 && (S({
2314
+ origEnd: new Date(i.end),
2315
+ origStart: new Date(i.start),
2316
+ startX: r.clientX,
2317
+ taskId: e,
2318
+ type: t
2319
+ }), b(null));
2320
+ }, [n, h]), U = D(0);
2321
+ T(() => {
2322
+ if (x === null) return;
2323
+ let e = (e) => {
2324
+ U.current = e.clientX - x.startX, S((e) => e === null ? null : { ...e });
2325
+ }, t = (e) => {
2326
+ let t = Math.round((e.clientX - x.startX) * R);
2327
+ if (x.type === "move") {
2328
+ let e = new Date(x.origStart.getTime() + t), n = new Date(x.origEnd.getTime() + t);
2329
+ c?.(x.taskId, e, n);
2330
+ } else {
2331
+ let e = Math.max(x.origStart.getTime() + $, x.origEnd.getTime() + t);
2332
+ l?.(x.taskId, new Date(e));
2333
+ }
2334
+ U.current = 0, S(null);
2335
+ };
2336
+ return window.addEventListener("mousemove", e), window.addEventListener("mouseup", t), () => {
2337
+ window.removeEventListener("mousemove", e), window.removeEventListener("mouseup", t);
2338
+ };
2339
+ }, [
2340
+ x,
2341
+ R,
2342
+ c,
2343
+ l
2344
+ ]);
2345
+ let W = E(() => {
2346
+ if (x === null) return null;
2347
+ let e = Math.round(U.current * R);
2348
+ if (x.type === "move") return {
2349
+ end: new Date(x.origEnd.getTime() + e),
2350
+ start: new Date(x.origStart.getTime() + e),
2351
+ taskId: x.taskId
2352
+ };
2353
+ let t = Math.max(x.origStart.getTime() + $, x.origEnd.getTime() + e);
2354
+ return {
2355
+ end: new Date(t),
2356
+ start: x.origStart,
2357
+ taskId: x.taskId
2358
+ };
2359
+ }, [x, R]), G = w((e, t) => {
2360
+ if (x !== null) return;
2361
+ let n = C.current?.getBoundingClientRect();
2362
+ n !== void 0 && b({
2363
+ task: e,
2364
+ x: t.clientX - n.left + 12,
2365
+ y: t.clientY - n.top - 8
2366
+ });
2367
+ }, [x]), ae = w(() => {
2368
+ b(null);
2369
+ }, []), K = bt(g);
2370
+ return /* @__PURE__ */ M("div", {
2371
+ className: t("relative overflow-hidden rounded border border-border bg-bg select-none", e),
2372
+ "data-component": "gantt-chart",
2373
+ ref: C,
2374
+ style: { height: V },
2375
+ children: [
2376
+ /* @__PURE__ */ j("div", {
2377
+ className: "sticky left-0 z-20 border-r border-b border-border bg-surface",
2378
+ style: {
2379
+ height: r,
2380
+ position: "absolute",
2381
+ top: 0,
2382
+ width: o
2383
+ },
2384
+ children: /* @__PURE__ */ j("div", {
2385
+ className: "flex h-full items-center px-3 text-xs font-semibold text-fg-muted",
2386
+ children: "Task"
2387
+ })
2388
+ }),
2389
+ /* @__PURE__ */ j("div", {
2390
+ className: "overflow-x-auto",
2391
+ style: { height: V },
2392
+ children: /* @__PURE__ */ M("div", {
2393
+ style: {
2394
+ minHeight: V,
2395
+ position: "relative",
2396
+ width: ee
2397
+ },
2398
+ children: [
2399
+ /* @__PURE__ */ j("div", {
2400
+ className: "border-b border-border bg-surface",
2401
+ style: {
2402
+ height: r,
2403
+ marginLeft: o,
2404
+ position: "sticky",
2405
+ top: 0,
2406
+ width: I,
2407
+ zIndex: 15
2408
+ },
2409
+ children: /* @__PURE__ */ j("div", {
2410
+ className: "relative flex h-full",
2411
+ children: P.map((e, n) => /* @__PURE__ */ j("div", {
2412
+ className: t("flex shrink-0 items-center justify-center border-r border-border text-[10px] text-fg-muted", n % 2 == 0 ? "bg-surface" : "bg-bg"),
2413
+ style: {
2414
+ height: r,
2415
+ width: K
2416
+ },
2417
+ children: xt(e, g)
2418
+ }, e.getTime()))
2419
+ })
2420
+ }),
2421
+ /* @__PURE__ */ j("div", {
2422
+ className: "sticky left-0 z-10 border-r border-border bg-bg",
2423
+ style: {
2424
+ position: "absolute",
2425
+ top: r,
2426
+ width: o
2427
+ },
2428
+ children: N.map((e, n) => e.kind === "group" ? /* @__PURE__ */ M("button", {
2429
+ className: t("flex w-full items-center gap-1.5 border-b border-border bg-surface/60 px-3 text-xs font-semibold text-fg", i),
2430
+ onClick: () => k(e.label),
2431
+ style: { height: u },
2432
+ type: "button",
2433
+ children: [/* @__PURE__ */ j("span", {
2434
+ className: "text-[10px] text-fg-muted transition-transform",
2435
+ style: { transform: e.collapsed ? "rotate(-90deg)" : "rotate(0deg)" },
2436
+ children: "▼"
2437
+ }), e.label]
2438
+ }, `group-${e.label}`) : /* @__PURE__ */ j("div", {
2439
+ className: t("flex items-center border-b border-border px-3 text-xs text-fg", n % 2 == 0 ? "bg-bg" : "bg-surface/30"),
2440
+ style: { height: u },
2441
+ children: /* @__PURE__ */ j("span", {
2442
+ className: "truncate",
2443
+ children: e.task.label
2444
+ })
2445
+ }, e.task.id))
2446
+ }),
2447
+ /* @__PURE__ */ M("div", {
2448
+ style: {
2449
+ left: o,
2450
+ position: "absolute",
2451
+ top: r,
2452
+ width: I
2453
+ },
2454
+ children: [N.map((e, n) => /* @__PURE__ */ j("div", {
2455
+ className: t("flex border-b border-border", n % 2 == 0 ? "bg-bg" : "bg-surface/30"),
2456
+ style: { height: u },
2457
+ children: P.map((e, t) => /* @__PURE__ */ j("div", {
2458
+ className: "shrink-0 border-r border-border/30",
2459
+ style: {
2460
+ backgroundColor: t % 2 == 0 ? "transparent" : "var(--gds-surface)",
2461
+ height: u,
2462
+ opacity: t % 2 == 0 ? 1 : .15,
2463
+ width: K
2464
+ }
2465
+ }, e.getTime()))
2466
+ }, `row-bg-${n}`)), /* @__PURE__ */ M("svg", {
2467
+ className: "pointer-events-none absolute top-0 left-0",
2468
+ "data-testid": "gantt-svg",
2469
+ height: N.length * u,
2470
+ width: I,
2471
+ children: [
2472
+ f && N.map((e) => {
2473
+ if (e.kind !== "task") return null;
2474
+ let t = e.task;
2475
+ if (t.dependencies === void 0 || t.dependencies.length === 0) return null;
2476
+ let n = ne.get(t.id);
2477
+ return n === void 0 ? null : t.dependencies.map((e) => {
2478
+ let i = ne.get(e);
2479
+ if (i === void 0) return null;
2480
+ let a = i.x + i.w, o = i.y - r, s = n.x, c = n.y - r, l = a + (s - a) / 2;
2481
+ return /* @__PURE__ */ M("g", {
2482
+ "data-dependency": `${e}->${t.id}`,
2483
+ children: [/* @__PURE__ */ j("path", {
2484
+ d: `M ${a} ${o} C ${l} ${o}, ${l} ${c}, ${s} ${c}`,
2485
+ fill: "none",
2486
+ stroke: "var(--gds-fg-muted)",
2487
+ strokeOpacity: .4,
2488
+ strokeWidth: 1.5
2489
+ }), /* @__PURE__ */ j("polygon", {
2490
+ fill: "var(--gds-fg-muted)",
2491
+ fillOpacity: .4,
2492
+ points: `${s},${c} ${s - 5},${c - 3} ${s - 5},${c + 3}`
2493
+ })]
2494
+ }, `dep-${e}-${t.id}`);
2495
+ });
2496
+ }),
2497
+ N.map((e, r) => {
2498
+ if (e.kind !== "task") return null;
2499
+ let i = e.task, a = W !== null && W.taskId === i.id, o = a ? W.start : i.start, c = a ? W.end : i.end, l = z(o), d = z(c), f = r * u + re, m = i.color ?? pt[e.index % pt.length], h = A.has(i.id);
2500
+ if (i.milestone) {
2501
+ let e = H * .5, t = f + H / 2;
2502
+ return /* @__PURE__ */ M("g", {
2503
+ className: "pointer-events-auto cursor-pointer",
2504
+ "data-critical-path": h ? "true" : void 0,
2505
+ "data-milestone": i.id,
2506
+ onClick: () => s?.(i),
2507
+ onMouseEnter: (e) => G(i, e),
2508
+ onMouseLeave: ae,
2509
+ children: [h && /* @__PURE__ */ j("rect", {
2510
+ fill: "var(--gds-danger)",
2511
+ fillOpacity: .25,
2512
+ height: e * 2 + 4,
2513
+ rx: 2,
2514
+ width: e * 2 + 4,
2515
+ x: l - e - 2,
2516
+ y: t - e - 2
2517
+ }), /* @__PURE__ */ j("rect", {
2518
+ fill: m,
2519
+ height: e * 2,
2520
+ rx: 2,
2521
+ transform: `rotate(45 ${l} ${t})`,
2522
+ width: e * 2,
2523
+ x: l - e,
2524
+ y: t - e
2525
+ })]
2526
+ }, i.id);
2527
+ }
2528
+ let g = Math.max(d - l, 2), _ = p && i.progress !== void 0 ? i.progress / 100 * g : 0, v = x !== null && x.taskId === i.id;
2529
+ return /* @__PURE__ */ M("g", {
2530
+ className: t("pointer-events-auto", n ? "cursor-grab" : "cursor-pointer", v && "cursor-grabbing"),
2531
+ "data-critical-path": h ? "true" : void 0,
2532
+ "data-task": i.id,
2533
+ onClick: () => {
2534
+ x === null && s?.(i);
2535
+ },
2536
+ onMouseDown: (e) => ie(i.id, "move", e),
2537
+ onMouseEnter: (e) => G(i, e),
2538
+ onMouseLeave: ae,
2539
+ children: [
2540
+ h && /* @__PURE__ */ j("rect", {
2541
+ "data-testid": `critical-border-${i.id}`,
2542
+ fill: "var(--gds-danger)",
2543
+ height: H,
2544
+ rx: 3,
2545
+ width: 3,
2546
+ x: l,
2547
+ y: f
2548
+ }),
2549
+ /* @__PURE__ */ j("rect", {
2550
+ fill: m,
2551
+ fillOpacity: v ? .5 : .3,
2552
+ height: H,
2553
+ rx: 3,
2554
+ width: g,
2555
+ x: l,
2556
+ y: f
2557
+ }),
2558
+ _ > 0 && /* @__PURE__ */ j("rect", {
2559
+ "data-progress": i.progress,
2560
+ fill: m,
2561
+ fillOpacity: .85,
2562
+ height: H,
2563
+ rx: 3,
2564
+ width: Math.min(_, g),
2565
+ x: l,
2566
+ y: f
2567
+ }),
2568
+ n && !i.milestone && /* @__PURE__ */ j("rect", {
2569
+ className: "cursor-ew-resize",
2570
+ "data-resize-handle": i.id,
2571
+ fill: "transparent",
2572
+ height: H,
2573
+ onMouseDown: (e) => {
2574
+ e.stopPropagation(), ie(i.id, "resize", e);
2575
+ },
2576
+ width: 6,
2577
+ x: l + g - 6,
2578
+ y: f
2579
+ }),
2580
+ i.assignee !== void 0 && /* @__PURE__ */ j("text", {
2581
+ dominantBaseline: "middle",
2582
+ fill: "var(--gds-fg-muted)",
2583
+ fontSize: 9,
2584
+ x: l + g + 6,
2585
+ y: f + H / 2,
2586
+ children: i.assignee
2587
+ })
2588
+ ]
2589
+ }, i.id);
2590
+ }),
2591
+ B !== null && /* @__PURE__ */ j("line", {
2592
+ "data-testid": "today-line",
2593
+ stroke: "var(--gds-danger)",
2594
+ strokeDasharray: "4,3",
2595
+ strokeWidth: 1.5,
2596
+ x1: B,
2597
+ x2: B,
2598
+ y1: 0,
2599
+ y2: N.length * u
2600
+ })
2601
+ ]
2602
+ })]
2603
+ })
2604
+ ]
2605
+ })
2606
+ }),
2607
+ y !== null && /* @__PURE__ */ M("div", {
2608
+ className: "pointer-events-none absolute z-30 rounded border border-border bg-surface px-3 py-2 shadow-lg",
2609
+ style: {
2610
+ left: y.x,
2611
+ top: y.y
2612
+ },
2613
+ children: [
2614
+ /* @__PURE__ */ j("div", {
2615
+ className: "text-xs font-semibold text-fg",
2616
+ children: y.task.label
2617
+ }),
2618
+ /* @__PURE__ */ M("div", {
2619
+ className: "mt-0.5 text-[10px] text-fg-muted",
2620
+ children: [
2621
+ ht(new Date(y.task.start)),
2622
+ " — ",
2623
+ ht(new Date(y.task.end))
2624
+ ]
2625
+ }),
2626
+ y.task.progress !== void 0 && /* @__PURE__ */ M("div", {
2627
+ className: "mt-0.5 text-[10px] text-fg-muted",
2628
+ children: [
2629
+ "Progress: ",
2630
+ y.task.progress,
2631
+ "%"
2632
+ ]
2633
+ }),
2634
+ y.task.assignee !== void 0 && /* @__PURE__ */ M("div", {
2635
+ className: "mt-0.5 text-[10px] text-fg-muted",
2636
+ children: ["Assignee: ", y.task.assignee]
2637
+ })
2638
+ ]
2639
+ })
2640
+ ]
1656
2641
  });
1657
- }), st = C(function({ className: e, headers: n, maxValue: r, rows: i, ...a }, o) {
2642
+ }
2643
+ //#endregion
2644
+ //#region src/l5-organisms/heatmap-table.tsx
2645
+ var wt = C(function({ className: e, headers: n, maxValue: r, rows: i, ...a }, o) {
1658
2646
  let s = r ?? Math.max(1, ...i.flatMap((e) => e.values));
1659
2647
  return /* @__PURE__ */ M("table", {
1660
2648
  className: t("w-full border-collapse text-xs", e),
@@ -1676,7 +2664,7 @@ var ot = C(function({ fields: e, values: n, onChange: r, className: i }, a) {
1676
2664
  }, t);
1677
2665
  })] }, e.label)) })]
1678
2666
  });
1679
- }), ct = C(function({ src: e, alt: n = "", thumbnailClassName: r, className: a }, o) {
2667
+ }), Tt = C(function({ src: e, alt: n = "", thumbnailClassName: r, className: a }, o) {
1680
2668
  let [s, l] = O(!1), u = w(() => l(!0), []), d = w(() => l(!1), []);
1681
2669
  return T(() => {
1682
2670
  if (!s) return;
@@ -1733,7 +2721,7 @@ var ot = C(function({ fields: e, values: n, onChange: r, className: i }, a) {
1733
2721
  })]
1734
2722
  }))]
1735
2723
  });
1736
- }), lt = C(function({ children: e, className: n, hasMore: r, loader: i, loading: a, onLoadMore: o, threshold: s = .8, ...c }, l) {
2724
+ }), Et = C(function({ children: e, className: n, hasMore: r, loader: i, loading: a, onLoadMore: o, threshold: s = .8, ...c }, l) {
1737
2725
  let u = D(null);
1738
2726
  return T(() => {
1739
2727
  let e = u.current;
@@ -1769,10 +2757,10 @@ var ot = C(function({ fields: e, values: n, onChange: r, className: i }, a) {
1769
2757
  });
1770
2758
  //#endregion
1771
2759
  //#region src/l5-organisms/json-node.tsx
1772
- function ut(e, t) {
2760
+ function Dt(e, t) {
1773
2761
  return e === !0 ? !0 : e === !1 ? !1 : t < e;
1774
2762
  }
1775
- function dt({ value: e }) {
2763
+ function Ot({ value: e }) {
1776
2764
  return /* @__PURE__ */ M("span", {
1777
2765
  className: "text-success",
1778
2766
  children: [
@@ -1782,26 +2770,26 @@ function dt({ value: e }) {
1782
2770
  ]
1783
2771
  });
1784
2772
  }
1785
- function ft({ value: e }) {
2773
+ function kt({ value: e }) {
1786
2774
  return /* @__PURE__ */ j("span", {
1787
2775
  className: "text-accent",
1788
2776
  children: String(e)
1789
2777
  });
1790
2778
  }
1791
- function pt({ value: e }) {
2779
+ function At({ value: e }) {
1792
2780
  return /* @__PURE__ */ j("span", {
1793
2781
  className: "text-[#c084fc]",
1794
2782
  children: String(e)
1795
2783
  });
1796
2784
  }
1797
- function mt() {
2785
+ function jt() {
1798
2786
  return /* @__PURE__ */ j("span", {
1799
2787
  className: "text-fg-muted",
1800
2788
  children: "null"
1801
2789
  });
1802
2790
  }
1803
- function W({ value: e, keyName: t, depth: n, defaultExpanded: r }) {
1804
- let [i, a] = O(() => ut(r, n)), o = w(() => {
2791
+ function Mt({ value: e, keyName: t, depth: n, defaultExpanded: r }) {
2792
+ let [i, a] = O(() => Dt(r, n)), o = w(() => {
1805
2793
  a((e) => !e);
1806
2794
  }, []), s = t === void 0 ? null : /* @__PURE__ */ M("span", {
1807
2795
  className: "text-fg",
@@ -1809,19 +2797,19 @@ function W({ value: e, keyName: t, depth: n, defaultExpanded: r }) {
1809
2797
  });
1810
2798
  if (e == null) return /* @__PURE__ */ M("div", {
1811
2799
  style: { paddingLeft: `${n * 16}px` },
1812
- children: [s, /* @__PURE__ */ j(mt, {})]
2800
+ children: [s, /* @__PURE__ */ j(jt, {})]
1813
2801
  });
1814
2802
  if (typeof e == "string") return /* @__PURE__ */ M("div", {
1815
2803
  style: { paddingLeft: `${n * 16}px` },
1816
- children: [s, /* @__PURE__ */ j(dt, { value: e })]
2804
+ children: [s, /* @__PURE__ */ j(Ot, { value: e })]
1817
2805
  });
1818
2806
  if (typeof e == "number") return /* @__PURE__ */ M("div", {
1819
2807
  style: { paddingLeft: `${n * 16}px` },
1820
- children: [s, /* @__PURE__ */ j(ft, { value: e })]
2808
+ children: [s, /* @__PURE__ */ j(kt, { value: e })]
1821
2809
  });
1822
2810
  if (typeof e == "boolean") return /* @__PURE__ */ M("div", {
1823
2811
  style: { paddingLeft: `${n * 16}px` },
1824
- children: [s, /* @__PURE__ */ j(pt, { value: e })]
2812
+ children: [s, /* @__PURE__ */ j(At, { value: e })]
1825
2813
  });
1826
2814
  if (Array.isArray(e)) return e.length === 0 ? /* @__PURE__ */ M("div", {
1827
2815
  style: { paddingLeft: `${n * 16}px` },
@@ -1836,7 +2824,7 @@ function W({ value: e, keyName: t, depth: n, defaultExpanded: r }) {
1836
2824
  children: "["
1837
2825
  })]
1838
2826
  }),
1839
- e.map((e, t) => /* @__PURE__ */ j(W, {
2827
+ e.map((e, t) => /* @__PURE__ */ j(Mt, {
1840
2828
  value: e,
1841
2829
  depth: n + 1,
1842
2830
  defaultExpanded: r
@@ -1873,7 +2861,7 @@ function W({ value: e, keyName: t, depth: n, defaultExpanded: r }) {
1873
2861
  children: "{"
1874
2862
  })]
1875
2863
  }),
1876
- t.map(([e, t]) => /* @__PURE__ */ j(W, {
2864
+ t.map(([e, t]) => /* @__PURE__ */ j(Mt, {
1877
2865
  value: t,
1878
2866
  keyName: e,
1879
2867
  depth: n + 1,
@@ -1906,12 +2894,12 @@ function W({ value: e, keyName: t, depth: n, defaultExpanded: r }) {
1906
2894
  }
1907
2895
  //#endregion
1908
2896
  //#region src/l5-organisms/json-viewer.tsx
1909
- var ht = C(function({ data: e, defaultExpanded: n = 2, glass: r, className: i }, a) {
2897
+ var Nt = C(function({ data: e, defaultExpanded: n = 2, glass: r, className: i }, a) {
1910
2898
  return /* @__PURE__ */ j("div", {
1911
2899
  ref: a,
1912
2900
  className: t("overflow-auto gds-radius-popover border border-border gds-pad-x gds-pad-y font-mono text-xs leading-5", r === !0 && "bg-white/5 backdrop-blur-md", r !== !0 && "bg-bg-secondary", i),
1913
2901
  "data-component": "json-viewer",
1914
- children: /* @__PURE__ */ j(W, {
2902
+ children: /* @__PURE__ */ j(Mt, {
1915
2903
  value: e,
1916
2904
  depth: 0,
1917
2905
  defaultExpanded: n
@@ -1920,13 +2908,13 @@ var ht = C(function({ data: e, defaultExpanded: n = 2, glass: r, className: i },
1920
2908
  });
1921
2909
  //#endregion
1922
2910
  //#region src/l5-organisms/kanban.tsx
1923
- function gt({ label: e }) {
2911
+ function Pt({ label: e }) {
1924
2912
  return /* @__PURE__ */ j("span", {
1925
2913
  className: "inline-block gds-radius-badge bg-bg-tertiary gds-pad-x-sm py-0.5 gds-text-caption font-medium text-fg-muted",
1926
2914
  children: e
1927
2915
  });
1928
2916
  }
1929
- function _t({ item: e }) {
2917
+ function Ft({ item: e }) {
1930
2918
  return /* @__PURE__ */ M("div", {
1931
2919
  className: "gds-radius-popover border border-border bg-surface gds-pad-x gds-pad-y transition-colors hover:border-fg-muted/30",
1932
2920
  children: [
@@ -1940,12 +2928,12 @@ function _t({ item: e }) {
1940
2928
  }),
1941
2929
  e.tags !== void 0 && e.tags.length > 0 && /* @__PURE__ */ j("div", {
1942
2930
  className: "mt-2 flex flex-wrap gds-gap-xs",
1943
- children: e.tags.map((e) => /* @__PURE__ */ j(gt, { label: e }, e))
2931
+ children: e.tags.map((e) => /* @__PURE__ */ j(Pt, { label: e }, e))
1944
2932
  })
1945
2933
  ]
1946
2934
  });
1947
2935
  }
1948
- function vt({ column: e, renderItem: t }) {
2936
+ function It({ column: e, renderItem: t }) {
1949
2937
  return /* @__PURE__ */ M("div", {
1950
2938
  className: "flex w-72 shrink-0 flex-col gds-radius-popover bg-bg-secondary/50 gds-pad-x-sm gds-pad-y",
1951
2939
  children: [/* @__PURE__ */ M("div", {
@@ -1959,19 +2947,19 @@ function vt({ column: e, renderItem: t }) {
1959
2947
  })]
1960
2948
  }), /* @__PURE__ */ M("div", {
1961
2949
  className: "flex flex-1 flex-col gds-gap-sm overflow-y-auto",
1962
- children: [e.items.map((e) => /* @__PURE__ */ j("div", { children: t === void 0 ? /* @__PURE__ */ j(_t, { item: e }) : t(e) }, e.id)), e.items.length === 0 && /* @__PURE__ */ j("div", {
2950
+ children: [e.items.map((e) => /* @__PURE__ */ j("div", { children: t === void 0 ? /* @__PURE__ */ j(Ft, { item: e }) : t(e) }, e.id)), e.items.length === 0 && /* @__PURE__ */ j("div", {
1963
2951
  className: "py-8 text-center gds-text-body text-fg-muted/40",
1964
2952
  children: "No items"
1965
2953
  })]
1966
2954
  })]
1967
2955
  });
1968
2956
  }
1969
- var yt = C(function({ columns: e, renderItem: n, className: r }, i) {
2957
+ var Lt = C(function({ columns: e, renderItem: n, className: r }, i) {
1970
2958
  return /* @__PURE__ */ j("div", {
1971
2959
  ref: i,
1972
2960
  className: t("flex gds-gap overflow-x-auto p-1", r),
1973
2961
  "data-component": "kanban",
1974
- children: e.map((e) => /* @__PURE__ */ j(vt, {
2962
+ children: e.map((e) => /* @__PURE__ */ j(It, {
1975
2963
  column: e,
1976
2964
  renderItem: n
1977
2965
  }, e.id))
@@ -1979,22 +2967,22 @@ var yt = C(function({ columns: e, renderItem: n, className: r }, i) {
1979
2967
  });
1980
2968
  //#endregion
1981
2969
  //#region src/l5-organisms/markdown-parser.ts
1982
- function bt(e) {
2970
+ function Rt(e) {
1983
2971
  return e.replace(/<script[\s\S]*?<\/script>/gi, "").replace(/<script[^>]*>/gi, "").replace(/\son\w+\s*=\s*"[^"]*"/gi, "").replace(/\son\w+\s*=\s*'[^']*'/gi, "").replace(/\son\w+\s*=\s*[^\s>]*/gi, "");
1984
2972
  }
1985
- function G(e) {
2973
+ function zt(e) {
1986
2974
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1987
2975
  }
1988
- function K(e) {
1989
- let t = G(e);
2976
+ function Bt(e) {
2977
+ let t = zt(e);
1990
2978
  return t = t.replace(/`([^`]+)`/g, "<code class=\"rounded bg-bg-tertiary px-1 py-0.5 font-mono text-[0.85em]\">$1</code>"), t = t.replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>"), t = t.replace(/\*([^*]+)\*/g, "<em>$1</em>"), t = t.replace(/\[([^\]]+)\]\(([^)]+)\)/g, "<a href=\"$2\" class=\"text-accent hover:underline\" target=\"_blank\" rel=\"noopener noreferrer\">$1</a>"), t;
1991
2979
  }
1992
- function xt(e) {
2980
+ function Vt(e) {
1993
2981
  let t = e.split("\n"), n = [], r = !1, i = [], a = !1;
1994
2982
  for (let e = 0; e < t.length; e++) {
1995
2983
  let o = t[e];
1996
2984
  if (o.trimStart().startsWith("```")) {
1997
- r ? (n.push(`<pre class="overflow-auto rounded-lg bg-bg-tertiary p-3 font-mono text-xs"><code>${G(i.join("\n"))}</code></pre>`), i = [], r = !1) : (a &&= (n.push("</ul>"), !1), r = !0);
2985
+ r ? (n.push(`<pre class="overflow-auto rounded-lg bg-bg-tertiary p-3 font-mono text-xs"><code>${zt(i.join("\n"))}</code></pre>`), i = [], r = !1) : (a &&= (n.push("</ul>"), !1), r = !0);
1998
2986
  continue;
1999
2987
  }
2000
2988
  if (r) {
@@ -2023,35 +3011,35 @@ function xt(e) {
2023
3011
  "mt-2 mb-1",
2024
3012
  "mt-2 mb-1",
2025
3013
  "mt-2 mb-1"
2026
- ][e - 1]}">${K(s[2])}</h${e}>`);
3014
+ ][e - 1]}">${Bt(s[2])}</h${e}>`);
2027
3015
  continue;
2028
3016
  }
2029
3017
  if (o.trimStart().startsWith("> ")) {
2030
3018
  a &&= (n.push("</ul>"), !1);
2031
3019
  let e = o.replace(/^>\s*/, "");
2032
- n.push(`<blockquote class="border-l-2 border-accent/30 pl-3 text-fg-muted italic">${K(e)}</blockquote>`);
3020
+ n.push(`<blockquote class="border-l-2 border-accent/30 pl-3 text-fg-muted italic">${Bt(e)}</blockquote>`);
2033
3021
  continue;
2034
3022
  }
2035
3023
  let c = o.match(/^(\s*)[-*]\s+(.+)$/);
2036
3024
  if (c !== null) {
2037
- a ||= (n.push("<ul class=\"list-disc pl-5 space-y-0.5\">"), !0), n.push(`<li>${K(c[2])}</li>`);
3025
+ a ||= (n.push("<ul class=\"list-disc pl-5 space-y-0.5\">"), !0), n.push(`<li>${Bt(c[2])}</li>`);
2038
3026
  continue;
2039
3027
  }
2040
- a &&= (n.push("</ul>"), !1), o.trim() !== "" && n.push(`<p class="mb-2">${K(o)}</p>`);
3028
+ a &&= (n.push("</ul>"), !1), o.trim() !== "" && n.push(`<p class="mb-2">${Bt(o)}</p>`);
2041
3029
  }
2042
- return r && n.push(`<pre class="overflow-auto rounded-lg bg-bg-tertiary p-3 font-mono text-xs"><code>${G(i.join("\n"))}</code></pre>`), a && n.push("</ul>"), bt(n.join("\n"));
3030
+ return r && n.push(`<pre class="overflow-auto rounded-lg bg-bg-tertiary p-3 font-mono text-xs"><code>${zt(i.join("\n"))}</code></pre>`), a && n.push("</ul>"), Rt(n.join("\n"));
2043
3031
  }
2044
3032
  //#endregion
2045
3033
  //#region src/l5-organisms/markdown-preview.tsx
2046
- var q = C(function({ content: e, glass: n, className: r }, i) {
2047
- let a = E(() => xt(e), [e]);
3034
+ var Ht = C(function({ content: e, glass: n, className: r }, i) {
3035
+ let a = E(() => Vt(e), [e]);
2048
3036
  return /* @__PURE__ */ j("div", {
2049
3037
  ref: i,
2050
3038
  className: t("gds-radius-popover gds-pad-x gds-pad-y text-sm text-fg leading-relaxed", n === !0 && "bg-white/5 backdrop-blur-md", r),
2051
3039
  "data-component": "markdown-preview",
2052
3040
  dangerouslySetInnerHTML: { __html: a }
2053
3041
  });
2054
- }), St = C(function({ value: e, onChange: n, placeholder: r, className: i }, a) {
3042
+ }), Ut = C(function({ value: e, onChange: n, placeholder: r, className: i }, a) {
2055
3043
  let o = w((e) => n(e.target.value), [n]);
2056
3044
  return /* @__PURE__ */ M("div", {
2057
3045
  ref: a,
@@ -2067,14 +3055,14 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2067
3055
  /* @__PURE__ */ j("div", { className: "w-px bg-border" }),
2068
3056
  /* @__PURE__ */ j("div", {
2069
3057
  className: "flex-1 overflow-auto min-h-[200px]",
2070
- children: /* @__PURE__ */ j(q, {
3058
+ children: /* @__PURE__ */ j(Ht, {
2071
3059
  content: e,
2072
3060
  className: "h-full"
2073
3061
  })
2074
3062
  })
2075
3063
  ]
2076
3064
  });
2077
- }), Ct = C(function({ children: e, columns: n = 3, gap: r = 16, className: i }, a) {
3065
+ }), Wt = C(function({ children: e, columns: n = 3, gap: r = 16, className: i }, a) {
2078
3066
  return /* @__PURE__ */ j("div", {
2079
3067
  ref: a,
2080
3068
  className: t(i),
@@ -2091,7 +3079,7 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2091
3079
  children: e
2092
3080
  }))
2093
3081
  });
2094
- }), wt = C(function({ className: e, emptyMessage: r = "No notifications", glass: i, notifications: a, onClear: o, onClose: s, ...c }, l) {
3082
+ }), Gt = C(function({ className: e, emptyMessage: r = "No notifications", glass: i, notifications: a, onClear: o, onClose: s, ...c }, l) {
2095
3083
  let u = a.length > 0;
2096
3084
  return /* @__PURE__ */ M("div", {
2097
3085
  ref: l,
@@ -2128,25 +3116,25 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2128
3116
  })
2129
3117
  })]
2130
3118
  });
2131
- }), Tt = {
3119
+ }), Kt = {
2132
3120
  "top-right": "top-4 right-4",
2133
3121
  "bottom-right": "bottom-4 right-4"
2134
- }, Et = (e) => e === "info" ? "default" : e ?? "default", Dt = C(function({ toasts: e, onClose: n, position: r = "top-right", className: i }, a) {
3122
+ }, qt = (e) => e === "info" ? "default" : e ?? "default", Jt = C(function({ toasts: e, onClose: n, position: r = "top-right", className: i }, a) {
2135
3123
  return T(() => {
2136
3124
  let t = e.map((e) => window.setTimeout(() => n(e.id), 5e3));
2137
3125
  return () => t.forEach((e) => window.clearTimeout(e));
2138
3126
  }, [e, n]), e.length === 0 ? null : c(/* @__PURE__ */ j("div", {
2139
3127
  ref: a,
2140
- className: t("fixed z-50 flex w-80 flex-col gap-2", Tt[r], i),
3128
+ className: t("fixed z-50 flex w-80 flex-col gap-2", Kt[r], i),
2141
3129
  "data-component": "notification-toast",
2142
3130
  children: e.map((e) => /* @__PURE__ */ j(b, {
2143
3131
  title: e.title,
2144
3132
  description: e.message,
2145
- variant: Et(e.variant),
3133
+ variant: qt(e.variant),
2146
3134
  onClose: () => n(e.id)
2147
3135
  }, e.id))
2148
3136
  }));
2149
- }), Ot = C(function({ children: e, speed: n = .5, direction: r = "vertical", disabled: i = !1, className: a }, o) {
3137
+ }), Yt = C(function({ children: e, speed: n = .5, direction: r = "vertical", disabled: i = !1, className: a }, o) {
2150
3138
  let s = D(null), [c, l] = O(0), u = D(0), d = w(() => {
2151
3139
  u.current === 0 && (u.current = requestAnimationFrame(() => {
2152
3140
  let e = s.current;
@@ -2176,7 +3164,7 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2176
3164
  "data-component": "parallax",
2177
3165
  children: e
2178
3166
  });
2179
- }), kt = C(function({ className: e, currency: n = "¥", deductions: r, gross: i, net: a, period: o, ...s }, c) {
3167
+ }), Xt = C(function({ className: e, currency: n = "¥", deductions: r, gross: i, net: a, period: o, ...s }, c) {
2180
3168
  let l = (e) => `${n}${e.toLocaleString()}`;
2181
3169
  return /* @__PURE__ */ M("div", {
2182
3170
  className: t("gds-ctx gds-radius-card border border-border bg-surface gds-pad", e),
@@ -2221,7 +3209,7 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2221
3209
  })
2222
3210
  ]
2223
3211
  });
2224
- }), At = C(function({ roles: e, permissions: n, values: r, onChange: i, readonly: a, className: o, ...s }, c) {
3212
+ }), Zt = C(function({ roles: e, permissions: n, values: r, onChange: i, readonly: a, className: o, ...s }, c) {
2225
3213
  return /* @__PURE__ */ j("div", {
2226
3214
  ref: c,
2227
3215
  className: t("overflow-auto", o),
@@ -2256,7 +3244,7 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2256
3244
  })] }, t)) })]
2257
3245
  })
2258
3246
  });
2259
- }), jt = C(function({ milestones: e, className: n }, r) {
3247
+ }), Qt = C(function({ milestones: e, className: n }, r) {
2260
3248
  let i = e.reduce((e, t, n) => t.completed ? n : e, -1);
2261
3249
  return /* @__PURE__ */ j("div", {
2262
3250
  ref: r,
@@ -2290,7 +3278,7 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2290
3278
  ]
2291
3279
  })
2292
3280
  });
2293
- }), Mt = C(function({ className: e, onChange: n, properties: r }, i) {
3281
+ }), $t = C(function({ className: e, onChange: n, properties: r }, i) {
2294
3282
  return /* @__PURE__ */ j("div", {
2295
3283
  ref: i,
2296
3284
  className: t("gds-radius-popover border border-border overflow-hidden", e),
@@ -2312,7 +3300,7 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2312
3300
  })]
2313
3301
  }, e.key))
2314
3302
  });
2315
- }), Nt = C(function({ className: e, columns: n = 4, links: r, ...a }, o) {
3303
+ }), en = C(function({ className: e, columns: n = 4, links: r, ...a }, o) {
2316
3304
  return /* @__PURE__ */ j("div", {
2317
3305
  className: t("grid gap-3", e),
2318
3306
  "data-component": "quick-links",
@@ -2332,7 +3320,7 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2332
3320
  })]
2333
3321
  }, e.label))
2334
3322
  });
2335
- }), Pt = C(function({ className: e, items: n, title: r = "Recent Activity", ...i }, a) {
3323
+ }), tn = C(function({ className: e, items: n, title: r = "Recent Activity", ...i }, a) {
2336
3324
  return /* @__PURE__ */ M("div", {
2337
3325
  className: t("flex flex-col", e),
2338
3326
  "data-component": "recent-activity",
@@ -2364,27 +3352,99 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2364
3352
  })]
2365
3353
  })]
2366
3354
  });
2367
- }), Ft = {
3355
+ }), nn = {
2368
3356
  sm: "sm:flex-row",
2369
3357
  md: "md:flex-row",
2370
3358
  lg: "lg:flex-row"
2371
- }, It = {
3359
+ }, rn = {
2372
3360
  sm: "gap-2",
2373
3361
  default: "gap-4",
2374
3362
  lg: "gap-6"
2375
- }, Lt = {
3363
+ }, an = {
2376
3364
  start: "items-start",
2377
3365
  center: "items-center",
2378
3366
  end: "items-end",
2379
3367
  stretch: "items-stretch"
2380
- }, Rt = C(function({ children: e, breakpoint: n = "md", gap: r = "default", align: i = "stretch", className: a }, o) {
3368
+ }, on = C(function({ children: e, breakpoint: n = "md", gap: r = "default", align: i = "stretch", className: a }, o) {
2381
3369
  return /* @__PURE__ */ j("div", {
2382
3370
  ref: o,
2383
- className: t("flex flex-col", Ft[n], It[r], Lt[i], a),
3371
+ className: t("flex flex-col", nn[n], rn[r], an[i], a),
2384
3372
  "data-component": "responsive-stack",
2385
3373
  children: e
2386
3374
  });
2387
- }), J = C(function({ striped: e, compact: r, hoverable: i = !0, glass: a, className: o, children: s, ...c }, l) {
3375
+ }), sn = C(function({ className: e, ...t }, n) {
3376
+ return /* @__PURE__ */ j("thead", {
3377
+ ref: n,
3378
+ className: e,
3379
+ ...t
3380
+ });
3381
+ }), cn = C(function({ className: e, ...t }, n) {
3382
+ return /* @__PURE__ */ j("tbody", {
3383
+ ref: n,
3384
+ className: e,
3385
+ ...t
3386
+ });
3387
+ }), ln = C(function({ className: e, ...n }, r) {
3388
+ return /* @__PURE__ */ j("tfoot", {
3389
+ ref: r,
3390
+ className: t("bg-bg-secondary font-semibold", e),
3391
+ ...n
3392
+ });
3393
+ }), un = C(function({ className: e, ...n }, r) {
3394
+ return /* @__PURE__ */ j("tr", {
3395
+ ref: r,
3396
+ className: t("transition-colors", e),
3397
+ ...n
3398
+ });
3399
+ }), dn = C(function({ className: e, ...n }, r) {
3400
+ return /* @__PURE__ */ j("th", {
3401
+ ref: r,
3402
+ className: t("border border-border bg-bg-secondary px-2.5 py-1.5 text-left text-xs font-semibold tracking-wide whitespace-nowrap text-fg-muted", e),
3403
+ ...n
3404
+ });
3405
+ }), fn = C(function({ className: e, ...n }, r) {
3406
+ return /* @__PURE__ */ j("td", {
3407
+ ref: r,
3408
+ className: t("border border-border/60 px-2.5 py-1.5 text-xs whitespace-nowrap text-fg", e),
3409
+ ...n
3410
+ });
3411
+ }), pn = C(function({ className: e, ...n }, r) {
3412
+ return /* @__PURE__ */ j("th", {
3413
+ ref: r,
3414
+ className: t("border border-border bg-bg-secondary px-2.5 py-1.5 text-right text-xs font-semibold tracking-wide whitespace-nowrap text-fg-muted", e),
3415
+ ...n
3416
+ });
3417
+ }), mn = C(function({ className: e, ...n }, r) {
3418
+ return /* @__PURE__ */ j("td", {
3419
+ ref: r,
3420
+ className: t("border border-border/60 px-2.5 py-1.5 text-right text-xs tabular-nums whitespace-nowrap text-fg", e),
3421
+ ...n
3422
+ });
3423
+ }), hn = C(function({ className: e, ...n }, r) {
3424
+ return /* @__PURE__ */ j("td", {
3425
+ ref: r,
3426
+ className: t("border border-border/60 px-2.5 py-1.5 text-xs whitespace-nowrap text-fg-muted", e),
3427
+ ...n
3428
+ });
3429
+ }), gn = C(function({ className: e, ...n }, r) {
3430
+ return /* @__PURE__ */ j("td", {
3431
+ ref: r,
3432
+ className: t("border border-border bg-bg-secondary px-2.5 py-1.5 text-xs font-semibold whitespace-nowrap text-fg", e),
3433
+ ...n
3434
+ });
3435
+ }), _n = C(function({ className: e, ...n }, r) {
3436
+ return /* @__PURE__ */ j("caption", {
3437
+ ref: r,
3438
+ className: t("mt-2 text-xs text-fg-muted", e),
3439
+ ...n
3440
+ });
3441
+ }), vn = C(function({ className: e, ...n }, r) {
3442
+ return /* @__PURE__ */ j("tfoot", {
3443
+ ref: r,
3444
+ className: t("bg-bg-secondary font-semibold", e),
3445
+ ...n
3446
+ });
3447
+ }), yn = C(function({ striped: e, compact: r, hoverable: i = !0, glass: a, className: o, children: s, ...c }, l) {
2388
3448
  return /* @__PURE__ */ j("div", {
2389
3449
  "data-component": "table",
2390
3450
  "data-striped": e ?? void 0,
@@ -2397,15 +3457,15 @@ var q = C(function({ content: e, glass: n, className: r }, i) {
2397
3457
  children: s
2398
3458
  })
2399
3459
  });
2400
- }), Y = typeof window < "u" ? window.matchMedia("(max-width: 1023px)") : null;
2401
- function zt(e) {
2402
- return Y?.addEventListener("change", e), () => Y?.removeEventListener("change", e);
3460
+ }), bn = typeof window < "u" ? window.matchMedia("(max-width: 1023px)") : null;
3461
+ function xn(e) {
3462
+ return bn?.addEventListener("change", e), () => bn?.removeEventListener("change", e);
2403
3463
  }
2404
- function Bt() {
2405
- return Y?.matches ?? !1;
3464
+ function Sn() {
3465
+ return bn?.matches ?? !1;
2406
3466
  }
2407
- var Vt = C(function({ columns: e, data: r, glass: i, className: a, ...o }, s) {
2408
- return k(zt, Bt, () => !1) ? /* @__PURE__ */ j("div", {
3467
+ var Cn = C(function({ columns: e, data: r, glass: i, className: a, ...o }, s) {
3468
+ return k(xn, Sn, () => !1) ? /* @__PURE__ */ j("div", {
2409
3469
  className: t("flex flex-col gds-gap", a),
2410
3470
  "data-component": "responsive-table",
2411
3471
  "data-mode": "cards",
@@ -2429,7 +3489,7 @@ var Vt = C(function({ columns: e, data: r, glass: i, className: a, ...o }, s) {
2429
3489
  "data-mode": "table",
2430
3490
  ref: s,
2431
3491
  ...o,
2432
- children: /* @__PURE__ */ M(J, {
3492
+ children: /* @__PURE__ */ M(yn, {
2433
3493
  glass: i,
2434
3494
  className: a,
2435
3495
  children: [/* @__PURE__ */ j("thead", { children: /* @__PURE__ */ j("tr", { children: e.map((e) => /* @__PURE__ */ j("th", { children: e.header }, e.key)) }) }), /* @__PURE__ */ j("tbody", { children: r.map((t, n) => /* @__PURE__ */ j("tr", { children: e.map((e) => /* @__PURE__ */ j("td", { children: String(t[e.key] ?? "") }, e.key)) }, n)) })]
@@ -2438,7 +3498,7 @@ var Vt = C(function({ columns: e, data: r, glass: i, className: a, ...o }, s) {
2438
3498
  });
2439
3499
  //#endregion
2440
3500
  //#region src/l5-organisms/rich-select-list.tsx
2441
- function Ht({ options: e, value: r, focusedIndex: i, glass: a, onSelect: o, onFocus: s }) {
3501
+ function wn({ options: e, value: r, focusedIndex: i, glass: a, onSelect: o, onFocus: s }) {
2442
3502
  return /* @__PURE__ */ j("div", {
2443
3503
  role: "listbox",
2444
3504
  className: t("absolute z-50 mt-1 w-full gds-radius-popover border border-border bg-bg shadow-lg overflow-auto max-h-60", n(a)),
@@ -2474,7 +3534,7 @@ function Ht({ options: e, value: r, focusedIndex: i, glass: a, onSelect: o, onFo
2474
3534
  }
2475
3535
  //#endregion
2476
3536
  //#region src/l5-organisms/rich-select.tsx
2477
- var Ut = C(function({ options: e, value: r, onChange: a, placeholder: o, disabled: s, error: c, glass: l, className: d }, f) {
3537
+ var Tn = C(function({ options: e, value: r, onChange: a, placeholder: o, disabled: s, error: c, glass: l, className: d }, f) {
2478
3538
  let [p, m] = O(!1), [h, g] = O(-1), _ = D(null), v = e.find((e) => e.value === r);
2479
3539
  T(() => {
2480
3540
  if (!p) return;
@@ -2536,7 +3596,7 @@ var Ut = C(function({ options: e, value: r, onChange: a, placeholder: o, disable
2536
3596
  strokeLinejoin: "round",
2537
3597
  children: /* @__PURE__ */ j("path", { d: "M3 4.5l3 3 3-3" })
2538
3598
  })]
2539
- }), p && /* @__PURE__ */ j(Ht, {
3599
+ }), p && /* @__PURE__ */ j(wn, {
2540
3600
  options: e,
2541
3601
  value: r,
2542
3602
  focusedIndex: h,
@@ -2545,7 +3605,7 @@ var Ut = C(function({ options: e, value: r, onChange: a, placeholder: o, disable
2545
3605
  onFocus: g
2546
3606
  })]
2547
3607
  });
2548
- }), Wt = C(function({ results: e, query: n, total: r, onSelect: i, className: s }, c) {
3608
+ }), En = C(function({ results: e, query: n, total: r, onSelect: i, className: s }, c) {
2549
3609
  return /* @__PURE__ */ M("div", {
2550
3610
  ref: c,
2551
3611
  className: t("flex flex-col", s),
@@ -2580,17 +3640,17 @@ var Ut = C(function({ options: e, value: r, onChange: a, placeholder: o, disable
2580
3640
  })]
2581
3641
  }, e.id))]
2582
3642
  });
2583
- }), Gt = {
3643
+ }), Dn = {
2584
3644
  healthy: "bg-success",
2585
3645
  warning: "bg-warning",
2586
3646
  error: "bg-danger",
2587
3647
  offline: "bg-fg-muted/40"
2588
- }, Kt = {
3648
+ }, On = {
2589
3649
  healthy: "Healthy",
2590
3650
  warning: "Warning",
2591
3651
  error: "Error",
2592
3652
  offline: "Offline"
2593
- }, qt = C(function({ name: e, description: n, status: r, metrics: i, tags: a, url: o, className: s }, c) {
3653
+ }, kn = C(function({ name: e, description: n, status: r, metrics: i, tags: a, url: o, className: s }, c) {
2594
3654
  return /* @__PURE__ */ M("div", {
2595
3655
  ref: c,
2596
3656
  className: t("gds-ctx gds-radius-card border border-border bg-surface gds-pad", s),
@@ -2600,14 +3660,14 @@ var Ut = C(function({ options: e, value: r, onChange: a, placeholder: o, disable
2600
3660
  /* @__PURE__ */ M("div", {
2601
3661
  className: "flex items-center gap-2",
2602
3662
  children: [
2603
- /* @__PURE__ */ j("span", { className: t("h-2.5 w-2.5 rounded-full", Gt[r]) }),
3663
+ /* @__PURE__ */ j("span", { className: t("h-2.5 w-2.5 rounded-full", Dn[r]) }),
2604
3664
  /* @__PURE__ */ j("span", {
2605
3665
  className: "font-semibold text-fg",
2606
3666
  children: e
2607
3667
  }),
2608
3668
  /* @__PURE__ */ j("span", {
2609
3669
  className: "ml-auto text-xs text-fg-muted",
2610
- children: Kt[r]
3670
+ children: On[r]
2611
3671
  })
2612
3672
  ]
2613
3673
  }),
@@ -2646,35 +3706,35 @@ var Ut = C(function({ options: e, value: r, onChange: a, placeholder: o, disable
2646
3706
  });
2647
3707
  //#endregion
2648
3708
  //#region src/l5-organisms/signature-drawing.ts
2649
- function X(e, t, n) {
3709
+ function An(e, t, n) {
2650
3710
  let r = e.getBoundingClientRect();
2651
3711
  return {
2652
3712
  x: (t - r.left) * (e.width / r.width),
2653
3713
  y: (n - r.top) * (e.height / r.height)
2654
3714
  };
2655
3715
  }
2656
- function Jt(e, t, n) {
3716
+ function jn(e, t, n) {
2657
3717
  e.strokeStyle = n.strokeColor, e.lineWidth = n.strokeWidth, e.lineCap = "round", e.lineJoin = "round", e.beginPath(), e.moveTo(t.x, t.y);
2658
3718
  }
2659
- function Yt(e, t) {
3719
+ function Mn(e, t) {
2660
3720
  e.lineTo(t.x, t.y), e.stroke();
2661
3721
  }
2662
- function Xt(e) {
3722
+ function Nn(e) {
2663
3723
  let t = e.getContext("2d");
2664
3724
  t !== null && t.clearRect(0, 0, e.width, e.height);
2665
3725
  }
2666
- function Zt(e) {
3726
+ function Pn(e) {
2667
3727
  return e.toDataURL("image/png");
2668
3728
  }
2669
3729
  //#endregion
2670
3730
  //#region src/l5-organisms/signature-pad.tsx
2671
- var Qt = C(function({ className: e, disabled: n, height: r = 200, onSign: a, strokeColor: o = "var(--gds-fg)", strokeWidth: s = 2, width: c = 400, ...l }, u) {
3731
+ var Fn = C(function({ className: e, disabled: n, height: r = 200, onSign: a, strokeColor: o = "var(--gds-fg)", strokeWidth: s = 2, width: c = 400, ...l }, u) {
2672
3732
  let d = D(null), f = D(!1), [p, m] = O(!0), h = w((e, t) => {
2673
3733
  if (n === !0) return;
2674
3734
  let r = d.current;
2675
3735
  if (r === null) return;
2676
3736
  let i = r.getContext("2d");
2677
- i !== null && (f.current = !0, Jt(i, X(r, e, t), {
3737
+ i !== null && (f.current = !0, jn(i, An(r, e, t), {
2678
3738
  strokeColor: o,
2679
3739
  strokeWidth: s
2680
3740
  }));
@@ -2687,12 +3747,12 @@ var Qt = C(function({ className: e, disabled: n, height: r = 200, onSign: a, str
2687
3747
  let n = d.current;
2688
3748
  if (n === null) return;
2689
3749
  let r = n.getContext("2d");
2690
- r !== null && (Yt(r, X(n, e, t)), m(!1));
3750
+ r !== null && (Mn(r, An(n, e, t)), m(!1));
2691
3751
  }, []), _ = w(() => {
2692
3752
  if (!f.current) return;
2693
3753
  f.current = !1;
2694
3754
  let e = d.current;
2695
- e !== null && a(Zt(e));
3755
+ e !== null && a(Pn(e));
2696
3756
  }, [a]), v = w((e) => {
2697
3757
  h(e.clientX, e.clientY);
2698
3758
  }, [h]), y = w((e) => {
@@ -2709,7 +3769,7 @@ var Qt = C(function({ className: e, disabled: n, height: r = 200, onSign: a, str
2709
3769
  e.preventDefault(), _();
2710
3770
  }, [_]), C = w(() => {
2711
3771
  let e = d.current;
2712
- e !== null && (Xt(e), m(!0));
3772
+ e !== null && (Nn(e), m(!0));
2713
3773
  }, []);
2714
3774
  return /* @__PURE__ */ M("div", {
2715
3775
  className: t("gds-ctx inline-flex flex-col gap-2 gds-radius-popover border border-border bg-surface p-3", n === !0 && "pointer-events-none opacity-40", e),
@@ -2754,7 +3814,7 @@ var Qt = C(function({ className: e, disabled: n, height: r = 200, onSign: a, str
2754
3814
  });
2755
3815
  //#endregion
2756
3816
  //#region src/l5-organisms/sortable-list.tsx
2757
- function $t() {
3817
+ function In() {
2758
3818
  return /* @__PURE__ */ M("svg", {
2759
3819
  className: "h-4 w-4 text-fg-muted/50",
2760
3820
  fill: "currentColor",
@@ -2793,7 +3853,7 @@ function $t() {
2793
3853
  ]
2794
3854
  });
2795
3855
  }
2796
- var en = C(function({ className: e, disabled: n, itemClassName: r, items: i, onReorder: a, ...o }, s) {
3856
+ var Ln = C(function({ className: e, disabled: n, itemClassName: r, items: i, onReorder: a, ...o }, s) {
2797
3857
  let [c, l] = O(null), [u, d] = O(null);
2798
3858
  function f(e) {
2799
3859
  n || l(e);
@@ -2831,14 +3891,14 @@ var en = C(function({ className: e, disabled: n, itemClassName: r, items: i, onR
2831
3891
  onDrop: (e) => h(e, i),
2832
3892
  children: [n !== !0 && /* @__PURE__ */ j("span", {
2833
3893
  className: "flex-shrink-0 select-none",
2834
- children: /* @__PURE__ */ j($t, {})
3894
+ children: /* @__PURE__ */ j(In, {})
2835
3895
  }), /* @__PURE__ */ j("div", {
2836
3896
  className: "flex-1",
2837
3897
  children: e.content
2838
3898
  })]
2839
3899
  }, e.id))
2840
3900
  });
2841
- }), tn = C(function({ columns: e, data: n, defaultSort: r, className: i, ...a }, o) {
3901
+ }), Rn = C(function({ columns: e, data: n, defaultSort: r, className: i, ...a }, o) {
2842
3902
  let [s, c] = O(r), l = E(() => s === void 0 ? n : [...n].sort((e, t) => {
2843
3903
  let n = String(e[s.key] ?? ""), r = String(t[s.key] ?? ""), i = n.localeCompare(r, void 0, { numeric: !0 });
2844
3904
  return s.dir === "asc" ? i : -i;
@@ -2884,7 +3944,7 @@ var en = C(function({ className: e, disabled: n, itemClassName: r, items: i, onR
2884
3944
  });
2885
3945
  //#endregion
2886
3946
  //#region src/l5-organisms/spotlight.tsx
2887
- function nn(e, t) {
3947
+ function zn(e, t) {
2888
3948
  let [n, r] = O(null);
2889
3949
  return T(() => {
2890
3950
  if (!t) {
@@ -2907,7 +3967,7 @@ function nn(e, t) {
2907
3967
  };
2908
3968
  }, [t, e]), n;
2909
3969
  }
2910
- function rn(e, t) {
3970
+ function Bn(e, t) {
2911
3971
  let n = { position: "fixed" };
2912
3972
  return t === "bottom" ? {
2913
3973
  ...n,
@@ -2927,8 +3987,8 @@ function rn(e, t) {
2927
3987
  left: e.left + e.width + 12
2928
3988
  };
2929
3989
  }
2930
- function an({ active: e, targetRef: n, title: r, description: i, placement: a = "bottom", onClose: o, className: s }) {
2931
- let l = nn(n, e), u = D(o);
3990
+ function Vn({ active: e, targetRef: n, title: r, description: i, placement: a = "bottom", onClose: o, className: s }) {
3991
+ let l = zn(n, e), u = D(o);
2932
3992
  u.current = o;
2933
3993
  let d = w((e) => {
2934
3994
  e.key === "Escape" && u.current !== void 0 && u.current();
@@ -2951,7 +4011,7 @@ function an({ active: e, targetRef: n, title: r, description: i, placement: a =
2951
4011
  }
2952
4012
  }), /* @__PURE__ */ M("div", {
2953
4013
  className: "z-[9999] max-w-xs rounded-lg border border-white/10 bg-bg-secondary p-4 shadow-lg",
2954
- style: rn(l, a),
4014
+ style: Bn(l, a),
2955
4015
  onClick: (e) => e.stopPropagation(),
2956
4016
  children: [
2957
4017
  r !== void 0 && /* @__PURE__ */ j("p", {
@@ -2973,7 +4033,7 @@ function an({ active: e, targetRef: n, title: r, description: i, placement: a =
2973
4033
  }
2974
4034
  //#endregion
2975
4035
  //#region src/l5-organisms/stacked-list.tsx
2976
- function on({ items: e, header: n, footer: r, onSelect: i, selectedId: a, dividers: o = !0, glass: s, className: c }) {
4036
+ function Hn({ items: e, header: n, footer: r, onSelect: i, selectedId: a, dividers: o = !0, glass: s, className: c }) {
2977
4037
  return /* @__PURE__ */ M("div", {
2978
4038
  "data-component": "stacked-list",
2979
4039
  className: t("overflow-hidden gds-radius-card border border-border", s === !0 && "bg-white/5 backdrop-blur-md", c),
@@ -3000,7 +4060,7 @@ function on({ items: e, header: n, footer: r, onSelect: i, selectedId: a, divide
3000
4060
  }
3001
4061
  //#endregion
3002
4062
  //#region src/l5-organisms/step-form.tsx
3003
- var sn = C(function({ steps: e, onComplete: n, className: r }, a) {
4063
+ var Un = C(function({ steps: e, onComplete: n, className: r }, a) {
3004
4064
  let [o, s] = O(0), c = o === 0, l = o === e.length - 1, u = () => {
3005
4065
  if (l) {
3006
4066
  n();
@@ -3064,10 +4124,10 @@ var sn = C(function({ steps: e, onComplete: n, className: r }, a) {
3064
4124
  });
3065
4125
  //#endregion
3066
4126
  //#region src/l5-organisms/system-health.tsx
3067
- function cn(e) {
4127
+ function Wn(e) {
3068
4128
  return e >= 90 ? "danger" : e >= 70 ? "warning" : "success";
3069
4129
  }
3070
- var ln = C(function({ className: e, metrics: n, ...r }, i) {
4130
+ var Gn = C(function({ className: e, metrics: n, ...r }, i) {
3071
4131
  return /* @__PURE__ */ j("div", {
3072
4132
  className: t("flex flex-col gds-gap", e),
3073
4133
  "data-component": "system-health",
@@ -3097,13 +4157,13 @@ var ln = C(function({ className: e, metrics: n, ...r }, i) {
3097
4157
  })]
3098
4158
  }), /* @__PURE__ */ j(s, {
3099
4159
  value: n,
3100
- variant: cn(n),
4160
+ variant: Wn(n),
3101
4161
  size: "sm"
3102
4162
  })]
3103
4163
  }, e.label);
3104
4164
  })
3105
4165
  });
3106
- }), un = C(function({ tags: e, selected: n, onToggle: r, className: i }, a) {
4166
+ }), Kn = C(function({ tags: e, selected: n, onToggle: r, className: i }, a) {
3107
4167
  let o = new Set(n ?? []);
3108
4168
  return /* @__PURE__ */ j("div", {
3109
4169
  ref: a,
@@ -3119,7 +4179,7 @@ var ln = C(function({ className: e, metrics: n, ...r }, i) {
3119
4179
  })]
3120
4180
  }, e.label))
3121
4181
  });
3122
- }), Z = C(function({ className: e, onToggle: n, sections: r, ...i }, a) {
4182
+ }), qn = C(function({ className: e, onToggle: n, sections: r, ...i }, a) {
3123
4183
  return /* @__PURE__ */ j("div", {
3124
4184
  className: t("flex flex-col gds-gap", e),
3125
4185
  "data-component": "task-board",
@@ -3144,12 +4204,12 @@ var ln = C(function({ className: e, metrics: n, ...r }, i) {
3144
4204
  })]
3145
4205
  }, e.id))
3146
4206
  });
3147
- }), dn = {
4207
+ }), Jn = {
3148
4208
  default: "bg-fg-muted",
3149
4209
  success: "bg-success",
3150
4210
  warning: "bg-warning",
3151
4211
  danger: "bg-danger"
3152
- }, fn = C(function({ items: e, className: n }, r) {
4212
+ }, Yn = C(function({ items: e, className: n }, r) {
3153
4213
  return /* @__PURE__ */ M("div", {
3154
4214
  ref: r,
3155
4215
  className: t("relative", n),
@@ -3162,7 +4222,7 @@ var ln = C(function({ className: e, metrics: n, ...r }, i) {
3162
4222
  className: "relative flex gds-gap pl-6",
3163
4223
  children: [/* @__PURE__ */ j("div", {
3164
4224
  className: "absolute left-0 top-1.5",
3165
- children: e.icon === void 0 ? /* @__PURE__ */ j("span", { className: t("block h-[15px] w-[15px] gds-radius-badge border-2 border-bg", dn[n]) }) : /* @__PURE__ */ j("span", {
4225
+ children: e.icon === void 0 ? /* @__PURE__ */ j("span", { className: t("block h-[15px] w-[15px] gds-radius-badge border-2 border-bg", Jn[n]) }) : /* @__PURE__ */ j("span", {
3166
4226
  className: "flex h-[15px] w-[15px] items-center justify-center text-fg-muted",
3167
4227
  children: e.icon
3168
4228
  })
@@ -3186,7 +4246,7 @@ var ln = C(function({ className: e, metrics: n, ...r }, i) {
3186
4246
  })
3187
4247
  })]
3188
4248
  });
3189
- }), pn = C(function({ steps: e, active: n, onComplete: r, onSkip: a, className: o }, s) {
4249
+ }), Xn = C(function({ steps: e, active: n, onComplete: r, onSkip: a, className: o }, s) {
3190
4250
  let [c, l] = O(0), [u, d] = O(!0), [f, p] = O(null), m = D(null);
3191
4251
  T(() => {
3192
4252
  if (!n) return;
@@ -3420,10 +4480,10 @@ var ln = C(function({ className: e, metrics: n, ...r }, i) {
3420
4480
  });
3421
4481
  //#endregion
3422
4482
  //#region src/l5-organisms/transaction-list.tsx
3423
- function mn(e, t) {
4483
+ function Zn(e, t) {
3424
4484
  return `${e >= 0 ? "+" : ""}${t}${Math.abs(e).toLocaleString()}`;
3425
4485
  }
3426
- var hn = C(function({ className: e, transactions: n, ...r }, i) {
4486
+ var Qn = C(function({ className: e, transactions: n, ...r }, i) {
3427
4487
  return /* @__PURE__ */ j("div", {
3428
4488
  className: t("flex flex-col divide-y divide-border", e),
3429
4489
  "data-component": "transaction-list",
@@ -3444,7 +4504,7 @@ var hn = C(function({ className: e, transactions: n, ...r }, i) {
3444
4504
  })]
3445
4505
  }), /* @__PURE__ */ j("span", {
3446
4506
  className: t("text-sm font-semibold tabular-nums", r ? "text-success" : "text-danger"),
3447
- children: mn(e.amount, n)
4507
+ children: Zn(e.amount, n)
3448
4508
  })]
3449
4509
  }, e.id);
3450
4510
  })
@@ -3452,7 +4512,7 @@ var hn = C(function({ className: e, transactions: n, ...r }, i) {
3452
4512
  });
3453
4513
  //#endregion
3454
4514
  //#region src/l5-organisms/tree.tsx
3455
- function gn({ expanded: e }) {
4515
+ function $n({ expanded: e }) {
3456
4516
  return /* @__PURE__ */ j("svg", {
3457
4517
  className: t("h-3 w-3 shrink-0 text-fg-muted transition-transform", e && "rotate-90"),
3458
4518
  viewBox: "0 0 12 12",
@@ -3460,7 +4520,7 @@ function gn({ expanded: e }) {
3460
4520
  children: /* @__PURE__ */ j("path", { d: "M4 2L8 6L4 10V2Z" })
3461
4521
  });
3462
4522
  }
3463
- function Q({ node: e, depth: n, selected: r, expanded: a, onToggle: o, onSelect: s }) {
4523
+ function er({ node: e, depth: n, selected: r, expanded: a, onToggle: o, onSelect: s }) {
3464
4524
  let c = e.children !== void 0 && e.children.length > 0, l = a.has(e.id), u = r === e.id, d = e.disabled === !0;
3465
4525
  return /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ M("button", {
3466
4526
  className: t("flex w-full items-center gds-gap-sm gds-radius-button gds-pad-x-sm gds-pad-y-sm text-sm select-none", u ? "bg-accent/10 text-accent" : "text-fg hover:bg-bg-secondary", d && "cursor-not-allowed opacity-50", i),
@@ -3471,7 +4531,7 @@ function Q({ node: e, depth: n, selected: r, expanded: a, onToggle: o, onSelect:
3471
4531
  disabled: d,
3472
4532
  "data-state": u ? "selected" : void 0,
3473
4533
  children: [
3474
- c ? /* @__PURE__ */ j(gn, { expanded: l }) : /* @__PURE__ */ j("span", { className: "h-3 w-3 shrink-0" }),
4534
+ c ? /* @__PURE__ */ j($n, { expanded: l }) : /* @__PURE__ */ j("span", { className: "h-3 w-3 shrink-0" }),
3475
4535
  e.icon !== void 0 && /* @__PURE__ */ j("span", {
3476
4536
  className: "shrink-0 text-fg-muted",
3477
4537
  children: e.icon
@@ -3481,7 +4541,7 @@ function Q({ node: e, depth: n, selected: r, expanded: a, onToggle: o, onSelect:
3481
4541
  children: e.label
3482
4542
  })
3483
4543
  ]
3484
- }), c && l && /* @__PURE__ */ j("div", { children: e.children?.map((e) => /* @__PURE__ */ j(Q, {
4544
+ }), c && l && /* @__PURE__ */ j("div", { children: e.children?.map((e) => /* @__PURE__ */ j(er, {
3485
4545
  node: e,
3486
4546
  depth: n + 1,
3487
4547
  selected: r,
@@ -3490,7 +4550,7 @@ function Q({ node: e, depth: n, selected: r, expanded: a, onToggle: o, onSelect:
3490
4550
  onSelect: s
3491
4551
  }, e.id)) })] });
3492
4552
  }
3493
- var _n = C(function({ nodes: e, onSelect: n, selected: r, defaultExpanded: i, className: a }, o) {
4553
+ var tr = C(function({ nodes: e, onSelect: n, selected: r, defaultExpanded: i, className: a }, o) {
3494
4554
  let [s, c] = O(() => new Set(i ?? [])), l = w((e) => {
3495
4555
  c((t) => {
3496
4556
  let n = new Set(t);
@@ -3502,7 +4562,7 @@ var _n = C(function({ nodes: e, onSelect: n, selected: r, defaultExpanded: i, cl
3502
4562
  className: t("flex flex-col gds-gap-xs", a),
3503
4563
  "data-component": "tree",
3504
4564
  role: "tree",
3505
- children: e.map((e) => /* @__PURE__ */ j(Q, {
4565
+ children: e.map((e) => /* @__PURE__ */ j(er, {
3506
4566
  node: e,
3507
4567
  depth: 0,
3508
4568
  selected: r,
@@ -3514,10 +4574,10 @@ var _n = C(function({ nodes: e, onSelect: n, selected: r, defaultExpanded: i, cl
3514
4574
  });
3515
4575
  //#endregion
3516
4576
  //#region src/l5-organisms/video-controls.tsx
3517
- function $(e) {
4577
+ function nr(e) {
3518
4578
  return `${Math.floor(e / 60)}:${Math.floor(e % 60).toString().padStart(2, "0")}`;
3519
4579
  }
3520
- function vn() {
4580
+ function rr() {
3521
4581
  return /* @__PURE__ */ j("svg", {
3522
4582
  width: "16",
3523
4583
  height: "16",
@@ -3526,7 +4586,7 @@ function vn() {
3526
4586
  children: /* @__PURE__ */ j("path", { d: "M4 2l10 6-10 6V2z" })
3527
4587
  });
3528
4588
  }
3529
- function yn() {
4589
+ function ir() {
3530
4590
  return /* @__PURE__ */ M("svg", {
3531
4591
  width: "16",
3532
4592
  height: "16",
@@ -3547,7 +4607,7 @@ function yn() {
3547
4607
  })]
3548
4608
  });
3549
4609
  }
3550
- function bn() {
4610
+ function ar() {
3551
4611
  return /* @__PURE__ */ M("svg", {
3552
4612
  width: "16",
3553
4613
  height: "16",
@@ -3563,7 +4623,7 @@ function bn() {
3563
4623
  })]
3564
4624
  });
3565
4625
  }
3566
- function xn() {
4626
+ function or() {
3567
4627
  return /* @__PURE__ */ M("svg", {
3568
4628
  width: "16",
3569
4629
  height: "16",
@@ -3577,7 +4637,7 @@ function xn() {
3577
4637
  })]
3578
4638
  });
3579
4639
  }
3580
- function Sn() {
4640
+ function sr() {
3581
4641
  return /* @__PURE__ */ j("svg", {
3582
4642
  width: "16",
3583
4643
  height: "16",
@@ -3588,7 +4648,7 @@ function Sn() {
3588
4648
  children: /* @__PURE__ */ j("path", { d: "M2 6V2h4M10 2h4v4M14 10v4h-4M6 14H2v-4" })
3589
4649
  });
3590
4650
  }
3591
- function Cn({ currentTime: e, duration: n, playing: r, isMuted: a, showControls: o, onTogglePlay: s, onToggleMute: c, onSeek: l, onFullscreen: u }) {
4651
+ function cr({ currentTime: e, duration: n, playing: r, isMuted: a, showControls: o, onTogglePlay: s, onToggleMute: c, onSeek: l, onFullscreen: u }) {
3592
4652
  let d = n > 0 ? e / n * 100 : 0;
3593
4653
  return /* @__PURE__ */ M("div", {
3594
4654
  className: t("absolute inset-x-0 bottom-0 flex items-center gap-2 bg-black/60 px-3 py-2 transition-opacity duration-200", o ? "opacity-100" : "pointer-events-none opacity-0"),
@@ -3600,7 +4660,7 @@ function Cn({ currentTime: e, duration: n, playing: r, isMuted: a, showControls:
3600
4660
  className: t("text-white", i),
3601
4661
  "aria-label": r ? "Pause" : "Play",
3602
4662
  "data-testid": "play-button",
3603
- children: j(r ? yn : vn, {})
4663
+ children: j(r ? ir : rr, {})
3604
4664
  }),
3605
4665
  /* @__PURE__ */ j("div", {
3606
4666
  className: t("relative h-1 flex-1 cursor-pointer rounded-full bg-white/30", i),
@@ -3621,9 +4681,9 @@ function Cn({ currentTime: e, duration: n, playing: r, isMuted: a, showControls:
3621
4681
  className: "select-none text-xs text-white/80",
3622
4682
  "data-testid": "time-display",
3623
4683
  children: [
3624
- $(e),
4684
+ nr(e),
3625
4685
  " / ",
3626
- $(n)
4686
+ nr(n)
3627
4687
  ]
3628
4688
  }),
3629
4689
  /* @__PURE__ */ j("button", {
@@ -3632,7 +4692,7 @@ function Cn({ currentTime: e, duration: n, playing: r, isMuted: a, showControls:
3632
4692
  className: t("text-white", i),
3633
4693
  "aria-label": a ? "Unmute" : "Mute",
3634
4694
  "data-testid": "mute-button",
3635
- children: j(a ? bn : xn, {})
4695
+ children: j(a ? ar : or, {})
3636
4696
  }),
3637
4697
  /* @__PURE__ */ j("button", {
3638
4698
  type: "button",
@@ -3640,14 +4700,14 @@ function Cn({ currentTime: e, duration: n, playing: r, isMuted: a, showControls:
3640
4700
  className: t("text-white", i),
3641
4701
  "aria-label": "Fullscreen",
3642
4702
  "data-testid": "fullscreen-button",
3643
- children: /* @__PURE__ */ j(Sn, {})
4703
+ children: /* @__PURE__ */ j(sr, {})
3644
4704
  })
3645
4705
  ]
3646
4706
  });
3647
4707
  }
3648
4708
  //#endregion
3649
4709
  //#region src/l5-organisms/video-player.tsx
3650
- var wn = C(function({ src: e, poster: n, autoPlay: r = !1, muted: i = !1, loop: a = !1, controls: o = !0, glass: s = !1, className: c }, l) {
4710
+ var lr = C(function({ src: e, poster: n, autoPlay: r = !1, muted: i = !1, loop: a = !1, controls: o = !0, glass: s = !1, className: c }, l) {
3651
4711
  let u = D(null), d = D(null), [f, p] = O(!1), [m, h] = O(0), [g, _] = O(0), [v, y] = O(i), [b, x] = O(!0), S = w(() => {
3652
4712
  x(!0), d.current !== null && clearTimeout(d.current), d.current = setTimeout(() => {
3653
4713
  f && x(!1);
@@ -3699,7 +4759,7 @@ var wn = C(function({ src: e, poster: n, autoPlay: r = !1, muted: i = !1, loop:
3699
4759
  onLoadedMetadata: A,
3700
4760
  onEnded: F,
3701
4761
  "data-testid": "video-element"
3702
- }), o && /* @__PURE__ */ j(Cn, {
4762
+ }), o && /* @__PURE__ */ j(cr, {
3703
4763
  currentTime: m,
3704
4764
  duration: g,
3705
4765
  playing: f,
@@ -3714,7 +4774,7 @@ var wn = C(function({ src: e, poster: n, autoPlay: r = !1, muted: i = !1, loop:
3714
4774
  });
3715
4775
  //#endregion
3716
4776
  //#region src/l5-organisms/virtual-list.tsx
3717
- function Tn({ items: e, itemHeight: n, renderItem: r, overscan: i = 3, className: a, height: o = 400 }, s) {
4777
+ function ur({ items: e, itemHeight: n, renderItem: r, overscan: i = 3, className: a, height: o = 400 }, s) {
3718
4778
  let [c, l] = O(0), u = D(null), d = e.length * n, f = typeof o == "number" ? o : void 0, { visibleItems: p } = E(() => {
3719
4779
  let t = f ?? 400, r = Math.floor(c / n), a = Math.ceil((c + t) / n), o = Math.max(0, r - i), s = Math.min(e.length, a + i), l = [];
3720
4780
  for (let t = o; t < s; t++) l.push({
@@ -3760,7 +4820,7 @@ function Tn({ items: e, itemHeight: n, renderItem: r, overscan: i = 3, className
3760
4820
  })
3761
4821
  });
3762
4822
  }
3763
- var En = C(Tn), Dn = C(function({ className: e, condition: n, icon: r, location: i, temp: a, unit: o = "C", ...s }, c) {
4823
+ var dr = C(ur), fr = C(function({ className: e, condition: n, icon: r, location: i, temp: a, unit: o = "C", ...s }, c) {
3764
4824
  return /* @__PURE__ */ M("div", {
3765
4825
  className: t("inline-flex items-center gap-4 rounded-xl border border-border bg-surface p-4 select-none", e),
3766
4826
  "data-component": "weather-widget",
@@ -3793,6 +4853,6 @@ var En = C(Tn), Dn = C(function({ className: e, condition: n, icon: r, location:
3793
4853
  });
3794
4854
  });
3795
4855
  //#endregion
3796
- export { Me as $, Dt as A, ot as B, Pt as C, At as D, jt as E, yt as F, Xe as G, rt as H, ht as I, Ue as J, Ye as K, lt as L, Ct as M, St as N, kt as O, q as P, Ne as Q, ct as R, Rt as S, Mt as T, $e as U, it as V, Qe as W, Be as X, He as Y, Re as Z, qt as _, hn as a, _e as at, Vt as b, Z as c, pe as ct, sn as d, ie as dt, je as et, on as f, re as ft, Qt as g, en as h, N as ht, _n as i, Se as it, wt as j, Ot as k, un as l, R as lt, tn as m, ee as mt, En as n, Te as nt, pn as o, ge as ot, an as p, ne as pt, Je as q, wn as r, Ce as rt, fn as s, z as st, Dn as t, Oe as tt, ln as u, ae as ut, Wt as v, Nt as w, J as x, Ut as y, st as z };
4856
+ export { ft as $, dn as A, Xt as B, vn as C, ne as Ct, hn as D, I as Dt, gn as E, te as Et, tn as F, Ut as G, Jt as H, en as I, Nt as J, Ht as K, $t as L, sn as M, un as N, mn as O, N as Ot, on as P, Ct as Q, Qt as R, _n as S, W as St, fn as T, R as Tt, Gt as U, Yt as V, Wt as W, Tt as X, Et as Y, wt as Z, kn as _, ge as _t, Qn as a, et as at, Cn as b, se as bt, qn as c, Ke as ct, Un as d, Se as dt, lt as et, Hn as f, xe as ft, Fn as g, _e as gt, Ln as h, q as ht, tr as i, tt as it, pn as j, ln as k, Kn as l, We as lt, Rn as m, X as mt, dr as n, it as nt, Xn as o, $e as ot, Vn as p, Z as pt, Lt as q, lr as r, rt, Yn as s, qe as st, fr as t, ct as tt, Gn as u, He as ut, En as v, de as vt, cn as w, z as wt, yn as x, K as xt, Tn as y, le as yt, Zt as z };
3797
4857
 
3798
- //# sourceMappingURL=l5-organisms-z8mU4eoy.js.map
4858
+ //# sourceMappingURL=l5-organisms-Di1Bm_R6.js.map