@speckle/ui-components 2.14.7-alpha1 → 2.14.8-alpha1

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