@speckle/ui-components 2.25.0 → 2.25.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var as = Object.defineProperty;
2
- var rs = (e, t, o) => t in e ? as(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var Ce = (e, t, o) => (rs(e, typeof t != "symbol" ? t + "" : t, o), o);
4
- import { defineComponent as W, resolveDynamicComponent as le, computed as m, openBlock as l, createBlock as j, normalizeClass as y, normalizeStyle as ae, withCtx as R, createCommentVNode as w, renderSlot as U, createTextVNode as F, createElementBlock as u, createElementVNode as p, createVNode as A, Transition as ht, unref as r, toDisplayString as O, toRefs as xe, Fragment as Z, renderList as ee, ref as z, onMounted as re, onBeforeUnmount as lt, mergeProps as $e, mergeModels as Pe, useModel as Fe, watch as ne, withDirectives as Y, isRef as ot, withModifiers as ve, vModelText as nt, useSlots as at, vModelDynamic as is, Teleport as bt, nextTick as Et, onUnmounted as us, resolveDirective as ze, toHandlers as St, vShow as Rt, getCurrentInstance as ds, inject as cs, withKeys as Ae, defineAsyncComponent as fs } from "vue";
5
- import { isObjectLike as Ye, clamp as Pt, isBoolean as ps, noop as gt, debounce as Xe, isUndefined as Se, isArray as se, isString as Oe, throttle as ft, uniq as ms, intersection as vs, difference as hs } from "lodash";
6
- import { CheckCircleIcon as Ft, XCircleIcon as bs, ExclamationCircleIcon as rt, InformationCircleIcon as gs, XMarkIcon as Le, CheckIcon as yt, ChevronUpIcon as Dt, ChevronDownIcon as Ut, MagnifyingGlassIcon as Wt } from "@heroicons/vue/20/solid";
7
- import { wait as ys, isNullOrUndefined as xs, SourceApps as ws, getClientOperatingSystem as ks, OperatingSystem as pt, md5 as Cs } from "@speckle/shared";
2
+ var rs = (e, t, n) => t in e ? as(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Ce = (e, t, n) => (rs(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { defineComponent as W, resolveDynamicComponent as le, computed as m, openBlock as l, createBlock as j, normalizeClass as g, normalizeStyle as ae, withCtx as R, createCommentVNode as w, renderSlot as U, createTextVNode as F, createElementBlock as u, createElementVNode as p, createVNode as A, Transition as ht, unref as r, toDisplayString as O, toRefs as xe, Fragment as Z, renderList as ee, ref as z, onMounted as re, onBeforeUnmount as lt, mergeProps as $e, mergeModels as Pe, useModel as Fe, watch as ne, withDirectives as Y, isRef as ot, withModifiers as ve, vModelText as nt, useSlots as at, vModelDynamic as is, Teleport as bt, nextTick as Et, onUnmounted as us, resolveDirective as ze, toHandlers as St, vShow as Rt, getCurrentInstance as ds, inject as cs, withKeys as Ae, defineAsyncComponent as fs } from "vue";
5
+ import { isObjectLike as Ye, clamp as Pt, isBoolean as ps, noop as yt, debounce as Xe, isUndefined as Se, isArray as se, isString as Oe, throttle as ft, uniq as ms, intersection as vs, difference as hs } from "lodash";
6
+ import { CheckCircleIcon as Ft, XCircleIcon as bs, ExclamationCircleIcon as rt, InformationCircleIcon as ys, XMarkIcon as Le, CheckIcon as gt, ChevronUpIcon as Dt, ChevronDownIcon as Ut, MagnifyingGlassIcon as Wt } from "@heroicons/vue/20/solid";
7
+ import { wait as gs, isNullOrUndefined as xs, SourceApps as ws, getClientOperatingSystem as ks, OperatingSystem as pt, md5 as Cs } from "@speckle/shared";
8
8
  import { buildManualPromise as Xu } from "@speckle/shared";
9
9
  import { useField as De } from "vee-validate";
10
10
  import { nanoid as Ze } from "nanoid";
@@ -35,11 +35,11 @@ const he = /* @__PURE__ */ W({
35
35
  },
36
36
  emits: ["click"],
37
37
  setup(e, { emit: t }) {
38
- const o = t, n = e, a = le("NuxtLink"), s = le("RouterLink"), d = m(() => n.linkComponent ? n.linkComponent : n.external ? "a" : Ye(a) ? a : Ye(s) ? s : "a"), c = m(() => {
39
- if (!n.to)
40
- return n.submit ? "submit" : "button";
41
- }), v = m(() => n.disabled || n.loading), h = m(
42
- () => n.loading ? Qe : n.iconLeft
38
+ const n = t, o = e, a = le("NuxtLink"), s = le("RouterLink"), d = m(() => o.linkComponent ? o.linkComponent : o.external ? "a" : Ye(a) ? a : Ye(s) ? s : "a"), c = m(() => {
39
+ if (!o.to)
40
+ return o.submit ? "submit" : "button";
41
+ }), v = m(() => o.disabled || o.loading), h = m(
42
+ () => o.loading ? Qe : o.iconLeft
43
43
  ), f = m(() => {
44
44
  const C = [], I = {
45
45
  subtle: [
@@ -59,8 +59,8 @@ const he = /* @__PURE__ */ W({
59
59
  "hover:bg-primary-focus disabled:hover:bg-primary focus-visible:border-foundation"
60
60
  ]
61
61
  };
62
- if (n.rounded && C.push("!rounded-full"), n.text || n.link)
63
- switch (n.color) {
62
+ if (o.rounded && C.push("!rounded-full"), o.text || o.link)
63
+ switch (o.color) {
64
64
  case "subtle":
65
65
  C.push("text-foreground");
66
66
  break;
@@ -76,7 +76,7 @@ const he = /* @__PURE__ */ W({
76
76
  break;
77
77
  }
78
78
  else
79
- switch (n.color) {
79
+ switch (o.color) {
80
80
  case "subtle":
81
81
  C.push(...I.subtle);
82
82
  break;
@@ -92,8 +92,8 @@ const he = /* @__PURE__ */ W({
92
92
  break;
93
93
  }
94
94
  return C.join(" ");
95
- }), g = m(() => {
96
- switch (n.size) {
95
+ }), y = m(() => {
96
+ switch (o.size) {
97
97
  case "sm":
98
98
  return "h-6 text-body-2xs";
99
99
  case "lg":
@@ -103,10 +103,10 @@ const he = /* @__PURE__ */ W({
103
103
  return "h-8 text-body-xs";
104
104
  }
105
105
  }), i = m(() => {
106
- if (n.text || n.link)
106
+ if (o.text || o.link)
107
107
  return "p-0";
108
- const C = !!n.iconLeft, I = !!n.iconRight, M = n.hideText;
109
- switch (n.size) {
108
+ const C = !!o.iconLeft, I = !!o.iconRight, M = o.hideText;
109
+ switch (o.size) {
110
110
  case "sm":
111
111
  return M ? "w-6" : C ? "py-1 pr-2 pl-1" : I ? "py-1 pl-2 pr-1" : "px-2 py-1";
112
112
  case "lg":
@@ -122,15 +122,15 @@ const he = /* @__PURE__ */ W({
122
122
  "outline outline-2 outline-transparent",
123
123
  "transition duration-200 ease-in-out focus-visible:outline-outline-4"
124
124
  ], I = [];
125
- return !n.text && !n.link && I.push("rounded-md border"), n.fullWidth ? I.push("w-full") : n.hideText || I.push("max-w-max"), v.value && I.push("cursor-not-allowed opacity-60"), [...C, ...I].join(" ");
125
+ return !o.text && !o.link && I.push("rounded-md border"), o.fullWidth ? I.push("w-full") : o.hideText || I.push("max-w-max"), v.value && I.push("cursor-not-allowed opacity-60"), [...C, ...I].join(" ");
126
126
  }), x = m(() => [
127
127
  b.value,
128
- g.value,
128
+ y.value,
129
129
  f.value,
130
130
  i.value
131
131
  ].join(" ")), T = m(() => {
132
132
  const C = ["shrink-0"];
133
- switch (n.size) {
133
+ switch (o.size) {
134
134
  case "sm":
135
135
  C.push("h-4 w-4 p-0.5");
136
136
  break;
@@ -148,14 +148,14 @@ const he = /* @__PURE__ */ W({
148
148
  C.preventDefault(), C.stopPropagation(), C.stopImmediatePropagation();
149
149
  return;
150
150
  }
151
- o("click", C);
151
+ n("click", C);
152
152
  };
153
153
  return (C, I) => (l(), j(le(C.to ? d.value : "button"), {
154
154
  href: C.to,
155
155
  to: C.to,
156
156
  type: c.value,
157
157
  external: C.external,
158
- class: y(x.value),
158
+ class: g(x.value),
159
159
  disabled: v.value,
160
160
  role: "button",
161
161
  style: ae(
@@ -166,14 +166,14 @@ const he = /* @__PURE__ */ W({
166
166
  default: R(() => [
167
167
  h.value ? (l(), j(le(h.value), {
168
168
  key: 0,
169
- class: y(T.value)
169
+ class: g(T.value)
170
170
  }, null, 8, ["class"])) : w("", !0),
171
171
  C.hideText ? w("", !0) : U(C.$slots, "default", { key: 1 }, () => [
172
172
  I[0] || (I[0] = F("Button"))
173
173
  ]),
174
174
  C.iconRight || !C.loading ? (l(), j(le(C.iconRight), {
175
175
  key: 2,
176
- class: y(T.value)
176
+ class: g(T.value)
177
177
  }, null, 8, ["class"])) : w("", !0)
178
178
  ]),
179
179
  _: 3
@@ -233,12 +233,12 @@ const he = /* @__PURE__ */ W({
233
233
  },
234
234
  emits: ["click"],
235
235
  setup(e, { emit: t }) {
236
- const o = t, n = e, a = (s) => {
237
- if (n.disabled) {
236
+ const n = t, o = e, a = (s) => {
237
+ if (o.disabled) {
238
238
  s.preventDefault(), s.stopPropagation(), s.stopImmediatePropagation();
239
239
  return;
240
240
  }
241
- o("click", s);
241
+ n("click", s);
242
242
  };
243
243
  return (s, d) => (l(), j(he, {
244
244
  link: e.underline,
@@ -267,7 +267,7 @@ var Ee = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1]
267
267
  const bl = {
268
268
  "aria-live": "assertive",
269
269
  class: "pointer-events-none fixed top-0 right-0 left-0 bottom-0 flex items-end px-4 py-6 mt-10 sm:items-start sm:p-6 z-[60]"
270
- }, gl = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, yl = { class: "flex space-x-2" }, xl = { class: "flex-shrink-0 mt-1" }, wl = { class: "w-full min-w-[10rem]" }, kl = {
270
+ }, yl = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, gl = { class: "flex space-x-2" }, xl = { class: "flex-shrink-0 mt-1" }, wl = { class: "w-full min-w-[10rem]" }, kl = {
271
271
  key: 0,
272
272
  class: "text-foreground-2 font-medium text-body-xs"
273
273
  }, Cl = {
@@ -280,19 +280,19 @@ const bl = {
280
280
  },
281
281
  emits: ["update:notification"],
282
282
  setup(e, { emit: t }) {
283
- const o = t, n = e, a = m(
283
+ const n = t, o = e, a = m(
284
284
  () => {
285
285
  var c, v;
286
- return !((c = n.notification) != null && c.description) && !((v = n.notification) != null && v.cta);
286
+ return !((c = o.notification) != null && c.description) && !((v = o.notification) != null && v.cta);
287
287
  }
288
288
  ), s = () => {
289
- o("update:notification", null);
289
+ n("update:notification", null);
290
290
  }, d = (c) => {
291
291
  var v, h, f;
292
- (f = (h = (v = n.notification) == null ? void 0 : v.cta) == null ? void 0 : h.onClick) == null || f.call(h, c), s();
292
+ (f = (h = (v = o.notification) == null ? void 0 : v.cta) == null ? void 0 : h.onClick) == null || f.call(h, c), s();
293
293
  };
294
294
  return (c, v) => (l(), u("div", bl, [
295
- p("div", gl, [
295
+ p("div", yl, [
296
296
  A(ht, {
297
297
  "enter-active-class": "transform ease-out duration-300 transition",
298
298
  "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
@@ -304,9 +304,9 @@ const bl = {
304
304
  default: R(() => [
305
305
  c.notification ? (l(), u("div", {
306
306
  key: 0,
307
- class: y(["pointer-events-auto w-full max-w-[20rem] overflow-hidden rounded bg-foundation text-foreground shadow-lg border border-outline-2 p-3", { "pb-2": a.value }])
307
+ class: g(["pointer-events-auto w-full max-w-[20rem] overflow-hidden rounded bg-foundation text-foreground shadow-lg border border-outline-2 p-3", { "pb-2": a.value }])
308
308
  }, [
309
- p("div", yl, [
309
+ p("div", gl, [
310
310
  p("div", xl, [
311
311
  c.notification.type === r(Ee).Success ? (l(), j(r(Ft), {
312
312
  key: 0,
@@ -320,7 +320,7 @@ const bl = {
320
320
  key: 2,
321
321
  class: "text-foreground-2 h-4 w-4",
322
322
  "aria-hidden": "true"
323
- })) : c.notification.type === r(Ee).Info ? (l(), j(r(gs), {
323
+ })) : c.notification.type === r(Ee).Info ? (l(), j(r(ys), {
324
324
  key: 3,
325
325
  class: "text-foreground-2 h-4 w-4",
326
326
  "aria-hidden": "true"
@@ -387,43 +387,43 @@ const Sl = { class: "whitespace-nowrap" }, Ue = /* @__PURE__ */ W({
387
387
  },
388
388
  emits: ["click-icon"],
389
389
  setup(e, { emit: t }) {
390
- const o = t, n = e, a = m(() => n.colorClasses ? n.colorClasses : n.color === "secondary" ? "bg-highlight-3 text-foreground-2" : "bg-info-lighter text-primary-focus dark:text-foreground"), s = m(
391
- () => n.dotIconColorClasses || "text-blue-400"
390
+ const n = t, o = e, a = m(() => o.colorClasses ? o.colorClasses : o.color === "secondary" ? "bg-highlight-3 text-foreground-2" : "bg-info-lighter text-primary-focus dark:text-foreground"), s = m(
391
+ () => o.dotIconColorClasses || "text-blue-400"
392
392
  ), d = m(() => {
393
393
  const f = [
394
394
  "inline-flex items-center select-none",
395
395
  a.value,
396
- n.size === "lg" ? "px-3 py-0.5 text-body-2xs" : "p-1 text-body-3xs text-body-3xs font-medium"
396
+ o.size === "lg" ? "px-3 py-0.5 text-body-2xs" : "p-1 text-body-3xs text-body-3xs font-medium"
397
397
  ];
398
- return n.rounded ? (f.push("rounded"), f.push(
399
- n.size === "lg" ? "px-2 py-0.5 text-body-2xs" : "px-1.1 py-0.5 text-body-3xs font-medium"
398
+ return o.rounded ? (f.push("rounded"), f.push(
399
+ o.size === "lg" ? "px-2 py-0.5 text-body-2xs" : "px-1.1 py-0.5 text-body-3xs font-medium"
400
400
  )) : (f.push("rounded-full"), f.push(
401
- n.size === "lg" ? "px-2.5 py-0.5 text-body-2xs" : "px-2.5 py-0.5 text-body-3xs font-medium"
401
+ o.size === "lg" ? "px-2.5 py-0.5 text-body-2xs" : "px-2.5 py-0.5 text-body-3xs font-medium"
402
402
  )), f.join(" ");
403
403
  }), c = m(() => {
404
404
  const f = [
405
405
  "mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
406
406
  ];
407
- return n.clickableIcon ? f.push("cursor-pointer") : f.push("cursor-default"), f.join(" ");
407
+ return o.clickableIcon ? f.push("cursor-pointer") : f.push("cursor-default"), f.join(" ");
408
408
  }), v = m(() => [
409
409
  "-ml-0.5 mr-1.5 h-2 w-2",
410
410
  s.value
411
411
  ].join(" ")), h = (f) => {
412
- if (!n.clickableIcon) {
412
+ if (!o.clickableIcon) {
413
413
  f.stopPropagation(), f.stopImmediatePropagation(), f.preventDefault();
414
414
  return;
415
415
  }
416
- o("click-icon", f);
416
+ n("click-icon", f);
417
417
  };
418
- return (f, g) => (l(), u("span", {
419
- class: y(d.value)
418
+ return (f, y) => (l(), u("span", {
419
+ class: g(d.value)
420
420
  }, [
421
421
  f.dot ? (l(), u("svg", {
422
422
  key: 0,
423
- class: y(v.value),
423
+ class: g(v.value),
424
424
  fill: "currentColor",
425
425
  viewBox: "0 0 8 8"
426
- }, g[1] || (g[1] = [
426
+ }, y[1] || (y[1] = [
427
427
  p("circle", {
428
428
  cx: "4",
429
429
  cy: "4",
@@ -432,16 +432,16 @@ const Sl = { class: "whitespace-nowrap" }, Ue = /* @__PURE__ */ W({
432
432
  ]), 2)) : w("", !0),
433
433
  p("span", Sl, [
434
434
  U(f.$slots, "default", {}, () => [
435
- g[2] || (g[2] = F("Badge"))
435
+ y[2] || (y[2] = F("Badge"))
436
436
  ])
437
437
  ]),
438
438
  f.iconLeft ? (l(), u("button", {
439
439
  key: 1,
440
- class: y(c.value),
441
- onClick: g[0] || (g[0] = (i) => h(i))
440
+ class: g(c.value),
441
+ onClick: y[0] || (y[0] = (i) => h(i))
442
442
  }, [
443
443
  (l(), j(le(f.iconLeft), {
444
- class: y(["h-4 w-4", s.value])
444
+ class: g(["h-4 w-4", s.value])
445
445
  }, null, 8, ["class"]))
446
446
  ], 2)) : w("", !0)
447
447
  ], 2));
@@ -456,26 +456,26 @@ function Gt(e) {
456
456
  const {
457
457
  props: {
458
458
  modelValue: t,
459
- steps: o,
460
- orientation: n,
459
+ steps: n,
460
+ orientation: o,
461
461
  goVerticalBelow: a,
462
462
  nonInteractive: s,
463
463
  stepsPadding: d
464
464
  },
465
465
  emit: c
466
466
  } = e, v = m(
467
- () => (n == null ? void 0 : n.value) === "vertical" ? "vertical" : "horizontal"
467
+ () => (o == null ? void 0 : o.value) === "vertical" ? "vertical" : "horizontal"
468
468
  ), h = m({
469
- get: () => Pt((t == null ? void 0 : t.value) || 0, -1, o.value.length),
470
- set: ($) => c("update:modelValue", Pt($, 0, o.value.length))
471
- }), f = ($) => `${$ + 1}`, g = ($) => $ === h.value, i = ($) => $ < h.value, b = ($, C) => {
469
+ get: () => Pt((t == null ? void 0 : t.value) || 0, -1, n.value.length),
470
+ set: ($) => c("update:modelValue", Pt($, 0, n.value.length))
471
+ }), f = ($) => `${$ + 1}`, y = ($) => $ === h.value, i = ($) => $ < h.value, b = ($, C) => {
472
472
  var M;
473
473
  if (s != null && s.value) {
474
474
  C == null || C.preventDefault(), C == null || C.stopPropagation(), C == null || C.stopImmediatePropagation();
475
475
  return;
476
476
  }
477
477
  h.value = $;
478
- const I = o.value[h.value];
478
+ const I = n.value[h.value];
479
479
  (M = I == null ? void 0 : I.onClick) == null || M.call(I);
480
480
  }, x = m(() => {
481
481
  const $ = ["flex"];
@@ -495,7 +495,7 @@ function Gt(e) {
495
495
  });
496
496
  return {
497
497
  value: h,
498
- isCurrentStep: g,
498
+ isCurrentStep: y,
499
499
  isFinishedStep: i,
500
500
  switchStep: b,
501
501
  getStepDisplayValue: f,
@@ -540,7 +540,7 @@ const Ol = ["aria-label"], Ll = ["href", "onClick"], Vl = { class: "flex space-x
540
540
  },
541
541
  emits: ["update:modelValue"],
542
542
  setup(e, { emit: t }) {
543
- const o = t, n = e, {
543
+ const n = t, o = e, {
544
544
  isCurrentStep: a,
545
545
  isFinishedStep: s,
546
546
  switchStep: d,
@@ -548,15 +548,15 @@ const Ol = ["aria-label"], Ll = ["href", "onClick"], Vl = { class: "flex space-x
548
548
  listClasses: v,
549
549
  linkClasses: h
550
550
  } = Gt({
551
- props: xe(n),
552
- emit: o
551
+ props: xe(o),
552
+ emit: n
553
553
  });
554
- return (f, g) => (l(), u("nav", {
554
+ return (f, y) => (l(), u("nav", {
555
555
  class: "flex justify-center",
556
556
  "aria-label": f.ariaLabel || "Progress steps"
557
557
  }, [
558
558
  p("ol", {
559
- class: y(r(v))
559
+ class: g(r(v))
560
560
  }, [
561
561
  (l(!0), u(Z, null, ee(f.steps, (i, b) => (l(), u("li", {
562
562
  key: i.name
@@ -564,12 +564,12 @@ const Ol = ["aria-label"], Ll = ["href", "onClick"], Vl = { class: "flex space-x
564
564
  r(s)(b) ? (l(), u("a", {
565
565
  key: 0,
566
566
  href: i.href,
567
- class: y(r(h)),
567
+ class: g(r(h)),
568
568
  onClick: (x) => r(d)(b, x)
569
569
  }, [
570
570
  p("div", Vl, [
571
571
  p("div", Ml, [
572
- A(r(yt), { class: "w-4 h-4" })
572
+ A(r(gt), { class: "w-4 h-4" })
573
573
  ]),
574
574
  p("div", zl, [
575
575
  p("div", jl, O(i.name), 1),
@@ -579,7 +579,7 @@ const Ol = ["aria-label"], Ll = ["href", "onClick"], Vl = { class: "flex space-x
579
579
  ], 10, Ll)) : r(a)(b) ? (l(), u("a", {
580
580
  key: 1,
581
581
  href: i.href,
582
- class: y(r(h)),
582
+ class: g(r(h)),
583
583
  "aria-current": "step",
584
584
  onClick: (x) => r(d)(b, x)
585
585
  }, [
@@ -593,7 +593,7 @@ const Ol = ["aria-label"], Ll = ["href", "onClick"], Vl = { class: "flex space-x
593
593
  ], 10, Al)) : (l(), u("a", {
594
594
  key: 2,
595
595
  href: i.href,
596
- class: y(r(h)),
596
+ class: g(r(h)),
597
597
  onClick: (x) => r(d)(b, x)
598
598
  }, [
599
599
  p("div", Hl, [
@@ -640,70 +640,70 @@ const Ol = ["aria-label"], Ll = ["href", "onClick"], Vl = { class: "flex space-x
640
640
  },
641
641
  emits: ["update:modelValue"],
642
642
  setup(e, { emit: t }) {
643
- const o = t, n = e, { isCurrentStep: a, isFinishedStep: s, switchStep: d, listClasses: c, linkClasses: v } = Gt({
644
- props: xe(n),
645
- emit: o
643
+ const n = t, o = e, { isCurrentStep: a, isFinishedStep: s, switchStep: d, listClasses: c, linkClasses: v } = Gt({
644
+ props: xe(o),
645
+ emit: n
646
646
  }), h = m(() => {
647
- const g = ["h6 font-medium leading-7"];
647
+ const y = ["h6 font-medium leading-7"];
648
648
  let i;
649
- return n.stepsPadding === "xs" ? i = "ml-1" : n.stepsPadding === "sm" ? i = "ml-2" : i = "ml-3", g.push(i), n.basic && g.push("sr-only"), g.join(" ");
649
+ return o.stepsPadding === "xs" ? i = "ml-1" : o.stepsPadding === "sm" ? i = "ml-2" : i = "ml-3", y.push(i), o.basic && y.push("sr-only"), y.join(" ");
650
650
  }), f = m(() => {
651
- const g = [];
652
- return n.basic && g.push("basic"), g.join(" ");
651
+ const y = [];
652
+ return o.basic && y.push("basic"), y.join(" ");
653
653
  });
654
- return (g, i) => (l(), u("nav", {
654
+ return (y, i) => (l(), u("nav", {
655
655
  class: "flex justify-center",
656
- "aria-label": g.ariaLabel || "Progress steps"
656
+ "aria-label": y.ariaLabel || "Progress steps"
657
657
  }, [
658
658
  p("ol", {
659
- class: y([r(c), f.value])
659
+ class: g([r(c), f.value])
660
660
  }, [
661
- (l(!0), u(Z, null, ee(g.steps, (b, x) => (l(), u("li", {
661
+ (l(!0), u(Z, null, ee(y.steps, (b, x) => (l(), u("li", {
662
662
  key: b.name
663
663
  }, [
664
664
  r(s)(x) ? (l(), u("a", {
665
665
  key: 0,
666
666
  href: b.href,
667
- class: y(r(v)),
667
+ class: g(r(v)),
668
668
  onClick: (T) => r(d)(x, T)
669
669
  }, [
670
670
  p("span", Zl, [
671
- g.basic ? (l(), u("span", Ql)) : (l(), j(r(Ft), {
671
+ y.basic ? (l(), u("span", Ql)) : (l(), j(r(Ft), {
672
672
  key: 1,
673
673
  class: "h-full w-full text-primary",
674
674
  "aria-hidden": "true"
675
675
  }))
676
676
  ]),
677
677
  p("span", {
678
- class: y(["text-foreground", h.value])
678
+ class: g(["text-foreground", h.value])
679
679
  }, O(b.name), 3)
680
680
  ], 10, Xl)) : r(a)(x) ? (l(), u("a", {
681
681
  key: 1,
682
682
  href: b.href,
683
- class: y(r(v)),
683
+ class: g(r(v)),
684
684
  "aria-current": "step",
685
685
  onClick: (T) => r(d)(x, T)
686
686
  }, [
687
687
  p("span", Yl, [
688
- g.basic ? (l(), u("span", eo)) : (l(), u(Z, { key: 1 }, [
688
+ y.basic ? (l(), u("span", eo)) : (l(), u(Z, { key: 1 }, [
689
689
  i[0] || (i[0] = p("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1)),
690
690
  i[1] || (i[1] = p("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1))
691
691
  ], 64))
692
692
  ]),
693
693
  p("span", {
694
- class: y(["text-primary-focus", h.value])
694
+ class: g(["text-primary-focus", h.value])
695
695
  }, O(b.name), 3)
696
696
  ], 10, Jl)) : (l(), u("a", {
697
697
  key: 2,
698
698
  href: b.href,
699
- class: y(r(v)),
699
+ class: g(r(v)),
700
700
  onClick: (T) => r(d)(x, T)
701
701
  }, [
702
702
  p("div", so, [
703
- g.basic ? (l(), u("span", lo)) : (l(), u("div", oo))
703
+ y.basic ? (l(), u("span", lo)) : (l(), u("div", oo))
704
704
  ]),
705
705
  p("p", {
706
- class: y(["text-foreground-disabled", h.value])
706
+ class: g(["text-foreground-disabled", h.value])
707
707
  }, O(b.name), 3)
708
708
  ], 10, to))
709
709
  ]))), 128))
@@ -711,10 +711,10 @@ const Ol = ["aria-label"], Ll = ["href", "onClick"], Vl = { class: "flex space-x
711
711
  ], 8, Nl));
712
712
  }
713
713
  }), we = (e, t) => {
714
- const o = e.__vccOpts || e;
715
- for (const [n, a] of t)
716
- o[n] = a;
717
- return o;
714
+ const n = e.__vccOpts || e;
715
+ for (const [o, a] of t)
716
+ n[o] = a;
717
+ return n;
718
718
  }, no = {}, ao = {
719
719
  xmlns: "http://www.w3.org/2000/svg",
720
720
  class: "icon icon-tabler icon-tabler-pointer",
@@ -763,61 +763,61 @@ const po = /* @__PURE__ */ we(uo, [["render", fo]]), mo = { class: "relative asp
763
763
  slotsConfig: Array
764
764
  },
765
765
  setup(e) {
766
- const t = e, o = z(!0), n = z({ ...t.initialPosition }), a = z(!1), s = z(500), d = z(!0), c = z(t.slotsConfig || []);
767
- async function v(g) {
768
- await ys(g.duration);
766
+ const t = e, n = z(!0), o = z({ ...t.initialPosition }), a = z(!1), s = z(500), d = z(!0), c = z(t.slotsConfig || []);
767
+ async function v(y) {
768
+ await gs(y.duration);
769
769
  }
770
- function h(g) {
771
- const i = c.value.find((b) => b.name === g.slot);
770
+ function h(y) {
771
+ const i = c.value.find((b) => b.name === y.slot);
772
772
  i && (i.visible = !i.visible);
773
773
  }
774
- function f(g) {
775
- switch (g.type) {
774
+ function f(y) {
775
+ switch (y.type) {
776
776
  case "animation":
777
- n.value = { top: g.top, left: g.left }, s.value = g.duration;
777
+ o.value = { top: y.top, left: y.left }, s.value = y.duration;
778
778
  break;
779
779
  case "click":
780
780
  a.value = !0, setTimeout(() => a.value = !1, 500);
781
781
  break;
782
782
  case "delay":
783
- return v(g);
783
+ return v(y);
784
784
  case "slot":
785
- h(g);
785
+ h(y);
786
786
  break;
787
787
  }
788
788
  }
789
789
  return re(() => {
790
790
  (async () => {
791
- for (; o.value; ) {
791
+ for (; n.value; ) {
792
792
  await v({ type: "delay", duration: 800 }), d.value = !0;
793
793
  for (const i of t.actions || [])
794
794
  await f(i);
795
- d.value = !1, n.value = { ...t.initialPosition }, await v({ type: "delay", duration: 200 });
795
+ d.value = !1, o.value = { ...t.initialPosition }, await v({ type: "delay", duration: 200 });
796
796
  }
797
797
  })();
798
798
  }), lt(() => {
799
- o.value = !1;
800
- }), (g, i) => (l(), u("div", mo, [
799
+ n.value = !1;
800
+ }), (y, i) => (l(), u("div", mo, [
801
801
  p("div", {
802
802
  class: "absolute z-50 text-foreground dark:text-foundation",
803
803
  style: ae({
804
804
  transitionProperty: "all",
805
- top: n.value.top + "%",
806
- left: n.value.left + "%",
805
+ top: o.value.top + "%",
806
+ left: o.value.left + "%",
807
807
  transitionDuration: s.value + "ms"
808
808
  })
809
809
  }, [
810
810
  A(po, {
811
- class: y(["absolute -top-5 -left-4 h-12 w-12 -rotate-12 text-foreground", [{ hidden: !a.value }]])
811
+ class: g(["absolute -top-5 -left-4 h-12 w-12 -rotate-12 text-foreground", [{ hidden: !a.value }]])
812
812
  }, null, 8, ["class"]),
813
813
  A(io, { class: "absolute top-0 left-0 right-0 bottom-0 h-11 w-11" })
814
814
  ], 4),
815
815
  p("div", vo, [
816
- U(g.$slots, "background"),
816
+ U(y.$slots, "background"),
817
817
  (l(!0), u(Z, null, ee(c.value, (b) => (l(), u(Z, {
818
818
  key: b.name
819
819
  }, [
820
- b.visible ? U(g.$slots, b.name, { key: 0 }) : w("", !0)
820
+ b.visible ? U(y.$slots, b.name, { key: 0 }) : w("", !0)
821
821
  ], 64))), 128))
822
822
  ])
823
823
  ]));
@@ -829,7 +829,7 @@ const po = /* @__PURE__ */ we(uo, [["render", fo]]), mo = { class: "relative asp
829
829
  fill: "none",
830
830
  xmlns: "http://www.w3.org/2000/svg"
831
831
  };
832
- function go(e, t) {
832
+ function yo(e, t) {
833
833
  return l(), u("svg", bo, t[0] || (t[0] = [
834
834
  p("path", {
835
835
  d: "M22.5 11.268C23.8333 12.0378 23.8333 13.9622 22.5 14.732L3.75 25.5574C2.41667 26.3272 0.750004 25.3649 0.750005 23.8253L0.750005 2.17468C0.750006 0.635079 2.41667 -0.327169 3.75001 0.442631L22.5 11.268Z",
@@ -837,7 +837,7 @@ function go(e, t) {
837
837
  }, null, -1)
838
838
  ]));
839
839
  }
840
- const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative aspect-video w-full" }, wo = ["title", "src"], ko = { class: "absolute top-0 left-0 w-full h-full bg-foundation pointer-events-none" }, Co = ["src", "alt"], $o = ["src", "alt"], Io = { class: "relative z-10 bg-primary group-hover:bg-primary-focus h-28 w-28 rounded-full border-[4px] border-white flex items-center justify-center shadow-md" }, ru = /* @__PURE__ */ W({
840
+ const go = /* @__PURE__ */ we(ho, [["render", yo]]), xo = { class: "relative aspect-video w-full" }, wo = ["title", "src"], ko = { class: "absolute top-0 left-0 w-full h-full bg-foundation pointer-events-none" }, Co = ["src", "alt"], $o = ["src", "alt"], Io = { class: "relative z-10 bg-primary group-hover:bg-primary-focus h-28 w-28 rounded-full border-[4px] border-white flex items-center justify-center shadow-md" }, ru = /* @__PURE__ */ W({
841
841
  __name: "VimeoEmbed",
842
842
  props: {
843
843
  vimeoId: {},
@@ -850,9 +850,9 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
850
850
  placeholderAlt: {}
851
851
  },
852
852
  emits: ["onPlay"],
853
- setup(e, { expose: t, emit: o }) {
854
- const n = o, s = z(e.autoplay || !1), d = () => {
855
- s.value = !0, n("onPlay");
853
+ setup(e, { expose: t, emit: n }) {
854
+ const o = n, s = z(e.autoplay || !1), d = () => {
855
+ s.value = !0, o("onPlay");
856
856
  };
857
857
  return t({
858
858
  play: d
@@ -885,7 +885,7 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
885
885
  }, null, 8, $o)) : w("", !0)
886
886
  ]),
887
887
  p("div", Io, [
888
- A(yo, { class: "h-10 w-10 ml-2 text-white" })
888
+ A(go, { class: "h-10 w-10 ml-2 text-white" })
889
889
  ])
890
890
  ])) : w("", !0)
891
891
  ]));
@@ -898,23 +898,23 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
898
898
  },
899
899
  emits: ["update:modelValue", "click"],
900
900
  setup(e, { emit: t }) {
901
- const o = t, n = e, a = m(() => {
901
+ const n = t, o = e, a = m(() => {
902
902
  const d = [
903
903
  "h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
904
904
  "normal px-16 py-5 shadow rounded transition active:scale-95"
905
905
  ];
906
- return n.disabled ? d.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (d.push(
907
- n.modelValue ? "bg-primary-focus text-foreground-on-primary" : "bg-foundation text-foreground"
906
+ return o.disabled ? d.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (d.push(
907
+ o.modelValue ? "bg-primary-focus text-foreground-on-primary" : "bg-foundation text-foreground"
908
908
  ), d.push("ring-outline-2 hover:ring-4")), d.join(" ");
909
909
  }), s = (d) => {
910
- if (n.disabled) {
910
+ if (o.disabled) {
911
911
  d.preventDefault(), d.stopPropagation(), d.stopImmediatePropagation();
912
912
  return;
913
913
  }
914
- o("update:modelValue", !n.modelValue), o("click", d);
914
+ n("update:modelValue", !o.modelValue), n("click", d);
915
915
  };
916
916
  return (d, c) => (l(), u("button", {
917
- class: y(a.value),
917
+ class: g(a.value),
918
918
  disabled: d.disabled,
919
919
  onClick: s
920
920
  }, [
@@ -1026,7 +1026,7 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1026
1026
  },
1027
1027
  emits: ["update:modelValue"],
1028
1028
  setup(e) {
1029
- const t = e, o = ($) => `${$}-${Ze()}`, n = m(() => t.value || t.name), {
1029
+ const t = e, n = ($) => `${$}-${Ze()}`, o = m(() => t.value || t.name), {
1030
1030
  checked: a,
1031
1031
  errorMessage: s,
1032
1032
  handleChange: d,
@@ -1034,12 +1034,12 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1034
1034
  } = De(t.name, t.rules, {
1035
1035
  validateOnMount: t.validateOnMount,
1036
1036
  type: "checkbox",
1037
- checkedValue: n,
1037
+ checkedValue: o,
1038
1038
  initialValue: t.modelValue || void 0
1039
- }), v = m(() => t.label || t.name), h = m(() => t.description || s.value), f = m(() => `${t.name}-description`), g = m(() => {
1039
+ }), v = m(() => t.label || t.name), h = m(() => t.description || s.value), f = m(() => `${t.name}-description`), y = m(() => {
1040
1040
  const $ = ["text-body-2xs"];
1041
1041
  return t.inlineDescription ? $.push("inline ml-2") : $.push("block"), s.value ? $.push("text-danger") : $.push("text-foreground-2"), $.join(" ");
1042
- }), i = z(o("checkbox")), b = m(() => t.id || i.value), x = m(() => {
1042
+ }), i = z(n("checkbox")), b = m(() => t.id || i.value), x = m(() => {
1043
1043
  const $ = [
1044
1044
  "h-3.5 w-3.5 rounded",
1045
1045
  "border bg-foundation text-primary",
@@ -1054,10 +1054,10 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1054
1054
  const $ = t.modelValue, C = c.value, I = Array.isArray($) ? $.includes(t.value) : $ === t.value, M = Array.isArray(C) ? C.includes(t.value) : C === t.value;
1055
1055
  I !== M && d($);
1056
1056
  }), ($, C) => (l(), u("div", {
1057
- class: y(["relative flex", e.labelPosition === "left" ? "flex-row-reverse items-center" : "items-start"])
1057
+ class: g(["relative flex", e.labelPosition === "left" ? "flex-row-reverse items-center" : "items-start"])
1058
1058
  }, [
1059
1059
  p("div", {
1060
- class: y(["flex h-6 items-center", e.labelPosition === "left" ? "w-1/2 justify-end mr-2" : ""])
1060
+ class: g(["flex h-6 items-center", e.labelPosition === "left" ? "w-1/2 justify-end mr-2" : ""])
1061
1061
  }, [
1062
1062
  p("input", $e({
1063
1063
  id: b.value,
@@ -1065,26 +1065,26 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1065
1065
  "aria-describedby": f.value,
1066
1066
  name: e.name,
1067
1067
  disabled: e.disabled,
1068
- value: n.value,
1068
+ value: o.value,
1069
1069
  type: "checkbox",
1070
1070
  class: x.value
1071
1071
  }, $.$attrs, { onChange: T }), null, 16, So)
1072
1072
  ], 2),
1073
1073
  p("div", {
1074
- class: y(["text-sm", e.labelPosition === "left" ? "w-1/2" : "ml-2"])
1074
+ class: g(["text-sm", e.labelPosition === "left" ? "w-1/2" : "ml-2"])
1075
1075
  }, [
1076
1076
  p("label", {
1077
1077
  for: b.value,
1078
- class: y({ "sr-only": e.hideLabel })
1078
+ class: g({ "sr-only": e.hideLabel })
1079
1079
  }, [
1080
1080
  p("span", {
1081
- class: y(["text-body-xs text-foreground font-medium", e.labelClasses])
1081
+ class: g(["text-body-xs text-foreground font-medium", e.labelClasses])
1082
1082
  }, O(v.value), 3),
1083
1083
  e.showRequired ? (l(), u("span", Oo, "*")) : w("", !0),
1084
1084
  h.value ? (l(), u("p", {
1085
1085
  key: 1,
1086
1086
  id: f.value,
1087
- class: y(g.value)
1087
+ class: g(y.value)
1088
1088
  }, O(h.value), 11, Lo)) : w("", !0)
1089
1089
  ], 10, Po)
1090
1090
  ], 2)
@@ -1193,7 +1193,7 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1193
1193
  },
1194
1194
  emits: ["update:modelValue"],
1195
1195
  setup(e) {
1196
- const t = e, o = ($) => `${$}-${Ze()}`, n = m(() => t.value || t.name), {
1196
+ const t = e, n = ($) => `${$}-${Ze()}`, o = m(() => t.value || t.name), {
1197
1197
  checked: a,
1198
1198
  errorMessage: s,
1199
1199
  handleChange: d,
@@ -1201,47 +1201,47 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1201
1201
  } = De(t.name, t.rules, {
1202
1202
  validateOnMount: t.validateOnMount,
1203
1203
  type: "radio",
1204
- checkedValue: n,
1204
+ checkedValue: o,
1205
1205
  initialValue: t.modelValue || void 0
1206
- }), v = m(() => t.label || t.name), h = m(() => s.value ? "border-danger-lighter" : "border-foreground-4 "), f = m(() => t.description || s.value), g = m(() => `${t.name}-description`), i = m(() => {
1206
+ }), v = m(() => t.label || t.name), h = m(() => s.value ? "border-danger-lighter" : "border-foreground-4 "), f = m(() => t.description || s.value), y = m(() => `${t.name}-description`), i = m(() => {
1207
1207
  const $ = ["text-body-3xs"];
1208
1208
  return s.value ? $.push("text-danger") : $.push("text-foreground-2"), $.join(" ");
1209
- }), b = z(o("radio")), x = m(() => t.id || b.value), T = ($) => {
1209
+ }), b = z(n("radio")), x = m(() => t.id || b.value), T = ($) => {
1210
1210
  t.disabled || d($);
1211
1211
  };
1212
1212
  return re(() => {
1213
1213
  const $ = t.modelValue, C = c.value, I = Array.isArray($) ? $.includes(t.value) : $ === t.value, M = Array.isArray(C) ? C.includes(t.value) : C === t.value;
1214
1214
  I !== M && d($);
1215
1215
  }), ($, C) => (l(), u("div", {
1216
- class: y(["relative flex space-x-2 mb-2 last:mb-0", e.description && e.inlineDescription ? "items-start" : "items-center"])
1216
+ class: g(["relative flex space-x-2 mb-2 last:mb-0", e.description && e.inlineDescription ? "items-start" : "items-center"])
1217
1217
  }, [
1218
1218
  p("div", {
1219
- class: y(["flex items-center", e.size === "sm" ? "h-4" : "h-6"])
1219
+ class: g(["flex items-center", e.size === "sm" ? "h-4" : "h-6"])
1220
1220
  }, [
1221
1221
  p("input", $e({
1222
1222
  id: x.value,
1223
1223
  checked: r(a),
1224
- "aria-describedby": g.value,
1224
+ "aria-describedby": y.value,
1225
1225
  name: e.name,
1226
1226
  disabled: e.disabled,
1227
- value: n.value,
1227
+ value: o.value,
1228
1228
  type: "radio",
1229
1229
  class: ["h-4 w-4 rounded-full text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", h.value]
1230
1230
  }, $.$attrs, { onChange: T }), null, 16, Mo)
1231
1231
  ], 2),
1232
1232
  p("div", {
1233
- class: y([
1233
+ class: g([
1234
1234
  e.inlineDescription ? "flex space-x-2 items-center" : "",
1235
1235
  e.size === "sm" ? "text-body-2xs" : "text-body-xs"
1236
1236
  ])
1237
1237
  }, [
1238
1238
  p("label", {
1239
1239
  for: x.value,
1240
- class: y(["text-foreground flex space-x-2 items-center", { "sr-only": e.hideLabel }])
1240
+ class: g(["text-foreground flex space-x-2 items-center", { "sr-only": e.hideLabel }])
1241
1241
  }, [
1242
1242
  e.icon ? (l(), u("div", jo, [
1243
1243
  (l(), j(le(e.icon), {
1244
- class: y([
1244
+ class: g([
1245
1245
  e.size === "sm" ? "h-6 sm:h-8 w-6 sm:w-8" : "h-8 w-8 sm:h-10 sm:w-10"
1246
1246
  ])
1247
1247
  }, null, 8, ["class"]))
@@ -1250,16 +1250,16 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1250
1250
  p("span", Ao, O(v.value), 1),
1251
1251
  f.value && !e.inlineDescription ? (l(), u("p", {
1252
1252
  key: 0,
1253
- id: g.value,
1254
- class: y(i.value)
1253
+ id: y.value,
1254
+ class: g(i.value)
1255
1255
  }, O(f.value), 11, Eo)) : w("", !0)
1256
1256
  ]),
1257
1257
  e.showRequired ? (l(), u("span", Ro, "*")) : w("", !0)
1258
1258
  ], 10, zo),
1259
1259
  f.value && e.inlineDescription ? (l(), u("p", {
1260
1260
  key: 0,
1261
- id: g.value,
1262
- class: y(i.value)
1261
+ id: y.value,
1262
+ class: g(i.value)
1263
1263
  }, O(f.value), 11, Fo)) : w("", !0)
1264
1264
  ], 2)
1265
1265
  ], 2));
@@ -1295,12 +1295,12 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1295
1295
  }),
1296
1296
  emits: ["update:modelValue"],
1297
1297
  setup(e) {
1298
- const t = e, o = Fe(e, "modelValue"), n = (a) => {
1299
- o.value = a;
1298
+ const t = e, n = Fe(e, "modelValue"), o = (a) => {
1299
+ n.value = a;
1300
1300
  };
1301
1301
  return (a, s) => (l(), u("div", Do, [
1302
1302
  p("div", {
1303
- class: y([
1303
+ class: g([
1304
1304
  "flex items-stretch w-full",
1305
1305
  a.isStacked ? "flex-col space-y-3 " : "flex-col sm:flex-row space-y-3 sm:space-y-0 sm:space-x-3"
1306
1306
  ])
@@ -1310,18 +1310,18 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1310
1310
  class: "w-full flex flex-col"
1311
1311
  }, [
1312
1312
  p("button", {
1313
- class: y(["bg-foundation relative w-full h-full select-none rounded-md border shadow", [
1314
- o.value === d.value ? "border-outline-4" : "border-outline-2",
1313
+ class: g(["bg-foundation relative w-full h-full select-none rounded-md border shadow", [
1314
+ n.value === d.value ? "border-outline-4" : "border-outline-2",
1315
1315
  a.disabled || d.disabled ? "opacity-60 cursor-not-allowed" : "hover:border-outline-1"
1316
1316
  ]]),
1317
1317
  disabled: a.disabled || d.disabled,
1318
- onClick: (c) => n(d.value)
1318
+ onClick: (c) => o(d.value)
1319
1319
  }, [
1320
1320
  p("div", {
1321
- class: y(["flex flex-col space-y-2 h-full", t.size === "sm" ? "p-3" : "p-4 "])
1321
+ class: g(["flex flex-col space-y-2 h-full", t.size === "sm" ? "p-3" : "p-4 "])
1322
1322
  }, [
1323
1323
  p("div", {
1324
- class: y(["flex justify-between gap-x-3", d.icon ? "items-start" : "items-center"])
1324
+ class: g(["flex justify-between gap-x-3", d.icon ? "items-start" : "items-center"])
1325
1325
  }, [
1326
1326
  p("div", Wo, [
1327
1327
  d.icon ? (l(), j(le(d.icon), {
@@ -1330,13 +1330,13 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1330
1330
  })) : w("", !0),
1331
1331
  p("div", Ho, [
1332
1332
  p("h4", {
1333
- class: y(["text-foreground", t.size === "sm" ? "text-heading-sm" : "text-heading"])
1333
+ class: g(["text-foreground", t.size === "sm" ? "text-heading-sm" : "text-heading"])
1334
1334
  }, O(d.title), 3),
1335
1335
  d.subtitle ? (l(), u("h5", qo, O(d.subtitle), 1)) : w("", !0)
1336
1336
  ])
1337
1337
  ]),
1338
1338
  p("div", Ko, [
1339
- o.value === d.value ? (l(), u("div", _o)) : w("", !0)
1339
+ n.value === d.value ? (l(), u("div", _o)) : w("", !0)
1340
1340
  ])
1341
1341
  ], 2),
1342
1342
  d.introduction ? (l(), u("div", Go, O(d.introduction), 1)) : w("", !0),
@@ -1364,7 +1364,7 @@ const yo = /* @__PURE__ */ we(ho, [["render", go]]), xo = { class: "relative asp
1364
1364
  }
1365
1365
  });
1366
1366
  function kt(e) {
1367
- const { props: t, inputEl: o, emit: n, options: a } = e, { value: s, errorMessage: d } = De(
1367
+ const { props: t, inputEl: n, emit: o, options: a } = e, { value: s, errorMessage: d } = De(
1368
1368
  t.name,
1369
1369
  t.rules,
1370
1370
  {
@@ -1393,11 +1393,11 @@ function kt(e) {
1393
1393
  return E === "foundation" ? k.push(
1394
1394
  "bg-foundation !border border-outline-2 hover:border-outline-5 focus-visible:border-outline-4 !ring-0 focus-visible:!outline-0"
1395
1395
  ) : E === "transparent" ? k.push("bg-transparent") : k.push("bg-foundation-page"), k.join(" ");
1396
- }), f = z(Ze()), g = m(() => r(t.label) || r(t.name)), i = m(() => {
1396
+ }), f = z(Ze()), y = m(() => r(t.label) || r(t.name)), i = m(() => {
1397
1397
  if (r(t.customErrorMessage))
1398
1398
  return r(t.customErrorMessage);
1399
1399
  const k = d.value;
1400
- return !k || !r(t.useLabelInErrors) ? k : k.replace("Value", g.value);
1400
+ return !k || !r(t.useLabelInErrors) ? k : k.replace("Value", y.value);
1401
1401
  }), b = m(() => !!i.value), x = m(
1402
1402
  () => i.value && r(t.hideErrorMessage)
1403
1403
  ), T = m(() => i.value || r(t.help)), $ = m(() => !!T.value), C = m(() => r(t.customHelpClass)), I = m(
@@ -1410,17 +1410,17 @@ function kt(e) {
1410
1410
  return r(t.showClear) ? (((k = s.value) == null ? void 0 : k.length) || 0) > 0 : !1;
1411
1411
  }), P = () => {
1412
1412
  var k;
1413
- (k = o.value) == null || k.focus();
1413
+ (k = n.value) == null || k.focus();
1414
1414
  }, B = () => {
1415
1415
  var k;
1416
- s.value = se(s.value) ? [] : "", (k = a == null ? void 0 : a.customClear) == null || k.call(a), n("change", { value: s.value }), n("clear");
1416
+ s.value = se(s.value) ? [] : "", (k = a == null ? void 0 : a.customClear) == null || k.call(a), o("change", { value: s.value }), o("clear");
1417
1417
  };
1418
1418
  return re(() => {
1419
1419
  r(t.autoFocus) && P();
1420
1420
  }), {
1421
1421
  coreInputClasses: v,
1422
1422
  coreClasses: h,
1423
- title: g,
1423
+ title: y,
1424
1424
  value: s,
1425
1425
  helpTipId: I,
1426
1426
  helpTipClasses: M,
@@ -1435,7 +1435,7 @@ function kt(e) {
1435
1435
  };
1436
1436
  }
1437
1437
  function cu(e) {
1438
- const { debouncedBy: t = 1e3, isBasicHtmlInput: o = !1, submitOnEnter: n } = e || {}, a = e != null && e.debug ? ps(e.debug) ? console.debug : e.debug : gt, s = (e == null ? void 0 : e.model) || z(""), d = z(s.value), c = (i) => {
1438
+ const { debouncedBy: t = 1e3, isBasicHtmlInput: n = !1, submitOnEnter: o } = e || {}, a = e != null && e.debug ? ps(e.debug) ? console.debug : e.debug : yt, s = (e == null ? void 0 : e.model) || z(""), d = z(s.value), c = (i) => {
1439
1439
  if (Oe(i))
1440
1440
  return i;
1441
1441
  if ("value" in i)
@@ -1444,7 +1444,7 @@ function cu(e) {
1444
1444
  return (b == null ? void 0 : b.value) || "";
1445
1445
  }, v = Xe((i) => {
1446
1446
  s.value = i, a("Value updated: " + i);
1447
- }, t), h = o ? "input" : "update:modelValue", f = {
1447
+ }, t), h = n ? "input" : "update:modelValue", f = {
1448
1448
  [h]: (i) => {
1449
1449
  const b = c(i);
1450
1450
  d.value = b, v(b), a(`Input event [${h}] triggered: ${b}`);
@@ -1457,18 +1457,18 @@ function cu(e) {
1457
1457
  v.cancel(), s.value = b, d.value = b, a("Change event: " + b);
1458
1458
  },
1459
1459
  keydown: (i) => {
1460
- if (!o || Se(n) || !(i.key === "Enter"))
1460
+ if (!n || Se(o) || !(i.key === "Enter"))
1461
1461
  return;
1462
- i.target instanceof HTMLTextAreaElement ? n && (a("Triggering submit on enter"), i.preventDefault(), i.stopPropagation(), f.change(i)) : n || (a("Preventing submit on enter"), i.preventDefault(), i.stopPropagation());
1462
+ i.target instanceof HTMLTextAreaElement ? o && (a("Triggering submit on enter"), i.preventDefault(), i.stopPropagation(), f.change(i)) : o || (a("Preventing submit on enter"), i.preventDefault(), i.stopPropagation());
1463
1463
  }
1464
- }, g = m(() => ({
1464
+ }, y = m(() => ({
1465
1465
  modelValue: d.value || ""
1466
1466
  }));
1467
1467
  return ne(s, (i, b) => {
1468
1468
  b === i && !b && !i || d.value !== s.value && (d.value = s.value);
1469
1469
  }), {
1470
1470
  on: f,
1471
- bind: g,
1471
+ bind: y,
1472
1472
  value: s
1473
1473
  };
1474
1474
  }
@@ -1501,25 +1501,25 @@ const Qo = ["for"], Jo = {
1501
1501
  wrapperClasses: { default: "" }
1502
1502
  },
1503
1503
  emits: ["update:modelValue", "change", "input", "clear"],
1504
- setup(e, { expose: t, emit: o }) {
1505
- const n = o, a = e, s = z(null), {
1504
+ setup(e, { expose: t, emit: n }) {
1505
+ const o = n, a = e, s = z(null), {
1506
1506
  coreClasses: d,
1507
1507
  title: c,
1508
1508
  value: v,
1509
1509
  helpTipClasses: h,
1510
1510
  helpTip: f,
1511
- errorMessage: g,
1511
+ errorMessage: y,
1512
1512
  labelClasses: i,
1513
1513
  clear: b,
1514
1514
  focus: x,
1515
1515
  shouldShowClear: T
1516
1516
  } = kt({
1517
1517
  props: xe(a),
1518
- emit: n,
1518
+ emit: o,
1519
1519
  inputEl: s
1520
1520
  }), $ = m(() => `${a.name}-help-top`), C = m(() => `${a.name}-help-left`), I = m(() => {
1521
1521
  const P = ["pl-2"];
1522
- return T.value && g.value ? P.push("pr-12") : (T.value || g.value) && P.push("pr-8"), P.join(" ");
1522
+ return T.value && y.value ? P.push("pr-12") : (T.value || y.value) && P.push("pr-8"), P.join(" ");
1523
1523
  }), M = m(() => {
1524
1524
  switch (a.size) {
1525
1525
  case "sm":
@@ -1539,16 +1539,16 @@ const Qo = ["for"], Jo = {
1539
1539
  ), P.join(" ");
1540
1540
  });
1541
1541
  return t({ focus: x }), (P, B) => (l(), u("div", {
1542
- class: y(S.value)
1542
+ class: g(S.value)
1543
1543
  }, [
1544
1544
  p("div", {
1545
- class: y(
1545
+ class: g(
1546
1546
  P.labelPosition === "left" ? "w-full md:w-6/12 flex flex-col justify-center" : "w-full"
1547
1547
  )
1548
1548
  }, [
1549
1549
  p("label", {
1550
1550
  for: P.name,
1551
- class: y(r(i))
1551
+ class: g(r(i))
1552
1552
  }, [
1553
1553
  p("span", null, O(r(c)), 1),
1554
1554
  P.showRequired ? w("", !0) : (l(), u("div", Jo, "(optional)"))
@@ -1556,11 +1556,11 @@ const Qo = ["for"], Jo = {
1556
1556
  P.labelPosition === "left" && C.value ? (l(), u("span", {
1557
1557
  key: 0,
1558
1558
  id: C.value,
1559
- class: y(r(h))
1559
+ class: g(r(h))
1560
1560
  }, O(r(f)), 11, Yo)) : w("", !0)
1561
1561
  ], 2),
1562
1562
  p("div", {
1563
- class: y(["relative", P.labelPosition === "left" ? "w-full md:w-6/12" : "w-full"])
1563
+ class: g(["relative", P.labelPosition === "left" ? "w-full md:w-6/12" : "w-full"])
1564
1564
  }, [
1565
1565
  Y(p("textarea", $e({
1566
1566
  id: P.name,
@@ -1577,7 +1577,7 @@ const Qo = ["for"], Jo = {
1577
1577
  ],
1578
1578
  placeholder: P.placeholder,
1579
1579
  disabled: P.disabled,
1580
- "aria-invalid": r(g) ? "true" : "false",
1580
+ "aria-invalid": r(y) ? "true" : "false",
1581
1581
  "aria-describedby": P.labelPosition === "left" ? C.value : $.value
1582
1582
  }, P.$attrs, {
1583
1583
  onChange: B[1] || (B[1] = (k) => P.$emit("change", { event: k, value: r(v) })),
@@ -1606,7 +1606,7 @@ const Qo = ["for"], Jo = {
1606
1606
  P.labelPosition === "top" && $.value ? (l(), u("p", {
1607
1607
  key: 0,
1608
1608
  id: $.value,
1609
- class: y(["mt-1.5", r(h)])
1609
+ class: g(["mt-1.5", r(h)])
1610
1610
  }, O(r(f)), 11, tn)) : w("", !0)
1611
1611
  ], 2));
1612
1612
  }
@@ -1800,13 +1800,13 @@ const Qo = ["for"], Jo = {
1800
1800
  }
1801
1801
  },
1802
1802
  emits: ["update:modelValue", "change", "input", "clear", "focus", "blur", "rightIconClick"],
1803
- setup(e, { expose: t, emit: o }) {
1804
- const n = e, a = o, s = at(), d = z(null), {
1803
+ setup(e, { expose: t, emit: n }) {
1804
+ const o = e, a = n, s = at(), d = z(null), {
1805
1805
  coreClasses: c,
1806
1806
  title: v,
1807
1807
  value: h,
1808
1808
  helpTipId: f,
1809
- helpTipClasses: g,
1809
+ helpTipClasses: y,
1810
1810
  helpTip: i,
1811
1811
  hideHelpTip: b,
1812
1812
  errorMessage: x,
@@ -1815,7 +1815,7 @@ const Qo = ["for"], Jo = {
1815
1815
  labelClasses: C,
1816
1816
  shouldShowClear: I
1817
1817
  } = kt({
1818
- props: xe(n),
1818
+ props: xe(o),
1819
1819
  emit: a,
1820
1820
  inputEl: d
1821
1821
  }), M = m(() => {
@@ -1823,9 +1823,9 @@ const Qo = ["for"], Jo = {
1823
1823
  return x.value ? E.push("text-danger") : E.push("text-foreground-2"), E.join(" ");
1824
1824
  }), S = m(() => {
1825
1825
  const E = [];
1826
- return n.customIcon && E.push("pl-8"), s["input-right"] || (n.rightIcon || x.value || I.value) && E.push("pr-8"), E.join(" ");
1826
+ return o.customIcon && E.push("pl-8"), s["input-right"] || (o.rightIcon || x.value || I.value) && E.push("pr-8"), E.join(" ");
1827
1827
  }), P = m(() => {
1828
- switch (n.size) {
1828
+ switch (o.size) {
1829
1829
  case "sm":
1830
1830
  return "h-6 text-body sm:text-body-sm";
1831
1831
  case "lg":
@@ -1837,22 +1837,22 @@ const Qo = ["for"], Jo = {
1837
1837
  return "h-8 text-body sm:text-body-sm";
1838
1838
  }
1839
1839
  }), B = m(() => {
1840
- const E = ["flex", n.wrapperClasses];
1841
- return n.fullWidth && E.push("w-full"), n.labelPosition === "top" && E.push("flex-col"), n.labelPosition === "left" && E.push("w-full space-y-1 sm:space-y-0 sm:space-x-8 flex-col sm:flex-row"), E.join(" ");
1840
+ const E = ["flex", o.wrapperClasses];
1841
+ return o.fullWidth && E.push("w-full"), o.labelPosition === "top" && E.push("flex-col"), o.labelPosition === "left" && E.push("w-full space-y-1 sm:space-y-0 sm:space-x-8 flex-col sm:flex-row"), E.join(" ");
1842
1842
  }), k = () => {
1843
1843
  a("rightIconClick");
1844
1844
  };
1845
1845
  return t({ focus: $ }), (E, H) => (l(), u("div", {
1846
- class: y(B.value)
1846
+ class: g(B.value)
1847
1847
  }, [
1848
1848
  p("div", {
1849
- class: y(
1849
+ class: g(
1850
1850
  e.labelPosition === "left" ? "w-full md:w-6/12 flex flex-col justify-center" : "w-full"
1851
1851
  )
1852
1852
  }, [
1853
1853
  p("label", {
1854
1854
  for: e.name,
1855
- class: y(r(C))
1855
+ class: g(r(C))
1856
1856
  }, [
1857
1857
  p("span", null, O(r(v)), 1),
1858
1858
  e.showRequired ? (l(), u("div", ln, "*")) : e.showOptional ? (l(), u("div", on, "(optional)")) : w("", !0)
@@ -1860,16 +1860,16 @@ const Qo = ["for"], Jo = {
1860
1860
  e.labelPosition === "left" && r(f) && !r(b) ? (l(), u("p", {
1861
1861
  key: 0,
1862
1862
  id: r(f),
1863
- class: y(r(g))
1863
+ class: g(r(y))
1864
1864
  }, O(r(i)), 11, nn)) : w("", !0)
1865
1865
  ], 2),
1866
1866
  p("div", {
1867
- class: y(["group relative", e.labelPosition === "left" ? "w-full md:w-6/12" : "w-full"])
1867
+ class: g(["group relative", e.labelPosition === "left" ? "w-full md:w-6/12" : "w-full"])
1868
1868
  }, [
1869
1869
  e.customIcon ? (l(), u("div", an, [
1870
1870
  e.customIcon ? (l(), j(le(e.customIcon), {
1871
1871
  key: 0,
1872
- class: y(M.value),
1872
+ class: g(M.value),
1873
1873
  "aria-hidden": "true"
1874
1874
  }, null, 8, ["class"])) : w("", !0)
1875
1875
  ])) : w("", !0),
@@ -1908,7 +1908,7 @@ const Qo = ["for"], Jo = {
1908
1908
  e.rightIcon ? (l(), u("a", {
1909
1909
  key: 0,
1910
1910
  title: e.rightIconTitle,
1911
- class: y([[
1911
+ class: g([[
1912
1912
  P.value,
1913
1913
  e.readOnly ? "w-full cursor-text border border-transparent group-hover:border-outline-5 rounded-md" : "cursor-pointer"
1914
1914
  ], "absolute top-0 right-0 hidden group-hover:flex items-center justify-end pr-1 text-foreground-2"]),
@@ -1936,23 +1936,23 @@ const Qo = ["for"], Jo = {
1936
1936
  })
1937
1937
  ], 32)) : !e.showLabel && e.showRequired && !r(x) ? (l(), u("div", {
1938
1938
  key: 2,
1939
- class: y(["pointer-events-none absolute top-0 bottom-0 mt-2 text-body right-0 flex items-center text-danger pr-2.5", [r(I) ? "pr-8" : "pr-2"]])
1939
+ class: g(["pointer-events-none absolute top-0 bottom-0 mt-2 text-body right-0 flex items-center text-danger pr-2.5", [r(I) ? "pr-8" : "pr-2"]])
1940
1940
  }, " * ", 2)) : w("", !0)
1941
1941
  ])
1942
1942
  ], 2),
1943
1943
  e.labelPosition === "top" && r(f) && !r(b) ? (l(), u("p", {
1944
1944
  key: 0,
1945
1945
  id: r(f),
1946
- class: y(["mt-1.5", r(g)])
1946
+ class: g(["mt-1.5", r(y)])
1947
1947
  }, O(r(i)), 11, fn)) : w("", !0)
1948
1948
  ], 2));
1949
1949
  }
1950
- }), Xt = /^https?:\/\//, it = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, pn = (e) => (e || "").match(it) ? !0 : "Value should be a valid e-mail address", mn = (e) => (e || "").match(it) || !e ? !0 : "Value should be a valid e-mail address", vn = (e) => (e || "").split(",").map((n) => n.trim()).every((n) => n.match(it)) || "Value should be one or multiple comma-delimited e-mail addresses", hn = (e) => (Oe(e) && (e = e.trim()), e ? !0 : "Value is required"), bn = (e, t) => (o, n) => o === n.form[e] ? !0 : `Value must be the same as in field '${t || e}'`, gn = (e) => (t) => {
1951
- const { minLength: o, maxLength: n } = e;
1952
- return t = xs(t) ? "" : t, Oe(t) ? !Se(o) && t.length < o ? `Value needs to be at least ${o} characters long` : !Se(n) && t.length > n ? `Value can't be longer than ${n} characters` : !0 : "Value should be a text string";
1953
- }, yn = (e) => (t) => {
1954
- const { match: o, message: n } = e;
1955
- return Oe(t) ? o ? Oe(o) ? t.includes(o) ? !0 : n : o.test(t) ? !0 : n : !0 : "Value should be a text string";
1950
+ }), Xt = /^https?:\/\//, it = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, pn = (e) => (e || "").match(it) ? !0 : "Value should be a valid e-mail address", mn = (e) => (e || "").match(it) || !e ? !0 : "Value should be a valid e-mail address", vn = (e) => (e || "").split(",").map((o) => o.trim()).every((o) => o.match(it)) || "Value should be one or multiple comma-delimited e-mail addresses", hn = (e) => (Oe(e) && (e = e.trim()), e ? !0 : "Value is required"), bn = (e, t) => (n, o) => n === o.form[e] ? !0 : `Value must be the same as in field '${t || e}'`, yn = (e) => (t) => {
1951
+ const { minLength: n, maxLength: o } = e;
1952
+ return t = xs(t) ? "" : t, Oe(t) ? !Se(n) && t.length < n ? `Value needs to be at least ${n} characters long` : !Se(o) && t.length > o ? `Value can't be longer than ${o} characters` : !0 : "Value should be a text string";
1953
+ }, gn = (e) => (t) => {
1954
+ const { match: n, message: o } = e;
1955
+ return Oe(t) ? n ? Oe(n) ? t.includes(n) ? !0 : o : n.test(t) ? !0 : o : !0 : "Value should be a text string";
1956
1956
  }, xn = (e) => Xt.test(e) ? !0 : "Value is not a valid URL", wn = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", kn = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", pu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1957
1957
  __proto__: null,
1958
1958
  VALID_EMAIL: it,
@@ -1964,30 +1964,30 @@ const Qo = ["for"], Jo = {
1964
1964
  isOneOrMultipleEmails: vn,
1965
1965
  isRequired: hn,
1966
1966
  isSameAs: bn,
1967
- isStringOfLength: gn,
1967
+ isStringOfLength: yn,
1968
1968
  isUrl: xn,
1969
- stringContains: yn
1969
+ stringContains: gn
1970
1970
  }, Symbol.toStringTag, { value: "Module" }));
1971
1971
  function Zt(e) {
1972
1972
  const {
1973
1973
  skipCalculation: t,
1974
- elementToWatchForChanges: o,
1975
- itemContainer: n,
1974
+ elementToWatchForChanges: n,
1975
+ itemContainer: o,
1976
1976
  trackResize: a = !1,
1977
1977
  trackMutations: s = !0
1978
1978
  } = e || {}, d = z(0), c = () => {
1979
- const v = n.value;
1979
+ const v = o.value;
1980
1980
  if (t != null && t.value || !v)
1981
1981
  return;
1982
1982
  const h = v.children;
1983
- let f = 0, g = 0, i;
1983
+ let f = 0, y = 0, i;
1984
1984
  for (const b of h) {
1985
1985
  const x = b.offsetTop;
1986
- Se(i) ? (i = x, f += 1) : x === i && (f += 1), g += 1;
1986
+ Se(i) ? (i = x, f += 1) : x === i && (f += 1), y += 1;
1987
1987
  }
1988
- d.value = g - f;
1988
+ d.value = y - f;
1989
1989
  };
1990
- return a && Ht(o, c), s && Es(o, c, {
1990
+ return a && Ht(n, c), s && Es(n, c, {
1991
1991
  childList: !0,
1992
1992
  subtree: !0
1993
1993
  }), {
@@ -1995,10 +1995,10 @@ function Zt(e) {
1995
1995
  };
1996
1996
  }
1997
1997
  function Qt(e) {
1998
- const { props: t, emit: o, dynamicVisibility: n } = e;
1998
+ const { props: t, emit: n, dynamicVisibility: o } = e;
1999
1999
  let a;
2000
- if (n) {
2001
- const { elementToWatchForChanges: h, itemContainer: f } = n;
2000
+ if (o) {
2001
+ const { elementToWatchForChanges: h, itemContainer: f } = o;
2002
2002
  a = Zt({
2003
2003
  skipCalculation: m(() => {
2004
2004
  var i;
@@ -2011,20 +2011,20 @@ function Qt(e) {
2011
2011
  a = z(0);
2012
2012
  const s = m({
2013
2013
  get: () => {
2014
- var f, g;
2014
+ var f, y;
2015
2015
  const h = (f = t.modelValue) == null ? void 0 : f.value;
2016
- return (g = t.multiple) != null && g.value ? se(h) ? h : [] : se(h) ? void 0 : h;
2016
+ return (y = t.multiple) != null && y.value ? se(h) ? h : [] : se(h) ? void 0 : h;
2017
2017
  },
2018
2018
  set: (h) => {
2019
- var f, g, i;
2019
+ var f, y, i;
2020
2020
  if ((f = t.multiple) != null && f.value && !se(h)) {
2021
2021
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
2022
2022
  return;
2023
- } else if (!((g = t.multiple) != null && g.value) && se(h)) {
2023
+ } else if (!((y = t.multiple) != null && y.value) && se(h)) {
2024
2024
  console.warn("Attempting to set array value in selector w/ multiple=false");
2025
2025
  return;
2026
2026
  }
2027
- o("update:modelValue", (i = t.multiple) != null && i.value ? h || [] : h);
2027
+ n("update:modelValue", (i = t.multiple) != null && i.value ? h || [] : h);
2028
2028
  }
2029
2029
  }), d = (h) => se(h);
2030
2030
  return {
@@ -2042,11 +2042,11 @@ const Cn = /* @__PURE__ */ W({
2042
2042
  clientOnly: { type: Boolean }
2043
2043
  },
2044
2044
  setup(e) {
2045
- const t = e, o = xt(), n = m(() => (o.value || !t.clientOnly) && t.loading);
2045
+ const t = e, n = xt(), o = m(() => (n.value || !t.clientOnly) && t.loading);
2046
2046
  return (a, s) => (l(), u("div", {
2047
- class: y([
2047
+ class: g([
2048
2048
  "relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
2049
- n.value ? "opacity-100" : "opacity-0"
2049
+ o.value ? "opacity-100" : "opacity-0"
2050
2050
  ])
2051
2051
  }, s[0] || (s[0] = [
2052
2052
  p("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)
@@ -2070,7 +2070,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2070
2070
  class: "px-1"
2071
2071
  }, En = { key: 1 }, Rn = { class: "text-foreground-2 text-center" }, Fn = {
2072
2072
  key: 0,
2073
- class: /* @__PURE__ */ y([
2073
+ class: /* @__PURE__ */ g([
2074
2074
  "absolute top-0 bottom-0 right-0 text-foreground flex items-center pr-4"
2075
2075
  ])
2076
2076
  }, Dn = ["id"], Jt = /* @__PURE__ */ W({
@@ -2279,16 +2279,16 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2279
2279
  }
2280
2280
  },
2281
2281
  emits: ["update:modelValue"],
2282
- setup(e, { expose: t, emit: o }) {
2283
- const n = (L) => Ye(L), a = o, s = e, { value: d, errorMessage: c } = De(s.name, s.rules, {
2282
+ setup(e, { expose: t, emit: n }) {
2283
+ const o = (L) => Ye(L), a = n, s = e, { value: d, errorMessage: c } = De(s.name, s.rules, {
2284
2284
  validateOnMount: s.validateOnMount,
2285
2285
  validateOnValueUpdate: s.validateOnValueUpdate,
2286
2286
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
2287
2287
  initialValue: s.modelValue
2288
- }), v = xt(), h = z(null), f = z(null), g = z(null), i = z(""), b = z([]), x = z(!1), T = z(1), $ = z(Ze()), C = z(!1), I = wt(
2288
+ }), v = xt(), h = z(null), f = z(null), y = z(null), i = z(""), b = z([]), x = z(!1), T = z(1), $ = z(Ze()), C = z(!1), I = wt(
2289
2289
  m(() => {
2290
2290
  var L;
2291
- return (L = g.value) == null ? void 0 : L.el;
2291
+ return (L = y.value) == null ? void 0 : L.el;
2292
2292
  }),
2293
2293
  { windowResize: !0, windowScroll: !0, immediate: !0 }
2294
2294
  );
@@ -2328,7 +2328,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2328
2328
  var N;
2329
2329
  const L = ["relative flex group"];
2330
2330
  return c.value ? (L.push("hover:shadow rounded-md"), L.push("text-danger-darker focus:border-danger"), s.buttonStyle !== "simple" && L.push("border border-danger")) : s.buttonStyle !== "simple" && (L.push("rounded-md border"), C.value ? L.push("border-outline-4") : L.push("border-outline-2 hover:border-outline-5 focus:outline-0")), s.fixedHeight ? L.push("h-8") : (N = be.value) != null && N.length && L.push(be.value), H.value && L.push("md:basis-1/2"), L.join(" ");
2331
- }), ge = m(() => {
2331
+ }), ye = m(() => {
2332
2332
  const L = [];
2333
2333
  return s.buttonStyle !== "simple" && L.push(
2334
2334
  ie.value ? "bg-foundation-disabled text-foreground-disabled" : ""
@@ -2339,7 +2339,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2339
2339
  "flex items-center justify-center text-center shrink-0",
2340
2340
  "rounded-r-md overflow-hidden transition-all",
2341
2341
  "text-foreground",
2342
- fe.value ? `w-6 ${ge.value}` : "w-0"
2342
+ fe.value ? `w-6 ${ye.value}` : "w-0"
2343
2343
  ];
2344
2344
  return ie.value || (L.push(
2345
2345
  "hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
@@ -2349,7 +2349,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2349
2349
  "relative z-[2]",
2350
2350
  "normal rounded-md cursor-pointer transition truncate flex-1",
2351
2351
  "flex items-center focus:outline-outline-4 focus:outline-1",
2352
- ge.value
2352
+ ye.value
2353
2353
  ];
2354
2354
  return s.buttonStyle !== "simple" && (L.push("p-2"), ie.value || (s.buttonStyle, L.push("bg-foundation text-foreground"))), Q.value && fe.value && L.push("rounded-r-none"), L.join(" ");
2355
2355
  }), ke = m(
@@ -2400,7 +2400,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2400
2400
  L.top = `${N + je}px`, L.left = `${_}px`, L.width = `${me}px`;
2401
2401
  }
2402
2402
  return L;
2403
- }), de = (L) => JSON.stringify(L), oe = (L) => n(L) ? L[s.by || "id"] : L, pe = async () => {
2403
+ }), de = (L) => JSON.stringify(L), oe = (L) => o(L) ? L[s.by || "id"] : L, pe = async () => {
2404
2404
  if (!(!te.value || !s.getSearchResults)) {
2405
2405
  x.value = !0;
2406
2406
  try {
@@ -2433,17 +2433,17 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2433
2433
  by: e.by,
2434
2434
  disabled: ie.value,
2435
2435
  as: "div",
2436
- class: y({
2436
+ class: g({
2437
2437
  "md:flex md:items-center md:space-x-2 md:justify-between": H.value
2438
2438
  })
2439
2439
  }, {
2440
2440
  default: R(() => [
2441
2441
  p("div", {
2442
- class: y(["flex flex-col", { "pb-1": e.showLabel && !H.value }])
2442
+ class: g(["flex flex-col", { "pb-1": e.showLabel && !H.value }])
2443
2443
  }, [
2444
2444
  A(r(Gs), {
2445
2445
  id: e.labelId,
2446
- class: y(["flex text-body-xs text-foreground font-medium", [{ "sr-only": !e.showLabel }, { "items-center gap-1": e.showOptional }]]),
2446
+ class: g(["flex text-body-xs text-foreground font-medium", [{ "sr-only": !e.showLabel }, { "items-center gap-1": e.showOptional }]]),
2447
2447
  for: e.buttonId
2448
2448
  }, {
2449
2449
  default: R(() => [
@@ -2455,23 +2455,23 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2455
2455
  k.value && H.value ? (l(), u("p", {
2456
2456
  key: 0,
2457
2457
  id: k.value,
2458
- class: y(["text-xs", E.value])
2458
+ class: g(["text-xs", E.value])
2459
2459
  }, O(P.value), 11, Bn)) : w("", !0)
2460
2460
  ], 2),
2461
2461
  Y((l(), u("div", null, [
2462
2462
  p("div", {
2463
- class: y(Be.value)
2463
+ class: g(Be.value)
2464
2464
  }, [
2465
2465
  A(r(Ns), {
2466
2466
  id: e.buttonId,
2467
2467
  ref_key: "listboxButton",
2468
- ref: g,
2469
- class: y(He.value)
2468
+ ref: y,
2469
+ class: g(He.value)
2470
2470
  }, {
2471
2471
  default: R(({ open: _ }) => [
2472
2472
  p("div", Sn, [
2473
2473
  p("div", {
2474
- class: y(["block truncate grow text-left text-xs sm:text-[13px]", [fe.value ? "text-foreground" : "text-foreground-2"]])
2474
+ class: g(["block truncate grow text-left text-xs sm:text-[13px]", [fe.value ? "text-foreground" : "text-foreground-2"]])
2475
2475
  }, [
2476
2476
  !J.value || r(se)(J.value) && !J.value.length ? U(L.$slots, "nothing-selected", { key: 0 }, () => [
2477
2477
  F(O(e.placeholder ? e.placeholder : e.label), 1)
@@ -2505,7 +2505,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2505
2505
  }, 8, ["id", "class"]),
2506
2506
  Q.value ? (l(), u("button", {
2507
2507
  key: 0,
2508
- class: y(We.value),
2508
+ class: g(We.value),
2509
2509
  disabled: e.disabled,
2510
2510
  onClick: N[0] || (N[0] = (_) => D())
2511
2511
  }, [
@@ -2525,7 +2525,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2525
2525
  A(r(Xs), {
2526
2526
  ref_key: "menuEl",
2527
2527
  ref: f,
2528
- class: y(K.value),
2528
+ class: g(K.value),
2529
2529
  style: ae(ue.value),
2530
2530
  onFocus: N[3] || (N[3] = (_) => {
2531
2531
  var me;
@@ -2574,10 +2574,10 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2574
2574
  active: je,
2575
2575
  selected: V
2576
2576
  }) => {
2577
- var X, G, ce, ye;
2577
+ var X, G, ce, ge;
2578
2578
  return [
2579
2579
  Y((l(), u("li", {
2580
- class: y(
2580
+ class: g(
2581
2581
  dt({
2582
2582
  active: je,
2583
2583
  disabled: ((X = e.disabledItemPredicate) == null ? void 0 : X.call(e, _)) || !1
@@ -2585,7 +2585,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2585
2585
  )
2586
2586
  }, [
2587
2587
  p("span", {
2588
- class: y(["block px-2 py-1.5 rounded-md", [
2588
+ class: g(["block px-2 py-1.5 rounded-md", [
2589
2589
  V ? "bg-highlight-3" : "",
2590
2590
  e.hideCheckmarks ? "pr-2" : "pr-8",
2591
2591
  !((G = e.disabledItemPredicate) != null && G.call(e, _)) && !V ? "hover:bg-highlight-1" : ""
@@ -2601,7 +2601,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2601
2601
  F(O(de(_)), 1)
2602
2602
  ]),
2603
2603
  !e.hideCheckmarks && V ? (l(), u("span", Fn, [
2604
- A(r(yt), {
2604
+ A(r(gt), {
2605
2605
  class: "h-4 w-4",
2606
2606
  "aria-hidden": "true"
2607
2607
  })
@@ -2610,7 +2610,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2610
2610
  ], 2)), [
2611
2611
  [
2612
2612
  r(Ve),
2613
- (ye = e.disabledItemPredicate) != null && ye.call(e, _) ? e.disabledItemTooltip : void 0
2613
+ (ge = e.disabledItemPredicate) != null && ge.call(e, _) ? e.disabledItemTooltip : void 0
2614
2614
  ]
2615
2615
  ])
2616
2616
  ];
@@ -2636,7 +2636,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2636
2636
  k.value && !H.value ? (l(), u("p", {
2637
2637
  key: 0,
2638
2638
  id: k.value,
2639
- class: y(["mt-2 text-xs", E.value])
2639
+ class: g(["mt-2 text-xs", E.value])
2640
2640
  }, O(P.value), 11, Dn)) : w("", !0)
2641
2641
  ]));
2642
2642
  }
@@ -2646,7 +2646,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2646
2646
  sourceApp: {}
2647
2647
  },
2648
2648
  setup(e) {
2649
- return (t, o) => (l(), j(Ue, {
2649
+ return (t, n) => (l(), j(Ue, {
2650
2650
  "color-classes": "text-foreground-on-primary",
2651
2651
  rounded: "",
2652
2652
  style: ae({ backgroundColor: t.sourceApp.bgColor })
@@ -2735,12 +2735,12 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2735
2735
  },
2736
2736
  emits: ["update:modelValue"],
2737
2737
  setup(e, { emit: t }) {
2738
- const o = t, n = e, a = z(null), s = z(null), { selectedValue: d, hiddenSelectedItemCount: c, isMultiItemArrayValue: v, firstItem: h } = Qt({
2739
- props: xe(n),
2740
- emit: o,
2738
+ const n = t, o = e, a = z(null), s = z(null), { selectedValue: d, hiddenSelectedItemCount: c, isMultiItemArrayValue: v, firstItem: h } = Qt({
2739
+ props: xe(o),
2740
+ emit: n,
2741
2741
  dynamicVisibility: { elementToWatchForChanges: a, itemContainer: s }
2742
- }), f = (g, i) => g.name.toLocaleLowerCase().includes(i.toLocaleLowerCase());
2743
- return (g, i) => (l(), j(Jt, {
2742
+ }), f = (y, i) => y.name.toLocaleLowerCase().includes(i.toLocaleLowerCase());
2743
+ return (y, i) => (l(), j(Jt, {
2744
2744
  modelValue: r(d),
2745
2745
  "onUpdate:modelValue": i[0] || (i[0] = (b) => ot(d) ? d.value = b : null),
2746
2746
  multiple: e.multiple,
@@ -2818,9 +2818,9 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2818
2818
  },
2819
2819
  emits: ["update:modelValue"],
2820
2820
  setup(e, { emit: t }) {
2821
- const o = t, n = e, { selectedValue: a, isArrayValue: s } = Qt({
2822
- props: xe(n),
2823
- emit: o
2821
+ const n = t, o = e, { selectedValue: a, isArrayValue: s } = Qt({
2822
+ props: xe(o),
2823
+ emit: n
2824
2824
  }), d = (c) => {
2825
2825
  s(a.value) ? a.value = a.value.filter((v) => v.id !== c.id) : a.value = void 0;
2826
2826
  };
@@ -2849,7 +2849,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
2849
2849
  rounded: "",
2850
2850
  "clickable-icon": !0,
2851
2851
  "icon-left": r(dl),
2852
- onClickIcon: ve((g) => d(f), ["stop"])
2852
+ onClickIcon: ve((y) => d(f), ["stop"])
2853
2853
  }, {
2854
2854
  default: R(() => [
2855
2855
  F(O(f.text), 1)
@@ -3082,12 +3082,12 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3082
3082
  }
3083
3083
  },
3084
3084
  emits: ["update:modelValue"],
3085
- setup(e, { expose: t, emit: o }) {
3086
- const n = (V) => Ye(V), a = o, s = e, { value: d, errorMessage: c } = De(s.name, s.rules, {
3085
+ setup(e, { expose: t, emit: n }) {
3086
+ const o = (V) => Ye(V), a = n, s = e, { value: d, errorMessage: c } = De(s.name, s.rules, {
3087
3087
  validateOnMount: s.validateOnMount,
3088
3088
  validateOnValueUpdate: s.validateOnValueUpdate,
3089
3089
  initialValue: se(s.modelValue) ? s.modelValue : []
3090
- }), v = xt(), h = z(null), f = z(null), g = z(null), i = z(""), b = z([]), x = z(!1), T = z(1), $ = z(Ze()), C = z(!1), I = wt(g, {
3090
+ }), v = xt(), h = z(null), f = z(null), y = z(null), i = z(""), b = z([]), x = z(!1), T = z(1), $ = z(Ze()), C = z(!1), I = wt(y, {
3091
3091
  windowResize: !0,
3092
3092
  windowScroll: !0,
3093
3093
  immediate: !0
@@ -3125,7 +3125,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3125
3125
  var X;
3126
3126
  const V = ["relative flex group"];
3127
3127
  return c.value ? (V.push("hover:shadow rounded-md"), V.push("text-danger-darker focus:border-danger"), s.buttonStyle !== "simple" && V.push("border border-danger")) : s.buttonStyle !== "simple" && (V.push("rounded-md border"), C.value ? V.push("border-outline-4") : V.push("border-outline-2 hover:border-outline-5 focus:outline-0")), s.fixedHeight ? V.push("h-8") : (X = be.value) != null && X.length && V.push(be.value), H.value && V.push("md:basis-1/2"), V.join(" ");
3128
- }), ge = m(() => {
3128
+ }), ye = m(() => {
3129
3129
  const V = [];
3130
3130
  return s.buttonStyle !== "simple" && V.push(
3131
3131
  ie.value ? "bg-foundation-disabled text-foreground-disabled" : ""
@@ -3136,7 +3136,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3136
3136
  "flex items-center justify-center text-center shrink-0",
3137
3137
  "rounded-r-md overflow-hidden transition-all",
3138
3138
  "text-foreground",
3139
- fe.value ? `w-6 ${ge.value}` : "w-0"
3139
+ fe.value ? `w-6 ${ye.value}` : "w-0"
3140
3140
  ];
3141
3141
  return ie.value || (V.push(
3142
3142
  "hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
@@ -3146,7 +3146,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3146
3146
  "relative z-[2]",
3147
3147
  "normal rounded-md cursor-pointer transition truncate flex-1",
3148
3148
  "flex items-center focus:outline-outline-4 focus:outline-1",
3149
- ge.value
3149
+ ye.value
3150
3150
  ];
3151
3151
  return s.buttonStyle !== "simple" && (V.push("p-2"), ie.value || (s.buttonStyle, V.push("bg-foundation text-foreground"))), Q.value && fe.value && V.push("rounded-r-none"), V.join(" ");
3152
3152
  }), ke = m(
@@ -3183,11 +3183,11 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3183
3183
  }), ue = m(() => {
3184
3184
  const V = {};
3185
3185
  if (s.mountMenuOnBody) {
3186
- const X = I.top.value, G = I.left.value, ce = I.width.value, ye = I.height.value;
3187
- V.top = `${X + ye}px`, V.left = `${G}px`, V.width = `${ce}px`;
3186
+ const X = I.top.value, G = I.left.value, ce = I.width.value, ge = I.height.value;
3187
+ V.top = `${X + ge}px`, V.left = `${G}px`, V.width = `${ce}px`;
3188
3188
  }
3189
3189
  return V;
3190
- }), de = (V) => JSON.stringify(V), oe = (V) => n(V) ? V[s.by || "id"] : V, pe = async () => {
3190
+ }), de = (V) => JSON.stringify(V), oe = (V) => o(V) ? V[s.by || "id"] : V, pe = async () => {
3191
3191
  if (!(!te.value || !s.getSearchResults)) {
3192
3192
  x.value = !0;
3193
3193
  try {
@@ -3214,8 +3214,8 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3214
3214
  const L = () => {
3215
3215
  ie.value || (C.value = !C.value);
3216
3216
  }, N = (V) => J.value.some((X) => oe(X) === oe(V)), _ = z(null), me = z(0), je = (V, X) => {
3217
- var ye, Ke;
3218
- if ((ye = s.disabledItemPredicate) != null && ye.call(s, V))
3217
+ var ge, Ke;
3218
+ if ((ge = s.disabledItemPredicate) != null && ge.call(s, V))
3219
3219
  return;
3220
3220
  X == null || X.stopPropagation(), me.value = ((Ke = _.value) == null ? void 0 : Ke.scrollTop) || 0;
3221
3221
  const G = J.value, ce = G.some((Te) => oe(Te) === oe(V));
@@ -3229,21 +3229,21 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3229
3229
  C.value && (C.value = !1);
3230
3230
  },
3231
3231
  {
3232
- ignore: [g]
3232
+ ignore: [y]
3233
3233
  }
3234
3234
  ), t({ triggerSearch: pe }), (V, X) => (l(), u("div", null, [
3235
3235
  (l(), u("div", {
3236
3236
  key: T.value,
3237
- class: y({
3237
+ class: g({
3238
3238
  "md:flex md:items-center md:space-x-2 md:justify-between": H.value
3239
3239
  })
3240
3240
  }, [
3241
3241
  p("div", {
3242
- class: y(["flex flex-col", { "pb-1": e.showLabel && !H.value }])
3242
+ class: g(["flex flex-col", { "pb-1": e.showLabel && !H.value }])
3243
3243
  }, [
3244
3244
  p("label", {
3245
3245
  id: e.labelId,
3246
- class: y(["flex text-body-xs text-foreground font-medium pointer-events-none", [{ "sr-only": !e.showLabel }, { "items-center gap-1": e.showOptional }]]),
3246
+ class: g(["flex text-body-xs text-foreground font-medium pointer-events-none", [{ "sr-only": !e.showLabel }, { "items-center gap-1": e.showOptional }]]),
3247
3247
  for: e.buttonId
3248
3248
  }, [
3249
3249
  F(O(e.label) + " ", 1),
@@ -3252,26 +3252,26 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3252
3252
  k.value && H.value ? (l(), u("p", {
3253
3253
  key: 0,
3254
3254
  id: k.value,
3255
- class: y(["text-xs", E.value])
3255
+ class: g(["text-xs", E.value])
3256
3256
  }, O(P.value), 11, Qn)) : w("", !0)
3257
3257
  ], 2),
3258
3258
  Y((l(), u("div", null, [
3259
3259
  p("div", {
3260
- class: y(Be.value)
3260
+ class: g(Be.value)
3261
3261
  }, [
3262
3262
  p("button", {
3263
3263
  id: e.buttonId,
3264
3264
  ref_key: "listboxButton",
3265
- ref: g,
3265
+ ref: y,
3266
3266
  type: "button",
3267
- class: y(He.value),
3267
+ class: g(He.value),
3268
3268
  "aria-expanded": C.value,
3269
3269
  "aria-haspopup": !0,
3270
3270
  onClick: L
3271
3271
  }, [
3272
3272
  p("div", Yn, [
3273
3273
  p("div", {
3274
- class: y(["block truncate grow text-left text-xs sm:text-[13px]", [fe.value ? "text-foreground" : "text-foreground-2"]])
3274
+ class: g(["block truncate grow text-left text-xs sm:text-[13px]", [fe.value ? "text-foreground" : "text-foreground-2"]])
3275
3275
  }, [
3276
3276
  !J.value || r(se)(J.value) && !J.value.length ? U(V.$slots, "nothing-selected", { key: 0 }, () => [
3277
3277
  F(O(e.placeholder ? e.placeholder : e.label), 1)
@@ -3302,7 +3302,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3302
3302
  ], 10, Jn),
3303
3303
  Q.value ? (l(), u("button", {
3304
3304
  key: 0,
3305
- class: y(We.value),
3305
+ class: g(We.value),
3306
3306
  disabled: e.disabled,
3307
3307
  onClick: X[0] || (X[0] = (G) => D())
3308
3308
  }, [
@@ -3323,7 +3323,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3323
3323
  key: 0,
3324
3324
  ref_key: "menuEl",
3325
3325
  ref: f,
3326
- class: y(K.value),
3326
+ class: g(K.value),
3327
3327
  style: ae(ue.value),
3328
3328
  role: "listbox",
3329
3329
  "aria-labelledby": e.labelId,
@@ -3367,22 +3367,22 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3367
3367
  ])
3368
3368
  ])) : w("", !0),
3369
3369
  !te.value || !x.value ? (l(!0), u(Z, { key: 2 }, ee(q.value, (G) => {
3370
- var ce, ye, Ke, Te, It, Bt;
3370
+ var ce, ge, Ke, Te, It, Bt;
3371
3371
  return Y((l(), u("button", {
3372
3372
  key: oe(G),
3373
3373
  type: "button",
3374
3374
  role: "option",
3375
3375
  "aria-selected": N(G),
3376
3376
  disabled: ((ce = e.disabledItemPredicate) == null ? void 0 : ce.call(e, G)) || !1,
3377
- class: y(
3377
+ class: g(
3378
3378
  dt({
3379
- disabled: ((ye = e.disabledItemPredicate) == null ? void 0 : ye.call(e, G)) || !1
3379
+ disabled: ((ge = e.disabledItemPredicate) == null ? void 0 : ge.call(e, G)) || !1
3380
3380
  })
3381
3381
  ),
3382
3382
  onClick: (ns) => je(G, ns)
3383
3383
  }, [
3384
3384
  p("div", {
3385
- class: y(["block w-full px-2 py-1.5 rounded-md text-left flex items-center gap-1", [
3385
+ class: g(["block w-full px-2 py-1.5 rounded-md text-left flex items-center gap-1", [
3386
3386
  e.hideCheckmarks ? "pr-2" : "pr-8",
3387
3387
  !((Ke = e.disabledItemPredicate) != null && Ke.call(e, G)) && !N(G) ? "hover:bg-highlight-1" : ""
3388
3388
  ]])
@@ -3425,7 +3425,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3425
3425
  k.value && !H.value ? (l(), u("p", {
3426
3426
  key: 0,
3427
3427
  id: k.value,
3428
- class: y(["mt-2 text-xs", E.value])
3428
+ class: g(["mt-2 text-xs", E.value])
3429
3429
  }, O(P.value), 11, fa)) : w("", !0)
3430
3430
  ]));
3431
3431
  }
@@ -3443,7 +3443,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3443
3443
  }),
3444
3444
  emits: ["update:modelValue"],
3445
3445
  setup(e) {
3446
- const t = e, o = Fe(e, "modelValue"), n = m(() => t.label || t.name), a = m(() => {
3446
+ const t = e, n = Fe(e, "modelValue"), o = m(() => t.label || t.name), a = m(() => {
3447
3447
  const c = ["block label-light"];
3448
3448
  return t.showLabel || c.push("sr-only"), c.join(" ");
3449
3449
  }), s = m(() => {
@@ -3452,39 +3452,39 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3452
3452
  "transition-colors ease-in-out duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary",
3453
3453
  "cursor-pointer disabled:cursor-not-allowed disabled:opacity-40"
3454
3454
  ];
3455
- return o.value ? c.push("bg-primary") : c.push("bg-foreground-3"), c.join(" ");
3455
+ return n.value ? c.push("bg-primary") : c.push("bg-foreground-3"), c.join(" ");
3456
3456
  }), d = m(() => {
3457
3457
  const c = [
3458
3458
  "pointer-events-none inline-block h-3 w-3 rounded-full mt-[3px] ml-[3px]",
3459
3459
  "ring-0 transition ease-in-out duration-200 bg-foreground-on-primary"
3460
3460
  ];
3461
- return o.value ? c.push("translate-x-[12px]") : c.push("translate-x-0"), c.join(" ");
3461
+ return n.value ? c.push("translate-x-[12px]") : c.push("translate-x-0"), c.join(" ");
3462
3462
  });
3463
3463
  return (c, v) => (l(), u("div", pa, [
3464
3464
  A(r(Qs), {
3465
3465
  id: c.id || c.name,
3466
- modelValue: o.value,
3467
- "onUpdate:modelValue": v[0] || (v[0] = (h) => o.value = h),
3468
- class: y(s.value),
3466
+ modelValue: n.value,
3467
+ "onUpdate:modelValue": v[0] || (v[0] = (h) => n.value = h),
3468
+ class: g(s.value),
3469
3469
  name: c.name,
3470
3470
  disabled: c.disabled
3471
3471
  }, {
3472
3472
  default: R(() => [
3473
3473
  p("span", {
3474
- class: y(d.value)
3474
+ class: g(d.value)
3475
3475
  }, null, 2)
3476
3476
  ]),
3477
3477
  _: 1
3478
3478
  }, 8, ["id", "modelValue", "class", "name", "disabled"]),
3479
3479
  p("label", {
3480
3480
  for: c.id || c.name,
3481
- class: y(a.value)
3481
+ class: g(a.value)
3482
3482
  }, [
3483
- p("span", null, O(n.value), 1)
3483
+ p("span", null, O(o.value), 1)
3484
3484
  ], 10, ma)
3485
3485
  ]));
3486
3486
  }
3487
- }), va = { class: "relative group bg-foundation border border-outline-2 p-2 rounded-lg pr-20" }, ha = { class: "absolute top-3 right-2 flex justify-end items-center" }, gu = /* @__PURE__ */ W({
3487
+ }), va = { class: "relative group bg-foundation border border-outline-2 p-2 rounded-lg pr-20" }, ha = { class: "absolute top-3 right-2 flex justify-end items-center" }, yu = /* @__PURE__ */ W({
3488
3488
  __name: "ClipboardInput",
3489
3489
  props: {
3490
3490
  value: {},
@@ -3494,15 +3494,15 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3494
3494
  },
3495
3495
  emits: ["copy"],
3496
3496
  setup(e, { emit: t }) {
3497
- const o = e, n = t, { copy: a } = Fs({ legacy: !0 }), s = z(!1), d = async () => {
3498
- o.value && (await a(o.value), s.value = !0, n("copy", o.value), setTimeout(() => {
3497
+ const n = e, o = t, { copy: a } = Fs({ legacy: !0 }), s = z(!1), d = async () => {
3498
+ n.value && (await a(n.value), s.value = !0, o("copy", n.value), setTimeout(() => {
3499
3499
  s.value = !1;
3500
3500
  }, 2e3));
3501
3501
  }, c = (v) => {
3502
3502
  const h = v.target, f = window.getSelection();
3503
3503
  if (f) {
3504
- const g = document.createRange();
3505
- g.selectNodeContents(h), f.removeAllRanges(), f.addRange(g);
3504
+ const y = document.createRange();
3505
+ y.selectNodeContents(h), f.removeAllRanges(), f.addRange(y);
3506
3506
  }
3507
3507
  };
3508
3508
  return (v, h) => (l(), u("div", va, [
@@ -3534,7 +3534,7 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3534
3534
  ])
3535
3535
  ]));
3536
3536
  }
3537
- }), ba = { class: "flex flex-col items-center" }, ga = { class: "flex gap-2" }, yu = /* @__PURE__ */ W({
3537
+ }), ba = { class: "flex flex-col items-center" }, ya = { class: "flex gap-2" }, gu = /* @__PURE__ */ W({
3538
3538
  __name: "CodeInput",
3539
3539
  props: {
3540
3540
  modelValue: {},
@@ -3545,55 +3545,55 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3545
3545
  },
3546
3546
  emits: ["update:modelValue", "complete"],
3547
3547
  setup(e, { emit: t }) {
3548
- const o = e, n = t, a = z([]), s = z(new Array(o.digitCount).fill("")), d = z(o.error), c = (f) => {
3549
- var g;
3550
- o.clearErrorOnEdit && (d.value = !1), s.value[f] = s.value[f].replace(/[^0-9]/g, ""), s.value[f] && f < o.digitCount - 1 && ((g = a.value[f + 1]) == null || g.focus());
3551
- }, v = (f, g) => {
3548
+ const n = e, o = t, a = z([]), s = z(new Array(n.digitCount).fill("")), d = z(n.error), c = (f) => {
3549
+ var y;
3550
+ n.clearErrorOnEdit && (d.value = !1), s.value[f] = s.value[f].replace(/[^0-9]/g, ""), s.value[f] && f < n.digitCount - 1 && ((y = a.value[f + 1]) == null || y.focus());
3551
+ }, v = (f, y) => {
3552
3552
  var i, b, x;
3553
- g.key === "Backspace" && !s.value[f] && f > 0 ? (o.clearErrorOnEdit && (d.value = !1), s.value[f - 1] = "", (i = a.value[f - 1]) == null || i.focus()) : g.key === "ArrowLeft" && f > 0 ? (b = a.value[f - 1]) == null || b.focus() : g.key === "ArrowRight" && f < o.digitCount - 1 && ((x = a.value[f + 1]) == null || x.focus());
3553
+ y.key === "Backspace" && !s.value[f] && f > 0 ? (n.clearErrorOnEdit && (d.value = !1), s.value[f - 1] = "", (i = a.value[f - 1]) == null || i.focus()) : y.key === "ArrowLeft" && f > 0 ? (b = a.value[f - 1]) == null || b.focus() : y.key === "ArrowRight" && f < n.digitCount - 1 && ((x = a.value[f + 1]) == null || x.focus());
3554
3554
  }, h = (f) => {
3555
3555
  var x, T, $;
3556
- o.clearErrorOnEdit && (d.value = !1), f.preventDefault();
3557
- const g = (x = f.clipboardData) == null ? void 0 : x.getData("text");
3558
- if (!g)
3556
+ n.clearErrorOnEdit && (d.value = !1), f.preventDefault();
3557
+ const y = (x = f.clipboardData) == null ? void 0 : x.getData("text");
3558
+ if (!y)
3559
3559
  return;
3560
- const i = g.replace(/[^0-9]/g, "").split("");
3560
+ const i = y.replace(/[^0-9]/g, "").split("");
3561
3561
  s.value = [
3562
- ...i.slice(0, o.digitCount),
3563
- ...Array(Math.max(0, o.digitCount - i.length)).fill("")
3562
+ ...i.slice(0, n.digitCount),
3563
+ ...Array(Math.max(0, n.digitCount - i.length)).fill("")
3564
3564
  ];
3565
3565
  const b = s.value.findIndex((C) => !C);
3566
- b !== -1 ? (T = a.value[b]) == null || T.focus() : ($ = a.value[o.digitCount - 1]) == null || $.focus();
3566
+ b !== -1 ? (T = a.value[b]) == null || T.focus() : ($ = a.value[n.digitCount - 1]) == null || $.focus();
3567
3567
  };
3568
3568
  return re(() => {
3569
3569
  a.value[0] && a.value[0].focus();
3570
3570
  }), ne(
3571
- () => o.error,
3571
+ () => n.error,
3572
3572
  (f) => {
3573
3573
  d.value = f;
3574
3574
  }
3575
3575
  ), ne(
3576
- () => o.modelValue,
3576
+ () => n.modelValue,
3577
3577
  (f) => {
3578
3578
  if (f) {
3579
- const g = f.split("");
3579
+ const y = f.split("");
3580
3580
  s.value = [
3581
- ...g,
3582
- ...Array(o.digitCount - g.length).fill("")
3581
+ ...y,
3582
+ ...Array(n.digitCount - y.length).fill("")
3583
3583
  ];
3584
3584
  } else
3585
- s.value = Array(o.digitCount).fill("");
3585
+ s.value = Array(n.digitCount).fill("");
3586
3586
  },
3587
3587
  { immediate: !0 }
3588
3588
  ), ne(
3589
3589
  s,
3590
3590
  (f) => {
3591
- const g = f.join("");
3592
- n("update:modelValue", g), g.length === o.digitCount && n("complete", g);
3591
+ const y = f.join("");
3592
+ o("update:modelValue", y), y.length === n.digitCount && o("complete", y);
3593
3593
  },
3594
3594
  { deep: !0 }
3595
- ), (f, g) => (l(), u("div", ba, [
3596
- p("div", ga, [
3595
+ ), (f, y) => (l(), u("div", ba, [
3596
+ p("div", ya, [
3597
3597
  (l(!0), u(Z, null, ee(f.digitCount, (i, b) => (l(), u("div", {
3598
3598
  key: b,
3599
3599
  class: "w-10"
@@ -3624,17 +3624,17 @@ const ut = /* @__PURE__ */ we(Cn, [["__scopeId", "data-v-988cfbb1"]]), $n = {
3624
3624
  }
3625
3625
  });
3626
3626
  var Ne = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(Ne || {});
3627
- const mt = ks(), ya = {
3627
+ const mt = ks(), ga = {
3628
3628
  "cmd-or-ctrl": mt === pt.Mac ? "⌘" : "⌃",
3629
3629
  "alt-or-opt": mt === pt.Mac ? "⌥" : "Alt",
3630
3630
  shift: "⇧"
3631
3631
  };
3632
3632
  function xu(e) {
3633
- const t = (o) => Object.values(Ne).includes(o);
3634
- return e.map((o) => t(o) ? ya[o] : o).join("");
3633
+ const t = (n) => Object.values(Ne).includes(n);
3634
+ return e.map((n) => t(n) ? ga[n] : n).join("");
3635
3635
  }
3636
- function wu(e, t, o) {
3637
- const n = Ds(), s = `${e.map((d) => {
3636
+ function wu(e, t, n) {
3637
+ const o = Ds(), s = `${e.map((d) => {
3638
3638
  switch (d) {
3639
3639
  case Ne.CtrlOrCmd:
3640
3640
  return mt === pt.Mac ? "Meta" : "Control";
@@ -3646,14 +3646,14 @@ function wu(e, t, o) {
3646
3646
  return "";
3647
3647
  }
3648
3648
  }).join("+")}+${t}`;
3649
- Us(n[s], o);
3649
+ Us(o[s], n);
3650
3650
  }
3651
3651
  function ku(e) {
3652
- const t = (e == null ? void 0 : e.model) || z(), o = m({
3652
+ const t = (e == null ? void 0 : e.model) || z(), n = m({
3653
3653
  get: () => !!t.value,
3654
- set: (n) => t.value = n ? !0 : void 0
3654
+ set: (o) => t.value = o ? !0 : void 0
3655
3655
  });
3656
- return { model: t, isChecked: o };
3656
+ return { model: t, isChecked: n };
3657
3657
  }
3658
3658
  const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, wa = { class: "flex items-center justify-start rounded-t-lg shrink-0 min-h-[2rem] sm:min-h-[3rem] px-6 py-4 truncate text-heading-sm" }, ka = { class: "flex items-center pr-12" }, Ca = { class: "w-full truncate" }, Cu = /* @__PURE__ */ W({
3659
3659
  __name: "Dialog",
@@ -3669,22 +3669,26 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3669
3669
  buttonsWrapperClasses: {},
3670
3670
  onSubmit: {},
3671
3671
  isTransparent: { type: Boolean },
3672
- closerClasses: {}
3672
+ closerClasses: {},
3673
+ hideTitle: { type: Boolean },
3674
+ hideButtons: { type: Boolean }
3673
3675
  },
3674
3676
  emits: ["update:open", "fully-closed", "back"],
3675
3677
  setup(e, { emit: t }) {
3676
- const o = t, n = e, a = at(), s = z(!1), d = z(!0), c = z(null);
3678
+ const n = t, o = e, a = at(), s = z(!1), d = z(!0), c = z(null);
3677
3679
  Ht(
3678
3680
  c,
3679
3681
  ft(() => {
3680
3682
  M({ target: c.value });
3681
3683
  }, 60)
3682
3684
  );
3683
- const v = m(() => !!n.onSubmit), h = m(() => n.buttons || a.buttons), f = m(() => !!n.title || !!a.header), g = m({
3684
- get: () => n.open,
3685
- set: (S) => o("update:open", S)
3685
+ const v = m(() => !!o.onSubmit), h = m(
3686
+ () => (o.buttons || a.buttons) && !o.hideButtons
3687
+ ), f = m(() => !o.hideTitle && (!!o.title || !!a.header)), y = m({
3688
+ get: () => o.open,
3689
+ set: (S) => n("update:open", S)
3686
3690
  }), i = m(() => {
3687
- switch (n.maxWidth) {
3691
+ switch (o.maxWidth) {
3688
3692
  case "xs":
3689
3693
  return 0;
3690
3694
  case "sm":
@@ -3702,27 +3706,27 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3702
3706
  const S = ["w-full", "sm:w-full"];
3703
3707
  return x.value || (i.value === 0 && S.push("md:max-w-sm"), i.value >= 1 && S.push("md:max-w-lg"), i.value >= 2 && S.push("md:max-w-2xl"), i.value >= 3 && S.push("lg:max-w-3xl"), i.value >= 4 ? S.push("xl:max-w-6xl") : S.push("md:max-w-2xl")), S.join(" ");
3704
3708
  }), x = m(
3705
- () => n.fullscreen === "desktop" || n.fullscreen === "all"
3709
+ () => o.fullscreen === "desktop" || o.fullscreen === "all"
3706
3710
  ), T = m(() => {
3707
3711
  const S = [
3708
3712
  "transform md:rounded-xl text-foreground overflow-hidden transition-all text-left flex flex-col md:h-auto"
3709
3713
  ];
3710
- return n.isTransparent || S.push("bg-foundation-page shadow-xl border border-outline-2"), x.value ? S.push("md:h-full") : S.push("md:max-h-[90vh]"), (n.fullscreen === "mobile" || n.fullscreen === "all") && S.push("max-md:h-[98vh] max-md:!h-[98dvh]"), n.fullscreen === "none" || n.fullscreen === "desktop" ? S.push("rounded-lg max-h-[90vh]") : S.push("rounded-t-lg"), S.push(b.value), S.join(" ");
3714
+ return o.isTransparent || S.push("bg-foundation-page shadow-xl border border-outline-2"), x.value ? S.push("md:h-full") : S.push("md:max-h-[90vh]"), (o.fullscreen === "mobile" || o.fullscreen === "all") && S.push("max-md:h-[98vh] max-md:!h-[98dvh]"), o.fullscreen === "none" || o.fullscreen === "desktop" ? S.push("rounded-lg max-h-[90vh]") : S.push("rounded-t-lg"), S.push(b.value), S.join(" ");
3711
3715
  }), $ = m(() => {
3712
3716
  const S = ["flex-1 simple-scrollbar overflow-y-auto text-body-xs"];
3713
- return n.isTransparent || (f.value ? (S.push("px-6 py-4"), x.value && S.push("md:p-0")) : x.value || S.push("px-6 py-4")), S.join(" ");
3717
+ return o.isTransparent || (f.value ? (S.push("px-6 py-4"), x.value && S.push("md:p-0")) : x.value || S.push("px-6 py-4")), S.join(" ");
3714
3718
  }), C = () => {
3715
- n.preventCloseOnClickOutside || (g.value = !1);
3719
+ o.preventCloseOnClickOutside || (y.value = !1);
3716
3720
  }, I = (S) => {
3717
3721
  var P;
3718
- (P = n.onSubmit) == null || P.call(n, S);
3722
+ (P = o.onSubmit) == null || P.call(o, S);
3719
3723
  }, M = ft((S) => {
3720
3724
  if (!S.target)
3721
3725
  return;
3722
3726
  const P = S.target, { scrollTop: B, offsetHeight: k, scrollHeight: E } = P;
3723
3727
  s.value = B > 0, d.value = B + k >= E;
3724
3728
  }, 60);
3725
- return ne(g, (S) => {
3729
+ return ne(y, (S) => {
3726
3730
  if (Me) {
3727
3731
  const P = document.documentElement;
3728
3732
  S ? P.classList.add("dialog-open") : P.classList.remove("dialog-open");
@@ -3733,7 +3737,7 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3733
3737
  const B = ze("tippy");
3734
3738
  return l(), j(r(Kt), {
3735
3739
  as: "template",
3736
- show: g.value
3740
+ show: y.value
3737
3741
  }, {
3738
3742
  default: R(() => [
3739
3743
  A(r(Js), {
@@ -3759,7 +3763,7 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3759
3763
  }),
3760
3764
  p("div", xa, [
3761
3765
  p("div", {
3762
- class: y(["flex md:justify-center h-full w-full md:p-6", [
3766
+ class: g(["flex md:justify-center h-full w-full md:p-6", [
3763
3767
  S.fullscreen === "none" || S.fullscreen === "desktop" ? "p-4 items-center" : "items-end md:items-center"
3764
3768
  ]])
3765
3769
  }, [
@@ -3775,7 +3779,7 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3775
3779
  }, {
3776
3780
  default: R(() => [
3777
3781
  A(r(Ys), {
3778
- class: y(T.value),
3782
+ class: g(T.value),
3779
3783
  "dialog-panel-classes": "",
3780
3784
  as: v.value ? "form" : "div",
3781
3785
  onSubmit: ve(I, ["prevent"])
@@ -3783,7 +3787,7 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3783
3787
  default: R(() => [
3784
3788
  f.value ? (l(), u("div", {
3785
3789
  key: 0,
3786
- class: y(["border-b border-outline-3", s.value && "relative z-20 shadow-lg"])
3790
+ class: g(["border-b border-outline-3", s.value && "relative z-20 shadow-lg"])
3787
3791
  }, [
3788
3792
  p("div", wa, [
3789
3793
  p("div", ka, [
@@ -3807,8 +3811,8 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3807
3811
  key: 1,
3808
3812
  color: "subtle",
3809
3813
  size: "sm",
3810
- class: y(["absolute z-20 top-4 right-5 shrink-0 !w-6 !h-6 !p-0 text-foreground-2", S.closerClasses]),
3811
- onClick: P[1] || (P[1] = (k) => g.value = !1)
3814
+ class: g(["absolute z-20 top-4 right-5 shrink-0 !w-6 !h-6 !p-0 text-foreground-2", S.closerClasses]),
3815
+ onClick: P[1] || (P[1] = (k) => y.value = !1)
3812
3816
  }, {
3813
3817
  default: R(() => [
3814
3818
  A(r(Ss), { class: "h-6 w-6" })
@@ -3818,7 +3822,7 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3818
3822
  p("div", {
3819
3823
  ref_key: "slotContainer",
3820
3824
  ref: c,
3821
- class: y($.value),
3825
+ class: g($.value),
3822
3826
  onScroll: P[2] || (P[2] = //@ts-ignore
3823
3827
  (...k) => r(M) && r(M)(...k))
3824
3828
  }, [
@@ -3828,7 +3832,7 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3828
3832
  ], 34),
3829
3833
  h.value ? (l(), u("div", {
3830
3834
  key: 2,
3831
- class: y(["relative z-50 flex justify-end px-6 pb-6 space-x-2 shrink-0 bg-foundation-page", {
3835
+ class: g(["relative z-50 flex justify-end px-6 pb-6 space-x-2 shrink-0 bg-foundation-page", {
3832
3836
  "shadow-t pt-6": !d.value,
3833
3837
  [S.buttonsWrapperClasses || ""]: !0
3834
3838
  }])
@@ -3842,8 +3846,8 @@ const xa = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, w
3842
3846
  disabled: ((H = k.props) == null ? void 0 : H.disabled) || k.disabled,
3843
3847
  submit: ((Q = k.props) == null ? void 0 : Q.submit) || k.submit,
3844
3848
  onClick: (Be) => {
3845
- var ge;
3846
- return (ge = k.onClick) == null ? void 0 : ge.call(k, Be);
3849
+ var ye;
3850
+ return (ye = k.onClick) == null ? void 0 : ye.call(k, Be);
3847
3851
  }
3848
3852
  }), {
3849
3853
  default: R(() => [
@@ -3902,7 +3906,7 @@ const $a = {
3902
3906
  }
3903
3907
  },
3904
3908
  setup(e) {
3905
- const t = e, o = z(null), n = z(0), a = z(!1), s = m(() => {
3909
+ const t = e, n = z(null), o = z(0), a = z(!1), s = m(() => {
3906
3910
  const v = [];
3907
3911
  return !t.button && !t.alwaysOpen && v.push("cursor-pointer", "hover:bg-foundation-page-2"), v;
3908
3912
  }), d = m(() => {
@@ -3922,12 +3926,12 @@ const $a = {
3922
3926
  }
3923
3927
  }), c = async () => {
3924
3928
  var v;
3925
- a.value = !a.value, a.value && (await Et(), n.value = (((v = r(o)) == null ? void 0 : v.scrollHeight) || 0) + 64);
3929
+ a.value = !a.value, a.value && (await Et(), o.value = (((v = r(n)) == null ? void 0 : v.scrollHeight) || 0) + 64);
3926
3930
  };
3927
3931
  return (v, h) => {
3928
- var f, g;
3932
+ var f, y;
3929
3933
  return l(), u("div", {
3930
- class: y(["flex flex-col border-primary-muted", {
3934
+ class: g(["flex flex-col border-primary-muted", {
3931
3935
  "border-t": e.borderT,
3932
3936
  "border-b": e.borderB,
3933
3937
  "relative z-10": a.value
@@ -3944,7 +3948,7 @@ const $a = {
3944
3948
  !0
3945
3949
  )), [
3946
3950
  p("div", {
3947
- class: y(["text-heading-sm flex items-center space-x-1 sm:space-x-2 select-none", d.value])
3951
+ class: g(["text-heading-sm flex items-center space-x-1 sm:space-x-2 select-none", d.value])
3948
3952
  }, [
3949
3953
  v.$slots.icon || e.icon ? (l(), u("div", $a, [
3950
3954
  v.$slots.icon ? U(v.$slots, "icon", { key: 0 }) : w("", !0),
@@ -3958,7 +3962,7 @@ const $a = {
3958
3962
  p("div", null, [
3959
3963
  !e.button && !e.alwaysOpen ? (l(), j(r(Ps), {
3960
3964
  key: 0,
3961
- class: y(["w-4 h-4 transition-all duration-400", a.value && "rotate-180"])
3965
+ class: g(["w-4 h-4 transition-all duration-400", a.value && "rotate-180"])
3962
3966
  }, null, 8, ["class"])) : w("", !0),
3963
3967
  e.button ? (l(), j(r(he), $e({
3964
3968
  key: 1,
@@ -3967,7 +3971,7 @@ const $a = {
3967
3971
  "icon-right": e.button.expandContent && a.value ? void 0 : e.button.iconRight,
3968
3972
  size: "sm",
3969
3973
  onClick: (f = e.button) == null ? void 0 : f.onClick
3970
- }, St((g = e.button) != null && g.expandContent ? { click: c } : {})), {
3974
+ }, St((y = e.button) != null && y.expandContent ? { click: c } : {})), {
3971
3975
  default: R(() => [
3972
3976
  F(O(e.button.expandContent && a.value ? "Cancel" : e.button.text), 1)
3973
3977
  ]),
@@ -3976,20 +3980,20 @@ const $a = {
3976
3980
  ])
3977
3981
  ], 16),
3978
3982
  p("div", {
3979
- class: y(["transition-all duration-300 overflow-hidden", [
3983
+ class: g(["transition-all duration-300 overflow-hidden", [
3980
3984
  e.allowOverflow && a.value ? "!overflow-visible" : "",
3981
3985
  a.value ? "mb-2 mt-1" : "",
3982
3986
  !e.button && !e.alwaysOpen ? "cursor-pointer hover:bg-foundation-page" : ""
3983
3987
  ]]),
3984
3988
  style: ae(
3985
- e.alwaysOpen ? "max-height: none;" : `max-height: ${a.value ? n.value + "px" : "0px"}`
3989
+ e.alwaysOpen ? "max-height: none;" : `max-height: ${a.value ? o.value + "px" : "0px"}`
3986
3990
  )
3987
3991
  }, [
3988
3992
  t.lazyLoad ? (l(), u(Z, { key: 0 }, [
3989
3993
  a.value || t.alwaysOpen ? (l(), u("div", {
3990
3994
  key: 0,
3991
3995
  ref_key: "content",
3992
- ref: o,
3996
+ ref: n,
3993
3997
  class: "rounded-md text-sm pb-3 px-2 mt-1"
3994
3998
  }, [
3995
3999
  U(v.$slots, "default", {}, () => [
@@ -3999,7 +4003,7 @@ const $a = {
3999
4003
  ], 64)) : (l(), u("div", {
4000
4004
  key: 1,
4001
4005
  ref_key: "content",
4002
- ref: o,
4006
+ ref: n,
4003
4007
  class: "rounded-md text-sm pb-3 px-2 mt-1"
4004
4008
  }, [
4005
4009
  U(v.$slots, "default", {}, () => [
@@ -4018,7 +4022,7 @@ const $a = {
4018
4022
  color: { default: "default" }
4019
4023
  },
4020
4024
  setup(e) {
4021
- const t = e, o = m(() => {
4025
+ const t = e, n = m(() => {
4022
4026
  const a = [
4023
4027
  "pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
4024
4028
  "ring-1 font-medium"
@@ -4045,7 +4049,7 @@ const $a = {
4045
4049
  break;
4046
4050
  }
4047
4051
  return a.join(" ");
4048
- }), n = m(() => {
4052
+ }), o = m(() => {
4049
4053
  const a = ["p-3 border-x border-b rounded-b-md"];
4050
4054
  switch (t.color) {
4051
4055
  case "warning":
@@ -4068,7 +4072,7 @@ const $a = {
4068
4072
  A(r(el), null, {
4069
4073
  default: R(({ open: d }) => [
4070
4074
  A(r(tl), {
4071
- class: y(o.value)
4075
+ class: g(n.value)
4072
4076
  }, {
4073
4077
  default: R(() => [
4074
4078
  p("div", Ia, [
@@ -4079,13 +4083,13 @@ const $a = {
4079
4083
  p("span", null, O(a.title), 1)
4080
4084
  ]),
4081
4085
  A(r(cl), {
4082
- class: y([d ? "" : "rotate-180 transform", "h-5 w-5"])
4086
+ class: g([d ? "" : "rotate-180 transform", "h-5 w-5"])
4083
4087
  }, null, 8, ["class"])
4084
4088
  ]),
4085
4089
  _: 2
4086
4090
  }, 1032, ["class"]),
4087
4091
  A(r(sl), {
4088
- class: y(n.value)
4092
+ class: g(o.value)
4089
4093
  }, {
4090
4094
  default: R(() => [
4091
4095
  p("div", Ba, [
@@ -4110,11 +4114,11 @@ const Sa = { class: "relative flex bg-primary-muted rounded-md" }, Pa = { class:
4110
4114
  },
4111
4115
  emits: ["click", "update:modelValue"],
4112
4116
  setup(e, { emit: t }) {
4113
- const o = t, n = e, a = m({
4114
- get: () => n.modelValue || Re.Grid,
4115
- set: (d) => o("update:modelValue", d)
4117
+ const n = t, o = e, a = m({
4118
+ get: () => o.modelValue || Re.Grid,
4119
+ set: (d) => n("update:modelValue", d)
4116
4120
  }), s = (d) => {
4117
- o("click", d);
4121
+ n("click", d);
4118
4122
  const c = a.value === Re.Grid ? Re.List : Re.Grid;
4119
4123
  a.value = c;
4120
4124
  };
@@ -4126,7 +4130,7 @@ const Sa = { class: "relative flex bg-primary-muted rounded-md" }, Pa = { class:
4126
4130
  }, [
4127
4131
  p("div", Sa, [
4128
4132
  p("div", {
4129
- class: y(["absolute transition", {
4133
+ class: g(["absolute transition", {
4130
4134
  "translate-x-7": a.value !== r(Re).List
4131
4135
  }])
4132
4136
  }, c[0] || (c[0] = [
@@ -4152,10 +4156,10 @@ function Va(e, t) {
4152
4156
  if (!Me)
4153
4157
  return;
4154
4158
  const {
4155
- wait: o = 100,
4156
- throttleOrDebounce: n = 0
4159
+ wait: n = 100,
4160
+ throttleOrDebounce: o = 0
4157
4161
  /* Throttle */
4158
- } = t || {}, a = o ? n === 0 ? ft(e, o) : Xe(e, o) : e;
4162
+ } = t || {}, a = n ? o === 0 ? ft(e, n) : Xe(e, n) : e;
4159
4163
  re(() => window.addEventListener("resize", a)), lt(() => window.removeEventListener("resize", a));
4160
4164
  }
4161
4165
  function Su(e) {
@@ -4166,8 +4170,8 @@ function Su(e) {
4166
4170
  });
4167
4171
  }
4168
4172
  function Ma(e) {
4169
- const { el: t, defaultDirection: o } = e, n = z(
4170
- Se(o) ? 1 : o
4173
+ const { el: t, defaultDirection: n } = e, o = z(
4174
+ Se(n) ? 1 : n
4171
4175
  /* Right */
4172
4176
  ), a = m(() => {
4173
4177
  const d = r(e.stopUpdatesBelowWidth);
@@ -4182,7 +4186,7 @@ function Ma(e) {
4182
4186
  if (!d)
4183
4187
  return;
4184
4188
  const c = d.getBoundingClientRect(), v = c.x + c.width > window.innerWidth, h = c.x < 0;
4185
- v && h || !Se(a.value) && window.innerWidth < a.value || (v ? n.value = 0 : h && (n.value = 1));
4189
+ v && h || !Se(a.value) && window.innerWidth < a.value || (v ? o.value = 0 : h && (o.value = 1));
4186
4190
  };
4187
4191
  return Va(() => s()), ne(
4188
4192
  () => r(t),
@@ -4190,7 +4194,7 @@ function Ma(e) {
4190
4194
  d && s();
4191
4195
  }
4192
4196
  ), {
4193
- direction: m(() => n.value),
4197
+ direction: m(() => o.value),
4194
4198
  recalculateDirection: s
4195
4199
  };
4196
4200
  }
@@ -4206,21 +4210,21 @@ const za = ["disabled", "onClick"], Pu = /* @__PURE__ */ W({
4206
4210
  },
4207
4211
  emits: ["update:open", "chosen"],
4208
4212
  setup(e, { emit: t }) {
4209
- const o = t, n = e, a = z(null), s = z(null), d = z(null), c = z(!1), v = z(!1), h = m({
4210
- get: () => n.open || !1,
4211
- set: (I) => o("update:open", I)
4213
+ const n = t, o = e, a = z(null), s = z(null), d = z(null), c = z(!1), v = z(!1), h = m({
4214
+ get: () => o.open || !1,
4215
+ set: (I) => n("update:open", I)
4212
4216
  }), f = wt(d, {
4213
4217
  windowResize: !0,
4214
4218
  windowScroll: !0,
4215
4219
  immediate: !0
4216
- }), g = m(() => {
4217
- if (!n.mountMenuOnBody)
4220
+ }), y = m(() => {
4221
+ if (!o.mountMenuOnBody)
4218
4222
  return {};
4219
4223
  if (!f.width.value)
4220
4224
  return {};
4221
4225
  let I = f.left.value;
4222
- if (n.menuPosition === Je.Left) {
4223
- const M = n.size === "lg" ? 175 : 143;
4226
+ if (o.menuPosition === Je.Left) {
4227
+ const M = o.size === "lg" ? 175 : 143;
4224
4228
  I = f.left.value - M;
4225
4229
  }
4226
4230
  return {
@@ -4236,16 +4240,16 @@ const za = ["disabled", "onClick"], Pu = /* @__PURE__ */ W({
4236
4240
  }),
4237
4241
  defaultDirection: Je.Left,
4238
4242
  stopUpdatesBelowWidth: 300
4239
- }), b = m(() => n.menuPosition || i.value), x = (I) => {
4243
+ }), b = m(() => o.menuPosition || i.value), x = (I) => {
4240
4244
  const { active: M, disabled: S, color: P } = I, B = [
4241
4245
  "group flex space-x-2 w-full items-center rounded-md px-2 py-1 text-body-xs"
4242
4246
  ];
4243
4247
  return M && !P ? B.push("bg-primary-muted text-foreground") : S ? B.push("opacity-40") : P === "danger" && M ? B.push("text-foreground-on-primary bg-danger") : P === "danger" && !M ? B.push("text-danger") : P === "info" && M ? B.push("text-foreground-on-primary bg-info") : P === "info" && !M ? B.push("text-info") : B.push("text-foreground"), B.join(" ");
4244
4248
  }, T = (I, M) => {
4245
- o("chosen", { item: I, event: M });
4249
+ n("chosen", { item: I, event: M });
4246
4250
  }, $ = () => {
4247
4251
  var I;
4248
- (I = s.value) == null || I.el.click(), n.mountMenuOnBody && f.update();
4252
+ (I = s.value) == null || I.el.click(), o.mountMenuOnBody && f.update();
4249
4253
  }, C = (I) => {
4250
4254
  const M = !!I;
4251
4255
  return c.value = M, M;
@@ -4277,7 +4281,7 @@ const za = ["disabled", "onClick"], Pu = /* @__PURE__ */ W({
4277
4281
  p("div", {
4278
4282
  ref_key: "menuButtonWrapper",
4279
4283
  ref: d,
4280
- class: y(S ? "pointer-events-none" : "")
4284
+ class: g(S ? "pointer-events-none" : "")
4281
4285
  }, [
4282
4286
  U(I.$slots, "default", {
4283
4287
  toggle: $,
@@ -4293,13 +4297,13 @@ const za = ["disabled", "onClick"], Pu = /* @__PURE__ */ W({
4293
4297
  key: 0,
4294
4298
  ref_key: "menuItems",
4295
4299
  ref: a,
4296
- class: y([
4300
+ class: g([
4297
4301
  "mt-1 w-44 origin-top-right divide-y divide-outline-3 rounded-md bg-foundation shadow-lg border border-outline-2 z-50",
4298
4302
  b.value === r(Je).Left ? "right-0" : "",
4299
4303
  I.mountMenuOnBody ? "fixed" : "absolute",
4300
4304
  I.size === "lg" ? "w-52" : "w-44"
4301
4305
  ]),
4302
- style: ae(g.value)
4306
+ style: ae(y.value)
4303
4307
  }, {
4304
4308
  default: R(() => [
4305
4309
  (l(!0), u(Z, null, ee(I.items, (P, B) => (l(), u("div", {
@@ -4314,7 +4318,7 @@ const za = ["disabled", "onClick"], Pu = /* @__PURE__ */ W({
4314
4318
  default: R(({ active: E, disabled: H }) => [
4315
4319
  Y((l(), u("span", null, [
4316
4320
  p("button", {
4317
- class: y(x({ active: E, disabled: H, color: k.color })),
4321
+ class: g(x({ active: E, disabled: H, color: k.color })),
4318
4322
  disabled: H,
4319
4323
  onClick: (Q) => T(k, Q)
4320
4324
  }, [
@@ -4350,14 +4354,14 @@ var Ra = Yt.Symbol;
4350
4354
  const tt = Ra;
4351
4355
  var es = Object.prototype, Fa = es.hasOwnProperty, Da = es.toString, _e = tt ? tt.toStringTag : void 0;
4352
4356
  function Ua(e) {
4353
- var t = Fa.call(e, _e), o = e[_e];
4357
+ var t = Fa.call(e, _e), n = e[_e];
4354
4358
  try {
4355
4359
  e[_e] = void 0;
4356
- var n = !0;
4360
+ var o = !0;
4357
4361
  } catch {
4358
4362
  }
4359
4363
  var a = Da.call(e);
4360
- return n && (t ? e[_e] = o : delete e[_e]), a;
4364
+ return o && (t ? e[_e] = n : delete e[_e]), a;
4361
4365
  }
4362
4366
  var Wa = Object.prototype, Ha = Wa.toString;
4363
4367
  function qa(e) {
@@ -4401,33 +4405,33 @@ function jt(e) {
4401
4405
  if (typeof e != "string")
4402
4406
  return e === 0 ? e : +e;
4403
4407
  e = er(e);
4404
- var o = sr.test(e);
4405
- return o || lr.test(e) ? or(e.slice(2), o ? 2 : 8) : tr.test(e) ? zt : +e;
4408
+ var n = sr.test(e);
4409
+ return n || lr.test(e) ? or(e.slice(2), n ? 2 : 8) : tr.test(e) ? zt : +e;
4406
4410
  }
4407
4411
  var nr = function() {
4408
4412
  return Yt.Date.now();
4409
4413
  };
4410
4414
  const ct = nr;
4411
4415
  var ar = "Expected a function", rr = Math.max, ir = Math.min;
4412
- function ur(e, t, o) {
4413
- var n, a, s, d, c, v, h = 0, f = !1, g = !1, i = !0;
4416
+ function ur(e, t, n) {
4417
+ var o, a, s, d, c, v, h = 0, f = !1, y = !1, i = !0;
4414
4418
  if (typeof e != "function")
4415
4419
  throw new TypeError(ar);
4416
- t = jt(t) || 0, st(o) && (f = !!o.leading, g = "maxWait" in o, s = g ? rr(jt(o.maxWait) || 0, t) : s, i = "trailing" in o ? !!o.trailing : i);
4420
+ t = jt(t) || 0, st(n) && (f = !!n.leading, y = "maxWait" in n, s = y ? rr(jt(n.maxWait) || 0, t) : s, i = "trailing" in n ? !!n.trailing : i);
4417
4421
  function b(B) {
4418
- var k = n, E = a;
4419
- return n = a = void 0, h = B, d = e.apply(E, k), d;
4422
+ var k = o, E = a;
4423
+ return o = a = void 0, h = B, d = e.apply(E, k), d;
4420
4424
  }
4421
4425
  function x(B) {
4422
4426
  return h = B, c = setTimeout(C, t), f ? b(B) : d;
4423
4427
  }
4424
4428
  function T(B) {
4425
4429
  var k = B - v, E = B - h, H = t - k;
4426
- return g ? ir(H, s - E) : H;
4430
+ return y ? ir(H, s - E) : H;
4427
4431
  }
4428
4432
  function $(B) {
4429
4433
  var k = B - v, E = B - h;
4430
- return v === void 0 || k >= t || k < 0 || g && E >= s;
4434
+ return v === void 0 || k >= t || k < 0 || y && E >= s;
4431
4435
  }
4432
4436
  function C() {
4433
4437
  var B = ct();
@@ -4436,20 +4440,20 @@ function ur(e, t, o) {
4436
4440
  c = setTimeout(C, T(B));
4437
4441
  }
4438
4442
  function I(B) {
4439
- return c = void 0, i && n ? b(B) : (n = a = void 0, d);
4443
+ return c = void 0, i && o ? b(B) : (o = a = void 0, d);
4440
4444
  }
4441
4445
  function M() {
4442
- c !== void 0 && clearTimeout(c), h = 0, n = v = a = c = void 0;
4446
+ c !== void 0 && clearTimeout(c), h = 0, o = v = a = c = void 0;
4443
4447
  }
4444
4448
  function S() {
4445
4449
  return c === void 0 ? d : I(ct());
4446
4450
  }
4447
4451
  function P() {
4448
4452
  var B = ct(), k = $(B);
4449
- if (n = arguments, a = this, v = B, k) {
4453
+ if (o = arguments, a = this, v = B, k) {
4450
4454
  if (c === void 0)
4451
4455
  return x(v);
4452
- if (g)
4456
+ if (y)
4453
4457
  return clearTimeout(c), c = setTimeout(C, t), b(v);
4454
4458
  }
4455
4459
  return c === void 0 && (c = setTimeout(C, t)), d;
@@ -4457,17 +4461,17 @@ function ur(e, t, o) {
4457
4461
  return P.cancel = M, P.flush = S, P;
4458
4462
  }
4459
4463
  var dr = "Expected a function";
4460
- function cr(e, t, o) {
4461
- var n = !0, a = !0;
4464
+ function cr(e, t, n) {
4465
+ var o = !0, a = !0;
4462
4466
  if (typeof e != "function")
4463
4467
  throw new TypeError(dr);
4464
- return st(o) && (n = "leading" in o ? !!o.leading : n, a = "trailing" in o ? !!o.trailing : a), ur(e, t, {
4465
- leading: n,
4468
+ return st(n) && (o = "leading" in n ? !!n.leading : o, a = "trailing" in n ? !!n.trailing : a), ur(e, t, {
4469
+ leading: o,
4466
4470
  maxWait: t,
4467
4471
  trailing: a
4468
4472
  });
4469
4473
  }
4470
- const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolute left-[-2px] top-[-2px] z-20 pr-8 bg-gradient-to-r from-foundation-page to-transparent" }, mr = ["data-tab-id", "disabled", "onClick"], vr = { class: "flex space-x-2 items-center" }, hr = { class: "min-w-6" }, br = { key: 0 }, gr = { key: 1 }, yr = { class: "absolute right-[-2px] top-[-2px] z-20 pl-8 bg-gradient-to-l from-foundation-page to-transparent" }, xr = { class: "pt-4" }, Ou = /* @__PURE__ */ W({
4474
+ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolute left-[-2px] top-[-2px] z-20 pr-8 bg-gradient-to-r from-foundation-page to-transparent" }, mr = ["data-tab-id", "disabled", "onClick"], vr = { class: "flex space-x-2 items-center" }, hr = { class: "min-w-6" }, br = { key: 0 }, yr = { key: 1 }, gr = { class: "absolute right-[-2px] top-[-2px] z-20 pl-8 bg-gradient-to-l from-foundation-page to-transparent" }, xr = { class: "pt-4" }, Ou = /* @__PURE__ */ W({
4471
4475
  __name: "Horizontal",
4472
4476
  props: /* @__PURE__ */ Pe({
4473
4477
  items: {}
@@ -4477,9 +4481,9 @@ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolu
4477
4481
  }),
4478
4482
  emits: ["update:activeItem"],
4479
4483
  setup(e) {
4480
- const t = e, o = Fe(e, "activeItem"), n = z(null), a = z(null), s = z(!1), d = z(!1), c = z(!0), { width: v } = Ws(n), h = m(() => (M) => {
4484
+ const t = e, n = Fe(e, "activeItem"), o = z(null), a = z(null), s = z(!1), d = z(!1), c = z(!0), { width: v } = Ws(o), h = m(() => (M) => {
4481
4485
  var B;
4482
- const S = ((B = o.value) == null ? void 0 : B.id) === M.id, P = [
4486
+ const S = ((B = n.value) == null ? void 0 : B.id) === M.id, P = [
4483
4487
  "relative",
4484
4488
  "z-10",
4485
4489
  "flex",
@@ -4497,12 +4501,12 @@ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolu
4497
4501
  return S ? P.push("text-primary", "hover:text-primary") : P.push("text-foreground"), P;
4498
4502
  }), f = m(() => {
4499
4503
  var B;
4500
- const M = (B = o.value) == null ? void 0 : B.id;
4504
+ const M = (B = n.value) == null ? void 0 : B.id;
4501
4505
  if (!M)
4502
4506
  return null;
4503
- const S = n.value;
4507
+ const S = o.value;
4504
4508
  return S && [...S.getElementsByClassName("tab-button")].find((k) => k.dataset.tabId === M) || null;
4505
- }), g = m(() => {
4509
+ }), y = m(() => {
4506
4510
  var M, S;
4507
4511
  return v.value ? {
4508
4512
  left: `${((M = f.value) == null ? void 0 : M.offsetLeft) || 0}px`,
@@ -4512,10 +4516,10 @@ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolu
4512
4516
  width: "0px"
4513
4517
  };
4514
4518
  }), i = (M) => {
4515
- o.value = M, c.value = !1;
4519
+ n.value = M, c.value = !1;
4516
4520
  }, b = (M) => {
4517
4521
  var S;
4518
- return ((S = o.value) == null ? void 0 : S.id) === M.id;
4522
+ return ((S = n.value) == null ? void 0 : S.id) === M.id;
4519
4523
  }, x = () => {
4520
4524
  const M = a.value;
4521
4525
  if (!M)
@@ -4539,11 +4543,11 @@ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolu
4539
4543
  });
4540
4544
  };
4541
4545
  return re(() => {
4542
- Me && (t.items.length && !o.value && i(t.items[0]), x(), I());
4546
+ Me && (t.items.length && !n.value && i(t.items[0]), x(), I());
4543
4547
  }), ne(
4544
- () => [t.items, o.value],
4548
+ () => [t.items, n.value],
4545
4549
  ([M]) => {
4546
- Array.isArray(M) && M.length && !o.value && i(M[0]), x();
4550
+ Array.isArray(M) && M.length && !n.value && i(M[0]), x();
4547
4551
  }
4548
4552
  ), lt(() => {
4549
4553
  C.cancel();
@@ -4568,12 +4572,12 @@ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolu
4568
4572
  (...B) => r(C) && r(C)(...B))
4569
4573
  }, [
4570
4574
  p("div", {
4571
- style: ae(g.value),
4572
- class: y(["h-[2px] absolute bottom-0 z-20 transition-[left,width] duration-300", c.value ? "bg-transparent" : "bg-primary"])
4575
+ style: ae(y.value),
4576
+ class: g(["h-[2px] absolute bottom-0 z-20 transition-[left,width] duration-300", c.value ? "bg-transparent" : "bg-primary"])
4573
4577
  }, null, 6),
4574
4578
  p("div", {
4575
4579
  ref_key: "buttonContainer",
4576
- ref: n,
4580
+ ref: o,
4577
4581
  class: "flex w-full space-x-4"
4578
4582
  }, [
4579
4583
  (l(!0), u(Z, null, ee(M.items, (B) => {
@@ -4581,7 +4585,7 @@ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolu
4581
4585
  return l(), u("button", {
4582
4586
  key: B.id,
4583
4587
  "data-tab-id": B.id,
4584
- class: y([[
4588
+ class: g([[
4585
4589
  h.value(B),
4586
4590
  { "!border-primary": b(B) && c.value }
4587
4591
  ], "tab-button"]),
@@ -4598,13 +4602,13 @@ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolu
4598
4602
  F(O(B.title), 1)
4599
4603
  ])), [
4600
4604
  [P, B.disabledMessage]
4601
- ]) : (l(), u("span", gr, O(B.title), 1))
4605
+ ]) : (l(), u("span", yr, O(B.title), 1))
4602
4606
  ]),
4603
4607
  B.count ? (l(), u("div", {
4604
4608
  key: 1,
4605
- class: y([
4609
+ class: g([
4606
4610
  "rounded-full px-2 text-body-3xs transition-all min-w-6",
4607
- ((k = o.value) == null ? void 0 : k.id) === B.id ? "text-primary bg-info-lighter dark:text-foreground" : "text-foreground-2 bg-highlight-3"
4611
+ ((k = n.value) == null ? void 0 : k.id) === B.id ? "text-primary bg-info-lighter dark:text-foreground" : "text-foreground-2 bg-highlight-3"
4608
4612
  ])
4609
4613
  }, [
4610
4614
  p("span", null, O(B.count), 1)
@@ -4620,7 +4624,7 @@ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolu
4620
4624
  }), 128))
4621
4625
  ], 512)
4622
4626
  ], 544),
4623
- p("div", yr, [
4627
+ p("div", gr, [
4624
4628
  d.value ? (l(), u("button", {
4625
4629
  key: 0,
4626
4630
  class: "bg-foundation p-1 rounded-full border border-outline-3 shadow",
@@ -4630,7 +4634,7 @@ const fr = { class: "relative z-10 flex flex-col !mt-0" }, pr = { class: "absolu
4630
4634
  ])) : w("", !0)
4631
4635
  ]),
4632
4636
  p("div", xr, [
4633
- U(M.$slots, "default", { activeItem: o.value })
4637
+ U(M.$slots, "default", { activeItem: n.value })
4634
4638
  ])
4635
4639
  ]);
4636
4640
  };
@@ -4649,9 +4653,9 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4649
4653
  }),
4650
4654
  emits: ["update:activeItem"],
4651
4655
  setup(e) {
4652
- const t = e, o = Fe(e, "activeItem"), n = m(() => (s) => {
4656
+ const t = e, n = Fe(e, "activeItem"), o = m(() => (s) => {
4653
4657
  var v;
4654
- const d = ((v = o.value) == null ? void 0 : v.id) === s.id, c = [
4658
+ const d = ((v = n.value) == null ? void 0 : v.id) === s.id, c = [
4655
4659
  "relative",
4656
4660
  "flex items-center space-x-1.5",
4657
4661
  "hover:bg-highlight-2",
@@ -4661,14 +4665,14 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4661
4665
  ];
4662
4666
  return d ? c.push("bg-primary-muted") : c.push("border-transparent text-foreground"), c;
4663
4667
  }), a = (s) => {
4664
- o.value = s;
4668
+ n.value = s;
4665
4669
  };
4666
4670
  return re(() => {
4667
- Me && t.items.length && !o.value && a(t.items[0]);
4671
+ Me && t.items.length && !n.value && a(t.items[0]);
4668
4672
  }), ne(
4669
- () => [t.items, o.value],
4673
+ () => [t.items, n.value],
4670
4674
  ([s]) => {
4671
- Array.isArray(s) && s.length && !o.value && a(s[0]);
4675
+ Array.isArray(s) && s.length && !n.value && a(s[0]);
4672
4676
  }
4673
4677
  ), (s, d) => {
4674
4678
  const c = ze("tippy");
@@ -4680,7 +4684,7 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4680
4684
  return l(), u("button", {
4681
4685
  key: v.id,
4682
4686
  "data-tab-id": v.id,
4683
- class: y([n.value(v)]),
4687
+ class: g([o.value(v)]),
4684
4688
  disabled: v.disabled,
4685
4689
  onClick: (f) => a(v)
4686
4690
  }, [
@@ -4698,9 +4702,9 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4698
4702
  p("span", Sr, O(v.title), 1),
4699
4703
  v.count ? (l(), u("div", {
4700
4704
  key: 1,
4701
- class: y([
4705
+ class: g([
4702
4706
  "rounded-full px-2 text-body-3xs transition-all min-w-6",
4703
- ((h = o.value) == null ? void 0 : h.id) === v.id ? "text-primary bg-info-lighter dark:text-foreground" : "text-foreground-2 bg-foundation-2"
4707
+ ((h = n.value) == null ? void 0 : h.id) === v.id ? "text-primary bg-info-lighter dark:text-foreground" : "text-foreground-2 bg-foundation-2"
4704
4708
  ])
4705
4709
  }, [
4706
4710
  p("span", null, O(v.count), 1)
@@ -4712,7 +4716,7 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4712
4716
  ])
4713
4717
  ]),
4714
4718
  p("div", Or, [
4715
- U(s.$slots, "default", { activeItem: o.value })
4719
+ U(s.$slots, "default", { activeItem: n.value })
4716
4720
  ])
4717
4721
  ]);
4718
4722
  };
@@ -4737,9 +4741,9 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4737
4741
  loading: { type: Boolean }
4738
4742
  },
4739
4743
  setup(e) {
4740
- const t = e, o = m(() => (t.buttons || []).length), n = m(() => {
4744
+ const t = e, n = m(() => (t.buttons || []).length), o = m(() => {
4741
4745
  let h = 16;
4742
- return o.value > 0 && (h = 48 + (o.value - 1) * 42), `${h}px`;
4746
+ return n.value > 0 && (h = 48 + (n.value - 1) * 42), `${h}px`;
4743
4747
  }), a = m(() => {
4744
4748
  var f;
4745
4749
  const h = [
@@ -4754,12 +4758,12 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4754
4758
  break;
4755
4759
  }
4756
4760
  return h.join(" ");
4757
- }), s = (h, f, g) => {
4761
+ }), s = (h, f, y) => {
4758
4762
  var x;
4759
4763
  const b = [(h ? (x = t.columns.find((T) => T.id === h)) == null ? void 0 : x.classes : "") || ""];
4760
- return g != null && g.noPadding || (f === 0 ? b.push("px-1") : b.push("lg:p-0 px-1")), b.join(" ");
4761
- }, d = (h, f, g) => {
4762
- const i = [s(h, f, g)];
4764
+ return y != null && y.noPadding || (f === 0 ? b.push("px-1") : b.push("lg:p-0 px-1")), b.join(" ");
4765
+ }, d = (h, f, y) => {
4766
+ const i = [s(h, f, y)];
4763
4767
  return f === 0 ? i.push(`bg-transparent py-2 ${h ? "pr-5" : "col-span-full"}`) : i.push("my-2"), i.join(" ");
4764
4768
  }, c = (h) => {
4765
4769
  var f;
@@ -4773,34 +4777,34 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4773
4777
  "border-b border-outline-3"
4774
4778
  ]);
4775
4779
  return (h, f) => {
4776
- var g;
4780
+ var y;
4777
4781
  return l(), u("div", Lr, [
4778
4782
  p("div", Vr, [
4779
4783
  p("div", {
4780
- class: y(v.value),
4781
- style: ae({ paddingRight: n.value })
4784
+ class: g(v.value),
4785
+ style: ae({ paddingRight: o.value })
4782
4786
  }, [
4783
4787
  (l(!0), u(Z, null, ee(h.columns, (i, b) => (l(), u("div", {
4784
4788
  key: i.id,
4785
- class: y(s(i.id, b))
4789
+ class: g(s(i.id, b))
4786
4790
  }, O(i.header), 3))), 128))
4787
4791
  ], 6),
4788
4792
  p("div", {
4789
- class: y(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": h.overflowCells }])
4793
+ class: g(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": h.overflowCells }])
4790
4794
  }, [
4791
4795
  h.loading || !h.items ? (l(), u("div", Mr, [
4792
4796
  A(r(Qe))
4793
- ])) : (g = h.items) != null && g.length ? (l(!0), u(Z, { key: 1 }, ee(h.items, (i) => (l(), u("div", {
4797
+ ])) : (y = h.items) != null && y.length ? (l(!0), u(Z, { key: 1 }, ee(h.items, (i) => (l(), u("div", {
4794
4798
  key: i.id,
4795
- style: ae({ paddingRight: n.value }),
4796
- class: y(a.value),
4799
+ style: ae({ paddingRight: o.value }),
4800
+ class: g(a.value),
4797
4801
  tabindex: "0",
4798
4802
  onClick: (b) => c(i),
4799
4803
  onKeypress: (b) => c(i)
4800
4804
  }, [
4801
4805
  (l(!0), u(Z, null, ee(h.columns, (b, x) => (l(), u("div", {
4802
4806
  key: b.id,
4803
- class: y(d(b.id, x)),
4807
+ class: g(d(b.id, x)),
4804
4808
  tabindex: "0"
4805
4809
  }, [
4806
4810
  U(h.$slots, b.id, { item: i }, () => [
@@ -4817,9 +4821,9 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4817
4821
  color: "outline",
4818
4822
  "hide-text": "",
4819
4823
  disabled: b.disabled,
4820
- class: y(b.class),
4824
+ class: g(b.class),
4821
4825
  to: r(Oe)(b.action) ? b.action : void 0,
4822
- onClick: ve((x) => r(Oe)(b.action) ? r(gt) : b.action(i), ["stop"])
4826
+ onClick: ve((x) => r(Oe)(b.action) ? r(yt) : b.action(i), ["stop"])
4823
4827
  }, null, 8, ["icon-left", "disabled", "class", "to", "onClick"]), [
4824
4828
  [r(Ve), b.tooltip]
4825
4829
  ])
@@ -4828,11 +4832,11 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4828
4832
  ], 46, zr))), 128)) : (l(), u("div", {
4829
4833
  key: 2,
4830
4834
  tabindex: "0",
4831
- style: ae({ paddingRight: n.value }),
4832
- class: y(a.value)
4835
+ style: ae({ paddingRight: o.value }),
4836
+ class: g(a.value)
4833
4837
  }, [
4834
4838
  p("div", {
4835
- class: y(d(void 0, 0)),
4839
+ class: g(d(void 0, 0)),
4836
4840
  tabindex: "0"
4837
4841
  }, [
4838
4842
  U(h.$slots, "empty", {}, () => [
@@ -4853,18 +4857,18 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4853
4857
  },
4854
4858
  emits: ["infinite"],
4855
4859
  setup(e) {
4856
- const t = z(null), o = z(!1);
4860
+ const t = z(null), n = z(!1);
4857
4861
  return Me && re(() => {
4858
- const n = setInterval(() => {
4862
+ const o = setInterval(() => {
4859
4863
  var a;
4860
- (a = t.value) != null && a.isConnected && (o.value = !0, clearInterval(n));
4864
+ (a = t.value) != null && a.isConnected && (n.value = !0, clearInterval(o));
4861
4865
  }, 200);
4862
- }), (n, a) => (l(), u("div", {
4866
+ }), (o, a) => (l(), u("div", {
4863
4867
  ref_key: "wrapper",
4864
4868
  ref: t
4865
4869
  }, [
4866
- o.value ? (l(), j(r(vl), $e({ key: 0 }, n.$props.settings || {}, {
4867
- onInfinite: a[0] || (a[0] = (s) => n.$emit("infinite", s))
4870
+ n.value ? (l(), j(r(vl), $e({ key: 0 }, o.$props.settings || {}, {
4871
+ onInfinite: a[0] || (a[0] = (s) => o.$emit("infinite", s))
4868
4872
  }), {
4869
4873
  spinner: R(() => [
4870
4874
  A(ut, {
@@ -4881,7 +4885,7 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4881
4885
  A(r(Vs), { class: "w-5 h-5 text-danger" }),
4882
4886
  a[2] || (a[2] = p("span", { class: "text-foreground-2" }, "An error occurred while loading", -1))
4883
4887
  ]),
4884
- n.allowRetry ? (l(), j(he, {
4888
+ o.allowRetry ? (l(), j(he, {
4885
4889
  key: 0,
4886
4890
  onClick: s
4887
4891
  }, {
@@ -4937,38 +4941,38 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4937
4941
  },
4938
4942
  emits: ["submit"],
4939
4943
  setup(e, { emit: t }) {
4940
- const o = t, n = e, a = m(
4941
- () => n.customPadding ? "" : "px-4 py-4 sm:px-6"
4944
+ const n = t, o = e, a = m(
4945
+ () => o.customPadding ? "" : "px-4 py-4 sm:px-6"
4942
4946
  ), s = m(
4943
- () => n.customPadding ? "" : "px-4 py-4 sm:p-6"
4947
+ () => o.customPadding ? "" : "px-4 py-4 sm:p-6"
4944
4948
  ), d = m(() => {
4945
4949
  const c = ["rounded-lg"];
4946
- return n.noShadow || c.push("shadow"), n.ring && c.push("ring-outline-1 hover:ring-1"), n.panelClasses && c.push(n.panelClasses), c.join(" ");
4950
+ return o.noShadow || c.push("shadow"), o.ring && c.push("ring-outline-1 hover:ring-1"), o.panelClasses && c.push(o.panelClasses), c.join(" ");
4947
4951
  });
4948
4952
  return (c, v) => (l(), u("div", Rr, [
4949
4953
  e.fancyGlow ? (l(), u("div", Fr)) : w("", !0),
4950
4954
  (l(), j(le(e.form ? "form" : "div"), {
4951
- class: y([
4955
+ class: g([
4952
4956
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
4953
4957
  d.value
4954
4958
  ]),
4955
- onSubmit: v[0] || (v[0] = (h) => o("submit", h))
4959
+ onSubmit: v[0] || (v[0] = (h) => n("submit", h))
4956
4960
  }, {
4957
4961
  default: R(() => [
4958
4962
  c.$slots.header ? (l(), u("div", {
4959
4963
  key: 0,
4960
- class: y(a.value)
4964
+ class: g(a.value)
4961
4965
  }, [
4962
4966
  U(c.$slots, "header")
4963
4967
  ], 2)) : w("", !0),
4964
4968
  p("div", {
4965
- class: y(["grow", s.value])
4969
+ class: g(["grow", s.value])
4966
4970
  }, [
4967
4971
  U(c.$slots, "default")
4968
4972
  ], 2),
4969
4973
  c.$slots.footer ? (l(), u("div", {
4970
4974
  key: 1,
4971
- class: y(a.value)
4975
+ class: g(a.value)
4972
4976
  }, [
4973
4977
  U(c.$slots, "footer")
4974
4978
  ], 2)) : w("", !0)
@@ -4983,10 +4987,10 @@ const wr = { class: "flex space-y-8 lg:space-y-0 lg:space-x-8 flex-col lg:flex-r
4983
4987
  };
4984
4988
  function Wr(e, t) {
4985
4989
  return l(), u("aside", {
4986
- class: y(["flex flex-col justify-between h-full w-full", e.$slots.promo ? "" : "overflow-y-auto overflow-x-hidden simple-scrollbar"])
4990
+ class: g(["flex flex-col justify-between h-full w-full", e.$slots.promo ? "" : "overflow-y-auto overflow-x-hidden simple-scrollbar"])
4987
4991
  }, [
4988
4992
  p("div", {
4989
- class: y(["flex flex-col h-full w-full", e.$slots.promo ? "overflow-y-auto overflow-x-hidden simple-scrollbar" : ""])
4993
+ class: g(["flex flex-col h-full w-full", e.$slots.promo ? "overflow-y-auto overflow-x-hidden simple-scrollbar" : ""])
4990
4994
  }, [
4991
4995
  U(e.$slots, "default")
4992
4996
  ], 2),
@@ -5011,7 +5015,7 @@ const ju = /* @__PURE__ */ we(Dr, [["render", Wr]]), Hr = { class: "flex flex-co
5011
5015
  },
5012
5016
  emits: ["onClick"],
5013
5017
  setup(e) {
5014
- return (t, o) => (l(), u("div", Hr, [
5018
+ return (t, n) => (l(), u("div", Hr, [
5015
5019
  t.title ? (l(), u("h6", qr, O(t.title), 1)) : w("", !0),
5016
5020
  t.text ? (l(), u("p", Kr, O(t.text), 1)) : w("", !0),
5017
5021
  t.buttonText ? (l(), j(he, {
@@ -5020,7 +5024,7 @@ const ju = /* @__PURE__ */ we(Dr, [["render", Wr]]), Hr = { class: "flex flex-co
5020
5024
  class: "mt-1",
5021
5025
  to: t.to,
5022
5026
  target: t.to ? "_blank" : void 0,
5023
- onClick: o[0] || (o[0] = (n) => t.$emit("onClick"))
5027
+ onClick: n[0] || (n[0] = (o) => t.$emit("onClick"))
5024
5028
  }, {
5025
5029
  default: R(() => [
5026
5030
  F(O(t.buttonText), 1)
@@ -5118,41 +5122,41 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5118
5122
  emits: ["update:collapsed"],
5119
5123
  setup(e) {
5120
5124
  const t = Fe(e, "collapsed");
5121
- return (o, n) => {
5125
+ return (n, o) => {
5122
5126
  const a = ze("tippy");
5123
5127
  return l(), u("div", ai, [
5124
- o.title ? (l(), u("div", {
5128
+ n.title ? (l(), u("div", {
5125
5129
  key: 0,
5126
- class: y(["h-8 flex items-center justify-between select-none rounded-md", [o.collapsible && !o.noHover && "hover:bg-highlight-1"]])
5130
+ class: g(["h-8 flex items-center justify-between select-none rounded-md", [n.collapsible && !n.noHover && "hover:bg-highlight-1"]])
5127
5131
  }, [
5128
- (l(), j(le(o.collapsible ? "button" : "div"), {
5129
- class: y(["flex items-center w-full", [
5130
- o.collapsible ? "group rounded-md gap-x-1" : "space-x-1 p-1 text-foreground-2",
5131
- o.collapsible && !o.noHover ? "py-0.5 px-2" : "pl-2"
5132
+ (l(), j(le(n.collapsible ? "button" : "div"), {
5133
+ class: g(["flex items-center w-full", [
5134
+ n.collapsible ? "group rounded-md gap-x-1" : "space-x-1 p-1 text-foreground-2",
5135
+ n.collapsible && !n.noHover ? "py-0.5 px-2" : "pl-2"
5132
5136
  ]]),
5133
- onClick: n[0] || (n[0] = (s) => o.collapsible ? t.value = !t.value : void 0)
5137
+ onClick: o[0] || (o[0] = (s) => n.collapsible ? t.value = !t.value : void 0)
5134
5138
  }, {
5135
5139
  default: R(() => [
5136
- o.collapsible ? (l(), j(ts, {
5140
+ n.collapsible ? (l(), j(ts, {
5137
5141
  key: 0,
5138
- class: y([[t.value ? "-rotate-90" : "", o.noHover ? "-ml-1" : ""], "text-foreground-2 shrink-0"])
5142
+ class: g([[t.value ? "-rotate-90" : "", n.noHover ? "-ml-1" : ""], "text-foreground-2 shrink-0"])
5139
5143
  }, null, 8, ["class"])) : w("", !0),
5140
- o.$slots["title-icon"] ? (l(), u("div", {
5144
+ n.$slots["title-icon"] ? (l(), u("div", {
5141
5145
  key: 1,
5142
- class: y(["flex items-center justify-center", [o.collapsible ? "ml-1 mr-2" : ""]])
5146
+ class: g(["flex items-center justify-center", [n.collapsible ? "ml-1 mr-2" : ""]])
5143
5147
  }, [
5144
- U(o.$slots, "title-icon")
5148
+ U(n.$slots, "title-icon")
5145
5149
  ], 2)) : w("", !0),
5146
5150
  p("div", ri, [
5147
5151
  p("h6", {
5148
- class: y(["truncate text-body-2xs pr-2", [o.nested ? "text-foreground" : "font-semibold text-foreground-2"]])
5149
- }, O(o.title), 3),
5150
- o.tag ? (l(), j(Ue, {
5152
+ class: g(["truncate text-body-2xs pr-2", [n.nested ? "text-foreground" : "font-semibold text-foreground-2"]])
5153
+ }, O(n.title), 3),
5154
+ n.tag ? (l(), j(Ue, {
5151
5155
  key: 0,
5152
5156
  rounded: ""
5153
5157
  }, {
5154
5158
  default: R(() => [
5155
- F(O(o.tag), 1)
5159
+ F(O(n.tag), 1)
5156
5160
  ]),
5157
5161
  _: 1
5158
5162
  })) : w("", !0)
@@ -5160,16 +5164,16 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5160
5164
  ]),
5161
5165
  _: 3
5162
5166
  }, 8, ["class"])),
5163
- o.iconClick ? Y((l(), u("button", {
5167
+ n.iconClick ? Y((l(), u("button", {
5164
5168
  key: 0,
5165
- class: y(["group-hover:flex p-1 shrink-0 hover:bg-primary-muted rounded text-foreground-2", [o.noHover ? "" : "mr-2", o.alwaysShowIcon ? "flex" : "hidden"]]),
5166
- onClick: n[1] || (n[1] = //@ts-ignore
5167
- (...s) => o.iconClick && o.iconClick(...s))
5169
+ class: g(["group-hover:flex p-1 shrink-0 hover:bg-primary-muted rounded text-foreground-2", [n.noHover ? "" : "mr-2", n.alwaysShowIcon ? "flex" : "hidden"]]),
5170
+ onClick: o[1] || (o[1] = //@ts-ignore
5171
+ (...s) => n.iconClick && n.iconClick(...s))
5168
5172
  }, [
5169
- o.icon === "edit" ? (l(), j(si, {
5173
+ n.icon === "edit" ? (l(), j(si, {
5170
5174
  key: 0,
5171
5175
  class: "h-4 w-4"
5172
- })) : o.icon === "view" ? (l(), j(r(Ms), {
5176
+ })) : n.icon === "view" ? (l(), j(r(Ms), {
5173
5177
  key: 1,
5174
5178
  class: "h-4 w-4"
5175
5179
  })) : (l(), j(Jr, {
@@ -5177,11 +5181,11 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5177
5181
  class: "h-4 w-4"
5178
5182
  }))
5179
5183
  ], 2)), [
5180
- [a, o.iconText ? o.iconText : void 0]
5184
+ [a, n.iconText ? n.iconText : void 0]
5181
5185
  ]) : w("", !0)
5182
5186
  ], 2)) : w("", !0),
5183
5187
  Y(p("div", ii, [
5184
- U(o.$slots, "default")
5188
+ U(n.$slots, "default")
5185
5189
  ], 512), [
5186
5190
  [Rt, !t.value]
5187
5191
  ])
@@ -5208,21 +5212,21 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5208
5212
  colorClasses: {}
5209
5213
  },
5210
5214
  setup(e) {
5211
- const t = e, o = z(!0), a = !!at().default, s = () => {
5212
- t.disabled || (o.value = !o.value);
5215
+ const t = e, n = z(!0), a = !!at().default, s = () => {
5216
+ t.disabled || (n.value = !n.value);
5213
5217
  };
5214
5218
  return (d, c) => {
5215
5219
  const v = ze("tippy");
5216
5220
  return a ? (l(), u("div", fi, [
5217
5221
  Y((l(), u("button", {
5218
- class: y(["flex space-x-1.5 items-center w-full rounded-md p-0.5", [
5222
+ class: g(["flex space-x-1.5 items-center w-full rounded-md p-0.5", [
5219
5223
  !d.disabled && "cursor-pointer text-foreground-2 hover:text-foreground",
5220
5224
  d.disabled && "opacity-60"
5221
5225
  ]]),
5222
5226
  onClick: s
5223
5227
  }, [
5224
5228
  A(ts, {
5225
- class: y(["h-1 w-2 shrink-0", [o.value ? "" : "-rotate-90"]])
5229
+ class: g(["h-1 w-2 shrink-0", [n.value ? "" : "-rotate-90"]])
5226
5230
  }, null, 8, ["class"]),
5227
5231
  p("h6", pi, O(d.label), 1)
5228
5232
  ], 2)), [
@@ -5231,12 +5235,12 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5231
5235
  Y(p("div", mi, [
5232
5236
  U(d.$slots, "default")
5233
5237
  ], 512), [
5234
- [Rt, o.value]
5238
+ [Rt, n.value]
5235
5239
  ])
5236
5240
  ])) : Y((l(), u("div", {
5237
5241
  key: 0,
5238
5242
  to: d.to,
5239
- class: y(["group/item flex items-center justify-between space-x-2 shrink-0 text-body-xs text-foreground select-none rounded-md w-full py-1", [
5243
+ class: g(["group/item flex items-center justify-between space-x-2 shrink-0 text-body-xs text-foreground select-none rounded-md w-full py-1", [
5240
5244
  !d.disabled && "cursor-pointer hover:bg-highlight-1",
5241
5245
  d.disabled && "cursor-not-allowed",
5242
5246
  d.active && "bg-highlight-3 hover:!bg-highlight-3",
@@ -5245,7 +5249,7 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5245
5249
  ]])
5246
5250
  }, [
5247
5251
  p("div", {
5248
- class: y(["flex items-center space-x-2 truncate", [d.disabled && "opacity-60"]])
5252
+ class: g(["flex items-center space-x-2 truncate", [d.disabled && "opacity-60"]])
5249
5253
  }, [
5250
5254
  d.$slots.icon ? (l(), u("div", di, [
5251
5255
  U(d.$slots, "icon")
@@ -5283,7 +5287,7 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5283
5287
  },
5284
5288
  emits: ["dismiss"],
5285
5289
  setup(e) {
5286
- const t = e, o = at(), n = m(() => !!o.description), a = m(() => !!o.title), s = m(() => {
5290
+ const t = e, n = at(), o = m(() => !!n.description), a = m(() => !!n.title), s = m(() => {
5287
5291
  if (t.customIcon)
5288
5292
  return t.customIcon;
5289
5293
  switch (t.color) {
@@ -5307,7 +5311,7 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5307
5311
  break;
5308
5312
  case "default":
5309
5313
  default:
5310
- i.push(n.value ? "p-3 sm:p-4" : "p-2");
5314
+ i.push(o.value ? "p-3 sm:p-4" : "p-2");
5311
5315
  break;
5312
5316
  }
5313
5317
  switch (t.color) {
@@ -5398,33 +5402,33 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5398
5402
  }
5399
5403
  return i.join(" ");
5400
5404
  });
5401
- function g(i) {
5402
- i.onClick ? i.onClick() : gt();
5405
+ function y(i) {
5406
+ i.onClick ? i.onClick() : yt();
5403
5407
  }
5404
5408
  return (i, b) => (l(), u("div", {
5405
- class: y(d.value)
5409
+ class: g(d.value)
5406
5410
  }, [
5407
5411
  p("div", {
5408
- class: y(c.value)
5412
+ class: g(c.value)
5409
5413
  }, [
5410
5414
  i.hideIcon ? w("", !0) : (l(), u("div", vi, [
5411
5415
  (l(), j(le(s.value), {
5412
- class: y(v.value),
5416
+ class: g(v.value),
5413
5417
  "aria-hidden": "true"
5414
5418
  }, null, 8, ["class"]))
5415
5419
  ])),
5416
5420
  p("div", hi, [
5417
5421
  a.value ? (l(), u("h3", {
5418
5422
  key: 0,
5419
- class: y(h.value)
5423
+ class: g(h.value)
5420
5424
  }, [
5421
5425
  U(i.$slots, "title", {}, () => [
5422
5426
  b[1] || (b[1] = F("Title"))
5423
5427
  ])
5424
5428
  ], 2)) : w("", !0),
5425
- n.value ? (l(), u("div", {
5429
+ o.value ? (l(), u("div", {
5426
5430
  key: 1,
5427
- class: y(f.value)
5431
+ class: g(f.value)
5428
5432
  }, [
5429
5433
  U(i.$slots, "description", {}, () => [
5430
5434
  b[2] || (b[2] = F(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. "))
@@ -5439,7 +5443,7 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5439
5443
  to: x.url,
5440
5444
  external: x.externalUrl || !1,
5441
5445
  disabled: x.disabled || !1,
5442
- onClick: ($) => g(x)
5446
+ onClick: ($) => y(x)
5443
5447
  }, {
5444
5448
  default: R(() => [
5445
5449
  F(O(x.title), 1)
@@ -5449,7 +5453,7 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5449
5453
  ]),
5450
5454
  i.withDismiss ? (l(), u("div", {
5451
5455
  key: 1,
5452
- class: y(["flex", [n.value ? "items-start" : "items-center"]])
5456
+ class: g(["flex", [o.value ? "items-start" : "items-center"]])
5453
5457
  }, [
5454
5458
  A(he, {
5455
5459
  type: "button",
@@ -5469,16 +5473,16 @@ const ts = /* @__PURE__ */ we(li, [["render", ni]]), ai = { class: "flex flex-co
5469
5473
  });
5470
5474
  function Du(e) {
5471
5475
  var x, T;
5472
- const { get: t, initialState: o, readOptions: n, set: a, asyncRead: s = !0, debugging: d } = e, c = d == null ? void 0 : d.log, v = () => (new Error("Trace:").stack || "").substring(7), h = ((T = (x = e.debugging) == null ? void 0 : x.log) == null ? void 0 : T.logger) || console.debug, f = c && !c.writesOnly ? () => {
5476
+ const { get: t, initialState: n, readOptions: o, set: a, asyncRead: s = !0, debugging: d } = e, c = d == null ? void 0 : d.log, v = () => (new Error("Trace:").stack || "").substring(7), h = ((T = (x = e.debugging) == null ? void 0 : x.log) == null ? void 0 : T.logger) || console.debug, f = c && !c.writesOnly ? () => {
5473
5477
  const $ = t();
5474
5478
  return h(`debugging: '${c.name}' read`, $, v()), $;
5475
- } : t, g = c && !c.readsOnly ? ($) => (h(`debugging: '${c.name}' written to`, $, v()), a($)) : a, i = s ? Hs(f, o, n) : m(f), b = m(() => i.value);
5476
- return b.update = g, b;
5479
+ } : t, y = c && !c.readsOnly ? ($) => (h(`debugging: '${c.name}' written to`, $, v()), a($)) : a, i = s ? Hs(f, n, o) : m(f), b = m(() => i.value);
5480
+ return b.update = y, b;
5477
5481
  }
5478
- const gi = /* @__PURE__ */ W({
5482
+ const yi = /* @__PURE__ */ W({
5479
5483
  __name: "ContextManager",
5480
5484
  setup(e, { expose: t }) {
5481
- const n = ds().provides, a = Object.getOwnPropertySymbols(n).find(
5485
+ const o = ds().provides, a = Object.getOwnPropertySymbols(o).find(
5482
5486
  (i) => i.description === "ComboboxContext"
5483
5487
  );
5484
5488
  a || console.error("FormTagsContextManager ctx key not found!");
@@ -5495,7 +5499,7 @@ const gi = /* @__PURE__ */ W({
5495
5499
  s == null || s.selectActiveOption();
5496
5500
  }, isOpen: () => (s == null ? void 0 : s.comboboxState.value) === 0 }), (i, b) => U(i.$slots, "default");
5497
5501
  }
5498
- }), yi = ["for"], xi = ["disabled", "placeholder"], wi = {
5502
+ }), gi = ["for"], xi = ["disabled", "placeholder"], wi = {
5499
5503
  key: 3,
5500
5504
  class: "text-body-2xs font-normal"
5501
5505
  }, ki = { key: 1 }, Ci = ["id"], Uu = /* @__PURE__ */ W({
@@ -5522,13 +5526,13 @@ const gi = /* @__PURE__ */ W({
5522
5526
  modelValue: {}
5523
5527
  },
5524
5528
  emits: ["update:modelValue", "change", "clear"],
5525
- setup(e, { expose: t, emit: o }) {
5526
- const n = (D) => D.type === "input", a = o, s = e, d = z(null), { focused: c } = qs(d), v = z(
5529
+ setup(e, { expose: t, emit: n }) {
5530
+ const o = (D) => D.type === "input", a = n, s = e, d = z(null), { focused: c } = qs(d), v = z(
5527
5531
  null
5528
5532
  ), {
5529
5533
  coreInputClasses: h,
5530
5534
  coreClasses: f,
5531
- labelClasses: g,
5535
+ labelClasses: y,
5532
5536
  title: i,
5533
5537
  helpTip: b,
5534
5538
  helpTipId: x,
@@ -5575,7 +5579,7 @@ const gi = /* @__PURE__ */ W({
5575
5579
  const K = E.value.slice();
5576
5580
  K.splice(q, 1), E.value = K;
5577
5581
  }
5578
- }, ge = () => {
5582
+ }, ye = () => {
5579
5583
  var D;
5580
5584
  (D = d.value) == null || D.blur(), B.value = !1;
5581
5585
  }, We = (D) => {
@@ -5597,12 +5601,12 @@ const gi = /* @__PURE__ */ W({
5597
5601
  P.value = !0, await ie();
5598
5602
  }, fe = (D, q) => {
5599
5603
  var ue, de;
5600
- if (n(D) ? D.data === " " || D.data === "," || D.data === ";" : !0) {
5604
+ if (o(D) ? D.data === " " || D.data === "," || D.data === ";" : !0) {
5601
5605
  let oe = !1;
5602
5606
  if ((ue = v.value) != null && ue.isOpen() && S.value.length && !q)
5603
5607
  (de = v.value) == null || de.selectActive(), oe = !0;
5604
5608
  else {
5605
- const pe = k.value.trim().substring(0, k.value.length - (n(D) ? 1 : 0)), qe = E.value.includes(pe);
5609
+ const pe = k.value.trim().substring(0, k.value.length - (o(D) ? 1 : 0)), qe = E.value.includes(pe);
5606
5610
  pe.length > 0 && !qe && (E.value = [...E.value, pe], oe = !0);
5607
5611
  }
5608
5612
  oe && (k.value = "", B.value = !1);
@@ -5622,22 +5626,22 @@ const gi = /* @__PURE__ */ W({
5622
5626
  as: "div",
5623
5627
  multiple: "",
5624
5628
  clearable: "",
5625
- class: y([D.wrapperClasses])
5629
+ class: g([D.wrapperClasses])
5626
5630
  }, {
5627
5631
  default: R(() => [
5628
- A(gi, {
5632
+ A(yi, {
5629
5633
  ref_key: "ctxManager",
5630
5634
  ref: v
5631
5635
  }, {
5632
5636
  default: R(() => [
5633
5637
  p("label", {
5634
5638
  for: D.name,
5635
- class: y(r(g))
5639
+ class: g(r(y))
5636
5640
  }, [
5637
5641
  p("span", null, O(r(i)), 1)
5638
- ], 10, yi),
5642
+ ], 10, gi),
5639
5643
  p("div", {
5640
- class: y(["relative flex flex-wrap items-center space-x-1 px-2 py-1", be.value])
5644
+ class: g(["relative flex flex-wrap items-center space-x-1 px-2 py-1", be.value])
5641
5645
  }, [
5642
5646
  (l(!0), u(Z, null, ee(E.value, (K) => (l(), j(Ue, {
5643
5647
  key: K,
@@ -5656,12 +5660,12 @@ const gi = /* @__PURE__ */ W({
5656
5660
  ref: d,
5657
5661
  "onUpdate:modelValue": q[0] || (q[0] = (K) => k.value = K),
5658
5662
  disabled: D.disabled,
5659
- class: y(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [r(h), H.value]]),
5663
+ class: g(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [r(h), H.value]]),
5660
5664
  style: { "flex-basis": "70px", "min-width": "70px" },
5661
5665
  placeholder: E.value.length ? void 0 : D.placeholder,
5662
5666
  onInput: fe,
5663
5667
  onKeydown: [
5664
- Ae(ge, ["escape"]),
5668
+ Ae(ye, ["escape"]),
5665
5669
  q[1] || (q[1] = Ae(ve((K) => fe(K, !0), ["stop", "prevent"]), ["enter"])),
5666
5670
  Ae(fe, ["tab"]),
5667
5671
  Ae(We, ["backspace"]),
@@ -5689,7 +5693,7 @@ const gi = /* @__PURE__ */ W({
5689
5693
  ], 32)) : w("", !0),
5690
5694
  r(C) ? (l(), u("div", {
5691
5695
  key: 1,
5692
- class: y([
5696
+ class: g([
5693
5697
  "pointer-events-none absolute top-[10px] right-0 flex items-center",
5694
5698
  Q.value ? "pr-8" : "pr-2"
5695
5699
  ])
@@ -5700,7 +5704,7 @@ const gi = /* @__PURE__ */ W({
5700
5704
  })
5701
5705
  ], 2)) : D.showRequired ? (l(), u("div", {
5702
5706
  key: 2,
5703
- class: y(["pointer-events-none absolute top-[2px] text-4xl right-0 flex items-center text-danger opacity-50", Q.value ? "pr-8" : "pr-2"])
5707
+ class: g(["pointer-events-none absolute top-[2px] text-4xl right-0 flex items-center text-danger opacity-50", Q.value ? "pr-8" : "pr-2"])
5704
5708
  }, " * ", 2)) : D.showOptional ? (l(), u("div", wi, "(optional)")) : w("", !0)
5705
5709
  ], 2),
5706
5710
  A(r(Kt), {
@@ -5714,7 +5718,7 @@ const gi = /* @__PURE__ */ W({
5714
5718
  default: R(() => [
5715
5719
  P.value ? (l(), u("div", {
5716
5720
  key: 0,
5717
- class: y(["px-1", S.value.length ? "mb-1" : ""])
5721
+ class: g(["px-1", S.value.length ? "mb-1" : ""])
5718
5722
  }, [
5719
5723
  A(ut, { loading: !0 })
5720
5724
  ], 2)) : w("", !0),
@@ -5732,19 +5736,19 @@ const gi = /* @__PURE__ */ W({
5732
5736
  }, {
5733
5737
  default: R(({ selected: ue, active: de }) => [
5734
5738
  p("li", {
5735
- class: y(["relative cursor-pointer select-none py-1.5 pl-3", {
5739
+ class: g(["relative cursor-pointer select-none py-1.5 pl-3", {
5736
5740
  "text-primary": de,
5737
5741
  "text-foreground": !de
5738
5742
  }])
5739
5743
  }, [
5740
5744
  p("span", {
5741
- class: y(["block truncate", { "font-medium": ue, "font-normal": !ue }])
5745
+ class: g(["block truncate", { "font-medium": ue, "font-normal": !ue }])
5742
5746
  }, O(K), 3),
5743
5747
  ue ? (l(), u("span", {
5744
5748
  key: 0,
5745
- class: y(["absolute top-0 bottom-0 right-0 flex items-center pr-4", { "text-primary": de, "text-foreground": !de }])
5749
+ class: g(["absolute top-0 bottom-0 right-0 flex items-center pr-4", { "text-primary": de, "text-foreground": !de }])
5746
5750
  }, [
5747
- A(r(yt), {
5751
+ A(r(gt), {
5748
5752
  class: "h-5 w-5",
5749
5753
  "aria-hidden": "true"
5750
5754
  })
@@ -5762,7 +5766,7 @@ const gi = /* @__PURE__ */ W({
5762
5766
  r(x) && !r(T) ? (l(), u("p", {
5763
5767
  key: 0,
5764
5768
  id: r(x),
5765
- class: y(["mt-2", r($)])
5769
+ class: g(["mt-2", r($)])
5766
5770
  }, O(r(b)), 11, Ci)) : w("", !0)
5767
5771
  ]),
5768
5772
  _: 1
@@ -5773,7 +5777,7 @@ const gi = /* @__PURE__ */ W({
5773
5777
  }
5774
5778
  });
5775
5779
  function Ct(e) {
5776
- const { props: t } = e, o = m(() => {
5780
+ const { props: t } = e, n = m(() => {
5777
5781
  var v;
5778
5782
  switch ((v = t.size) == null ? void 0 : v.value) {
5779
5783
  case "2xs":
@@ -5796,7 +5800,7 @@ function Ct(e) {
5796
5800
  default:
5797
5801
  return "h-8";
5798
5802
  }
5799
- }), n = m(() => {
5803
+ }), o = m(() => {
5800
5804
  var v;
5801
5805
  switch ((v = t.size) == null ? void 0 : v.value) {
5802
5806
  case "2xs":
@@ -5862,9 +5866,9 @@ function Ct(e) {
5862
5866
  return "w-4 h-4";
5863
5867
  }
5864
5868
  }), d = m(
5865
- () => `${n.value} ${o.value} ${a.value}`
5869
+ () => `${o.value} ${n.value} ${a.value}`
5866
5870
  );
5867
- return { heightClasses: o, widthClasses: n, sizeClasses: d, iconClasses: s };
5871
+ return { heightClasses: n, widthClasses: o, sizeClasses: d, iconClasses: s };
5868
5872
  }
5869
5873
  const $i = { key: 2 }, vt = /* @__PURE__ */ W({
5870
5874
  __name: "Avatar",
@@ -5880,20 +5884,20 @@ const $i = { key: 2 }, vt = /* @__PURE__ */ W({
5880
5884
  lightStyle: { type: Boolean, default: !1 }
5881
5885
  },
5882
5886
  setup(e) {
5883
- const t = e, { sizeClasses: o, iconClasses: n } = Ct({ props: xe(t) }), a = m(() => {
5887
+ const t = e, { sizeClasses: n, iconClasses: o } = Ct({ props: xe(t) }), a = m(() => {
5884
5888
  var b, x, T, $;
5885
5889
  if (!((x = (b = t.user) == null ? void 0 : b.name) != null && x.length))
5886
5890
  return;
5887
- const f = t.user.name.split(" "), g = ((T = f[0]) == null ? void 0 : T[0]) || "", i = (($ = f[1]) == null ? void 0 : $[0]) || "";
5888
- return t.size === "sm" || t.size === "xs" ? g : g + i;
5891
+ const f = t.user.name.split(" "), y = ((T = f[0]) == null ? void 0 : T[0]) || "", i = (($ = f[1]) == null ? void 0 : $[0]) || "";
5892
+ return t.size === "sm" || t.size === "xs" ? y : y + i;
5889
5893
  }), s = m(() => t.noBorder ? "" : t.lightStyle ? "border border-outline-2" : "border-2 border-foundation"), d = m(() => t.noBg ? "" : t.lightStyle ? "bg-foundation-2" : "bg-info-darker"), c = m(() => t.hoverEffect ? "hover:border-primary focus:border-primary active:scale-95" : ""), v = m(() => t.active ? "border-primary" : ""), h = m(() => t.lightStyle ? "text-foreground-3" : "");
5890
- return (f, g) => {
5894
+ return (f, y) => {
5891
5895
  const i = ze("tippy");
5892
5896
  return l(), u("div", {
5893
- class: y([
5897
+ class: g([
5894
5898
  "text-foreground-on-primary flex shrink-0 items-center justify-center overflow-hidden uppercase transition",
5895
5899
  f.rounded ? "rounded-full" : "rounded-md",
5896
- r(o),
5900
+ r(n),
5897
5901
  d.value,
5898
5902
  s.value,
5899
5903
  c.value,
@@ -5911,14 +5915,14 @@ const $i = { key: 2 }, vt = /* @__PURE__ */ W({
5911
5915
  [i, f.hideTooltip || (x = t.user) == null ? void 0 : x.name]
5912
5916
  ]) : a.value ? Y((l(), u("div", {
5913
5917
  key: 1,
5914
- class: y([h.value, "flex h-full w-full select-none items-center justify-center"])
5918
+ class: g([h.value, "flex h-full w-full select-none items-center justify-center"])
5915
5919
  }, [
5916
5920
  F(O(a.value), 1)
5917
5921
  ], 2)), [
5918
5922
  [i, f.hideTooltip || (T = t.user) == null ? void 0 : T.name]
5919
5923
  ]) : (l(), u("div", $i, [
5920
5924
  A(r(ml), {
5921
- class: y(r(n))
5925
+ class: g(r(o))
5922
5926
  }, null, 8, ["class"])
5923
5927
  ]))
5924
5928
  ];
@@ -5939,26 +5943,26 @@ const $i = { key: 2 }, vt = /* @__PURE__ */ W({
5939
5943
  onHiddenCountClick: { type: Function, default: void 0 }
5940
5944
  },
5941
5945
  setup(e) {
5942
- const t = e, o = z(null), n = z(null), { hiddenItemCount: a } = Zt({
5943
- elementToWatchForChanges: o,
5944
- itemContainer: n,
5946
+ const t = e, n = z(null), o = z(null), { hiddenItemCount: a } = Zt({
5947
+ elementToWatchForChanges: n,
5948
+ itemContainer: o,
5945
5949
  trackResize: !0,
5946
5950
  trackMutations: !0
5947
5951
  }), { heightClasses: s } = Ct({ props: xe(t) }), d = m(() => t.maxCount ? Math.max(t.users.length - t.maxCount, 0) : 0), c = m(() => {
5948
- const f = t.users, g = Math.min(t.maxCount ?? 1 / 0, t.maxAvatars ?? 1 / 0);
5949
- return f.slice(0, g);
5952
+ const f = t.users, y = Math.min(t.maxCount ?? 1 / 0, t.maxAvatars ?? 1 / 0);
5953
+ return f.slice(0, y);
5950
5954
  }), v = m(() => t.maxAvatars ? Math.max(t.users.length - t.maxAvatars, 0) : 0), h = m(
5951
5955
  () => a.value + d.value + v.value
5952
5956
  );
5953
- return (f, g) => (l(), u("div", {
5957
+ return (f, y) => (l(), u("div", {
5954
5958
  ref_key: "elementToWatchForChanges",
5955
- ref: o,
5956
- class: y(`flex ${f.overlap ? "-space-x-2" : ""}`)
5959
+ ref: n,
5960
+ class: g(`flex ${f.overlap ? "-space-x-2" : ""}`)
5957
5961
  }, [
5958
5962
  p("div", {
5959
5963
  ref_key: "itemContainer",
5960
- ref: n,
5961
- class: y(`flex flex-wrap overflow-hidden ${f.overlap ? "-space-x-2 " : ""} ${r(s)}`)
5964
+ ref: o,
5965
+ class: g(`flex flex-wrap overflow-hidden ${f.overlap ? "-space-x-2 " : ""} ${r(s)}`)
5962
5966
  }, [
5963
5967
  (l(!0), u(Z, null, ee(c.value, (i, b) => (l(), j(vt, {
5964
5968
  key: i.id || b,
@@ -5970,8 +5974,8 @@ const $i = { key: 2 }, vt = /* @__PURE__ */ W({
5970
5974
  h.value ? (l(), j(vt, {
5971
5975
  key: 0,
5972
5976
  size: f.size,
5973
- class: y(["select-none", { "cursor-pointer": !!f.onHiddenCountClick }]),
5974
- onClick: g[0] || (g[0] = (i) => f.onHiddenCountClick && f.onHiddenCountClick())
5977
+ class: g(["select-none", { "cursor-pointer": !!f.onHiddenCountClick }]),
5978
+ onClick: y[0] || (y[0] = (i) => f.onHiddenCountClick && f.onHiddenCountClick())
5975
5979
  }, {
5976
5980
  default: R(() => [
5977
5981
  F(" +" + O(h.value), 1)
@@ -5987,23 +5991,23 @@ const $i = { key: 2 }, vt = /* @__PURE__ */ W({
5987
5991
  size: { default: "base" }
5988
5992
  },
5989
5993
  setup(e) {
5990
- const t = e, o = m(() => {
5991
- const n = [""];
5992
- switch (n.push(t.loading ? "opacity-100" : "opacity-0"), t.size) {
5994
+ const t = e, n = m(() => {
5995
+ const o = [""];
5996
+ switch (o.push(t.loading ? "opacity-100" : "opacity-0"), t.size) {
5993
5997
  case "base":
5994
- n.push("h-5 w-5");
5998
+ o.push("h-5 w-5");
5995
5999
  break;
5996
6000
  case "sm":
5997
- n.push("h-4 w-4");
6001
+ o.push("h-4 w-4");
5998
6002
  break;
5999
6003
  case "lg":
6000
- n.push("h-8 w-8");
6004
+ o.push("h-8 w-8");
6001
6005
  break;
6002
6006
  }
6003
- return n.join(" ");
6007
+ return o.join(" ");
6004
6008
  });
6005
- return (n, a) => (l(), u("svg", {
6006
- class: y(["spinner", o.value]),
6009
+ return (o, a) => (l(), u("svg", {
6010
+ class: g(["spinner", n.value]),
6007
6011
  width: "32px",
6008
6012
  height: "40px",
6009
6013
  viewBox: "0 0 66 66",
@@ -6047,12 +6051,12 @@ const Qe = /* @__PURE__ */ we(Ii, [["__scopeId", "data-v-ee380fea"]]), Bi = { cl
6047
6051
  editModeModifiers: {}
6048
6052
  }),
6049
6053
  emits: /* @__PURE__ */ Pe(["save", "update:modelValue"], ["update:editMode"]),
6050
- setup(e, { expose: t, emit: o }) {
6051
- const n = fs({
6054
+ setup(e, { expose: t, emit: n }) {
6055
+ const o = fs({
6052
6056
  loader: () => import("./AvatarEditor-844e9444.js"),
6053
6057
  loadingComponent: Qe,
6054
6058
  delay: 100
6055
- }), a = o, s = e, { value: d, errorMessage: c } = De(s.name, s.rules, {
6059
+ }), a = n, s = e, { value: d, errorMessage: c } = De(s.name, s.rules, {
6056
6060
  validateOnMount: s.validateOnMount,
6057
6061
  validateOnValueUpdate: s.validateOnValueUpdate,
6058
6062
  initialValue: s.modelValue || void 0
@@ -6061,24 +6065,24 @@ const Qe = /* @__PURE__ */ we(Ii, [["__scopeId", "data-v-ee380fea"]]), Bi = { cl
6061
6065
  avatar: d.value,
6062
6066
  name: s.placeholder
6063
6067
  })
6064
- ), g = (x) => {
6068
+ ), y = (x) => {
6065
6069
  d.value = x, a("save", x);
6066
6070
  };
6067
6071
  return t({ open: () => h.value = !0, close: () => h.value = !1 }), (x, T) => (l(), u("div", Bi, [
6068
- h.value ? (l(), j(r(n), {
6072
+ h.value ? (l(), j(r(o), {
6069
6073
  key: 0,
6070
6074
  user: f.value,
6071
6075
  disabled: x.disabled,
6072
6076
  size: x.size,
6073
6077
  rounded: x.rounded,
6074
6078
  onCancel: T[0] || (T[0] = ($) => h.value = !1),
6075
- onSave: g
6079
+ onSave: y
6076
6080
  }, null, 8, ["user", "disabled", "size", "rounded"])) : (l(), u("div", Si, [
6077
6081
  !f.value.avatar && x.defaultImg ? (l(), u("img", {
6078
6082
  key: 0,
6079
6083
  src: x.defaultImg,
6080
6084
  alt: f.value.name,
6081
- class: y(r(v))
6085
+ class: g(r(v))
6082
6086
  }, null, 10, Pi)) : (l(), j(vt, {
6083
6087
  key: 1,
6084
6088
  "hide-tooltip": "",
@@ -6106,8 +6110,8 @@ const Qe = /* @__PURE__ */ we(Ii, [["__scopeId", "data-v-ee380fea"]]), Bi = { cl
6106
6110
  }
6107
6111
  });
6108
6112
  class Ie extends Error {
6109
- constructor(t, o) {
6110
- t || (t = new.target.defaultMessage), super(t, o);
6113
+ constructor(t, n) {
6114
+ t || (t = new.target.defaultMessage), super(t, n);
6111
6115
  }
6112
6116
  }
6113
6117
  /**
@@ -6128,11 +6132,11 @@ class ji extends Ie {
6128
6132
  Ce(ji, "defaultMessage", "Operation not supported in current (server or client) environment");
6129
6133
  var $t = /* @__PURE__ */ ((e) => (e.AnyAudio = "audio/*", e.AnyVideo = "video/*", e.AnyImage = "image/*", e))($t || {});
6130
6134
  function Ti(e, t) {
6131
- const o = vs(
6135
+ const n = vs(
6132
6136
  Object.values($t),
6133
6137
  t
6134
6138
  );
6135
- for (const s of o)
6139
+ for (const s of n)
6136
6140
  switch (s) {
6137
6141
  case "audio/*":
6138
6142
  if (e.type.startsWith("audio"))
@@ -6147,10 +6151,10 @@ function Ti(e, t) {
6147
6151
  return !0;
6148
6152
  break;
6149
6153
  }
6150
- const n = hs(t, o), a = Ai(e.name);
6154
+ const o = hs(t, n), a = Ai(e.name);
6151
6155
  if (!a)
6152
6156
  return new ss();
6153
- for (const s of n)
6157
+ for (const s of o)
6154
6158
  if (s.toLowerCase() === a.toLowerCase())
6155
6159
  return !0;
6156
6160
  return new ls();
@@ -6166,13 +6170,13 @@ function Tt(e) {
6166
6170
  const t = (s) => parseFloat(s.toFixed(2)).toString();
6167
6171
  if (e < 1024)
6168
6172
  return `${e}bytes`;
6169
- const o = e / 1024;
6170
- if (o < 1024)
6171
- return `${t(o)}KB`;
6172
- const n = o / 1024;
6173
+ const n = e / 1024;
6173
6174
  if (n < 1024)
6174
- return `${t(n)}MB`;
6175
- const a = n / 1024;
6175
+ return `${t(n)}KB`;
6176
+ const o = n / 1024;
6177
+ if (o < 1024)
6178
+ return `${t(o)}MB`;
6179
+ const a = o / 1024;
6176
6180
  return `${t(a)}GB`;
6177
6181
  }
6178
6182
  function Ri(e) {
@@ -6194,41 +6198,41 @@ var Fi = /* @__PURE__ */ ((e) => (e[e.Success = 1] = "Success", e[e.Failure = 2]
6194
6198
  function Di(e) {
6195
6199
  if (!e)
6196
6200
  return;
6197
- const t = e.split(",").map((o) => Ei(o) ? o : null).filter((o) => o !== null);
6201
+ const t = e.split(",").map((n) => Ei(n) ? n : null).filter((n) => n !== null);
6198
6202
  return t.length ? t : void 0;
6199
6203
  }
6200
6204
  function Ui(e) {
6201
- const { disabled: t, accept: o, multiple: n, sizeLimit: a, countLimit: s } = e, d = m(() => Di(r(o))), c = (v) => {
6205
+ const { disabled: t, accept: n, multiple: o, sizeLimit: a, countLimit: s } = e, d = m(() => Di(r(n))), c = (v) => {
6202
6206
  const h = [], f = d.value;
6203
- for (const g of v) {
6204
- const i = Ri(g), b = r(n) ? r(s) : 1;
6207
+ for (const y of v) {
6208
+ const i = Ri(y), b = r(o) ? r(s) : 1;
6205
6209
  if (!h.find((x) => x.id === i)) {
6206
6210
  if (b && h.length >= b)
6207
6211
  break;
6208
6212
  if (f) {
6209
- const x = Ti(g, f);
6213
+ const x = Ti(y, f);
6210
6214
  if (x instanceof Error) {
6211
6215
  h.push({
6212
- file: g,
6216
+ file: y,
6213
6217
  id: i,
6214
6218
  error: x
6215
6219
  });
6216
6220
  continue;
6217
6221
  }
6218
6222
  }
6219
- if (g.size > r(a)) {
6223
+ if (y.size > r(a)) {
6220
6224
  h.push({
6221
- file: g,
6225
+ file: y,
6222
6226
  id: i,
6223
6227
  error: new os(
6224
6228
  `The selected file's size (${Tt(
6225
- g.size
6229
+ y.size
6226
6230
  )}) is too big (over ${Tt(r(a))})`
6227
6231
  )
6228
6232
  });
6229
6233
  continue;
6230
6234
  }
6231
- h.push({ file: g, id: i, error: null });
6235
+ h.push({ file: y, id: i, error: null });
6232
6236
  }
6233
6237
  }
6234
6238
  return h;
@@ -6256,8 +6260,8 @@ const Wi = ["accept", "multiple"], qu = /* @__PURE__ */ W({
6256
6260
  disabled: { type: Boolean }
6257
6261
  },
6258
6262
  emits: ["files-selected"],
6259
- setup(e, { expose: t, emit: o }) {
6260
- const n = o, a = e, s = z(null), d = z(null), { buildUploadableFiles: c } = Ui({
6263
+ setup(e, { expose: t, emit: n }) {
6264
+ const o = n, a = e, s = z(null), d = z(null), { buildUploadableFiles: c } = Ui({
6261
6265
  sizeLimit: m(() => a.sizeLimit),
6262
6266
  countLimit: m(() => a.countLimit),
6263
6267
  accept: m(() => a.accept),
@@ -6265,7 +6269,7 @@ const Wi = ["accept", "multiple"], qu = /* @__PURE__ */ W({
6265
6269
  disabled: m(() => a.disabled)
6266
6270
  }), v = (i) => {
6267
6271
  const b = c(i);
6268
- b != null && b.length && n("files-selected", { files: b });
6272
+ b != null && b.length && o("files-selected", { files: b });
6269
6273
  }, { isOverDropZone: h } = Ks(s, (i) => {
6270
6274
  i != null && i.length && v(i);
6271
6275
  }), f = () => {
@@ -6274,12 +6278,12 @@ const Wi = ["accept", "multiple"], qu = /* @__PURE__ */ W({
6274
6278
  return;
6275
6279
  const b = [...i.files || []];
6276
6280
  i.value = "", b.length && v(b);
6277
- }, g = () => {
6281
+ }, y = () => {
6278
6282
  var i;
6279
6283
  (i = d.value) == null || i.click();
6280
6284
  };
6281
6285
  return t({
6282
- triggerPicker: g
6286
+ triggerPicker: y
6283
6287
  }), (i, b) => (l(), u("div", {
6284
6288
  ref_key: "fileUploadZone",
6285
6289
  ref: s,
@@ -6287,8 +6291,8 @@ const Wi = ["accept", "multiple"], qu = /* @__PURE__ */ W({
6287
6291
  }, [
6288
6292
  U(i.$slots, "default", {
6289
6293
  isDraggingFiles: r(h),
6290
- openFilePicker: g,
6291
- activatorOn: { click: g }
6294
+ openFilePicker: y,
6295
+ activatorOn: { click: y }
6292
6296
  }),
6293
6297
  p("input", {
6294
6298
  ref_key: "fileInput",
@@ -6320,11 +6324,11 @@ const Wi = ["accept", "multiple"], qu = /* @__PURE__ */ W({
6320
6324
  maxValue: {}
6321
6325
  },
6322
6326
  setup(e) {
6323
- const t = e, o = m(() => t.currentValue / t.maxValue * 100), n = m(() => o.value >= 100 ? "bg-danger" : o.value >= 80 ? "bg-warning" : "bg-success");
6327
+ const t = e, n = m(() => t.currentValue / t.maxValue * 100), o = m(() => n.value >= 100 ? "bg-danger" : n.value >= 80 ? "bg-warning" : "bg-success");
6324
6328
  return (a, s) => (l(), u("div", Hi, [
6325
6329
  p("div", {
6326
- class: y(["aboslute left-0 top-0 rounded h-1.5", n.value]),
6327
- style: ae({ width: `${o.value <= 100 ? o.value : 100}%` })
6330
+ class: g(["aboslute left-0 top-0 rounded h-1.5", o.value]),
6331
+ style: ae({ width: `${n.value <= 100 ? n.value : 100}%` })
6328
6332
  }, null, 6)
6329
6333
  ]));
6330
6334
  }
@@ -6346,8 +6350,8 @@ export {
6346
6350
  he as FormButton,
6347
6351
  iu as FormCardButton,
6348
6352
  Vo as FormCheckbox,
6349
- gu as FormClipboardInput,
6350
- yu as FormCodeInput,
6353
+ yu as FormClipboardInput,
6354
+ gu as FormCodeInput,
6351
6355
  qu as FormFileUploadZone,
6352
6356
  uu as FormRadio,
6353
6357
  du as FormRadioGroup,