@speckle/ui-components 2.15.2-alpha5 → 2.15.2-alpha6

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 r, openBlock as a, createBlock as P, normalizeClass as x, withCtx as _, createCommentVNode as S, renderSlot as D, createTextVNode as A, createElementBlock as m, 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 Oe, useSlots as be, vModelDynamic as Xe, pushScopeId as Ne, popScopeId as Je, watch as le, withModifiers as ye, normalizeStyle as fe, onBeforeUnmount as Me } from "vue";
2
- import { isObjectLike as Le, clamp as Pe, isString as ie, isUndefined as Q, isArray as q, debounce as Ae, throttle as Qe, noop as Ye } from "lodash";
1
+ import { defineComponent as A, resolveDynamicComponent as H, computed as r, openBlock as a, createBlock as L, normalizeClass as k, withCtx as _, createCommentVNode as I, renderSlot as z, createTextVNode as M, createElementBlock as m, createElementVNode as i, createVNode as P, Transition as ge, unref as l, toDisplayString as B, toRefs as ae, Fragment as W, renderList as G, ref as O, onMounted as Y, mergeProps as oe, withDirectives as ne, isRef as ve, vModelText as Ae, useSlots as be, vModelDynamic as Xe, pushScopeId as Ne, popScopeId as Je, watch as le, withModifiers as ye, normalizeStyle as fe, onBeforeUnmount as Me } from "vue";
2
+ import { isObjectLike as Le, clamp as je, isString as ie, isUndefined as Q, isArray as q, debounce as ze, 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
- 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
- import { useField as xe } from "vee-validate";
7
- import { nanoid as ke } 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 Ce, computedAsync as Ct } from "@vueuse/core";
10
- import { Listbox as wt, ListboxLabel as $t, ListboxButton as St, ListboxOptions as It, ListboxOption as Bt, TransitionRoot as _t, Dialog as Lt, TransitionChild as Ve, DialogPanel as Pt, Disclosure as Vt, DisclosureButton as jt, 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
- import Rt from "v3-infinite-loading";
13
- const Ft = {
5
+ import { XMarkIcon as ue, CheckIcon as pt, CheckCircleIcon as Te, ExclamationCircleIcon as xe, EnvelopeIcon as ht, KeyIcon as mt, XCircleIcon as gt, InformationCircleIcon as vt } from "@heroicons/vue/20/solid";
6
+ import { useField as ke } from "vee-validate";
7
+ import { nanoid as Ce } from "nanoid";
8
+ import { isNullOrUndefined as bt, SourceApps as yt, getClientOperatingSystem as xt, OperatingSystem as pe } from "@speckle/shared";
9
+ import { useResizeObserver as kt, useMutationObserver as Ct, onKeyDown as wt, isClient as we, computedAsync as $t } from "@vueuse/core";
10
+ import { Listbox as St, ListboxLabel as It, ListboxButton as Bt, ListboxOptions as _t, ListboxOption as Pt, TransitionRoot as Lt, Dialog as jt, TransitionChild as Ve, DialogPanel as Vt, Disclosure as Ot, DisclosureButton as At, DisclosurePanel as Mt, Menu as zt, MenuButton as Dt, MenuItems as Tt, MenuItem as Rt } from "@headlessui/vue";
11
+ import { directive as Re } from "vue-tippy";
12
+ import Ft from "v3-infinite-loading";
13
+ const Et = {
14
14
  key: 2,
15
15
  style: { margin: "0 !important", width: "0.01px" }
16
- }, zt = /* @__PURE__ */ M({
16
+ }, Wt = /* @__PURE__ */ A({
17
17
  __name: "Button",
18
18
  props: {
19
19
  /**
@@ -140,11 +140,11 @@ const Ft = {
140
140
  }
141
141
  },
142
142
  emits: ["click"],
143
- setup(e, { emit: l }) {
143
+ setup(e, { emit: n }) {
144
144
  const t = e, s = H("NuxtLink"), o = H("RouterLink"), c = r(() => t.linkComponent ? t.linkComponent : t.external ? "a" : Le(s) ? s : Le(o) ? o : "a"), d = r(() => {
145
145
  if (!t.to)
146
146
  return t.submit ? "submit" : "button";
147
- }), f = r(() => t.disabled || t.loading), u = r(() => t.loading ? Ze : t.iconLeft), p = r(() => {
147
+ }), f = r(() => t.disabled || t.loading), x = r(() => t.loading ? Ze : t.iconLeft), p = r(() => {
148
148
  const g = [];
149
149
  if (g.push("border-2"), f.value)
150
150
  g.push(
@@ -241,7 +241,7 @@ const Ft = {
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 = r(() => {
244
+ }), y = r(() => {
245
245
  const g = [];
246
246
  return g.push(t.rounded ? "rounded-full" : "rounded-md"), g.join(" ");
247
247
  }), h = r(() => {
@@ -269,7 +269,7 @@ const Ft = {
269
269
  break;
270
270
  }
271
271
  return g.join(" ");
272
- }), k = r(() => {
272
+ }), C = r(() => {
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 Ft = {
283
283
  case "base":
284
284
  return "h-8 text-base font-medium xxx-tracking-wide";
285
285
  }
286
- }), B = r(() => {
286
+ }), u = r(() => {
287
287
  switch (t.size) {
288
288
  case "xs":
289
289
  return "px-1";
@@ -297,10 +297,10 @@ const Ft = {
297
297
  case "base":
298
298
  return "px-3";
299
299
  }
300
- }), V = r(() => {
300
+ }), j = r(() => {
301
301
  const g = [];
302
302
  return t.fullWidth && g.push("w-full"), f.value && g.push("cursor-not-allowed"), g.join(" ");
303
- }), y = r(() => {
303
+ }), v = r(() => {
304
304
  const g = [];
305
305
  return !f.value && !t.link && !t.text && g.push("active:scale-[0.97]"), !f.value && t.link && g.push(
306
306
  "underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
@@ -309,16 +309,16 @@ const Ft = {
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",
312
- V.value,
313
- k.value,
312
+ j.value,
313
+ C.value,
314
314
  b.value,
315
315
  g ? "" : p.value,
316
- g ? "" : v.value,
316
+ g ? "" : y.value,
317
317
  g ? "" : h.value,
318
- t.link ? "" : B.value,
319
- y.value
318
+ t.link ? "" : u.value,
319
+ v.value
320
320
  ].join(" ");
321
- }), $ = r(() => {
321
+ }), S = r(() => {
322
322
  const g = [""];
323
323
  switch (t.loading && g.push("animate-spin"), t.size) {
324
324
  case "xs":
@@ -339,46 +339,46 @@ const Ft = {
339
339
  break;
340
340
  }
341
341
  return g.join(" ");
342
- }), F = (g) => {
342
+ }), R = (g) => {
343
343
  if (f.value) {
344
344
  g.preventDefault(), g.stopPropagation(), g.stopImmediatePropagation();
345
345
  return;
346
346
  }
347
- l("click", g);
347
+ n("click", g);
348
348
  };
349
- return (g, R) => (a(), P(H(e.to ? c.value : "button"), {
349
+ return (g, T) => (a(), L(H(e.to ? c.value : "button"), {
350
350
  href: e.to,
351
351
  to: e.to,
352
352
  type: d.value,
353
353
  external: e.external,
354
- class: x(w.value),
354
+ class: k(w.value),
355
355
  disabled: f.value,
356
356
  role: "button",
357
- onClick: F
357
+ onClick: R
358
358
  }, {
359
359
  default: _(() => [
360
- u.value ? (a(), P(H(u.value), {
360
+ x.value ? (a(), L(H(x.value), {
361
361
  key: 0,
362
- class: x(`${$.value} ${e.hideText ? "" : "mr-2"}`)
363
- }, null, 8, ["class"])) : S("", !0),
364
- e.hideText ? (a(), m("div", Ft, "   ")) : D(g.$slots, "default", { key: 1 }, () => [
365
- A("Button")
362
+ class: k(`${S.value} ${e.hideText ? "" : "mr-2"}`)
363
+ }, null, 8, ["class"])) : I("", !0),
364
+ e.hideText ? (a(), m("div", Et, "   ")) : z(g.$slots, "default", { key: 1 }, () => [
365
+ M("Button")
366
366
  ], !0),
367
- e.iconRight || !e.loading ? (a(), P(H(e.iconRight), {
367
+ e.iconRight || !e.loading ? (a(), L(H(e.iconRight), {
368
368
  key: 3,
369
- class: x(`${$.value} ${e.hideText ? "" : "ml-2"}`)
370
- }, null, 8, ["class"])) : S("", !0)
369
+ class: k(`${S.value} ${e.hideText ? "" : "ml-2"}`)
370
+ }, null, 8, ["class"])) : I("", !0)
371
371
  ]),
372
372
  _: 3
373
373
  }, 8, ["href", "to", "type", "external", "class", "disabled"]));
374
374
  }
375
375
  });
376
- const ze = (e, l) => {
376
+ const Fe = (e, n) => {
377
377
  const t = e.__vccOpts || e;
378
- for (const [s, o] of l)
378
+ for (const [s, o] of n)
379
379
  t[s] = o;
380
380
  return t;
381
- }, re = /* @__PURE__ */ ze(zt, [["__scopeId", "data-v-38aa371e"]]), Et = /* @__PURE__ */ M({
381
+ }, re = /* @__PURE__ */ Fe(Wt, [["__scopeId", "data-v-38aa371e"]]), Ut = /* @__PURE__ */ A({
382
382
  __name: "Link",
383
383
  props: {
384
384
  to: {
@@ -427,15 +427,15 @@ const ze = (e, l) => {
427
427
  }
428
428
  },
429
429
  emits: ["click"],
430
- setup(e, { emit: l }) {
430
+ setup(e, { emit: n }) {
431
431
  const t = e, s = (o) => {
432
432
  if (t.disabled) {
433
433
  o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation();
434
434
  return;
435
435
  }
436
- l("click", o);
436
+ n("click", o);
437
437
  };
438
- return (o, c) => (a(), P(re, {
438
+ return (o, c) => (a(), L(re, {
439
439
  link: "",
440
440
  to: e.to,
441
441
  external: e.external,
@@ -449,8 +449,8 @@ const ze = (e, l) => {
449
449
  onClickCapture: s
450
450
  }, {
451
451
  default: _(() => [
452
- D(o.$slots, "default", {}, () => [
453
- A("Link")
452
+ z(o.$slots, "default", {}, () => [
453
+ M("Link")
454
454
  ])
455
455
  ]),
456
456
  _: 3
@@ -458,42 +458,42 @@ const ze = (e, l) => {
458
458
  }
459
459
  });
460
460
  var ee = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(ee || {});
461
- const Ut = {
461
+ const qt = {
462
462
  "aria-live": "assertive",
463
463
  class: "pointer-events-none fixed inset-0 flex items-end px-4 py-6 mt-10 sm:items-start sm:p-6 z-50"
464
- }, Wt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, qt = {
464
+ }, Ht = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, Gt = {
465
465
  key: 0,
466
466
  class: "pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-foundation text-foreground shadow-lg ring-1 ring-primary-muted ring-opacity-5"
467
- }, Ht = { class: "p-4" }, Gt = { class: "flex items-start" }, Kt = { class: "flex-shrink-0" }, Xt = { class: "ml-2 w-0 flex-1 flex flex-col" }, Nt = {
467
+ }, Kt = { class: "p-4" }, Xt = { class: "flex items-start" }, Nt = { class: "flex-shrink-0" }, Jt = { class: "ml-2 w-0 flex-1 flex flex-col" }, Qt = {
468
468
  key: 0,
469
469
  class: "text-foreground font-bold"
470
- }, Jt = {
470
+ }, Yt = {
471
471
  key: 1,
472
472
  class: "label label--light text-foreground-2"
473
- }, Qt = {
473
+ }, Zt = {
474
474
  key: 2,
475
475
  class: "flex justify-start mt-2"
476
- }, Yt = /* @__PURE__ */ i("span", { class: "sr-only" }, "Close", -1), yl = /* @__PURE__ */ M({
476
+ }, es = /* @__PURE__ */ i("span", { class: "sr-only" }, "Close", -1), xl = /* @__PURE__ */ A({
477
477
  __name: "ToastRenderer",
478
478
  props: {
479
479
  notification: null
480
480
  },
481
481
  emits: ["update:notification"],
482
- setup(e, { emit: l }) {
482
+ setup(e, { emit: n }) {
483
483
  const t = e, s = r(
484
484
  () => {
485
485
  var d, f;
486
486
  return !((d = t.notification) != null && d.description) && !((f = t.notification) != null && f.cta);
487
487
  }
488
488
  ), o = () => {
489
- l("update:notification", null);
489
+ n("update:notification", null);
490
490
  }, c = (d) => {
491
- var f, u, p;
492
- (p = (u = (f = t.notification) == null ? void 0 : f.cta) == null ? void 0 : u.onClick) == null || p.call(u, d), o();
491
+ var f, x, p;
492
+ (p = (x = (f = t.notification) == null ? void 0 : f.cta) == null ? void 0 : x.onClick) == null || p.call(x, d), o();
493
493
  };
494
- return (d, f) => (a(), m("div", Ut, [
495
- i("div", Wt, [
496
- L(ge, {
494
+ return (d, f) => (a(), m("div", qt, [
495
+ i("div", Ht, [
496
+ P(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",
499
499
  "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
@@ -502,55 +502,55 @@ const Ut = {
502
502
  "leave-to-class": "opacity-0"
503
503
  }, {
504
504
  default: _(() => [
505
- e.notification ? (a(), m("div", qt, [
506
- i("div", Ht, [
507
- i("div", Gt, [
508
- i("div", Kt, [
509
- e.notification.type === n(ee).Success ? (a(), P(n(ot), {
505
+ e.notification ? (a(), m("div", Gt, [
506
+ i("div", Kt, [
507
+ i("div", Xt, [
508
+ i("div", Nt, [
509
+ e.notification.type === l(ee).Success ? (a(), L(l(ot), {
510
510
  key: 0,
511
511
  class: "h-6 w-6 text-success",
512
512
  "aria-hidden": "true"
513
- })) : e.notification.type === n(ee).Danger ? (a(), P(n(rt), {
513
+ })) : e.notification.type === l(ee).Danger ? (a(), L(l(rt), {
514
514
  key: 1,
515
515
  class: "h-6 w-6 text-danger",
516
516
  "aria-hidden": "true"
517
- })) : e.notification.type === n(ee).Warning ? (a(), P(n(it), {
517
+ })) : e.notification.type === l(ee).Warning ? (a(), L(l(it), {
518
518
  key: 2,
519
519
  class: "h-6 w-6 text-warning",
520
520
  "aria-hidden": "true"
521
- })) : e.notification.type === n(ee).Info ? (a(), P(n(ut), {
521
+ })) : e.notification.type === l(ee).Info ? (a(), L(l(ut), {
522
522
  key: 3,
523
523
  class: "h-6 w-6 text-info",
524
524
  "aria-hidden": "true"
525
- })) : S("", !0)
525
+ })) : I("", !0)
526
526
  ]),
527
- i("div", Xt, [
528
- e.notification.title ? (a(), m("p", Nt, I(e.notification.title), 1)) : S("", !0),
529
- e.notification.description ? (a(), m("p", Jt, I(e.notification.description), 1)) : S("", !0),
530
- e.notification.cta ? (a(), m("div", Qt, [
531
- L(Et, {
527
+ i("div", Jt, [
528
+ e.notification.title ? (a(), m("p", Qt, B(e.notification.title), 1)) : I("", !0),
529
+ e.notification.description ? (a(), m("p", Yt, B(e.notification.description), 1)) : I("", !0),
530
+ e.notification.cta ? (a(), m("div", Zt, [
531
+ P(Ut, {
532
532
  to: e.notification.cta.url,
533
533
  class: "label",
534
534
  primary: "",
535
535
  onClick: c
536
536
  }, {
537
537
  default: _(() => [
538
- A(I(e.notification.cta.title), 1)
538
+ M(B(e.notification.cta.title), 1)
539
539
  ]),
540
540
  _: 1
541
541
  }, 8, ["to"])
542
- ])) : S("", !0)
542
+ ])) : I("", !0)
543
543
  ]),
544
544
  i("div", {
545
- class: x(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
545
+ class: k(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
546
546
  }, [
547
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
551
551
  }, [
552
- Yt,
553
- L(n(ue), {
552
+ es,
553
+ P(l(ue), {
554
554
  class: "h-6 w-6",
555
555
  "aria-hidden": "true"
556
556
  })
@@ -558,20 +558,20 @@ const Ut = {
558
558
  ], 2)
559
559
  ])
560
560
  ])
561
- ])) : S("", !0)
561
+ ])) : I("", !0)
562
562
  ]),
563
563
  _: 1
564
564
  })
565
565
  ])
566
566
  ]));
567
567
  }
568
- }), Zt = /* @__PURE__ */ i("circle", {
568
+ }), ts = /* @__PURE__ */ i("circle", {
569
569
  cx: "4",
570
570
  cy: "4",
571
571
  r: "3"
572
- }, null, -1), es = [
573
- Zt
574
- ], ts = /* @__PURE__ */ M({
572
+ }, null, -1), ss = [
573
+ ts
574
+ ], ns = /* @__PURE__ */ A({
575
575
  __name: "Badge",
576
576
  props: {
577
577
  size: null,
@@ -583,7 +583,7 @@ const Ut = {
583
583
  clickableIcon: { type: Boolean }
584
584
  },
585
585
  emits: ["click-icon"],
586
- setup(e, { emit: l }) {
586
+ setup(e, { emit: n }) {
587
587
  const t = e, s = r(
588
588
  () => t.colorClasses || "bg-blue-100 text-blue-800"
589
589
  ), o = r(
@@ -607,46 +607,46 @@ const Ut = {
607
607
  }), f = r(() => [
608
608
  "-ml-0.5 mr-1.5 h-2 w-2",
609
609
  o.value
610
- ].join(" ")), u = (p) => {
610
+ ].join(" ")), x = (p) => {
611
611
  if (!t.clickableIcon) {
612
612
  p.stopPropagation(), p.stopImmediatePropagation(), p.preventDefault();
613
613
  return;
614
614
  }
615
- l("click-icon", p);
615
+ n("click-icon", p);
616
616
  };
617
617
  return (p, b) => (a(), m("span", {
618
- class: x(c.value)
618
+ class: k(c.value)
619
619
  }, [
620
620
  e.dot ? (a(), m("svg", {
621
621
  key: 0,
622
- class: x(f.value),
622
+ class: k(f.value),
623
623
  fill: "currentColor",
624
624
  viewBox: "0 0 8 8"
625
- }, es, 2)) : S("", !0),
626
- D(p.$slots, "default", {}, () => [
627
- A("Badge")
625
+ }, ss, 2)) : I("", !0),
626
+ z(p.$slots, "default", {}, () => [
627
+ M("Badge")
628
628
  ]),
629
629
  e.iconLeft ? (a(), m("button", {
630
630
  key: 1,
631
- class: x(d.value),
632
- onClick: b[0] || (b[0] = (v) => u(v))
631
+ class: k(d.value),
632
+ onClick: b[0] || (b[0] = (y) => x(y))
633
633
  }, [
634
- (a(), P(H(e.iconLeft), {
635
- class: x(["h-4 w-4", o.value])
634
+ (a(), L(H(e.iconLeft), {
635
+ class: k(["h-4 w-4", o.value])
636
636
  }, null, 8, ["class"]))
637
- ], 2)) : S("", !0)
637
+ ], 2)) : I("", !0)
638
638
  ], 2));
639
639
  }
640
640
  });
641
- let je = [];
642
- function ss(e) {
643
- je = je ? e : e.slice();
641
+ let Oe = [];
642
+ function ls(e) {
643
+ Oe = Oe ? 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) {
647
647
  const {
648
648
  props: {
649
- modelValue: l,
649
+ modelValue: n,
650
650
  steps: t,
651
651
  orientation: s,
652
652
  goVerticalBelow: o,
@@ -654,48 +654,48 @@ function Ee(e) {
654
654
  stepsPadding: d
655
655
  },
656
656
  emit: f
657
- } = e, u = r(
657
+ } = e, x = r(
658
658
  () => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
659
659
  ), p = r({
660
- get: () => Pe((l == null ? void 0 : l.value) || 0, -1, t.value.length),
661
- set: (y) => f("update:modelValue", Pe(y, 0, t.value.length))
662
- }), b = (y) => `${y + 1}`, v = (y) => y === p.value, h = (y) => y < p.value, k = (y, w) => {
663
- var F;
660
+ get: () => je((n == null ? void 0 : n.value) || 0, -1, t.value.length),
661
+ set: (v) => f("update:modelValue", je(v, 0, t.value.length))
662
+ }), b = (v) => `${v + 1}`, y = (v) => v === p.value, h = (v) => v < p.value, C = (v, w) => {
663
+ var R;
664
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
- p.value = y;
669
- const $ = t.value[p.value];
670
- (F = $ == null ? void 0 : $.onClick) == null || F.call($);
671
- }, B = r(() => {
672
- const y = ["flex"];
673
- let w, $;
674
- return (d == null ? void 0 : d.value) === "xs" ? (w = "space-x-2", $ = "space-y-1") : (d == null ? void 0 : d.value) === "sm" ? (w = "space-x-4", $ = "space-y-1") : (w = "space-x-8", $ = "space-y-4"), y.push("flex"), u.value === "vertical" || o != null && o.value ? (y.push(`flex-col ${$} justify-center`), (o == null ? void 0 : o.value) === te.sm ? y.push(
668
+ p.value = v;
669
+ const S = t.value[p.value];
670
+ (R = S == null ? void 0 : S.onClick) == null || R.call(S);
671
+ }, u = r(() => {
672
+ const v = ["flex"];
673
+ let w, S;
674
+ return (d == null ? void 0 : d.value) === "xs" ? (w = "space-x-2", S = "space-y-1") : (d == null ? void 0 : d.value) === "sm" ? (w = "space-x-4", S = "space-y-1") : (w = "space-x-8", S = "space-y-4"), v.push("flex"), x.value === "vertical" || o != null && o.value ? (v.push(`flex-col ${S} justify-center`), (o == null ? void 0 : o.value) === te.sm ? v.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 ? v.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 ? v.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 && v.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
- }), V = r(() => {
684
- const y = ["flex items-center"];
685
- return c != null && c.value || y.push("cursor-pointer"), y.join(" ");
682
+ )) : v.push(`flex-row ${w} items-center`), v.join(" ");
683
+ }), j = r(() => {
684
+ const v = ["flex items-center"];
685
+ return c != null && c.value || v.push("cursor-pointer"), v.join(" ");
686
686
  });
687
687
  return {
688
688
  value: p,
689
- isCurrentStep: v,
689
+ isCurrentStep: y,
690
690
  isFinishedStep: h,
691
- switchStep: k,
691
+ switchStep: C,
692
692
  getStepDisplayValue: b,
693
- listClasses: B,
694
- linkClasses: V,
695
- orientation: u
693
+ listClasses: u,
694
+ linkClasses: j,
695
+ orientation: x
696
696
  };
697
697
  }
698
- ss([
698
+ ls([
699
699
  "sm:space-x-8",
700
700
  "md:space-x-8",
701
701
  "lg:space-x-8",
@@ -709,16 +709,16 @@ ss([
709
709
  "lg:space-x-4",
710
710
  "xl:space-x-4"
711
711
  ]);
712
- const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, os = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, rs = { class: "flex flex-col" }, is = {
712
+ const as = ["aria-label"], os = ["href", "onClick"], rs = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, is = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, us = { class: "flex flex-col" }, cs = {
713
713
  key: 0,
714
714
  class: "label label--light text-foreground"
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 = {
715
+ }, ds = ["href", "onClick"], fs = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, ps = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, hs = { class: "flex flex-col" }, ms = {
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" }, bs = {
718
+ }, gs = ["href", "onClick"], vs = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, bs = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, ys = { class: "flex flex-col" }, xs = {
719
719
  key: 0,
720
720
  class: "label label--light"
721
- }, xl = /* @__PURE__ */ M({
721
+ }, kl = /* @__PURE__ */ A({
722
722
  __name: "Number",
723
723
  props: {
724
724
  ariaLabel: null,
@@ -730,94 +730,94 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
730
730
  stepsPadding: null
731
731
  },
732
732
  emits: ["update:modelValue"],
733
- setup(e, { emit: l }) {
733
+ setup(e, { emit: n }) {
734
734
  const t = e, {
735
735
  isCurrentStep: s,
736
736
  isFinishedStep: o,
737
737
  switchStep: c,
738
738
  getStepDisplayValue: d,
739
739
  listClasses: f,
740
- linkClasses: u
740
+ linkClasses: x
741
741
  } = Ee({
742
742
  props: ae(t),
743
- emit: l
743
+ emit: n
744
744
  });
745
745
  return (p, b) => (a(), m("nav", {
746
746
  class: "flex justify-center",
747
747
  "aria-label": e.ariaLabel || "Progress steps"
748
748
  }, [
749
749
  i("ol", {
750
- class: x(n(f))
750
+ class: k(l(f))
751
751
  }, [
752
- (a(!0), m(U, null, G(e.steps, (v, h) => (a(), m("li", {
753
- key: v.name
752
+ (a(!0), m(W, null, G(e.steps, (y, h) => (a(), m("li", {
753
+ key: y.name
754
754
  }, [
755
- n(o)(h) ? (a(), m("a", {
755
+ l(o)(h) ? (a(), m("a", {
756
756
  key: 0,
757
- href: v.href,
758
- class: x(n(u)),
759
- onClick: (k) => n(c)(h, k)
757
+ href: y.href,
758
+ class: k(l(x)),
759
+ onClick: (C) => l(c)(h, C)
760
760
  }, [
761
- i("div", as, [
762
- i("div", os, [
763
- L(n(pt), { class: "w-5 h-5" })
761
+ i("div", rs, [
762
+ i("div", is, [
763
+ P(l(pt), { class: "w-5 h-5" })
764
764
  ]),
765
- i("div", rs, [
766
- i("div", null, I(v.name), 1),
767
- v.description ? (a(), m("div", is, I(v.description), 1)) : S("", !0)
765
+ i("div", us, [
766
+ i("div", null, B(y.name), 1),
767
+ y.description ? (a(), m("div", cs, B(y.description), 1)) : I("", !0)
768
768
  ])
769
769
  ])
770
- ], 10, ls)) : n(s)(h) ? (a(), m("a", {
770
+ ], 10, os)) : l(s)(h) ? (a(), m("a", {
771
771
  key: 1,
772
- href: v.href,
773
- class: x(n(u)),
772
+ href: y.href,
773
+ class: k(l(x)),
774
774
  "aria-current": "step",
775
- onClick: (k) => n(c)(h, k)
775
+ onClick: (C) => l(c)(h, C)
776
776
  }, [
777
- i("div", cs, [
778
- i("div", ds, I(n(d)(h)), 1),
779
- i("div", fs, [
780
- i("div", null, I(v.name), 1),
781
- v.description ? (a(), m("div", ps, I(v.description), 1)) : S("", !0)
777
+ i("div", fs, [
778
+ i("div", ps, B(l(d)(h)), 1),
779
+ i("div", hs, [
780
+ i("div", null, B(y.name), 1),
781
+ y.description ? (a(), m("div", ms, B(y.description), 1)) : I("", !0)
782
782
  ])
783
783
  ])
784
- ], 10, us)) : (a(), m("a", {
784
+ ], 10, ds)) : (a(), m("a", {
785
785
  key: 2,
786
- href: v.href,
787
- class: x(n(u)),
788
- onClick: (k) => n(c)(h, k)
786
+ href: y.href,
787
+ class: k(l(x)),
788
+ onClick: (C) => l(c)(h, C)
789
789
  }, [
790
- i("div", ms, [
791
- i("div", gs, I(n(d)(h)), 1),
792
- i("div", vs, [
793
- i("div", null, I(v.name), 1),
794
- v.description ? (a(), m("div", bs, I(v.description), 1)) : S("", !0)
790
+ i("div", vs, [
791
+ i("div", bs, B(l(d)(h)), 1),
792
+ i("div", ys, [
793
+ i("div", null, B(y.name), 1),
794
+ y.description ? (a(), m("div", xs, B(y.description), 1)) : I("", !0)
795
795
  ])
796
796
  ])
797
- ], 10, hs))
797
+ ], 10, gs))
798
798
  ]))), 128))
799
799
  ], 2)
800
- ], 8, ns));
800
+ ], 8, as));
801
801
  }
802
- }), ys = ["aria-label"], xs = ["href", "onClick"], ks = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, Cs = {
802
+ }), ks = ["aria-label"], Cs = ["href", "onClick"], ws = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, $s = {
803
803
  key: 0,
804
804
  class: "h-3 w-3 rounded-full bg-foreground-2"
805
- }, ws = ["href", "onClick"], $s = {
805
+ }, Ss = ["href", "onClick"], Is = {
806
806
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
807
807
  "aria-hidden": "true"
808
- }, Ss = {
808
+ }, Bs = {
809
809
  key: 0,
810
810
  class: "h-3 w-3 rounded-full bg-foreground"
811
- }, Is = /* @__PURE__ */ i("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), Bs = /* @__PURE__ */ i("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), _s = ["href", "onClick"], Ls = {
811
+ }, _s = /* @__PURE__ */ i("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), Ps = /* @__PURE__ */ i("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), Ls = ["href", "onClick"], js = {
812
812
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
813
813
  "aria-hidden": "true"
814
- }, Ps = {
814
+ }, Vs = {
815
815
  key: 0,
816
816
  class: "h-3 w-3 rounded-full bg-foreground-2"
817
- }, Vs = {
817
+ }, Os = {
818
818
  key: 1,
819
819
  class: "h-4 w-4 rounded-full bg-foreground-disabled"
820
- }, kl = /* @__PURE__ */ M({
820
+ }, Cl = /* @__PURE__ */ A({
821
821
  __name: "Bullet",
822
822
  props: {
823
823
  ariaLabel: null,
@@ -830,85 +830,85 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
830
830
  stepsPadding: null
831
831
  },
832
832
  emits: ["update:modelValue"],
833
- setup(e, { emit: l }) {
833
+ setup(e, { emit: n }) {
834
834
  const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: c, listClasses: d, linkClasses: f } = Ee({
835
835
  props: ae(t),
836
- emit: l
837
- }), u = r(() => {
836
+ emit: n
837
+ }), x = r(() => {
838
838
  const b = ["h6 font-medium leading-7"];
839
- let v;
840
- return t.stepsPadding === "xs" ? v = "ml-1" : t.stepsPadding === "sm" ? v = "ml-2" : v = "ml-3", b.push(v), t.basic && b.push("sr-only"), b.join(" ");
839
+ let y;
840
+ return t.stepsPadding === "xs" ? y = "ml-1" : t.stepsPadding === "sm" ? y = "ml-2" : y = "ml-3", b.push(y), t.basic && b.push("sr-only"), b.join(" ");
841
841
  }), p = r(() => {
842
842
  const b = [];
843
843
  return t.basic && b.push("basic"), b.join(" ");
844
844
  });
845
- return (b, v) => (a(), m("nav", {
845
+ return (b, y) => (a(), m("nav", {
846
846
  class: "flex justify-center",
847
847
  "aria-label": e.ariaLabel || "Progress steps"
848
848
  }, [
849
849
  i("ol", {
850
- class: x([n(d), p.value])
850
+ class: k([l(d), p.value])
851
851
  }, [
852
- (a(!0), m(U, null, G(e.steps, (h, k) => (a(), m("li", {
852
+ (a(!0), m(W, null, G(e.steps, (h, C) => (a(), m("li", {
853
853
  key: h.name
854
854
  }, [
855
- n(o)(k) ? (a(), m("a", {
855
+ l(o)(C) ? (a(), m("a", {
856
856
  key: 0,
857
857
  href: h.href,
858
- class: x(n(f)),
859
- onClick: (B) => n(c)(k, B)
858
+ class: k(l(f)),
859
+ onClick: (u) => l(c)(C, u)
860
860
  }, [
861
- i("span", ks, [
862
- e.basic ? (a(), m("span", Cs)) : (a(), P(n(Te), {
861
+ i("span", ws, [
862
+ e.basic ? (a(), m("span", $s)) : (a(), L(l(Te), {
863
863
  key: 1,
864
864
  class: "h-full w-full text-primary",
865
865
  "aria-hidden": "true"
866
866
  }))
867
867
  ]),
868
868
  i("span", {
869
- class: x(["text-foreground", u.value])
870
- }, I(h.name), 3)
871
- ], 10, xs)) : n(s)(k) ? (a(), m("a", {
869
+ class: k(["text-foreground", x.value])
870
+ }, B(h.name), 3)
871
+ ], 10, Cs)) : l(s)(C) ? (a(), m("a", {
872
872
  key: 1,
873
873
  href: h.href,
874
- class: x(n(f)),
874
+ class: k(l(f)),
875
875
  "aria-current": "step",
876
- onClick: (B) => n(c)(k, B)
876
+ onClick: (u) => l(c)(C, u)
877
877
  }, [
878
- i("span", $s, [
879
- e.basic ? (a(), m("span", Ss)) : (a(), m(U, { key: 1 }, [
880
- Is,
881
- Bs
878
+ i("span", Is, [
879
+ e.basic ? (a(), m("span", Bs)) : (a(), m(W, { key: 1 }, [
880
+ _s,
881
+ Ps
882
882
  ], 64))
883
883
  ]),
884
884
  i("span", {
885
- class: x(["text-primary-focus", u.value])
886
- }, I(h.name), 3)
887
- ], 10, ws)) : (a(), m("a", {
885
+ class: k(["text-primary-focus", x.value])
886
+ }, B(h.name), 3)
887
+ ], 10, Ss)) : (a(), m("a", {
888
888
  key: 2,
889
889
  href: h.href,
890
- class: x(n(f)),
891
- onClick: (B) => n(c)(k, B)
890
+ class: k(l(f)),
891
+ onClick: (u) => l(c)(C, u)
892
892
  }, [
893
- i("div", Ls, [
894
- e.basic ? (a(), m("span", Ps)) : (a(), m("div", Vs))
893
+ i("div", js, [
894
+ e.basic ? (a(), m("span", Vs)) : (a(), m("div", Os))
895
895
  ]),
896
896
  i("p", {
897
- class: x(["text-foreground-disabled", u.value])
898
- }, I(h.name), 3)
899
- ], 10, _s))
897
+ class: k(["text-foreground-disabled", x.value])
898
+ }, B(h.name), 3)
899
+ ], 10, Ls))
900
900
  ]))), 128))
901
901
  ], 2)
902
- ], 8, ys));
902
+ ], 8, ks));
903
903
  }
904
- }), js = ["disabled"], Cl = /* @__PURE__ */ M({
904
+ }), As = ["disabled"], wl = /* @__PURE__ */ A({
905
905
  __name: "CardButton",
906
906
  props: {
907
907
  disabled: { type: Boolean },
908
908
  modelValue: { type: Boolean }
909
909
  },
910
910
  emits: ["update:modelValue", "click"],
911
- setup(e, { emit: l }) {
911
+ setup(e, { emit: n }) {
912
912
  const t = e, s = r(() => {
913
913
  const c = [
914
914
  "h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
@@ -922,25 +922,25 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
922
922
  c.preventDefault(), c.stopPropagation(), c.stopImmediatePropagation();
923
923
  return;
924
924
  }
925
- l("update:modelValue", !t.modelValue), l("click", c);
925
+ n("update:modelValue", !t.modelValue), n("click", c);
926
926
  };
927
927
  return (c, d) => (a(), m("button", {
928
- class: x(s.value),
928
+ class: k(s.value),
929
929
  disabled: e.disabled,
930
930
  onClick: o
931
931
  }, [
932
- D(c.$slots, "default", {}, () => [
933
- A("Text")
932
+ z(c.$slots, "default", {}, () => [
933
+ M("Text")
934
934
  ])
935
- ], 10, js));
935
+ ], 10, As));
936
936
  }
937
- }), Os = { class: "relative flex items-start" }, Ms = { class: "flex h-6 items-center" }, As = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Ds = {
937
+ }), Ms = { class: "relative flex items-start" }, zs = { class: "flex h-6 items-center" }, Ds = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Ts = {
938
938
  class: "ml-2 text-sm",
939
939
  style: { "padding-top": "2px" }
940
- }, Ts = ["for"], Rs = {
940
+ }, Rs = ["for"], Fs = {
941
941
  key: 0,
942
942
  class: "text-danger ml-1"
943
- }, Fs = ["id"], wl = /* @__PURE__ */ M({
943
+ }, Es = ["id"], $l = /* @__PURE__ */ A({
944
944
  inheritAttrs: !1,
945
945
  __name: "Checkbox",
946
946
  props: {
@@ -1029,108 +1029,108 @@ 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}-${ke()}`, s = r(() => l.value || l.name), {
1032
+ const n = e, t = (v) => `${v}-${Ce()}`, s = r(() => n.value || n.name), {
1033
1033
  checked: o,
1034
1034
  errorMessage: c,
1035
1035
  handleChange: d,
1036
1036
  value: f
1037
- } = xe(l.name, l.rules, {
1038
- validateOnMount: l.validateOnMount,
1037
+ } = ke(n.name, n.rules, {
1038
+ validateOnMount: n.validateOnMount,
1039
1039
  type: "checkbox",
1040
1040
  checkedValue: s,
1041
- initialValue: l.modelValue || void 0
1042
- }), u = r(() => l.label || l.name), p = r(() => c.value ? "border-danger-lighter" : "border-foreground-4 "), b = r(() => l.description || c.value), v = r(() => `${l.name}-description`), h = r(() => {
1043
- const y = [];
1044
- return l.inlineDescription ? y.push("inline ml-2") : y.push("block"), c.value ? y.push("text-danger") : y.push("text-foreground-2"), y.join(" ");
1045
- }), k = O(t("checkbox")), B = r(() => l.id || k.value), V = (y) => {
1046
- l.disabled || d(y);
1041
+ initialValue: n.modelValue || void 0
1042
+ }), x = r(() => n.label || n.name), p = r(() => c.value ? "border-danger-lighter" : "border-foreground-4 "), b = r(() => n.description || c.value), y = r(() => `${n.name}-description`), h = r(() => {
1043
+ const v = [];
1044
+ return n.inlineDescription ? v.push("inline ml-2") : v.push("block"), c.value ? v.push("text-danger") : v.push("text-foreground-2"), v.join(" ");
1045
+ }), C = O(t("checkbox")), u = r(() => n.id || C.value), j = (v) => {
1046
+ n.disabled || d(v);
1047
1047
  };
1048
1048
  return Y(() => {
1049
- const y = l.modelValue, w = f.value, $ = Array.isArray(y) ? y.includes(l.value) : y === l.value, F = Array.isArray(w) ? w.includes(l.value) : w === l.value;
1050
- $ !== F && d(y);
1051
- }), (y, w) => (a(), m("div", Os, [
1052
- i("div", Ms, [
1049
+ const v = n.modelValue, w = f.value, S = Array.isArray(v) ? v.includes(n.value) : v === n.value, R = Array.isArray(w) ? w.includes(n.value) : w === n.value;
1050
+ S !== R && d(v);
1051
+ }), (v, w) => (a(), m("div", Ms, [
1052
+ i("div", zs, [
1053
1053
  i("input", oe({
1054
- id: B.value,
1055
- checked: n(o),
1056
- "aria-describedby": v.value,
1054
+ id: u.value,
1055
+ checked: l(o),
1056
+ "aria-describedby": y.value,
1057
1057
  name: e.name,
1058
1058
  disabled: e.disabled,
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", p.value]
1062
- }, y.$attrs, { onChange: V }), null, 16, As)
1062
+ }, v.$attrs, { onChange: j }), null, 16, Ds)
1063
1063
  ]),
1064
- i("div", Ds, [
1064
+ i("div", Ts, [
1065
1065
  i("label", {
1066
- for: B.value,
1067
- class: x(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1066
+ for: u.value,
1067
+ class: k(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1068
1068
  }, [
1069
- i("span", null, I(u.value), 1),
1070
- e.showRequired ? (a(), m("span", Rs, "*")) : S("", !0)
1071
- ], 10, Ts),
1069
+ i("span", null, B(x.value), 1),
1070
+ e.showRequired ? (a(), m("span", Fs, "*")) : I("", !0)
1071
+ ], 10, Rs),
1072
1072
  b.value ? (a(), m("p", {
1073
1073
  key: 0,
1074
- id: v.value,
1075
- class: x(h.value)
1076
- }, I(b.value), 11, Fs)) : S("", !0)
1074
+ id: y.value,
1075
+ class: k(h.value)
1076
+ }, B(b.value), 11, Es)) : I("", !0)
1077
1077
  ])
1078
1078
  ]));
1079
1079
  }
1080
1080
  });
1081
- function Ue(e) {
1082
- const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: c } = xe(l.name, l.rules, {
1083
- validateOnMount: n(l.validateOnMount),
1084
- validateOnValueUpdate: n(l.validateOnValueUpdate),
1085
- initialValue: n(l.modelValue) || void 0
1081
+ function We(e) {
1082
+ const { props: n, inputEl: t, emit: s } = e, { value: o, errorMessage: c } = ke(n.name, n.rules, {
1083
+ validateOnMount: l(n.validateOnMount),
1084
+ validateOnValueUpdate: l(n.validateOnValueUpdate),
1085
+ initialValue: l(n.modelValue) || void 0
1086
1086
  }), d = r(() => {
1087
- const $ = ["block label text-foreground-2 mb-2"];
1088
- return n(l.showLabel) || $.push("sr-only"), $.join(" ");
1087
+ const S = ["block label text-foreground-2 mb-2"];
1088
+ return l(n.showLabel) || S.push("sr-only"), S.join(" ");
1089
1089
  }), f = r(() => {
1090
- const $ = [
1090
+ const S = [
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 c.value ? $.push(
1095
+ return c.value ? S.push(
1096
1096
  "border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
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
- }), u = O(ke()), p = r(() => n(l.label) || n(l.name)), b = r(() => {
1099
- const $ = c.value;
1100
- return !$ || !n(l.useLabelInErrors) ? $ : $.replace("Value", p.value);
1101
- }), v = r(
1102
- () => b.value && n(l.hideErrorMessage)
1103
- ), h = r(() => b.value || n(l.help)), k = r(() => !!h.value), B = r(
1104
- () => k.value ? `${n(l.name)}-${u.value}` : void 0
1105
- ), V = r(() => {
1106
- const $ = ["mt-2 text-sm"];
1107
- return $.push(c.value ? "text-danger" : "text-foreground-2"), $.join(" ");
1108
- }), y = () => {
1109
- var $;
1110
- ($ = t.value) == null || $.focus();
1097
+ ) : S.push("border-0 focus:ring-2 focus:ring-outline-2"), l(n.color) === "foundation" ? S.push("bg-foundation shadow-sm hover:shadow") : S.push("bg-foundation-page"), S.join(" ");
1098
+ }), x = O(Ce()), p = r(() => l(n.label) || l(n.name)), b = r(() => {
1099
+ const S = c.value;
1100
+ return !S || !l(n.useLabelInErrors) ? S : S.replace("Value", p.value);
1101
+ }), y = r(
1102
+ () => b.value && l(n.hideErrorMessage)
1103
+ ), h = r(() => b.value || l(n.help)), C = r(() => !!h.value), u = r(
1104
+ () => C.value ? `${l(n.name)}-${x.value}` : void 0
1105
+ ), j = r(() => {
1106
+ const S = ["mt-2 text-sm"];
1107
+ return S.push(c.value ? "text-danger" : "text-foreground-2"), S.join(" ");
1108
+ }), v = () => {
1109
+ var S;
1110
+ (S = t.value) == null || S.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
+ l(n.autoFocus) && v();
1116
1116
  }), {
1117
1117
  coreClasses: f,
1118
1118
  title: p,
1119
1119
  value: o,
1120
- helpTipId: B,
1121
- helpTipClasses: V,
1120
+ helpTipId: u,
1121
+ helpTipClasses: j,
1122
1122
  helpTip: h,
1123
- hideHelpTip: v,
1123
+ hideHelpTip: y,
1124
1124
  errorMessage: b,
1125
1125
  clear: w,
1126
- focus: y,
1126
+ focus: v,
1127
1127
  labelClasses: d
1128
1128
  };
1129
1129
  }
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 = {
1130
+ const Ws = ["for"], Us = { class: "relative" }, qs = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Hs = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), Gs = {
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
- }, Hs = ["id"], $l = /* @__PURE__ */ M({
1133
+ }, Ks = ["id"], Sl = /* @__PURE__ */ A({
1134
1134
  __name: "TextArea",
1135
1135
  props: {
1136
1136
  name: null,
@@ -1151,96 +1151,96 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1151
1151
  color: { default: "page" }
1152
1152
  },
1153
1153
  emits: ["update:modelValue", "change", "input", "clear"],
1154
- setup(e, { expose: l, emit: t }) {
1154
+ setup(e, { expose: n, emit: t }) {
1155
1155
  const s = e, o = O(null), {
1156
1156
  coreClasses: c,
1157
1157
  title: d,
1158
1158
  value: f,
1159
- helpTipId: u,
1159
+ helpTipId: x,
1160
1160
  helpTipClasses: p,
1161
1161
  helpTip: b,
1162
- errorMessage: v,
1162
+ errorMessage: y,
1163
1163
  labelClasses: h,
1164
- clear: k,
1165
- focus: B
1166
- } = Ue({
1164
+ clear: C,
1165
+ focus: u
1166
+ } = We({
1167
1167
  props: ae(s),
1168
1168
  emit: t,
1169
1169
  inputEl: o
1170
- }), V = r(() => {
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 = r(() => {
1171
+ const v = ["pl-2"];
1172
+ return s.showClear && y.value ? v.push("pr-12") : (s.showClear || y.value) && v.push("pr-8"), v.join(" ");
1173
1173
  });
1174
- return l({ focus: B }), (y, w) => (a(), m("div", {
1175
- class: x([e.fullWidth ? "w-full" : ""])
1174
+ return n({ focus: u }), (v, w) => (a(), m("div", {
1175
+ class: k([e.fullWidth ? "w-full" : ""])
1176
1176
  }, [
1177
1177
  i("label", {
1178
1178
  for: e.name,
1179
- class: x(n(h))
1179
+ class: k(l(h))
1180
1180
  }, [
1181
- i("span", null, I(n(d)), 1)
1182
- ], 10, zs),
1183
- i("div", Es, [
1181
+ i("span", null, B(l(d)), 1)
1182
+ ], 10, Ws),
1183
+ i("div", Us, [
1184
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(f) ? f.value = $ : null),
1188
+ "onUpdate:modelValue": w[0] || (w[0] = (S) => ve(f) ? f.value = S : null),
1189
1189
  name: e.name,
1190
- class: [n(c), V.value, "min-h-[4rem]"],
1190
+ class: [l(c), j.value, "min-h-[4rem]"],
1191
1191
  placeholder: e.placeholder,
1192
1192
  disabled: e.disabled,
1193
- "aria-invalid": n(v) ? "true" : "false",
1194
- "aria-describedby": n(u)
1195
- }, y.$attrs, {
1196
- onChange: w[1] || (w[1] = ($) => y.$emit("change", { event: $, value: n(f) })),
1197
- onInput: w[2] || (w[2] = ($) => y.$emit("input", { event: $, value: n(f) }))
1198
- }), null, 16, Us), [
1199
- [Oe, n(f)]
1193
+ "aria-invalid": l(y) ? "true" : "false",
1194
+ "aria-describedby": l(x)
1195
+ }, v.$attrs, {
1196
+ onChange: w[1] || (w[1] = (S) => v.$emit("change", { event: S, value: l(f) })),
1197
+ onInput: w[2] || (w[2] = (S) => v.$emit("input", { event: S, value: l(f) }))
1198
+ }), null, 16, qs), [
1199
+ [Ae, l(f)]
1200
1200
  ]),
1201
1201
  e.showClear ? (a(), m("a", {
1202
1202
  key: 0,
1203
1203
  title: "Clear input",
1204
1204
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
1205
1205
  onClick: w[3] || (w[3] = //@ts-ignore
1206
- (...$) => n(k) && n(k)(...$)),
1206
+ (...S) => l(C) && l(C)(...S)),
1207
1207
  onKeydown: w[4] || (w[4] = //@ts-ignore
1208
- (...$) => n(k) && n(k)(...$))
1208
+ (...S) => l(C) && l(C)(...S))
1209
1209
  }, [
1210
- Ws,
1211
- L(n(ue), {
1210
+ Hs,
1211
+ P(l(ue), {
1212
1212
  class: "h-5 w-5 text-foreground",
1213
1213
  "aria-hidden": "true"
1214
1214
  })
1215
- ], 32)) : S("", !0),
1216
- n(v) ? (a(), m("div", {
1215
+ ], 32)) : I("", !0),
1216
+ l(y) ? (a(), m("div", {
1217
1217
  key: 1,
1218
- class: x([
1218
+ class: k([
1219
1219
  "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1220
1220
  e.showClear ? "pr-8" : "pr-2"
1221
1221
  ])
1222
1222
  }, [
1223
- L(n(Re), {
1223
+ P(l(xe), {
1224
1224
  class: "h-4 w-4 text-danger",
1225
1225
  "aria-hidden": "true"
1226
1226
  })
1227
- ], 2)) : S("", !0),
1228
- e.showRequired && !n(v) ? (a(), m("div", qs, " * ")) : S("", !0)
1227
+ ], 2)) : I("", !0),
1228
+ e.showRequired && !l(y) ? (a(), m("div", Gs, " * ")) : I("", !0)
1229
1229
  ]),
1230
- n(u) ? (a(), m("p", {
1230
+ l(x) ? (a(), m("p", {
1231
1231
  key: 0,
1232
- id: n(u),
1233
- class: x(n(p))
1234
- }, I(n(b)), 11, Hs)) : S("", !0)
1232
+ id: l(x),
1233
+ class: k(l(p))
1234
+ }, B(l(b)), 11, Ks)) : I("", !0)
1235
1235
  ], 2));
1236
1236
  }
1237
- }), Gs = ["for"], Ks = { class: "relative" }, Xs = {
1237
+ }), Xs = ["for"], Ns = { class: "relative" }, Js = {
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__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), Qs = {
1240
+ }, Qs = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ys = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), Zs = {
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
- }, Ys = ["id"], Sl = /* @__PURE__ */ M({
1243
+ }, en = ["id"], Il = /* @__PURE__ */ A({
1244
1244
  inheritAttrs: !1,
1245
1245
  __name: "TextInput",
1246
1246
  props: {
@@ -1376,31 +1376,31 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1376
1376
  }
1377
1377
  },
1378
1378
  emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
1379
- setup(e, { expose: l, emit: t }) {
1379
+ setup(e, { expose: n, emit: t }) {
1380
1380
  const s = e, o = be(), c = O(null), {
1381
1381
  coreClasses: d,
1382
1382
  title: f,
1383
- value: u,
1383
+ value: x,
1384
1384
  helpTipId: p,
1385
1385
  helpTipClasses: b,
1386
- helpTip: v,
1386
+ helpTip: y,
1387
1387
  hideHelpTip: h,
1388
- errorMessage: k,
1389
- clear: B,
1390
- focus: V,
1391
- labelClasses: y
1392
- } = Ue({
1388
+ errorMessage: C,
1389
+ clear: u,
1390
+ focus: j,
1391
+ labelClasses: v
1392
+ } = We({
1393
1393
  props: ae(s),
1394
1394
  emit: t,
1395
1395
  inputEl: c
1396
1396
  }), w = r(() => {
1397
- const R = ["h-5 w-5"];
1398
- return k.value ? R.push("text-danger") : R.push("text-foreground-2"), R.join(" ");
1399
- }), $ = r(
1397
+ const T = ["h-5 w-5"];
1398
+ return C.value ? T.push("text-danger") : T.push("text-foreground-2"), T.join(" ");
1399
+ }), S = r(
1400
1400
  () => ["email", "password"].includes(s.type) || s.customIcon
1401
- ), F = r(() => {
1402
- const R = [];
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(" ");
1401
+ ), R = r(() => {
1402
+ const T = [];
1403
+ return S.value ? T.push("pl-8") : T.push("pl-2"), o["input-right"] || (C.value || s.showClear) && (C.value && s.showClear ? T.push("pr-12") : T.push("pr-8")), T.join(" ");
1404
1404
  }), g = r(() => {
1405
1405
  switch (s.size) {
1406
1406
  case "sm":
@@ -1414,140 +1414,140 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
1414
1414
  return "h-8";
1415
1415
  }
1416
1416
  });
1417
- return l({ focus: V }), (R, E) => (a(), m("div", {
1418
- class: x([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1417
+ return n({ focus: j }), (T, E) => (a(), m("div", {
1418
+ class: k([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1419
1419
  }, [
1420
1420
  i("label", {
1421
1421
  for: e.name,
1422
- class: x(n(y))
1422
+ class: k(l(v))
1423
1423
  }, [
1424
- i("span", null, I(n(f)), 1)
1425
- ], 10, Gs),
1426
- i("div", Ks, [
1427
- $.value ? (a(), m("div", Xs, [
1428
- e.customIcon ? (a(), P(H(e.customIcon), {
1424
+ i("span", null, B(l(f)), 1)
1425
+ ], 10, Xs),
1426
+ i("div", Ns, [
1427
+ S.value ? (a(), m("div", Js, [
1428
+ e.customIcon ? (a(), L(H(e.customIcon), {
1429
1429
  key: 0,
1430
- class: x(w.value),
1430
+ class: k(w.value),
1431
1431
  "aria-hidden": "true"
1432
- }, null, 8, ["class"])) : e.type === "email" ? (a(), P(n(ht), {
1432
+ }, null, 8, ["class"])) : e.type === "email" ? (a(), L(l(ht), {
1433
1433
  key: 1,
1434
- class: x(w.value),
1434
+ class: k(w.value),
1435
1435
  "aria-hidden": "true"
1436
- }, null, 8, ["class"])) : e.type === "password" ? (a(), P(n(mt), {
1436
+ }, null, 8, ["class"])) : e.type === "password" ? (a(), L(l(mt), {
1437
1437
  key: 2,
1438
- class: x(w.value),
1438
+ class: k(w.value),
1439
1439
  "aria-hidden": "true"
1440
- }, null, 8, ["class"])) : S("", !0)
1441
- ])) : S("", !0),
1440
+ }, null, 8, ["class"])) : I("", !0)
1441
+ ])) : I("", !0),
1442
1442
  ne(i("input", oe({
1443
1443
  id: e.name,
1444
1444
  ref_key: "inputElement",
1445
1445
  ref: c,
1446
- "onUpdate:modelValue": E[0] || (E[0] = (z) => ve(u) ? u.value = z : null),
1446
+ "onUpdate:modelValue": E[0] || (E[0] = (F) => ve(x) ? x.value = F : null),
1447
1447
  type: e.type,
1448
1448
  name: e.name,
1449
- class: [n(d), F.value, g.value, e.inputClasses || ""],
1449
+ class: [l(d), R.value, g.value, e.inputClasses || ""],
1450
1450
  placeholder: e.placeholder,
1451
1451
  disabled: e.disabled,
1452
- "aria-invalid": n(k) ? "true" : "false",
1453
- "aria-describedby": n(p),
1452
+ "aria-invalid": l(C) ? "true" : "false",
1453
+ "aria-describedby": l(p),
1454
1454
  role: "textbox"
1455
- }, R.$attrs, {
1456
- onChange: E[1] || (E[1] = (z) => R.$emit("change", { event: z, value: n(u) })),
1457
- onInput: E[2] || (E[2] = (z) => R.$emit("input", { event: z, value: n(u) }))
1458
- }), null, 16, Ns), [
1459
- [Xe, n(u)]
1455
+ }, T.$attrs, {
1456
+ onChange: E[1] || (E[1] = (F) => T.$emit("change", { event: F, value: l(x) })),
1457
+ onInput: E[2] || (E[2] = (F) => T.$emit("input", { event: F, value: l(x) }))
1458
+ }), null, 16, Qs), [
1459
+ [Xe, l(x)]
1460
1460
  ]),
1461
- D(R.$slots, "input-right", {}, () => [
1461
+ z(T.$slots, "input-right", {}, () => [
1462
1462
  e.showClear ? (a(), m("a", {
1463
1463
  key: 0,
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
- (...z) => n(B) && n(B)(...z)),
1467
+ (...F) => l(u) && l(u)(...F)),
1468
1468
  onKeydown: E[4] || (E[4] = //@ts-ignore
1469
- (...z) => n(B) && n(B)(...z))
1469
+ (...F) => l(u) && l(u)(...F))
1470
1470
  }, [
1471
- Js,
1472
- L(n(ue), {
1471
+ Ys,
1472
+ P(l(ue), {
1473
1473
  class: "h-5 w-5 text-foreground",
1474
1474
  "aria-hidden": "true"
1475
1475
  })
1476
- ], 32)) : S("", !0),
1477
- n(k) ? (a(), m("div", {
1476
+ ], 32)) : I("", !0),
1477
+ l(C) ? (a(), m("div", {
1478
1478
  key: 1,
1479
- class: x([
1479
+ class: k([
1480
1480
  "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1481
1481
  e.showClear ? "pr-8" : "pr-2"
1482
1482
  ])
1483
1483
  }, [
1484
- L(n(Re), {
1484
+ P(l(xe), {
1485
1485
  class: "h-4 w-4 text-danger",
1486
1486
  "aria-hidden": "true"
1487
1487
  })
1488
- ], 2)) : S("", !0),
1489
- e.showRequired && !n(k) ? (a(), m("div", Qs, " * ")) : S("", !0)
1488
+ ], 2)) : I("", !0),
1489
+ e.showRequired && !l(C) ? (a(), m("div", Zs, " * ")) : I("", !0)
1490
1490
  ])
1491
1491
  ]),
1492
- n(p) && !n(h) ? (a(), m("p", {
1492
+ l(p) && !l(h) ? (a(), m("p", {
1493
1493
  key: 0,
1494
- id: n(p),
1495
- class: x(n(b))
1496
- }, I(n(v)), 11, Ys)) : S("", !0)
1494
+ id: l(p),
1495
+ class: k(l(b))
1496
+ }, B(l(y)), 11, en)) : I("", !0)
1497
1497
  ], 2));
1498
1498
  }
1499
- }), Zs = /^https?:\/\//, we = /^[\w-_.+]+@[\w-_.+]+$/, en = (e) => (e || "").match(we) ? !0 : "Value should be a valid e-mail address", tn = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(we)) || "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
+ }), tn = /^https?:\/\//, $e = /^[\w-_.+]+@[\w-_.+]+$/, sn = (e) => (e || "").match($e) ? !0 : "Value should be a valid e-mail address", nn = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match($e)) || "Value should be one or multiple comma-delimited e-mail addresses", ln = (e) => (ie(e) && (e = e.trim()), e ? !0 : "Value is required"), an = (e, n) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${n || e}'`, on = (e) => (n) => {
1500
1500
  const { minLength: t, maxLength: s } = e;
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
- }, an = (e) => (l) => {
1501
+ return n = bt(n) ? "" : n, ie(n) ? !Q(t) && n.length < t ? `Value needs to be at least ${t} characters long` : !Q(s) && n.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
1502
+ }, rn = (e) => (n) => {
1503
1503
  const { match: t, message: s } = e;
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
- }, Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1504
+ return ie(n) ? t ? ie(t) ? n.includes(t) ? !0 : s : t.test(n) ? !0 : s : !0 : "Value should be a text string";
1505
+ }, Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1506
1506
  __proto__: null,
1507
- VALID_EMAIL: we,
1508
- VALID_HTTP_URL: Zs,
1509
- isEmail: en,
1510
- isOneOrMultipleEmails: tn,
1511
- isRequired: sn,
1512
- isSameAs: nn,
1513
- isStringOfLength: ln,
1514
- stringContains: an
1507
+ VALID_EMAIL: $e,
1508
+ VALID_HTTP_URL: tn,
1509
+ isEmail: sn,
1510
+ isOneOrMultipleEmails: nn,
1511
+ isRequired: ln,
1512
+ isSameAs: an,
1513
+ isStringOfLength: on,
1514
+ stringContains: rn
1515
1515
  }, Symbol.toStringTag, { value: "Module" }));
1516
- function on(e) {
1516
+ function un(e) {
1517
1517
  const {
1518
- skipCalculation: l,
1518
+ skipCalculation: n,
1519
1519
  elementToWatchForChanges: t,
1520
1520
  itemContainer: s,
1521
1521
  trackResize: o = !1,
1522
1522
  trackMutations: c = !0
1523
1523
  } = e || {}, d = O(0), f = () => {
1524
- const u = s.value;
1525
- if (l != null && l.value || !u)
1524
+ const x = s.value;
1525
+ if (n != null && n.value || !x)
1526
1526
  return;
1527
- const p = u.children;
1528
- let b = 0, v = 0, h;
1529
- for (const k of p) {
1530
- const B = k.offsetTop;
1531
- Q(h) ? (h = B, b += 1) : B === h && (b += 1), v += 1;
1527
+ const p = x.children;
1528
+ let b = 0, y = 0, h;
1529
+ for (const C of p) {
1530
+ const u = C.offsetTop;
1531
+ Q(h) ? (h = u, b += 1) : u === h && (b += 1), y += 1;
1532
1532
  }
1533
- d.value = v - b;
1533
+ d.value = y - b;
1534
1534
  };
1535
- return o && yt(t, f), c && xt(t, f, {
1535
+ return o && kt(t, f), c && Ct(t, f, {
1536
1536
  childList: !0,
1537
1537
  subtree: !0
1538
1538
  }), {
1539
1539
  hiddenItemCount: d
1540
1540
  };
1541
1541
  }
1542
- function rn(e) {
1543
- const { props: l, emit: t, dynamicVisibility: s } = e;
1542
+ function cn(e) {
1543
+ const { props: n, emit: t, dynamicVisibility: s } = e;
1544
1544
  let o;
1545
1545
  if (s) {
1546
1546
  const { elementToWatchForChanges: p, itemContainer: b } = s;
1547
- o = on({
1547
+ o = un({
1548
1548
  skipCalculation: r(() => {
1549
1549
  var h;
1550
- return !((h = l.multiple) != null && h.value);
1550
+ return !((h = n.multiple) != null && h.value);
1551
1551
  }),
1552
1552
  elementToWatchForChanges: p,
1553
1553
  itemContainer: b
@@ -1556,20 +1556,20 @@ function rn(e) {
1556
1556
  o = O(0);
1557
1557
  const c = r({
1558
1558
  get: () => {
1559
- var b, v;
1560
- const p = (b = l.modelValue) == null ? void 0 : b.value;
1561
- return (v = l.multiple) != null && v.value ? q(p) ? p : [] : q(p) ? void 0 : p;
1559
+ var b, y;
1560
+ const p = (b = n.modelValue) == null ? void 0 : b.value;
1561
+ return (y = n.multiple) != null && y.value ? q(p) ? p : [] : q(p) ? void 0 : p;
1562
1562
  },
1563
1563
  set: (p) => {
1564
- var b, v, h;
1565
- if ((b = l.multiple) != null && b.value && !q(p)) {
1564
+ var b, y, h;
1565
+ if ((b = n.multiple) != null && b.value && !q(p)) {
1566
1566
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1567
1567
  return;
1568
- } else if (!((v = l.multiple) != null && v.value) && q(p)) {
1568
+ } else if (!((y = n.multiple) != null && y.value) && q(p)) {
1569
1569
  console.warn("Attempting to set array value in selector w/ multiple=false");
1570
1570
  return;
1571
1571
  }
1572
- t("update:modelValue", (h = l.multiple) != null && h.value ? p || [] : p);
1572
+ t("update:modelValue", (h = n.multiple) != null && h.value ? p || [] : p);
1573
1573
  }
1574
1574
  }), d = (p) => q(p);
1575
1575
  return {
@@ -1580,31 +1580,31 @@ function rn(e) {
1580
1580
  firstItem: (p) => d(p) ? p[0] : p
1581
1581
  };
1582
1582
  }
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
- cn
1585
- ], fn = /* @__PURE__ */ M({
1583
+ const dn = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), fn = /* @__PURE__ */ dn(() => /* @__PURE__ */ i("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), pn = [
1584
+ fn
1585
+ ], hn = /* @__PURE__ */ A({
1586
1586
  __name: "Bar",
1587
1587
  props: {
1588
1588
  loading: { type: Boolean }
1589
1589
  },
1590
1590
  setup(e) {
1591
- return (l, t) => (a(), m("div", {
1592
- class: x([
1591
+ return (n, t) => (a(), m("div", {
1592
+ class: k([
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
- }, dn, 2));
1596
+ }, pn, 2));
1597
1597
  }
1598
1598
  });
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 = {
1599
+ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { class: "flex items-center justify-between w-full" }, gn = { class: "block truncate grow text-left" }, vn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, bn = ["disabled"], yn = {
1600
1600
  key: 0,
1601
1601
  class: "flex flex-col mx-1 mb-1"
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 = {
1602
+ }, xn = /* @__PURE__ */ i("span", { class: "sr-only label text-foreground" }, "Search", -1), kn = { class: "relative" }, Cn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, wn = ["placeholder"], $n = {
1603
1603
  key: 0,
1604
1604
  class: "px-1"
1605
- }, wn = { key: 1 }, $n = /* @__PURE__ */ i("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Sn = {
1606
- class: /* @__PURE__ */ x(["block truncate"])
1607
- }, In = ["id"], Bn = /* @__PURE__ */ M({
1605
+ }, Sn = { key: 1 }, In = /* @__PURE__ */ i("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Bn = {
1606
+ class: /* @__PURE__ */ k(["block truncate"])
1607
+ }, _n = ["id"], Pn = /* @__PURE__ */ A({
1608
1608
  __name: "Base",
1609
1609
  props: {
1610
1610
  multiple: {
@@ -1752,114 +1752,114 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1752
1752
  }
1753
1753
  },
1754
1754
  emits: ["update:modelValue"],
1755
- setup(e, { expose: l, emit: t }) {
1756
- const s = e, { value: o, errorMessage: c } = xe(s.name, s.rules, {
1755
+ setup(e, { expose: n, emit: t }) {
1756
+ const s = e, { value: o, errorMessage: c } = ke(s.name, s.rules, {
1757
1757
  validateOnMount: s.validateOnMount,
1758
1758
  validateOnValueUpdate: s.validateOnValueUpdate,
1759
1759
  initialValue: s.modelValue
1760
- }), d = O(null), f = O(""), u = O([]), p = O(!1), b = O(1), v = O(ke()), h = r(() => n(s.label) || n(s.name)), k = r(() => {
1761
- const C = c.value;
1762
- return !C || !n(s.useLabelInErrors) ? C : C.replace("Value", h.value);
1763
- }), B = r(() => k.value || n(s.help)), V = r(() => !!B.value), y = r(
1764
- () => V.value ? `${n(s.name)}-${v.value}` : void 0
1760
+ }), d = O(null), f = O(""), x = O([]), p = O(!1), b = O(1), y = O(Ce()), h = r(() => l(s.label) || l(s.name)), C = r(() => {
1761
+ const $ = c.value;
1762
+ return !$ || !l(s.useLabelInErrors) ? $ : $.replace("Value", h.value);
1763
+ }), u = r(() => C.value || l(s.help)), j = r(() => !!u.value), v = r(
1764
+ () => j.value ? `${l(s.name)}-${y.value}` : void 0
1765
1765
  ), w = r(
1766
1766
  () => c.value ? "text-danger" : "text-foreground-2"
1767
- ), $ = r(
1767
+ ), S = r(
1768
1768
  () => s.buttonStyle !== "simple" && s.clearable && !s.disabled
1769
- ), F = r(() => {
1770
- const C = ["relative flex group"];
1771
- 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(" ");
1769
+ ), R = r(() => {
1770
+ const $ = ["relative flex group"];
1771
+ return s.buttonStyle !== "simple" && ($.push("hover:shadow rounded-md"), $.push("outline outline-2 outline-primary-muted")), s.fixedHeight && $.push("h-8"), $.join(" ");
1772
1772
  }), g = r(() => {
1773
- const C = [];
1774
- return s.buttonStyle !== "simple" && C.push(
1773
+ const $ = [];
1774
+ return s.buttonStyle !== "simple" && $.push(
1775
1775
  Z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1776
- ), Z.value && C.push("cursor-not-allowed"), C.join(" ");
1777
- }), R = r(() => {
1778
- const C = [
1776
+ ), Z.value && $.push("cursor-not-allowed"), $.join(" ");
1777
+ }), T = r(() => {
1778
+ const $ = [
1779
1779
  "relative z-[1]",
1780
1780
  "flex items-center justify-center text-center shrink-0",
1781
1781
  "rounded-r-md overflow-hidden transition-all",
1782
1782
  "text-foreground",
1783
- $e.value ? `w-6 ${g.value}` : "w-0"
1783
+ Se.value ? `w-6 ${g.value}` : "w-0"
1784
1784
  ];
1785
- return Z.value || (C.push(
1785
+ return Z.value || ($.push(
1786
1786
  "hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
1787
- ), s.buttonStyle === "tinted" ? C.push("bg-outline-3") : C.push("bg-primary-muted")), C.join(" ");
1787
+ ), s.buttonStyle === "tinted" ? $.push("bg-outline-3") : $.push("bg-primary-muted")), $.join(" ");
1788
1788
  }), E = r(() => {
1789
- const C = [
1789
+ const $ = [
1790
1790
  "relative z-[2]",
1791
1791
  "normal rounded-md cursor-pointer transition truncate flex-1",
1792
1792
  "flex items-center",
1793
1793
  g.value
1794
1794
  ];
1795
- 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 && $e.value && C.push("rounded-r-none"), C.join(" ");
1796
- }), z = r(
1795
+ return s.buttonStyle !== "simple" && ($.push("py-2 px-3"), Z.value || (s.buttonStyle === "tinted" ? $.push("bg-foundation-page text-foreground") : $.push("bg-foundation text-foreground"))), S.value && Se.value && $.push("rounded-r-none"), $.join(" ");
1796
+ }), F = r(
1797
1797
  () => !!(s.search && (s.filterPredicate || s.getSearchResults))
1798
- ), X = r(() => z.value && s.getSearchResults), Z = r(
1798
+ ), X = r(() => F.value && s.getSearchResults), Z = r(
1799
1799
  () => s.disabled || !s.items.length && !X.value
1800
- ), W = r({
1800
+ ), U = r({
1801
1801
  get: () => {
1802
- const C = o.value;
1803
- return s.multiple ? q(C) ? C : [] : q(C) ? void 0 : C;
1802
+ const $ = o.value;
1803
+ return s.multiple ? q($) ? $ : [] : q($) ? void 0 : $;
1804
1804
  },
1805
- set: (C) => {
1806
- if (s.multiple && !q(C)) {
1805
+ set: ($) => {
1806
+ if (s.multiple && !q($)) {
1807
1807
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1808
1808
  return;
1809
- } else if (!s.multiple && q(C)) {
1809
+ } else if (!s.multiple && q($)) {
1810
1810
  console.warn("Attempting to set array value in selector w/ multiple=false");
1811
1811
  return;
1812
1812
  }
1813
- let T;
1813
+ let D;
1814
1814
  if (s.multiple)
1815
- T = C || [];
1815
+ D = $ || [];
1816
1816
  else {
1817
- const j = o.value;
1818
- T = s.allowUnset && j && C && ce(j) === ce(C) ? void 0 : C;
1817
+ const V = o.value;
1818
+ D = s.allowUnset && V && $ && ce(V) === ce($) ? void 0 : $;
1819
1819
  }
1820
- s.fullyControlValue ? t("update:modelValue", T) : o.value = T, b.value += 1;
1820
+ s.fullyControlValue ? t("update:modelValue", D) : o.value = D, b.value += 1;
1821
1821
  }
1822
- }), $e = r(() => s.multiple ? W.value.length !== 0 : !!W.value), qe = () => {
1823
- s.multiple ? W.value = [] : W.value = void 0;
1822
+ }), Se = r(() => s.multiple ? U.value.length !== 0 : !!U.value), qe = () => {
1823
+ s.multiple ? U.value = [] : U.value = void 0;
1824
1824
  }, He = r(() => {
1825
- const C = f.value;
1826
- return !z.value || !(C != null && C.length) ? u.value : s.filterPredicate ? u.value.filter(
1827
- (T) => {
1828
- var j;
1829
- return ((j = s.filterPredicate) == null ? void 0 : j.call(s, T, C)) || !1;
1825
+ const $ = f.value;
1826
+ return !F.value || !($ != null && $.length) ? x.value : s.filterPredicate ? x.value.filter(
1827
+ (D) => {
1828
+ var V;
1829
+ return ((V = s.filterPredicate) == null ? void 0 : V.call(s, D, $)) || !1;
1830
1830
  }
1831
- ) : u.value;
1832
- }), Se = (C) => JSON.stringify(C), ce = (C) => s.by ? C[s.by] : C, de = async () => {
1831
+ ) : x.value;
1832
+ }), Ie = ($) => JSON.stringify($), ce = ($) => s.by ? $[s.by] : $, de = async () => {
1833
1833
  if (!(!X.value || !s.getSearchResults)) {
1834
1834
  p.value = !0;
1835
1835
  try {
1836
- u.value = await s.getSearchResults(f.value);
1836
+ x.value = await s.getSearchResults(f.value);
1837
1837
  } finally {
1838
1838
  p.value = !1;
1839
1839
  }
1840
1840
  }
1841
- }, Ge = Ae(de, 1e3), Ke = (C) => {
1842
- const { active: T, disabled: j } = C || {}, { hideCheckmarks: K } = s, N = [
1841
+ }, Ge = ze(de, 1e3), Ke = ($) => {
1842
+ const { active: D, disabled: V } = $ || {}, { hideCheckmarks: K } = s, N = [
1843
1843
  "relative transition cursor-pointer select-none py-1.5 pl-3",
1844
1844
  K ? "" : "pr-9"
1845
1845
  ];
1846
- return j ? N.push("opacity-50 cursor-not-allowed") : N.push(T ? "text-primary" : "text-foreground"), N.join(" ");
1846
+ return V ? N.push("opacity-50 cursor-not-allowed") : N.push(D ? "text-primary" : "text-foreground"), N.join(" ");
1847
1847
  };
1848
1848
  return le(
1849
1849
  () => s.items,
1850
- (C) => {
1851
- u.value = C.slice();
1850
+ ($) => {
1851
+ x.value = $.slice();
1852
1852
  },
1853
1853
  { immediate: !0 }
1854
1854
  ), le(f, () => {
1855
1855
  X.value && Ge();
1856
1856
  }), Y(() => {
1857
1857
  X.value && !s.items.length && de();
1858
- }), l({ triggerSearch: de }), (C, T) => (a(), m("div", null, [
1859
- (a(), P(n(wt), {
1858
+ }), n({ triggerSearch: de }), ($, D) => (a(), m("div", null, [
1859
+ (a(), L(l(St), {
1860
1860
  key: b.value,
1861
- modelValue: W.value,
1862
- "onUpdate:modelValue": T[4] || (T[4] = (j) => W.value = j),
1861
+ modelValue: U.value,
1862
+ "onUpdate:modelValue": D[4] || (D[4] = (V) => U.value = V),
1863
1863
  name: e.name,
1864
1864
  multiple: e.multiple,
1865
1865
  by: e.by,
@@ -1867,38 +1867,38 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1867
1867
  as: "div"
1868
1868
  }, {
1869
1869
  default: _(() => [
1870
- L(n($t), {
1871
- class: x(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
1870
+ P(l(It), {
1871
+ class: k(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
1872
1872
  }, {
1873
1873
  default: _(() => [
1874
- A(I(e.label), 1)
1874
+ M(B(e.label), 1)
1875
1875
  ]),
1876
1876
  _: 1
1877
1877
  }, 8, ["class"]),
1878
1878
  i("div", {
1879
- class: x(F.value)
1879
+ class: k(R.value)
1880
1880
  }, [
1881
- L(n(St), {
1882
- class: x(E.value)
1881
+ P(l(Bt), {
1882
+ class: k(E.value)
1883
1883
  }, {
1884
- default: _(({ open: j }) => [
1885
- i("div", pn, [
1886
- i("div", hn, [
1887
- !W.value || n(q)(W.value) && !W.value.length ? D(C.$slots, "nothing-selected", { key: 0 }, () => [
1888
- A(I(e.label), 1)
1889
- ]) : D(C.$slots, "something-selected", {
1884
+ default: _(({ open: V }) => [
1885
+ i("div", mn, [
1886
+ i("div", gn, [
1887
+ !U.value || l(q)(U.value) && !U.value.length ? z($.$slots, "nothing-selected", { key: 0 }, () => [
1888
+ M(B(e.label), 1)
1889
+ ]) : z($.$slots, "something-selected", {
1890
1890
  key: 1,
1891
- value: W.value
1891
+ value: U.value
1892
1892
  }, () => [
1893
- A(I(Se(W.value)), 1)
1893
+ M(B(Ie(U.value)), 1)
1894
1894
  ])
1895
1895
  ]),
1896
- i("div", mn, [
1897
- j ? (a(), P(n(De), {
1896
+ i("div", vn, [
1897
+ V ? (a(), L(l(De), {
1898
1898
  key: 0,
1899
1899
  class: "h-4 w-4 text-foreground",
1900
1900
  "aria-hidden": "true"
1901
- })) : (a(), P(n(et), {
1901
+ })) : (a(), L(l(et), {
1902
1902
  key: 1,
1903
1903
  class: "h-4 w-4 text-foreground",
1904
1904
  "aria-hidden": "true"
@@ -1908,106 +1908,106 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
1908
1908
  ]),
1909
1909
  _: 3
1910
1910
  }, 8, ["class"]),
1911
- $.value ? ne((a(), m("button", {
1911
+ S.value ? ne((a(), m("button", {
1912
1912
  key: 0,
1913
- class: x(R.value),
1913
+ class: k(T.value),
1914
1914
  disabled: e.disabled,
1915
- onClick: T[0] || (T[0] = (j) => qe())
1915
+ onClick: D[0] || (D[0] = (V) => qe())
1916
1916
  }, [
1917
- L(n(tt), { class: "w-3 h-3" })
1918
- ], 10, gn)), [
1919
- [n(Fe), "Clear"]
1920
- ]) : S("", !0),
1921
- L(ge, {
1917
+ P(l(tt), { class: "w-3 h-3" })
1918
+ ], 10, bn)), [
1919
+ [l(Re), "Clear"]
1920
+ ]) : I("", !0),
1921
+ P(ge, {
1922
1922
  "leave-active-class": "transition ease-in duration-100",
1923
1923
  "leave-from-class": "opacity-100",
1924
1924
  "leave-to-class": "opacity-0"
1925
1925
  }, {
1926
1926
  default: _(() => [
1927
- L(n(It), {
1927
+ P(l(_t), {
1928
1928
  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",
1929
- onFocus: T[3] || (T[3] = (j) => {
1929
+ onFocus: D[3] || (D[3] = (V) => {
1930
1930
  var K;
1931
1931
  return (K = d.value) == null ? void 0 : K.focus();
1932
1932
  })
1933
1933
  }, {
1934
1934
  default: _(() => [
1935
- z.value ? (a(), m("label", vn, [
1936
- bn,
1937
- i("div", yn, [
1938
- i("div", xn, [
1939
- L(n(st), { class: "h-5 w-5 text-foreground" })
1935
+ F.value ? (a(), m("label", yn, [
1936
+ xn,
1937
+ i("div", kn, [
1938
+ i("div", Cn, [
1939
+ P(l(st), { class: "h-5 w-5 text-foreground" })
1940
1940
  ]),
1941
1941
  ne(i("input", {
1942
1942
  ref_key: "searchInput",
1943
1943
  ref: d,
1944
- "onUpdate:modelValue": T[1] || (T[1] = (j) => f.value = j),
1944
+ "onUpdate:modelValue": D[1] || (D[1] = (V) => f.value = V),
1945
1945
  type: "text",
1946
1946
  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",
1947
1947
  placeholder: e.searchPlaceholder,
1948
- onKeydown: T[2] || (T[2] = ye(() => {
1948
+ onKeydown: D[2] || (D[2] = ye(() => {
1949
1949
  }, ["stop"]))
1950
- }, null, 40, kn), [
1951
- [Oe, f.value]
1950
+ }, null, 40, wn), [
1951
+ [Ae, f.value]
1952
1952
  ])
1953
1953
  ])
1954
- ])) : S("", !0),
1954
+ ])) : I("", !0),
1955
1955
  i("div", {
1956
- class: x(["overflow-auto simple-scrollbar", [z.value ? "max-h-52" : "max-h-60"]])
1956
+ class: k(["overflow-auto simple-scrollbar", [F.value ? "max-h-52" : "max-h-60"]])
1957
1957
  }, [
1958
- X.value && p.value ? (a(), m("div", Cn, [
1959
- L(We, { loading: !0 })
1960
- ])) : X.value && !u.value.length ? (a(), m("div", wn, [
1961
- D(C.$slots, "nothing-found", {}, () => [
1962
- $n
1958
+ X.value && p.value ? (a(), m("div", $n, [
1959
+ P(Ue, { loading: !0 })
1960
+ ])) : X.value && !x.value.length ? (a(), m("div", Sn, [
1961
+ z($.$slots, "nothing-found", {}, () => [
1962
+ In
1963
1963
  ])
1964
- ])) : S("", !0),
1965
- !X.value || !p.value ? (a(!0), m(U, { key: 2 }, G(He.value, (j) => {
1964
+ ])) : I("", !0),
1965
+ !X.value || !p.value ? (a(!0), m(W, { key: 2 }, G(He.value, (V) => {
1966
1966
  var K;
1967
- return a(), P(n(Bt), {
1968
- key: ce(j),
1969
- value: j,
1970
- disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, j)) || !1
1967
+ return a(), L(l(Pt), {
1968
+ key: ce(V),
1969
+ value: V,
1970
+ disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, V)) || !1
1971
1971
  }, {
1972
- default: _(({ active: N, selected: Ie }) => {
1973
- var Be, _e;
1972
+ default: _(({ active: N, selected: Be }) => {
1973
+ var _e, Pe;
1974
1974
  return [
1975
1975
  i("li", {
1976
- class: x(
1976
+ class: k(
1977
1977
  Ke({
1978
1978
  active: N,
1979
- disabled: ((Be = e.disabledItemPredicate) == null ? void 0 : Be.call(e, j)) || !1
1979
+ disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e, V)) || !1
1980
1980
  })
1981
1981
  )
1982
1982
  }, [
1983
- i("span", Sn, [
1984
- D(C.$slots, "option", {
1985
- item: j,
1983
+ i("span", Bn, [
1984
+ z($.$slots, "option", {
1985
+ item: V,
1986
1986
  active: N,
1987
- selected: Ie,
1988
- disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e, j)) || !1
1987
+ selected: Be,
1988
+ disabled: ((Pe = e.disabledItemPredicate) == null ? void 0 : Pe.call(e, V)) || !1
1989
1989
  }, () => [
1990
- A(I(Se(j)), 1)
1990
+ M(B(Ie(V)), 1)
1991
1991
  ])
1992
1992
  ]),
1993
- !e.hideCheckmarks && Ie ? (a(), m("span", {
1993
+ !e.hideCheckmarks && Be ? (a(), m("span", {
1994
1994
  key: 0,
1995
- class: x([
1995
+ class: k([
1996
1996
  N ? "text-primary" : "text-foreground",
1997
1997
  "absolute inset-y-0 right-0 flex items-center pr-4"
1998
1998
  ])
1999
1999
  }, [
2000
- L(n(nt), {
2000
+ P(l(nt), {
2001
2001
  class: "h-5 w-5",
2002
2002
  "aria-hidden": "true"
2003
2003
  })
2004
- ], 2)) : S("", !0)
2004
+ ], 2)) : I("", !0)
2005
2005
  ], 2)
2006
2006
  ];
2007
2007
  }),
2008
2008
  _: 2
2009
2009
  }, 1032, ["value", "disabled"]);
2010
- }), 128)) : S("", !0)
2010
+ }), 128)) : I("", !0)
2011
2011
  ], 2)
2012
2012
  ]),
2013
2013
  _: 3
@@ -2019,37 +2019,37 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2019
2019
  ]),
2020
2020
  _: 3
2021
2021
  }, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
2022
- y.value ? (a(), m("p", {
2022
+ v.value ? (a(), m("p", {
2023
2023
  key: 0,
2024
- id: y.value,
2025
- class: x(["mt-2 text-sm", w.value])
2026
- }, I(B.value), 11, In)) : S("", !0)
2024
+ id: v.value,
2025
+ class: k(["mt-2 text-sm", w.value])
2026
+ }, B(u.value), 11, _n)) : I("", !0)
2027
2027
  ]));
2028
2028
  }
2029
- }), _n = /* @__PURE__ */ M({
2029
+ }), Ln = /* @__PURE__ */ A({
2030
2030
  __name: "SourceAppBadge",
2031
2031
  props: {
2032
2032
  sourceApp: null
2033
2033
  },
2034
2034
  setup(e) {
2035
- return (l, t) => (a(), P(ts, {
2035
+ return (n, t) => (a(), L(ns, {
2036
2036
  "color-classes": "text-foreground-on-primary",
2037
2037
  rounded: "",
2038
2038
  style: fe({ backgroundColor: e.sourceApp.bgColor })
2039
2039
  }, {
2040
2040
  default: _(() => [
2041
- A(I(e.sourceApp.short), 1)
2041
+ M(B(e.sourceApp.short), 1)
2042
2042
  ]),
2043
2043
  _: 1
2044
2044
  }, 8, ["style"]));
2045
2045
  }
2046
- }), Ln = {
2046
+ }), jn = {
2047
2047
  key: 0,
2048
2048
  class: "text-foreground-2 normal"
2049
- }, Pn = {
2049
+ }, Vn = {
2050
2050
  key: 1,
2051
2051
  class: "flex items-center"
2052
- }, Vn = { class: "truncate" }, jn = { class: "flex items-center" }, On = { class: "truncate" }, Bl = /* @__PURE__ */ M({
2052
+ }, On = { class: "truncate" }, An = { class: "flex items-center" }, Mn = { class: "truncate" }, _l = /* @__PURE__ */ A({
2053
2053
  __name: "SourceApps",
2054
2054
  props: {
2055
2055
  /**
@@ -2108,17 +2108,17 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2108
2108
  }
2109
2109
  },
2110
2110
  emits: ["update:modelValue"],
2111
- setup(e, { emit: l }) {
2112
- const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: d, isMultiItemArrayValue: f, firstItem: u } = rn({
2111
+ setup(e, { emit: n }) {
2112
+ const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: d, isMultiItemArrayValue: f, firstItem: x } = cn({
2113
2113
  props: ae(t),
2114
- emit: l,
2114
+ emit: n,
2115
2115
  dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
2116
- }), p = (b, v) => b.name.toLocaleLowerCase().includes(v.toLocaleLowerCase());
2117
- return (b, v) => (a(), P(Bn, {
2118
- modelValue: n(c),
2119
- "onUpdate:modelValue": v[0] || (v[0] = (h) => ve(c) ? c.value = h : null),
2116
+ }), p = (b, y) => b.name.toLocaleLowerCase().includes(y.toLocaleLowerCase());
2117
+ return (b, y) => (a(), L(Pn, {
2118
+ modelValue: l(c),
2119
+ "onUpdate:modelValue": y[0] || (y[0] = (h) => ve(c) ? c.value = h : null),
2120
2120
  multiple: e.multiple,
2121
- items: e.items ?? n(vt),
2121
+ items: e.items ?? l(yt),
2122
2122
  search: e.search,
2123
2123
  "search-placeholder": e.searchPlaceholder,
2124
2124
  label: e.label,
@@ -2128,14 +2128,14 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2128
2128
  by: "name"
2129
2129
  }, {
2130
2130
  "nothing-selected": _(() => [
2131
- e.selectorPlaceholder ? (a(), m(U, { key: 0 }, [
2132
- A(I(e.selectorPlaceholder), 1)
2133
- ], 64)) : (a(), m(U, { key: 1 }, [
2134
- A(I(e.multiple ? "Select apps" : "Select an app"), 1)
2131
+ e.selectorPlaceholder ? (a(), m(W, { key: 0 }, [
2132
+ M(B(e.selectorPlaceholder), 1)
2133
+ ], 64)) : (a(), m(W, { key: 1 }, [
2134
+ M(B(e.multiple ? "Select apps" : "Select an app"), 1)
2135
2135
  ], 64))
2136
2136
  ]),
2137
2137
  "something-selected": _(({ value: h }) => [
2138
- n(f)(h) ? (a(), m("div", {
2138
+ l(f)(h) ? (a(), m("div", {
2139
2139
  key: 0,
2140
2140
  ref_key: "elementToWatchForChanges",
2141
2141
  ref: s,
@@ -2146,27 +2146,27 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2146
2146
  ref: o,
2147
2147
  class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
2148
2148
  }, [
2149
- (a(!0), m(U, null, G(h, (k) => (a(), P(_n, {
2150
- key: k.name,
2151
- "source-app": k
2149
+ (a(!0), m(W, null, G(h, (C) => (a(), L(Ln, {
2150
+ key: C.name,
2151
+ "source-app": C
2152
2152
  }, null, 8, ["source-app"]))), 128))
2153
2153
  ], 512),
2154
- n(d) > 0 ? (a(), m("div", Ln, " +" + I(n(d)), 1)) : S("", !0)
2155
- ], 512)) : (a(), m("div", Pn, [
2154
+ l(d) > 0 ? (a(), m("div", jn, " +" + B(l(d)), 1)) : I("", !0)
2155
+ ], 512)) : (a(), m("div", Vn, [
2156
2156
  i("div", {
2157
2157
  class: "h-2 w-2 rounded-full mr-2",
2158
- style: fe({ backgroundColor: n(u)(h).bgColor })
2158
+ style: fe({ backgroundColor: l(x)(h).bgColor })
2159
2159
  }, null, 4),
2160
- i("span", Vn, I(n(u)(h).name), 1)
2160
+ i("span", On, B(l(x)(h).name), 1)
2161
2161
  ]))
2162
2162
  ]),
2163
2163
  option: _(({ item: h }) => [
2164
- i("div", jn, [
2164
+ i("div", An, [
2165
2165
  i("div", {
2166
2166
  class: "h-2 w-2 rounded-full mr-2",
2167
2167
  style: fe({ backgroundColor: h.bgColor })
2168
2168
  }, null, 4),
2169
- i("span", On, I(h.name), 1)
2169
+ i("span", Mn, B(h.name), 1)
2170
2170
  ])
2171
2171
  ]),
2172
2172
  _: 1
@@ -2174,7 +2174,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
2174
2174
  }
2175
2175
  });
2176
2176
  var se = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(se || {});
2177
- const he = bt(), Mn = {
2177
+ const he = xt(), zn = {
2178
2178
  [
2179
2179
  "cmd-or-ctrl"
2180
2180
  /* CtrlOrCmd */
@@ -2185,13 +2185,13 @@ const he = bt(), Mn = {
2185
2185
  ]: he === pe.Mac ? "Opt" : "Alt",
2186
2186
  shift: "Shift"
2187
2187
  };
2188
- function _l(e) {
2189
- const l = (t) => Object.values(se).includes(t);
2190
- return e.map((t) => l(t) ? Mn[t] : t).join("+");
2188
+ function Pl(e) {
2189
+ const n = (t) => Object.values(se).includes(t);
2190
+ return e.map((t) => n(t) ? zn[t] : t).join("+");
2191
2191
  }
2192
- function Ll(e, ...l) {
2193
- kt(
2194
- l[0],
2192
+ function Ll(e, ...n) {
2193
+ wt(
2194
+ n[0],
2195
2195
  (t) => {
2196
2196
  const s = t.getModifierState("Alt"), o = he === pe.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), c = t.getModifierState("Shift");
2197
2197
  for (const d of e)
@@ -2209,25 +2209,25 @@ function Ll(e, ...l) {
2209
2209
  return;
2210
2210
  break;
2211
2211
  }
2212
- l[1](t);
2212
+ n[1](t);
2213
2213
  },
2214
- l[2]
2214
+ n[2]
2215
2215
  );
2216
2216
  }
2217
- function Pl(e) {
2218
- const l = (e == null ? void 0 : e.model) || O(), t = r({
2219
- get: () => !!l.value,
2220
- set: (s) => l.value = s ? !0 : void 0
2217
+ function jl(e) {
2218
+ const n = (e == null ? void 0 : e.model) || O(), t = r({
2219
+ get: () => !!n.value,
2220
+ set: (s) => n.value = s ? !0 : void 0
2221
2221
  });
2222
- return { model: l, isChecked: t };
2222
+ return { model: n, isChecked: t };
2223
2223
  }
2224
- 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 = {
2224
+ const Dn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Tn = { class: "fixed inset-0 z-10 overflow-y-auto" }, Rn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Fn = {
2225
2225
  key: 0,
2226
2226
  class: "flex items-center justify-center shadow p-4 relative z-10 bg-foundation rounded-t-lg"
2227
- }, Fn = { class: "text-2xl font-bold" }, zn = { class: "p-4 sm:p-6" }, En = {
2227
+ }, En = { class: "text-2xl font-bold" }, Wn = { class: "p-4 sm:p-6" }, Un = {
2228
2228
  key: 2,
2229
2229
  class: "flex p-4 sm:px-6 sm:py-5 border-t gap-2 border-outline-3"
2230
- }, Vl = /* @__PURE__ */ M({
2230
+ }, Vl = /* @__PURE__ */ A({
2231
2231
  __name: "Dialog",
2232
2232
  props: {
2233
2233
  open: { type: Boolean },
@@ -2239,10 +2239,10 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2239
2239
  onSubmit: { type: Function }
2240
2240
  },
2241
2241
  emits: ["update:open", "fully-closed"],
2242
- setup(e, { emit: l }) {
2242
+ setup(e, { emit: n }) {
2243
2243
  const t = e, s = be(), o = r(() => !!t.onSubmit), c = r(() => t.buttons || s.buttons), d = r({
2244
2244
  get: () => t.open,
2245
- set: (b) => l("update:open", b)
2245
+ set: (b) => n("update:open", b)
2246
2246
  }), f = r(() => {
2247
2247
  switch (t.maxWidth) {
2248
2248
  case "sm":
@@ -2256,24 +2256,24 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2256
2256
  default:
2257
2257
  return 1e4;
2258
2258
  }
2259
- }), u = r(() => {
2259
+ }), x = r(() => {
2260
2260
  const b = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
2261
2261
  return !t.title && !c.value && b.push("px-4 pt-4 pb-4", "sm:p-6"), f.value >= 1 && b.push("md:max-w-2xl"), f.value >= 2 && b.push("lg:max-w-4xl"), f.value >= 3 && b.push("xl:max-w-6xl"), f.value >= 4 && b.push("2xl:max-w-7xl"), b.join(" ");
2262
2262
  }), p = () => {
2263
2263
  t.preventCloseOnClickOutside || (d.value = !1);
2264
2264
  };
2265
- return (b, v) => (a(), P(n(_t), {
2265
+ return (b, y) => (a(), L(l(Lt), {
2266
2266
  as: "template",
2267
2267
  show: d.value
2268
2268
  }, {
2269
2269
  default: _(() => [
2270
- L(n(Lt), {
2270
+ P(l(jt), {
2271
2271
  as: "div",
2272
2272
  class: "relative z-40",
2273
2273
  onClose: p
2274
2274
  }, {
2275
2275
  default: _(() => [
2276
- L(n(Ve), {
2276
+ P(l(Ve), {
2277
2277
  as: "template",
2278
2278
  enter: "ease-out duration-300",
2279
2279
  "enter-from": "opacity-0",
@@ -2283,13 +2283,13 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2283
2283
  "leave-to": "opacity-0"
2284
2284
  }, {
2285
2285
  default: _(() => [
2286
- An
2286
+ Dn
2287
2287
  ]),
2288
2288
  _: 1
2289
2289
  }),
2290
- i("div", Dn, [
2291
- i("div", Tn, [
2292
- L(n(Ve), {
2290
+ i("div", Tn, [
2291
+ i("div", Rn, [
2292
+ P(l(Ve), {
2293
2293
  as: "template",
2294
2294
  enter: "ease-out duration-300",
2295
2295
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -2297,43 +2297,43 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2297
2297
  leave: "ease-in duration-200",
2298
2298
  "leave-from": "opacity-100 translate-y-0 sm:scale-100",
2299
2299
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
2300
- onAfterLeave: v[1] || (v[1] = (h) => b.$emit("fully-closed"))
2300
+ onAfterLeave: y[1] || (y[1] = (h) => b.$emit("fully-closed"))
2301
2301
  }, {
2302
2302
  default: _(() => [
2303
- L(n(Pt), {
2304
- class: x([
2303
+ P(l(Vt), {
2304
+ class: k([
2305
2305
  "transform rounded-lg bg-foundation text-left shadow-xl transition-all",
2306
- u.value
2306
+ x.value
2307
2307
  ]),
2308
2308
  as: o.value ? "form" : "div",
2309
2309
  onSubmit: ye(e.onSubmit, ["prevent"])
2310
2310
  }, {
2311
2311
  default: _(() => [
2312
- e.title ? (a(), m("div", Rn, [
2313
- i("h4", Fn, I(e.title), 1)
2314
- ])) : S("", !0),
2315
- e.hideCloser ? S("", !0) : (a(), m("button", {
2312
+ e.title ? (a(), m("div", Fn, [
2313
+ i("h4", En, B(e.title), 1)
2314
+ ])) : I("", !0),
2315
+ e.hideCloser ? I("", !0) : (a(), m("button", {
2316
2316
  key: 1,
2317
2317
  class: "absolute z-20 top-5 right-4 text-foreground",
2318
- onClick: v[0] || (v[0] = (h) => d.value = !1)
2318
+ onClick: y[0] || (y[0] = (h) => d.value = !1)
2319
2319
  }, [
2320
- L(n(ct), { class: "h-6 w-6" })
2320
+ P(l(ct), { class: "h-6 w-6" })
2321
2321
  ])),
2322
- i("div", zn, [
2323
- D(b.$slots, "default", {}, () => [
2324
- A("Put your content here!")
2322
+ i("div", Wn, [
2323
+ z(b.$slots, "default", {}, () => [
2324
+ M("Put your content here!")
2325
2325
  ])
2326
2326
  ]),
2327
- c.value ? (a(), m("div", En, [
2328
- e.buttons ? (a(!0), m(U, { key: 0 }, G(e.buttons, (h, k) => (a(), P(n(re), oe({ key: k }, h.props, {
2327
+ c.value ? (a(), m("div", Un, [
2328
+ e.buttons ? (a(!0), m(W, { key: 0 }, G(e.buttons, (h, C) => (a(), L(l(re), oe({ key: C }, h.props, {
2329
2329
  onClick: h.onClick
2330
2330
  }), {
2331
2331
  default: _(() => [
2332
- A(I(h.text), 1)
2332
+ M(B(h.text), 1)
2333
2333
  ]),
2334
2334
  _: 2
2335
- }, 1040, ["onClick"]))), 128)) : D(b.$slots, "buttons", { key: 1 })
2336
- ])) : S("", !0)
2335
+ }, 1040, ["onClick"]))), 128)) : z(b.$slots, "buttons", { key: 1 })
2336
+ ])) : I("", !0)
2337
2337
  ]),
2338
2338
  _: 3
2339
2339
  }, 8, ["class", "as", "onSubmit"])
@@ -2349,7 +2349,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2349
2349
  _: 3
2350
2350
  }, 8, ["show"]));
2351
2351
  }
2352
- }), Un = { class: "inline-flex items-center space-x-2" }, Wn = { class: "label-light" }, jl = /* @__PURE__ */ M({
2352
+ }), qn = { class: "inline-flex items-center space-x-2" }, Hn = { class: "label-light" }, Ol = /* @__PURE__ */ A({
2353
2353
  __name: "Disclosure",
2354
2354
  props: {
2355
2355
  title: null,
@@ -2357,12 +2357,12 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2357
2357
  color: { default: "default" }
2358
2358
  },
2359
2359
  setup(e) {
2360
- const l = e, t = r(() => {
2360
+ const n = e, t = r(() => {
2361
2361
  const o = [
2362
2362
  "pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
2363
2363
  "ring-1 font-medium"
2364
2364
  ];
2365
- switch (l.color) {
2365
+ switch (n.color) {
2366
2366
  case "warning":
2367
2367
  o.push(
2368
2368
  "border-warning text-warning ring-warning-lighter hover:ring-warning"
@@ -2386,7 +2386,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2386
2386
  return o.join(" ");
2387
2387
  }), s = r(() => {
2388
2388
  const o = ["mt-4 px-3 py-1 border-x "];
2389
- switch (l.color) {
2389
+ switch (n.color) {
2390
2390
  case "warning":
2391
2391
  o.push("border-warning-lighter");
2392
2392
  break;
@@ -2404,32 +2404,32 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2404
2404
  return o.join(" ");
2405
2405
  });
2406
2406
  return (o, c) => (a(), m("div", null, [
2407
- L(n(Vt), null, {
2407
+ P(l(Ot), null, {
2408
2408
  default: _(({ open: d }) => [
2409
- L(n(jt), {
2410
- class: x(t.value)
2409
+ P(l(At), {
2410
+ class: k(t.value)
2411
2411
  }, {
2412
2412
  default: _(() => [
2413
- i("div", Un, [
2414
- e.icon ? (a(), P(H(e.icon), {
2413
+ i("div", qn, [
2414
+ e.icon ? (a(), L(H(e.icon), {
2415
2415
  key: 0,
2416
2416
  class: "h-4 w-4"
2417
- })) : S("", !0),
2418
- i("span", null, I(e.title), 1)
2417
+ })) : I("", !0),
2418
+ i("span", null, B(e.title), 1)
2419
2419
  ]),
2420
- L(n(De), {
2421
- class: x([d ? "" : "rotate-180 transform", "h-5 w-5"])
2420
+ P(l(De), {
2421
+ class: k([d ? "" : "rotate-180 transform", "h-5 w-5"])
2422
2422
  }, null, 8, ["class"])
2423
2423
  ]),
2424
2424
  _: 2
2425
2425
  }, 1032, ["class"]),
2426
- L(n(Ot), {
2427
- class: x(s.value)
2426
+ P(l(Mt), {
2427
+ class: k(s.value)
2428
2428
  }, {
2429
2429
  default: _(() => [
2430
- i("div", Wn, [
2431
- D(o.$slots, "default", {}, () => [
2432
- A("Panel contents")
2430
+ i("div", Hn, [
2431
+ z(o.$slots, "default", {}, () => [
2432
+ M("Panel contents")
2433
2433
  ])
2434
2434
  ])
2435
2435
  ]),
@@ -2442,20 +2442,20 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2442
2442
  }
2443
2443
  });
2444
2444
  var J = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(J || {});
2445
- const Ol = /* @__PURE__ */ M({
2445
+ const Al = /* @__PURE__ */ A({
2446
2446
  __name: "GridListToggle",
2447
2447
  props: {
2448
2448
  modelValue: null
2449
2449
  },
2450
2450
  emits: ["click", "update:modelValue"],
2451
- setup(e, { emit: l }) {
2451
+ setup(e, { emit: n }) {
2452
2452
  const t = e, s = r({
2453
2453
  get: () => t.modelValue || J.Grid,
2454
- set: (d) => l("update:modelValue", d)
2454
+ set: (d) => n("update:modelValue", d)
2455
2455
  }), o = r(
2456
2456
  () => s.value === J.Grid ? lt : at
2457
2457
  ), c = (d) => {
2458
- l("click", d);
2458
+ n("click", d);
2459
2459
  const f = s.value === J.Grid ? J.List : J.Grid;
2460
2460
  s.value = f;
2461
2461
  };
@@ -2463,19 +2463,19 @@ const Ol = /* @__PURE__ */ M({
2463
2463
  class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
2464
2464
  onClick: c
2465
2465
  }, [
2466
- (a(), P(H(o.value), { class: "h-6 w-6" }))
2466
+ (a(), L(H(o.value), { class: "h-6 w-6" }))
2467
2467
  ]));
2468
2468
  }
2469
2469
  });
2470
- 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 || {});
2471
- function Hn(e, l) {
2472
- if (!Ce)
2470
+ var Gn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(Gn || {}), me = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(me || {});
2471
+ function Kn(e, n) {
2472
+ if (!we)
2473
2473
  return;
2474
2474
  const {
2475
2475
  wait: t = 100,
2476
2476
  throttleOrDebounce: s = 0
2477
2477
  /* Throttle */
2478
- } = l || {}, o = t ? s === 0 ? Qe(e, t) : Ae(e, t) : e;
2478
+ } = n || {}, o = t ? s === 0 ? Qe(e, t) : ze(e, t) : e;
2479
2479
  Y(() => window.addEventListener("resize", o)), Me(() => window.removeEventListener("resize", o));
2480
2480
  }
2481
2481
  function Ml(e) {
@@ -2485,27 +2485,27 @@ function Ml(e) {
2485
2485
  window.removeEventListener("beforeunload", e);
2486
2486
  });
2487
2487
  }
2488
- function Gn(e) {
2489
- const { el: l, defaultDirection: t } = e, s = O(
2488
+ function Xn(e) {
2489
+ const { el: n, defaultDirection: t } = e, s = O(
2490
2490
  Q(t) ? 1 : t
2491
2491
  /* Right */
2492
2492
  ), o = r(() => {
2493
- const d = n(e.stopUpdatesBelowWidth);
2493
+ const d = l(e.stopUpdatesBelowWidth);
2494
2494
  if (!Q(d))
2495
2495
  return d;
2496
- const f = n(l);
2496
+ const f = l(n);
2497
2497
  return f != null && f.offsetWidth ? f.offsetWidth * 2 : void 0;
2498
2498
  }), c = () => {
2499
- if (!Ce)
2499
+ if (!we)
2500
2500
  return;
2501
- const d = n(l);
2501
+ const d = l(n);
2502
2502
  if (!d)
2503
2503
  return;
2504
- const f = d.getBoundingClientRect(), u = f.x + f.width > window.innerWidth, p = f.x < 0;
2505
- u && p || !Q(o.value) && window.innerWidth < o.value || (u ? s.value = 0 : p && (s.value = 1));
2504
+ const f = d.getBoundingClientRect(), x = f.x + f.width > window.innerWidth, p = f.x < 0;
2505
+ x && p || !Q(o.value) && window.innerWidth < o.value || (x ? s.value = 0 : p && (s.value = 1));
2506
2506
  };
2507
- return Hn(() => c()), le(
2508
- () => n(l),
2507
+ return Kn(() => c()), le(
2508
+ () => l(n),
2509
2509
  (d) => {
2510
2510
  d && c();
2511
2511
  }
@@ -2514,15 +2514,15 @@ function Gn(e) {
2514
2514
  recalculateDirection: c
2515
2515
  };
2516
2516
  }
2517
- const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2517
+ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
2518
2518
  __name: "Menu",
2519
2519
  props: {
2520
2520
  open: { type: Boolean },
2521
2521
  items: null
2522
2522
  },
2523
2523
  emits: ["update:open", "chosen"],
2524
- setup(e, { emit: l }) {
2525
- const t = e, s = O(null), { direction: o } = Gn({
2524
+ setup(e, { emit: n }) {
2525
+ const t = e, s = O(null), { direction: o } = Xn({
2526
2526
  el: r(() => {
2527
2527
  var h;
2528
2528
  return ((h = s.value) == null ? void 0 : h.el) || null;
@@ -2531,46 +2531,46 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2531
2531
  stopUpdatesBelowWidth: 300
2532
2532
  }), c = O(null), d = O(!1), f = r({
2533
2533
  get: () => t.open || !1,
2534
- set: (h) => l("update:open", h)
2535
- }), u = (h) => {
2536
- const { active: k, disabled: B } = h, V = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2537
- return k ? V.push("bg-primary text-foreground-on-primary") : B ? V.push("text-foreground-disabled") : V.push("text-foreground"), V.join(" ");
2538
- }, p = (h, k) => {
2539
- l("chosen", { item: h, event: k });
2534
+ set: (h) => n("update:open", h)
2535
+ }), x = (h) => {
2536
+ const { active: C, disabled: u } = h, j = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2537
+ return C ? j.push("bg-primary text-foreground-on-primary") : u ? j.push("text-foreground-disabled") : j.push("text-foreground"), j.join(" ");
2538
+ }, p = (h, C) => {
2539
+ n("chosen", { item: h, event: C });
2540
2540
  }, b = () => {
2541
2541
  var h;
2542
2542
  return (h = c.value) == null ? void 0 : h.el.click();
2543
- }, v = (h) => {
2544
- const k = !!h;
2545
- return d.value = k, k;
2543
+ }, y = (h) => {
2544
+ const C = !!h;
2545
+ return d.value = C, C;
2546
2546
  };
2547
- return le(d, (h, k) => {
2548
- h !== k && (f.value = h);
2547
+ return le(d, (h, C) => {
2548
+ h !== C && (f.value = h);
2549
2549
  }), le(f, (h) => {
2550
2550
  (h && !d.value || !h && d.value) && b();
2551
- }), (h, k) => (a(), P(n(Mt), {
2551
+ }), (h, C) => (a(), L(l(zt), {
2552
2552
  as: "div",
2553
2553
  class: "relative inline-block"
2554
2554
  }, {
2555
- default: _(({ open: B }) => [
2555
+ default: _(({ open: u }) => [
2556
2556
  i("div", null, [
2557
- L(n(At), {
2557
+ P(l(Dt), {
2558
2558
  ref_key: "menuButton",
2559
2559
  ref: c,
2560
2560
  class: "hidden",
2561
- onClick: k[0] || (k[0] = ye(() => {
2561
+ onClick: C[0] || (C[0] = ye(() => {
2562
2562
  }, ["stop", "prevent"]))
2563
2563
  }, null, 512),
2564
2564
  i("div", {
2565
- class: x(B ? "pointer-events-none" : "")
2565
+ class: k(u ? "pointer-events-none" : "")
2566
2566
  }, [
2567
- D(h.$slots, "default", {
2567
+ z(h.$slots, "default", {
2568
2568
  toggle: b,
2569
- open: v(B)
2569
+ open: y(u)
2570
2570
  })
2571
2571
  ], 2)
2572
2572
  ]),
2573
- L(ge, {
2573
+ P(ge, {
2574
2574
  "enter-active-class": "transition duration-100 ease-out",
2575
2575
  "enter-from-class": "transform scale-95 opacity-0",
2576
2576
  "enter-to-class": "transform scale-100 opacity-100",
@@ -2579,36 +2579,36 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2579
2579
  "leave-to-class": "transform scale-95 opacity-0"
2580
2580
  }, {
2581
2581
  default: _(() => [
2582
- L(n(Dt), {
2582
+ P(l(Tt), {
2583
2583
  ref_key: "menuItems",
2584
2584
  ref: s,
2585
- class: x([
2585
+ class: k([
2586
2586
  "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",
2587
- n(o) === n(me).Left ? "right-0" : ""
2587
+ l(o) === l(me).Left ? "right-0" : ""
2588
2588
  ])
2589
2589
  }, {
2590
2590
  default: _(() => [
2591
- (a(!0), m(U, null, G(e.items, (V, y) => (a(), m("div", {
2592
- key: y,
2591
+ (a(!0), m(W, null, G(e.items, (j, v) => (a(), m("div", {
2592
+ key: v,
2593
2593
  class: "px-1 py-1"
2594
2594
  }, [
2595
- (a(!0), m(U, null, G(V, (w) => (a(), P(n(Tt), {
2595
+ (a(!0), m(W, null, G(j, (w) => (a(), L(l(Rt), {
2596
2596
  key: w.id,
2597
2597
  disabled: w.disabled
2598
2598
  }, {
2599
- default: _(({ active: $, disabled: F }) => [
2599
+ default: _(({ active: S, disabled: R }) => [
2600
2600
  ne((a(), m("span", null, [
2601
2601
  i("button", {
2602
- class: x(u({ active: $, disabled: F })),
2603
- disabled: F,
2602
+ class: k(x({ active: S, disabled: R })),
2603
+ disabled: R,
2604
2604
  onClick: (g) => p(w, g)
2605
2605
  }, [
2606
- D(h.$slots, "item", { item: w }, () => [
2607
- A(I(w.title), 1)
2606
+ z(h.$slots, "item", { item: w }, () => [
2607
+ M(B(w.title), 1)
2608
2608
  ])
2609
- ], 10, Kn)
2609
+ ], 10, Nn)
2610
2610
  ])), [
2611
- [n(Fe), w.disabled && w.disabledTooltip]
2611
+ [l(Re), w.disabled && w.disabledTooltip]
2612
2612
  ])
2613
2613
  ]),
2614
2614
  _: 2
@@ -2624,33 +2624,33 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2624
2624
  _: 3
2625
2625
  }));
2626
2626
  }
2627
- }), Xn = { class: "flex flex-col space-y-4" }, Nn = { class: "flex space-x-6" }, Dl = /* @__PURE__ */ M({
2627
+ }), Jn = { class: "flex flex-col space-y-4" }, Qn = { class: "flex space-x-6" }, Dl = /* @__PURE__ */ A({
2628
2628
  __name: "Tabs",
2629
2629
  props: {
2630
2630
  items: null
2631
2631
  },
2632
2632
  setup(e) {
2633
- const l = e, t = O(null), s = r(() => t.value && l.items.find((c) => c.id === t.value) || l.items[0]), o = (c) => {
2633
+ const n = e, t = O(null), s = r(() => t.value && n.items.find((c) => c.id === t.value) || n.items[0]), o = (c) => {
2634
2634
  t.value = c.id;
2635
2635
  };
2636
- return (c, d) => (a(), m("div", Xn, [
2637
- i("div", Nn, [
2638
- (a(!0), m(U, null, G(e.items, (f) => (a(), P(re, {
2636
+ return (c, d) => (a(), m("div", Jn, [
2637
+ i("div", Qn, [
2638
+ (a(!0), m(W, null, G(e.items, (f) => (a(), L(re, {
2639
2639
  key: f.id,
2640
2640
  link: "",
2641
2641
  color: s.value.id === f.id ? "default" : "secondary",
2642
- onClick: (u) => o(f)
2642
+ onClick: (x) => o(f)
2643
2643
  }, {
2644
2644
  default: _(() => [
2645
- A(I(f.title), 1)
2645
+ M(B(f.title), 1)
2646
2646
  ]),
2647
2647
  _: 2
2648
2648
  }, 1032, ["color", "onClick"]))), 128))
2649
2649
  ]),
2650
- D(c.$slots, "default", { activeItem: s.value })
2650
+ z(c.$slots, "default", { activeItem: s.value })
2651
2651
  ]));
2652
2652
  }
2653
- }), 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({
2653
+ }), Yn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Zn = { class: "inline-flex items-center space-x-1" }, el = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), tl = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, sl = { class: "inline-flex items-center space-x-1" }, nl = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Tl = /* @__PURE__ */ A({
2654
2654
  __name: "InfiniteLoading",
2655
2655
  props: {
2656
2656
  settings: null,
@@ -2658,58 +2658,58 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2658
2658
  },
2659
2659
  emits: ["infinite"],
2660
2660
  setup(e) {
2661
- const l = O(null), t = O(!1);
2662
- return Ce && Y(() => {
2661
+ const n = O(null), t = O(!1);
2662
+ return we && Y(() => {
2663
2663
  const s = setInterval(() => {
2664
2664
  var o;
2665
- (o = l.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
2665
+ (o = n.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
2666
2666
  }, 200);
2667
2667
  }), (s, o) => (a(), m("div", {
2668
2668
  ref_key: "wrapper",
2669
- ref: l
2669
+ ref: n
2670
2670
  }, [
2671
- t.value ? (a(), P(n(Rt), oe({ key: 0 }, s.$props.settings || {}, {
2671
+ t.value ? (a(), L(l(Ft), oe({ key: 0 }, s.$props.settings || {}, {
2672
2672
  onInfinite: o[0] || (o[0] = (c) => s.$emit("infinite", c))
2673
2673
  }), {
2674
2674
  spinner: _(() => [
2675
- L(We, {
2675
+ P(Ue, {
2676
2676
  loading: !0,
2677
2677
  class: "my-2"
2678
2678
  })
2679
2679
  ]),
2680
2680
  complete: _(() => [
2681
- i("div", Jn, [
2682
- i("div", Qn, [
2683
- L(n(dt), { class: "w-5 h-5 text-success" }),
2684
- Yn
2681
+ i("div", Yn, [
2682
+ i("div", Zn, [
2683
+ P(l(dt), { class: "w-5 h-5 text-success" }),
2684
+ el
2685
2685
  ])
2686
2686
  ])
2687
2687
  ]),
2688
2688
  error: _(({ retry: c }) => [
2689
- i("div", Zn, [
2690
- i("div", el, [
2691
- L(n(ft), { class: "w-5 h-5 text-danger" }),
2692
- tl
2689
+ i("div", tl, [
2690
+ i("div", sl, [
2691
+ P(l(ft), { class: "w-5 h-5 text-danger" }),
2692
+ nl
2693
2693
  ]),
2694
- e.allowRetry ? (a(), P(re, {
2694
+ e.allowRetry ? (a(), L(re, {
2695
2695
  key: 0,
2696
2696
  onClick: c
2697
2697
  }, {
2698
2698
  default: _(() => [
2699
- A("Retry")
2699
+ M("Retry")
2700
2700
  ]),
2701
2701
  _: 2
2702
- }, 1032, ["onClick"])) : S("", !0)
2702
+ }, 1032, ["onClick"])) : I("", !0)
2703
2703
  ])
2704
2704
  ]),
2705
2705
  _: 1
2706
- }, 16)) : S("", !0)
2706
+ }, 16)) : I("", !0)
2707
2707
  ], 512));
2708
2708
  }
2709
- }), sl = { class: "relative group" }, nl = {
2709
+ }), ll = { class: "relative group" }, al = {
2710
2710
  key: 0,
2711
2711
  class: "absolute -inset-1 bg-blue-300 dark:bg-blue-500 opacity-5 dark:opacity-0 rounded-md blur-sm group-hover:opacity-60 dark:group-hover:opacity-30 transition duration-500"
2712
- }, Rl = /* @__PURE__ */ M({
2712
+ }, Rl = /* @__PURE__ */ A({
2713
2713
  __name: "Panel",
2714
2714
  props: {
2715
2715
  /**
@@ -2746,7 +2746,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2746
2746
  }
2747
2747
  },
2748
2748
  emits: ["submit"],
2749
- setup(e, { emit: l }) {
2749
+ setup(e, { emit: n }) {
2750
2750
  const t = e, s = r(
2751
2751
  () => t.customPadding ? "" : "px-4 py-4 sm:px-6"
2752
2752
  ), o = r(
@@ -2755,53 +2755,75 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2755
2755
  const d = ["rounded-lg"];
2756
2756
  return t.noShadow || d.push("shadow"), t.ring && d.push("ring-outline-2 hover:ring-2"), t.panelClasses && d.push(t.panelClasses), d.join(" ");
2757
2757
  });
2758
- return (d, f) => (a(), m("div", sl, [
2759
- e.fancyGlow ? (a(), m("div", nl)) : S("", !0),
2760
- (a(), P(H(e.form ? "form" : "div"), {
2761
- class: x([
2758
+ return (d, f) => (a(), m("div", ll, [
2759
+ e.fancyGlow ? (a(), m("div", al)) : I("", !0),
2760
+ (a(), L(H(e.form ? "form" : "div"), {
2761
+ class: k([
2762
2762
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
2763
2763
  c.value
2764
2764
  ]),
2765
- onSubmit: f[0] || (f[0] = (u) => l("submit", u))
2765
+ onSubmit: f[0] || (f[0] = (x) => n("submit", x))
2766
2766
  }, {
2767
2767
  default: _(() => [
2768
2768
  d.$slots.header ? (a(), m("div", {
2769
2769
  key: 0,
2770
- class: x(s.value)
2770
+ class: k(s.value)
2771
2771
  }, [
2772
- D(d.$slots, "header")
2773
- ], 2)) : S("", !0),
2772
+ z(d.$slots, "header")
2773
+ ], 2)) : I("", !0),
2774
2774
  i("div", {
2775
- class: x(["grow", o.value])
2775
+ class: k(["grow", o.value])
2776
2776
  }, [
2777
- D(d.$slots, "default")
2777
+ z(d.$slots, "default")
2778
2778
  ], 2),
2779
2779
  d.$slots.footer ? (a(), m("div", {
2780
2780
  key: 1,
2781
- class: x(s.value)
2781
+ class: k(s.value)
2782
2782
  }, [
2783
- D(d.$slots, "footer")
2784
- ], 2)) : S("", !0)
2783
+ z(d.$slots, "footer")
2784
+ ], 2)) : I("", !0)
2785
2785
  ]),
2786
2786
  _: 3
2787
2787
  }, 40, ["class"]))
2788
2788
  ]));
2789
2789
  }
2790
- }), ll = { class: "flex-shrink-0" }, al = {
2791
- key: 0,
2792
- class: "mt-2 text-sm"
2793
- }, ol = /* @__PURE__ */ i("span", { class: "sr-only" }, "Dismiss", -1), Fl = /* @__PURE__ */ M({
2790
+ }), ol = { class: "flex-shrink-0" }, rl = /* @__PURE__ */ i("span", { class: "sr-only" }, "Dismiss", -1), Fl = /* @__PURE__ */ A({
2794
2791
  __name: "Alert",
2795
2792
  props: {
2796
2793
  color: { default: "success" },
2797
2794
  withDismiss: { type: Boolean },
2798
- actions: null
2795
+ actions: null,
2796
+ customIcon: null,
2797
+ size: { default: "default" }
2799
2798
  },
2800
2799
  emits: ["dismiss"],
2801
2800
  setup(e) {
2802
- const l = e, t = be(), s = r(() => !!t.description), o = r(() => {
2801
+ const n = e, t = be(), s = r(() => !!t.description), o = r(() => {
2802
+ if (n.customIcon)
2803
+ return n.customIcon;
2804
+ switch (n.color) {
2805
+ case "info":
2806
+ return vt;
2807
+ case "warning":
2808
+ return xe;
2809
+ case "danger":
2810
+ return gt;
2811
+ case "success":
2812
+ default:
2813
+ return Te;
2814
+ }
2815
+ }), c = r(() => {
2803
2816
  const u = [];
2804
- switch (u.push(s.value ? "p-4" : "p-2"), l.color) {
2817
+ switch (n.size) {
2818
+ case "xs":
2819
+ u.push("p-1");
2820
+ break;
2821
+ case "default":
2822
+ default:
2823
+ u.push(s.value ? "p-4" : "p-2");
2824
+ break;
2825
+ }
2826
+ switch (n.color) {
2805
2827
  case "success":
2806
2828
  u.push("bg-success-lighter border-l-4 border-success");
2807
2829
  break;
@@ -2816,9 +2838,63 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2816
2838
  break;
2817
2839
  }
2818
2840
  return u.join(" ");
2819
- }), c = r(() => {
2841
+ }), d = r(() => {
2820
2842
  const u = [];
2821
- switch (l.color) {
2843
+ if (s.value)
2844
+ u.push("");
2845
+ else
2846
+ switch (u.push("items-center"), n.size) {
2847
+ case "xs":
2848
+ u.push("space-x-1");
2849
+ break;
2850
+ case "default":
2851
+ default:
2852
+ u.push("space-x-2");
2853
+ break;
2854
+ }
2855
+ return u.join(" ");
2856
+ }), f = r(() => {
2857
+ const u = ["grow"];
2858
+ switch (s.value || u.push("flex items-center space-x-2"), n.size) {
2859
+ case "xs":
2860
+ u.push("ml-1");
2861
+ break;
2862
+ case "default":
2863
+ default:
2864
+ u.push("ml-3");
2865
+ break;
2866
+ }
2867
+ return u.join(" ");
2868
+ }), x = r(() => {
2869
+ const u = [];
2870
+ switch (n.size) {
2871
+ case "xs":
2872
+ u.push("text-xs");
2873
+ break;
2874
+ case "default":
2875
+ default:
2876
+ u.push("mt-2 text-sm");
2877
+ break;
2878
+ }
2879
+ return u.join(" ");
2880
+ }), p = r(() => {
2881
+ var v;
2882
+ const u = ["flex"];
2883
+ s.value || u.push("grow justify-end");
2884
+ const j = s.value && ((v = n.actions) == null ? void 0 : v.length);
2885
+ switch (n.size) {
2886
+ case "xs":
2887
+ u.push("space-x-1"), j && u.push("mt-1");
2888
+ break;
2889
+ case "default":
2890
+ default:
2891
+ u.push("space-x-2"), j && u.push("mt-4");
2892
+ break;
2893
+ }
2894
+ return u.join(" ");
2895
+ }), b = r(() => {
2896
+ const u = [];
2897
+ switch (n.color) {
2822
2898
  case "success":
2823
2899
  u.push("text-success-darker");
2824
2900
  break;
@@ -2833,9 +2909,18 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2833
2909
  break;
2834
2910
  }
2835
2911
  return u.join(" ");
2836
- }), d = r(() => {
2912
+ }), y = r(() => {
2837
2913
  const u = [];
2838
- switch (l.color) {
2914
+ switch (n.size) {
2915
+ case "xs":
2916
+ u.push("h-4 w-4"), u.push(s.value ? "mt-0.5" : "");
2917
+ break;
2918
+ case "default":
2919
+ default:
2920
+ u.push("h-5 w-5");
2921
+ break;
2922
+ }
2923
+ switch (n.color) {
2839
2924
  case "success":
2840
2925
  u.push("text-success");
2841
2926
  break;
@@ -2850,9 +2935,9 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2850
2935
  break;
2851
2936
  }
2852
2937
  return u.join(" ");
2853
- }), f = r(() => {
2938
+ }), h = r(() => {
2854
2939
  const u = [];
2855
- switch (l.color) {
2940
+ switch (n.color) {
2856
2941
  case "success":
2857
2942
  u.push("bg-success-lighter ring-success");
2858
2943
  break;
@@ -2867,125 +2952,129 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
2867
2952
  break;
2868
2953
  }
2869
2954
  return u.join(" ");
2955
+ }), C = r(() => {
2956
+ switch (n.size) {
2957
+ case "xs":
2958
+ return "xs";
2959
+ case "default":
2960
+ default:
2961
+ return "sm";
2962
+ }
2870
2963
  });
2871
- return (u, p) => {
2872
- var b;
2873
- return a(), m("div", {
2874
- class: x(["rounded-md", [o.value, c.value]])
2964
+ return (u, j) => (a(), m("div", {
2965
+ class: k(["rounded-md", [c.value, b.value]])
2966
+ }, [
2967
+ i("div", {
2968
+ class: k(["flex", d.value])
2875
2969
  }, [
2970
+ i("div", ol, [
2971
+ (a(), L(H(o.value), {
2972
+ class: k(y.value),
2973
+ "aria-hidden": "true"
2974
+ }, null, 8, ["class"]))
2975
+ ]),
2876
2976
  i("div", {
2877
- class: x(["flex", [s.value ? "" : "items-center space-x-2"]])
2977
+ class: k(f.value)
2878
2978
  }, [
2879
- i("div", ll, [
2880
- L(n(Te), {
2881
- class: x(["h-5 w-5", d.value]),
2882
- "aria-hidden": "true"
2883
- }, null, 8, ["class"])
2884
- ]),
2885
- i("div", {
2886
- class: x(["ml-3 grow", [s.value ? "" : "flex items-center space-x-2"]])
2979
+ i("h3", {
2980
+ class: k(["text-sm", [s.value ? "font-medium" : ""]])
2887
2981
  }, [
2888
- i("h3", {
2889
- class: x(["text-sm", [s.value ? "font-medium" : ""]])
2890
- }, [
2891
- D(u.$slots, "title", {}, () => [
2892
- A("Title")
2893
- ])
2894
- ], 2),
2895
- s.value ? (a(), m("div", al, [
2896
- D(u.$slots, "description", {}, () => [
2897
- A(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
2898
- ])
2899
- ])) : S("", !0),
2900
- i("div", {
2901
- class: x([s.value ? (b = e.actions) != null && b.length ? "mt-4" : "" : "grow flex"])
2902
- }, [
2903
- i("div", {
2904
- class: x(["flex", ["space-x-2", s.value ? "" : "grow justify-end"]])
2905
- }, [
2906
- (a(!0), m(U, null, G(e.actions || [], (v, h) => (a(), P(re, {
2907
- key: h,
2908
- color: e.color,
2909
- size: "sm",
2910
- to: v.url,
2911
- external: v.externalUrl || !1,
2912
- onClick: (k) => v.onClick || n(Ye)
2913
- }, {
2914
- default: _(() => [
2915
- A(I(v.title), 1)
2916
- ]),
2917
- _: 2
2918
- }, 1032, ["color", "to", "external", "onClick"]))), 128))
2919
- ], 2)
2920
- ], 2)
2982
+ z(u.$slots, "title", {}, () => [
2983
+ M("Title")
2984
+ ])
2921
2985
  ], 2),
2922
- e.withDismiss ? (a(), m("div", {
2986
+ s.value ? (a(), m("div", {
2923
2987
  key: 0,
2924
- class: x(["flex", [s.value ? "items-start" : "items-center"]])
2988
+ class: k(x.value)
2925
2989
  }, [
2926
- i("button", {
2927
- type: "button",
2928
- class: x(["inline-flex rounded-md focus:outline-none focus:ring-2", f.value]),
2929
- onClick: p[0] || (p[0] = (v) => u.$emit("dismiss"))
2930
- }, [
2931
- ol,
2932
- L(n(ue), {
2933
- class: "h-5 w-5",
2934
- "aria-hidden": "true"
2935
- })
2936
- ], 2)
2937
- ], 2)) : S("", !0)
2938
- ], 2)
2939
- ], 2);
2940
- };
2990
+ z(u.$slots, "description", {}, () => [
2991
+ M(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
2992
+ ])
2993
+ ], 2)) : I("", !0),
2994
+ i("div", {
2995
+ class: k(p.value)
2996
+ }, [
2997
+ (a(!0), m(W, null, G(e.actions || [], (v, w) => (a(), L(re, {
2998
+ key: w,
2999
+ color: e.color,
3000
+ size: C.value,
3001
+ to: v.url,
3002
+ external: v.externalUrl || !1,
3003
+ onClick: (S) => v.onClick || l(Ye)
3004
+ }, {
3005
+ default: _(() => [
3006
+ M(B(v.title), 1)
3007
+ ]),
3008
+ _: 2
3009
+ }, 1032, ["color", "size", "to", "external", "onClick"]))), 128))
3010
+ ], 2)
3011
+ ], 2),
3012
+ e.withDismiss ? (a(), m("div", {
3013
+ key: 0,
3014
+ class: k(["flex", [s.value ? "items-start" : "items-center"]])
3015
+ }, [
3016
+ i("button", {
3017
+ type: "button",
3018
+ class: k(["inline-flex rounded-md focus:outline-none focus:ring-2", h.value]),
3019
+ onClick: j[0] || (j[0] = (v) => u.$emit("dismiss"))
3020
+ }, [
3021
+ rl,
3022
+ P(l(ue), {
3023
+ class: "h-5 w-5",
3024
+ "aria-hidden": "true"
3025
+ })
3026
+ ], 2)
3027
+ ], 2)) : I("", !0)
3028
+ ], 2)
3029
+ ], 2));
2941
3030
  }
2942
3031
  });
2943
- function zl(e) {
2944
- var B, V;
2945
- const { get: l, initialState: t, readOptions: s, set: o, asyncRead: c = !0, debugging: d } = e, f = d == null ? void 0 : d.log, u = () => (new Error("Trace:").stack || "").substring(7), p = ((V = (B = e.debugging) == null ? void 0 : B.log) == null ? void 0 : V.logger) || console.debug, b = f && !f.writesOnly ? () => {
2946
- const y = l();
2947
- return p(`debugging: '${f.name}' read`, y, u()), y;
2948
- } : l, v = f && !f.readsOnly ? (y) => (p(`debugging: '${f.name}' written to`, y, u()), o(y)) : o, h = c ? Ct(b, t, s) : r(b), k = r(() => h.value);
2949
- return k.update = v, k;
3032
+ function El(e) {
3033
+ var u, j;
3034
+ const { get: n, initialState: t, readOptions: s, set: o, asyncRead: c = !0, debugging: d } = e, f = d == null ? void 0 : d.log, x = () => (new Error("Trace:").stack || "").substring(7), p = ((j = (u = e.debugging) == null ? void 0 : u.log) == null ? void 0 : j.logger) || console.debug, b = f && !f.writesOnly ? () => {
3035
+ const v = n();
3036
+ return p(`debugging: '${f.name}' read`, v, x()), v;
3037
+ } : n, y = f && !f.readsOnly ? (v) => (p(`debugging: '${f.name}' written to`, v, x()), o(v)) : o, h = c ? $t(b, t, s) : r(b), C = r(() => h.value);
3038
+ return C.update = y, C;
2950
3039
  }
2951
3040
  export {
2952
3041
  Fl as CommonAlert,
2953
- ts as CommonBadge,
2954
- We as CommonLoadingBar,
2955
- kl as CommonStepsBullet,
2956
- xl as CommonStepsNumber,
2957
- Et as CommonTextLink,
3042
+ ns as CommonBadge,
3043
+ Ue as CommonLoadingBar,
3044
+ Cl as CommonStepsBullet,
3045
+ kl as CommonStepsNumber,
3046
+ Ut as CommonTextLink,
2958
3047
  re as FormButton,
2959
- Cl as FormCardButton,
2960
- wl as FormCheckbox,
2961
- Bn as FormSelectBase,
2962
- Bl as FormSelectSourceApps,
2963
- $l as FormTextArea,
2964
- Sl as FormTextInput,
2965
- yl as GlobalToastRenderer,
3048
+ wl as FormCardButton,
3049
+ $l as FormCheckbox,
3050
+ Pn as FormSelectBase,
3051
+ _l as FormSelectSourceApps,
3052
+ Sl as FormTextArea,
3053
+ Il as FormTextInput,
3054
+ xl as GlobalToastRenderer,
2966
3055
  J as GridListToggleValue,
2967
3056
  me as HorizontalDirection,
2968
3057
  Tl as InfiniteLoading,
2969
3058
  Vl as LayoutDialog,
2970
- jl as LayoutDisclosure,
2971
- Ol as LayoutGridListToggle,
2972
- Al as LayoutMenu,
3059
+ Ol as LayoutDisclosure,
3060
+ Al as LayoutGridListToggle,
3061
+ zl as LayoutMenu,
2973
3062
  Rl as LayoutPanel,
2974
3063
  Dl as LayoutTabs,
2975
3064
  se as ModifierKeys,
2976
- _n as SourceAppBadge,
3065
+ Ln as SourceAppBadge,
2977
3066
  te as TailwindBreakpoints,
2978
- qn as ThrottleOrDebounce,
3067
+ Gn as ThrottleOrDebounce,
2979
3068
  ee as ToastNotificationType,
2980
- Il as ValidationHelpers,
3069
+ Bl as ValidationHelpers,
2981
3070
  he as clientOs,
2982
- _l as getKeyboardShortcutTitle,
3071
+ Pl as getKeyboardShortcutTitle,
2983
3072
  Ll as onKeyboardShortcut,
2984
- Pl as useFormCheckboxModel,
2985
- rn as useFormSelectChildInternals,
3073
+ jl as useFormCheckboxModel,
3074
+ cn as useFormSelectChildInternals,
2986
3075
  Ml as useOnBeforeWindowUnload,
2987
- Gn as useResponsiveHorizontalDirectionCalculation,
2988
- Hn as useWindowResizeHandler,
2989
- on as useWrappingContainerHiddenCount,
2990
- zl as writableAsyncComputed
3076
+ Xn as useResponsiveHorizontalDirectionCalculation,
3077
+ Kn as useWindowResizeHandler,
3078
+ un as useWrappingContainerHiddenCount,
3079
+ El as writableAsyncComputed
2991
3080
  };