@speckle/ui-components 2.15.2-alpha1 → 2.15.2-alpha2

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