@speckle/ui-components 2.14.8-alpha4 → 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.
Files changed (3) hide show
  1. package/dist/lib.cjs +1 -1
  2. package/dist/lib.js +425 -411
  3. package/package.json +1 -1
package/dist/lib.js CHANGED
@@ -1,19 +1,19 @@
1
- import { defineComponent as O, resolveDynamicComponent as U, 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 de, toDisplayString as S, toRefs as Z, Fragment as q, 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 Fe, 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 W, debounce as Pe, throttle as We } from "lodash";
3
- import { ArrowPathIcon as Ue, ChevronUpIcon as Ve, 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 ce, CheckIcon as nt, CheckCircleIcon as lt, ExclamationCircleIcon as je, 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 dt, useMutationObserver as ct, 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
- }, Vt = /* @__PURE__ */ O({
16
+ }, jt = /* @__PURE__ */ O({
17
17
  __name: "Button",
18
18
  props: {
19
19
  /**
@@ -141,10 +141,10 @@ const Pt = {
141
141
  },
142
142
  emits: ["click"],
143
143
  setup(e, { emit: s }) {
144
- const n = e, o = U("NuxtLink"), a = U("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
- }), V = c(() => {
275
+ }), V = d(() => {
276
276
  switch (n.size) {
277
277
  case "xs":
278
278
  return "px-1";
@@ -286,15 +286,15 @@ const Pt = {
286
286
  case "base":
287
287
  return "px-3";
288
288
  }
289
- }), L = 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
- }), $ = 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
- }), C = 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",
@@ -307,7 +307,7 @@ const Pt = {
307
307
  n.link ? "" : V.value,
308
308
  $.value
309
309
  ].join(" ");
310
- }), x = c(() => {
310
+ }), x = d(() => {
311
311
  const p = [""];
312
312
  switch (n.loading && p.push("animate-spin"), n.size) {
313
313
  case "xs":
@@ -338,7 +338,7 @@ const Pt = {
338
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
343
  class: v(t(C)),
344
344
  disabled: t(i),
@@ -350,7 +350,7 @@ const Pt = {
350
350
  key: 0,
351
351
  class: v(`${t(x)} ${e.hideText ? "" : "mr-2"}`)
352
352
  }, null, 8, ["class"])) : _("", !0),
353
- e.hideText ? (l(), h("div", Pt, "   ")) : R(p.$slots, "default", { key: 1 }, () => [
353
+ e.hideText ? (l(), h("div", Vt, "   ")) : R(p.$slots, "default", { key: 1 }, () => [
354
354
  T("Button")
355
355
  ], !0),
356
356
  e.iconRight || !e.loading ? (l(), P(U(e.iconRight), {
@@ -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(Vt, [["__scopeId", "data-v-da9a3400"]]), jt = /* @__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,42 +447,42 @@ 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" }, zt = { class: "ml-2 w-0 flex-1 flex flex-col" }, Ft = {
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, [
485
- I(de, {
483
+ return (c, i) => (l(), h("div", Mt, [
484
+ u("div", At, [
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",
488
488
  "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
@@ -491,33 +491,33 @@ 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
514
  })) : _("", !0)
515
515
  ]),
516
- u("div", zt, [
517
- e.notification.title ? (l(), h("p", Ft, S(e.notification.title), 1)) : _("", !0),
518
- e.notification.description ? (l(), h("p", Et, S(e.notification.description), 1)) : _("", !0),
519
- e.notification.cta ? (l(), h("div", Wt, [
520
- I(jt, {
516
+ u("div", Ft, [
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: "",
@@ -538,8 +538,8 @@ 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,
542
- I(t(ce), {
541
+ qt,
542
+ I(t(de), {
543
543
  class: "h-6 w-6",
544
544
  "aria-hidden": "true"
545
545
  })
@@ -554,13 +554,13 @@ const Ot = {
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,13 +611,13 @@ 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
623
  (l(), P(U(e.iconLeft), {
@@ -627,8 +627,12 @@ const Ot = {
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
637
  props: {
634
638
  modelValue: s,
@@ -636,12 +640,12 @@ function Oe(e) {
636
640
  orientation: o,
637
641
  goVerticalBelow: a,
638
642
  nonInteractive: r,
639
- stepsPadding: d
643
+ stepsPadding: c
640
644
  },
641
645
  emit: i
642
- } = e, y = c(
646
+ } = e, y = d(
643
647
  () => (o == null ? void 0 : o.value) === "vertical" ? "vertical" : "horizontal"
644
- ), f = c({
648
+ ), f = d({
645
649
  get: () => we((s == null ? void 0 : s.value) || 0, -1, n.value.length),
646
650
  set: ($) => i("update:modelValue", we($, 0, n.value.length))
647
651
  }), w = ($) => `${$ + 1}`, g = ($) => $ === f.value, m = ($) => $ < f.value, b = ($, C) => {
@@ -653,10 +657,10 @@ function Oe(e) {
653
657
  f.value = $;
654
658
  const x = n.value[f.value];
655
659
  (E = x == null ? void 0 : x.onClick) == null || E.call(x);
656
- }, V = c(() => {
660
+ }, V = d(() => {
657
661
  const $ = ["flex"];
658
662
  let C, x;
659
- return (d == null ? void 0 : d.value) === "xs" ? (C = "space-x-2", x = "space-y-1") : (d == null ? void 0 : d.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(
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(
660
664
  `sm:flex-row sm:space-y-0 sm:justify-start sm:${C} sm:items-center`
661
665
  ) : (a == null ? void 0 : a.value) === J.md ? $.push(
662
666
  `md:flex-row md:space-y-0 md:justify-start md:${C} md:items-center`
@@ -665,7 +669,7 @@ function Oe(e) {
665
669
  ) : (a == null ? void 0 : a.value) === J.xl && $.push(
666
670
  `xl:flex-row xl:space-y-0 xl:justify-start xl:${C} xl:items-center`
667
671
  )) : $.push(`flex-row ${C} items-center`), $.join(" ");
668
- }), L = c(() => {
672
+ }), L = d(() => {
669
673
  const $ = ["flex items-center"];
670
674
  return r != null && r.value || $.push("cursor-pointer"), $.join(" ");
671
675
  });
@@ -680,16 +684,26 @@ function Oe(e) {
680
684
  orientation: y
681
685
  };
682
686
  }
683
- 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 = {
684
698
  key: 0,
685
699
  class: "label label--light text-foreground"
686
- }, 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 = {
687
701
  key: 0,
688
702
  class: "label label--light text-foreground"
689
- }, 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 = {
690
704
  key: 0,
691
705
  class: "label label--light"
692
- }, rl = /* @__PURE__ */ O({
706
+ }, ul = /* @__PURE__ */ O({
693
707
  __name: "Number",
694
708
  props: {
695
709
  ariaLabel: null,
@@ -706,10 +720,10 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
706
720
  isCurrentStep: o,
707
721
  isFinishedStep: a,
708
722
  switchStep: r,
709
- getStepDisplayValue: d,
723
+ getStepDisplayValue: c,
710
724
  listClasses: i,
711
725
  linkClasses: y
712
- } = Oe({
726
+ } = Me({
713
727
  props: Z(n),
714
728
  emit: s
715
729
  });
@@ -729,66 +743,66 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
729
743
  class: v(t(y)),
730
744
  onClick: (b) => t(r)(m, b)
731
745
  }, [
732
- u("div", Nt, [
733
- u("div", Jt, [
734
- 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" })
735
749
  ]),
736
- u("div", Qt, [
750
+ u("div", Zt, [
737
751
  u("div", null, S(g.name), 1),
738
- g.description ? (l(), h("div", Yt, S(g.description), 1)) : _("", !0)
752
+ g.description ? (l(), h("div", es, S(g.description), 1)) : _("", !0)
739
753
  ])
740
754
  ])
741
- ], 10, Xt)) : t(o)(m) ? (l(), h("a", {
755
+ ], 10, Jt)) : t(o)(m) ? (l(), h("a", {
742
756
  key: 1,
743
757
  href: g.href,
744
758
  class: v(t(y)),
745
759
  "aria-current": "step",
746
760
  onClick: (b) => t(r)(m, b)
747
761
  }, [
748
- u("div", es, [
749
- u("div", ts, S(t(d)(m)), 1),
750
- u("div", ss, [
762
+ u("div", ss, [
763
+ u("div", ns, S(t(c)(m)), 1),
764
+ u("div", ls, [
751
765
  u("div", null, S(g.name), 1),
752
- g.description ? (l(), h("div", ns, S(g.description), 1)) : _("", !0)
766
+ g.description ? (l(), h("div", as, S(g.description), 1)) : _("", !0)
753
767
  ])
754
768
  ])
755
- ], 10, Zt)) : (l(), h("a", {
769
+ ], 10, ts)) : (l(), h("a", {
756
770
  key: 2,
757
771
  href: g.href,
758
772
  class: v(t(y)),
759
773
  onClick: (b) => t(r)(m, b)
760
774
  }, [
761
- u("div", as, [
762
- u("div", os, S(t(d)(m)), 1),
763
- u("div", rs, [
775
+ u("div", rs, [
776
+ u("div", is, S(t(c)(m)), 1),
777
+ u("div", us, [
764
778
  u("div", null, S(g.name), 1),
765
- g.description ? (l(), h("div", is, S(g.description), 1)) : _("", !0)
779
+ g.description ? (l(), h("div", cs, S(g.description), 1)) : _("", !0)
766
780
  ])
767
781
  ])
768
- ], 10, ls))
782
+ ], 10, os))
769
783
  ]))), 128))
770
784
  ], 2)
771
- ], 8, Kt));
785
+ ], 8, Nt));
772
786
  }
773
- }), Me = (e) => (_e("data-v-9dd7b659"), e = e(), Se(), e), us = ["aria-label"], ds = ["href", "onClick"], cs = { 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 = {
774
788
  key: 0,
775
789
  class: "h-3 w-3 rounded-full bg-foreground-2"
776
- }, ps = ["href", "onClick"], hs = {
790
+ }, ms = ["href", "onClick"], gs = {
777
791
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
778
792
  "aria-hidden": "true"
779
- }, ms = {
793
+ }, ys = {
780
794
  key: 0,
781
795
  class: "h-3 w-3 rounded-full bg-foreground"
782
- }, 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 = {
783
797
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
784
798
  "aria-hidden": "true"
785
- }, xs = {
799
+ }, Cs = {
786
800
  key: 0,
787
801
  class: "h-3 w-3 rounded-full bg-foreground-2"
788
- }, ks = {
802
+ }, ws = {
789
803
  key: 1,
790
804
  class: "h-4 w-4 rounded-full bg-foreground-disabled"
791
- }, Cs = /* @__PURE__ */ O({
805
+ }, $s = /* @__PURE__ */ O({
792
806
  __name: "Bullet",
793
807
  props: {
794
808
  ariaLabel: null,
@@ -802,10 +816,10 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
802
816
  },
803
817
  emits: ["update:modelValue"],
804
818
  setup(e, { emit: s }) {
805
- 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({
806
820
  props: Z(n),
807
821
  emit: s
808
- }), y = c(() => {
822
+ }), y = d(() => {
809
823
  const f = ["h6 font-medium leading-7"];
810
824
  let w;
811
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(" ");
@@ -815,7 +829,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
815
829
  "aria-label": e.ariaLabel || "Progress steps"
816
830
  }, [
817
831
  u("ol", {
818
- class: v([t(d), e.basic ? "basic" : ""])
832
+ class: v([t(c), e.basic ? "basic" : ""])
819
833
  }, [
820
834
  (l(!0), h(q, null, H(e.steps, (g, m) => (l(), h("li", {
821
835
  key: g.name
@@ -826,8 +840,8 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
826
840
  class: v(t(i)),
827
841
  onClick: (b) => t(r)(m, b)
828
842
  }, [
829
- u("span", cs, [
830
- 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), {
831
845
  key: 1,
832
846
  class: "h-full w-full text-primary",
833
847
  "aria-hidden": "true"
@@ -836,41 +850,41 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
836
850
  u("span", {
837
851
  class: v(["text-foreground", t(y)])
838
852
  }, S(g.name), 3)
839
- ], 10, ds)) : t(o)(m) ? (l(), h("a", {
853
+ ], 10, fs)) : t(o)(m) ? (l(), h("a", {
840
854
  key: 1,
841
855
  href: g.href,
842
856
  class: v(t(i)),
843
857
  "aria-current": "step",
844
858
  onClick: (b) => t(r)(m, b)
845
859
  }, [
846
- u("span", hs, [
847
- e.basic ? (l(), h("span", ms)) : (l(), h(q, { key: 1 }, [
848
- gs,
849
- ys
860
+ u("span", gs, [
861
+ e.basic ? (l(), h("span", ys)) : (l(), h(q, { key: 1 }, [
862
+ vs,
863
+ bs
850
864
  ], 64))
851
865
  ]),
852
866
  u("span", {
853
867
  class: v(["text-primary-focus", t(y)])
854
868
  }, S(g.name), 3)
855
- ], 10, ps)) : (l(), h("a", {
869
+ ], 10, ms)) : (l(), h("a", {
856
870
  key: 2,
857
871
  href: g.href,
858
872
  class: v(t(i)),
859
873
  onClick: (b) => t(r)(m, b)
860
874
  }, [
861
- u("div", bs, [
862
- 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))
863
877
  ]),
864
878
  u("p", {
865
879
  class: v(["text-foreground-disabled", t(y)])
866
880
  }, S(g.name), 3)
867
- ], 10, vs))
881
+ ], 10, xs))
868
882
  ]))), 128))
869
883
  ], 2)
870
- ], 8, us));
884
+ ], 8, ds));
871
885
  }
872
886
  });
873
- const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-9dd7b659"]]), ws = ["disabled"], ul = /* @__PURE__ */ O({
887
+ const cl = /* @__PURE__ */ me($s, [["__scopeId", "data-v-9dd7b659"]]), _s = ["disabled"], dl = /* @__PURE__ */ O({
874
888
  __name: "CardButton",
875
889
  props: {
876
890
  disabled: { type: Boolean },
@@ -878,7 +892,7 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-9dd7b659"]]), ws = ["di
878
892
  },
879
893
  emits: ["update:modelValue", "click"],
880
894
  setup(e, { emit: s }) {
881
- const n = e, o = c(() => {
895
+ const n = e, o = d(() => {
882
896
  const r = [
883
897
  "h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
884
898
  "normal px-16 py-5 shadow rounded transition active:scale-95"
@@ -893,7 +907,7 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-9dd7b659"]]), ws = ["di
893
907
  }
894
908
  s("update:modelValue", !n.modelValue), s("click", r);
895
909
  };
896
- return (r, d) => (l(), h("button", {
910
+ return (r, c) => (l(), h("button", {
897
911
  class: v(t(o)),
898
912
  disabled: e.disabled,
899
913
  onClick: a
@@ -901,18 +915,18 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-9dd7b659"]]), ws = ["di
901
915
  R(r.$slots, "default", {}, () => [
902
916
  T("Text")
903
917
  ])
904
- ], 10, ws));
918
+ ], 10, _s));
905
919
  }
906
- }), $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 = {
907
921
  class: "ml-2 text-sm",
908
922
  style: { "padding-top": "2px" }
909
- }, Bs = ["for"], Ls = {
923
+ }, Ps = ["for"], Vs = {
910
924
  key: 0,
911
925
  class: "text-danger ml-1"
912
- }, Ps = ["id"], Vs = O({
926
+ }, js = ["id"], Os = O({
913
927
  inheritAttrs: !1
914
- }), dl = /* @__PURE__ */ O({
915
- ...Vs,
928
+ }), fl = /* @__PURE__ */ O({
929
+ ...Os,
916
930
  __name: "Checkbox",
917
931
  props: {
918
932
  /**
@@ -1000,23 +1014,23 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-9dd7b659"]]), ws = ["di
1000
1014
  },
1001
1015
  emits: ["update:modelValue"],
1002
1016
  setup(e) {
1003
- const s = e, n = (L) => `${L}-${pe()}`, o = c(() => s.value || s.name), {
1017
+ const s = e, n = (L) => `${L}-${pe()}`, o = d(() => s.value || s.name), {
1004
1018
  checked: a,
1005
1019
  errorMessage: r,
1006
- handleChange: d
1020
+ handleChange: c
1007
1021
  } = fe(s.name, s.rules, {
1008
1022
  validateOnMount: s.validateOnMount,
1009
1023
  type: "checkbox",
1010
1024
  checkedValue: o,
1011
1025
  initialValue: s.modelValue || void 0
1012
1026
  }), i = (L) => {
1013
- s.disabled || d(L);
1014
- }, 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(() => {
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(() => {
1015
1029
  const L = [];
1016
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(" ");
1017
- }), b = A(n("checkbox")), V = c(() => s.id || b.value);
1018
- return (L, $) => (l(), h("div", $s, [
1019
- u("div", _s, [
1031
+ }), b = A(n("checkbox")), V = d(() => s.id || b.value);
1032
+ return (L, $) => (l(), h("div", Ss, [
1033
+ u("div", Is, [
1020
1034
  u("input", ne({
1021
1035
  id: t(V),
1022
1036
  checked: t(a),
@@ -1026,34 +1040,34 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-9dd7b659"]]), ws = ["di
1026
1040
  disabled: e.disabled,
1027
1041
  type: "checkbox",
1028
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)]
1029
- }, L.$attrs, { onChange: i }), null, 16, Ss)
1043
+ }, L.$attrs, { onChange: i }), null, 16, Bs)
1030
1044
  ]),
1031
- u("div", Is, [
1045
+ u("div", Ls, [
1032
1046
  u("label", {
1033
1047
  for: t(V),
1034
1048
  class: v(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1035
1049
  }, [
1036
1050
  u("span", null, S(t(y)), 1),
1037
- e.showRequired ? (l(), h("span", Ls, "*")) : _("", !0)
1038
- ], 10, Bs),
1051
+ e.showRequired ? (l(), h("span", Vs, "*")) : _("", !0)
1052
+ ], 10, Ps),
1039
1053
  t(w) ? (l(), h("p", {
1040
1054
  key: 0,
1041
1055
  id: t(g),
1042
1056
  class: v(t(m))
1043
- }, S(t(w)), 11, Ps)) : _("", !0)
1057
+ }, S(t(w)), 11, js)) : _("", !0)
1044
1058
  ])
1045
1059
  ]));
1046
1060
  }
1047
1061
  });
1048
- function Ae(e) {
1062
+ function De(e) {
1049
1063
  const { props: s, inputEl: n, emit: o } = e, { value: a, errorMessage: r } = fe(s.name, s.rules, {
1050
1064
  validateOnMount: t(s.validateOnMount),
1051
1065
  validateOnValueUpdate: t(s.validateOnValueUpdate),
1052
1066
  initialValue: t(s.modelValue) || void 0
1053
- }), d = c(() => {
1067
+ }), c = d(() => {
1054
1068
  const x = ["block label text-foreground-2 mb-2"];
1055
1069
  return t(s.showLabel) || x.push("sr-only"), x.join(" ");
1056
- }), i = c(() => {
1070
+ }), i = d(() => {
1057
1071
  const x = [
1058
1072
  "block w-full rounded focus:outline-none text-foreground transition-all",
1059
1073
  "disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
@@ -1062,14 +1076,14 @@ function Ae(e) {
1062
1076
  return r.value ? x.push(
1063
1077
  "border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
1064
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(" ");
1065
- }), y = A(pe()), f = c(() => t(s.label) || t(s.name)), w = c(() => {
1079
+ }), y = A(pe()), f = d(() => t(s.label) || t(s.name)), w = d(() => {
1066
1080
  const x = r.value;
1067
1081
  return !x || !t(s.useLabelInErrors) ? x : x.replace("Value", f.value);
1068
- }), g = c(
1082
+ }), g = d(
1069
1083
  () => w.value && t(s.hideErrorMessage)
1070
- ), m = c(() => w.value || t(s.help)), b = c(() => !!m.value), V = c(
1084
+ ), m = d(() => w.value || t(s.help)), b = d(() => !!m.value), V = d(
1071
1085
  () => b.value ? `${t(s.name)}-${y.value}` : void 0
1072
- ), L = c(() => {
1086
+ ), L = d(() => {
1073
1087
  const x = ["mt-2 text-sm"];
1074
1088
  return x.push(r.value ? "text-danger" : "text-foreground-2"), x.join(" ");
1075
1089
  }), $ = () => {
@@ -1091,13 +1105,13 @@ function Ae(e) {
1091
1105
  errorMessage: w,
1092
1106
  clear: C,
1093
1107
  focus: $,
1094
- labelClasses: d
1108
+ labelClasses: c
1095
1109
  };
1096
1110
  }
1097
- const js = ["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 = {
1098
1112
  key: 2,
1099
1113
  class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
1100
- }, Rs = ["id"], cl = /* @__PURE__ */ O({
1114
+ }, zs = ["id"], pl = /* @__PURE__ */ O({
1101
1115
  __name: "TextArea",
1102
1116
  props: {
1103
1117
  name: null,
@@ -1121,7 +1135,7 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1121
1135
  setup(e, { expose: s, emit: n }) {
1122
1136
  const o = e, a = A(null), {
1123
1137
  coreClasses: r,
1124
- title: d,
1138
+ title: c,
1125
1139
  value: i,
1126
1140
  helpTipId: y,
1127
1141
  helpTipClasses: f,
@@ -1130,11 +1144,11 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1130
1144
  labelClasses: m,
1131
1145
  clear: b,
1132
1146
  focus: V
1133
- } = Ae({
1147
+ } = De({
1134
1148
  props: Z(o),
1135
1149
  emit: n,
1136
1150
  inputEl: a
1137
- }), L = c(() => {
1151
+ }), L = d(() => {
1138
1152
  const $ = ["pl-2"];
1139
1153
  return o.showClear && g.value ? $.push("pr-12") : (o.showClear || g.value) && $.push("pr-8"), $.join(" ");
1140
1154
  });
@@ -1145,9 +1159,9 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1145
1159
  for: e.name,
1146
1160
  class: v(t(m))
1147
1161
  }, [
1148
- u("span", null, S(t(d)), 1)
1149
- ], 10, js),
1150
- u("div", Os, [
1162
+ u("span", null, S(t(c)), 1)
1163
+ ], 10, Ms),
1164
+ u("div", As, [
1151
1165
  te(u("textarea", ne({
1152
1166
  id: e.name,
1153
1167
  ref_key: "inputElement",
@@ -1162,8 +1176,8 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1162
1176
  }, $.$attrs, {
1163
1177
  onChange: C[1] || (C[1] = (x) => $.$emit("change", { event: x, value: t(i) })),
1164
1178
  onInput: C[2] || (C[2] = (x) => $.$emit("input", { event: x, value: t(i) }))
1165
- }), null, 16, Ms), [
1166
- [Ie, t(i)]
1179
+ }), null, 16, Ds), [
1180
+ [Be, t(i)]
1167
1181
  ]),
1168
1182
  e.showClear ? (l(), h("a", {
1169
1183
  key: 0,
@@ -1174,8 +1188,8 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1174
1188
  onKeydown: C[4] || (C[4] = //@ts-ignore
1175
1189
  (...x) => t(b) && t(b)(...x))
1176
1190
  }, [
1177
- As,
1178
- I(t(ce), {
1191
+ Rs,
1192
+ I(t(de), {
1179
1193
  class: "h-5 w-5 text-foreground",
1180
1194
  "aria-hidden": "true"
1181
1195
  })
@@ -1187,30 +1201,30 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1187
1201
  e.showClear ? "pr-8" : "pr-2"
1188
1202
  ])
1189
1203
  }, [
1190
- I(t(je), {
1204
+ I(t(Oe), {
1191
1205
  class: "h-4 w-4 text-danger",
1192
1206
  "aria-hidden": "true"
1193
1207
  })
1194
1208
  ], 2)) : _("", !0),
1195
- e.showRequired && !t(g) ? (l(), h("div", Ds, " * ")) : _("", !0)
1209
+ e.showRequired && !t(g) ? (l(), h("div", Ts, " * ")) : _("", !0)
1196
1210
  ]),
1197
1211
  t(y) ? (l(), h("p", {
1198
1212
  key: 0,
1199
1213
  id: t(y),
1200
1214
  class: v(t(f))
1201
- }, S(t(w)), 11, Rs)) : _("", !0)
1215
+ }, S(t(w)), 11, zs)) : _("", !0)
1202
1216
  ], 2));
1203
1217
  }
1204
- }), Ts = ["for"], zs = { class: "relative" }, Fs = {
1218
+ }), Fs = ["for"], Es = { class: "relative" }, Ws = {
1205
1219
  key: 0,
1206
1220
  class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
1207
- }, 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 = {
1208
1222
  key: 2,
1209
1223
  class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
1210
- }, qs = ["id"], Hs = O({
1224
+ }, Gs = ["id"], Ks = O({
1211
1225
  inheritAttrs: !1
1212
- }), fl = /* @__PURE__ */ O({
1213
- ...Hs,
1226
+ }), hl = /* @__PURE__ */ O({
1227
+ ...Ks,
1214
1228
  __name: "TextInput",
1215
1229
  props: {
1216
1230
  /**
@@ -1346,8 +1360,8 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1346
1360
  },
1347
1361
  emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
1348
1362
  setup(e, { expose: s, emit: n }) {
1349
- const o = e, a = Fe(), r = A(null), {
1350
- coreClasses: d,
1363
+ const o = e, a = Ee(), r = A(null), {
1364
+ coreClasses: c,
1351
1365
  title: i,
1352
1366
  value: y,
1353
1367
  helpTipId: f,
@@ -1358,19 +1372,19 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1358
1372
  clear: V,
1359
1373
  focus: L,
1360
1374
  labelClasses: $
1361
- } = Ae({
1375
+ } = De({
1362
1376
  props: Z(o),
1363
1377
  emit: n,
1364
1378
  inputEl: r
1365
- }), C = c(() => {
1379
+ }), C = d(() => {
1366
1380
  const j = ["h-5 w-5"];
1367
1381
  return b.value ? j.push("text-danger") : j.push("text-foreground-2"), j.join(" ");
1368
- }), x = c(
1382
+ }), x = d(
1369
1383
  () => ["email", "password"].includes(o.type) || o.customIcon
1370
- ), E = c(() => {
1384
+ ), E = d(() => {
1371
1385
  const j = [];
1372
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(" ");
1373
- }), p = c(() => {
1387
+ }), p = d(() => {
1374
1388
  switch (o.size) {
1375
1389
  case "sm":
1376
1390
  return "h-6";
@@ -1391,18 +1405,18 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1391
1405
  class: v(t($))
1392
1406
  }, [
1393
1407
  u("span", null, S(t(i)), 1)
1394
- ], 10, Ts),
1395
- u("div", zs, [
1396
- t(x) ? (l(), h("div", Fs, [
1408
+ ], 10, Fs),
1409
+ u("div", Es, [
1410
+ t(x) ? (l(), h("div", Ws, [
1397
1411
  e.customIcon ? (l(), P(U(e.customIcon), {
1398
1412
  key: 0,
1399
1413
  class: v(t(C)),
1400
1414
  "aria-hidden": "true"
1401
- }, null, 8, ["class"])) : e.type === "email" ? (l(), P(t(at), {
1415
+ }, null, 8, ["class"])) : e.type === "email" ? (l(), P(t(ot), {
1402
1416
  key: 1,
1403
1417
  class: v(t(C)),
1404
1418
  "aria-hidden": "true"
1405
- }, null, 8, ["class"])) : e.type === "password" ? (l(), P(t(ot), {
1419
+ }, null, 8, ["class"])) : e.type === "password" ? (l(), P(t(rt), {
1406
1420
  key: 2,
1407
1421
  class: v(t(C)),
1408
1422
  "aria-hidden": "true"
@@ -1415,7 +1429,7 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1415
1429
  "onUpdate:modelValue": z[0] || (z[0] = (M) => le(y) ? y.value = M : null),
1416
1430
  type: e.type,
1417
1431
  name: e.name,
1418
- class: [t(d), t(E), t(p), e.inputClasses || ""],
1432
+ class: [t(c), t(E), t(p), e.inputClasses || ""],
1419
1433
  placeholder: e.placeholder,
1420
1434
  disabled: e.disabled,
1421
1435
  "aria-invalid": t(b) ? "true" : "false",
@@ -1424,8 +1438,8 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1424
1438
  }, j.$attrs, {
1425
1439
  onChange: z[1] || (z[1] = (M) => j.$emit("change", { event: M, value: t(y) })),
1426
1440
  onInput: z[2] || (z[2] = (M) => j.$emit("input", { event: M, value: t(y) }))
1427
- }), null, 16, Es), [
1428
- [Ee, t(y)]
1441
+ }), null, 16, Us), [
1442
+ [We, t(y)]
1429
1443
  ]),
1430
1444
  R(j.$slots, "input-right", {}, () => [
1431
1445
  e.showClear ? (l(), h("a", {
@@ -1437,8 +1451,8 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1437
1451
  onKeydown: z[4] || (z[4] = //@ts-ignore
1438
1452
  (...M) => t(V) && t(V)(...M))
1439
1453
  }, [
1440
- Ws,
1441
- I(t(ce), {
1454
+ qs,
1455
+ I(t(de), {
1442
1456
  class: "h-5 w-5 text-foreground",
1443
1457
  "aria-hidden": "true"
1444
1458
  })
@@ -1450,46 +1464,46 @@ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1450
1464
  e.showClear ? "pr-8" : "pr-2"
1451
1465
  ])
1452
1466
  }, [
1453
- I(t(je), {
1467
+ I(t(Oe), {
1454
1468
  class: "h-4 w-4 text-danger",
1455
1469
  "aria-hidden": "true"
1456
1470
  })
1457
1471
  ], 2)) : _("", !0),
1458
- e.showRequired && !t(b) ? (l(), h("div", Us, " * ")) : _("", !0)
1472
+ e.showRequired && !t(b) ? (l(), h("div", Hs, " * ")) : _("", !0)
1459
1473
  ])
1460
1474
  ]),
1461
1475
  t(f) && !t(m) ? (l(), h("p", {
1462
1476
  key: 0,
1463
1477
  id: t(f),
1464
1478
  class: v(t(w))
1465
- }, S(t(g)), 11, qs)) : _("", !0)
1479
+ }, S(t(g)), 11, Gs)) : _("", !0)
1466
1480
  ], 2));
1467
1481
  }
1468
- }), 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) => {
1469
1483
  const { minLength: n, maxLength: o } = e;
1470
- 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";
1471
- }, 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) => {
1472
1486
  const { match: n, message: o } = e;
1473
1487
  return se(s) ? n ? se(n) ? s.includes(n) ? !0 : o : n.test(s) ? !0 : o : !0 : "Value should be a text string";
1474
- }, pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1488
+ }, ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1475
1489
  __proto__: null,
1476
1490
  VALID_EMAIL: ye,
1477
- VALID_HTTP_URL: Gs,
1478
- isEmail: Ks,
1479
- isOneOrMultipleEmails: Xs,
1480
- isRequired: Ns,
1481
- isSameAs: Js,
1482
- isStringOfLength: Qs,
1483
- 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
1484
1498
  }, Symbol.toStringTag, { value: "Module" }));
1485
- function Zs(e) {
1499
+ function tn(e) {
1486
1500
  const {
1487
1501
  skipCalculation: s,
1488
1502
  elementToWatchForChanges: n,
1489
1503
  itemContainer: o,
1490
1504
  trackResize: a = !1,
1491
1505
  trackMutations: r = !0
1492
- } = e || {}, d = A(0), i = () => {
1506
+ } = e || {}, c = A(0), i = () => {
1493
1507
  const y = o.value;
1494
1508
  if (s != null && s.value || !y)
1495
1509
  return;
@@ -1499,22 +1513,22 @@ function Zs(e) {
1499
1513
  const V = b.offsetTop;
1500
1514
  X(m) ? (m = V, w += 1) : V === m && (w += 1), g += 1;
1501
1515
  }
1502
- d.value = g - w;
1516
+ c.value = g - w;
1503
1517
  };
1504
- return a && dt(n, i), r && ct(n, i, {
1518
+ return a && dt(n, i), r && ft(n, i, {
1505
1519
  childList: !0,
1506
1520
  subtree: !0
1507
1521
  }), {
1508
- hiddenItemCount: d
1522
+ hiddenItemCount: c
1509
1523
  };
1510
1524
  }
1511
- function en(e) {
1525
+ function sn(e) {
1512
1526
  const { props: s, emit: n, dynamicVisibility: o } = e;
1513
1527
  let a;
1514
1528
  if (o) {
1515
1529
  const { elementToWatchForChanges: f, itemContainer: w } = o;
1516
- a = Zs({
1517
- skipCalculation: c(() => {
1530
+ a = tn({
1531
+ skipCalculation: d(() => {
1518
1532
  var m;
1519
1533
  return !((m = s.multiple) != null && m.value);
1520
1534
  }),
@@ -1523,7 +1537,7 @@ function en(e) {
1523
1537
  }).hiddenItemCount;
1524
1538
  } else
1525
1539
  a = A(0);
1526
- const r = c({
1540
+ const r = d({
1527
1541
  get: () => {
1528
1542
  var w, g;
1529
1543
  const f = (w = s.modelValue) == null ? void 0 : w.value;
@@ -1540,18 +1554,18 @@ function en(e) {
1540
1554
  }
1541
1555
  n("update:modelValue", (m = s.multiple) != null && m.value ? f || [] : f);
1542
1556
  }
1543
- }), d = (f) => W(f);
1557
+ }), c = (f) => W(f);
1544
1558
  return {
1545
1559
  selectedValue: r,
1546
1560
  hiddenSelectedItemCount: a,
1547
- isArrayValue: d,
1561
+ isArrayValue: c,
1548
1562
  isMultiItemArrayValue: (f) => W(f) && f.length > 1,
1549
- firstItem: (f) => d(f) ? f[0] : f
1563
+ firstItem: (f) => c(f) ? f[0] : f
1550
1564
  };
1551
1565
  }
1552
- 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 = [
1553
- sn
1554
- ], 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({
1555
1569
  __name: "Bar",
1556
1570
  props: {
1557
1571
  loading: { type: Boolean }
@@ -1562,18 +1576,18 @@ const tn = (e) => (_e("data-v-60cf597b"), e = e(), Se(), e), sn = /* @__PURE__ *
1562
1576
  "relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
1563
1577
  e.loading ? "opacity-100" : "opacity-0"
1564
1578
  ])
1565
- }, nn, 2));
1579
+ }, an, 2));
1566
1580
  }
1567
1581
  });
1568
- 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"], dn = {
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 = {
1569
1583
  key: 0,
1570
1584
  class: "flex flex-col mx-1 mb-1"
1571
- }, cn = /* @__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 = {
1572
1586
  key: 0,
1573
1587
  class: "px-1"
1574
- }, 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 = {
1575
1589
  class: /* @__PURE__ */ v(["block truncate"])
1576
- }, bn = ["id"], xn = /* @__PURE__ */ O({
1590
+ }, kn = ["id"], Cn = /* @__PURE__ */ O({
1577
1591
  __name: "Base",
1578
1592
  props: {
1579
1593
  multiple: {
@@ -1709,24 +1723,24 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1709
1723
  validateOnMount: s.validateOnMount,
1710
1724
  validateOnValueUpdate: s.validateOnValueUpdate,
1711
1725
  initialValue: s.modelValue
1712
- }), 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(() => {
1713
1727
  const k = o.value;
1714
1728
  return !k || !t(s.useLabelInErrors) ? k : k.replace("Value", f.value);
1715
- }), 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(
1716
1730
  () => m.value ? `${t(s.name)}-${y.value}` : void 0
1717
- ), V = c(
1731
+ ), V = d(
1718
1732
  () => o.value ? "text-danger" : "text-foreground-2"
1719
- ), L = c(
1733
+ ), L = d(
1720
1734
  () => s.buttonStyle !== "simple" && s.clearable && !s.disabled
1721
- ), $ = c(() => {
1735
+ ), $ = d(() => {
1722
1736
  const k = ["relative flex group", s.showLabel ? "mt-1" : ""];
1723
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(" ");
1724
- }), C = c(() => {
1738
+ }), C = d(() => {
1725
1739
  const k = [];
1726
1740
  return s.buttonStyle !== "simple" && k.push(
1727
1741
  z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1728
1742
  ), z.value && k.push("cursor-not-allowed"), k.join(" ");
1729
- }), x = c(() => {
1743
+ }), x = d(() => {
1730
1744
  const k = [
1731
1745
  "relative z-[1]",
1732
1746
  "flex items-center justify-center text-center shrink-0",
@@ -1736,7 +1750,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1736
1750
  return z.value || k.push(
1737
1751
  "bg-primary-muted hover:bg-primary hover:text-foreground-on-primary"
1738
1752
  ), k.join(" ");
1739
- }), E = c(() => {
1753
+ }), E = d(() => {
1740
1754
  const k = [
1741
1755
  "relative z-[2]",
1742
1756
  "normal rounded-md cursor-pointer transition truncate flex-1",
@@ -1744,11 +1758,11 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1744
1758
  C.value
1745
1759
  ];
1746
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(" ");
1747
- }), p = c(
1761
+ }), p = d(
1748
1762
  () => !!(s.search && (s.filterPredicate || s.getSearchResults))
1749
- ), j = c(() => p.value && s.getSearchResults), z = c(
1763
+ ), j = d(() => p.value && s.getSearchResults), z = d(
1750
1764
  () => s.disabled || !s.items.length && !j.value
1751
- ), M = c({
1765
+ ), M = d({
1752
1766
  get: () => {
1753
1767
  const k = n.value;
1754
1768
  return s.multiple ? W(k) ? k : [] : W(k) ? void 0 : k;
@@ -1768,38 +1782,38 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1768
1782
  n.value = D ? void 0 : k;
1769
1783
  }
1770
1784
  }
1771
- }), ve = c(() => s.multiple ? M.value.length !== 0 : !!M.value), Re = () => {
1785
+ }), ve = d(() => s.multiple ? M.value.length !== 0 : !!M.value), Te = () => {
1772
1786
  s.multiple ? M.value = [] : M.value = void 0;
1773
- }, Te = c(() => {
1787
+ }, ze = d(() => {
1774
1788
  const k = r.value;
1775
- return !p.value || !(k != null && k.length) ? d.value : s.filterPredicate ? d.value.filter(
1789
+ return !p.value || !(k != null && k.length) ? c.value : s.filterPredicate ? c.value.filter(
1776
1790
  (F) => {
1777
1791
  var D;
1778
1792
  return ((D = s.filterPredicate) == null ? void 0 : D.call(s, F, k)) || !1;
1779
1793
  }
1780
- ) : d.value;
1794
+ ) : c.value;
1781
1795
  }), be = (k) => JSON.stringify(k), ae = (k) => s.by ? k[s.by] : k, xe = async () => {
1782
1796
  if (console.log("triggerSearch"), !(!j.value || !s.getSearchResults)) {
1783
1797
  i.value = !0;
1784
1798
  try {
1785
- d.value = await s.getSearchResults(r.value);
1799
+ c.value = await s.getSearchResults(r.value);
1786
1800
  } finally {
1787
1801
  i.value = !1;
1788
1802
  }
1789
1803
  }
1790
- }, ze = Pe(xe, 1e3);
1804
+ }, Fe = Ve(xe, 1e3);
1791
1805
  return Y(
1792
1806
  () => s.items,
1793
1807
  (k) => {
1794
- d.value = k.slice();
1808
+ c.value = k.slice();
1795
1809
  },
1796
1810
  { immediate: !0 }
1797
1811
  ), Y(r, () => {
1798
- j.value && ze();
1812
+ j.value && Fe();
1799
1813
  }), ee(() => {
1800
1814
  j.value && !s.items.length && xe();
1801
1815
  }), (k, F) => (l(), h("div", null, [
1802
- I(t(pt), {
1816
+ I(t(ht), {
1803
1817
  modelValue: t(M),
1804
1818
  "onUpdate:modelValue": F[4] || (F[4] = (D) => le(M) ? M.value = D : null),
1805
1819
  name: e.name,
@@ -1809,7 +1823,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1809
1823
  as: "div"
1810
1824
  }, {
1811
1825
  default: B(() => [
1812
- I(t(ht), {
1826
+ I(t(mt), {
1813
1827
  class: v(["block label text-foreground", { "sr-only": !e.showLabel }])
1814
1828
  }, {
1815
1829
  default: B(() => [
@@ -1820,12 +1834,12 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1820
1834
  u("div", {
1821
1835
  class: v(t($))
1822
1836
  }, [
1823
- I(t(mt), {
1837
+ I(t(gt), {
1824
1838
  class: v(t(E))
1825
1839
  }, {
1826
1840
  default: B(({ open: D }) => [
1827
- u("div", an, [
1828
- u("div", on, [
1841
+ u("div", rn, [
1842
+ u("div", un, [
1829
1843
  !t(M) || t(W)(t(M)) && !t(M).length ? R(k.$slots, "nothing-selected", { key: 0 }, () => [
1830
1844
  T(S(e.label), 1)
1831
1845
  ]) : R(k.$slots, "something-selected", {
@@ -1835,12 +1849,12 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1835
1849
  T(S(be(t(M))), 1)
1836
1850
  ])
1837
1851
  ]),
1838
- u("div", rn, [
1839
- D ? (l(), P(t(Ve), {
1852
+ u("div", cn, [
1853
+ D ? (l(), P(t(je), {
1840
1854
  key: 0,
1841
1855
  class: "h-4 w-4 text-foreground",
1842
1856
  "aria-hidden": "true"
1843
- })) : (l(), P(t(qe), {
1857
+ })) : (l(), P(t(He), {
1844
1858
  key: 1,
1845
1859
  class: "h-4 w-4 text-foreground",
1846
1860
  "aria-hidden": "true"
@@ -1854,19 +1868,19 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1854
1868
  key: 0,
1855
1869
  class: v(t(x)),
1856
1870
  disabled: e.disabled,
1857
- onClick: F[0] || (F[0] = (D) => Re())
1871
+ onClick: F[0] || (F[0] = (D) => Te())
1858
1872
  }, [
1859
- I(t(He), { class: "w-3 h-3" })
1860
- ], 10, un)), [
1861
- [t(Bt), "Clear"]
1873
+ I(t(Ge), { class: "w-3 h-3" })
1874
+ ], 10, dn)), [
1875
+ [t(Lt), "Clear"]
1862
1876
  ]) : _("", !0),
1863
- I(de, {
1877
+ I(ce, {
1864
1878
  "leave-active-class": "transition ease-in duration-100",
1865
1879
  "leave-from-class": "opacity-100",
1866
1880
  "leave-to-class": "opacity-0"
1867
1881
  }, {
1868
1882
  default: B(() => [
1869
- I(t(gt), {
1883
+ I(t(yt), {
1870
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",
1871
1885
  onFocus: F[3] || (F[3] = (D) => {
1872
1886
  var G;
@@ -1874,11 +1888,11 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1874
1888
  })
1875
1889
  }, {
1876
1890
  default: B(() => [
1877
- t(p) ? (l(), h("label", dn, [
1878
- cn,
1879
- u("div", fn, [
1880
- u("div", pn, [
1881
- 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" })
1882
1896
  ]),
1883
1897
  te(u("input", {
1884
1898
  ref_key: "searchInput",
@@ -1887,24 +1901,24 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1887
1901
  type: "text",
1888
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",
1889
1903
  placeholder: e.searchPlaceholder,
1890
- onKeydown: F[2] || (F[2] = Be(() => {
1904
+ onKeydown: F[2] || (F[2] = Le(() => {
1891
1905
  }, ["stop"]))
1892
- }, null, 40, hn), [
1893
- [Ie, r.value]
1906
+ }, null, 40, gn), [
1907
+ [Be, r.value]
1894
1908
  ])
1895
1909
  ])
1896
1910
  ])) : _("", !0),
1897
1911
  u("div", {
1898
1912
  class: v(["overflow-auto simple-scrollbar", [t(p) ? "max-h-52" : "max-h-60"]])
1899
1913
  }, [
1900
- t(j) && i.value ? (l(), h("div", mn, [
1901
- I(De, { loading: !0 })
1902
- ])) : t(j) && !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, [
1903
1917
  R(k.$slots, "nothing-found", {}, () => [
1904
- yn
1918
+ bn
1905
1919
  ])
1906
1920
  ])) : _("", !0),
1907
- !t(j) || !i.value ? (l(!0), h(q, { key: 2 }, H(t(Te), (D) => (l(), P(t(yt), {
1921
+ !t(j) || !i.value ? (l(!0), h(q, { key: 2 }, H(t(ze), (D) => (l(), P(t(vt), {
1908
1922
  key: ae(D),
1909
1923
  value: D
1910
1924
  }, {
@@ -1916,7 +1930,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1916
1930
  e.hideCheckmarks ? "" : "pr-9"
1917
1931
  ])
1918
1932
  }, [
1919
- u("span", vn, [
1933
+ u("span", xn, [
1920
1934
  R(k.$slots, "option", {
1921
1935
  item: D,
1922
1936
  active: G,
@@ -1932,7 +1946,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1932
1946
  "absolute inset-y-0 right-0 flex items-center pr-4"
1933
1947
  ])
1934
1948
  }, [
1935
- I(t(Ke), {
1949
+ I(t(Xe), {
1936
1950
  class: "h-5 w-5",
1937
1951
  "aria-hidden": "true"
1938
1952
  })
@@ -1956,16 +1970,16 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1956
1970
  key: 0,
1957
1971
  id: t(b),
1958
1972
  class: v(["mt-2 ml-3 text-sm", t(V)])
1959
- }, S(t(g)), 11, bn)) : _("", !0)
1973
+ }, S(t(g)), 11, kn)) : _("", !0)
1960
1974
  ]));
1961
1975
  }
1962
- }), kn = /* @__PURE__ */ O({
1976
+ }), wn = /* @__PURE__ */ O({
1963
1977
  __name: "SourceAppBadge",
1964
1978
  props: {
1965
1979
  sourceApp: null
1966
1980
  },
1967
1981
  setup(e) {
1968
- return (s, n) => (l(), P(Gt, {
1982
+ return (s, n) => (l(), P(Kt, {
1969
1983
  "color-classes": "text-foreground-on-primary",
1970
1984
  rounded: "",
1971
1985
  style: oe({ backgroundColor: e.sourceApp.bgColor })
@@ -1976,13 +1990,13 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1976
1990
  _: 1
1977
1991
  }, 8, ["style"]));
1978
1992
  }
1979
- }), Cn = {
1993
+ }), $n = {
1980
1994
  key: 0,
1981
1995
  class: "text-foreground-2 normal"
1982
- }, wn = {
1996
+ }, _n = {
1983
1997
  key: 1,
1984
1998
  class: "flex items-center"
1985
- }, $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({
1986
2000
  __name: "SourceApps",
1987
2001
  props: {
1988
2002
  /**
@@ -2042,16 +2056,16 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2042
2056
  },
2043
2057
  emits: ["update:modelValue"],
2044
2058
  setup(e, { emit: s }) {
2045
- 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({
2046
2060
  props: Z(n),
2047
2061
  emit: s,
2048
2062
  dynamicVisibility: { elementToWatchForChanges: o, itemContainer: a }
2049
2063
  }), f = (w, g) => w.name.toLocaleLowerCase().includes(g.toLocaleLowerCase());
2050
- return (w, g) => (l(), P(xn, {
2064
+ return (w, g) => (l(), P(Cn, {
2051
2065
  modelValue: t(r),
2052
2066
  "onUpdate:modelValue": g[0] || (g[0] = (m) => le(r) ? r.value = m : null),
2053
2067
  multiple: e.multiple,
2054
- items: e.items ?? t(it),
2068
+ items: e.items ?? t(ut),
2055
2069
  search: e.search,
2056
2070
  "search-placeholder": e.searchPlaceholder,
2057
2071
  label: e.label,
@@ -2079,27 +2093,27 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2079
2093
  ref: a,
2080
2094
  class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
2081
2095
  }, [
2082
- (l(!0), h(q, null, H(m, (b) => (l(), P(kn, {
2096
+ (l(!0), h(q, null, H(m, (b) => (l(), P(wn, {
2083
2097
  key: b.name,
2084
2098
  "source-app": b
2085
2099
  }, null, 8, ["source-app"]))), 128))
2086
2100
  ], 512),
2087
- t(d) > 0 ? (l(), h("div", Cn, " +" + S(t(d)), 1)) : _("", !0)
2088
- ], 512)) : (l(), h("div", wn, [
2101
+ t(c) > 0 ? (l(), h("div", $n, " +" + S(t(c)), 1)) : _("", !0)
2102
+ ], 512)) : (l(), h("div", _n, [
2089
2103
  u("div", {
2090
2104
  class: "h-2 w-2 rounded-full mr-2",
2091
2105
  style: oe({ backgroundColor: t(y)(m).bgColor })
2092
2106
  }, null, 4),
2093
- u("span", $n, S(t(y)(m).name), 1)
2107
+ u("span", Sn, S(t(y)(m).name), 1)
2094
2108
  ]))
2095
2109
  ]),
2096
2110
  option: B(({ item: m }) => [
2097
- u("div", _n, [
2111
+ u("div", In, [
2098
2112
  u("div", {
2099
2113
  class: "h-2 w-2 rounded-full mr-2",
2100
2114
  style: oe({ backgroundColor: m.bgColor })
2101
2115
  }, null, 4),
2102
- u("span", Sn, S(m.name), 1)
2116
+ u("span", Bn, S(m.name), 1)
2103
2117
  ])
2104
2118
  ]),
2105
2119
  _: 1
@@ -2107,7 +2121,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2107
2121
  }
2108
2122
  });
2109
2123
  var Q = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(Q || {});
2110
- const ie = ut(), In = {
2124
+ const ie = ct(), Ln = {
2111
2125
  [
2112
2126
  "cmd-or-ctrl"
2113
2127
  /* CtrlOrCmd */
@@ -2118,17 +2132,17 @@ const ie = ut(), In = {
2118
2132
  ]: ie === re.Mac ? "Opt" : "Alt",
2119
2133
  shift: "Shift"
2120
2134
  };
2121
- function ml(e) {
2135
+ function yl(e) {
2122
2136
  const s = (n) => Object.values(Q).includes(n);
2123
- return e.map((n) => s(n) ? In[n] : n).join("+");
2137
+ return e.map((n) => s(n) ? Ln[n] : n).join("+");
2124
2138
  }
2125
- function gl(e, ...s) {
2126
- ft(
2139
+ function vl(e, ...s) {
2140
+ pt(
2127
2141
  s[0],
2128
2142
  (n) => {
2129
2143
  const o = n.getModifierState("Alt"), a = ie === re.Mac ? n.getModifierState("Meta") : n.getModifierState("Control"), r = n.getModifierState("Shift");
2130
- for (const d of e)
2131
- switch (d) {
2144
+ for (const c of e)
2145
+ switch (c) {
2132
2146
  case Q.CtrlOrCmd:
2133
2147
  if (!a)
2134
2148
  return;
@@ -2147,7 +2161,7 @@ function gl(e, ...s) {
2147
2161
  s[2]
2148
2162
  );
2149
2163
  }
2150
- 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" }, Vn = { 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({
2151
2165
  __name: "Dialog",
2152
2166
  props: {
2153
2167
  open: { type: Boolean },
@@ -2157,10 +2171,10 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2157
2171
  },
2158
2172
  emits: ["update:open", "fully-closed"],
2159
2173
  setup(e, { emit: s }) {
2160
- const n = e, o = c({
2174
+ const n = e, o = d({
2161
2175
  get: () => n.open,
2162
2176
  set: (i) => s("update:open", i)
2163
- }), a = c(() => {
2177
+ }), a = d(() => {
2164
2178
  switch (n.maxWidth) {
2165
2179
  case "sm":
2166
2180
  return 0;
@@ -2173,24 +2187,24 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2173
2187
  default:
2174
2188
  return 1e4;
2175
2189
  }
2176
- }), r = c(() => {
2190
+ }), r = d(() => {
2177
2191
  const i = [
2178
2192
  "px-4 pt-4 pb-4 w-full",
2179
2193
  "sm:my-8 sm:w-full sm:max-w-xl sm:p-6"
2180
2194
  ];
2181
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(" ");
2182
- }), d = () => {
2196
+ }), c = () => {
2183
2197
  n.preventCloseOnClickOutside || (o.value = !1);
2184
2198
  };
2185
- return (i, y) => (l(), P(t(vt), {
2199
+ return (i, y) => (l(), P(t(bt), {
2186
2200
  as: "template",
2187
2201
  show: t(o)
2188
2202
  }, {
2189
2203
  default: B(() => [
2190
- I(t(bt), {
2204
+ I(t(xt), {
2191
2205
  as: "div",
2192
2206
  class: "relative z-40",
2193
- onClose: d
2207
+ onClose: c
2194
2208
  }, {
2195
2209
  default: B(() => [
2196
2210
  I(t($e), {
@@ -2203,12 +2217,12 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2203
2217
  "leave-to": "opacity-0"
2204
2218
  }, {
2205
2219
  default: B(() => [
2206
- Bn
2220
+ Pn
2207
2221
  ]),
2208
2222
  _: 1
2209
2223
  }),
2210
- u("div", Ln, [
2211
- u("div", Pn, [
2224
+ u("div", Vn, [
2225
+ u("div", jn, [
2212
2226
  I(t($e), {
2213
2227
  as: "template",
2214
2228
  enter: "ease-out duration-300",
@@ -2220,14 +2234,14 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2220
2234
  onAfterLeave: y[1] || (y[1] = (f) => i.$emit("fully-closed"))
2221
2235
  }, {
2222
2236
  default: B(() => [
2223
- I(t(xt), {
2237
+ I(t(kt), {
2224
2238
  class: v([
2225
2239
  "transform rounded-lg bg-foundation text-left shadow-xl transition-all",
2226
2240
  t(r)
2227
2241
  ])
2228
2242
  }, {
2229
2243
  default: B(() => [
2230
- u("div", Vn, [
2244
+ u("div", On, [
2231
2245
  R(i.$slots, "default", {}, () => [
2232
2246
  T("Put your content here!")
2233
2247
  ]),
@@ -2236,7 +2250,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2236
2250
  class: "absolute top-0 right-0 text-foreground",
2237
2251
  onClick: y[0] || (y[0] = (f) => o.value = !1)
2238
2252
  }, [
2239
- I(t(et), { class: "h-6 w-6" })
2253
+ I(t(tt), { class: "h-6 w-6" })
2240
2254
  ]))
2241
2255
  ])
2242
2256
  ]),
@@ -2254,7 +2268,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2254
2268
  _: 3
2255
2269
  }, 8, ["show"]));
2256
2270
  }
2257
- }), jn = { 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({
2258
2272
  __name: "Disclosure",
2259
2273
  props: {
2260
2274
  title: null,
@@ -2262,7 +2276,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2262
2276
  color: { default: "default" }
2263
2277
  },
2264
2278
  setup(e) {
2265
- const s = e, n = c(() => {
2279
+ const s = e, n = d(() => {
2266
2280
  const a = [
2267
2281
  "pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
2268
2282
  "ring-1"
@@ -2279,7 +2293,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2279
2293
  break;
2280
2294
  }
2281
2295
  return a.join(" ");
2282
- }), o = c(() => {
2296
+ }), o = d(() => {
2283
2297
  const a = ["mt-4 px-3 py-1 border-x "];
2284
2298
  switch (s.color) {
2285
2299
  case "danger":
@@ -2293,30 +2307,30 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2293
2307
  return a.join(" ");
2294
2308
  });
2295
2309
  return (a, r) => (l(), h("div", null, [
2296
- I(t(kt), null, {
2297
- default: B(({ open: d }) => [
2298
- I(t(Ct), {
2310
+ I(t(Ct), null, {
2311
+ default: B(({ open: c }) => [
2312
+ I(t(wt), {
2299
2313
  class: v(t(n))
2300
2314
  }, {
2301
2315
  default: B(() => [
2302
- u("div", jn, [
2316
+ u("div", Mn, [
2303
2317
  e.icon ? (l(), P(U(e.icon), {
2304
2318
  key: 0,
2305
2319
  class: "h-4 w-4"
2306
2320
  })) : _("", !0),
2307
2321
  u("span", null, S(e.title), 1)
2308
2322
  ]),
2309
- I(t(Ve), {
2310
- class: v([d ? "" : "rotate-180 transform", "h-5 w-5"])
2323
+ I(t(je), {
2324
+ class: v([c ? "" : "rotate-180 transform", "h-5 w-5"])
2311
2325
  }, null, 8, ["class"])
2312
2326
  ]),
2313
2327
  _: 2
2314
2328
  }, 1032, ["class"]),
2315
- I(t(wt), {
2329
+ I(t($t), {
2316
2330
  class: v(t(o))
2317
2331
  }, {
2318
2332
  default: B(() => [
2319
- u("div", On, [
2333
+ u("div", An, [
2320
2334
  R(a.$slots, "default", {}, () => [
2321
2335
  T("Panel contents")
2322
2336
  ])
@@ -2331,24 +2345,24 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2331
2345
  }
2332
2346
  });
2333
2347
  var K = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(K || {});
2334
- const bl = /* @__PURE__ */ O({
2348
+ const kl = /* @__PURE__ */ O({
2335
2349
  __name: "GridListToggle",
2336
2350
  props: {
2337
2351
  modelValue: null
2338
2352
  },
2339
2353
  emits: ["click", "update:modelValue"],
2340
2354
  setup(e, { emit: s }) {
2341
- const n = e, o = c({
2355
+ const n = e, o = d({
2342
2356
  get: () => n.modelValue || K.Grid,
2343
- set: (d) => s("update:modelValue", d)
2344
- }), a = c(
2345
- () => o.value === K.Grid ? Xe : Ne
2346
- ), r = (d) => {
2347
- 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);
2348
2362
  const i = o.value === K.Grid ? K.List : K.Grid;
2349
2363
  o.value = i;
2350
2364
  };
2351
- return (d, i) => (l(), h("button", {
2365
+ return (c, i) => (l(), h("button", {
2352
2366
  class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
2353
2367
  onClick: r
2354
2368
  }, [
@@ -2356,54 +2370,54 @@ const bl = /* @__PURE__ */ O({
2356
2370
  ]));
2357
2371
  }
2358
2372
  });
2359
- 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 || {});
2360
- 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) {
2361
2375
  if (!he)
2362
2376
  return;
2363
2377
  const {
2364
2378
  wait: n = 100,
2365
2379
  throttleOrDebounce: o = 0
2366
2380
  /* Throttle */
2367
- } = s || {}, a = n ? o === 0 ? We(e, n) : Pe(e, n) : e;
2368
- 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));
2369
2383
  }
2370
- function xl(e) {
2384
+ function Cl(e) {
2371
2385
  ee(() => {
2372
2386
  window.addEventListener("beforeunload", e);
2373
- }), Le(() => {
2387
+ }), Pe(() => {
2374
2388
  window.removeEventListener("beforeunload", e);
2375
2389
  });
2376
2390
  }
2377
- function Dn(e) {
2391
+ function Tn(e) {
2378
2392
  const { el: s, defaultDirection: n } = e, o = A(
2379
2393
  X(n) ? 1 : n
2380
2394
  /* Right */
2381
- ), a = c(() => {
2382
- const d = t(e.stopUpdatesBelowWidth);
2383
- if (!X(d))
2384
- return d;
2395
+ ), a = d(() => {
2396
+ const c = t(e.stopUpdatesBelowWidth);
2397
+ if (!X(c))
2398
+ return c;
2385
2399
  const i = t(s);
2386
2400
  return i != null && i.offsetWidth ? i.offsetWidth * 2 : void 0;
2387
2401
  }), r = () => {
2388
2402
  if (!he)
2389
2403
  return;
2390
- const d = t(s);
2391
- if (!d)
2404
+ const c = t(s);
2405
+ if (!c)
2392
2406
  return;
2393
- 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;
2394
2408
  y && f || !X(a.value) && window.innerWidth < a.value || (y ? o.value = 0 : f && (o.value = 1));
2395
2409
  };
2396
- return An(() => r()), Y(
2410
+ return Rn(() => r()), Y(
2397
2411
  () => t(s),
2398
- (d) => {
2399
- d && r();
2412
+ (c) => {
2413
+ c && r();
2400
2414
  }
2401
2415
  ), {
2402
- direction: c(() => o.value),
2416
+ direction: d(() => o.value),
2403
2417
  recalculateDirection: r
2404
2418
  };
2405
2419
  }
2406
- const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2420
+ const zn = ["onClick"], wl = /* @__PURE__ */ O({
2407
2421
  __name: "Menu",
2408
2422
  props: {
2409
2423
  open: { type: Boolean },
@@ -2411,14 +2425,14 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2411
2425
  },
2412
2426
  emits: ["update:open", "chosen"],
2413
2427
  setup(e, { emit: s }) {
2414
- const n = e, o = A(null), { direction: a } = Dn({
2415
- el: c(() => {
2428
+ const n = e, o = A(null), { direction: a } = Tn({
2429
+ el: d(() => {
2416
2430
  var m;
2417
2431
  return ((m = o.value) == null ? void 0 : m.el) || null;
2418
2432
  }),
2419
2433
  defaultDirection: ue.Left,
2420
2434
  stopUpdatesBelowWidth: 300
2421
- }), r = A(null), d = A(!1), i = c({
2435
+ }), r = A(null), c = A(!1), i = d({
2422
2436
  get: () => n.open || !1,
2423
2437
  set: (m) => s("update:open", m)
2424
2438
  }), y = (m) => {
@@ -2431,23 +2445,23 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2431
2445
  return (m = r.value) == null ? void 0 : m.el.click();
2432
2446
  }, g = (m) => {
2433
2447
  const b = !!m;
2434
- return d.value = b, b;
2448
+ return c.value = b, b;
2435
2449
  };
2436
- return Y(d, (m, b) => {
2450
+ return Y(c, (m, b) => {
2437
2451
  m !== b && (i.value = m);
2438
2452
  }), Y(i, (m) => {
2439
- (m && !d.value || !m && d.value) && w();
2440
- }), (m, b) => (l(), P(t($t), {
2453
+ (m && !c.value || !m && c.value) && w();
2454
+ }), (m, b) => (l(), P(t(_t), {
2441
2455
  as: "div",
2442
2456
  class: "relative inline-block"
2443
2457
  }, {
2444
2458
  default: B(({ open: V }) => [
2445
2459
  u("div", null, [
2446
- I(t(_t), {
2460
+ I(t(St), {
2447
2461
  ref_key: "menuButton",
2448
2462
  ref: r,
2449
2463
  class: "hidden",
2450
- onClick: b[0] || (b[0] = Be(() => {
2464
+ onClick: b[0] || (b[0] = Le(() => {
2451
2465
  }, ["stop", "prevent"]))
2452
2466
  }, null, 512),
2453
2467
  u("div", {
@@ -2459,7 +2473,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2459
2473
  })
2460
2474
  ], 2)
2461
2475
  ]),
2462
- I(de, {
2476
+ I(ce, {
2463
2477
  "enter-active-class": "transition duration-100 ease-out",
2464
2478
  "enter-from-class": "transform scale-95 opacity-0",
2465
2479
  "enter-to-class": "transform scale-100 opacity-100",
@@ -2468,7 +2482,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2468
2482
  "leave-to-class": "transform scale-95 opacity-0"
2469
2483
  }, {
2470
2484
  default: B(() => [
2471
- I(t(St), {
2485
+ I(t(It), {
2472
2486
  ref_key: "menuItems",
2473
2487
  ref: o,
2474
2488
  class: v([
@@ -2481,7 +2495,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2481
2495
  key: $,
2482
2496
  class: "px-1 py-1"
2483
2497
  }, [
2484
- (l(!0), h(q, null, H(L, (C) => (l(), P(t(It), {
2498
+ (l(!0), h(q, null, H(L, (C) => (l(), P(t(Bt), {
2485
2499
  key: C.id,
2486
2500
  disabled: C.disabled
2487
2501
  }, {
@@ -2493,7 +2507,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2493
2507
  R(m.$slots, "item", { item: C }, () => [
2494
2508
  T(S(C.title), 1)
2495
2509
  ])
2496
- ], 10, Rn)
2510
+ ], 10, zn)
2497
2511
  ]),
2498
2512
  _: 2
2499
2513
  }, 1032, ["disabled"]))), 128))
@@ -2508,17 +2522,17 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2508
2522
  _: 3
2509
2523
  }));
2510
2524
  }
2511
- }), Tn = { class: "flex flex-col space-y-4" }, zn = { 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({
2512
2526
  __name: "Tabs",
2513
2527
  props: {
2514
2528
  items: null
2515
2529
  },
2516
2530
  setup(e) {
2517
- 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) => {
2518
2532
  n.value = r.id;
2519
2533
  };
2520
- return (r, d) => (l(), h("div", Tn, [
2521
- u("div", zn, [
2534
+ return (r, c) => (l(), h("div", Fn, [
2535
+ u("div", En, [
2522
2536
  (l(!0), h(q, null, H(e.items, (i) => (l(), P(ge, {
2523
2537
  key: i.id,
2524
2538
  link: "",
@@ -2534,7 +2548,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2534
2548
  R(r.$slots, "default", { activeItem: t(o) })
2535
2549
  ]));
2536
2550
  }
2537
- }), Fn = { 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({
2538
2552
  __name: "InfiniteLoading",
2539
2553
  props: {
2540
2554
  settings: null,
@@ -2552,28 +2566,28 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2552
2566
  ref_key: "wrapper",
2553
2567
  ref: s
2554
2568
  }, [
2555
- 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 || {}, {
2556
2570
  onInfinite: a[0] || (a[0] = (r) => o.$emit("infinite", r))
2557
2571
  }), {
2558
2572
  spinner: B(() => [
2559
- I(De, {
2573
+ I(Re, {
2560
2574
  loading: !0,
2561
2575
  class: "my-2"
2562
2576
  })
2563
2577
  ]),
2564
2578
  complete: B(() => [
2565
- u("div", Fn, [
2566
- u("div", En, [
2567
- I(t(tt), { class: "w-5 h-5 text-success" }),
2568
- Wn
2579
+ u("div", Wn, [
2580
+ u("div", Un, [
2581
+ I(t(st), { class: "w-5 h-5 text-success" }),
2582
+ qn
2569
2583
  ])
2570
2584
  ])
2571
2585
  ]),
2572
2586
  error: B(({ retry: r }) => [
2573
- u("div", Un, [
2574
- u("div", qn, [
2575
- I(t(st), { class: "w-5 h-5 text-danger" }),
2576
- Hn
2587
+ u("div", Hn, [
2588
+ u("div", Gn, [
2589
+ I(t(nt), { class: "w-5 h-5 text-danger" }),
2590
+ Kn
2577
2591
  ]),
2578
2592
  e.allowRetry ? (l(), P(ge, {
2579
2593
  key: 0,
@@ -2590,10 +2604,10 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2590
2604
  }, 16)) : _("", !0)
2591
2605
  ], 512));
2592
2606
  }
2593
- }), Gn = { class: "relative group" }, Kn = {
2607
+ }), Xn = { class: "relative group" }, Nn = {
2594
2608
  key: 0,
2595
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"
2596
- }, $l = /* @__PURE__ */ O({
2610
+ }, Sl = /* @__PURE__ */ O({
2597
2611
  __name: "Panel",
2598
2612
  props: {
2599
2613
  /**
@@ -2628,16 +2642,16 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2628
2642
  },
2629
2643
  emits: ["submit"],
2630
2644
  setup(e, { emit: s }) {
2631
- const n = e, o = c(
2645
+ const n = e, o = d(
2632
2646
  () => n.customPadding ? "" : "px-4 py-4 sm:px-6"
2633
- ), a = c(
2647
+ ), a = d(
2634
2648
  () => n.customPadding ? "" : "px-4 py-4 sm:p-6"
2635
- ), r = c(() => {
2636
- const d = ["rounded-lg"];
2637
- 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(" ");
2638
2652
  });
2639
- return (d, i) => (l(), h("div", Gn, [
2640
- e.fancyGlow ? (l(), h("div", Kn)) : _("", !0),
2653
+ return (c, i) => (l(), h("div", Xn, [
2654
+ e.fancyGlow ? (l(), h("div", Nn)) : _("", !0),
2641
2655
  (l(), P(U(e.form ? "form" : "div"), {
2642
2656
  class: v([
2643
2657
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
@@ -2646,22 +2660,22 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2646
2660
  onSubmit: i[0] || (i[0] = (y) => s("submit", y))
2647
2661
  }, {
2648
2662
  default: B(() => [
2649
- d.$slots.header ? (l(), h("div", {
2663
+ c.$slots.header ? (l(), h("div", {
2650
2664
  key: 0,
2651
2665
  class: v(t(o))
2652
2666
  }, [
2653
- R(d.$slots, "header")
2667
+ R(c.$slots, "header")
2654
2668
  ], 2)) : _("", !0),
2655
2669
  u("div", {
2656
2670
  class: v(["grow", t(a)])
2657
2671
  }, [
2658
- R(d.$slots, "default")
2672
+ R(c.$slots, "default")
2659
2673
  ], 2),
2660
- d.$slots.footer ? (l(), h("div", {
2674
+ c.$slots.footer ? (l(), h("div", {
2661
2675
  key: 1,
2662
2676
  class: v(t(o))
2663
2677
  }, [
2664
- R(d.$slots, "footer")
2678
+ R(c.$slots, "footer")
2665
2679
  ], 2)) : _("", !0)
2666
2680
  ]),
2667
2681
  _: 3
@@ -2670,40 +2684,40 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2670
2684
  }
2671
2685
  });
2672
2686
  export {
2673
- Gt as CommonBadge,
2674
- De as CommonLoadingBar,
2675
- il as CommonStepsBullet,
2676
- rl as CommonStepsNumber,
2677
- jt as CommonTextLink,
2687
+ Kt as CommonBadge,
2688
+ Re as CommonLoadingBar,
2689
+ cl as CommonStepsBullet,
2690
+ ul as CommonStepsNumber,
2691
+ Ot as CommonTextLink,
2678
2692
  ge as FormButton,
2679
- ul as FormCardButton,
2680
- dl as FormCheckbox,
2681
- xn as FormSelectBase,
2682
- hl as FormSelectSourceApps,
2683
- cl as FormTextArea,
2684
- fl as FormTextInput,
2685
- 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,
2686
2700
  K as GridListToggleValue,
2687
2701
  ue as HorizontalDirection,
2688
- wl as InfiniteLoading,
2689
- yl as LayoutDialog,
2690
- vl as LayoutDisclosure,
2691
- bl as LayoutGridListToggle,
2692
- kl as LayoutMenu,
2693
- $l as LayoutPanel,
2694
- 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,
2695
2709
  Q as ModifierKeys,
2696
- kn as SourceAppBadge,
2710
+ wn as SourceAppBadge,
2697
2711
  J as TailwindBreakpoints,
2698
- Mn as ThrottleOrDebounce,
2712
+ Dn as ThrottleOrDebounce,
2699
2713
  N as ToastNotificationType,
2700
- pl as ValidationHelpers,
2714
+ ml as ValidationHelpers,
2701
2715
  ie as clientOs,
2702
- ml as getKeyboardShortcutTitle,
2703
- gl as onKeyboardShortcut,
2704
- en as useFormSelectChildInternals,
2705
- xl as useOnBeforeWindowUnload,
2706
- Dn as useResponsiveHorizontalDirectionCalculation,
2707
- An as useWindowResizeHandler,
2708
- 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
2709
2723
  };