@speckle/ui-components 2.15.2-alpha2 → 2.15.2-alpha3

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,19 +1,19 @@
1
- import { defineComponent as M, resolveDynamicComponent as H, computed as c, openBlock as a, createBlock as P, normalizeClass as b, withCtx as B, createCommentVNode as S, renderSlot as D, createTextVNode as A, createElementBlock as h, createElementVNode as u, createVNode as L, Transition as ge, unref as n, toDisplayString as I, toRefs as ae, Fragment as U, renderList as G, ref as O, onMounted as Y, mergeProps as oe, withDirectives as ne, isRef as ve, vModelText as je, useSlots as Ve, vModelDynamic as Xe, pushScopeId as Ne, popScopeId as Je, watch as le, withModifiers as Oe, normalizeStyle as fe, onBeforeUnmount as Me } from "vue";
2
- import { isObjectLike as _e, clamp as Be, isString as ie, isUndefined as Q, isArray as q, debounce as Ae, throttle as Qe, noop as Ye } from "lodash";
1
+ import { defineComponent as M, resolveDynamicComponent as H, computed as u, openBlock as a, createBlock as P, normalizeClass as y, withCtx as B, createCommentVNode as S, renderSlot as D, createTextVNode as A, createElementBlock as h, createElementVNode as i, createVNode as L, Transition as ge, unref as n, toDisplayString as I, toRefs as ae, Fragment as U, renderList as G, ref as O, onMounted as Y, mergeProps as oe, withDirectives as ne, isRef as ve, vModelText as Ve, useSlots as Oe, vModelDynamic as Xe, pushScopeId as Ne, popScopeId as Je, watch as le, withModifiers as be, normalizeStyle as fe, onBeforeUnmount as Me } from "vue";
2
+ import { isObjectLike as Be, clamp as Le, isString as ie, isUndefined as Q, isArray as q, debounce as Ae, throttle as Qe, noop as Ye } from "lodash";
3
3
  import { ArrowPathIcon as Ze, ChevronUpIcon as De, ChevronDownIcon as et, XMarkIcon as tt, MagnifyingGlassIcon as st, CheckIcon as nt, Bars3Icon as lt, Squares2X2Icon as at } from "@heroicons/vue/24/solid";
4
4
  import { CheckCircleIcon as ot, XCircleIcon as rt, ExclamationCircleIcon as it, InformationCircleIcon as ut, XMarkIcon as ct, CheckIcon as dt, ExclamationTriangleIcon as ft } from "@heroicons/vue/24/outline";
5
5
  import { XMarkIcon as ue, CheckIcon as pt, CheckCircleIcon as Te, ExclamationCircleIcon as Re, EnvelopeIcon as ht, KeyIcon as mt } from "@heroicons/vue/20/solid";
6
6
  import { useField as ye } from "vee-validate";
7
- import { nanoid as be } from "nanoid";
8
- import { isNullOrUndefined as gt, SourceApps as vt, getClientOperatingSystem as yt, OperatingSystem as pe } from "@speckle/shared";
9
- import { useResizeObserver as bt, useMutationObserver as xt, onKeyDown as kt, isClient as xe, computedAsync as Ct } from "@vueuse/core";
10
- import { Listbox as wt, ListboxLabel as $t, ListboxButton as St, ListboxOptions as It, ListboxOption as _t, TransitionRoot as Bt, Dialog as Lt, TransitionChild as Le, DialogPanel as Pt, Disclosure as jt, DisclosureButton as Vt, DisclosurePanel as Ot, Menu as Mt, MenuButton as At, MenuItems as Dt, MenuItem as Tt } from "@headlessui/vue";
11
- import { directive as ze } from "vue-tippy";
7
+ import { nanoid as xe } from "nanoid";
8
+ import { isNullOrUndefined as gt, SourceApps as vt, getClientOperatingSystem as bt, OperatingSystem as pe } from "@speckle/shared";
9
+ import { useResizeObserver as yt, useMutationObserver as xt, onKeyDown as kt, isClient as ke, computedAsync as Ct } from "@vueuse/core";
10
+ import { Listbox as wt, ListboxLabel as $t, ListboxButton as St, ListboxOptions as It, ListboxOption as _t, TransitionRoot as Bt, Dialog as Lt, TransitionChild as Pe, DialogPanel as Pt, Disclosure as jt, DisclosureButton as Vt, DisclosurePanel as Ot, Menu as Mt, MenuButton as At, MenuItems as Dt, MenuItem as Tt } from "@headlessui/vue";
11
+ import { directive as Fe } from "vue-tippy";
12
12
  import Rt from "v3-infinite-loading";
13
- const zt = {
13
+ const Ft = {
14
14
  key: 2,
15
15
  style: { margin: "0 !important", width: "0.01px" }
16
- }, Ft = /* @__PURE__ */ M({
16
+ }, zt = /* @__PURE__ */ M({
17
17
  __name: "Button",
18
18
  props: {
19
19
  /**
@@ -141,12 +141,12 @@ const zt = {
141
141
  },
142
142
  emits: ["click"],
143
143
  setup(e, { emit: l }) {
144
- const t = e, s = H("NuxtLink"), o = H("RouterLink"), f = c(() => t.linkComponent ? t.linkComponent : t.external ? "a" : _e(s) ? s : _e(o) ? o : "a"), p = c(() => {
144
+ const t = e, s = H("NuxtLink"), o = H("RouterLink"), c = u(() => t.linkComponent ? t.linkComponent : t.external ? "a" : Be(s) ? s : Be(o) ? o : "a"), f = u(() => {
145
145
  if (!t.to)
146
146
  return t.submit ? "submit" : "button";
147
- }), r = c(() => t.disabled || t.loading), i = c(() => t.loading ? Ze : t.iconLeft), d = c(() => {
147
+ }), p = u(() => t.disabled || t.loading), r = u(() => t.loading ? Ze : t.iconLeft), d = u(() => {
148
148
  const g = [];
149
- if (g.push("border-2"), r.value)
149
+ if (g.push("border-2"), p.value)
150
150
  g.push(
151
151
  t.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
152
152
  );
@@ -187,10 +187,10 @@ const zt = {
187
187
  break;
188
188
  }
189
189
  return g.join(" ");
190
- }), x = c(() => {
190
+ }), x = u(() => {
191
191
  const g = [];
192
192
  if (!t.text && !t.link)
193
- if (r.value)
193
+ if (p.value)
194
194
  g.push(
195
195
  (t.outlined, "text-foreground-disabled")
196
196
  );
@@ -237,16 +237,16 @@ const zt = {
237
237
  break;
238
238
  }
239
239
  else
240
- r.value ? g.push("text-foreground-disabled") : t.color === "invert" ? g.push(
240
+ p.value ? g.push("text-foreground-disabled") : t.color === "invert" ? g.push(
241
241
  "text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
242
242
  ) : t.color === "secondary" ? g.push("text-foreground-2 hover:text-primary-focus") : t.color === "success" ? g.push("text-success") : t.color === "warning" ? g.push("text-warning") : t.color === "info" ? g.push("text-info") : t.color === "danger" ? g.push("text-danger") : g.push("text-primary hover:text-primary-focus");
243
243
  return g.join(" ");
244
- }), v = c(() => {
244
+ }), v = u(() => {
245
245
  const g = [];
246
246
  return g.push(t.rounded ? "rounded-full" : "rounded-md"), g.join(" ");
247
- }), m = c(() => {
247
+ }), m = u(() => {
248
248
  const g = [];
249
- if (!r.value)
249
+ if (!p.value)
250
250
  switch (t.color) {
251
251
  case "invert":
252
252
  g.push("hover:ring-4 ring-white/50");
@@ -269,7 +269,7 @@ const zt = {
269
269
  break;
270
270
  }
271
271
  return g.join(" ");
272
- }), k = c(() => {
272
+ }), k = u(() => {
273
273
  switch (t.size) {
274
274
  case "xs":
275
275
  return "h-5 text-xs font-medium xxx-tracking-wide";
@@ -283,7 +283,7 @@ const zt = {
283
283
  case "base":
284
284
  return "h-8 text-base font-medium xxx-tracking-wide";
285
285
  }
286
- }), _ = c(() => {
286
+ }), _ = u(() => {
287
287
  switch (t.size) {
288
288
  case "xs":
289
289
  return "px-1";
@@ -297,15 +297,15 @@ const zt = {
297
297
  case "base":
298
298
  return "px-3";
299
299
  }
300
- }), j = c(() => {
300
+ }), j = u(() => {
301
301
  const g = [];
302
- return t.fullWidth && g.push("w-full"), r.value && g.push("cursor-not-allowed"), g.join(" ");
303
- }), y = c(() => {
302
+ return t.fullWidth && g.push("w-full"), p.value && g.push("cursor-not-allowed"), g.join(" ");
303
+ }), b = u(() => {
304
304
  const g = [];
305
- return !r.value && !t.link && !t.text && g.push("active:scale-[0.97]"), !r.value && t.link && g.push(
305
+ return !p.value && !t.link && !t.text && g.push("active:scale-[0.97]"), !p.value && t.link && g.push(
306
306
  "underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
307
307
  ), g.join(" ");
308
- }), w = c(() => {
308
+ }), w = u(() => {
309
309
  const g = t.link || t.text;
310
310
  return [
311
311
  "transition inline-flex justify-center items-center space-x-2 outline-none select-none",
@@ -316,9 +316,9 @@ const zt = {
316
316
  g ? "" : v.value,
317
317
  g ? "" : m.value,
318
318
  t.link ? "" : _.value,
319
- y.value
319
+ b.value
320
320
  ].join(" ");
321
- }), $ = c(() => {
321
+ }), $ = u(() => {
322
322
  const g = [""];
323
323
  switch (t.loading && g.push("animate-spin"), t.size) {
324
324
  case "xs":
@@ -339,46 +339,46 @@ const zt = {
339
339
  break;
340
340
  }
341
341
  return g.join(" ");
342
- }), z = (g) => {
343
- if (r.value) {
342
+ }), F = (g) => {
343
+ if (p.value) {
344
344
  g.preventDefault(), g.stopPropagation(), g.stopImmediatePropagation();
345
345
  return;
346
346
  }
347
347
  l("click", g);
348
348
  };
349
- return (g, R) => (a(), P(H(e.to ? f.value : "button"), {
349
+ return (g, R) => (a(), P(H(e.to ? c.value : "button"), {
350
350
  href: e.to,
351
351
  to: e.to,
352
- type: p.value,
352
+ type: f.value,
353
353
  external: e.external,
354
- class: b(w.value),
355
- disabled: r.value,
354
+ class: y(w.value),
355
+ disabled: p.value,
356
356
  role: "button",
357
- onClick: z
357
+ onClick: F
358
358
  }, {
359
359
  default: B(() => [
360
- i.value ? (a(), P(H(i.value), {
360
+ r.value ? (a(), P(H(r.value), {
361
361
  key: 0,
362
- class: b(`${$.value} ${e.hideText ? "" : "mr-2"}`)
362
+ class: y(`${$.value} ${e.hideText ? "" : "mr-2"}`)
363
363
  }, null, 8, ["class"])) : S("", !0),
364
- e.hideText ? (a(), h("div", zt, "   ")) : D(g.$slots, "default", { key: 1 }, () => [
364
+ e.hideText ? (a(), h("div", Ft, "   ")) : D(g.$slots, "default", { key: 1 }, () => [
365
365
  A("Button")
366
366
  ], !0),
367
367
  e.iconRight || !e.loading ? (a(), P(H(e.iconRight), {
368
368
  key: 3,
369
- class: b(`${$.value} ${e.hideText ? "" : "ml-2"}`)
369
+ class: y(`${$.value} ${e.hideText ? "" : "ml-2"}`)
370
370
  }, null, 8, ["class"])) : S("", !0)
371
371
  ]),
372
372
  _: 3
373
373
  }, 8, ["href", "to", "type", "external", "class", "disabled"]));
374
374
  }
375
375
  });
376
- const Fe = (e, l) => {
376
+ const ze = (e, l) => {
377
377
  const t = e.__vccOpts || e;
378
378
  for (const [s, o] of l)
379
379
  t[s] = o;
380
380
  return t;
381
- }, re = /* @__PURE__ */ Fe(Ft, [["__scopeId", "data-v-38aa371e"]]), Et = /* @__PURE__ */ M({
381
+ }, re = /* @__PURE__ */ ze(zt, [["__scopeId", "data-v-38aa371e"]]), Et = /* @__PURE__ */ M({
382
382
  __name: "Link",
383
383
  props: {
384
384
  to: {
@@ -435,7 +435,7 @@ const Fe = (e, l) => {
435
435
  }
436
436
  l("click", o);
437
437
  };
438
- return (o, f) => (a(), P(re, {
438
+ return (o, c) => (a(), P(re, {
439
439
  link: "",
440
440
  to: e.to,
441
441
  external: e.external,
@@ -473,26 +473,26 @@ const Ut = {
473
473
  }, Qt = {
474
474
  key: 2,
475
475
  class: "flex justify-start mt-2"
476
- }, Yt = /* @__PURE__ */ u("span", { class: "sr-only" }, "Close", -1), bl = /* @__PURE__ */ M({
476
+ }, Yt = /* @__PURE__ */ i("span", { class: "sr-only" }, "Close", -1), yl = /* @__PURE__ */ M({
477
477
  __name: "ToastRenderer",
478
478
  props: {
479
479
  notification: null
480
480
  },
481
481
  emits: ["update:notification"],
482
482
  setup(e, { emit: l }) {
483
- const t = e, s = c(
483
+ const t = e, s = u(
484
484
  () => {
485
- var p, r;
486
- return !((p = t.notification) != null && p.description) && !((r = t.notification) != null && r.cta);
485
+ var f, p;
486
+ return !((f = t.notification) != null && f.description) && !((p = t.notification) != null && p.cta);
487
487
  }
488
488
  ), o = () => {
489
489
  l("update:notification", null);
490
- }, f = (p) => {
491
- var r, i, d;
492
- (d = (i = (r = t.notification) == null ? void 0 : r.cta) == null ? void 0 : i.onClick) == null || d.call(i, p), o();
490
+ }, c = (f) => {
491
+ var p, r, d;
492
+ (d = (r = (p = t.notification) == null ? void 0 : p.cta) == null ? void 0 : r.onClick) == null || d.call(r, f), o();
493
493
  };
494
- return (p, r) => (a(), h("div", Ut, [
495
- u("div", Wt, [
494
+ return (f, p) => (a(), h("div", Ut, [
495
+ i("div", Wt, [
496
496
  L(ge, {
497
497
  "enter-active-class": "transform ease-out duration-300 transition",
498
498
  "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
@@ -503,9 +503,9 @@ const Ut = {
503
503
  }, {
504
504
  default: B(() => [
505
505
  e.notification ? (a(), h("div", qt, [
506
- u("div", Ht, [
507
- u("div", Gt, [
508
- u("div", Kt, [
506
+ i("div", Ht, [
507
+ i("div", Gt, [
508
+ i("div", Kt, [
509
509
  e.notification.type === n(ee).Success ? (a(), P(n(ot), {
510
510
  key: 0,
511
511
  class: "h-6 w-6 text-success",
@@ -524,7 +524,7 @@ const Ut = {
524
524
  "aria-hidden": "true"
525
525
  })) : S("", !0)
526
526
  ]),
527
- u("div", Xt, [
527
+ i("div", Xt, [
528
528
  e.notification.title ? (a(), h("p", Nt, I(e.notification.title), 1)) : S("", !0),
529
529
  e.notification.description ? (a(), h("p", Jt, I(e.notification.description), 1)) : S("", !0),
530
530
  e.notification.cta ? (a(), h("div", Qt, [
@@ -532,7 +532,7 @@ const Ut = {
532
532
  to: e.notification.cta.url,
533
533
  class: "label",
534
534
  primary: "",
535
- onClick: f
535
+ onClick: c
536
536
  }, {
537
537
  default: B(() => [
538
538
  A(I(e.notification.cta.title), 1)
@@ -541,10 +541,10 @@ const Ut = {
541
541
  }, 8, ["to"])
542
542
  ])) : S("", !0)
543
543
  ]),
544
- u("div", {
545
- class: b(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
544
+ i("div", {
545
+ class: y(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
546
546
  }, [
547
- u("button", {
547
+ i("button", {
548
548
  type: "button",
549
549
  class: "inline-flex rounded-md bg-foundation text-foreground-2 hover:text-foreground focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",
550
550
  onClick: o
@@ -565,7 +565,7 @@ const Ut = {
565
565
  ])
566
566
  ]));
567
567
  }
568
- }), Zt = /* @__PURE__ */ u("circle", {
568
+ }), Zt = /* @__PURE__ */ i("circle", {
569
569
  cx: "4",
570
570
  cy: "4",
571
571
  r: "3"
@@ -584,11 +584,11 @@ const Ut = {
584
584
  },
585
585
  emits: ["click-icon"],
586
586
  setup(e, { emit: l }) {
587
- const t = e, s = c(
587
+ const t = e, s = u(
588
588
  () => t.colorClasses || "bg-blue-100 text-blue-800"
589
- ), o = c(
589
+ ), o = u(
590
590
  () => t.dotIconColorClasses || "text-blue-400"
591
- ), f = c(() => {
591
+ ), c = u(() => {
592
592
  const d = [
593
593
  "inline-flex items-center",
594
594
  s.value,
@@ -599,15 +599,15 @@ const Ut = {
599
599
  )) : (d.push("rounded-full"), d.push(
600
600
  t.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
601
601
  )), d.join(" ");
602
- }), p = c(() => {
602
+ }), f = u(() => {
603
603
  const d = [
604
604
  "mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
605
605
  ];
606
606
  return t.clickableIcon ? d.push("cursor-pointer") : d.push("cursor-default"), d.join(" ");
607
- }), r = c(() => [
607
+ }), p = u(() => [
608
608
  "-ml-0.5 mr-1.5 h-2 w-2",
609
609
  o.value
610
- ].join(" ")), i = (d) => {
610
+ ].join(" ")), r = (d) => {
611
611
  if (!t.clickableIcon) {
612
612
  d.stopPropagation(), d.stopImmediatePropagation(), d.preventDefault();
613
613
  return;
@@ -615,11 +615,11 @@ const Ut = {
615
615
  l("click-icon", d);
616
616
  };
617
617
  return (d, x) => (a(), h("span", {
618
- class: b(f.value)
618
+ class: y(c.value)
619
619
  }, [
620
620
  e.dot ? (a(), h("svg", {
621
621
  key: 0,
622
- class: b(r.value),
622
+ class: y(p.value),
623
623
  fill: "currentColor",
624
624
  viewBox: "0 0 8 8"
625
625
  }, es, 2)) : S("", !0),
@@ -628,19 +628,19 @@ const Ut = {
628
628
  ]),
629
629
  e.iconLeft ? (a(), h("button", {
630
630
  key: 1,
631
- class: b(p.value),
632
- onClick: x[0] || (x[0] = (v) => i(v))
631
+ class: y(f.value),
632
+ onClick: x[0] || (x[0] = (v) => r(v))
633
633
  }, [
634
634
  (a(), P(H(e.iconLeft), {
635
- class: b(["h-4 w-4", o.value])
635
+ class: y(["h-4 w-4", o.value])
636
636
  }, null, 8, ["class"]))
637
637
  ], 2)) : S("", !0)
638
638
  ], 2));
639
639
  }
640
640
  });
641
- let Pe = [];
641
+ let je = [];
642
642
  function ss(e) {
643
- Pe = Pe ? e : e.slice();
643
+ je = je ? e : e.slice();
644
644
  }
645
645
  var te = /* @__PURE__ */ ((e) => (e[e.sm = 640] = "sm", e[e.md = 746] = "md", e[e.lg = 1024] = "lg", e[e.xl = 1280] = "xl", e[e["2xl"] = 1536] = "2xl", e))(te || {});
646
646
  function Ee(e) {
@@ -650,39 +650,39 @@ function Ee(e) {
650
650
  steps: t,
651
651
  orientation: s,
652
652
  goVerticalBelow: o,
653
- nonInteractive: f,
654
- stepsPadding: p
653
+ nonInteractive: c,
654
+ stepsPadding: f
655
655
  },
656
- emit: r
657
- } = e, i = c(
656
+ emit: p
657
+ } = e, r = u(
658
658
  () => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
659
- ), d = c({
660
- get: () => Be((l == null ? void 0 : l.value) || 0, -1, t.value.length),
661
- set: (y) => r("update:modelValue", Be(y, 0, t.value.length))
662
- }), x = (y) => `${y + 1}`, v = (y) => y === d.value, m = (y) => y < d.value, k = (y, w) => {
663
- var z;
664
- if (f != null && f.value) {
659
+ ), d = u({
660
+ get: () => Le((l == null ? void 0 : l.value) || 0, -1, t.value.length),
661
+ set: (b) => p("update:modelValue", Le(b, 0, t.value.length))
662
+ }), x = (b) => `${b + 1}`, v = (b) => b === d.value, m = (b) => b < d.value, k = (b, w) => {
663
+ var F;
664
+ if (c != null && c.value) {
665
665
  w == null || w.preventDefault(), w == null || w.stopPropagation(), w == null || w.stopImmediatePropagation();
666
666
  return;
667
667
  }
668
- d.value = y;
668
+ d.value = b;
669
669
  const $ = t.value[d.value];
670
- (z = $ == null ? void 0 : $.onClick) == null || z.call($);
671
- }, _ = c(() => {
672
- const y = ["flex"];
670
+ (F = $ == null ? void 0 : $.onClick) == null || F.call($);
671
+ }, _ = u(() => {
672
+ const b = ["flex"];
673
673
  let w, $;
674
- return (p == null ? void 0 : p.value) === "xs" ? (w = "space-x-2", $ = "space-y-1") : (p == null ? void 0 : p.value) === "sm" ? (w = "space-x-4", $ = "space-y-1") : (w = "space-x-8", $ = "space-y-4"), y.push("flex"), i.value === "vertical" || o != null && o.value ? (y.push(`flex-col ${$} justify-center`), (o == null ? void 0 : o.value) === te.sm ? y.push(
674
+ return (f == null ? void 0 : f.value) === "xs" ? (w = "space-x-2", $ = "space-y-1") : (f == null ? void 0 : f.value) === "sm" ? (w = "space-x-4", $ = "space-y-1") : (w = "space-x-8", $ = "space-y-4"), b.push("flex"), r.value === "vertical" || o != null && o.value ? (b.push(`flex-col ${$} justify-center`), (o == null ? void 0 : o.value) === te.sm ? b.push(
675
675
  `sm:flex-row sm:space-y-0 sm:justify-start sm:${w} sm:items-center`
676
- ) : (o == null ? void 0 : o.value) === te.md ? y.push(
676
+ ) : (o == null ? void 0 : o.value) === te.md ? b.push(
677
677
  `md:flex-row md:space-y-0 md:justify-start md:${w} md:items-center`
678
- ) : (o == null ? void 0 : o.value) === te.lg ? y.push(
678
+ ) : (o == null ? void 0 : o.value) === te.lg ? b.push(
679
679
  `lg:flex-row lg:space-y-0 lg:justify-start lg:${w} lg:items-center`
680
- ) : (o == null ? void 0 : o.value) === te.xl && y.push(
680
+ ) : (o == null ? void 0 : o.value) === te.xl && b.push(
681
681
  `xl:flex-row xl:space-y-0 xl:justify-start xl:${w} xl:items-center`
682
- )) : y.push(`flex-row ${w} items-center`), y.join(" ");
683
- }), j = c(() => {
684
- const y = ["flex items-center"];
685
- return f != null && f.value || y.push("cursor-pointer"), y.join(" ");
682
+ )) : b.push(`flex-row ${w} items-center`), b.join(" ");
683
+ }), j = u(() => {
684
+ const b = ["flex items-center"];
685
+ return c != null && c.value || b.push("cursor-pointer"), b.join(" ");
686
686
  });
687
687
  return {
688
688
  value: d,
@@ -692,7 +692,7 @@ function Ee(e) {
692
692
  getStepDisplayValue: x,
693
693
  listClasses: _,
694
694
  linkClasses: j,
695
- orientation: i
695
+ orientation: r
696
696
  };
697
697
  }
698
698
  ss([
@@ -715,7 +715,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
715
715
  }, us = ["href", "onClick"], cs = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, ds = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, fs = { class: "flex flex-col" }, ps = {
716
716
  key: 0,
717
717
  class: "label label--light text-foreground"
718
- }, hs = ["href", "onClick"], ms = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, gs = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, vs = { class: "flex flex-col" }, ys = {
718
+ }, hs = ["href", "onClick"], ms = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, gs = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, vs = { class: "flex flex-col" }, bs = {
719
719
  key: 0,
720
720
  class: "label label--light"
721
721
  }, xl = /* @__PURE__ */ M({
@@ -734,10 +734,10 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
734
734
  const t = e, {
735
735
  isCurrentStep: s,
736
736
  isFinishedStep: o,
737
- switchStep: f,
738
- getStepDisplayValue: p,
739
- listClasses: r,
740
- linkClasses: i
737
+ switchStep: c,
738
+ getStepDisplayValue: f,
739
+ listClasses: p,
740
+ linkClasses: r
741
741
  } = Ee({
742
742
  props: ae(t),
743
743
  emit: l
@@ -746,8 +746,8 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
746
746
  class: "flex justify-center",
747
747
  "aria-label": e.ariaLabel || "Progress steps"
748
748
  }, [
749
- u("ol", {
750
- class: b(n(r))
749
+ i("ol", {
750
+ class: y(n(p))
751
751
  }, [
752
752
  (a(!0), h(U, null, G(e.steps, (v, m) => (a(), h("li", {
753
753
  key: v.name
@@ -755,43 +755,43 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
755
755
  n(o)(m) ? (a(), h("a", {
756
756
  key: 0,
757
757
  href: v.href,
758
- class: b(n(i)),
759
- onClick: (k) => n(f)(m, k)
758
+ class: y(n(r)),
759
+ onClick: (k) => n(c)(m, k)
760
760
  }, [
761
- u("div", as, [
762
- u("div", os, [
761
+ i("div", as, [
762
+ i("div", os, [
763
763
  L(n(pt), { class: "w-5 h-5" })
764
764
  ]),
765
- u("div", rs, [
766
- u("div", null, I(v.name), 1),
765
+ i("div", rs, [
766
+ i("div", null, I(v.name), 1),
767
767
  v.description ? (a(), h("div", is, I(v.description), 1)) : S("", !0)
768
768
  ])
769
769
  ])
770
770
  ], 10, ls)) : n(s)(m) ? (a(), h("a", {
771
771
  key: 1,
772
772
  href: v.href,
773
- class: b(n(i)),
773
+ class: y(n(r)),
774
774
  "aria-current": "step",
775
- onClick: (k) => n(f)(m, k)
775
+ onClick: (k) => n(c)(m, k)
776
776
  }, [
777
- u("div", cs, [
778
- u("div", ds, I(n(p)(m)), 1),
779
- u("div", fs, [
780
- u("div", null, I(v.name), 1),
777
+ i("div", cs, [
778
+ i("div", ds, I(n(f)(m)), 1),
779
+ i("div", fs, [
780
+ i("div", null, I(v.name), 1),
781
781
  v.description ? (a(), h("div", ps, I(v.description), 1)) : S("", !0)
782
782
  ])
783
783
  ])
784
784
  ], 10, us)) : (a(), h("a", {
785
785
  key: 2,
786
786
  href: v.href,
787
- class: b(n(i)),
788
- onClick: (k) => n(f)(m, k)
787
+ class: y(n(r)),
788
+ onClick: (k) => n(c)(m, k)
789
789
  }, [
790
- u("div", ms, [
791
- u("div", gs, I(n(p)(m)), 1),
792
- u("div", vs, [
793
- u("div", null, I(v.name), 1),
794
- v.description ? (a(), h("div", ys, I(v.description), 1)) : S("", !0)
790
+ i("div", ms, [
791
+ i("div", gs, I(n(f)(m)), 1),
792
+ i("div", vs, [
793
+ i("div", null, I(v.name), 1),
794
+ v.description ? (a(), h("div", bs, I(v.description), 1)) : S("", !0)
795
795
  ])
796
796
  ])
797
797
  ], 10, hs))
@@ -799,7 +799,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
799
799
  ], 2)
800
800
  ], 8, ns));
801
801
  }
802
- }), bs = ["aria-label"], xs = ["href", "onClick"], ks = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, Cs = {
802
+ }), ys = ["aria-label"], xs = ["href", "onClick"], ks = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, Cs = {
803
803
  key: 0,
804
804
  class: "h-3 w-3 rounded-full bg-foreground-2"
805
805
  }, ws = ["href", "onClick"], $s = {
@@ -808,7 +808,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
808
808
  }, Ss = {
809
809
  key: 0,
810
810
  class: "h-3 w-3 rounded-full bg-foreground"
811
- }, Is = /* @__PURE__ */ u("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), _s = /* @__PURE__ */ u("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), Bs = ["href", "onClick"], Ls = {
811
+ }, Is = /* @__PURE__ */ i("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), _s = /* @__PURE__ */ i("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), Bs = ["href", "onClick"], Ls = {
812
812
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
813
813
  "aria-hidden": "true"
814
814
  }, Ps = {
@@ -831,14 +831,14 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
831
831
  },
832
832
  emits: ["update:modelValue"],
833
833
  setup(e, { emit: l }) {
834
- const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: f, listClasses: p, linkClasses: r } = Ee({
834
+ const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: c, listClasses: f, linkClasses: p } = Ee({
835
835
  props: ae(t),
836
836
  emit: l
837
- }), i = c(() => {
837
+ }), r = u(() => {
838
838
  const x = ["h6 font-medium leading-7"];
839
839
  let v;
840
840
  return t.stepsPadding === "xs" ? v = "ml-1" : t.stepsPadding === "sm" ? v = "ml-2" : v = "ml-3", x.push(v), t.basic && x.push("sr-only"), x.join(" ");
841
- }), d = c(() => {
841
+ }), d = u(() => {
842
842
  const x = [];
843
843
  return t.basic && x.push("basic"), x.join(" ");
844
844
  });
@@ -846,8 +846,8 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
846
846
  class: "flex justify-center",
847
847
  "aria-label": e.ariaLabel || "Progress steps"
848
848
  }, [
849
- u("ol", {
850
- class: b([n(p), d.value])
849
+ i("ol", {
850
+ class: y([n(f), d.value])
851
851
  }, [
852
852
  (a(!0), h(U, null, G(e.steps, (m, k) => (a(), h("li", {
853
853
  key: m.name
@@ -855,51 +855,51 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
855
855
  n(o)(k) ? (a(), h("a", {
856
856
  key: 0,
857
857
  href: m.href,
858
- class: b(n(r)),
859
- onClick: (_) => n(f)(k, _)
858
+ class: y(n(p)),
859
+ onClick: (_) => n(c)(k, _)
860
860
  }, [
861
- u("span", ks, [
861
+ i("span", ks, [
862
862
  e.basic ? (a(), h("span", Cs)) : (a(), P(n(Te), {
863
863
  key: 1,
864
864
  class: "h-full w-full text-primary",
865
865
  "aria-hidden": "true"
866
866
  }))
867
867
  ]),
868
- u("span", {
869
- class: b(["text-foreground", i.value])
868
+ i("span", {
869
+ class: y(["text-foreground", r.value])
870
870
  }, I(m.name), 3)
871
871
  ], 10, xs)) : n(s)(k) ? (a(), h("a", {
872
872
  key: 1,
873
873
  href: m.href,
874
- class: b(n(r)),
874
+ class: y(n(p)),
875
875
  "aria-current": "step",
876
- onClick: (_) => n(f)(k, _)
876
+ onClick: (_) => n(c)(k, _)
877
877
  }, [
878
- u("span", $s, [
878
+ i("span", $s, [
879
879
  e.basic ? (a(), h("span", Ss)) : (a(), h(U, { key: 1 }, [
880
880
  Is,
881
881
  _s
882
882
  ], 64))
883
883
  ]),
884
- u("span", {
885
- class: b(["text-primary-focus", i.value])
884
+ i("span", {
885
+ class: y(["text-primary-focus", r.value])
886
886
  }, I(m.name), 3)
887
887
  ], 10, ws)) : (a(), h("a", {
888
888
  key: 2,
889
889
  href: m.href,
890
- class: b(n(r)),
891
- onClick: (_) => n(f)(k, _)
890
+ class: y(n(p)),
891
+ onClick: (_) => n(c)(k, _)
892
892
  }, [
893
- u("div", Ls, [
893
+ i("div", Ls, [
894
894
  e.basic ? (a(), h("span", Ps)) : (a(), h("div", js))
895
895
  ]),
896
- u("p", {
897
- class: b(["text-foreground-disabled", i.value])
896
+ i("p", {
897
+ class: y(["text-foreground-disabled", r.value])
898
898
  }, I(m.name), 3)
899
899
  ], 10, Bs))
900
900
  ]))), 128))
901
901
  ], 2)
902
- ], 8, bs));
902
+ ], 8, ys));
903
903
  }
904
904
  }), Vs = ["disabled"], Cl = /* @__PURE__ */ M({
905
905
  __name: "CardButton",
@@ -909,27 +909,27 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
909
909
  },
910
910
  emits: ["update:modelValue", "click"],
911
911
  setup(e, { emit: l }) {
912
- const t = e, s = c(() => {
913
- const f = [
912
+ const t = e, s = u(() => {
913
+ const c = [
914
914
  "h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
915
915
  "normal px-16 py-5 shadow rounded transition active:scale-95"
916
916
  ];
917
- return t.disabled ? f.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (f.push(
917
+ return t.disabled ? c.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (c.push(
918
918
  t.modelValue ? "bg-primary-focus text-foreground-on-primary" : "bg-foundation text-foreground"
919
- ), f.push("ring-outline-2 hover:ring-4")), f.join(" ");
920
- }), o = (f) => {
919
+ ), c.push("ring-outline-2 hover:ring-4")), c.join(" ");
920
+ }), o = (c) => {
921
921
  if (t.disabled) {
922
- f.preventDefault(), f.stopPropagation(), f.stopImmediatePropagation();
922
+ c.preventDefault(), c.stopPropagation(), c.stopImmediatePropagation();
923
923
  return;
924
924
  }
925
- l("update:modelValue", !t.modelValue), l("click", f);
925
+ l("update:modelValue", !t.modelValue), l("click", c);
926
926
  };
927
- return (f, p) => (a(), h("button", {
928
- class: b(s.value),
927
+ return (c, f) => (a(), h("button", {
928
+ class: y(s.value),
929
929
  disabled: e.disabled,
930
930
  onClick: o
931
931
  }, [
932
- D(f.$slots, "default", {}, () => [
932
+ D(c.$slots, "default", {}, () => [
933
933
  A("Text")
934
934
  ])
935
935
  ], 10, Vs));
@@ -940,7 +940,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
940
940
  }, Ts = ["for"], Rs = {
941
941
  key: 0,
942
942
  class: "text-danger ml-1"
943
- }, zs = ["id"], wl = /* @__PURE__ */ M({
943
+ }, Fs = ["id"], wl = /* @__PURE__ */ M({
944
944
  inheritAttrs: !1,
945
945
  __name: "Checkbox",
946
946
  props: {
@@ -1029,28 +1029,28 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
1029
1029
  },
1030
1030
  emits: ["update:modelValue"],
1031
1031
  setup(e) {
1032
- const l = e, t = (y) => `${y}-${be()}`, s = c(() => l.value || l.name), {
1032
+ const l = e, t = (b) => `${b}-${xe()}`, s = u(() => l.value || l.name), {
1033
1033
  checked: o,
1034
- errorMessage: f,
1035
- handleChange: p,
1036
- value: r
1034
+ errorMessage: c,
1035
+ handleChange: f,
1036
+ value: p
1037
1037
  } = ye(l.name, l.rules, {
1038
1038
  validateOnMount: l.validateOnMount,
1039
1039
  type: "checkbox",
1040
1040
  checkedValue: s,
1041
1041
  initialValue: l.modelValue || void 0
1042
- }), i = c(() => l.label || l.name), d = c(() => f.value ? "border-danger-lighter" : "border-foreground-4 "), x = c(() => l.description || f.value), v = c(() => `${l.name}-description`), m = c(() => {
1043
- const y = [];
1044
- return l.inlineDescription ? y.push("inline ml-2") : y.push("block"), f.value ? y.push("text-danger") : y.push("text-foreground-2"), y.join(" ");
1045
- }), k = O(t("checkbox")), _ = c(() => l.id || k.value), j = (y) => {
1046
- l.disabled || p(y);
1042
+ }), r = u(() => l.label || l.name), d = u(() => c.value ? "border-danger-lighter" : "border-foreground-4 "), x = u(() => l.description || c.value), v = u(() => `${l.name}-description`), m = u(() => {
1043
+ const b = [];
1044
+ return l.inlineDescription ? b.push("inline ml-2") : b.push("block"), c.value ? b.push("text-danger") : b.push("text-foreground-2"), b.join(" ");
1045
+ }), k = O(t("checkbox")), _ = u(() => l.id || k.value), j = (b) => {
1046
+ l.disabled || f(b);
1047
1047
  };
1048
1048
  return Y(() => {
1049
- const y = l.modelValue, w = r.value, $ = Array.isArray(y) ? y.includes(l.value) : y === l.value, z = Array.isArray(w) ? w.includes(l.value) : w === l.value;
1050
- $ !== z && p(y);
1051
- }), (y, w) => (a(), h("div", Os, [
1052
- u("div", Ms, [
1053
- u("input", oe({
1049
+ const b = l.modelValue, w = p.value, $ = Array.isArray(b) ? b.includes(l.value) : b === l.value, F = Array.isArray(w) ? w.includes(l.value) : w === l.value;
1050
+ $ !== F && f(b);
1051
+ }), (b, w) => (a(), h("div", Os, [
1052
+ i("div", Ms, [
1053
+ i("input", oe({
1054
1054
  id: _.value,
1055
1055
  checked: n(o),
1056
1056
  "aria-describedby": v.value,
@@ -1059,62 +1059,62 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
1059
1059
  value: s.value,
1060
1060
  type: "checkbox",
1061
1061
  class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", d.value]
1062
- }, y.$attrs, { onChange: j }), null, 16, As)
1062
+ }, b.$attrs, { onChange: j }), null, 16, As)
1063
1063
  ]),
1064
- u("div", Ds, [
1065
- u("label", {
1064
+ i("div", Ds, [
1065
+ i("label", {
1066
1066
  for: _.value,
1067
- class: b(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1067
+ class: y(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1068
1068
  }, [
1069
- u("span", null, I(i.value), 1),
1069
+ i("span", null, I(r.value), 1),
1070
1070
  e.showRequired ? (a(), h("span", Rs, "*")) : S("", !0)
1071
1071
  ], 10, Ts),
1072
1072
  x.value ? (a(), h("p", {
1073
1073
  key: 0,
1074
1074
  id: v.value,
1075
- class: b(m.value)
1076
- }, I(x.value), 11, zs)) : S("", !0)
1075
+ class: y(m.value)
1076
+ }, I(x.value), 11, Fs)) : S("", !0)
1077
1077
  ])
1078
1078
  ]));
1079
1079
  }
1080
1080
  });
1081
1081
  function Ue(e) {
1082
- const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: f } = ye(l.name, l.rules, {
1082
+ const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: c } = ye(l.name, l.rules, {
1083
1083
  validateOnMount: n(l.validateOnMount),
1084
1084
  validateOnValueUpdate: n(l.validateOnValueUpdate),
1085
1085
  initialValue: n(l.modelValue) || void 0
1086
- }), p = c(() => {
1086
+ }), f = u(() => {
1087
1087
  const $ = ["block label text-foreground-2 mb-2"];
1088
1088
  return n(l.showLabel) || $.push("sr-only"), $.join(" ");
1089
- }), r = c(() => {
1089
+ }), p = u(() => {
1090
1090
  const $ = [
1091
1091
  "block w-full rounded focus:outline-none text-foreground transition-all",
1092
1092
  "disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
1093
1093
  "placeholder:text-foreground-2"
1094
1094
  ];
1095
- return f.value ? $.push(
1095
+ return c.value ? $.push(
1096
1096
  "border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
1097
1097
  ) : $.push("border-0 focus:ring-2 focus:ring-outline-2"), n(l.color) === "foundation" ? $.push("bg-foundation shadow-sm hover:shadow") : $.push("bg-foundation-page"), $.join(" ");
1098
- }), i = O(be()), d = c(() => n(l.label) || n(l.name)), x = c(() => {
1099
- const $ = f.value;
1098
+ }), r = O(xe()), d = u(() => n(l.label) || n(l.name)), x = u(() => {
1099
+ const $ = c.value;
1100
1100
  return !$ || !n(l.useLabelInErrors) ? $ : $.replace("Value", d.value);
1101
- }), v = c(
1101
+ }), v = u(
1102
1102
  () => x.value && n(l.hideErrorMessage)
1103
- ), m = c(() => x.value || n(l.help)), k = c(() => !!m.value), _ = c(
1104
- () => k.value ? `${n(l.name)}-${i.value}` : void 0
1105
- ), j = c(() => {
1103
+ ), m = u(() => x.value || n(l.help)), k = u(() => !!m.value), _ = u(
1104
+ () => k.value ? `${n(l.name)}-${r.value}` : void 0
1105
+ ), j = u(() => {
1106
1106
  const $ = ["mt-2 text-sm"];
1107
- return $.push(f.value ? "text-danger" : "text-foreground-2"), $.join(" ");
1108
- }), y = () => {
1107
+ return $.push(c.value ? "text-danger" : "text-foreground-2"), $.join(" ");
1108
+ }), b = () => {
1109
1109
  var $;
1110
1110
  ($ = t.value) == null || $.focus();
1111
1111
  }, w = () => {
1112
1112
  o.value = "", s("change", { value: "" }), s("clear");
1113
1113
  };
1114
1114
  return Y(() => {
1115
- n(l.autoFocus) && y();
1115
+ n(l.autoFocus) && b();
1116
1116
  }), {
1117
- coreClasses: r,
1117
+ coreClasses: p,
1118
1118
  title: d,
1119
1119
  value: o,
1120
1120
  helpTipId: _,
@@ -1123,11 +1123,11 @@ function Ue(e) {
1123
1123
  hideHelpTip: v,
1124
1124
  errorMessage: x,
1125
1125
  clear: w,
1126
- focus: y,
1127
- labelClasses: p
1126
+ focus: b,
1127
+ labelClasses: f
1128
1128
  };
1129
1129
  }
1130
- const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ws = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), qs = {
1130
+ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ws = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), qs = {
1131
1131
  key: 2,
1132
1132
  class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
1133
1133
  }, Hs = ["id"], $l = /* @__PURE__ */ M({
@@ -1153,10 +1153,10 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1153
1153
  emits: ["update:modelValue", "change", "input", "clear"],
1154
1154
  setup(e, { expose: l, emit: t }) {
1155
1155
  const s = e, o = O(null), {
1156
- coreClasses: f,
1157
- title: p,
1158
- value: r,
1159
- helpTipId: i,
1156
+ coreClasses: c,
1157
+ title: f,
1158
+ value: p,
1159
+ helpTipId: r,
1160
1160
  helpTipClasses: d,
1161
1161
  helpTip: x,
1162
1162
  errorMessage: v,
@@ -1167,36 +1167,36 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1167
1167
  props: ae(s),
1168
1168
  emit: t,
1169
1169
  inputEl: o
1170
- }), j = c(() => {
1171
- const y = ["pl-2"];
1172
- return s.showClear && v.value ? y.push("pr-12") : (s.showClear || v.value) && y.push("pr-8"), y.join(" ");
1170
+ }), j = u(() => {
1171
+ const b = ["pl-2"];
1172
+ return s.showClear && v.value ? b.push("pr-12") : (s.showClear || v.value) && b.push("pr-8"), b.join(" ");
1173
1173
  });
1174
- return l({ focus: _ }), (y, w) => (a(), h("div", {
1175
- class: b([e.fullWidth ? "w-full" : ""])
1174
+ return l({ focus: _ }), (b, w) => (a(), h("div", {
1175
+ class: y([e.fullWidth ? "w-full" : ""])
1176
1176
  }, [
1177
- u("label", {
1177
+ i("label", {
1178
1178
  for: e.name,
1179
- class: b(n(m))
1179
+ class: y(n(m))
1180
1180
  }, [
1181
- u("span", null, I(n(p)), 1)
1182
- ], 10, Fs),
1183
- u("div", Es, [
1184
- ne(u("textarea", oe({
1181
+ i("span", null, I(n(f)), 1)
1182
+ ], 10, zs),
1183
+ i("div", Es, [
1184
+ ne(i("textarea", oe({
1185
1185
  id: e.name,
1186
1186
  ref_key: "inputElement",
1187
1187
  ref: o,
1188
- "onUpdate:modelValue": w[0] || (w[0] = ($) => ve(r) ? r.value = $ : null),
1188
+ "onUpdate:modelValue": w[0] || (w[0] = ($) => ve(p) ? p.value = $ : null),
1189
1189
  name: e.name,
1190
- class: [n(f), j.value, "min-h-[4rem]"],
1190
+ class: [n(c), j.value, "min-h-[4rem]"],
1191
1191
  placeholder: e.placeholder,
1192
1192
  disabled: e.disabled,
1193
1193
  "aria-invalid": n(v) ? "true" : "false",
1194
- "aria-describedby": n(i)
1195
- }, y.$attrs, {
1196
- onChange: w[1] || (w[1] = ($) => y.$emit("change", { event: $, value: n(r) })),
1197
- onInput: w[2] || (w[2] = ($) => y.$emit("input", { event: $, value: n(r) }))
1194
+ "aria-describedby": n(r)
1195
+ }, b.$attrs, {
1196
+ onChange: w[1] || (w[1] = ($) => b.$emit("change", { event: $, value: n(p) })),
1197
+ onInput: w[2] || (w[2] = ($) => b.$emit("input", { event: $, value: n(p) }))
1198
1198
  }), null, 16, Us), [
1199
- [je, n(r)]
1199
+ [Ve, n(p)]
1200
1200
  ]),
1201
1201
  e.showClear ? (a(), h("a", {
1202
1202
  key: 0,
@@ -1215,7 +1215,7 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1215
1215
  ], 32)) : S("", !0),
1216
1216
  n(v) ? (a(), h("div", {
1217
1217
  key: 1,
1218
- class: b([
1218
+ class: y([
1219
1219
  "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1220
1220
  e.showClear ? "pr-8" : "pr-2"
1221
1221
  ])
@@ -1227,17 +1227,17 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1227
1227
  ], 2)) : S("", !0),
1228
1228
  e.showRequired && !n(v) ? (a(), h("div", qs, " * ")) : S("", !0)
1229
1229
  ]),
1230
- n(i) ? (a(), h("p", {
1230
+ n(r) ? (a(), h("p", {
1231
1231
  key: 0,
1232
- id: n(i),
1233
- class: b(n(d))
1232
+ id: n(r),
1233
+ class: y(n(d))
1234
1234
  }, I(n(x)), 11, Hs)) : S("", !0)
1235
1235
  ], 2));
1236
1236
  }
1237
1237
  }), Gs = ["for"], Ks = { class: "relative" }, Xs = {
1238
1238
  key: 0,
1239
1239
  class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
1240
- }, Ns = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Js = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Qs = {
1240
+ }, Ns = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Js = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), Qs = {
1241
1241
  key: 2,
1242
1242
  class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
1243
1243
  }, Ys = ["id"], Sl = /* @__PURE__ */ M({
@@ -1377,10 +1377,10 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1377
1377
  },
1378
1378
  emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
1379
1379
  setup(e, { expose: l, emit: t }) {
1380
- const s = e, o = Ve(), f = O(null), {
1381
- coreClasses: p,
1382
- title: r,
1383
- value: i,
1380
+ const s = e, o = Oe(), c = O(null), {
1381
+ coreClasses: f,
1382
+ title: p,
1383
+ value: r,
1384
1384
  helpTipId: d,
1385
1385
  helpTipClasses: x,
1386
1386
  helpTip: v,
@@ -1388,20 +1388,20 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1388
1388
  errorMessage: k,
1389
1389
  clear: _,
1390
1390
  focus: j,
1391
- labelClasses: y
1391
+ labelClasses: b
1392
1392
  } = Ue({
1393
1393
  props: ae(s),
1394
1394
  emit: t,
1395
- inputEl: f
1396
- }), w = c(() => {
1395
+ inputEl: c
1396
+ }), w = u(() => {
1397
1397
  const R = ["h-5 w-5"];
1398
1398
  return k.value ? R.push("text-danger") : R.push("text-foreground-2"), R.join(" ");
1399
- }), $ = c(
1399
+ }), $ = u(
1400
1400
  () => ["email", "password"].includes(s.type) || s.customIcon
1401
- ), z = c(() => {
1401
+ ), F = u(() => {
1402
1402
  const R = [];
1403
1403
  return $.value ? R.push("pl-8") : R.push("pl-2"), o["input-right"] || (k.value || s.showClear) && (k.value && s.showClear ? R.push("pr-12") : R.push("pr-8")), R.join(" ");
1404
- }), g = c(() => {
1404
+ }), g = u(() => {
1405
1405
  switch (s.size) {
1406
1406
  case "sm":
1407
1407
  return "h-6";
@@ -1415,48 +1415,48 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1415
1415
  }
1416
1416
  });
1417
1417
  return l({ focus: j }), (R, E) => (a(), h("div", {
1418
- class: b([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1418
+ class: y([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1419
1419
  }, [
1420
- u("label", {
1420
+ i("label", {
1421
1421
  for: e.name,
1422
- class: b(n(y))
1422
+ class: y(n(b))
1423
1423
  }, [
1424
- u("span", null, I(n(r)), 1)
1424
+ i("span", null, I(n(p)), 1)
1425
1425
  ], 10, Gs),
1426
- u("div", Ks, [
1426
+ i("div", Ks, [
1427
1427
  $.value ? (a(), h("div", Xs, [
1428
1428
  e.customIcon ? (a(), P(H(e.customIcon), {
1429
1429
  key: 0,
1430
- class: b(w.value),
1430
+ class: y(w.value),
1431
1431
  "aria-hidden": "true"
1432
1432
  }, null, 8, ["class"])) : e.type === "email" ? (a(), P(n(ht), {
1433
1433
  key: 1,
1434
- class: b(w.value),
1434
+ class: y(w.value),
1435
1435
  "aria-hidden": "true"
1436
1436
  }, null, 8, ["class"])) : e.type === "password" ? (a(), P(n(mt), {
1437
1437
  key: 2,
1438
- class: b(w.value),
1438
+ class: y(w.value),
1439
1439
  "aria-hidden": "true"
1440
1440
  }, null, 8, ["class"])) : S("", !0)
1441
1441
  ])) : S("", !0),
1442
- ne(u("input", oe({
1442
+ ne(i("input", oe({
1443
1443
  id: e.name,
1444
1444
  ref_key: "inputElement",
1445
- ref: f,
1446
- "onUpdate:modelValue": E[0] || (E[0] = (F) => ve(i) ? i.value = F : null),
1445
+ ref: c,
1446
+ "onUpdate:modelValue": E[0] || (E[0] = (z) => ve(r) ? r.value = z : null),
1447
1447
  type: e.type,
1448
1448
  name: e.name,
1449
- class: [n(p), z.value, g.value, e.inputClasses || ""],
1449
+ class: [n(f), F.value, g.value, e.inputClasses || ""],
1450
1450
  placeholder: e.placeholder,
1451
1451
  disabled: e.disabled,
1452
1452
  "aria-invalid": n(k) ? "true" : "false",
1453
1453
  "aria-describedby": n(d),
1454
1454
  role: "textbox"
1455
1455
  }, R.$attrs, {
1456
- onChange: E[1] || (E[1] = (F) => R.$emit("change", { event: F, value: n(i) })),
1457
- onInput: E[2] || (E[2] = (F) => R.$emit("input", { event: F, value: n(i) }))
1456
+ onChange: E[1] || (E[1] = (z) => R.$emit("change", { event: z, value: n(r) })),
1457
+ onInput: E[2] || (E[2] = (z) => R.$emit("input", { event: z, value: n(r) }))
1458
1458
  }), null, 16, Ns), [
1459
- [Xe, n(i)]
1459
+ [Xe, n(r)]
1460
1460
  ]),
1461
1461
  D(R.$slots, "input-right", {}, () => [
1462
1462
  e.showClear ? (a(), h("a", {
@@ -1464,9 +1464,9 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1464
1464
  title: "Clear input",
1465
1465
  class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
1466
1466
  onClick: E[3] || (E[3] = //@ts-ignore
1467
- (...F) => n(_) && n(_)(...F)),
1467
+ (...z) => n(_) && n(_)(...z)),
1468
1468
  onKeydown: E[4] || (E[4] = //@ts-ignore
1469
- (...F) => n(_) && n(_)(...F))
1469
+ (...z) => n(_) && n(_)(...z))
1470
1470
  }, [
1471
1471
  Js,
1472
1472
  L(n(ue), {
@@ -1476,7 +1476,7 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1476
1476
  ], 32)) : S("", !0),
1477
1477
  n(k) ? (a(), h("div", {
1478
1478
  key: 1,
1479
- class: b([
1479
+ class: y([
1480
1480
  "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1481
1481
  e.showClear ? "pr-8" : "pr-2"
1482
1482
  ])
@@ -1492,11 +1492,11 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1492
1492
  n(d) && !n(m) ? (a(), h("p", {
1493
1493
  key: 0,
1494
1494
  id: n(d),
1495
- class: b(n(x))
1495
+ class: y(n(x))
1496
1496
  }, I(n(v)), 11, Ys)) : S("", !0)
1497
1497
  ], 2));
1498
1498
  }
1499
- }), Zs = /^https?:\/\//, ke = /^[\w-_.+]+@[\w-_.+]+$/, en = (e) => (e || "").match(ke) ? !0 : "Value should be a valid e-mail address", tn = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(ke)) || "Value should be one or multiple comma-delimited e-mail addresses", sn = (e) => (ie(e) && (e = e.trim()), e ? !0 : "Value is required"), nn = (e, l) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${l || e}'`, ln = (e) => (l) => {
1499
+ }), Zs = /^https?:\/\//, Ce = /^[\w-_.+]+@[\w-_.+]+$/, en = (e) => (e || "").match(Ce) ? !0 : "Value should be a valid e-mail address", tn = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Ce)) || "Value should be one or multiple comma-delimited e-mail addresses", sn = (e) => (ie(e) && (e = e.trim()), e ? !0 : "Value is required"), nn = (e, l) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${l || e}'`, ln = (e) => (l) => {
1500
1500
  const { minLength: t, maxLength: s } = e;
1501
1501
  return l = gt(l) ? "" : l, ie(l) ? !Q(t) && l.length < t ? `Value needs to be at least ${t} characters long` : !Q(s) && l.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
1502
1502
  }, an = (e) => (l) => {
@@ -1504,7 +1504,7 @@ const Fs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1504
1504
  return ie(l) ? t ? ie(t) ? l.includes(t) ? !0 : s : t.test(l) ? !0 : s : !0 : "Value should be a text string";
1505
1505
  }, Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1506
1506
  __proto__: null,
1507
- VALID_EMAIL: ke,
1507
+ VALID_EMAIL: Ce,
1508
1508
  VALID_HTTP_URL: Zs,
1509
1509
  isEmail: en,
1510
1510
  isOneOrMultipleEmails: tn,
@@ -1519,24 +1519,24 @@ function on(e) {
1519
1519
  elementToWatchForChanges: t,
1520
1520
  itemContainer: s,
1521
1521
  trackResize: o = !1,
1522
- trackMutations: f = !0
1523
- } = e || {}, p = O(0), r = () => {
1524
- const i = s.value;
1525
- if (l != null && l.value || !i)
1522
+ trackMutations: c = !0
1523
+ } = e || {}, f = O(0), p = () => {
1524
+ const r = s.value;
1525
+ if (l != null && l.value || !r)
1526
1526
  return;
1527
- const d = i.children;
1527
+ const d = r.children;
1528
1528
  let x = 0, v = 0, m;
1529
1529
  for (const k of d) {
1530
1530
  const _ = k.offsetTop;
1531
1531
  Q(m) ? (m = _, x += 1) : _ === m && (x += 1), v += 1;
1532
1532
  }
1533
- p.value = v - x;
1533
+ f.value = v - x;
1534
1534
  };
1535
- return o && bt(t, r), f && xt(t, r, {
1535
+ return o && yt(t, p), c && xt(t, p, {
1536
1536
  childList: !0,
1537
1537
  subtree: !0
1538
1538
  }), {
1539
- hiddenItemCount: p
1539
+ hiddenItemCount: f
1540
1540
  };
1541
1541
  }
1542
1542
  function rn(e) {
@@ -1545,7 +1545,7 @@ function rn(e) {
1545
1545
  if (s) {
1546
1546
  const { elementToWatchForChanges: d, itemContainer: x } = s;
1547
1547
  o = on({
1548
- skipCalculation: c(() => {
1548
+ skipCalculation: u(() => {
1549
1549
  var m;
1550
1550
  return !((m = l.multiple) != null && m.value);
1551
1551
  }),
@@ -1554,7 +1554,7 @@ function rn(e) {
1554
1554
  }).hiddenItemCount;
1555
1555
  } else
1556
1556
  o = O(0);
1557
- const f = c({
1557
+ const c = u({
1558
1558
  get: () => {
1559
1559
  var x, v;
1560
1560
  const d = (x = l.modelValue) == null ? void 0 : x.value;
@@ -1571,16 +1571,16 @@ function rn(e) {
1571
1571
  }
1572
1572
  t("update:modelValue", (m = l.multiple) != null && m.value ? d || [] : d);
1573
1573
  }
1574
- }), p = (d) => q(d);
1574
+ }), f = (d) => q(d);
1575
1575
  return {
1576
- selectedValue: f,
1576
+ selectedValue: c,
1577
1577
  hiddenSelectedItemCount: o,
1578
- isArrayValue: p,
1578
+ isArrayValue: f,
1579
1579
  isMultiItemArrayValue: (d) => q(d) && d.length > 1,
1580
- firstItem: (d) => p(d) ? d[0] : d
1580
+ firstItem: (d) => f(d) ? d[0] : d
1581
1581
  };
1582
1582
  }
1583
- const un = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), cn = /* @__PURE__ */ un(() => /* @__PURE__ */ u("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), dn = [
1583
+ const un = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), cn = /* @__PURE__ */ un(() => /* @__PURE__ */ i("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), dn = [
1584
1584
  cn
1585
1585
  ], fn = /* @__PURE__ */ M({
1586
1586
  __name: "Bar",
@@ -1589,21 +1589,21 @@ const un = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), cn = /* @__PURE__ *
1589
1589
  },
1590
1590
  setup(e) {
1591
1591
  return (l, t) => (a(), h("div", {
1592
- class: b([
1592
+ class: y([
1593
1593
  "relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
1594
1594
  e.loading ? "opacity-100" : "opacity-0"
1595
1595
  ])
1596
1596
  }, dn, 2));
1597
1597
  }
1598
1598
  });
1599
- const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { class: "flex items-center justify-between w-full" }, hn = { class: "block truncate grow text-left" }, mn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, gn = ["disabled"], vn = {
1599
+ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { class: "flex items-center justify-between w-full" }, hn = { class: "block truncate grow text-left" }, mn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, gn = ["disabled"], vn = {
1600
1600
  key: 0,
1601
1601
  class: "flex flex-col mx-1 mb-1"
1602
- }, yn = /* @__PURE__ */ u("span", { class: "sr-only label text-foreground" }, "Search", -1), bn = { class: "relative" }, xn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, kn = ["placeholder"], Cn = {
1602
+ }, bn = /* @__PURE__ */ i("span", { class: "sr-only label text-foreground" }, "Search", -1), yn = { class: "relative" }, xn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, kn = ["placeholder"], Cn = {
1603
1603
  key: 0,
1604
1604
  class: "px-1"
1605
- }, wn = { key: 1 }, $n = /* @__PURE__ */ u("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Sn = {
1606
- class: /* @__PURE__ */ b(["block truncate"])
1605
+ }, wn = { key: 1 }, $n = /* @__PURE__ */ i("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Sn = {
1606
+ class: /* @__PURE__ */ y(["block truncate"])
1607
1607
  }, In = ["id"], _n = /* @__PURE__ */ M({
1608
1608
  __name: "Base",
1609
1609
  props: {
@@ -1743,51 +1743,51 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1743
1743
  },
1744
1744
  emits: ["update:modelValue"],
1745
1745
  setup(e, { expose: l, emit: t }) {
1746
- const s = e, { value: o, errorMessage: f } = ye(s.name, s.rules, {
1746
+ const s = e, { value: o, errorMessage: c } = ye(s.name, s.rules, {
1747
1747
  validateOnMount: s.validateOnMount,
1748
1748
  validateOnValueUpdate: s.validateOnValueUpdate,
1749
1749
  initialValue: s.modelValue
1750
- }), p = O(null), r = O(""), i = O([]), d = O(!1), x = O(1), v = O(be()), m = c(() => n(s.label) || n(s.name)), k = c(() => {
1751
- const C = f.value;
1750
+ }), f = O(null), p = O(""), r = O([]), d = O(!1), x = O(1), v = O(xe()), m = u(() => n(s.label) || n(s.name)), k = u(() => {
1751
+ const C = c.value;
1752
1752
  return !C || !n(s.useLabelInErrors) ? C : C.replace("Value", m.value);
1753
- }), _ = c(() => k.value || n(s.help)), j = c(() => !!_.value), y = c(
1753
+ }), _ = u(() => k.value || n(s.help)), j = u(() => !!_.value), b = u(
1754
1754
  () => j.value ? `${n(s.name)}-${v.value}` : void 0
1755
- ), w = c(
1756
- () => f.value ? "text-danger" : "text-foreground-2"
1757
- ), $ = c(
1755
+ ), w = u(
1756
+ () => c.value ? "text-danger" : "text-foreground-2"
1757
+ ), $ = u(
1758
1758
  () => s.buttonStyle !== "simple" && s.clearable && !s.disabled
1759
- ), z = c(() => {
1759
+ ), F = u(() => {
1760
1760
  const C = ["relative flex group"];
1761
1761
  return s.buttonStyle !== "simple" && (C.push("hover:shadow rounded-md"), C.push("outline outline-2 outline-primary-muted")), s.fixedHeight && C.push("h-8"), C.join(" ");
1762
- }), g = c(() => {
1762
+ }), g = u(() => {
1763
1763
  const C = [];
1764
1764
  return s.buttonStyle !== "simple" && C.push(
1765
1765
  Z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1766
1766
  ), Z.value && C.push("cursor-not-allowed"), C.join(" ");
1767
- }), R = c(() => {
1767
+ }), R = u(() => {
1768
1768
  const C = [
1769
1769
  "relative z-[1]",
1770
1770
  "flex items-center justify-center text-center shrink-0",
1771
1771
  "rounded-r-md overflow-hidden transition-all",
1772
1772
  "text-foreground",
1773
- Ce.value ? `w-6 ${g.value}` : "w-0"
1773
+ we.value ? `w-6 ${g.value}` : "w-0"
1774
1774
  ];
1775
1775
  return Z.value || (C.push(
1776
1776
  "hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
1777
1777
  ), s.buttonStyle === "tinted" ? C.push("bg-outline-3") : C.push("bg-primary-muted")), C.join(" ");
1778
- }), E = c(() => {
1778
+ }), E = u(() => {
1779
1779
  const C = [
1780
1780
  "relative z-[2]",
1781
1781
  "normal rounded-md cursor-pointer transition truncate flex-1",
1782
1782
  "flex items-center",
1783
1783
  g.value
1784
1784
  ];
1785
- return s.buttonStyle !== "simple" && (C.push("py-2 px-3"), Z.value || (s.buttonStyle === "tinted" ? C.push("bg-foundation-page text-foreground") : C.push("bg-foundation text-foreground"))), $.value && Ce.value && C.push("rounded-r-none"), C.join(" ");
1786
- }), F = c(
1785
+ return s.buttonStyle !== "simple" && (C.push("py-2 px-3"), Z.value || (s.buttonStyle === "tinted" ? C.push("bg-foundation-page text-foreground") : C.push("bg-foundation text-foreground"))), $.value && we.value && C.push("rounded-r-none"), C.join(" ");
1786
+ }), z = u(
1787
1787
  () => !!(s.search && (s.filterPredicate || s.getSearchResults))
1788
- ), X = c(() => F.value && s.getSearchResults), Z = c(
1788
+ ), X = u(() => z.value && s.getSearchResults), Z = u(
1789
1789
  () => s.disabled || !s.items.length && !X.value
1790
- ), W = c({
1790
+ ), W = u({
1791
1791
  get: () => {
1792
1792
  const C = o.value;
1793
1793
  return s.multiple ? q(C) ? C : [] : q(C) ? void 0 : C;
@@ -1809,21 +1809,21 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1809
1809
  }
1810
1810
  t("update:modelValue", T), x.value += 1;
1811
1811
  }
1812
- }), Ce = c(() => s.multiple ? W.value.length !== 0 : !!W.value), qe = () => {
1812
+ }), we = u(() => s.multiple ? W.value.length !== 0 : !!W.value), qe = () => {
1813
1813
  s.multiple ? W.value = [] : W.value = void 0;
1814
- }, He = c(() => {
1815
- const C = r.value;
1816
- return !F.value || !(C != null && C.length) ? i.value : s.filterPredicate ? i.value.filter(
1814
+ }, He = u(() => {
1815
+ const C = p.value;
1816
+ return !z.value || !(C != null && C.length) ? r.value : s.filterPredicate ? r.value.filter(
1817
1817
  (T) => {
1818
1818
  var V;
1819
1819
  return ((V = s.filterPredicate) == null ? void 0 : V.call(s, T, C)) || !1;
1820
1820
  }
1821
- ) : i.value;
1822
- }), we = (C) => JSON.stringify(C), ce = (C) => s.by ? C[s.by] : C, de = async () => {
1821
+ ) : r.value;
1822
+ }), $e = (C) => JSON.stringify(C), ce = (C) => s.by ? C[s.by] : C, de = async () => {
1823
1823
  if (!(!X.value || !s.getSearchResults)) {
1824
1824
  d.value = !0;
1825
1825
  try {
1826
- i.value = await s.getSearchResults(r.value);
1826
+ r.value = await s.getSearchResults(p.value);
1827
1827
  } finally {
1828
1828
  d.value = !1;
1829
1829
  }
@@ -1838,10 +1838,10 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1838
1838
  return le(
1839
1839
  () => s.items,
1840
1840
  (C) => {
1841
- i.value = C.slice();
1841
+ r.value = C.slice();
1842
1842
  },
1843
1843
  { immediate: !0 }
1844
- ), le(r, () => {
1844
+ ), le(p, () => {
1845
1845
  X.value && Ge();
1846
1846
  }), Y(() => {
1847
1847
  X.value && !s.items.length && de();
@@ -1858,32 +1858,32 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1858
1858
  }, {
1859
1859
  default: B(() => [
1860
1860
  L(n($t), {
1861
- class: b(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
1861
+ class: y(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
1862
1862
  }, {
1863
1863
  default: B(() => [
1864
1864
  A(I(e.label), 1)
1865
1865
  ]),
1866
1866
  _: 1
1867
1867
  }, 8, ["class"]),
1868
- u("div", {
1869
- class: b(z.value)
1868
+ i("div", {
1869
+ class: y(F.value)
1870
1870
  }, [
1871
1871
  L(n(St), {
1872
- class: b(E.value)
1872
+ class: y(E.value)
1873
1873
  }, {
1874
1874
  default: B(({ open: V }) => [
1875
- u("div", pn, [
1876
- u("div", hn, [
1875
+ i("div", pn, [
1876
+ i("div", hn, [
1877
1877
  !W.value || n(q)(W.value) && !W.value.length ? D(C.$slots, "nothing-selected", { key: 0 }, () => [
1878
1878
  A(I(e.label), 1)
1879
1879
  ]) : D(C.$slots, "something-selected", {
1880
1880
  key: 1,
1881
1881
  value: W.value
1882
1882
  }, () => [
1883
- A(I(we(W.value)), 1)
1883
+ A(I($e(W.value)), 1)
1884
1884
  ])
1885
1885
  ]),
1886
- u("div", mn, [
1886
+ i("div", mn, [
1887
1887
  V ? (a(), P(n(De), {
1888
1888
  key: 0,
1889
1889
  class: "h-4 w-4 text-foreground",
@@ -1900,13 +1900,13 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1900
1900
  }, 8, ["class"]),
1901
1901
  $.value ? ne((a(), h("button", {
1902
1902
  key: 0,
1903
- class: b(R.value),
1903
+ class: y(R.value),
1904
1904
  disabled: e.disabled,
1905
1905
  onClick: T[0] || (T[0] = (V) => qe())
1906
1906
  }, [
1907
1907
  L(n(tt), { class: "w-3 h-3" })
1908
1908
  ], 10, gn)), [
1909
- [n(ze), "Clear"]
1909
+ [n(Fe), "Clear"]
1910
1910
  ]) : S("", !0),
1911
1911
  L(ge, {
1912
1912
  "leave-active-class": "transition ease-in duration-100",
@@ -1919,36 +1919,36 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1919
1919
  class: "absolute top-[100%] z-10 mt-1 w-full rounded-md bg-foundation-2 py-1 label label--light outline outline-2 outline-primary-muted focus:outline-none shadow",
1920
1920
  onFocus: T[3] || (T[3] = (V) => {
1921
1921
  var K;
1922
- return (K = p.value) == null ? void 0 : K.focus();
1922
+ return (K = f.value) == null ? void 0 : K.focus();
1923
1923
  })
1924
1924
  }, {
1925
1925
  default: B(() => [
1926
- F.value ? (a(), h("label", vn, [
1927
- yn,
1928
- u("div", bn, [
1929
- u("div", xn, [
1926
+ z.value ? (a(), h("label", vn, [
1927
+ bn,
1928
+ i("div", yn, [
1929
+ i("div", xn, [
1930
1930
  L(n(st), { class: "h-5 w-5 text-foreground" })
1931
1931
  ]),
1932
- ne(u("input", {
1932
+ ne(i("input", {
1933
1933
  ref_key: "searchInput",
1934
- ref: p,
1935
- "onUpdate:modelValue": T[1] || (T[1] = (V) => r.value = V),
1934
+ ref: f,
1935
+ "onUpdate:modelValue": T[1] || (T[1] = (V) => p.value = V),
1936
1936
  type: "text",
1937
1937
  class: "pl-9 w-full border-0 bg-foundation-page rounded placeholder:font-normal normal placeholder:text-foreground-2 focus:outline-none focus:ring-1 focus:border-outline-1 focus:ring-outline-1",
1938
1938
  placeholder: e.searchPlaceholder,
1939
- onKeydown: T[2] || (T[2] = Oe(() => {
1939
+ onKeydown: T[2] || (T[2] = be(() => {
1940
1940
  }, ["stop"]))
1941
1941
  }, null, 40, kn), [
1942
- [je, r.value]
1942
+ [Ve, p.value]
1943
1943
  ])
1944
1944
  ])
1945
1945
  ])) : S("", !0),
1946
- u("div", {
1947
- class: b(["overflow-auto simple-scrollbar", [F.value ? "max-h-52" : "max-h-60"]])
1946
+ i("div", {
1947
+ class: y(["overflow-auto simple-scrollbar", [z.value ? "max-h-52" : "max-h-60"]])
1948
1948
  }, [
1949
1949
  X.value && d.value ? (a(), h("div", Cn, [
1950
1950
  L(We, { loading: !0 })
1951
- ])) : X.value && !i.value.length ? (a(), h("div", wn, [
1951
+ ])) : X.value && !r.value.length ? (a(), h("div", wn, [
1952
1952
  D(C.$slots, "nothing-found", {}, () => [
1953
1953
  $n
1954
1954
  ])
@@ -1960,30 +1960,30 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1960
1960
  value: V,
1961
1961
  disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, V)) || !1
1962
1962
  }, {
1963
- default: B(({ active: N, selected: $e }) => {
1964
- var Se, Ie;
1963
+ default: B(({ active: N, selected: Se }) => {
1964
+ var Ie, _e;
1965
1965
  return [
1966
- u("li", {
1967
- class: b(
1966
+ i("li", {
1967
+ class: y(
1968
1968
  Ke({
1969
1969
  active: N,
1970
- disabled: ((Se = e.disabledItemPredicate) == null ? void 0 : Se.call(e, V)) || !1
1970
+ disabled: ((Ie = e.disabledItemPredicate) == null ? void 0 : Ie.call(e, V)) || !1
1971
1971
  })
1972
1972
  )
1973
1973
  }, [
1974
- u("span", Sn, [
1974
+ i("span", Sn, [
1975
1975
  D(C.$slots, "option", {
1976
1976
  item: V,
1977
1977
  active: N,
1978
- selected: $e,
1979
- disabled: ((Ie = e.disabledItemPredicate) == null ? void 0 : Ie.call(e, V)) || !1
1978
+ selected: Se,
1979
+ disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e, V)) || !1
1980
1980
  }, () => [
1981
- A(I(we(V)), 1)
1981
+ A(I($e(V)), 1)
1982
1982
  ])
1983
1983
  ]),
1984
- !e.hideCheckmarks && $e ? (a(), h("span", {
1984
+ !e.hideCheckmarks && Se ? (a(), h("span", {
1985
1985
  key: 0,
1986
- class: b([
1986
+ class: y([
1987
1987
  N ? "text-primary" : "text-foreground",
1988
1988
  "absolute inset-y-0 right-0 flex items-center pr-4"
1989
1989
  ])
@@ -2010,10 +2010,10 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2010
2010
  ]),
2011
2011
  _: 3
2012
2012
  }, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
2013
- y.value ? (a(), h("p", {
2013
+ b.value ? (a(), h("p", {
2014
2014
  key: 0,
2015
- id: y.value,
2016
- class: b(["mt-2 text-sm", w.value])
2015
+ id: b.value,
2016
+ class: y(["mt-2 text-sm", w.value])
2017
2017
  }, I(_.value), 11, In)) : S("", !0)
2018
2018
  ]));
2019
2019
  }
@@ -2100,14 +2100,14 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2100
2100
  },
2101
2101
  emits: ["update:modelValue"],
2102
2102
  setup(e, { emit: l }) {
2103
- const t = e, s = O(null), o = O(null), { selectedValue: f, hiddenSelectedItemCount: p, isMultiItemArrayValue: r, firstItem: i } = rn({
2103
+ const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: f, isMultiItemArrayValue: p, firstItem: r } = rn({
2104
2104
  props: ae(t),
2105
2105
  emit: l,
2106
2106
  dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
2107
2107
  }), d = (x, v) => x.name.toLocaleLowerCase().includes(v.toLocaleLowerCase());
2108
2108
  return (x, v) => (a(), P(_n, {
2109
- modelValue: n(f),
2110
- "onUpdate:modelValue": v[0] || (v[0] = (m) => ve(f) ? f.value = m : null),
2109
+ modelValue: n(c),
2110
+ "onUpdate:modelValue": v[0] || (v[0] = (m) => ve(c) ? c.value = m : null),
2111
2111
  multiple: e.multiple,
2112
2112
  items: e.items ?? n(vt),
2113
2113
  search: e.search,
@@ -2126,13 +2126,13 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2126
2126
  ], 64))
2127
2127
  ]),
2128
2128
  "something-selected": B(({ value: m }) => [
2129
- n(r)(m) ? (a(), h("div", {
2129
+ n(p)(m) ? (a(), h("div", {
2130
2130
  key: 0,
2131
2131
  ref_key: "elementToWatchForChanges",
2132
2132
  ref: s,
2133
2133
  class: "flex items-center space-x-0.5 h-5"
2134
2134
  }, [
2135
- u("div", {
2135
+ i("div", {
2136
2136
  ref_key: "itemContainer",
2137
2137
  ref: o,
2138
2138
  class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
@@ -2142,22 +2142,22 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2142
2142
  "source-app": k
2143
2143
  }, null, 8, ["source-app"]))), 128))
2144
2144
  ], 512),
2145
- n(p) > 0 ? (a(), h("div", Ln, " +" + I(n(p)), 1)) : S("", !0)
2145
+ n(f) > 0 ? (a(), h("div", Ln, " +" + I(n(f)), 1)) : S("", !0)
2146
2146
  ], 512)) : (a(), h("div", Pn, [
2147
- u("div", {
2147
+ i("div", {
2148
2148
  class: "h-2 w-2 rounded-full mr-2",
2149
- style: fe({ backgroundColor: n(i)(m).bgColor })
2149
+ style: fe({ backgroundColor: n(r)(m).bgColor })
2150
2150
  }, null, 4),
2151
- u("span", jn, I(n(i)(m).name), 1)
2151
+ i("span", jn, I(n(r)(m).name), 1)
2152
2152
  ]))
2153
2153
  ]),
2154
2154
  option: B(({ item: m }) => [
2155
- u("div", Vn, [
2156
- u("div", {
2155
+ i("div", Vn, [
2156
+ i("div", {
2157
2157
  class: "h-2 w-2 rounded-full mr-2",
2158
2158
  style: fe({ backgroundColor: m.bgColor })
2159
2159
  }, null, 4),
2160
- u("span", On, I(m.name), 1)
2160
+ i("span", On, I(m.name), 1)
2161
2161
  ])
2162
2162
  ]),
2163
2163
  _: 1
@@ -2165,7 +2165,7 @@ const We = /* @__PURE__ */ Fe(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2165
2165
  }
2166
2166
  });
2167
2167
  var se = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(se || {});
2168
- const he = yt(), Mn = {
2168
+ const he = bt(), Mn = {
2169
2169
  [
2170
2170
  "cmd-or-ctrl"
2171
2171
  /* CtrlOrCmd */
@@ -2184,9 +2184,9 @@ function Ll(e, ...l) {
2184
2184
  kt(
2185
2185
  l[0],
2186
2186
  (t) => {
2187
- const s = t.getModifierState("Alt"), o = he === pe.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), f = t.getModifierState("Shift");
2188
- for (const p of e)
2189
- switch (p) {
2187
+ const s = t.getModifierState("Alt"), o = he === pe.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), c = t.getModifierState("Shift");
2188
+ for (const f of e)
2189
+ switch (f) {
2190
2190
  case se.CtrlOrCmd:
2191
2191
  if (!o)
2192
2192
  return;
@@ -2196,7 +2196,7 @@ function Ll(e, ...l) {
2196
2196
  return;
2197
2197
  break;
2198
2198
  case se.Shift:
2199
- if (!f)
2199
+ if (!c)
2200
2200
  return;
2201
2201
  break;
2202
2202
  }
@@ -2206,16 +2206,16 @@ function Ll(e, ...l) {
2206
2206
  );
2207
2207
  }
2208
2208
  function Pl(e) {
2209
- const l = (e == null ? void 0 : e.model) || O(), t = c({
2209
+ const l = (e == null ? void 0 : e.model) || O(), t = u({
2210
2210
  get: () => !!l.value,
2211
2211
  set: (s) => l.value = s ? !0 : void 0
2212
2212
  });
2213
2213
  return { model: l, isChecked: t };
2214
2214
  }
2215
- const An = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Dn = { class: "fixed inset-0 z-10 overflow-y-auto" }, Tn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Rn = {
2215
+ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Dn = { class: "fixed inset-0 z-10 overflow-y-auto" }, Tn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Rn = {
2216
2216
  key: 0,
2217
2217
  class: "flex items-center justify-center shadow p-4 relative z-10 bg-foundation rounded-t-lg"
2218
- }, zn = { class: "text-2xl font-bold" }, Fn = { class: "p-4 sm:p-6" }, En = {
2218
+ }, Fn = { class: "text-2xl font-bold" }, zn = { class: "p-4 sm:p-6" }, En = {
2219
2219
  key: 2,
2220
2220
  class: "flex p-4 sm:px-6 sm:py-5 border-t gap-2 border-outline-3"
2221
2221
  }, jl = /* @__PURE__ */ M({
@@ -2226,14 +2226,15 @@ const An = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2226
2226
  hideCloser: { type: Boolean },
2227
2227
  preventCloseOnClickOutside: { type: Boolean },
2228
2228
  title: null,
2229
- buttons: null
2229
+ buttons: null,
2230
+ onSubmit: { type: Function }
2230
2231
  },
2231
2232
  emits: ["update:open", "fully-closed"],
2232
2233
  setup(e, { emit: l }) {
2233
- const t = e, s = c({
2234
+ const t = e, s = u(() => !!t.onSubmit), o = u({
2234
2235
  get: () => t.open,
2235
2236
  set: (r) => l("update:open", r)
2236
- }), o = c(() => {
2237
+ }), c = u(() => {
2237
2238
  switch (t.maxWidth) {
2238
2239
  case "sm":
2239
2240
  return 0;
@@ -2246,15 +2247,15 @@ const An = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2246
2247
  default:
2247
2248
  return 1e4;
2248
2249
  }
2249
- }), f = c(() => {
2250
+ }), f = u(() => {
2250
2251
  const r = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
2251
- return t.title || r.push("px-4 pt-4 pb-4", "sm:p-6"), o.value >= 1 && r.push("md:max-w-2xl"), o.value >= 2 && r.push("lg:max-w-4xl"), o.value >= 3 && r.push("xl:max-w-6xl"), o.value >= 4 && r.push("2xl:max-w-7xl"), r.join(" ");
2252
+ return t.title || r.push("px-4 pt-4 pb-4", "sm:p-6"), c.value >= 1 && r.push("md:max-w-2xl"), c.value >= 2 && r.push("lg:max-w-4xl"), c.value >= 3 && r.push("xl:max-w-6xl"), c.value >= 4 && r.push("2xl:max-w-7xl"), r.join(" ");
2252
2253
  }), p = () => {
2253
- t.preventCloseOnClickOutside || (s.value = !1);
2254
+ t.preventCloseOnClickOutside || (o.value = !1);
2254
2255
  };
2255
- return (r, i) => (a(), P(n(Bt), {
2256
+ return (r, d) => (a(), P(n(Bt), {
2256
2257
  as: "template",
2257
- show: s.value
2258
+ show: o.value
2258
2259
  }, {
2259
2260
  default: B(() => [
2260
2261
  L(n(Lt), {
@@ -2263,7 +2264,7 @@ const An = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2263
2264
  onClose: p
2264
2265
  }, {
2265
2266
  default: B(() => [
2266
- L(n(Le), {
2267
+ L(n(Pe), {
2267
2268
  as: "template",
2268
2269
  enter: "ease-out duration-300",
2269
2270
  "enter-from": "opacity-0",
@@ -2277,9 +2278,9 @@ const An = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2277
2278
  ]),
2278
2279
  _: 1
2279
2280
  }),
2280
- u("div", Dn, [
2281
- u("div", Tn, [
2282
- L(n(Le), {
2281
+ i("div", Dn, [
2282
+ i("div", Tn, [
2283
+ L(n(Pe), {
2283
2284
  as: "template",
2284
2285
  enter: "ease-out duration-300",
2285
2286
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -2287,44 +2288,46 @@ const An = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2287
2288
  leave: "ease-in duration-200",
2288
2289
  "leave-from": "opacity-100 translate-y-0 sm:scale-100",
2289
2290
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
2290
- onAfterLeave: i[1] || (i[1] = (d) => r.$emit("fully-closed"))
2291
+ onAfterLeave: d[1] || (d[1] = (x) => r.$emit("fully-closed"))
2291
2292
  }, {
2292
2293
  default: B(() => [
2293
2294
  L(n(Pt), {
2294
- class: b([
2295
+ class: y([
2295
2296
  "transform rounded-lg bg-foundation text-left shadow-xl transition-all",
2296
2297
  f.value
2297
- ])
2298
+ ]),
2299
+ as: s.value ? "form" : "div",
2300
+ onSubmit: be(e.onSubmit, ["prevent"])
2298
2301
  }, {
2299
2302
  default: B(() => [
2300
2303
  e.title ? (a(), h("div", Rn, [
2301
- u("h4", zn, I(e.title), 1)
2304
+ i("h4", Fn, I(e.title), 1)
2302
2305
  ])) : S("", !0),
2303
2306
  e.hideCloser ? S("", !0) : (a(), h("button", {
2304
2307
  key: 1,
2305
2308
  class: "absolute z-20 top-5 right-4 text-foreground",
2306
- onClick: i[0] || (i[0] = (d) => s.value = !1)
2309
+ onClick: d[0] || (d[0] = (x) => o.value = !1)
2307
2310
  }, [
2308
2311
  L(n(ct), { class: "h-6 w-6" })
2309
2312
  ])),
2310
- u("div", Fn, [
2313
+ i("div", zn, [
2311
2314
  D(r.$slots, "default", {}, () => [
2312
2315
  A("Put your content here!")
2313
2316
  ])
2314
2317
  ]),
2315
2318
  e.buttons ? (a(), h("div", En, [
2316
- (a(!0), h(U, null, G(e.buttons, (d, x) => (a(), P(n(re), oe({ key: x }, d.props, {
2317
- onClick: d.onClick
2319
+ (a(!0), h(U, null, G(e.buttons, (x, v) => (a(), P(n(re), oe({ key: v }, x.props, {
2320
+ onClick: x.onClick
2318
2321
  }), {
2319
2322
  default: B(() => [
2320
- A(I(d.text), 1)
2323
+ A(I(x.text), 1)
2321
2324
  ]),
2322
2325
  _: 2
2323
2326
  }, 1040, ["onClick"]))), 128))
2324
2327
  ])) : S("", !0)
2325
2328
  ]),
2326
2329
  _: 3
2327
- }, 8, ["class"])
2330
+ }, 8, ["class", "as", "onSubmit"])
2328
2331
  ]),
2329
2332
  _: 3
2330
2333
  })
@@ -2345,7 +2348,7 @@ const An = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2345
2348
  color: { default: "default" }
2346
2349
  },
2347
2350
  setup(e) {
2348
- const l = e, t = c(() => {
2351
+ const l = e, t = u(() => {
2349
2352
  const o = [
2350
2353
  "pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
2351
2354
  "ring-1"
@@ -2362,7 +2365,7 @@ const An = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2362
2365
  break;
2363
2366
  }
2364
2367
  return o.join(" ");
2365
- }), s = c(() => {
2368
+ }), s = u(() => {
2366
2369
  const o = ["mt-4 px-3 py-1 border-x "];
2367
2370
  switch (l.color) {
2368
2371
  case "danger":
@@ -2375,31 +2378,31 @@ const An = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2375
2378
  }
2376
2379
  return o.join(" ");
2377
2380
  });
2378
- return (o, f) => (a(), h("div", null, [
2381
+ return (o, c) => (a(), h("div", null, [
2379
2382
  L(n(jt), null, {
2380
- default: B(({ open: p }) => [
2383
+ default: B(({ open: f }) => [
2381
2384
  L(n(Vt), {
2382
- class: b(t.value)
2385
+ class: y(t.value)
2383
2386
  }, {
2384
2387
  default: B(() => [
2385
- u("div", Un, [
2388
+ i("div", Un, [
2386
2389
  e.icon ? (a(), P(H(e.icon), {
2387
2390
  key: 0,
2388
2391
  class: "h-4 w-4"
2389
2392
  })) : S("", !0),
2390
- u("span", null, I(e.title), 1)
2393
+ i("span", null, I(e.title), 1)
2391
2394
  ]),
2392
2395
  L(n(De), {
2393
- class: b([p ? "" : "rotate-180 transform", "h-5 w-5"])
2396
+ class: y([f ? "" : "rotate-180 transform", "h-5 w-5"])
2394
2397
  }, null, 8, ["class"])
2395
2398
  ]),
2396
2399
  _: 2
2397
2400
  }, 1032, ["class"]),
2398
2401
  L(n(Ot), {
2399
- class: b(s.value)
2402
+ class: y(s.value)
2400
2403
  }, {
2401
2404
  default: B(() => [
2402
- u("div", Wn, [
2405
+ i("div", Wn, [
2403
2406
  D(o.$slots, "default", {}, () => [
2404
2407
  A("Panel contents")
2405
2408
  ])
@@ -2421,19 +2424,19 @@ const Ol = /* @__PURE__ */ M({
2421
2424
  },
2422
2425
  emits: ["click", "update:modelValue"],
2423
2426
  setup(e, { emit: l }) {
2424
- const t = e, s = c({
2427
+ const t = e, s = u({
2425
2428
  get: () => t.modelValue || J.Grid,
2426
- set: (p) => l("update:modelValue", p)
2427
- }), o = c(
2429
+ set: (f) => l("update:modelValue", f)
2430
+ }), o = u(
2428
2431
  () => s.value === J.Grid ? lt : at
2429
- ), f = (p) => {
2430
- l("click", p);
2431
- const r = s.value === J.Grid ? J.List : J.Grid;
2432
- s.value = r;
2432
+ ), c = (f) => {
2433
+ l("click", f);
2434
+ const p = s.value === J.Grid ? J.List : J.Grid;
2435
+ s.value = p;
2433
2436
  };
2434
- return (p, r) => (a(), h("button", {
2437
+ return (f, p) => (a(), h("button", {
2435
2438
  class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
2436
- onClick: f
2439
+ onClick: c
2437
2440
  }, [
2438
2441
  (a(), P(H(o.value), { class: "h-6 w-6" }))
2439
2442
  ]));
@@ -2441,7 +2444,7 @@ const Ol = /* @__PURE__ */ M({
2441
2444
  });
2442
2445
  var qn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(qn || {}), me = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(me || {});
2443
2446
  function Hn(e, l) {
2444
- if (!xe)
2447
+ if (!ke)
2445
2448
  return;
2446
2449
  const {
2447
2450
  wait: t = 100,
@@ -2461,29 +2464,29 @@ function Gn(e) {
2461
2464
  const { el: l, defaultDirection: t } = e, s = O(
2462
2465
  Q(t) ? 1 : t
2463
2466
  /* Right */
2464
- ), o = c(() => {
2465
- const p = n(e.stopUpdatesBelowWidth);
2466
- if (!Q(p))
2467
- return p;
2468
- const r = n(l);
2469
- return r != null && r.offsetWidth ? r.offsetWidth * 2 : void 0;
2470
- }), f = () => {
2471
- if (!xe)
2472
- return;
2467
+ ), o = u(() => {
2468
+ const f = n(e.stopUpdatesBelowWidth);
2469
+ if (!Q(f))
2470
+ return f;
2473
2471
  const p = n(l);
2474
- if (!p)
2472
+ return p != null && p.offsetWidth ? p.offsetWidth * 2 : void 0;
2473
+ }), c = () => {
2474
+ if (!ke)
2475
+ return;
2476
+ const f = n(l);
2477
+ if (!f)
2475
2478
  return;
2476
- const r = p.getBoundingClientRect(), i = r.x + r.width > window.innerWidth, d = r.x < 0;
2477
- i && d || !Q(o.value) && window.innerWidth < o.value || (i ? s.value = 0 : d && (s.value = 1));
2479
+ const p = f.getBoundingClientRect(), r = p.x + p.width > window.innerWidth, d = p.x < 0;
2480
+ r && d || !Q(o.value) && window.innerWidth < o.value || (r ? s.value = 0 : d && (s.value = 1));
2478
2481
  };
2479
- return Hn(() => f()), le(
2482
+ return Hn(() => c()), le(
2480
2483
  () => n(l),
2481
- (p) => {
2482
- p && f();
2484
+ (f) => {
2485
+ f && c();
2483
2486
  }
2484
2487
  ), {
2485
- direction: c(() => s.value),
2486
- recalculateDirection: f
2488
+ direction: u(() => s.value),
2489
+ recalculateDirection: c
2487
2490
  };
2488
2491
  }
2489
2492
  const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
@@ -2495,46 +2498,46 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2495
2498
  emits: ["update:open", "chosen"],
2496
2499
  setup(e, { emit: l }) {
2497
2500
  const t = e, s = O(null), { direction: o } = Gn({
2498
- el: c(() => {
2501
+ el: u(() => {
2499
2502
  var m;
2500
2503
  return ((m = s.value) == null ? void 0 : m.el) || null;
2501
2504
  }),
2502
2505
  defaultDirection: me.Left,
2503
2506
  stopUpdatesBelowWidth: 300
2504
- }), f = O(null), p = O(!1), r = c({
2507
+ }), c = O(null), f = O(!1), p = u({
2505
2508
  get: () => t.open || !1,
2506
2509
  set: (m) => l("update:open", m)
2507
- }), i = (m) => {
2510
+ }), r = (m) => {
2508
2511
  const { active: k, disabled: _ } = m, j = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2509
2512
  return k ? j.push("bg-primary text-foreground-on-primary") : _ ? j.push("text-foreground-disabled") : j.push("text-foreground"), j.join(" ");
2510
2513
  }, d = (m, k) => {
2511
2514
  l("chosen", { item: m, event: k });
2512
2515
  }, x = () => {
2513
2516
  var m;
2514
- return (m = f.value) == null ? void 0 : m.el.click();
2517
+ return (m = c.value) == null ? void 0 : m.el.click();
2515
2518
  }, v = (m) => {
2516
2519
  const k = !!m;
2517
- return p.value = k, k;
2520
+ return f.value = k, k;
2518
2521
  };
2519
- return le(p, (m, k) => {
2520
- m !== k && (r.value = m);
2521
- }), le(r, (m) => {
2522
- (m && !p.value || !m && p.value) && x();
2522
+ return le(f, (m, k) => {
2523
+ m !== k && (p.value = m);
2524
+ }), le(p, (m) => {
2525
+ (m && !f.value || !m && f.value) && x();
2523
2526
  }), (m, k) => (a(), P(n(Mt), {
2524
2527
  as: "div",
2525
2528
  class: "relative inline-block"
2526
2529
  }, {
2527
2530
  default: B(({ open: _ }) => [
2528
- u("div", null, [
2531
+ i("div", null, [
2529
2532
  L(n(At), {
2530
2533
  ref_key: "menuButton",
2531
- ref: f,
2534
+ ref: c,
2532
2535
  class: "hidden",
2533
- onClick: k[0] || (k[0] = Oe(() => {
2536
+ onClick: k[0] || (k[0] = be(() => {
2534
2537
  }, ["stop", "prevent"]))
2535
2538
  }, null, 512),
2536
- u("div", {
2537
- class: b(_ ? "pointer-events-none" : "")
2539
+ i("div", {
2540
+ class: y(_ ? "pointer-events-none" : "")
2538
2541
  }, [
2539
2542
  D(m.$slots, "default", {
2540
2543
  toggle: x,
@@ -2554,25 +2557,25 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2554
2557
  L(n(Dt), {
2555
2558
  ref_key: "menuItems",
2556
2559
  ref: s,
2557
- class: b([
2560
+ class: y([
2558
2561
  "absolute mt-2 w-56 origin-top-right divide-y divide-outline-3 rounded-md bg-foundation shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none z-40",
2559
2562
  n(o) === n(me).Left ? "right-0" : ""
2560
2563
  ])
2561
2564
  }, {
2562
2565
  default: B(() => [
2563
- (a(!0), h(U, null, G(e.items, (j, y) => (a(), h("div", {
2564
- key: y,
2566
+ (a(!0), h(U, null, G(e.items, (j, b) => (a(), h("div", {
2567
+ key: b,
2565
2568
  class: "px-1 py-1"
2566
2569
  }, [
2567
2570
  (a(!0), h(U, null, G(j, (w) => (a(), P(n(Tt), {
2568
2571
  key: w.id,
2569
2572
  disabled: w.disabled
2570
2573
  }, {
2571
- default: B(({ active: $, disabled: z }) => [
2574
+ default: B(({ active: $, disabled: F }) => [
2572
2575
  ne((a(), h("span", null, [
2573
- u("button", {
2574
- class: b(i({ active: $, disabled: z })),
2575
- disabled: z,
2576
+ i("button", {
2577
+ class: y(r({ active: $, disabled: F })),
2578
+ disabled: F,
2576
2579
  onClick: (g) => d(w, g)
2577
2580
  }, [
2578
2581
  D(m.$slots, "item", { item: w }, () => [
@@ -2580,7 +2583,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2580
2583
  ])
2581
2584
  ], 10, Kn)
2582
2585
  ])), [
2583
- [n(ze), w.disabled && w.disabledTooltip]
2586
+ [n(Fe), w.disabled && w.disabledTooltip]
2584
2587
  ])
2585
2588
  ]),
2586
2589
  _: 2
@@ -2602,27 +2605,27 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2602
2605
  items: null
2603
2606
  },
2604
2607
  setup(e) {
2605
- const l = e, t = O(null), s = c(() => t.value && l.items.find((f) => f.id === t.value) || l.items[0]), o = (f) => {
2606
- t.value = f.id;
2608
+ const l = e, t = O(null), s = u(() => t.value && l.items.find((c) => c.id === t.value) || l.items[0]), o = (c) => {
2609
+ t.value = c.id;
2607
2610
  };
2608
- return (f, p) => (a(), h("div", Xn, [
2609
- u("div", Nn, [
2610
- (a(!0), h(U, null, G(e.items, (r) => (a(), P(re, {
2611
- key: r.id,
2611
+ return (c, f) => (a(), h("div", Xn, [
2612
+ i("div", Nn, [
2613
+ (a(!0), h(U, null, G(e.items, (p) => (a(), P(re, {
2614
+ key: p.id,
2612
2615
  link: "",
2613
- color: s.value.id === r.id ? "default" : "secondary",
2614
- onClick: (i) => o(r)
2616
+ color: s.value.id === p.id ? "default" : "secondary",
2617
+ onClick: (r) => o(p)
2615
2618
  }, {
2616
2619
  default: B(() => [
2617
- A(I(r.title), 1)
2620
+ A(I(p.title), 1)
2618
2621
  ]),
2619
2622
  _: 2
2620
2623
  }, 1032, ["color", "onClick"]))), 128))
2621
2624
  ]),
2622
- D(f.$slots, "default", { activeItem: s.value })
2625
+ D(c.$slots, "default", { activeItem: s.value })
2623
2626
  ]));
2624
2627
  }
2625
- }), Jn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Qn = { class: "inline-flex items-center space-x-1" }, Yn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Zn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, el = { class: "inline-flex items-center space-x-1" }, tl = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Tl = /* @__PURE__ */ M({
2628
+ }), Jn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Qn = { class: "inline-flex items-center space-x-1" }, Yn = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Zn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, el = { class: "inline-flex items-center space-x-1" }, tl = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Tl = /* @__PURE__ */ M({
2626
2629
  __name: "InfiniteLoading",
2627
2630
  props: {
2628
2631
  settings: null,
@@ -2631,7 +2634,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2631
2634
  emits: ["infinite"],
2632
2635
  setup(e) {
2633
2636
  const l = O(null), t = O(!1);
2634
- return xe && Y(() => {
2637
+ return ke && Y(() => {
2635
2638
  const s = setInterval(() => {
2636
2639
  var o;
2637
2640
  (o = l.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
@@ -2641,7 +2644,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2641
2644
  ref: l
2642
2645
  }, [
2643
2646
  t.value ? (a(), P(n(Rt), oe({ key: 0 }, s.$props.settings || {}, {
2644
- onInfinite: o[0] || (o[0] = (f) => s.$emit("infinite", f))
2647
+ onInfinite: o[0] || (o[0] = (c) => s.$emit("infinite", c))
2645
2648
  }), {
2646
2649
  spinner: B(() => [
2647
2650
  L(We, {
@@ -2650,22 +2653,22 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2650
2653
  })
2651
2654
  ]),
2652
2655
  complete: B(() => [
2653
- u("div", Jn, [
2654
- u("div", Qn, [
2656
+ i("div", Jn, [
2657
+ i("div", Qn, [
2655
2658
  L(n(dt), { class: "w-5 h-5 text-success" }),
2656
2659
  Yn
2657
2660
  ])
2658
2661
  ])
2659
2662
  ]),
2660
- error: B(({ retry: f }) => [
2661
- u("div", Zn, [
2662
- u("div", el, [
2663
+ error: B(({ retry: c }) => [
2664
+ i("div", Zn, [
2665
+ i("div", el, [
2663
2666
  L(n(ft), { class: "w-5 h-5 text-danger" }),
2664
2667
  tl
2665
2668
  ]),
2666
2669
  e.allowRetry ? (a(), P(re, {
2667
2670
  key: 0,
2668
- onClick: f
2671
+ onClick: c
2669
2672
  }, {
2670
2673
  default: B(() => [
2671
2674
  A("Retry")
@@ -2716,40 +2719,40 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2716
2719
  },
2717
2720
  emits: ["submit"],
2718
2721
  setup(e, { emit: l }) {
2719
- const t = e, s = c(
2722
+ const t = e, s = u(
2720
2723
  () => t.customPadding ? "" : "px-4 py-4 sm:px-6"
2721
- ), o = c(
2724
+ ), o = u(
2722
2725
  () => t.customPadding ? "" : "px-4 py-4 sm:p-6"
2723
- ), f = c(() => {
2724
- const p = ["rounded-lg"];
2725
- return t.noShadow || p.push("shadow"), t.ring && p.push("ring-outline-2 hover:ring-2"), p.join(" ");
2726
+ ), c = u(() => {
2727
+ const f = ["rounded-lg"];
2728
+ return t.noShadow || f.push("shadow"), t.ring && f.push("ring-outline-2 hover:ring-2"), f.join(" ");
2726
2729
  });
2727
- return (p, r) => (a(), h("div", sl, [
2730
+ return (f, p) => (a(), h("div", sl, [
2728
2731
  e.fancyGlow ? (a(), h("div", nl)) : S("", !0),
2729
2732
  (a(), P(H(e.form ? "form" : "div"), {
2730
- class: b([
2733
+ class: y([
2731
2734
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
2732
- f.value
2735
+ c.value
2733
2736
  ]),
2734
- onSubmit: r[0] || (r[0] = (i) => l("submit", i))
2737
+ onSubmit: p[0] || (p[0] = (r) => l("submit", r))
2735
2738
  }, {
2736
2739
  default: B(() => [
2737
- p.$slots.header ? (a(), h("div", {
2740
+ f.$slots.header ? (a(), h("div", {
2738
2741
  key: 0,
2739
- class: b(s.value)
2742
+ class: y(s.value)
2740
2743
  }, [
2741
- D(p.$slots, "header")
2744
+ D(f.$slots, "header")
2742
2745
  ], 2)) : S("", !0),
2743
- u("div", {
2744
- class: b(["grow", o.value])
2746
+ i("div", {
2747
+ class: y(["grow", o.value])
2745
2748
  }, [
2746
- D(p.$slots, "default")
2749
+ D(f.$slots, "default")
2747
2750
  ], 2),
2748
- p.$slots.footer ? (a(), h("div", {
2751
+ f.$slots.footer ? (a(), h("div", {
2749
2752
  key: 1,
2750
- class: b(s.value)
2753
+ class: y(s.value)
2751
2754
  }, [
2752
- D(p.$slots, "footer")
2755
+ D(f.$slots, "footer")
2753
2756
  ], 2)) : S("", !0)
2754
2757
  ]),
2755
2758
  _: 3
@@ -2759,7 +2762,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2759
2762
  }), ll = { class: "flex-shrink-0" }, al = {
2760
2763
  key: 0,
2761
2764
  class: "mt-2 text-sm"
2762
- }, ol = /* @__PURE__ */ u("span", { class: "sr-only" }, "Dismiss", -1), zl = /* @__PURE__ */ M({
2765
+ }, ol = /* @__PURE__ */ i("span", { class: "sr-only" }, "Dismiss", -1), Fl = /* @__PURE__ */ M({
2763
2766
  __name: "Alert",
2764
2767
  props: {
2765
2768
  color: { default: "success" },
@@ -2768,109 +2771,109 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2768
2771
  },
2769
2772
  emits: ["dismiss"],
2770
2773
  setup(e) {
2771
- const l = e, t = Ve(), s = c(() => !!t.description), o = c(() => {
2772
- const i = [];
2773
- switch (i.push(s.value ? "p-4" : "p-2"), l.color) {
2774
+ const l = e, t = Oe(), s = u(() => !!t.description), o = u(() => {
2775
+ const r = [];
2776
+ switch (r.push(s.value ? "p-4" : "p-2"), l.color) {
2774
2777
  case "success":
2775
- i.push("bg-success-lighter border-l-4 border-success");
2778
+ r.push("bg-success-lighter border-l-4 border-success");
2776
2779
  break;
2777
2780
  case "info":
2778
- i.push("bg-info-lighter border-l-4 border-info");
2781
+ r.push("bg-info-lighter border-l-4 border-info");
2779
2782
  break;
2780
2783
  case "danger":
2781
- i.push("bg-danger-lighter border-l-4 border-danger");
2784
+ r.push("bg-danger-lighter border-l-4 border-danger");
2782
2785
  break;
2783
2786
  case "warning":
2784
- i.push("bg-warning-lighter border-l-4 border-warning");
2787
+ r.push("bg-warning-lighter border-l-4 border-warning");
2785
2788
  break;
2786
2789
  }
2787
- return i.join(" ");
2788
- }), f = c(() => {
2789
- const i = [];
2790
+ return r.join(" ");
2791
+ }), c = u(() => {
2792
+ const r = [];
2790
2793
  switch (l.color) {
2791
2794
  case "success":
2792
- i.push("text-success-darker");
2795
+ r.push("text-success-darker");
2793
2796
  break;
2794
2797
  case "info":
2795
- i.push("text-info-darker");
2798
+ r.push("text-info-darker");
2796
2799
  break;
2797
2800
  case "danger":
2798
- i.push("text-danger-darker");
2801
+ r.push("text-danger-darker");
2799
2802
  break;
2800
2803
  case "warning":
2801
- i.push("text-warning-darker");
2804
+ r.push("text-warning-darker");
2802
2805
  break;
2803
2806
  }
2804
- return i.join(" ");
2805
- }), p = c(() => {
2806
- const i = [];
2807
+ return r.join(" ");
2808
+ }), f = u(() => {
2809
+ const r = [];
2807
2810
  switch (l.color) {
2808
2811
  case "success":
2809
- i.push("text-success");
2812
+ r.push("text-success");
2810
2813
  break;
2811
2814
  case "info":
2812
- i.push("text-info");
2815
+ r.push("text-info");
2813
2816
  break;
2814
2817
  case "danger":
2815
- i.push("text-danger");
2818
+ r.push("text-danger");
2816
2819
  break;
2817
2820
  case "warning":
2818
- i.push("text-warning");
2821
+ r.push("text-warning");
2819
2822
  break;
2820
2823
  }
2821
- return i.join(" ");
2822
- }), r = c(() => {
2823
- const i = [];
2824
+ return r.join(" ");
2825
+ }), p = u(() => {
2826
+ const r = [];
2824
2827
  switch (l.color) {
2825
2828
  case "success":
2826
- i.push("bg-success-lighter ring-success");
2829
+ r.push("bg-success-lighter ring-success");
2827
2830
  break;
2828
2831
  case "info":
2829
- i.push("bg-info-lighter ring-info");
2832
+ r.push("bg-info-lighter ring-info");
2830
2833
  break;
2831
2834
  case "danger":
2832
- i.push("bg-danger-lighter ring-danger");
2835
+ r.push("bg-danger-lighter ring-danger");
2833
2836
  break;
2834
2837
  case "warning":
2835
- i.push("bg-warning-lighter ring-warning");
2838
+ r.push("bg-warning-lighter ring-warning");
2836
2839
  break;
2837
2840
  }
2838
- return i.join(" ");
2841
+ return r.join(" ");
2839
2842
  });
2840
- return (i, d) => {
2843
+ return (r, d) => {
2841
2844
  var x;
2842
2845
  return a(), h("div", {
2843
- class: b(["rounded-md", [o.value, f.value]])
2846
+ class: y(["rounded-md", [o.value, c.value]])
2844
2847
  }, [
2845
- u("div", {
2846
- class: b(["flex", [s.value ? "" : "items-center space-x-2"]])
2848
+ i("div", {
2849
+ class: y(["flex", [s.value ? "" : "items-center space-x-2"]])
2847
2850
  }, [
2848
- u("div", ll, [
2851
+ i("div", ll, [
2849
2852
  L(n(Te), {
2850
- class: b(["h-5 w-5", p.value]),
2853
+ class: y(["h-5 w-5", f.value]),
2851
2854
  "aria-hidden": "true"
2852
2855
  }, null, 8, ["class"])
2853
2856
  ]),
2854
- u("div", {
2855
- class: b(["ml-3 grow", [s.value ? "" : "flex items-center space-x-2"]])
2857
+ i("div", {
2858
+ class: y(["ml-3 grow", [s.value ? "" : "flex items-center space-x-2"]])
2856
2859
  }, [
2857
- u("h3", {
2858
- class: b(["text-sm", [s.value ? "font-medium" : ""]])
2860
+ i("h3", {
2861
+ class: y(["text-sm", [s.value ? "font-medium" : ""]])
2859
2862
  }, [
2860
- D(i.$slots, "title", {}, () => [
2863
+ D(r.$slots, "title", {}, () => [
2861
2864
  A("Title")
2862
2865
  ])
2863
2866
  ], 2),
2864
2867
  s.value ? (a(), h("div", al, [
2865
- D(i.$slots, "description", {}, () => [
2868
+ D(r.$slots, "description", {}, () => [
2866
2869
  A(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
2867
2870
  ])
2868
2871
  ])) : S("", !0),
2869
- u("div", {
2870
- class: b([s.value ? (x = e.actions) != null && x.length ? "mt-4" : "" : "grow flex"])
2872
+ i("div", {
2873
+ class: y([s.value ? (x = e.actions) != null && x.length ? "mt-4" : "" : "grow flex"])
2871
2874
  }, [
2872
- u("div", {
2873
- class: b(["flex", ["space-x-2", s.value ? "" : "grow justify-end"]])
2875
+ i("div", {
2876
+ class: y(["flex", ["space-x-2", s.value ? "" : "grow justify-end"]])
2874
2877
  }, [
2875
2878
  (a(!0), h(U, null, G(e.actions || [], (v, m) => (a(), P(re, {
2876
2879
  key: m,
@@ -2890,12 +2893,12 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2890
2893
  ], 2),
2891
2894
  e.withDismiss ? (a(), h("div", {
2892
2895
  key: 0,
2893
- class: b(["flex", [s.value ? "items-start" : "items-center"]])
2896
+ class: y(["flex", [s.value ? "items-start" : "items-center"]])
2894
2897
  }, [
2895
- u("button", {
2898
+ i("button", {
2896
2899
  type: "button",
2897
- class: b(["inline-flex rounded-md focus:outline-none focus:ring-2", r.value]),
2898
- onClick: d[0] || (d[0] = (v) => i.$emit("dismiss"))
2900
+ class: y(["inline-flex rounded-md focus:outline-none focus:ring-2", p.value]),
2901
+ onClick: d[0] || (d[0] = (v) => r.$emit("dismiss"))
2899
2902
  }, [
2900
2903
  ol,
2901
2904
  L(n(ue), {
@@ -2909,16 +2912,16 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2909
2912
  };
2910
2913
  }
2911
2914
  });
2912
- function Fl(e) {
2915
+ function zl(e) {
2913
2916
  var _, j;
2914
- const { get: l, initialState: t, readOptions: s, set: o, asyncRead: f = !0, debugging: p } = e, r = p == null ? void 0 : p.log, i = () => (new Error("Trace:").stack || "").substring(7), d = ((j = (_ = e.debugging) == null ? void 0 : _.log) == null ? void 0 : j.logger) || console.debug, x = r && !r.writesOnly ? () => {
2915
- const y = l();
2916
- return d(`debugging: '${r.name}' read`, y, i()), y;
2917
- } : l, v = r && !r.readsOnly ? (y) => (d(`debugging: '${r.name}' written to`, y, i()), o(y)) : o, m = f ? Ct(x, t, s) : c(x), k = c(() => m.value);
2917
+ const { get: l, initialState: t, readOptions: s, set: o, asyncRead: c = !0, debugging: f } = e, p = f == null ? void 0 : f.log, r = () => (new Error("Trace:").stack || "").substring(7), d = ((j = (_ = e.debugging) == null ? void 0 : _.log) == null ? void 0 : j.logger) || console.debug, x = p && !p.writesOnly ? () => {
2918
+ const b = l();
2919
+ return d(`debugging: '${p.name}' read`, b, r()), b;
2920
+ } : l, v = p && !p.readsOnly ? (b) => (d(`debugging: '${p.name}' written to`, b, r()), o(b)) : o, m = c ? Ct(x, t, s) : u(x), k = u(() => m.value);
2918
2921
  return k.update = v, k;
2919
2922
  }
2920
2923
  export {
2921
- zl as CommonAlert,
2924
+ Fl as CommonAlert,
2922
2925
  ts as CommonBadge,
2923
2926
  We as CommonLoadingBar,
2924
2927
  kl as CommonStepsBullet,
@@ -2931,7 +2934,7 @@ export {
2931
2934
  _l as FormSelectSourceApps,
2932
2935
  $l as FormTextArea,
2933
2936
  Sl as FormTextInput,
2934
- bl as GlobalToastRenderer,
2937
+ yl as GlobalToastRenderer,
2935
2938
  J as GridListToggleValue,
2936
2939
  me as HorizontalDirection,
2937
2940
  Tl as InfiniteLoading,
@@ -2956,5 +2959,5 @@ export {
2956
2959
  Gn as useResponsiveHorizontalDirectionCalculation,
2957
2960
  Hn as useWindowResizeHandler,
2958
2961
  on as useWrappingContainerHiddenCount,
2959
- Fl as writableAsyncComputed
2962
+ zl as writableAsyncComputed
2960
2963
  };