@leodamours/ds-components 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as S, ref as j, watch as we, computed as k, openBlock as g, createElementBlock as v, normalizeClass as B, toDisplayString as T, createCommentVNode as D, renderSlot as N, createTextVNode as X, createBlock as I, resolveDynamicComponent as $e, normalizeStyle as he, createElementVNode as F, shallowRef as kt, getCurrentScope as Ft, onScopeDispose as Ct, shallowReadonly as be, unref as R, mergeProps as de, createVNode as ne, withCtx as Re, Teleport as Oe, withModifiers as $t, Fragment as re, renderList as se, nextTick as je, withKeys as rt, onBeforeUnmount as st, Transition as at, onMounted as Dt, TransitionGroup as Et } from "vue";
2
- const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
1
+ import { defineComponent as S, ref as j, watch as we, computed as k, openBlock as g, createElementBlock as p, normalizeClass as T, toDisplayString as B, createCommentVNode as D, renderSlot as N, createTextVNode as X, createBlock as I, resolveDynamicComponent as $e, normalizeStyle as he, createElementVNode as F, shallowRef as Ft, getCurrentScope as Ct, onScopeDispose as $t, shallowReadonly as be, unref as R, mergeProps as de, createVNode as _, withCtx as Re, Teleport as Oe, withModifiers as Dt, Fragment as se, renderList as re, nextTick as je, withKeys as st, onBeforeUnmount as rt, Transition as at, onMounted as Et, TransitionGroup as At } from "vue";
2
+ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
3
3
  __name: "DsAvatar",
4
4
  props: {
5
5
  src: {},
@@ -13,7 +13,7 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
13
13
  we(() => n.src, () => {
14
14
  t.value = !1;
15
15
  });
16
- const o = k(() => n.name ? n.name.split(" ").map((a) => a[0]).slice(0, 2).join("").toUpperCase() : "?"), r = k(() => [
16
+ const o = k(() => n.name ? n.name.split(" ").map((a) => a[0]).slice(0, 2).join("").toUpperCase() : "?"), s = k(() => [
17
17
  "inline-flex",
18
18
  "items-center",
19
19
  "justify-center",
@@ -26,7 +26,7 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
26
26
  lg: "w-10 h-10 text-base",
27
27
  xl: "w-12 h-12 text-lg"
28
28
  }[n.size]
29
- ].join(" ")), s = k(() => [
29
+ ].join(" ")), r = k(() => [
30
30
  "w-full",
31
31
  "h-full",
32
32
  "flex",
@@ -39,25 +39,25 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
39
39
  neutral: "bg-neutral-soft text-neutral-on-soft"
40
40
  }[n.variant]
41
41
  ].join(" "));
42
- return (a, d) => (g(), v("span", {
43
- class: B(r.value),
42
+ return (a, d) => (g(), p("span", {
43
+ class: T(s.value),
44
44
  role: "img",
45
45
  "aria-label": e.alt || e.name
46
46
  }, [
47
- e.src && !t.value ? (g(), v("img", {
47
+ e.src && !t.value ? (g(), p("img", {
48
48
  key: 0,
49
49
  src: e.src,
50
50
  alt: e.alt || e.name || "",
51
51
  class: "w-full h-full object-cover rounded-full",
52
52
  onError: d[0] || (d[0] = (i) => t.value = !0)
53
- }, null, 40, Bt)) : (g(), v("span", {
53
+ }, null, 40, Tt)) : (g(), p("span", {
54
54
  key: 1,
55
- class: B(s.value),
55
+ class: T(r.value),
56
56
  "aria-hidden": "true"
57
- }, T(o.value), 3))
58
- ], 10, At));
57
+ }, B(o.value), 3))
58
+ ], 10, Bt));
59
59
  }
60
- }), _o = /* @__PURE__ */ S({
60
+ }), ns = /* @__PURE__ */ S({
61
61
  __name: "DsBadge",
62
62
  props: {
63
63
  label: {},
@@ -67,13 +67,13 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
67
67
  },
68
68
  setup(e) {
69
69
  const n = e, t = k(() => {
70
- const r = [
70
+ const s = [
71
71
  "inline-flex",
72
72
  "items-center",
73
73
  "font-medium",
74
74
  "rounded-full",
75
75
  "whitespace-nowrap"
76
- ], s = n.dot ? { sm: "px-1.5 py-0.5", md: "px-2 py-0.5", lg: "px-2.5 py-1" } : { sm: "px-1.5 py-0.5 text-xs", md: "px-2 py-0.5 text-xs", lg: "px-2.5 py-1 text-sm" }, a = {
76
+ ], r = n.dot ? { sm: "px-1.5 py-0.5", md: "px-2 py-0.5", lg: "px-2.5 py-1" } : { sm: "px-1.5 py-0.5 text-xs", md: "px-2 py-0.5 text-xs", lg: "px-2.5 py-1 text-sm" }, a = {
77
77
  brand: "bg-brand-soft text-brand-on-soft",
78
78
  neutral: "bg-neutral-soft text-neutral-on-soft",
79
79
  error: "bg-error-soft text-error-on-soft",
@@ -83,12 +83,12 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
83
83
  processing: "bg-processing-soft text-processing-on-soft"
84
84
  };
85
85
  return [
86
- ...r,
87
- s[n.size],
86
+ ...s,
87
+ r[n.size],
88
88
  a[n.variant]
89
89
  ].join(" ");
90
90
  }), o = k(() => {
91
- const r = { sm: "w-1.5 h-1.5", md: "w-2 h-2", lg: "w-2.5 h-2.5" }, s = {
91
+ const s = { sm: "w-1.5 h-1.5", md: "w-2 h-2", lg: "w-2.5 h-2.5" }, r = {
92
92
  brand: "bg-brand",
93
93
  neutral: "bg-neutral",
94
94
  error: "bg-error",
@@ -97,22 +97,22 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
97
97
  info: "bg-info",
98
98
  processing: "bg-processing"
99
99
  };
100
- return ["inline-block", "rounded-full", r[n.size], s[n.variant]].join(" ");
100
+ return ["inline-block", "rounded-full", s[n.size], r[n.variant]].join(" ");
101
101
  });
102
- return (r, s) => (g(), v("span", {
103
- class: B(t.value)
102
+ return (s, r) => (g(), p("span", {
103
+ class: T(t.value)
104
104
  }, [
105
- e.dot ? (g(), v("span", {
105
+ e.dot ? (g(), p("span", {
106
106
  key: 0,
107
- class: B(o.value),
107
+ class: T(o.value),
108
108
  "aria-hidden": "true"
109
109
  }, null, 2)) : D("", !0),
110
- e.dot ? D("", !0) : N(r.$slots, "default", { key: 1 }, () => [
111
- X(T(e.label), 1)
110
+ e.dot ? D("", !0) : N(s.$slots, "default", { key: 1 }, () => [
111
+ X(B(e.label), 1)
112
112
  ])
113
113
  ], 2));
114
114
  }
115
- }), Tt = ["type", "disabled", "aria-label", "aria-busy"], Rt = { key: 1 }, Ot = /* @__PURE__ */ S({
115
+ }), Rt = ["type", "disabled", "aria-label", "aria-busy"], Ot = { key: 1 }, Vt = /* @__PURE__ */ S({
116
116
  __name: "DsButton",
117
117
  props: {
118
118
  label: {},
@@ -129,7 +129,7 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
129
129
  emits: ["click"],
130
130
  setup(e) {
131
131
  const n = e, t = k(() => {
132
- const r = [
132
+ const s = [
133
133
  "inline-flex",
134
134
  "items-center",
135
135
  "justify-center",
@@ -144,7 +144,7 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
144
144
  "disabled:cursor-not-allowed",
145
145
  "disabled:opacity-95",
146
146
  "border-solid"
147
- ], s = {
147
+ ], r = {
148
148
  small: ["px-3", "py-1.5", "text-xs"],
149
149
  medium: ["px-4", "py-2", "text-sm"],
150
150
  large: ["px-6", "py-3", "text-base"]
@@ -199,8 +199,8 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
199
199
  ]
200
200
  }, d = n.fullWidth ? ["w-full"] : [];
201
201
  return [
202
- ...r,
203
- ...s[n.size],
202
+ ...s,
203
+ ...r[n.size],
204
204
  ...a[n.variant],
205
205
  ...d
206
206
  ].join(" ");
@@ -209,30 +209,30 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
209
209
  medium: "w-4 h-4",
210
210
  large: "w-5 h-5"
211
211
  })[n.size]);
212
- return (r, s) => (g(), v("button", {
212
+ return (s, r) => (g(), p("button", {
213
213
  type: e.htmlType,
214
214
  disabled: e.disabled || e.loading,
215
215
  "aria-label": e.ariaLabel,
216
216
  "aria-busy": e.loading ? "true" : void 0,
217
- class: B(t.value),
218
- onClick: s[0] || (s[0] = (a) => r.$emit("click", a))
217
+ class: T(t.value),
218
+ onClick: r[0] || (r[0] = (a) => s.$emit("click", a))
219
219
  }, [
220
220
  e.iconLeft ? (g(), I($e(e.iconLeft), {
221
221
  key: 0,
222
- class: B(o.value),
223
- style: he(e.label || r.$slots.default ? "margin-right: 0.375rem" : ""),
222
+ class: T(o.value),
223
+ style: he(e.label || s.$slots.default ? "margin-right: 0.375rem" : ""),
224
224
  "aria-hidden": "true"
225
225
  }, null, 8, ["class", "style"])) : D("", !0),
226
- e.label ? (g(), v("span", Rt, T(e.label), 1)) : N(r.$slots, "default", { key: 2 }),
226
+ e.label ? (g(), p("span", Ot, B(e.label), 1)) : N(s.$slots, "default", { key: 2 }),
227
227
  e.iconRight ? (g(), I($e(e.iconRight), {
228
228
  key: 3,
229
- class: B(o.value),
230
- style: he(e.label || r.$slots.default ? "margin-left: 0.375rem" : ""),
229
+ class: T(o.value),
230
+ style: he(e.label || s.$slots.default ? "margin-left: 0.375rem" : ""),
231
231
  "aria-hidden": "true"
232
232
  }, null, 8, ["class", "style"])) : D("", !0)
233
- ], 10, Tt));
233
+ ], 10, Rt));
234
234
  }
235
- }), Vt = ["id", "checked", "disabled", "value"], Lt = {
235
+ }), Lt = ["id", "checked", "disabled", "value"], St = {
236
236
  key: 0,
237
237
  viewBox: "0 0 12 12",
238
238
  fill: "none",
@@ -241,7 +241,7 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
241
241
  "stroke-linecap": "round",
242
242
  "stroke-linejoin": "round",
243
243
  class: "w-full h-full"
244
- }, er = /* @__PURE__ */ S({
244
+ }, os = /* @__PURE__ */ S({
245
245
  __name: "DsCheckbox",
246
246
  props: {
247
247
  modelValue: { type: Boolean, default: !1 },
@@ -253,12 +253,12 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
253
253
  },
254
254
  emits: ["update:modelValue", "change"],
255
255
  setup(e, { emit: n }) {
256
- const t = e, o = n, r = {
256
+ const t = e, o = n, s = {
257
257
  small: { box: "w-3.5 h-3.5", label: "text-xs", radius: "rounded" },
258
258
  medium: { box: "w-4 h-4", label: "text-sm", radius: "rounded" },
259
259
  large: { box: "w-5 h-5", label: "text-base", radius: "rounded-md" }
260
- }, s = k(() => {
261
- const i = r[t.size], b = [
260
+ }, r = k(() => {
261
+ const i = s[t.size], b = [
262
262
  i.box,
263
263
  i.radius,
264
264
  "inline-flex items-center justify-center",
@@ -276,15 +276,15 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
276
276
  ), b.join(" ");
277
277
  }), a = k(() => [
278
278
  "font-sans select-none",
279
- r[t.size].label,
279
+ s[t.size].label,
280
280
  t.disabled ? "text-fg-disabled" : "text-fg"
281
281
  ].join(" ")), d = (i) => {
282
282
  if (t.disabled) return;
283
283
  const c = i.target.checked;
284
284
  o("update:modelValue", c), o("change", c, i);
285
285
  };
286
- return (i, b) => (g(), v("label", {
287
- class: B([
286
+ return (i, b) => (g(), p("label", {
287
+ class: T([
288
288
  "inline-flex items-center gap-2",
289
289
  e.disabled ? "cursor-not-allowed" : "cursor-pointer",
290
290
  "group"
@@ -298,21 +298,21 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
298
298
  value: e.value,
299
299
  class: "sr-only peer",
300
300
  onChange: d
301
- }, null, 40, Vt),
301
+ }, null, 40, Lt),
302
302
  F("span", {
303
- class: B(s.value),
303
+ class: T(r.value),
304
304
  "aria-hidden": "true"
305
305
  }, [
306
- e.modelValue ? (g(), v("svg", Lt, [...b[0] || (b[0] = [
306
+ e.modelValue ? (g(), p("svg", St, [...b[0] || (b[0] = [
307
307
  F("polyline", { points: "2.5 6 5 8.5 9.5 3.5" }, null, -1)
308
308
  ])])) : D("", !0)
309
309
  ], 2),
310
- e.label || i.$slots.default ? (g(), v("span", {
310
+ e.label || i.$slots.default ? (g(), p("span", {
311
311
  key: 0,
312
- class: B(a.value)
312
+ class: T(a.value)
313
313
  }, [
314
314
  N(i.$slots, "default", {}, () => [
315
- X(T(e.label), 1)
315
+ X(B(e.label), 1)
316
316
  ])
317
317
  ], 2)) : D("", !0)
318
318
  ], 2));
@@ -320,19 +320,19 @@ const At = ["aria-label"], Bt = ["src", "alt"], Zo = /* @__PURE__ */ S({
320
320
  }), ae = Math.min, q = Math.max, De = Math.round, Ce = Math.floor, Z = (e) => ({
321
321
  x: e,
322
322
  y: e
323
- }), St = {
323
+ }), zt = {
324
324
  left: "right",
325
325
  right: "left",
326
326
  bottom: "top",
327
327
  top: "bottom"
328
- }, zt = {
328
+ }, Mt = {
329
329
  start: "end",
330
330
  end: "start"
331
331
  };
332
332
  function Pe(e, n, t) {
333
333
  return q(e, ae(n, t));
334
334
  }
335
- function pe(e, n) {
335
+ function ve(e, n) {
336
336
  return typeof e == "function" ? e(n) : e;
337
337
  }
338
338
  function le(e) {
@@ -347,48 +347,48 @@ function lt(e) {
347
347
  function He(e) {
348
348
  return e === "y" ? "height" : "width";
349
349
  }
350
- const Mt = /* @__PURE__ */ new Set(["top", "bottom"]);
351
- function te(e) {
352
- return Mt.has(le(e)) ? "y" : "x";
350
+ const jt = /* @__PURE__ */ new Set(["top", "bottom"]);
351
+ function ne(e) {
352
+ return jt.has(le(e)) ? "y" : "x";
353
353
  }
354
354
  function qe(e) {
355
- return lt(te(e));
355
+ return lt(ne(e));
356
356
  }
357
- function jt(e, n, t) {
357
+ function Pt(e, n, t) {
358
358
  t === void 0 && (t = !1);
359
- const o = ye(e), r = qe(e), s = He(r);
360
- let a = r === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
361
- return n.reference[s] > n.floating[s] && (a = Ee(a)), [a, Ee(a)];
359
+ const o = ye(e), s = qe(e), r = He(s);
360
+ let a = s === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
361
+ return n.reference[r] > n.floating[r] && (a = Ee(a)), [a, Ee(a)];
362
362
  }
363
- function Pt(e) {
363
+ function It(e) {
364
364
  const n = Ee(e);
365
365
  return [Ie(e), n, Ie(n)];
366
366
  }
367
367
  function Ie(e) {
368
- return e.replace(/start|end/g, (n) => zt[n]);
368
+ return e.replace(/start|end/g, (n) => Mt[n]);
369
369
  }
370
- const Je = ["left", "right"], Qe = ["right", "left"], It = ["top", "bottom"], Nt = ["bottom", "top"];
371
- function Wt(e, n, t) {
370
+ const Je = ["left", "right"], Qe = ["right", "left"], Nt = ["top", "bottom"], Wt = ["bottom", "top"];
371
+ function Ht(e, n, t) {
372
372
  switch (e) {
373
373
  case "top":
374
374
  case "bottom":
375
375
  return t ? n ? Qe : Je : n ? Je : Qe;
376
376
  case "left":
377
377
  case "right":
378
- return n ? It : Nt;
378
+ return n ? Nt : Wt;
379
379
  default:
380
380
  return [];
381
381
  }
382
382
  }
383
- function Ht(e, n, t, o) {
384
- const r = ye(e);
385
- let s = Wt(le(e), t === "start", o);
386
- return r && (s = s.map((a) => a + "-" + r), n && (s = s.concat(s.map(Ie)))), s;
383
+ function qt(e, n, t, o) {
384
+ const s = ye(e);
385
+ let r = Ht(le(e), t === "start", o);
386
+ return s && (r = r.map((a) => a + "-" + s), n && (r = r.concat(r.map(Ie)))), r;
387
387
  }
388
388
  function Ee(e) {
389
- return e.replace(/left|right|bottom|top/g, (n) => St[n]);
389
+ return e.replace(/left|right|bottom|top/g, (n) => zt[n]);
390
390
  }
391
- function qt(e) {
391
+ function Kt(e) {
392
392
  return {
393
393
  top: 0,
394
394
  right: 0,
@@ -398,7 +398,7 @@ function qt(e) {
398
398
  };
399
399
  }
400
400
  function it(e) {
401
- return typeof e != "number" ? qt(e) : {
401
+ return typeof e != "number" ? Kt(e) : {
402
402
  top: e,
403
403
  right: e,
404
404
  bottom: e,
@@ -410,15 +410,15 @@ function Ae(e) {
410
410
  x: n,
411
411
  y: t,
412
412
  width: o,
413
- height: r
413
+ height: s
414
414
  } = e;
415
415
  return {
416
416
  width: o,
417
- height: r,
417
+ height: s,
418
418
  top: t,
419
419
  left: n,
420
420
  right: n + o,
421
- bottom: t + r,
421
+ bottom: t + s,
422
422
  x: n,
423
423
  y: t
424
424
  };
@@ -426,15 +426,15 @@ function Ae(e) {
426
426
  function Ze(e, n, t) {
427
427
  let {
428
428
  reference: o,
429
- floating: r
429
+ floating: s
430
430
  } = e;
431
- const s = te(n), a = qe(n), d = He(a), i = le(n), b = s === "y", c = o.x + o.width / 2 - r.width / 2, l = o.y + o.height / 2 - r.height / 2, f = o[d] / 2 - r[d] / 2;
431
+ const r = ne(n), a = qe(n), d = He(a), i = le(n), b = r === "y", c = o.x + o.width / 2 - s.width / 2, l = o.y + o.height / 2 - s.height / 2, f = o[d] / 2 - s[d] / 2;
432
432
  let u;
433
433
  switch (i) {
434
434
  case "top":
435
435
  u = {
436
436
  x: c,
437
- y: o.y - r.height
437
+ y: o.y - s.height
438
438
  };
439
439
  break;
440
440
  case "bottom":
@@ -451,7 +451,7 @@ function Ze(e, n, t) {
451
451
  break;
452
452
  case "left":
453
453
  u = {
454
- x: o.x - r.width,
454
+ x: o.x - s.width,
455
455
  y: l
456
456
  };
457
457
  break;
@@ -471,13 +471,13 @@ function Ze(e, n, t) {
471
471
  }
472
472
  return u;
473
473
  }
474
- async function Kt(e, n) {
474
+ async function Ut(e, n) {
475
475
  var t;
476
476
  n === void 0 && (n = {});
477
477
  const {
478
478
  x: o,
479
- y: r,
480
- platform: s,
479
+ y: s,
480
+ platform: r,
481
481
  rects: a,
482
482
  elements: d,
483
483
  strategy: i
@@ -487,23 +487,23 @@ async function Kt(e, n) {
487
487
  elementContext: l = "floating",
488
488
  altBoundary: f = !1,
489
489
  padding: u = 0
490
- } = pe(n, e), m = it(u), y = d[f ? l === "floating" ? "reference" : "floating" : l], w = Ae(await s.getClippingRect({
491
- element: (t = await (s.isElement == null ? void 0 : s.isElement(y))) == null || t ? y : y.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(d.floating)),
490
+ } = ve(n, e), m = it(u), y = d[f ? l === "floating" ? "reference" : "floating" : l], w = Ae(await r.getClippingRect({
491
+ element: (t = await (r.isElement == null ? void 0 : r.isElement(y))) == null || t ? y : y.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(d.floating)),
492
492
  boundary: b,
493
493
  rootBoundary: c,
494
494
  strategy: i
495
495
  })), C = l === "floating" ? {
496
496
  x: o,
497
- y: r,
497
+ y: s,
498
498
  width: a.floating.width,
499
499
  height: a.floating.height
500
- } : a.reference, x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d.floating)), $ = await (s.isElement == null ? void 0 : s.isElement(x)) ? await (s.getScale == null ? void 0 : s.getScale(x)) || {
500
+ } : a.reference, x = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d.floating)), $ = await (r.isElement == null ? void 0 : r.isElement(x)) ? await (r.getScale == null ? void 0 : r.getScale(x)) || {
501
501
  x: 1,
502
502
  y: 1
503
503
  } : {
504
504
  x: 1,
505
505
  y: 1
506
- }, A = Ae(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
506
+ }, A = Ae(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
507
507
  elements: d,
508
508
  rect: C,
509
509
  offsetParent: x,
@@ -516,17 +516,17 @@ async function Kt(e, n) {
516
516
  right: (A.right - w.right + m.right) / $.x
517
517
  };
518
518
  }
519
- const Ut = async (e, n, t) => {
519
+ const Xt = async (e, n, t) => {
520
520
  const {
521
521
  placement: o = "bottom",
522
- strategy: r = "absolute",
523
- middleware: s = [],
522
+ strategy: s = "absolute",
523
+ middleware: r = [],
524
524
  platform: a
525
- } = t, d = s.filter(Boolean), i = await (a.isRTL == null ? void 0 : a.isRTL(n));
525
+ } = t, d = r.filter(Boolean), i = await (a.isRTL == null ? void 0 : a.isRTL(n));
526
526
  let b = await a.getElementRects({
527
527
  reference: e,
528
528
  floating: n,
529
- strategy: r
529
+ strategy: s
530
530
  }), {
531
531
  x: c,
532
532
  y: l
@@ -546,12 +546,12 @@ const Ut = async (e, n, t) => {
546
546
  y: l,
547
547
  initialPlacement: o,
548
548
  placement: f,
549
- strategy: r,
549
+ strategy: s,
550
550
  middlewareData: u,
551
551
  rects: b,
552
552
  platform: {
553
553
  ...a,
554
- detectOverflow: (h = a.detectOverflow) != null ? h : Kt
554
+ detectOverflow: (h = a.detectOverflow) != null ? h : Ut
555
555
  },
556
556
  elements: {
557
557
  reference: e,
@@ -567,7 +567,7 @@ const Ut = async (e, n, t) => {
567
567
  }, V && m <= 50 && (m++, typeof V == "object" && (V.placement && (f = V.placement), V.rects && (b = V.rects === !0 ? await a.getElementRects({
568
568
  reference: e,
569
569
  floating: n,
570
- strategy: r
570
+ strategy: s
571
571
  }) : V.rects), {
572
572
  x: c,
573
573
  y: l
@@ -577,34 +577,34 @@ const Ut = async (e, n, t) => {
577
577
  x: c,
578
578
  y: l,
579
579
  placement: f,
580
- strategy: r,
580
+ strategy: s,
581
581
  middlewareData: u
582
582
  };
583
- }, Xt = (e) => ({
583
+ }, Yt = (e) => ({
584
584
  name: "arrow",
585
585
  options: e,
586
586
  async fn(n) {
587
587
  const {
588
588
  x: t,
589
589
  y: o,
590
- placement: r,
591
- rects: s,
590
+ placement: s,
591
+ rects: r,
592
592
  platform: a,
593
593
  elements: d,
594
594
  middlewareData: i
595
595
  } = n, {
596
596
  element: b,
597
597
  padding: c = 0
598
- } = pe(e, n) || {};
598
+ } = ve(e, n) || {};
599
599
  if (b == null)
600
600
  return {};
601
601
  const l = it(c), f = {
602
602
  x: t,
603
603
  y: o
604
- }, u = qe(r), m = He(u), h = await a.getDimensions(b), y = u === "y", w = y ? "top" : "left", C = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", $ = s.reference[m] + s.reference[u] - f[u] - s.floating[m], A = f[u] - s.reference[u], V = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(b));
604
+ }, u = qe(s), m = He(u), h = await a.getDimensions(b), y = u === "y", w = y ? "top" : "left", C = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", $ = r.reference[m] + r.reference[u] - f[u] - r.floating[m], A = f[u] - r.reference[u], V = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(b));
605
605
  let E = V ? V[x] : 0;
606
- (!E || !await (a.isElement == null ? void 0 : a.isElement(V))) && (E = d.floating[x] || s.floating[m]);
607
- const z = $ / 2 - A / 2, M = E / 2 - h[m] / 2 - 1, W = ae(l[w], M), Y = ae(l[C], M), U = W, p = E - h[m] - Y, O = E / 2 - h[m] / 2 + z, L = Pe(U, O, p), P = !i.arrow && ye(r) != null && O !== L && s.reference[m] / 2 - (O < U ? W : Y) - h[m] / 2 < 0, H = P ? O < U ? O - U : O - p : 0;
606
+ (!E || !await (a.isElement == null ? void 0 : a.isElement(V))) && (E = d.floating[x] || r.floating[m]);
607
+ const z = $ / 2 - A / 2, M = E / 2 - h[m] / 2 - 1, W = ae(l[w], M), Y = ae(l[C], M), U = W, v = E - h[m] - Y, O = E / 2 - h[m] / 2 + z, L = Pe(U, O, v), P = !i.arrow && ye(s) != null && O !== L && r.reference[m] / 2 - (O < U ? W : Y) - h[m] / 2 < 0, H = P ? O < U ? O - U : O - v : 0;
608
608
  return {
609
609
  [u]: f[u] + H,
610
610
  data: {
@@ -617,15 +617,15 @@ const Ut = async (e, n, t) => {
617
617
  reset: P
618
618
  };
619
619
  }
620
- }), Yt = function(e) {
620
+ }), Gt = function(e) {
621
621
  return e === void 0 && (e = {}), {
622
622
  name: "flip",
623
623
  options: e,
624
624
  async fn(n) {
625
625
  var t, o;
626
626
  const {
627
- placement: r,
628
- middlewareData: s,
627
+ placement: s,
628
+ middlewareData: r,
629
629
  rects: a,
630
630
  initialPlacement: d,
631
631
  platform: i,
@@ -638,26 +638,26 @@ const Ut = async (e, n, t) => {
638
638
  fallbackAxisSideDirection: m = "none",
639
639
  flipAlignment: h = !0,
640
640
  ...y
641
- } = pe(e, n);
642
- if ((t = s.arrow) != null && t.alignmentOffset)
641
+ } = ve(e, n);
642
+ if ((t = r.arrow) != null && t.alignmentOffset)
643
643
  return {};
644
- const w = le(r), C = te(d), x = le(d) === d, $ = await (i.isRTL == null ? void 0 : i.isRTL(b.floating)), A = f || (x || !h ? [Ee(d)] : Pt(d)), V = m !== "none";
645
- !f && V && A.push(...Ht(d, h, m, $));
644
+ const w = le(s), C = ne(d), x = le(d) === d, $ = await (i.isRTL == null ? void 0 : i.isRTL(b.floating)), A = f || (x || !h ? [Ee(d)] : It(d)), V = m !== "none";
645
+ !f && V && A.push(...qt(d, h, m, $));
646
646
  const E = [d, ...A], z = await i.detectOverflow(n, y), M = [];
647
- let W = ((o = s.flip) == null ? void 0 : o.overflows) || [];
647
+ let W = ((o = r.flip) == null ? void 0 : o.overflows) || [];
648
648
  if (c && M.push(z[w]), l) {
649
- const O = jt(r, a, $);
649
+ const O = Pt(s, a, $);
650
650
  M.push(z[O[0]], z[O[1]]);
651
651
  }
652
652
  if (W = [...W, {
653
- placement: r,
653
+ placement: s,
654
654
  overflows: M
655
655
  }], !M.every((O) => O <= 0)) {
656
656
  var Y, U;
657
- const O = (((Y = s.flip) == null ? void 0 : Y.index) || 0) + 1, L = E[O];
658
- if (L && (!(l === "alignment" ? C !== te(L) : !1) || // We leave the current main axis only if every placement on that axis
657
+ const O = (((Y = r.flip) == null ? void 0 : Y.index) || 0) + 1, L = E[O];
658
+ if (L && (!(l === "alignment" ? C !== ne(L) : !1) || // We leave the current main axis only if every placement on that axis
659
659
  // overflows the main axis.
660
- W.every((G) => te(G.placement) === C ? G.overflows[0] > 0 : !0)))
660
+ W.every((G) => ne(G.placement) === C ? G.overflows[0] > 0 : !0)))
661
661
  return {
662
662
  data: {
663
663
  index: O,
@@ -671,16 +671,16 @@ const Ut = async (e, n, t) => {
671
671
  if (!P)
672
672
  switch (u) {
673
673
  case "bestFit": {
674
- var p;
675
- const H = (p = W.filter((G) => {
674
+ var v;
675
+ const H = (v = W.filter((G) => {
676
676
  if (V) {
677
- const oe = te(G.placement);
677
+ const oe = ne(G.placement);
678
678
  return oe === C || // Create a bias to the `y` side axis due to horizontal
679
679
  // reading directions favoring greater width.
680
680
  oe === "y";
681
681
  }
682
682
  return !0;
683
- }).map((G) => [G.placement, G.overflows.filter((oe) => oe > 0).reduce((oe, wt) => oe + wt, 0)]).sort((G, oe) => G[1] - oe[1])[0]) == null ? void 0 : p[0];
683
+ }).map((G) => [G.placement, G.overflows.filter((oe) => oe > 0).reduce((oe, kt) => oe + kt, 0)]).sort((G, oe) => G[1] - oe[1])[0]) == null ? void 0 : v[0];
684
684
  H && (P = H);
685
685
  break;
686
686
  }
@@ -688,7 +688,7 @@ const Ut = async (e, n, t) => {
688
688
  P = d;
689
689
  break;
690
690
  }
691
- if (r !== P)
691
+ if (s !== P)
692
692
  return {
693
693
  reset: {
694
694
  placement: P
@@ -698,13 +698,13 @@ const Ut = async (e, n, t) => {
698
698
  return {};
699
699
  }
700
700
  };
701
- }, Gt = /* @__PURE__ */ new Set(["left", "top"]);
702
- async function Jt(e, n) {
701
+ }, Jt = /* @__PURE__ */ new Set(["left", "top"]);
702
+ async function Qt(e, n) {
703
703
  const {
704
704
  placement: t,
705
705
  platform: o,
706
- elements: r
707
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = le(t), d = ye(t), i = te(t) === "y", b = Gt.has(a) ? -1 : 1, c = s && i ? -1 : 1, l = pe(n, e);
706
+ elements: s
707
+ } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), a = le(t), d = ye(t), i = ne(t) === "y", b = Jt.has(a) ? -1 : 1, c = r && i ? -1 : 1, l = ve(n, e);
708
708
  let {
709
709
  mainAxis: f,
710
710
  crossAxis: u,
@@ -726,21 +726,21 @@ async function Jt(e, n) {
726
726
  y: u * c
727
727
  };
728
728
  }
729
- const Qt = function(e) {
729
+ const Zt = function(e) {
730
730
  return e === void 0 && (e = 0), {
731
731
  name: "offset",
732
732
  options: e,
733
733
  async fn(n) {
734
734
  var t, o;
735
735
  const {
736
- x: r,
737
- y: s,
736
+ x: s,
737
+ y: r,
738
738
  placement: a,
739
739
  middlewareData: d
740
- } = n, i = await Jt(n, e);
740
+ } = n, i = await Qt(n, e);
741
741
  return a === ((t = d.offset) == null ? void 0 : t.placement) && (o = d.arrow) != null && o.alignmentOffset ? {} : {
742
- x: r + i.x,
743
- y: s + i.y,
742
+ x: s + i.x,
743
+ y: r + i.y,
744
744
  data: {
745
745
  ...i,
746
746
  placement: a
@@ -748,7 +748,7 @@ const Qt = function(e) {
748
748
  };
749
749
  }
750
750
  };
751
- }, Zt = function(e) {
751
+ }, _t = function(e) {
752
752
  return e === void 0 && (e = {}), {
753
753
  name: "shift",
754
754
  options: e,
@@ -756,8 +756,8 @@ const Qt = function(e) {
756
756
  const {
757
757
  x: t,
758
758
  y: o,
759
- placement: r,
760
- platform: s
759
+ placement: s,
760
+ platform: r
761
761
  } = n, {
762
762
  mainAxis: a = !0,
763
763
  crossAxis: d = !1,
@@ -774,10 +774,10 @@ const Qt = function(e) {
774
774
  }
775
775
  },
776
776
  ...b
777
- } = pe(e, n), c = {
777
+ } = ve(e, n), c = {
778
778
  x: t,
779
779
  y: o
780
- }, l = await s.detectOverflow(n, b), f = te(le(r)), u = lt(f);
780
+ }, l = await r.detectOverflow(n, b), f = ne(le(s)), u = lt(f);
781
781
  let m = c[u], h = c[f];
782
782
  if (a) {
783
783
  const w = u === "y" ? "top" : "left", C = u === "y" ? "bottom" : "right", x = m + l[w], $ = m - l[C];
@@ -805,32 +805,32 @@ const Qt = function(e) {
805
805
  };
806
806
  }
807
807
  };
808
- }, _t = function(e) {
808
+ }, en = function(e) {
809
809
  return e === void 0 && (e = {}), {
810
810
  name: "size",
811
811
  options: e,
812
812
  async fn(n) {
813
813
  var t, o;
814
814
  const {
815
- placement: r,
816
- rects: s,
815
+ placement: s,
816
+ rects: r,
817
817
  platform: a,
818
818
  elements: d
819
819
  } = n, {
820
820
  apply: i = () => {
821
821
  },
822
822
  ...b
823
- } = pe(e, n), c = await a.detectOverflow(n, b), l = le(r), f = ye(r), u = te(r) === "y", {
823
+ } = ve(e, n), c = await a.detectOverflow(n, b), l = le(s), f = ye(s), u = ne(s) === "y", {
824
824
  width: m,
825
825
  height: h
826
- } = s.floating;
826
+ } = r.floating;
827
827
  let y, w;
828
828
  l === "top" || l === "bottom" ? (y = l, w = f === (await (a.isRTL == null ? void 0 : a.isRTL(d.floating)) ? "start" : "end") ? "left" : "right") : (w = l, y = f === "end" ? "top" : "bottom");
829
829
  const C = h - c.top - c.bottom, x = m - c.left - c.right, $ = ae(h - c[y], C), A = ae(m - c[w], x), V = !n.middlewareData.shift;
830
830
  let E = $, z = A;
831
831
  if ((t = n.middlewareData.shift) != null && t.enabled.x && (z = x), (o = n.middlewareData.shift) != null && o.enabled.y && (E = C), V && !f) {
832
- const W = q(c.left, 0), Y = q(c.right, 0), U = q(c.top, 0), p = q(c.bottom, 0);
833
- u ? z = m - 2 * (W !== 0 || Y !== 0 ? W + Y : q(c.left, c.right)) : E = h - 2 * (U !== 0 || p !== 0 ? U + p : q(c.top, c.bottom));
832
+ const W = q(c.left, 0), Y = q(c.right, 0), U = q(c.top, 0), v = q(c.bottom, 0);
833
+ u ? z = m - 2 * (W !== 0 || Y !== 0 ? W + Y : q(c.left, c.right)) : E = h - 2 * (U !== 0 || v !== 0 ? U + v : q(c.top, c.bottom));
834
834
  }
835
835
  await i({
836
836
  ...n,
@@ -856,7 +856,7 @@ function K(e) {
856
856
  var n;
857
857
  return (e == null || (n = e.ownerDocument) == null ? void 0 : n.defaultView) || window;
858
858
  }
859
- function ee(e) {
859
+ function te(e) {
860
860
  var n;
861
861
  return (n = (Ke(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
862
862
  }
@@ -866,29 +866,29 @@ function Ke(e) {
866
866
  function J(e) {
867
867
  return Ve() ? e instanceof Element || e instanceof K(e).Element : !1;
868
868
  }
869
- function _(e) {
869
+ function ee(e) {
870
870
  return Ve() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
871
871
  }
872
872
  function _e(e) {
873
873
  return !Ve() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
874
874
  }
875
- const en = /* @__PURE__ */ new Set(["inline", "contents"]);
875
+ const tn = /* @__PURE__ */ new Set(["inline", "contents"]);
876
876
  function Fe(e) {
877
877
  const {
878
878
  overflow: n,
879
879
  overflowX: t,
880
880
  overflowY: o,
881
- display: r
881
+ display: s
882
882
  } = Q(e);
883
- return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !en.has(r);
883
+ return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !tn.has(s);
884
884
  }
885
- const tn = /* @__PURE__ */ new Set(["table", "td", "th"]);
886
- function nn(e) {
887
- return tn.has(ue(e));
885
+ const nn = /* @__PURE__ */ new Set(["table", "td", "th"]);
886
+ function on(e) {
887
+ return nn.has(ue(e));
888
888
  }
889
- const on = [":popover-open", ":modal"];
889
+ const sn = [":popover-open", ":modal"];
890
890
  function Le(e) {
891
- return on.some((n) => {
891
+ return sn.some((n) => {
892
892
  try {
893
893
  return e.matches(n);
894
894
  } catch {
@@ -896,14 +896,14 @@ function Le(e) {
896
896
  }
897
897
  });
898
898
  }
899
- const rn = ["transform", "translate", "scale", "rotate", "perspective"], sn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], an = ["paint", "layout", "strict", "content"];
899
+ const rn = ["transform", "translate", "scale", "rotate", "perspective"], an = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ln = ["paint", "layout", "strict", "content"];
900
900
  function Ue(e) {
901
901
  const n = Xe(), t = J(e) ? Q(e) : e;
902
- return rn.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || sn.some((o) => (t.willChange || "").includes(o)) || an.some((o) => (t.contain || "").includes(o));
902
+ return rn.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || an.some((o) => (t.willChange || "").includes(o)) || ln.some((o) => (t.contain || "").includes(o));
903
903
  }
904
- function ln(e) {
904
+ function cn(e) {
905
905
  let n = ie(e);
906
- for (; _(n) && !ve(n); ) {
906
+ for (; ee(n) && !pe(n); ) {
907
907
  if (Ue(n))
908
908
  return n;
909
909
  if (Le(n))
@@ -915,9 +915,9 @@ function ln(e) {
915
915
  function Xe() {
916
916
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
917
917
  }
918
- const cn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
919
- function ve(e) {
920
- return cn.has(ue(e));
918
+ const dn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
919
+ function pe(e) {
920
+ return dn.has(ue(e));
921
921
  }
922
922
  function Q(e) {
923
923
  return K(e).getComputedStyle(e);
@@ -939,23 +939,23 @@ function ie(e) {
939
939
  e.assignedSlot || // DOM Element detected.
940
940
  e.parentNode || // ShadowRoot detected.
941
941
  _e(e) && e.host || // Fallback.
942
- ee(e)
942
+ te(e)
943
943
  );
944
944
  return _e(n) ? n.host : n;
945
945
  }
946
946
  function ct(e) {
947
947
  const n = ie(e);
948
- return ve(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : _(n) && Fe(n) ? n : ct(n);
948
+ return pe(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : ee(n) && Fe(n) ? n : ct(n);
949
949
  }
950
950
  function ke(e, n, t) {
951
951
  var o;
952
952
  n === void 0 && (n = []), t === void 0 && (t = !0);
953
- const r = ct(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = K(r);
954
- if (s) {
953
+ const s = ct(e), r = s === ((o = e.ownerDocument) == null ? void 0 : o.body), a = K(s);
954
+ if (r) {
955
955
  const d = Ne(a);
956
- return n.concat(a, a.visualViewport || [], Fe(r) ? r : [], d && t ? ke(d) : []);
956
+ return n.concat(a, a.visualViewport || [], Fe(s) ? s : [], d && t ? ke(d) : []);
957
957
  }
958
- return n.concat(r, ke(r, [], t));
958
+ return n.concat(s, ke(s, [], t));
959
959
  }
960
960
  function Ne(e) {
961
961
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -963,8 +963,8 @@ function Ne(e) {
963
963
  function dt(e) {
964
964
  const n = Q(e);
965
965
  let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
966
- const r = _(e), s = r ? e.offsetWidth : t, a = r ? e.offsetHeight : o, d = De(t) !== s || De(o) !== a;
967
- return d && (t = s, o = a), {
966
+ const s = ee(e), r = s ? e.offsetWidth : t, a = s ? e.offsetHeight : o, d = De(t) !== r || De(o) !== a;
967
+ return d && (t = r, o = a), {
968
968
  width: t,
969
969
  height: o,
970
970
  $: d
@@ -975,39 +975,39 @@ function Ye(e) {
975
975
  }
976
976
  function ge(e) {
977
977
  const n = Ye(e);
978
- if (!_(n))
978
+ if (!ee(n))
979
979
  return Z(1);
980
980
  const t = n.getBoundingClientRect(), {
981
981
  width: o,
982
- height: r,
983
- $: s
982
+ height: s,
983
+ $: r
984
984
  } = dt(n);
985
- let a = (s ? De(t.width) : t.width) / o, d = (s ? De(t.height) : t.height) / r;
985
+ let a = (r ? De(t.width) : t.width) / o, d = (r ? De(t.height) : t.height) / s;
986
986
  return (!a || !Number.isFinite(a)) && (a = 1), (!d || !Number.isFinite(d)) && (d = 1), {
987
987
  x: a,
988
988
  y: d
989
989
  };
990
990
  }
991
- const dn = /* @__PURE__ */ Z(0);
991
+ const un = /* @__PURE__ */ Z(0);
992
992
  function ut(e) {
993
993
  const n = K(e);
994
- return !Xe() || !n.visualViewport ? dn : {
994
+ return !Xe() || !n.visualViewport ? un : {
995
995
  x: n.visualViewport.offsetLeft,
996
996
  y: n.visualViewport.offsetTop
997
997
  };
998
998
  }
999
- function un(e, n, t) {
999
+ function fn(e, n, t) {
1000
1000
  return n === void 0 && (n = !1), !t || n && t !== K(e) ? !1 : n;
1001
1001
  }
1002
1002
  function ce(e, n, t, o) {
1003
1003
  n === void 0 && (n = !1), t === void 0 && (t = !1);
1004
- const r = e.getBoundingClientRect(), s = Ye(e);
1004
+ const s = e.getBoundingClientRect(), r = Ye(e);
1005
1005
  let a = Z(1);
1006
1006
  n && (o ? J(o) && (a = ge(o)) : a = ge(e));
1007
- const d = un(s, t, o) ? ut(s) : Z(0);
1008
- let i = (r.left + d.x) / a.x, b = (r.top + d.y) / a.y, c = r.width / a.x, l = r.height / a.y;
1009
- if (s) {
1010
- const f = K(s), u = o && J(o) ? K(o) : o;
1007
+ const d = fn(r, t, o) ? ut(r) : Z(0);
1008
+ let i = (s.left + d.x) / a.x, b = (s.top + d.y) / a.y, c = s.width / a.x, l = s.height / a.y;
1009
+ if (r) {
1010
+ const f = K(r), u = o && J(o) ? K(o) : o;
1011
1011
  let m = f, h = Ne(m);
1012
1012
  for (; h && o && u !== m; ) {
1013
1013
  const y = ge(h), w = h.getBoundingClientRect(), C = Q(h), x = w.left + (h.clientLeft + parseFloat(C.paddingLeft)) * y.x, $ = w.top + (h.clientTop + parseFloat(C.paddingTop)) * y.y;
@@ -1023,35 +1023,35 @@ function ce(e, n, t, o) {
1023
1023
  }
1024
1024
  function ze(e, n) {
1025
1025
  const t = Se(e).scrollLeft;
1026
- return n ? n.left + t : ce(ee(e)).left + t;
1026
+ return n ? n.left + t : ce(te(e)).left + t;
1027
1027
  }
1028
1028
  function ft(e, n) {
1029
- const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - ze(e, t), r = t.top + n.scrollTop;
1029
+ const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - ze(e, t), s = t.top + n.scrollTop;
1030
1030
  return {
1031
1031
  x: o,
1032
- y: r
1032
+ y: s
1033
1033
  };
1034
1034
  }
1035
- function fn(e) {
1035
+ function bn(e) {
1036
1036
  let {
1037
1037
  elements: n,
1038
1038
  rect: t,
1039
1039
  offsetParent: o,
1040
- strategy: r
1040
+ strategy: s
1041
1041
  } = e;
1042
- const s = r === "fixed", a = ee(o), d = n ? Le(n.floating) : !1;
1043
- if (o === a || d && s)
1042
+ const r = s === "fixed", a = te(o), d = n ? Le(n.floating) : !1;
1043
+ if (o === a || d && r)
1044
1044
  return t;
1045
1045
  let i = {
1046
1046
  scrollLeft: 0,
1047
1047
  scrollTop: 0
1048
1048
  }, b = Z(1);
1049
- const c = Z(0), l = _(o);
1050
- if ((l || !l && !s) && ((ue(o) !== "body" || Fe(a)) && (i = Se(o)), _(o))) {
1049
+ const c = Z(0), l = ee(o);
1050
+ if ((l || !l && !r) && ((ue(o) !== "body" || Fe(a)) && (i = Se(o)), ee(o))) {
1051
1051
  const u = ce(o);
1052
1052
  b = ge(o), c.x = u.x + o.clientLeft, c.y = u.y + o.clientTop;
1053
1053
  }
1054
- const f = a && !l && !s ? ft(a, i) : Z(0);
1054
+ const f = a && !l && !r ? ft(a, i) : Z(0);
1055
1055
  return {
1056
1056
  width: t.width * b.x,
1057
1057
  height: t.height * b.y,
@@ -1059,44 +1059,44 @@ function fn(e) {
1059
1059
  y: t.y * b.y - i.scrollTop * b.y + c.y + f.y
1060
1060
  };
1061
1061
  }
1062
- function bn(e) {
1062
+ function mn(e) {
1063
1063
  return Array.from(e.getClientRects());
1064
1064
  }
1065
- function mn(e) {
1066
- const n = ee(e), t = Se(e), o = e.ownerDocument.body, r = q(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), s = q(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
1065
+ function gn(e) {
1066
+ const n = te(e), t = Se(e), o = e.ownerDocument.body, s = q(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), r = q(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
1067
1067
  let a = -t.scrollLeft + ze(e);
1068
1068
  const d = -t.scrollTop;
1069
- return Q(o).direction === "rtl" && (a += q(n.clientWidth, o.clientWidth) - r), {
1070
- width: r,
1071
- height: s,
1069
+ return Q(o).direction === "rtl" && (a += q(n.clientWidth, o.clientWidth) - s), {
1070
+ width: s,
1071
+ height: r,
1072
1072
  x: a,
1073
1073
  y: d
1074
1074
  };
1075
1075
  }
1076
1076
  const et = 25;
1077
- function gn(e, n) {
1078
- const t = K(e), o = ee(e), r = t.visualViewport;
1079
- let s = o.clientWidth, a = o.clientHeight, d = 0, i = 0;
1080
- if (r) {
1081
- s = r.width, a = r.height;
1077
+ function hn(e, n) {
1078
+ const t = K(e), o = te(e), s = t.visualViewport;
1079
+ let r = o.clientWidth, a = o.clientHeight, d = 0, i = 0;
1080
+ if (s) {
1081
+ r = s.width, a = s.height;
1082
1082
  const c = Xe();
1083
- (!c || c && n === "fixed") && (d = r.offsetLeft, i = r.offsetTop);
1083
+ (!c || c && n === "fixed") && (d = s.offsetLeft, i = s.offsetTop);
1084
1084
  }
1085
1085
  const b = ze(o);
1086
1086
  if (b <= 0) {
1087
1087
  const c = o.ownerDocument, l = c.body, f = getComputedStyle(l), u = c.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, m = Math.abs(o.clientWidth - l.clientWidth - u);
1088
- m <= et && (s -= m);
1089
- } else b <= et && (s += b);
1088
+ m <= et && (r -= m);
1089
+ } else b <= et && (r += b);
1090
1090
  return {
1091
- width: s,
1091
+ width: r,
1092
1092
  height: a,
1093
1093
  x: d,
1094
1094
  y: i
1095
1095
  };
1096
1096
  }
1097
- const hn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1097
+ const pn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1098
1098
  function vn(e, n) {
1099
- const t = ce(e, !0, n === "fixed"), o = t.top + e.clientTop, r = t.left + e.clientLeft, s = _(e) ? ge(e) : Z(1), a = e.clientWidth * s.x, d = e.clientHeight * s.y, i = r * s.x, b = o * s.y;
1099
+ const t = ce(e, !0, n === "fixed"), o = t.top + e.clientTop, s = t.left + e.clientLeft, r = ee(e) ? ge(e) : Z(1), a = e.clientWidth * r.x, d = e.clientHeight * r.y, i = s * r.x, b = o * r.y;
1100
1100
  return {
1101
1101
  width: a,
1102
1102
  height: d,
@@ -1107,16 +1107,16 @@ function vn(e, n) {
1107
1107
  function tt(e, n, t) {
1108
1108
  let o;
1109
1109
  if (n === "viewport")
1110
- o = gn(e, t);
1110
+ o = hn(e, t);
1111
1111
  else if (n === "document")
1112
- o = mn(ee(e));
1112
+ o = gn(te(e));
1113
1113
  else if (J(n))
1114
1114
  o = vn(n, t);
1115
1115
  else {
1116
- const r = ut(e);
1116
+ const s = ut(e);
1117
1117
  o = {
1118
- x: n.x - r.x,
1119
- y: n.y - r.y,
1118
+ x: n.x - s.x,
1119
+ y: n.y - s.y,
1120
1120
  width: n.width,
1121
1121
  height: n.height
1122
1122
  };
@@ -1125,32 +1125,32 @@ function tt(e, n, t) {
1125
1125
  }
1126
1126
  function bt(e, n) {
1127
1127
  const t = ie(e);
1128
- return t === n || !J(t) || ve(t) ? !1 : Q(t).position === "fixed" || bt(t, n);
1128
+ return t === n || !J(t) || pe(t) ? !1 : Q(t).position === "fixed" || bt(t, n);
1129
1129
  }
1130
- function pn(e, n) {
1130
+ function yn(e, n) {
1131
1131
  const t = n.get(e);
1132
1132
  if (t)
1133
1133
  return t;
1134
- let o = ke(e, [], !1).filter((d) => J(d) && ue(d) !== "body"), r = null;
1135
- const s = Q(e).position === "fixed";
1136
- let a = s ? ie(e) : e;
1137
- for (; J(a) && !ve(a); ) {
1134
+ let o = ke(e, [], !1).filter((d) => J(d) && ue(d) !== "body"), s = null;
1135
+ const r = Q(e).position === "fixed";
1136
+ let a = r ? ie(e) : e;
1137
+ for (; J(a) && !pe(a); ) {
1138
1138
  const d = Q(a), i = Ue(a);
1139
- !i && d.position === "fixed" && (r = null), (s ? !i && !r : !i && d.position === "static" && !!r && hn.has(r.position) || Fe(a) && !i && bt(e, a)) ? o = o.filter((c) => c !== a) : r = d, a = ie(a);
1139
+ !i && d.position === "fixed" && (s = null), (r ? !i && !s : !i && d.position === "static" && !!s && pn.has(s.position) || Fe(a) && !i && bt(e, a)) ? o = o.filter((c) => c !== a) : s = d, a = ie(a);
1140
1140
  }
1141
1141
  return n.set(e, o), o;
1142
1142
  }
1143
- function yn(e) {
1143
+ function xn(e) {
1144
1144
  let {
1145
1145
  element: n,
1146
1146
  boundary: t,
1147
1147
  rootBoundary: o,
1148
- strategy: r
1148
+ strategy: s
1149
1149
  } = e;
1150
- const a = [...t === "clippingAncestors" ? Le(n) ? [] : pn(n, this._c) : [].concat(t), o], d = a[0], i = a.reduce((b, c) => {
1151
- const l = tt(n, c, r);
1150
+ const a = [...t === "clippingAncestors" ? Le(n) ? [] : yn(n, this._c) : [].concat(t), o], d = a[0], i = a.reduce((b, c) => {
1151
+ const l = tt(n, c, s);
1152
1152
  return b.top = q(l.top, b.top), b.right = ae(l.right, b.right), b.bottom = ae(l.bottom, b.bottom), b.left = q(l.left, b.left), b;
1153
- }, tt(n, d, r));
1153
+ }, tt(n, d, s));
1154
1154
  return {
1155
1155
  width: i.right - i.left,
1156
1156
  height: i.bottom - i.top,
@@ -1158,7 +1158,7 @@ function yn(e) {
1158
1158
  y: i.top
1159
1159
  };
1160
1160
  }
1161
- function xn(e) {
1161
+ function wn(e) {
1162
1162
  const {
1163
1163
  width: n,
1164
1164
  height: t
@@ -1168,23 +1168,23 @@ function xn(e) {
1168
1168
  height: t
1169
1169
  };
1170
1170
  }
1171
- function wn(e, n, t) {
1172
- const o = _(n), r = ee(n), s = t === "fixed", a = ce(e, !0, s, n);
1171
+ function kn(e, n, t) {
1172
+ const o = ee(n), s = te(n), r = t === "fixed", a = ce(e, !0, r, n);
1173
1173
  let d = {
1174
1174
  scrollLeft: 0,
1175
1175
  scrollTop: 0
1176
1176
  };
1177
1177
  const i = Z(0);
1178
1178
  function b() {
1179
- i.x = ze(r);
1179
+ i.x = ze(s);
1180
1180
  }
1181
- if (o || !o && !s)
1182
- if ((ue(n) !== "body" || Fe(r)) && (d = Se(n)), o) {
1183
- const u = ce(n, !0, s, n);
1181
+ if (o || !o && !r)
1182
+ if ((ue(n) !== "body" || Fe(s)) && (d = Se(n)), o) {
1183
+ const u = ce(n, !0, r, n);
1184
1184
  i.x = u.x + n.clientLeft, i.y = u.y + n.clientTop;
1185
- } else r && b();
1186
- s && !o && r && b();
1187
- const c = r && !o && !s ? ft(r, d) : Z(0), l = a.left + d.scrollLeft - i.x - c.x, f = a.top + d.scrollTop - i.y - c.y;
1185
+ } else s && b();
1186
+ r && !o && s && b();
1187
+ const c = s && !o && !r ? ft(s, d) : Z(0), l = a.left + d.scrollLeft - i.x - c.x, f = a.top + d.scrollTop - i.y - c.y;
1188
1188
  return {
1189
1189
  x: l,
1190
1190
  y: f,
@@ -1196,35 +1196,35 @@ function Me(e) {
1196
1196
  return Q(e).position === "static";
1197
1197
  }
1198
1198
  function nt(e, n) {
1199
- if (!_(e) || Q(e).position === "fixed")
1199
+ if (!ee(e) || Q(e).position === "fixed")
1200
1200
  return null;
1201
1201
  if (n)
1202
1202
  return n(e);
1203
1203
  let t = e.offsetParent;
1204
- return ee(e) === t && (t = t.ownerDocument.body), t;
1204
+ return te(e) === t && (t = t.ownerDocument.body), t;
1205
1205
  }
1206
1206
  function mt(e, n) {
1207
1207
  const t = K(e);
1208
1208
  if (Le(e))
1209
1209
  return t;
1210
- if (!_(e)) {
1211
- let r = ie(e);
1212
- for (; r && !ve(r); ) {
1213
- if (J(r) && !Me(r))
1214
- return r;
1215
- r = ie(r);
1210
+ if (!ee(e)) {
1211
+ let s = ie(e);
1212
+ for (; s && !pe(s); ) {
1213
+ if (J(s) && !Me(s))
1214
+ return s;
1215
+ s = ie(s);
1216
1216
  }
1217
1217
  return t;
1218
1218
  }
1219
1219
  let o = nt(e, n);
1220
- for (; o && nn(o) && Me(o); )
1220
+ for (; o && on(o) && Me(o); )
1221
1221
  o = nt(o, n);
1222
- return o && ve(o) && Me(o) && !Ue(o) ? t : o || ln(e) || t;
1222
+ return o && pe(o) && Me(o) && !Ue(o) ? t : o || cn(e) || t;
1223
1223
  }
1224
- const kn = async function(e) {
1224
+ const Fn = async function(e) {
1225
1225
  const n = this.getOffsetParent || mt, t = this.getDimensions, o = await t(e.floating);
1226
1226
  return {
1227
- reference: wn(e.reference, await n(e.floating), e.strategy),
1227
+ reference: kn(e.reference, await n(e.floating), e.strategy),
1228
1228
  floating: {
1229
1229
  x: 0,
1230
1230
  y: 0,
@@ -1233,33 +1233,33 @@ const kn = async function(e) {
1233
1233
  }
1234
1234
  };
1235
1235
  };
1236
- function Fn(e) {
1236
+ function Cn(e) {
1237
1237
  return Q(e).direction === "rtl";
1238
1238
  }
1239
- const Cn = {
1240
- convertOffsetParentRelativeRectToViewportRelativeRect: fn,
1241
- getDocumentElement: ee,
1242
- getClippingRect: yn,
1239
+ const $n = {
1240
+ convertOffsetParentRelativeRectToViewportRelativeRect: bn,
1241
+ getDocumentElement: te,
1242
+ getClippingRect: xn,
1243
1243
  getOffsetParent: mt,
1244
- getElementRects: kn,
1245
- getClientRects: bn,
1246
- getDimensions: xn,
1244
+ getElementRects: Fn,
1245
+ getClientRects: mn,
1246
+ getDimensions: wn,
1247
1247
  getScale: ge,
1248
1248
  isElement: J,
1249
- isRTL: Fn
1249
+ isRTL: Cn
1250
1250
  };
1251
1251
  function gt(e, n) {
1252
1252
  return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
1253
1253
  }
1254
- function $n(e, n) {
1254
+ function Dn(e, n) {
1255
1255
  let t = null, o;
1256
- const r = ee(e);
1257
- function s() {
1256
+ const s = te(e);
1257
+ function r() {
1258
1258
  var d;
1259
1259
  clearTimeout(o), (d = t) == null || d.disconnect(), t = null;
1260
1260
  }
1261
1261
  function a(d, i) {
1262
- d === void 0 && (d = !1), i === void 0 && (i = 1), s();
1262
+ d === void 0 && (d = !1), i === void 0 && (i = 1), r();
1263
1263
  const b = e.getBoundingClientRect(), {
1264
1264
  left: c,
1265
1265
  top: l,
@@ -1268,7 +1268,7 @@ function $n(e, n) {
1268
1268
  } = b;
1269
1269
  if (d || n(), !f || !u)
1270
1270
  return;
1271
- const m = Ce(l), h = Ce(r.clientWidth - (c + f)), y = Ce(r.clientHeight - (l + u)), w = Ce(c), x = {
1271
+ const m = Ce(l), h = Ce(s.clientWidth - (c + f)), y = Ce(s.clientHeight - (l + u)), w = Ce(c), x = {
1272
1272
  rootMargin: -m + "px " + -h + "px " + -y + "px " + -w + "px",
1273
1273
  threshold: q(0, ae(1, i)) || 1
1274
1274
  };
@@ -1288,30 +1288,30 @@ function $n(e, n) {
1288
1288
  t = new IntersectionObserver(A, {
1289
1289
  ...x,
1290
1290
  // Handle <iframe>s
1291
- root: r.ownerDocument
1291
+ root: s.ownerDocument
1292
1292
  });
1293
1293
  } catch {
1294
1294
  t = new IntersectionObserver(A, x);
1295
1295
  }
1296
1296
  t.observe(e);
1297
1297
  }
1298
- return a(!0), s;
1298
+ return a(!0), r;
1299
1299
  }
1300
- function Dn(e, n, t, o) {
1300
+ function En(e, n, t, o) {
1301
1301
  o === void 0 && (o = {});
1302
1302
  const {
1303
- ancestorScroll: r = !0,
1304
- ancestorResize: s = !0,
1303
+ ancestorScroll: s = !0,
1304
+ ancestorResize: r = !0,
1305
1305
  elementResize: a = typeof ResizeObserver == "function",
1306
1306
  layoutShift: d = typeof IntersectionObserver == "function",
1307
1307
  animationFrame: i = !1
1308
- } = o, b = Ye(e), c = r || s ? [...b ? ke(b) : [], ...ke(n)] : [];
1308
+ } = o, b = Ye(e), c = s || r ? [...b ? ke(b) : [], ...ke(n)] : [];
1309
1309
  c.forEach((w) => {
1310
- r && w.addEventListener("scroll", t, {
1310
+ s && w.addEventListener("scroll", t, {
1311
1311
  passive: !0
1312
- }), s && w.addEventListener("resize", t);
1312
+ }), r && w.addEventListener("resize", t);
1313
1313
  });
1314
- const l = b && d ? $n(b, t) : null;
1314
+ const l = b && d ? Dn(b, t) : null;
1315
1315
  let f = -1, u = null;
1316
1316
  a && (u = new ResizeObserver((w) => {
1317
1317
  let [C] = w;
@@ -1329,28 +1329,28 @@ function Dn(e, n, t, o) {
1329
1329
  return t(), () => {
1330
1330
  var w;
1331
1331
  c.forEach((C) => {
1332
- r && C.removeEventListener("scroll", t), s && C.removeEventListener("resize", t);
1332
+ s && C.removeEventListener("scroll", t), r && C.removeEventListener("resize", t);
1333
1333
  }), l == null || l(), (w = u) == null || w.disconnect(), u = null, i && cancelAnimationFrame(m);
1334
1334
  };
1335
1335
  }
1336
- const ht = Qt, vt = Zt, pt = Yt, En = _t, An = Xt, Bn = (e, n, t) => {
1337
- const o = /* @__PURE__ */ new Map(), r = {
1338
- platform: Cn,
1336
+ const ht = Zt, pt = _t, vt = Gt, An = en, Bn = Yt, Tn = (e, n, t) => {
1337
+ const o = /* @__PURE__ */ new Map(), s = {
1338
+ platform: $n,
1339
1339
  ...t
1340
- }, s = {
1341
- ...r.platform,
1340
+ }, r = {
1341
+ ...s.platform,
1342
1342
  _c: o
1343
1343
  };
1344
- return Ut(e, n, {
1345
- ...r,
1346
- platform: s
1344
+ return Xt(e, n, {
1345
+ ...s,
1346
+ platform: r
1347
1347
  });
1348
1348
  };
1349
- function Tn(e) {
1349
+ function Rn(e) {
1350
1350
  return e != null && typeof e == "object" && "$el" in e;
1351
1351
  }
1352
1352
  function We(e) {
1353
- if (Tn(e)) {
1353
+ if (Rn(e)) {
1354
1354
  const n = e.$el;
1355
1355
  return Ke(n) && ue(n) === "#comment" ? null : n;
1356
1356
  }
@@ -1359,13 +1359,13 @@ function We(e) {
1359
1359
  function me(e) {
1360
1360
  return typeof e == "function" ? e() : R(e);
1361
1361
  }
1362
- function Rn(e) {
1362
+ function On(e) {
1363
1363
  return {
1364
1364
  name: "arrow",
1365
1365
  options: e,
1366
1366
  fn(n) {
1367
1367
  const t = We(me(e.element));
1368
- return t == null ? {} : An({
1368
+ return t == null ? {} : Bn({
1369
1369
  element: t,
1370
1370
  padding: e.padding
1371
1371
  }).fn(n);
@@ -1381,10 +1381,10 @@ function ot(e, n) {
1381
1381
  }
1382
1382
  function xt(e, n, t) {
1383
1383
  t === void 0 && (t = {});
1384
- const o = t.whileElementsMounted, r = k(() => {
1384
+ const o = t.whileElementsMounted, s = k(() => {
1385
1385
  var E;
1386
1386
  return (E = me(t.open)) != null ? E : !0;
1387
- }), s = k(() => me(t.middleware)), a = k(() => {
1387
+ }), r = k(() => me(t.middleware)), a = k(() => {
1388
1388
  var E;
1389
1389
  return (E = me(t.placement)) != null ? E : "bottom";
1390
1390
  }), d = k(() => {
@@ -1393,7 +1393,7 @@ function xt(e, n, t) {
1393
1393
  }), i = k(() => {
1394
1394
  var E;
1395
1395
  return (E = me(t.transform)) != null ? E : !0;
1396
- }), b = k(() => We(e.value)), c = k(() => We(n.value)), l = j(0), f = j(0), u = j(d.value), m = j(a.value), h = kt({}), y = j(!1), w = k(() => {
1396
+ }), b = k(() => We(e.value)), c = k(() => We(n.value)), l = j(0), f = j(0), u = j(d.value), m = j(a.value), h = Ft({}), y = j(!1), w = k(() => {
1397
1397
  const E = {
1398
1398
  position: u.value,
1399
1399
  left: "0",
@@ -1418,9 +1418,9 @@ function xt(e, n, t) {
1418
1418
  function x() {
1419
1419
  if (b.value == null || c.value == null)
1420
1420
  return;
1421
- const E = r.value;
1422
- Bn(b.value, c.value, {
1423
- middleware: s.value,
1421
+ const E = s.value;
1422
+ Tn(b.value, c.value, {
1423
+ middleware: r.value,
1424
1424
  placement: a.value,
1425
1425
  strategy: d.value
1426
1426
  }).then((z) => {
@@ -1441,15 +1441,15 @@ function xt(e, n, t) {
1441
1441
  }
1442
1442
  }
1443
1443
  function V() {
1444
- r.value || (y.value = !1);
1444
+ s.value || (y.value = !1);
1445
1445
  }
1446
- return we([s, a, d, r], x, {
1446
+ return we([r, a, d, s], x, {
1447
1447
  flush: "sync"
1448
1448
  }), we([b, c], A, {
1449
1449
  flush: "sync"
1450
- }), we(r, V, {
1450
+ }), we(s, V, {
1451
1451
  flush: "sync"
1452
- }), Ft() && Ct($), {
1452
+ }), Ct() && $t($), {
1453
1453
  x: be(l),
1454
1454
  y: be(f),
1455
1455
  strategy: be(u),
@@ -1464,7 +1464,7 @@ const Be = /* @__PURE__ */ S({
1464
1464
  inheritAttrs: !1,
1465
1465
  __name: "DsIconX",
1466
1466
  setup(e) {
1467
- return (n, t) => (g(), v("svg", de({
1467
+ return (n, t) => (g(), p("svg", de({
1468
1468
  fill: "none",
1469
1469
  stroke: "currentColor",
1470
1470
  viewBox: "0 0 24 24"
@@ -1477,11 +1477,11 @@ const Be = /* @__PURE__ */ S({
1477
1477
  }, null, -1)
1478
1478
  ])], 16));
1479
1479
  }
1480
- }), On = /* @__PURE__ */ S({
1480
+ }), Vn = /* @__PURE__ */ S({
1481
1481
  inheritAttrs: !1,
1482
1482
  __name: "DsIconCheck",
1483
1483
  setup(e) {
1484
- return (n, t) => (g(), v("svg", de({
1484
+ return (n, t) => (g(), p("svg", de({
1485
1485
  fill: "none",
1486
1486
  stroke: "currentColor",
1487
1487
  viewBox: "0 0 24 24"
@@ -1494,11 +1494,11 @@ const Be = /* @__PURE__ */ S({
1494
1494
  }, null, -1)
1495
1495
  ])], 16));
1496
1496
  }
1497
- }), Vn = /* @__PURE__ */ S({
1497
+ }), wt = /* @__PURE__ */ S({
1498
1498
  inheritAttrs: !1,
1499
1499
  __name: "DsIconWarning",
1500
1500
  setup(e) {
1501
- return (n, t) => (g(), v("svg", de({
1501
+ return (n, t) => (g(), p("svg", de({
1502
1502
  fill: "none",
1503
1503
  stroke: "currentColor",
1504
1504
  viewBox: "0 0 24 24"
@@ -1515,7 +1515,7 @@ const Be = /* @__PURE__ */ S({
1515
1515
  inheritAttrs: !1,
1516
1516
  __name: "DsIconInfo",
1517
1517
  setup(e) {
1518
- return (n, t) => (g(), v("svg", de({
1518
+ return (n, t) => (g(), p("svg", de({
1519
1519
  fill: "none",
1520
1520
  stroke: "currentColor",
1521
1521
  viewBox: "0 0 24 24"
@@ -1532,7 +1532,7 @@ const Be = /* @__PURE__ */ S({
1532
1532
  inheritAttrs: !1,
1533
1533
  __name: "DsIconChevronDown",
1534
1534
  setup(e) {
1535
- return (n, t) => (g(), v("svg", de({
1535
+ return (n, t) => (g(), p("svg", de({
1536
1536
  fill: "none",
1537
1537
  stroke: "currentColor",
1538
1538
  viewBox: "0 0 24 24"
@@ -1549,7 +1549,7 @@ const Be = /* @__PURE__ */ S({
1549
1549
  inheritAttrs: !1,
1550
1550
  __name: "DsIconChevronUp",
1551
1551
  setup(e) {
1552
- return (n, t) => (g(), v("svg", de({
1552
+ return (n, t) => (g(), p("svg", de({
1553
1553
  fill: "none",
1554
1554
  stroke: "currentColor",
1555
1555
  viewBox: "0 0 24 24"
@@ -1566,7 +1566,7 @@ const Be = /* @__PURE__ */ S({
1566
1566
  inheritAttrs: !1,
1567
1567
  __name: "DsIconSort",
1568
1568
  setup(e) {
1569
- return (n, t) => (g(), v("svg", de({
1569
+ return (n, t) => (g(), p("svg", de({
1570
1570
  fill: "none",
1571
1571
  stroke: "currentColor",
1572
1572
  viewBox: "0 0 24 24"
@@ -1588,7 +1588,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1588
1588
  key: 0,
1589
1589
  class: "px-3 py-2 text-sm text-fg-disabled",
1590
1590
  role: "status"
1591
- }, tr = /* @__PURE__ */ S({
1591
+ }, ss = /* @__PURE__ */ S({
1592
1592
  __name: "DsDropdownSelect",
1593
1593
  props: {
1594
1594
  modelValue: {},
@@ -1604,90 +1604,90 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1604
1604
  },
1605
1605
  emits: ["update:modelValue", "change"],
1606
1606
  setup(e, { emit: n }) {
1607
- const t = e, o = n, r = j(), s = j(), a = j(!1), d = fe("listbox"), i = j(-1), b = k(() => {
1607
+ const t = e, o = n, s = j(), r = j(), a = j(!1), d = fe("listbox"), i = j(-1), b = k(() => {
1608
1608
  if (!(!a.value || i.value < 0))
1609
1609
  return c(i.value);
1610
- }), c = (p) => `${d}-option-${p}`, { floatingStyles: l } = xt(r, s, {
1610
+ }), c = (v) => `${d}-option-${v}`, { floatingStyles: l } = xt(s, r, {
1611
1611
  placement: "bottom-start",
1612
1612
  middleware: [
1613
1613
  ht(4),
1614
- pt(),
1615
- vt({ padding: 8 }),
1616
- En({
1617
- apply({ rects: p }) {
1618
- s.value && Object.assign(s.value.style, {
1619
- minWidth: `${p.reference.width}px`
1614
+ vt(),
1615
+ pt({ padding: 8 }),
1616
+ An({
1617
+ apply({ rects: v }) {
1618
+ r.value && Object.assign(r.value.style, {
1619
+ minWidth: `${v.reference.width}px`
1620
1620
  });
1621
1621
  }
1622
1622
  })
1623
1623
  ],
1624
- whileElementsMounted: Dn
1625
- }), f = k(() => t.modelValue), u = k(() => t.options.find((p) => h(p) === f.value)), m = k(() => u.value ? y(u.value) : ""), h = (p) => typeof p == "object" && p !== null ? p.value : p, y = (p) => typeof p == "object" && p !== null ? p.label : String(p), w = (p) => typeof p == "object" && p !== null && p.disabled || !1, C = () => {
1624
+ whileElementsMounted: En
1625
+ }), f = k(() => t.modelValue), u = k(() => t.options.find((v) => h(v) === f.value)), m = k(() => u.value ? y(u.value) : ""), h = (v) => typeof v == "object" && v !== null ? v.value : v, y = (v) => typeof v == "object" && v !== null ? v.label : String(v), w = (v) => typeof v == "object" && v !== null && v.disabled || !1, C = () => {
1626
1626
  je(() => {
1627
- const p = s.value;
1628
- if (!p || i.value < 0) return;
1629
- const O = p.querySelector(`#${c(i.value)}`);
1627
+ const v = r.value;
1628
+ if (!v || i.value < 0) return;
1629
+ const O = v.querySelector(`#${c(i.value)}`);
1630
1630
  O == null || O.scrollIntoView({ block: "nearest" });
1631
1631
  });
1632
- }, x = (p, O) => {
1633
- let L = p;
1632
+ }, x = (v, O) => {
1633
+ let L = v;
1634
1634
  for (; L >= 0 && L < t.options.length; ) {
1635
1635
  if (!w(t.options[L])) return L;
1636
1636
  L += O;
1637
1637
  }
1638
1638
  return -1;
1639
1639
  }, $ = () => {
1640
- const p = x(i.value + 1, 1);
1641
- p >= 0 && (i.value = p, C());
1640
+ const v = x(i.value + 1, 1);
1641
+ v >= 0 && (i.value = v, C());
1642
1642
  }, A = () => {
1643
- const p = x(i.value - 1, -1);
1644
- p >= 0 && (i.value = p, C());
1643
+ const v = x(i.value - 1, -1);
1644
+ v >= 0 && (i.value = v, C());
1645
1645
  }, V = () => {
1646
- const p = x(0, 1);
1647
- p >= 0 && (i.value = p, C());
1646
+ const v = x(0, 1);
1647
+ v >= 0 && (i.value = v, C());
1648
1648
  }, E = () => {
1649
- const p = x(t.options.length - 1, -1);
1650
- p >= 0 && (i.value = p, C());
1649
+ const v = x(t.options.length - 1, -1);
1650
+ v >= 0 && (i.value = v, C());
1651
1651
  }, z = () => {
1652
1652
  t.disabled || t.loading || (a.value = !0, je(() => {
1653
- const p = t.options.findIndex(
1653
+ const v = t.options.findIndex(
1654
1654
  (O) => h(O) === f.value
1655
1655
  );
1656
- p >= 0 && !w(t.options[p]) ? i.value = p : V(), C();
1656
+ v >= 0 && !w(t.options[v]) ? i.value = v : V(), C();
1657
1657
  }));
1658
1658
  }, M = () => {
1659
1659
  a.value = !1, i.value = -1;
1660
1660
  }, W = () => {
1661
1661
  t.disabled || t.loading || (a.value ? M() : z());
1662
- }, Y = (p) => {
1663
- if (w(p)) return;
1664
- const O = h(p);
1665
- o("update:modelValue", O), o("change", O, p), M();
1666
- }, U = (p) => {
1662
+ }, Y = (v) => {
1663
+ if (w(v)) return;
1664
+ const O = h(v);
1665
+ o("update:modelValue", O), o("change", O, v), M();
1666
+ }, U = (v) => {
1667
1667
  if (!(t.disabled || t.loading)) {
1668
1668
  if (!a.value) {
1669
- (p.key === "ArrowDown" || p.key === "ArrowUp" || p.key === "Enter" || p.key === " ") && (p.preventDefault(), z());
1669
+ (v.key === "ArrowDown" || v.key === "ArrowUp" || v.key === "Enter" || v.key === " ") && (v.preventDefault(), z());
1670
1670
  return;
1671
1671
  }
1672
- switch (p.key) {
1672
+ switch (v.key) {
1673
1673
  case "ArrowDown":
1674
- p.preventDefault(), i.value < 0 ? V() : $();
1674
+ v.preventDefault(), i.value < 0 ? V() : $();
1675
1675
  break;
1676
1676
  case "ArrowUp":
1677
- p.preventDefault(), i.value < 0 ? E() : A();
1677
+ v.preventDefault(), i.value < 0 ? E() : A();
1678
1678
  break;
1679
1679
  case "Home":
1680
- p.preventDefault(), V();
1680
+ v.preventDefault(), V();
1681
1681
  break;
1682
1682
  case "End":
1683
- p.preventDefault(), E();
1683
+ v.preventDefault(), E();
1684
1684
  break;
1685
1685
  case "Enter":
1686
1686
  case " ":
1687
- p.preventDefault(), i.value >= 0 && i.value < t.options.length && Y(t.options[i.value]);
1687
+ v.preventDefault(), i.value >= 0 && i.value < t.options.length && Y(t.options[i.value]);
1688
1688
  break;
1689
1689
  case "Escape":
1690
- p.preventDefault(), M();
1690
+ v.preventDefault(), M();
1691
1691
  break;
1692
1692
  case "Tab":
1693
1693
  M();
@@ -1695,10 +1695,10 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1695
1695
  }
1696
1696
  }
1697
1697
  };
1698
- return (p, O) => (g(), v("div", jn, [
1699
- ne(Ot, {
1698
+ return (v, O) => (g(), p("div", jn, [
1699
+ _(Vt, {
1700
1700
  ref_key: "triggerRef",
1701
- ref: r,
1701
+ ref: s,
1702
1702
  variant: e.variant,
1703
1703
  disabled: e.disabled,
1704
1704
  loading: e.loading,
@@ -1715,32 +1715,32 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1715
1715
  onKeydown: U
1716
1716
  }, {
1717
1717
  default: Re(() => [
1718
- N(p.$slots, "trigger", {}, () => [
1719
- X(T(m.value || e.placeholder), 1)
1718
+ N(v.$slots, "trigger", {}, () => [
1719
+ X(B(m.value || e.placeholder), 1)
1720
1720
  ])
1721
1721
  ]),
1722
1722
  _: 3
1723
1723
  }, 8, ["variant", "disabled", "loading", "size", "iconLeft", "iconRight", "fullWidth", "aria-expanded", "aria-controls", "aria-activedescendant"]),
1724
1724
  (g(), I(Oe, { to: "body" }, [
1725
- a.value ? (g(), v("div", {
1725
+ a.value ? (g(), p("div", {
1726
1726
  key: 0,
1727
1727
  ref_key: "floatingRef",
1728
- ref: s,
1728
+ ref: r,
1729
1729
  id: R(d),
1730
1730
  role: "listbox",
1731
1731
  "aria-label": e.placeholder,
1732
1732
  style: he(R(l)),
1733
1733
  class: "z-50 min-w-32 bg-bg border border-solid border-border rounded-md shadow-default max-h-64 overflow-y-auto",
1734
- onClick: O[0] || (O[0] = $t(() => {
1734
+ onClick: O[0] || (O[0] = Dt(() => {
1735
1735
  }, ["stop"]))
1736
1736
  }, [
1737
- (g(!0), v(re, null, se(e.options, (L, P) => (g(), v("div", {
1737
+ (g(!0), p(se, null, re(e.options, (L, P) => (g(), p("div", {
1738
1738
  key: h(L),
1739
1739
  id: c(P),
1740
1740
  role: "option",
1741
1741
  "aria-selected": f.value === h(L) ? "true" : "false",
1742
1742
  "aria-disabled": w(L) ? "true" : void 0,
1743
- class: B([
1743
+ class: T([
1744
1744
  "px-3 py-2 text-sm transition-colors outline-none",
1745
1745
  w(L) ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
1746
1746
  f.value === h(L) ? "bg-brand text-brand-on-solid" : "",
@@ -1752,17 +1752,17 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1752
1752
  onClick: (H) => Y(L),
1753
1753
  onMouseenter: (H) => i.value = P
1754
1754
  }, [
1755
- N(p.$slots, "option", {
1755
+ N(v.$slots, "option", {
1756
1756
  option: L,
1757
1757
  index: P
1758
1758
  }, () => [
1759
- X(T(y(L)), 1)
1759
+ X(B(y(L)), 1)
1760
1760
  ])
1761
1761
  ], 42, In))), 128)),
1762
- e.options.length ? D("", !0) : (g(), v("div", Nn, T(e.emptyText), 1))
1762
+ e.options.length ? D("", !0) : (g(), p("div", Nn, B(e.emptyText), 1))
1763
1763
  ], 12, Pn)) : D("", !0)
1764
1764
  ])),
1765
- a.value ? (g(), v("div", {
1765
+ a.value ? (g(), p("div", {
1766
1766
  key: 0,
1767
1767
  class: "fixed inset-0 z-40",
1768
1768
  onClick: M
@@ -1781,7 +1781,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1781
1781
  key: 1,
1782
1782
  class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",
1783
1783
  "aria-hidden": "true"
1784
- }, nr = /* @__PURE__ */ S({
1784
+ }, rs = /* @__PURE__ */ S({
1785
1785
  __name: "DsInput",
1786
1786
  props: {
1787
1787
  modelValue: {},
@@ -1805,7 +1805,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1805
1805
  },
1806
1806
  emits: ["update:modelValue", "blur", "focus", "enter", "clear"],
1807
1807
  setup(e, { expose: n, emit: t }) {
1808
- const o = e, r = t, s = j(null), a = fe("input"), d = `${a}-help`, i = `${a}-error`, b = k(() => {
1808
+ const o = e, s = t, r = j(null), a = fe("input"), d = `${a}-help`, i = `${a}-error`, b = k(() => {
1809
1809
  const x = [];
1810
1810
  return o.helpText && !o.error && x.push(d), o.error && x.push(i), x.length > 0 ? x.join(" ") : void 0;
1811
1811
  }), c = k(() => o.clearable && f.value && !o.disabled), l = k(() => o.iconRight || o.clearable), f = k(() => o.modelValue == null ? !1 : typeof o.modelValue == "string" ? o.modelValue.length > 0 : !0), u = k(() => {
@@ -1848,40 +1848,40 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1848
1848
  const $ = x.target;
1849
1849
  if (o.type === "number") {
1850
1850
  const A = Number($.value);
1851
- r("update:modelValue", Number.isNaN(A) ? $.value : A);
1851
+ s("update:modelValue", Number.isNaN(A) ? $.value : A);
1852
1852
  } else
1853
- r("update:modelValue", $.value);
1853
+ s("update:modelValue", $.value);
1854
1854
  }
1855
1855
  function y() {
1856
1856
  var x;
1857
- r("update:modelValue", ""), r("clear"), (x = s.value) == null || x.focus();
1857
+ s("update:modelValue", ""), s("clear"), (x = r.value) == null || x.focus();
1858
1858
  }
1859
1859
  function w() {
1860
1860
  var x;
1861
- (x = s.value) == null || x.focus();
1861
+ (x = r.value) == null || x.focus();
1862
1862
  }
1863
1863
  function C() {
1864
1864
  var x;
1865
- (x = s.value) == null || x.blur();
1865
+ (x = r.value) == null || x.blur();
1866
1866
  }
1867
- return n({ focus: w, blur: C, inputRef: s }), (x, $) => (g(), v("div", Wn, [
1868
- e.label ? (g(), v("label", {
1867
+ return n({ focus: w, blur: C, inputRef: r }), (x, $) => (g(), p("div", Wn, [
1868
+ e.label ? (g(), p("label", {
1869
1869
  key: 0,
1870
1870
  for: R(a),
1871
1871
  class: "block text-label mb-1"
1872
1872
  }, [
1873
- X(T(e.label) + " ", 1),
1874
- e.required ? (g(), v("span", qn, "*")) : D("", !0)
1873
+ X(B(e.label) + " ", 1),
1874
+ e.required ? (g(), p("span", qn, "*")) : D("", !0)
1875
1875
  ], 8, Hn)) : D("", !0),
1876
1876
  F("div", Kn, [
1877
- e.iconLeft ? (g(), v("div", Un, [
1877
+ e.iconLeft ? (g(), p("div", Un, [
1878
1878
  (g(), I($e(e.iconLeft), {
1879
- class: B(m.value)
1879
+ class: T(m.value)
1880
1880
  }, null, 8, ["class"]))
1881
1881
  ])) : D("", !0),
1882
1882
  F("input", {
1883
1883
  ref_key: "inputRef",
1884
- ref: s,
1884
+ ref: r,
1885
1885
  id: R(a),
1886
1886
  type: e.type,
1887
1887
  value: e.modelValue,
@@ -1896,39 +1896,39 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1896
1896
  step: e.step,
1897
1897
  "aria-describedby": b.value,
1898
1898
  "aria-invalid": e.error ? "true" : void 0,
1899
- class: B(u.value),
1899
+ class: T(u.value),
1900
1900
  onInput: h,
1901
1901
  onBlur: $[0] || ($[0] = (A) => x.$emit("blur", A)),
1902
1902
  onFocus: $[1] || ($[1] = (A) => x.$emit("focus", A)),
1903
- onKeydown: $[2] || ($[2] = rt((A) => x.$emit("enter"), ["enter"]))
1903
+ onKeydown: $[2] || ($[2] = st((A) => x.$emit("enter"), ["enter"]))
1904
1904
  }, null, 42, Xn),
1905
- e.iconRight && !c.value ? (g(), v("div", Yn, [
1905
+ e.iconRight && !c.value ? (g(), p("div", Yn, [
1906
1906
  (g(), I($e(e.iconRight), {
1907
- class: B(m.value)
1907
+ class: T(m.value)
1908
1908
  }, null, 8, ["class"]))
1909
1909
  ])) : D("", !0),
1910
- c.value ? (g(), v("button", {
1910
+ c.value ? (g(), p("button", {
1911
1911
  key: 2,
1912
1912
  type: "button",
1913
1913
  "aria-label": "Clear input",
1914
1914
  class: "absolute inset-y-0 right-0 pr-3 flex items-center text-fg-tertiary hover:text-fg-secondary transition-colors",
1915
1915
  onClick: y
1916
1916
  }, [
1917
- ne(R(Be), { class: "w-4 h-4" })
1917
+ _(R(Be), { class: "w-4 h-4" })
1918
1918
  ])) : D("", !0)
1919
1919
  ]),
1920
- e.helpText && !e.error ? (g(), v("div", {
1920
+ e.helpText && !e.error ? (g(), p("div", {
1921
1921
  key: 1,
1922
1922
  id: d,
1923
1923
  class: "mt-1 text-caption"
1924
- }, T(e.helpText), 1)) : D("", !0),
1925
- e.error ? (g(), v("div", {
1924
+ }, B(e.helpText), 1)) : D("", !0),
1925
+ e.error ? (g(), p("div", {
1926
1926
  key: 2,
1927
1927
  id: i,
1928
1928
  class: "mt-1 text-sm text-error font-sans",
1929
1929
  role: "alert",
1930
1930
  "aria-live": "polite"
1931
- }, T(e.error), 1)) : D("", !0)
1931
+ }, B(e.error), 1)) : D("", !0)
1932
1932
  ]));
1933
1933
  }
1934
1934
  }), Gn = {
@@ -1944,10 +1944,10 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1944
1944
  },
1945
1945
  setup(e) {
1946
1946
  const n = e, t = k(() => {
1947
- const s = ["inline-flex", "items-center"];
1948
- return n.centered && s.push("justify-center"), n.text && s.push("gap-2"), s.join(" ");
1947
+ const r = ["inline-flex", "items-center"];
1948
+ return n.centered && r.push("justify-center"), n.text && r.push("gap-2"), r.join(" ");
1949
1949
  }), o = k(() => {
1950
- const s = [
1950
+ const r = [
1951
1951
  "animate-spin",
1952
1952
  "rounded-full",
1953
1953
  "border-solid"
@@ -1974,11 +1974,11 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1974
1974
  ]
1975
1975
  };
1976
1976
  return [
1977
- ...s,
1977
+ ...r,
1978
1978
  ...a[n.size],
1979
1979
  ...d[n.variant]
1980
1980
  ].join(" ");
1981
- }), r = k(() => [
1981
+ }), s = k(() => [
1982
1982
  {
1983
1983
  small: "text-sm",
1984
1984
  medium: "text-base",
@@ -1987,25 +1987,25 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1987
1987
  "text-fg-secondary",
1988
1988
  "font-medium"
1989
1989
  ].join(" "));
1990
- return (s, a) => (g(), v("div", {
1991
- class: B(t.value),
1990
+ return (r, a) => (g(), p("div", {
1991
+ class: T(t.value),
1992
1992
  role: "status",
1993
1993
  "aria-live": "polite"
1994
1994
  }, [
1995
1995
  F("div", {
1996
- class: B(o.value),
1996
+ class: T(o.value),
1997
1997
  "aria-hidden": "true"
1998
1998
  }, null, 2),
1999
- e.text ? (g(), v("span", {
1999
+ e.text ? (g(), p("span", {
2000
2000
  key: 0,
2001
- class: B(r.value)
2002
- }, T(e.text), 3)) : (g(), v("span", Gn, "Loading"))
2001
+ class: T(s.value)
2002
+ }, B(e.text), 3)) : (g(), p("span", Gn, "Loading"))
2003
2003
  ], 2));
2004
2004
  }
2005
2005
  }), Qn = ["aria-labelledby"], Zn = { class: "flex items-center justify-between px-6 py-4 border-b border-solid border-border" }, _n = ["id"], eo = { class: "px-6 py-4 overflow-y-auto flex-1" }, to = {
2006
2006
  key: 0,
2007
2007
  class: "px-6 py-4 border-t border-solid border-border"
2008
- }, or = /* @__PURE__ */ S({
2008
+ }, as = /* @__PURE__ */ S({
2009
2009
  __name: "DsModal",
2010
2010
  props: {
2011
2011
  modelValue: { type: Boolean },
@@ -2016,7 +2016,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2016
2016
  },
2017
2017
  emits: ["update:modelValue", "close"],
2018
2018
  setup(e, { emit: n }) {
2019
- const t = e, o = n, r = fe("modal-title"), s = j(null);
2019
+ const t = e, o = n, s = fe("modal-title"), r = j(null);
2020
2020
  let a = null;
2021
2021
  const d = k(() => `relative z-10 bg-bg rounded-lg shadow-lg w-full ${{
2022
2022
  sm: "max-w-sm",
@@ -2034,8 +2034,8 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2034
2034
  t.persistent || i();
2035
2035
  }
2036
2036
  function l() {
2037
- return s.value ? Array.from(
2038
- s.value.querySelectorAll(
2037
+ return r.value ? Array.from(
2038
+ r.value.querySelectorAll(
2039
2039
  'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])'
2040
2040
  )
2041
2041
  ) : [];
@@ -2051,12 +2051,12 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2051
2051
  () => t.modelValue,
2052
2052
  async (u) => {
2053
2053
  var m;
2054
- u ? (a = document.activeElement, document.body.style.overflow = "hidden", document.addEventListener("keydown", f), await je(), (m = s.value) == null || m.focus()) : (document.body.style.overflow = "", document.removeEventListener("keydown", f), a == null || a.focus(), a = null);
2054
+ u ? (a = document.activeElement, document.body.style.overflow = "hidden", document.addEventListener("keydown", f), await je(), (m = r.value) == null || m.focus()) : (document.body.style.overflow = "", document.removeEventListener("keydown", f), a == null || a.focus(), a = null);
2055
2055
  }
2056
- ), st(() => {
2056
+ ), rt(() => {
2057
2057
  document.body.style.overflow = "", document.removeEventListener("keydown", f);
2058
2058
  }), (u, m) => (g(), I(Oe, { to: "body" }, [
2059
- ne(at, {
2059
+ _(at, {
2060
2060
  "enter-active-class": "transition-opacity duration-200",
2061
2061
  "enter-from-class": "opacity-0",
2062
2062
  "enter-to-class": "opacity-100",
@@ -2065,10 +2065,10 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2065
2065
  "leave-to-class": "opacity-0"
2066
2066
  }, {
2067
2067
  default: Re(() => [
2068
- e.modelValue ? (g(), v("div", {
2068
+ e.modelValue ? (g(), p("div", {
2069
2069
  key: 0,
2070
2070
  class: "fixed inset-0 z-50 flex items-center justify-center p-4",
2071
- onKeydown: rt(c, ["escape"])
2071
+ onKeydown: st(c, ["escape"])
2072
2072
  }, [
2073
2073
  F("div", {
2074
2074
  class: "absolute inset-0 bg-bg-inverse/50",
@@ -2077,34 +2077,34 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2077
2077
  }),
2078
2078
  F("div", {
2079
2079
  ref_key: "panelRef",
2080
- ref: s,
2080
+ ref: r,
2081
2081
  role: "dialog",
2082
2082
  "aria-modal": "true",
2083
- "aria-labelledby": R(r),
2084
- class: B(d.value),
2083
+ "aria-labelledby": R(s),
2084
+ class: T(d.value),
2085
2085
  tabindex: "-1"
2086
2086
  }, [
2087
2087
  F("div", Zn, [
2088
2088
  N(u.$slots, "header", {}, () => [
2089
2089
  F("h2", {
2090
- id: R(r),
2090
+ id: R(s),
2091
2091
  class: "text-heading-lg m-0"
2092
- }, T(e.title), 9, _n)
2092
+ }, B(e.title), 9, _n)
2093
2093
  ]),
2094
- e.closable ? (g(), v("button", {
2094
+ e.closable ? (g(), p("button", {
2095
2095
  key: 0,
2096
2096
  type: "button",
2097
2097
  class: "p-1 rounded-md text-fg-tertiary hover:text-fg hover:bg-surface-hover-light transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
2098
2098
  "aria-label": "Close dialog",
2099
2099
  onClick: i
2100
2100
  }, [
2101
- ne(R(Be), { class: "w-5 h-5" })
2101
+ _(R(Be), { class: "w-5 h-5" })
2102
2102
  ])) : D("", !0)
2103
2103
  ]),
2104
2104
  F("div", eo, [
2105
2105
  N(u.$slots, "default")
2106
2106
  ]),
2107
- u.$slots.footer ? (g(), v("div", to, [
2107
+ u.$slots.footer ? (g(), p("div", to, [
2108
2108
  N(u.$slots, "footer")
2109
2109
  ])) : D("", !0)
2110
2110
  ], 10, Qn)
@@ -2114,7 +2114,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2114
2114
  })
2115
2115
  ]));
2116
2116
  }
2117
- }), no = ["id", "name", "checked", "disabled", "value"], rr = /* @__PURE__ */ S({
2117
+ }), no = ["id", "name", "checked", "disabled", "value"], ls = /* @__PURE__ */ S({
2118
2118
  __name: "DsRadio",
2119
2119
  props: {
2120
2120
  modelValue: { type: [String, Number, Boolean] },
@@ -2127,13 +2127,13 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2127
2127
  },
2128
2128
  emits: ["update:modelValue", "change"],
2129
2129
  setup(e, { emit: n }) {
2130
- const t = e, o = n, r = k(() => t.modelValue === t.value), s = {
2130
+ const t = e, o = n, s = k(() => t.modelValue === t.value), r = {
2131
2131
  small: { circle: "w-3.5 h-3.5", dot: "w-1.5 h-1.5", label: "text-xs" },
2132
2132
  medium: { circle: "w-4 h-4", dot: "w-2 h-2", label: "text-sm" },
2133
2133
  large: { circle: "w-5 h-5", dot: "w-2.5 h-2.5", label: "text-base" }
2134
2134
  }, a = k(() => {
2135
2135
  const l = [
2136
- s[t.size].circle,
2136
+ r[t.size].circle,
2137
2137
  "rounded-full",
2138
2138
  "inline-flex items-center justify-center",
2139
2139
  "border border-solid",
@@ -2141,27 +2141,27 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2141
2141
  "shrink-0"
2142
2142
  ];
2143
2143
  return t.disabled ? l.push(
2144
- r.value ? "bg-bg border-brand-disabled" : "bg-bg-tertiary border-border",
2144
+ s.value ? "bg-bg border-brand-disabled" : "bg-bg-tertiary border-border",
2145
2145
  "opacity-60"
2146
- ) : r.value ? l.push("bg-bg border-brand") : l.push(
2146
+ ) : s.value ? l.push("bg-bg border-brand") : l.push(
2147
2147
  "bg-bg border-border-strong",
2148
2148
  "group-hover:border-brand",
2149
2149
  "peer-focus-visible:ring-2 peer-focus-visible:ring-brand peer-focus-visible:ring-offset-2"
2150
2150
  ), l.join(" ");
2151
2151
  }), d = k(() => {
2152
- const l = [s[t.size].dot, "rounded-full"];
2152
+ const l = [r[t.size].dot, "rounded-full"];
2153
2153
  return t.disabled ? l.push("bg-brand-disabled") : l.push("bg-brand"), l.join(" ");
2154
2154
  }), i = k(() => [
2155
2155
  "font-sans select-none",
2156
- s[t.size].label,
2156
+ r[t.size].label,
2157
2157
  t.disabled ? "text-fg-disabled" : "text-fg"
2158
2158
  ].join(" ")), b = (c) => {
2159
2159
  if (t.disabled) return;
2160
2160
  const l = c.target, f = t.value ?? l.value;
2161
2161
  o("update:modelValue", f), o("change", f, c);
2162
2162
  };
2163
- return (c, l) => (g(), v("label", {
2164
- class: B([
2163
+ return (c, l) => (g(), p("label", {
2164
+ class: T([
2165
2165
  "inline-flex items-center gap-2",
2166
2166
  e.disabled ? "cursor-not-allowed" : "cursor-pointer",
2167
2167
  "group"
@@ -2171,39 +2171,39 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2171
2171
  id: e.id,
2172
2172
  type: "radio",
2173
2173
  name: e.name,
2174
- checked: r.value,
2174
+ checked: s.value,
2175
2175
  disabled: e.disabled,
2176
2176
  value: e.value,
2177
2177
  class: "sr-only peer",
2178
2178
  onChange: b
2179
2179
  }, null, 40, no),
2180
2180
  F("span", {
2181
- class: B(a.value),
2181
+ class: T(a.value),
2182
2182
  "aria-hidden": "true"
2183
2183
  }, [
2184
- r.value ? (g(), v("span", {
2184
+ s.value ? (g(), p("span", {
2185
2185
  key: 0,
2186
- class: B(d.value)
2186
+ class: T(d.value)
2187
2187
  }, null, 2)) : D("", !0)
2188
2188
  ], 2),
2189
- e.label || c.$slots.default ? (g(), v("span", {
2189
+ e.label || c.$slots.default ? (g(), p("span", {
2190
2190
  key: 0,
2191
- class: B(i.value)
2191
+ class: T(i.value)
2192
2192
  }, [
2193
2193
  N(c.$slots, "default", {}, () => [
2194
- X(T(e.label), 1)
2194
+ X(B(e.label), 1)
2195
2195
  ])
2196
2196
  ], 2)) : D("", !0)
2197
2197
  ], 2));
2198
2198
  }
2199
- }), oo = { class: "w-full" }, ro = ["for"], so = {
2199
+ }), oo = { class: "w-full" }, so = ["for"], ro = {
2200
2200
  key: 0,
2201
2201
  class: "text-error ml-1",
2202
2202
  "aria-hidden": "true"
2203
2203
  }, ao = { class: "relative" }, lo = ["id", "value", "disabled", "required", "aria-describedby", "aria-invalid"], io = ["selected"], co = ["value", "disabled"], uo = {
2204
2204
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",
2205
2205
  "aria-hidden": "true"
2206
- }, sr = /* @__PURE__ */ S({
2206
+ }, is = /* @__PURE__ */ S({
2207
2207
  __name: "DsSelect",
2208
2208
  props: {
2209
2209
  modelValue: {},
@@ -2218,9 +2218,9 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2218
2218
  },
2219
2219
  emits: ["update:modelValue", "blur", "focus"],
2220
2220
  setup(e, { emit: n }) {
2221
- const t = e, o = n, r = fe("select"), s = `${r}-help`, a = `${r}-error`, d = k(() => {
2221
+ const t = e, o = n, s = fe("select"), r = `${s}-help`, a = `${s}-error`, d = k(() => {
2222
2222
  const c = [];
2223
- return t.helpText && !t.error && c.push(s), t.error && c.push(a), c.length > 0 ? c.join(" ") : void 0;
2223
+ return t.helpText && !t.error && c.push(r), t.error && c.push(a), c.length > 0 ? c.join(" ") : void 0;
2224
2224
  }), i = k(() => {
2225
2225
  const c = [
2226
2226
  "block",
@@ -2251,56 +2251,56 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2251
2251
  const f = c.target.value, u = t.options.find((m) => String(m.value) === f);
2252
2252
  o("update:modelValue", u && typeof u.value == "number" ? u.value : f);
2253
2253
  };
2254
- return (c, l) => (g(), v("div", oo, [
2255
- e.label ? (g(), v("label", {
2254
+ return (c, l) => (g(), p("div", oo, [
2255
+ e.label ? (g(), p("label", {
2256
2256
  key: 0,
2257
- for: R(r),
2257
+ for: R(s),
2258
2258
  class: "block text-label mb-1"
2259
2259
  }, [
2260
- X(T(e.label) + " ", 1),
2261
- e.required ? (g(), v("span", so, "*")) : D("", !0)
2262
- ], 8, ro)) : D("", !0),
2260
+ X(B(e.label) + " ", 1),
2261
+ e.required ? (g(), p("span", ro, "*")) : D("", !0)
2262
+ ], 8, so)) : D("", !0),
2263
2263
  F("div", ao, [
2264
2264
  F("select", {
2265
- id: R(r),
2265
+ id: R(s),
2266
2266
  value: e.modelValue,
2267
2267
  disabled: e.disabled,
2268
2268
  required: e.required,
2269
2269
  "aria-describedby": d.value,
2270
2270
  "aria-invalid": e.error ? "true" : void 0,
2271
- class: B(i.value),
2271
+ class: T(i.value),
2272
2272
  onChange: b,
2273
2273
  onBlur: l[0] || (l[0] = (f) => c.$emit("blur", f)),
2274
2274
  onFocus: l[1] || (l[1] = (f) => c.$emit("focus", f))
2275
2275
  }, [
2276
- e.placeholder ? (g(), v("option", {
2276
+ e.placeholder ? (g(), p("option", {
2277
2277
  key: 0,
2278
2278
  value: "",
2279
2279
  disabled: "",
2280
2280
  selected: !e.modelValue
2281
- }, T(e.placeholder), 9, io)) : D("", !0),
2282
- (g(!0), v(re, null, se(e.options, (f) => (g(), v("option", {
2281
+ }, B(e.placeholder), 9, io)) : D("", !0),
2282
+ (g(!0), p(se, null, re(e.options, (f) => (g(), p("option", {
2283
2283
  key: f.value,
2284
2284
  value: f.value,
2285
2285
  disabled: f.disabled
2286
- }, T(f.label), 9, co))), 128))
2286
+ }, B(f.label), 9, co))), 128))
2287
2287
  ], 42, lo),
2288
2288
  F("div", uo, [
2289
- ne(R(Ge), { class: "w-4 h-4 text-fg-tertiary" })
2289
+ _(R(Ge), { class: "w-4 h-4 text-fg-tertiary" })
2290
2290
  ])
2291
2291
  ]),
2292
- e.helpText && !e.error ? (g(), v("div", {
2292
+ e.helpText && !e.error ? (g(), p("div", {
2293
2293
  key: 1,
2294
- id: s,
2294
+ id: r,
2295
2295
  class: "mt-1 text-caption"
2296
- }, T(e.helpText), 1)) : D("", !0),
2297
- e.error ? (g(), v("div", {
2296
+ }, B(e.helpText), 1)) : D("", !0),
2297
+ e.error ? (g(), p("div", {
2298
2298
  key: 2,
2299
2299
  id: a,
2300
2300
  class: "mt-1 text-sm text-error font-sans",
2301
2301
  role: "alert",
2302
2302
  "aria-live": "polite"
2303
- }, T(e.error), 1)) : D("", !0)
2303
+ }, B(e.error), 1)) : D("", !0)
2304
2304
  ]));
2305
2305
  }
2306
2306
  }), fo = { class: "w-full overflow-x-auto" }, bo = {
@@ -2310,10 +2310,10 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2310
2310
  key: 0,
2311
2311
  class: "inline-flex",
2312
2312
  "aria-hidden": "true"
2313
- }, vo = { key: 0 }, po = ["colspan"], yo = { key: 1 }, xo = ["colspan"], wo = {
2313
+ }, po = { key: 0 }, vo = ["colspan"], yo = { key: 1 }, xo = ["colspan"], wo = {
2314
2314
  key: 0,
2315
2315
  class: "flex items-center justify-between px-4 py-3 border-t border-solid border-border bg-bg-secondary text-sm"
2316
- }, ko = { class: "text-fg-secondary" }, Fo = { class: "flex gap-2" }, Co = ["disabled"], $o = ["disabled"], ar = /* @__PURE__ */ S({
2316
+ }, ko = { class: "text-fg-secondary" }, Fo = { class: "flex gap-2" }, Co = ["disabled"], $o = ["disabled"], cs = /* @__PURE__ */ S({
2317
2317
  __name: "DsTable",
2318
2318
  props: {
2319
2319
  columns: {},
@@ -2328,7 +2328,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2328
2328
  },
2329
2329
  emits: ["update:sortBy", "update:sortOrder", "update:page"],
2330
2330
  setup(e, { emit: n }) {
2331
- const t = e, o = n, r = k(() => t.pagination ? Math.ceil(t.pagination.total / t.pagination.perPage) : 0), s = k(() => t.pagination ? (t.pagination.page - 1) * t.pagination.perPage + 1 : 0), a = k(() => t.pagination ? Math.min(
2331
+ const t = e, o = n, s = k(() => t.pagination ? Math.ceil(t.pagination.total / t.pagination.perPage) : 0), r = k(() => t.pagination ? (t.pagination.page - 1) * t.pagination.perPage + 1 : 0), a = k(() => t.pagination ? Math.min(
2332
2332
  t.pagination.page * t.pagination.perPage,
2333
2333
  t.pagination.total
2334
2334
  ) : 0);
@@ -2351,26 +2351,26 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2351
2351
  function l(f) {
2352
2352
  return `px-4 py-3 ${f.align === "center" ? "text-center" : f.align === "right" ? "text-right" : "text-left"}`;
2353
2353
  }
2354
- return (f, u) => (g(), v("div", fo, [
2354
+ return (f, u) => (g(), p("div", fo, [
2355
2355
  F("table", bo, [
2356
2356
  F("thead", {
2357
- class: B(e.stickyHeader ? "sticky top-0 z-10" : "")
2357
+ class: T(e.stickyHeader ? "sticky top-0 z-10" : "")
2358
2358
  }, [
2359
2359
  F("tr", mo, [
2360
- (g(!0), v(re, null, se(e.columns, (m) => (g(), v("th", {
2360
+ (g(!0), p(se, null, re(e.columns, (m) => (g(), p("th", {
2361
2361
  key: m.key,
2362
2362
  style: he(m.width ? { width: m.width } : void 0),
2363
- class: B(c(m)),
2363
+ class: T(c(m)),
2364
2364
  "aria-sort": i(m),
2365
2365
  onClick: (h) => m.sortable ? d(m.key) : void 0
2366
2366
  }, [
2367
2367
  F("div", {
2368
- class: B(["flex items-center gap-1", b(m.align)])
2368
+ class: T(["flex items-center gap-1", b(m.align)])
2369
2369
  }, [
2370
2370
  N(f.$slots, `header-${m.key}`, { column: m }, () => [
2371
- X(T(m.label), 1)
2371
+ X(B(m.label), 1)
2372
2372
  ]),
2373
- m.sortable ? (g(), v("span", ho, [
2373
+ m.sortable ? (g(), p("span", ho, [
2374
2374
  e.sortBy === m.key && e.sortOrder === "asc" ? (g(), I(R(Sn), {
2375
2375
  key: 0,
2376
2376
  class: "w-4 h-4"
@@ -2387,49 +2387,49 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2387
2387
  ])
2388
2388
  ], 2),
2389
2389
  F("tbody", null, [
2390
- e.loading ? (g(), v("tr", vo, [
2390
+ e.loading ? (g(), p("tr", po, [
2391
2391
  F("td", {
2392
2392
  colspan: e.columns.length,
2393
2393
  class: "text-center py-12"
2394
2394
  }, [
2395
2395
  N(f.$slots, "loading", {}, () => [
2396
- ne(Jn, { centered: "" })
2396
+ _(Jn, { centered: "" })
2397
2397
  ])
2398
- ], 8, po)
2399
- ])) : e.rows.length === 0 ? (g(), v("tr", yo, [
2398
+ ], 8, vo)
2399
+ ])) : e.rows.length === 0 ? (g(), p("tr", yo, [
2400
2400
  F("td", {
2401
2401
  colspan: e.columns.length,
2402
2402
  class: "text-center py-12 text-fg-secondary"
2403
2403
  }, [
2404
2404
  N(f.$slots, "empty", {}, () => [
2405
- X(T(e.emptyText), 1)
2405
+ X(B(e.emptyText), 1)
2406
2406
  ])
2407
2407
  ], 8, xo)
2408
2408
  ])) : D("", !0),
2409
- (g(!0), v(re, null, se(e.rows, (m, h) => (g(), v("tr", {
2409
+ (g(!0), p(se, null, re(e.rows, (m, h) => (g(), p("tr", {
2410
2410
  key: h,
2411
- class: B([
2411
+ class: T([
2412
2412
  "border-b border-solid border-border-light transition-colors hover:bg-surface-hover-light",
2413
2413
  e.striped && h % 2 === 1 ? "bg-bg-secondary" : ""
2414
2414
  ])
2415
2415
  }, [
2416
- (g(!0), v(re, null, se(e.columns, (y) => (g(), v("td", {
2416
+ (g(!0), p(se, null, re(e.columns, (y) => (g(), p("td", {
2417
2417
  key: y.key,
2418
- class: B(l(y))
2418
+ class: T(l(y))
2419
2419
  }, [
2420
2420
  N(f.$slots, `cell-${y.key}`, {
2421
2421
  row: m,
2422
2422
  value: m[y.key],
2423
2423
  index: h
2424
2424
  }, () => [
2425
- X(T(m[y.key]), 1)
2425
+ X(B(m[y.key]), 1)
2426
2426
  ])
2427
2427
  ], 2))), 128))
2428
2428
  ], 2))), 128))
2429
2429
  ])
2430
2430
  ]),
2431
- e.pagination ? (g(), v("div", wo, [
2432
- F("span", ko, T(s.value) + "–" + T(a.value) + " of " + T(e.pagination.total), 1),
2431
+ e.pagination ? (g(), p("div", wo, [
2432
+ F("span", ko, B(r.value) + "–" + B(a.value) + " of " + B(e.pagination.total), 1),
2433
2433
  F("div", Fo, [
2434
2434
  F("button", {
2435
2435
  type: "button",
@@ -2439,7 +2439,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2439
2439
  }, " Previous ", 8, Co),
2440
2440
  F("button", {
2441
2441
  type: "button",
2442
- disabled: e.pagination.page >= r.value,
2442
+ disabled: e.pagination.page >= s.value,
2443
2443
  class: "px-3 py-1 rounded-md border border-solid border-border bg-bg text-fg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-surface-hover-light transition-colors",
2444
2444
  onClick: u[1] || (u[1] = (m) => f.$emit("update:page", e.pagination.page + 1))
2445
2445
  }, " Next ", 8, $o)
@@ -2447,7 +2447,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2447
2447
  ])) : D("", !0)
2448
2448
  ]));
2449
2449
  }
2450
- }), Do = ["aria-label"], Eo = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"], Ao = ["id", "aria-labelledby", "hidden"], lr = /* @__PURE__ */ S({
2450
+ }), Do = ["aria-label"], Eo = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"], Ao = ["id", "aria-labelledby", "hidden"], ds = /* @__PURE__ */ S({
2451
2451
  __name: "DsTabs",
2452
2452
  props: {
2453
2453
  modelValue: {},
@@ -2457,7 +2457,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2457
2457
  },
2458
2458
  emits: ["update:modelValue"],
2459
2459
  setup(e, { emit: n }) {
2460
- const t = e, o = n, r = fe("tabs"), s = k(
2460
+ const t = e, o = n, s = fe("tabs"), r = k(
2461
2461
  () => t.variant === "line" ? "flex border-b border-solid border-border gap-0" : "flex gap-1 bg-neutral-soft p-1 rounded-lg"
2462
2462
  );
2463
2463
  function a(b) {
@@ -2500,34 +2500,34 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2500
2500
  }
2501
2501
  const m = l[u];
2502
2502
  o("update:modelValue", m.key);
2503
- const h = document.getElementById(`${r}-tab-${m.key}`);
2503
+ const h = document.getElementById(`${s}-tab-${m.key}`);
2504
2504
  h == null || h.focus();
2505
2505
  }
2506
- return (b, c) => (g(), v("div", null, [
2506
+ return (b, c) => (g(), p("div", null, [
2507
2507
  F("div", {
2508
- class: B(s.value),
2508
+ class: T(r.value),
2509
2509
  role: "tablist",
2510
2510
  "aria-label": e.ariaLabel
2511
2511
  }, [
2512
- (g(!0), v(re, null, se(e.tabs, (l, f) => (g(), v("button", {
2512
+ (g(!0), p(se, null, re(e.tabs, (l, f) => (g(), p("button", {
2513
2513
  key: l.key,
2514
- id: `${R(r)}-tab-${l.key}`,
2514
+ id: `${R(s)}-tab-${l.key}`,
2515
2515
  role: "tab",
2516
2516
  type: "button",
2517
2517
  "aria-selected": e.modelValue === l.key,
2518
- "aria-controls": `${R(r)}-panel-${l.key}`,
2518
+ "aria-controls": `${R(s)}-panel-${l.key}`,
2519
2519
  tabindex: e.modelValue === l.key ? 0 : -1,
2520
2520
  disabled: l.disabled,
2521
- class: B(d(l)),
2521
+ class: T(d(l)),
2522
2522
  onClick: (u) => a(l),
2523
2523
  onKeydown: (u) => i(u, f)
2524
- }, T(l.label), 43, Eo))), 128))
2524
+ }, B(l.label), 43, Eo))), 128))
2525
2525
  ], 10, Do),
2526
- (g(!0), v(re, null, se(e.tabs, (l) => (g(), v("div", {
2526
+ (g(!0), p(se, null, re(e.tabs, (l) => (g(), p("div", {
2527
2527
  key: l.key,
2528
- id: `${R(r)}-panel-${l.key}`,
2528
+ id: `${R(s)}-panel-${l.key}`,
2529
2529
  role: "tabpanel",
2530
- "aria-labelledby": `${R(r)}-tab-${l.key}`,
2530
+ "aria-labelledby": `${R(s)}-tab-${l.key}`,
2531
2531
  hidden: e.modelValue !== l.key,
2532
2532
  tabindex: 0
2533
2533
  }, [
@@ -2545,7 +2545,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2545
2545
  }, So = {
2546
2546
  key: 2,
2547
2547
  class: "text-caption ml-auto"
2548
- }, ir = /* @__PURE__ */ S({
2548
+ }, us = /* @__PURE__ */ S({
2549
2549
  __name: "DsTextarea",
2550
2550
  props: {
2551
2551
  modelValue: {},
@@ -2562,7 +2562,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2562
2562
  },
2563
2563
  emits: ["update:modelValue", "blur", "focus"],
2564
2564
  setup(e, { expose: n, emit: t }) {
2565
- const o = e, r = t, s = j(null), a = fe("textarea"), d = `${a}-help`, i = `${a}-error`, b = k(() => {
2565
+ const o = e, s = t, r = j(null), a = fe("textarea"), d = `${a}-help`, i = `${a}-error`, b = k(() => {
2566
2566
  const h = [];
2567
2567
  return o.helpText && !o.error && h.push(d), o.error && h.push(i), h.length > 0 ? h.join(" ") : void 0;
2568
2568
  }), c = k(() => (o.modelValue || "").length), l = k(() => {
@@ -2593,29 +2593,29 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2593
2593
  return [...h, y[o.size], ...w].join(" ");
2594
2594
  }), f = (h) => {
2595
2595
  const y = h.target;
2596
- r("update:modelValue", y.value);
2596
+ s("update:modelValue", y.value);
2597
2597
  };
2598
2598
  function u() {
2599
2599
  var h;
2600
- (h = s.value) == null || h.focus();
2600
+ (h = r.value) == null || h.focus();
2601
2601
  }
2602
2602
  function m() {
2603
2603
  var h;
2604
- (h = s.value) == null || h.blur();
2604
+ (h = r.value) == null || h.blur();
2605
2605
  }
2606
- return n({ focus: u, blur: m, textareaRef: s }), (h, y) => (g(), v("div", Bo, [
2607
- e.label ? (g(), v("label", {
2606
+ return n({ focus: u, blur: m, textareaRef: r }), (h, y) => (g(), p("div", Bo, [
2607
+ e.label ? (g(), p("label", {
2608
2608
  key: 0,
2609
2609
  for: R(a),
2610
2610
  class: "block text-label mb-1"
2611
2611
  }, [
2612
- X(T(e.label) + " ", 1),
2613
- e.required ? (g(), v("span", Ro, "*")) : D("", !0)
2612
+ X(B(e.label) + " ", 1),
2613
+ e.required ? (g(), p("span", Ro, "*")) : D("", !0)
2614
2614
  ], 8, To)) : D("", !0),
2615
2615
  F("div", Oo, [
2616
2616
  F("textarea", {
2617
2617
  ref_key: "textareaRef",
2618
- ref: s,
2618
+ ref: r,
2619
2619
  id: R(a),
2620
2620
  value: e.modelValue,
2621
2621
  placeholder: e.placeholder,
@@ -2626,33 +2626,46 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2626
2626
  maxlength: e.maxLength,
2627
2627
  "aria-describedby": b.value,
2628
2628
  "aria-invalid": e.error ? "true" : void 0,
2629
- class: B(l.value),
2629
+ class: T(l.value),
2630
2630
  onInput: f,
2631
2631
  onBlur: y[0] || (y[0] = (w) => h.$emit("blur", w)),
2632
2632
  onFocus: y[1] || (y[1] = (w) => h.$emit("focus", w))
2633
2633
  }, null, 42, Vo)
2634
2634
  ]),
2635
- e.helpText || e.error || e.maxLength ? (g(), v("div", Lo, [
2636
- e.helpText && !e.error ? (g(), v("div", {
2635
+ e.helpText || e.error || e.maxLength ? (g(), p("div", Lo, [
2636
+ e.helpText && !e.error ? (g(), p("div", {
2637
2637
  key: 0,
2638
2638
  id: d,
2639
2639
  class: "text-caption"
2640
- }, T(e.helpText), 1)) : D("", !0),
2641
- e.error ? (g(), v("div", {
2640
+ }, B(e.helpText), 1)) : D("", !0),
2641
+ e.error ? (g(), p("div", {
2642
2642
  key: 1,
2643
2643
  id: i,
2644
2644
  class: "text-sm text-error font-sans",
2645
2645
  role: "alert",
2646
2646
  "aria-live": "polite"
2647
- }, T(e.error), 1)) : D("", !0),
2648
- e.maxLength ? (g(), v("div", So, T(c.value) + " / " + T(e.maxLength), 1)) : D("", !0)
2647
+ }, B(e.error), 1)) : D("", !0),
2648
+ e.maxLength ? (g(), p("div", So, B(c.value) + " / " + B(e.maxLength), 1)) : D("", !0)
2649
2649
  ])) : D("", !0)
2650
2650
  ]));
2651
2651
  }
2652
- }), zo = ["role", "aria-live"], Mo = { class: "flex items-start gap-3 flex-1 min-w-0" }, jo = { class: "flex-1 min-w-0" }, Po = {
2652
+ }), zo = { class: "flex flex-col items-center justify-center h-screen gap-4px" }, Mo = { class: "text-heading-xl text-fg m-0 p-0" }, jo = { class: "text-body-lg text-fg-secondary m-0 p-0" }, fs = /* @__PURE__ */ S({
2653
+ __name: "DsUnderConstruction",
2654
+ props: {
2655
+ title: { default: "Under Construction" },
2656
+ description: { default: "This page is under construction. Please check back later." }
2657
+ },
2658
+ setup(e) {
2659
+ return (n, t) => (g(), p("div", zo, [
2660
+ _(R(wt), { class: "w-10 h-10 text-fg-secondary" }),
2661
+ F("h2", Mo, B(e.title), 1),
2662
+ F("p", jo, B(e.description), 1)
2663
+ ]));
2664
+ }
2665
+ }), Po = ["role", "aria-live"], Io = { class: "flex items-start gap-3 flex-1 min-w-0" }, No = { class: "flex-1 min-w-0" }, Wo = {
2653
2666
  key: 0,
2654
2667
  class: "text-label m-0"
2655
- }, Io = /* @__PURE__ */ S({
2668
+ }, Ho = /* @__PURE__ */ S({
2656
2669
  __name: "DsToast",
2657
2670
  props: {
2658
2671
  toast: {}
@@ -2660,14 +2673,14 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2660
2673
  emits: ["dismiss"],
2661
2674
  setup(e, { emit: n }) {
2662
2675
  const t = e, o = n;
2663
- let r = null, s = t.toast.duration, a = 0;
2676
+ let s = null, r = t.toast.duration, a = 0;
2664
2677
  function d() {
2665
- s <= 0 || (a = Date.now(), r = setTimeout(() => {
2678
+ r <= 0 || (a = Date.now(), s = setTimeout(() => {
2666
2679
  o("dismiss", t.toast.id);
2667
- }, s));
2680
+ }, r));
2668
2681
  }
2669
2682
  function i() {
2670
- r && (clearTimeout(r), r = null, s -= Date.now() - a);
2683
+ s && (clearTimeout(s), s = null, r -= Date.now() - a);
2671
2684
  }
2672
2685
  function b() {
2673
2686
  d();
@@ -2689,29 +2702,29 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2689
2702
  warning: "text-warning",
2690
2703
  info: "text-info"
2691
2704
  }, u = k(() => ["shrink-0 mt-0.5", f[t.toast.variant] || "text-brand"].join(" "));
2692
- return Dt(() => {
2705
+ return Et(() => {
2693
2706
  t.toast.duration > 0 && d();
2694
- }), st(() => {
2695
- r && clearTimeout(r);
2696
- }), (m, h) => (g(), v("div", {
2697
- class: B(l.value),
2707
+ }), rt(() => {
2708
+ s && clearTimeout(s);
2709
+ }), (m, h) => (g(), p("div", {
2710
+ class: T(l.value),
2698
2711
  role: e.toast.variant === "error" ? "alert" : "status",
2699
2712
  "aria-live": e.toast.variant === "error" ? "assertive" : "polite",
2700
2713
  onMouseenter: i,
2701
2714
  onMouseleave: b
2702
2715
  }, [
2703
- F("div", Mo, [
2716
+ F("div", Io, [
2704
2717
  F("span", {
2705
- class: B(u.value),
2718
+ class: T(u.value),
2706
2719
  "aria-hidden": "true"
2707
2720
  }, [
2708
- e.toast.variant === "success" ? (g(), I(R(On), {
2721
+ e.toast.variant === "success" ? (g(), I(R(Vn), {
2709
2722
  key: 0,
2710
2723
  class: "w-5 h-5"
2711
2724
  })) : e.toast.variant === "error" ? (g(), I(R(Be), {
2712
2725
  key: 1,
2713
2726
  class: "w-5 h-5"
2714
- })) : e.toast.variant === "warning" ? (g(), I(R(Vn), {
2727
+ })) : e.toast.variant === "warning" ? (g(), I(R(wt), {
2715
2728
  key: 2,
2716
2729
  class: "w-5 h-5"
2717
2730
  })) : (g(), I(R(Ln), {
@@ -2719,29 +2732,29 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2719
2732
  class: "w-5 h-5"
2720
2733
  }))
2721
2734
  ], 2),
2722
- F("div", jo, [
2723
- e.toast.title ? (g(), v("p", Po, T(e.toast.title), 1)) : D("", !0),
2735
+ F("div", No, [
2736
+ e.toast.title ? (g(), p("p", Wo, B(e.toast.title), 1)) : D("", !0),
2724
2737
  F("p", {
2725
- class: B(["text-body-sm m-0", e.toast.title ? "mt-0.5" : ""])
2726
- }, T(e.toast.message), 3)
2738
+ class: T(["text-body-sm m-0", e.toast.title ? "mt-0.5" : ""])
2739
+ }, B(e.toast.message), 3)
2727
2740
  ])
2728
2741
  ]),
2729
- e.toast.closable ? (g(), v("button", {
2742
+ e.toast.closable ? (g(), p("button", {
2730
2743
  key: 0,
2731
2744
  type: "button",
2732
2745
  class: "p-1 rounded-md text-fg-tertiary hover:text-fg transition-colors shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
2733
2746
  "aria-label": "Dismiss notification",
2734
2747
  onClick: h[0] || (h[0] = (y) => m.$emit("dismiss", e.toast.id))
2735
2748
  }, [
2736
- ne(R(Be), { class: "w-4 h-4" })
2749
+ _(R(Be), { class: "w-4 h-4" })
2737
2750
  ])) : D("", !0)
2738
- ], 42, zo));
2751
+ ], 42, Po));
2739
2752
  }
2740
2753
  });
2741
- let No = 0;
2754
+ let qo = 0;
2742
2755
  const Te = j([]);
2743
2756
  function xe(e, n, t) {
2744
- const o = ++No, r = {
2757
+ const o = ++qo, s = {
2745
2758
  id: o,
2746
2759
  variant: e,
2747
2760
  message: n,
@@ -2749,16 +2762,16 @@ function xe(e, n, t) {
2749
2762
  duration: (t == null ? void 0 : t.duration) ?? 5e3,
2750
2763
  closable: (t == null ? void 0 : t.closable) ?? !0
2751
2764
  };
2752
- return Te.value.push(r), o;
2765
+ return Te.value.push(s), o;
2753
2766
  }
2754
- function Wo(e) {
2767
+ function Ko(e) {
2755
2768
  const n = Te.value.findIndex((t) => t.id === e);
2756
2769
  n !== -1 && Te.value.splice(n, 1);
2757
2770
  }
2758
- function Ho() {
2771
+ function Uo() {
2759
2772
  return {
2760
2773
  toasts: Te,
2761
- removeToast: Wo,
2774
+ removeToast: Ko,
2762
2775
  success: (e, n) => xe("success", e, n),
2763
2776
  error: (e, n) => xe("error", e, n),
2764
2777
  warning: (e, n) => xe("warning", e, n),
@@ -2766,16 +2779,16 @@ function Ho() {
2766
2779
  brand: (e, n) => xe("brand", e, n)
2767
2780
  };
2768
2781
  }
2769
- const qo = {
2782
+ const Xo = {
2770
2783
  class: "fixed top-4 right-4 z-50 flex flex-col gap-3",
2771
2784
  "aria-label": "Notifications"
2772
- }, cr = /* @__PURE__ */ S({
2785
+ }, bs = /* @__PURE__ */ S({
2773
2786
  __name: "DsToastContainer",
2774
2787
  setup(e) {
2775
- const { toasts: n, removeToast: t } = Ho();
2776
- return (o, r) => (g(), I(Oe, { to: "body" }, [
2777
- F("div", qo, [
2778
- ne(Et, {
2788
+ const { toasts: n, removeToast: t } = Uo();
2789
+ return (o, s) => (g(), I(Oe, { to: "body" }, [
2790
+ F("div", Xo, [
2791
+ _(At, {
2779
2792
  "enter-active-class": "transition-all duration-300 ease-out",
2780
2793
  "enter-from-class": "opacity-0 translate-x-8",
2781
2794
  "enter-to-class": "opacity-100 translate-x-0",
@@ -2784,9 +2797,9 @@ const qo = {
2784
2797
  "leave-to-class": "opacity-0 translate-x-8"
2785
2798
  }, {
2786
2799
  default: Re(() => [
2787
- (g(!0), v(re, null, se(R(n), (s) => (g(), I(Io, {
2788
- key: s.id,
2789
- toast: s,
2800
+ (g(!0), p(se, null, re(R(n), (r) => (g(), I(Ho, {
2801
+ key: r.id,
2802
+ toast: r,
2790
2803
  onDismiss: R(t)
2791
2804
  }, null, 8, ["toast", "onDismiss"]))), 128))
2792
2805
  ]),
@@ -2795,7 +2808,7 @@ const qo = {
2795
2808
  ])
2796
2809
  ]));
2797
2810
  }
2798
- }), Ko = ["aria-describedby"], Uo = ["id"], dr = /* @__PURE__ */ S({
2811
+ }), Yo = ["aria-describedby"], Go = ["id"], ms = /* @__PURE__ */ S({
2799
2812
  __name: "DsTooltip",
2800
2813
  props: {
2801
2814
  content: {},
@@ -2803,9 +2816,9 @@ const qo = {
2803
2816
  disabled: { type: Boolean, default: !1 }
2804
2817
  },
2805
2818
  setup(e) {
2806
- const n = e, t = fe("tooltip"), o = j(!1), r = j(null), s = j(null), a = j(null), { floatingStyles: d, middlewareData: i, placement: b } = xt(r, s, {
2819
+ const n = e, t = fe("tooltip"), o = j(!1), s = j(null), r = j(null), a = j(null), { floatingStyles: d, middlewareData: i, placement: b } = xt(s, r, {
2807
2820
  placement: k(() => n.placement),
2808
- middleware: [ht(8), pt(), vt({ padding: 8 }), Rn({ element: a })]
2821
+ middleware: [ht(8), vt(), pt({ padding: 8 }), On({ element: a })]
2809
2822
  }), c = k(() => {
2810
2823
  const u = i.value.arrow;
2811
2824
  if (!u) return {};
@@ -2822,7 +2835,7 @@ const qo = {
2822
2835
  function f() {
2823
2836
  o.value = !1;
2824
2837
  }
2825
- return (u, m) => (g(), v("div", {
2838
+ return (u, m) => (g(), p("div", {
2826
2839
  class: "inline-flex",
2827
2840
  onMouseenter: l,
2828
2841
  onMouseleave: f,
@@ -2831,13 +2844,13 @@ const qo = {
2831
2844
  }, [
2832
2845
  F("div", {
2833
2846
  ref_key: "referenceRef",
2834
- ref: r,
2847
+ ref: s,
2835
2848
  "aria-describedby": o.value ? R(t) : void 0
2836
2849
  }, [
2837
2850
  N(u.$slots, "default")
2838
- ], 8, Ko),
2851
+ ], 8, Yo),
2839
2852
  (g(), I(Oe, { to: "body" }, [
2840
- ne(at, {
2853
+ _(at, {
2841
2854
  "enter-active-class": "transition-opacity duration-150",
2842
2855
  "enter-from-class": "opacity-0",
2843
2856
  "enter-to-class": "opacity-100",
@@ -2846,30 +2859,30 @@ const qo = {
2846
2859
  "leave-to-class": "opacity-0"
2847
2860
  }, {
2848
2861
  default: Re(() => [
2849
- o.value && !e.disabled ? (g(), v("div", {
2862
+ o.value && !e.disabled ? (g(), p("div", {
2850
2863
  key: 0,
2851
2864
  id: R(t),
2852
2865
  ref_key: "floatingRef",
2853
- ref: s,
2866
+ ref: r,
2854
2867
  role: "tooltip",
2855
2868
  style: he(R(d)),
2856
2869
  class: "z-50 px-2 py-1 text-xs font-medium bg-bg-inverse text-fg-inverse rounded-md shadow-md max-w-xs pointer-events-none"
2857
2870
  }, [
2858
- X(T(e.content) + " ", 1),
2871
+ X(B(e.content) + " ", 1),
2859
2872
  F("div", {
2860
2873
  ref_key: "arrowRef",
2861
2874
  ref: a,
2862
2875
  style: he(c.value),
2863
2876
  class: "absolute w-2 h-2 bg-bg-inverse rotate-45"
2864
2877
  }, null, 4)
2865
- ], 12, Uo)) : D("", !0)
2878
+ ], 12, Go)) : D("", !0)
2866
2879
  ]),
2867
2880
  _: 1
2868
2881
  })
2869
2882
  ]))
2870
2883
  ], 32));
2871
2884
  }
2872
- }), Xo = {
2885
+ }), Jo = {
2873
2886
  // Core UI
2874
2887
  bg: "#FFFFFF",
2875
2888
  "bg-secondary": "#F8FAFC",
@@ -2977,7 +2990,7 @@ const qo = {
2977
2990
  "transcript-highlight": "#FEF3C7",
2978
2991
  "transcript-speaker": "#EDE9FE",
2979
2992
  "transcript-timestamp": "#F3F4F6"
2980
- }, Yo = {
2993
+ }, Qo = {
2981
2994
  "space-1": "4px",
2982
2995
  "space-2": "8px",
2983
2996
  "space-3": "12px",
@@ -2986,51 +2999,52 @@ const qo = {
2986
2999
  "space-6": "32px",
2987
3000
  "space-7": "48px",
2988
3001
  "space-8": "64px"
2989
- }, Go = {
3002
+ }, Zo = {
2990
3003
  "radius-sm": "4px",
2991
3004
  "radius-md": "6px",
2992
3005
  "radius-lg": "8px",
2993
3006
  "radius-xl": "12px",
2994
3007
  "radius-full": "9999px"
2995
- }, Jo = {
3008
+ }, _o = {
2996
3009
  "shadow-sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
2997
3010
  "shadow-md": "0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1)",
2998
3011
  "shadow-lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
2999
- }, ur = { ...Xo, ...Yo, ...Go, ...Jo };
3000
- function fr(e) {
3012
+ }, gs = { ...Jo, ...Qo, ...Zo, ..._o };
3013
+ function hs(e) {
3001
3014
  return `--ds-${e}`;
3002
3015
  }
3003
- function br(e, n = ":root") {
3004
- const t = Object.entries(e).map(([o, r]) => ` --ds-${o}: ${r};`).join(`
3016
+ function ps(e, n = ":root") {
3017
+ const t = Object.entries(e).map(([o, s]) => ` --ds-${o}: ${s};`).join(`
3005
3018
  `);
3006
3019
  return `${n} {
3007
3020
  ${t}
3008
3021
  }`;
3009
3022
  }
3010
3023
  export {
3011
- Zo as DsAvatar,
3012
- _o as DsBadge,
3013
- Ot as DsButton,
3014
- er as DsCheckbox,
3015
- tr as DsDropdownSelect,
3016
- nr as DsInput,
3024
+ ts as DsAvatar,
3025
+ ns as DsBadge,
3026
+ Vt as DsButton,
3027
+ os as DsCheckbox,
3028
+ ss as DsDropdownSelect,
3029
+ rs as DsInput,
3017
3030
  Jn as DsLoadingSpinner,
3018
- or as DsModal,
3019
- rr as DsRadio,
3020
- sr as DsSelect,
3021
- ar as DsTable,
3022
- lr as DsTabs,
3023
- ir as DsTextarea,
3024
- Io as DsToast,
3025
- cr as DsToastContainer,
3026
- dr as DsTooltip,
3027
- ur as allTokens,
3028
- Xo as colorTokens,
3029
- br as generateThemeCss,
3030
- Go as radiusTokens,
3031
- Jo as shadowTokens,
3032
- Yo as spacingTokens,
3033
- fr as tokenToCssVar,
3031
+ as as DsModal,
3032
+ ls as DsRadio,
3033
+ is as DsSelect,
3034
+ cs as DsTable,
3035
+ ds as DsTabs,
3036
+ us as DsTextarea,
3037
+ Ho as DsToast,
3038
+ bs as DsToastContainer,
3039
+ ms as DsTooltip,
3040
+ fs as DsUnderConstruction,
3041
+ gs as allTokens,
3042
+ Jo as colorTokens,
3043
+ ps as generateThemeCss,
3044
+ Zo as radiusTokens,
3045
+ _o as shadowTokens,
3046
+ Qo as spacingTokens,
3047
+ hs as tokenToCssVar,
3034
3048
  fe as useId,
3035
- Ho as useToast
3049
+ Uo as useToast
3036
3050
  };