@speckle/ui-components 2.14.8-alpha3 → 2.14.8-alpha5

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,16 +1,16 @@
1
- import { defineComponent as O, resolveDynamicComponent as W, computed as c, openBlock as l, createBlock as P, unref as t, normalizeClass as v, withCtx as B, createCommentVNode as $, renderSlot as R, createTextVNode as T, createElementBlock as h, createElementVNode as u, createVNode as I, Transition as ce, toDisplayString as _, toRefs as Z, Fragment as U, renderList as H, pushScopeId as _e, popScopeId as Se, ref as A, mergeProps as ne, onMounted as ee, withDirectives as te, isRef as le, vModelText as Ie, useSlots as ze, vModelDynamic as Ee, watch as Y, withModifiers as Be, normalizeStyle as oe, onBeforeUnmount as Le } from "vue";
2
- import { isObjectLike as Ce, clamp as we, isString as se, isUndefined as X, isArray as E, debounce as Pe, throttle as We } from "lodash";
3
- import { ArrowPathIcon as Ue, ChevronUpIcon as je, ChevronDownIcon as qe, XMarkIcon as He, MagnifyingGlassIcon as Ge, CheckIcon as Ke, Bars3Icon as Xe, Squares2X2Icon as Ne } from "@heroicons/vue/24/solid";
4
- import { CheckCircleIcon as Je, XCircleIcon as Qe, ExclamationCircleIcon as Ye, InformationCircleIcon as Ze, XMarkIcon as et, CheckIcon as tt, ExclamationTriangleIcon as st } from "@heroicons/vue/24/outline";
5
- import { XMarkIcon as de, CheckIcon as nt, CheckCircleIcon as lt, ExclamationCircleIcon as Ve, EnvelopeIcon as at, KeyIcon as ot } from "@heroicons/vue/20/solid";
1
+ import { defineComponent as O, resolveDynamicComponent as U, computed as d, openBlock as l, createBlock as P, unref as t, normalizeClass as v, withCtx as B, createCommentVNode as _, renderSlot as R, createTextVNode as T, createElementBlock as h, createElementVNode as u, createVNode as I, Transition as ce, toDisplayString as S, toRefs as Z, Fragment as q, renderList as H, pushScopeId as Se, popScopeId as Ie, ref as A, mergeProps as ne, onMounted as ee, withDirectives as te, isRef as le, vModelText as Be, useSlots as Ee, vModelDynamic as We, watch as Y, withModifiers as Le, normalizeStyle as oe, onBeforeUnmount as Pe } from "vue";
2
+ import { isObjectLike as Ce, clamp as we, isString as se, isUndefined as X, isArray as W, debounce as Ve, throttle as Ue } from "lodash";
3
+ import { ArrowPathIcon as qe, ChevronUpIcon as je, ChevronDownIcon as He, XMarkIcon as Ge, MagnifyingGlassIcon as Ke, CheckIcon as Xe, Bars3Icon as Ne, Squares2X2Icon as Je } from "@heroicons/vue/24/solid";
4
+ import { CheckCircleIcon as Qe, XCircleIcon as Ye, ExclamationCircleIcon as Ze, InformationCircleIcon as et, XMarkIcon as tt, CheckIcon as st, ExclamationTriangleIcon as nt } from "@heroicons/vue/24/outline";
5
+ import { XMarkIcon as de, CheckIcon as lt, CheckCircleIcon as at, ExclamationCircleIcon as Oe, EnvelopeIcon as ot, KeyIcon as rt } from "@heroicons/vue/20/solid";
6
6
  import { useField as fe } from "vee-validate";
7
7
  import { nanoid as pe } from "nanoid";
8
- import { isNullOrUndefined as rt, SourceApps as it, getClientOperatingSystem as ut, OperatingSystem as re } from "@speckle/shared";
9
- import { useResizeObserver as ct, useMutationObserver as dt, onKeyDown as ft, isClient as he } from "@vueuse/core";
10
- import { Listbox as pt, ListboxLabel as ht, ListboxButton as mt, ListboxOptions as gt, ListboxOption as yt, TransitionRoot as vt, Dialog as bt, TransitionChild as $e, DialogPanel as xt, Disclosure as kt, DisclosureButton as Ct, DisclosurePanel as wt, Menu as $t, MenuButton as _t, MenuItems as St, MenuItem as It } from "@headlessui/vue";
11
- import { directive as Bt } from "vue-tippy";
12
- import Lt from "v3-infinite-loading";
13
- const Pt = {
8
+ import { isNullOrUndefined as it, SourceApps as ut, getClientOperatingSystem as ct, OperatingSystem as re } from "@speckle/shared";
9
+ import { useResizeObserver as dt, useMutationObserver as ft, onKeyDown as pt, isClient as he } from "@vueuse/core";
10
+ import { Listbox as ht, ListboxLabel as mt, ListboxButton as gt, ListboxOptions as yt, ListboxOption as vt, TransitionRoot as bt, Dialog as xt, TransitionChild as $e, DialogPanel as kt, Disclosure as Ct, DisclosureButton as wt, DisclosurePanel as $t, Menu as _t, MenuButton as St, MenuItems as It, MenuItem as Bt } from "@headlessui/vue";
11
+ import { directive as Lt } from "vue-tippy";
12
+ import Pt from "v3-infinite-loading";
13
+ const Vt = {
14
14
  key: 2,
15
15
  style: { margin: "0 !important", width: "0.01px" }
16
16
  }, jt = /* @__PURE__ */ O({
@@ -141,10 +141,10 @@ const Pt = {
141
141
  },
142
142
  emits: ["click"],
143
143
  setup(e, { emit: s }) {
144
- const n = e, o = W("NuxtLink"), a = W("RouterLink"), r = c(() => n.linkComponent ? n.linkComponent : n.external ? "a" : Ce(o) ? o : Ce(a) ? a : "a"), d = c(() => {
144
+ const n = e, o = U("NuxtLink"), a = U("RouterLink"), r = d(() => n.linkComponent ? n.linkComponent : n.external ? "a" : Ce(o) ? o : Ce(a) ? a : "a"), c = d(() => {
145
145
  if (!n.to)
146
146
  return n.submit ? "submit" : "button";
147
- }), i = c(() => n.disabled || n.loading), y = c(() => n.loading ? Ue : n.iconLeft), f = c(() => {
147
+ }), i = d(() => n.disabled || n.loading), y = d(() => n.loading ? qe : n.iconLeft), f = d(() => {
148
148
  const p = [];
149
149
  if (p.push("border-2"), i.value)
150
150
  p.push(
@@ -184,7 +184,7 @@ const Pt = {
184
184
  break;
185
185
  }
186
186
  return p.join(" ");
187
- }), w = c(() => {
187
+ }), w = d(() => {
188
188
  const p = [];
189
189
  if (!n.text && !n.link)
190
190
  if (i.value)
@@ -233,10 +233,10 @@ const Pt = {
233
233
  "text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
234
234
  ) : n.color === "secondary" ? p.push("text-foreground-2 hover:text-primary-focus") : n.color === "success" ? p.push("text-success") : n.color === "warning" ? p.push("text-warning") : n.color === "danger" ? p.push("text-danger") : p.push("text-primary hover:text-primary-focus");
235
235
  return p.join(" ");
236
- }), g = c(() => {
236
+ }), g = d(() => {
237
237
  const p = [];
238
238
  return p.push(n.rounded ? "rounded-full" : "rounded-md"), p.join(" ");
239
- }), m = c(() => {
239
+ }), m = d(() => {
240
240
  const p = [];
241
241
  if (!i.value)
242
242
  switch (n.color) {
@@ -258,7 +258,7 @@ const Pt = {
258
258
  break;
259
259
  }
260
260
  return p.join(" ");
261
- }), b = c(() => {
261
+ }), b = d(() => {
262
262
  switch (n.size) {
263
263
  case "xs":
264
264
  return "h-5 text-xs font-medium xxx-tracking-wide";
@@ -272,7 +272,7 @@ const Pt = {
272
272
  case "base":
273
273
  return "h-8 text-base font-medium xxx-tracking-wide";
274
274
  }
275
- }), j = c(() => {
275
+ }), V = d(() => {
276
276
  switch (n.size) {
277
277
  case "xs":
278
278
  return "px-1";
@@ -286,28 +286,28 @@ const Pt = {
286
286
  case "base":
287
287
  return "px-3";
288
288
  }
289
- }), x = c(() => {
289
+ }), L = d(() => {
290
290
  const p = [];
291
291
  return n.fullWidth && p.push("w-full"), i.value && p.push("cursor-not-allowed"), p.join(" ");
292
- }), L = c(() => {
292
+ }), $ = d(() => {
293
293
  const p = [];
294
294
  return !i.value && !n.link && !n.text && p.push("active:scale-[0.97]"), !i.value && n.link && p.push(
295
295
  "underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
296
296
  ), p.join(" ");
297
- }), S = c(() => {
297
+ }), C = d(() => {
298
298
  const p = n.link || n.text;
299
299
  return [
300
300
  "transition inline-flex justify-center items-center space-x-2 outline-none select-none",
301
- x.value,
301
+ L.value,
302
302
  b.value,
303
303
  w.value,
304
304
  p ? "" : f.value,
305
305
  p ? "" : g.value,
306
306
  p ? "" : m.value,
307
- n.link ? "" : j.value,
308
- L.value
307
+ n.link ? "" : V.value,
308
+ $.value
309
309
  ].join(" ");
310
- }), C = c(() => {
310
+ }), x = d(() => {
311
311
  const p = [""];
312
312
  switch (n.loading && p.push("animate-spin"), n.size) {
313
313
  case "xs":
@@ -328,35 +328,35 @@ const Pt = {
328
328
  break;
329
329
  }
330
330
  return p.join(" ");
331
- }), q = (p) => {
331
+ }), E = (p) => {
332
332
  if (i.value) {
333
333
  p.preventDefault(), p.stopPropagation(), p.stopImmediatePropagation();
334
334
  return;
335
335
  }
336
336
  s("click", p);
337
337
  };
338
- return (p, V) => (l(), P(W(e.to ? t(r) : "button"), {
338
+ return (p, j) => (l(), P(U(e.to ? t(r) : "button"), {
339
339
  href: e.to,
340
340
  to: e.to,
341
- type: t(d),
341
+ type: t(c),
342
342
  external: e.external,
343
- class: v(t(S)),
343
+ class: v(t(C)),
344
344
  disabled: t(i),
345
345
  role: "button",
346
- onClick: q
346
+ onClick: E
347
347
  }, {
348
348
  default: B(() => [
349
- t(y) ? (l(), P(W(t(y)), {
349
+ t(y) ? (l(), P(U(t(y)), {
350
350
  key: 0,
351
- class: v(`${t(C)} ${e.hideText ? "" : "mr-2"}`)
352
- }, null, 8, ["class"])) : $("", !0),
353
- e.hideText ? (l(), h("div", Pt, "   ")) : R(p.$slots, "default", { key: 1 }, () => [
351
+ class: v(`${t(x)} ${e.hideText ? "" : "mr-2"}`)
352
+ }, null, 8, ["class"])) : _("", !0),
353
+ e.hideText ? (l(), h("div", Vt, "   ")) : R(p.$slots, "default", { key: 1 }, () => [
354
354
  T("Button")
355
355
  ], !0),
356
- e.iconRight || !e.loading ? (l(), P(W(e.iconRight), {
356
+ e.iconRight || !e.loading ? (l(), P(U(e.iconRight), {
357
357
  key: 3,
358
- class: v(`${t(C)} ${e.hideText ? "" : "ml-2"}`)
359
- }, null, 8, ["class"])) : $("", !0)
358
+ class: v(`${t(x)} ${e.hideText ? "" : "ml-2"}`)
359
+ }, null, 8, ["class"])) : _("", !0)
360
360
  ]),
361
361
  _: 3
362
362
  }, 8, ["href", "to", "type", "external", "class", "disabled"]));
@@ -367,7 +367,7 @@ const me = (e, s) => {
367
367
  for (const [o, a] of s)
368
368
  n[o] = a;
369
369
  return n;
370
- }, ge = /* @__PURE__ */ me(jt, [["__scopeId", "data-v-da9a3400"]]), Vt = /* @__PURE__ */ O({
370
+ }, ge = /* @__PURE__ */ me(jt, [["__scopeId", "data-v-da9a3400"]]), Ot = /* @__PURE__ */ O({
371
371
  __name: "Link",
372
372
  props: {
373
373
  to: {
@@ -447,41 +447,41 @@ const me = (e, s) => {
447
447
  }
448
448
  });
449
449
  var N = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(N || {});
450
- const Ot = {
450
+ const Mt = {
451
451
  "aria-live": "assertive",
452
452
  class: "pointer-events-none fixed inset-0 flex items-end px-4 py-6 mt-10 sm:items-start sm:p-6 z-50"
453
- }, Mt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, At = {
453
+ }, At = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, Dt = {
454
454
  key: 0,
455
455
  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"
456
- }, Dt = { class: "p-4" }, Rt = { class: "flex items-start" }, Tt = { class: "flex-shrink-0" }, Ft = { class: "ml-2 w-0 flex-1 flex flex-col" }, zt = {
456
+ }, Rt = { class: "p-4" }, Tt = { class: "flex items-start" }, zt = { class: "flex-shrink-0" }, Ft = { class: "ml-2 w-0 flex-1 flex flex-col" }, Et = {
457
457
  key: 0,
458
458
  class: "text-foreground font-bold"
459
- }, Et = {
459
+ }, Wt = {
460
460
  key: 1,
461
461
  class: "label label--light text-foreground-2"
462
- }, Wt = {
462
+ }, Ut = {
463
463
  key: 2,
464
464
  class: "flex justify-start mt-2"
465
- }, Ut = /* @__PURE__ */ u("span", { class: "sr-only" }, "Close", -1), ol = /* @__PURE__ */ O({
465
+ }, qt = /* @__PURE__ */ u("span", { class: "sr-only" }, "Close", -1), il = /* @__PURE__ */ O({
466
466
  __name: "ToastRenderer",
467
467
  props: {
468
468
  notification: null
469
469
  },
470
470
  emits: ["update:notification"],
471
471
  setup(e, { emit: s }) {
472
- const n = e, o = c(
472
+ const n = e, o = d(
473
473
  () => {
474
- var d, i;
475
- return !((d = n.notification) != null && d.description) && !((i = n.notification) != null && i.cta);
474
+ var c, i;
475
+ return !((c = n.notification) != null && c.description) && !((i = n.notification) != null && i.cta);
476
476
  }
477
477
  ), a = () => {
478
478
  s("update:notification", null);
479
- }, r = (d) => {
479
+ }, r = (c) => {
480
480
  var i, y, f;
481
- (f = (y = (i = n.notification) == null ? void 0 : i.cta) == null ? void 0 : y.onClick) == null || f.call(y, d), a();
481
+ (f = (y = (i = n.notification) == null ? void 0 : i.cta) == null ? void 0 : y.onClick) == null || f.call(y, c), a();
482
482
  };
483
- return (d, i) => (l(), h("div", Ot, [
484
- u("div", Mt, [
483
+ return (c, i) => (l(), h("div", Mt, [
484
+ u("div", At, [
485
485
  I(ce, {
486
486
  "enter-active-class": "transform ease-out duration-300 transition",
487
487
  "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
@@ -491,44 +491,44 @@ const Ot = {
491
491
  "leave-to-class": "opacity-0"
492
492
  }, {
493
493
  default: B(() => [
494
- e.notification ? (l(), h("div", At, [
495
- u("div", Dt, [
496
- u("div", Rt, [
497
- u("div", Tt, [
498
- e.notification.type === t(N).Success ? (l(), P(t(Je), {
494
+ e.notification ? (l(), h("div", Dt, [
495
+ u("div", Rt, [
496
+ u("div", Tt, [
497
+ u("div", zt, [
498
+ e.notification.type === t(N).Success ? (l(), P(t(Qe), {
499
499
  key: 0,
500
500
  class: "h-6 w-6 text-success",
501
501
  "aria-hidden": "true"
502
- })) : e.notification.type === t(N).Danger ? (l(), P(t(Qe), {
502
+ })) : e.notification.type === t(N).Danger ? (l(), P(t(Ye), {
503
503
  key: 1,
504
504
  class: "h-6 w-6 text-danger",
505
505
  "aria-hidden": "true"
506
- })) : e.notification.type === t(N).Warning ? (l(), P(t(Ye), {
506
+ })) : e.notification.type === t(N).Warning ? (l(), P(t(Ze), {
507
507
  key: 2,
508
508
  class: "h-6 w-6 text-warning",
509
509
  "aria-hidden": "true"
510
- })) : e.notification.type === t(N).Info ? (l(), P(t(Ze), {
510
+ })) : e.notification.type === t(N).Info ? (l(), P(t(et), {
511
511
  key: 3,
512
512
  class: "h-6 w-6 text-info",
513
513
  "aria-hidden": "true"
514
- })) : $("", !0)
514
+ })) : _("", !0)
515
515
  ]),
516
516
  u("div", Ft, [
517
- e.notification.title ? (l(), h("p", zt, _(e.notification.title), 1)) : $("", !0),
518
- e.notification.description ? (l(), h("p", Et, _(e.notification.description), 1)) : $("", !0),
519
- e.notification.cta ? (l(), h("div", Wt, [
520
- I(Vt, {
517
+ e.notification.title ? (l(), h("p", Et, S(e.notification.title), 1)) : _("", !0),
518
+ e.notification.description ? (l(), h("p", Wt, S(e.notification.description), 1)) : _("", !0),
519
+ e.notification.cta ? (l(), h("div", Ut, [
520
+ I(Ot, {
521
521
  to: e.notification.cta.url,
522
522
  class: "label",
523
523
  primary: "",
524
524
  onClick: r
525
525
  }, {
526
526
  default: B(() => [
527
- T(_(e.notification.cta.title), 1)
527
+ T(S(e.notification.cta.title), 1)
528
528
  ]),
529
529
  _: 1
530
530
  }, 8, ["to"])
531
- ])) : $("", !0)
531
+ ])) : _("", !0)
532
532
  ]),
533
533
  u("div", {
534
534
  class: v(["ml-4 flex flex-shrink-0", { "self-center": t(o) }])
@@ -538,7 +538,7 @@ const Ot = {
538
538
  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",
539
539
  onClick: a
540
540
  }, [
541
- Ut,
541
+ qt,
542
542
  I(t(de), {
543
543
  class: "h-6 w-6",
544
544
  "aria-hidden": "true"
@@ -547,20 +547,20 @@ const Ot = {
547
547
  ], 2)
548
548
  ])
549
549
  ])
550
- ])) : $("", !0)
550
+ ])) : _("", !0)
551
551
  ]),
552
552
  _: 1
553
553
  })
554
554
  ])
555
555
  ]));
556
556
  }
557
- }), qt = /* @__PURE__ */ u("circle", {
557
+ }), Ht = /* @__PURE__ */ u("circle", {
558
558
  cx: "4",
559
559
  cy: "4",
560
560
  r: "3"
561
- }, null, -1), Ht = [
562
- qt
563
- ], Gt = /* @__PURE__ */ O({
561
+ }, null, -1), Gt = [
562
+ Ht
563
+ ], Kt = /* @__PURE__ */ O({
564
564
  __name: "Badge",
565
565
  props: {
566
566
  size: null,
@@ -573,11 +573,11 @@ const Ot = {
573
573
  },
574
574
  emits: ["click-icon"],
575
575
  setup(e, { emit: s }) {
576
- const n = e, o = c(
576
+ const n = e, o = d(
577
577
  () => n.colorClasses || "bg-blue-100 text-blue-800"
578
- ), a = c(
578
+ ), a = d(
579
579
  () => n.dotIconColorClasses || "text-blue-400"
580
- ), r = c(() => {
580
+ ), r = d(() => {
581
581
  const f = [
582
582
  "inline-flex items-center",
583
583
  o.value,
@@ -588,12 +588,12 @@ const Ot = {
588
588
  )) : (f.push("rounded-full"), f.push(
589
589
  n.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
590
590
  )), f.join(" ");
591
- }), d = c(() => {
591
+ }), c = d(() => {
592
592
  const f = [
593
593
  "mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
594
594
  ];
595
595
  return n.clickableIcon ? f.push("cursor-pointer") : f.push("cursor-default"), f.join(" ");
596
- }), i = c(() => [
596
+ }), i = d(() => [
597
597
  "-ml-0.5 mr-1.5 h-2 w-2",
598
598
  a.value
599
599
  ].join(" ")), y = (f) => {
@@ -611,77 +611,99 @@ const Ot = {
611
611
  class: v(t(i)),
612
612
  fill: "currentColor",
613
613
  viewBox: "0 0 8 8"
614
- }, Ht, 2)) : $("", !0),
614
+ }, Gt, 2)) : _("", !0),
615
615
  R(f.$slots, "default", {}, () => [
616
616
  T("Badge")
617
617
  ]),
618
618
  e.iconLeft ? (l(), h("button", {
619
619
  key: 1,
620
- class: v(t(d)),
620
+ class: v(t(c)),
621
621
  onClick: w[0] || (w[0] = (g) => y(g))
622
622
  }, [
623
- (l(), P(W(e.iconLeft), {
623
+ (l(), P(U(e.iconLeft), {
624
624
  class: v(["h-4 w-4", t(a)])
625
625
  }, null, 8, ["class"]))
626
- ], 2)) : $("", !0)
626
+ ], 2)) : _("", !0)
627
627
  ], 2));
628
628
  }
629
629
  });
630
+ let _e = [];
631
+ function Xt(e) {
632
+ _e = _e ? e : e.slice();
633
+ }
630
634
  var J = /* @__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))(J || {});
631
- function Oe(e) {
635
+ function Me(e) {
632
636
  const {
633
- props: { modelValue: s, steps: n, orientation: o, goVerticalBelow: a, nonInteractive: r },
634
- emit: d
635
- } = e, i = c(
637
+ props: {
638
+ modelValue: s,
639
+ steps: n,
640
+ orientation: o,
641
+ goVerticalBelow: a,
642
+ nonInteractive: r,
643
+ stepsPadding: c
644
+ },
645
+ emit: i
646
+ } = e, y = d(
636
647
  () => (o == null ? void 0 : o.value) === "vertical" ? "vertical" : "horizontal"
637
- ), y = c({
648
+ ), f = d({
638
649
  get: () => we((s == null ? void 0 : s.value) || 0, -1, n.value.length),
639
- set: (x) => d("update:modelValue", we(x, 0, n.value.length))
640
- }), f = (x) => `${x + 1}`, w = (x) => x === y.value, g = (x) => x < y.value, m = (x, L) => {
641
- var C;
650
+ set: ($) => i("update:modelValue", we($, 0, n.value.length))
651
+ }), w = ($) => `${$ + 1}`, g = ($) => $ === f.value, m = ($) => $ < f.value, b = ($, C) => {
652
+ var E;
642
653
  if (r != null && r.value) {
643
- L == null || L.preventDefault(), L == null || L.stopPropagation(), L == null || L.stopImmediatePropagation();
654
+ C == null || C.preventDefault(), C == null || C.stopPropagation(), C == null || C.stopImmediatePropagation();
644
655
  return;
645
656
  }
646
- y.value = x;
647
- const S = n.value[y.value];
648
- (C = S == null ? void 0 : S.onClick) == null || C.call(S);
649
- }, b = c(() => {
650
- const x = ["flex"];
651
- return x.push("flex"), i.value === "vertical" || a != null && a.value ? (x.push("flex-col space-y-4 justify-center"), (a == null ? void 0 : a.value) === J.sm ? x.push(
652
- "sm:flex-row sm:space-y-0 sm:justify-start sm:space-x-8 sm:items-center"
653
- ) : (a == null ? void 0 : a.value) === J.md ? x.push(
654
- "md:flex-row md:space-y-0 md:justify-start md:space-x-8 md:items-center"
655
- ) : (a == null ? void 0 : a.value) === J.lg ? x.push(
656
- "lg:flex-row lg:space-y-0 lg:justify-start lg:space-x-8 lg:items-center"
657
- ) : (a == null ? void 0 : a.value) === J.xl && x.push(
658
- "xl:flex-row xl:space-y-0 xl:justify-start xl:space-x-8 xl:items-center"
659
- )) : x.push("flex-row space-x-8 items-center"), x.join(" ");
660
- }), j = c(() => {
661
- const x = ["flex items-center"];
662
- return r != null && r.value || x.push("cursor-pointer"), x.join(" ");
657
+ f.value = $;
658
+ const x = n.value[f.value];
659
+ (E = x == null ? void 0 : x.onClick) == null || E.call(x);
660
+ }, V = d(() => {
661
+ const $ = ["flex"];
662
+ let C, x;
663
+ return (c == null ? void 0 : c.value) === "xs" ? (C = "space-x-2", x = "space-y-1") : (c == null ? void 0 : c.value) === "sm" ? (C = "space-x-4", x = "space-y-1") : (C = "space-x-8", x = "space-y-4"), $.push("flex"), y.value === "vertical" || a != null && a.value ? ($.push(`flex-col ${x} justify-center`), (a == null ? void 0 : a.value) === J.sm ? $.push(
664
+ `sm:flex-row sm:space-y-0 sm:justify-start sm:${C} sm:items-center`
665
+ ) : (a == null ? void 0 : a.value) === J.md ? $.push(
666
+ `md:flex-row md:space-y-0 md:justify-start md:${C} md:items-center`
667
+ ) : (a == null ? void 0 : a.value) === J.lg ? $.push(
668
+ `lg:flex-row lg:space-y-0 lg:justify-start lg:${C} lg:items-center`
669
+ ) : (a == null ? void 0 : a.value) === J.xl && $.push(
670
+ `xl:flex-row xl:space-y-0 xl:justify-start xl:${C} xl:items-center`
671
+ )) : $.push(`flex-row ${C} items-center`), $.join(" ");
672
+ }), L = d(() => {
673
+ const $ = ["flex items-center"];
674
+ return r != null && r.value || $.push("cursor-pointer"), $.join(" ");
663
675
  });
664
676
  return {
665
- value: y,
666
- isCurrentStep: w,
667
- isFinishedStep: g,
668
- switchStep: m,
669
- getStepDisplayValue: f,
670
- listClasses: b,
671
- linkClasses: j,
672
- orientation: i
677
+ value: f,
678
+ isCurrentStep: g,
679
+ isFinishedStep: m,
680
+ switchStep: b,
681
+ getStepDisplayValue: w,
682
+ listClasses: V,
683
+ linkClasses: L,
684
+ orientation: y
673
685
  };
674
686
  }
675
- const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Jt = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, Qt = { class: "flex flex-col" }, Yt = {
687
+ Xt([
688
+ "sm:space-x-8",
689
+ "md:space-x-8",
690
+ "lg:space-x-8",
691
+ "xl:space-x-8",
692
+ "sm:space-x-2",
693
+ "md:space-x-2",
694
+ "lg:space-x-2",
695
+ "xl:space-x-2"
696
+ ]);
697
+ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Yt = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, Zt = { class: "flex flex-col" }, es = {
676
698
  key: 0,
677
699
  class: "label label--light text-foreground"
678
- }, Zt = ["href", "onClick"], es = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, ts = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, ss = { class: "flex flex-col" }, ns = {
700
+ }, ts = ["href", "onClick"], ss = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, ns = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, ls = { class: "flex flex-col" }, as = {
679
701
  key: 0,
680
702
  class: "label label--light text-foreground"
681
- }, ls = ["href", "onClick"], as = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, os = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, rs = { class: "flex flex-col" }, is = {
703
+ }, os = ["href", "onClick"], rs = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, is = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, us = { class: "flex flex-col" }, cs = {
682
704
  key: 0,
683
705
  class: "label label--light"
684
- }, rl = /* @__PURE__ */ O({
706
+ }, ul = /* @__PURE__ */ O({
685
707
  __name: "Number",
686
708
  props: {
687
709
  ariaLabel: null,
@@ -689,7 +711,8 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
689
711
  steps: null,
690
712
  modelValue: null,
691
713
  goVerticalBelow: null,
692
- nonInteractive: { type: Boolean }
714
+ nonInteractive: { type: Boolean },
715
+ stepsPadding: null
693
716
  },
694
717
  emits: ["update:modelValue"],
695
718
  setup(e, { emit: s }) {
@@ -697,10 +720,10 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
697
720
  isCurrentStep: o,
698
721
  isFinishedStep: a,
699
722
  switchStep: r,
700
- getStepDisplayValue: d,
723
+ getStepDisplayValue: c,
701
724
  listClasses: i,
702
725
  linkClasses: y
703
- } = Oe({
726
+ } = Me({
704
727
  props: Z(n),
705
728
  emit: s
706
729
  });
@@ -711,7 +734,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
711
734
  u("ol", {
712
735
  class: v(t(i))
713
736
  }, [
714
- (l(!0), h(U, null, H(e.steps, (g, m) => (l(), h("li", {
737
+ (l(!0), h(q, null, H(e.steps, (g, m) => (l(), h("li", {
715
738
  key: g.name
716
739
  }, [
717
740
  t(a)(m) ? (l(), h("a", {
@@ -720,66 +743,66 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
720
743
  class: v(t(y)),
721
744
  onClick: (b) => t(r)(m, b)
722
745
  }, [
723
- u("div", Nt, [
724
- u("div", Jt, [
725
- I(t(nt), { class: "w-5 h-5" })
746
+ u("div", Qt, [
747
+ u("div", Yt, [
748
+ I(t(lt), { class: "w-5 h-5" })
726
749
  ]),
727
- u("div", Qt, [
728
- u("div", null, _(g.name), 1),
729
- g.description ? (l(), h("div", Yt, _(g.description), 1)) : $("", !0)
750
+ u("div", Zt, [
751
+ u("div", null, S(g.name), 1),
752
+ g.description ? (l(), h("div", es, S(g.description), 1)) : _("", !0)
730
753
  ])
731
754
  ])
732
- ], 10, Xt)) : t(o)(m) ? (l(), h("a", {
755
+ ], 10, Jt)) : t(o)(m) ? (l(), h("a", {
733
756
  key: 1,
734
757
  href: g.href,
735
758
  class: v(t(y)),
736
759
  "aria-current": "step",
737
760
  onClick: (b) => t(r)(m, b)
738
761
  }, [
739
- u("div", es, [
740
- u("div", ts, _(t(d)(m)), 1),
741
- u("div", ss, [
742
- u("div", null, _(g.name), 1),
743
- g.description ? (l(), h("div", ns, _(g.description), 1)) : $("", !0)
762
+ u("div", ss, [
763
+ u("div", ns, S(t(c)(m)), 1),
764
+ u("div", ls, [
765
+ u("div", null, S(g.name), 1),
766
+ g.description ? (l(), h("div", as, S(g.description), 1)) : _("", !0)
744
767
  ])
745
768
  ])
746
- ], 10, Zt)) : (l(), h("a", {
769
+ ], 10, ts)) : (l(), h("a", {
747
770
  key: 2,
748
771
  href: g.href,
749
772
  class: v(t(y)),
750
773
  onClick: (b) => t(r)(m, b)
751
774
  }, [
752
- u("div", as, [
753
- u("div", os, _(t(d)(m)), 1),
754
- u("div", rs, [
755
- u("div", null, _(g.name), 1),
756
- g.description ? (l(), h("div", is, _(g.description), 1)) : $("", !0)
775
+ u("div", rs, [
776
+ u("div", is, S(t(c)(m)), 1),
777
+ u("div", us, [
778
+ u("div", null, S(g.name), 1),
779
+ g.description ? (l(), h("div", cs, S(g.description), 1)) : _("", !0)
757
780
  ])
758
781
  ])
759
- ], 10, ls))
782
+ ], 10, os))
760
783
  ]))), 128))
761
784
  ], 2)
762
- ], 8, Kt));
785
+ ], 8, Nt));
763
786
  }
764
- }), Me = (e) => (_e("data-v-56fc6520"), e = e(), Se(), e), us = ["aria-label"], cs = ["href", "onClick"], ds = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, fs = {
787
+ }), Ae = (e) => (Se("data-v-9dd7b659"), e = e(), Ie(), e), ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, hs = {
765
788
  key: 0,
766
789
  class: "h-3 w-3 rounded-full bg-foreground-2"
767
- }, ps = ["href", "onClick"], hs = {
790
+ }, ms = ["href", "onClick"], gs = {
768
791
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
769
792
  "aria-hidden": "true"
770
- }, ms = {
793
+ }, ys = {
771
794
  key: 0,
772
795
  class: "h-3 w-3 rounded-full bg-foreground"
773
- }, gs = /* @__PURE__ */ Me(() => /* @__PURE__ */ u("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1)), ys = /* @__PURE__ */ Me(() => /* @__PURE__ */ u("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1)), vs = ["href", "onClick"], bs = {
796
+ }, vs = /* @__PURE__ */ Ae(() => /* @__PURE__ */ u("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1)), bs = /* @__PURE__ */ Ae(() => /* @__PURE__ */ u("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1)), xs = ["href", "onClick"], ks = {
774
797
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
775
798
  "aria-hidden": "true"
776
- }, xs = {
799
+ }, Cs = {
777
800
  key: 0,
778
801
  class: "h-3 w-3 rounded-full bg-foreground-2"
779
- }, ks = {
802
+ }, ws = {
780
803
  key: 1,
781
804
  class: "h-4 w-4 rounded-full bg-foreground-disabled"
782
- }, Cs = /* @__PURE__ */ O({
805
+ }, $s = /* @__PURE__ */ O({
783
806
  __name: "Bullet",
784
807
  props: {
785
808
  ariaLabel: null,
@@ -788,25 +811,27 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
788
811
  steps: null,
789
812
  modelValue: null,
790
813
  goVerticalBelow: null,
791
- nonInteractive: { type: Boolean }
814
+ nonInteractive: { type: Boolean },
815
+ stepsPadding: null
792
816
  },
793
817
  emits: ["update:modelValue"],
794
818
  setup(e, { emit: s }) {
795
- const n = e, { isCurrentStep: o, isFinishedStep: a, switchStep: r, listClasses: d, linkClasses: i } = Oe({
819
+ const n = e, { isCurrentStep: o, isFinishedStep: a, switchStep: r, listClasses: c, linkClasses: i } = Me({
796
820
  props: Z(n),
797
821
  emit: s
798
- }), y = c(() => {
799
- const f = ["ml-3 h6 font-medium leading-7"];
800
- return n.basic && f.push("sr-only"), f.join(" ");
822
+ }), y = d(() => {
823
+ const f = ["h6 font-medium leading-7"];
824
+ let w;
825
+ return n.stepsPadding === "xs" ? w = "ml-1" : n.stepsPadding === "sm" ? w = "ml-2" : w = "ml-3", f.push(w), n.basic && f.push("sr-only"), f.join(" ");
801
826
  });
802
827
  return (f, w) => (l(), h("nav", {
803
828
  class: "flex justify-center",
804
829
  "aria-label": e.ariaLabel || "Progress steps"
805
830
  }, [
806
831
  u("ol", {
807
- class: v([t(d), e.basic ? "basic" : ""])
832
+ class: v([t(c), e.basic ? "basic" : ""])
808
833
  }, [
809
- (l(!0), h(U, null, H(e.steps, (g, m) => (l(), h("li", {
834
+ (l(!0), h(q, null, H(e.steps, (g, m) => (l(), h("li", {
810
835
  key: g.name
811
836
  }, [
812
837
  t(a)(m) ? (l(), h("a", {
@@ -815,8 +840,8 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
815
840
  class: v(t(i)),
816
841
  onClick: (b) => t(r)(m, b)
817
842
  }, [
818
- u("span", ds, [
819
- e.basic ? (l(), h("span", fs)) : (l(), P(t(lt), {
843
+ u("span", ps, [
844
+ e.basic ? (l(), h("span", hs)) : (l(), P(t(at), {
820
845
  key: 1,
821
846
  class: "h-full w-full text-primary",
822
847
  "aria-hidden": "true"
@@ -824,42 +849,42 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
824
849
  ]),
825
850
  u("span", {
826
851
  class: v(["text-foreground", t(y)])
827
- }, _(g.name), 3)
828
- ], 10, cs)) : t(o)(m) ? (l(), h("a", {
852
+ }, S(g.name), 3)
853
+ ], 10, fs)) : t(o)(m) ? (l(), h("a", {
829
854
  key: 1,
830
855
  href: g.href,
831
856
  class: v(t(i)),
832
857
  "aria-current": "step",
833
858
  onClick: (b) => t(r)(m, b)
834
859
  }, [
835
- u("span", hs, [
836
- e.basic ? (l(), h("span", ms)) : (l(), h(U, { key: 1 }, [
837
- gs,
838
- ys
860
+ u("span", gs, [
861
+ e.basic ? (l(), h("span", ys)) : (l(), h(q, { key: 1 }, [
862
+ vs,
863
+ bs
839
864
  ], 64))
840
865
  ]),
841
866
  u("span", {
842
867
  class: v(["text-primary-focus", t(y)])
843
- }, _(g.name), 3)
844
- ], 10, ps)) : (l(), h("a", {
868
+ }, S(g.name), 3)
869
+ ], 10, ms)) : (l(), h("a", {
845
870
  key: 2,
846
871
  href: g.href,
847
872
  class: v(t(i)),
848
873
  onClick: (b) => t(r)(m, b)
849
874
  }, [
850
- u("div", bs, [
851
- e.basic ? (l(), h("span", xs)) : (l(), h("div", ks))
875
+ u("div", ks, [
876
+ e.basic ? (l(), h("span", Cs)) : (l(), h("div", ws))
852
877
  ]),
853
878
  u("p", {
854
879
  class: v(["text-foreground-disabled", t(y)])
855
- }, _(g.name), 3)
856
- ], 10, vs))
880
+ }, S(g.name), 3)
881
+ ], 10, xs))
857
882
  ]))), 128))
858
883
  ], 2)
859
- ], 8, us));
884
+ ], 8, ds));
860
885
  }
861
886
  });
862
- const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["disabled"], ul = /* @__PURE__ */ O({
887
+ const cl = /* @__PURE__ */ me($s, [["__scopeId", "data-v-9dd7b659"]]), _s = ["disabled"], dl = /* @__PURE__ */ O({
863
888
  __name: "CardButton",
864
889
  props: {
865
890
  disabled: { type: Boolean },
@@ -867,7 +892,7 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
867
892
  },
868
893
  emits: ["update:modelValue", "click"],
869
894
  setup(e, { emit: s }) {
870
- const n = e, o = c(() => {
895
+ const n = e, o = d(() => {
871
896
  const r = [
872
897
  "h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
873
898
  "normal px-16 py-5 shadow rounded transition active:scale-95"
@@ -882,7 +907,7 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
882
907
  }
883
908
  s("update:modelValue", !n.modelValue), s("click", r);
884
909
  };
885
- return (r, d) => (l(), h("button", {
910
+ return (r, c) => (l(), h("button", {
886
911
  class: v(t(o)),
887
912
  disabled: e.disabled,
888
913
  onClick: a
@@ -890,18 +915,18 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
890
915
  R(r.$slots, "default", {}, () => [
891
916
  T("Text")
892
917
  ])
893
- ], 10, ws));
918
+ ], 10, _s));
894
919
  }
895
- }), $s = { class: "relative flex items-start" }, _s = { class: "flex h-6 items-center" }, Ss = ["id", "checked", "aria-describedby", "name", "value", "disabled"], Is = {
920
+ }), Ss = { class: "relative flex items-start" }, Is = { class: "flex h-6 items-center" }, Bs = ["id", "checked", "aria-describedby", "name", "value", "disabled"], Ls = {
896
921
  class: "ml-2 text-sm",
897
922
  style: { "padding-top": "2px" }
898
- }, Bs = ["for"], Ls = {
923
+ }, Ps = ["for"], Vs = {
899
924
  key: 0,
900
925
  class: "text-danger ml-1"
901
- }, Ps = ["id"], js = O({
926
+ }, js = ["id"], Os = O({
902
927
  inheritAttrs: !1
903
- }), cl = /* @__PURE__ */ O({
904
- ...js,
928
+ }), fl = /* @__PURE__ */ O({
929
+ ...Os,
905
930
  __name: "Checkbox",
906
931
  props: {
907
932
  /**
@@ -989,25 +1014,25 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
989
1014
  },
990
1015
  emits: ["update:modelValue"],
991
1016
  setup(e) {
992
- const s = e, n = (x) => `${x}-${pe()}`, o = c(() => s.value || s.name), {
1017
+ const s = e, n = (L) => `${L}-${pe()}`, o = d(() => s.value || s.name), {
993
1018
  checked: a,
994
1019
  errorMessage: r,
995
- handleChange: d
1020
+ handleChange: c
996
1021
  } = fe(s.name, s.rules, {
997
1022
  validateOnMount: s.validateOnMount,
998
1023
  type: "checkbox",
999
1024
  checkedValue: o,
1000
1025
  initialValue: s.modelValue || void 0
1001
- }), i = (x) => {
1002
- s.disabled || d(x);
1003
- }, y = c(() => s.label || s.name), f = c(() => r.value ? "border-danger-lighter" : "border-foreground-4 "), w = c(() => s.description || r.value), g = c(() => `${s.name}-description`), m = c(() => {
1004
- const x = [];
1005
- return s.inlineDescription ? x.push("inline ml-2") : x.push("block"), r.value ? x.push("text-danger") : x.push("text-foreground-2"), x.join(" ");
1006
- }), b = A(n("checkbox")), j = c(() => s.id || b.value);
1007
- return (x, L) => (l(), h("div", $s, [
1008
- u("div", _s, [
1026
+ }), i = (L) => {
1027
+ s.disabled || c(L);
1028
+ }, y = d(() => s.label || s.name), f = d(() => r.value ? "border-danger-lighter" : "border-foreground-4 "), w = d(() => s.description || r.value), g = d(() => `${s.name}-description`), m = d(() => {
1029
+ const L = [];
1030
+ return s.inlineDescription ? L.push("inline ml-2") : L.push("block"), r.value ? L.push("text-danger") : L.push("text-foreground-2"), L.join(" ");
1031
+ }), b = A(n("checkbox")), V = d(() => s.id || b.value);
1032
+ return (L, $) => (l(), h("div", Ss, [
1033
+ u("div", Is, [
1009
1034
  u("input", ne({
1010
- id: t(j),
1035
+ id: t(V),
1011
1036
  checked: t(a),
1012
1037
  "aria-describedby": t(g),
1013
1038
  name: e.name,
@@ -1015,78 +1040,78 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
1015
1040
  disabled: e.disabled,
1016
1041
  type: "checkbox",
1017
1042
  class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", t(f)]
1018
- }, x.$attrs, { onChange: i }), null, 16, Ss)
1043
+ }, L.$attrs, { onChange: i }), null, 16, Bs)
1019
1044
  ]),
1020
- u("div", Is, [
1045
+ u("div", Ls, [
1021
1046
  u("label", {
1022
- for: t(j),
1047
+ for: t(V),
1023
1048
  class: v(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1024
1049
  }, [
1025
- u("span", null, _(t(y)), 1),
1026
- e.showRequired ? (l(), h("span", Ls, "*")) : $("", !0)
1027
- ], 10, Bs),
1050
+ u("span", null, S(t(y)), 1),
1051
+ e.showRequired ? (l(), h("span", Vs, "*")) : _("", !0)
1052
+ ], 10, Ps),
1028
1053
  t(w) ? (l(), h("p", {
1029
1054
  key: 0,
1030
1055
  id: t(g),
1031
1056
  class: v(t(m))
1032
- }, _(t(w)), 11, Ps)) : $("", !0)
1057
+ }, S(t(w)), 11, js)) : _("", !0)
1033
1058
  ])
1034
1059
  ]));
1035
1060
  }
1036
1061
  });
1037
- function Ae(e) {
1062
+ function De(e) {
1038
1063
  const { props: s, inputEl: n, emit: o } = e, { value: a, errorMessage: r } = fe(s.name, s.rules, {
1039
1064
  validateOnMount: t(s.validateOnMount),
1040
1065
  validateOnValueUpdate: t(s.validateOnValueUpdate),
1041
1066
  initialValue: t(s.modelValue) || void 0
1042
- }), d = c(() => {
1043
- const C = ["block label text-foreground-2 mb-2"];
1044
- return t(s.showLabel) || C.push("sr-only"), C.join(" ");
1045
- }), i = c(() => {
1046
- const C = [
1067
+ }), c = d(() => {
1068
+ const x = ["block label text-foreground-2 mb-2"];
1069
+ return t(s.showLabel) || x.push("sr-only"), x.join(" ");
1070
+ }), i = d(() => {
1071
+ const x = [
1047
1072
  "block w-full rounded focus:outline-none text-foreground transition-all",
1048
1073
  "disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
1049
1074
  "placeholder:text-foreground-2"
1050
1075
  ];
1051
- return r.value ? C.push(
1076
+ return r.value ? x.push(
1052
1077
  "border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
1053
- ) : C.push("border-0 focus:ring-2 focus:ring-outline-2"), t(s.color) === "foundation" ? C.push("bg-foundation shadow-sm hover:shadow") : C.push("bg-foundation-page"), C.join(" ");
1054
- }), y = A(pe()), f = c(() => t(s.label) || t(s.name)), w = c(() => {
1055
- const C = r.value;
1056
- return !C || !t(s.useLabelInErrors) ? C : C.replace("Value", f.value);
1057
- }), g = c(
1078
+ ) : x.push("border-0 focus:ring-2 focus:ring-outline-2"), t(s.color) === "foundation" ? x.push("bg-foundation shadow-sm hover:shadow") : x.push("bg-foundation-page"), x.join(" ");
1079
+ }), y = A(pe()), f = d(() => t(s.label) || t(s.name)), w = d(() => {
1080
+ const x = r.value;
1081
+ return !x || !t(s.useLabelInErrors) ? x : x.replace("Value", f.value);
1082
+ }), g = d(
1058
1083
  () => w.value && t(s.hideErrorMessage)
1059
- ), m = c(() => w.value || t(s.help)), b = c(() => !!m.value), j = c(
1084
+ ), m = d(() => w.value || t(s.help)), b = d(() => !!m.value), V = d(
1060
1085
  () => b.value ? `${t(s.name)}-${y.value}` : void 0
1061
- ), x = c(() => {
1062
- const C = ["mt-2 text-sm"];
1063
- return C.push(r.value ? "text-danger" : "text-foreground-2"), C.join(" ");
1064
- }), L = () => {
1065
- var C;
1066
- (C = n.value) == null || C.focus();
1067
- }, S = () => {
1086
+ ), L = d(() => {
1087
+ const x = ["mt-2 text-sm"];
1088
+ return x.push(r.value ? "text-danger" : "text-foreground-2"), x.join(" ");
1089
+ }), $ = () => {
1090
+ var x;
1091
+ (x = n.value) == null || x.focus();
1092
+ }, C = () => {
1068
1093
  a.value = "", o("change", { value: "" }), o("clear");
1069
1094
  };
1070
1095
  return ee(() => {
1071
- t(s.autoFocus) && L();
1096
+ t(s.autoFocus) && $();
1072
1097
  }), {
1073
1098
  coreClasses: i,
1074
1099
  title: f,
1075
1100
  value: a,
1076
- helpTipId: j,
1077
- helpTipClasses: x,
1101
+ helpTipId: V,
1102
+ helpTipClasses: L,
1078
1103
  helpTip: m,
1079
1104
  hideHelpTip: g,
1080
1105
  errorMessage: w,
1081
- clear: S,
1082
- focus: L,
1083
- labelClasses: d
1106
+ clear: C,
1107
+ focus: $,
1108
+ labelClasses: c
1084
1109
  };
1085
1110
  }
1086
- const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], As = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Ds = {
1111
+ const Ms = ["for"], As = { class: "relative" }, Ds = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Rs = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Ts = {
1087
1112
  key: 2,
1088
1113
  class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
1089
- }, Rs = ["id"], dl = /* @__PURE__ */ O({
1114
+ }, zs = ["id"], pl = /* @__PURE__ */ O({
1090
1115
  __name: "TextArea",
1091
1116
  props: {
1092
1117
  name: null,
@@ -1110,7 +1135,7 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1110
1135
  setup(e, { expose: s, emit: n }) {
1111
1136
  const o = e, a = A(null), {
1112
1137
  coreClasses: r,
1113
- title: d,
1138
+ title: c,
1114
1139
  value: i,
1115
1140
  helpTipId: y,
1116
1141
  helpTipClasses: f,
@@ -1118,57 +1143,57 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1118
1143
  errorMessage: g,
1119
1144
  labelClasses: m,
1120
1145
  clear: b,
1121
- focus: j
1122
- } = Ae({
1146
+ focus: V
1147
+ } = De({
1123
1148
  props: Z(o),
1124
1149
  emit: n,
1125
1150
  inputEl: a
1126
- }), x = c(() => {
1127
- const L = ["pl-2"];
1128
- return o.showClear && g.value ? L.push("pr-12") : (o.showClear || g.value) && L.push("pr-8"), L.join(" ");
1151
+ }), L = d(() => {
1152
+ const $ = ["pl-2"];
1153
+ return o.showClear && g.value ? $.push("pr-12") : (o.showClear || g.value) && $.push("pr-8"), $.join(" ");
1129
1154
  });
1130
- return s({ focus: j }), (L, S) => (l(), h("div", {
1155
+ return s({ focus: V }), ($, C) => (l(), h("div", {
1131
1156
  class: v([e.fullWidth ? "w-full" : ""])
1132
1157
  }, [
1133
1158
  u("label", {
1134
1159
  for: e.name,
1135
1160
  class: v(t(m))
1136
1161
  }, [
1137
- u("span", null, _(t(d)), 1)
1138
- ], 10, Vs),
1139
- u("div", Os, [
1162
+ u("span", null, S(t(c)), 1)
1163
+ ], 10, Ms),
1164
+ u("div", As, [
1140
1165
  te(u("textarea", ne({
1141
1166
  id: e.name,
1142
1167
  ref_key: "inputElement",
1143
1168
  ref: a,
1144
- "onUpdate:modelValue": S[0] || (S[0] = (C) => le(i) ? i.value = C : null),
1169
+ "onUpdate:modelValue": C[0] || (C[0] = (x) => le(i) ? i.value = x : null),
1145
1170
  name: e.name,
1146
- class: [t(r), t(x), "min-h-[4rem]"],
1171
+ class: [t(r), t(L), "min-h-[4rem]"],
1147
1172
  placeholder: e.placeholder,
1148
1173
  disabled: e.disabled,
1149
1174
  "aria-invalid": t(g) ? "true" : "false",
1150
1175
  "aria-describedby": t(y)
1151
- }, L.$attrs, {
1152
- onChange: S[1] || (S[1] = (C) => L.$emit("change", { event: C, value: t(i) })),
1153
- onInput: S[2] || (S[2] = (C) => L.$emit("input", { event: C, value: t(i) }))
1154
- }), null, 16, Ms), [
1155
- [Ie, t(i)]
1176
+ }, $.$attrs, {
1177
+ onChange: C[1] || (C[1] = (x) => $.$emit("change", { event: x, value: t(i) })),
1178
+ onInput: C[2] || (C[2] = (x) => $.$emit("input", { event: x, value: t(i) }))
1179
+ }), null, 16, Ds), [
1180
+ [Be, t(i)]
1156
1181
  ]),
1157
1182
  e.showClear ? (l(), h("a", {
1158
1183
  key: 0,
1159
1184
  title: "Clear input",
1160
1185
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
1161
- onClick: S[3] || (S[3] = //@ts-ignore
1162
- (...C) => t(b) && t(b)(...C)),
1163
- onKeydown: S[4] || (S[4] = //@ts-ignore
1164
- (...C) => t(b) && t(b)(...C))
1186
+ onClick: C[3] || (C[3] = //@ts-ignore
1187
+ (...x) => t(b) && t(b)(...x)),
1188
+ onKeydown: C[4] || (C[4] = //@ts-ignore
1189
+ (...x) => t(b) && t(b)(...x))
1165
1190
  }, [
1166
- As,
1191
+ Rs,
1167
1192
  I(t(de), {
1168
1193
  class: "h-5 w-5 text-foreground",
1169
1194
  "aria-hidden": "true"
1170
1195
  })
1171
- ], 32)) : $("", !0),
1196
+ ], 32)) : _("", !0),
1172
1197
  t(g) ? (l(), h("div", {
1173
1198
  key: 1,
1174
1199
  class: v([
@@ -1176,30 +1201,30 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1176
1201
  e.showClear ? "pr-8" : "pr-2"
1177
1202
  ])
1178
1203
  }, [
1179
- I(t(Ve), {
1204
+ I(t(Oe), {
1180
1205
  class: "h-4 w-4 text-danger",
1181
1206
  "aria-hidden": "true"
1182
1207
  })
1183
- ], 2)) : $("", !0),
1184
- e.showRequired && !t(g) ? (l(), h("div", Ds, " * ")) : $("", !0)
1208
+ ], 2)) : _("", !0),
1209
+ e.showRequired && !t(g) ? (l(), h("div", Ts, " * ")) : _("", !0)
1185
1210
  ]),
1186
1211
  t(y) ? (l(), h("p", {
1187
1212
  key: 0,
1188
1213
  id: t(y),
1189
1214
  class: v(t(f))
1190
- }, _(t(w)), 11, Rs)) : $("", !0)
1215
+ }, S(t(w)), 11, zs)) : _("", !0)
1191
1216
  ], 2));
1192
1217
  }
1193
- }), Ts = ["for"], Fs = { class: "relative" }, zs = {
1218
+ }), Fs = ["for"], Es = { class: "relative" }, Ws = {
1194
1219
  key: 0,
1195
1220
  class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
1196
- }, Es = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ws = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Us = {
1221
+ }, Us = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], qs = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Hs = {
1197
1222
  key: 2,
1198
1223
  class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
1199
- }, qs = ["id"], Hs = O({
1224
+ }, Gs = ["id"], Ks = O({
1200
1225
  inheritAttrs: !1
1201
- }), fl = /* @__PURE__ */ O({
1202
- ...Hs,
1226
+ }), hl = /* @__PURE__ */ O({
1227
+ ...Ks,
1203
1228
  __name: "TextInput",
1204
1229
  props: {
1205
1230
  /**
@@ -1335,8 +1360,8 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1335
1360
  },
1336
1361
  emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
1337
1362
  setup(e, { expose: s, emit: n }) {
1338
- const o = e, a = ze(), r = A(null), {
1339
- coreClasses: d,
1363
+ const o = e, a = Ee(), r = A(null), {
1364
+ coreClasses: c,
1340
1365
  title: i,
1341
1366
  value: y,
1342
1367
  helpTipId: f,
@@ -1344,22 +1369,22 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1344
1369
  helpTip: g,
1345
1370
  hideHelpTip: m,
1346
1371
  errorMessage: b,
1347
- clear: j,
1348
- focus: x,
1349
- labelClasses: L
1350
- } = Ae({
1372
+ clear: V,
1373
+ focus: L,
1374
+ labelClasses: $
1375
+ } = De({
1351
1376
  props: Z(o),
1352
1377
  emit: n,
1353
1378
  inputEl: r
1354
- }), S = c(() => {
1355
- const V = ["h-5 w-5"];
1356
- return b.value ? V.push("text-danger") : V.push("text-foreground-2"), V.join(" ");
1357
- }), C = c(
1379
+ }), C = d(() => {
1380
+ const j = ["h-5 w-5"];
1381
+ return b.value ? j.push("text-danger") : j.push("text-foreground-2"), j.join(" ");
1382
+ }), x = d(
1358
1383
  () => ["email", "password"].includes(o.type) || o.customIcon
1359
- ), q = c(() => {
1360
- const V = [];
1361
- return C.value ? V.push("pl-8") : V.push("pl-2"), a["input-right"] || (b.value || o.showClear) && (b.value && o.showClear ? V.push("pr-12") : V.push("pr-8")), V.join(" ");
1362
- }), p = c(() => {
1384
+ ), E = d(() => {
1385
+ const j = [];
1386
+ return x.value ? j.push("pl-8") : j.push("pl-2"), a["input-right"] || (b.value || o.showClear) && (b.value && o.showClear ? j.push("pr-12") : j.push("pr-8")), j.join(" ");
1387
+ }), p = d(() => {
1363
1388
  switch (o.size) {
1364
1389
  case "sm":
1365
1390
  return "h-6";
@@ -1372,66 +1397,66 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1372
1397
  return "h-8";
1373
1398
  }
1374
1399
  });
1375
- return s({ focus: x }), (V, F) => (l(), h("div", {
1400
+ return s({ focus: L }), (j, z) => (l(), h("div", {
1376
1401
  class: v([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1377
1402
  }, [
1378
1403
  u("label", {
1379
1404
  for: e.name,
1380
- class: v(t(L))
1405
+ class: v(t($))
1381
1406
  }, [
1382
- u("span", null, _(t(i)), 1)
1383
- ], 10, Ts),
1384
- u("div", Fs, [
1385
- t(C) ? (l(), h("div", zs, [
1386
- e.customIcon ? (l(), P(W(e.customIcon), {
1407
+ u("span", null, S(t(i)), 1)
1408
+ ], 10, Fs),
1409
+ u("div", Es, [
1410
+ t(x) ? (l(), h("div", Ws, [
1411
+ e.customIcon ? (l(), P(U(e.customIcon), {
1387
1412
  key: 0,
1388
- class: v(t(S)),
1413
+ class: v(t(C)),
1389
1414
  "aria-hidden": "true"
1390
- }, null, 8, ["class"])) : e.type === "email" ? (l(), P(t(at), {
1415
+ }, null, 8, ["class"])) : e.type === "email" ? (l(), P(t(ot), {
1391
1416
  key: 1,
1392
- class: v(t(S)),
1417
+ class: v(t(C)),
1393
1418
  "aria-hidden": "true"
1394
- }, null, 8, ["class"])) : e.type === "password" ? (l(), P(t(ot), {
1419
+ }, null, 8, ["class"])) : e.type === "password" ? (l(), P(t(rt), {
1395
1420
  key: 2,
1396
- class: v(t(S)),
1421
+ class: v(t(C)),
1397
1422
  "aria-hidden": "true"
1398
- }, null, 8, ["class"])) : $("", !0)
1399
- ])) : $("", !0),
1423
+ }, null, 8, ["class"])) : _("", !0)
1424
+ ])) : _("", !0),
1400
1425
  te(u("input", ne({
1401
1426
  id: e.name,
1402
1427
  ref_key: "inputElement",
1403
1428
  ref: r,
1404
- "onUpdate:modelValue": F[0] || (F[0] = (M) => le(y) ? y.value = M : null),
1429
+ "onUpdate:modelValue": z[0] || (z[0] = (M) => le(y) ? y.value = M : null),
1405
1430
  type: e.type,
1406
1431
  name: e.name,
1407
- class: [t(d), t(q), t(p), e.inputClasses || ""],
1432
+ class: [t(c), t(E), t(p), e.inputClasses || ""],
1408
1433
  placeholder: e.placeholder,
1409
1434
  disabled: e.disabled,
1410
1435
  "aria-invalid": t(b) ? "true" : "false",
1411
1436
  "aria-describedby": t(f),
1412
1437
  role: "textbox"
1413
- }, V.$attrs, {
1414
- onChange: F[1] || (F[1] = (M) => V.$emit("change", { event: M, value: t(y) })),
1415
- onInput: F[2] || (F[2] = (M) => V.$emit("input", { event: M, value: t(y) }))
1416
- }), null, 16, Es), [
1417
- [Ee, t(y)]
1438
+ }, j.$attrs, {
1439
+ onChange: z[1] || (z[1] = (M) => j.$emit("change", { event: M, value: t(y) })),
1440
+ onInput: z[2] || (z[2] = (M) => j.$emit("input", { event: M, value: t(y) }))
1441
+ }), null, 16, Us), [
1442
+ [We, t(y)]
1418
1443
  ]),
1419
- R(V.$slots, "input-right", {}, () => [
1444
+ R(j.$slots, "input-right", {}, () => [
1420
1445
  e.showClear ? (l(), h("a", {
1421
1446
  key: 0,
1422
1447
  title: "Clear input",
1423
1448
  class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
1424
- onClick: F[3] || (F[3] = //@ts-ignore
1425
- (...M) => t(j) && t(j)(...M)),
1426
- onKeydown: F[4] || (F[4] = //@ts-ignore
1427
- (...M) => t(j) && t(j)(...M))
1449
+ onClick: z[3] || (z[3] = //@ts-ignore
1450
+ (...M) => t(V) && t(V)(...M)),
1451
+ onKeydown: z[4] || (z[4] = //@ts-ignore
1452
+ (...M) => t(V) && t(V)(...M))
1428
1453
  }, [
1429
- Ws,
1454
+ qs,
1430
1455
  I(t(de), {
1431
1456
  class: "h-5 w-5 text-foreground",
1432
1457
  "aria-hidden": "true"
1433
1458
  })
1434
- ], 32)) : $("", !0),
1459
+ ], 32)) : _("", !0),
1435
1460
  t(b) ? (l(), h("div", {
1436
1461
  key: 1,
1437
1462
  class: v([
@@ -1439,71 +1464,71 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1439
1464
  e.showClear ? "pr-8" : "pr-2"
1440
1465
  ])
1441
1466
  }, [
1442
- I(t(Ve), {
1467
+ I(t(Oe), {
1443
1468
  class: "h-4 w-4 text-danger",
1444
1469
  "aria-hidden": "true"
1445
1470
  })
1446
- ], 2)) : $("", !0),
1447
- e.showRequired && !t(b) ? (l(), h("div", Us, " * ")) : $("", !0)
1471
+ ], 2)) : _("", !0),
1472
+ e.showRequired && !t(b) ? (l(), h("div", Hs, " * ")) : _("", !0)
1448
1473
  ])
1449
1474
  ]),
1450
1475
  t(f) && !t(m) ? (l(), h("p", {
1451
1476
  key: 0,
1452
1477
  id: t(f),
1453
1478
  class: v(t(w))
1454
- }, _(t(g)), 11, qs)) : $("", !0)
1479
+ }, S(t(g)), 11, Gs)) : _("", !0)
1455
1480
  ], 2));
1456
1481
  }
1457
- }), Gs = /^https?:\/\//, ye = /^[\w-_.+]+@[\w-_.+]+$/, Ks = (e) => (e || "").match(ye) ? !0 : "Value should be a valid e-mail address", Xs = (e) => (e || "").split(",").map((o) => o.trim()).every((o) => o.match(ye)) || "Value should be one or multiple comma-delimited e-mail addresses", Ns = (e) => (se(e) && (e = e.trim()), e ? !0 : "Value is required"), Js = (e, s) => (n, o) => n === o.form[e] ? !0 : `Value must be the same as in field '${s || e}'`, Qs = (e) => (s) => {
1482
+ }), Xs = /^https?:\/\//, ye = /^[\w-_.+]+@[\w-_.+]+$/, Ns = (e) => (e || "").match(ye) ? !0 : "Value should be a valid e-mail address", Js = (e) => (e || "").split(",").map((o) => o.trim()).every((o) => o.match(ye)) || "Value should be one or multiple comma-delimited e-mail addresses", Qs = (e) => (se(e) && (e = e.trim()), e ? !0 : "Value is required"), Ys = (e, s) => (n, o) => n === o.form[e] ? !0 : `Value must be the same as in field '${s || e}'`, Zs = (e) => (s) => {
1458
1483
  const { minLength: n, maxLength: o } = e;
1459
- return s = rt(s) ? "" : s, se(s) ? !X(n) && s.length < n ? `Value needs to be at least ${n} characters long` : !X(o) && s.length > o ? `Value needs to be no more than ${o} characters long` : !0 : "Value should be a text string";
1460
- }, Ys = (e) => (s) => {
1484
+ return s = it(s) ? "" : s, se(s) ? !X(n) && s.length < n ? `Value needs to be at least ${n} characters long` : !X(o) && s.length > o ? `Value needs to be no more than ${o} characters long` : !0 : "Value should be a text string";
1485
+ }, en = (e) => (s) => {
1461
1486
  const { match: n, message: o } = e;
1462
1487
  return se(s) ? n ? se(n) ? s.includes(n) ? !0 : o : n.test(s) ? !0 : o : !0 : "Value should be a text string";
1463
- }, pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1488
+ }, ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1464
1489
  __proto__: null,
1465
1490
  VALID_EMAIL: ye,
1466
- VALID_HTTP_URL: Gs,
1467
- isEmail: Ks,
1468
- isOneOrMultipleEmails: Xs,
1469
- isRequired: Ns,
1470
- isSameAs: Js,
1471
- isStringOfLength: Qs,
1472
- stringContains: Ys
1491
+ VALID_HTTP_URL: Xs,
1492
+ isEmail: Ns,
1493
+ isOneOrMultipleEmails: Js,
1494
+ isRequired: Qs,
1495
+ isSameAs: Ys,
1496
+ isStringOfLength: Zs,
1497
+ stringContains: en
1473
1498
  }, Symbol.toStringTag, { value: "Module" }));
1474
- function Zs(e) {
1499
+ function tn(e) {
1475
1500
  const {
1476
1501
  skipCalculation: s,
1477
1502
  elementToWatchForChanges: n,
1478
1503
  itemContainer: o,
1479
1504
  trackResize: a = !1,
1480
1505
  trackMutations: r = !0
1481
- } = e || {}, d = A(0), i = () => {
1506
+ } = e || {}, c = A(0), i = () => {
1482
1507
  const y = o.value;
1483
1508
  if (s != null && s.value || !y)
1484
1509
  return;
1485
1510
  const f = y.children;
1486
1511
  let w = 0, g = 0, m;
1487
1512
  for (const b of f) {
1488
- const j = b.offsetTop;
1489
- X(m) ? (m = j, w += 1) : j === m && (w += 1), g += 1;
1513
+ const V = b.offsetTop;
1514
+ X(m) ? (m = V, w += 1) : V === m && (w += 1), g += 1;
1490
1515
  }
1491
- d.value = g - w;
1516
+ c.value = g - w;
1492
1517
  };
1493
- return a && ct(n, i), r && dt(n, i, {
1518
+ return a && dt(n, i), r && ft(n, i, {
1494
1519
  childList: !0,
1495
1520
  subtree: !0
1496
1521
  }), {
1497
- hiddenItemCount: d
1522
+ hiddenItemCount: c
1498
1523
  };
1499
1524
  }
1500
- function en(e) {
1525
+ function sn(e) {
1501
1526
  const { props: s, emit: n, dynamicVisibility: o } = e;
1502
1527
  let a;
1503
1528
  if (o) {
1504
1529
  const { elementToWatchForChanges: f, itemContainer: w } = o;
1505
- a = Zs({
1506
- skipCalculation: c(() => {
1530
+ a = tn({
1531
+ skipCalculation: d(() => {
1507
1532
  var m;
1508
1533
  return !((m = s.multiple) != null && m.value);
1509
1534
  }),
@@ -1512,35 +1537,35 @@ function en(e) {
1512
1537
  }).hiddenItemCount;
1513
1538
  } else
1514
1539
  a = A(0);
1515
- const r = c({
1540
+ const r = d({
1516
1541
  get: () => {
1517
1542
  var w, g;
1518
1543
  const f = (w = s.modelValue) == null ? void 0 : w.value;
1519
- return (g = s.multiple) != null && g.value ? E(f) ? f : [] : E(f) ? void 0 : f;
1544
+ return (g = s.multiple) != null && g.value ? W(f) ? f : [] : W(f) ? void 0 : f;
1520
1545
  },
1521
1546
  set: (f) => {
1522
1547
  var w, g, m;
1523
- if ((w = s.multiple) != null && w.value && !E(f)) {
1548
+ if ((w = s.multiple) != null && w.value && !W(f)) {
1524
1549
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1525
1550
  return;
1526
- } else if (!((g = s.multiple) != null && g.value) && E(f)) {
1551
+ } else if (!((g = s.multiple) != null && g.value) && W(f)) {
1527
1552
  console.warn("Attempting to set array value in selector w/ multiple=false");
1528
1553
  return;
1529
1554
  }
1530
1555
  n("update:modelValue", (m = s.multiple) != null && m.value ? f || [] : f);
1531
1556
  }
1532
- }), d = (f) => E(f);
1557
+ }), c = (f) => W(f);
1533
1558
  return {
1534
1559
  selectedValue: r,
1535
1560
  hiddenSelectedItemCount: a,
1536
- isArrayValue: d,
1537
- isMultiItemArrayValue: (f) => E(f) && f.length > 1,
1538
- firstItem: (f) => d(f) ? f[0] : f
1561
+ isArrayValue: c,
1562
+ isMultiItemArrayValue: (f) => W(f) && f.length > 1,
1563
+ firstItem: (f) => c(f) ? f[0] : f
1539
1564
  };
1540
1565
  }
1541
- const tn = (e) => (_e("data-v-60cf597b"), e = e(), Se(), e), sn = /* @__PURE__ */ tn(() => /* @__PURE__ */ u("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), nn = [
1542
- sn
1543
- ], ln = /* @__PURE__ */ O({
1566
+ const nn = (e) => (Se("data-v-60cf597b"), e = e(), Ie(), e), ln = /* @__PURE__ */ nn(() => /* @__PURE__ */ u("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), an = [
1567
+ ln
1568
+ ], on = /* @__PURE__ */ O({
1544
1569
  __name: "Bar",
1545
1570
  props: {
1546
1571
  loading: { type: Boolean }
@@ -1551,18 +1576,18 @@ const tn = (e) => (_e("data-v-60cf597b"), e = e(), Se(), e), sn = /* @__PURE__ *
1551
1576
  "relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
1552
1577
  e.loading ? "opacity-100" : "opacity-0"
1553
1578
  ])
1554
- }, nn, 2));
1579
+ }, an, 2));
1555
1580
  }
1556
1581
  });
1557
- const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { class: "flex items-center justify-between w-full" }, on = { class: "block truncate grow text-left" }, rn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, un = ["disabled"], cn = {
1582
+ const Re = /* @__PURE__ */ me(on, [["__scopeId", "data-v-60cf597b"]]), rn = { class: "flex items-center justify-between w-full" }, un = { class: "block truncate grow text-left" }, cn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, dn = ["disabled"], fn = {
1558
1583
  key: 0,
1559
1584
  class: "flex flex-col mx-1 mb-1"
1560
- }, dn = /* @__PURE__ */ u("span", { class: "sr-only label text-foreground" }, "Search", -1), fn = { class: "relative" }, pn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, hn = ["placeholder"], mn = {
1585
+ }, pn = /* @__PURE__ */ u("span", { class: "sr-only label text-foreground" }, "Search", -1), hn = { class: "relative" }, mn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, gn = ["placeholder"], yn = {
1561
1586
  key: 0,
1562
1587
  class: "px-1"
1563
- }, gn = { key: 1 }, yn = /* @__PURE__ */ u("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), vn = {
1588
+ }, vn = { key: 1 }, bn = /* @__PURE__ */ u("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), xn = {
1564
1589
  class: /* @__PURE__ */ v(["block truncate"])
1565
- }, bn = ["id"], xn = /* @__PURE__ */ O({
1590
+ }, kn = ["id"], Cn = /* @__PURE__ */ O({
1566
1591
  __name: "Base",
1567
1592
  props: {
1568
1593
  multiple: {
@@ -1698,138 +1723,138 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1698
1723
  validateOnMount: s.validateOnMount,
1699
1724
  validateOnValueUpdate: s.validateOnValueUpdate,
1700
1725
  initialValue: s.modelValue
1701
- }), a = A(null), r = A(""), d = A([]), i = A(!1), y = A(pe()), f = c(() => t(s.label) || t(s.name)), w = c(() => {
1726
+ }), a = A(null), r = A(""), c = A([]), i = A(!1), y = A(pe()), f = d(() => t(s.label) || t(s.name)), w = d(() => {
1702
1727
  const k = o.value;
1703
1728
  return !k || !t(s.useLabelInErrors) ? k : k.replace("Value", f.value);
1704
- }), g = c(() => w.value || t(s.help)), m = c(() => !!g.value), b = c(
1729
+ }), g = d(() => w.value || t(s.help)), m = d(() => !!g.value), b = d(
1705
1730
  () => m.value ? `${t(s.name)}-${y.value}` : void 0
1706
- ), j = c(
1731
+ ), V = d(
1707
1732
  () => o.value ? "text-danger" : "text-foreground-2"
1708
- ), x = c(
1733
+ ), L = d(
1709
1734
  () => s.buttonStyle !== "simple" && s.clearable && !s.disabled
1710
- ), L = c(() => {
1735
+ ), $ = d(() => {
1711
1736
  const k = ["relative flex group", s.showLabel ? "mt-1" : ""];
1712
1737
  return s.buttonStyle !== "simple" && (k.push("hover:shadow rounded-md"), k.push("outline outline-2 outline-primary-muted")), s.fixedHeight && k.push("h-8"), k.join(" ");
1713
- }), S = c(() => {
1738
+ }), C = d(() => {
1714
1739
  const k = [];
1715
1740
  return s.buttonStyle !== "simple" && k.push(
1716
- F.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1717
- ), F.value && k.push("cursor-not-allowed"), k.join(" ");
1718
- }), C = c(() => {
1741
+ z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1742
+ ), z.value && k.push("cursor-not-allowed"), k.join(" ");
1743
+ }), x = d(() => {
1719
1744
  const k = [
1720
1745
  "relative z-[1]",
1721
1746
  "flex items-center justify-center text-center shrink-0",
1722
1747
  "rounded-r-md overflow-hidden transition-all",
1723
- ve.value ? `w-6 ${S.value}` : "w-0"
1748
+ ve.value ? `w-6 ${C.value}` : "w-0"
1724
1749
  ];
1725
- return F.value || k.push(
1750
+ return z.value || k.push(
1726
1751
  "bg-primary-muted hover:bg-primary hover:text-foreground-on-primary"
1727
1752
  ), k.join(" ");
1728
- }), q = c(() => {
1753
+ }), E = d(() => {
1729
1754
  const k = [
1730
1755
  "relative z-[2]",
1731
1756
  "normal rounded-md cursor-pointer transition truncate flex-1",
1732
1757
  "flex items-center",
1733
- S.value
1758
+ C.value
1734
1759
  ];
1735
- return s.buttonStyle !== "simple" && (k.push("py-2 px-3"), F.value || k.push("bg-foundation text-foreground")), x.value && ve.value && k.push("rounded-r-none"), k.join(" ");
1736
- }), p = c(
1760
+ return s.buttonStyle !== "simple" && (k.push("py-2 px-3"), z.value || k.push("bg-foundation text-foreground")), L.value && ve.value && k.push("rounded-r-none"), k.join(" ");
1761
+ }), p = d(
1737
1762
  () => !!(s.search && (s.filterPredicate || s.getSearchResults))
1738
- ), V = c(() => p.value && s.getSearchResults), F = c(
1739
- () => s.disabled || !s.items.length && !V.value
1740
- ), M = c({
1763
+ ), j = d(() => p.value && s.getSearchResults), z = d(
1764
+ () => s.disabled || !s.items.length && !j.value
1765
+ ), M = d({
1741
1766
  get: () => {
1742
1767
  const k = n.value;
1743
- return s.multiple ? E(k) ? k : [] : E(k) ? void 0 : k;
1768
+ return s.multiple ? W(k) ? k : [] : W(k) ? void 0 : k;
1744
1769
  },
1745
1770
  set: (k) => {
1746
- if (s.multiple && !E(k)) {
1771
+ if (s.multiple && !W(k)) {
1747
1772
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1748
1773
  return;
1749
- } else if (!s.multiple && E(k)) {
1774
+ } else if (!s.multiple && W(k)) {
1750
1775
  console.warn("Attempting to set array value in selector w/ multiple=false");
1751
1776
  return;
1752
1777
  }
1753
1778
  if (s.multiple)
1754
1779
  n.value = k || [];
1755
1780
  else {
1756
- const z = n.value, D = s.allowUnset && z && k && ae(z) === ae(k);
1781
+ const F = n.value, D = s.allowUnset && F && k && ae(F) === ae(k);
1757
1782
  n.value = D ? void 0 : k;
1758
1783
  }
1759
1784
  }
1760
- }), ve = c(() => s.multiple ? M.value.length !== 0 : !!M.value), Re = () => {
1785
+ }), ve = d(() => s.multiple ? M.value.length !== 0 : !!M.value), Te = () => {
1761
1786
  s.multiple ? M.value = [] : M.value = void 0;
1762
- }, Te = c(() => {
1787
+ }, ze = d(() => {
1763
1788
  const k = r.value;
1764
- return !p.value || !(k != null && k.length) ? d.value : s.filterPredicate ? d.value.filter(
1765
- (z) => {
1789
+ return !p.value || !(k != null && k.length) ? c.value : s.filterPredicate ? c.value.filter(
1790
+ (F) => {
1766
1791
  var D;
1767
- return ((D = s.filterPredicate) == null ? void 0 : D.call(s, z, k)) || !1;
1792
+ return ((D = s.filterPredicate) == null ? void 0 : D.call(s, F, k)) || !1;
1768
1793
  }
1769
- ) : d.value;
1794
+ ) : c.value;
1770
1795
  }), be = (k) => JSON.stringify(k), ae = (k) => s.by ? k[s.by] : k, xe = async () => {
1771
- if (console.log("triggerSearch"), !(!V.value || !s.getSearchResults)) {
1796
+ if (console.log("triggerSearch"), !(!j.value || !s.getSearchResults)) {
1772
1797
  i.value = !0;
1773
1798
  try {
1774
- d.value = await s.getSearchResults(r.value);
1799
+ c.value = await s.getSearchResults(r.value);
1775
1800
  } finally {
1776
1801
  i.value = !1;
1777
1802
  }
1778
1803
  }
1779
- }, Fe = Pe(xe, 1e3);
1804
+ }, Fe = Ve(xe, 1e3);
1780
1805
  return Y(
1781
1806
  () => s.items,
1782
1807
  (k) => {
1783
- d.value = k.slice();
1808
+ c.value = k.slice();
1784
1809
  },
1785
1810
  { immediate: !0 }
1786
1811
  ), Y(r, () => {
1787
- V.value && Fe();
1812
+ j.value && Fe();
1788
1813
  }), ee(() => {
1789
- V.value && !s.items.length && xe();
1790
- }), (k, z) => (l(), h("div", null, [
1791
- I(t(pt), {
1814
+ j.value && !s.items.length && xe();
1815
+ }), (k, F) => (l(), h("div", null, [
1816
+ I(t(ht), {
1792
1817
  modelValue: t(M),
1793
- "onUpdate:modelValue": z[4] || (z[4] = (D) => le(M) ? M.value = D : null),
1818
+ "onUpdate:modelValue": F[4] || (F[4] = (D) => le(M) ? M.value = D : null),
1794
1819
  name: e.name,
1795
1820
  multiple: e.multiple,
1796
1821
  by: e.by,
1797
- disabled: t(F),
1822
+ disabled: t(z),
1798
1823
  as: "div"
1799
1824
  }, {
1800
1825
  default: B(() => [
1801
- I(t(ht), {
1826
+ I(t(mt), {
1802
1827
  class: v(["block label text-foreground", { "sr-only": !e.showLabel }])
1803
1828
  }, {
1804
1829
  default: B(() => [
1805
- T(_(e.label), 1)
1830
+ T(S(e.label), 1)
1806
1831
  ]),
1807
1832
  _: 1
1808
1833
  }, 8, ["class"]),
1809
1834
  u("div", {
1810
- class: v(t(L))
1835
+ class: v(t($))
1811
1836
  }, [
1812
- I(t(mt), {
1813
- class: v(t(q))
1837
+ I(t(gt), {
1838
+ class: v(t(E))
1814
1839
  }, {
1815
1840
  default: B(({ open: D }) => [
1816
- u("div", an, [
1817
- u("div", on, [
1818
- !t(M) || t(E)(t(M)) && !t(M).length ? R(k.$slots, "nothing-selected", { key: 0 }, () => [
1819
- T(_(e.label), 1)
1841
+ u("div", rn, [
1842
+ u("div", un, [
1843
+ !t(M) || t(W)(t(M)) && !t(M).length ? R(k.$slots, "nothing-selected", { key: 0 }, () => [
1844
+ T(S(e.label), 1)
1820
1845
  ]) : R(k.$slots, "something-selected", {
1821
1846
  key: 1,
1822
1847
  value: t(M)
1823
1848
  }, () => [
1824
- T(_(be(t(M))), 1)
1849
+ T(S(be(t(M))), 1)
1825
1850
  ])
1826
1851
  ]),
1827
- u("div", rn, [
1852
+ u("div", cn, [
1828
1853
  D ? (l(), P(t(je), {
1829
1854
  key: 0,
1830
1855
  class: "h-4 w-4 text-foreground",
1831
1856
  "aria-hidden": "true"
1832
- })) : (l(), P(t(qe), {
1857
+ })) : (l(), P(t(He), {
1833
1858
  key: 1,
1834
1859
  class: "h-4 w-4 text-foreground",
1835
1860
  "aria-hidden": "true"
@@ -1839,61 +1864,61 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1839
1864
  ]),
1840
1865
  _: 3
1841
1866
  }, 8, ["class"]),
1842
- t(x) ? te((l(), h("button", {
1867
+ t(L) ? te((l(), h("button", {
1843
1868
  key: 0,
1844
- class: v(t(C)),
1869
+ class: v(t(x)),
1845
1870
  disabled: e.disabled,
1846
- onClick: z[0] || (z[0] = (D) => Re())
1871
+ onClick: F[0] || (F[0] = (D) => Te())
1847
1872
  }, [
1848
- I(t(He), { class: "w-3 h-3" })
1849
- ], 10, un)), [
1850
- [t(Bt), "Clear"]
1851
- ]) : $("", !0),
1873
+ I(t(Ge), { class: "w-3 h-3" })
1874
+ ], 10, dn)), [
1875
+ [t(Lt), "Clear"]
1876
+ ]) : _("", !0),
1852
1877
  I(ce, {
1853
1878
  "leave-active-class": "transition ease-in duration-100",
1854
1879
  "leave-from-class": "opacity-100",
1855
1880
  "leave-to-class": "opacity-0"
1856
1881
  }, {
1857
1882
  default: B(() => [
1858
- I(t(gt), {
1883
+ I(t(yt), {
1859
1884
  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",
1860
- onFocus: z[3] || (z[3] = (D) => {
1885
+ onFocus: F[3] || (F[3] = (D) => {
1861
1886
  var G;
1862
1887
  return (G = a.value) == null ? void 0 : G.focus();
1863
1888
  })
1864
1889
  }, {
1865
1890
  default: B(() => [
1866
- t(p) ? (l(), h("label", cn, [
1867
- dn,
1868
- u("div", fn, [
1869
- u("div", pn, [
1870
- I(t(Ge), { class: "h-5 w-5 text-foreground" })
1891
+ t(p) ? (l(), h("label", fn, [
1892
+ pn,
1893
+ u("div", hn, [
1894
+ u("div", mn, [
1895
+ I(t(Ke), { class: "h-5 w-5 text-foreground" })
1871
1896
  ]),
1872
1897
  te(u("input", {
1873
1898
  ref_key: "searchInput",
1874
1899
  ref: a,
1875
- "onUpdate:modelValue": z[1] || (z[1] = (D) => r.value = D),
1900
+ "onUpdate:modelValue": F[1] || (F[1] = (D) => r.value = D),
1876
1901
  type: "text",
1877
1902
  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",
1878
1903
  placeholder: e.searchPlaceholder,
1879
- onKeydown: z[2] || (z[2] = Be(() => {
1904
+ onKeydown: F[2] || (F[2] = Le(() => {
1880
1905
  }, ["stop"]))
1881
- }, null, 40, hn), [
1882
- [Ie, r.value]
1906
+ }, null, 40, gn), [
1907
+ [Be, r.value]
1883
1908
  ])
1884
1909
  ])
1885
- ])) : $("", !0),
1910
+ ])) : _("", !0),
1886
1911
  u("div", {
1887
1912
  class: v(["overflow-auto simple-scrollbar", [t(p) ? "max-h-52" : "max-h-60"]])
1888
1913
  }, [
1889
- t(V) && i.value ? (l(), h("div", mn, [
1890
- I(De, { loading: !0 })
1891
- ])) : t(V) && !d.value.length ? (l(), h("div", gn, [
1914
+ t(j) && i.value ? (l(), h("div", yn, [
1915
+ I(Re, { loading: !0 })
1916
+ ])) : t(j) && !c.value.length ? (l(), h("div", vn, [
1892
1917
  R(k.$slots, "nothing-found", {}, () => [
1893
- yn
1918
+ bn
1894
1919
  ])
1895
- ])) : $("", !0),
1896
- !t(V) || !i.value ? (l(!0), h(U, { key: 2 }, H(t(Te), (D) => (l(), P(t(yt), {
1920
+ ])) : _("", !0),
1921
+ !t(j) || !i.value ? (l(!0), h(q, { key: 2 }, H(t(ze), (D) => (l(), P(t(vt), {
1897
1922
  key: ae(D),
1898
1923
  value: D
1899
1924
  }, {
@@ -1905,13 +1930,13 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1905
1930
  e.hideCheckmarks ? "" : "pr-9"
1906
1931
  ])
1907
1932
  }, [
1908
- u("span", vn, [
1933
+ u("span", xn, [
1909
1934
  R(k.$slots, "option", {
1910
1935
  item: D,
1911
1936
  active: G,
1912
1937
  selected: ke
1913
1938
  }, () => [
1914
- T(_(be(D)), 1)
1939
+ T(S(be(D)), 1)
1915
1940
  ])
1916
1941
  ]),
1917
1942
  !e.hideCheckmarks && ke ? (l(), h("span", {
@@ -1921,15 +1946,15 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1921
1946
  "absolute inset-y-0 right-0 flex items-center pr-4"
1922
1947
  ])
1923
1948
  }, [
1924
- I(t(Ke), {
1949
+ I(t(Xe), {
1925
1950
  class: "h-5 w-5",
1926
1951
  "aria-hidden": "true"
1927
1952
  })
1928
- ], 2)) : $("", !0)
1953
+ ], 2)) : _("", !0)
1929
1954
  ], 2)
1930
1955
  ]),
1931
1956
  _: 2
1932
- }, 1032, ["value"]))), 128)) : $("", !0)
1957
+ }, 1032, ["value"]))), 128)) : _("", !0)
1933
1958
  ], 2)
1934
1959
  ]),
1935
1960
  _: 3
@@ -1944,34 +1969,34 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1944
1969
  t(b) ? (l(), h("p", {
1945
1970
  key: 0,
1946
1971
  id: t(b),
1947
- class: v(["mt-2 ml-3 text-sm", t(j)])
1948
- }, _(t(g)), 11, bn)) : $("", !0)
1972
+ class: v(["mt-2 ml-3 text-sm", t(V)])
1973
+ }, S(t(g)), 11, kn)) : _("", !0)
1949
1974
  ]));
1950
1975
  }
1951
- }), kn = /* @__PURE__ */ O({
1976
+ }), wn = /* @__PURE__ */ O({
1952
1977
  __name: "SourceAppBadge",
1953
1978
  props: {
1954
1979
  sourceApp: null
1955
1980
  },
1956
1981
  setup(e) {
1957
- return (s, n) => (l(), P(Gt, {
1982
+ return (s, n) => (l(), P(Kt, {
1958
1983
  "color-classes": "text-foreground-on-primary",
1959
1984
  rounded: "",
1960
1985
  style: oe({ backgroundColor: e.sourceApp.bgColor })
1961
1986
  }, {
1962
1987
  default: B(() => [
1963
- T(_(e.sourceApp.short), 1)
1988
+ T(S(e.sourceApp.short), 1)
1964
1989
  ]),
1965
1990
  _: 1
1966
1991
  }, 8, ["style"]));
1967
1992
  }
1968
- }), Cn = {
1993
+ }), $n = {
1969
1994
  key: 0,
1970
1995
  class: "text-foreground-2 normal"
1971
- }, wn = {
1996
+ }, _n = {
1972
1997
  key: 1,
1973
1998
  class: "flex items-center"
1974
- }, $n = { class: "truncate" }, _n = { class: "flex items-center" }, Sn = { class: "truncate" }, hl = /* @__PURE__ */ O({
1999
+ }, Sn = { class: "truncate" }, In = { class: "flex items-center" }, Bn = { class: "truncate" }, gl = /* @__PURE__ */ O({
1975
2000
  __name: "SourceApps",
1976
2001
  props: {
1977
2002
  /**
@@ -2031,16 +2056,16 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2031
2056
  },
2032
2057
  emits: ["update:modelValue"],
2033
2058
  setup(e, { emit: s }) {
2034
- const n = e, o = A(null), a = A(null), { selectedValue: r, hiddenSelectedItemCount: d, isMultiItemArrayValue: i, firstItem: y } = en({
2059
+ const n = e, o = A(null), a = A(null), { selectedValue: r, hiddenSelectedItemCount: c, isMultiItemArrayValue: i, firstItem: y } = sn({
2035
2060
  props: Z(n),
2036
2061
  emit: s,
2037
2062
  dynamicVisibility: { elementToWatchForChanges: o, itemContainer: a }
2038
2063
  }), f = (w, g) => w.name.toLocaleLowerCase().includes(g.toLocaleLowerCase());
2039
- return (w, g) => (l(), P(xn, {
2064
+ return (w, g) => (l(), P(Cn, {
2040
2065
  modelValue: t(r),
2041
2066
  "onUpdate:modelValue": g[0] || (g[0] = (m) => le(r) ? r.value = m : null),
2042
2067
  multiple: e.multiple,
2043
- items: e.items ?? t(it),
2068
+ items: e.items ?? t(ut),
2044
2069
  search: e.search,
2045
2070
  "search-placeholder": e.searchPlaceholder,
2046
2071
  label: e.label,
@@ -2050,10 +2075,10 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2050
2075
  by: "name"
2051
2076
  }, {
2052
2077
  "nothing-selected": B(() => [
2053
- e.selectorPlaceholder ? (l(), h(U, { key: 0 }, [
2054
- T(_(e.selectorPlaceholder), 1)
2055
- ], 64)) : (l(), h(U, { key: 1 }, [
2056
- T(_(e.multiple ? "Select apps" : "Select an app"), 1)
2078
+ e.selectorPlaceholder ? (l(), h(q, { key: 0 }, [
2079
+ T(S(e.selectorPlaceholder), 1)
2080
+ ], 64)) : (l(), h(q, { key: 1 }, [
2081
+ T(S(e.multiple ? "Select apps" : "Select an app"), 1)
2057
2082
  ], 64))
2058
2083
  ]),
2059
2084
  "something-selected": B(({ value: m }) => [
@@ -2068,27 +2093,27 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2068
2093
  ref: a,
2069
2094
  class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
2070
2095
  }, [
2071
- (l(!0), h(U, null, H(m, (b) => (l(), P(kn, {
2096
+ (l(!0), h(q, null, H(m, (b) => (l(), P(wn, {
2072
2097
  key: b.name,
2073
2098
  "source-app": b
2074
2099
  }, null, 8, ["source-app"]))), 128))
2075
2100
  ], 512),
2076
- t(d) > 0 ? (l(), h("div", Cn, " +" + _(t(d)), 1)) : $("", !0)
2077
- ], 512)) : (l(), h("div", wn, [
2101
+ t(c) > 0 ? (l(), h("div", $n, " +" + S(t(c)), 1)) : _("", !0)
2102
+ ], 512)) : (l(), h("div", _n, [
2078
2103
  u("div", {
2079
2104
  class: "h-2 w-2 rounded-full mr-2",
2080
2105
  style: oe({ backgroundColor: t(y)(m).bgColor })
2081
2106
  }, null, 4),
2082
- u("span", $n, _(t(y)(m).name), 1)
2107
+ u("span", Sn, S(t(y)(m).name), 1)
2083
2108
  ]))
2084
2109
  ]),
2085
2110
  option: B(({ item: m }) => [
2086
- u("div", _n, [
2111
+ u("div", In, [
2087
2112
  u("div", {
2088
2113
  class: "h-2 w-2 rounded-full mr-2",
2089
2114
  style: oe({ backgroundColor: m.bgColor })
2090
2115
  }, null, 4),
2091
- u("span", Sn, _(m.name), 1)
2116
+ u("span", Bn, S(m.name), 1)
2092
2117
  ])
2093
2118
  ]),
2094
2119
  _: 1
@@ -2096,7 +2121,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2096
2121
  }
2097
2122
  });
2098
2123
  var Q = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(Q || {});
2099
- const ie = ut(), In = {
2124
+ const ie = ct(), Ln = {
2100
2125
  [
2101
2126
  "cmd-or-ctrl"
2102
2127
  /* CtrlOrCmd */
@@ -2107,17 +2132,17 @@ const ie = ut(), In = {
2107
2132
  ]: ie === re.Mac ? "Opt" : "Alt",
2108
2133
  shift: "Shift"
2109
2134
  };
2110
- function ml(e) {
2135
+ function yl(e) {
2111
2136
  const s = (n) => Object.values(Q).includes(n);
2112
- return e.map((n) => s(n) ? In[n] : n).join("+");
2137
+ return e.map((n) => s(n) ? Ln[n] : n).join("+");
2113
2138
  }
2114
- function gl(e, ...s) {
2115
- ft(
2139
+ function vl(e, ...s) {
2140
+ pt(
2116
2141
  s[0],
2117
2142
  (n) => {
2118
2143
  const o = n.getModifierState("Alt"), a = ie === re.Mac ? n.getModifierState("Meta") : n.getModifierState("Control"), r = n.getModifierState("Shift");
2119
- for (const d of e)
2120
- switch (d) {
2144
+ for (const c of e)
2145
+ switch (c) {
2121
2146
  case Q.CtrlOrCmd:
2122
2147
  if (!a)
2123
2148
  return;
@@ -2136,7 +2161,7 @@ function gl(e, ...s) {
2136
2161
  s[2]
2137
2162
  );
2138
2163
  }
2139
- const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Ln = { class: "fixed inset-0 z-10 overflow-y-auto" }, Pn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, jn = { class: "relative" }, yl = /* @__PURE__ */ O({
2164
+ const Pn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Vn = { class: "fixed inset-0 z-10 overflow-y-auto" }, jn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, On = { class: "relative" }, bl = /* @__PURE__ */ O({
2140
2165
  __name: "Dialog",
2141
2166
  props: {
2142
2167
  open: { type: Boolean },
@@ -2146,10 +2171,10 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2146
2171
  },
2147
2172
  emits: ["update:open", "fully-closed"],
2148
2173
  setup(e, { emit: s }) {
2149
- const n = e, o = c({
2174
+ const n = e, o = d({
2150
2175
  get: () => n.open,
2151
2176
  set: (i) => s("update:open", i)
2152
- }), a = c(() => {
2177
+ }), a = d(() => {
2153
2178
  switch (n.maxWidth) {
2154
2179
  case "sm":
2155
2180
  return 0;
@@ -2162,24 +2187,24 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2162
2187
  default:
2163
2188
  return 1e4;
2164
2189
  }
2165
- }), r = c(() => {
2190
+ }), r = d(() => {
2166
2191
  const i = [
2167
2192
  "px-4 pt-4 pb-4 w-full",
2168
2193
  "sm:my-8 sm:w-full sm:max-w-xl sm:p-6"
2169
2194
  ];
2170
2195
  return a.value >= 1 && i.push("md:max-w-2xl"), a.value >= 2 && i.push("lg:max-w-4xl"), a.value >= 3 && i.push("xl:max-w-6xl"), a.value >= 4 && i.push("2xl:max-w-7xl"), i.join(" ");
2171
- }), d = () => {
2196
+ }), c = () => {
2172
2197
  n.preventCloseOnClickOutside || (o.value = !1);
2173
2198
  };
2174
- return (i, y) => (l(), P(t(vt), {
2199
+ return (i, y) => (l(), P(t(bt), {
2175
2200
  as: "template",
2176
2201
  show: t(o)
2177
2202
  }, {
2178
2203
  default: B(() => [
2179
- I(t(bt), {
2204
+ I(t(xt), {
2180
2205
  as: "div",
2181
2206
  class: "relative z-40",
2182
- onClose: d
2207
+ onClose: c
2183
2208
  }, {
2184
2209
  default: B(() => [
2185
2210
  I(t($e), {
@@ -2192,12 +2217,12 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2192
2217
  "leave-to": "opacity-0"
2193
2218
  }, {
2194
2219
  default: B(() => [
2195
- Bn
2220
+ Pn
2196
2221
  ]),
2197
2222
  _: 1
2198
2223
  }),
2199
- u("div", Ln, [
2200
- u("div", Pn, [
2224
+ u("div", Vn, [
2225
+ u("div", jn, [
2201
2226
  I(t($e), {
2202
2227
  as: "template",
2203
2228
  enter: "ease-out duration-300",
@@ -2209,23 +2234,23 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2209
2234
  onAfterLeave: y[1] || (y[1] = (f) => i.$emit("fully-closed"))
2210
2235
  }, {
2211
2236
  default: B(() => [
2212
- I(t(xt), {
2237
+ I(t(kt), {
2213
2238
  class: v([
2214
2239
  "transform rounded-lg bg-foundation text-left shadow-xl transition-all",
2215
2240
  t(r)
2216
2241
  ])
2217
2242
  }, {
2218
2243
  default: B(() => [
2219
- u("div", jn, [
2244
+ u("div", On, [
2220
2245
  R(i.$slots, "default", {}, () => [
2221
2246
  T("Put your content here!")
2222
2247
  ]),
2223
- e.hideCloser ? $("", !0) : (l(), h("button", {
2248
+ e.hideCloser ? _("", !0) : (l(), h("button", {
2224
2249
  key: 0,
2225
2250
  class: "absolute top-0 right-0 text-foreground",
2226
2251
  onClick: y[0] || (y[0] = (f) => o.value = !1)
2227
2252
  }, [
2228
- I(t(et), { class: "h-6 w-6" })
2253
+ I(t(tt), { class: "h-6 w-6" })
2229
2254
  ]))
2230
2255
  ])
2231
2256
  ]),
@@ -2243,7 +2268,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2243
2268
  _: 3
2244
2269
  }, 8, ["show"]));
2245
2270
  }
2246
- }), Vn = { class: "inline-flex items-center space-x-2" }, On = { class: "label-light" }, vl = /* @__PURE__ */ O({
2271
+ }), Mn = { class: "inline-flex items-center space-x-2" }, An = { class: "label-light" }, xl = /* @__PURE__ */ O({
2247
2272
  __name: "Disclosure",
2248
2273
  props: {
2249
2274
  title: null,
@@ -2251,7 +2276,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2251
2276
  color: { default: "default" }
2252
2277
  },
2253
2278
  setup(e) {
2254
- const s = e, n = c(() => {
2279
+ const s = e, n = d(() => {
2255
2280
  const a = [
2256
2281
  "pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
2257
2282
  "ring-1"
@@ -2268,7 +2293,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2268
2293
  break;
2269
2294
  }
2270
2295
  return a.join(" ");
2271
- }), o = c(() => {
2296
+ }), o = d(() => {
2272
2297
  const a = ["mt-4 px-3 py-1 border-x "];
2273
2298
  switch (s.color) {
2274
2299
  case "danger":
@@ -2282,30 +2307,30 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2282
2307
  return a.join(" ");
2283
2308
  });
2284
2309
  return (a, r) => (l(), h("div", null, [
2285
- I(t(kt), null, {
2286
- default: B(({ open: d }) => [
2287
- I(t(Ct), {
2310
+ I(t(Ct), null, {
2311
+ default: B(({ open: c }) => [
2312
+ I(t(wt), {
2288
2313
  class: v(t(n))
2289
2314
  }, {
2290
2315
  default: B(() => [
2291
- u("div", Vn, [
2292
- e.icon ? (l(), P(W(e.icon), {
2316
+ u("div", Mn, [
2317
+ e.icon ? (l(), P(U(e.icon), {
2293
2318
  key: 0,
2294
2319
  class: "h-4 w-4"
2295
- })) : $("", !0),
2296
- u("span", null, _(e.title), 1)
2320
+ })) : _("", !0),
2321
+ u("span", null, S(e.title), 1)
2297
2322
  ]),
2298
2323
  I(t(je), {
2299
- class: v([d ? "" : "rotate-180 transform", "h-5 w-5"])
2324
+ class: v([c ? "" : "rotate-180 transform", "h-5 w-5"])
2300
2325
  }, null, 8, ["class"])
2301
2326
  ]),
2302
2327
  _: 2
2303
2328
  }, 1032, ["class"]),
2304
- I(t(wt), {
2329
+ I(t($t), {
2305
2330
  class: v(t(o))
2306
2331
  }, {
2307
2332
  default: B(() => [
2308
- u("div", On, [
2333
+ u("div", An, [
2309
2334
  R(a.$slots, "default", {}, () => [
2310
2335
  T("Panel contents")
2311
2336
  ])
@@ -2320,79 +2345,79 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2320
2345
  }
2321
2346
  });
2322
2347
  var K = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(K || {});
2323
- const bl = /* @__PURE__ */ O({
2348
+ const kl = /* @__PURE__ */ O({
2324
2349
  __name: "GridListToggle",
2325
2350
  props: {
2326
2351
  modelValue: null
2327
2352
  },
2328
2353
  emits: ["click", "update:modelValue"],
2329
2354
  setup(e, { emit: s }) {
2330
- const n = e, o = c({
2355
+ const n = e, o = d({
2331
2356
  get: () => n.modelValue || K.Grid,
2332
- set: (d) => s("update:modelValue", d)
2333
- }), a = c(
2334
- () => o.value === K.Grid ? Xe : Ne
2335
- ), r = (d) => {
2336
- s("click", d);
2357
+ set: (c) => s("update:modelValue", c)
2358
+ }), a = d(
2359
+ () => o.value === K.Grid ? Ne : Je
2360
+ ), r = (c) => {
2361
+ s("click", c);
2337
2362
  const i = o.value === K.Grid ? K.List : K.Grid;
2338
2363
  o.value = i;
2339
2364
  };
2340
- return (d, i) => (l(), h("button", {
2365
+ return (c, i) => (l(), h("button", {
2341
2366
  class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
2342
2367
  onClick: r
2343
2368
  }, [
2344
- (l(), P(W(t(a)), { class: "h-6 w-6" }))
2369
+ (l(), P(U(t(a)), { class: "h-6 w-6" }))
2345
2370
  ]));
2346
2371
  }
2347
2372
  });
2348
- var Mn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(Mn || {}), ue = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(ue || {});
2349
- function An(e, s) {
2373
+ var Dn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(Dn || {}), ue = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(ue || {});
2374
+ function Rn(e, s) {
2350
2375
  if (!he)
2351
2376
  return;
2352
2377
  const {
2353
2378
  wait: n = 100,
2354
2379
  throttleOrDebounce: o = 0
2355
2380
  /* Throttle */
2356
- } = s || {}, a = n ? o === 0 ? We(e, n) : Pe(e, n) : e;
2357
- ee(() => window.addEventListener("resize", a)), Le(() => window.removeEventListener("resize", a));
2381
+ } = s || {}, a = n ? o === 0 ? Ue(e, n) : Ve(e, n) : e;
2382
+ ee(() => window.addEventListener("resize", a)), Pe(() => window.removeEventListener("resize", a));
2358
2383
  }
2359
- function xl(e) {
2384
+ function Cl(e) {
2360
2385
  ee(() => {
2361
2386
  window.addEventListener("beforeunload", e);
2362
- }), Le(() => {
2387
+ }), Pe(() => {
2363
2388
  window.removeEventListener("beforeunload", e);
2364
2389
  });
2365
2390
  }
2366
- function Dn(e) {
2391
+ function Tn(e) {
2367
2392
  const { el: s, defaultDirection: n } = e, o = A(
2368
2393
  X(n) ? 1 : n
2369
2394
  /* Right */
2370
- ), a = c(() => {
2371
- const d = t(e.stopUpdatesBelowWidth);
2372
- if (!X(d))
2373
- return d;
2395
+ ), a = d(() => {
2396
+ const c = t(e.stopUpdatesBelowWidth);
2397
+ if (!X(c))
2398
+ return c;
2374
2399
  const i = t(s);
2375
2400
  return i != null && i.offsetWidth ? i.offsetWidth * 2 : void 0;
2376
2401
  }), r = () => {
2377
2402
  if (!he)
2378
2403
  return;
2379
- const d = t(s);
2380
- if (!d)
2404
+ const c = t(s);
2405
+ if (!c)
2381
2406
  return;
2382
- const i = d.getBoundingClientRect(), y = i.x + i.width > window.innerWidth, f = i.x < 0;
2407
+ const i = c.getBoundingClientRect(), y = i.x + i.width > window.innerWidth, f = i.x < 0;
2383
2408
  y && f || !X(a.value) && window.innerWidth < a.value || (y ? o.value = 0 : f && (o.value = 1));
2384
2409
  };
2385
- return An(() => r()), Y(
2410
+ return Rn(() => r()), Y(
2386
2411
  () => t(s),
2387
- (d) => {
2388
- d && r();
2412
+ (c) => {
2413
+ c && r();
2389
2414
  }
2390
2415
  ), {
2391
- direction: c(() => o.value),
2416
+ direction: d(() => o.value),
2392
2417
  recalculateDirection: r
2393
2418
  };
2394
2419
  }
2395
- const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2420
+ const zn = ["onClick"], wl = /* @__PURE__ */ O({
2396
2421
  __name: "Menu",
2397
2422
  props: {
2398
2423
  open: { type: Boolean },
@@ -2400,19 +2425,19 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2400
2425
  },
2401
2426
  emits: ["update:open", "chosen"],
2402
2427
  setup(e, { emit: s }) {
2403
- const n = e, o = A(null), { direction: a } = Dn({
2404
- el: c(() => {
2428
+ const n = e, o = A(null), { direction: a } = Tn({
2429
+ el: d(() => {
2405
2430
  var m;
2406
2431
  return ((m = o.value) == null ? void 0 : m.el) || null;
2407
2432
  }),
2408
2433
  defaultDirection: ue.Left,
2409
2434
  stopUpdatesBelowWidth: 300
2410
- }), r = A(null), d = A(!1), i = c({
2435
+ }), r = A(null), c = A(!1), i = d({
2411
2436
  get: () => n.open || !1,
2412
2437
  set: (m) => s("update:open", m)
2413
2438
  }), y = (m) => {
2414
- const { active: b, disabled: j } = m, x = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2415
- return b ? x.push("bg-primary text-foreground-on-primary") : j ? x.push("text-foreground-disabled") : x.push("text-foreground"), x.join(" ");
2439
+ const { active: b, disabled: V } = m, L = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2440
+ return b ? L.push("bg-primary text-foreground-on-primary") : V ? L.push("text-foreground-disabled") : L.push("text-foreground"), L.join(" ");
2416
2441
  }, f = (m, b) => {
2417
2442
  s("chosen", { item: m, event: b });
2418
2443
  }, w = () => {
@@ -2420,31 +2445,31 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2420
2445
  return (m = r.value) == null ? void 0 : m.el.click();
2421
2446
  }, g = (m) => {
2422
2447
  const b = !!m;
2423
- return d.value = b, b;
2448
+ return c.value = b, b;
2424
2449
  };
2425
- return Y(d, (m, b) => {
2450
+ return Y(c, (m, b) => {
2426
2451
  m !== b && (i.value = m);
2427
2452
  }), Y(i, (m) => {
2428
- (m && !d.value || !m && d.value) && w();
2429
- }), (m, b) => (l(), P(t($t), {
2453
+ (m && !c.value || !m && c.value) && w();
2454
+ }), (m, b) => (l(), P(t(_t), {
2430
2455
  as: "div",
2431
2456
  class: "relative inline-block"
2432
2457
  }, {
2433
- default: B(({ open: j }) => [
2458
+ default: B(({ open: V }) => [
2434
2459
  u("div", null, [
2435
- I(t(_t), {
2460
+ I(t(St), {
2436
2461
  ref_key: "menuButton",
2437
2462
  ref: r,
2438
2463
  class: "hidden",
2439
- onClick: b[0] || (b[0] = Be(() => {
2464
+ onClick: b[0] || (b[0] = Le(() => {
2440
2465
  }, ["stop", "prevent"]))
2441
2466
  }, null, 512),
2442
2467
  u("div", {
2443
- class: v(j ? "pointer-events-none" : "")
2468
+ class: v(V ? "pointer-events-none" : "")
2444
2469
  }, [
2445
2470
  R(m.$slots, "default", {
2446
2471
  toggle: w,
2447
- open: g(j)
2472
+ open: g(V)
2448
2473
  })
2449
2474
  ], 2)
2450
2475
  ]),
@@ -2457,7 +2482,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2457
2482
  "leave-to-class": "transform scale-95 opacity-0"
2458
2483
  }, {
2459
2484
  default: B(() => [
2460
- I(t(St), {
2485
+ I(t(It), {
2461
2486
  ref_key: "menuItems",
2462
2487
  ref: o,
2463
2488
  class: v([
@@ -2466,23 +2491,23 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2466
2491
  ])
2467
2492
  }, {
2468
2493
  default: B(() => [
2469
- (l(!0), h(U, null, H(e.items, (x, L) => (l(), h("div", {
2470
- key: L,
2494
+ (l(!0), h(q, null, H(e.items, (L, $) => (l(), h("div", {
2495
+ key: $,
2471
2496
  class: "px-1 py-1"
2472
2497
  }, [
2473
- (l(!0), h(U, null, H(x, (S) => (l(), P(t(It), {
2474
- key: S.id,
2475
- disabled: S.disabled
2498
+ (l(!0), h(q, null, H(L, (C) => (l(), P(t(Bt), {
2499
+ key: C.id,
2500
+ disabled: C.disabled
2476
2501
  }, {
2477
- default: B(({ active: C, disabled: q }) => [
2502
+ default: B(({ active: x, disabled: E }) => [
2478
2503
  u("button", {
2479
- class: v(y({ active: C, disabled: q })),
2480
- onClick: (p) => f(S, p)
2504
+ class: v(y({ active: x, disabled: E })),
2505
+ onClick: (p) => f(C, p)
2481
2506
  }, [
2482
- R(m.$slots, "item", { item: S }, () => [
2483
- T(_(S.title), 1)
2507
+ R(m.$slots, "item", { item: C }, () => [
2508
+ T(S(C.title), 1)
2484
2509
  ])
2485
- ], 10, Rn)
2510
+ ], 10, zn)
2486
2511
  ]),
2487
2512
  _: 2
2488
2513
  }, 1032, ["disabled"]))), 128))
@@ -2497,25 +2522,25 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2497
2522
  _: 3
2498
2523
  }));
2499
2524
  }
2500
- }), Tn = { class: "flex flex-col space-y-4" }, Fn = { class: "flex space-x-6" }, Cl = /* @__PURE__ */ O({
2525
+ }), Fn = { class: "flex flex-col space-y-4" }, En = { class: "flex space-x-6" }, $l = /* @__PURE__ */ O({
2501
2526
  __name: "Tabs",
2502
2527
  props: {
2503
2528
  items: null
2504
2529
  },
2505
2530
  setup(e) {
2506
- const s = e, n = A(null), o = c(() => n.value && s.items.find((r) => r.id === n.value) || s.items[0]), a = (r) => {
2531
+ const s = e, n = A(null), o = d(() => n.value && s.items.find((r) => r.id === n.value) || s.items[0]), a = (r) => {
2507
2532
  n.value = r.id;
2508
2533
  };
2509
- return (r, d) => (l(), h("div", Tn, [
2510
- u("div", Fn, [
2511
- (l(!0), h(U, null, H(e.items, (i) => (l(), P(ge, {
2534
+ return (r, c) => (l(), h("div", Fn, [
2535
+ u("div", En, [
2536
+ (l(!0), h(q, null, H(e.items, (i) => (l(), P(ge, {
2512
2537
  key: i.id,
2513
2538
  link: "",
2514
2539
  color: t(o).id === i.id ? "default" : "secondary",
2515
2540
  onClick: (y) => a(i)
2516
2541
  }, {
2517
2542
  default: B(() => [
2518
- T(_(i.title), 1)
2543
+ T(S(i.title), 1)
2519
2544
  ]),
2520
2545
  _: 2
2521
2546
  }, 1032, ["color", "onClick"]))), 128))
@@ -2523,7 +2548,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2523
2548
  R(r.$slots, "default", { activeItem: t(o) })
2524
2549
  ]));
2525
2550
  }
2526
- }), zn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, En = { class: "inline-flex items-center space-x-1" }, Wn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Un = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, qn = { class: "inline-flex items-center space-x-1" }, Hn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), wl = /* @__PURE__ */ O({
2551
+ }), Wn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Un = { class: "inline-flex items-center space-x-1" }, qn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Hn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Gn = { class: "inline-flex items-center space-x-1" }, Kn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), _l = /* @__PURE__ */ O({
2527
2552
  __name: "InfiniteLoading",
2528
2553
  props: {
2529
2554
  settings: null,
@@ -2541,28 +2566,28 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2541
2566
  ref_key: "wrapper",
2542
2567
  ref: s
2543
2568
  }, [
2544
- n.value ? (l(), P(t(Lt), ne({ key: 0 }, o.$props.settings || {}, {
2569
+ n.value ? (l(), P(t(Pt), ne({ key: 0 }, o.$props.settings || {}, {
2545
2570
  onInfinite: a[0] || (a[0] = (r) => o.$emit("infinite", r))
2546
2571
  }), {
2547
2572
  spinner: B(() => [
2548
- I(De, {
2573
+ I(Re, {
2549
2574
  loading: !0,
2550
2575
  class: "my-2"
2551
2576
  })
2552
2577
  ]),
2553
2578
  complete: B(() => [
2554
- u("div", zn, [
2555
- u("div", En, [
2556
- I(t(tt), { class: "w-5 h-5 text-success" }),
2557
- Wn
2579
+ u("div", Wn, [
2580
+ u("div", Un, [
2581
+ I(t(st), { class: "w-5 h-5 text-success" }),
2582
+ qn
2558
2583
  ])
2559
2584
  ])
2560
2585
  ]),
2561
2586
  error: B(({ retry: r }) => [
2562
- u("div", Un, [
2563
- u("div", qn, [
2564
- I(t(st), { class: "w-5 h-5 text-danger" }),
2565
- Hn
2587
+ u("div", Hn, [
2588
+ u("div", Gn, [
2589
+ I(t(nt), { class: "w-5 h-5 text-danger" }),
2590
+ Kn
2566
2591
  ]),
2567
2592
  e.allowRetry ? (l(), P(ge, {
2568
2593
  key: 0,
@@ -2572,17 +2597,17 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2572
2597
  T("Retry")
2573
2598
  ]),
2574
2599
  _: 2
2575
- }, 1032, ["onClick"])) : $("", !0)
2600
+ }, 1032, ["onClick"])) : _("", !0)
2576
2601
  ])
2577
2602
  ]),
2578
2603
  _: 1
2579
- }, 16)) : $("", !0)
2604
+ }, 16)) : _("", !0)
2580
2605
  ], 512));
2581
2606
  }
2582
- }), Gn = { class: "relative group" }, Kn = {
2607
+ }), Xn = { class: "relative group" }, Nn = {
2583
2608
  key: 0,
2584
2609
  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"
2585
- }, $l = /* @__PURE__ */ O({
2610
+ }, Sl = /* @__PURE__ */ O({
2586
2611
  __name: "Panel",
2587
2612
  props: {
2588
2613
  /**
@@ -2617,17 +2642,17 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2617
2642
  },
2618
2643
  emits: ["submit"],
2619
2644
  setup(e, { emit: s }) {
2620
- const n = e, o = c(
2645
+ const n = e, o = d(
2621
2646
  () => n.customPadding ? "" : "px-4 py-4 sm:px-6"
2622
- ), a = c(
2647
+ ), a = d(
2623
2648
  () => n.customPadding ? "" : "px-4 py-4 sm:p-6"
2624
- ), r = c(() => {
2625
- const d = ["rounded-lg"];
2626
- return n.noShadow || d.push("shadow"), n.ring && d.push("ring-outline-2 hover:ring-2"), d.join(" ");
2649
+ ), r = d(() => {
2650
+ const c = ["rounded-lg"];
2651
+ return n.noShadow || c.push("shadow"), n.ring && c.push("ring-outline-2 hover:ring-2"), c.join(" ");
2627
2652
  });
2628
- return (d, i) => (l(), h("div", Gn, [
2629
- e.fancyGlow ? (l(), h("div", Kn)) : $("", !0),
2630
- (l(), P(W(e.form ? "form" : "div"), {
2653
+ return (c, i) => (l(), h("div", Xn, [
2654
+ e.fancyGlow ? (l(), h("div", Nn)) : _("", !0),
2655
+ (l(), P(U(e.form ? "form" : "div"), {
2631
2656
  class: v([
2632
2657
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
2633
2658
  t(r)
@@ -2635,23 +2660,23 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2635
2660
  onSubmit: i[0] || (i[0] = (y) => s("submit", y))
2636
2661
  }, {
2637
2662
  default: B(() => [
2638
- d.$slots.header ? (l(), h("div", {
2663
+ c.$slots.header ? (l(), h("div", {
2639
2664
  key: 0,
2640
2665
  class: v(t(o))
2641
2666
  }, [
2642
- R(d.$slots, "header")
2643
- ], 2)) : $("", !0),
2667
+ R(c.$slots, "header")
2668
+ ], 2)) : _("", !0),
2644
2669
  u("div", {
2645
2670
  class: v(["grow", t(a)])
2646
2671
  }, [
2647
- R(d.$slots, "default")
2672
+ R(c.$slots, "default")
2648
2673
  ], 2),
2649
- d.$slots.footer ? (l(), h("div", {
2674
+ c.$slots.footer ? (l(), h("div", {
2650
2675
  key: 1,
2651
2676
  class: v(t(o))
2652
2677
  }, [
2653
- R(d.$slots, "footer")
2654
- ], 2)) : $("", !0)
2678
+ R(c.$slots, "footer")
2679
+ ], 2)) : _("", !0)
2655
2680
  ]),
2656
2681
  _: 3
2657
2682
  }, 40, ["class"]))
@@ -2659,40 +2684,40 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2659
2684
  }
2660
2685
  });
2661
2686
  export {
2662
- Gt as CommonBadge,
2663
- De as CommonLoadingBar,
2664
- il as CommonStepsBullet,
2665
- rl as CommonStepsNumber,
2666
- Vt as CommonTextLink,
2687
+ Kt as CommonBadge,
2688
+ Re as CommonLoadingBar,
2689
+ cl as CommonStepsBullet,
2690
+ ul as CommonStepsNumber,
2691
+ Ot as CommonTextLink,
2667
2692
  ge as FormButton,
2668
- ul as FormCardButton,
2669
- cl as FormCheckbox,
2670
- xn as FormSelectBase,
2671
- hl as FormSelectSourceApps,
2672
- dl as FormTextArea,
2673
- fl as FormTextInput,
2674
- ol as GlobalToastRenderer,
2693
+ dl as FormCardButton,
2694
+ fl as FormCheckbox,
2695
+ Cn as FormSelectBase,
2696
+ gl as FormSelectSourceApps,
2697
+ pl as FormTextArea,
2698
+ hl as FormTextInput,
2699
+ il as GlobalToastRenderer,
2675
2700
  K as GridListToggleValue,
2676
2701
  ue as HorizontalDirection,
2677
- wl as InfiniteLoading,
2678
- yl as LayoutDialog,
2679
- vl as LayoutDisclosure,
2680
- bl as LayoutGridListToggle,
2681
- kl as LayoutMenu,
2682
- $l as LayoutPanel,
2683
- Cl as LayoutTabs,
2702
+ _l as InfiniteLoading,
2703
+ bl as LayoutDialog,
2704
+ xl as LayoutDisclosure,
2705
+ kl as LayoutGridListToggle,
2706
+ wl as LayoutMenu,
2707
+ Sl as LayoutPanel,
2708
+ $l as LayoutTabs,
2684
2709
  Q as ModifierKeys,
2685
- kn as SourceAppBadge,
2710
+ wn as SourceAppBadge,
2686
2711
  J as TailwindBreakpoints,
2687
- Mn as ThrottleOrDebounce,
2712
+ Dn as ThrottleOrDebounce,
2688
2713
  N as ToastNotificationType,
2689
- pl as ValidationHelpers,
2714
+ ml as ValidationHelpers,
2690
2715
  ie as clientOs,
2691
- ml as getKeyboardShortcutTitle,
2692
- gl as onKeyboardShortcut,
2693
- en as useFormSelectChildInternals,
2694
- xl as useOnBeforeWindowUnload,
2695
- Dn as useResponsiveHorizontalDirectionCalculation,
2696
- An as useWindowResizeHandler,
2697
- Zs as useWrappingContainerHiddenCount
2716
+ yl as getKeyboardShortcutTitle,
2717
+ vl as onKeyboardShortcut,
2718
+ sn as useFormSelectChildInternals,
2719
+ Cl as useOnBeforeWindowUnload,
2720
+ Tn as useResponsiveHorizontalDirectionCalculation,
2721
+ Rn as useWindowResizeHandler,
2722
+ tn as useWrappingContainerHiddenCount
2698
2723
  };