@contentstudio/ui 0.1.50 → 0.1.52

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.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Yx = Object.defineProperty;
2
2
  var _x = (t, a, o) => a in t ? Yx(t, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[a] = o;
3
3
  var Te = (t, a, o) => (_x(t, typeof a != "symbol" ? a + "" : a, o), o);
4
- import { defineComponent as R, computed as u, openBlock as p, createElementBlock as M, normalizeClass as v, unref as s, normalizeStyle as N, renderSlot as S, createCommentVNode as L, createElementVNode as f, withKeys as rx, withModifiers as me, toDisplayString as j, createTextVNode as X, ref as V, mergeProps as ce, Fragment as re, renderList as j2, withDirectives as H2, createBlock as G, resolveDynamicComponent as ge, vShow as sv, Teleport as D2, createVNode as $, Transition as de, withCtx as E, shallowRef as eI, watch as ne, getCurrentScope as dx, onScopeDispose as sx, shallowReadonly as S2, readonly as tI, inject as pe, onMounted as xe, provide as Oe, nextTick as Me, onBeforeUnmount as W2, reactive as T2, createApp as wv, createSlots as aI, useSlots as oI, h as $e, createStaticVNode as cI, onUnmounted as Bv, watchEffect as Y2, toRaw as ze, isVNode as lx, cloneVNode as nI, pushScopeId as iI, popScopeId as rI } from "vue";
4
+ import { defineComponent as R, computed as u, openBlock as p, createElementBlock as M, normalizeClass as v, unref as s, normalizeStyle as N, renderSlot as S, createCommentVNode as L, createElementVNode as f, withKeys as rx, withModifiers as Ae, toDisplayString as j, createTextVNode as X, ref as V, mergeProps as ce, Fragment as re, renderList as j2, withDirectives as H2, createBlock as G, resolveDynamicComponent as ge, vShow as sv, Teleport as D2, createVNode as $, Transition as de, withCtx as E, shallowRef as eI, watch as ne, getCurrentScope as dx, onScopeDispose as sx, shallowReadonly as S2, readonly as tI, inject as pe, onMounted as ve, provide as Oe, nextTick as Me, onBeforeUnmount as W2, reactive as T2, createApp as wv, createSlots as aI, useSlots as oI, h as $e, createStaticVNode as cI, onUnmounted as Bv, watchEffect as Y2, toRaw as Se, isVNode as lx, cloneVNode as nI, pushScopeId as iI, popScopeId as rI } from "vue";
5
5
  const je = {
6
6
  primary: {
7
7
  base: "blue",
@@ -233,7 +233,7 @@ const je = {
233
233
  lg: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "cstu-text-lg", height: void 0, icon: void 0, gap: "cstu-gap-[9px]" },
234
234
  xl: { padding: { x: "cstu-px-[12px]", y: "cstu-py-[7px]" }, text: "cstu-text-xl", height: void 0, icon: void 0, gap: "cstu-gap-[9px]" }
235
235
  }
236
- }, ve = (t, a) => {
236
+ }, me = (t, a) => {
237
237
  var o, c;
238
238
  if (typeof a == "string") {
239
239
  const n = hx[a][t];
@@ -361,7 +361,7 @@ const je = {
361
361
  hover: !0,
362
362
  active: !0,
363
363
  focus: !0
364
- }) : "", l = ve(o.size, "button"), g = w2({
364
+ }) : "", l = me(o.size, "button"), g = w2({
365
365
  disabled: o.disabled,
366
366
  loading: o.loading
367
367
  }), y = Fv(o.size, "button"), k = n(o.radius), m = !le(o.color) && ["outline"].includes(o.variant) ? "cstu-border" : "";
@@ -537,7 +537,7 @@ const je = {
537
537
  role: "checkbox",
538
538
  "aria-disabled": t.disabled,
539
539
  tabindex: "0",
540
- onKeydown: rx(me(i, ["prevent"]), ["space"])
540
+ onKeydown: rx(Ae(i, ["prevent"]), ["space"])
541
541
  }, [
542
542
  s(c) && !t.indeterminate ? (p(), M("svg", {
543
543
  key: 0,
@@ -988,7 +988,7 @@ const bI = {
988
988
  setup(t, { emit: a }) {
989
989
  const o = t, c = u(
990
990
  () => Y(o.color, o.variant)
991
- ), n = u(() => ve(o.size, "chip")), i = u(
991
+ ), n = u(() => me(o.size, "chip")), i = u(
992
992
  () => w2({
993
993
  disabled: o.disabled,
994
994
  loading: o.loading
@@ -1390,7 +1390,7 @@ const JI = {
1390
1390
  active: !1,
1391
1391
  focus: !1,
1392
1392
  disabled: o.disabled
1393
- })), i = u(() => Vv(c(o.variant))), d = u(() => dI(o.color, c(o.variant))), r = u(() => ve(o.size, "alert")), h = u(() => x2(o.size)), l = u(() => lI(o.size)), g = u(() => w2({
1393
+ })), i = u(() => Vv(c(o.variant))), d = u(() => dI(o.color, c(o.variant))), r = u(() => me(o.size, "alert")), h = u(() => x2(o.size)), l = u(() => lI(o.size)), g = u(() => w2({
1394
1394
  disabled: o.disabled,
1395
1395
  loading: o.loading
1396
1396
  })), y = u(() => hI({
@@ -1883,7 +1883,7 @@ const rw = /* @__PURE__ */ R({
1883
1883
  })
1884
1884
  ]));
1885
1885
  }
1886
- }), Sw = ["top", "right", "bottom", "left"], Xv = ["start", "end"], Kv = /* @__PURE__ */ Sw.reduce((t, a) => t.concat(a, a + "-" + Xv[0], a + "-" + Xv[1]), []), P2 = Math.min, I2 = Math.max, tv = Math.round, J2 = Math.floor, qe = (t) => ({
1886
+ }), Sw = ["top", "right", "bottom", "left"], Xv = ["start", "end"], Kv = /* @__PURE__ */ Sw.reduce((t, a) => t.concat(a, a + "-" + Xv[0], a + "-" + Xv[1]), []), P2 = Math.min, I2 = Math.max, tv = Math.round, J2 = Math.floor, ze = (t) => ({
1887
1887
  x: t,
1888
1888
  y: t
1889
1889
  }), zw = {
@@ -1904,7 +1904,7 @@ function R2(t, a) {
1904
1904
  function De(t) {
1905
1905
  return t.split("-")[0];
1906
1906
  }
1907
- function Ae(t) {
1907
+ function qe(t) {
1908
1908
  return t.split("-")[1];
1909
1909
  }
1910
1910
  function fx(t) {
@@ -1921,7 +1921,7 @@ function Tv(t) {
1921
1921
  }
1922
1922
  function Mx(t, a, o) {
1923
1923
  o === void 0 && (o = !1);
1924
- const c = Ae(t), n = Tv(t), i = Dv(n);
1924
+ const c = qe(t), n = Tv(t), i = Dv(n);
1925
1925
  let d = n === "x" ? c === (o ? "end" : "start") ? "right" : "left" : c === "start" ? "bottom" : "top";
1926
1926
  return a.reference[i] > a.floating[i] && (d = ov(d)), [d, ov(d)];
1927
1927
  }
@@ -1946,7 +1946,7 @@ function Hw(t, a, o) {
1946
1946
  }
1947
1947
  }
1948
1948
  function Pw(t, a, o, c) {
1949
- const n = Ae(t);
1949
+ const n = qe(t);
1950
1950
  let i = Hw(De(t), o === "start", c);
1951
1951
  return n && (i = i.map((d) => d + "-" + n), a && (i = i.concat(i.map(av)))), i;
1952
1952
  }
@@ -2026,7 +2026,7 @@ function Jv(t, a, o) {
2026
2026
  y: c.y
2027
2027
  };
2028
2028
  }
2029
- switch (Ae(a)) {
2029
+ switch (qe(a)) {
2030
2030
  case "start":
2031
2031
  m[d] -= k * (o && l ? -1 : 1);
2032
2032
  break;
@@ -2166,7 +2166,7 @@ const Fw = (t) => ({
2166
2166
  }, m = Tv(n), b = Dv(m), q = await d.getDimensions(l), C = m === "y", z = C ? "top" : "left", w = C ? "bottom" : "right", x = C ? "clientHeight" : "clientWidth", I = i.reference[b] + i.reference[m] - k[m] - i.floating[b], H = k[m] - i.reference[m], F = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(l));
2167
2167
  let U = F ? F[x] : 0;
2168
2168
  (!U || !await (d.isElement == null ? void 0 : d.isElement(F))) && (U = r.floating[x] || i.floating[b]);
2169
- const J = I / 2 - H / 2, B = U / 2 - q[b] / 2 - 1, P = P2(y[z], B), Z = P2(y[w], B), _ = P, te = U - q[b] - Z, W = U / 2 - q[b] / 2 + J, fe = Cv(_, W, te), ue = !h.arrow && Ae(n) != null && W !== fe && i.reference[b] / 2 - (W < _ ? P : Z) - q[b] / 2 < 0, he = ue ? W < _ ? W - _ : W - te : 0;
2169
+ const J = I / 2 - H / 2, B = U / 2 - q[b] / 2 - 1, P = P2(y[z], B), Z = P2(y[w], B), _ = P, te = U - q[b] - Z, W = U / 2 - q[b] / 2 + J, fe = Cv(_, W, te), ue = !h.arrow && qe(n) != null && W !== fe && i.reference[b] / 2 - (W < _ ? P : Z) - q[b] / 2 < 0, he = ue ? W < _ ? W - _ : W - te : 0;
2170
2170
  return {
2171
2171
  [m]: k[m] + he,
2172
2172
  data: {
@@ -2181,7 +2181,7 @@ const Fw = (t) => ({
2181
2181
  }
2182
2182
  });
2183
2183
  function jw(t, a, o) {
2184
- return (t ? [...o.filter((n) => Ae(n) === t), ...o.filter((n) => Ae(n) !== t)] : o.filter((n) => De(n) === n)).filter((n) => t ? Ae(n) === t || (a ? av(n) !== n : !1) : !0);
2184
+ return (t ? [...o.filter((n) => qe(n) === t), ...o.filter((n) => qe(n) !== t)] : o.filter((n) => De(n) === n)).filter((n) => t ? qe(n) === t || (a ? av(n) !== n : !1) : !0);
2185
2185
  }
2186
2186
  const Dw = function(t) {
2187
2187
  return t === void 0 && (t = {}), {
@@ -2226,7 +2226,7 @@ const Dw = function(t) {
2226
2226
  }
2227
2227
  };
2228
2228
  const U = H.map((P) => {
2229
- const Z = Ae(P.placement);
2229
+ const Z = qe(P.placement);
2230
2230
  return [P.placement, Z && g ? (
2231
2231
  // Check along the mainAxis and main crossAxis side.
2232
2232
  P.overflows.slice(0, 2).reduce((_, te) => _ + te, 0)
@@ -2238,7 +2238,7 @@ const Dw = function(t) {
2238
2238
  0,
2239
2239
  // Aligned placements should not check their opposite crossAxis
2240
2240
  // side.
2241
- Ae(P[0]) ? 2 : 3
2241
+ qe(P[0]) ? 2 : 3
2242
2242
  ).every((Z) => Z <= 0))[0]) == null ? void 0 : n[0]) || U[0][0];
2243
2243
  return B !== r ? {
2244
2244
  data: {
@@ -2336,7 +2336,7 @@ async function Rw(t, a) {
2336
2336
  placement: o,
2337
2337
  platform: c,
2338
2338
  elements: n
2339
- } = t, i = await (c.isRTL == null ? void 0 : c.isRTL(n.floating)), d = De(o), r = Ae(o), h = B2(o) === "y", l = ["left", "top"].includes(d) ? -1 : 1, g = i && h ? -1 : 1, y = R2(a, t);
2339
+ } = t, i = await (c.isRTL == null ? void 0 : c.isRTL(n.floating)), d = De(o), r = qe(o), h = B2(o) === "y", l = ["left", "top"].includes(d) ? -1 : 1, g = i && h ? -1 : 1, y = R2(a, t);
2340
2340
  let {
2341
2341
  mainAxis: k,
2342
2342
  crossAxis: m,
@@ -2454,7 +2454,7 @@ function Ve(t) {
2454
2454
  function Ov(t) {
2455
2455
  return lv() ? t instanceof Node || t instanceof ke(t).Node : !1;
2456
2456
  }
2457
- function Ie(t) {
2457
+ function xe(t) {
2458
2458
  return lv() ? t instanceof Element || t instanceof ke(t).Element : !1;
2459
2459
  }
2460
2460
  function Pe(t) {
@@ -2469,7 +2469,7 @@ function G2(t) {
2469
2469
  overflowX: o,
2470
2470
  overflowY: c,
2471
2471
  display: n
2472
- } = we(t);
2472
+ } = Ie(t);
2473
2473
  return /auto|scroll|overlay|hidden|clip/.test(a + c + o) && !["inline", "contents"].includes(n);
2474
2474
  }
2475
2475
  function Ew(t) {
@@ -2485,7 +2485,7 @@ function hv(t) {
2485
2485
  });
2486
2486
  }
2487
2487
  function $v(t) {
2488
- const a = Ev(), o = Ie(t) ? we(t) : t;
2488
+ const a = Ev(), o = xe(t) ? Ie(t) : t;
2489
2489
  return o.transform !== "none" || o.perspective !== "none" || (o.containerType ? o.containerType !== "normal" : !1) || !a && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !a && (o.filter ? o.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((c) => (o.willChange || "").includes(c)) || ["paint", "layout", "strict", "content"].some((c) => (o.contain || "").includes(c));
2490
2490
  }
2491
2491
  function Uw(t) {
@@ -2505,11 +2505,11 @@ function Ev() {
2505
2505
  function V2(t) {
2506
2506
  return ["html", "body", "#document"].includes(L2(t));
2507
2507
  }
2508
- function we(t) {
2508
+ function Ie(t) {
2509
2509
  return ke(t).getComputedStyle(t);
2510
2510
  }
2511
2511
  function uv(t) {
2512
- return Ie(t) ? {
2512
+ return xe(t) ? {
2513
2513
  scrollLeft: t.scrollLeft,
2514
2514
  scrollTop: t.scrollTop
2515
2515
  } : {
@@ -2547,7 +2547,7 @@ function Lv(t) {
2547
2547
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
2548
2548
  }
2549
2549
  function vx(t) {
2550
- const a = we(t);
2550
+ const a = Ie(t);
2551
2551
  let o = parseFloat(a.width) || 0, c = parseFloat(a.height) || 0;
2552
2552
  const n = Pe(t), i = n ? t.offsetWidth : o, d = n ? t.offsetHeight : c, r = tv(o) !== i || tv(c) !== d;
2553
2553
  return r && (o = i, c = d), {
@@ -2557,12 +2557,12 @@ function vx(t) {
2557
2557
  };
2558
2558
  }
2559
2559
  function Uv(t) {
2560
- return Ie(t) ? t : t.contextElement;
2560
+ return xe(t) ? t : t.contextElement;
2561
2561
  }
2562
2562
  function q2(t) {
2563
2563
  const a = Uv(t);
2564
2564
  if (!Pe(a))
2565
- return qe(1);
2565
+ return ze(1);
2566
2566
  const o = a.getBoundingClientRect(), {
2567
2567
  width: c,
2568
2568
  height: n,
@@ -2574,7 +2574,7 @@ function q2(t) {
2574
2574
  y: r
2575
2575
  };
2576
2576
  }
2577
- const Zw = /* @__PURE__ */ qe(0);
2577
+ const Zw = /* @__PURE__ */ ze(0);
2578
2578
  function xx(t) {
2579
2579
  const a = ke(t);
2580
2580
  return !Ev() || !a.visualViewport ? Zw : {
@@ -2588,15 +2588,15 @@ function Nw(t, a, o) {
2588
2588
  function C2(t, a, o, c) {
2589
2589
  a === void 0 && (a = !1), o === void 0 && (o = !1);
2590
2590
  const n = t.getBoundingClientRect(), i = Uv(t);
2591
- let d = qe(1);
2592
- a && (c ? Ie(c) && (d = q2(c)) : d = q2(t));
2593
- const r = Nw(i, o, c) ? xx(i) : qe(0);
2591
+ let d = ze(1);
2592
+ a && (c ? xe(c) && (d = q2(c)) : d = q2(t));
2593
+ const r = Nw(i, o, c) ? xx(i) : ze(0);
2594
2594
  let h = (n.left + r.x) / d.x, l = (n.top + r.y) / d.y, g = n.width / d.x, y = n.height / d.y;
2595
2595
  if (i) {
2596
- const k = ke(i), m = c && Ie(c) ? ke(c) : c;
2596
+ const k = ke(i), m = c && xe(c) ? ke(c) : c;
2597
2597
  let b = k, q = Lv(b);
2598
2598
  for (; q && c && m !== b; ) {
2599
- const C = q2(q), z = q.getBoundingClientRect(), w = we(q), x = z.left + (q.clientLeft + parseFloat(w.paddingLeft)) * C.x, I = z.top + (q.clientTop + parseFloat(w.paddingTop)) * C.y;
2599
+ const C = q2(q), z = q.getBoundingClientRect(), w = Ie(q), x = z.left + (q.clientLeft + parseFloat(w.paddingLeft)) * C.x, I = z.top + (q.clientTop + parseFloat(w.paddingTop)) * C.y;
2600
2600
  h *= C.x, l *= C.y, g *= C.x, y *= C.y, h += x, l += I, b = ke(q), q = Lv(b);
2601
2601
  }
2602
2602
  }
@@ -2635,13 +2635,13 @@ function Ww(t) {
2635
2635
  let h = {
2636
2636
  scrollLeft: 0,
2637
2637
  scrollTop: 0
2638
- }, l = qe(1);
2639
- const g = qe(0), y = Pe(c);
2638
+ }, l = ze(1);
2639
+ const g = ze(0), y = Pe(c);
2640
2640
  if ((y || !y && !i) && ((L2(c) !== "body" || G2(d)) && (h = uv(c)), Pe(c))) {
2641
2641
  const m = C2(c);
2642
2642
  l = q2(c), g.x = m.x + c.clientLeft, g.y = m.y + c.clientTop;
2643
2643
  }
2644
- const k = d && !y && !i ? Ix(d, h, !0) : qe(0);
2644
+ const k = d && !y && !i ? Ix(d, h, !0) : ze(0);
2645
2645
  return {
2646
2646
  width: o.width * l.x,
2647
2647
  height: o.height * l.y,
@@ -2656,7 +2656,7 @@ function Xw(t) {
2656
2656
  const a = Ve(t), o = uv(t), c = t.ownerDocument.body, n = I2(a.scrollWidth, a.clientWidth, c.scrollWidth, c.clientWidth), i = I2(a.scrollHeight, a.clientHeight, c.scrollHeight, c.clientHeight);
2657
2657
  let d = -o.scrollLeft + Zv(t);
2658
2658
  const r = -o.scrollTop;
2659
- return we(c).direction === "rtl" && (d += I2(a.clientWidth, c.clientWidth) - n), {
2659
+ return Ie(c).direction === "rtl" && (d += I2(a.clientWidth, c.clientWidth) - n), {
2660
2660
  width: n,
2661
2661
  height: i,
2662
2662
  x: d,
@@ -2679,7 +2679,7 @@ function Kw(t, a) {
2679
2679
  };
2680
2680
  }
2681
2681
  function Jw(t, a) {
2682
- const o = C2(t, !0, a === "fixed"), c = o.top + t.clientTop, n = o.left + t.clientLeft, i = Pe(t) ? q2(t) : qe(1), d = t.clientWidth * i.x, r = t.clientHeight * i.y, h = n * i.x, l = c * i.y;
2682
+ const o = C2(t, !0, a === "fixed"), c = o.top + t.clientTop, n = o.left + t.clientLeft, i = Pe(t) ? q2(t) : ze(1), d = t.clientWidth * i.x, r = t.clientHeight * i.y, h = n * i.x, l = c * i.y;
2683
2683
  return {
2684
2684
  width: d,
2685
2685
  height: r,
@@ -2693,7 +2693,7 @@ function Yv(t, a, o) {
2693
2693
  c = Kw(t, o);
2694
2694
  else if (a === "document")
2695
2695
  c = Xw(Ve(t));
2696
- else if (Ie(a))
2696
+ else if (xe(a))
2697
2697
  c = Jw(a, o);
2698
2698
  else {
2699
2699
  const n = xx(t);
@@ -2708,17 +2708,17 @@ function Yv(t, a, o) {
2708
2708
  }
2709
2709
  function wx(t, a) {
2710
2710
  const o = Ue(t);
2711
- return o === a || !Ie(o) || V2(o) ? !1 : we(o).position === "fixed" || wx(o, a);
2711
+ return o === a || !xe(o) || V2(o) ? !1 : Ie(o).position === "fixed" || wx(o, a);
2712
2712
  }
2713
2713
  function Qw(t, a) {
2714
2714
  const o = a.get(t);
2715
2715
  if (o)
2716
2716
  return o;
2717
- let c = Z2(t, [], !1).filter((r) => Ie(r) && L2(r) !== "body"), n = null;
2718
- const i = we(t).position === "fixed";
2717
+ let c = Z2(t, [], !1).filter((r) => xe(r) && L2(r) !== "body"), n = null;
2718
+ const i = Ie(t).position === "fixed";
2719
2719
  let d = i ? Ue(t) : t;
2720
- for (; Ie(d) && !V2(d); ) {
2721
- const r = we(d), h = $v(d);
2720
+ for (; xe(d) && !V2(d); ) {
2721
+ const r = Ie(d), h = $v(d);
2722
2722
  !h && r.position === "fixed" && (n = null), (i ? !h && !n : !h && r.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || G2(d) && !h && wx(t, d)) ? c = c.filter((g) => g !== d) : n = r, d = Ue(d);
2723
2723
  }
2724
2724
  return a.set(t, c), c;
@@ -2757,14 +2757,14 @@ function eC(t, a, o) {
2757
2757
  scrollLeft: 0,
2758
2758
  scrollTop: 0
2759
2759
  };
2760
- const h = qe(0);
2760
+ const h = ze(0);
2761
2761
  if (c || !c && !i)
2762
2762
  if ((L2(a) !== "body" || G2(n)) && (r = uv(a)), c) {
2763
2763
  const k = C2(a, !0, i, a);
2764
2764
  h.x = k.x + a.clientLeft, h.y = k.y + a.clientTop;
2765
2765
  } else
2766
2766
  n && (h.x = Zv(n));
2767
- const l = n && !c && !i ? Ix(n, r) : qe(0), g = d.left + r.scrollLeft - h.x - l.x, y = d.top + r.scrollTop - h.y - l.y;
2767
+ const l = n && !c && !i ? Ix(n, r) : ze(0), g = d.left + r.scrollLeft - h.x - l.x, y = d.top + r.scrollTop - h.y - l.y;
2768
2768
  return {
2769
2769
  x: g,
2770
2770
  y,
@@ -2773,10 +2773,10 @@ function eC(t, a, o) {
2773
2773
  };
2774
2774
  }
2775
2775
  function vv(t) {
2776
- return we(t).position === "static";
2776
+ return Ie(t).position === "static";
2777
2777
  }
2778
2778
  function _v(t, a) {
2779
- if (!Pe(t) || we(t).position === "fixed")
2779
+ if (!Pe(t) || Ie(t).position === "fixed")
2780
2780
  return null;
2781
2781
  if (a)
2782
2782
  return a(t);
@@ -2790,7 +2790,7 @@ function Cx(t, a) {
2790
2790
  if (!Pe(t)) {
2791
2791
  let n = Ue(t);
2792
2792
  for (; n && !V2(n); ) {
2793
- if (Ie(n) && !vv(n))
2793
+ if (xe(n) && !vv(n))
2794
2794
  return n;
2795
2795
  n = Ue(n);
2796
2796
  }
@@ -2814,7 +2814,7 @@ const tC = async function(t) {
2814
2814
  };
2815
2815
  };
2816
2816
  function aC(t) {
2817
- return we(t).direction === "rtl";
2817
+ return Ie(t).direction === "rtl";
2818
2818
  }
2819
2819
  const oC = {
2820
2820
  convertOffsetParentRelativeRectToViewportRelativeRect: Ww,
@@ -2825,7 +2825,7 @@ const oC = {
2825
2825
  getClientRects: Gw,
2826
2826
  getDimensions: _w,
2827
2827
  getScale: q2,
2828
- isElement: Ie,
2828
+ isElement: xe,
2829
2829
  isRTL: aC
2830
2830
  };
2831
2831
  function cC(t, a) {
@@ -3122,7 +3122,7 @@ const qx = Symbol("hover-card"), Ax = /* @__PURE__ */ R({
3122
3122
  },
3123
3123
  setup(t) {
3124
3124
  const a = t, o = V(!1);
3125
- xe(() => {
3125
+ ve(() => {
3126
3126
  o.value = !0;
3127
3127
  });
3128
3128
  const c = V(null), n = V(null), i = V(null), { isOpen: d, open: r, close: h } = hC({
@@ -3384,7 +3384,7 @@ const pC = /* @__PURE__ */ f("span", { tabindex: "0" }, null, -1), kC = { class:
3384
3384
  document.body.classList.remove("cstu-modal-open"), a("close", r);
3385
3385
  }, 300);
3386
3386
  }
3387
- return xe(() => {
3387
+ return ve(() => {
3388
3388
  document.body.classList.add("cstu-modal-open"), Me(() => {
3389
3389
  c.value = !0;
3390
3390
  });
@@ -3430,7 +3430,7 @@ const pC = /* @__PURE__ */ f("span", { tabindex: "0" }, null, -1), kC = { class:
3430
3430
  [`cstu-modal-${t.size}`]: t.size && !t.fullscreen
3431
3431
  }
3432
3432
  ]),
3433
- onClick: h[2] || (h[2] = me(() => {
3433
+ onClick: h[2] || (h[2] = Ae(() => {
3434
3434
  }, ["stop"]))
3435
3435
  }, [
3436
3436
  pC,
@@ -3632,7 +3632,7 @@ const pC = /* @__PURE__ */ f("span", { tabindex: "0" }, null, -1), kC = { class:
3632
3632
  document.body.classList.remove("cstu-modal-open"), a("close", r);
3633
3633
  }, 300);
3634
3634
  }
3635
- return xe(() => {
3635
+ return ve(() => {
3636
3636
  document.body.classList.add("cstu-modal-open"), Me(() => {
3637
3637
  c.value = !0;
3638
3638
  });
@@ -3678,7 +3678,7 @@ const pC = /* @__PURE__ */ f("span", { tabindex: "0" }, null, -1), kC = { class:
3678
3678
  [`cstu-modal-${t.size}`]: t.size && !t.fullscreen
3679
3679
  }
3680
3680
  ]),
3681
- onClick: h[3] || (h[3] = me(() => {
3681
+ onClick: h[3] || (h[3] = Ae(() => {
3682
3682
  }, ["stop"]))
3683
3683
  }, [
3684
3684
  xC,
@@ -4100,7 +4100,7 @@ const qC = ["id"], AC = ["id", "aria-labelledby"], HC = /* @__PURE__ */ f("span"
4100
4100
  componentId: c.id
4101
4101
  });
4102
4102
  o("show", B), !B.defaultPrevented && (d.value = document.activeElement, i.value = !0, g.value++, k(), document.body.classList.add("cstu-modal-open"), o("update:modelValue", !0), Me(() => {
4103
- H(), o("shown", B);
4103
+ c.disableFocusTrap || H(), o("shown", B);
4104
4104
  }));
4105
4105
  }
4106
4106
  function C(B = "programmatic") {
@@ -4183,7 +4183,7 @@ const qC = ["id"], AC = ["id", "aria-labelledby"], HC = /* @__PURE__ */ f("span"
4183
4183
  hide: C,
4184
4184
  toggle: z
4185
4185
  });
4186
- }), xe(() => {
4186
+ }), ve(() => {
4187
4187
  ox(c.id, {
4188
4188
  show: q,
4189
4189
  hide: C,
@@ -4234,9 +4234,7 @@ const qC = ["id"], AC = ["id", "aria-labelledby"], HC = /* @__PURE__ */ f("span"
4234
4234
  "aria-modal": "true",
4235
4235
  style: N({ zIndex: s(y) }),
4236
4236
  "aria-labelledby": !t.hideHeader && t.title ? `modal-title-${c.id}` : void 0,
4237
- onClick: x,
4238
- onMousedown: P[5] || (P[5] = me(() => {
4239
- }, ["stop"]))
4237
+ onClick: x
4240
4238
  }, [
4241
4239
  f("div", {
4242
4240
  class: v([
@@ -4249,7 +4247,7 @@ const qC = ["id"], AC = ["id", "aria-labelledby"], HC = /* @__PURE__ */ f("span"
4249
4247
  [`cstu-modal-${t.size}`]: t.size && !t.fullscreen
4250
4248
  }
4251
4249
  ]),
4252
- onClick: P[4] || (P[4] = me((Z) => Z.target === Z.currentTarget && Z.stopPropagation(), ["stop"]))
4250
+ onClick: P[4] || (P[4] = (Z) => Z.target === Z.currentTarget && Z.stopPropagation())
4253
4251
  }, [
4254
4252
  HC,
4255
4253
  f("div", {
@@ -4338,7 +4336,7 @@ const qC = ["id"], AC = ["id", "aria-labelledby"], HC = /* @__PURE__ */ f("span"
4338
4336
  ], 10, PC),
4339
4337
  TC
4340
4338
  ], 2)
4341
- ], 46, AC)) : L("", !0)
4339
+ ], 14, AC)) : L("", !0)
4342
4340
  ]),
4343
4341
  _: 3
4344
4342
  })
@@ -5158,7 +5156,7 @@ const _C = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
5158
5156
  }
5159
5157
  ), ne(n, (A) => {
5160
5158
  A && k();
5161
- }), xe(() => {
5159
+ }), ve(() => {
5162
5160
  document.addEventListener("keydown", x), o.trapFocus && document.addEventListener("focusin", P);
5163
5161
  }), W2(() => {
5164
5162
  document.removeEventListener("keydown", x), o.trapFocus && document.removeEventListener("focusin", P);
@@ -5342,7 +5340,7 @@ const _C = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
5342
5340
  color: o.color && s(le)(o.color) ? "white" : "gray",
5343
5341
  class: "cstu-ml-auto",
5344
5342
  "aria-label": "Close popover",
5345
- onClick: D[0] || (D[0] = me((ae) => H("headerClose"), ["stop"]))
5343
+ onClick: D[0] || (D[0] = Ae((ae) => H("headerClose"), ["stop"]))
5346
5344
  }, null, 8, ["color"])) : L("", !0)
5347
5345
  ])
5348
5346
  ], 2)),
@@ -5602,10 +5600,10 @@ const yL = {
5602
5600
  };
5603
5601
  if (I === "unstyled")
5604
5602
  return [O[I]];
5605
- const Le = K.value ? "" : I === "default" || I === "outline" ? "cstu-border-gray-300/45" : "", b2 = K.value ? "cstu-border-red-500" : "";
5603
+ const Ce = K.value ? "" : I === "default" || I === "outline" ? "cstu-border-gray-300/45" : "", b2 = K.value ? "cstu-border-red-500" : "";
5606
5604
  return [
5607
5605
  O[I],
5608
- Le,
5606
+ Ce,
5609
5607
  b2,
5610
5608
  // Hover classes - only apply on hover
5611
5609
  K.value ? "hover:cstu-border-red-500" : "hover:cstu-border-blue-450",
@@ -5635,13 +5633,13 @@ const yL = {
5635
5633
  var O;
5636
5634
  return (O = W.value) == null ? void 0 : O.select();
5637
5635
  },
5638
- setSelectionRange: (O, Le) => {
5636
+ setSelectionRange: (O, Ce) => {
5639
5637
  var b2;
5640
- return (b2 = W.value) == null ? void 0 : b2.setSelectionRange(O, Le);
5638
+ return (b2 = W.value) == null ? void 0 : b2.setSelectionRange(O, Ce);
5641
5639
  },
5642
5640
  setRangeText: (O) => {
5643
- var Le;
5644
- return (Le = W.value) == null ? void 0 : Le.setRangeText(O);
5641
+ var Ce;
5642
+ return (Ce = W.value) == null ? void 0 : Ce.setRangeText(O);
5645
5643
  },
5646
5644
  // Expose common properties
5647
5645
  get value() {
@@ -5651,7 +5649,7 @@ const yL = {
5651
5649
  set value(O) {
5652
5650
  W.value && O !== void 0 && (W.value.value = O);
5653
5651
  }
5654
- }), (O, Le) => (p(), M("div", {
5652
+ }), (O, Ce) => (p(), M("div", {
5655
5653
  class: v(["cstu-flex cstu-flex-col cstu-transition-all cstu-duration-300", [O.customClass, t.fullWidth ? "cstu-w-full" : "cstu-max-w-[20.5rem]"]])
5656
5654
  }, [
5657
5655
  t.label || O.$slots.label ? (p(), M("div", yL, [
@@ -5709,7 +5707,7 @@ const yL = {
5709
5707
  style: {
5710
5708
  resize: t.resize
5711
5709
  },
5712
- onInput: Le[0] || (Le[0] = (b2) => O.$emit("update:modelValue", b2.target.value)),
5710
+ onInput: Ce[0] || (Ce[0] = (b2) => O.$emit("update:modelValue", b2.target.value)),
5713
5711
  onFocus: Kx,
5714
5712
  onBlur: Jx,
5715
5713
  onChange: Qx
@@ -15816,7 +15814,7 @@ const xt = e("Grid2x2Icon", [
15816
15814
  * This source code is licensed under the ISC license.
15817
15815
  * See the LICENSE file in the root directory of this source tree.
15818
15816
  */
15819
- const be = e("Grid3x3Icon", [
15817
+ const Le = e("Grid3x3Icon", [
15820
15818
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
15821
15819
  ["path", { d: "M3 9h18", key: "1pudct" }],
15822
15820
  ["path", { d: "M3 15h18", key: "5xshup" }],
@@ -24223,7 +24221,7 @@ const ma = e("SquareBottomDashedScissorsIcon", [
24223
24221
  * This source code is licensed under the ISC license.
24224
24222
  * See the LICENSE file in the root directory of this source tree.
24225
24223
  */
24226
- const Se = e("SquareChartGanttIcon", [
24224
+ const be = e("SquareChartGanttIcon", [
24227
24225
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
24228
24226
  ["path", { d: "M9 8h7", key: "kbo1nt" }],
24229
24227
  ["path", { d: "M8 12h6", key: "ikassy" }],
@@ -28532,7 +28530,7 @@ const vL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28532
28530
  Grid2x2Check: Ay,
28533
28531
  Grid2x2Plus: vt,
28534
28532
  Grid2x2X: Hy,
28535
- Grid3x3: be,
28533
+ Grid3x3: Le,
28536
28534
  Grip: Vy,
28537
28535
  GripHorizontal: Py,
28538
28536
  GripVertical: By,
@@ -29110,7 +29108,7 @@ const vL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29110
29108
  SquareArrowUpRight: fa,
29111
29109
  SquareAsterisk: ga,
29112
29110
  SquareBottomDashedScissors: ma,
29113
- SquareChartGantt: Se,
29111
+ SquareChartGantt: be,
29114
29112
  SquareCheck: xa,
29115
29113
  SquareCheckBig: va,
29116
29114
  SquareChevronDown: Ia,
@@ -30906,8 +30904,8 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
30906
30904
  GamepadIcon: ey,
30907
30905
  GanttChart: M1,
30908
30906
  GanttChartIcon: M1,
30909
- GanttChartSquare: Se,
30910
- GanttChartSquareIcon: Se,
30907
+ GanttChartSquare: be,
30908
+ GanttChartSquareIcon: be,
30911
30909
  Gauge: ty,
30912
30910
  GaugeCircle: j1,
30913
30911
  GaugeCircleIcon: j1,
@@ -30974,7 +30972,7 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
30974
30972
  GraduationCapIcon: zy,
30975
30973
  Grape: qy,
30976
30974
  GrapeIcon: qy,
30977
- Grid: be,
30975
+ Grid: Le,
30978
30976
  Grid2X2: xt,
30979
30977
  Grid2X2Icon: xt,
30980
30978
  Grid2X2Plus: vt,
@@ -30987,11 +30985,11 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
30987
30985
  Grid2x2PlusIcon: vt,
30988
30986
  Grid2x2X: Hy,
30989
30987
  Grid2x2XIcon: Hy,
30990
- Grid3X3: be,
30991
- Grid3X3Icon: be,
30992
- Grid3x3: be,
30993
- Grid3x3Icon: be,
30994
- GridIcon: be,
30988
+ Grid3X3: Le,
30989
+ Grid3X3Icon: Le,
30990
+ Grid3x3: Le,
30991
+ Grid3x3Icon: Le,
30992
+ GridIcon: Le,
30995
30993
  Grip: Vy,
30996
30994
  GripHorizontal: Py,
30997
30995
  GripHorizontalIcon: Py,
@@ -32087,7 +32085,7 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32087
32085
  LucideGamepad: ey,
32088
32086
  LucideGamepad2: _u,
32089
32087
  LucideGanttChart: M1,
32090
- LucideGanttChartSquare: Se,
32088
+ LucideGanttChartSquare: be,
32091
32089
  LucideGauge: ty,
32092
32090
  LucideGaugeCircle: j1,
32093
32091
  LucideGavel: ay,
@@ -32121,15 +32119,15 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32121
32119
  LucideGrab: Sy,
32122
32120
  LucideGraduationCap: zy,
32123
32121
  LucideGrape: qy,
32124
- LucideGrid: be,
32122
+ LucideGrid: Le,
32125
32123
  LucideGrid2X2: xt,
32126
32124
  LucideGrid2X2Plus: vt,
32127
32125
  LucideGrid2x2: xt,
32128
32126
  LucideGrid2x2Check: Ay,
32129
32127
  LucideGrid2x2Plus: vt,
32130
32128
  LucideGrid2x2X: Hy,
32131
- LucideGrid3X3: be,
32132
- LucideGrid3x3: be,
32129
+ LucideGrid3X3: Le,
32130
+ LucideGrid3x3: Le,
32133
32131
  LucideGrip: Vy,
32134
32132
  LucideGripHorizontal: Py,
32135
32133
  LucideGripVertical: By,
@@ -32780,7 +32778,7 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32780
32778
  LucideSquareArrowUpRight: fa,
32781
32779
  LucideSquareAsterisk: ga,
32782
32780
  LucideSquareBottomDashedScissors: ma,
32783
- LucideSquareChartGantt: Se,
32781
+ LucideSquareChartGantt: be,
32784
32782
  LucideSquareCheck: xa,
32785
32783
  LucideSquareCheckBig: va,
32786
32784
  LucideSquareChevronDown: Ia,
@@ -32797,7 +32795,7 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32797
32795
  LucideSquareDot: Ha,
32798
32796
  LucideSquareEqual: Pa,
32799
32797
  LucideSquareFunction: Ba,
32800
- LucideSquareGanttChart: Se,
32798
+ LucideSquareGanttChart: be,
32801
32799
  LucideSquareKanban: Va,
32802
32800
  LucideSquareLibrary: Fa,
32803
32801
  LucideSquareM: ja,
@@ -34035,8 +34033,8 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34035
34033
  SquareAsteriskIcon: ga,
34036
34034
  SquareBottomDashedScissors: ma,
34037
34035
  SquareBottomDashedScissorsIcon: ma,
34038
- SquareChartGantt: Se,
34039
- SquareChartGanttIcon: Se,
34036
+ SquareChartGantt: be,
34037
+ SquareChartGanttIcon: be,
34040
34038
  SquareCheck: xa,
34041
34039
  SquareCheckBig: va,
34042
34040
  SquareCheckBigIcon: va,
@@ -34069,8 +34067,8 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34069
34067
  SquareEqualIcon: Pa,
34070
34068
  SquareFunction: Ba,
34071
34069
  SquareFunctionIcon: Ba,
34072
- SquareGanttChart: Se,
34073
- SquareGanttChartIcon: Se,
34070
+ SquareGanttChart: be,
34071
+ SquareGanttChartIcon: be,
34074
34072
  SquareIcon: If,
34075
34073
  SquareKanban: Va,
34076
34074
  SquareKanbanIcon: Va,
@@ -34675,7 +34673,7 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34675
34673
  return [
34676
34674
  y,
34677
34675
  x,
34678
- ve(o.size, "button"),
34676
+ me(o.size, "button"),
34679
34677
  d(o.radius),
34680
34678
  w2({
34681
34679
  disabled: o.disabled,
@@ -34692,7 +34690,7 @@ const xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34692
34690
  hover: !0,
34693
34691
  active: !0,
34694
34692
  focus: !0
34695
- }), m = ve(o.size, "button"), b = w2({
34693
+ }), m = me(o.size, "button"), b = w2({
34696
34694
  disabled: o.disabled,
34697
34695
  loading: o.loading
34698
34696
  }), q = Fv(o.size, "button"), C = d(o.radius);
@@ -34770,7 +34768,7 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34770
34768
  emits: ["close", "update:open"],
34771
34769
  setup(t, { emit: a }) {
34772
34770
  const o = t, c = V(o.open), n = V(0), i = V(null), d = V(null);
34773
- xe(() => {
34771
+ ve(() => {
34774
34772
  ne(c, (x) => {
34775
34773
  x && Me(() => {
34776
34774
  var H;
@@ -34840,7 +34838,7 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34840
34838
  y();
34841
34839
  });
34842
34840
  });
34843
- const m = u(() => ve(o.size, "dropdown")), b = u(() => He(o.radius));
34841
+ const m = u(() => me(o.size, "dropdown")), b = u(() => He(o.radius));
34844
34842
  function q(x) {
34845
34843
  var U;
34846
34844
  if (!c.value)
@@ -34924,9 +34922,9 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
34924
34922
  t.dropdownClasses,
34925
34923
  { "cstu-min-w-[225px]": !o.matchWidth }
34926
34924
  ]]),
34927
- onClick: I[0] || (I[0] = me(() => {
34925
+ onClick: I[0] || (I[0] = Ae(() => {
34928
34926
  }, ["stop"])),
34929
- onMousedown: I[1] || (I[1] = me(() => {
34927
+ onMousedown: I[1] || (I[1] = Ae(() => {
34930
34928
  }, ["stop"]))
34931
34929
  }, [
34932
34930
  f("div", {
@@ -35047,7 +35045,7 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
35047
35045
  }, m = () => {
35048
35046
  c.value = !1, a("close");
35049
35047
  };
35050
- xe(() => {
35048
+ ve(() => {
35051
35049
  document.addEventListener("click", g);
35052
35050
  }), W2(() => {
35053
35051
  document.removeEventListener("click", g);
@@ -35100,7 +35098,7 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
35100
35098
  hover: !0,
35101
35099
  active: !0,
35102
35100
  focus: !0
35103
- }) : "", H = ve(o.size, "button"), F = w2({
35101
+ }) : "", H = me(o.size, "button"), F = w2({
35104
35102
  disabled: o.disabled,
35105
35103
  loading: o.loading
35106
35104
  });
@@ -35203,9 +35201,9 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
35203
35201
  top: `${s(r) ?? 0}px`,
35204
35202
  left: `${s(d) ?? 0}px`
35205
35203
  }),
35206
- onClick: I[1] || (I[1] = me(() => {
35204
+ onClick: I[1] || (I[1] = Ae(() => {
35207
35205
  }, ["stop"])),
35208
- onMousedown: I[2] || (I[2] = me(() => {
35206
+ onMousedown: I[2] || (I[2] = Ae(() => {
35209
35207
  }, ["stop"]))
35210
35208
  }, [
35211
35209
  f("div", HL, [
@@ -35259,7 +35257,7 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
35259
35257
  }, h = (l) => {
35260
35258
  a("update:modelValue", l);
35261
35259
  };
35262
- return ne(() => o.modelValue, r), ne(() => o.orientation, r), xe(() => {
35260
+ return ne(() => o.modelValue, r), ne(() => o.orientation, r), ve(() => {
35263
35261
  r(), window.addEventListener("resize", r);
35264
35262
  }), Bv(() => {
35265
35263
  window.removeEventListener("resize", r);
@@ -35295,7 +35293,7 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
35295
35293
  "cstu-divide-x cstu-divide-gray-200": t.withItemsBorders && t.orientation === "horizontal",
35296
35294
  "cstu-divide-y cstu-divide-gray-200": t.withItemsBorders && t.orientation === "vertical"
35297
35295
  },
35298
- s(ve)(t.size, "segmentedControlContainer"),
35296
+ s(me)(t.size, "segmentedControlContainer"),
35299
35297
  "cstu-bg-gray-100"
35300
35298
  ])
35301
35299
  }, [
@@ -35306,7 +35304,7 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
35306
35304
  "cstu-transition-all cstu-duration-200",
35307
35305
  s(ux)(!!y.disabled),
35308
35306
  o.modelValue === y.value ? "cstu-bg-white cstu-border-gray-500/15" : "cstu-border-transparent",
35309
- s(ve)(t.size, "segmentedControl"),
35307
+ s(me)(t.size, "segmentedControl"),
35310
35308
  "cstu-cursor-pointer",
35311
35309
  "cstu-flex cstu-items-center cstu-justify-center hover:cstu-border-gray-500/15 cstu-border",
35312
35310
  s(xv)[t.radius]
@@ -35584,12 +35582,12 @@ const CL = /* @__PURE__ */ cI('<svg xmlns="http://www.w3.org/2000/svg" width="12
35584
35582
  return [
35585
35583
  l,
35586
35584
  C,
35587
- a.circle ? n.value : ve(a.size, "badge"),
35585
+ a.circle ? n.value : me(a.size, "badge"),
35588
35586
  a.circle ? "rounded-full" : He(a.radius),
35589
35587
  a.fullWidth ? "w-full" : ""
35590
35588
  ].filter(Boolean).join(" ");
35591
35589
  }
35592
- const g = a.circle ? n.value : ve(a.size, "badge"), y = a.circle ? "rounded-full" : He(a.radius), k = a.fullWidth ? "w-full" : "";
35590
+ const g = a.circle ? n.value : me(a.size, "badge"), y = a.circle ? "rounded-full" : He(a.radius), k = a.fullWidth ? "w-full" : "";
35593
35591
  return [
35594
35592
  l,
35595
35593
  d.value,
@@ -35751,7 +35749,7 @@ var OL = Object.defineProperty, $L = Object.defineProperties, EL = Object.getOwn
35751
35749
  DARK: "dark",
35752
35750
  COLORED: "colored",
35753
35751
  AUTO: "auto"
35754
- }, Ce = {
35752
+ }, we = {
35755
35753
  INFO: "info",
35756
35754
  SUCCESS: "success",
35757
35755
  WARNING: "warning",
@@ -35786,7 +35784,7 @@ var OL = Object.defineProperty, $L = Object.defineProperties, EL = Object.getOwn
35786
35784
  }, Tx = ee(ee({}, Dx), NL);
35787
35785
  Ee(ee({}, Dx), {
35788
35786
  data: {},
35789
- type: Ce.DEFAULT,
35787
+ type: we.DEFAULT,
35790
35788
  icon: !1
35791
35789
  });
35792
35790
  var T;
@@ -35922,8 +35920,8 @@ function nb(t) {
35922
35920
  }
35923
35921
  function ix(t) {
35924
35922
  var a;
35925
- const o = lx(t.content) ? ze(t.content.props) : null;
35926
- return o ?? ze((a = t.data) != null ? a : {});
35923
+ const o = lx(t.content) ? Se(t.content.props) : null;
35924
+ return o ?? Se((a = t.data) != null ? a : {});
35927
35925
  }
35928
35926
  function ib(t) {
35929
35927
  return t ? Be.items.filter((o) => o.containerId === t).length > 0 : Be.items.length > 0;
@@ -35938,7 +35936,7 @@ var ie = T2({}), Be = T2({
35938
35936
  items: []
35939
35937
  });
35940
35938
  function K2() {
35941
- const t = ze(ie);
35939
+ const t = Se(ie);
35942
35940
  return Object.values(t).reduce((a, o) => [...a, ...o], []);
35943
35941
  }
35944
35942
  function db(t) {
@@ -36199,7 +36197,7 @@ var yb = {
36199
36197
  type: {
36200
36198
  type: String,
36201
36199
  required: !1,
36202
- default: Ce.DEFAULT
36200
+ default: we.DEFAULT
36203
36201
  },
36204
36202
  icon: {
36205
36203
  type: [Boolean, String, Number, Object, Function],
@@ -36259,7 +36257,7 @@ var yb = {
36259
36257
  type: {
36260
36258
  type: String,
36261
36259
  required: !1,
36262
- default: Ce.DEFAULT
36260
+ default: we.DEFAULT
36263
36261
  },
36264
36262
  theme: {
36265
36263
  type: String,
@@ -36433,7 +36431,7 @@ function Cb(t) {
36433
36431
  theme: a,
36434
36432
  type: o
36435
36433
  };
36436
- return c ? i = Pv.spinner() : n === !1 ? i = void 0 : ev(n) ? i = ze(n) : A2(n) ? i = n(d) : lx(n) ? i = nI(n, d) : Hv(n) || sb(n) ? i = n : wb(o) && (i = Pv[o](d)), i;
36434
+ return c ? i = Pv.spinner() : n === !1 ? i = void 0 : ev(n) ? i = Se(n) : A2(n) ? i = n(d) : lx(n) ? i = nI(n, d) : Hv(n) || sb(n) ? i = n : wb(o) && (i = Pv[o](d)), i;
36437
36435
  }
36438
36436
  var Lb = () => {
36439
36437
  };
@@ -36507,7 +36505,7 @@ function Sb(t) {
36507
36505
  o.value = w.findIndex((x) => x.toastId === i.toastId) > -1;
36508
36506
  }), Y2(() => {
36509
36507
  t.isLoading !== void 0 && (t.loading.value ? C() : q());
36510
- }), xe(g), Bv(() => {
36508
+ }), ve(g), Bv(() => {
36511
36509
  t.pauseOnFocusLoss && b();
36512
36510
  }), {
36513
36511
  isIn: o,
@@ -36550,7 +36548,7 @@ var zb = R({
36550
36548
  }, [n.value != null && $("div", {
36551
36549
  "data-testid": `toast-icon-${t.type}`,
36552
36550
  class: [`${T.CSS_NAMESPACE}__toast-icon`, t.isLoading ? "" : `${T.CSS_NAMESPACE}--animate-icon ${T.CSS_NAMESPACE}__zoom-enter`].join(" ")
36553
- }, [ev(n.value) ? $e(ze(n.value), {
36551
+ }, [ev(n.value) ? $e(Se(n.value), {
36554
36552
  theme: t.theme,
36555
36553
  type: t.type
36556
36554
  }) : A2(n.value) ? n.value({
@@ -36558,12 +36556,12 @@ var zb = R({
36558
36556
  type: t.type
36559
36557
  }) : n.value]), $("div", {
36560
36558
  "data-testid": "toast-content"
36561
- }, [ev(t.content) ? $e(ze(t.content), {
36562
- toastProps: ze(t),
36559
+ }, [ev(t.content) ? $e(Se(t.content), {
36560
+ toastProps: Se(t),
36563
36561
  closeToast: h,
36564
36562
  data: t.data
36565
36563
  }) : A2(t.content) ? t.content({
36566
- toastProps: ze(t),
36564
+ toastProps: Se(t),
36567
36565
  closeToast: h,
36568
36566
  data: t.data
36569
36567
  }) : t.dangerouslyHTMLString ? $e("div", {
@@ -36573,7 +36571,7 @@ var zb = R({
36573
36571
  closeToast: (g) => {
36574
36572
  g.stopPropagation(), g.preventDefault(), h();
36575
36573
  }
36576
- }, null), ev(t.closeButton) ? $e(ze(t.closeButton), {
36574
+ }, null), ev(t.closeButton) ? $e(Se(t.closeButton), {
36577
36575
  closeToast: h,
36578
36576
  type: t.type,
36579
36577
  theme: t.theme
@@ -36649,20 +36647,20 @@ function Ze(t, a) {
36649
36647
  Iv = !1;
36650
36648
  }, 390)), o.toastId;
36651
36649
  }
36652
- var Q = (t, a) => Ze(t, Ce.DEFAULT, a);
36653
- Q.info = (t, a) => Ze(t, Ce.INFO, a);
36654
- Q.error = (t, a) => Ze(t, Ce.ERROR, a);
36655
- Q.warning = (t, a) => Ze(t, Ce.WARNING, a);
36650
+ var Q = (t, a) => Ze(t, we.DEFAULT, a);
36651
+ Q.info = (t, a) => Ze(t, we.INFO, a);
36652
+ Q.error = (t, a) => Ze(t, we.ERROR, a);
36653
+ Q.warning = (t, a) => Ze(t, we.WARNING, a);
36656
36654
  Q.warn = Q.warning;
36657
- Q.success = (t, a) => Ze(t, Ce.SUCCESS, a);
36658
- Q.loading = (t, a) => Ze(t, Ce.DEFAULT, gv(a, {
36655
+ Q.success = (t, a) => Ze(t, we.SUCCESS, a);
36656
+ Q.loading = (t, a) => Ze(t, we.DEFAULT, gv(a, {
36659
36657
  isLoading: !0,
36660
36658
  autoClose: !1,
36661
36659
  closeOnClick: !1,
36662
36660
  closeButton: !1,
36663
36661
  draggable: !1
36664
36662
  }));
36665
- Q.dark = (t, a) => Ze(t, Ce.DEFAULT, gv(a, {
36663
+ Q.dark = (t, a) => Ze(t, we.DEFAULT, gv(a, {
36666
36664
  theme: F2.DARK
36667
36665
  }));
36668
36666
  Q.remove = (t) => {
@@ -36680,7 +36678,7 @@ Q.update = function(t) {
36680
36678
  setTimeout(() => {
36681
36679
  const o = db(t);
36682
36680
  if (o) {
36683
- const c = ze(o), {
36681
+ const c = Se(o), {
36684
36682
  content: n
36685
36683
  } = c, i = Ee(ee(ee({}, c), a), {
36686
36684
  toastId: a.toastId || t,
@@ -36735,7 +36733,7 @@ function Vb(t, a, o) {
36735
36733
  }
36736
36734
  Q.POSITION = X2;
36737
36735
  Q.THEME = F2;
36738
- Q.TYPE = Ce;
36736
+ Q.TYPE = we;
36739
36737
  Q.TRANSITIONS = ZL;
36740
36738
  var se = Q, Nx = {
36741
36739
  install(t) {
@@ -36840,7 +36838,7 @@ const jb = (t) => (iI("data-v-e05db311"), t = t(), rI(), t), Db = { class: "cstu
36840
36838
  const a = t, o = V(!1), c = () => {
36841
36839
  typeof window < "u" && (o.value = window.matchMedia("(prefers-color-scheme: dark)").matches);
36842
36840
  };
36843
- xe(() => {
36841
+ ve(() => {
36844
36842
  c(), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", c);
36845
36843
  });
36846
36844
  const n = {
@@ -37204,7 +37202,7 @@ const yS = /* @__PURE__ */ kx(uS, [["__scopeId", "data-v-e05db311"]]), dv = {
37204
37202
  },
37205
37203
  setup(t) {
37206
37204
  const a = t;
37207
- return xe(() => {
37205
+ return ve(() => {
37208
37206
  if (a.showOnMount && a.message) {
37209
37207
  const o = {
37210
37208
  autoClose: a.autoClose,
@@ -37374,7 +37372,7 @@ const fS = {
37374
37372
  }, h = (l) => {
37375
37373
  l.key === "Escape" && a.opened && a.closeOnEscape && a.onClose();
37376
37374
  };
37377
- return xe(() => {
37375
+ return ve(() => {
37378
37376
  document.addEventListener("keydown", h);
37379
37377
  }), Bv(() => {
37380
37378
  document.removeEventListener("keydown", h), document.body.style.overflow === "hidden" && (document.body.style.overflow = "");
@@ -37562,7 +37560,7 @@ const nz = {}, xS = /* @__PURE__ */ R({
37562
37560
  },
37563
37561
  emits: ["remove"],
37564
37562
  setup(t, { emit: a }) {
37565
- const o = t, c = u(() => ve(o.size, "chip")), n = u(() => He(o.radius)), i = u(() => {
37563
+ const o = t, c = u(() => me(o.size, "chip")), n = u(() => He(o.radius)), i = u(() => {
37566
37564
  const r = o.variant === "contrast" ? "filled" : "light";
37567
37565
  return Y(o.color, r, {
37568
37566
  disabled: o.disabled
@@ -37592,9 +37590,9 @@ const nz = {}, xS = /* @__PURE__ */ R({
37592
37590
  class: v(["pill__remove", [s(n)]]),
37593
37591
  tabindex: "-1",
37594
37592
  "aria-hidden": "true",
37595
- onMousedown: h[0] || (h[0] = me(() => {
37593
+ onMousedown: h[0] || (h[0] = Ae(() => {
37596
37594
  }, ["prevent", "stop"])),
37597
- onClick: h[1] || (h[1] = me((l) => r.$emit("remove"), ["stop"]))
37595
+ onClick: h[1] || (h[1] = Ae((l) => r.$emit("remove"), ["stop"]))
37598
37596
  }, SS, 34)) : L("", !0)
37599
37597
  ], 2));
37600
37598
  }
@@ -9,7 +9,7 @@
9
9
  opacity: 0 !important;
10
10
  transition: opacity 0.15s linear;
11
11
  }
12
- `,document.head.appendChild(Wx);const EC=["id"],RC=["id","aria-labelledby"],OC=e.createElementVNode("span",{tabindex:"0"},null,-1),NC=["aria-label"],$C=["id"],UC=["aria-label"],ZC=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"cstu-size-6"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)],WC={key:0},GC=e.createElementVNode("span",{tabindex:"0"},null,-1),XC=e.defineComponent({__name:"Modal",props:{id:{type:String,default:()=>`modal-${Date.now()}`},title:{type:String,default:""},modelValue:{type:Boolean,default:!1},size:{type:String,default:"md"},radius:{type:String,default:""},centered:{type:Boolean,default:!0},scrollable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideHeaderClose:{type:Boolean,default:!1},titleSrOnly:{type:Boolean,default:!1},ariaLabel:{type:String,default:""},content:{type:String,default:""},okTitle:{type:String,default:"OK"},okVariant:{type:String,default:"filled"},okColor:{type:String,default:"primary"},okDisabled:{type:Boolean,default:!1},cancelTitle:{type:String,default:"Cancel"},cancelVariant:{type:String,default:"outline"},cancelColor:{type:String,default:"secondary"},cancelDisabled:{type:Boolean,default:!1},modalClass:{type:String,default:""},dialogClass:{type:String,default:""},contentClass:{type:String,default:""},headerClass:{type:String,default:""},bodyClass:{type:String,default:""},footerClass:{type:String,default:""},ariaLabelledby:{type:String,default:""},teleport:{type:Boolean,default:!0},backdrop:{type:Boolean,default:!0},backdropClass:{type:String,default:""},titleClass:{type:String,default:""},showHeaderDivider:{type:Boolean,default:!1},showFooterDivider:{type:Boolean,default:!1},showDividers:{type:Boolean,default:void 0},closeTitle:{type:String,default:"Close"},busy:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},static:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},okOnly:{type:Boolean,default:!1},zIndex:{type:Number,default:1050},disableFocusTrap:{type:Boolean,default:!1},ignoreEnforceFocusSelector:{type:String,default:""}},emits:["update:modelValue","show","shown","hide","hidden","ok","cancel","close"],setup(a,{expose:o,emit:c}){const n=a;class r{constructor(v,H={}){Me(this,"type");Me(this,"cancelable",!0);Me(this,"target",null);Me(this,"vueTarget",null);Me(this,"defaultPrevented",!1);Me(this,"componentId","");Me(this,"trigger","programmatic");this.type=v,Object.assign(this,H)}preventDefault(){this.defaultPrevented=!0}}const i=e.ref(!1),d=e.ref(null),l=e.ref(null),h=e.ref(n.zIndex),s=e.ref(!1),u=e.ref(0),y=e.computed(()=>n.zIndex!==1050?n.zIndex:h.value);function p(){if(n.zIndex!==1050){h.value=n.zIndex;return}const b=document.querySelectorAll(".cstu-modal");let v=1050;b.forEach(H=>{const O=parseInt(window.getComputedStyle(H).zIndex,10);!isNaN(O)&&O>v&&(v=O)}),h.value=v+10}const k=e.computed(()=>n.fullscreen?"":x(n.radius));function x(b){const v={none:"",sm:"cstu-rounded-sm",md:"cstu-rounded-md",lg:"cstu-rounded-lg",xl:"cstu-rounded-xl",full:"cstu-rounded-full"};return v[b||n.size]||v.md}function w(){if(i.value)return;const b=new r("show",{trigger:"programmatic",target:null,vueTarget:null,componentId:n.id});c("show",b),!b.defaultPrevented&&(d.value=document.activeElement,i.value=!0,u.value++,p(),document.body.classList.add("cstu-modal-open"),c("update:modelValue",!0),e.nextTick(()=>{L(),c("shown",b)}))}function g(b="programmatic"){if(!i.value)return;const v=new r("hide",{trigger:b,target:null,vueTarget:null,componentId:n.id});c("hide",v),!v.defaultPrevented&&(i.value=!1,s.value=!1,document.body.classList.remove("cstu-modal-open"),c("update:modelValue",!1),e.nextTick(()=>{z(d.value),c("hidden",v)}))}function I(b){b&&(d.value=typeof b=="string"?document.querySelector(b):b),i.value?g():w()}function M(b){b==="ok"?c("ok"):b==="cancel"&&c("cancel"),g(b)}function m(b){const v=b.target,H=v.closest(".cstu-dropdown-menu"),O=v.tagName&&["input","select","textarea","button"].includes(v.tagName.toLowerCase()),N=v.closest(".cstu-modal-content");H||O||N&&v!==b.currentTarget||!n.noCloseOnBackdrop&&v===b.currentTarget&&g("backdrop")}function f(b){b.key==="Escape"&&i.value&&!n.noCloseOnEsc&&!n.busy&&g("esc")}function L(){e.nextTick(()=>{if(!l.value)return;const b=l.value,v=D(b);v.length>0&&v[0].focus()})}function z(b){if(b&&i.value===!1)try{b.focus()}catch{}}function V(b){if(n.disableFocusTrap||!l.value||!i.value)return;const v=b.target,H=l.value;if(n.ignoreEnforceFocusSelector&&n.ignoreEnforceFocusSelector.trim()!==""){const N=n.ignoreEnforceFocusSelector.split(",").map(P=>P.trim()).filter(P=>P.length>0);for(const P of N)if(v.closest(P))return}const O=!!v.closest(".cstu-modal-content");if(H!==v&&!H.contains(v)&&!O){if(s.value)return;s.value=!0;try{const N=D(H);N.length>0?N[0].focus():H.focus()}finally{setTimeout(()=>{s.value=!1},0)}}}function D(b){return Array.from(b.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))}return e.watch(()=>n.modelValue,b=>{b!==i.value&&(b?w():g())}),e.watch(()=>n.id,()=>{Zx(n.id),Ux(n.id,{show:w,hide:g,toggle:I})}),e.onMounted(()=>{Ux(n.id,{show:w,hide:g,toggle:I}),document.addEventListener("keydown",f),document.addEventListener("focusin",V),n.modelValue&&(w(),i.value&&e.nextTick(()=>{setTimeout(()=>{const b=document.getElementById(n.id);let v=null;b&&b.parentNode&&(v=b.parentNode.querySelector(".cstu-modal-backdrop")),b&&window.getComputedStyle(b).display==="none"&&(b.style.display="block"),v&&window.getComputedStyle(v).display==="none"&&(v.style.display="block")},50)}))}),e.onBeforeUnmount(()=>{Zx(n.id),document.removeEventListener("keydown",f),document.removeEventListener("focusin",V),i.value&&(i.value=!1,c("update:modelValue",!1))}),o({hide:g,show:w,close:M,toggle:I}),(b,v)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body",disabled:n.static||n.teleport===!1},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value&&a.backdrop!==!1?(e.openBlock(),e.createElementBlock("div",{key:0,id:`${n.id}-backdrop`,class:e.normalizeClass(["cstu-modal-backdrop",a.backdropClass]),style:e.normalizeStyle({zIndex:e.unref(y)-10})},null,14,EC)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:n.id,class:e.normalizeClass(["cstu-modal",[{"cstu-modal-static":n.static,"cstu-modal-scrollable":n.scrollable},n.modalClass]]),tabindex:"-1",role:"dialog","aria-modal":"true",style:e.normalizeStyle({zIndex:e.unref(y)}),"aria-labelledby":!a.hideHeader&&a.title?`modal-title-${n.id}`:void 0,onClick:m,onMousedown:v[5]||(v[5]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:e.normalizeClass(["cstu-modal-dialog",a.dialogClass,{"cstu-modal-fullscreen":a.fullscreen,"cstu-modal-dialog-centered":a.centered&&!a.fullscreen,"cstu-modal-dialog-scrollable":a.scrollable,[`cstu-modal-${a.size}`]:a.size&&!a.fullscreen}]),onClick:v[4]||(v[4]=e.withModifiers(H=>H.target===H.currentTarget&&H.stopPropagation(),["stop"]))},[OC,e.createElementVNode("div",{class:e.normalizeClass(["cstu-modal-content",a.contentClass,{"cstu-modal-content-fullscreen":a.fullscreen},e.unref(k)]),tabindex:"-1",ref_key:"modalElement",ref:l,"aria-label":a.ariaLabel,onClick:v[3]||(v[3]=H=>H.target===H.currentTarget&&H.stopPropagation())},[a.hideHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass(["cstu-modal-header",a.headerClass,{"show-divider":a.showHeaderDivider||a.showDividers}])},[e.renderSlot(b.$slots,"modal-header",{},()=>[e.renderSlot(b.$slots,"modal-title",{},()=>[e.createElementVNode("h5",{id:`modal-title-${n.id}`,class:e.normalizeClass([n.titleClass||"cstu-modal-title",{"sr-only":a.titleSrOnly}])},e.toDisplayString(a.title),11,$C)]),a.hideHeaderClose?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":a.closeTitle,class:"cstu-close cstu-self-baseline",onClick:v[0]||(v[0]=H=>M("headerClose"))},ZC,8,UC))])],2)),e.createElementVNode("div",{class:e.normalizeClass(["cstu-modal-body",a.bodyClass,{"cstu-modal-body-scrollable":a.scrollable}])},[e.renderSlot(b.$slots,"default",{},()=>[a.content?(e.openBlock(),e.createElementBlock("div",WC,e.toDisplayString(a.content),1)):e.createCommentVNode("",!0)])],2),a.hideFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("footer",{key:1,class:e.normalizeClass(["cstu-modal-footer",a.footerClass,{"show-divider":a.showFooterDivider||a.showDividers}])},[e.renderSlot(b.$slots,"modal-footer",{},()=>[a.okOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:0,variant:a.cancelVariant,color:a.cancelColor,disabled:a.cancelDisabled||a.busy,onClick:v[1]||(v[1]=H=>M("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.cancelTitle),1)]),_:1},8,["variant","color","disabled"])),e.createVNode(E,{variant:a.okVariant,color:a.okColor,disabled:a.okDisabled||a.busy,loading:a.busy,onClick:v[2]||(v[2]=H=>M("ok"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.okTitle),1)]),_:1},8,["variant","color","disabled","loading"])])],2))],10,NC),GC],2)],46,RC)):e.createCommentVNode("",!0)]),_:3})],8,["disabled"]))}}),hS="",KC={mounted(a,o){const c=typeof o.value=="string"?o.value:Object.keys(o.modifiers)[0];if(!c){console.warn("v-cstu-modal directive requires a modal ID");return}a.addEventListener("click",()=>{$x.show(c)}),a.tagName!=="BUTTON"&&(a.setAttribute("role","button"),a.addEventListener("keydown",n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),$x.show(c))}),a.hasAttribute("tabindex")||a.setAttribute("tabindex","0"))}},JC={install:a=>{a.directive("cstu-modal",KC)}},QC=["primary","secondary","success","warning","info"];function Gx(a,o=QC){if(!a||!o||o.length===0)return"primary";let c=0;for(let r=0;r<a.length;r+=1)c=a.charCodeAt(r)+((c<<5)-c);const n=Math.abs(c)%o.length;return o[n]}function Xx(a){return!a||typeof a!="string"?"":a.trim().split(" ").slice(0,2).map(o=>o.charAt(0).toUpperCase()).join("")}const YC=["src","alt"],_C=["title"],eL={key:1,"data-avatar-placeholder-icon":"true",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tL=[e.createElementVNode("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},null,-1)],Kx=e.defineComponent({__name:"Avatar",props:{size:{default:"md"},radius:{default:"full"},color:{default:"primary"},gradient:null,src:{default:null},alt:null,imageProps:null,children:null,autoContrast:{type:Boolean,default:!0},name:null,allowedInitialsColors:null,variant:{default:"light"},component:{default:"div"},hover:{type:Boolean,default:!1},customClasses:{default:""}},setup(a){const o=a,c=e.ref(!o.src);e.watch(()=>o.src,y=>{c.value=!y},{immediate:!0});const n=y=>y?["primary","secondary","success","warning","danger","info","dark","light","initials"].includes(y):!0,r=e.computed(()=>o.name?Xx(o.name):""),i=e.computed(()=>{const y={sm:"w-5 h-5 text-xs",md:"w-6 h-6 text-xs",lg:"w-[30px] h-[30px] text-sm",xl:"w-[32px] h-[32px] text-sm","2xl":"w-[34px] h-[34px] text-base","3xl":"w-[36px] h-[36px] text-base","4xl":"w-[38px] h-[38px] text-lg","5xl":"w-[52px] h-[52px] text-xl"};return typeof o.size=="string"?y[o.size]||y.md:typeof o.size=="number"?`w-[${o.size}px] h-[${o.size}px]`:y.md}),d=e.computed(()=>oe(o.radius)),l=e.computed(()=>{if(o.src&&!c.value||!n(o.color)&&o.color!=="initials")return"";if(o.color==="initials"&&o.name){const x=Gx(o.name,o.allowedInitialsColors||["primary","secondary","success","warning","info"]);return x?T(x,"filled",{}):T("primary","filled",{})}const y=o.variant==="transparent"?"default":o.variant==="gradient"?"filled":o.variant,p=o.color&&o.color!=="initials"?o.color:"primary",k=T(p,y,{});return o.variant==="transparent"?"bg-transparent":k}),h=e.computed(()=>!n(o.color)&&o.color!=="initials"?"":o.variant==="transparent"?"bg-transparent":o.variant==="gradient"&&o.gradient?`bg-gradient-to-r from-${o.gradient.from} to-${o.gradient.to}`:Og(o.variant)),s=e.computed(()=>{if(o.src&&!c.value||n(o.color)||o.color==="initials")return{};const y={};switch(o.variant){case"filled":y.backgroundColor=o.color,o.autoContrast&&(y.color="white");break;case"light":y.backgroundColor=`${o.color}20`,y.color=o.color;break;case"outline":y.backgroundColor="transparent",y.color=o.color,y.border=`1px solid ${o.color}`;break;case"transparent":y.backgroundColor="transparent",y.color=o.color;break}return y}),u=y=>{var p;c.value=!0,(p=o.imageProps)!=null&&p.onError&&o.imageProps.onError(y)};return(y,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component||"div"),{class:e.normalizeClass(["avatar",e.unref(i),e.unref(d),!c.value&&a.src?"":e.unref(l),!c.value&&a.src?"":e.unref(h),{"avatar--with-image":!c.value&&a.src},{"hover:opacity-80 transition-opacity":a.hover},a.customClasses]),style:e.normalizeStyle(e.unref(s))},{default:e.withCtx(()=>[!c.value&&a.src?(e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0,class:"avatar__image",src:a.src,alt:a.alt},a.imageProps,{onError:u}),null,16,YC)):(e.openBlock(),e.createElementBlock("span",{key:1,class:"avatar__placeholder",title:a.alt},[e.renderSlot(y.$slots,"default",{},()=>[a.name?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(r)),1)],64)):(e.openBlock(),e.createElementBlock("svg",eL,tL))])],8,_C))]),_:3},8,["class","style"]))}}),pS="",Jx=e.defineComponent({__name:"AvatarGroup",props:{spacing:{default:"sm"},gap:{default:"none"},outlineWidth:{default:"normal"},outlineColor:{default:"white"},outlineOffset:{default:"small"},customClasses:{default:""},max:null,hover:{type:Boolean,default:!1}},setup(a){const o=a,c=e.computed(()=>{if(typeof o.spacing=="number")return`${o.spacing}px`;const s={xs:"-1rem",sm:"-0.75rem",md:"-0.5rem",lg:"-0.25rem",xl:"0"};return s[o.spacing]||s.sm}),n=e.computed(()=>{if(typeof o.gap=="number")return`${o.gap}px`;if(typeof o.gap=="string"&&!isNaN(parseFloat(o.gap)))return o.gap;const s={none:"0",xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem"};return s[o.gap]||s.none}),r=e.computed(()=>{if(typeof o.outlineWidth=="number")return`${o.outlineWidth}px`;if(typeof o.outlineWidth=="string"&&!isNaN(parseFloat(o.outlineWidth)))return o.outlineWidth;const s={none:"0",thin:"1px",normal:"2px",medium:"3px",thick:"4px"};return s[o.outlineWidth]||s.normal}),i=e.computed(()=>{if(typeof o.outlineOffset=="number")return`${o.outlineOffset}px`;if(typeof o.outlineOffset=="string"&&!isNaN(parseFloat(o.outlineOffset)))return o.outlineOffset;const s={none:"0",inset:"-2px",small:"1px",medium:"2px",large:"3px"};return s[o.outlineOffset]||s.small}),d=e.computed(()=>typeof o.outlineColor=="string"&&["primary","secondary","success","danger","warning","info","dark","light"].includes(o.outlineColor)?`outline-${o.outlineColor}`:""),l=e.computed(()=>typeof o.outlineColor=="string"&&["primary","secondary","success","danger","warning","info","dark","light"].includes(o.outlineColor)?"var(--color-"+o.outlineColor+")":o.outlineColor),h=e.computed(()=>({"--avatar-group-spacing":c.value,"--avatar-group-gap":n.value,"--avatar-group-outline-width":r.value,"--avatar-group-outline-color":l.value,"--avatar-group-outline-offset":i.value}));return(s,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar-group",a.customClasses,e.unref(d),{"avatar-group--hover":a.hover}]),style:e.normalizeStyle(e.unref(h))},[e.renderSlot(s.$slots,"default")],6))}}),uS="";Kx.Group=Jx;const A2=e.defineComponent({__name:"Tabs",props:{value:{type:String,default:void 0},defaultValue:{type:String,default:"first"},orientation:{type:String,default:"horizontal"},placement:{type:String,default:void 0},variant:{type:String,default:"text"}},emits:["change"],setup(a,{emit:o}){const c=a,n=e.computed(()=>c.placement?c.placement:c.orientation==="horizontal"?"top":"left"),r=e.computed(()=>c.orientation),i=e.computed(()=>c.variant),d=e.ref(c.value!==void 0?c.value:c.defaultValue);e.watch(()=>c.value,h=>{h!==void 0&&(d.value=h)});const l=h=>{c.value!==void 0?o("change",h):d.value=h};return e.provide("activeTab",d),e.provide("setActiveTab",l),e.provide("tabsOrientation",r),e.provide("tabsPlacement",n),(h,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cstu-tabs",`cstu-tabs-${e.unref(r)}`,`cstu-tabs-placement-${e.unref(n)}`,`cstu-tabs-variant-${e.unref(i)}`])},[e.renderSlot(h.$slots,"default")],2))}}),kS="",Qx=e.defineComponent({__name:"TabsList",props:{justify:{type:String,default:"flex-start"},divider:{type:Boolean,default:!1}},setup(a){const o=a,c=e.inject("tabsOrientation",e.ref("horizontal")),n=e.inject("tabsPlacement",e.ref("top")),r=e.computed(()=>["tabs-list",`tabs-list-${c.value}`,`tabs-list-placement-${n.value}`,o.divider?"tabs-list-with-divider":""]),i=l=>{if(["space-between","space-around","space-evenly"].includes(l))return l;switch(l){case"flex-start":return"flex-start";case"flex-end":return"flex-end";case"center":return"center";default:return"flex-start"}},d=e.computed(()=>c.value==="horizontal"?{justifyContent:o.justify}:{justifyContent:i(o.justify)});return(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r)),style:e.normalizeStyle(e.unref(d))},[e.renderSlot(l.$slots,"default")],6))}}),mS="",Yx=e.defineComponent({__name:"TabsTab",props:{value:{type:String,required:!0},color:{type:String,default:"primary"},variant:{type:String,default:"text"},size:{type:String,default:"md"},radius:{type:String,default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},setup(a){const o=a,c=e.inject("activeTab",e.ref("")),n=e.inject("setActiveTab",()=>{}),r=e.inject("tabsOrientation",e.ref("horizontal")),i=e.inject("tabsPlacement",e.ref("top")),d=e.computed(()=>c.value),l=e.computed(()=>r.value),h=e.computed(()=>i.value),s=e.computed(()=>d.value===o.value),u=e.computed(()=>l.value==="vertical"),y=e.computed(()=>o.fullWidth&&l.value==="horizontal"),p=()=>{!o.disabled&&!o.loading&&n(o.value)};return(k,x)=>(e.openBlock(),e.createBlock(e.unref(E),{class:e.normalizeClass(["tabs-tab",e.unref(s)?"tabs-tab-active":"tabs-tab-inactive",`tabs-tab-${o.variant}`,o.color?`tabs-tab-color-${o.color}`:"",`tabs-tab-orientation-${e.unref(l)}`,`tabs-tab-placement-${e.unref(h)}`,{"tabs-tab-full-width":e.unref(y)}]),disabled:o.disabled,loading:o.loading,color:e.unref(s)?o.color:"secondary",variant:e.unref(s)?o.variant:"subtle",size:o.size,radius:o.variant==="text"?"none":o.radius,"full-width":e.unref(u),onClick:p},e.createSlots({default:e.withCtx(()=>[e.renderSlot(k.$slots,"default")]),_:2},[k.$slots.leftSection?{name:"leftSection",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"leftSection")]),key:"0"}:void 0,k.$slots.rightSection?{name:"rightSection",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"rightSection")]),key:"1"}:void 0]),1032,["class","disabled","loading","color","variant","size","radius","full-width"]))}}),fS="",_x=e.defineComponent({__name:"TabsPanel",props:{value:{type:String,required:!0},KeepAlive:{type:Boolean,default:!1}},setup(a){const o=a,c=e.inject("activeTab",e.ref("")),n=e.inject("tabsOrientation",e.ref("horizontal")),r=e.inject("tabsPlacement",e.ref("top")),i=e.computed(()=>c.value===o.value),d=e.computed(()=>["tabs-panel",i.value?"tabs-panel-active":"tabs-panel-inactive",`tabs-panel-${n.value}`,`tabs-panel-placement-${r.value}`]);return(l,h)=>a.KeepAlive||e.unref(i)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(d))},[e.renderSlot(l.$slots,"default")],2)),[[e.vShow,e.unref(i)]]):e.createCommentVNode("",!0)}}),MS="";A2.List=Qx,A2.Tab=Yx,A2.Panel=_x;const aL=e.createElementVNode("span",{class:"cstu-sr-only"},"First page",-1),oL=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("polyline",{points:"11 17 6 12 11 7"}),e.createElementVNode("polyline",{points:"18 17 13 12 18 7"})],-1),cL=e.createElementVNode("span",{class:"cstu-sr-only"},"Previous page",-1),nL=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("polyline",{points:"15 18 9 12 15 6"})],-1),rL={key:2,class:"cstu-flex cstu-items-center cstu-gap-2"},iL=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("circle",{cx:"12",cy:"12",r:"1"}),e.createElementVNode("circle",{cx:"19",cy:"12",r:"1"}),e.createElementVNode("circle",{cx:"5",cy:"12",r:"1"})],-1)],lL=e.createElementVNode("span",{class:"cstu-sr-only"},"Next page",-1),dL=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("polyline",{points:"9 18 15 12 9 6"})],-1),sL=e.createElementVNode("span",{class:"cstu-sr-only"},"Last page",-1),hL=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("polyline",{points:"13 17 18 12 13 7"}),e.createElementVNode("polyline",{points:"6 17 11 12 6 7"})],-1),yL=e.defineComponent({__name:"Pagination",props:{modelValue:{default:1},total:null,siblings:{default:1},boundaries:{default:1},variant:{default:"filled"},color:{default:"primary"},size:{default:"md"},disabled:{type:Boolean,default:!1},withControls:{type:Boolean,default:!0},withEdges:{type:Boolean,default:!1},withPages:{type:Boolean,default:!0},class:null},emits:["update:modelValue"],setup(a,{emit:o}){const c=a,n=e.ref(c.modelValue);e.watch(()=>c.modelValue,p=>{n.value=p});const r=e.computed(()=>n.value===1),i=e.computed(()=>n.value===c.total),d=e.computed(()=>{switch(c.size){case"xs":return"cstu-!h-[30px] cstu-!w-[30px] cstu-min-w-[30px] !cstu-p-0";case"sm":return"cstu-!h-[36px] cstu-!w-[36px] cstu-min-w-[36px] !cstu-p-0";case"md":return"cstu-!h-[40px] cstu-!w-[40px] cstu-min-w-[40px] !cstu-p-0";case"lg":return"cstu-!h-[45px] cstu-!w-[45px] cstu-min-w-[45px] !cstu-p-0";case"xl":return"cstu-!h-[50px] cstu-!w-[50px] cstu-min-w-[50px] !cstu-p-0";default:return"cstu-!h-[40px] cstu-!w-[40px] cstu-min-w-[40px] !cstu-p-0"}}),l=e.computed(()=>["cstu-flex cstu-items-center cstu-justify-center",u(c.size)]),h=e.computed(()=>{const p=[],k=c.total;if(c.siblings*2+3+c.boundaries*2>=k)return Array.from({length:k},(f,L)=>L+1);const w=Math.max(n.value-c.siblings,c.boundaries+1),g=Math.min(n.value+c.siblings,k-c.boundaries),I=w>c.boundaries+2,M=g<k-(c.boundaries+1),m=new Set;for(let f=1;f<=c.boundaries;f++)p.push(f),m.add(f);if(I)p.push("dots");else if(!I&&w>c.boundaries)for(let f=c.boundaries+1;f<w;f++)m.has(f)||(p.push(f),m.add(f));for(let f=w;f<=g;f++)m.has(f)||(p.push(f),m.add(f));if(M)p.push("dots");else if(!M&&g<k-c.boundaries)for(let f=g+1;f<k-c.boundaries+1;f++)m.has(f)||(p.push(f),m.add(f));for(let f=k-c.boundaries+1;f<=k;f++)m.has(f)||(p.push(f),m.add(f));return p}),s=p=>{p<1||p>c.total||c.disabled||(n.value=p,o("update:modelValue",p))};function u(p){const k={xs:"cstu-h-6 cstu-w-6 cstu-text-xs",sm:"cstu-h-7 cstu-w-7 cstu-text-sm",md:"cstu-h-8 cstu-w-8 cstu-text-sm",lg:"cstu-h-9 cstu-w-9 cstu-text-base",xl:"cstu-h-10 cstu-w-10 cstu-text-base"};return k[p]||k.md}const y=e.computed(()=>c.variant==="filled"?"subtle":"bordered-transparent");return(p,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cstu-flex cstu-items-center cstu-gap-2",[c.class]])},[c.withEdges?(e.openBlock(),e.createBlock(E,{key:0,variant:e.unref(y),color:"light",size:c.size,disabled:e.unref(r)||c.disabled,onClick:k[0]||(k[0]=x=>s(1)),"aria-label":"Go to first page",class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[aL,oL]),_:1},8,["variant","size","disabled","class"])):e.createCommentVNode("",!0),c.withControls?(e.openBlock(),e.createBlock(E,{key:1,variant:e.unref(y),color:"light",size:c.size,disabled:e.unref(r)||c.disabled,onClick:k[1]||(k[1]=x=>s(n.value-1)),"aria-label":"Go to previous page",class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[cL,nL]),_:1},8,["variant","size","disabled","class"])):e.createCommentVNode("",!0),c.withPages?(e.openBlock(),e.createElementBlock("div",rL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),(x,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w},[x!=="dots"?(e.openBlock(),e.createBlock(E,{key:0,variant:x===n.value?"filled":e.unref(y),color:x===n.value?c.color:"light",size:c.size,disabled:c.disabled,onClick:g=>s(Number(x)),"aria-current":x===n.value?"page":void 0,"aria-label":`Page ${x}`,class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["variant","color","size","disabled","onClick","aria-current","aria-label","class"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["pagination-dots",[e.unref(l),e.unref(d)]])},iL,2))],64))),128))])):e.createCommentVNode("",!0),c.withControls?(e.openBlock(),e.createBlock(E,{key:3,variant:e.unref(y),color:"light",size:c.size,disabled:e.unref(i)||c.disabled,onClick:k[2]||(k[2]=x=>s(n.value+1)),"aria-label":"Go to next page",class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[lL,dL]),_:1},8,["variant","size","disabled","class"])):e.createCommentVNode("",!0),c.withEdges?(e.openBlock(),e.createBlock(E,{key:4,variant:e.unref(y),color:"light",size:c.size,disabled:e.unref(i)||c.disabled,onClick:k[3]||(k[3]=x=>s(c.total)),"aria-label":"Go to last page",class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[sL,hL]),_:1},8,["variant","size","disabled","class"])):e.createCommentVNode("",!0)],2))}}),eI={mounted(a,o){a._clickOutside=c=>{const n=c.target;if(!(a===n||a.contains(n))){const r=c.target,i=r.tagName&&r.tagName.toLowerCase()==="input",d=r.closest(".cstu-dropdown-menu");!i&&!d&&o.value(c)}},document.addEventListener("click",a._clickOutside,!0),document.addEventListener("touchstart",a._clickOutside,!0)},unmounted(a){a._clickOutside&&(document.removeEventListener("click",a._clickOutside,!0),document.removeEventListener("touchstart",a._clickOutside,!0))}},pL=["id","aria-labelledby","aria-modal","onKeydown"],uL={class:"cstu-popover-inner"},kL=["id"],mL=e.defineComponent({__name:"Popover",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},placement:{default:"bottom"},variant:{default:"shadow"},color:{default:"primary"},size:{default:"md"},radius:{default:"md"},hideHeader:{type:Boolean,default:!1},showCloseIcon:{type:Boolean,default:!0},hideFooter:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},closeOnClick:{type:Boolean,default:!1},title:{default:""},content:{default:""},zIndex:{default:1e3},trigger:{default:"click"},backdrop:{type:[Boolean,String],default:!1},offsetDistance:{default:8},disabled:{type:Boolean,default:!1},popoverClass:{default:""},headerClass:{default:""},bodyClass:{default:""},footerClass:{default:""},trapFocus:{type:Boolean,default:!1},id:{default:()=>`popover-${Date.now()}`},shadow:{default:"md"},width:null},emits:["update:open","open","close"],setup(a,{emit:o}){const c=a,n=e.ref(c.defaultOpen),r=e.ref(null),i=e.ref(null),d=e.ref(null),l=e.ref(null),h=e.ref(c.zIndex);c.open!==void 0&&(n.value=c.open);const s=e.computed(()=>{if(c.placement!=="auto")return c.placement}),u=e.computed(()=>{const C=[b2(c.offsetDistance)];return d.value&&C.push(Dx({element:d})),c.placement==="auto"?C.push(jx({padding:8})):C.push(z2({fallbackPlacements:["top","bottom","left","right"],padding:8})),C.push(S2({padding:8})),C}),{floatingStyles:y,update:p}=q2(r,i,{placement:s,middleware:u,whileElementsMounted:Fx}),k=C=>{c.disabled||(c.trigger==="click"||c.trigger==="manual")&&z()},x=()=>{c.disabled||c.trigger==="hover"&&f()},w=()=>{c.disabled||c.trigger==="hover"&&setTimeout(()=>{L("hover")},100)},g=C=>{c.closeOnClick&&L("popoverClick"),C.stopPropagation()},I=C=>{c.closeOnClickOutside&&n.value&&i.value&&!i.value.contains(C.target)&&r.value&&!r.value.contains(C.target)&&L("clickAway")},M=()=>{c.closeOnClickOutside&&L("backdrop")},m=C=>{c.closeOnEscape&&C.key==="Escape"&&(C.preventDefault(),L("escape"))},f=()=>{c.disabled||n.value||(l.value=document.activeElement,n.value=!0,e.nextTick(()=>{p(),c.trapFocus&&V()}),o("open"),o("update:open",!0))},L=(C="programmatic")=>{n.value&&(n.value=!1,c.trapFocus&&D(l.value),o("close",C),o("update:open",!1))},z=()=>{n.value?L():f()},V=()=>{if(!i.value)return;const C=b(i.value);C.length>0?C[0].focus():i.value.focus()},D=C=>{C&&typeof C.focus=="function"&&C.focus()},b=C=>Array.from(C.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')).filter(B=>!B.hasAttribute("disabled")&&!B.getAttribute("aria-hidden")),v=C=>{if(!n.value||!c.trapFocus||!i.value)return;const B=C.target;i.value.contains(B)||(C.preventDefault(),V())};e.watch(()=>c.open,C=>{C!==n.value&&(C?f():L())}),e.watch(r,C=>{C&&p()}),e.onMounted(()=>{document.addEventListener("keydown",m),c.trapFocus&&document.addEventListener("focusin",v)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",m),c.trapFocus&&document.removeEventListener("focusin",v)});const H=e.computed(()=>[oe(c.radius),!c.variant||c.variant==="shadow"?c.shadow?`cstu-shadow-${c.shadow}`:"cstu-shadow-md":"",c.popoverClass]),O=e.computed(()=>{const C=[...H.value.filter(Boolean)];let B=!1;const $=c.color;if($&&G($)&&c.variant==="color"){const F=T($,"filled",{disabled:c.disabled});typeof F=="string"&&F.trim()&&(C.push(...F.split(" ").filter(Boolean)),B=!0)}return B||(C.push("cstu-bg-white"),c.variant==="outline"&&C.push("cstu-border","cstu-border-gray-300"),C.push("cstu-text-gray-700")),C.filter(Boolean).map(F=>typeof F=="string"?F:Object.keys(F).filter(f2=>F[f2]).join(" ")).join(" ")}),N=e.computed(()=>{const C={width:typeof c.width=="number"?`${c.width}px`:c.width},B=c.color;if(B&&!G(B)&&c.variant==="color"){C.backgroundColor=B;const $=P(B);C.color=$>128?"#000000":"#FFFFFF"}return{...y.value,...C}});e.computed(()=>{const C={backgroundColor:"white"},B=c.color;return c.variant==="color"&&B?G(B)?(C.borderWidth="1px",C.borderStyle="solid",C.borderColor=`var(--${B}-500)`):C.backgroundColor=B:c.variant==="outline"&&(C.borderWidth="1px",C.borderStyle="solid",C.borderColor="#e2e8f0"),C});function P(C){if(C.startsWith("#"))try{const B=parseInt(C.substring(1,3),16),$=parseInt(C.substring(3,5),16),F=parseInt(C.substring(5,7),16);return(B*299+$*587+F*114)/1e3}catch{return 128}else if(C.startsWith("rgb"))try{const B=C.match(/\d+/g);if(B&&B.length>=3){const $=parseInt(B[0],10),F=parseInt(B[1],10),f2=parseInt(B[2],10);return($*299+F*587+f2*114)/1e3}}catch{return 128}return 128}const _=e.computed(()=>{const C=c.color,B=!(C&&G(C)),$=c.variant==="outline";return["cstu-popover-header",{xs:"cstu-px-2 cstu-py-1.5",sm:"cstu-px-2.5 cstu-py-1.5",md:"cstu-px-3 cstu-py-2",lg:"cstu-px-3.5 cstu-py-2.5",xl:"cstu-px-4 cstu-py-3"}[c.size||"md"],ge(c.size||"md"),"cstu-flex cstu-items-center cstu-justify-between",$||B?"cstu-border-b cstu-border-gray-200 dark:cstu-border-gray-700":"",c.headerClass].filter(Boolean).join(" ")}),Q=e.computed(()=>["cstu-popover-body",{xs:"cstu-p-2",sm:"cstu-p-2.5",md:"cstu-p-3",lg:"cstu-p-3.5",xl:"cstu-p-4"}[c.size||"md"],ge(c.size||"sm"),c.bodyClass].filter(Boolean).join(" ")),X=e.computed(()=>{const C=c.color,B=!(C&&G(C)),$=c.variant==="outline";return["cstu-popover-footer",{xs:"cstu-px-2 cstu-py-1.5",sm:"cstu-px-2.5 cstu-py-1.5",md:"cstu-px-3 cstu-py-2",lg:"cstu-px-3.5 cstu-py-2.5",xl:"cstu-px-4 cstu-py-3"}[c.size||"md"],$||B?"cstu-border-t cstu-border-gray-200 dark:cstu-border-gray-700":"","cstu-flex cstu-justify-end cstu-space-x-2",c.footerClass].filter(Boolean).join(" ")});return(C,B)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"triggerRef",ref:r,class:e.normalizeClass(["cstu-inline-block cstu-popover-trigger",{"cstu-cursor-not-allowed cstu-opacity-70":a.disabled}]),onClick:k,onMouseenter:x,onMouseleave:w},[e.renderSlot(C.$slots,"trigger")],34),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade",appear:""},{default:e.withCtx(()=>[n.value&&a.backdrop!==!1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cstu-popover-backdrop",{"cstu-bg-black/50":a.backdrop===!0,"cstu-bg-transparent":a.backdrop==="transparent"}]),style:e.normalizeStyle({zIndex:a.zIndex-10}),onClick:M},null,6)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{"enter-active-class":"cstu-transition cstu-ease-out cstu-duration-100","enter-from-class":"cstu-transform cstu-opacity-0 cstu-scale-95","enter-to-class":"cstu-transform cstu-opacity-100 cstu-scale-100","leave-active-class":"cstu-transition cstu-ease-in cstu-duration-75","leave-from-class":"cstu-transform cstu-opacity-100 cstu-scale-100","leave-to-class":"cstu-transform cstu-opacity-0 cstu-scale-95"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cstu-popover-container",style:e.normalizeStyle({zIndex:h.value})},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"popoverRef",ref:i,id:c.id,class:e.normalizeClass(e.unref(O)),style:e.normalizeStyle([e.unref(y),e.unref(N)]),role:"dialog","aria-labelledby":c.title?`${c.id}-title`:void 0,"aria-modal":c.trapFocus,tabindex:"-1",onClick:g,onKeydown:e.withKeys(m,["esc"])},[e.createElementVNode("div",uL,[c.hideHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(_))},[e.renderSlot(C.$slots,"header",{},()=>[e.createElementVNode("h3",{id:`${c.id}-title`,class:e.normalizeClass(["cstu-popover-title cstu-font-medium",e.unref(ge)(c.size||"md")])},e.toDisplayString(c.title),11,kL),c.showCloseIcon?(e.openBlock(),e.createBlock(E,{key:0,icon:"X",variant:"text",size:"xs",color:c.color&&e.unref(G)(c.color)?"white":"gray",class:"cstu-ml-auto","aria-label":"Close popover",onClick:B[0]||(B[0]=e.withModifiers($=>L("headerClose"),["stop"]))},null,8,["color"])):e.createCommentVNode("",!0)])],2)),e.createElementVNode("div",{class:e.normalizeClass(e.unref(Q))},[e.renderSlot(C.$slots,"default",{},()=>[a.content?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(ge)(c.size||"sm"))},e.toDisplayString(a.content),3)):e.createCommentVNode("",!0)])],2),c.hideFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(X))},[e.renderSlot(C.$slots,"footer",{},()=>[e.createVNode(E,{size:"sm",variant:"subtle",onClick:B[1]||(B[1]=$=>L("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(" Close ")]),_:1})])],2))])],46,pL)),[[e.unref(eI),I]])],4)):e.createCommentVNode("",!0)]),_:3})]))],64))}}),xS="",fL=e.defineComponent({__name:"Breadcrumbs",props:{separator:{default:"/"},separatorMargin:{default:"xs"},size:{default:"md"},radius:{default:"md"},color:{default:"primary"},highlightActive:{type:Boolean,default:!0},class:null,separatorClass:null,activeClass:null},setup(a){const o=a,c=e.useSlots(),n=e.computed(()=>!!c.default),r=e.computed(()=>c.default?c.default():[]),i=y=>y===r.value.length-1,d=y=>y?["primary","secondary","success","warning","danger","info","dark","light"].includes(y):!0,l=y=>{if(!i(y)||!o.highlightActive)return"";if(d(o.color)){const p=W[o.color];if(p)return`cstu-text-${p.base}-${p.main}`}return""},h=y=>!i(y)||!o.highlightActive?{}:d(o.color)?{}:{color:o.color},s=e.computed(()=>{const y={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"};return y[o.size]||y.md}),u=e.computed(()=>{const y={xs:"mx-1",sm:"mx-2",md:"mx-3",lg:"mx-4",xl:"mx-5"};return y[o.separatorMargin]||y.xs});return(y,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cstu-breadcrumbs",o.class])},[e.unref(n)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(r),(k,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:x},[e.createElementVNode("div",{class:e.normalizeClass(["cstu-breadcrumb-item",e.unref(s),i(x)?"cstu-breadcrumb-active":"cstu-breadcrumb-inactive",i(x)?o.activeClass:"",i(x)&&o.highlightActive?l(x):""]),style:e.normalizeStyle(h(x))},[e.renderSlot(y.$slots,`item-${x}`,{isActive:i(x)},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k)))])],6),i(x)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cstu-breadcrumb-separator",e.unref(u),o.separatorClass])},[e.renderSlot(y.$slots,"separator",{},()=>[typeof o.separator=="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.separator),1)],64)):o.separator?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.separator),{key:1})):e.createCommentVNode("",!0)])],2))],64))),128)):e.renderSlot(y.$slots,"default",{key:0})],2))}}),IS="",ML={key:0,class:"cstu-flex cstu-justify-between cstu-items-center cstu-mb-1"},gL=["for"],xL={key:0,class:"cstu-text-red-500 cstu-ml-1"},IL={key:0,class:"cstu-flex cstu-items-center cstu-justify-center cstu-w-[15px] cstu-h-[15px] cstu-mt-1"},wL=["id","value","placeholder","disabled","required","readonly","rows","maxlength"],CL={key:1,class:"cstu-flex cstu-items-center cstu-justify-center cstu-w-[15px] cstu-h-[15px] cstu-mt-1"},LL=e.defineComponent({__name:"Textarea",props:{id:null,modelValue:null,placeholder:null,disabled:{type:Boolean},readonly:{type:Boolean},label:null,labelProps:null,description:null,descriptionProps:null,error:null,errorProps:null,hasError:{type:Boolean},showBothErrorAndDescription:{type:Boolean},textareaProps:null,size:null,radius:null,variant:null,required:{type:Boolean},withAsterisk:{type:Boolean},rows:null,resize:null,fullWidth:{type:Boolean},color:null,class:null,inputClass:null,maxLength:null},emits:["update:modelValue","focus","blur","change"],setup(a,{expose:o,emit:c}){const{id:n,modelValue:r,placeholder:i,label:d,description:l,error:h,hasError:s=!1,disabled:u=!1,readonly:y=!1,required:p=!1,withAsterisk:k=!1,showBothErrorAndDescription:x=!1,textareaProps:w,labelProps:g,descriptionProps:I,errorProps:M,size:m="md",variant:f="default",radius:L="md",color:z="primary",class:V,fullWidth:D=!1,inputClass:b="",rows:v=3,resize:H="none",maxLength:O=void 0}=a,N=`textarea-${Math.random().toString(36).substring(2,11)}`,P=e.ref(null),_={xs:{inputClass:`cstu-min-h-8 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-xs cstu-font-medium",descriptionSize:"cstu-text-xs"},sm:{inputClass:`cstu-min-h-9 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-sm cstu-font-medium",descriptionSize:"cstu-text-xs"},md:{inputClass:`cstu-min-h-10 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-sm cstu-font-medium",descriptionSize:"cstu-text-sm"},lg:{inputClass:`cstu-min-h-11 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-sm cstu-font-medium",descriptionSize:"cstu-text-sm"},xl:{inputClass:`cstu-min-h-12 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-base cstu-font-medium",descriptionSize:"cstu-text-sm"}},Q=e.computed(()=>`${_[m].inputClass.split(" ")[0]} cstu-transition-all cstu-duration-300`),X=e.computed(()=>_[m].labelSize),C=e.computed(()=>_[m].descriptionSize),B=e.computed(()=>{switch(m){case"xs":return"cstu-text-xs";case"sm":return"cstu-text-sm";case"md":return"cstu-text-sm";case"lg":return"cstu-text-base";case"xl":return"cstu-text-base";default:return"cstu-text-sm"}}),$=e.computed(()=>oe(L)),F=e.computed(()=>h!==void 0&&h!==""||s),f2=e.computed(()=>f==="unstyled"||!G(z)&&!F.value?"":F.value?"cstu-border-red-500 hover:cstu-border-red-500 focus-within:cstu-border-red-500 focus-within:cstu-ring-1 focus-within:cstu-ring-red-500":f==="default"||f==="outline"?`cstu-border-${z}-500 hover:cstu-border-${z}-600 focus-within:cstu-border-${z}-500 focus-within:cstu-ring-1 focus-within:cstu-ring-${z}-500`:f==="filled"?`cstu-bg-${z}-50 hover:cstu-bg-${z}-100`:f==="light"?`cstu-bg-${z}-50 cstu-text-${z}-500 hover:cstu-bg-${z}-100`:f==="subtle"?`cstu-text-${z}-500 hover:cstu-bg-${z}-50`:""),Nb=e.computed(()=>f==="unstyled"?{}:G(z)||F.value?{}:f==="default"||f==="outline"?{"--border-color":z,"border-color":"var(--border-color)"}:f==="filled"?{"--bg-color":`${z}10`,"background-color":"var(--bg-color)"}:f==="light"?{"--bg-color":`${z}10`,"--text-color":z,"background-color":"var(--bg-color)",color:"var(--text-color)"}:f==="subtle"?{"--text-color":z,color:"var(--text-color)"}:{}),$b=e.computed(()=>{const A={default:"cstu-bg-white cstu-border cstu-transition-colors cstu-duration-150 cstu-px-3",filled:"cstu-bg-gray-100 cstu-border cstu-border-transparent cstu-transition-colors cstu-duration-150 cstu-px-3",light:"cstu-border cstu-transition-colors cstu-duration-150 cstu-px-3",outline:"cstu-bg-white cstu-border cstu-transition-colors cstu-duration-150 cstu-px-3",subtle:"cstu-bg-transparent cstu-transition-colors cstu-duration-150 cstu-px-3",unstyled:"cstu-bg-transparent !cstu-border-0"};if(f==="unstyled")return[A[f]];const he=F.value?"":f==="default"||f==="outline"?"cstu-border-gray-300/45":"",l2=F.value?"cstu-border-red-500":"";return[A[f],he,l2,F.value?"hover:cstu-border-red-500":"hover:cstu-border-blue-450",F.value?"focus-within:cstu-border-red-500 focus-within:cstu-ring-1 focus-within:cstu-ring-red-500":"focus-within:cstu-border-blue-450 focus-within:cstu-ring-1 focus-within:cstu-ring-blue-450"]}),xI=e.ref(!1),Ub=A=>{xI.value=!0,c("focus",A)},Zb=A=>{xI.value=!1,c("blur",A)},Wb=A=>{c("change",A)};return o({textarea:P,focus:()=>{var A;return(A=P.value)==null?void 0:A.focus()},blur:()=>{var A;return(A=P.value)==null?void 0:A.blur()},select:()=>{var A;return(A=P.value)==null?void 0:A.select()},setSelectionRange:(A,he)=>{var l2;return(l2=P.value)==null?void 0:l2.setSelectionRange(A,he)},setRangeText:A=>{var he;return(he=P.value)==null?void 0:he.setRangeText(A)},get value(){var A;return(A=P.value)==null?void 0:A.value},set value(A){P.value&&A!==void 0&&(P.value.value=A)}}),(A,he)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cstu-flex cstu-flex-col cstu-transition-all cstu-duration-300",[A.customClass,a.fullWidth?"cstu-w-full":"cstu-max-w-[20.5rem]"]])},[a.label||A.$slots.label?(e.openBlock(),e.createElementBlock("div",ML,[e.createElementVNode("label",e.mergeProps({for:a.id||N,class:["cstu-flex cstu-items-center",e.unref(X)]},a.labelProps),[e.renderSlot(A.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(a.label)+" ",1),a.withAsterisk||a.required?(e.openBlock(),e.createElementBlock("span",xL,"*")):e.createCommentVNode("",!0)])],16,gL),e.renderSlot(A.$slots,"labelIcon")])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cstu-flex cstu-items-start cstu-gap-2 cstu-py-2",e.unref(Q),e.unref($),e.unref($b),e.unref(f2),{"cstu-opacity-50 cstu-pointer-events-none cstu-cursor-not-allowed":a.disabled}]),style:e.normalizeStyle(e.unref(Nb))},[A.$slots.leftSection?(e.openBlock(),e.createElementBlock("div",IL,[e.renderSlot(A.$slots,"leftSection")])):e.createCommentVNode("",!0),e.createElementVNode("textarea",e.mergeProps({ref_key:"textareaRef",ref:P,id:a.id||N,value:a.modelValue,placeholder:a.placeholder,disabled:a.disabled,required:a.required,readonly:a.readonly,rows:a.rows,maxlength:a.maxLength,class:["cstu-flex-1 cstu-bg-transparent cstu-outline-none cstu-w-full",e.unref(B),a.inputClass,{"cstu-text-gray-500":a.modelValue,"cstu-text-red-500":e.unref(F)&&!a.modelValue}],style:{resize:a.resize},onInput:he[0]||(he[0]=l2=>A.$emit("update:modelValue",l2.target.value)),onFocus:Ub,onBlur:Zb,onChange:Wb},a.textareaProps),null,16,wL),A.$slots.rightSection?(e.openBlock(),e.createElementBlock("div",CL,[e.renderSlot(A.$slots,"rightSection")])):e.createCommentVNode("",!0)],6)]),a.description&&!e.unref(F)||A.$slots.description&&!e.unref(F)||a.showBothErrorAndDescription&&a.description||a.showBothErrorAndDescription&&A.$slots.description?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:"cstu-mt-1"},a.descriptionProps),[e.createElementVNode("p",{class:e.normalizeClass(["cstu-text-gray-500",e.unref(C)])},[e.renderSlot(A.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(a.description),1)])],2)],16)):e.createCommentVNode("",!0),e.unref(F)&&a.error||e.unref(F)&&A.$slots.error||a.showBothErrorAndDescription&&a.error||a.showBothErrorAndDescription&&A.$slots.error?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:2,class:"cstu-mt-1"},a.errorProps),[e.createElementVNode("p",{class:e.normalizeClass(["cstu-text-red-500",e.unref(C)])},[e.renderSlot(A.$slots,"error",{},()=>[e.createTextVNode(e.toDisplayString(a.error),1)])],2)],16)):e.createCommentVNode("",!0)],2))}});/**
12
+ `,document.head.appendChild(Wx);const EC=["id"],RC=["id","aria-labelledby"],OC=e.createElementVNode("span",{tabindex:"0"},null,-1),NC=["aria-label"],$C=["id"],UC=["aria-label"],ZC=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"cstu-size-6"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)],WC={key:0},GC=e.createElementVNode("span",{tabindex:"0"},null,-1),XC=e.defineComponent({__name:"Modal",props:{id:{type:String,default:()=>`modal-${Date.now()}`},title:{type:String,default:""},modelValue:{type:Boolean,default:!1},size:{type:String,default:"md"},radius:{type:String,default:""},centered:{type:Boolean,default:!0},scrollable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideHeaderClose:{type:Boolean,default:!1},titleSrOnly:{type:Boolean,default:!1},ariaLabel:{type:String,default:""},content:{type:String,default:""},okTitle:{type:String,default:"OK"},okVariant:{type:String,default:"filled"},okColor:{type:String,default:"primary"},okDisabled:{type:Boolean,default:!1},cancelTitle:{type:String,default:"Cancel"},cancelVariant:{type:String,default:"outline"},cancelColor:{type:String,default:"secondary"},cancelDisabled:{type:Boolean,default:!1},modalClass:{type:String,default:""},dialogClass:{type:String,default:""},contentClass:{type:String,default:""},headerClass:{type:String,default:""},bodyClass:{type:String,default:""},footerClass:{type:String,default:""},ariaLabelledby:{type:String,default:""},teleport:{type:Boolean,default:!0},backdrop:{type:Boolean,default:!0},backdropClass:{type:String,default:""},titleClass:{type:String,default:""},showHeaderDivider:{type:Boolean,default:!1},showFooterDivider:{type:Boolean,default:!1},showDividers:{type:Boolean,default:void 0},closeTitle:{type:String,default:"Close"},busy:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},static:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},okOnly:{type:Boolean,default:!1},zIndex:{type:Number,default:1050},disableFocusTrap:{type:Boolean,default:!1},ignoreEnforceFocusSelector:{type:String,default:""}},emits:["update:modelValue","show","shown","hide","hidden","ok","cancel","close"],setup(a,{expose:o,emit:c}){const n=a;class r{constructor(v,H={}){Me(this,"type");Me(this,"cancelable",!0);Me(this,"target",null);Me(this,"vueTarget",null);Me(this,"defaultPrevented",!1);Me(this,"componentId","");Me(this,"trigger","programmatic");this.type=v,Object.assign(this,H)}preventDefault(){this.defaultPrevented=!0}}const i=e.ref(!1),d=e.ref(null),l=e.ref(null),h=e.ref(n.zIndex),s=e.ref(!1),u=e.ref(0),y=e.computed(()=>n.zIndex!==1050?n.zIndex:h.value);function p(){if(n.zIndex!==1050){h.value=n.zIndex;return}const b=document.querySelectorAll(".cstu-modal");let v=1050;b.forEach(H=>{const O=parseInt(window.getComputedStyle(H).zIndex,10);!isNaN(O)&&O>v&&(v=O)}),h.value=v+10}const k=e.computed(()=>n.fullscreen?"":x(n.radius));function x(b){const v={none:"",sm:"cstu-rounded-sm",md:"cstu-rounded-md",lg:"cstu-rounded-lg",xl:"cstu-rounded-xl",full:"cstu-rounded-full"};return v[b||n.size]||v.md}function w(){if(i.value)return;const b=new r("show",{trigger:"programmatic",target:null,vueTarget:null,componentId:n.id});c("show",b),!b.defaultPrevented&&(d.value=document.activeElement,i.value=!0,u.value++,p(),document.body.classList.add("cstu-modal-open"),c("update:modelValue",!0),e.nextTick(()=>{n.disableFocusTrap||L(),c("shown",b)}))}function g(b="programmatic"){if(!i.value)return;const v=new r("hide",{trigger:b,target:null,vueTarget:null,componentId:n.id});c("hide",v),!v.defaultPrevented&&(i.value=!1,s.value=!1,document.body.classList.remove("cstu-modal-open"),c("update:modelValue",!1),e.nextTick(()=>{z(d.value),c("hidden",v)}))}function I(b){b&&(d.value=typeof b=="string"?document.querySelector(b):b),i.value?g():w()}function M(b){b==="ok"?c("ok"):b==="cancel"&&c("cancel"),g(b)}function m(b){const v=b.target,H=v.closest(".cstu-dropdown-menu"),O=v.tagName&&["input","select","textarea","button"].includes(v.tagName.toLowerCase()),N=v.closest(".cstu-modal-content");H||O||N&&v!==b.currentTarget||!n.noCloseOnBackdrop&&v===b.currentTarget&&g("backdrop")}function f(b){b.key==="Escape"&&i.value&&!n.noCloseOnEsc&&!n.busy&&g("esc")}function L(){e.nextTick(()=>{if(!l.value)return;const b=l.value,v=D(b);v.length>0&&v[0].focus()})}function z(b){if(b&&i.value===!1)try{b.focus()}catch{}}function V(b){if(n.disableFocusTrap||!l.value||!i.value)return;const v=b.target,H=l.value;if(n.ignoreEnforceFocusSelector&&n.ignoreEnforceFocusSelector.trim()!==""){const N=n.ignoreEnforceFocusSelector.split(",").map(P=>P.trim()).filter(P=>P.length>0);for(const P of N)if(v.closest(P))return}const O=!!v.closest(".cstu-modal-content");if(H!==v&&!H.contains(v)&&!O){if(s.value)return;s.value=!0;try{const N=D(H);N.length>0?N[0].focus():H.focus()}finally{setTimeout(()=>{s.value=!1},0)}}}function D(b){return Array.from(b.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))}return e.watch(()=>n.modelValue,b=>{b!==i.value&&(b?w():g())}),e.watch(()=>n.id,()=>{Zx(n.id),Ux(n.id,{show:w,hide:g,toggle:I})}),e.onMounted(()=>{Ux(n.id,{show:w,hide:g,toggle:I}),document.addEventListener("keydown",f),document.addEventListener("focusin",V),n.modelValue&&(w(),i.value&&e.nextTick(()=>{setTimeout(()=>{const b=document.getElementById(n.id);let v=null;b&&b.parentNode&&(v=b.parentNode.querySelector(".cstu-modal-backdrop")),b&&window.getComputedStyle(b).display==="none"&&(b.style.display="block"),v&&window.getComputedStyle(v).display==="none"&&(v.style.display="block")},50)}))}),e.onBeforeUnmount(()=>{Zx(n.id),document.removeEventListener("keydown",f),document.removeEventListener("focusin",V),i.value&&(i.value=!1,c("update:modelValue",!1))}),o({hide:g,show:w,close:M,toggle:I}),(b,v)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body",disabled:n.static||n.teleport===!1},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value&&a.backdrop!==!1?(e.openBlock(),e.createElementBlock("div",{key:0,id:`${n.id}-backdrop`,class:e.normalizeClass(["cstu-modal-backdrop",a.backdropClass]),style:e.normalizeStyle({zIndex:e.unref(y)-10})},null,14,EC)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:n.id,class:e.normalizeClass(["cstu-modal",[{"cstu-modal-static":n.static,"cstu-modal-scrollable":n.scrollable},n.modalClass]]),tabindex:"-1",role:"dialog","aria-modal":"true",style:e.normalizeStyle({zIndex:e.unref(y)}),"aria-labelledby":!a.hideHeader&&a.title?`modal-title-${n.id}`:void 0,onClick:m},[e.createElementVNode("div",{class:e.normalizeClass(["cstu-modal-dialog",a.dialogClass,{"cstu-modal-fullscreen":a.fullscreen,"cstu-modal-dialog-centered":a.centered&&!a.fullscreen,"cstu-modal-dialog-scrollable":a.scrollable,[`cstu-modal-${a.size}`]:a.size&&!a.fullscreen}]),onClick:v[4]||(v[4]=H=>H.target===H.currentTarget&&H.stopPropagation())},[OC,e.createElementVNode("div",{class:e.normalizeClass(["cstu-modal-content",a.contentClass,{"cstu-modal-content-fullscreen":a.fullscreen},e.unref(k)]),tabindex:"-1",ref_key:"modalElement",ref:l,"aria-label":a.ariaLabel,onClick:v[3]||(v[3]=H=>H.target===H.currentTarget&&H.stopPropagation())},[a.hideHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass(["cstu-modal-header",a.headerClass,{"show-divider":a.showHeaderDivider||a.showDividers}])},[e.renderSlot(b.$slots,"modal-header",{},()=>[e.renderSlot(b.$slots,"modal-title",{},()=>[e.createElementVNode("h5",{id:`modal-title-${n.id}`,class:e.normalizeClass([n.titleClass||"cstu-modal-title",{"sr-only":a.titleSrOnly}])},e.toDisplayString(a.title),11,$C)]),a.hideHeaderClose?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":a.closeTitle,class:"cstu-close cstu-self-baseline",onClick:v[0]||(v[0]=H=>M("headerClose"))},ZC,8,UC))])],2)),e.createElementVNode("div",{class:e.normalizeClass(["cstu-modal-body",a.bodyClass,{"cstu-modal-body-scrollable":a.scrollable}])},[e.renderSlot(b.$slots,"default",{},()=>[a.content?(e.openBlock(),e.createElementBlock("div",WC,e.toDisplayString(a.content),1)):e.createCommentVNode("",!0)])],2),a.hideFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("footer",{key:1,class:e.normalizeClass(["cstu-modal-footer",a.footerClass,{"show-divider":a.showFooterDivider||a.showDividers}])},[e.renderSlot(b.$slots,"modal-footer",{},()=>[a.okOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:0,variant:a.cancelVariant,color:a.cancelColor,disabled:a.cancelDisabled||a.busy,onClick:v[1]||(v[1]=H=>M("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.cancelTitle),1)]),_:1},8,["variant","color","disabled"])),e.createVNode(E,{variant:a.okVariant,color:a.okColor,disabled:a.okDisabled||a.busy,loading:a.busy,onClick:v[2]||(v[2]=H=>M("ok"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.okTitle),1)]),_:1},8,["variant","color","disabled","loading"])])],2))],10,NC),GC],2)],14,RC)):e.createCommentVNode("",!0)]),_:3})],8,["disabled"]))}}),hS="",KC={mounted(a,o){const c=typeof o.value=="string"?o.value:Object.keys(o.modifiers)[0];if(!c){console.warn("v-cstu-modal directive requires a modal ID");return}a.addEventListener("click",()=>{$x.show(c)}),a.tagName!=="BUTTON"&&(a.setAttribute("role","button"),a.addEventListener("keydown",n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),$x.show(c))}),a.hasAttribute("tabindex")||a.setAttribute("tabindex","0"))}},JC={install:a=>{a.directive("cstu-modal",KC)}},QC=["primary","secondary","success","warning","info"];function Gx(a,o=QC){if(!a||!o||o.length===0)return"primary";let c=0;for(let r=0;r<a.length;r+=1)c=a.charCodeAt(r)+((c<<5)-c);const n=Math.abs(c)%o.length;return o[n]}function Xx(a){return!a||typeof a!="string"?"":a.trim().split(" ").slice(0,2).map(o=>o.charAt(0).toUpperCase()).join("")}const YC=["src","alt"],_C=["title"],eL={key:1,"data-avatar-placeholder-icon":"true",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tL=[e.createElementVNode("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},null,-1)],Kx=e.defineComponent({__name:"Avatar",props:{size:{default:"md"},radius:{default:"full"},color:{default:"primary"},gradient:null,src:{default:null},alt:null,imageProps:null,children:null,autoContrast:{type:Boolean,default:!0},name:null,allowedInitialsColors:null,variant:{default:"light"},component:{default:"div"},hover:{type:Boolean,default:!1},customClasses:{default:""}},setup(a){const o=a,c=e.ref(!o.src);e.watch(()=>o.src,y=>{c.value=!y},{immediate:!0});const n=y=>y?["primary","secondary","success","warning","danger","info","dark","light","initials"].includes(y):!0,r=e.computed(()=>o.name?Xx(o.name):""),i=e.computed(()=>{const y={sm:"w-5 h-5 text-xs",md:"w-6 h-6 text-xs",lg:"w-[30px] h-[30px] text-sm",xl:"w-[32px] h-[32px] text-sm","2xl":"w-[34px] h-[34px] text-base","3xl":"w-[36px] h-[36px] text-base","4xl":"w-[38px] h-[38px] text-lg","5xl":"w-[52px] h-[52px] text-xl"};return typeof o.size=="string"?y[o.size]||y.md:typeof o.size=="number"?`w-[${o.size}px] h-[${o.size}px]`:y.md}),d=e.computed(()=>oe(o.radius)),l=e.computed(()=>{if(o.src&&!c.value||!n(o.color)&&o.color!=="initials")return"";if(o.color==="initials"&&o.name){const x=Gx(o.name,o.allowedInitialsColors||["primary","secondary","success","warning","info"]);return x?T(x,"filled",{}):T("primary","filled",{})}const y=o.variant==="transparent"?"default":o.variant==="gradient"?"filled":o.variant,p=o.color&&o.color!=="initials"?o.color:"primary",k=T(p,y,{});return o.variant==="transparent"?"bg-transparent":k}),h=e.computed(()=>!n(o.color)&&o.color!=="initials"?"":o.variant==="transparent"?"bg-transparent":o.variant==="gradient"&&o.gradient?`bg-gradient-to-r from-${o.gradient.from} to-${o.gradient.to}`:Og(o.variant)),s=e.computed(()=>{if(o.src&&!c.value||n(o.color)||o.color==="initials")return{};const y={};switch(o.variant){case"filled":y.backgroundColor=o.color,o.autoContrast&&(y.color="white");break;case"light":y.backgroundColor=`${o.color}20`,y.color=o.color;break;case"outline":y.backgroundColor="transparent",y.color=o.color,y.border=`1px solid ${o.color}`;break;case"transparent":y.backgroundColor="transparent",y.color=o.color;break}return y}),u=y=>{var p;c.value=!0,(p=o.imageProps)!=null&&p.onError&&o.imageProps.onError(y)};return(y,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component||"div"),{class:e.normalizeClass(["avatar",e.unref(i),e.unref(d),!c.value&&a.src?"":e.unref(l),!c.value&&a.src?"":e.unref(h),{"avatar--with-image":!c.value&&a.src},{"hover:opacity-80 transition-opacity":a.hover},a.customClasses]),style:e.normalizeStyle(e.unref(s))},{default:e.withCtx(()=>[!c.value&&a.src?(e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0,class:"avatar__image",src:a.src,alt:a.alt},a.imageProps,{onError:u}),null,16,YC)):(e.openBlock(),e.createElementBlock("span",{key:1,class:"avatar__placeholder",title:a.alt},[e.renderSlot(y.$slots,"default",{},()=>[a.name?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(r)),1)],64)):(e.openBlock(),e.createElementBlock("svg",eL,tL))])],8,_C))]),_:3},8,["class","style"]))}}),pS="",Jx=e.defineComponent({__name:"AvatarGroup",props:{spacing:{default:"sm"},gap:{default:"none"},outlineWidth:{default:"normal"},outlineColor:{default:"white"},outlineOffset:{default:"small"},customClasses:{default:""},max:null,hover:{type:Boolean,default:!1}},setup(a){const o=a,c=e.computed(()=>{if(typeof o.spacing=="number")return`${o.spacing}px`;const s={xs:"-1rem",sm:"-0.75rem",md:"-0.5rem",lg:"-0.25rem",xl:"0"};return s[o.spacing]||s.sm}),n=e.computed(()=>{if(typeof o.gap=="number")return`${o.gap}px`;if(typeof o.gap=="string"&&!isNaN(parseFloat(o.gap)))return o.gap;const s={none:"0",xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem"};return s[o.gap]||s.none}),r=e.computed(()=>{if(typeof o.outlineWidth=="number")return`${o.outlineWidth}px`;if(typeof o.outlineWidth=="string"&&!isNaN(parseFloat(o.outlineWidth)))return o.outlineWidth;const s={none:"0",thin:"1px",normal:"2px",medium:"3px",thick:"4px"};return s[o.outlineWidth]||s.normal}),i=e.computed(()=>{if(typeof o.outlineOffset=="number")return`${o.outlineOffset}px`;if(typeof o.outlineOffset=="string"&&!isNaN(parseFloat(o.outlineOffset)))return o.outlineOffset;const s={none:"0",inset:"-2px",small:"1px",medium:"2px",large:"3px"};return s[o.outlineOffset]||s.small}),d=e.computed(()=>typeof o.outlineColor=="string"&&["primary","secondary","success","danger","warning","info","dark","light"].includes(o.outlineColor)?`outline-${o.outlineColor}`:""),l=e.computed(()=>typeof o.outlineColor=="string"&&["primary","secondary","success","danger","warning","info","dark","light"].includes(o.outlineColor)?"var(--color-"+o.outlineColor+")":o.outlineColor),h=e.computed(()=>({"--avatar-group-spacing":c.value,"--avatar-group-gap":n.value,"--avatar-group-outline-width":r.value,"--avatar-group-outline-color":l.value,"--avatar-group-outline-offset":i.value}));return(s,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar-group",a.customClasses,e.unref(d),{"avatar-group--hover":a.hover}]),style:e.normalizeStyle(e.unref(h))},[e.renderSlot(s.$slots,"default")],6))}}),uS="";Kx.Group=Jx;const A2=e.defineComponent({__name:"Tabs",props:{value:{type:String,default:void 0},defaultValue:{type:String,default:"first"},orientation:{type:String,default:"horizontal"},placement:{type:String,default:void 0},variant:{type:String,default:"text"}},emits:["change"],setup(a,{emit:o}){const c=a,n=e.computed(()=>c.placement?c.placement:c.orientation==="horizontal"?"top":"left"),r=e.computed(()=>c.orientation),i=e.computed(()=>c.variant),d=e.ref(c.value!==void 0?c.value:c.defaultValue);e.watch(()=>c.value,h=>{h!==void 0&&(d.value=h)});const l=h=>{c.value!==void 0?o("change",h):d.value=h};return e.provide("activeTab",d),e.provide("setActiveTab",l),e.provide("tabsOrientation",r),e.provide("tabsPlacement",n),(h,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cstu-tabs",`cstu-tabs-${e.unref(r)}`,`cstu-tabs-placement-${e.unref(n)}`,`cstu-tabs-variant-${e.unref(i)}`])},[e.renderSlot(h.$slots,"default")],2))}}),kS="",Qx=e.defineComponent({__name:"TabsList",props:{justify:{type:String,default:"flex-start"},divider:{type:Boolean,default:!1}},setup(a){const o=a,c=e.inject("tabsOrientation",e.ref("horizontal")),n=e.inject("tabsPlacement",e.ref("top")),r=e.computed(()=>["tabs-list",`tabs-list-${c.value}`,`tabs-list-placement-${n.value}`,o.divider?"tabs-list-with-divider":""]),i=l=>{if(["space-between","space-around","space-evenly"].includes(l))return l;switch(l){case"flex-start":return"flex-start";case"flex-end":return"flex-end";case"center":return"center";default:return"flex-start"}},d=e.computed(()=>c.value==="horizontal"?{justifyContent:o.justify}:{justifyContent:i(o.justify)});return(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r)),style:e.normalizeStyle(e.unref(d))},[e.renderSlot(l.$slots,"default")],6))}}),mS="",Yx=e.defineComponent({__name:"TabsTab",props:{value:{type:String,required:!0},color:{type:String,default:"primary"},variant:{type:String,default:"text"},size:{type:String,default:"md"},radius:{type:String,default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},setup(a){const o=a,c=e.inject("activeTab",e.ref("")),n=e.inject("setActiveTab",()=>{}),r=e.inject("tabsOrientation",e.ref("horizontal")),i=e.inject("tabsPlacement",e.ref("top")),d=e.computed(()=>c.value),l=e.computed(()=>r.value),h=e.computed(()=>i.value),s=e.computed(()=>d.value===o.value),u=e.computed(()=>l.value==="vertical"),y=e.computed(()=>o.fullWidth&&l.value==="horizontal"),p=()=>{!o.disabled&&!o.loading&&n(o.value)};return(k,x)=>(e.openBlock(),e.createBlock(e.unref(E),{class:e.normalizeClass(["tabs-tab",e.unref(s)?"tabs-tab-active":"tabs-tab-inactive",`tabs-tab-${o.variant}`,o.color?`tabs-tab-color-${o.color}`:"",`tabs-tab-orientation-${e.unref(l)}`,`tabs-tab-placement-${e.unref(h)}`,{"tabs-tab-full-width":e.unref(y)}]),disabled:o.disabled,loading:o.loading,color:e.unref(s)?o.color:"secondary",variant:e.unref(s)?o.variant:"subtle",size:o.size,radius:o.variant==="text"?"none":o.radius,"full-width":e.unref(u),onClick:p},e.createSlots({default:e.withCtx(()=>[e.renderSlot(k.$slots,"default")]),_:2},[k.$slots.leftSection?{name:"leftSection",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"leftSection")]),key:"0"}:void 0,k.$slots.rightSection?{name:"rightSection",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"rightSection")]),key:"1"}:void 0]),1032,["class","disabled","loading","color","variant","size","radius","full-width"]))}}),fS="",_x=e.defineComponent({__name:"TabsPanel",props:{value:{type:String,required:!0},KeepAlive:{type:Boolean,default:!1}},setup(a){const o=a,c=e.inject("activeTab",e.ref("")),n=e.inject("tabsOrientation",e.ref("horizontal")),r=e.inject("tabsPlacement",e.ref("top")),i=e.computed(()=>c.value===o.value),d=e.computed(()=>["tabs-panel",i.value?"tabs-panel-active":"tabs-panel-inactive",`tabs-panel-${n.value}`,`tabs-panel-placement-${r.value}`]);return(l,h)=>a.KeepAlive||e.unref(i)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(d))},[e.renderSlot(l.$slots,"default")],2)),[[e.vShow,e.unref(i)]]):e.createCommentVNode("",!0)}}),MS="";A2.List=Qx,A2.Tab=Yx,A2.Panel=_x;const aL=e.createElementVNode("span",{class:"cstu-sr-only"},"First page",-1),oL=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("polyline",{points:"11 17 6 12 11 7"}),e.createElementVNode("polyline",{points:"18 17 13 12 18 7"})],-1),cL=e.createElementVNode("span",{class:"cstu-sr-only"},"Previous page",-1),nL=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("polyline",{points:"15 18 9 12 15 6"})],-1),rL={key:2,class:"cstu-flex cstu-items-center cstu-gap-2"},iL=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("circle",{cx:"12",cy:"12",r:"1"}),e.createElementVNode("circle",{cx:"19",cy:"12",r:"1"}),e.createElementVNode("circle",{cx:"5",cy:"12",r:"1"})],-1)],lL=e.createElementVNode("span",{class:"cstu-sr-only"},"Next page",-1),dL=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("polyline",{points:"9 18 15 12 9 6"})],-1),sL=e.createElementVNode("span",{class:"cstu-sr-only"},"Last page",-1),hL=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"cstu-h-4 cstu-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("polyline",{points:"13 17 18 12 13 7"}),e.createElementVNode("polyline",{points:"6 17 11 12 6 7"})],-1),yL=e.defineComponent({__name:"Pagination",props:{modelValue:{default:1},total:null,siblings:{default:1},boundaries:{default:1},variant:{default:"filled"},color:{default:"primary"},size:{default:"md"},disabled:{type:Boolean,default:!1},withControls:{type:Boolean,default:!0},withEdges:{type:Boolean,default:!1},withPages:{type:Boolean,default:!0},class:null},emits:["update:modelValue"],setup(a,{emit:o}){const c=a,n=e.ref(c.modelValue);e.watch(()=>c.modelValue,p=>{n.value=p});const r=e.computed(()=>n.value===1),i=e.computed(()=>n.value===c.total),d=e.computed(()=>{switch(c.size){case"xs":return"cstu-!h-[30px] cstu-!w-[30px] cstu-min-w-[30px] !cstu-p-0";case"sm":return"cstu-!h-[36px] cstu-!w-[36px] cstu-min-w-[36px] !cstu-p-0";case"md":return"cstu-!h-[40px] cstu-!w-[40px] cstu-min-w-[40px] !cstu-p-0";case"lg":return"cstu-!h-[45px] cstu-!w-[45px] cstu-min-w-[45px] !cstu-p-0";case"xl":return"cstu-!h-[50px] cstu-!w-[50px] cstu-min-w-[50px] !cstu-p-0";default:return"cstu-!h-[40px] cstu-!w-[40px] cstu-min-w-[40px] !cstu-p-0"}}),l=e.computed(()=>["cstu-flex cstu-items-center cstu-justify-center",u(c.size)]),h=e.computed(()=>{const p=[],k=c.total;if(c.siblings*2+3+c.boundaries*2>=k)return Array.from({length:k},(f,L)=>L+1);const w=Math.max(n.value-c.siblings,c.boundaries+1),g=Math.min(n.value+c.siblings,k-c.boundaries),I=w>c.boundaries+2,M=g<k-(c.boundaries+1),m=new Set;for(let f=1;f<=c.boundaries;f++)p.push(f),m.add(f);if(I)p.push("dots");else if(!I&&w>c.boundaries)for(let f=c.boundaries+1;f<w;f++)m.has(f)||(p.push(f),m.add(f));for(let f=w;f<=g;f++)m.has(f)||(p.push(f),m.add(f));if(M)p.push("dots");else if(!M&&g<k-c.boundaries)for(let f=g+1;f<k-c.boundaries+1;f++)m.has(f)||(p.push(f),m.add(f));for(let f=k-c.boundaries+1;f<=k;f++)m.has(f)||(p.push(f),m.add(f));return p}),s=p=>{p<1||p>c.total||c.disabled||(n.value=p,o("update:modelValue",p))};function u(p){const k={xs:"cstu-h-6 cstu-w-6 cstu-text-xs",sm:"cstu-h-7 cstu-w-7 cstu-text-sm",md:"cstu-h-8 cstu-w-8 cstu-text-sm",lg:"cstu-h-9 cstu-w-9 cstu-text-base",xl:"cstu-h-10 cstu-w-10 cstu-text-base"};return k[p]||k.md}const y=e.computed(()=>c.variant==="filled"?"subtle":"bordered-transparent");return(p,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cstu-flex cstu-items-center cstu-gap-2",[c.class]])},[c.withEdges?(e.openBlock(),e.createBlock(E,{key:0,variant:e.unref(y),color:"light",size:c.size,disabled:e.unref(r)||c.disabled,onClick:k[0]||(k[0]=x=>s(1)),"aria-label":"Go to first page",class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[aL,oL]),_:1},8,["variant","size","disabled","class"])):e.createCommentVNode("",!0),c.withControls?(e.openBlock(),e.createBlock(E,{key:1,variant:e.unref(y),color:"light",size:c.size,disabled:e.unref(r)||c.disabled,onClick:k[1]||(k[1]=x=>s(n.value-1)),"aria-label":"Go to previous page",class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[cL,nL]),_:1},8,["variant","size","disabled","class"])):e.createCommentVNode("",!0),c.withPages?(e.openBlock(),e.createElementBlock("div",rL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),(x,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w},[x!=="dots"?(e.openBlock(),e.createBlock(E,{key:0,variant:x===n.value?"filled":e.unref(y),color:x===n.value?c.color:"light",size:c.size,disabled:c.disabled,onClick:g=>s(Number(x)),"aria-current":x===n.value?"page":void 0,"aria-label":`Page ${x}`,class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["variant","color","size","disabled","onClick","aria-current","aria-label","class"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["pagination-dots",[e.unref(l),e.unref(d)]])},iL,2))],64))),128))])):e.createCommentVNode("",!0),c.withControls?(e.openBlock(),e.createBlock(E,{key:3,variant:e.unref(y),color:"light",size:c.size,disabled:e.unref(i)||c.disabled,onClick:k[2]||(k[2]=x=>s(n.value+1)),"aria-label":"Go to next page",class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[lL,dL]),_:1},8,["variant","size","disabled","class"])):e.createCommentVNode("",!0),c.withEdges?(e.openBlock(),e.createBlock(E,{key:4,variant:e.unref(y),color:"light",size:c.size,disabled:e.unref(i)||c.disabled,onClick:k[3]||(k[3]=x=>s(c.total)),"aria-label":"Go to last page",class:e.normalizeClass(e.unref(d))},{default:e.withCtx(()=>[sL,hL]),_:1},8,["variant","size","disabled","class"])):e.createCommentVNode("",!0)],2))}}),eI={mounted(a,o){a._clickOutside=c=>{const n=c.target;if(!(a===n||a.contains(n))){const r=c.target,i=r.tagName&&r.tagName.toLowerCase()==="input",d=r.closest(".cstu-dropdown-menu");!i&&!d&&o.value(c)}},document.addEventListener("click",a._clickOutside,!0),document.addEventListener("touchstart",a._clickOutside,!0)},unmounted(a){a._clickOutside&&(document.removeEventListener("click",a._clickOutside,!0),document.removeEventListener("touchstart",a._clickOutside,!0))}},pL=["id","aria-labelledby","aria-modal","onKeydown"],uL={class:"cstu-popover-inner"},kL=["id"],mL=e.defineComponent({__name:"Popover",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},placement:{default:"bottom"},variant:{default:"shadow"},color:{default:"primary"},size:{default:"md"},radius:{default:"md"},hideHeader:{type:Boolean,default:!1},showCloseIcon:{type:Boolean,default:!0},hideFooter:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},closeOnClick:{type:Boolean,default:!1},title:{default:""},content:{default:""},zIndex:{default:1e3},trigger:{default:"click"},backdrop:{type:[Boolean,String],default:!1},offsetDistance:{default:8},disabled:{type:Boolean,default:!1},popoverClass:{default:""},headerClass:{default:""},bodyClass:{default:""},footerClass:{default:""},trapFocus:{type:Boolean,default:!1},id:{default:()=>`popover-${Date.now()}`},shadow:{default:"md"},width:null},emits:["update:open","open","close"],setup(a,{emit:o}){const c=a,n=e.ref(c.defaultOpen),r=e.ref(null),i=e.ref(null),d=e.ref(null),l=e.ref(null),h=e.ref(c.zIndex);c.open!==void 0&&(n.value=c.open);const s=e.computed(()=>{if(c.placement!=="auto")return c.placement}),u=e.computed(()=>{const C=[b2(c.offsetDistance)];return d.value&&C.push(Dx({element:d})),c.placement==="auto"?C.push(jx({padding:8})):C.push(z2({fallbackPlacements:["top","bottom","left","right"],padding:8})),C.push(S2({padding:8})),C}),{floatingStyles:y,update:p}=q2(r,i,{placement:s,middleware:u,whileElementsMounted:Fx}),k=C=>{c.disabled||(c.trigger==="click"||c.trigger==="manual")&&z()},x=()=>{c.disabled||c.trigger==="hover"&&f()},w=()=>{c.disabled||c.trigger==="hover"&&setTimeout(()=>{L("hover")},100)},g=C=>{c.closeOnClick&&L("popoverClick"),C.stopPropagation()},I=C=>{c.closeOnClickOutside&&n.value&&i.value&&!i.value.contains(C.target)&&r.value&&!r.value.contains(C.target)&&L("clickAway")},M=()=>{c.closeOnClickOutside&&L("backdrop")},m=C=>{c.closeOnEscape&&C.key==="Escape"&&(C.preventDefault(),L("escape"))},f=()=>{c.disabled||n.value||(l.value=document.activeElement,n.value=!0,e.nextTick(()=>{p(),c.trapFocus&&V()}),o("open"),o("update:open",!0))},L=(C="programmatic")=>{n.value&&(n.value=!1,c.trapFocus&&D(l.value),o("close",C),o("update:open",!1))},z=()=>{n.value?L():f()},V=()=>{if(!i.value)return;const C=b(i.value);C.length>0?C[0].focus():i.value.focus()},D=C=>{C&&typeof C.focus=="function"&&C.focus()},b=C=>Array.from(C.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')).filter(B=>!B.hasAttribute("disabled")&&!B.getAttribute("aria-hidden")),v=C=>{if(!n.value||!c.trapFocus||!i.value)return;const B=C.target;i.value.contains(B)||(C.preventDefault(),V())};e.watch(()=>c.open,C=>{C!==n.value&&(C?f():L())}),e.watch(r,C=>{C&&p()}),e.onMounted(()=>{document.addEventListener("keydown",m),c.trapFocus&&document.addEventListener("focusin",v)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",m),c.trapFocus&&document.removeEventListener("focusin",v)});const H=e.computed(()=>[oe(c.radius),!c.variant||c.variant==="shadow"?c.shadow?`cstu-shadow-${c.shadow}`:"cstu-shadow-md":"",c.popoverClass]),O=e.computed(()=>{const C=[...H.value.filter(Boolean)];let B=!1;const $=c.color;if($&&G($)&&c.variant==="color"){const F=T($,"filled",{disabled:c.disabled});typeof F=="string"&&F.trim()&&(C.push(...F.split(" ").filter(Boolean)),B=!0)}return B||(C.push("cstu-bg-white"),c.variant==="outline"&&C.push("cstu-border","cstu-border-gray-300"),C.push("cstu-text-gray-700")),C.filter(Boolean).map(F=>typeof F=="string"?F:Object.keys(F).filter(f2=>F[f2]).join(" ")).join(" ")}),N=e.computed(()=>{const C={width:typeof c.width=="number"?`${c.width}px`:c.width},B=c.color;if(B&&!G(B)&&c.variant==="color"){C.backgroundColor=B;const $=P(B);C.color=$>128?"#000000":"#FFFFFF"}return{...y.value,...C}});e.computed(()=>{const C={backgroundColor:"white"},B=c.color;return c.variant==="color"&&B?G(B)?(C.borderWidth="1px",C.borderStyle="solid",C.borderColor=`var(--${B}-500)`):C.backgroundColor=B:c.variant==="outline"&&(C.borderWidth="1px",C.borderStyle="solid",C.borderColor="#e2e8f0"),C});function P(C){if(C.startsWith("#"))try{const B=parseInt(C.substring(1,3),16),$=parseInt(C.substring(3,5),16),F=parseInt(C.substring(5,7),16);return(B*299+$*587+F*114)/1e3}catch{return 128}else if(C.startsWith("rgb"))try{const B=C.match(/\d+/g);if(B&&B.length>=3){const $=parseInt(B[0],10),F=parseInt(B[1],10),f2=parseInt(B[2],10);return($*299+F*587+f2*114)/1e3}}catch{return 128}return 128}const _=e.computed(()=>{const C=c.color,B=!(C&&G(C)),$=c.variant==="outline";return["cstu-popover-header",{xs:"cstu-px-2 cstu-py-1.5",sm:"cstu-px-2.5 cstu-py-1.5",md:"cstu-px-3 cstu-py-2",lg:"cstu-px-3.5 cstu-py-2.5",xl:"cstu-px-4 cstu-py-3"}[c.size||"md"],ge(c.size||"md"),"cstu-flex cstu-items-center cstu-justify-between",$||B?"cstu-border-b cstu-border-gray-200 dark:cstu-border-gray-700":"",c.headerClass].filter(Boolean).join(" ")}),Q=e.computed(()=>["cstu-popover-body",{xs:"cstu-p-2",sm:"cstu-p-2.5",md:"cstu-p-3",lg:"cstu-p-3.5",xl:"cstu-p-4"}[c.size||"md"],ge(c.size||"sm"),c.bodyClass].filter(Boolean).join(" ")),X=e.computed(()=>{const C=c.color,B=!(C&&G(C)),$=c.variant==="outline";return["cstu-popover-footer",{xs:"cstu-px-2 cstu-py-1.5",sm:"cstu-px-2.5 cstu-py-1.5",md:"cstu-px-3 cstu-py-2",lg:"cstu-px-3.5 cstu-py-2.5",xl:"cstu-px-4 cstu-py-3"}[c.size||"md"],$||B?"cstu-border-t cstu-border-gray-200 dark:cstu-border-gray-700":"","cstu-flex cstu-justify-end cstu-space-x-2",c.footerClass].filter(Boolean).join(" ")});return(C,B)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"triggerRef",ref:r,class:e.normalizeClass(["cstu-inline-block cstu-popover-trigger",{"cstu-cursor-not-allowed cstu-opacity-70":a.disabled}]),onClick:k,onMouseenter:x,onMouseleave:w},[e.renderSlot(C.$slots,"trigger")],34),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade",appear:""},{default:e.withCtx(()=>[n.value&&a.backdrop!==!1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cstu-popover-backdrop",{"cstu-bg-black/50":a.backdrop===!0,"cstu-bg-transparent":a.backdrop==="transparent"}]),style:e.normalizeStyle({zIndex:a.zIndex-10}),onClick:M},null,6)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{"enter-active-class":"cstu-transition cstu-ease-out cstu-duration-100","enter-from-class":"cstu-transform cstu-opacity-0 cstu-scale-95","enter-to-class":"cstu-transform cstu-opacity-100 cstu-scale-100","leave-active-class":"cstu-transition cstu-ease-in cstu-duration-75","leave-from-class":"cstu-transform cstu-opacity-100 cstu-scale-100","leave-to-class":"cstu-transform cstu-opacity-0 cstu-scale-95"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cstu-popover-container",style:e.normalizeStyle({zIndex:h.value})},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"popoverRef",ref:i,id:c.id,class:e.normalizeClass(e.unref(O)),style:e.normalizeStyle([e.unref(y),e.unref(N)]),role:"dialog","aria-labelledby":c.title?`${c.id}-title`:void 0,"aria-modal":c.trapFocus,tabindex:"-1",onClick:g,onKeydown:e.withKeys(m,["esc"])},[e.createElementVNode("div",uL,[c.hideHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(_))},[e.renderSlot(C.$slots,"header",{},()=>[e.createElementVNode("h3",{id:`${c.id}-title`,class:e.normalizeClass(["cstu-popover-title cstu-font-medium",e.unref(ge)(c.size||"md")])},e.toDisplayString(c.title),11,kL),c.showCloseIcon?(e.openBlock(),e.createBlock(E,{key:0,icon:"X",variant:"text",size:"xs",color:c.color&&e.unref(G)(c.color)?"white":"gray",class:"cstu-ml-auto","aria-label":"Close popover",onClick:B[0]||(B[0]=e.withModifiers($=>L("headerClose"),["stop"]))},null,8,["color"])):e.createCommentVNode("",!0)])],2)),e.createElementVNode("div",{class:e.normalizeClass(e.unref(Q))},[e.renderSlot(C.$slots,"default",{},()=>[a.content?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(ge)(c.size||"sm"))},e.toDisplayString(a.content),3)):e.createCommentVNode("",!0)])],2),c.hideFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(X))},[e.renderSlot(C.$slots,"footer",{},()=>[e.createVNode(E,{size:"sm",variant:"subtle",onClick:B[1]||(B[1]=$=>L("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(" Close ")]),_:1})])],2))])],46,pL)),[[e.unref(eI),I]])],4)):e.createCommentVNode("",!0)]),_:3})]))],64))}}),xS="",fL=e.defineComponent({__name:"Breadcrumbs",props:{separator:{default:"/"},separatorMargin:{default:"xs"},size:{default:"md"},radius:{default:"md"},color:{default:"primary"},highlightActive:{type:Boolean,default:!0},class:null,separatorClass:null,activeClass:null},setup(a){const o=a,c=e.useSlots(),n=e.computed(()=>!!c.default),r=e.computed(()=>c.default?c.default():[]),i=y=>y===r.value.length-1,d=y=>y?["primary","secondary","success","warning","danger","info","dark","light"].includes(y):!0,l=y=>{if(!i(y)||!o.highlightActive)return"";if(d(o.color)){const p=W[o.color];if(p)return`cstu-text-${p.base}-${p.main}`}return""},h=y=>!i(y)||!o.highlightActive?{}:d(o.color)?{}:{color:o.color},s=e.computed(()=>{const y={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"};return y[o.size]||y.md}),u=e.computed(()=>{const y={xs:"mx-1",sm:"mx-2",md:"mx-3",lg:"mx-4",xl:"mx-5"};return y[o.separatorMargin]||y.xs});return(y,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cstu-breadcrumbs",o.class])},[e.unref(n)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(r),(k,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:x},[e.createElementVNode("div",{class:e.normalizeClass(["cstu-breadcrumb-item",e.unref(s),i(x)?"cstu-breadcrumb-active":"cstu-breadcrumb-inactive",i(x)?o.activeClass:"",i(x)&&o.highlightActive?l(x):""]),style:e.normalizeStyle(h(x))},[e.renderSlot(y.$slots,`item-${x}`,{isActive:i(x)},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k)))])],6),i(x)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cstu-breadcrumb-separator",e.unref(u),o.separatorClass])},[e.renderSlot(y.$slots,"separator",{},()=>[typeof o.separator=="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.separator),1)],64)):o.separator?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.separator),{key:1})):e.createCommentVNode("",!0)])],2))],64))),128)):e.renderSlot(y.$slots,"default",{key:0})],2))}}),IS="",ML={key:0,class:"cstu-flex cstu-justify-between cstu-items-center cstu-mb-1"},gL=["for"],xL={key:0,class:"cstu-text-red-500 cstu-ml-1"},IL={key:0,class:"cstu-flex cstu-items-center cstu-justify-center cstu-w-[15px] cstu-h-[15px] cstu-mt-1"},wL=["id","value","placeholder","disabled","required","readonly","rows","maxlength"],CL={key:1,class:"cstu-flex cstu-items-center cstu-justify-center cstu-w-[15px] cstu-h-[15px] cstu-mt-1"},LL=e.defineComponent({__name:"Textarea",props:{id:null,modelValue:null,placeholder:null,disabled:{type:Boolean},readonly:{type:Boolean},label:null,labelProps:null,description:null,descriptionProps:null,error:null,errorProps:null,hasError:{type:Boolean},showBothErrorAndDescription:{type:Boolean},textareaProps:null,size:null,radius:null,variant:null,required:{type:Boolean},withAsterisk:{type:Boolean},rows:null,resize:null,fullWidth:{type:Boolean},color:null,class:null,inputClass:null,maxLength:null},emits:["update:modelValue","focus","blur","change"],setup(a,{expose:o,emit:c}){const{id:n,modelValue:r,placeholder:i,label:d,description:l,error:h,hasError:s=!1,disabled:u=!1,readonly:y=!1,required:p=!1,withAsterisk:k=!1,showBothErrorAndDescription:x=!1,textareaProps:w,labelProps:g,descriptionProps:I,errorProps:M,size:m="md",variant:f="default",radius:L="md",color:z="primary",class:V,fullWidth:D=!1,inputClass:b="",rows:v=3,resize:H="none",maxLength:O=void 0}=a,N=`textarea-${Math.random().toString(36).substring(2,11)}`,P=e.ref(null),_={xs:{inputClass:`cstu-min-h-8 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-xs cstu-font-medium",descriptionSize:"cstu-text-xs"},sm:{inputClass:`cstu-min-h-9 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-sm cstu-font-medium",descriptionSize:"cstu-text-xs"},md:{inputClass:`cstu-min-h-10 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-sm cstu-font-medium",descriptionSize:"cstu-text-sm"},lg:{inputClass:`cstu-min-h-11 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-sm cstu-font-medium",descriptionSize:"cstu-text-sm"},xl:{inputClass:`cstu-min-h-12 ${D?"cstu-w-full":"cstu-max-w-[20.5rem]"}`,labelSize:"cstu-text-base cstu-font-medium",descriptionSize:"cstu-text-sm"}},Q=e.computed(()=>`${_[m].inputClass.split(" ")[0]} cstu-transition-all cstu-duration-300`),X=e.computed(()=>_[m].labelSize),C=e.computed(()=>_[m].descriptionSize),B=e.computed(()=>{switch(m){case"xs":return"cstu-text-xs";case"sm":return"cstu-text-sm";case"md":return"cstu-text-sm";case"lg":return"cstu-text-base";case"xl":return"cstu-text-base";default:return"cstu-text-sm"}}),$=e.computed(()=>oe(L)),F=e.computed(()=>h!==void 0&&h!==""||s),f2=e.computed(()=>f==="unstyled"||!G(z)&&!F.value?"":F.value?"cstu-border-red-500 hover:cstu-border-red-500 focus-within:cstu-border-red-500 focus-within:cstu-ring-1 focus-within:cstu-ring-red-500":f==="default"||f==="outline"?`cstu-border-${z}-500 hover:cstu-border-${z}-600 focus-within:cstu-border-${z}-500 focus-within:cstu-ring-1 focus-within:cstu-ring-${z}-500`:f==="filled"?`cstu-bg-${z}-50 hover:cstu-bg-${z}-100`:f==="light"?`cstu-bg-${z}-50 cstu-text-${z}-500 hover:cstu-bg-${z}-100`:f==="subtle"?`cstu-text-${z}-500 hover:cstu-bg-${z}-50`:""),Nb=e.computed(()=>f==="unstyled"?{}:G(z)||F.value?{}:f==="default"||f==="outline"?{"--border-color":z,"border-color":"var(--border-color)"}:f==="filled"?{"--bg-color":`${z}10`,"background-color":"var(--bg-color)"}:f==="light"?{"--bg-color":`${z}10`,"--text-color":z,"background-color":"var(--bg-color)",color:"var(--text-color)"}:f==="subtle"?{"--text-color":z,color:"var(--text-color)"}:{}),$b=e.computed(()=>{const A={default:"cstu-bg-white cstu-border cstu-transition-colors cstu-duration-150 cstu-px-3",filled:"cstu-bg-gray-100 cstu-border cstu-border-transparent cstu-transition-colors cstu-duration-150 cstu-px-3",light:"cstu-border cstu-transition-colors cstu-duration-150 cstu-px-3",outline:"cstu-bg-white cstu-border cstu-transition-colors cstu-duration-150 cstu-px-3",subtle:"cstu-bg-transparent cstu-transition-colors cstu-duration-150 cstu-px-3",unstyled:"cstu-bg-transparent !cstu-border-0"};if(f==="unstyled")return[A[f]];const he=F.value?"":f==="default"||f==="outline"?"cstu-border-gray-300/45":"",l2=F.value?"cstu-border-red-500":"";return[A[f],he,l2,F.value?"hover:cstu-border-red-500":"hover:cstu-border-blue-450",F.value?"focus-within:cstu-border-red-500 focus-within:cstu-ring-1 focus-within:cstu-ring-red-500":"focus-within:cstu-border-blue-450 focus-within:cstu-ring-1 focus-within:cstu-ring-blue-450"]}),xI=e.ref(!1),Ub=A=>{xI.value=!0,c("focus",A)},Zb=A=>{xI.value=!1,c("blur",A)},Wb=A=>{c("change",A)};return o({textarea:P,focus:()=>{var A;return(A=P.value)==null?void 0:A.focus()},blur:()=>{var A;return(A=P.value)==null?void 0:A.blur()},select:()=>{var A;return(A=P.value)==null?void 0:A.select()},setSelectionRange:(A,he)=>{var l2;return(l2=P.value)==null?void 0:l2.setSelectionRange(A,he)},setRangeText:A=>{var he;return(he=P.value)==null?void 0:he.setRangeText(A)},get value(){var A;return(A=P.value)==null?void 0:A.value},set value(A){P.value&&A!==void 0&&(P.value.value=A)}}),(A,he)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cstu-flex cstu-flex-col cstu-transition-all cstu-duration-300",[A.customClass,a.fullWidth?"cstu-w-full":"cstu-max-w-[20.5rem]"]])},[a.label||A.$slots.label?(e.openBlock(),e.createElementBlock("div",ML,[e.createElementVNode("label",e.mergeProps({for:a.id||N,class:["cstu-flex cstu-items-center",e.unref(X)]},a.labelProps),[e.renderSlot(A.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(a.label)+" ",1),a.withAsterisk||a.required?(e.openBlock(),e.createElementBlock("span",xL,"*")):e.createCommentVNode("",!0)])],16,gL),e.renderSlot(A.$slots,"labelIcon")])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cstu-flex cstu-items-start cstu-gap-2 cstu-py-2",e.unref(Q),e.unref($),e.unref($b),e.unref(f2),{"cstu-opacity-50 cstu-pointer-events-none cstu-cursor-not-allowed":a.disabled}]),style:e.normalizeStyle(e.unref(Nb))},[A.$slots.leftSection?(e.openBlock(),e.createElementBlock("div",IL,[e.renderSlot(A.$slots,"leftSection")])):e.createCommentVNode("",!0),e.createElementVNode("textarea",e.mergeProps({ref_key:"textareaRef",ref:P,id:a.id||N,value:a.modelValue,placeholder:a.placeholder,disabled:a.disabled,required:a.required,readonly:a.readonly,rows:a.rows,maxlength:a.maxLength,class:["cstu-flex-1 cstu-bg-transparent cstu-outline-none cstu-w-full",e.unref(B),a.inputClass,{"cstu-text-gray-500":a.modelValue,"cstu-text-red-500":e.unref(F)&&!a.modelValue}],style:{resize:a.resize},onInput:he[0]||(he[0]=l2=>A.$emit("update:modelValue",l2.target.value)),onFocus:Ub,onBlur:Zb,onChange:Wb},a.textareaProps),null,16,wL),A.$slots.rightSection?(e.openBlock(),e.createElementBlock("div",CL,[e.renderSlot(A.$slots,"rightSection")])):e.createCommentVNode("",!0)],6)]),a.description&&!e.unref(F)||A.$slots.description&&!e.unref(F)||a.showBothErrorAndDescription&&a.description||a.showBothErrorAndDescription&&A.$slots.description?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:"cstu-mt-1"},a.descriptionProps),[e.createElementVNode("p",{class:e.normalizeClass(["cstu-text-gray-500",e.unref(C)])},[e.renderSlot(A.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(a.description),1)])],2)],16)):e.createCommentVNode("",!0),e.unref(F)&&a.error||e.unref(F)&&A.$slots.error||a.showBothErrorAndDescription&&a.error||a.showBothErrorAndDescription&&A.$slots.error?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:2,class:"cstu-mt-1"},a.errorProps),[e.createElementVNode("p",{class:e.normalizeClass(["cstu-text-red-500",e.unref(C)])},[e.renderSlot(A.$slots,"error",{},()=>[e.createTextVNode(e.toDisplayString(a.error),1)])],2)],16)):e.createCommentVNode("",!0)],2))}});/**
13
13
  * @license lucide-vue-next v0.468.0 - ISC
14
14
  *
15
15
  * This source code is licensed under the ISC license.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentstudio/ui",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",