@speckle/ui-components 2.16.1-alpha2 → 2.16.1-alpha4

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 j, resolveDynamicComponent as G, computed as c, openBlock as a, createBlock as L, normalizeClass as x, withCtx as _, createCommentVNode as I, renderSlot as z, createTextVNode as A, createElementBlock as p, createElementVNode as d, createVNode as V, Transition as be, unref as n, toDisplayString as B, toRefs as Y, Fragment as T, renderList as U, ref as M, onMounted as Z, mergeProps as ie, withDirectives as ae, isRef as de, vModelText as Me, useSlots as ye, vModelDynamic as et, pushScopeId as tt, popScopeId as st, watch as oe, withModifiers as ue, normalizeStyle as re, useModel as lt, onBeforeUnmount as ze } from "vue";
2
- import { isObjectLike as Pe, clamp as je, isString as ce, isUndefined as Q, isArray as H, debounce as Re, throttle as nt, noop as at } from "lodash";
3
- import { ArrowPathIcon as ot, ExclamationCircleIcon as rt, ChevronUpIcon as De, ChevronDownIcon as it, XMarkIcon as xe, MagnifyingGlassIcon as ut, CheckIcon as Te, Bars3Icon as ct, Squares2X2Icon as dt } from "@heroicons/vue/24/solid";
4
- import { CheckCircleIcon as ft, XCircleIcon as pt, ExclamationCircleIcon as ht, InformationCircleIcon as mt, XMarkIcon as gt, CheckIcon as vt, ExclamationTriangleIcon as bt } from "@heroicons/vue/24/outline";
5
- import { XMarkIcon as fe, CheckIcon as yt, CheckCircleIcon as Fe, ExclamationCircleIcon as ke, EnvelopeIcon as xt, KeyIcon as kt, XCircleIcon as wt, InformationCircleIcon as Ct } from "@heroicons/vue/20/solid";
6
- import { useField as we } from "vee-validate";
7
- import { nanoid as Ce } from "nanoid";
8
- import { isNullOrUndefined as $t, SourceApps as St, getClientOperatingSystem as It, OperatingSystem as me } from "@speckle/shared";
9
- import { useResizeObserver as Bt, useMutationObserver as _t, onKeyDown as Vt, isClient as $e, computedAsync as Lt } from "@vueuse/core";
10
- import { Listbox as Pt, ListboxLabel as jt, ListboxButton as Ot, ListboxOptions as At, ListboxOption as Mt, Switch as zt, TransitionRoot as Rt, Dialog as Dt, TransitionChild as Oe, DialogPanel as Tt, Disclosure as Ft, DisclosureButton as Et, DisclosurePanel as Ut, Menu as Wt, MenuButton as qt, MenuItems as Ht, MenuItem as Gt } from "@headlessui/vue";
11
- import { directive as Ee } from "vue-tippy";
12
- import Kt from "v3-infinite-loading";
13
- const Xt = {
1
+ import { defineComponent as O, resolveDynamicComponent as G, computed as c, openBlock as a, createBlock as j, normalizeClass as b, withCtx as B, createCommentVNode as S, renderSlot as R, createTextVNode as M, createElementBlock as p, createElementVNode as d, createVNode as V, Transition as xe, unref as n, toDisplayString as I, toRefs as Y, Fragment as F, renderList as E, ref as z, onMounted as Z, mergeProps as ie, withDirectives as ae, isRef as fe, vModelText as ze, useSlots as ke, vModelDynamic as tt, pushScopeId as st, popScopeId as lt, watch as oe, withModifiers as ue, normalizeStyle as re, useModel as nt, onBeforeUnmount as Re } from "vue";
2
+ import { isObjectLike as ge, clamp as Oe, isArray as U, isString as de, isUndefined as Q, debounce as Te, throttle as at, noop as ot } from "lodash";
3
+ import { ArrowPathIcon as rt, ExclamationCircleIcon as it, ChevronUpIcon as De, ChevronDownIcon as ut, XMarkIcon as we, MagnifyingGlassIcon as ct, CheckIcon as Fe, Bars3Icon as dt, Squares2X2Icon as ft } from "@heroicons/vue/24/solid";
4
+ import { CheckCircleIcon as pt, XCircleIcon as ht, ExclamationCircleIcon as mt, InformationCircleIcon as gt, XMarkIcon as vt, CheckIcon as bt, ExclamationTriangleIcon as yt } from "@heroicons/vue/24/outline";
5
+ import { XMarkIcon as pe, CheckIcon as xt, CheckCircleIcon as Ee, ExclamationCircleIcon as Ce, EnvelopeIcon as kt, KeyIcon as wt, XCircleIcon as Ct, InformationCircleIcon as $t } from "@heroicons/vue/20/solid";
6
+ import { useField as $e } from "vee-validate";
7
+ import { nanoid as Se } from "nanoid";
8
+ import { isNullOrUndefined as St, SourceApps as It, getClientOperatingSystem as Bt, OperatingSystem as ve } from "@speckle/shared";
9
+ import { useResizeObserver as Vt, useMutationObserver as Pt, onKeyDown as Lt, isClient as Ie, computedAsync as jt } from "@vueuse/core";
10
+ import { Listbox as _t, ListboxLabel as Ot, ListboxButton as At, ListboxOptions as Mt, ListboxOption as zt, Switch as Rt, TransitionRoot as Tt, Dialog as Dt, TransitionChild as Ae, DialogPanel as Ft, Disclosure as Et, DisclosureButton as Ut, DisclosurePanel as Wt, Menu as qt, MenuButton as Ht, MenuItems as Gt, MenuItem as Kt } from "@headlessui/vue";
11
+ import { directive as Ue } from "vue-tippy";
12
+ import Xt from "v3-infinite-loading";
13
+ const Nt = {
14
14
  key: 2,
15
15
  style: { margin: "0 !important", width: "0.01px" }
16
- }, Nt = /* @__PURE__ */ j({
16
+ }, Jt = /* @__PURE__ */ O({
17
17
  __name: "Button",
18
18
  props: {
19
19
  /**
@@ -141,12 +141,12 @@ const Xt = {
141
141
  },
142
142
  emits: ["click"],
143
143
  setup(e, { emit: l }) {
144
- const t = e, s = G("NuxtLink"), o = G("RouterLink"), f = c(() => t.linkComponent ? t.linkComponent : t.external ? "a" : Pe(s) ? s : Pe(o) ? o : "a"), i = c(() => {
144
+ const t = e, s = G("NuxtLink"), o = G("RouterLink"), f = c(() => t.linkComponent ? t.linkComponent : t.external ? "a" : ge(s) ? s : ge(o) ? o : "a"), r = c(() => {
145
145
  if (!t.to)
146
146
  return t.submit ? "submit" : "button";
147
- }), r = c(() => t.disabled || t.loading), m = c(() => t.loading ? ot : t.iconLeft), u = c(() => {
147
+ }), i = c(() => t.disabled || t.loading), m = c(() => t.loading ? rt : t.iconLeft), u = c(() => {
148
148
  const v = [];
149
- if (v.push("border-2"), r.value)
149
+ if (v.push("border-2"), i.value)
150
150
  v.push(
151
151
  t.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
152
152
  );
@@ -190,7 +190,7 @@ const Xt = {
190
190
  }), y = c(() => {
191
191
  const v = [];
192
192
  if (!t.text && !t.link)
193
- if (r.value)
193
+ if (i.value)
194
194
  v.push(
195
195
  (t.outlined, "text-foreground-disabled")
196
196
  );
@@ -237,7 +237,7 @@ const Xt = {
237
237
  break;
238
238
  }
239
239
  else
240
- r.value ? v.push("text-foreground-disabled") : t.color === "invert" ? v.push(
240
+ i.value ? v.push("text-foreground-disabled") : t.color === "invert" ? v.push(
241
241
  "text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
242
242
  ) : t.color === "secondary" ? v.push("text-foreground-2 hover:text-primary-focus") : t.color === "success" ? v.push("text-success") : t.color === "warning" ? v.push("text-warning") : t.color === "info" ? v.push("text-info") : t.color === "danger" ? v.push("text-danger") : v.push("text-primary hover:text-primary-focus");
243
243
  return v.join(" ");
@@ -246,7 +246,7 @@ const Xt = {
246
246
  return v.push(t.rounded ? "rounded-full" : "rounded-md"), v.join(" ");
247
247
  }), g = c(() => {
248
248
  const v = [];
249
- if (!r.value)
249
+ if (!i.value)
250
250
  switch (t.color) {
251
251
  case "invert":
252
252
  v.push("hover:ring-4 ring-white/50");
@@ -269,7 +269,7 @@ const Xt = {
269
269
  break;
270
270
  }
271
271
  return v.join(" ");
272
- }), w = c(() => {
272
+ }), C = c(() => {
273
273
  switch (t.size) {
274
274
  case "xs":
275
275
  return "h-5 text-xs font-medium xxx-tracking-wide";
@@ -297,28 +297,28 @@ const Xt = {
297
297
  case "base":
298
298
  return "px-3";
299
299
  }
300
- }), P = c(() => {
300
+ }), _ = c(() => {
301
301
  const v = [];
302
- return t.fullWidth && v.push("w-full"), r.value && v.push("cursor-not-allowed"), v.join(" ");
303
- }), b = c(() => {
302
+ return t.fullWidth && v.push("w-full"), i.value && v.push("cursor-not-allowed"), v.join(" ");
303
+ }), x = c(() => {
304
304
  const v = [];
305
- return !r.value && !t.link && !t.text && v.push("active:scale-[0.97]"), !r.value && t.link && v.push(
305
+ return !i.value && !t.link && !t.text && v.push("active:scale-[0.97]"), !i.value && t.link && v.push(
306
306
  "underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
307
307
  ), v.join(" ");
308
308
  }), $ = c(() => {
309
309
  const v = t.link || t.text;
310
310
  return [
311
311
  "transition inline-flex justify-center items-center space-x-2 outline-none select-none",
312
- P.value,
313
- w.value,
312
+ _.value,
313
+ C.value,
314
314
  y.value,
315
315
  v ? "" : u.value,
316
316
  v ? "" : k.value,
317
317
  v ? "" : g.value,
318
318
  t.link ? "" : h.value,
319
- b.value
319
+ x.value
320
320
  ].join(" ");
321
- }), S = c(() => {
321
+ }), P = c(() => {
322
322
  const v = [""];
323
323
  switch (t.loading && v.push("animate-spin"), t.size) {
324
324
  case "xs":
@@ -339,46 +339,46 @@ const Xt = {
339
339
  break;
340
340
  }
341
341
  return v.join(" ");
342
- }), F = (v) => {
343
- if (r.value) {
342
+ }), L = (v) => {
343
+ if (i.value) {
344
344
  v.preventDefault(), v.stopPropagation(), v.stopImmediatePropagation();
345
345
  return;
346
346
  }
347
347
  l("click", v);
348
348
  };
349
- return (v, D) => (a(), L(G(e.to ? f.value : "button"), {
349
+ return (v, D) => (a(), j(G(e.to ? f.value : "button"), {
350
350
  href: e.to,
351
351
  to: e.to,
352
- type: i.value,
352
+ type: r.value,
353
353
  external: e.external,
354
- class: x($.value),
355
- disabled: r.value,
354
+ class: b($.value),
355
+ disabled: i.value,
356
356
  role: "button",
357
- onClick: F
357
+ onClick: L
358
358
  }, {
359
- default: _(() => [
360
- m.value ? (a(), L(G(m.value), {
359
+ default: B(() => [
360
+ m.value ? (a(), j(G(m.value), {
361
361
  key: 0,
362
- class: x(`${S.value} ${e.hideText ? "" : "mr-2"}`)
363
- }, null, 8, ["class"])) : I("", !0),
364
- e.hideText ? (a(), p("div", Xt, "   ")) : z(v.$slots, "default", { key: 1 }, () => [
365
- A("Button")
362
+ class: b(`${P.value} ${e.hideText ? "" : "mr-2"}`)
363
+ }, null, 8, ["class"])) : S("", !0),
364
+ e.hideText ? (a(), p("div", Nt, "   ")) : R(v.$slots, "default", { key: 1 }, () => [
365
+ M("Button")
366
366
  ], !0),
367
- e.iconRight || !e.loading ? (a(), L(G(e.iconRight), {
367
+ e.iconRight || !e.loading ? (a(), j(G(e.iconRight), {
368
368
  key: 3,
369
- class: x(`${S.value} ${e.hideText ? "" : "ml-2"}`)
370
- }, null, 8, ["class"])) : I("", !0)
369
+ class: b(`${P.value} ${e.hideText ? "" : "ml-2"}`)
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 Ue = (e, l) => {
376
+ const We = (e, l) => {
377
377
  const t = e.__vccOpts || e;
378
378
  for (const [s, o] of l)
379
379
  t[s] = o;
380
380
  return t;
381
- }, ee = /* @__PURE__ */ Ue(Nt, [["__scopeId", "data-v-38aa371e"]]), Jt = /* @__PURE__ */ j({
381
+ }, ee = /* @__PURE__ */ We(Jt, [["__scopeId", "data-v-38aa371e"]]), Qt = /* @__PURE__ */ O({
382
382
  __name: "Link",
383
383
  props: {
384
384
  to: {
@@ -435,7 +435,7 @@ const Ue = (e, l) => {
435
435
  }
436
436
  l("click", o);
437
437
  };
438
- return (o, f) => (a(), L(ee, {
438
+ return (o, f) => (a(), j(ee, {
439
439
  link: "",
440
440
  to: e.to,
441
441
  external: e.external,
@@ -448,9 +448,9 @@ const Ue = (e, l) => {
448
448
  role: "link",
449
449
  onClickCapture: s
450
450
  }, {
451
- default: _(() => [
452
- z(o.$slots, "default", {}, () => [
453
- A("Link")
451
+ default: B(() => [
452
+ R(o.$slots, "default", {}, () => [
453
+ M("Link")
454
454
  ])
455
455
  ]),
456
456
  _: 3
@@ -458,22 +458,22 @@ const Ue = (e, l) => {
458
458
  }
459
459
  });
460
460
  var se = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(se || {});
461
- const Qt = {
461
+ const Yt = {
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
- }, Yt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, Zt = {
464
+ }, Zt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, es = {
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
- }, es = { class: "p-4" }, ts = { class: "flex items-start" }, ss = { class: "flex-shrink-0" }, ls = { class: "ml-2 w-0 flex-1 flex flex-col" }, ns = {
467
+ }, ts = { class: "p-4" }, ss = { class: "flex items-start" }, ls = { class: "flex-shrink-0" }, ns = { class: "ml-2 w-0 flex-1 flex flex-col" }, as = {
468
468
  key: 0,
469
469
  class: "text-foreground font-bold"
470
- }, as = {
470
+ }, os = {
471
471
  key: 1,
472
472
  class: "label label--light text-foreground-2"
473
- }, os = {
473
+ }, rs = {
474
474
  key: 2,
475
475
  class: "flex justify-start mt-2"
476
- }, rs = /* @__PURE__ */ d("span", { class: "sr-only" }, "Close", -1), An = /* @__PURE__ */ j({
476
+ }, is = /* @__PURE__ */ d("span", { class: "sr-only" }, "Close", -1), On = /* @__PURE__ */ O({
477
477
  __name: "ToastRenderer",
478
478
  props: {
479
479
  notification: null
@@ -482,18 +482,18 @@ const Qt = {
482
482
  setup(e, { emit: l }) {
483
483
  const t = e, s = c(
484
484
  () => {
485
- var i, r;
486
- return !((i = t.notification) != null && i.description) && !((r = t.notification) != null && r.cta);
485
+ var r, i;
486
+ return !((r = t.notification) != null && r.description) && !((i = t.notification) != null && i.cta);
487
487
  }
488
488
  ), o = () => {
489
489
  l("update:notification", null);
490
- }, f = (i) => {
491
- var r, m, u;
492
- (u = (m = (r = t.notification) == null ? void 0 : r.cta) == null ? void 0 : m.onClick) == null || u.call(m, i), o();
490
+ }, f = (r) => {
491
+ var i, m, u;
492
+ (u = (m = (i = t.notification) == null ? void 0 : i.cta) == null ? void 0 : m.onClick) == null || u.call(m, r), o();
493
493
  };
494
- return (i, r) => (a(), p("div", Qt, [
495
- d("div", Yt, [
496
- V(be, {
494
+ return (r, i) => (a(), p("div", Yt, [
495
+ d("div", Zt, [
496
+ V(xe, {
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 Qt = {
501
501
  "leave-from-class": "opacity-100",
502
502
  "leave-to-class": "opacity-0"
503
503
  }, {
504
- default: _(() => [
505
- e.notification ? (a(), p("div", Zt, [
506
- d("div", es, [
507
- d("div", ts, [
508
- d("div", ss, [
509
- e.notification.type === n(se).Success ? (a(), L(n(ft), {
504
+ default: B(() => [
505
+ e.notification ? (a(), p("div", es, [
506
+ d("div", ts, [
507
+ d("div", ss, [
508
+ d("div", ls, [
509
+ e.notification.type === n(se).Success ? (a(), j(n(pt), {
510
510
  key: 0,
511
511
  class: "h-6 w-6 text-success",
512
512
  "aria-hidden": "true"
513
- })) : e.notification.type === n(se).Danger ? (a(), L(n(pt), {
513
+ })) : e.notification.type === n(se).Danger ? (a(), j(n(ht), {
514
514
  key: 1,
515
515
  class: "h-6 w-6 text-danger",
516
516
  "aria-hidden": "true"
517
- })) : e.notification.type === n(se).Warning ? (a(), L(n(ht), {
517
+ })) : e.notification.type === n(se).Warning ? (a(), j(n(mt), {
518
518
  key: 2,
519
519
  class: "h-6 w-6 text-warning",
520
520
  "aria-hidden": "true"
521
- })) : e.notification.type === n(se).Info ? (a(), L(n(mt), {
521
+ })) : e.notification.type === n(se).Info ? (a(), j(n(gt), {
522
522
  key: 3,
523
523
  class: "h-6 w-6 text-info",
524
524
  "aria-hidden": "true"
525
- })) : I("", !0)
525
+ })) : S("", !0)
526
526
  ]),
527
- d("div", ls, [
528
- e.notification.title ? (a(), p("p", ns, B(e.notification.title), 1)) : I("", !0),
529
- e.notification.description ? (a(), p("p", as, B(e.notification.description), 1)) : I("", !0),
530
- e.notification.cta ? (a(), p("div", os, [
531
- V(Jt, {
527
+ d("div", ns, [
528
+ e.notification.title ? (a(), p("p", as, I(e.notification.title), 1)) : S("", !0),
529
+ e.notification.description ? (a(), p("p", os, I(e.notification.description), 1)) : S("", !0),
530
+ e.notification.cta ? (a(), p("div", rs, [
531
+ V(Qt, {
532
532
  to: e.notification.cta.url,
533
533
  class: "label",
534
534
  primary: "",
535
535
  onClick: f
536
536
  }, {
537
- default: _(() => [
538
- A(B(e.notification.cta.title), 1)
537
+ default: B(() => [
538
+ M(I(e.notification.cta.title), 1)
539
539
  ]),
540
540
  _: 1
541
541
  }, 8, ["to"])
542
- ])) : I("", !0)
542
+ ])) : S("", !0)
543
543
  ]),
544
544
  d("div", {
545
- class: x(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
545
+ class: b(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
546
546
  }, [
547
547
  d("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
- rs,
553
- V(n(fe), {
552
+ is,
553
+ V(n(pe), {
554
554
  class: "h-6 w-6",
555
555
  "aria-hidden": "true"
556
556
  })
@@ -558,20 +558,20 @@ const Qt = {
558
558
  ], 2)
559
559
  ])
560
560
  ])
561
- ])) : I("", !0)
561
+ ])) : S("", !0)
562
562
  ]),
563
563
  _: 1
564
564
  })
565
565
  ])
566
566
  ]));
567
567
  }
568
- }), is = /* @__PURE__ */ d("circle", {
568
+ }), us = /* @__PURE__ */ d("circle", {
569
569
  cx: "4",
570
570
  cy: "4",
571
571
  r: "3"
572
- }, null, -1), us = [
573
- is
574
- ], We = /* @__PURE__ */ j({
572
+ }, null, -1), cs = [
573
+ us
574
+ ], qe = /* @__PURE__ */ O({
575
575
  __name: "Badge",
576
576
  props: {
577
577
  size: null,
@@ -599,12 +599,12 @@ const Qt = {
599
599
  )) : (u.push("rounded-full"), u.push(
600
600
  t.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
601
601
  )), u.join(" ");
602
- }), i = c(() => {
602
+ }), r = c(() => {
603
603
  const u = [
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
606
  return t.clickableIcon ? u.push("cursor-pointer") : u.push("cursor-default"), u.join(" ");
607
- }), r = c(() => [
607
+ }), i = c(() => [
608
608
  "-ml-0.5 mr-1.5 h-2 w-2",
609
609
  o.value
610
610
  ].join(" ")), m = (u) => {
@@ -615,35 +615,35 @@ const Qt = {
615
615
  l("click-icon", u);
616
616
  };
617
617
  return (u, y) => (a(), p("span", {
618
- class: x(f.value)
618
+ class: b(f.value)
619
619
  }, [
620
620
  e.dot ? (a(), p("svg", {
621
621
  key: 0,
622
- class: x(r.value),
622
+ class: b(i.value),
623
623
  fill: "currentColor",
624
624
  viewBox: "0 0 8 8"
625
- }, us, 2)) : I("", !0),
626
- z(u.$slots, "default", {}, () => [
627
- A("Badge")
625
+ }, cs, 2)) : S("", !0),
626
+ R(u.$slots, "default", {}, () => [
627
+ M("Badge")
628
628
  ]),
629
629
  e.iconLeft ? (a(), p("button", {
630
630
  key: 1,
631
- class: x(i.value),
631
+ class: b(r.value),
632
632
  onClick: y[0] || (y[0] = (k) => m(k))
633
633
  }, [
634
- (a(), L(G(e.iconLeft), {
635
- class: x(["h-4 w-4", o.value])
634
+ (a(), j(G(e.iconLeft), {
635
+ class: b(["h-4 w-4", o.value])
636
636
  }, null, 8, ["class"]))
637
- ], 2)) : I("", !0)
637
+ ], 2)) : S("", !0)
638
638
  ], 2));
639
639
  }
640
640
  });
641
- let Ae = [];
642
- function cs(e) {
643
- Ae = Ae ? e : e.slice();
641
+ let Me = [];
642
+ function ds(e) {
643
+ Me = Me ? e : e.slice();
644
644
  }
645
645
  var le = /* @__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))(le || {});
646
- function qe(e) {
646
+ function He(e) {
647
647
  const {
648
648
  props: {
649
649
  modelValue: l,
@@ -651,51 +651,51 @@ function qe(e) {
651
651
  orientation: s,
652
652
  goVerticalBelow: o,
653
653
  nonInteractive: f,
654
- stepsPadding: i
654
+ stepsPadding: r
655
655
  },
656
- emit: r
656
+ emit: i
657
657
  } = e, m = c(
658
658
  () => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
659
659
  ), u = c({
660
- get: () => je((l == null ? void 0 : l.value) || 0, -1, t.value.length),
661
- set: (b) => r("update:modelValue", je(b, 0, t.value.length))
662
- }), y = (b) => `${b + 1}`, k = (b) => b === u.value, g = (b) => b < u.value, w = (b, $) => {
663
- var F;
660
+ get: () => Oe((l == null ? void 0 : l.value) || 0, -1, t.value.length),
661
+ set: (x) => i("update:modelValue", Oe(x, 0, t.value.length))
662
+ }), y = (x) => `${x + 1}`, k = (x) => x === u.value, g = (x) => x < u.value, C = (x, $) => {
663
+ var L;
664
664
  if (f != null && f.value) {
665
665
  $ == null || $.preventDefault(), $ == null || $.stopPropagation(), $ == null || $.stopImmediatePropagation();
666
666
  return;
667
667
  }
668
- u.value = b;
669
- const S = t.value[u.value];
670
- (F = S == null ? void 0 : S.onClick) == null || F.call(S);
668
+ u.value = x;
669
+ const P = t.value[u.value];
670
+ (L = P == null ? void 0 : P.onClick) == null || L.call(P);
671
671
  }, h = c(() => {
672
- const b = ["flex"];
673
- let $, S;
674
- return (i == null ? void 0 : i.value) === "xs" ? ($ = "space-x-2", S = "space-y-1") : (i == null ? void 0 : i.value) === "sm" ? ($ = "space-x-4", S = "space-y-1") : ($ = "space-x-8", S = "space-y-4"), b.push("flex"), m.value === "vertical" || o != null && o.value ? (b.push(`flex-col ${S} justify-center`), (o == null ? void 0 : o.value) === le.sm ? b.push(
672
+ const x = ["flex"];
673
+ let $, P;
674
+ return (r == null ? void 0 : r.value) === "xs" ? ($ = "space-x-2", P = "space-y-1") : (r == null ? void 0 : r.value) === "sm" ? ($ = "space-x-4", P = "space-y-1") : ($ = "space-x-8", P = "space-y-4"), x.push("flex"), m.value === "vertical" || o != null && o.value ? (x.push(`flex-col ${P} justify-center`), (o == null ? void 0 : o.value) === le.sm ? x.push(
675
675
  `sm:flex-row sm:space-y-0 sm:justify-start sm:${$} sm:items-center`
676
- ) : (o == null ? void 0 : o.value) === le.md ? b.push(
676
+ ) : (o == null ? void 0 : o.value) === le.md ? x.push(
677
677
  `md:flex-row md:space-y-0 md:justify-start md:${$} md:items-center`
678
- ) : (o == null ? void 0 : o.value) === le.lg ? b.push(
678
+ ) : (o == null ? void 0 : o.value) === le.lg ? x.push(
679
679
  `lg:flex-row lg:space-y-0 lg:justify-start lg:${$} lg:items-center`
680
- ) : (o == null ? void 0 : o.value) === le.xl && b.push(
680
+ ) : (o == null ? void 0 : o.value) === le.xl && x.push(
681
681
  `xl:flex-row xl:space-y-0 xl:justify-start xl:${$} xl:items-center`
682
- )) : b.push(`flex-row ${$} items-center`), b.join(" ");
683
- }), P = c(() => {
684
- const b = ["flex items-center"];
685
- return f != null && f.value || b.push("cursor-pointer"), b.join(" ");
682
+ )) : x.push(`flex-row ${$} items-center`), x.join(" ");
683
+ }), _ = c(() => {
684
+ const x = ["flex items-center"];
685
+ return f != null && f.value || x.push("cursor-pointer"), x.join(" ");
686
686
  });
687
687
  return {
688
688
  value: u,
689
689
  isCurrentStep: k,
690
690
  isFinishedStep: g,
691
- switchStep: w,
691
+ switchStep: C,
692
692
  getStepDisplayValue: y,
693
693
  listClasses: h,
694
- linkClasses: P,
694
+ linkClasses: _,
695
695
  orientation: m
696
696
  };
697
697
  }
698
- cs([
698
+ ds([
699
699
  "sm:space-x-8",
700
700
  "md:space-x-8",
701
701
  "lg:space-x-8",
@@ -709,16 +709,16 @@ cs([
709
709
  "lg:space-x-4",
710
710
  "xl:space-x-4"
711
711
  ]);
712
- const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, hs = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, ms = { class: "flex flex-col" }, gs = {
712
+ const fs = ["aria-label"], ps = ["href", "onClick"], hs = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, ms = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, gs = { class: "flex flex-col" }, vs = {
713
713
  key: 0,
714
714
  class: "label label--light text-foreground"
715
- }, vs = ["href", "onClick"], bs = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, ys = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, xs = { class: "flex flex-col" }, ks = {
715
+ }, bs = ["href", "onClick"], ys = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, xs = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, ks = { class: "flex flex-col" }, ws = {
716
716
  key: 0,
717
717
  class: "label label--light text-foreground"
718
- }, ws = ["href", "onClick"], Cs = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, $s = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, Ss = { class: "flex flex-col" }, Is = {
718
+ }, Cs = ["href", "onClick"], $s = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, Ss = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, Is = { class: "flex flex-col" }, Bs = {
719
719
  key: 0,
720
720
  class: "label label--light"
721
- }, Mn = /* @__PURE__ */ j({
721
+ }, An = /* @__PURE__ */ O({
722
722
  __name: "Number",
723
723
  props: {
724
724
  ariaLabel: null,
@@ -735,10 +735,10 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
735
735
  isCurrentStep: s,
736
736
  isFinishedStep: o,
737
737
  switchStep: f,
738
- getStepDisplayValue: i,
739
- listClasses: r,
738
+ getStepDisplayValue: r,
739
+ listClasses: i,
740
740
  linkClasses: m
741
- } = qe({
741
+ } = He({
742
742
  props: Y(t),
743
743
  emit: l
744
744
  });
@@ -747,77 +747,77 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
747
747
  "aria-label": e.ariaLabel || "Progress steps"
748
748
  }, [
749
749
  d("ol", {
750
- class: x(n(r))
750
+ class: b(n(i))
751
751
  }, [
752
- (a(!0), p(T, null, U(e.steps, (k, g) => (a(), p("li", {
752
+ (a(!0), p(F, null, E(e.steps, (k, g) => (a(), p("li", {
753
753
  key: k.name
754
754
  }, [
755
755
  n(o)(g) ? (a(), p("a", {
756
756
  key: 0,
757
757
  href: k.href,
758
- class: x(n(m)),
759
- onClick: (w) => n(f)(g, w)
758
+ class: b(n(m)),
759
+ onClick: (C) => n(f)(g, C)
760
760
  }, [
761
- d("div", ps, [
762
- d("div", hs, [
763
- V(n(yt), { class: "w-5 h-5" })
764
- ]),
761
+ d("div", hs, [
765
762
  d("div", ms, [
766
- d("div", null, B(k.name), 1),
767
- k.description ? (a(), p("div", gs, B(k.description), 1)) : I("", !0)
763
+ V(n(xt), { class: "w-5 h-5" })
764
+ ]),
765
+ d("div", gs, [
766
+ d("div", null, I(k.name), 1),
767
+ k.description ? (a(), p("div", vs, I(k.description), 1)) : S("", !0)
768
768
  ])
769
769
  ])
770
- ], 10, fs)) : n(s)(g) ? (a(), p("a", {
770
+ ], 10, ps)) : n(s)(g) ? (a(), p("a", {
771
771
  key: 1,
772
772
  href: k.href,
773
- class: x(n(m)),
773
+ class: b(n(m)),
774
774
  "aria-current": "step",
775
- onClick: (w) => n(f)(g, w)
775
+ onClick: (C) => n(f)(g, C)
776
776
  }, [
777
- d("div", bs, [
778
- d("div", ys, B(n(i)(g)), 1),
779
- d("div", xs, [
780
- d("div", null, B(k.name), 1),
781
- k.description ? (a(), p("div", ks, B(k.description), 1)) : I("", !0)
777
+ d("div", ys, [
778
+ d("div", xs, I(n(r)(g)), 1),
779
+ d("div", ks, [
780
+ d("div", null, I(k.name), 1),
781
+ k.description ? (a(), p("div", ws, I(k.description), 1)) : S("", !0)
782
782
  ])
783
783
  ])
784
- ], 10, vs)) : (a(), p("a", {
784
+ ], 10, bs)) : (a(), p("a", {
785
785
  key: 2,
786
786
  href: k.href,
787
- class: x(n(m)),
788
- onClick: (w) => n(f)(g, w)
787
+ class: b(n(m)),
788
+ onClick: (C) => n(f)(g, C)
789
789
  }, [
790
- d("div", Cs, [
791
- d("div", $s, B(n(i)(g)), 1),
792
- d("div", Ss, [
793
- d("div", null, B(k.name), 1),
794
- k.description ? (a(), p("div", Is, B(k.description), 1)) : I("", !0)
790
+ d("div", $s, [
791
+ d("div", Ss, I(n(r)(g)), 1),
792
+ d("div", Is, [
793
+ d("div", null, I(k.name), 1),
794
+ k.description ? (a(), p("div", Bs, I(k.description), 1)) : S("", !0)
795
795
  ])
796
796
  ])
797
- ], 10, ws))
797
+ ], 10, Cs))
798
798
  ]))), 128))
799
799
  ], 2)
800
- ], 8, ds));
800
+ ], 8, fs));
801
801
  }
802
- }), Bs = ["aria-label"], _s = ["href", "onClick"], Vs = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, Ls = {
802
+ }), Vs = ["aria-label"], Ps = ["href", "onClick"], Ls = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, js = {
803
803
  key: 0,
804
804
  class: "h-3 w-3 rounded-full bg-foreground-2"
805
- }, Ps = ["href", "onClick"], js = {
805
+ }, _s = ["href", "onClick"], Os = {
806
806
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
807
807
  "aria-hidden": "true"
808
- }, Os = {
808
+ }, As = {
809
809
  key: 0,
810
810
  class: "h-3 w-3 rounded-full bg-foreground"
811
- }, As = /* @__PURE__ */ d("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), Ms = /* @__PURE__ */ d("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), zs = ["href", "onClick"], Rs = {
811
+ }, Ms = /* @__PURE__ */ d("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), zs = /* @__PURE__ */ d("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), Rs = ["href", "onClick"], Ts = {
812
812
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
813
813
  "aria-hidden": "true"
814
814
  }, Ds = {
815
815
  key: 0,
816
816
  class: "h-3 w-3 rounded-full bg-foreground-2"
817
- }, Ts = {
817
+ }, Fs = {
818
818
  key: 1,
819
819
  class: "h-4 w-4 rounded-full bg-foreground-disabled"
820
- }, zn = /* @__PURE__ */ j({
820
+ }, Mn = /* @__PURE__ */ O({
821
821
  __name: "Bullet",
822
822
  props: {
823
823
  ariaLabel: null,
@@ -831,7 +831,7 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
831
831
  },
832
832
  emits: ["update:modelValue"],
833
833
  setup(e, { emit: l }) {
834
- const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: f, listClasses: i, linkClasses: r } = qe({
834
+ const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: f, listClasses: r, linkClasses: i } = He({
835
835
  props: Y(t),
836
836
  emit: l
837
837
  }), m = c(() => {
@@ -847,61 +847,61 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
847
847
  "aria-label": e.ariaLabel || "Progress steps"
848
848
  }, [
849
849
  d("ol", {
850
- class: x([n(i), u.value])
850
+ class: b([n(r), u.value])
851
851
  }, [
852
- (a(!0), p(T, null, U(e.steps, (g, w) => (a(), p("li", {
852
+ (a(!0), p(F, null, E(e.steps, (g, C) => (a(), p("li", {
853
853
  key: g.name
854
854
  }, [
855
- n(o)(w) ? (a(), p("a", {
855
+ n(o)(C) ? (a(), p("a", {
856
856
  key: 0,
857
857
  href: g.href,
858
- class: x(n(r)),
859
- onClick: (h) => n(f)(w, h)
858
+ class: b(n(i)),
859
+ onClick: (h) => n(f)(C, h)
860
860
  }, [
861
- d("span", Vs, [
862
- e.basic ? (a(), p("span", Ls)) : (a(), L(n(Fe), {
861
+ d("span", Ls, [
862
+ e.basic ? (a(), p("span", js)) : (a(), j(n(Ee), {
863
863
  key: 1,
864
864
  class: "h-full w-full text-primary",
865
865
  "aria-hidden": "true"
866
866
  }))
867
867
  ]),
868
868
  d("span", {
869
- class: x(["text-foreground", m.value])
870
- }, B(g.name), 3)
871
- ], 10, _s)) : n(s)(w) ? (a(), p("a", {
869
+ class: b(["text-foreground", m.value])
870
+ }, I(g.name), 3)
871
+ ], 10, Ps)) : n(s)(C) ? (a(), p("a", {
872
872
  key: 1,
873
873
  href: g.href,
874
- class: x(n(r)),
874
+ class: b(n(i)),
875
875
  "aria-current": "step",
876
- onClick: (h) => n(f)(w, h)
876
+ onClick: (h) => n(f)(C, h)
877
877
  }, [
878
- d("span", js, [
879
- e.basic ? (a(), p("span", Os)) : (a(), p(T, { key: 1 }, [
880
- As,
881
- Ms
878
+ d("span", Os, [
879
+ e.basic ? (a(), p("span", As)) : (a(), p(F, { key: 1 }, [
880
+ Ms,
881
+ zs
882
882
  ], 64))
883
883
  ]),
884
884
  d("span", {
885
- class: x(["text-primary-focus", m.value])
886
- }, B(g.name), 3)
887
- ], 10, Ps)) : (a(), p("a", {
885
+ class: b(["text-primary-focus", m.value])
886
+ }, I(g.name), 3)
887
+ ], 10, _s)) : (a(), p("a", {
888
888
  key: 2,
889
889
  href: g.href,
890
- class: x(n(r)),
891
- onClick: (h) => n(f)(w, h)
890
+ class: b(n(i)),
891
+ onClick: (h) => n(f)(C, h)
892
892
  }, [
893
- d("div", Rs, [
894
- e.basic ? (a(), p("span", Ds)) : (a(), p("div", Ts))
893
+ d("div", Ts, [
894
+ e.basic ? (a(), p("span", Ds)) : (a(), p("div", Fs))
895
895
  ]),
896
896
  d("p", {
897
- class: x(["text-foreground-disabled", m.value])
898
- }, B(g.name), 3)
899
- ], 10, zs))
897
+ class: b(["text-foreground-disabled", m.value])
898
+ }, I(g.name), 3)
899
+ ], 10, Rs))
900
900
  ]))), 128))
901
901
  ], 2)
902
- ], 8, Bs));
902
+ ], 8, Vs));
903
903
  }
904
- }), Fs = ["disabled"], Rn = /* @__PURE__ */ j({
904
+ }), Es = ["disabled"], zn = /* @__PURE__ */ O({
905
905
  __name: "CardButton",
906
906
  props: {
907
907
  disabled: { type: Boolean },
@@ -924,23 +924,23 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
924
924
  }
925
925
  l("update:modelValue", !t.modelValue), l("click", f);
926
926
  };
927
- return (f, i) => (a(), p("button", {
928
- class: x(s.value),
927
+ return (f, r) => (a(), p("button", {
928
+ class: b(s.value),
929
929
  disabled: e.disabled,
930
930
  onClick: o
931
931
  }, [
932
- z(f.$slots, "default", {}, () => [
933
- A("Text")
932
+ R(f.$slots, "default", {}, () => [
933
+ M("Text")
934
934
  ])
935
- ], 10, Fs));
935
+ ], 10, Es));
936
936
  }
937
- }), Es = { class: "relative flex items-start" }, Us = { class: "flex h-6 items-center" }, Ws = ["id", "checked", "aria-describedby", "name", "disabled", "value"], qs = {
937
+ }), Us = { class: "relative flex items-start" }, Ws = { class: "flex h-6 items-center" }, qs = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Hs = {
938
938
  class: "ml-2 text-sm",
939
939
  style: { "padding-top": "2px" }
940
- }, Hs = ["for"], Gs = {
940
+ }, Gs = ["for"], Ks = {
941
941
  key: 0,
942
942
  class: "text-danger ml-1"
943
- }, Ks = ["id"], Dn = /* @__PURE__ */ j({
943
+ }, Xs = ["id"], Rn = /* @__PURE__ */ O({
944
944
  inheritAttrs: !1,
945
945
  __name: "Checkbox",
946
946
  props: {
@@ -1029,27 +1029,27 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
1029
1029
  },
1030
1030
  emits: ["update:modelValue"],
1031
1031
  setup(e) {
1032
- const l = e, t = (b) => `${b}-${Ce()}`, s = c(() => l.value || l.name), {
1032
+ const l = e, t = (x) => `${x}-${Se()}`, s = c(() => l.value || l.name), {
1033
1033
  checked: o,
1034
1034
  errorMessage: f,
1035
- handleChange: i,
1036
- value: r
1037
- } = we(l.name, l.rules, {
1035
+ handleChange: r,
1036
+ value: i
1037
+ } = $e(l.name, l.rules, {
1038
1038
  validateOnMount: l.validateOnMount,
1039
1039
  type: "checkbox",
1040
1040
  checkedValue: s,
1041
1041
  initialValue: l.modelValue || void 0
1042
1042
  }), m = c(() => l.label || l.name), u = c(() => f.value ? "border-danger-lighter" : "border-foreground-4 "), y = c(() => l.description || f.value), k = c(() => `${l.name}-description`), g = c(() => {
1043
- const b = [];
1044
- return l.inlineDescription ? b.push("inline ml-2") : b.push("block"), f.value ? b.push("text-danger") : b.push("text-foreground-2"), b.join(" ");
1045
- }), w = M(t("checkbox")), h = c(() => l.id || w.value), P = (b) => {
1046
- l.disabled || i(b);
1043
+ const x = [];
1044
+ return l.inlineDescription ? x.push("inline ml-2") : x.push("block"), f.value ? x.push("text-danger") : x.push("text-foreground-2"), x.join(" ");
1045
+ }), C = z(t("checkbox")), h = c(() => l.id || C.value), _ = (x) => {
1046
+ l.disabled || r(x);
1047
1047
  };
1048
1048
  return Z(() => {
1049
- const b = l.modelValue, $ = r.value, S = Array.isArray(b) ? b.includes(l.value) : b === l.value, F = Array.isArray($) ? $.includes(l.value) : $ === l.value;
1050
- S !== F && i(b);
1051
- }), (b, $) => (a(), p("div", Es, [
1052
- d("div", Us, [
1049
+ const x = l.modelValue, $ = i.value, P = Array.isArray(x) ? x.includes(l.value) : x === l.value, L = Array.isArray($) ? $.includes(l.value) : $ === l.value;
1050
+ P !== L && r(x);
1051
+ }), (x, $) => (a(), p("div", Us, [
1052
+ d("div", Ws, [
1053
1053
  d("input", ie({
1054
1054
  id: h.value,
1055
1055
  checked: n(o),
@@ -1059,78 +1059,79 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
1059
1059
  value: s.value,
1060
1060
  type: "checkbox",
1061
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", u.value]
1062
- }, b.$attrs, { onChange: P }), null, 16, Ws)
1062
+ }, x.$attrs, { onChange: _ }), null, 16, qs)
1063
1063
  ]),
1064
- d("div", qs, [
1064
+ d("div", Hs, [
1065
1065
  d("label", {
1066
1066
  for: h.value,
1067
- class: x(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1067
+ class: b(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1068
1068
  }, [
1069
- d("span", null, B(m.value), 1),
1070
- e.showRequired ? (a(), p("span", Gs, "*")) : I("", !0)
1071
- ], 10, Hs),
1069
+ d("span", null, I(m.value), 1),
1070
+ e.showRequired ? (a(), p("span", Ks, "*")) : S("", !0)
1071
+ ], 10, Gs),
1072
1072
  y.value ? (a(), p("p", {
1073
1073
  key: 0,
1074
1074
  id: k.value,
1075
- class: x(g.value)
1076
- }, B(y.value), 11, Ks)) : I("", !0)
1075
+ class: b(g.value)
1076
+ }, I(y.value), 11, Xs)) : S("", !0)
1077
1077
  ])
1078
1078
  ]));
1079
1079
  }
1080
1080
  });
1081
- function He(e) {
1082
- const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: f } = we(l.name, l.rules, {
1081
+ function Ge(e) {
1082
+ const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: f } = $e(l.name, l.rules, {
1083
1083
  validateOnMount: n(l.validateOnMount),
1084
1084
  validateOnValueUpdate: n(l.validateOnValueUpdate),
1085
1085
  initialValue: n(l.modelValue) || void 0
1086
- }), i = c(() => {
1087
- const S = ["block label text-foreground-2 mb-2"];
1088
- return n(l.showLabel) || S.push("sr-only"), S.join(" ");
1089
1086
  }), r = c(() => {
1090
- const S = [
1091
- "block w-full rounded focus:outline-none text-foreground transition-all",
1092
- "disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
1093
- "placeholder:text-foreground-2"
1087
+ const L = ["block label text-foreground-2 mb-2"];
1088
+ return n(l.showLabel) || L.push("sr-only"), L.join(" ");
1089
+ }), i = c(() => [
1090
+ "focus:outline-none disabled:cursor-not-allowed disabled:bg-foundation-disabled",
1091
+ "disabled:text-disabled-muted placeholder:text-foreground-2",
1092
+ "rounded"
1093
+ ].join(" ")), m = c(() => {
1094
+ const L = [
1095
+ "block w-full text-foreground transition-all",
1096
+ i.value
1094
1097
  ];
1095
- return f.value ? S.push(
1096
- "border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
1097
- ) : S.push("border-0 focus:ring-2 focus:ring-outline-2"), n(l.color) === "foundation" ? S.push("bg-foundation shadow-sm hover:shadow") : S.push("bg-foundation-page"), S.join(" ");
1098
- }), m = M(Ce()), u = c(() => n(l.label) || n(l.name)), y = c(() => {
1099
- const S = f.value;
1100
- return !S || !n(l.useLabelInErrors) ? S : S.replace("Value", u.value);
1101
- }), k = c(
1102
- () => y.value && n(l.hideErrorMessage)
1103
- ), g = c(() => y.value || n(l.help)), w = c(() => !!g.value), h = c(
1104
- () => w.value ? `${n(l.name)}-${m.value}` : void 0
1105
- ), P = c(() => {
1106
- const S = ["mt-2 text-sm"];
1107
- return S.push(f.value ? "text-danger" : "text-foreground-2"), S.join(" ");
1108
- }), b = () => {
1109
- var S;
1110
- (S = t.value) == null || S.focus();
1111
- }, $ = () => {
1112
- o.value = "", s("change", { value: "" }), s("clear");
1098
+ return f.value ? L.push(
1099
+ "focus:border-danger focus:ring-danger border-2 border-danger text-danger-darker"
1100
+ ) : L.push("border-0 focus:ring-2 focus:ring-outline-2"), n(l.color) === "foundation" ? L.push("bg-foundation shadow-sm hover:shadow") : L.push("bg-foundation-page"), L.join(" ");
1101
+ }), u = z(Se()), y = c(() => n(l.label) || n(l.name)), k = c(() => {
1102
+ const L = f.value;
1103
+ return !L || !n(l.useLabelInErrors) ? L : L.replace("Value", y.value);
1104
+ }), g = c(
1105
+ () => k.value && n(l.hideErrorMessage)
1106
+ ), C = c(() => k.value || n(l.help)), h = c(() => !!C.value), _ = c(
1107
+ () => h.value ? `${n(l.name)}-${u.value}` : void 0
1108
+ ), x = c(() => {
1109
+ const L = ["mt-2 text-sm"];
1110
+ return L.push(f.value ? "text-danger" : "text-foreground-2"), L.join(" ");
1111
+ }), $ = () => {
1112
+ var L;
1113
+ (L = t.value) == null || L.focus();
1114
+ }, P = () => {
1115
+ o.value = U(o.value) ? [] : "", s("change", { value: o.value }), s("clear");
1113
1116
  };
1114
1117
  return Z(() => {
1115
- n(l.autoFocus) && b();
1118
+ n(l.autoFocus) && $();
1116
1119
  }), {
1117
- coreClasses: r,
1118
- title: u,
1120
+ coreInputClasses: i,
1121
+ coreClasses: m,
1122
+ title: y,
1119
1123
  value: o,
1120
- helpTipId: h,
1121
- helpTipClasses: P,
1122
- helpTip: g,
1123
- hideHelpTip: k,
1124
- errorMessage: y,
1125
- clear: $,
1126
- focus: b,
1127
- labelClasses: i
1124
+ helpTipId: _,
1125
+ helpTipClasses: x,
1126
+ helpTip: C,
1127
+ hideHelpTip: g,
1128
+ errorMessage: k,
1129
+ clear: P,
1130
+ focus: $,
1131
+ labelClasses: r
1128
1132
  };
1129
1133
  }
1130
- const Xs = ["for"], Ns = { class: "relative" }, Js = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Qs = /* @__PURE__ */ d("span", { class: "text-xs sr-only" }, "Clear input", -1), Ys = {
1131
- key: 2,
1132
- class: "pointer-events-none absolute inset-y-0 mt-0.5 text-4xl right-0 flex items-start pr-2 text-danger opacity-50"
1133
- }, Zs = ["id"], Tn = /* @__PURE__ */ j({
1134
+ const Ns = ["for"], Js = { class: "relative" }, Qs = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ys = /* @__PURE__ */ d("span", { class: "text-xs sr-only" }, "Clear input", -1), Zs = ["id"], Tn = /* @__PURE__ */ O({
1134
1135
  __name: "TextArea",
1135
1136
  props: {
1136
1137
  name: null,
@@ -1153,44 +1154,44 @@ const Xs = ["for"], Ns = { class: "relative" }, Js = ["id", "name", "placeholder
1153
1154
  },
1154
1155
  emits: ["update:modelValue", "change", "input", "clear"],
1155
1156
  setup(e, { expose: l, emit: t }) {
1156
- const s = e, o = M(null), {
1157
+ const s = e, o = z(null), {
1157
1158
  coreClasses: f,
1158
- title: i,
1159
- value: r,
1159
+ title: r,
1160
+ value: i,
1160
1161
  helpTipId: m,
1161
1162
  helpTipClasses: u,
1162
1163
  helpTip: y,
1163
1164
  errorMessage: k,
1164
1165
  labelClasses: g,
1165
- clear: w,
1166
+ clear: C,
1166
1167
  focus: h
1167
- } = He({
1168
+ } = Ge({
1168
1169
  props: Y(s),
1169
1170
  emit: t,
1170
1171
  inputEl: o
1171
- }), P = c(() => {
1172
- const b = ["pl-2"];
1173
- return s.showClear && k.value ? b.push("pr-12") : (s.showClear || k.value) && b.push("pr-8"), b.join(" ");
1172
+ }), _ = c(() => {
1173
+ const x = ["pl-2"];
1174
+ return s.showClear && k.value ? x.push("pr-12") : (s.showClear || k.value) && x.push("pr-8"), x.join(" ");
1174
1175
  });
1175
- return l({ focus: h }), (b, $) => (a(), p("div", {
1176
- class: x([e.fullWidth ? "w-full" : ""])
1176
+ return l({ focus: h }), (x, $) => (a(), p("div", {
1177
+ class: b([e.fullWidth ? "w-full" : ""])
1177
1178
  }, [
1178
1179
  d("label", {
1179
1180
  for: e.name,
1180
- class: x(n(g))
1181
+ class: b(n(g))
1181
1182
  }, [
1182
- d("span", null, B(n(i)), 1)
1183
- ], 10, Xs),
1184
- d("div", Ns, [
1183
+ d("span", null, I(n(r)), 1)
1184
+ ], 10, Ns),
1185
+ d("div", Js, [
1185
1186
  ae(d("textarea", ie({
1186
1187
  id: e.name,
1187
1188
  ref_key: "inputElement",
1188
1189
  ref: o,
1189
- "onUpdate:modelValue": $[0] || ($[0] = (S) => de(r) ? r.value = S : null),
1190
+ "onUpdate:modelValue": $[0] || ($[0] = (P) => fe(i) ? i.value = P : null),
1190
1191
  name: e.name,
1191
1192
  class: [
1192
1193
  n(f),
1193
- P.value,
1194
+ _.value,
1194
1195
  e.textareaClasses || "",
1195
1196
  "min-h-[4rem] simple-scrollbar"
1196
1197
  ],
@@ -1198,55 +1199,55 @@ const Xs = ["for"], Ns = { class: "relative" }, Js = ["id", "name", "placeholder
1198
1199
  disabled: e.disabled,
1199
1200
  "aria-invalid": n(k) ? "true" : "false",
1200
1201
  "aria-describedby": n(m)
1201
- }, b.$attrs, {
1202
- onChange: $[1] || ($[1] = (S) => b.$emit("change", { event: S, value: n(r) })),
1203
- onInput: $[2] || ($[2] = (S) => b.$emit("input", { event: S, value: n(r) }))
1204
- }), null, 16, Js), [
1205
- [Me, n(r)]
1202
+ }, x.$attrs, {
1203
+ onChange: $[1] || ($[1] = (P) => x.$emit("change", { event: P, value: n(i) })),
1204
+ onInput: $[2] || ($[2] = (P) => x.$emit("input", { event: P, value: n(i) }))
1205
+ }), null, 16, Qs), [
1206
+ [ze, n(i)]
1206
1207
  ]),
1207
1208
  e.showClear ? (a(), p("a", {
1208
1209
  key: 0,
1209
1210
  title: "Clear input",
1210
1211
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
1211
1212
  onClick: $[3] || ($[3] = //@ts-ignore
1212
- (...S) => n(w) && n(w)(...S)),
1213
+ (...P) => n(C) && n(C)(...P)),
1213
1214
  onKeydown: $[4] || ($[4] = //@ts-ignore
1214
- (...S) => n(w) && n(w)(...S))
1215
+ (...P) => n(C) && n(C)(...P))
1215
1216
  }, [
1216
- Qs,
1217
- V(n(fe), {
1217
+ Ys,
1218
+ V(n(pe), {
1218
1219
  class: "h-5 w-5 text-foreground",
1219
1220
  "aria-hidden": "true"
1220
1221
  })
1221
- ], 32)) : I("", !0),
1222
+ ], 32)) : S("", !0),
1222
1223
  n(k) ? (a(), p("div", {
1223
1224
  key: 1,
1224
- class: x([
1225
+ class: b([
1225
1226
  "pointer-events-none absolute inset-y-0 right-0 flex items-start mt-2",
1226
1227
  e.showClear ? "pr-8" : "pr-2"
1227
1228
  ])
1228
1229
  }, [
1229
- V(n(ke), {
1230
+ V(n(Ce), {
1230
1231
  class: "h-4 w-4 text-danger",
1231
1232
  "aria-hidden": "true"
1232
1233
  })
1233
- ], 2)) : I("", !0),
1234
- e.showRequired && !n(k) ? (a(), p("div", Ys, " * ")) : I("", !0)
1234
+ ], 2)) : S("", !0),
1235
+ e.showRequired && !n(k) ? (a(), p("div", {
1236
+ key: 2,
1237
+ class: b(["pointer-events-none absolute inset-y-0 mt-0.5 text-4xl right-0 flex items-start text-danger opacity-50", [e.showClear ? "pr-8" : "pr-2"]])
1238
+ }, " * ", 2)) : S("", !0)
1235
1239
  ]),
1236
1240
  n(m) ? (a(), p("p", {
1237
1241
  key: 0,
1238
1242
  id: n(m),
1239
- class: x(n(u))
1240
- }, B(n(y)), 11, Zs)) : I("", !0)
1243
+ class: b(n(u))
1244
+ }, I(n(y)), 11, Zs)) : S("", !0)
1241
1245
  ], 2));
1242
1246
  }
1243
1247
  }), el = ["for"], tl = { class: "relative" }, sl = {
1244
1248
  key: 0,
1245
1249
  class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
1246
- }, ll = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], nl = /* @__PURE__ */ d("span", { class: "text-xs sr-only" }, "Clear input", -1), al = {
1247
- key: 2,
1248
- class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
1249
- }, ol = ["id"], Fn = /* @__PURE__ */ j({
1250
+ }, ll = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], nl = /* @__PURE__ */ d("span", { class: "text-xs sr-only" }, "Clear input", -1), al = ["id"], Dn = /* @__PURE__ */ O({
1250
1251
  inheritAttrs: !1,
1251
1252
  __name: "TextInput",
1252
1253
  props: {
@@ -1383,30 +1384,30 @@ const Xs = ["for"], Ns = { class: "relative" }, Js = ["id", "name", "placeholder
1383
1384
  },
1384
1385
  emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
1385
1386
  setup(e, { expose: l, emit: t }) {
1386
- const s = e, o = ye(), f = M(null), {
1387
- coreClasses: i,
1388
- title: r,
1387
+ const s = e, o = ke(), f = z(null), {
1388
+ coreClasses: r,
1389
+ title: i,
1389
1390
  value: m,
1390
1391
  helpTipId: u,
1391
1392
  helpTipClasses: y,
1392
1393
  helpTip: k,
1393
1394
  hideHelpTip: g,
1394
- errorMessage: w,
1395
+ errorMessage: C,
1395
1396
  clear: h,
1396
- focus: P,
1397
- labelClasses: b
1398
- } = He({
1397
+ focus: _,
1398
+ labelClasses: x
1399
+ } = Ge({
1399
1400
  props: Y(s),
1400
1401
  emit: t,
1401
1402
  inputEl: f
1402
1403
  }), $ = c(() => {
1403
1404
  const D = ["h-5 w-5"];
1404
- return w.value ? D.push("text-danger") : D.push("text-foreground-2"), D.join(" ");
1405
- }), S = c(
1405
+ return C.value ? D.push("text-danger") : D.push("text-foreground-2"), D.join(" ");
1406
+ }), P = c(
1406
1407
  () => ["email", "password"].includes(s.type) || s.customIcon
1407
- ), F = c(() => {
1408
+ ), L = c(() => {
1408
1409
  const D = [];
1409
- return S.value ? D.push("pl-8") : D.push("pl-2"), o["input-right"] || (w.value || s.showClear) && (w.value && s.showClear ? D.push("pr-12") : D.push("pr-8")), D.join(" ");
1410
+ return P.value ? D.push("pl-8") : D.push("pl-2"), o["input-right"] || (C.value || s.showClear) && (C.value && s.showClear ? D.push("pr-12") : D.push("pr-8")), D.join(" ");
1410
1411
  }), v = c(() => {
1411
1412
  switch (s.size) {
1412
1413
  case "sm":
@@ -1420,139 +1421,142 @@ const Xs = ["for"], Ns = { class: "relative" }, Js = ["id", "name", "placeholder
1420
1421
  return "h-8";
1421
1422
  }
1422
1423
  });
1423
- return l({ focus: P }), (D, W) => (a(), p("div", {
1424
- class: x([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1424
+ return l({ focus: _ }), (D, W) => (a(), p("div", {
1425
+ class: b([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1425
1426
  }, [
1426
1427
  d("label", {
1427
1428
  for: e.name,
1428
- class: x(n(b))
1429
+ class: b(n(x))
1429
1430
  }, [
1430
- d("span", null, B(n(r)), 1)
1431
+ d("span", null, I(n(i)), 1)
1431
1432
  ], 10, el),
1432
1433
  d("div", tl, [
1433
- S.value ? (a(), p("div", sl, [
1434
- e.customIcon ? (a(), L(G(e.customIcon), {
1434
+ P.value ? (a(), p("div", sl, [
1435
+ e.customIcon ? (a(), j(G(e.customIcon), {
1435
1436
  key: 0,
1436
- class: x($.value),
1437
+ class: b($.value),
1437
1438
  "aria-hidden": "true"
1438
- }, null, 8, ["class"])) : e.type === "email" ? (a(), L(n(xt), {
1439
+ }, null, 8, ["class"])) : e.type === "email" ? (a(), j(n(kt), {
1439
1440
  key: 1,
1440
- class: x($.value),
1441
+ class: b($.value),
1441
1442
  "aria-hidden": "true"
1442
- }, null, 8, ["class"])) : e.type === "password" ? (a(), L(n(kt), {
1443
+ }, null, 8, ["class"])) : e.type === "password" ? (a(), j(n(wt), {
1443
1444
  key: 2,
1444
- class: x($.value),
1445
+ class: b($.value),
1445
1446
  "aria-hidden": "true"
1446
- }, null, 8, ["class"])) : I("", !0)
1447
- ])) : I("", !0),
1447
+ }, null, 8, ["class"])) : S("", !0)
1448
+ ])) : S("", !0),
1448
1449
  ae(d("input", ie({
1449
1450
  id: e.name,
1450
1451
  ref_key: "inputElement",
1451
1452
  ref: f,
1452
- "onUpdate:modelValue": W[0] || (W[0] = (E) => de(m) ? m.value = E : null),
1453
+ "onUpdate:modelValue": W[0] || (W[0] = (H) => fe(m) ? m.value = H : null),
1453
1454
  type: e.type,
1454
1455
  name: e.name,
1455
- class: [n(i), F.value, v.value, e.inputClasses || ""],
1456
+ class: [n(r), L.value, v.value, e.inputClasses || ""],
1456
1457
  placeholder: e.placeholder,
1457
1458
  disabled: e.disabled,
1458
- "aria-invalid": n(w) ? "true" : "false",
1459
+ "aria-invalid": n(C) ? "true" : "false",
1459
1460
  "aria-describedby": n(u),
1460
1461
  role: "textbox"
1461
1462
  }, D.$attrs, {
1462
- onChange: W[1] || (W[1] = (E) => D.$emit("change", { event: E, value: n(m) })),
1463
- onInput: W[2] || (W[2] = (E) => D.$emit("input", { event: E, value: n(m) }))
1463
+ onChange: W[1] || (W[1] = (H) => D.$emit("change", { event: H, value: n(m) })),
1464
+ onInput: W[2] || (W[2] = (H) => D.$emit("input", { event: H, value: n(m) }))
1464
1465
  }), null, 16, ll), [
1465
- [et, n(m)]
1466
+ [tt, n(m)]
1466
1467
  ]),
1467
- z(D.$slots, "input-right", {}, () => [
1468
+ R(D.$slots, "input-right", {}, () => [
1468
1469
  e.showClear ? (a(), p("a", {
1469
1470
  key: 0,
1470
1471
  title: "Clear input",
1471
1472
  class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
1472
1473
  onClick: W[3] || (W[3] = //@ts-ignore
1473
- (...E) => n(h) && n(h)(...E)),
1474
+ (...H) => n(h) && n(h)(...H)),
1474
1475
  onKeydown: W[4] || (W[4] = //@ts-ignore
1475
- (...E) => n(h) && n(h)(...E))
1476
+ (...H) => n(h) && n(h)(...H))
1476
1477
  }, [
1477
1478
  nl,
1478
- V(n(fe), {
1479
+ V(n(pe), {
1479
1480
  class: "h-5 w-5 text-foreground",
1480
1481
  "aria-hidden": "true"
1481
1482
  })
1482
- ], 32)) : I("", !0),
1483
- n(w) ? (a(), p("div", {
1483
+ ], 32)) : S("", !0),
1484
+ n(C) ? (a(), p("div", {
1484
1485
  key: 1,
1485
- class: x([
1486
+ class: b([
1486
1487
  "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1487
1488
  e.showClear ? "pr-8" : "pr-2"
1488
1489
  ])
1489
1490
  }, [
1490
- V(n(ke), {
1491
+ V(n(Ce), {
1491
1492
  class: "h-4 w-4 text-danger",
1492
1493
  "aria-hidden": "true"
1493
1494
  })
1494
- ], 2)) : I("", !0),
1495
- e.showRequired && !n(w) ? (a(), p("div", al, " * ")) : I("", !0)
1495
+ ], 2)) : S("", !0),
1496
+ e.showRequired && !n(C) ? (a(), p("div", {
1497
+ key: 2,
1498
+ class: b(["pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center text-danger opacity-50", [e.showClear ? "pr-8" : "pr-2"]])
1499
+ }, " * ", 2)) : S("", !0)
1496
1500
  ])
1497
1501
  ]),
1498
1502
  n(u) && !n(g) ? (a(), p("p", {
1499
1503
  key: 0,
1500
1504
  id: n(u),
1501
- class: x(n(y))
1502
- }, B(n(k)), 11, ol)) : I("", !0)
1505
+ class: b(n(y))
1506
+ }, I(n(k)), 11, al)) : S("", !0)
1503
1507
  ], 2));
1504
1508
  }
1505
- }), Ge = /^https?:\/\//, Se = /^[\w-_.+]+@[\w-_.+]+$/, rl = (e) => (e || "").match(Se) ? !0 : "Value should be a valid e-mail address", il = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Se)) || "Value should be one or multiple comma-delimited e-mail addresses", ul = (e) => (ce(e) && (e = e.trim()), e ? !0 : "Value is required"), cl = (e, l) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${l || e}'`, dl = (e) => (l) => {
1509
+ }), Ke = /^https?:\/\//, Be = /^[\w-_.+]+@[\w-_.+]+$/, ol = (e) => (e || "").match(Be) ? !0 : "Value should be a valid e-mail address", rl = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Be)) || "Value should be one or multiple comma-delimited e-mail addresses", il = (e) => (de(e) && (e = e.trim()), e ? !0 : "Value is required"), ul = (e, l) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${l || e}'`, cl = (e) => (l) => {
1506
1510
  const { minLength: t, maxLength: s } = e;
1507
- return l = $t(l) ? "" : l, ce(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";
1508
- }, fl = (e) => (l) => {
1511
+ return l = St(l) ? "" : l, de(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";
1512
+ }, dl = (e) => (l) => {
1509
1513
  const { match: t, message: s } = e;
1510
- return ce(l) ? t ? ce(t) ? l.includes(t) ? !0 : s : t.test(l) ? !0 : s : !0 : "Value should be a text string";
1511
- }, pl = (e) => Ge.test(e) ? !0 : "Value is not a valid URL", hl = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1514
+ return de(l) ? t ? de(t) ? l.includes(t) ? !0 : s : t.test(l) ? !0 : s : !0 : "Value should be a text string";
1515
+ }, fl = (e) => Ke.test(e) ? !0 : "Value is not a valid URL", pl = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1512
1516
  __proto__: null,
1513
- VALID_EMAIL: Se,
1514
- VALID_HTTP_URL: Ge,
1515
- isEmail: rl,
1516
- isItemSelected: hl,
1517
- isOneOrMultipleEmails: il,
1518
- isRequired: ul,
1519
- isSameAs: cl,
1520
- isStringOfLength: dl,
1521
- isUrl: pl,
1522
- stringContains: fl
1517
+ VALID_EMAIL: Be,
1518
+ VALID_HTTP_URL: Ke,
1519
+ isEmail: ol,
1520
+ isItemSelected: pl,
1521
+ isOneOrMultipleEmails: rl,
1522
+ isRequired: il,
1523
+ isSameAs: ul,
1524
+ isStringOfLength: cl,
1525
+ isUrl: fl,
1526
+ stringContains: dl
1523
1527
  }, Symbol.toStringTag, { value: "Module" }));
1524
- function ml(e) {
1528
+ function hl(e) {
1525
1529
  const {
1526
1530
  skipCalculation: l,
1527
1531
  elementToWatchForChanges: t,
1528
1532
  itemContainer: s,
1529
1533
  trackResize: o = !1,
1530
1534
  trackMutations: f = !0
1531
- } = e || {}, i = M(0), r = () => {
1535
+ } = e || {}, r = z(0), i = () => {
1532
1536
  const m = s.value;
1533
1537
  if (l != null && l.value || !m)
1534
1538
  return;
1535
1539
  const u = m.children;
1536
1540
  let y = 0, k = 0, g;
1537
- for (const w of u) {
1538
- const h = w.offsetTop;
1541
+ for (const C of u) {
1542
+ const h = C.offsetTop;
1539
1543
  Q(g) ? (g = h, y += 1) : h === g && (y += 1), k += 1;
1540
1544
  }
1541
- i.value = k - y;
1545
+ r.value = k - y;
1542
1546
  };
1543
- return o && Bt(t, r), f && _t(t, r, {
1547
+ return o && Vt(t, i), f && Pt(t, i, {
1544
1548
  childList: !0,
1545
1549
  subtree: !0
1546
1550
  }), {
1547
- hiddenItemCount: i
1551
+ hiddenItemCount: r
1548
1552
  };
1549
1553
  }
1550
- function Ke(e) {
1554
+ function Xe(e) {
1551
1555
  const { props: l, emit: t, dynamicVisibility: s } = e;
1552
1556
  let o;
1553
1557
  if (s) {
1554
1558
  const { elementToWatchForChanges: u, itemContainer: y } = s;
1555
- o = ml({
1559
+ o = hl({
1556
1560
  skipCalculation: c(() => {
1557
1561
  var g;
1558
1562
  return !((g = l.multiple) != null && g.value);
@@ -1561,61 +1565,61 @@ function Ke(e) {
1561
1565
  itemContainer: y
1562
1566
  }).hiddenItemCount;
1563
1567
  } else
1564
- o = M(0);
1568
+ o = z(0);
1565
1569
  const f = c({
1566
1570
  get: () => {
1567
1571
  var y, k;
1568
1572
  const u = (y = l.modelValue) == null ? void 0 : y.value;
1569
- return (k = l.multiple) != null && k.value ? H(u) ? u : [] : H(u) ? void 0 : u;
1573
+ return (k = l.multiple) != null && k.value ? U(u) ? u : [] : U(u) ? void 0 : u;
1570
1574
  },
1571
1575
  set: (u) => {
1572
1576
  var y, k, g;
1573
- if ((y = l.multiple) != null && y.value && !H(u)) {
1577
+ if ((y = l.multiple) != null && y.value && !U(u)) {
1574
1578
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1575
1579
  return;
1576
- } else if (!((k = l.multiple) != null && k.value) && H(u)) {
1580
+ } else if (!((k = l.multiple) != null && k.value) && U(u)) {
1577
1581
  console.warn("Attempting to set array value in selector w/ multiple=false");
1578
1582
  return;
1579
1583
  }
1580
1584
  t("update:modelValue", (g = l.multiple) != null && g.value ? u || [] : u);
1581
1585
  }
1582
- }), i = (u) => H(u);
1586
+ }), r = (u) => U(u);
1583
1587
  return {
1584
1588
  selectedValue: f,
1585
1589
  hiddenSelectedItemCount: o,
1586
- isArrayValue: i,
1587
- isMultiItemArrayValue: (u) => H(u) && u.length > 1,
1588
- firstItem: (u) => i(u) ? u[0] : u
1590
+ isArrayValue: r,
1591
+ isMultiItemArrayValue: (u) => U(u) && u.length > 1,
1592
+ firstItem: (u) => r(u) ? u[0] : u
1589
1593
  };
1590
1594
  }
1591
- const gl = (e) => (tt("data-v-60cf597b"), e = e(), st(), e), vl = /* @__PURE__ */ gl(() => /* @__PURE__ */ d("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), bl = [
1592
- vl
1593
- ], yl = /* @__PURE__ */ j({
1595
+ const ml = (e) => (st("data-v-60cf597b"), e = e(), lt(), e), gl = /* @__PURE__ */ ml(() => /* @__PURE__ */ d("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), vl = [
1596
+ gl
1597
+ ], bl = /* @__PURE__ */ O({
1594
1598
  __name: "Bar",
1595
1599
  props: {
1596
1600
  loading: { type: Boolean }
1597
1601
  },
1598
1602
  setup(e) {
1599
1603
  return (l, t) => (a(), p("div", {
1600
- class: x([
1604
+ class: b([
1601
1605
  "relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
1602
1606
  e.loading ? "opacity-100" : "opacity-0"
1603
1607
  ])
1604
- }, bl, 2));
1608
+ }, vl, 2));
1605
1609
  }
1606
1610
  });
1607
- const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { class: "flex items-center justify-between w-full" }, kl = { class: "block truncate grow text-left" }, wl = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, Cl = {
1611
+ const Ne = /* @__PURE__ */ We(bl, [["__scopeId", "data-v-60cf597b"]]), yl = { class: "flex items-center justify-between w-full" }, xl = { class: "block truncate grow text-left" }, kl = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, wl = {
1608
1612
  key: 1,
1609
1613
  class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
1610
- }, $l = ["disabled"], Sl = {
1614
+ }, Cl = ["disabled"], $l = {
1611
1615
  key: 0,
1612
1616
  class: "flex flex-col mx-1 mb-1"
1613
- }, Il = /* @__PURE__ */ d("span", { class: "sr-only label text-foreground" }, "Search", -1), Bl = { class: "relative" }, _l = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Vl = ["placeholder"], Ll = {
1617
+ }, Sl = /* @__PURE__ */ d("span", { class: "sr-only label text-foreground" }, "Search", -1), Il = { class: "relative" }, Bl = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Vl = ["placeholder"], Pl = {
1614
1618
  key: 0,
1615
1619
  class: "px-1"
1616
- }, Pl = { key: 1 }, jl = /* @__PURE__ */ d("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Ol = {
1617
- class: /* @__PURE__ */ x(["block truncate"])
1618
- }, Al = ["id"], Ne = /* @__PURE__ */ j({
1620
+ }, Ll = { key: 1 }, jl = /* @__PURE__ */ d("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), _l = {
1621
+ class: /* @__PURE__ */ b(["block truncate"])
1622
+ }, Ol = ["id"], Je = /* @__PURE__ */ O({
1619
1623
  __name: "Base",
1620
1624
  props: {
1621
1625
  multiple: {
@@ -1777,157 +1781,157 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
1777
1781
  },
1778
1782
  emits: ["update:modelValue"],
1779
1783
  setup(e, { expose: l, emit: t }) {
1780
- const s = e, { value: o, errorMessage: f } = we(s.name, s.rules, {
1784
+ const s = e, o = (w) => ge(w), { value: f, errorMessage: r } = $e(s.name, s.rules, {
1781
1785
  validateOnMount: s.validateOnMount,
1782
1786
  validateOnValueUpdate: s.validateOnValueUpdate,
1783
1787
  initialValue: s.modelValue
1784
- }), i = M(null), r = M(""), m = M([]), u = M(!1), y = M(1), k = M(Ce()), g = c(() => n(s.label) || n(s.name)), w = c(() => {
1785
- const C = f.value;
1786
- return !C || !n(s.useLabelInErrors) ? C : C.replace("Value", g.value);
1787
- }), h = c(() => w.value || n(s.help)), P = c(() => !!h.value), b = c(
1788
- () => P.value ? `${n(s.name)}-${k.value}` : void 0
1789
- ), $ = c(
1790
- () => f.value ? "text-danger" : "text-foreground-2"
1791
- ), S = c(
1788
+ }), i = z(null), m = z(""), u = z([]), y = z(!1), k = z(1), g = z(Se()), C = c(() => n(s.label) || n(s.name)), h = c(() => {
1789
+ const w = r.value;
1790
+ return !w || !n(s.useLabelInErrors) ? w : w.replace("Value", C.value);
1791
+ }), _ = c(() => h.value || n(s.help)), x = c(() => !!_.value), $ = c(
1792
+ () => x.value ? `${n(s.name)}-${g.value}` : void 0
1793
+ ), P = c(
1794
+ () => r.value ? "text-danger" : "text-foreground-2"
1795
+ ), L = c(
1792
1796
  () => s.buttonStyle !== "simple" && s.clearable && !s.disabled
1793
- ), F = c(() => {
1794
- const C = ["relative flex group"];
1795
- return f.value ? (C.push("hover:shadow rounded-md"), C.push("text-danger-darker focus:border-danger focus:ring-danger"), s.buttonStyle !== "simple" && C.push("outline outline-2 outline-danger")) : 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(" ");
1796
- }), v = c(() => {
1797
- const C = [];
1798
- return s.buttonStyle !== "simple" && C.push(
1799
- te.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1800
- ), te.value && C.push("cursor-not-allowed"), C.join(" ");
1797
+ ), v = c(() => {
1798
+ const w = ["relative flex group"];
1799
+ return r.value ? (w.push("hover:shadow rounded-md"), w.push("text-danger-darker focus:border-danger focus:ring-danger"), s.buttonStyle !== "simple" && w.push("outline outline-2 outline-danger")) : s.buttonStyle !== "simple" && (w.push("hover:shadow rounded-md"), w.push("outline outline-2 outline-primary-muted")), s.fixedHeight && w.push("h-8"), w.join(" ");
1801
1800
  }), D = c(() => {
1802
- const C = [
1801
+ const w = [];
1802
+ return s.buttonStyle !== "simple" && w.push(
1803
+ te.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1804
+ ), te.value && w.push("cursor-not-allowed"), w.join(" ");
1805
+ }), W = c(() => {
1806
+ const w = [
1803
1807
  "relative z-[1]",
1804
1808
  "flex items-center justify-center text-center shrink-0",
1805
1809
  "rounded-r-md overflow-hidden transition-all",
1806
1810
  "text-foreground",
1807
- Ie.value ? `w-6 ${v.value}` : "w-0"
1811
+ Ve.value ? `w-6 ${D.value}` : "w-0"
1808
1812
  ];
1809
- return te.value || (C.push(
1813
+ return te.value || (w.push(
1810
1814
  "hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
1811
- ), s.buttonStyle === "tinted" ? C.push("bg-outline-3") : C.push("bg-primary-muted")), C.join(" ");
1812
- }), W = c(() => {
1813
- const C = [
1815
+ ), s.buttonStyle === "tinted" ? w.push("bg-outline-3") : w.push("bg-primary-muted")), w.join(" ");
1816
+ }), H = c(() => {
1817
+ const w = [
1814
1818
  "relative z-[2]",
1815
1819
  "normal rounded-md cursor-pointer transition truncate flex-1",
1816
1820
  "flex items-center",
1817
- v.value
1821
+ D.value
1818
1822
  ];
1819
- return s.buttonStyle !== "simple" && (C.push("py-2 px-3"), te.value || (s.buttonStyle === "tinted" ? C.push("bg-foundation-page text-foreground") : C.push("bg-foundation text-foreground"))), S.value && Ie.value && C.push("rounded-r-none"), C.join(" ");
1820
- }), E = c(
1823
+ return s.buttonStyle !== "simple" && (w.push("py-2 px-3"), te.value || (s.buttonStyle === "tinted" ? w.push("bg-foundation-page text-foreground") : w.push("bg-foundation text-foreground"))), L.value && Ve.value && w.push("rounded-r-none"), w.join(" ");
1824
+ }), ce = c(
1821
1825
  () => !!(s.search && (s.filterPredicate || s.getSearchResults))
1822
- ), X = c(() => E.value && s.getSearchResults), te = c(
1826
+ ), X = c(() => ce.value && s.getSearchResults), te = c(
1823
1827
  () => s.disabled || !s.items.length && !X.value
1824
1828
  ), q = c({
1825
1829
  get: () => {
1826
- const C = o.value;
1827
- return s.multiple ? H(C) ? C : [] : H(C) ? void 0 : C;
1830
+ const w = f.value;
1831
+ return s.multiple ? U(w) ? w : [] : U(w) ? void 0 : w;
1828
1832
  },
1829
- set: (C) => {
1830
- if (s.multiple && !H(C)) {
1833
+ set: (w) => {
1834
+ if (s.multiple && !U(w)) {
1831
1835
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1832
1836
  return;
1833
- } else if (!s.multiple && H(C)) {
1837
+ } else if (!s.multiple && U(w)) {
1834
1838
  console.warn("Attempting to set array value in selector w/ multiple=false");
1835
1839
  return;
1836
1840
  }
1837
- let R;
1841
+ let T;
1838
1842
  if (s.multiple)
1839
- R = C || [];
1843
+ T = w || [];
1840
1844
  else {
1841
- const O = o.value;
1842
- R = s.allowUnset && O && C && pe(O) === pe(C) ? void 0 : C;
1845
+ const A = f.value;
1846
+ T = s.allowUnset && A && w && he(A) === he(w) ? void 0 : w;
1843
1847
  }
1844
- s.fullyControlValue ? t("update:modelValue", R) : o.value = R, y.value += 1;
1848
+ s.fullyControlValue ? t("update:modelValue", T) : f.value = T, k.value += 1;
1845
1849
  }
1846
- }), Ie = c(() => s.multiple ? q.value.length !== 0 : !!q.value), Je = () => {
1850
+ }), Ve = c(() => s.multiple && U(q.value) ? q.value.length !== 0 : !!q.value), Qe = () => {
1847
1851
  s.multiple ? q.value = [] : q.value = void 0;
1848
- }, Qe = c(() => {
1849
- const C = r.value;
1850
- return !E.value || !(C != null && C.length) ? m.value : s.filterPredicate ? m.value.filter(
1851
- (R) => {
1852
- var O;
1853
- return ((O = s.filterPredicate) == null ? void 0 : O.call(s, R, C)) || !1;
1852
+ }, Ye = c(() => {
1853
+ const w = m.value;
1854
+ return !ce.value || !(w != null && w.length) ? u.value : s.filterPredicate ? u.value.filter(
1855
+ (T) => {
1856
+ var A;
1857
+ return ((A = s.filterPredicate) == null ? void 0 : A.call(s, T, w)) || !1;
1854
1858
  }
1855
- ) : m.value;
1856
- }), Be = (C) => JSON.stringify(C), pe = (C) => s.by ? C[s.by] : C, he = async () => {
1859
+ ) : u.value;
1860
+ }), Pe = (w) => JSON.stringify(w), he = (w) => o(w) ? w[s.by || "id"] : w, me = async () => {
1857
1861
  if (!(!X.value || !s.getSearchResults)) {
1858
- u.value = !0;
1862
+ y.value = !0;
1859
1863
  try {
1860
- m.value = await s.getSearchResults(r.value);
1864
+ u.value = await s.getSearchResults(m.value);
1861
1865
  } finally {
1862
- u.value = !1;
1866
+ y.value = !1;
1863
1867
  }
1864
1868
  }
1865
- }, Ye = Re(he, 1e3), Ze = (C) => {
1866
- const { active: R, disabled: O } = C || {}, { hideCheckmarks: K } = s, N = [
1869
+ }, Ze = Te(me, 1e3), et = (w) => {
1870
+ const { active: T, disabled: A } = w || {}, { hideCheckmarks: K } = s, N = [
1867
1871
  "relative transition cursor-pointer select-none py-1.5 pl-3",
1868
1872
  K ? "" : "pr-9"
1869
1873
  ];
1870
- return O ? N.push("opacity-50 cursor-not-allowed") : N.push(R ? "text-primary" : "text-foreground"), N.join(" ");
1874
+ return A ? N.push("opacity-50 cursor-not-allowed") : N.push(T ? "text-primary" : "text-foreground"), N.join(" ");
1871
1875
  };
1872
1876
  return oe(
1873
1877
  () => s.items,
1874
- (C) => {
1875
- m.value = C.slice();
1878
+ (w) => {
1879
+ u.value = w.slice();
1876
1880
  },
1877
1881
  { immediate: !0 }
1878
- ), oe(r, () => {
1879
- X.value && Ye();
1882
+ ), oe(m, () => {
1883
+ X.value && Ze();
1880
1884
  }), Z(() => {
1881
- X.value && !s.items.length && he();
1882
- }), l({ triggerSearch: he }), (C, R) => (a(), p("div", null, [
1883
- (a(), L(n(Pt), {
1884
- key: y.value,
1885
+ X.value && !s.items.length && me();
1886
+ }), l({ triggerSearch: me }), (w, T) => (a(), p("div", null, [
1887
+ (a(), j(n(_t), {
1888
+ key: k.value,
1885
1889
  modelValue: q.value,
1886
- "onUpdate:modelValue": R[4] || (R[4] = (O) => q.value = O),
1890
+ "onUpdate:modelValue": T[4] || (T[4] = (A) => q.value = A),
1887
1891
  name: e.name,
1888
1892
  multiple: e.multiple,
1889
1893
  by: e.by,
1890
1894
  disabled: te.value,
1891
1895
  as: "div"
1892
1896
  }, {
1893
- default: _(() => [
1894
- V(n(jt), {
1895
- class: x(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
1897
+ default: B(() => [
1898
+ V(n(Ot), {
1899
+ class: b(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
1896
1900
  }, {
1897
- default: _(() => [
1898
- A(B(e.label), 1)
1901
+ default: B(() => [
1902
+ M(I(e.label), 1)
1899
1903
  ]),
1900
1904
  _: 1
1901
1905
  }, 8, ["class"]),
1902
1906
  d("div", {
1903
- class: x(F.value)
1907
+ class: b(v.value)
1904
1908
  }, [
1905
- V(n(Ot), {
1906
- class: x(W.value)
1909
+ V(n(At), {
1910
+ class: b(H.value)
1907
1911
  }, {
1908
- default: _(({ open: O }) => [
1909
- d("div", xl, [
1910
- d("div", kl, [
1911
- !q.value || n(H)(q.value) && !q.value.length ? z(C.$slots, "nothing-selected", { key: 0 }, () => [
1912
- A(B(e.placeholder ? e.placeholder : e.label), 1)
1913
- ]) : z(C.$slots, "something-selected", {
1912
+ default: B(({ open: A }) => [
1913
+ d("div", yl, [
1914
+ d("div", xl, [
1915
+ !q.value || n(U)(q.value) && !q.value.length ? R(w.$slots, "nothing-selected", { key: 0 }, () => [
1916
+ M(I(e.placeholder ? e.placeholder : e.label), 1)
1917
+ ]) : R(w.$slots, "something-selected", {
1914
1918
  key: 1,
1915
1919
  value: q.value
1916
1920
  }, () => [
1917
- A(B(Be(q.value)), 1)
1921
+ M(I(Pe(q.value)), 1)
1918
1922
  ])
1919
1923
  ]),
1920
- d("div", wl, [
1921
- w.value ? (a(), L(n(rt), {
1924
+ d("div", kl, [
1925
+ h.value ? (a(), j(n(it), {
1922
1926
  key: 0,
1923
1927
  class: "h-4 w-4 text-danger",
1924
1928
  "aria-hidden": "true"
1925
- })) : e.showRequired ? (a(), p("div", Cl, " * ")) : I("", !0),
1926
- O ? (a(), L(n(De), {
1929
+ })) : e.showRequired ? (a(), p("div", wl, " * ")) : S("", !0),
1930
+ A ? (a(), j(n(De), {
1927
1931
  key: 2,
1928
1932
  class: "h-4 w-4 text-foreground",
1929
1933
  "aria-hidden": "true"
1930
- })) : (a(), L(n(it), {
1934
+ })) : (a(), j(n(ut), {
1931
1935
  key: 3,
1932
1936
  class: "h-4 w-4 text-foreground",
1933
1937
  "aria-hidden": "true"
@@ -1937,106 +1941,106 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
1937
1941
  ]),
1938
1942
  _: 3
1939
1943
  }, 8, ["class"]),
1940
- S.value ? ae((a(), p("button", {
1944
+ L.value ? ae((a(), p("button", {
1941
1945
  key: 0,
1942
- class: x(D.value),
1946
+ class: b(W.value),
1943
1947
  disabled: e.disabled,
1944
- onClick: R[0] || (R[0] = (O) => Je())
1948
+ onClick: T[0] || (T[0] = (A) => Qe())
1945
1949
  }, [
1946
- V(n(xe), { class: "w-3 h-3" })
1947
- ], 10, $l)), [
1948
- [n(Ee), "Clear"]
1949
- ]) : I("", !0),
1950
- V(be, {
1950
+ V(n(we), { class: "w-3 h-3" })
1951
+ ], 10, Cl)), [
1952
+ [n(Ue), "Clear"]
1953
+ ]) : S("", !0),
1954
+ V(xe, {
1951
1955
  "leave-active-class": "transition ease-in duration-100",
1952
1956
  "leave-from-class": "opacity-100",
1953
1957
  "leave-to-class": "opacity-0"
1954
1958
  }, {
1955
- default: _(() => [
1956
- V(n(At), {
1959
+ default: B(() => [
1960
+ V(n(Mt), {
1957
1961
  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",
1958
- onFocus: R[3] || (R[3] = (O) => {
1962
+ onFocus: T[3] || (T[3] = (A) => {
1959
1963
  var K;
1960
1964
  return (K = i.value) == null ? void 0 : K.focus();
1961
1965
  })
1962
1966
  }, {
1963
- default: _(() => [
1964
- E.value ? (a(), p("label", Sl, [
1965
- Il,
1966
- d("div", Bl, [
1967
- d("div", _l, [
1968
- V(n(ut), { class: "h-5 w-5 text-foreground" })
1967
+ default: B(() => [
1968
+ ce.value ? (a(), p("label", $l, [
1969
+ Sl,
1970
+ d("div", Il, [
1971
+ d("div", Bl, [
1972
+ V(n(ct), { class: "h-5 w-5 text-foreground" })
1969
1973
  ]),
1970
1974
  ae(d("input", {
1971
1975
  ref_key: "searchInput",
1972
1976
  ref: i,
1973
- "onUpdate:modelValue": R[1] || (R[1] = (O) => r.value = O),
1977
+ "onUpdate:modelValue": T[1] || (T[1] = (A) => m.value = A),
1974
1978
  type: "text",
1975
1979
  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",
1976
1980
  placeholder: e.searchPlaceholder,
1977
- onKeydown: R[2] || (R[2] = ue(() => {
1981
+ onKeydown: T[2] || (T[2] = ue(() => {
1978
1982
  }, ["stop"]))
1979
1983
  }, null, 40, Vl), [
1980
- [Me, r.value]
1984
+ [ze, m.value]
1981
1985
  ])
1982
1986
  ])
1983
- ])) : I("", !0),
1987
+ ])) : S("", !0),
1984
1988
  d("div", {
1985
- class: x(["overflow-auto simple-scrollbar", [E.value ? "max-h-52" : "max-h-60"]])
1989
+ class: b(["overflow-auto simple-scrollbar", [ce.value ? "max-h-52" : "max-h-60"]])
1986
1990
  }, [
1987
- X.value && u.value ? (a(), p("div", Ll, [
1988
- V(Xe, { loading: !0 })
1989
- ])) : X.value && !m.value.length ? (a(), p("div", Pl, [
1990
- z(C.$slots, "nothing-found", {}, () => [
1991
+ X.value && y.value ? (a(), p("div", Pl, [
1992
+ V(Ne, { loading: !0 })
1993
+ ])) : X.value && !u.value.length ? (a(), p("div", Ll, [
1994
+ R(w.$slots, "nothing-found", {}, () => [
1991
1995
  jl
1992
1996
  ])
1993
- ])) : I("", !0),
1994
- !X.value || !u.value ? (a(!0), p(T, { key: 2 }, U(Qe.value, (O) => {
1997
+ ])) : S("", !0),
1998
+ !X.value || !y.value ? (a(!0), p(F, { key: 2 }, E(Ye.value, (A) => {
1995
1999
  var K;
1996
- return a(), L(n(Mt), {
1997
- key: pe(O),
1998
- value: O,
1999
- disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, O)) || !1
2000
+ return a(), j(n(zt), {
2001
+ key: he(A),
2002
+ value: A,
2003
+ disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, A)) || !1
2000
2004
  }, {
2001
- default: _(({ active: N, selected: _e }) => {
2002
- var Ve, Le;
2005
+ default: B(({ active: N, selected: Le }) => {
2006
+ var je, _e;
2003
2007
  return [
2004
2008
  d("li", {
2005
- class: x(
2006
- Ze({
2009
+ class: b(
2010
+ et({
2007
2011
  active: N,
2008
- disabled: ((Ve = e.disabledItemPredicate) == null ? void 0 : Ve.call(e, O)) || !1
2012
+ disabled: ((je = e.disabledItemPredicate) == null ? void 0 : je.call(e, A)) || !1
2009
2013
  })
2010
2014
  )
2011
2015
  }, [
2012
- d("span", Ol, [
2013
- z(C.$slots, "option", {
2014
- item: O,
2016
+ d("span", _l, [
2017
+ R(w.$slots, "option", {
2018
+ item: A,
2015
2019
  active: N,
2016
- selected: _e,
2017
- disabled: ((Le = e.disabledItemPredicate) == null ? void 0 : Le.call(e, O)) || !1
2020
+ selected: Le,
2021
+ disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e, A)) || !1
2018
2022
  }, () => [
2019
- A(B(Be(O)), 1)
2023
+ M(I(Pe(A)), 1)
2020
2024
  ])
2021
2025
  ]),
2022
- !e.hideCheckmarks && _e ? (a(), p("span", {
2026
+ !e.hideCheckmarks && Le ? (a(), p("span", {
2023
2027
  key: 0,
2024
- class: x([
2028
+ class: b([
2025
2029
  N ? "text-primary" : "text-foreground",
2026
2030
  "absolute inset-y-0 right-0 flex items-center pr-4"
2027
2031
  ])
2028
2032
  }, [
2029
- V(n(Te), {
2033
+ V(n(Fe), {
2030
2034
  class: "h-5 w-5",
2031
2035
  "aria-hidden": "true"
2032
2036
  })
2033
- ], 2)) : I("", !0)
2037
+ ], 2)) : S("", !0)
2034
2038
  ], 2)
2035
2039
  ];
2036
2040
  }),
2037
2041
  _: 2
2038
2042
  }, 1032, ["value", "disabled"]);
2039
- }), 128)) : I("", !0)
2043
+ }), 128)) : S("", !0)
2040
2044
  ], 2)
2041
2045
  ]),
2042
2046
  _: 3
@@ -2048,37 +2052,37 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
2048
2052
  ]),
2049
2053
  _: 3
2050
2054
  }, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
2051
- b.value ? (a(), p("p", {
2055
+ $.value ? (a(), p("p", {
2052
2056
  key: 0,
2053
- id: b.value,
2054
- class: x(["mt-2 text-sm", $.value])
2055
- }, B(h.value), 11, Al)) : I("", !0)
2057
+ id: $.value,
2058
+ class: b(["mt-2 text-sm", P.value])
2059
+ }, I(_.value), 11, Ol)) : S("", !0)
2056
2060
  ]));
2057
2061
  }
2058
- }), Ml = /* @__PURE__ */ j({
2062
+ }), Al = /* @__PURE__ */ O({
2059
2063
  __name: "SourceAppBadge",
2060
2064
  props: {
2061
2065
  sourceApp: null
2062
2066
  },
2063
2067
  setup(e) {
2064
- return (l, t) => (a(), L(We, {
2068
+ return (l, t) => (a(), j(qe, {
2065
2069
  "color-classes": "text-foreground-on-primary",
2066
2070
  rounded: "",
2067
2071
  style: re({ backgroundColor: e.sourceApp.bgColor })
2068
2072
  }, {
2069
- default: _(() => [
2070
- A(B(e.sourceApp.short), 1)
2073
+ default: B(() => [
2074
+ M(I(e.sourceApp.short), 1)
2071
2075
  ]),
2072
2076
  _: 1
2073
2077
  }, 8, ["style"]));
2074
2078
  }
2075
- }), zl = {
2079
+ }), Ml = {
2076
2080
  key: 0,
2077
2081
  class: "text-foreground-2 normal"
2078
- }, Rl = {
2082
+ }, zl = {
2079
2083
  key: 1,
2080
2084
  class: "flex items-center"
2081
- }, Dl = { class: "truncate" }, Tl = { class: "flex items-center" }, Fl = { class: "truncate" }, Un = /* @__PURE__ */ j({
2085
+ }, Rl = { class: "truncate" }, Tl = { class: "flex items-center" }, Dl = { class: "truncate" }, En = /* @__PURE__ */ O({
2082
2086
  __name: "SourceApps",
2083
2087
  props: {
2084
2088
  /**
@@ -2134,37 +2138,45 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
2134
2138
  items: {
2135
2139
  type: Array,
2136
2140
  default: void 0
2141
+ },
2142
+ clearable: {
2143
+ type: Boolean
2144
+ },
2145
+ help: {
2146
+ type: String
2137
2147
  }
2138
2148
  },
2139
2149
  emits: ["update:modelValue"],
2140
2150
  setup(e, { emit: l }) {
2141
- const t = e, s = M(null), o = M(null), { selectedValue: f, hiddenSelectedItemCount: i, isMultiItemArrayValue: r, firstItem: m } = Ke({
2151
+ const t = e, s = z(null), o = z(null), { selectedValue: f, hiddenSelectedItemCount: r, isMultiItemArrayValue: i, firstItem: m } = Xe({
2142
2152
  props: Y(t),
2143
2153
  emit: l,
2144
2154
  dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
2145
2155
  }), u = (y, k) => y.name.toLocaleLowerCase().includes(k.toLocaleLowerCase());
2146
- return (y, k) => (a(), L(Ne, {
2156
+ return (y, k) => (a(), j(Je, {
2147
2157
  modelValue: n(f),
2148
- "onUpdate:modelValue": k[0] || (k[0] = (g) => de(f) ? f.value = g : null),
2158
+ "onUpdate:modelValue": k[0] || (k[0] = (g) => fe(f) ? f.value = g : null),
2149
2159
  multiple: e.multiple,
2150
- items: e.items ?? n(St),
2160
+ items: e.items ?? n(It),
2151
2161
  search: e.search,
2152
2162
  "search-placeholder": e.searchPlaceholder,
2153
2163
  label: e.label,
2154
2164
  "show-label": e.showLabel,
2155
2165
  name: e.name || "sourceApps",
2156
2166
  "filter-predicate": u,
2167
+ clearable: e.clearable,
2168
+ help: e.help,
2157
2169
  by: "name"
2158
2170
  }, {
2159
- "nothing-selected": _(() => [
2160
- e.selectorPlaceholder ? (a(), p(T, { key: 0 }, [
2161
- A(B(e.selectorPlaceholder), 1)
2162
- ], 64)) : (a(), p(T, { key: 1 }, [
2163
- A(B(e.multiple ? "Select apps" : "Select an app"), 1)
2171
+ "nothing-selected": B(() => [
2172
+ e.selectorPlaceholder ? (a(), p(F, { key: 0 }, [
2173
+ M(I(e.selectorPlaceholder), 1)
2174
+ ], 64)) : (a(), p(F, { key: 1 }, [
2175
+ M(I(e.multiple ? "Select apps" : "Select an app"), 1)
2164
2176
  ], 64))
2165
2177
  ]),
2166
- "something-selected": _(({ value: g }) => [
2167
- n(r)(g) ? (a(), p("div", {
2178
+ "something-selected": B(({ value: g }) => [
2179
+ n(i)(g) ? (a(), p("div", {
2168
2180
  key: 0,
2169
2181
  ref_key: "elementToWatchForChanges",
2170
2182
  ref: s,
@@ -2175,33 +2187,33 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
2175
2187
  ref: o,
2176
2188
  class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
2177
2189
  }, [
2178
- (a(!0), p(T, null, U(g, (w) => (a(), L(Ml, {
2179
- key: w.name,
2180
- "source-app": w
2190
+ (a(!0), p(F, null, E(g, (C) => (a(), j(Al, {
2191
+ key: C.name,
2192
+ "source-app": C
2181
2193
  }, null, 8, ["source-app"]))), 128))
2182
2194
  ], 512),
2183
- n(i) > 0 ? (a(), p("div", zl, " +" + B(n(i)), 1)) : I("", !0)
2184
- ], 512)) : (a(), p("div", Rl, [
2195
+ n(r) > 0 ? (a(), p("div", Ml, " +" + I(n(r)), 1)) : S("", !0)
2196
+ ], 512)) : (a(), p("div", zl, [
2185
2197
  d("div", {
2186
2198
  class: "h-2 w-2 rounded-full mr-2",
2187
2199
  style: re({ backgroundColor: n(m)(g).bgColor })
2188
2200
  }, null, 4),
2189
- d("span", Dl, B(n(m)(g).name), 1)
2201
+ d("span", Rl, I(n(m)(g).name), 1)
2190
2202
  ]))
2191
2203
  ]),
2192
- option: _(({ item: g }) => [
2204
+ option: B(({ item: g }) => [
2193
2205
  d("div", Tl, [
2194
2206
  d("div", {
2195
2207
  class: "h-2 w-2 rounded-full mr-2",
2196
2208
  style: re({ backgroundColor: g.bgColor })
2197
2209
  }, null, 4),
2198
- d("span", Fl, B(g.name), 1)
2210
+ d("span", Dl, I(g.name), 1)
2199
2211
  ])
2200
2212
  ]),
2201
2213
  _: 1
2202
- }, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name"]));
2214
+ }, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name", "clearable", "help"]));
2203
2215
  }
2204
- }), El = { class: "flex flex-wrap gap-1.5 text-xs" }, Wn = /* @__PURE__ */ j({
2216
+ }), Fl = { class: "flex flex-wrap gap-1.5 text-xs" }, Un = /* @__PURE__ */ O({
2205
2217
  __name: "Badges",
2206
2218
  props: {
2207
2219
  items: null,
@@ -2215,15 +2227,15 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
2215
2227
  },
2216
2228
  emits: ["update:modelValue"],
2217
2229
  setup(e, { emit: l }) {
2218
- const t = e, { selectedValue: s, isArrayValue: o } = Ke({
2230
+ const t = e, { selectedValue: s, isArrayValue: o } = Xe({
2219
2231
  props: Y(t),
2220
2232
  emit: l
2221
- }), f = (i) => {
2222
- o(s.value) ? s.value = s.value.filter((r) => r.id !== i.id) : s.value = void 0;
2233
+ }), f = (r) => {
2234
+ o(s.value) ? s.value = s.value.filter((i) => i.id !== r.id) : s.value = void 0;
2223
2235
  };
2224
- return (i, r) => (a(), L(Ne, {
2236
+ return (r, i) => (a(), j(Je, {
2225
2237
  modelValue: n(s),
2226
- "onUpdate:modelValue": r[0] || (r[0] = (m) => de(s) ? s.value = m : null),
2238
+ "onUpdate:modelValue": i[0] || (i[0] = (m) => fe(s) ? s.value = m : null),
2227
2239
  multiple: e.multiple,
2228
2240
  items: e.items,
2229
2241
  label: e.label,
@@ -2232,52 +2244,52 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
2232
2244
  rules: e.rules,
2233
2245
  by: e.by
2234
2246
  }, {
2235
- "something-selected": _(({ value: m }) => [
2236
- d("ul", El, [
2237
- (a(!0), p(T, null, U(n(o)(m) ? m : [m], (u) => (a(), p("li", {
2247
+ "something-selected": B(({ value: m }) => [
2248
+ d("ul", Fl, [
2249
+ (a(!0), p(F, null, E(n(o)(m) ? m : [m], (u) => (a(), p("li", {
2238
2250
  key: u[e.by]
2239
2251
  }, [
2240
- V(We, {
2252
+ V(qe, {
2241
2253
  size: "lg",
2242
2254
  "clickable-icon": !0,
2243
- "icon-left": n(xe),
2255
+ "icon-left": n(we),
2244
2256
  onClickIcon: ue((y) => f(u), ["stop"])
2245
2257
  }, {
2246
- default: _(() => [
2247
- A(B(u.text), 1)
2258
+ default: B(() => [
2259
+ M(I(u.text), 1)
2248
2260
  ]),
2249
2261
  _: 2
2250
2262
  }, 1032, ["icon-left", "onClickIcon"])
2251
2263
  ]))), 128))
2252
2264
  ])
2253
2265
  ]),
2254
- option: _(({ item: m }) => [
2255
- A(B(m.text), 1)
2266
+ option: B(({ item: m }) => [
2267
+ M(I(m.text), 1)
2256
2268
  ]),
2257
2269
  _: 1
2258
2270
  }, 8, ["modelValue", "multiple", "items", "label", "name", "help", "rules", "by"]));
2259
2271
  }
2260
- }), Ul = { class: "flex items-center" }, Wl = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, qn = /* @__PURE__ */ j({
2272
+ }), El = { class: "flex items-center" }, Ul = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, Wn = /* @__PURE__ */ O({
2261
2273
  __name: "Switch",
2262
2274
  props: {
2263
2275
  modelValue: { type: Boolean }
2264
2276
  },
2265
2277
  emits: ["update:modelValue"],
2266
2278
  setup(e) {
2267
- const l = lt(e, "modelValue");
2268
- return (t, s) => (a(), p("div", Ul, [
2269
- V(n(zt), {
2279
+ const l = nt(e, "modelValue");
2280
+ return (t, s) => (a(), p("div", El, [
2281
+ V(n(Rt), {
2270
2282
  modelValue: l.value,
2271
2283
  "onUpdate:modelValue": s[0] || (s[0] = (o) => l.value = o),
2272
- class: x(["relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary", { "bg-primary": l.value, "bg-primary-muted": !l.value }])
2284
+ class: b(["relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary", { "bg-primary": l.value, "bg-primary-muted": !l.value }])
2273
2285
  }, {
2274
- default: _(() => [
2275
- d("div", Wl, [
2276
- V(n(Te), { class: "h-5 w-5 drop-shadow-md" }),
2277
- V(n(xe), { class: "h-5 w-5 drop-shadow-md" })
2286
+ default: B(() => [
2287
+ d("div", Ul, [
2288
+ V(n(Fe), { class: "h-5 w-5 drop-shadow-md" }),
2289
+ V(n(we), { class: "h-5 w-5 drop-shadow-md" })
2278
2290
  ]),
2279
2291
  d("span", {
2280
- class: x(["scale-95 pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200", { "translate-x-5": l.value, "translate-x-0": !l.value }])
2292
+ class: b(["scale-95 pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200", { "translate-x-5": l.value, "translate-x-0": !l.value }])
2281
2293
  }, null, 2)
2282
2294
  ]),
2283
2295
  _: 1
@@ -2286,28 +2298,28 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
2286
2298
  }
2287
2299
  });
2288
2300
  var ne = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(ne || {});
2289
- const ge = It(), ql = {
2301
+ const be = Bt(), Wl = {
2290
2302
  [
2291
2303
  "cmd-or-ctrl"
2292
2304
  /* CtrlOrCmd */
2293
- ]: ge === me.Mac ? "Cmd" : "Ctrl",
2305
+ ]: be === ve.Mac ? "Cmd" : "Ctrl",
2294
2306
  [
2295
2307
  "alt-or-opt"
2296
2308
  /* AltOrOpt */
2297
- ]: ge === me.Mac ? "Opt" : "Alt",
2309
+ ]: be === ve.Mac ? "Opt" : "Alt",
2298
2310
  shift: "Shift"
2299
2311
  };
2300
- function Hn(e) {
2312
+ function qn(e) {
2301
2313
  const l = (t) => Object.values(ne).includes(t);
2302
- return e.map((t) => l(t) ? ql[t] : t).join("+");
2314
+ return e.map((t) => l(t) ? Wl[t] : t).join("+");
2303
2315
  }
2304
- function Gn(e, ...l) {
2305
- Vt(
2316
+ function Hn(e, ...l) {
2317
+ Lt(
2306
2318
  l[0],
2307
2319
  (t) => {
2308
- const s = t.getModifierState("Alt"), o = ge === me.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), f = t.getModifierState("Shift");
2309
- for (const i of e)
2310
- switch (i) {
2320
+ const s = t.getModifierState("Alt"), o = be === ve.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), f = t.getModifierState("Shift");
2321
+ for (const r of e)
2322
+ switch (r) {
2311
2323
  case ne.CtrlOrCmd:
2312
2324
  if (!o)
2313
2325
  return;
@@ -2326,20 +2338,20 @@ function Gn(e, ...l) {
2326
2338
  l[2]
2327
2339
  );
2328
2340
  }
2329
- function Kn(e) {
2330
- const l = (e == null ? void 0 : e.model) || M(), t = c({
2341
+ function Gn(e) {
2342
+ const l = (e == null ? void 0 : e.model) || z(), t = c({
2331
2343
  get: () => !!l.value,
2332
2344
  set: (s) => l.value = s ? !0 : void 0
2333
2345
  });
2334
2346
  return { model: l, isChecked: t };
2335
2347
  }
2336
- const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Gl = { class: "fixed inset-0 z-10 overflow-y-auto" }, Kl = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Xl = {
2348
+ const ql = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Hl = { class: "fixed inset-0 z-10 overflow-y-auto" }, Gl = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Kl = {
2337
2349
  key: 0,
2338
2350
  class: "flex items-center justify-center shadow p-4 relative z-10 bg-foundation rounded-t-lg"
2339
- }, Nl = { class: "text-2xl font-bold" }, Jl = { class: "p-4 sm:p-6" }, Ql = {
2351
+ }, Xl = { class: "text-2xl font-bold" }, Nl = { class: "p-4 sm:p-6" }, Jl = {
2340
2352
  key: 2,
2341
2353
  class: "flex p-4 sm:px-6 sm:py-5 border-t gap-2 border-outline-3"
2342
- }, Xn = /* @__PURE__ */ j({
2354
+ }, Kn = /* @__PURE__ */ O({
2343
2355
  __name: "Dialog",
2344
2356
  props: {
2345
2357
  open: { type: Boolean },
@@ -2352,10 +2364,10 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
2352
2364
  },
2353
2365
  emits: ["update:open", "fully-closed"],
2354
2366
  setup(e, { emit: l }) {
2355
- const t = e, s = ye(), o = c(() => !!t.onSubmit), f = c(() => t.buttons || s.buttons), i = c({
2367
+ const t = e, s = ke(), o = c(() => !!t.onSubmit), f = c(() => t.buttons || s.buttons), r = c({
2356
2368
  get: () => t.open,
2357
2369
  set: (y) => l("update:open", y)
2358
- }), r = c(() => {
2370
+ }), i = c(() => {
2359
2371
  switch (t.maxWidth) {
2360
2372
  case "sm":
2361
2373
  return 0;
@@ -2370,22 +2382,22 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
2370
2382
  }
2371
2383
  }), m = c(() => {
2372
2384
  const y = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
2373
- return !t.title && !f.value && y.push("px-4 pt-4 pb-4", "sm:p-6"), r.value >= 1 && y.push("md:max-w-2xl"), r.value >= 2 && y.push("lg:max-w-4xl"), r.value >= 3 && y.push("xl:max-w-6xl"), r.value >= 4 && y.push("2xl:max-w-7xl"), y.join(" ");
2385
+ return !t.title && !f.value && y.push("px-4 pt-4 pb-4", "sm:p-6"), i.value >= 1 && y.push("md:max-w-2xl"), i.value >= 2 && y.push("lg:max-w-4xl"), i.value >= 3 && y.push("xl:max-w-6xl"), i.value >= 4 && y.push("2xl:max-w-7xl"), y.join(" ");
2374
2386
  }), u = () => {
2375
- t.preventCloseOnClickOutside || (i.value = !1);
2387
+ t.preventCloseOnClickOutside || (r.value = !1);
2376
2388
  };
2377
- return (y, k) => (a(), L(n(Rt), {
2389
+ return (y, k) => (a(), j(n(Tt), {
2378
2390
  as: "template",
2379
- show: i.value
2391
+ show: r.value
2380
2392
  }, {
2381
- default: _(() => [
2393
+ default: B(() => [
2382
2394
  V(n(Dt), {
2383
2395
  as: "div",
2384
2396
  class: "relative z-40",
2385
2397
  onClose: u
2386
2398
  }, {
2387
- default: _(() => [
2388
- V(n(Oe), {
2399
+ default: B(() => [
2400
+ V(n(Ae), {
2389
2401
  as: "template",
2390
2402
  enter: "ease-out duration-300",
2391
2403
  "enter-from": "opacity-0",
@@ -2394,14 +2406,14 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
2394
2406
  "leave-from": "opacity-100",
2395
2407
  "leave-to": "opacity-0"
2396
2408
  }, {
2397
- default: _(() => [
2398
- Hl
2409
+ default: B(() => [
2410
+ ql
2399
2411
  ]),
2400
2412
  _: 1
2401
2413
  }),
2402
- d("div", Gl, [
2403
- d("div", Kl, [
2404
- V(n(Oe), {
2414
+ d("div", Hl, [
2415
+ d("div", Gl, [
2416
+ V(n(Ae), {
2405
2417
  as: "template",
2406
2418
  enter: "ease-out duration-300",
2407
2419
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -2411,41 +2423,41 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
2411
2423
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
2412
2424
  onAfterLeave: k[1] || (k[1] = (g) => y.$emit("fully-closed"))
2413
2425
  }, {
2414
- default: _(() => [
2415
- V(n(Tt), {
2416
- class: x([
2426
+ default: B(() => [
2427
+ V(n(Ft), {
2428
+ class: b([
2417
2429
  "transform rounded-lg bg-foundation text-left shadow-xl transition-all",
2418
2430
  m.value
2419
2431
  ]),
2420
2432
  as: o.value ? "form" : "div",
2421
2433
  onSubmit: ue(e.onSubmit, ["prevent"])
2422
2434
  }, {
2423
- default: _(() => [
2424
- e.title ? (a(), p("div", Xl, [
2425
- d("h4", Nl, B(e.title), 1)
2426
- ])) : I("", !0),
2427
- e.hideCloser ? I("", !0) : (a(), p("button", {
2435
+ default: B(() => [
2436
+ e.title ? (a(), p("div", Kl, [
2437
+ d("h4", Xl, I(e.title), 1)
2438
+ ])) : S("", !0),
2439
+ e.hideCloser ? S("", !0) : (a(), p("button", {
2428
2440
  key: 1,
2429
2441
  class: "absolute z-20 top-5 right-4 text-foreground",
2430
- onClick: k[0] || (k[0] = (g) => i.value = !1)
2442
+ onClick: k[0] || (k[0] = (g) => r.value = !1)
2431
2443
  }, [
2432
- V(n(gt), { class: "h-6 w-6" })
2444
+ V(n(vt), { class: "h-6 w-6" })
2433
2445
  ])),
2434
- d("div", Jl, [
2435
- z(y.$slots, "default", {}, () => [
2436
- A("Put your content here!")
2446
+ d("div", Nl, [
2447
+ R(y.$slots, "default", {}, () => [
2448
+ M("Put your content here!")
2437
2449
  ])
2438
2450
  ]),
2439
- f.value ? (a(), p("div", Ql, [
2440
- e.buttons ? (a(!0), p(T, { key: 0 }, U(e.buttons, (g, w) => (a(), L(n(ee), ie({ key: w }, g.props, {
2451
+ f.value ? (a(), p("div", Jl, [
2452
+ e.buttons ? (a(!0), p(F, { key: 0 }, E(e.buttons, (g, C) => (a(), j(n(ee), ie({ key: C }, g.props, {
2441
2453
  onClick: g.onClick
2442
2454
  }), {
2443
- default: _(() => [
2444
- A(B(g.text), 1)
2455
+ default: B(() => [
2456
+ M(I(g.text), 1)
2445
2457
  ]),
2446
2458
  _: 2
2447
- }, 1040, ["onClick"]))), 128)) : z(y.$slots, "buttons", { key: 1 })
2448
- ])) : I("", !0)
2459
+ }, 1040, ["onClick"]))), 128)) : R(y.$slots, "buttons", { key: 1 })
2460
+ ])) : S("", !0)
2449
2461
  ]),
2450
2462
  _: 3
2451
2463
  }, 8, ["class", "as", "onSubmit"])
@@ -2461,7 +2473,7 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
2461
2473
  _: 3
2462
2474
  }, 8, ["show"]));
2463
2475
  }
2464
- }), Yl = { class: "inline-flex items-center space-x-2" }, Zl = { class: "label-light" }, Nn = /* @__PURE__ */ j({
2476
+ }), Ql = { class: "inline-flex items-center space-x-2" }, Yl = { class: "label-light" }, Xn = /* @__PURE__ */ O({
2465
2477
  __name: "Disclosure",
2466
2478
  props: {
2467
2479
  title: null,
@@ -2516,32 +2528,32 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
2516
2528
  return o.join(" ");
2517
2529
  });
2518
2530
  return (o, f) => (a(), p("div", null, [
2519
- V(n(Ft), null, {
2520
- default: _(({ open: i }) => [
2521
- V(n(Et), {
2522
- class: x(t.value)
2531
+ V(n(Et), null, {
2532
+ default: B(({ open: r }) => [
2533
+ V(n(Ut), {
2534
+ class: b(t.value)
2523
2535
  }, {
2524
- default: _(() => [
2525
- d("div", Yl, [
2526
- e.icon ? (a(), L(G(e.icon), {
2536
+ default: B(() => [
2537
+ d("div", Ql, [
2538
+ e.icon ? (a(), j(G(e.icon), {
2527
2539
  key: 0,
2528
2540
  class: "h-4 w-4"
2529
- })) : I("", !0),
2530
- d("span", null, B(e.title), 1)
2541
+ })) : S("", !0),
2542
+ d("span", null, I(e.title), 1)
2531
2543
  ]),
2532
2544
  V(n(De), {
2533
- class: x([i ? "" : "rotate-180 transform", "h-5 w-5"])
2545
+ class: b([r ? "" : "rotate-180 transform", "h-5 w-5"])
2534
2546
  }, null, 8, ["class"])
2535
2547
  ]),
2536
2548
  _: 2
2537
2549
  }, 1032, ["class"]),
2538
- V(n(Ut), {
2539
- class: x(s.value)
2550
+ V(n(Wt), {
2551
+ class: b(s.value)
2540
2552
  }, {
2541
- default: _(() => [
2542
- d("div", Zl, [
2543
- z(o.$slots, "default", {}, () => [
2544
- A("Panel contents")
2553
+ default: B(() => [
2554
+ d("div", Yl, [
2555
+ R(o.$slots, "default", {}, () => [
2556
+ M("Panel contents")
2545
2557
  ])
2546
2558
  ])
2547
2559
  ]),
@@ -2554,7 +2566,7 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
2554
2566
  }
2555
2567
  });
2556
2568
  var J = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(J || {});
2557
- const Jn = /* @__PURE__ */ j({
2569
+ const Nn = /* @__PURE__ */ O({
2558
2570
  __name: "GridListToggle",
2559
2571
  props: {
2560
2572
  modelValue: null
@@ -2563,70 +2575,70 @@ const Jn = /* @__PURE__ */ j({
2563
2575
  setup(e, { emit: l }) {
2564
2576
  const t = e, s = c({
2565
2577
  get: () => t.modelValue || J.Grid,
2566
- set: (i) => l("update:modelValue", i)
2578
+ set: (r) => l("update:modelValue", r)
2567
2579
  }), o = c(
2568
- () => s.value === J.Grid ? ct : dt
2569
- ), f = (i) => {
2570
- l("click", i);
2571
- const r = s.value === J.Grid ? J.List : J.Grid;
2572
- s.value = r;
2580
+ () => s.value === J.Grid ? dt : ft
2581
+ ), f = (r) => {
2582
+ l("click", r);
2583
+ const i = s.value === J.Grid ? J.List : J.Grid;
2584
+ s.value = i;
2573
2585
  };
2574
- return (i, r) => (a(), p("button", {
2586
+ return (r, i) => (a(), p("button", {
2575
2587
  class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
2576
2588
  onClick: f
2577
2589
  }, [
2578
- (a(), L(G(o.value), { class: "h-6 w-6" }))
2590
+ (a(), j(G(o.value), { class: "h-6 w-6" }))
2579
2591
  ]));
2580
2592
  }
2581
2593
  });
2582
- var en = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(en || {}), ve = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(ve || {});
2583
- function tn(e, l) {
2584
- if (!$e)
2594
+ var Zl = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(Zl || {}), ye = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(ye || {});
2595
+ function en(e, l) {
2596
+ if (!Ie)
2585
2597
  return;
2586
2598
  const {
2587
2599
  wait: t = 100,
2588
2600
  throttleOrDebounce: s = 0
2589
2601
  /* Throttle */
2590
- } = l || {}, o = t ? s === 0 ? nt(e, t) : Re(e, t) : e;
2591
- Z(() => window.addEventListener("resize", o)), ze(() => window.removeEventListener("resize", o));
2602
+ } = l || {}, o = t ? s === 0 ? at(e, t) : Te(e, t) : e;
2603
+ Z(() => window.addEventListener("resize", o)), Re(() => window.removeEventListener("resize", o));
2592
2604
  }
2593
- function Qn(e) {
2605
+ function Jn(e) {
2594
2606
  Z(() => {
2595
2607
  window.addEventListener("beforeunload", e);
2596
- }), ze(() => {
2608
+ }), Re(() => {
2597
2609
  window.removeEventListener("beforeunload", e);
2598
2610
  });
2599
2611
  }
2600
- function sn(e) {
2601
- const { el: l, defaultDirection: t } = e, s = M(
2612
+ function tn(e) {
2613
+ const { el: l, defaultDirection: t } = e, s = z(
2602
2614
  Q(t) ? 1 : t
2603
2615
  /* Right */
2604
2616
  ), o = c(() => {
2605
- const i = n(e.stopUpdatesBelowWidth);
2606
- if (!Q(i))
2607
- return i;
2608
- const r = n(l);
2609
- return r != null && r.offsetWidth ? r.offsetWidth * 2 : void 0;
2617
+ const r = n(e.stopUpdatesBelowWidth);
2618
+ if (!Q(r))
2619
+ return r;
2620
+ const i = n(l);
2621
+ return i != null && i.offsetWidth ? i.offsetWidth * 2 : void 0;
2610
2622
  }), f = () => {
2611
- if (!$e)
2623
+ if (!Ie)
2612
2624
  return;
2613
- const i = n(l);
2614
- if (!i)
2625
+ const r = n(l);
2626
+ if (!r)
2615
2627
  return;
2616
- const r = i.getBoundingClientRect(), m = r.x + r.width > window.innerWidth, u = r.x < 0;
2628
+ const i = r.getBoundingClientRect(), m = i.x + i.width > window.innerWidth, u = i.x < 0;
2617
2629
  m && u || !Q(o.value) && window.innerWidth < o.value || (m ? s.value = 0 : u && (s.value = 1));
2618
2630
  };
2619
- return tn(() => f()), oe(
2631
+ return en(() => f()), oe(
2620
2632
  () => n(l),
2621
- (i) => {
2622
- i && f();
2633
+ (r) => {
2634
+ r && f();
2623
2635
  }
2624
2636
  ), {
2625
2637
  direction: c(() => s.value),
2626
2638
  recalculateDirection: f
2627
2639
  };
2628
2640
  }
2629
- const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2641
+ const sn = ["disabled", "onClick"], Qn = /* @__PURE__ */ O({
2630
2642
  __name: "Menu",
2631
2643
  props: {
2632
2644
  open: { type: Boolean },
@@ -2634,55 +2646,55 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2634
2646
  },
2635
2647
  emits: ["update:open", "chosen"],
2636
2648
  setup(e, { emit: l }) {
2637
- const t = e, s = M(null), { direction: o } = sn({
2649
+ const t = e, s = z(null), { direction: o } = tn({
2638
2650
  el: c(() => {
2639
2651
  var g;
2640
2652
  return ((g = s.value) == null ? void 0 : g.el) || null;
2641
2653
  }),
2642
- defaultDirection: ve.Left,
2654
+ defaultDirection: ye.Left,
2643
2655
  stopUpdatesBelowWidth: 300
2644
- }), f = M(null), i = M(!1), r = c({
2656
+ }), f = z(null), r = z(!1), i = c({
2645
2657
  get: () => t.open || !1,
2646
2658
  set: (g) => l("update:open", g)
2647
2659
  }), m = (g) => {
2648
- const { active: w, disabled: h } = g, P = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2649
- return w ? P.push("bg-primary text-foreground-on-primary") : h ? P.push("text-foreground-disabled") : P.push("text-foreground"), P.join(" ");
2650
- }, u = (g, w) => {
2651
- l("chosen", { item: g, event: w });
2660
+ const { active: C, disabled: h } = g, _ = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2661
+ return C ? _.push("bg-primary text-foreground-on-primary") : h ? _.push("text-foreground-disabled") : _.push("text-foreground"), _.join(" ");
2662
+ }, u = (g, C) => {
2663
+ l("chosen", { item: g, event: C });
2652
2664
  }, y = () => {
2653
2665
  var g;
2654
2666
  return (g = f.value) == null ? void 0 : g.el.click();
2655
2667
  }, k = (g) => {
2656
- const w = !!g;
2657
- return i.value = w, w;
2668
+ const C = !!g;
2669
+ return r.value = C, C;
2658
2670
  };
2659
- return oe(i, (g, w) => {
2660
- g !== w && (r.value = g);
2661
- }), oe(r, (g) => {
2662
- (g && !i.value || !g && i.value) && y();
2663
- }), (g, w) => (a(), L(n(Wt), {
2671
+ return oe(r, (g, C) => {
2672
+ g !== C && (i.value = g);
2673
+ }), oe(i, (g) => {
2674
+ (g && !r.value || !g && r.value) && y();
2675
+ }), (g, C) => (a(), j(n(qt), {
2664
2676
  as: "div",
2665
2677
  class: "relative inline-block"
2666
2678
  }, {
2667
- default: _(({ open: h }) => [
2679
+ default: B(({ open: h }) => [
2668
2680
  d("div", null, [
2669
- V(n(qt), {
2681
+ V(n(Ht), {
2670
2682
  ref_key: "menuButton",
2671
2683
  ref: f,
2672
2684
  class: "hidden",
2673
- onClick: w[0] || (w[0] = ue(() => {
2685
+ onClick: C[0] || (C[0] = ue(() => {
2674
2686
  }, ["stop", "prevent"]))
2675
2687
  }, null, 512),
2676
2688
  d("div", {
2677
- class: x(h ? "pointer-events-none" : "")
2689
+ class: b(h ? "pointer-events-none" : "")
2678
2690
  }, [
2679
- z(g.$slots, "default", {
2691
+ R(g.$slots, "default", {
2680
2692
  toggle: y,
2681
2693
  open: k(h)
2682
2694
  })
2683
2695
  ], 2)
2684
2696
  ]),
2685
- V(be, {
2697
+ V(xe, {
2686
2698
  "enter-active-class": "transition duration-100 ease-out",
2687
2699
  "enter-from-class": "transform scale-95 opacity-0",
2688
2700
  "enter-to-class": "transform scale-100 opacity-100",
@@ -2690,37 +2702,37 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2690
2702
  "leave-from-class": "transform scale-100 opacity-100",
2691
2703
  "leave-to-class": "transform scale-95 opacity-0"
2692
2704
  }, {
2693
- default: _(() => [
2694
- V(n(Ht), {
2705
+ default: B(() => [
2706
+ V(n(Gt), {
2695
2707
  ref_key: "menuItems",
2696
2708
  ref: s,
2697
- class: x([
2709
+ class: b([
2698
2710
  "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",
2699
- n(o) === n(ve).Left ? "right-0" : ""
2711
+ n(o) === n(ye).Left ? "right-0" : ""
2700
2712
  ])
2701
2713
  }, {
2702
- default: _(() => [
2703
- (a(!0), p(T, null, U(e.items, (P, b) => (a(), p("div", {
2704
- key: b,
2714
+ default: B(() => [
2715
+ (a(!0), p(F, null, E(e.items, (_, x) => (a(), p("div", {
2716
+ key: x,
2705
2717
  class: "px-1 py-1"
2706
2718
  }, [
2707
- (a(!0), p(T, null, U(P, ($) => (a(), L(n(Gt), {
2719
+ (a(!0), p(F, null, E(_, ($) => (a(), j(n(Kt), {
2708
2720
  key: $.id,
2709
2721
  disabled: $.disabled
2710
2722
  }, {
2711
- default: _(({ active: S, disabled: F }) => [
2723
+ default: B(({ active: P, disabled: L }) => [
2712
2724
  ae((a(), p("span", null, [
2713
2725
  d("button", {
2714
- class: x(m({ active: S, disabled: F })),
2715
- disabled: F,
2726
+ class: b(m({ active: P, disabled: L })),
2727
+ disabled: L,
2716
2728
  onClick: (v) => u($, v)
2717
2729
  }, [
2718
- z(g.$slots, "item", { item: $ }, () => [
2719
- A(B($.title), 1)
2730
+ R(g.$slots, "item", { item: $ }, () => [
2731
+ M(I($.title), 1)
2720
2732
  ])
2721
- ], 10, ln)
2733
+ ], 10, sn)
2722
2734
  ])), [
2723
- [n(Ee), $.disabled && $.disabledTooltip]
2735
+ [n(Ue), $.disabled && $.disabledTooltip]
2724
2736
  ])
2725
2737
  ]),
2726
2738
  _: 2
@@ -2736,33 +2748,33 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2736
2748
  _: 3
2737
2749
  }));
2738
2750
  }
2739
- }), nn = { class: "flex flex-col space-y-4" }, an = { class: "flex space-x-6" }, Zn = /* @__PURE__ */ j({
2751
+ }), ln = { class: "flex flex-col space-y-4" }, nn = { class: "flex space-x-6" }, Yn = /* @__PURE__ */ O({
2740
2752
  __name: "Tabs",
2741
2753
  props: {
2742
2754
  items: null
2743
2755
  },
2744
2756
  setup(e) {
2745
- const l = e, t = M(null), s = c(() => t.value && l.items.find((f) => f.id === t.value) || l.items[0]), o = (f) => {
2757
+ const l = e, t = z(null), s = c(() => t.value && l.items.find((f) => f.id === t.value) || l.items[0]), o = (f) => {
2746
2758
  t.value = f.id;
2747
2759
  };
2748
- return (f, i) => (a(), p("div", nn, [
2749
- d("div", an, [
2750
- (a(!0), p(T, null, U(e.items, (r) => (a(), L(ee, {
2751
- key: r.id,
2760
+ return (f, r) => (a(), p("div", ln, [
2761
+ d("div", nn, [
2762
+ (a(!0), p(F, null, E(e.items, (i) => (a(), j(ee, {
2763
+ key: i.id,
2752
2764
  link: "",
2753
- color: s.value.id === r.id ? "default" : "secondary",
2754
- onClick: (m) => o(r)
2765
+ color: s.value.id === i.id ? "default" : "secondary",
2766
+ onClick: (m) => o(i)
2755
2767
  }, {
2756
- default: _(() => [
2757
- A(B(r.title), 1)
2768
+ default: B(() => [
2769
+ M(I(i.title), 1)
2758
2770
  ]),
2759
2771
  _: 2
2760
2772
  }, 1032, ["color", "onClick"]))), 128))
2761
2773
  ]),
2762
- z(f.$slots, "default", { activeItem: s.value })
2774
+ R(f.$slots, "default", { activeItem: s.value })
2763
2775
  ]));
2764
2776
  }
2765
- }), on = { class: "text-foreground" }, rn = { class: "w-full text-sm overflow-x-auto overflow-y-visible simple-scrollbar" }, un = ["onClick", "onKeypress"], cn = /* @__PURE__ */ d("div", { class: "text-gray-900 font-medium order-1" }, "Placeholder", -1), dn = { class: "absolute right-1.5 gap-1 flex items-center p-0" }, ea = /* @__PURE__ */ j({
2777
+ }), an = { class: "text-foreground" }, on = { class: "w-full text-sm overflow-x-auto overflow-y-visible simple-scrollbar" }, rn = ["onClick", "onKeypress"], un = /* @__PURE__ */ d("div", { class: "text-gray-900 font-medium order-1" }, "Placeholder", -1), cn = { class: "absolute right-1.5 gap-1 flex items-center p-0" }, Zn = /* @__PURE__ */ O({
2766
2778
  __name: "Table",
2767
2779
  props: {
2768
2780
  items: null,
@@ -2773,53 +2785,53 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2773
2785
  },
2774
2786
  setup(e) {
2775
2787
  const l = e, t = c(() => {
2776
- const i = (l.buttons || []).length;
2777
- let r = 16;
2778
- return i > 0 && (r = 48 + (i - 1) * 42), `${r}px`;
2779
- }), s = (i) => {
2780
- var r;
2781
- return ((r = l.columns.find((m) => m.id === i)) == null ? void 0 : r.classes) || "";
2782
- }, o = (i, r) => {
2783
- const m = s(i);
2784
- return r === 0 ? `bg-transparent py-3 pr-5 px-1 ${m}` : `lg:p-0 px-1 ${m}`;
2785
- }, f = (i) => {
2786
- var r;
2787
- (r = l.onRowClick) == null || r.call(l, i);
2788
+ const r = (l.buttons || []).length;
2789
+ let i = 16;
2790
+ return r > 0 && (i = 48 + (r - 1) * 42), `${i}px`;
2791
+ }), s = (r) => {
2792
+ var i;
2793
+ return ((i = l.columns.find((m) => m.id === r)) == null ? void 0 : i.classes) || "";
2794
+ }, o = (r, i) => {
2795
+ const m = s(r);
2796
+ return i === 0 ? `bg-transparent py-3 pr-5 px-1 ${m}` : `lg:p-0 px-1 ${m}`;
2797
+ }, f = (r) => {
2798
+ var i;
2799
+ (i = l.onRowClick) == null || i.call(l, r);
2788
2800
  };
2789
- return (i, r) => (a(), p("div", on, [
2790
- d("div", rn, [
2801
+ return (r, i) => (a(), p("div", an, [
2802
+ d("div", on, [
2791
2803
  e.items.length > 0 ? (a(), p("div", {
2792
2804
  key: 0,
2793
2805
  class: "grid z-10 grid-cols-12 items-center gap-6 font-semibold bg-foundation rounded-t-lg w-full border-b border-outline-3 pb-2 pt-4 px-4 min-w-[900px]",
2794
2806
  style: re({ paddingRight: t.value })
2795
2807
  }, [
2796
- (a(!0), p(T, null, U(e.columns, (m) => (a(), p("div", {
2808
+ (a(!0), p(F, null, E(e.columns, (m) => (a(), p("div", {
2797
2809
  key: m.id,
2798
- class: x([s(m.id), "capitalize"])
2799
- }, B(m.header), 3))), 128))
2800
- ], 4)) : I("", !0),
2810
+ class: b([s(m.id), "capitalize"])
2811
+ }, I(m.header), 3))), 128))
2812
+ ], 4)) : S("", !0),
2801
2813
  d("div", {
2802
- class: x(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": e.overflowCells }])
2814
+ class: b(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": e.overflowCells }])
2803
2815
  }, [
2804
- (a(!0), p(T, null, U(e.items, (m) => (a(), p("div", {
2816
+ (a(!0), p(F, null, E(e.items, (m) => (a(), p("div", {
2805
2817
  key: m.id,
2806
- class: x(["relative grid grid-cols-12 items-center gap-6 px-4 py-1 min-w-[900px] bg-foundation", { "cursor-pointer hover:bg-primary-muted": !!e.onRowClick }]),
2818
+ class: b(["relative grid grid-cols-12 items-center gap-6 px-4 py-1 min-w-[900px] bg-foundation", { "cursor-pointer hover:bg-primary-muted": !!e.onRowClick }]),
2807
2819
  style: re({ paddingRight: t.value }),
2808
2820
  tabindex: "0",
2809
2821
  onClick: (u) => f(m),
2810
2822
  onKeypress: (u) => f(m)
2811
2823
  }, [
2812
- (a(!0), p(T, null, U(e.columns, (u, y) => (a(), p("div", {
2824
+ (a(!0), p(F, null, E(e.columns, (u, y) => (a(), p("div", {
2813
2825
  key: u.id,
2814
- class: x(o(u.id, y)),
2826
+ class: b(o(u.id, y)),
2815
2827
  tabindex: "0"
2816
2828
  }, [
2817
- z(i.$slots, u.id, { item: m }, () => [
2818
- cn
2829
+ R(r.$slots, u.id, { item: m }, () => [
2830
+ un
2819
2831
  ])
2820
2832
  ], 2))), 128)),
2821
- d("div", dn, [
2822
- (a(!0), p(T, null, U(e.buttons, (u) => (a(), p("div", {
2833
+ d("div", cn, [
2834
+ (a(!0), p(F, null, E(e.buttons, (u) => (a(), p("div", {
2823
2835
  key: u.label
2824
2836
  }, [
2825
2837
  V(n(ee), {
@@ -2827,17 +2839,17 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2827
2839
  size: "sm",
2828
2840
  color: "secondary",
2829
2841
  "hide-text": "",
2830
- class: x(u.class),
2842
+ class: b(u.class),
2831
2843
  onClick: ue((y) => u.action(m), ["stop"])
2832
2844
  }, null, 8, ["icon-left", "class", "onClick"])
2833
2845
  ]))), 128))
2834
2846
  ])
2835
- ], 46, un))), 128))
2847
+ ], 46, rn))), 128))
2836
2848
  ], 2)
2837
2849
  ])
2838
2850
  ]));
2839
2851
  }
2840
- }), fn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, pn = { class: "inline-flex items-center space-x-1" }, hn = /* @__PURE__ */ d("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), mn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, gn = { class: "inline-flex items-center space-x-1" }, vn = /* @__PURE__ */ d("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), ta = /* @__PURE__ */ j({
2852
+ }), dn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, fn = { class: "inline-flex items-center space-x-1" }, pn = /* @__PURE__ */ d("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), hn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, mn = { class: "inline-flex items-center space-x-1" }, gn = /* @__PURE__ */ d("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), ea = /* @__PURE__ */ O({
2841
2853
  __name: "InfiniteLoading",
2842
2854
  props: {
2843
2855
  settings: null,
@@ -2845,8 +2857,8 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2845
2857
  },
2846
2858
  emits: ["infinite"],
2847
2859
  setup(e) {
2848
- const l = M(null), t = M(!1);
2849
- return $e && Z(() => {
2860
+ const l = z(null), t = z(!1);
2861
+ return Ie && Z(() => {
2850
2862
  const s = setInterval(() => {
2851
2863
  var o;
2852
2864
  (o = l.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
@@ -2855,48 +2867,48 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2855
2867
  ref_key: "wrapper",
2856
2868
  ref: l
2857
2869
  }, [
2858
- t.value ? (a(), L(n(Kt), ie({ key: 0 }, s.$props.settings || {}, {
2870
+ t.value ? (a(), j(n(Xt), ie({ key: 0 }, s.$props.settings || {}, {
2859
2871
  onInfinite: o[0] || (o[0] = (f) => s.$emit("infinite", f))
2860
2872
  }), {
2861
- spinner: _(() => [
2862
- V(Xe, {
2873
+ spinner: B(() => [
2874
+ V(Ne, {
2863
2875
  loading: !0,
2864
2876
  class: "my-2"
2865
2877
  })
2866
2878
  ]),
2867
- complete: _(() => [
2868
- d("div", fn, [
2869
- d("div", pn, [
2870
- V(n(vt), { class: "w-5 h-5 text-success" }),
2871
- hn
2879
+ complete: B(() => [
2880
+ d("div", dn, [
2881
+ d("div", fn, [
2882
+ V(n(bt), { class: "w-5 h-5 text-success" }),
2883
+ pn
2872
2884
  ])
2873
2885
  ])
2874
2886
  ]),
2875
- error: _(({ retry: f }) => [
2876
- d("div", mn, [
2877
- d("div", gn, [
2878
- V(n(bt), { class: "w-5 h-5 text-danger" }),
2879
- vn
2887
+ error: B(({ retry: f }) => [
2888
+ d("div", hn, [
2889
+ d("div", mn, [
2890
+ V(n(yt), { class: "w-5 h-5 text-danger" }),
2891
+ gn
2880
2892
  ]),
2881
- e.allowRetry ? (a(), L(ee, {
2893
+ e.allowRetry ? (a(), j(ee, {
2882
2894
  key: 0,
2883
2895
  onClick: f
2884
2896
  }, {
2885
- default: _(() => [
2886
- A("Retry")
2897
+ default: B(() => [
2898
+ M("Retry")
2887
2899
  ]),
2888
2900
  _: 2
2889
- }, 1032, ["onClick"])) : I("", !0)
2901
+ }, 1032, ["onClick"])) : S("", !0)
2890
2902
  ])
2891
2903
  ]),
2892
2904
  _: 1
2893
- }, 16)) : I("", !0)
2905
+ }, 16)) : S("", !0)
2894
2906
  ], 512));
2895
2907
  }
2896
- }), bn = { class: "relative group" }, yn = {
2908
+ }), vn = { class: "relative group" }, bn = {
2897
2909
  key: 0,
2898
2910
  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"
2899
- }, sa = /* @__PURE__ */ j({
2911
+ }, ta = /* @__PURE__ */ O({
2900
2912
  __name: "Panel",
2901
2913
  props: {
2902
2914
  /**
@@ -2939,42 +2951,42 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2939
2951
  ), o = c(
2940
2952
  () => t.customPadding ? "" : "px-4 py-4 sm:p-6"
2941
2953
  ), f = c(() => {
2942
- const i = ["rounded-lg"];
2943
- return t.noShadow || i.push("shadow"), t.ring && i.push("ring-outline-2 hover:ring-2"), t.panelClasses && i.push(t.panelClasses), i.join(" ");
2954
+ const r = ["rounded-lg"];
2955
+ return t.noShadow || r.push("shadow"), t.ring && r.push("ring-outline-2 hover:ring-2"), t.panelClasses && r.push(t.panelClasses), r.join(" ");
2944
2956
  });
2945
- return (i, r) => (a(), p("div", bn, [
2946
- e.fancyGlow ? (a(), p("div", yn)) : I("", !0),
2947
- (a(), L(G(e.form ? "form" : "div"), {
2948
- class: x([
2957
+ return (r, i) => (a(), p("div", vn, [
2958
+ e.fancyGlow ? (a(), p("div", bn)) : S("", !0),
2959
+ (a(), j(G(e.form ? "form" : "div"), {
2960
+ class: b([
2949
2961
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
2950
2962
  f.value
2951
2963
  ]),
2952
- onSubmit: r[0] || (r[0] = (m) => l("submit", m))
2964
+ onSubmit: i[0] || (i[0] = (m) => l("submit", m))
2953
2965
  }, {
2954
- default: _(() => [
2955
- i.$slots.header ? (a(), p("div", {
2966
+ default: B(() => [
2967
+ r.$slots.header ? (a(), p("div", {
2956
2968
  key: 0,
2957
- class: x(s.value)
2969
+ class: b(s.value)
2958
2970
  }, [
2959
- z(i.$slots, "header")
2960
- ], 2)) : I("", !0),
2971
+ R(r.$slots, "header")
2972
+ ], 2)) : S("", !0),
2961
2973
  d("div", {
2962
- class: x(["grow", o.value])
2974
+ class: b(["grow", o.value])
2963
2975
  }, [
2964
- z(i.$slots, "default")
2976
+ R(r.$slots, "default")
2965
2977
  ], 2),
2966
- i.$slots.footer ? (a(), p("div", {
2978
+ r.$slots.footer ? (a(), p("div", {
2967
2979
  key: 1,
2968
- class: x(s.value)
2980
+ class: b(s.value)
2969
2981
  }, [
2970
- z(i.$slots, "footer")
2971
- ], 2)) : I("", !0)
2982
+ R(r.$slots, "footer")
2983
+ ], 2)) : S("", !0)
2972
2984
  ]),
2973
2985
  _: 3
2974
2986
  }, 40, ["class"]))
2975
2987
  ]));
2976
2988
  }
2977
- }), xn = { class: "flex-shrink-0" }, kn = /* @__PURE__ */ d("span", { class: "sr-only" }, "Dismiss", -1), la = /* @__PURE__ */ j({
2989
+ }), yn = { class: "flex-shrink-0" }, xn = /* @__PURE__ */ d("span", { class: "sr-only" }, "Dismiss", -1), sa = /* @__PURE__ */ O({
2978
2990
  __name: "Alert",
2979
2991
  props: {
2980
2992
  color: { default: "success" },
@@ -2985,19 +2997,19 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2985
2997
  },
2986
2998
  emits: ["dismiss"],
2987
2999
  setup(e) {
2988
- const l = e, t = ye(), s = c(() => !!t.description), o = c(() => {
3000
+ const l = e, t = ke(), s = c(() => !!t.description), o = c(() => {
2989
3001
  if (l.customIcon)
2990
3002
  return l.customIcon;
2991
3003
  switch (l.color) {
2992
3004
  case "info":
2993
- return Ct;
3005
+ return $t;
2994
3006
  case "warning":
2995
- return ke;
3007
+ return Ce;
2996
3008
  case "danger":
2997
- return wt;
3009
+ return Ct;
2998
3010
  case "success":
2999
3011
  default:
3000
- return Fe;
3012
+ return Ee;
3001
3013
  }
3002
3014
  }), f = c(() => {
3003
3015
  const h = [];
@@ -3025,7 +3037,7 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
3025
3037
  break;
3026
3038
  }
3027
3039
  return h.join(" ");
3028
- }), i = c(() => {
3040
+ }), r = c(() => {
3029
3041
  const h = [];
3030
3042
  if (s.value)
3031
3043
  h.push("");
@@ -3040,7 +3052,7 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
3040
3052
  break;
3041
3053
  }
3042
3054
  return h.join(" ");
3043
- }), r = c(() => {
3055
+ }), i = c(() => {
3044
3056
  const h = ["grow"];
3045
3057
  switch (s.value || h.push("flex items-center space-x-2"), l.size) {
3046
3058
  case "xs":
@@ -3065,17 +3077,17 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
3065
3077
  }
3066
3078
  return h.join(" ");
3067
3079
  }), u = c(() => {
3068
- var b;
3080
+ var x;
3069
3081
  const h = ["flex"];
3070
3082
  s.value || h.push("grow justify-end");
3071
- const P = s.value && ((b = l.actions) == null ? void 0 : b.length);
3083
+ const _ = s.value && ((x = l.actions) == null ? void 0 : x.length);
3072
3084
  switch (l.size) {
3073
3085
  case "xs":
3074
- h.push("space-x-1"), P && h.push("mt-1");
3086
+ h.push("space-x-1"), _ && h.push("mt-1");
3075
3087
  break;
3076
3088
  case "default":
3077
3089
  default:
3078
- h.push("space-x-2"), P && h.push("mt-4");
3090
+ h.push("space-x-2"), _ && h.push("mt-4");
3079
3091
  break;
3080
3092
  }
3081
3093
  return h.join(" ");
@@ -3139,7 +3151,7 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
3139
3151
  break;
3140
3152
  }
3141
3153
  return h.join(" ");
3142
- }), w = c(() => {
3154
+ }), C = c(() => {
3143
3155
  switch (l.size) {
3144
3156
  case "xs":
3145
3157
  return "xs";
@@ -3148,49 +3160,49 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
3148
3160
  return "sm";
3149
3161
  }
3150
3162
  });
3151
- return (h, P) => (a(), p("div", {
3152
- class: x(["rounded-md", [f.value, y.value]])
3163
+ return (h, _) => (a(), p("div", {
3164
+ class: b(["rounded-md", [f.value, y.value]])
3153
3165
  }, [
3154
3166
  d("div", {
3155
- class: x(["flex", i.value])
3167
+ class: b(["flex", r.value])
3156
3168
  }, [
3157
- d("div", xn, [
3158
- (a(), L(G(o.value), {
3159
- class: x(k.value),
3169
+ d("div", yn, [
3170
+ (a(), j(G(o.value), {
3171
+ class: b(k.value),
3160
3172
  "aria-hidden": "true"
3161
3173
  }, null, 8, ["class"]))
3162
3174
  ]),
3163
3175
  d("div", {
3164
- class: x(r.value)
3176
+ class: b(i.value)
3165
3177
  }, [
3166
3178
  d("h3", {
3167
- class: x(["text-sm", [s.value ? "font-medium" : ""]])
3179
+ class: b(["text-sm", [s.value ? "font-medium" : ""]])
3168
3180
  }, [
3169
- z(h.$slots, "title", {}, () => [
3170
- A("Title")
3181
+ R(h.$slots, "title", {}, () => [
3182
+ M("Title")
3171
3183
  ])
3172
3184
  ], 2),
3173
3185
  s.value ? (a(), p("div", {
3174
3186
  key: 0,
3175
- class: x(m.value)
3187
+ class: b(m.value)
3176
3188
  }, [
3177
- z(h.$slots, "description", {}, () => [
3178
- A(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
3189
+ R(h.$slots, "description", {}, () => [
3190
+ M(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
3179
3191
  ])
3180
- ], 2)) : I("", !0),
3192
+ ], 2)) : S("", !0),
3181
3193
  d("div", {
3182
- class: x(u.value)
3194
+ class: b(u.value)
3183
3195
  }, [
3184
- (a(!0), p(T, null, U(e.actions || [], (b, $) => (a(), L(ee, {
3196
+ (a(!0), p(F, null, E(e.actions || [], (x, $) => (a(), j(ee, {
3185
3197
  key: $,
3186
3198
  color: e.color,
3187
- size: w.value,
3188
- to: b.url,
3189
- external: b.externalUrl || !1,
3190
- onClick: (S) => b.onClick || n(at)
3199
+ size: C.value,
3200
+ to: x.url,
3201
+ external: x.externalUrl || !1,
3202
+ onClick: (P) => x.onClick || n(ot)
3191
3203
  }, {
3192
- default: _(() => [
3193
- A(B(b.title), 1)
3204
+ default: B(() => [
3205
+ M(I(x.title), 1)
3194
3206
  ]),
3195
3207
  _: 2
3196
3208
  }, 1032, ["color", "size", "to", "external", "onClick"]))), 128))
@@ -3198,74 +3210,74 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
3198
3210
  ], 2),
3199
3211
  e.withDismiss ? (a(), p("div", {
3200
3212
  key: 0,
3201
- class: x(["flex", [s.value ? "items-start" : "items-center"]])
3213
+ class: b(["flex", [s.value ? "items-start" : "items-center"]])
3202
3214
  }, [
3203
3215
  d("button", {
3204
3216
  type: "button",
3205
- class: x(["inline-flex rounded-md focus:outline-none focus:ring-2", g.value]),
3206
- onClick: P[0] || (P[0] = (b) => h.$emit("dismiss"))
3217
+ class: b(["inline-flex rounded-md focus:outline-none focus:ring-2", g.value]),
3218
+ onClick: _[0] || (_[0] = (x) => h.$emit("dismiss"))
3207
3219
  }, [
3208
- kn,
3209
- V(n(fe), {
3220
+ xn,
3221
+ V(n(pe), {
3210
3222
  class: "h-5 w-5",
3211
3223
  "aria-hidden": "true"
3212
3224
  })
3213
3225
  ], 2)
3214
- ], 2)) : I("", !0)
3226
+ ], 2)) : S("", !0)
3215
3227
  ], 2)
3216
3228
  ], 2));
3217
3229
  }
3218
3230
  });
3219
- function na(e) {
3220
- var h, P;
3221
- const { get: l, initialState: t, readOptions: s, set: o, asyncRead: f = !0, debugging: i } = e, r = i == null ? void 0 : i.log, m = () => (new Error("Trace:").stack || "").substring(7), u = ((P = (h = e.debugging) == null ? void 0 : h.log) == null ? void 0 : P.logger) || console.debug, y = r && !r.writesOnly ? () => {
3222
- const b = l();
3223
- return u(`debugging: '${r.name}' read`, b, m()), b;
3224
- } : l, k = r && !r.readsOnly ? (b) => (u(`debugging: '${r.name}' written to`, b, m()), o(b)) : o, g = f ? Lt(y, t, s) : c(y), w = c(() => g.value);
3225
- return w.update = k, w;
3231
+ function la(e) {
3232
+ var h, _;
3233
+ const { get: l, initialState: t, readOptions: s, set: o, asyncRead: f = !0, debugging: r } = e, i = r == null ? void 0 : r.log, m = () => (new Error("Trace:").stack || "").substring(7), u = ((_ = (h = e.debugging) == null ? void 0 : h.log) == null ? void 0 : _.logger) || console.debug, y = i && !i.writesOnly ? () => {
3234
+ const x = l();
3235
+ return u(`debugging: '${i.name}' read`, x, m()), x;
3236
+ } : l, k = i && !i.readsOnly ? (x) => (u(`debugging: '${i.name}' written to`, x, m()), o(x)) : o, g = f ? jt(y, t, s) : c(y), C = c(() => g.value);
3237
+ return C.update = k, C;
3226
3238
  }
3227
3239
  export {
3228
- la as CommonAlert,
3229
- We as CommonBadge,
3230
- Xe as CommonLoadingBar,
3231
- zn as CommonStepsBullet,
3232
- Mn as CommonStepsNumber,
3233
- Jt as CommonTextLink,
3240
+ sa as CommonAlert,
3241
+ qe as CommonBadge,
3242
+ Ne as CommonLoadingBar,
3243
+ Mn as CommonStepsBullet,
3244
+ An as CommonStepsNumber,
3245
+ Qt as CommonTextLink,
3234
3246
  ee as FormButton,
3235
- Rn as FormCardButton,
3236
- Dn as FormCheckbox,
3237
- Wn as FormSelectBadges,
3238
- Ne as FormSelectBase,
3239
- Un as FormSelectSourceApps,
3240
- qn as FormSwitch,
3247
+ zn as FormCardButton,
3248
+ Rn as FormCheckbox,
3249
+ Un as FormSelectBadges,
3250
+ Je as FormSelectBase,
3251
+ En as FormSelectSourceApps,
3252
+ Wn as FormSwitch,
3241
3253
  Tn as FormTextArea,
3242
- Fn as FormTextInput,
3243
- An as GlobalToastRenderer,
3254
+ Dn as FormTextInput,
3255
+ On as GlobalToastRenderer,
3244
3256
  J as GridListToggleValue,
3245
- ve as HorizontalDirection,
3246
- ta as InfiniteLoading,
3247
- Xn as LayoutDialog,
3248
- Nn as LayoutDisclosure,
3249
- Jn as LayoutGridListToggle,
3250
- Yn as LayoutMenu,
3251
- sa as LayoutPanel,
3252
- ea as LayoutTable,
3253
- Zn as LayoutTabs,
3257
+ ye as HorizontalDirection,
3258
+ ea as InfiniteLoading,
3259
+ Kn as LayoutDialog,
3260
+ Xn as LayoutDisclosure,
3261
+ Nn as LayoutGridListToggle,
3262
+ Qn as LayoutMenu,
3263
+ ta as LayoutPanel,
3264
+ Zn as LayoutTable,
3265
+ Yn as LayoutTabs,
3254
3266
  ne as ModifierKeys,
3255
- Ml as SourceAppBadge,
3267
+ Al as SourceAppBadge,
3256
3268
  le as TailwindBreakpoints,
3257
- en as ThrottleOrDebounce,
3269
+ Zl as ThrottleOrDebounce,
3258
3270
  se as ToastNotificationType,
3259
- En as ValidationHelpers,
3260
- ge as clientOs,
3261
- Hn as getKeyboardShortcutTitle,
3262
- Gn as onKeyboardShortcut,
3263
- Kn as useFormCheckboxModel,
3264
- Ke as useFormSelectChildInternals,
3265
- Qn as useOnBeforeWindowUnload,
3266
- sn as useResponsiveHorizontalDirectionCalculation,
3267
- tn as useWindowResizeHandler,
3268
- ml as useWrappingContainerHiddenCount,
3269
- na as writableAsyncComputed
3271
+ Fn as ValidationHelpers,
3272
+ be as clientOs,
3273
+ qn as getKeyboardShortcutTitle,
3274
+ Hn as onKeyboardShortcut,
3275
+ Gn as useFormCheckboxModel,
3276
+ Xe as useFormSelectChildInternals,
3277
+ Jn as useOnBeforeWindowUnload,
3278
+ tn as useResponsiveHorizontalDirectionCalculation,
3279
+ en as useWindowResizeHandler,
3280
+ hl as useWrappingContainerHiddenCount,
3281
+ la as writableAsyncComputed
3270
3282
  };
3271
3283
  //# sourceMappingURL=lib.js.map