@speckle/ui-components 2.18.9 → 2.18.11

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
1
  var zt = Object.defineProperty;
2
2
  var Vt = (e, t, i) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
3
  var ne = (e, t, i) => (Vt(e, typeof t != "symbol" ? t + "" : t, i), i);
4
- import { defineComponent as P, resolveDynamicComponent as Q, computed as c, openBlock as a, createBlock as O, normalizeClass as b, withCtx as A, createCommentVNode as I, renderSlot as R, createTextVNode as D, createElementBlock as f, createElementVNode as p, createVNode as V, Transition as Ue, unref as l, toDisplayString as z, toRefs as le, Fragment as H, renderList as G, ref as L, onMounted as ae, onBeforeUnmount as qe, normalizeStyle as Y, mergeProps as ie, withDirectives as ue, isRef as Se, vModelText as We, useSlots as He, vModelDynamic as Lt, pushScopeId as Ot, popScopeId as At, watch as ce, Teleport as Mt, withModifiers as pe, useModel as it, toHandlers as st, nextTick as Pt, resolveDirective as jt, getCurrentInstance as _t, inject as Tt, withKeys as ve, mergeModels as nt, defineAsyncComponent as Ft } from "vue";
5
- import { isObjectLike as Te, clamp as lt, isArray as N, isString as ye, isUndefined as be, debounce as Ke, throttle as ut, noop as ct, uniq as Rt, intersection as Dt, difference as Et } from "lodash";
6
- import { ArrowPathIcon as dt, ExclamationCircleIcon as Ut, ChevronUpIcon as ft, ChevronDownIcon as qt, XMarkIcon as Ge, MagnifyingGlassIcon as Wt, CheckIcon as pt, Squares2X2Icon as Ht, Bars3Icon as Kt, UserCircleIcon as Gt } from "@heroicons/vue/24/solid";
4
+ import { defineComponent as P, resolveDynamicComponent as Q, computed as c, openBlock as a, createBlock as O, normalizeClass as b, withCtx as M, createCommentVNode as I, renderSlot as R, createTextVNode as D, createElementBlock as f, createElementVNode as p, createVNode as V, Transition as We, unref as l, toDisplayString as z, toRefs as le, Fragment as H, renderList as G, ref as L, onMounted as ae, onBeforeUnmount as qe, normalizeStyle as Y, mergeProps as ie, withDirectives as ue, isRef as Se, vModelText as He, useSlots as Ke, vModelDynamic as Lt, pushScopeId as Ot, popScopeId as Mt, watch as ce, Teleport as At, withModifiers as pe, mergeModels as _e, useModel as it, toHandlers as nt, nextTick as Pt, resolveDirective as jt, getCurrentInstance as Tt, inject as _t, withKeys as ve, defineAsyncComponent as Ft } from "vue";
5
+ import { isObjectLike as Fe, clamp as lt, isArray as N, isString as ye, isUndefined as be, debounce as Ge, throttle as ut, noop as ct, uniq as Rt, intersection as Dt, difference as Et } from "lodash";
6
+ import { ArrowPathIcon as dt, ExclamationCircleIcon as Ut, ChevronUpIcon as ft, ChevronDownIcon as Wt, XMarkIcon as Xe, MagnifyingGlassIcon as qt, CheckIcon as pt, Squares2X2Icon as Ht, Bars3Icon as Kt, UserCircleIcon as Gt } from "@heroicons/vue/24/solid";
7
7
  import { CheckCircleIcon as Xt, XCircleIcon as Zt, ExclamationCircleIcon as Nt, InformationCircleIcon as Qt, ClipboardDocumentCheckIcon as Jt, ClipboardDocumentIcon as Yt, XMarkIcon as es, ChevronDownIcon as ts, ExclamationTriangleIcon as ss } from "@heroicons/vue/24/outline";
8
8
  import { XMarkIcon as xe, CheckIcon as mt, CheckCircleIcon as ht, ExclamationCircleIcon as ze, EnvelopeIcon as ns, KeyIcon as ls, XCircleIcon as as, InformationCircleIcon as os } from "@heroicons/vue/20/solid";
9
- import { wait as rs, isNullOrUndefined as is, SourceApps as us, getClientOperatingSystem as cs, OperatingSystem as Fe, md5 as ds } from "@speckle/shared";
9
+ import { wait as rs, isNullOrUndefined as is, SourceApps as us, getClientOperatingSystem as cs, OperatingSystem as Re, md5 as ds } from "@speckle/shared";
10
10
  import { useField as Be } from "vee-validate";
11
11
  import { nanoid as Ve } from "nanoid";
12
12
  import { useResizeObserver as fs, useMutationObserver as ps, useMounted as ms, useElementBounding as hs, useIntersectionObserver as vs, useClipboard as gs, onKeyDown as bs, isClient as Le, computedAsync as ys, useFocus as xs, useDropZone as ks } from "@vueuse/core";
13
- import { Listbox as ws, ListboxLabel as Cs, ListboxButton as $s, ListboxOptions as Is, ListboxOption as Bs, Switch as Ss, TransitionRoot as vt, Dialog as zs, TransitionChild as at, DialogPanel as Vs, Disclosure as Ls, DisclosureButton as Os, DisclosurePanel as As, Menu as Ms, MenuButton as Ps, MenuItems as js, MenuItem as _s, Combobox as Ts, ComboboxOptions as Fs, ComboboxOption as Rs } from "@headlessui/vue";
13
+ import { Listbox as ws, ListboxLabel as Cs, ListboxButton as $s, ListboxOptions as Is, ListboxOption as Bs, Switch as Ss, TransitionRoot as vt, Dialog as zs, TransitionChild as at, DialogPanel as Vs, Disclosure as Ls, DisclosureButton as Os, DisclosurePanel as Ms, Menu as As, MenuButton as Ps, MenuItems as js, MenuItem as Ts, Combobox as _s, ComboboxOptions as Fs, ComboboxOption as Rs } from "@headlessui/vue";
14
14
  import { directive as gt } from "vue-tippy";
15
15
  import Ds from "v3-infinite-loading";
16
16
  const Es = /* @__PURE__ */ P({
@@ -148,7 +148,7 @@ const Es = /* @__PURE__ */ P({
148
148
  },
149
149
  emits: ["click"],
150
150
  setup(e, { emit: t }) {
151
- const i = t, s = e, o = Q("NuxtLink"), n = Q("RouterLink"), h = c(() => s.linkComponent ? s.linkComponent : s.external ? "a" : Te(o) ? o : Te(n) ? n : "a"), m = c(() => {
151
+ const i = t, s = e, o = Q("NuxtLink"), n = Q("RouterLink"), h = c(() => s.linkComponent ? s.linkComponent : s.external ? "a" : Fe(o) ? o : Fe(n) ? n : "a"), m = c(() => {
152
152
  if (!s.to)
153
153
  return s.submit ? "submit" : "button";
154
154
  }), u = c(() => s.disabled || s.loading), r = c(() => s.loading ? dt : s.iconLeft), v = c(() => {
@@ -341,7 +341,7 @@ const Es = /* @__PURE__ */ P({
341
341
  s.link ? "" : B.value,
342
342
  $.value
343
343
  ].join(" ");
344
- }), T = c(() => {
344
+ }), _ = c(() => {
345
345
  const w = [""];
346
346
  switch (s.loading && w.push("animate-spin"), s.size) {
347
347
  case "xs":
@@ -362,7 +362,7 @@ const Es = /* @__PURE__ */ P({
362
362
  break;
363
363
  }
364
364
  return w.join(" ");
365
- }), M = (w) => {
365
+ }), A = (w) => {
366
366
  if (u.value) {
367
367
  w.preventDefault(), w.stopPropagation(), w.stopImmediatePropagation();
368
368
  return;
@@ -377,19 +377,19 @@ const Es = /* @__PURE__ */ P({
377
377
  class: b(S.value),
378
378
  disabled: u.value,
379
379
  role: "button",
380
- onClick: M
380
+ onClick: A
381
381
  }, {
382
- default: A(() => [
382
+ default: M(() => [
383
383
  r.value ? (a(), O(Q(r.value), {
384
384
  key: 0,
385
- class: b(`${T.value} ${e.hideText ? "" : "mr-2"}`)
385
+ class: b(`${_.value} ${e.hideText ? "" : "mr-2"}`)
386
386
  }, null, 8, ["class"])) : I("", !0),
387
387
  e.hideText ? I("", !0) : R(w.$slots, "default", { key: 1 }, () => [
388
388
  D("Button")
389
389
  ], !0),
390
390
  e.iconRight || !e.loading ? (a(), O(Q(e.iconRight), {
391
391
  key: 2,
392
- class: b(`${T.value} ${e.hideText ? "" : "ml-2"}`)
392
+ class: b(`${_.value} ${e.hideText ? "" : "ml-2"}`)
393
393
  }, null, 8, ["class"])) : I("", !0)
394
394
  ]),
395
395
  _: 3
@@ -476,7 +476,7 @@ const Oe = (e, t) => {
476
476
  role: "link",
477
477
  onClickCapture: o
478
478
  }, {
479
- default: A(() => [
479
+ default: M(() => [
480
480
  R(n.$slots, "default", {}, () => [
481
481
  D("Link")
482
482
  ])
@@ -486,10 +486,10 @@ const Oe = (e, t) => {
486
486
  }
487
487
  });
488
488
  var Ce = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(Ce || {});
489
- const qs = {
489
+ const Ws = {
490
490
  "aria-live": "assertive",
491
491
  class: "pointer-events-none fixed inset-0 flex items-end px-4 py-6 mt-10 sm:items-start sm:p-6 z-50"
492
- }, Ws = { class: "flex w-full flex-col items-center gap-4 sm:items-end" }, Hs = { class: "flex-shrink-0" }, Ks = { class: "w-full min-w-[10rem]" }, Gs = {
492
+ }, qs = { class: "flex w-full flex-col items-center gap-4 sm:items-end" }, Hs = { class: "flex-shrink-0" }, Ks = { class: "w-full min-w-[10rem]" }, Gs = {
493
493
  key: 1,
494
494
  class: "label label--light text-foreground-2 text-sm"
495
495
  }, Xs = { key: 2 }, Zs = /* @__PURE__ */ p("span", { class: "sr-only" }, "Close", -1), So = /* @__PURE__ */ P({
@@ -510,9 +510,9 @@ const qs = {
510
510
  var u, r, v;
511
511
  (v = (r = (u = s.notification) == null ? void 0 : u.cta) == null ? void 0 : r.onClick) == null || v.call(r, m), n();
512
512
  };
513
- return (m, u) => (a(), f("div", qs, [
514
- p("div", Ws, [
515
- V(Ue, {
513
+ return (m, u) => (a(), f("div", Ws, [
514
+ p("div", qs, [
515
+ V(We, {
516
516
  "enter-active-class": "transform ease-out duration-300 transition",
517
517
  "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
518
518
  "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
@@ -520,7 +520,7 @@ const qs = {
520
520
  "leave-from-class": "opacity-100",
521
521
  "leave-to-class": "opacity-0"
522
522
  }, {
523
- default: A(() => [
523
+ default: M(() => [
524
524
  e.notification ? (a(), f("div", {
525
525
  key: 0,
526
526
  class: b(["pointer-events-auto w-full max-w-[20rem] overflow-hidden rounded-lg bg-foundation text-foreground shadow-lg ring-1 ring-primary-muted ring-opacity-5", o.value ? "p-2" : "p-3"])
@@ -561,7 +561,7 @@ const qs = {
561
561
  primary: "",
562
562
  onClick: h
563
563
  }, {
564
- default: A(() => [
564
+ default: M(() => [
565
565
  D(z(e.notification.cta.title), 1)
566
566
  ]),
567
567
  _: 1
@@ -603,7 +603,7 @@ const Qs = /* @__PURE__ */ p("circle", {
603
603
  r: "3"
604
604
  }, null, -1), Js = [
605
605
  Qs
606
- ], Xe = /* @__PURE__ */ P({
606
+ ], Ze = /* @__PURE__ */ P({
607
607
  __name: "Badge",
608
608
  props: {
609
609
  size: null,
@@ -692,14 +692,14 @@ function yt(e) {
692
692
  get: () => lt((t == null ? void 0 : t.value) || 0, -1, i.value.length),
693
693
  set: (k) => m("update:modelValue", lt(k, 0, i.value.length))
694
694
  }), v = (k) => `${k + 1}`, g = (k) => k === r.value, y = (k) => k < r.value, x = (k, $) => {
695
- var T;
695
+ var _;
696
696
  if (n != null && n.value) {
697
697
  $ == null || $.preventDefault(), $ == null || $.stopPropagation(), $ == null || $.stopImmediatePropagation();
698
698
  return;
699
699
  }
700
700
  r.value = k;
701
701
  const S = i.value[r.value];
702
- (T = S == null ? void 0 : S.onClick) == null || T.call(S);
702
+ (_ = S == null ? void 0 : S.onClick) == null || _.call(S);
703
703
  }, d = c(() => {
704
704
  const k = ["flex"];
705
705
  let $, S;
@@ -944,18 +944,18 @@ const en = ["aria-label"], tn = ["href", "onClick"], sn = { class: "flex space-x
944
944
  fill: "rgba(255,255,255,0.8)",
945
945
  "stroke-linecap": "round",
946
946
  "stroke-linejoin": "round"
947
- }, An = /* @__PURE__ */ p("path", {
947
+ }, Mn = /* @__PURE__ */ p("path", {
948
948
  stroke: "none",
949
949
  d: "M0 0h24v24H0z",
950
950
  fill: "none"
951
- }, null, -1), Mn = /* @__PURE__ */ p("path", { d: "M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563z" }, null, -1), Pn = [
952
- An,
953
- Mn
951
+ }, null, -1), An = /* @__PURE__ */ p("path", { d: "M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563z" }, null, -1), Pn = [
952
+ Mn,
953
+ An
954
954
  ];
955
955
  function jn(e, t) {
956
956
  return a(), f("svg", On, Pn);
957
957
  }
958
- const _n = /* @__PURE__ */ Oe(Ln, [["render", jn]]), Tn = {}, Fn = {
958
+ const Tn = /* @__PURE__ */ Oe(Ln, [["render", jn]]), _n = {}, Fn = {
959
959
  viewBox: "0 0 18 17",
960
960
  fill: "none",
961
961
  xmlns: "http://www.w3.org/2000/svg"
@@ -971,7 +971,7 @@ const _n = /* @__PURE__ */ Oe(Ln, [["render", jn]]), Tn = {}, Fn = {
971
971
  function En(e, t) {
972
972
  return a(), f("svg", Fn, Dn);
973
973
  }
974
- const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative aspect-square w-full h-full max-w-[250px] mx-auto mb-8 border-t border-r border-outline-3 select-none" }, Wn = { class: "w-full h-full overflow-hidden" }, Lo = /* @__PURE__ */ P({
974
+ const Un = /* @__PURE__ */ Oe(_n, [["render", En]]), Wn = { class: "relative aspect-square w-full h-full max-w-[250px] mx-auto mb-8 border-t border-r border-outline-3 select-none" }, qn = { class: "w-full h-full overflow-hidden" }, Lo = /* @__PURE__ */ P({
975
975
  __name: "Instructional",
976
976
  props: {
977
977
  actions: Array,
@@ -1015,7 +1015,7 @@ const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative asp
1015
1015
  })();
1016
1016
  }), qe(() => {
1017
1017
  i.value = !1;
1018
- }), (g, y) => (a(), f("div", qn, [
1018
+ }), (g, y) => (a(), f("div", Wn, [
1019
1019
  p("div", {
1020
1020
  class: "absolute z-50 text-foreground dark:text-foundation",
1021
1021
  style: Y({
@@ -1028,9 +1028,9 @@ const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative asp
1028
1028
  V(Un, {
1029
1029
  class: b(["absolute -top-5 -left-4 h-12 w-12 -rotate-12 text-foreground", [{ hidden: !o.value }]])
1030
1030
  }, null, 8, ["class"]),
1031
- V(_n, { class: "absolute inset-0 h-11 w-11" })
1031
+ V(Tn, { class: "absolute inset-0 h-11 w-11" })
1032
1032
  ], 4),
1033
- p("div", Wn, [
1033
+ p("div", qn, [
1034
1034
  R(g.$slots, "background"),
1035
1035
  (a(!0), f(H, null, G(m.value, (x) => (a(), f(H, {
1036
1036
  key: x.name
@@ -1079,7 +1079,7 @@ const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative asp
1079
1079
  }, Nn = ["for"], Qn = {
1080
1080
  key: 0,
1081
1081
  class: "text-danger ml-1"
1082
- }, Jn = ["id"], Ao = /* @__PURE__ */ P({
1082
+ }, Jn = ["id"], Mo = /* @__PURE__ */ P({
1083
1083
  inheritAttrs: !1,
1084
1084
  __name: "Checkbox",
1085
1085
  props: {
@@ -1185,8 +1185,8 @@ const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative asp
1185
1185
  t.disabled || h(k);
1186
1186
  };
1187
1187
  return ae(() => {
1188
- const k = t.modelValue, $ = m.value, S = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
1189
- S !== T && h(k);
1188
+ const k = t.modelValue, $ = m.value, S = Array.isArray(k) ? k.includes(t.value) : k === t.value, _ = Array.isArray($) ? $.includes(t.value) : $ === t.value;
1189
+ S !== _ && h(k);
1190
1190
  }), (k, $) => (a(), f("div", Kn, [
1191
1191
  p("div", Gn, [
1192
1192
  p("input", ie({
@@ -1222,7 +1222,7 @@ const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative asp
1222
1222
  }, nl = { class: "flex flex-col" }, ll = ["id"], al = {
1223
1223
  key: 1,
1224
1224
  class: "text-danger ml-1"
1225
- }, ol = ["id"], Mo = /* @__PURE__ */ P({
1225
+ }, ol = ["id"], Ao = /* @__PURE__ */ P({
1226
1226
  inheritAttrs: !1,
1227
1227
  __name: "Radio",
1228
1228
  props: {
@@ -1335,8 +1335,8 @@ const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative asp
1335
1335
  t.disabled || h(k);
1336
1336
  };
1337
1337
  return ae(() => {
1338
- const k = t.modelValue, $ = m.value, S = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
1339
- S !== T && h(k);
1338
+ const k = t.modelValue, $ = m.value, S = Array.isArray(k) ? k.includes(t.value) : k === t.value, _ = Array.isArray($) ? $.includes(t.value) : $ === t.value;
1339
+ S !== _ && h(k);
1340
1340
  }), (k, $) => (a(), f("div", {
1341
1341
  class: b(["relative flex gap-2 mb-2 last:mb-0", e.description && e.inlineDescription ? "items-start" : "items-center"])
1342
1342
  }, [
@@ -1381,44 +1381,44 @@ const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative asp
1381
1381
  ], 2));
1382
1382
  }
1383
1383
  });
1384
- function Ze(e) {
1384
+ function Ne(e) {
1385
1385
  const { props: t, inputEl: i, emit: s, options: o } = e, { value: n, errorMessage: h } = Be(t.name, t.rules, {
1386
1386
  validateOnMount: l(t.validateOnMount),
1387
1387
  validateOnValueUpdate: l(t.validateOnValueUpdate),
1388
1388
  initialValue: l(t.modelValue) || void 0
1389
1389
  }), m = c(() => {
1390
- const M = ["block label text-foreground-2 mb-2"];
1391
- return l(t.showLabel) || M.push("sr-only"), M.join(" ");
1390
+ const A = ["block label text-foreground-2 mb-2"];
1391
+ return l(t.showLabel) || A.push("sr-only"), A.join(" ");
1392
1392
  }), u = c(() => [
1393
1393
  "focus:outline-none disabled:cursor-not-allowed disabled:bg-foundation-disabled",
1394
1394
  "disabled:text-disabled-muted placeholder:text-foreground-2",
1395
1395
  "rounded"
1396
1396
  ].join(" ")), r = c(() => {
1397
- const M = [
1397
+ const A = [
1398
1398
  "block w-full text-foreground transition-all",
1399
1399
  u.value
1400
1400
  ];
1401
- h.value ? M.push(
1401
+ h.value ? A.push(
1402
1402
  "focus:border-danger focus:ring-danger border-2 border-danger text-danger-darker"
1403
- ) : M.push("border-0 focus:ring-2 focus:ring-outline-2");
1403
+ ) : A.push("border-0 focus:ring-2 focus:ring-outline-2");
1404
1404
  const w = l(t.color);
1405
- return w === "foundation" ? M.push("bg-foundation shadow-sm hover:shadow") : w === "transparent" ? M.push("bg-transparent") : M.push("bg-foundation-page"), M.join(" ");
1405
+ return w === "foundation" ? A.push("bg-foundation shadow-sm hover:shadow") : w === "transparent" ? A.push("bg-transparent") : A.push("bg-foundation-page"), A.join(" ");
1406
1406
  }), v = L(Ve()), g = c(() => l(t.label) || l(t.name)), y = c(() => {
1407
- const M = h.value;
1408
- return !M || !l(t.useLabelInErrors) ? M : M.replace("Value", g.value);
1407
+ const A = h.value;
1408
+ return !A || !l(t.useLabelInErrors) ? A : A.replace("Value", g.value);
1409
1409
  }), x = c(
1410
1410
  () => y.value && l(t.hideErrorMessage)
1411
1411
  ), d = c(() => y.value || l(t.help)), B = c(() => !!d.value), k = c(
1412
1412
  () => B.value ? `${l(t.name)}-${v.value}` : void 0
1413
1413
  ), $ = c(() => {
1414
- const M = ["mt-2 text-xs sm:text-sm"];
1415
- return M.push(h.value ? "text-danger" : "text-foreground-2"), M.join(" ");
1414
+ const A = ["mt-2 text-xs sm:text-sm"];
1415
+ return A.push(h.value ? "text-danger" : "text-foreground-2"), A.join(" ");
1416
1416
  }), S = () => {
1417
- var M;
1418
- (M = i.value) == null || M.focus();
1419
- }, T = () => {
1420
- var M;
1421
- n.value = N(n.value) ? [] : "", (M = o == null ? void 0 : o.customClear) == null || M.call(o), s("change", { value: n.value }), s("clear");
1417
+ var A;
1418
+ (A = i.value) == null || A.focus();
1419
+ }, _ = () => {
1420
+ var A;
1421
+ n.value = N(n.value) ? [] : "", (A = o == null ? void 0 : o.customClear) == null || A.call(o), s("change", { value: n.value }), s("clear");
1422
1422
  };
1423
1423
  return ae(() => {
1424
1424
  l(t.autoFocus) && S();
@@ -1432,7 +1432,7 @@ function Ze(e) {
1432
1432
  helpTip: d,
1433
1433
  hideHelpTip: x,
1434
1434
  errorMessage: y,
1435
- clear: T,
1435
+ clear: _,
1436
1436
  focus: S,
1437
1437
  labelClasses: m
1438
1438
  };
@@ -1471,7 +1471,7 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1471
1471
  labelClasses: x,
1472
1472
  clear: d,
1473
1473
  focus: B
1474
- } = Ze({
1474
+ } = Ne({
1475
1475
  props: le(o),
1476
1476
  emit: s,
1477
1477
  inputEl: n
@@ -1493,7 +1493,7 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1493
1493
  id: e.name,
1494
1494
  ref_key: "inputElement",
1495
1495
  ref: n,
1496
- "onUpdate:modelValue": S[0] || (S[0] = (T) => Se(u) ? u.value = T : null),
1496
+ "onUpdate:modelValue": S[0] || (S[0] = (_) => Se(u) ? u.value = _ : null),
1497
1497
  name: e.name,
1498
1498
  class: [
1499
1499
  l(h),
@@ -1506,19 +1506,19 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1506
1506
  "aria-invalid": l(y) ? "true" : "false",
1507
1507
  "aria-describedby": l(r)
1508
1508
  }, $.$attrs, {
1509
- onChange: S[1] || (S[1] = (T) => $.$emit("change", { event: T, value: l(u) })),
1510
- onInput: S[2] || (S[2] = (T) => $.$emit("input", { event: T, value: l(u) }))
1509
+ onChange: S[1] || (S[1] = (_) => $.$emit("change", { event: _, value: l(u) })),
1510
+ onInput: S[2] || (S[2] = (_) => $.$emit("input", { event: _, value: l(u) }))
1511
1511
  }), null, 16, ul), [
1512
- [We, l(u)]
1512
+ [He, l(u)]
1513
1513
  ]),
1514
1514
  e.showClear ? (a(), f("a", {
1515
1515
  key: 0,
1516
1516
  title: "Clear input",
1517
1517
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
1518
1518
  onClick: S[3] || (S[3] = //@ts-ignore
1519
- (...T) => l(d) && l(d)(...T)),
1519
+ (..._) => l(d) && l(d)(..._)),
1520
1520
  onKeydown: S[4] || (S[4] = //@ts-ignore
1521
- (...T) => l(d) && l(d)(...T))
1521
+ (..._) => l(d) && l(d)(..._))
1522
1522
  }, [
1523
1523
  cl,
1524
1524
  V(l(xe), {
@@ -1690,7 +1690,7 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1690
1690
  },
1691
1691
  emits: ["update:modelValue", "change", "input", "clear", "focus", "blur"],
1692
1692
  setup(e, { expose: t, emit: i }) {
1693
- const s = e, o = i, n = He(), h = L(null), {
1693
+ const s = e, o = i, n = Ke(), h = L(null), {
1694
1694
  coreClasses: m,
1695
1695
  title: u,
1696
1696
  value: r,
@@ -1702,18 +1702,18 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1702
1702
  clear: B,
1703
1703
  focus: k,
1704
1704
  labelClasses: $
1705
- } = Ze({
1705
+ } = Ne({
1706
1706
  props: le(s),
1707
1707
  emit: o,
1708
1708
  inputEl: h
1709
1709
  }), S = c(() => {
1710
1710
  const E = ["h-5 w-5"];
1711
1711
  return d.value ? E.push("text-danger") : E.push("text-foreground-2"), E.join(" ");
1712
- }), T = c(
1712
+ }), _ = c(
1713
1713
  () => ["email", "password"].includes(s.type) || s.customIcon
1714
- ), M = c(() => {
1714
+ ), A = c(() => {
1715
1715
  const E = [];
1716
- return T.value ? E.push("pl-8") : E.push("pl-2"), n["input-right"] || (d.value || s.showClear) && (d.value && s.showClear ? E.push("pr-12") : E.push("pr-8")), E.join(" ");
1716
+ return _.value ? E.push("pl-8") : E.push("pl-2"), n["input-right"] || (d.value || s.showClear) && (d.value && s.showClear ? E.push("pr-12") : E.push("pr-8")), E.join(" ");
1717
1717
  }), w = c(() => {
1718
1718
  switch (s.size) {
1719
1719
  case "sm":
@@ -1727,7 +1727,7 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1727
1727
  return "h-8 text-sm";
1728
1728
  }
1729
1729
  });
1730
- return t({ focus: k }), (E, q) => (a(), f("div", {
1730
+ return t({ focus: k }), (E, W) => (a(), f("div", {
1731
1731
  class: b([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1732
1732
  }, [
1733
1733
  p("label", {
@@ -1737,7 +1737,7 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1737
1737
  p("span", null, z(l(u)), 1)
1738
1738
  ], 10, fl),
1739
1739
  p("div", pl, [
1740
- T.value ? (a(), f("div", ml, [
1740
+ _.value ? (a(), f("div", ml, [
1741
1741
  e.customIcon ? (a(), O(Q(e.customIcon), {
1742
1742
  key: 0,
1743
1743
  class: b(S.value),
@@ -1756,20 +1756,20 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1756
1756
  id: e.name,
1757
1757
  ref_key: "inputElement",
1758
1758
  ref: h,
1759
- "onUpdate:modelValue": q[0] || (q[0] = (U) => Se(r) ? r.value = U : null),
1759
+ "onUpdate:modelValue": W[0] || (W[0] = (U) => Se(r) ? r.value = U : null),
1760
1760
  type: e.type,
1761
1761
  name: e.name,
1762
- class: [l(m), M.value, w.value, e.inputClasses || ""],
1762
+ class: [l(m), A.value, w.value, e.inputClasses || ""],
1763
1763
  placeholder: e.placeholder,
1764
1764
  disabled: e.disabled,
1765
1765
  "aria-invalid": l(d) ? "true" : "false",
1766
1766
  "aria-describedby": l(v),
1767
1767
  role: "textbox"
1768
1768
  }, E.$attrs, {
1769
- onChange: q[1] || (q[1] = (U) => E.$emit("change", { event: U, value: l(r) })),
1770
- onInput: q[2] || (q[2] = (U) => E.$emit("input", { event: U, value: l(r) })),
1771
- onFocus: q[3] || (q[3] = (U) => E.$emit("focus")),
1772
- onBlur: q[4] || (q[4] = (U) => E.$emit("blur"))
1769
+ onChange: W[1] || (W[1] = (U) => E.$emit("change", { event: U, value: l(r) })),
1770
+ onInput: W[2] || (W[2] = (U) => E.$emit("input", { event: U, value: l(r) })),
1771
+ onFocus: W[3] || (W[3] = (U) => E.$emit("focus")),
1772
+ onBlur: W[4] || (W[4] = (U) => E.$emit("blur"))
1773
1773
  }), null, 16, hl), [
1774
1774
  [Lt, l(r)]
1775
1775
  ]),
@@ -1778,9 +1778,9 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1778
1778
  key: 0,
1779
1779
  title: "Clear input",
1780
1780
  class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
1781
- onClick: q[5] || (q[5] = //@ts-ignore
1781
+ onClick: W[5] || (W[5] = //@ts-ignore
1782
1782
  (...U) => l(B) && l(B)(...U)),
1783
- onKeydown: q[6] || (q[6] = //@ts-ignore
1783
+ onKeydown: W[6] || (W[6] = //@ts-ignore
1784
1784
  (...U) => l(B) && l(B)(...U))
1785
1785
  }, [
1786
1786
  vl,
@@ -1814,7 +1814,7 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1814
1814
  }, z(l(y)), 11, gl)) : I("", !0)
1815
1815
  ], 2));
1816
1816
  }
1817
- }), xt = /^https?:\/\//, Ne = /^[\w-_.+]+@[\w-_.+]+$/, yl = (e) => (e || "").match(Ne) ? !0 : "Value should be a valid e-mail address", xl = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Ne)) || "Value should be one or multiple comma-delimited e-mail addresses", kl = (e) => (ye(e) && (e = e.trim()), e ? !0 : "Value is required"), wl = (e, t) => (i, s) => i === s.form[e] ? !0 : `Value must be the same as in field '${t || e}'`, Cl = (e) => (t) => {
1817
+ }), xt = /^https?:\/\//, Qe = /^[\w-_.+]+@[\w-_.+]+$/, yl = (e) => (e || "").match(Qe) ? !0 : "Value should be a valid e-mail address", xl = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Qe)) || "Value should be one or multiple comma-delimited e-mail addresses", kl = (e) => (ye(e) && (e = e.trim()), e ? !0 : "Value is required"), wl = (e, t) => (i, s) => i === s.form[e] ? !0 : `Value must be the same as in field '${t || e}'`, Cl = (e) => (t) => {
1818
1818
  const { minLength: i, maxLength: s } = e;
1819
1819
  return t = is(t) ? "" : t, ye(t) ? !be(i) && t.length < i ? `Value needs to be at least ${i} characters long` : !be(s) && t.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
1820
1820
  }, $l = (e) => (t) => {
@@ -1822,7 +1822,7 @@ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder
1822
1822
  return ye(t) ? i ? ye(i) ? t.includes(i) ? !0 : s : i.test(t) ? !0 : s : !0 : "Value should be a text string";
1823
1823
  }, Il = (e) => xt.test(e) ? !0 : "Value is not a valid URL", Bl = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1824
1824
  __proto__: null,
1825
- VALID_EMAIL: Ne,
1825
+ VALID_EMAIL: Qe,
1826
1826
  VALID_HTTP_URL: xt,
1827
1827
  isEmail: yl,
1828
1828
  isItemSelected: Bl,
@@ -1900,7 +1900,7 @@ function wt(e) {
1900
1900
  firstItem: (r) => h(r) ? r[0] : r
1901
1901
  };
1902
1902
  }
1903
- const Sl = (e) => (Ot("data-v-89e77cae"), e = e(), At(), e), zl = /* @__PURE__ */ Sl(() => /* @__PURE__ */ p("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), Vl = [
1903
+ const Sl = (e) => (Ot("data-v-89e77cae"), e = e(), Mt(), e), zl = /* @__PURE__ */ Sl(() => /* @__PURE__ */ p("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), Vl = [
1904
1904
  zl
1905
1905
  ], Ll = /* @__PURE__ */ P({
1906
1906
  __name: "Bar",
@@ -1916,16 +1916,16 @@ const Sl = (e) => (Ot("data-v-89e77cae"), e = e(), At(), e), zl = /* @__PURE__ *
1916
1916
  }, Vl, 2));
1917
1917
  }
1918
1918
  });
1919
- const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { class: "flex items-center justify-between w-full" }, Al = { class: "block truncate grow text-left text-xs sm:text-sm" }, Ml = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, Pl = {
1919
+ const Je = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { class: "flex items-center justify-between w-full" }, Ml = { class: "block truncate grow text-left text-xs sm:text-sm" }, Al = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, Pl = {
1920
1920
  key: 1,
1921
1921
  class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
1922
- }, jl = ["disabled"], _l = {
1922
+ }, jl = ["disabled"], Tl = {
1923
1923
  key: 0,
1924
1924
  class: "flex flex-col mx-1 mb-1"
1925
- }, Tl = /* @__PURE__ */ p("span", { class: "sr-only label text-foreground" }, "Search", -1), Fl = { class: "relative" }, Rl = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Dl = ["placeholder"], El = {
1925
+ }, _l = /* @__PURE__ */ p("span", { class: "sr-only label text-foreground" }, "Search", -1), Fl = { class: "relative" }, Rl = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Dl = ["placeholder"], El = {
1926
1926
  key: 0,
1927
1927
  class: "px-1"
1928
- }, Ul = { key: 1 }, ql = /* @__PURE__ */ p("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Wl = {
1928
+ }, Ul = { key: 1 }, Wl = /* @__PURE__ */ p("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), ql = {
1929
1929
  class: /* @__PURE__ */ b(["block truncate"])
1930
1930
  }, Hl = ["id"], Ct = /* @__PURE__ */ P({
1931
1931
  __name: "Base",
@@ -2097,7 +2097,7 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2097
2097
  },
2098
2098
  emits: ["update:modelValue"],
2099
2099
  setup(e, { expose: t, emit: i }) {
2100
- const s = (C) => Te(C), o = i, n = e, { value: h, errorMessage: m } = Be(n.name, n.rules, {
2100
+ const s = (C) => Fe(C), o = i, n = e, { value: h, errorMessage: m } = Be(n.name, n.rules, {
2101
2101
  validateOnMount: n.validateOnMount,
2102
2102
  validateOnValueUpdate: n.validateOnValueUpdate,
2103
2103
  initialValue: n.modelValue
@@ -2117,16 +2117,16 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2117
2117
  C && n.mountMenuOnBody && $.update();
2118
2118
  }
2119
2119
  );
2120
- const S = c(() => l(n.label) || l(n.name)), T = c(() => {
2120
+ const S = c(() => l(n.label) || l(n.name)), _ = c(() => {
2121
2121
  const C = m.value;
2122
2122
  return !C || !l(n.useLabelInErrors) ? C : C.replace("Value", S.value);
2123
- }), M = c(() => T.value || l(n.help)), w = c(() => !!M.value), E = c(
2123
+ }), A = c(() => _.value || l(n.help)), w = c(() => !!A.value), E = c(
2124
2124
  () => w.value ? `${l(n.name)}-${k.value}` : void 0
2125
- ), q = c(
2125
+ ), W = c(
2126
2126
  () => m.value ? "text-danger" : "text-foreground-2"
2127
2127
  ), U = c(
2128
2128
  () => n.buttonStyle !== "simple" && n.clearable && !n.disabled
2129
- ), Ae = c(() => {
2129
+ ), Me = c(() => {
2130
2130
  const C = ["relative flex group"];
2131
2131
  return m.value ? (C.push("hover:shadow rounded-md"), C.push("text-danger-darker focus:border-danger focus:ring-danger"), n.buttonStyle !== "simple" && C.push("outline outline-2 outline-danger")) : n.buttonStyle !== "simple" && (C.push("hover:shadow rounded-md"), C.push("outline outline-2 outline-primary-muted")), n.fixedHeight && C.push("h-8"), C.join(" ");
2132
2132
  }), re = c(() => {
@@ -2134,7 +2134,7 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2134
2134
  return n.buttonStyle !== "simple" && C.push(
2135
2135
  fe.value ? "bg-foundation-disabled text-foreground-disabled" : ""
2136
2136
  ), fe.value && C.push("cursor-not-allowed"), C.join(" ");
2137
- }), Me = c(() => {
2137
+ }), Ae = c(() => {
2138
2138
  const C = [
2139
2139
  "relative z-[1]",
2140
2140
  "flex items-center justify-center text-center shrink-0",
@@ -2174,19 +2174,19 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2174
2174
  if (n.multiple)
2175
2175
  K = C || [];
2176
2176
  else {
2177
- const W = h.value;
2178
- K = n.allowUnset && W && C && _(W) === _(C) ? void 0 : C;
2177
+ const q = h.value;
2178
+ K = n.allowUnset && q && C && T(q) === T(C) ? void 0 : C;
2179
2179
  }
2180
2180
  n.fullyControlValue ? o("update:modelValue", K) : h.value = K, B.value += 1;
2181
2181
  }
2182
2182
  }), he = c(() => n.multiple && N(X.value) ? X.value.length !== 0 : !!X.value), je = () => {
2183
2183
  n.multiple ? X.value = [] : X.value = void 0;
2184
- }, _e = c(() => {
2184
+ }, Te = c(() => {
2185
2185
  const C = y.value;
2186
2186
  return !me.value || !(C != null && C.length) ? x.value : n.filterPredicate ? x.value.filter(
2187
2187
  (K) => {
2188
- var W;
2189
- return ((W = n.filterPredicate) == null ? void 0 : W.call(n, K, C)) || !1;
2188
+ var q;
2189
+ return ((q = n.filterPredicate) == null ? void 0 : q.call(n, K, C)) || !1;
2190
2190
  }
2191
2191
  ) : x.value;
2192
2192
  }), ke = c(() => {
@@ -2197,11 +2197,11 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2197
2197
  }), j = c(() => {
2198
2198
  const C = {};
2199
2199
  if (n.mountMenuOnBody) {
2200
- const K = $.top.value, W = $.left.value, J = $.width.value, se = $.height.value;
2201
- C.top = `${K + se}px`, C.left = `${W}px`, C.width = `${J}px`;
2200
+ const K = $.top.value, q = $.left.value, J = $.width.value, se = $.height.value;
2201
+ C.top = `${K + se}px`, C.left = `${q}px`, C.width = `${J}px`;
2202
2202
  }
2203
2203
  return C;
2204
- }), F = (C) => JSON.stringify(C), _ = (C) => s(C) ? C[n.by || "id"] : C, Z = async () => {
2204
+ }), F = (C) => JSON.stringify(C), T = (C) => s(C) ? C[n.by || "id"] : C, Z = async () => {
2205
2205
  if (!(!ee.value || !n.getSearchResults)) {
2206
2206
  d.value = !0;
2207
2207
  try {
@@ -2210,12 +2210,12 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2210
2210
  d.value = !1;
2211
2211
  }
2212
2212
  }
2213
- }, te = Ke(Z, 1e3), we = (C) => {
2214
- const { active: K, disabled: W } = C || {}, { hideCheckmarks: J } = n, se = [
2213
+ }, te = Ge(Z, 1e3), we = (C) => {
2214
+ const { active: K, disabled: q } = C || {}, { hideCheckmarks: J } = n, se = [
2215
2215
  "relative transition cursor-pointer select-none py-1.5 pl-3",
2216
2216
  J ? "" : "pr-9"
2217
2217
  ];
2218
- return W ? se.push("opacity-50 cursor-not-allowed") : se.push(K ? "text-primary" : "text-foreground"), se.join(" ");
2218
+ return q ? se.push("opacity-50 cursor-not-allowed") : se.push(K ? "text-primary" : "text-foreground"), se.join(" ");
2219
2219
  };
2220
2220
  return ce(
2221
2221
  () => n.items,
@@ -2231,33 +2231,33 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2231
2231
  (a(), O(l(ws), {
2232
2232
  key: B.value,
2233
2233
  modelValue: X.value,
2234
- "onUpdate:modelValue": K[4] || (K[4] = (W) => X.value = W),
2234
+ "onUpdate:modelValue": K[4] || (K[4] = (q) => X.value = q),
2235
2235
  name: e.name,
2236
2236
  multiple: e.multiple,
2237
2237
  by: e.by,
2238
2238
  disabled: fe.value,
2239
2239
  as: "div"
2240
2240
  }, {
2241
- default: A(() => [
2241
+ default: M(() => [
2242
2242
  V(l(Cs), {
2243
2243
  class: b(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
2244
2244
  }, {
2245
- default: A(() => [
2245
+ default: M(() => [
2246
2246
  D(z(e.label), 1)
2247
2247
  ]),
2248
2248
  _: 1
2249
2249
  }, 8, ["class"]),
2250
2250
  p("div", {
2251
- class: b(Ae.value)
2251
+ class: b(Me.value)
2252
2252
  }, [
2253
2253
  V(l($s), {
2254
2254
  ref_key: "listboxButton",
2255
2255
  ref: g,
2256
2256
  class: b(Pe.value)
2257
2257
  }, {
2258
- default: A(({ open: W }) => [
2258
+ default: M(({ open: q }) => [
2259
2259
  p("div", Ol, [
2260
- p("div", Al, [
2260
+ p("div", Ml, [
2261
2261
  !X.value || l(N)(X.value) && !X.value.length ? R(C.$slots, "nothing-selected", { key: 0 }, () => [
2262
2262
  D(z(e.placeholder ? e.placeholder : e.label), 1)
2263
2263
  ]) : R(C.$slots, "something-selected", {
@@ -2267,17 +2267,17 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2267
2267
  D(z(F(X.value)), 1)
2268
2268
  ])
2269
2269
  ]),
2270
- p("div", Ml, [
2271
- T.value ? (a(), O(l(Ut), {
2270
+ p("div", Al, [
2271
+ _.value ? (a(), O(l(Ut), {
2272
2272
  key: 0,
2273
2273
  class: "h-4 w-4 text-danger",
2274
2274
  "aria-hidden": "true"
2275
2275
  })) : e.showRequired ? (a(), f("div", Pl, " * ")) : I("", !0),
2276
- W ? (a(), O(l(ft), {
2276
+ q ? (a(), O(l(ft), {
2277
2277
  key: 2,
2278
2278
  class: "h-4 w-4 text-foreground",
2279
2279
  "aria-hidden": "true"
2280
- })) : (a(), O(l(qt), {
2280
+ })) : (a(), O(l(Wt), {
2281
2281
  key: 3,
2282
2282
  class: "h-4 w-4 text-foreground",
2283
2283
  "aria-hidden": "true"
@@ -2289,22 +2289,22 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2289
2289
  }, 8, ["class"]),
2290
2290
  U.value ? ue((a(), f("button", {
2291
2291
  key: 0,
2292
- class: b(Me.value),
2292
+ class: b(Ae.value),
2293
2293
  disabled: e.disabled,
2294
- onClick: K[0] || (K[0] = (W) => je())
2294
+ onClick: K[0] || (K[0] = (q) => je())
2295
2295
  }, [
2296
- V(l(Ge), { class: "w-3 h-3" })
2296
+ V(l(Xe), { class: "w-3 h-3" })
2297
2297
  ], 10, jl)), [
2298
2298
  [l(gt), "Clear"]
2299
2299
  ]) : I("", !0),
2300
- l(u) ? (a(), O(Ue, {
2300
+ l(u) ? (a(), O(We, {
2301
2301
  key: 1,
2302
2302
  "leave-active-class": "transition ease-in duration-100",
2303
2303
  "leave-from-class": "opacity-100",
2304
2304
  "leave-to-class": "opacity-0"
2305
2305
  }, {
2306
- default: A(() => [
2307
- (a(), O(Mt, {
2306
+ default: M(() => [
2307
+ (a(), O(At, {
2308
2308
  to: "body",
2309
2309
  disabled: !e.mountMenuOnBody
2310
2310
  }, [
@@ -2313,29 +2313,29 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2313
2313
  ref: v,
2314
2314
  class: b(ke.value),
2315
2315
  style: Y(j.value),
2316
- onFocus: K[3] || (K[3] = (W) => {
2316
+ onFocus: K[3] || (K[3] = (q) => {
2317
2317
  var J;
2318
2318
  return (J = r.value) == null ? void 0 : J.focus();
2319
2319
  })
2320
2320
  }, {
2321
- default: A(() => [
2322
- me.value ? (a(), f("label", _l, [
2323
- Tl,
2321
+ default: M(() => [
2322
+ me.value ? (a(), f("label", Tl, [
2323
+ _l,
2324
2324
  p("div", Fl, [
2325
2325
  p("div", Rl, [
2326
- V(l(Wt), { class: "h-5 w-5 text-foreground" })
2326
+ V(l(qt), { class: "h-5 w-5 text-foreground" })
2327
2327
  ]),
2328
2328
  ue(p("input", {
2329
2329
  ref_key: "searchInput",
2330
2330
  ref: r,
2331
- "onUpdate:modelValue": K[1] || (K[1] = (W) => y.value = W),
2331
+ "onUpdate:modelValue": K[1] || (K[1] = (q) => y.value = q),
2332
2332
  type: "text",
2333
2333
  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",
2334
2334
  placeholder: e.searchPlaceholder,
2335
2335
  onKeydown: K[2] || (K[2] = pe(() => {
2336
2336
  }, ["stop"]))
2337
2337
  }, null, 40, Dl), [
2338
- [We, y.value]
2338
+ [He, y.value]
2339
2339
  ])
2340
2340
  ])
2341
2341
  ])) : I("", !0),
@@ -2343,44 +2343,44 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2343
2343
  class: b(["overflow-auto simple-scrollbar", [me.value ? "max-h-52" : "max-h-40"]])
2344
2344
  }, [
2345
2345
  ee.value && d.value ? (a(), f("div", El, [
2346
- V(Qe, { loading: !0 })
2346
+ V(Je, { loading: !0 })
2347
2347
  ])) : ee.value && !x.value.length ? (a(), f("div", Ul, [
2348
2348
  R(C.$slots, "nothing-found", {}, () => [
2349
- ql
2349
+ Wl
2350
2350
  ])
2351
2351
  ])) : I("", !0),
2352
- !ee.value || !d.value ? (a(!0), f(H, { key: 2 }, G(_e.value, (W) => {
2352
+ !ee.value || !d.value ? (a(!0), f(H, { key: 2 }, G(Te.value, (q) => {
2353
2353
  var J;
2354
2354
  return a(), O(l(Bs), {
2355
- key: _(W),
2356
- value: W,
2357
- disabled: ((J = e.disabledItemPredicate) == null ? void 0 : J.call(e, W)) || !1
2355
+ key: T(q),
2356
+ value: q,
2357
+ disabled: ((J = e.disabledItemPredicate) == null ? void 0 : J.call(e, q)) || !1
2358
2358
  }, {
2359
- default: A(({
2359
+ default: M(({
2360
2360
  active: se,
2361
- selected: Ye
2361
+ selected: et
2362
2362
  }) => {
2363
- var et, tt;
2363
+ var tt, st;
2364
2364
  return [
2365
2365
  p("li", {
2366
2366
  class: b(
2367
2367
  we({
2368
2368
  active: se,
2369
- disabled: ((et = e.disabledItemPredicate) == null ? void 0 : et.call(e, W)) || !1
2369
+ disabled: ((tt = e.disabledItemPredicate) == null ? void 0 : tt.call(e, q)) || !1
2370
2370
  })
2371
2371
  )
2372
2372
  }, [
2373
- p("span", Wl, [
2373
+ p("span", ql, [
2374
2374
  R(C.$slots, "option", {
2375
- item: W,
2375
+ item: q,
2376
2376
  active: se,
2377
- selected: Ye,
2378
- disabled: ((tt = e.disabledItemPredicate) == null ? void 0 : tt.call(e, W)) || !1
2377
+ selected: et,
2378
+ disabled: ((st = e.disabledItemPredicate) == null ? void 0 : st.call(e, q)) || !1
2379
2379
  }, () => [
2380
- D(z(F(W)), 1)
2380
+ D(z(F(q)), 1)
2381
2381
  ])
2382
2382
  ]),
2383
- !e.hideCheckmarks && Ye ? (a(), f("span", {
2383
+ !e.hideCheckmarks && et ? (a(), f("span", {
2384
2384
  key: 0,
2385
2385
  class: b([
2386
2386
  se ? "text-primary" : "text-foreground",
@@ -2413,8 +2413,8 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2413
2413
  E.value ? (a(), f("p", {
2414
2414
  key: 0,
2415
2415
  id: E.value,
2416
- class: b(["mt-2 text-xs sm:text-sm", q.value])
2417
- }, z(M.value), 11, Hl)) : I("", !0)
2416
+ class: b(["mt-2 text-xs sm:text-sm", W.value])
2417
+ }, z(A.value), 11, Hl)) : I("", !0)
2418
2418
  ]));
2419
2419
  }
2420
2420
  }), Kl = /* @__PURE__ */ P({
@@ -2423,12 +2423,12 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2423
2423
  sourceApp: null
2424
2424
  },
2425
2425
  setup(e) {
2426
- return (t, i) => (a(), O(Xe, {
2426
+ return (t, i) => (a(), O(Ze, {
2427
2427
  "color-classes": "text-foreground-on-primary",
2428
2428
  rounded: "",
2429
2429
  style: Y({ backgroundColor: e.sourceApp.bgColor })
2430
2430
  }, {
2431
- default: A(() => [
2431
+ default: M(() => [
2432
2432
  D(z(e.sourceApp.short), 1)
2433
2433
  ]),
2434
2434
  _: 1
@@ -2440,7 +2440,7 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2440
2440
  }, Xl = {
2441
2441
  key: 1,
2442
2442
  class: "flex items-center"
2443
- }, Zl = { class: "truncate" }, Nl = { class: "flex items-center" }, Ql = { class: "truncate" }, _o = /* @__PURE__ */ P({
2443
+ }, Zl = { class: "truncate" }, Nl = { class: "flex items-center" }, Ql = { class: "truncate" }, To = /* @__PURE__ */ P({
2444
2444
  __name: "SourceApps",
2445
2445
  props: {
2446
2446
  /**
@@ -2526,14 +2526,14 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2526
2526
  help: e.help,
2527
2527
  by: "name"
2528
2528
  }, {
2529
- "nothing-selected": A(() => [
2529
+ "nothing-selected": M(() => [
2530
2530
  e.selectorPlaceholder ? (a(), f(H, { key: 0 }, [
2531
2531
  D(z(e.selectorPlaceholder), 1)
2532
2532
  ], 64)) : (a(), f(H, { key: 1 }, [
2533
2533
  D(z(e.multiple ? "Select apps" : "Select an app"), 1)
2534
2534
  ], 64))
2535
2535
  ]),
2536
- "something-selected": A(({ value: x }) => [
2536
+ "something-selected": M(({ value: x }) => [
2537
2537
  l(u)(x) ? (a(), f("div", {
2538
2538
  key: 0,
2539
2539
  ref_key: "elementToWatchForChanges",
@@ -2559,7 +2559,7 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2559
2559
  p("span", Zl, z(l(r)(x).name), 1)
2560
2560
  ]))
2561
2561
  ]),
2562
- option: A(({ item: x }) => [
2562
+ option: M(({ item: x }) => [
2563
2563
  p("div", Nl, [
2564
2564
  p("div", {
2565
2565
  class: "h-2 w-2 rounded-full mr-2",
@@ -2571,7 +2571,7 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2571
2571
  _: 1
2572
2572
  }, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name", "clearable", "help"]));
2573
2573
  }
2574
- }), Jl = { class: "flex flex-wrap gap-1.5 text-xs" }, To = /* @__PURE__ */ P({
2574
+ }), Jl = { class: "flex flex-wrap gap-1.5 text-xs" }, _o = /* @__PURE__ */ P({
2575
2575
  __name: "Badges",
2576
2576
  props: {
2577
2577
  items: null,
@@ -2602,18 +2602,18 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2602
2602
  rules: e.rules,
2603
2603
  by: e.by
2604
2604
  }, {
2605
- "something-selected": A(({ value: r }) => [
2605
+ "something-selected": M(({ value: r }) => [
2606
2606
  p("ul", Jl, [
2607
2607
  (a(!0), f(H, null, G(l(n)(r) ? r : [r], (v) => (a(), f("li", {
2608
2608
  key: v[e.by]
2609
2609
  }, [
2610
- V(Xe, {
2610
+ V(Ze, {
2611
2611
  size: "lg",
2612
2612
  "clickable-icon": !0,
2613
- "icon-left": l(Ge),
2613
+ "icon-left": l(Xe),
2614
2614
  onClickIcon: pe((g) => h(v), ["stop"])
2615
2615
  }, {
2616
- default: A(() => [
2616
+ default: M(() => [
2617
2617
  D(z(v.text), 1)
2618
2618
  ]),
2619
2619
  _: 2
@@ -2621,7 +2621,7 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2621
2621
  ]))), 128))
2622
2622
  ])
2623
2623
  ]),
2624
- option: A(({ item: r }) => [
2624
+ option: M(({ item: r }) => [
2625
2625
  D(z(r.text), 1)
2626
2626
  ]),
2627
2627
  _: 1
@@ -2629,9 +2629,11 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2629
2629
  }
2630
2630
  }), Yl = { class: "flex items-center" }, ea = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, Fo = /* @__PURE__ */ P({
2631
2631
  __name: "Switch",
2632
- props: {
2632
+ props: _e({
2633
+ icons: { type: Boolean }
2634
+ }, {
2633
2635
  modelValue: { type: Boolean }
2634
- },
2636
+ }),
2635
2637
  emits: ["update:modelValue"],
2636
2638
  setup(e) {
2637
2639
  const t = it(e, "modelValue");
@@ -2641,10 +2643,14 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2641
2643
  "onUpdate:modelValue": s[0] || (s[0] = (o) => t.value = o),
2642
2644
  class: b(["relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary", { "bg-primary": t.value, "bg-primary-muted": !t.value }])
2643
2645
  }, {
2644
- default: A(() => [
2646
+ default: M(() => [
2645
2647
  p("div", ea, [
2646
- V(l(pt), { class: "h-5 w-5 drop-shadow-md" }),
2647
- V(l(Ge), { class: "h-5 w-5 drop-shadow-md" })
2648
+ V(l(pt), {
2649
+ class: b(["h-5 w-5 drop-shadow-md", e.icons ? "opacity-100" : "opacity-0"])
2650
+ }, null, 8, ["class"]),
2651
+ V(l(Xe), {
2652
+ class: b(["h-5 w-5 drop-shadow-md", e.icons ? "opacity-100" : "opacity-0"])
2653
+ }, null, 8, ["class"])
2648
2654
  ]),
2649
2655
  p("span", {
2650
2656
  class: b(["scale-95 pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200", { "translate-x-5": t.value, "translate-x-0": !t.value }])
@@ -2700,9 +2706,9 @@ const Qe = /* @__PURE__ */ Oe(Ll, [["__scopeId", "data-v-89e77cae"]]), Ol = { cl
2700
2706
  }
2701
2707
  });
2702
2708
  var Ie = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(Ie || {});
2703
- const Re = cs(), na = {
2704
- "cmd-or-ctrl": Re === Fe.Mac ? "Cmd" : "Ctrl",
2705
- "alt-or-opt": Re === Fe.Mac ? "Opt" : "Alt",
2709
+ const De = cs(), na = {
2710
+ "cmd-or-ctrl": De === Re.Mac ? "Cmd" : "Ctrl",
2711
+ "alt-or-opt": De === Re.Mac ? "Opt" : "Alt",
2706
2712
  shift: "Shift"
2707
2713
  };
2708
2714
  function Do(e) {
@@ -2713,7 +2719,7 @@ function Eo(e, ...t) {
2713
2719
  bs(
2714
2720
  t[0],
2715
2721
  (i) => {
2716
- const s = i.getModifierState("Alt"), o = Re === Fe.Mac ? i.getModifierState("Meta") : i.getModifierState("Control"), n = i.getModifierState("Shift");
2722
+ const s = i.getModifierState("Alt"), o = De === Re.Mac ? i.getModifierState("Meta") : i.getModifierState("Control"), n = i.getModifierState("Shift");
2717
2723
  for (const h of e)
2718
2724
  switch (h) {
2719
2725
  case Ie.CtrlOrCmd:
@@ -2744,7 +2750,7 @@ function Uo(e) {
2744
2750
  const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity backdrop-blur-xs" }, null, -1), aa = { class: "fixed inset-0 z-10 h-[100dvh] w-screen" }, oa = { class: "flex justify-center items-center h-full w-full p-4 sm:p-0" }, ra = {
2745
2751
  key: 0,
2746
2752
  class: "flex items-center justify-start rounded-t-lg shrink-0 min-h-[2rem] sm:min-h-[4rem] py-2 px-4 sm:px-8 truncate text-lg sm:text-2xl font-bold"
2747
- }, ia = { class: "w-full truncate pr-12" }, qo = /* @__PURE__ */ P({
2753
+ }, ia = { class: "w-full truncate pr-12" }, Wo = /* @__PURE__ */ P({
2748
2754
  __name: "Dialog",
2749
2755
  props: {
2750
2756
  open: { type: Boolean },
@@ -2757,7 +2763,7 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
2757
2763
  },
2758
2764
  emits: ["update:open", "fully-closed"],
2759
2765
  setup(e, { emit: t }) {
2760
- const i = t, s = e, o = He(), n = L(!1), h = L(!0), m = c(() => !!s.onSubmit), u = c(() => s.buttons || o.buttons), r = c(() => s.title || o.header), v = c({
2766
+ const i = t, s = e, o = Ke(), n = L(!1), h = L(!0), m = c(() => !!s.onSubmit), u = c(() => s.buttons || o.buttons), r = c(() => s.title || o.header), v = c({
2761
2767
  get: () => s.open,
2762
2768
  set: (B) => i("update:open", B)
2763
2769
  }), g = c(() => {
@@ -2779,20 +2785,20 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
2779
2785
  }), x = () => {
2780
2786
  s.preventCloseOnClickOutside || (v.value = !1);
2781
2787
  }, d = ut((B) => {
2782
- const k = B.target, { scrollTop: $, offsetHeight: S, scrollHeight: T } = k;
2783
- n.value = $ > 0, h.value = $ + S >= T;
2788
+ const k = B.target, { scrollTop: $, offsetHeight: S, scrollHeight: _ } = k;
2789
+ n.value = $ > 0, h.value = $ + S >= _;
2784
2790
  }, 60);
2785
2791
  return (B, k) => (a(), O(l(vt), {
2786
2792
  as: "template",
2787
2793
  show: v.value
2788
2794
  }, {
2789
- default: A(() => [
2795
+ default: M(() => [
2790
2796
  V(l(zs), {
2791
2797
  as: "div",
2792
2798
  class: "relative z-40",
2793
2799
  onClose: x
2794
2800
  }, {
2795
- default: A(() => [
2801
+ default: M(() => [
2796
2802
  V(l(at), {
2797
2803
  as: "template",
2798
2804
  enter: "ease-out duration-300",
@@ -2802,7 +2808,7 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
2802
2808
  "leave-from": "opacity-100",
2803
2809
  "leave-to": "opacity-0"
2804
2810
  }, {
2805
- default: A(() => [
2811
+ default: M(() => [
2806
2812
  la
2807
2813
  ]),
2808
2814
  _: 1
@@ -2819,16 +2825,16 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
2819
2825
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
2820
2826
  onAfterLeave: k[2] || (k[2] = ($) => B.$emit("fully-closed"))
2821
2827
  }, {
2822
- default: A(() => [
2828
+ default: M(() => [
2823
2829
  V(l(Vs), {
2824
2830
  class: b([
2825
- "transform rounded-lg text-foreground overflow-hidden bg-foundation text-left shadow-xl transition-all flex flex-col max-h-[90dvh]",
2831
+ "transform rounded-lg text-foreground overflow-hidden bg-foundation text-left shadow-xl transition-all flex flex-col max-h-[90vh]",
2826
2832
  y.value
2827
2833
  ]),
2828
2834
  as: m.value ? "form" : "div",
2829
2835
  onSubmit: pe(e.onSubmit, ["prevent"])
2830
2836
  }, {
2831
- default: A(() => [
2837
+ default: M(() => [
2832
2838
  p("div", {
2833
2839
  class: b(n.value && "relative z-20 shadow-lg")
2834
2840
  }, [
@@ -2847,7 +2853,7 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
2847
2853
  V(l(es), { class: "h-5 sm:h-6 w-5 sm:w-6" })
2848
2854
  ], 2)),
2849
2855
  p("div", {
2850
- class: b(["flex-1 simple-scrollbar overflow-y-auto", r.value ? "p-3 sm:py-6 sm:px-8" : "p-10"]),
2856
+ class: b(["flex-1 simple-scrollbar overflow-y-auto", r.value ? "p-3 sm:py-6 sm:px-8" : "p-6 pt-10 sm:p-10"]),
2851
2857
  onScroll: k[1] || (k[1] = //@ts-ignore
2852
2858
  (...$) => l(d) && l(d)(...$))
2853
2859
  }, [
@@ -2864,7 +2870,7 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
2864
2870
  type: $.submit && "submit",
2865
2871
  onClick: $.onClick
2866
2872
  }), {
2867
- default: A(() => [
2873
+ default: M(() => [
2868
2874
  D(z($.text), 1)
2869
2875
  ]),
2870
2876
  _: 2
@@ -2885,7 +2891,7 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
2885
2891
  _: 3
2886
2892
  }, 8, ["show"]));
2887
2893
  }
2888
- }), ua = { class: "h-4 sm:h-5 h-4 sm:w-5 empty:h-0 empty:w-0" }, Wo = /* @__PURE__ */ P({
2894
+ }), ua = { class: "h-4 sm:h-5 w-4 sm:w-5 empty:h-0 empty:w-0" }, qo = /* @__PURE__ */ P({
2889
2895
  __name: "DialogSection",
2890
2896
  props: {
2891
2897
  title: String,
@@ -2938,7 +2944,7 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
2938
2944
  p("div", ie({
2939
2945
  class: ["flex justify-between items-center gap-4 sm:gap-8 py-3 sm:py-4 px-2", n.value],
2940
2946
  tabindex: "0"
2941
- }, st(
2947
+ }, nt(
2942
2948
  !e.button && !e.alwaysOpen ? {
2943
2949
  click: m,
2944
2950
  keypress: l(bt)(m)
@@ -2965,8 +2971,8 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
2965
2971
  color: e.button.expandContent && o.value ? "invert" : e.button.color,
2966
2972
  "icon-right": e.button.expandContent && o.value ? void 0 : e.button.iconRight,
2967
2973
  onClick: (v = e.button) == null ? void 0 : v.onClick
2968
- }, st((g = e.button) != null && g.expandContent ? { click: m } : {})), {
2969
- default: A(() => [
2974
+ }, nt((g = e.button) != null && g.expandContent ? { click: m } : {})), {
2975
+ default: M(() => [
2970
2976
  D(z(e.button.expandContent && o.value ? "Cancel" : e.button.text), 1)
2971
2977
  ]),
2972
2978
  _: 1
@@ -3064,11 +3070,11 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
3064
3070
  });
3065
3071
  return (o, n) => (a(), f("div", null, [
3066
3072
  V(l(Ls), null, {
3067
- default: A(({ open: h }) => [
3073
+ default: M(({ open: h }) => [
3068
3074
  V(l(Os), {
3069
3075
  class: b(i.value)
3070
3076
  }, {
3071
- default: A(() => [
3077
+ default: M(() => [
3072
3078
  p("div", ca, [
3073
3079
  e.icon ? (a(), O(Q(e.icon), {
3074
3080
  key: 0,
@@ -3082,10 +3088,10 @@ const la = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
3082
3088
  ]),
3083
3089
  _: 2
3084
3090
  }, 1032, ["class"]),
3085
- V(l(As), {
3091
+ V(l(Ms), {
3086
3092
  class: b(s.value)
3087
3093
  }, {
3088
- default: A(() => [
3094
+ default: M(() => [
3089
3095
  p("div", da, [
3090
3096
  R(o.$slots, "default", {}, () => [
3091
3097
  D("Panel contents")
@@ -3145,7 +3151,7 @@ const fa = { class: "relative flex bg-primary-muted rounded-md" }, pa = /* @__PU
3145
3151
  };
3146
3152
  }
3147
3153
  });
3148
- var ga = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(ga || {}), De = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(De || {});
3154
+ var ga = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(ga || {}), Ee = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(Ee || {});
3149
3155
  function ba(e, t) {
3150
3156
  if (!Le)
3151
3157
  return;
@@ -3153,7 +3159,7 @@ function ba(e, t) {
3153
3159
  wait: i = 100,
3154
3160
  throttleOrDebounce: s = 0
3155
3161
  /* Throttle */
3156
- } = t || {}, o = i ? s === 0 ? ut(e, i) : Ke(e, i) : e;
3162
+ } = t || {}, o = i ? s === 0 ? ut(e, i) : Ge(e, i) : e;
3157
3163
  ae(() => window.addEventListener("resize", o)), qe(() => window.removeEventListener("resize", o));
3158
3164
  }
3159
3165
  function Go(e) {
@@ -3205,7 +3211,7 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3205
3211
  var x;
3206
3212
  return ((x = o.value) == null ? void 0 : x.el) || null;
3207
3213
  }),
3208
- defaultDirection: De.Left,
3214
+ defaultDirection: Ee.Left,
3209
3215
  stopUpdatesBelowWidth: 300
3210
3216
  }), h = L(null), m = L(!1), u = c({
3211
3217
  get: () => s.open || !1,
@@ -3228,11 +3234,11 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3228
3234
  x !== d && (u.value = x);
3229
3235
  }), ce(u, (x) => {
3230
3236
  (x && !m.value || !x && m.value) && g();
3231
- }), (x, d) => (a(), O(l(Ms), {
3237
+ }), (x, d) => (a(), O(l(As), {
3232
3238
  as: "div",
3233
3239
  class: "relative inline-block"
3234
3240
  }, {
3235
- default: A(({ open: B }) => [
3241
+ default: M(({ open: B }) => [
3236
3242
  p("div", null, [
3237
3243
  V(l(Ps), {
3238
3244
  ref_key: "menuButton",
@@ -3250,7 +3256,7 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3250
3256
  })
3251
3257
  ], 2)
3252
3258
  ]),
3253
- V(Ue, {
3259
+ V(We, {
3254
3260
  "enter-active-class": "transition duration-100 ease-out",
3255
3261
  "enter-from-class": "transform scale-95 opacity-0",
3256
3262
  "enter-to-class": "transform scale-100 opacity-100",
@@ -3258,30 +3264,30 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3258
3264
  "leave-from-class": "transform scale-100 opacity-100",
3259
3265
  "leave-to-class": "transform scale-95 opacity-0"
3260
3266
  }, {
3261
- default: A(() => [
3267
+ default: M(() => [
3262
3268
  V(l(js), {
3263
3269
  ref_key: "menuItems",
3264
3270
  ref: o,
3265
3271
  class: b([
3266
3272
  "absolute mt-2 w-48 origin-top-right divide-y divide-outline-3 rounded-md bg-foundation shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none z-40",
3267
- l(n) === l(De).Left ? "right-0" : ""
3273
+ l(n) === l(Ee).Left ? "right-0" : ""
3268
3274
  ])
3269
3275
  }, {
3270
- default: A(() => [
3276
+ default: M(() => [
3271
3277
  (a(!0), f(H, null, G(e.items, (k, $) => (a(), f("div", {
3272
3278
  key: $,
3273
3279
  class: "p-1"
3274
3280
  }, [
3275
- (a(!0), f(H, null, G(k, (S) => (a(), O(l(_s), {
3281
+ (a(!0), f(H, null, G(k, (S) => (a(), O(l(Ts), {
3276
3282
  key: S.id,
3277
3283
  disabled: S.disabled,
3278
3284
  color: S.color
3279
3285
  }, {
3280
- default: A(({ active: T, disabled: M }) => [
3286
+ default: M(({ active: _, disabled: A }) => [
3281
3287
  ue((a(), f("span", null, [
3282
3288
  p("button", {
3283
- class: b(r({ active: T, disabled: M, color: S.color })),
3284
- disabled: M,
3289
+ class: b(r({ active: _, disabled: A, color: S.color })),
3290
+ disabled: A,
3285
3291
  onClick: (w) => v(S, w)
3286
3292
  }, [
3287
3293
  S.icon ? (a(), O(Q(S.icon), {
@@ -3326,7 +3332,7 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3326
3332
  color: s.value.id === m.id ? "default" : "secondary",
3327
3333
  onClick: (u) => o(m)
3328
3334
  }, {
3329
- default: A(() => [
3335
+ default: M(() => [
3330
3336
  D(z(m.title), 1)
3331
3337
  ]),
3332
3338
  _: 2
@@ -3522,7 +3528,7 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3522
3528
  ])
3523
3529
  ]));
3524
3530
  }
3525
- }), Aa = /* @__PURE__ */ p("div", { class: "h-8" }, null, -1), Ma = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Pa = { class: "inline-flex items-center space-x-1" }, ja = /* @__PURE__ */ p("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Jo = /* @__PURE__ */ P({
3531
+ }), Ma = /* @__PURE__ */ p("div", { class: "h-8" }, null, -1), Aa = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Pa = { class: "inline-flex items-center space-x-1" }, ja = /* @__PURE__ */ p("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Jo = /* @__PURE__ */ P({
3526
3532
  __name: "InfiniteLoading",
3527
3533
  props: {
3528
3534
  settings: null,
@@ -3543,17 +3549,17 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3543
3549
  i.value ? (a(), O(l(Ds), ie({ key: 0 }, s.$props.settings || {}, {
3544
3550
  onInfinite: o[0] || (o[0] = (n) => s.$emit("infinite", n))
3545
3551
  }), {
3546
- spinner: A(() => [
3547
- V(Qe, {
3552
+ spinner: M(() => [
3553
+ V(Je, {
3548
3554
  loading: !0,
3549
3555
  class: "my-2"
3550
3556
  })
3551
3557
  ]),
3552
- complete: A(() => [
3553
- Aa
3558
+ complete: M(() => [
3559
+ Ma
3554
3560
  ]),
3555
- error: A(({ retry: n }) => [
3556
- p("div", Ma, [
3561
+ error: M(({ retry: n }) => [
3562
+ p("div", Aa, [
3557
3563
  p("div", Pa, [
3558
3564
  V(l(ss), { class: "w-5 h-5 text-danger" }),
3559
3565
  ja
@@ -3562,7 +3568,7 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3562
3568
  key: 0,
3563
3569
  onClick: n
3564
3570
  }, {
3565
- default: A(() => [
3571
+ default: M(() => [
3566
3572
  D("Retry")
3567
3573
  ]),
3568
3574
  _: 2
@@ -3573,7 +3579,7 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3573
3579
  }, 16)) : I("", !0)
3574
3580
  ], 512));
3575
3581
  }
3576
- }), _a = { class: "relative group" }, Ta = {
3582
+ }), Ta = { class: "relative group" }, _a = {
3577
3583
  key: 0,
3578
3584
  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"
3579
3585
  }, Yo = /* @__PURE__ */ P({
@@ -3622,8 +3628,8 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3622
3628
  const m = ["rounded-lg"];
3623
3629
  return s.noShadow || m.push("shadow"), s.ring && m.push("ring-outline-2 hover:ring-2"), s.panelClasses && m.push(s.panelClasses), m.join(" ");
3624
3630
  });
3625
- return (m, u) => (a(), f("div", _a, [
3626
- e.fancyGlow ? (a(), f("div", Ta)) : I("", !0),
3631
+ return (m, u) => (a(), f("div", Ta, [
3632
+ e.fancyGlow ? (a(), f("div", _a)) : I("", !0),
3627
3633
  (a(), O(Q(e.form ? "form" : "div"), {
3628
3634
  class: b([
3629
3635
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
@@ -3631,7 +3637,7 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3631
3637
  ]),
3632
3638
  onSubmit: u[0] || (u[0] = (r) => i("submit", r))
3633
3639
  }, {
3634
- default: A(() => [
3640
+ default: M(() => [
3635
3641
  m.$slots.header ? (a(), f("div", {
3636
3642
  key: 0,
3637
3643
  class: b(o.value)
@@ -3665,7 +3671,7 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3665
3671
  },
3666
3672
  emits: ["dismiss"],
3667
3673
  setup(e) {
3668
- const t = e, i = He(), s = c(() => !!i.description), o = c(() => {
3674
+ const t = e, i = Ke(), s = c(() => !!i.description), o = c(() => {
3669
3675
  if (t.customIcon)
3670
3676
  return t.customIcon;
3671
3677
  switch (t.color) {
@@ -3869,7 +3875,7 @@ const xa = ["disabled", "onClick"], Xo = /* @__PURE__ */ P({
3869
3875
  external: k.externalUrl || !1,
3870
3876
  onClick: (S) => k.onClick || l(ct)
3871
3877
  }, {
3872
- default: A(() => [
3878
+ default: M(() => [
3873
3879
  D(z(k.title), 1)
3874
3880
  ]),
3875
3881
  _: 2
@@ -3904,14 +3910,19 @@ function tr(e) {
3904
3910
  } : t, g = m && !m.readsOnly ? (k) => (r(`debugging: '${m.name}' written to`, k, u()), o(k)) : o, y = n ? ys(v, i, s) : c(v), x = c(() => y.value);
3905
3911
  return x.update = g, x;
3906
3912
  }
3907
- const Da = /* @__PURE__ */ P({
3913
+ const sr = () => {
3914
+ let e, t;
3915
+ return { promise: new Promise((n, h) => {
3916
+ e = n, t = h;
3917
+ }), resolve: (...n) => e(...n), reject: (...n) => t(...n) };
3918
+ }, Da = /* @__PURE__ */ P({
3908
3919
  __name: "ContextManager",
3909
3920
  setup(e, { expose: t }) {
3910
- const s = _t().provides, o = Object.getOwnPropertySymbols(s).find(
3921
+ const s = Tt().provides, o = Object.getOwnPropertySymbols(s).find(
3911
3922
  (y) => y.description === "ComboboxContext"
3912
3923
  );
3913
3924
  o || console.error("FormTagsContextManager ctx key not found!");
3914
- const n = Tt(o || "__undefined");
3925
+ const n = _t(o || "__undefined");
3915
3926
  return n || console.error("FormTagsContextManager ctx not found!"), t({ goUp: () => {
3916
3927
  n == null || n.goToOption(1);
3917
3928
  }, goDown: () => {
@@ -3924,13 +3935,13 @@ const Da = /* @__PURE__ */ P({
3924
3935
  n == null || n.selectActiveOption();
3925
3936
  }, isOpen: () => (n == null ? void 0 : n.comboboxState.value) === 0 }), (y, x) => R(y.$slots, "default");
3926
3937
  }
3927
- }), Ea = ["for"], Ua = ["disabled", "placeholder", "onKeydown"], qa = /* @__PURE__ */ p("span", { class: "text-xs sr-only" }, "Clear input", -1), Wa = { key: 1 }, Ha = /* @__PURE__ */ p("div", { class: "text-foreground-2 text-center" }, [
3938
+ }), Ea = ["for"], Ua = ["disabled", "placeholder", "onKeydown"], Wa = /* @__PURE__ */ p("span", { class: "text-xs sr-only" }, "Clear input", -1), qa = { key: 1 }, Ha = /* @__PURE__ */ p("div", { class: "text-foreground-2 text-center" }, [
3928
3939
  /* @__PURE__ */ D(" Press "),
3929
3940
  /* @__PURE__ */ p("strong", null, "Enter"),
3930
3941
  /* @__PURE__ */ D(" to create tag ⚡ ")
3931
3942
  ], -1), Ka = [
3932
3943
  Ha
3933
- ], Ga = ["id"], sr = /* @__PURE__ */ P({
3944
+ ], Ga = ["id"], nr = /* @__PURE__ */ P({
3934
3945
  __name: "Tags",
3935
3946
  props: {
3936
3947
  name: null,
@@ -3967,20 +3978,20 @@ const Da = /* @__PURE__ */ P({
3967
3978
  helpTipClasses: k,
3968
3979
  errorMessage: $,
3969
3980
  clear: S,
3970
- value: T
3971
- } = Ze({
3981
+ value: _
3982
+ } = Ne({
3972
3983
  props: le(n),
3973
3984
  emit: o,
3974
3985
  inputEl: h
3975
3986
  // options: {
3976
3987
  // customClear: () => (selectedItems.value = [])
3977
3988
  // }
3978
- }), M = L([]), w = L(!1), E = L(!1), q = L(""), U = c({
3979
- get: () => T.value || [],
3989
+ }), A = L([]), w = L(!1), E = L(!1), W = L(""), U = c({
3990
+ get: () => _.value || [],
3980
3991
  set: (j) => {
3981
- T.value = Rt(j).filter((F) => !!F.length);
3992
+ _.value = Rt(j).filter((F) => !!F.length);
3982
3993
  }
3983
- }), Ae = c(() => {
3994
+ }), Me = c(() => {
3984
3995
  switch (n.size) {
3985
3996
  case "sm":
3986
3997
  return "h-6";
@@ -3992,7 +4003,7 @@ const Da = /* @__PURE__ */ P({
3992
4003
  default:
3993
4004
  return "h-8";
3994
4005
  }
3995
- }), re = c(() => n.showClear && !!U.value.length), Me = c(() => {
4006
+ }), re = c(() => n.showClear && !!U.value.length), Ae = c(() => {
3996
4007
  const j = [
3997
4008
  v.value,
3998
4009
  n.disabled ? "cursor-not-allowed !bg-foundation-disabled !text-disabled-muted" : ""
@@ -4003,64 +4014,64 @@ const Da = /* @__PURE__ */ P({
4003
4014
  return;
4004
4015
  const F = U.value.indexOf(j);
4005
4016
  if (F !== -1) {
4006
- const _ = U.value.slice();
4007
- _.splice(F, 1), U.value = _;
4017
+ const T = U.value.slice();
4018
+ T.splice(F, 1), U.value = T;
4008
4019
  }
4009
4020
  }, me = () => {
4010
4021
  var j;
4011
4022
  (j = h.value) == null || j.blur(), E.value = !1;
4012
4023
  }, ee = (j) => {
4013
- if (j.key !== "Backspace" || q.value.length)
4024
+ if (j.key !== "Backspace" || W.value.length)
4014
4025
  return;
4015
4026
  const F = U.value.slice();
4016
4027
  F.pop(), U.value = F, E.value = !1;
4017
4028
  }, fe = () => {
4018
- var j, F, _;
4019
- (j = u.value) != null && j.isOpen() ? (F = u.value) == null || F.goUp() : (_ = u.value) == null || _.open();
4029
+ var j, F, T;
4030
+ (j = u.value) != null && j.isOpen() ? (F = u.value) == null || F.goUp() : (T = u.value) == null || T.open();
4020
4031
  }, X = () => {
4021
- var j, F, _;
4022
- (j = u.value) != null && j.isOpen() ? (F = u.value) == null || F.goDown() : (_ = u.value) == null || _.open();
4032
+ var j, F, T;
4033
+ (j = u.value) != null && j.isOpen() ? (F = u.value) == null || F.goDown() : (T = u.value) == null || T.open();
4023
4034
  }, he = async () => {
4024
- n.getAutocompleteItems && (w.value = !0, M.value = await Promise.resolve(
4025
- n.getAutocompleteItems(q.value)
4035
+ n.getAutocompleteItems && (w.value = !0, A.value = await Promise.resolve(
4036
+ n.getAutocompleteItems(W.value)
4026
4037
  ), w.value = !1);
4027
- }, je = Ke(he, 1e3), _e = () => {
4038
+ }, je = Ge(he, 1e3), Te = () => {
4028
4039
  w.value = !0, je();
4029
4040
  }, ke = (j, F) => {
4030
4041
  var Z, te;
4031
4042
  if (s(j) ? j.data === " " || j.data === "," || j.data === ";" : !0) {
4032
4043
  let we = !1;
4033
- if ((Z = u.value) != null && Z.isOpen() && M.value.length && !F)
4044
+ if ((Z = u.value) != null && Z.isOpen() && A.value.length && !F)
4034
4045
  (te = u.value) == null || te.selectActive(), we = !0;
4035
4046
  else {
4036
- const C = q.value.trim().substring(0, q.value.length - (s(j) ? 1 : 0)), K = U.value.includes(C);
4047
+ const C = W.value.trim().substring(0, W.value.length - (s(j) ? 1 : 0)), K = U.value.includes(C);
4037
4048
  C.length > 0 && !K && (U.value = [...U.value, C], we = !0);
4038
4049
  }
4039
- we && (q.value = "", E.value = !1);
4050
+ we && (W.value = "", E.value = !1);
4040
4051
  } else
4041
- E.value = !!q.value.length;
4052
+ E.value = !!W.value.length;
4042
4053
  };
4043
4054
  return ce(E, (j, F) => {
4044
- var _, Z;
4045
- j && !F ? n.getAutocompleteItems && ((_ = u.value) == null || _.open()) : !j && F && ((Z = u.value) == null || Z.close());
4046
- }), ce(q, () => {
4047
- _e();
4055
+ var T, Z;
4056
+ j && !F ? n.getAutocompleteItems && ((T = u.value) == null || T.open()) : !j && F && ((Z = u.value) == null || Z.close());
4057
+ }), ce(W, () => {
4058
+ Te();
4048
4059
  }), ae(() => {
4049
4060
  he();
4050
- }), t({ resolveAutocompleteItems: he }), (j, F) => (a(), O(l(Ts), {
4061
+ }), t({ resolveAutocompleteItems: he }), (j, F) => (a(), O(l(_s), {
4051
4062
  modelValue: U.value,
4052
- "onUpdate:modelValue": F[5] || (F[5] = (_) => U.value = _),
4063
+ "onUpdate:modelValue": F[5] || (F[5] = (T) => U.value = T),
4053
4064
  as: "div",
4054
4065
  multiple: "",
4055
4066
  clearable: "",
4056
4067
  class: b([e.wrapperClasses])
4057
4068
  }, {
4058
- default: A(() => [
4069
+ default: M(() => [
4059
4070
  V(Da, {
4060
4071
  ref_key: "ctxManager",
4061
4072
  ref: u
4062
4073
  }, {
4063
- default: A(() => [
4074
+ default: M(() => [
4064
4075
  p("label", {
4065
4076
  for: e.name,
4066
4077
  class: b(l(g))
@@ -4068,51 +4079,51 @@ const Da = /* @__PURE__ */ P({
4068
4079
  p("span", null, z(l(y)), 1)
4069
4080
  ], 10, Ea),
4070
4081
  p("div", {
4071
- class: b(["relative flex flex-wrap items-center space-x-1 px-2 py-1", Me.value])
4082
+ class: b(["relative flex flex-wrap items-center space-x-1 px-2 py-1", Ae.value])
4072
4083
  }, [
4073
- (a(!0), f(H, null, G(U.value, (_) => (a(), O(Xe, {
4074
- key: _,
4084
+ (a(!0), f(H, null, G(U.value, (T) => (a(), O(Ze, {
4085
+ key: T,
4075
4086
  "icon-left": e.disabled ? void 0 : l(xe),
4076
4087
  "clickable-icon": "",
4077
4088
  size: "lg",
4078
- onClickIcon: () => Pe(_)
4089
+ onClickIcon: () => Pe(T)
4079
4090
  }, {
4080
- default: A(() => [
4081
- D(z(_), 1)
4091
+ default: M(() => [
4092
+ D(z(T), 1)
4082
4093
  ]),
4083
4094
  _: 2
4084
4095
  }, 1032, ["icon-left", "onClickIcon"]))), 128)),
4085
4096
  ue(p("input", {
4086
4097
  ref_key: "inputEl",
4087
4098
  ref: h,
4088
- "onUpdate:modelValue": F[0] || (F[0] = (_) => q.value = _),
4099
+ "onUpdate:modelValue": F[0] || (F[0] = (T) => W.value = T),
4089
4100
  disabled: e.disabled,
4090
- class: b(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [l(r), Ae.value]]),
4101
+ class: b(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [l(r), Me.value]]),
4091
4102
  style: { "flex-basis": "70px", "min-width": "70px" },
4092
4103
  placeholder: U.value.length ? void 0 : e.placeholder,
4093
4104
  onInput: ke,
4094
4105
  onKeydown: [
4095
4106
  ve(me, ["escape"]),
4096
- F[1] || (F[1] = ve(pe((_) => ke(_, !0), ["stop", "prevent"]), ["enter"])),
4107
+ F[1] || (F[1] = ve(pe((T) => ke(T, !0), ["stop", "prevent"]), ["enter"])),
4097
4108
  ve(ke, ["tab"]),
4098
4109
  ve(ee, ["backspace"]),
4099
4110
  ve(fe, ["arrow-up"]),
4100
4111
  ve(X, ["arrow-down"])
4101
4112
  ],
4102
- onBlur: F[2] || (F[2] = (_) => E.value = !1)
4113
+ onBlur: F[2] || (F[2] = (T) => E.value = !1)
4103
4114
  }, null, 42, Ua), [
4104
- [We, q.value]
4115
+ [He, W.value]
4105
4116
  ]),
4106
4117
  re.value ? (a(), f("a", {
4107
4118
  key: 0,
4108
4119
  title: "Clear input",
4109
4120
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
4110
4121
  onClick: F[3] || (F[3] = //@ts-ignore
4111
- (..._) => l(S) && l(S)(..._)),
4122
+ (...T) => l(S) && l(S)(...T)),
4112
4123
  onKeydown: F[4] || (F[4] = //@ts-ignore
4113
- (..._) => l(S) && l(S)(..._))
4124
+ (...T) => l(S) && l(S)(...T))
4114
4125
  }, [
4115
- qa,
4126
+ Wa,
4116
4127
  V(l(xe), {
4117
4128
  class: "h-5 w-5 text-foreground",
4118
4129
  "aria-hidden": "true"
@@ -4141,22 +4152,22 @@ const Da = /* @__PURE__ */ P({
4141
4152
  "leave-to": "opacity-0",
4142
4153
  class: "relative px-0.5"
4143
4154
  }, {
4144
- default: A(() => [
4155
+ default: M(() => [
4145
4156
  V(l(Fs), { class: "absolute top-1 max-h-60 w-full overflow-auto simple-scrollbar rounded-md bg-foundation-2 py-1 shadow label label--light outline outline-2 outline-primary-muted focus:outline-none" }, {
4146
- default: A(() => [
4157
+ default: M(() => [
4147
4158
  w.value ? (a(), f("div", {
4148
4159
  key: 0,
4149
- class: b(["px-1", M.value.length ? "mb-1" : ""])
4160
+ class: b(["px-1", A.value.length ? "mb-1" : ""])
4150
4161
  }, [
4151
- V(Qe, { loading: !0 })
4162
+ V(Je, { loading: !0 })
4152
4163
  ], 2)) : I("", !0),
4153
- !M.value.length && !w.value ? (a(), f("div", Wa, Ka)) : I("", !0),
4154
- M.value.length ? (a(!0), f(H, { key: 2 }, G(M.value, (_) => (a(), O(l(Rs), {
4155
- key: _,
4164
+ !A.value.length && !w.value ? (a(), f("div", qa, Ka)) : I("", !0),
4165
+ A.value.length ? (a(!0), f(H, { key: 2 }, G(A.value, (T) => (a(), O(l(Rs), {
4166
+ key: T,
4156
4167
  as: "template",
4157
- value: _
4168
+ value: T
4158
4169
  }, {
4159
- default: A(({ selected: Z, active: te }) => [
4170
+ default: M(({ selected: Z, active: te }) => [
4160
4171
  p("li", {
4161
4172
  class: b(["relative cursor-pointer select-none py-1.5 pl-3", {
4162
4173
  "text-primary": te,
@@ -4165,7 +4176,7 @@ const Da = /* @__PURE__ */ P({
4165
4176
  }, [
4166
4177
  p("span", {
4167
4178
  class: b(["block truncate", { "font-medium": Z, "font-normal": !Z }])
4168
- }, z(_), 3),
4179
+ }, z(T), 3),
4169
4180
  Z ? (a(), f("span", {
4170
4181
  key: 0,
4171
4182
  class: b(["absolute inset-y-0 right-0 flex items-center pr-4", { "text-primary": te, "text-foreground": !te }])
@@ -4283,7 +4294,7 @@ function $t(e) {
4283
4294
  const Xa = {
4284
4295
  key: 1,
4285
4296
  class: "flex h-full w-full select-none items-center justify-center"
4286
- }, Za = { key: 2 }, Ee = /* @__PURE__ */ P({
4297
+ }, Za = { key: 2 }, Ue = /* @__PURE__ */ P({
4287
4298
  __name: "Avatar",
4288
4299
  props: {
4289
4300
  user: { default: null },
@@ -4328,7 +4339,7 @@ const Xa = {
4328
4339
  R(r.$slots, "absolute-anchor")
4329
4340
  ], 2));
4330
4341
  }
4331
- }), nr = /* @__PURE__ */ P({
4342
+ }), lr = /* @__PURE__ */ P({
4332
4343
  __name: "AvatarGroup",
4333
4344
  props: {
4334
4345
  users: { default: () => [] },
@@ -4357,17 +4368,17 @@ const Xa = {
4357
4368
  ref: s,
4358
4369
  class: b(`flex flex-wrap overflow-hidden ${e.overlap ? "-space-x-2 " : ""} ${l(n)}`)
4359
4370
  }, [
4360
- (a(!0), f(H, null, G(u.value, (g, y) => (a(), O(Ee, {
4371
+ (a(!0), f(H, null, G(u.value, (g, y) => (a(), O(Ue, {
4361
4372
  key: g.id || y,
4362
4373
  user: g,
4363
4374
  size: e.size
4364
4375
  }, null, 8, ["user", "size"]))), 128))
4365
4376
  ], 2),
4366
- m.value ? (a(), O(Ee, {
4377
+ m.value ? (a(), O(Ue, {
4367
4378
  key: 0,
4368
4379
  size: e.size
4369
4380
  }, {
4370
- default: A(() => [
4381
+ default: M(() => [
4371
4382
  D(" +" + z(m.value), 1)
4372
4383
  ]),
4373
4384
  _: 1
@@ -4406,9 +4417,9 @@ const Xa = {
4406
4417
  }, Ya = { class: "opacity-0 transition-all absolute group-hover:opacity-100 inset-0 flex items-end justify-center bottom-4" }, eo = {
4407
4418
  key: 2,
4408
4419
  class: "w-full text-center text-danger text-sm"
4409
- }, lr = /* @__PURE__ */ P({
4420
+ }, ar = /* @__PURE__ */ P({
4410
4421
  __name: "AvatarEditable",
4411
- props: nt({
4422
+ props: _e({
4412
4423
  modelValue: null,
4413
4424
  placeholder: null,
4414
4425
  name: null,
@@ -4420,7 +4431,7 @@ const Xa = {
4420
4431
  }, {
4421
4432
  editMode: { type: Boolean, local: !0 }
4422
4433
  }),
4423
- emits: nt(["save", "update:modelValue"], ["update:editMode"]),
4434
+ emits: _e(["save", "update:modelValue"], ["update:editMode"]),
4424
4435
  setup(e, { expose: t, emit: i }) {
4425
4436
  const s = Ft({
4426
4437
  loader: () => import("./AvatarEditor-ce4e7960.js"),
@@ -4447,7 +4458,7 @@ const Xa = {
4447
4458
  onCancel: d[0] || (d[0] = (B) => u.value = !1),
4448
4459
  onSave: v
4449
4460
  }, null, 8, ["user", "disabled", "size"])) : (a(), f("div", Ja, [
4450
- V(Ee, {
4461
+ V(Ue, {
4451
4462
  user: r.value,
4452
4463
  size: e.size
4453
4464
  }, null, 8, ["user", "size"]),
@@ -4457,7 +4468,7 @@ const Xa = {
4457
4468
  color: "secondary",
4458
4469
  onClick: d[1] || (d[1] = (B) => u.value = !0)
4459
4470
  }, {
4460
- default: A(() => [
4471
+ default: M(() => [
4461
4472
  D(" Change ")
4462
4473
  ]),
4463
4474
  _: 1
@@ -4489,10 +4500,10 @@ ne(no, "defaultMessage", "getCurrentInstance() returned null. Method must be cal
4489
4500
  class lo extends de {
4490
4501
  }
4491
4502
  ne(lo, "defaultMessage", "Operation not supported in current (server or client) environment");
4492
- var Je = /* @__PURE__ */ ((e) => (e.AnyAudio = "audio/*", e.AnyVideo = "video/*", e.AnyImage = "image/*", e))(Je || {});
4503
+ var Ye = /* @__PURE__ */ ((e) => (e.AnyAudio = "audio/*", e.AnyVideo = "video/*", e.AnyImage = "image/*", e))(Ye || {});
4493
4504
  function ao(e, t) {
4494
4505
  const i = Dt(
4495
- Object.values(Je),
4506
+ Object.values(Ye),
4496
4507
  t
4497
4508
  );
4498
4509
  for (const n of i)
@@ -4523,7 +4534,7 @@ function oo(e) {
4523
4534
  return t ? `.${t}` : null;
4524
4535
  }
4525
4536
  function ro(e) {
4526
- return e.startsWith(".") || Object.values(Je).includes(e);
4537
+ return e.startsWith(".") || Object.values(Ye).includes(e);
4527
4538
  }
4528
4539
  function rt(e) {
4529
4540
  const t = (n) => parseFloat(n.toFixed(2)).toString();
@@ -4609,7 +4620,7 @@ function fo(e) {
4609
4620
  class St extends de {
4610
4621
  }
4611
4622
  ne(St, "defaultMessage", "The selected file's size is too large");
4612
- const po = ["accept", "multiple"], ar = /* @__PURE__ */ P({
4623
+ const po = ["accept", "multiple"], or = /* @__PURE__ */ P({
4613
4624
  __name: "Zone",
4614
4625
  props: {
4615
4626
  accept: null,
@@ -4672,8 +4683,8 @@ export {
4672
4683
  uo as BlobUploadStatus,
4673
4684
  er as CommonAlert,
4674
4685
  Lo as CommonAnimationInstructional,
4675
- Xe as CommonBadge,
4676
- Qe as CommonLoadingBar,
4686
+ Ze as CommonBadge,
4687
+ Je as CommonLoadingBar,
4677
4688
  Na as CommonLoadingIcon,
4678
4689
  Vo as CommonStepsBullet,
4679
4690
  zo as CommonStepsNumber,
@@ -4681,23 +4692,23 @@ export {
4681
4692
  no as ComposableInvokedOutOfScopeError,
4682
4693
  oe as FormButton,
4683
4694
  Oo as FormCardButton,
4684
- Ao as FormCheckbox,
4695
+ Mo as FormCheckbox,
4685
4696
  Ro as FormClipboardInput,
4686
- ar as FormFileUploadZone,
4687
- Mo as FormRadio,
4688
- To as FormSelectBadges,
4697
+ or as FormFileUploadZone,
4698
+ Ao as FormRadio,
4699
+ _o as FormSelectBadges,
4689
4700
  Ct as FormSelectBase,
4690
- _o as FormSelectSourceApps,
4701
+ To as FormSelectSourceApps,
4691
4702
  Fo as FormSwitch,
4692
- sr as FormTags,
4703
+ nr as FormTags,
4693
4704
  Po as FormTextArea,
4694
4705
  bl as FormTextInput,
4695
4706
  So as GlobalToastRenderer,
4696
4707
  ge as GridListToggleValue,
4697
- De as HorizontalDirection,
4708
+ Ee as HorizontalDirection,
4698
4709
  Jo as InfiniteLoading,
4699
- qo as LayoutDialog,
4700
- Wo as LayoutDialogSection,
4710
+ Wo as LayoutDialog,
4711
+ qo as LayoutDialogSection,
4701
4712
  Ho as LayoutDisclosure,
4702
4713
  Ko as LayoutGridListToggle,
4703
4714
  Xo as LayoutMenu,
@@ -4712,13 +4723,14 @@ export {
4712
4723
  ga as ThrottleOrDebounce,
4713
4724
  Ce as ToastNotificationType,
4714
4725
  so as UninitializedResourceAccessError,
4715
- Je as UniqueFileTypeSpecifier,
4726
+ Ye as UniqueFileTypeSpecifier,
4716
4727
  lo as UnsupportedEnvironmentError,
4717
- Ee as UserAvatar,
4718
- lr as UserAvatarEditable,
4719
- nr as UserAvatarGroup,
4728
+ Ue as UserAvatar,
4729
+ ar as UserAvatarEditable,
4730
+ lr as UserAvatarGroup,
4720
4731
  jo as ValidationHelpers,
4721
- Re as clientOs,
4732
+ sr as buildManualPromise,
4733
+ De as clientOs,
4722
4734
  Do as getKeyboardShortcutTitle,
4723
4735
  bt as keyboardClick,
4724
4736
  Eo as onKeyboardShortcut,