@speckle/ui-components 2.18.4 → 2.18.7

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
- var Bt = Object.defineProperty;
2
- var Vt = (e, t, r) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
1
+ var zt = Object.defineProperty;
2
+ var Vt = (e, t, r) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var se = (e, t, r) => (Vt(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { defineComponent as _, resolveDynamicComponent as Q, computed as c, openBlock as a, createBlock as L, normalizeClass as b, withCtx as M, createCommentVNode as I, renderSlot as D, createTextVNode as R, createElementBlock as m, createElementVNode as f, createVNode as z, Transition as Ee, unref as l, toDisplayString as V, toRefs as le, Fragment as K, renderList as G, ref as O, onMounted as ae, onBeforeUnmount as Ue, normalizeStyle as ne, mergeProps as ie, withDirectives as be, isRef as Be, vModelText as qe, useSlots as We, vModelDynamic as zt, pushScopeId as Ot, popScopeId as Lt, watch as fe, Teleport as Mt, withModifiers as pe, useModel as it, toHandlers as st, nextTick as At, getCurrentInstance as Pt, inject as _t, withKeys as ve, mergeModels as nt, defineAsyncComponent as jt } from "vue";
5
- import { isObjectLike as je, clamp as lt, isArray as N, isString as Se, isUndefined as ge, debounce as He, throttle as ut, noop as Tt, uniq as Ft, intersection as Rt, difference as Dt } from "lodash";
6
- import { ArrowPathIcon as ct, ExclamationCircleIcon as Et, ChevronUpIcon as dt, ChevronDownIcon as Ut, XMarkIcon as Ke, MagnifyingGlassIcon as qt, CheckIcon as ft, Squares2X2Icon as Wt, Bars3Icon as Ht, UserCircleIcon as Kt } from "@heroicons/vue/24/solid";
4
+ import { defineComponent as j, resolveDynamicComponent as Q, computed as c, openBlock as o, createBlock as L, normalizeClass as g, withCtx as M, createCommentVNode as I, renderSlot as E, createTextVNode as R, createElementBlock as m, createElementVNode as f, createVNode as V, Transition as Ee, unref as n, toDisplayString as z, toRefs as le, Fragment as K, renderList as G, ref as O, onMounted as ae, onBeforeUnmount as Ue, normalizeStyle as ne, mergeProps as ie, withDirectives as be, isRef as Be, vModelText as qe, useSlots as We, vModelDynamic as Ot, pushScopeId as Lt, popScopeId as Mt, watch as fe, Teleport as At, withModifiers as pe, useModel as it, toHandlers as st, nextTick as Pt, getCurrentInstance as jt, inject as _t, withKeys as ve, mergeModels as nt, defineAsyncComponent as Tt } from "vue";
5
+ import { isObjectLike as _e, clamp as lt, isArray as N, isString as ye, isUndefined as ge, debounce as He, throttle as ut, noop as ct, uniq as Ft, intersection as Rt, difference as Dt } from "lodash";
6
+ import { ArrowPathIcon as dt, ExclamationCircleIcon as Et, ChevronUpIcon as ft, ChevronDownIcon as Ut, XMarkIcon as Ke, MagnifyingGlassIcon as qt, CheckIcon as pt, Squares2X2Icon as Wt, Bars3Icon as Ht, UserCircleIcon as Kt } from "@heroicons/vue/24/solid";
7
7
  import { CheckCircleIcon as Gt, XCircleIcon as Xt, ExclamationCircleIcon as Zt, InformationCircleIcon as Nt, ClipboardDocumentCheckIcon as Qt, ClipboardDocumentIcon as Jt, XMarkIcon as Yt, ChevronDownIcon as es, CheckIcon as ts, ExclamationTriangleIcon as ss } from "@heroicons/vue/24/outline";
8
- import { XMarkIcon as ye, CheckIcon as pt, CheckCircleIcon as mt, ExclamationCircleIcon as Ve, EnvelopeIcon as ns, KeyIcon as ls, XCircleIcon as as, InformationCircleIcon as os } from "@heroicons/vue/20/solid";
8
+ import { XMarkIcon as xe, CheckIcon as mt, CheckCircleIcon as ht, ExclamationCircleIcon as ze, EnvelopeIcon as ns, KeyIcon as ls, XCircleIcon as as, InformationCircleIcon as os } from "@heroicons/vue/20/solid";
9
9
  import { wait as rs, isNullOrUndefined as is, SourceApps as us, getClientOperatingSystem as cs, OperatingSystem as Te, md5 as ds } from "@speckle/shared";
10
- import { useField as Ie } from "vee-validate";
11
- import { nanoid as ze } from "nanoid";
10
+ import { useField as Se } from "vee-validate";
11
+ import { nanoid as Ve } from "nanoid";
12
12
  import { useResizeObserver as fs, useMutationObserver as ps, useMounted as ms, useElementBounding as hs, useIntersectionObserver as vs, useClipboard as gs, onKeyDown as bs, isClient as Ge, computedAsync as ys, useFocus as xs, useDropZone as ks } from "@vueuse/core";
13
- import { Listbox as ws, ListboxLabel as Cs, ListboxButton as $s, ListboxOptions as Is, ListboxOption as Ss, Switch as Bs, TransitionRoot as ht, Dialog as Vs, TransitionChild as at, DialogPanel as zs, Disclosure as Os, DisclosureButton as Ls, DisclosurePanel as Ms, Menu as As, MenuButton as Ps, MenuItems as _s, MenuItem as js, Combobox as Ts, ComboboxOptions as Fs, ComboboxOption as Rs } from "@headlessui/vue";
14
- import { directive as vt } from "vue-tippy";
13
+ import { Listbox as ws, ListboxLabel as Cs, ListboxButton as $s, ListboxOptions as Is, ListboxOption as Ss, Switch as Bs, TransitionRoot as vt, Dialog as zs, TransitionChild as at, DialogPanel as Vs, Disclosure as Os, DisclosureButton as Ls, DisclosurePanel as Ms, Menu as As, MenuButton as Ps, MenuItems as js, MenuItem as _s, Combobox as Ts, ComboboxOptions as Fs, ComboboxOption as Rs } from "@headlessui/vue";
14
+ import { directive as gt } from "vue-tippy";
15
15
  import Ds from "v3-infinite-loading";
16
- const Es = /* @__PURE__ */ _({
16
+ const Es = /* @__PURE__ */ j({
17
17
  __name: "Button",
18
18
  props: {
19
19
  /**
@@ -77,6 +77,13 @@ const Es = /* @__PURE__ */ _({
77
77
  type: String,
78
78
  default: "default"
79
79
  },
80
+ /**
81
+ * Text color, only used when color=secondary
82
+ */
83
+ textColor: {
84
+ type: String,
85
+ default: "default"
86
+ },
80
87
  /**
81
88
  * Whether the target location should be forcefully treated as an external URL
82
89
  * (for relative paths this will likely cause a redirect)
@@ -141,10 +148,10 @@ const Es = /* @__PURE__ */ _({
141
148
  },
142
149
  emits: ["click"],
143
150
  setup(e, { emit: t }) {
144
- const r = t, s = e, o = Q("NuxtLink"), n = Q("RouterLink"), d = c(() => s.linkComponent ? s.linkComponent : s.external ? "a" : je(o) ? o : je(n) ? n : "a"), h = c(() => {
151
+ const r = t, s = e, a = Q("NuxtLink"), l = Q("RouterLink"), h = c(() => s.linkComponent ? s.linkComponent : s.external ? "a" : _e(a) ? a : _e(l) ? l : "a"), p = c(() => {
145
152
  if (!s.to)
146
153
  return s.submit ? "submit" : "button";
147
- }), i = c(() => s.disabled || s.loading), p = c(() => s.loading ? ct : s.iconLeft), x = c(() => {
154
+ }), i = c(() => s.disabled || s.loading), d = c(() => s.loading ? dt : s.iconLeft), v = c(() => {
148
155
  const w = [];
149
156
  if (w.push("border-2"), i.value)
150
157
  w.push(
@@ -187,14 +194,30 @@ const Es = /* @__PURE__ */ _({
187
194
  break;
188
195
  }
189
196
  return w.join(" ");
190
- }), y = c(() => {
191
- const w = [];
192
- if (!s.text && !s.link)
197
+ }), x = c(() => {
198
+ const w = [], D = s.textColor !== "default";
199
+ if (D && !i.value)
200
+ switch (s.textColor) {
201
+ case "primary":
202
+ w.push("text-primary");
203
+ break;
204
+ case "warning":
205
+ w.push("text-warning");
206
+ break;
207
+ case "success":
208
+ w.push("text-success");
209
+ break;
210
+ case "danger":
211
+ w.push("text-danger");
212
+ break;
213
+ case "info":
214
+ w.push("text-info");
215
+ break;
216
+ }
217
+ if (!s.text && !s.link) {
193
218
  if (i.value)
194
- w.push(
195
- (s.outlined, "text-foreground-disabled")
196
- );
197
- else
219
+ w.push("text-foreground-disabled");
220
+ else if (!D)
198
221
  switch (s.color) {
199
222
  case "invert":
200
223
  w.push(
@@ -236,15 +259,15 @@ const Es = /* @__PURE__ */ _({
236
259
  );
237
260
  break;
238
261
  }
239
- else
240
- i.value ? w.push("text-foreground-disabled") : s.color === "invert" ? w.push(
262
+ } else
263
+ i.value ? w.push("text-foreground-disabled") : D || (s.color === "invert" ? w.push(
241
264
  "text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
242
- ) : s.color === "secondary" ? w.push("text-foreground-2 hover:text-primary-focus") : s.color === "success" ? w.push("text-success") : s.color === "warning" ? w.push("text-warning") : s.color === "info" ? w.push("text-info") : s.color === "danger" ? w.push("text-danger") : w.push("text-primary hover:text-primary-focus");
265
+ ) : s.color === "secondary" ? w.push("text-foreground-2 hover:text-primary-focus") : s.color === "success" ? w.push("text-success") : s.color === "warning" ? w.push("text-warning") : s.color === "info" ? w.push("text-info") : s.color === "danger" ? w.push("text-danger") : w.push("text-primary hover:text-primary-focus"));
243
266
  return w.join(" ");
244
- }), v = c(() => {
267
+ }), b = c(() => {
245
268
  const w = [];
246
269
  return w.push(s.rounded ? "rounded-full" : "rounded-md"), w.join(" ");
247
- }), g = c(() => {
270
+ }), y = c(() => {
248
271
  const w = [];
249
272
  if (!i.value)
250
273
  switch (s.color) {
@@ -311,10 +334,10 @@ const Es = /* @__PURE__ */ _({
311
334
  "transition inline-flex justify-center text-center items-center outline-none select-none leading-[0.9rem]",
312
335
  k.value,
313
336
  u.value,
314
- y.value,
315
- w ? "" : x.value,
337
+ x.value,
316
338
  w ? "" : v.value,
317
- w ? "" : g.value,
339
+ w ? "" : b.value,
340
+ w ? "" : y.value,
318
341
  s.link ? "" : S.value,
319
342
  $.value
320
343
  ].join(" ");
@@ -346,27 +369,27 @@ const Es = /* @__PURE__ */ _({
346
369
  }
347
370
  r("click", w);
348
371
  };
349
- return (w, U) => (a(), L(Q(e.to ? d.value : "button"), {
372
+ return (w, D) => (o(), L(Q(e.to ? h.value : "button"), {
350
373
  href: e.to,
351
374
  to: e.to,
352
- type: h.value,
375
+ type: p.value,
353
376
  external: e.external,
354
- class: b(B.value),
377
+ class: g(B.value),
355
378
  disabled: i.value,
356
379
  role: "button",
357
380
  onClick: A
358
381
  }, {
359
382
  default: M(() => [
360
- p.value ? (a(), L(Q(p.value), {
383
+ d.value ? (o(), L(Q(d.value), {
361
384
  key: 0,
362
- class: b(`${T.value} ${e.hideText ? "" : "mr-2"}`)
385
+ class: g(`${T.value} ${e.hideText ? "" : "mr-2"}`)
363
386
  }, null, 8, ["class"])) : I("", !0),
364
- e.hideText ? I("", !0) : D(w.$slots, "default", { key: 1 }, () => [
387
+ e.hideText ? I("", !0) : E(w.$slots, "default", { key: 1 }, () => [
365
388
  R("Button")
366
389
  ], !0),
367
- e.iconRight || !e.loading ? (a(), L(Q(e.iconRight), {
390
+ e.iconRight || !e.loading ? (o(), L(Q(e.iconRight), {
368
391
  key: 2,
369
- class: b(`${T.value} ${e.hideText ? "" : "ml-2"}`)
392
+ class: g(`${T.value} ${e.hideText ? "" : "ml-2"}`)
370
393
  }, null, 8, ["class"])) : I("", !0)
371
394
  ]),
372
395
  _: 3
@@ -375,10 +398,10 @@ const Es = /* @__PURE__ */ _({
375
398
  });
376
399
  const Oe = (e, t) => {
377
400
  const r = e.__vccOpts || e;
378
- for (const [s, o] of t)
379
- r[s] = o;
401
+ for (const [s, a] of t)
402
+ r[s] = a;
380
403
  return r;
381
- }, oe = /* @__PURE__ */ Oe(Es, [["__scopeId", "data-v-8c1638d3"]]), Us = /* @__PURE__ */ _({
404
+ }, oe = /* @__PURE__ */ Oe(Es, [["__scopeId", "data-v-ee26d682"]]), Us = /* @__PURE__ */ j({
382
405
  __name: "Link",
383
406
  props: {
384
407
  to: {
@@ -424,19 +447,24 @@ const Oe = (e, t) => {
424
447
  hideText: {
425
448
  type: Boolean,
426
449
  default: !1
450
+ },
451
+ noUnderline: {
452
+ type: Boolean,
453
+ default: !1
427
454
  }
428
455
  },
429
456
  emits: ["click"],
430
457
  setup(e, { emit: t }) {
431
- const r = t, s = e, o = (n) => {
458
+ const r = t, s = e, a = (l) => {
432
459
  if (s.disabled) {
433
- n.preventDefault(), n.stopPropagation(), n.stopImmediatePropagation();
460
+ l.preventDefault(), l.stopPropagation(), l.stopImmediatePropagation();
434
461
  return;
435
462
  }
436
- r("click", n);
463
+ r("click", l);
437
464
  };
438
- return (n, d) => (a(), L(oe, {
439
- link: "",
465
+ return (l, h) => (o(), L(oe, {
466
+ link: !e.noUnderline,
467
+ text: e.noUnderline,
440
468
  to: e.to,
441
469
  external: e.external,
442
470
  disabled: e.disabled,
@@ -446,54 +474,45 @@ const Oe = (e, t) => {
446
474
  "icon-right": e.iconRight,
447
475
  "hide-text": e.hideText,
448
476
  role: "link",
449
- onClickCapture: o
477
+ onClickCapture: a
450
478
  }, {
451
479
  default: M(() => [
452
- D(n.$slots, "default", {}, () => [
480
+ E(l.$slots, "default", {}, () => [
453
481
  R("Link")
454
482
  ])
455
483
  ]),
456
484
  _: 3
457
- }, 8, ["to", "external", "disabled", "size", "foreground-link", "icon-left", "icon-right", "hide-text"]));
485
+ }, 8, ["link", "text", "to", "external", "disabled", "size", "foreground-link", "icon-left", "icon-right", "hide-text"]));
458
486
  }
459
487
  });
460
- var we = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(we || {});
488
+ var Ce = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(Ce || {});
461
489
  const qs = {
462
490
  "aria-live": "assertive",
463
491
  class: "pointer-events-none fixed inset-0 flex items-end px-4 py-6 mt-10 sm:items-start sm:p-6 z-50"
464
- }, Ws = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, Hs = {
465
- key: 0,
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
- }, Ks = { class: "p-4" }, Gs = { class: "flex items-start" }, Xs = { class: "flex-shrink-0" }, Zs = { class: "ml-2 w-0 flex-1 flex flex-col" }, Ns = {
468
- key: 0,
469
- class: "text-foreground font-bold"
470
- }, Qs = {
492
+ }, Ws = { class: "flex w-full flex-col items-center gap-4 sm:items-end" }, Hs = { class: "flex-shrink-0" }, Ks = { class: "w-full min-w-[10rem]" }, Gs = {
471
493
  key: 1,
472
- class: "label label--light text-foreground-2"
473
- }, Js = {
474
- key: 2,
475
- class: "flex justify-start mt-2"
476
- }, Ys = /* @__PURE__ */ f("span", { class: "sr-only" }, "Close", -1), Bo = /* @__PURE__ */ _({
494
+ class: "label label--light text-foreground-2 text-sm"
495
+ }, Xs = { key: 2 }, Zs = /* @__PURE__ */ f("span", { class: "sr-only" }, "Close", -1), Co = /* @__PURE__ */ j({
477
496
  __name: "ToastRenderer",
478
497
  props: {
479
498
  notification: null
480
499
  },
481
500
  emits: ["update:notification"],
482
501
  setup(e, { emit: t }) {
483
- const r = t, s = e, o = c(
502
+ const r = t, s = e, a = c(
484
503
  () => {
485
- var h, i;
486
- return !((h = s.notification) != null && h.description) && !((i = s.notification) != null && i.cta);
504
+ var p, i;
505
+ return !((p = s.notification) != null && p.description) && !((i = s.notification) != null && i.cta);
487
506
  }
488
- ), n = () => {
507
+ ), l = () => {
489
508
  r("update:notification", null);
490
- }, d = (h) => {
491
- var i, p, x;
492
- (x = (p = (i = s.notification) == null ? void 0 : i.cta) == null ? void 0 : p.onClick) == null || x.call(p, h), n();
509
+ }, h = (p) => {
510
+ var i, d, v;
511
+ (v = (d = (i = s.notification) == null ? void 0 : i.cta) == null ? void 0 : d.onClick) == null || v.call(d, p), l();
493
512
  };
494
- return (h, i) => (a(), m("div", qs, [
513
+ return (p, i) => (o(), m("div", qs, [
495
514
  f("div", Ws, [
496
- z(Ee, {
515
+ V(Ee, {
497
516
  "enter-active-class": "transform ease-out duration-300 transition",
498
517
  "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
499
518
  "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
@@ -502,82 +521,89 @@ const qs = {
502
521
  "leave-to-class": "opacity-0"
503
522
  }, {
504
523
  default: M(() => [
505
- e.notification ? (a(), m("div", Hs, [
506
- f("div", Ks, [
507
- f("div", Gs, [
508
- f("div", Xs, [
509
- e.notification.type === l(we).Success ? (a(), L(l(Gt), {
510
- key: 0,
511
- class: "h-6 w-6 text-success",
512
- "aria-hidden": "true"
513
- })) : e.notification.type === l(we).Danger ? (a(), L(l(Xt), {
514
- key: 1,
515
- class: "h-6 w-6 text-danger",
516
- "aria-hidden": "true"
517
- })) : e.notification.type === l(we).Warning ? (a(), L(l(Zt), {
518
- key: 2,
519
- class: "h-6 w-6 text-warning",
520
- "aria-hidden": "true"
521
- })) : e.notification.type === l(we).Info ? (a(), L(l(Nt), {
522
- key: 3,
523
- class: "h-6 w-6 text-info",
524
- "aria-hidden": "true"
525
- })) : I("", !0)
526
- ]),
527
- f("div", Zs, [
528
- e.notification.title ? (a(), m("p", Ns, V(e.notification.title), 1)) : I("", !0),
529
- e.notification.description ? (a(), m("p", Qs, V(e.notification.description), 1)) : I("", !0),
530
- e.notification.cta ? (a(), m("div", Js, [
531
- z(Us, {
532
- to: e.notification.cta.url,
533
- class: "label",
534
- primary: "",
535
- onClick: d
536
- }, {
537
- default: M(() => [
538
- R(V(e.notification.cta.title), 1)
539
- ]),
540
- _: 1
541
- }, 8, ["to"])
542
- ])) : I("", !0)
543
- ]),
544
- f("div", {
545
- class: b(["ml-4 flex flex-shrink-0", { "self-center": o.value }])
524
+ e.notification ? (o(), m("div", {
525
+ key: 0,
526
+ class: g(["pointer-events-auto w-full max-w-[20rem] overflow-hidden rounded-lg bg-foundation text-foreground shadow-lg ring-1 ring-primary-muted ring-opacity-5", a.value ? "p-2" : "p-3"])
527
+ }, [
528
+ f("div", {
529
+ class: g(["flex gap-2", a.value ? "items-center" : "items-start"])
530
+ }, [
531
+ f("div", Hs, [
532
+ e.notification.type === n(Ce).Success ? (o(), L(n(Gt), {
533
+ key: 0,
534
+ class: g(["text-success", a.value ? "h-5 w-5" : "h-6 w-6"]),
535
+ "aria-hidden": "true"
536
+ }, null, 8, ["class"])) : e.notification.type === n(Ce).Danger ? (o(), L(n(Xt), {
537
+ key: 1,
538
+ class: g(["text-danger", a.value ? "h-5 w-5" : "h-6 w-6"]),
539
+ "aria-hidden": "true"
540
+ }, null, 8, ["class"])) : e.notification.type === n(Ce).Warning ? (o(), L(n(Zt), {
541
+ key: 2,
542
+ class: g(["text-warning", a.value ? "h-5 w-5" : "h-6 w-6"]),
543
+ "aria-hidden": "true"
544
+ }, null, 8, ["class"])) : e.notification.type === n(Ce).Info ? (o(), L(n(Nt), {
545
+ key: 3,
546
+ class: g(["text-info", a.value ? "h-5 w-5" : "h-6 w-6"]),
547
+ "aria-hidden": "true"
548
+ }, null, 8, ["class"])) : I("", !0)
549
+ ]),
550
+ f("div", Ks, [
551
+ e.notification.title ? (o(), m("p", {
552
+ key: 0,
553
+ class: g(["text-foreground font-bold", a.value ? "text-sm" : "text-base"])
554
+ }, z(e.notification.title), 3)) : I("", !0),
555
+ e.notification.description ? (o(), m("p", Gs, z(e.notification.description), 1)) : I("", !0),
556
+ e.notification.cta ? (o(), m("div", Xs, [
557
+ V(Us, {
558
+ to: e.notification.cta.url,
559
+ class: "label",
560
+ size: "xs",
561
+ primary: "",
562
+ onClick: h
563
+ }, {
564
+ default: M(() => [
565
+ R(z(e.notification.cta.title), 1)
566
+ ]),
567
+ _: 1
568
+ }, 8, ["to"])
569
+ ])) : I("", !0)
570
+ ]),
571
+ f("div", {
572
+ class: g(["ml-2 flex-shrink-0", a.value ? "mt-1.5" : ""])
573
+ }, [
574
+ f("button", {
575
+ type: "button",
576
+ 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",
577
+ onClick: l
546
578
  }, [
547
- f("button", {
548
- type: "button",
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
- onClick: n
551
- }, [
552
- Ys,
553
- z(l(ye), {
554
- class: "h-6 w-6",
555
- "aria-hidden": "true"
556
- })
557
- ])
558
- ], 2)
559
- ])
560
- ])
561
- ])) : I("", !0)
579
+ Zs,
580
+ V(n(xe), {
581
+ class: "h-5 w-5",
582
+ "aria-hidden": "true"
583
+ })
584
+ ])
585
+ ], 2)
586
+ ], 2)
587
+ ], 2)) : I("", !0)
562
588
  ]),
563
589
  _: 1
564
590
  })
565
591
  ])
566
592
  ]));
567
593
  }
568
- }), en = "Enter";
569
- function gt(e) {
594
+ }), Ns = "Enter";
595
+ function bt(e) {
570
596
  return (t) => {
571
- t.code === en && e(t);
597
+ t.code === Ns && e(t);
572
598
  };
573
599
  }
574
- const tn = /* @__PURE__ */ f("circle", {
600
+ const Qs = /* @__PURE__ */ f("circle", {
575
601
  cx: "4",
576
602
  cy: "4",
577
603
  r: "3"
578
- }, null, -1), sn = [
579
- tn
580
- ], Xe = /* @__PURE__ */ _({
604
+ }, null, -1), Js = [
605
+ Qs
606
+ ], Xe = /* @__PURE__ */ j({
581
607
  __name: "Badge",
582
608
  props: {
583
609
  size: null,
@@ -590,118 +616,118 @@ const tn = /* @__PURE__ */ f("circle", {
590
616
  },
591
617
  emits: ["click-icon"],
592
618
  setup(e, { emit: t }) {
593
- const r = t, s = e, o = c(
619
+ const r = t, s = e, a = c(
594
620
  () => s.colorClasses || "bg-blue-100 text-blue-800"
595
- ), n = c(
621
+ ), l = c(
596
622
  () => s.dotIconColorClasses || "text-blue-400"
597
- ), d = c(() => {
598
- const x = [
623
+ ), h = c(() => {
624
+ const v = [
599
625
  "inline-flex items-center",
600
- o.value,
626
+ a.value,
601
627
  s.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
602
628
  ];
603
- return s.rounded ? (x.push("rounded"), x.push(
629
+ return s.rounded ? (v.push("rounded"), v.push(
604
630
  s.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
605
- )) : (x.push("rounded-full"), x.push(
631
+ )) : (v.push("rounded-full"), v.push(
606
632
  s.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
607
- )), x.join(" ");
608
- }), h = c(() => {
609
- const x = [
633
+ )), v.join(" ");
634
+ }), p = c(() => {
635
+ const v = [
610
636
  "mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
611
637
  ];
612
- return s.clickableIcon ? x.push("cursor-pointer") : x.push("cursor-default"), x.join(" ");
638
+ return s.clickableIcon ? v.push("cursor-pointer") : v.push("cursor-default"), v.join(" ");
613
639
  }), i = c(() => [
614
640
  "-ml-0.5 mr-1.5 h-2 w-2",
615
- n.value
616
- ].join(" ")), p = (x) => {
641
+ l.value
642
+ ].join(" ")), d = (v) => {
617
643
  if (!s.clickableIcon) {
618
- x.stopPropagation(), x.stopImmediatePropagation(), x.preventDefault();
644
+ v.stopPropagation(), v.stopImmediatePropagation(), v.preventDefault();
619
645
  return;
620
646
  }
621
- r("click-icon", x);
647
+ r("click-icon", v);
622
648
  };
623
- return (x, y) => (a(), m("span", {
624
- class: b(d.value)
649
+ return (v, x) => (o(), m("span", {
650
+ class: g(h.value)
625
651
  }, [
626
- e.dot ? (a(), m("svg", {
652
+ e.dot ? (o(), m("svg", {
627
653
  key: 0,
628
- class: b(i.value),
654
+ class: g(i.value),
629
655
  fill: "currentColor",
630
656
  viewBox: "0 0 8 8"
631
- }, sn, 2)) : I("", !0),
632
- D(x.$slots, "default", {}, () => [
657
+ }, Js, 2)) : I("", !0),
658
+ E(v.$slots, "default", {}, () => [
633
659
  R("Badge")
634
660
  ]),
635
- e.iconLeft ? (a(), m("button", {
661
+ e.iconLeft ? (o(), m("button", {
636
662
  key: 1,
637
- class: b(h.value),
638
- onClick: y[0] || (y[0] = (v) => p(v))
663
+ class: g(p.value),
664
+ onClick: x[0] || (x[0] = (b) => d(b))
639
665
  }, [
640
- (a(), L(Q(e.iconLeft), {
641
- class: b(["h-4 w-4", n.value])
666
+ (o(), L(Q(e.iconLeft), {
667
+ class: g(["h-4 w-4", l.value])
642
668
  }, null, 8, ["class"]))
643
669
  ], 2)) : I("", !0)
644
670
  ], 2));
645
671
  }
646
672
  });
647
673
  let ot = [];
648
- function nn(e) {
674
+ function Ys(e) {
649
675
  ot = ot ? e : e.slice();
650
676
  }
651
- var Ce = /* @__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))(Ce || {});
652
- function bt(e) {
677
+ var $e = /* @__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))($e || {});
678
+ function yt(e) {
653
679
  const {
654
680
  props: {
655
681
  modelValue: t,
656
682
  steps: r,
657
683
  orientation: s,
658
- goVerticalBelow: o,
659
- nonInteractive: n,
660
- stepsPadding: d
684
+ goVerticalBelow: a,
685
+ nonInteractive: l,
686
+ stepsPadding: h
661
687
  },
662
- emit: h
688
+ emit: p
663
689
  } = e, i = c(
664
690
  () => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
665
- ), p = c({
691
+ ), d = c({
666
692
  get: () => lt((t == null ? void 0 : t.value) || 0, -1, r.value.length),
667
- set: (k) => h("update:modelValue", lt(k, 0, r.value.length))
668
- }), x = (k) => `${k + 1}`, y = (k) => k === p.value, v = (k) => k < p.value, g = (k, $) => {
693
+ set: (k) => p("update:modelValue", lt(k, 0, r.value.length))
694
+ }), v = (k) => `${k + 1}`, x = (k) => k === d.value, b = (k) => k < d.value, y = (k, $) => {
669
695
  var T;
670
- if (n != null && n.value) {
696
+ if (l != null && l.value) {
671
697
  $ == null || $.preventDefault(), $ == null || $.stopPropagation(), $ == null || $.stopImmediatePropagation();
672
698
  return;
673
699
  }
674
- p.value = k;
675
- const B = r.value[p.value];
700
+ d.value = k;
701
+ const B = r.value[d.value];
676
702
  (T = B == null ? void 0 : B.onClick) == null || T.call(B);
677
703
  }, u = c(() => {
678
704
  const k = ["flex"];
679
705
  let $, B;
680
- return (d == null ? void 0 : d.value) === "xs" ? ($ = "space-x-2", B = "space-y-1") : (d == null ? void 0 : d.value) === "sm" ? ($ = "space-x-4", B = "space-y-1") : ($ = "space-x-8", B = "space-y-4"), k.push("flex"), i.value === "vertical" || o != null && o.value ? (k.push(`flex-col ${B} justify-center`), (o == null ? void 0 : o.value) === Ce.sm ? k.push(
706
+ return (h == null ? void 0 : h.value) === "xs" ? ($ = "space-x-2", B = "space-y-1") : (h == null ? void 0 : h.value) === "sm" ? ($ = "space-x-4", B = "space-y-1") : ($ = "space-x-8", B = "space-y-4"), k.push("flex"), i.value === "vertical" || a != null && a.value ? (k.push(`flex-col ${B} justify-center`), (a == null ? void 0 : a.value) === $e.sm ? k.push(
681
707
  `sm:flex-row sm:space-y-0 sm:justify-start sm:${$} sm:items-center`
682
- ) : (o == null ? void 0 : o.value) === Ce.md ? k.push(
708
+ ) : (a == null ? void 0 : a.value) === $e.md ? k.push(
683
709
  `md:flex-row md:space-y-0 md:justify-start md:${$} md:items-center`
684
- ) : (o == null ? void 0 : o.value) === Ce.lg ? k.push(
710
+ ) : (a == null ? void 0 : a.value) === $e.lg ? k.push(
685
711
  `lg:flex-row lg:space-y-0 lg:justify-start lg:${$} lg:items-center`
686
- ) : (o == null ? void 0 : o.value) === Ce.xl && k.push(
712
+ ) : (a == null ? void 0 : a.value) === $e.xl && k.push(
687
713
  `xl:flex-row xl:space-y-0 xl:justify-start xl:${$} xl:items-center`
688
714
  )) : k.push(`flex-row ${$} items-center`), k.join(" ");
689
715
  }), S = c(() => {
690
716
  const k = ["flex items-center"];
691
- return n != null && n.value || k.push("cursor-pointer"), k.join(" ");
717
+ return l != null && l.value || k.push("cursor-pointer"), k.join(" ");
692
718
  });
693
719
  return {
694
- value: p,
695
- isCurrentStep: y,
696
- isFinishedStep: v,
697
- switchStep: g,
698
- getStepDisplayValue: x,
720
+ value: d,
721
+ isCurrentStep: x,
722
+ isFinishedStep: b,
723
+ switchStep: y,
724
+ getStepDisplayValue: v,
699
725
  listClasses: u,
700
726
  linkClasses: S,
701
727
  orientation: i
702
728
  };
703
729
  }
704
- nn([
730
+ Ys([
705
731
  "sm:space-x-8",
706
732
  "md:space-x-8",
707
733
  "lg:space-x-8",
@@ -715,16 +741,16 @@ nn([
715
741
  "lg:space-x-4",
716
742
  "xl:space-x-4"
717
743
  ]);
718
- const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, rn = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, un = { class: "flex flex-col" }, cn = {
744
+ const en = ["aria-label"], tn = ["href", "onClick"], sn = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, nn = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, ln = { class: "flex flex-col" }, an = {
719
745
  key: 0,
720
746
  class: "label label--light text-foreground"
721
- }, dn = ["href", "onClick"], fn = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, pn = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, mn = { class: "flex flex-col" }, hn = {
747
+ }, on = ["href", "onClick"], rn = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, un = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, cn = { class: "flex flex-col" }, dn = {
722
748
  key: 0,
723
749
  class: "label label--light text-foreground"
724
- }, vn = ["href", "onClick"], gn = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, bn = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, yn = { class: "flex flex-col" }, xn = {
750
+ }, fn = ["href", "onClick"], pn = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, mn = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, hn = { class: "flex flex-col" }, vn = {
725
751
  key: 0,
726
752
  class: "label label--light"
727
- }, Vo = /* @__PURE__ */ _({
753
+ }, $o = /* @__PURE__ */ j({
728
754
  __name: "Number",
729
755
  props: {
730
756
  ariaLabel: null,
@@ -738,92 +764,92 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
738
764
  emits: ["update:modelValue"],
739
765
  setup(e, { emit: t }) {
740
766
  const r = t, s = e, {
741
- isCurrentStep: o,
742
- isFinishedStep: n,
743
- switchStep: d,
744
- getStepDisplayValue: h,
767
+ isCurrentStep: a,
768
+ isFinishedStep: l,
769
+ switchStep: h,
770
+ getStepDisplayValue: p,
745
771
  listClasses: i,
746
- linkClasses: p
747
- } = bt({
772
+ linkClasses: d
773
+ } = yt({
748
774
  props: le(s),
749
775
  emit: r
750
776
  });
751
- return (x, y) => (a(), m("nav", {
777
+ return (v, x) => (o(), m("nav", {
752
778
  class: "flex justify-center",
753
779
  "aria-label": e.ariaLabel || "Progress steps"
754
780
  }, [
755
781
  f("ol", {
756
- class: b(l(i))
782
+ class: g(n(i))
757
783
  }, [
758
- (a(!0), m(K, null, G(e.steps, (v, g) => (a(), m("li", {
759
- key: v.name
784
+ (o(!0), m(K, null, G(e.steps, (b, y) => (o(), m("li", {
785
+ key: b.name
760
786
  }, [
761
- l(n)(g) ? (a(), m("a", {
787
+ n(l)(y) ? (o(), m("a", {
762
788
  key: 0,
763
- href: v.href,
764
- class: b(l(p)),
765
- onClick: (u) => l(d)(g, u)
789
+ href: b.href,
790
+ class: g(n(d)),
791
+ onClick: (u) => n(h)(y, u)
766
792
  }, [
767
- f("div", on, [
768
- f("div", rn, [
769
- z(l(pt), { class: "w-5 h-5" })
793
+ f("div", sn, [
794
+ f("div", nn, [
795
+ V(n(mt), { class: "w-5 h-5" })
770
796
  ]),
771
- f("div", un, [
772
- f("div", null, V(v.name), 1),
773
- v.description ? (a(), m("div", cn, V(v.description), 1)) : I("", !0)
797
+ f("div", ln, [
798
+ f("div", null, z(b.name), 1),
799
+ b.description ? (o(), m("div", an, z(b.description), 1)) : I("", !0)
774
800
  ])
775
801
  ])
776
- ], 10, an)) : l(o)(g) ? (a(), m("a", {
802
+ ], 10, tn)) : n(a)(y) ? (o(), m("a", {
777
803
  key: 1,
778
- href: v.href,
779
- class: b(l(p)),
804
+ href: b.href,
805
+ class: g(n(d)),
780
806
  "aria-current": "step",
781
- onClick: (u) => l(d)(g, u)
807
+ onClick: (u) => n(h)(y, u)
782
808
  }, [
783
- f("div", fn, [
784
- f("div", pn, V(l(h)(g)), 1),
785
- f("div", mn, [
786
- f("div", null, V(v.name), 1),
787
- v.description ? (a(), m("div", hn, V(v.description), 1)) : I("", !0)
809
+ f("div", rn, [
810
+ f("div", un, z(n(p)(y)), 1),
811
+ f("div", cn, [
812
+ f("div", null, z(b.name), 1),
813
+ b.description ? (o(), m("div", dn, z(b.description), 1)) : I("", !0)
788
814
  ])
789
815
  ])
790
- ], 10, dn)) : (a(), m("a", {
816
+ ], 10, on)) : (o(), m("a", {
791
817
  key: 2,
792
- href: v.href,
793
- class: b(l(p)),
794
- onClick: (u) => l(d)(g, u)
818
+ href: b.href,
819
+ class: g(n(d)),
820
+ onClick: (u) => n(h)(y, u)
795
821
  }, [
796
- f("div", gn, [
797
- f("div", bn, V(l(h)(g)), 1),
798
- f("div", yn, [
799
- f("div", null, V(v.name), 1),
800
- v.description ? (a(), m("div", xn, V(v.description), 1)) : I("", !0)
822
+ f("div", pn, [
823
+ f("div", mn, z(n(p)(y)), 1),
824
+ f("div", hn, [
825
+ f("div", null, z(b.name), 1),
826
+ b.description ? (o(), m("div", vn, z(b.description), 1)) : I("", !0)
801
827
  ])
802
828
  ])
803
- ], 10, vn))
829
+ ], 10, fn))
804
830
  ]))), 128))
805
831
  ], 2)
806
- ], 8, ln));
832
+ ], 8, en));
807
833
  }
808
- }), kn = ["aria-label"], wn = ["href", "onClick"], Cn = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, $n = {
834
+ }), gn = ["aria-label"], bn = ["href", "onClick"], yn = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, xn = {
809
835
  key: 0,
810
836
  class: "h-3 w-3 rounded-full bg-foreground-2"
811
- }, In = ["href", "onClick"], Sn = {
837
+ }, kn = ["href", "onClick"], wn = {
812
838
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
813
839
  "aria-hidden": "true"
814
- }, Bn = {
840
+ }, Cn = {
815
841
  key: 0,
816
842
  class: "h-3 w-3 rounded-full bg-foreground"
817
- }, Vn = /* @__PURE__ */ f("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), zn = /* @__PURE__ */ f("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), On = ["href", "onClick"], Ln = {
843
+ }, $n = /* @__PURE__ */ f("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), In = /* @__PURE__ */ f("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), Sn = ["href", "onClick"], Bn = {
818
844
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
819
845
  "aria-hidden": "true"
820
- }, Mn = {
846
+ }, zn = {
821
847
  key: 0,
822
848
  class: "h-3 w-3 rounded-full bg-foreground-2"
823
- }, An = {
849
+ }, Vn = {
824
850
  key: 1,
825
851
  class: "h-4 w-4 rounded-full bg-foreground-disabled"
826
- }, zo = /* @__PURE__ */ _({
852
+ }, Io = /* @__PURE__ */ j({
827
853
  __name: "Bullet",
828
854
  props: {
829
855
  ariaLabel: null,
@@ -837,77 +863,77 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
837
863
  },
838
864
  emits: ["update:modelValue"],
839
865
  setup(e, { emit: t }) {
840
- const r = t, s = e, { isCurrentStep: o, isFinishedStep: n, switchStep: d, listClasses: h, linkClasses: i } = bt({
866
+ const r = t, s = e, { isCurrentStep: a, isFinishedStep: l, switchStep: h, listClasses: p, linkClasses: i } = yt({
841
867
  props: le(s),
842
868
  emit: r
843
- }), p = c(() => {
844
- const y = ["h6 font-medium leading-7"];
845
- let v;
846
- return s.stepsPadding === "xs" ? v = "ml-1" : s.stepsPadding === "sm" ? v = "ml-2" : v = "ml-3", y.push(v), s.basic && y.push("sr-only"), y.join(" ");
847
- }), x = c(() => {
848
- const y = [];
849
- return s.basic && y.push("basic"), y.join(" ");
869
+ }), d = c(() => {
870
+ const x = ["h6 font-medium leading-7"];
871
+ let b;
872
+ return s.stepsPadding === "xs" ? b = "ml-1" : s.stepsPadding === "sm" ? b = "ml-2" : b = "ml-3", x.push(b), s.basic && x.push("sr-only"), x.join(" ");
873
+ }), v = c(() => {
874
+ const x = [];
875
+ return s.basic && x.push("basic"), x.join(" ");
850
876
  });
851
- return (y, v) => (a(), m("nav", {
877
+ return (x, b) => (o(), m("nav", {
852
878
  class: "flex justify-center",
853
879
  "aria-label": e.ariaLabel || "Progress steps"
854
880
  }, [
855
881
  f("ol", {
856
- class: b([l(h), x.value])
882
+ class: g([n(p), v.value])
857
883
  }, [
858
- (a(!0), m(K, null, G(e.steps, (g, u) => (a(), m("li", {
859
- key: g.name
884
+ (o(!0), m(K, null, G(e.steps, (y, u) => (o(), m("li", {
885
+ key: y.name
860
886
  }, [
861
- l(n)(u) ? (a(), m("a", {
887
+ n(l)(u) ? (o(), m("a", {
862
888
  key: 0,
863
- href: g.href,
864
- class: b(l(i)),
865
- onClick: (S) => l(d)(u, S)
889
+ href: y.href,
890
+ class: g(n(i)),
891
+ onClick: (S) => n(h)(u, S)
866
892
  }, [
867
- f("span", Cn, [
868
- e.basic ? (a(), m("span", $n)) : (a(), L(l(mt), {
893
+ f("span", yn, [
894
+ e.basic ? (o(), m("span", xn)) : (o(), L(n(ht), {
869
895
  key: 1,
870
896
  class: "h-full w-full text-primary",
871
897
  "aria-hidden": "true"
872
898
  }))
873
899
  ]),
874
900
  f("span", {
875
- class: b(["text-foreground", p.value])
876
- }, V(g.name), 3)
877
- ], 10, wn)) : l(o)(u) ? (a(), m("a", {
901
+ class: g(["text-foreground", d.value])
902
+ }, z(y.name), 3)
903
+ ], 10, bn)) : n(a)(u) ? (o(), m("a", {
878
904
  key: 1,
879
- href: g.href,
880
- class: b(l(i)),
905
+ href: y.href,
906
+ class: g(n(i)),
881
907
  "aria-current": "step",
882
- onClick: (S) => l(d)(u, S)
908
+ onClick: (S) => n(h)(u, S)
883
909
  }, [
884
- f("span", Sn, [
885
- e.basic ? (a(), m("span", Bn)) : (a(), m(K, { key: 1 }, [
886
- Vn,
887
- zn
910
+ f("span", wn, [
911
+ e.basic ? (o(), m("span", Cn)) : (o(), m(K, { key: 1 }, [
912
+ $n,
913
+ In
888
914
  ], 64))
889
915
  ]),
890
916
  f("span", {
891
- class: b(["text-primary-focus", p.value])
892
- }, V(g.name), 3)
893
- ], 10, In)) : (a(), m("a", {
917
+ class: g(["text-primary-focus", d.value])
918
+ }, z(y.name), 3)
919
+ ], 10, kn)) : (o(), m("a", {
894
920
  key: 2,
895
- href: g.href,
896
- class: b(l(i)),
897
- onClick: (S) => l(d)(u, S)
921
+ href: y.href,
922
+ class: g(n(i)),
923
+ onClick: (S) => n(h)(u, S)
898
924
  }, [
899
- f("div", Ln, [
900
- e.basic ? (a(), m("span", Mn)) : (a(), m("div", An))
925
+ f("div", Bn, [
926
+ e.basic ? (o(), m("span", zn)) : (o(), m("div", Vn))
901
927
  ]),
902
928
  f("p", {
903
- class: b(["text-foreground-disabled", p.value])
904
- }, V(g.name), 3)
905
- ], 10, On))
929
+ class: g(["text-foreground-disabled", d.value])
930
+ }, z(y.name), 3)
931
+ ], 10, Sn))
906
932
  ]))), 128))
907
933
  ], 2)
908
- ], 8, kn));
934
+ ], 8, gn));
909
935
  }
910
- }), Pn = {}, _n = {
936
+ }), On = {}, Ln = {
911
937
  xmlns: "http://www.w3.org/2000/svg",
912
938
  class: "icon icon-tabler icon-tabler-pointer",
913
939
  width: "44",
@@ -918,34 +944,34 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
918
944
  fill: "rgba(255,255,255,0.8)",
919
945
  "stroke-linecap": "round",
920
946
  "stroke-linejoin": "round"
921
- }, jn = /* @__PURE__ */ f("path", {
947
+ }, Mn = /* @__PURE__ */ f("path", {
922
948
  stroke: "none",
923
949
  d: "M0 0h24v24H0z",
924
950
  fill: "none"
925
- }, null, -1), Tn = /* @__PURE__ */ f("path", { d: "M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563z" }, null, -1), Fn = [
926
- jn,
927
- Tn
951
+ }, null, -1), An = /* @__PURE__ */ f("path", { d: "M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563z" }, null, -1), Pn = [
952
+ Mn,
953
+ An
928
954
  ];
929
- function Rn(e, t) {
930
- return a(), m("svg", _n, Fn);
955
+ function jn(e, t) {
956
+ return o(), m("svg", Ln, Pn);
931
957
  }
932
- const Dn = /* @__PURE__ */ Oe(Pn, [["render", Rn]]), En = {}, Un = {
958
+ const _n = /* @__PURE__ */ Oe(On, [["render", jn]]), Tn = {}, Fn = {
933
959
  viewBox: "0 0 18 17",
934
960
  fill: "none",
935
961
  xmlns: "http://www.w3.org/2000/svg"
936
- }, qn = /* @__PURE__ */ f("path", {
962
+ }, Rn = /* @__PURE__ */ f("path", {
937
963
  d: "M9 1.25V3.5M14.834 3.666L13.243 5.257M17.25 9.5H15M4.757 13.743L3.167 15.333M3 9.5H0.75M4.757 5.257L3.167 3.667",
938
964
  stroke: "currentColor",
939
965
  "stroke-width": "1",
940
966
  "stroke-linecap": "round",
941
967
  "stroke-linejoin": "round"
942
- }, null, -1), Wn = [
943
- qn
968
+ }, null, -1), Dn = [
969
+ Rn
944
970
  ];
945
- function Hn(e, t) {
946
- return a(), m("svg", Un, Wn);
971
+ function En(e, t) {
972
+ return o(), m("svg", Fn, Dn);
947
973
  }
948
- const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative aspect-square w-full h-full max-w-[250px] mx-auto mb-8 border-t border-r border-outline-3 select-none" }, Xn = { class: "w-full h-full overflow-hidden" }, Oo = /* @__PURE__ */ _({
974
+ const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative aspect-square w-full h-full max-w-[250px] mx-auto mb-8 border-t border-r border-outline-3 select-none" }, Wn = { class: "w-full h-full overflow-hidden" }, So = /* @__PURE__ */ j({
949
975
  __name: "Instructional",
950
976
  props: {
951
977
  actions: Array,
@@ -955,66 +981,66 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
955
981
  slotsConfig: Array
956
982
  },
957
983
  setup(e) {
958
- const t = e, r = O(!0), s = O({ ...t.initialPosition }), o = O(!1), n = O(500), d = O(!0), h = O(t.slotsConfig || []);
959
- async function i(y) {
960
- await rs(y.duration);
984
+ const t = e, r = O(!0), s = O({ ...t.initialPosition }), a = O(!1), l = O(500), h = O(!0), p = O(t.slotsConfig || []);
985
+ async function i(x) {
986
+ await rs(x.duration);
961
987
  }
962
- function p(y) {
963
- const v = h.value.find((g) => g.name === y.slot);
964
- v && (v.visible = !v.visible);
988
+ function d(x) {
989
+ const b = p.value.find((y) => y.name === x.slot);
990
+ b && (b.visible = !b.visible);
965
991
  }
966
- function x(y) {
967
- switch (y.type) {
992
+ function v(x) {
993
+ switch (x.type) {
968
994
  case "animation":
969
- s.value = { top: y.top, left: y.left }, n.value = y.duration;
995
+ s.value = { top: x.top, left: x.left }, l.value = x.duration;
970
996
  break;
971
997
  case "click":
972
- o.value = !0, setTimeout(() => o.value = !1, 500);
998
+ a.value = !0, setTimeout(() => a.value = !1, 500);
973
999
  break;
974
1000
  case "delay":
975
- return i(y);
1001
+ return i(x);
976
1002
  case "slot":
977
- p(y);
1003
+ d(x);
978
1004
  break;
979
1005
  }
980
1006
  }
981
1007
  return ae(() => {
982
1008
  (async () => {
983
1009
  for (; r.value; ) {
984
- await i({ type: "delay", duration: 800 }), d.value = !0;
985
- for (const v of t.actions || [])
986
- await x(v);
987
- d.value = !1, s.value = { ...t.initialPosition }, await i({ type: "delay", duration: 200 });
1010
+ await i({ type: "delay", duration: 800 }), h.value = !0;
1011
+ for (const b of t.actions || [])
1012
+ await v(b);
1013
+ h.value = !1, s.value = { ...t.initialPosition }, await i({ type: "delay", duration: 200 });
988
1014
  }
989
1015
  })();
990
1016
  }), Ue(() => {
991
1017
  r.value = !1;
992
- }), (y, v) => (a(), m("div", Gn, [
1018
+ }), (x, b) => (o(), m("div", qn, [
993
1019
  f("div", {
994
1020
  class: "absolute z-50 text-foreground dark:text-foundation",
995
1021
  style: ne({
996
1022
  transitionProperty: "all",
997
1023
  top: s.value.top + "%",
998
1024
  left: s.value.left + "%",
999
- transitionDuration: n.value + "ms"
1025
+ transitionDuration: l.value + "ms"
1000
1026
  })
1001
1027
  }, [
1002
- z(Kn, {
1003
- class: b(["absolute -top-5 -left-4 h-12 w-12 -rotate-12 text-foreground", [{ hidden: !o.value }]])
1028
+ V(Un, {
1029
+ class: g(["absolute -top-5 -left-4 h-12 w-12 -rotate-12 text-foreground", [{ hidden: !a.value }]])
1004
1030
  }, null, 8, ["class"]),
1005
- z(Dn, { class: "absolute inset-0 h-11 w-11" })
1031
+ V(_n, { class: "absolute inset-0 h-11 w-11" })
1006
1032
  ], 4),
1007
- f("div", Xn, [
1008
- D(y.$slots, "background"),
1009
- (a(!0), m(K, null, G(h.value, (g) => (a(), m(K, {
1010
- key: g.name
1033
+ f("div", Wn, [
1034
+ E(x.$slots, "background"),
1035
+ (o(!0), m(K, null, G(p.value, (y) => (o(), m(K, {
1036
+ key: y.name
1011
1037
  }, [
1012
- g.visible ? D(y.$slots, g.name, { key: 0 }) : I("", !0)
1038
+ y.visible ? E(x.$slots, y.name, { key: 0 }) : I("", !0)
1013
1039
  ], 64))), 128))
1014
1040
  ])
1015
1041
  ]));
1016
1042
  }
1017
- }), Zn = ["disabled"], Lo = /* @__PURE__ */ _({
1043
+ }), Hn = ["disabled"], Bo = /* @__PURE__ */ j({
1018
1044
  __name: "CardButton",
1019
1045
  props: {
1020
1046
  disabled: { type: Boolean },
@@ -1022,38 +1048,38 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
1022
1048
  },
1023
1049
  emits: ["update:modelValue", "click"],
1024
1050
  setup(e, { emit: t }) {
1025
- const r = t, s = e, o = c(() => {
1026
- const d = [
1051
+ const r = t, s = e, a = c(() => {
1052
+ const h = [
1027
1053
  "h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
1028
1054
  "normal px-16 py-5 shadow rounded transition active:scale-95"
1029
1055
  ];
1030
- return s.disabled ? d.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (d.push(
1056
+ return s.disabled ? h.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (h.push(
1031
1057
  s.modelValue ? "bg-primary-focus text-foreground-on-primary" : "bg-foundation text-foreground"
1032
- ), d.push("ring-outline-2 hover:ring-4")), d.join(" ");
1033
- }), n = (d) => {
1058
+ ), h.push("ring-outline-2 hover:ring-4")), h.join(" ");
1059
+ }), l = (h) => {
1034
1060
  if (s.disabled) {
1035
- d.preventDefault(), d.stopPropagation(), d.stopImmediatePropagation();
1061
+ h.preventDefault(), h.stopPropagation(), h.stopImmediatePropagation();
1036
1062
  return;
1037
1063
  }
1038
- r("update:modelValue", !s.modelValue), r("click", d);
1064
+ r("update:modelValue", !s.modelValue), r("click", h);
1039
1065
  };
1040
- return (d, h) => (a(), m("button", {
1041
- class: b(o.value),
1066
+ return (h, p) => (o(), m("button", {
1067
+ class: g(a.value),
1042
1068
  disabled: e.disabled,
1043
- onClick: n
1069
+ onClick: l
1044
1070
  }, [
1045
- D(d.$slots, "default", {}, () => [
1071
+ E(h.$slots, "default", {}, () => [
1046
1072
  R("Text")
1047
1073
  ])
1048
- ], 10, Zn));
1074
+ ], 10, Hn));
1049
1075
  }
1050
- }), Nn = { class: "relative flex items-start" }, Qn = { class: "flex h-6 items-center" }, Jn = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Yn = {
1076
+ }), Kn = { class: "relative flex items-start" }, Gn = { class: "flex h-6 items-center" }, Xn = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Zn = {
1051
1077
  class: "ml-2 text-sm",
1052
1078
  style: { "padding-top": "2px" }
1053
- }, el = ["for"], tl = {
1079
+ }, Nn = ["for"], Qn = {
1054
1080
  key: 0,
1055
1081
  class: "text-danger ml-1"
1056
- }, sl = ["id"], Mo = /* @__PURE__ */ _({
1082
+ }, Jn = ["id"], zo = /* @__PURE__ */ j({
1057
1083
  inheritAttrs: !1,
1058
1084
  __name: "Checkbox",
1059
1085
  props: {
@@ -1142,61 +1168,61 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
1142
1168
  },
1143
1169
  emits: ["update:modelValue"],
1144
1170
  setup(e) {
1145
- const t = e, r = (k) => `${k}-${ze()}`, s = c(() => t.value || t.name), {
1146
- checked: o,
1147
- errorMessage: n,
1148
- handleChange: d,
1149
- value: h
1150
- } = Ie(t.name, t.rules, {
1171
+ const t = e, r = (k) => `${k}-${Ve()}`, s = c(() => t.value || t.name), {
1172
+ checked: a,
1173
+ errorMessage: l,
1174
+ handleChange: h,
1175
+ value: p
1176
+ } = Se(t.name, t.rules, {
1151
1177
  validateOnMount: t.validateOnMount,
1152
1178
  type: "checkbox",
1153
1179
  checkedValue: s,
1154
1180
  initialValue: t.modelValue || void 0
1155
- }), i = c(() => t.label || t.name), p = c(() => n.value ? "border-danger-lighter" : "border-foreground-4 "), x = c(() => t.description || n.value), y = c(() => `${t.name}-description`), v = c(() => {
1181
+ }), i = c(() => t.label || t.name), d = c(() => l.value ? "border-danger-lighter" : "border-foreground-4 "), v = c(() => t.description || l.value), x = c(() => `${t.name}-description`), b = c(() => {
1156
1182
  const k = [];
1157
- return t.inlineDescription ? k.push("inline ml-2") : k.push("block"), n.value ? k.push("text-danger") : k.push("text-foreground-2"), k.join(" ");
1158
- }), g = O(r("checkbox")), u = c(() => t.id || g.value), S = (k) => {
1159
- t.disabled || d(k);
1183
+ return t.inlineDescription ? k.push("inline ml-2") : k.push("block"), l.value ? k.push("text-danger") : k.push("text-foreground-2"), k.join(" ");
1184
+ }), y = O(r("checkbox")), u = c(() => t.id || y.value), S = (k) => {
1185
+ t.disabled || h(k);
1160
1186
  };
1161
1187
  return ae(() => {
1162
- const k = t.modelValue, $ = h.value, B = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
1163
- B !== T && d(k);
1164
- }), (k, $) => (a(), m("div", Nn, [
1165
- f("div", Qn, [
1188
+ const k = t.modelValue, $ = p.value, B = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
1189
+ B !== T && h(k);
1190
+ }), (k, $) => (o(), m("div", Kn, [
1191
+ f("div", Gn, [
1166
1192
  f("input", ie({
1167
1193
  id: u.value,
1168
- checked: l(o),
1169
- "aria-describedby": y.value,
1194
+ checked: n(a),
1195
+ "aria-describedby": x.value,
1170
1196
  name: e.name,
1171
1197
  disabled: e.disabled,
1172
1198
  value: s.value,
1173
1199
  type: "checkbox",
1174
- class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", p.value]
1175
- }, k.$attrs, { onChange: S }), null, 16, Jn)
1200
+ class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", d.value]
1201
+ }, k.$attrs, { onChange: S }), null, 16, Xn)
1176
1202
  ]),
1177
- f("div", Yn, [
1203
+ f("div", Zn, [
1178
1204
  f("label", {
1179
1205
  for: u.value,
1180
- class: b(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1206
+ class: g(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1181
1207
  }, [
1182
- f("span", null, V(i.value), 1),
1183
- e.showRequired ? (a(), m("span", tl, "*")) : I("", !0)
1184
- ], 10, el),
1185
- x.value ? (a(), m("p", {
1208
+ f("span", null, z(i.value), 1),
1209
+ e.showRequired ? (o(), m("span", Qn, "*")) : I("", !0)
1210
+ ], 10, Nn),
1211
+ v.value ? (o(), m("p", {
1186
1212
  key: 0,
1187
- id: y.value,
1188
- class: b(v.value)
1189
- }, V(x.value), 11, sl)) : I("", !0)
1213
+ id: x.value,
1214
+ class: g(b.value)
1215
+ }, z(v.value), 11, Jn)) : I("", !0)
1190
1216
  ])
1191
1217
  ]));
1192
1218
  }
1193
- }), nl = { class: "flex h-6 items-center" }, ll = ["id", "checked", "aria-describedby", "name", "disabled", "value"], al = ["for"], ol = {
1219
+ }), Yn = { class: "flex h-6 items-center" }, el = ["id", "checked", "aria-describedby", "name", "disabled", "value"], tl = ["for"], sl = {
1194
1220
  key: 0,
1195
1221
  class: "text-sm"
1196
- }, rl = { class: "flex flex-col" }, il = ["id"], ul = {
1222
+ }, nl = { class: "flex flex-col" }, ll = ["id"], al = {
1197
1223
  key: 1,
1198
1224
  class: "text-danger ml-1"
1199
- }, cl = ["id"], Ao = /* @__PURE__ */ _({
1225
+ }, ol = ["id"], Vo = /* @__PURE__ */ j({
1200
1226
  inheritAttrs: !1,
1201
1227
  __name: "Radio",
1202
1228
  props: {
@@ -1292,126 +1318,126 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
1292
1318
  },
1293
1319
  emits: ["update:modelValue"],
1294
1320
  setup(e) {
1295
- const t = e, r = (k) => `${k}-${ze()}`, s = c(() => t.value || t.name), {
1296
- checked: o,
1297
- errorMessage: n,
1298
- handleChange: d,
1299
- value: h
1300
- } = Ie(t.name, t.rules, {
1321
+ const t = e, r = (k) => `${k}-${Ve()}`, s = c(() => t.value || t.name), {
1322
+ checked: a,
1323
+ errorMessage: l,
1324
+ handleChange: h,
1325
+ value: p
1326
+ } = Se(t.name, t.rules, {
1301
1327
  validateOnMount: t.validateOnMount,
1302
1328
  type: "radio",
1303
1329
  checkedValue: s,
1304
1330
  initialValue: t.modelValue || void 0
1305
- }), i = c(() => t.label || t.name), p = c(() => n.value ? "border-danger-lighter" : "border-foreground-4 "), x = c(() => t.description || n.value), y = c(() => `${t.name}-description`), v = c(() => {
1331
+ }), i = c(() => t.label || t.name), d = c(() => l.value ? "border-danger-lighter" : "border-foreground-4 "), v = c(() => t.description || l.value), x = c(() => `${t.name}-description`), b = c(() => {
1306
1332
  const k = ["text-xs"];
1307
- return n.value ? k.push("text-danger") : k.push("text-foreground-2"), k.join(" ");
1308
- }), g = O(r("radio")), u = c(() => t.id || g.value), S = (k) => {
1309
- t.disabled || d(k);
1333
+ return l.value ? k.push("text-danger") : k.push("text-foreground-2"), k.join(" ");
1334
+ }), y = O(r("radio")), u = c(() => t.id || y.value), S = (k) => {
1335
+ t.disabled || h(k);
1310
1336
  };
1311
1337
  return ae(() => {
1312
- const k = t.modelValue, $ = h.value, B = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
1313
- B !== T && d(k);
1314
- }), (k, $) => (a(), m("div", {
1315
- class: b(["relative flex gap-2 mb-2 last:mb-0", e.description && e.inlineDescription ? "items-start" : "items-center"])
1338
+ const k = t.modelValue, $ = p.value, B = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
1339
+ B !== T && h(k);
1340
+ }), (k, $) => (o(), m("div", {
1341
+ class: g(["relative flex gap-2 mb-2 last:mb-0", e.description && e.inlineDescription ? "items-start" : "items-center"])
1316
1342
  }, [
1317
- f("div", nl, [
1343
+ f("div", Yn, [
1318
1344
  f("input", ie({
1319
1345
  id: u.value,
1320
- checked: l(o),
1321
- "aria-describedby": y.value,
1346
+ checked: n(a),
1347
+ "aria-describedby": x.value,
1322
1348
  name: e.name,
1323
1349
  disabled: e.disabled,
1324
1350
  value: s.value,
1325
1351
  type: "radio",
1326
- class: ["h-4 w-4 rounded-full text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", p.value]
1327
- }, k.$attrs, { onChange: S }), null, 16, ll)
1352
+ class: ["h-4 w-4 rounded-full text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", d.value]
1353
+ }, k.$attrs, { onChange: S }), null, 16, el)
1328
1354
  ]),
1329
1355
  f("div", {
1330
- class: b(["text-xs sm:text-sm", e.inlineDescription ? "flex gap-2 items-center" : ""])
1356
+ class: g(["text-xs sm:text-sm", e.inlineDescription ? "flex gap-2 items-center" : ""])
1331
1357
  }, [
1332
1358
  f("label", {
1333
1359
  for: u.value,
1334
- class: b(["text-foreground flex gap-2 items-center", { "sr-only": e.hideLabel }])
1360
+ class: g(["text-foreground flex gap-2 items-center", { "sr-only": e.hideLabel }])
1335
1361
  }, [
1336
- e.icon ? (a(), m("div", ol, [
1337
- (a(), L(Q(e.icon), { class: "h-8 sm:h-10 w-8 sm:w-10" }))
1362
+ e.icon ? (o(), m("div", sl, [
1363
+ (o(), L(Q(e.icon), { class: "h-8 sm:h-10 w-8 sm:w-10" }))
1338
1364
  ])) : I("", !0),
1339
- f("div", rl, [
1340
- f("span", null, V(i.value), 1),
1341
- x.value && !e.inlineDescription ? (a(), m("p", {
1365
+ f("div", nl, [
1366
+ f("span", null, z(i.value), 1),
1367
+ v.value && !e.inlineDescription ? (o(), m("p", {
1342
1368
  key: 0,
1343
- id: y.value,
1344
- class: b(v.value)
1345
- }, V(x.value), 11, il)) : I("", !0)
1369
+ id: x.value,
1370
+ class: g(b.value)
1371
+ }, z(v.value), 11, ll)) : I("", !0)
1346
1372
  ]),
1347
- e.showRequired ? (a(), m("span", ul, "*")) : I("", !0)
1348
- ], 10, al),
1349
- x.value && e.inlineDescription ? (a(), m("p", {
1373
+ e.showRequired ? (o(), m("span", al, "*")) : I("", !0)
1374
+ ], 10, tl),
1375
+ v.value && e.inlineDescription ? (o(), m("p", {
1350
1376
  key: 0,
1351
- id: y.value,
1352
- class: b(v.value)
1353
- }, V(x.value), 11, cl)) : I("", !0)
1377
+ id: x.value,
1378
+ class: g(b.value)
1379
+ }, z(v.value), 11, ol)) : I("", !0)
1354
1380
  ], 2)
1355
1381
  ], 2));
1356
1382
  }
1357
1383
  });
1358
1384
  function Ze(e) {
1359
- const { props: t, inputEl: r, emit: s, options: o } = e, { value: n, errorMessage: d } = Ie(t.name, t.rules, {
1360
- validateOnMount: l(t.validateOnMount),
1361
- validateOnValueUpdate: l(t.validateOnValueUpdate),
1362
- initialValue: l(t.modelValue) || void 0
1363
- }), h = c(() => {
1385
+ const { props: t, inputEl: r, emit: s, options: a } = e, { value: l, errorMessage: h } = Se(t.name, t.rules, {
1386
+ validateOnMount: n(t.validateOnMount),
1387
+ validateOnValueUpdate: n(t.validateOnValueUpdate),
1388
+ initialValue: n(t.modelValue) || void 0
1389
+ }), p = c(() => {
1364
1390
  const A = ["block label text-foreground-2 mb-2"];
1365
- return l(t.showLabel) || A.push("sr-only"), A.join(" ");
1391
+ return n(t.showLabel) || A.push("sr-only"), A.join(" ");
1366
1392
  }), i = c(() => [
1367
1393
  "focus:outline-none disabled:cursor-not-allowed disabled:bg-foundation-disabled",
1368
1394
  "disabled:text-disabled-muted placeholder:text-foreground-2",
1369
1395
  "rounded"
1370
- ].join(" ")), p = c(() => {
1396
+ ].join(" ")), d = c(() => {
1371
1397
  const A = [
1372
1398
  "block w-full text-foreground transition-all",
1373
1399
  i.value
1374
1400
  ];
1375
- d.value ? A.push(
1401
+ h.value ? A.push(
1376
1402
  "focus:border-danger focus:ring-danger border-2 border-danger text-danger-darker"
1377
1403
  ) : A.push("border-0 focus:ring-2 focus:ring-outline-2");
1378
- const w = l(t.color);
1404
+ const w = n(t.color);
1379
1405
  return w === "foundation" ? A.push("bg-foundation shadow-sm hover:shadow") : w === "transparent" ? A.push("bg-transparent") : A.push("bg-foundation-page"), A.join(" ");
1380
- }), x = O(ze()), y = c(() => l(t.label) || l(t.name)), v = c(() => {
1381
- const A = d.value;
1382
- return !A || !l(t.useLabelInErrors) ? A : A.replace("Value", y.value);
1383
- }), g = c(
1384
- () => v.value && l(t.hideErrorMessage)
1385
- ), u = c(() => v.value || l(t.help)), S = c(() => !!u.value), k = c(
1386
- () => S.value ? `${l(t.name)}-${x.value}` : void 0
1406
+ }), v = O(Ve()), x = c(() => n(t.label) || n(t.name)), b = c(() => {
1407
+ const A = h.value;
1408
+ return !A || !n(t.useLabelInErrors) ? A : A.replace("Value", x.value);
1409
+ }), y = c(
1410
+ () => b.value && n(t.hideErrorMessage)
1411
+ ), u = c(() => b.value || n(t.help)), S = c(() => !!u.value), k = c(
1412
+ () => S.value ? `${n(t.name)}-${v.value}` : void 0
1387
1413
  ), $ = c(() => {
1388
1414
  const A = ["mt-2 text-xs sm:text-sm"];
1389
- return A.push(d.value ? "text-danger" : "text-foreground-2"), A.join(" ");
1415
+ return A.push(h.value ? "text-danger" : "text-foreground-2"), A.join(" ");
1390
1416
  }), B = () => {
1391
1417
  var A;
1392
1418
  (A = r.value) == null || A.focus();
1393
1419
  }, T = () => {
1394
1420
  var A;
1395
- n.value = N(n.value) ? [] : "", (A = o == null ? void 0 : o.customClear) == null || A.call(o), s("change", { value: n.value }), s("clear");
1421
+ l.value = N(l.value) ? [] : "", (A = a == null ? void 0 : a.customClear) == null || A.call(a), s("change", { value: l.value }), s("clear");
1396
1422
  };
1397
1423
  return ae(() => {
1398
- l(t.autoFocus) && B();
1424
+ n(t.autoFocus) && B();
1399
1425
  }), {
1400
1426
  coreInputClasses: i,
1401
- coreClasses: p,
1402
- title: y,
1403
- value: n,
1427
+ coreClasses: d,
1428
+ title: x,
1429
+ value: l,
1404
1430
  helpTipId: k,
1405
1431
  helpTipClasses: $,
1406
1432
  helpTip: u,
1407
- hideHelpTip: g,
1408
- errorMessage: v,
1433
+ hideHelpTip: y,
1434
+ errorMessage: b,
1409
1435
  clear: T,
1410
1436
  focus: B,
1411
- labelClasses: h
1437
+ labelClasses: p
1412
1438
  };
1413
1439
  }
1414
- const dl = ["for"], fl = { class: "relative" }, pl = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], ml = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), hl = ["id"], Po = /* @__PURE__ */ _({
1440
+ const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], cl = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), dl = ["id"], Oo = /* @__PURE__ */ j({
1415
1441
  __name: "TextArea",
1416
1442
  props: {
1417
1443
  name: null,
@@ -1434,100 +1460,100 @@ const dl = ["for"], fl = { class: "relative" }, pl = ["id", "name", "placeholder
1434
1460
  },
1435
1461
  emits: ["update:modelValue", "change", "input", "clear"],
1436
1462
  setup(e, { expose: t, emit: r }) {
1437
- const s = r, o = e, n = O(null), {
1438
- coreClasses: d,
1439
- title: h,
1463
+ const s = r, a = e, l = O(null), {
1464
+ coreClasses: h,
1465
+ title: p,
1440
1466
  value: i,
1441
- helpTipId: p,
1442
- helpTipClasses: x,
1443
- helpTip: y,
1444
- errorMessage: v,
1445
- labelClasses: g,
1467
+ helpTipId: d,
1468
+ helpTipClasses: v,
1469
+ helpTip: x,
1470
+ errorMessage: b,
1471
+ labelClasses: y,
1446
1472
  clear: u,
1447
1473
  focus: S
1448
1474
  } = Ze({
1449
- props: le(o),
1475
+ props: le(a),
1450
1476
  emit: s,
1451
- inputEl: n
1477
+ inputEl: l
1452
1478
  }), k = c(() => {
1453
1479
  const $ = ["pl-2"];
1454
- return o.showClear && v.value ? $.push("pr-12") : (o.showClear || v.value) && $.push("pr-8"), $.join(" ");
1480
+ return a.showClear && b.value ? $.push("pr-12") : (a.showClear || b.value) && $.push("pr-8"), $.join(" ");
1455
1481
  });
1456
- return t({ focus: S }), ($, B) => (a(), m("div", {
1457
- class: b([e.fullWidth ? "w-full" : ""])
1482
+ return t({ focus: S }), ($, B) => (o(), m("div", {
1483
+ class: g([e.fullWidth ? "w-full" : ""])
1458
1484
  }, [
1459
1485
  f("label", {
1460
1486
  for: e.name,
1461
- class: b(l(g))
1487
+ class: g(n(y))
1462
1488
  }, [
1463
- f("span", null, V(l(h)), 1)
1464
- ], 10, dl),
1465
- f("div", fl, [
1489
+ f("span", null, z(n(p)), 1)
1490
+ ], 10, rl),
1491
+ f("div", il, [
1466
1492
  be(f("textarea", ie({
1467
1493
  id: e.name,
1468
1494
  ref_key: "inputElement",
1469
- ref: n,
1495
+ ref: l,
1470
1496
  "onUpdate:modelValue": B[0] || (B[0] = (T) => Be(i) ? i.value = T : null),
1471
1497
  name: e.name,
1472
1498
  class: [
1473
- l(d),
1499
+ n(h),
1474
1500
  k.value,
1475
1501
  e.textareaClasses || "",
1476
1502
  "min-h-[3rem] simple-scrollbar text-sm"
1477
1503
  ],
1478
1504
  placeholder: e.placeholder,
1479
1505
  disabled: e.disabled,
1480
- "aria-invalid": l(v) ? "true" : "false",
1481
- "aria-describedby": l(p)
1506
+ "aria-invalid": n(b) ? "true" : "false",
1507
+ "aria-describedby": n(d)
1482
1508
  }, $.$attrs, {
1483
- onChange: B[1] || (B[1] = (T) => $.$emit("change", { event: T, value: l(i) })),
1484
- onInput: B[2] || (B[2] = (T) => $.$emit("input", { event: T, value: l(i) }))
1485
- }), null, 16, pl), [
1486
- [qe, l(i)]
1509
+ onChange: B[1] || (B[1] = (T) => $.$emit("change", { event: T, value: n(i) })),
1510
+ onInput: B[2] || (B[2] = (T) => $.$emit("input", { event: T, value: n(i) }))
1511
+ }), null, 16, ul), [
1512
+ [qe, n(i)]
1487
1513
  ]),
1488
- e.showClear ? (a(), m("a", {
1514
+ e.showClear ? (o(), m("a", {
1489
1515
  key: 0,
1490
1516
  title: "Clear input",
1491
1517
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
1492
1518
  onClick: B[3] || (B[3] = //@ts-ignore
1493
- (...T) => l(u) && l(u)(...T)),
1519
+ (...T) => n(u) && n(u)(...T)),
1494
1520
  onKeydown: B[4] || (B[4] = //@ts-ignore
1495
- (...T) => l(u) && l(u)(...T))
1521
+ (...T) => n(u) && n(u)(...T))
1496
1522
  }, [
1497
- ml,
1498
- z(l(ye), {
1523
+ cl,
1524
+ V(n(xe), {
1499
1525
  class: "h-5 w-5 text-foreground",
1500
1526
  "aria-hidden": "true"
1501
1527
  })
1502
1528
  ], 32)) : I("", !0),
1503
- l(v) ? (a(), m("div", {
1529
+ n(b) ? (o(), m("div", {
1504
1530
  key: 1,
1505
- class: b([
1531
+ class: g([
1506
1532
  "pointer-events-none absolute inset-y-0 right-0 flex items-start mt-2",
1507
1533
  e.showClear ? "pr-8" : "pr-2"
1508
1534
  ])
1509
1535
  }, [
1510
- z(l(Ve), {
1536
+ V(n(ze), {
1511
1537
  class: "h-4 w-4 text-danger",
1512
1538
  "aria-hidden": "true"
1513
1539
  })
1514
1540
  ], 2)) : I("", !0),
1515
- e.showRequired && !l(v) ? (a(), m("div", {
1541
+ e.showRequired && !n(b) ? (o(), m("div", {
1516
1542
  key: 2,
1517
- 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"]])
1543
+ class: g(["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"]])
1518
1544
  }, " * ", 2)) : I("", !0)
1519
1545
  ]),
1520
- l(p) ? (a(), m("p", {
1546
+ n(d) ? (o(), m("p", {
1521
1547
  key: 0,
1522
- id: l(p),
1523
- class: b(l(x))
1524
- }, V(l(y)), 11, hl)) : I("", !0)
1548
+ id: n(d),
1549
+ class: g(n(v))
1550
+ }, z(n(x)), 11, dl)) : I("", !0)
1525
1551
  ], 2));
1526
1552
  }
1527
- }), vl = ["for"], gl = { class: "relative" }, bl = {
1553
+ }), fl = ["for"], pl = { class: "relative" }, ml = {
1528
1554
  key: 0,
1529
1555
  class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
1530
- }, yl = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], xl = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), kl = ["id"], wl = /* @__PURE__ */ _({
1556
+ }, hl = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], vl = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), gl = ["id"], bl = /* @__PURE__ */ j({
1531
1557
  inheritAttrs: !1,
1532
1558
  __name: "TextInput",
1533
1559
  props: {
@@ -1664,30 +1690,30 @@ const dl = ["for"], fl = { class: "relative" }, pl = ["id", "name", "placeholder
1664
1690
  },
1665
1691
  emits: ["update:modelValue", "change", "input", "clear", "focus", "blur"],
1666
1692
  setup(e, { expose: t, emit: r }) {
1667
- const s = e, o = r, n = We(), d = O(null), {
1668
- coreClasses: h,
1693
+ const s = e, a = r, l = We(), h = O(null), {
1694
+ coreClasses: p,
1669
1695
  title: i,
1670
- value: p,
1671
- helpTipId: x,
1672
- helpTipClasses: y,
1673
- helpTip: v,
1674
- hideHelpTip: g,
1696
+ value: d,
1697
+ helpTipId: v,
1698
+ helpTipClasses: x,
1699
+ helpTip: b,
1700
+ hideHelpTip: y,
1675
1701
  errorMessage: u,
1676
1702
  clear: S,
1677
1703
  focus: k,
1678
1704
  labelClasses: $
1679
1705
  } = Ze({
1680
1706
  props: le(s),
1681
- emit: o,
1682
- inputEl: d
1707
+ emit: a,
1708
+ inputEl: h
1683
1709
  }), B = c(() => {
1684
- const U = ["h-5 w-5"];
1685
- return u.value ? U.push("text-danger") : U.push("text-foreground-2"), U.join(" ");
1710
+ const D = ["h-5 w-5"];
1711
+ return u.value ? D.push("text-danger") : D.push("text-foreground-2"), D.join(" ");
1686
1712
  }), T = c(
1687
1713
  () => ["email", "password"].includes(s.type) || s.customIcon
1688
1714
  ), A = c(() => {
1689
- const U = [];
1690
- return T.value ? U.push("pl-8") : U.push("pl-2"), n["input-right"] || (u.value || s.showClear) && (u.value && s.showClear ? U.push("pr-12") : U.push("pr-8")), U.join(" ");
1715
+ const D = [];
1716
+ return T.value ? D.push("pl-8") : D.push("pl-2"), l["input-right"] || (u.value || s.showClear) && (u.value && s.showClear ? D.push("pr-12") : D.push("pr-8")), D.join(" ");
1691
1717
  }), w = c(() => {
1692
1718
  switch (s.size) {
1693
1719
  case "sm":
@@ -1701,207 +1727,207 @@ const dl = ["for"], fl = { class: "relative" }, pl = ["id", "name", "placeholder
1701
1727
  return "h-8 text-sm";
1702
1728
  }
1703
1729
  });
1704
- return t({ focus: k }), (U, q) => (a(), m("div", {
1705
- class: b([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1730
+ return t({ focus: k }), (D, q) => (o(), m("div", {
1731
+ class: g([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1706
1732
  }, [
1707
1733
  f("label", {
1708
1734
  for: e.name,
1709
- class: b(l($))
1735
+ class: g(n($))
1710
1736
  }, [
1711
- f("span", null, V(l(i)), 1)
1712
- ], 10, vl),
1713
- f("div", gl, [
1714
- T.value ? (a(), m("div", bl, [
1715
- e.customIcon ? (a(), L(Q(e.customIcon), {
1737
+ f("span", null, z(n(i)), 1)
1738
+ ], 10, fl),
1739
+ f("div", pl, [
1740
+ T.value ? (o(), m("div", ml, [
1741
+ e.customIcon ? (o(), L(Q(e.customIcon), {
1716
1742
  key: 0,
1717
- class: b(B.value),
1743
+ class: g(B.value),
1718
1744
  "aria-hidden": "true"
1719
- }, null, 8, ["class"])) : e.type === "email" ? (a(), L(l(ns), {
1745
+ }, null, 8, ["class"])) : e.type === "email" ? (o(), L(n(ns), {
1720
1746
  key: 1,
1721
- class: b(B.value),
1747
+ class: g(B.value),
1722
1748
  "aria-hidden": "true"
1723
- }, null, 8, ["class"])) : e.type === "password" ? (a(), L(l(ls), {
1749
+ }, null, 8, ["class"])) : e.type === "password" ? (o(), L(n(ls), {
1724
1750
  key: 2,
1725
- class: b(B.value),
1751
+ class: g(B.value),
1726
1752
  "aria-hidden": "true"
1727
1753
  }, null, 8, ["class"])) : I("", !0)
1728
1754
  ])) : I("", !0),
1729
1755
  be(f("input", ie({
1730
1756
  id: e.name,
1731
1757
  ref_key: "inputElement",
1732
- ref: d,
1733
- "onUpdate:modelValue": q[0] || (q[0] = (E) => Be(p) ? p.value = E : null),
1758
+ ref: h,
1759
+ "onUpdate:modelValue": q[0] || (q[0] = (U) => Be(d) ? d.value = U : null),
1734
1760
  type: e.type,
1735
1761
  name: e.name,
1736
- class: [l(h), A.value, w.value, e.inputClasses || ""],
1762
+ class: [n(p), A.value, w.value, e.inputClasses || ""],
1737
1763
  placeholder: e.placeholder,
1738
1764
  disabled: e.disabled,
1739
- "aria-invalid": l(u) ? "true" : "false",
1740
- "aria-describedby": l(x),
1765
+ "aria-invalid": n(u) ? "true" : "false",
1766
+ "aria-describedby": n(v),
1741
1767
  role: "textbox"
1742
- }, U.$attrs, {
1743
- onChange: q[1] || (q[1] = (E) => U.$emit("change", { event: E, value: l(p) })),
1744
- onInput: q[2] || (q[2] = (E) => U.$emit("input", { event: E, value: l(p) })),
1745
- onFocus: q[3] || (q[3] = (E) => U.$emit("focus")),
1746
- onBlur: q[4] || (q[4] = (E) => U.$emit("blur"))
1747
- }), null, 16, yl), [
1748
- [zt, l(p)]
1768
+ }, D.$attrs, {
1769
+ onChange: q[1] || (q[1] = (U) => D.$emit("change", { event: U, value: n(d) })),
1770
+ onInput: q[2] || (q[2] = (U) => D.$emit("input", { event: U, value: n(d) })),
1771
+ onFocus: q[3] || (q[3] = (U) => D.$emit("focus")),
1772
+ onBlur: q[4] || (q[4] = (U) => D.$emit("blur"))
1773
+ }), null, 16, hl), [
1774
+ [Ot, n(d)]
1749
1775
  ]),
1750
- D(U.$slots, "input-right", {}, () => [
1751
- e.showClear ? (a(), m("a", {
1776
+ E(D.$slots, "input-right", {}, () => [
1777
+ e.showClear ? (o(), m("a", {
1752
1778
  key: 0,
1753
1779
  title: "Clear input",
1754
1780
  class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
1755
1781
  onClick: q[5] || (q[5] = //@ts-ignore
1756
- (...E) => l(S) && l(S)(...E)),
1782
+ (...U) => n(S) && n(S)(...U)),
1757
1783
  onKeydown: q[6] || (q[6] = //@ts-ignore
1758
- (...E) => l(S) && l(S)(...E))
1784
+ (...U) => n(S) && n(S)(...U))
1759
1785
  }, [
1760
- xl,
1761
- z(l(ye), {
1786
+ vl,
1787
+ V(n(xe), {
1762
1788
  class: "h-5 w-5 text-foreground",
1763
1789
  "aria-hidden": "true"
1764
1790
  })
1765
1791
  ], 32)) : I("", !0),
1766
- l(u) ? (a(), m("div", {
1792
+ n(u) ? (o(), m("div", {
1767
1793
  key: 1,
1768
- class: b([
1794
+ class: g([
1769
1795
  "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1770
1796
  e.showClear ? "pr-8" : "pr-2"
1771
1797
  ])
1772
1798
  }, [
1773
- z(l(Ve), {
1799
+ V(n(ze), {
1774
1800
  class: "h-4 w-4 text-danger",
1775
1801
  "aria-hidden": "true"
1776
1802
  })
1777
1803
  ], 2)) : I("", !0),
1778
- e.showRequired && !l(u) ? (a(), m("div", {
1804
+ e.showRequired && !n(u) ? (o(), m("div", {
1779
1805
  key: 2,
1780
- 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"]])
1806
+ class: g(["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"]])
1781
1807
  }, " * ", 2)) : I("", !0)
1782
1808
  ])
1783
1809
  ]),
1784
- l(x) && !l(g) ? (a(), m("p", {
1810
+ n(v) && !n(y) ? (o(), m("p", {
1785
1811
  key: 0,
1786
- id: l(x),
1787
- class: b(l(y))
1788
- }, V(l(v)), 11, kl)) : I("", !0)
1812
+ id: n(v),
1813
+ class: g(n(x))
1814
+ }, z(n(b)), 11, gl)) : I("", !0)
1789
1815
  ], 2));
1790
1816
  }
1791
- }), yt = /^https?:\/\//, Ne = /^[\w-_.+]+@[\w-_.+]+$/, Cl = (e) => (e || "").match(Ne) ? !0 : "Value should be a valid e-mail address", $l = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Ne)) || "Value should be one or multiple comma-delimited e-mail addresses", Il = (e) => (Se(e) && (e = e.trim()), e ? !0 : "Value is required"), Sl = (e, t) => (r, s) => r === s.form[e] ? !0 : `Value must be the same as in field '${t || e}'`, Bl = (e) => (t) => {
1817
+ }), xt = /^https?:\/\//, Ne = /^[\w-_.+]+@[\w-_.+]+$/, yl = (e) => (e || "").match(Ne) ? !0 : "Value should be a valid e-mail address", xl = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Ne)) || "Value should be one or multiple comma-delimited e-mail addresses", kl = (e) => (ye(e) && (e = e.trim()), e ? !0 : "Value is required"), wl = (e, t) => (r, s) => r === s.form[e] ? !0 : `Value must be the same as in field '${t || e}'`, Cl = (e) => (t) => {
1792
1818
  const { minLength: r, maxLength: s } = e;
1793
- return t = is(t) ? "" : t, Se(t) ? !ge(r) && t.length < r ? `Value needs to be at least ${r} characters long` : !ge(s) && t.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
1794
- }, Vl = (e) => (t) => {
1819
+ return t = is(t) ? "" : t, ye(t) ? !ge(r) && t.length < r ? `Value needs to be at least ${r} characters long` : !ge(s) && t.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
1820
+ }, $l = (e) => (t) => {
1795
1821
  const { match: r, message: s } = e;
1796
- return Se(t) ? r ? Se(r) ? t.includes(r) ? !0 : s : r.test(t) ? !0 : s : !0 : "Value should be a text string";
1797
- }, zl = (e) => yt.test(e) ? !0 : "Value is not a valid URL", Ol = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1822
+ return ye(t) ? r ? ye(r) ? t.includes(r) ? !0 : s : r.test(t) ? !0 : s : !0 : "Value should be a text string";
1823
+ }, Il = (e) => xt.test(e) ? !0 : "Value is not a valid URL", Sl = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1798
1824
  __proto__: null,
1799
1825
  VALID_EMAIL: Ne,
1800
- VALID_HTTP_URL: yt,
1801
- isEmail: Cl,
1802
- isItemSelected: Ol,
1803
- isOneOrMultipleEmails: $l,
1804
- isRequired: Il,
1805
- isSameAs: Sl,
1806
- isStringOfLength: Bl,
1807
- isUrl: zl,
1808
- stringContains: Vl
1826
+ VALID_HTTP_URL: xt,
1827
+ isEmail: yl,
1828
+ isItemSelected: Sl,
1829
+ isOneOrMultipleEmails: xl,
1830
+ isRequired: kl,
1831
+ isSameAs: wl,
1832
+ isStringOfLength: Cl,
1833
+ isUrl: Il,
1834
+ stringContains: $l
1809
1835
  }, Symbol.toStringTag, { value: "Module" }));
1810
- function xt(e) {
1836
+ function kt(e) {
1811
1837
  const {
1812
1838
  skipCalculation: t,
1813
1839
  elementToWatchForChanges: r,
1814
1840
  itemContainer: s,
1815
- trackResize: o = !1,
1816
- trackMutations: n = !0
1817
- } = e || {}, d = O(0), h = () => {
1841
+ trackResize: a = !1,
1842
+ trackMutations: l = !0
1843
+ } = e || {}, h = O(0), p = () => {
1818
1844
  const i = s.value;
1819
1845
  if (t != null && t.value || !i)
1820
1846
  return;
1821
- const p = i.children;
1822
- let x = 0, y = 0, v;
1823
- for (const g of p) {
1824
- const u = g.offsetTop;
1825
- ge(v) ? (v = u, x += 1) : u === v && (x += 1), y += 1;
1847
+ const d = i.children;
1848
+ let v = 0, x = 0, b;
1849
+ for (const y of d) {
1850
+ const u = y.offsetTop;
1851
+ ge(b) ? (b = u, v += 1) : u === b && (v += 1), x += 1;
1826
1852
  }
1827
- d.value = y - x;
1853
+ h.value = x - v;
1828
1854
  };
1829
- return o && fs(r, h), n && ps(r, h, {
1855
+ return a && fs(r, p), l && ps(r, p, {
1830
1856
  childList: !0,
1831
1857
  subtree: !0
1832
1858
  }), {
1833
- hiddenItemCount: d
1859
+ hiddenItemCount: h
1834
1860
  };
1835
1861
  }
1836
- function kt(e) {
1862
+ function wt(e) {
1837
1863
  const { props: t, emit: r, dynamicVisibility: s } = e;
1838
- let o;
1864
+ let a;
1839
1865
  if (s) {
1840
- const { elementToWatchForChanges: p, itemContainer: x } = s;
1841
- o = xt({
1866
+ const { elementToWatchForChanges: d, itemContainer: v } = s;
1867
+ a = kt({
1842
1868
  skipCalculation: c(() => {
1843
- var v;
1844
- return !((v = t.multiple) != null && v.value);
1869
+ var b;
1870
+ return !((b = t.multiple) != null && b.value);
1845
1871
  }),
1846
- elementToWatchForChanges: p,
1847
- itemContainer: x
1872
+ elementToWatchForChanges: d,
1873
+ itemContainer: v
1848
1874
  }).hiddenItemCount;
1849
1875
  } else
1850
- o = O(0);
1851
- const n = c({
1876
+ a = O(0);
1877
+ const l = c({
1852
1878
  get: () => {
1853
- var x, y;
1854
- const p = (x = t.modelValue) == null ? void 0 : x.value;
1855
- return (y = t.multiple) != null && y.value ? N(p) ? p : [] : N(p) ? void 0 : p;
1879
+ var v, x;
1880
+ const d = (v = t.modelValue) == null ? void 0 : v.value;
1881
+ return (x = t.multiple) != null && x.value ? N(d) ? d : [] : N(d) ? void 0 : d;
1856
1882
  },
1857
- set: (p) => {
1858
- var x, y, v;
1859
- if ((x = t.multiple) != null && x.value && !N(p)) {
1883
+ set: (d) => {
1884
+ var v, x, b;
1885
+ if ((v = t.multiple) != null && v.value && !N(d)) {
1860
1886
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1861
1887
  return;
1862
- } else if (!((y = t.multiple) != null && y.value) && N(p)) {
1888
+ } else if (!((x = t.multiple) != null && x.value) && N(d)) {
1863
1889
  console.warn("Attempting to set array value in selector w/ multiple=false");
1864
1890
  return;
1865
1891
  }
1866
- r("update:modelValue", (v = t.multiple) != null && v.value ? p || [] : p);
1892
+ r("update:modelValue", (b = t.multiple) != null && b.value ? d || [] : d);
1867
1893
  }
1868
- }), d = (p) => N(p);
1894
+ }), h = (d) => N(d);
1869
1895
  return {
1870
- selectedValue: n,
1871
- hiddenSelectedItemCount: o,
1872
- isArrayValue: d,
1873
- isMultiItemArrayValue: (p) => N(p) && p.length > 1,
1874
- firstItem: (p) => d(p) ? p[0] : p
1896
+ selectedValue: l,
1897
+ hiddenSelectedItemCount: a,
1898
+ isArrayValue: h,
1899
+ isMultiItemArrayValue: (d) => N(d) && d.length > 1,
1900
+ firstItem: (d) => h(d) ? d[0] : d
1875
1901
  };
1876
1902
  }
1877
- const Ll = (e) => (Ot("data-v-89e77cae"), e = e(), Lt(), e), Ml = /* @__PURE__ */ Ll(() => /* @__PURE__ */ f("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), Al = [
1878
- Ml
1879
- ], Pl = /* @__PURE__ */ _({
1903
+ const Bl = (e) => (Lt("data-v-89e77cae"), e = e(), Mt(), e), zl = /* @__PURE__ */ Bl(() => /* @__PURE__ */ f("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), Vl = [
1904
+ zl
1905
+ ], Ol = /* @__PURE__ */ j({
1880
1906
  __name: "Bar",
1881
1907
  props: {
1882
1908
  loading: { type: Boolean }
1883
1909
  },
1884
1910
  setup(e) {
1885
- return (t, r) => (a(), m("div", {
1886
- class: b([
1911
+ return (t, r) => (o(), m("div", {
1912
+ class: g([
1887
1913
  "relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
1888
1914
  e.loading ? "opacity-100" : "opacity-0"
1889
1915
  ])
1890
- }, Al, 2));
1916
+ }, Vl, 2));
1891
1917
  }
1892
1918
  });
1893
- const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { class: "flex items-center justify-between w-full" }, jl = { class: "block truncate grow text-left text-xs sm:text-sm" }, Tl = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, Fl = {
1919
+ const Qe = /* @__PURE__ */ Oe(Ol, [["__scopeId", "data-v-89e77cae"]]), Ll = { class: "flex items-center justify-between w-full" }, Ml = { class: "block truncate grow text-left text-xs sm:text-sm" }, Al = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, Pl = {
1894
1920
  key: 1,
1895
1921
  class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
1896
- }, Rl = ["disabled"], Dl = {
1922
+ }, jl = ["disabled"], _l = {
1897
1923
  key: 0,
1898
1924
  class: "flex flex-col mx-1 mb-1"
1899
- }, El = /* @__PURE__ */ f("span", { class: "sr-only label text-foreground" }, "Search", -1), Ul = { class: "relative" }, ql = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Wl = ["placeholder"], Hl = {
1925
+ }, Tl = /* @__PURE__ */ f("span", { class: "sr-only label text-foreground" }, "Search", -1), Fl = { class: "relative" }, Rl = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Dl = ["placeholder"], El = {
1900
1926
  key: 0,
1901
1927
  class: "px-1"
1902
- }, Kl = { key: 1 }, Gl = /* @__PURE__ */ f("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Xl = {
1903
- class: /* @__PURE__ */ b(["block truncate"])
1904
- }, Zl = ["id"], wt = /* @__PURE__ */ _({
1928
+ }, Ul = { key: 1 }, ql = /* @__PURE__ */ f("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Wl = {
1929
+ class: /* @__PURE__ */ g(["block truncate"])
1930
+ }, Hl = ["id"], Ct = /* @__PURE__ */ j({
1905
1931
  __name: "Base",
1906
1932
  props: {
1907
1933
  multiple: {
@@ -2071,41 +2097,41 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2071
2097
  },
2072
2098
  emits: ["update:modelValue"],
2073
2099
  setup(e, { expose: t, emit: r }) {
2074
- const s = (C) => je(C), o = r, n = e, { value: d, errorMessage: h } = Ie(n.name, n.rules, {
2075
- validateOnMount: n.validateOnMount,
2076
- validateOnValueUpdate: n.validateOnValueUpdate,
2077
- initialValue: n.modelValue
2078
- }), i = ms(), p = O(null), x = O(null), y = O(null), v = O(""), g = O([]), u = O(!1), S = O(1), k = O(ze()), $ = hs(
2100
+ const s = (C) => _e(C), a = r, l = e, { value: h, errorMessage: p } = Se(l.name, l.rules, {
2101
+ validateOnMount: l.validateOnMount,
2102
+ validateOnValueUpdate: l.validateOnValueUpdate,
2103
+ initialValue: l.modelValue
2104
+ }), i = ms(), d = O(null), v = O(null), x = O(null), b = O(""), y = O([]), u = O(!1), S = O(1), k = O(Ve()), $ = hs(
2079
2105
  c(() => {
2080
2106
  var C;
2081
- return (C = y.value) == null ? void 0 : C.el;
2107
+ return (C = x.value) == null ? void 0 : C.el;
2082
2108
  }),
2083
2109
  { windowResize: !0, windowScroll: !0, immediate: !0 }
2084
2110
  );
2085
2111
  vs(
2086
2112
  c(() => {
2087
2113
  var C;
2088
- return (C = x.value) == null ? void 0 : C.el;
2114
+ return (C = v.value) == null ? void 0 : C.el;
2089
2115
  }),
2090
2116
  ([{ isIntersecting: C }]) => {
2091
- C && n.mountMenuOnBody && $.update();
2117
+ C && l.mountMenuOnBody && $.update();
2092
2118
  }
2093
2119
  );
2094
- const B = c(() => l(n.label) || l(n.name)), T = c(() => {
2095
- const C = h.value;
2096
- return !C || !l(n.useLabelInErrors) ? C : C.replace("Value", B.value);
2097
- }), A = c(() => T.value || l(n.help)), w = c(() => !!A.value), U = c(
2098
- () => w.value ? `${l(n.name)}-${k.value}` : void 0
2120
+ const B = c(() => n(l.label) || n(l.name)), T = c(() => {
2121
+ const C = p.value;
2122
+ return !C || !n(l.useLabelInErrors) ? C : C.replace("Value", B.value);
2123
+ }), A = c(() => T.value || n(l.help)), w = c(() => !!A.value), D = c(
2124
+ () => w.value ? `${n(l.name)}-${k.value}` : void 0
2099
2125
  ), q = c(
2100
- () => h.value ? "text-danger" : "text-foreground-2"
2101
- ), E = c(
2102
- () => n.buttonStyle !== "simple" && n.clearable && !n.disabled
2126
+ () => p.value ? "text-danger" : "text-foreground-2"
2127
+ ), U = c(
2128
+ () => l.buttonStyle !== "simple" && l.clearable && !l.disabled
2103
2129
  ), Le = c(() => {
2104
2130
  const C = ["relative flex group"];
2105
- return h.value ? (C.push("hover:shadow rounded-md"), C.push("text-danger-darker focus:border-danger focus:ring-danger"), n.buttonStyle !== "simple" && C.push("outline outline-2 outline-danger")) : n.buttonStyle !== "simple" && (C.push("hover:shadow rounded-md"), C.push("outline outline-2 outline-primary-muted")), n.fixedHeight && C.push("h-8"), C.join(" ");
2131
+ return p.value ? (C.push("hover:shadow rounded-md"), C.push("text-danger-darker focus:border-danger focus:ring-danger"), l.buttonStyle !== "simple" && C.push("outline outline-2 outline-danger")) : l.buttonStyle !== "simple" && (C.push("hover:shadow rounded-md"), C.push("outline outline-2 outline-primary-muted")), l.fixedHeight && C.push("h-8"), C.join(" ");
2106
2132
  }), re = c(() => {
2107
2133
  const C = [];
2108
- return n.buttonStyle !== "simple" && C.push(
2134
+ return l.buttonStyle !== "simple" && C.push(
2109
2135
  ce.value ? "bg-foundation-disabled text-foreground-disabled" : ""
2110
2136
  ), ce.value && C.push("cursor-not-allowed"), C.join(" ");
2111
2137
  }), Me = c(() => {
@@ -2118,7 +2144,7 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2118
2144
  ];
2119
2145
  return ce.value || (C.push(
2120
2146
  "hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
2121
- ), n.buttonStyle === "tinted" ? C.push("bg-outline-3") : C.push("bg-primary-muted")), C.join(" ");
2147
+ ), l.buttonStyle === "tinted" ? C.push("bg-outline-3") : C.push("bg-primary-muted")), C.join(" ");
2122
2148
  }), Ae = c(() => {
2123
2149
  const C = [
2124
2150
  "relative z-[2]",
@@ -2126,83 +2152,83 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2126
2152
  "flex items-center",
2127
2153
  re.value
2128
2154
  ];
2129
- return n.buttonStyle !== "simple" && (C.push("py-2 px-3"), ce.value || (n.buttonStyle === "tinted" ? C.push("bg-foundation-page text-foreground") : C.push("bg-foundation text-foreground"))), E.value && he.value && C.push("rounded-r-none"), C.join(" ");
2155
+ return l.buttonStyle !== "simple" && (C.push("py-2 px-3"), ce.value || (l.buttonStyle === "tinted" ? C.push("bg-foundation-page text-foreground") : C.push("bg-foundation text-foreground"))), U.value && he.value && C.push("rounded-r-none"), C.join(" ");
2130
2156
  }), me = c(
2131
- () => !!(n.search && (n.filterPredicate || n.getSearchResults))
2132
- ), Y = c(() => me.value && n.getSearchResults), ce = c(
2133
- () => n.disabled || !n.items.length && !Y.value
2157
+ () => !!(l.search && (l.filterPredicate || l.getSearchResults))
2158
+ ), Y = c(() => me.value && l.getSearchResults), ce = c(
2159
+ () => l.disabled || !l.items.length && !Y.value
2134
2160
  ), X = c({
2135
2161
  get: () => {
2136
- const C = d.value;
2137
- return n.multiple ? N(C) ? C : [] : N(C) ? void 0 : C;
2162
+ const C = h.value;
2163
+ return l.multiple ? N(C) ? C : [] : N(C) ? void 0 : C;
2138
2164
  },
2139
2165
  set: (C) => {
2140
- if (n.multiple && !N(C)) {
2166
+ if (l.multiple && !N(C)) {
2141
2167
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
2142
2168
  return;
2143
- } else if (!n.multiple && N(C)) {
2169
+ } else if (!l.multiple && N(C)) {
2144
2170
  console.warn("Attempting to set array value in selector w/ multiple=false");
2145
2171
  return;
2146
2172
  }
2147
2173
  let H;
2148
- if (n.multiple)
2174
+ if (l.multiple)
2149
2175
  H = C || [];
2150
2176
  else {
2151
- const W = d.value;
2152
- H = n.allowUnset && W && C && j(W) === j(C) ? void 0 : C;
2177
+ const W = h.value;
2178
+ H = l.allowUnset && W && C && _(W) === _(C) ? void 0 : C;
2153
2179
  }
2154
- n.fullyControlValue ? o("update:modelValue", H) : d.value = H, S.value += 1;
2180
+ l.fullyControlValue ? a("update:modelValue", H) : h.value = H, S.value += 1;
2155
2181
  }
2156
- }), he = c(() => n.multiple && N(X.value) ? X.value.length !== 0 : !!X.value), Pe = () => {
2157
- n.multiple ? X.value = [] : X.value = void 0;
2158
- }, _e = c(() => {
2159
- const C = v.value;
2160
- return !me.value || !(C != null && C.length) ? g.value : n.filterPredicate ? g.value.filter(
2182
+ }), he = c(() => l.multiple && N(X.value) ? X.value.length !== 0 : !!X.value), Pe = () => {
2183
+ l.multiple ? X.value = [] : X.value = void 0;
2184
+ }, je = c(() => {
2185
+ const C = b.value;
2186
+ return !me.value || !(C != null && C.length) ? y.value : l.filterPredicate ? y.value.filter(
2161
2187
  (H) => {
2162
2188
  var W;
2163
- return ((W = n.filterPredicate) == null ? void 0 : W.call(n, H, C)) || !1;
2189
+ return ((W = l.filterPredicate) == null ? void 0 : W.call(l, H, C)) || !1;
2164
2190
  }
2165
- ) : g.value;
2166
- }), xe = c(() => {
2191
+ ) : y.value;
2192
+ }), ke = c(() => {
2167
2193
  const C = [
2168
2194
  "rounded-md bg-foundation-2 py-1 label label--light outline outline-2 outline-primary-muted focus:outline-none shadow mt-1 "
2169
2195
  ];
2170
- return n.mountMenuOnBody ? C.push("fixed z-50") : C.push("absolute top-[100%] w-full z-10"), C.join(" ");
2196
+ return l.mountMenuOnBody ? C.push("fixed z-50") : C.push("absolute top-[100%] w-full z-10"), C.join(" ");
2171
2197
  }), P = c(() => {
2172
2198
  const C = {};
2173
- if (n.mountMenuOnBody) {
2199
+ if (l.mountMenuOnBody) {
2174
2200
  const H = $.top.value, W = $.left.value, J = $.width.value, te = $.height.value;
2175
2201
  C.top = `${H + te}px`, C.left = `${W}px`, C.width = `${J}px`;
2176
2202
  }
2177
2203
  return C;
2178
- }), F = (C) => JSON.stringify(C), j = (C) => s(C) ? C[n.by || "id"] : C, Z = async () => {
2179
- if (!(!Y.value || !n.getSearchResults)) {
2204
+ }), F = (C) => JSON.stringify(C), _ = (C) => s(C) ? C[l.by || "id"] : C, Z = async () => {
2205
+ if (!(!Y.value || !l.getSearchResults)) {
2180
2206
  u.value = !0;
2181
2207
  try {
2182
- g.value = await n.getSearchResults(v.value);
2208
+ y.value = await l.getSearchResults(b.value);
2183
2209
  } finally {
2184
2210
  u.value = !1;
2185
2211
  }
2186
2212
  }
2187
- }, ee = He(Z, 1e3), ke = (C) => {
2188
- const { active: H, disabled: W } = C || {}, { hideCheckmarks: J } = n, te = [
2213
+ }, ee = He(Z, 1e3), we = (C) => {
2214
+ const { active: H, disabled: W } = C || {}, { hideCheckmarks: J } = l, te = [
2189
2215
  "relative transition cursor-pointer select-none py-1.5 pl-3",
2190
2216
  J ? "" : "pr-9"
2191
2217
  ];
2192
2218
  return W ? te.push("opacity-50 cursor-not-allowed") : te.push(H ? "text-primary" : "text-foreground"), te.join(" ");
2193
2219
  };
2194
2220
  return fe(
2195
- () => n.items,
2221
+ () => l.items,
2196
2222
  (C) => {
2197
- g.value = C.slice();
2223
+ y.value = C.slice();
2198
2224
  },
2199
2225
  { immediate: !0 }
2200
- ), fe(v, () => {
2226
+ ), fe(b, () => {
2201
2227
  Y.value && ee();
2202
2228
  }), ae(() => {
2203
- Y.value && !n.items.length && Z();
2204
- }), t({ triggerSearch: Z }), (C, H) => (a(), m("div", null, [
2205
- (a(), L(l(ws), {
2229
+ Y.value && !l.items.length && Z();
2230
+ }), t({ triggerSearch: Z }), (C, H) => (o(), m("div", null, [
2231
+ (o(), L(n(ws), {
2206
2232
  key: S.value,
2207
2233
  modelValue: X.value,
2208
2234
  "onUpdate:modelValue": H[4] || (H[4] = (W) => X.value = W),
@@ -2213,45 +2239,45 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2213
2239
  as: "div"
2214
2240
  }, {
2215
2241
  default: M(() => [
2216
- z(l(Cs), {
2217
- class: b(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
2242
+ V(n(Cs), {
2243
+ class: g(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
2218
2244
  }, {
2219
2245
  default: M(() => [
2220
- R(V(e.label), 1)
2246
+ R(z(e.label), 1)
2221
2247
  ]),
2222
2248
  _: 1
2223
2249
  }, 8, ["class"]),
2224
2250
  f("div", {
2225
- class: b(Le.value)
2251
+ class: g(Le.value)
2226
2252
  }, [
2227
- z(l($s), {
2253
+ V(n($s), {
2228
2254
  ref_key: "listboxButton",
2229
- ref: y,
2230
- class: b(Ae.value)
2255
+ ref: x,
2256
+ class: g(Ae.value)
2231
2257
  }, {
2232
2258
  default: M(({ open: W }) => [
2233
- f("div", _l, [
2234
- f("div", jl, [
2235
- !X.value || l(N)(X.value) && !X.value.length ? D(C.$slots, "nothing-selected", { key: 0 }, () => [
2236
- R(V(e.placeholder ? e.placeholder : e.label), 1)
2237
- ]) : D(C.$slots, "something-selected", {
2259
+ f("div", Ll, [
2260
+ f("div", Ml, [
2261
+ !X.value || n(N)(X.value) && !X.value.length ? E(C.$slots, "nothing-selected", { key: 0 }, () => [
2262
+ R(z(e.placeholder ? e.placeholder : e.label), 1)
2263
+ ]) : E(C.$slots, "something-selected", {
2238
2264
  key: 1,
2239
2265
  value: X.value
2240
2266
  }, () => [
2241
- R(V(F(X.value)), 1)
2267
+ R(z(F(X.value)), 1)
2242
2268
  ])
2243
2269
  ]),
2244
- f("div", Tl, [
2245
- T.value ? (a(), L(l(Et), {
2270
+ f("div", Al, [
2271
+ T.value ? (o(), L(n(Et), {
2246
2272
  key: 0,
2247
2273
  class: "h-4 w-4 text-danger",
2248
2274
  "aria-hidden": "true"
2249
- })) : e.showRequired ? (a(), m("div", Fl, " * ")) : I("", !0),
2250
- W ? (a(), L(l(dt), {
2275
+ })) : e.showRequired ? (o(), m("div", Pl, " * ")) : I("", !0),
2276
+ W ? (o(), L(n(ft), {
2251
2277
  key: 2,
2252
2278
  class: "h-4 w-4 text-foreground",
2253
2279
  "aria-hidden": "true"
2254
- })) : (a(), L(l(Ut), {
2280
+ })) : (o(), L(n(Ut), {
2255
2281
  key: 3,
2256
2282
  class: "h-4 w-4 text-foreground",
2257
2283
  "aria-hidden": "true"
@@ -2261,72 +2287,72 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2261
2287
  ]),
2262
2288
  _: 3
2263
2289
  }, 8, ["class"]),
2264
- E.value ? be((a(), m("button", {
2290
+ U.value ? be((o(), m("button", {
2265
2291
  key: 0,
2266
- class: b(Me.value),
2292
+ class: g(Me.value),
2267
2293
  disabled: e.disabled,
2268
2294
  onClick: H[0] || (H[0] = (W) => Pe())
2269
2295
  }, [
2270
- z(l(Ke), { class: "w-3 h-3" })
2271
- ], 10, Rl)), [
2272
- [l(vt), "Clear"]
2296
+ V(n(Ke), { class: "w-3 h-3" })
2297
+ ], 10, jl)), [
2298
+ [n(gt), "Clear"]
2273
2299
  ]) : I("", !0),
2274
- l(i) ? (a(), L(Ee, {
2300
+ n(i) ? (o(), L(Ee, {
2275
2301
  key: 1,
2276
2302
  "leave-active-class": "transition ease-in duration-100",
2277
2303
  "leave-from-class": "opacity-100",
2278
2304
  "leave-to-class": "opacity-0"
2279
2305
  }, {
2280
2306
  default: M(() => [
2281
- (a(), L(Mt, {
2307
+ (o(), L(At, {
2282
2308
  to: "body",
2283
2309
  disabled: !e.mountMenuOnBody
2284
2310
  }, [
2285
- z(l(Is), {
2311
+ V(n(Is), {
2286
2312
  ref_key: "menuEl",
2287
- ref: x,
2288
- class: b(xe.value),
2313
+ ref: v,
2314
+ class: g(ke.value),
2289
2315
  style: ne(P.value),
2290
2316
  onFocus: H[3] || (H[3] = (W) => {
2291
2317
  var J;
2292
- return (J = p.value) == null ? void 0 : J.focus();
2318
+ return (J = d.value) == null ? void 0 : J.focus();
2293
2319
  })
2294
2320
  }, {
2295
2321
  default: M(() => [
2296
- me.value ? (a(), m("label", Dl, [
2297
- El,
2298
- f("div", Ul, [
2299
- f("div", ql, [
2300
- z(l(qt), { class: "h-5 w-5 text-foreground" })
2322
+ me.value ? (o(), m("label", _l, [
2323
+ Tl,
2324
+ f("div", Fl, [
2325
+ f("div", Rl, [
2326
+ V(n(qt), { class: "h-5 w-5 text-foreground" })
2301
2327
  ]),
2302
2328
  be(f("input", {
2303
2329
  ref_key: "searchInput",
2304
- ref: p,
2305
- "onUpdate:modelValue": H[1] || (H[1] = (W) => v.value = W),
2330
+ ref: d,
2331
+ "onUpdate:modelValue": H[1] || (H[1] = (W) => b.value = W),
2306
2332
  type: "text",
2307
2333
  class: "pl-9 w-full border-0 bg-foundation-page rounded placeholder:font-normal normal placeholder:text-foreground-2 focus:outline-none focus:ring-1 focus:border-outline-1 focus:ring-outline-1",
2308
2334
  placeholder: e.searchPlaceholder,
2309
2335
  onKeydown: H[2] || (H[2] = pe(() => {
2310
2336
  }, ["stop"]))
2311
- }, null, 40, Wl), [
2312
- [qe, v.value]
2337
+ }, null, 40, Dl), [
2338
+ [qe, b.value]
2313
2339
  ])
2314
2340
  ])
2315
2341
  ])) : I("", !0),
2316
2342
  f("div", {
2317
- class: b(["overflow-auto simple-scrollbar", [me.value ? "max-h-52" : "max-h-40"]])
2343
+ class: g(["overflow-auto simple-scrollbar", [me.value ? "max-h-52" : "max-h-40"]])
2318
2344
  }, [
2319
- Y.value && u.value ? (a(), m("div", Hl, [
2320
- z(Qe, { loading: !0 })
2321
- ])) : Y.value && !g.value.length ? (a(), m("div", Kl, [
2322
- D(C.$slots, "nothing-found", {}, () => [
2323
- Gl
2345
+ Y.value && u.value ? (o(), m("div", El, [
2346
+ V(Qe, { loading: !0 })
2347
+ ])) : Y.value && !y.value.length ? (o(), m("div", Ul, [
2348
+ E(C.$slots, "nothing-found", {}, () => [
2349
+ ql
2324
2350
  ])
2325
2351
  ])) : I("", !0),
2326
- !Y.value || !u.value ? (a(!0), m(K, { key: 2 }, G(_e.value, (W) => {
2352
+ !Y.value || !u.value ? (o(!0), m(K, { key: 2 }, G(je.value, (W) => {
2327
2353
  var J;
2328
- return a(), L(l(Ss), {
2329
- key: j(W),
2354
+ return o(), L(n(Ss), {
2355
+ key: _(W),
2330
2356
  value: W,
2331
2357
  disabled: ((J = e.disabledItemPredicate) == null ? void 0 : J.call(e, W)) || !1
2332
2358
  }, {
@@ -2337,31 +2363,31 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2337
2363
  var et, tt;
2338
2364
  return [
2339
2365
  f("li", {
2340
- class: b(
2341
- ke({
2366
+ class: g(
2367
+ we({
2342
2368
  active: te,
2343
2369
  disabled: ((et = e.disabledItemPredicate) == null ? void 0 : et.call(e, W)) || !1
2344
2370
  })
2345
2371
  )
2346
2372
  }, [
2347
- f("span", Xl, [
2348
- D(C.$slots, "option", {
2373
+ f("span", Wl, [
2374
+ E(C.$slots, "option", {
2349
2375
  item: W,
2350
2376
  active: te,
2351
2377
  selected: Ye,
2352
2378
  disabled: ((tt = e.disabledItemPredicate) == null ? void 0 : tt.call(e, W)) || !1
2353
2379
  }, () => [
2354
- R(V(F(W)), 1)
2380
+ R(z(F(W)), 1)
2355
2381
  ])
2356
2382
  ]),
2357
- !e.hideCheckmarks && Ye ? (a(), m("span", {
2383
+ !e.hideCheckmarks && Ye ? (o(), m("span", {
2358
2384
  key: 0,
2359
- class: b([
2385
+ class: g([
2360
2386
  te ? "text-primary" : "text-foreground",
2361
2387
  "absolute inset-y-0 right-0 flex items-center pr-4"
2362
2388
  ])
2363
2389
  }, [
2364
- z(l(ft), {
2390
+ V(n(pt), {
2365
2391
  class: "h-5 w-5",
2366
2392
  "aria-hidden": "true"
2367
2393
  })
@@ -2384,37 +2410,37 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2384
2410
  ]),
2385
2411
  _: 3
2386
2412
  }, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
2387
- U.value ? (a(), m("p", {
2413
+ D.value ? (o(), m("p", {
2388
2414
  key: 0,
2389
- id: U.value,
2390
- class: b(["mt-2 text-xs sm:text-sm", q.value])
2391
- }, V(A.value), 11, Zl)) : I("", !0)
2415
+ id: D.value,
2416
+ class: g(["mt-2 text-xs sm:text-sm", q.value])
2417
+ }, z(A.value), 11, Hl)) : I("", !0)
2392
2418
  ]));
2393
2419
  }
2394
- }), Nl = /* @__PURE__ */ _({
2420
+ }), Kl = /* @__PURE__ */ j({
2395
2421
  __name: "SourceAppBadge",
2396
2422
  props: {
2397
2423
  sourceApp: null
2398
2424
  },
2399
2425
  setup(e) {
2400
- return (t, r) => (a(), L(Xe, {
2426
+ return (t, r) => (o(), L(Xe, {
2401
2427
  "color-classes": "text-foreground-on-primary",
2402
2428
  rounded: "",
2403
2429
  style: ne({ backgroundColor: e.sourceApp.bgColor })
2404
2430
  }, {
2405
2431
  default: M(() => [
2406
- R(V(e.sourceApp.short), 1)
2432
+ R(z(e.sourceApp.short), 1)
2407
2433
  ]),
2408
2434
  _: 1
2409
2435
  }, 8, ["style"]));
2410
2436
  }
2411
- }), Ql = {
2437
+ }), Gl = {
2412
2438
  key: 0,
2413
2439
  class: "text-foreground-2 normal"
2414
- }, Jl = {
2440
+ }, Xl = {
2415
2441
  key: 1,
2416
2442
  class: "flex items-center"
2417
- }, Yl = { class: "truncate" }, ea = { class: "flex items-center" }, ta = { class: "truncate" }, jo = /* @__PURE__ */ _({
2443
+ }, Zl = { class: "truncate" }, Nl = { class: "flex items-center" }, Ql = { class: "truncate" }, Mo = /* @__PURE__ */ j({
2418
2444
  __name: "SourceApps",
2419
2445
  props: {
2420
2446
  /**
@@ -2480,72 +2506,72 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2480
2506
  },
2481
2507
  emits: ["update:modelValue"],
2482
2508
  setup(e, { emit: t }) {
2483
- const r = t, s = e, o = O(null), n = O(null), { selectedValue: d, hiddenSelectedItemCount: h, isMultiItemArrayValue: i, firstItem: p } = kt({
2509
+ const r = t, s = e, a = O(null), l = O(null), { selectedValue: h, hiddenSelectedItemCount: p, isMultiItemArrayValue: i, firstItem: d } = wt({
2484
2510
  props: le(s),
2485
2511
  emit: r,
2486
- dynamicVisibility: { elementToWatchForChanges: o, itemContainer: n }
2487
- }), x = (y, v) => y.name.toLocaleLowerCase().includes(v.toLocaleLowerCase());
2488
- return (y, v) => (a(), L(wt, {
2489
- modelValue: l(d),
2490
- "onUpdate:modelValue": v[0] || (v[0] = (g) => Be(d) ? d.value = g : null),
2512
+ dynamicVisibility: { elementToWatchForChanges: a, itemContainer: l }
2513
+ }), v = (x, b) => x.name.toLocaleLowerCase().includes(b.toLocaleLowerCase());
2514
+ return (x, b) => (o(), L(Ct, {
2515
+ modelValue: n(h),
2516
+ "onUpdate:modelValue": b[0] || (b[0] = (y) => Be(h) ? h.value = y : null),
2491
2517
  multiple: e.multiple,
2492
- items: e.items ?? l(us),
2518
+ items: e.items ?? n(us),
2493
2519
  search: e.search,
2494
2520
  "search-placeholder": e.searchPlaceholder,
2495
2521
  label: e.label,
2496
2522
  "show-label": e.showLabel,
2497
2523
  name: e.name || "sourceApps",
2498
- "filter-predicate": x,
2524
+ "filter-predicate": v,
2499
2525
  clearable: e.clearable,
2500
2526
  help: e.help,
2501
2527
  by: "name"
2502
2528
  }, {
2503
2529
  "nothing-selected": M(() => [
2504
- e.selectorPlaceholder ? (a(), m(K, { key: 0 }, [
2505
- R(V(e.selectorPlaceholder), 1)
2506
- ], 64)) : (a(), m(K, { key: 1 }, [
2507
- R(V(e.multiple ? "Select apps" : "Select an app"), 1)
2530
+ e.selectorPlaceholder ? (o(), m(K, { key: 0 }, [
2531
+ R(z(e.selectorPlaceholder), 1)
2532
+ ], 64)) : (o(), m(K, { key: 1 }, [
2533
+ R(z(e.multiple ? "Select apps" : "Select an app"), 1)
2508
2534
  ], 64))
2509
2535
  ]),
2510
- "something-selected": M(({ value: g }) => [
2511
- l(i)(g) ? (a(), m("div", {
2536
+ "something-selected": M(({ value: y }) => [
2537
+ n(i)(y) ? (o(), m("div", {
2512
2538
  key: 0,
2513
2539
  ref_key: "elementToWatchForChanges",
2514
- ref: o,
2540
+ ref: a,
2515
2541
  class: "flex items-center space-x-0.5 h-5"
2516
2542
  }, [
2517
2543
  f("div", {
2518
2544
  ref_key: "itemContainer",
2519
- ref: n,
2545
+ ref: l,
2520
2546
  class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
2521
2547
  }, [
2522
- (a(!0), m(K, null, G(g, (u) => (a(), L(Nl, {
2548
+ (o(!0), m(K, null, G(y, (u) => (o(), L(Kl, {
2523
2549
  key: u.name,
2524
2550
  "source-app": u
2525
2551
  }, null, 8, ["source-app"]))), 128))
2526
2552
  ], 512),
2527
- l(h) > 0 ? (a(), m("div", Ql, " +" + V(l(h)), 1)) : I("", !0)
2528
- ], 512)) : (a(), m("div", Jl, [
2553
+ n(p) > 0 ? (o(), m("div", Gl, " +" + z(n(p)), 1)) : I("", !0)
2554
+ ], 512)) : (o(), m("div", Xl, [
2529
2555
  f("div", {
2530
2556
  class: "h-2 w-2 rounded-full mr-2",
2531
- style: ne({ backgroundColor: l(p)(g).bgColor })
2557
+ style: ne({ backgroundColor: n(d)(y).bgColor })
2532
2558
  }, null, 4),
2533
- f("span", Yl, V(l(p)(g).name), 1)
2559
+ f("span", Zl, z(n(d)(y).name), 1)
2534
2560
  ]))
2535
2561
  ]),
2536
- option: M(({ item: g }) => [
2537
- f("div", ea, [
2562
+ option: M(({ item: y }) => [
2563
+ f("div", Nl, [
2538
2564
  f("div", {
2539
2565
  class: "h-2 w-2 rounded-full mr-2",
2540
- style: ne({ backgroundColor: g.bgColor })
2566
+ style: ne({ backgroundColor: y.bgColor })
2541
2567
  }, null, 4),
2542
- f("span", ta, V(g.name), 1)
2568
+ f("span", Ql, z(y.name), 1)
2543
2569
  ])
2544
2570
  ]),
2545
2571
  _: 1
2546
2572
  }, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name", "clearable", "help"]));
2547
2573
  }
2548
- }), sa = { class: "flex flex-wrap gap-1.5 text-xs" }, To = /* @__PURE__ */ _({
2574
+ }), Jl = { class: "flex flex-wrap gap-1.5 text-xs" }, Ao = /* @__PURE__ */ j({
2549
2575
  __name: "Badges",
2550
2576
  props: {
2551
2577
  items: null,
@@ -2559,15 +2585,15 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2559
2585
  },
2560
2586
  emits: ["update:modelValue"],
2561
2587
  setup(e, { emit: t }) {
2562
- const r = t, s = e, { selectedValue: o, isArrayValue: n } = kt({
2588
+ const r = t, s = e, { selectedValue: a, isArrayValue: l } = wt({
2563
2589
  props: le(s),
2564
2590
  emit: r
2565
- }), d = (h) => {
2566
- n(o.value) ? o.value = o.value.filter((i) => i.id !== h.id) : o.value = void 0;
2591
+ }), h = (p) => {
2592
+ l(a.value) ? a.value = a.value.filter((i) => i.id !== p.id) : a.value = void 0;
2567
2593
  };
2568
- return (h, i) => (a(), L(wt, {
2569
- modelValue: l(o),
2570
- "onUpdate:modelValue": i[0] || (i[0] = (p) => Be(o) ? o.value = p : null),
2594
+ return (p, i) => (o(), L(Ct, {
2595
+ modelValue: n(a),
2596
+ "onUpdate:modelValue": i[0] || (i[0] = (d) => Be(a) ? a.value = d : null),
2571
2597
  multiple: e.multiple,
2572
2598
  items: e.items,
2573
2599
  label: e.label,
@@ -2576,32 +2602,32 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2576
2602
  rules: e.rules,
2577
2603
  by: e.by
2578
2604
  }, {
2579
- "something-selected": M(({ value: p }) => [
2580
- f("ul", sa, [
2581
- (a(!0), m(K, null, G(l(n)(p) ? p : [p], (x) => (a(), m("li", {
2582
- key: x[e.by]
2605
+ "something-selected": M(({ value: d }) => [
2606
+ f("ul", Jl, [
2607
+ (o(!0), m(K, null, G(n(l)(d) ? d : [d], (v) => (o(), m("li", {
2608
+ key: v[e.by]
2583
2609
  }, [
2584
- z(Xe, {
2610
+ V(Xe, {
2585
2611
  size: "lg",
2586
2612
  "clickable-icon": !0,
2587
- "icon-left": l(Ke),
2588
- onClickIcon: pe((y) => d(x), ["stop"])
2613
+ "icon-left": n(Ke),
2614
+ onClickIcon: pe((x) => h(v), ["stop"])
2589
2615
  }, {
2590
2616
  default: M(() => [
2591
- R(V(x.text), 1)
2617
+ R(z(v.text), 1)
2592
2618
  ]),
2593
2619
  _: 2
2594
2620
  }, 1032, ["icon-left", "onClickIcon"])
2595
2621
  ]))), 128))
2596
2622
  ])
2597
2623
  ]),
2598
- option: M(({ item: p }) => [
2599
- R(V(p.text), 1)
2624
+ option: M(({ item: d }) => [
2625
+ R(z(d.text), 1)
2600
2626
  ]),
2601
2627
  _: 1
2602
2628
  }, 8, ["modelValue", "multiple", "items", "label", "name", "help", "rules", "by"]));
2603
2629
  }
2604
- }), na = { class: "flex items-center" }, la = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, Fo = /* @__PURE__ */ _({
2630
+ }), Yl = { class: "flex items-center" }, ea = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, Po = /* @__PURE__ */ j({
2605
2631
  __name: "Switch",
2606
2632
  props: {
2607
2633
  modelValue: { type: Boolean }
@@ -2609,26 +2635,26 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2609
2635
  emits: ["update:modelValue"],
2610
2636
  setup(e) {
2611
2637
  const t = it(e, "modelValue");
2612
- return (r, s) => (a(), m("div", na, [
2613
- z(l(Bs), {
2638
+ return (r, s) => (o(), m("div", Yl, [
2639
+ V(n(Bs), {
2614
2640
  modelValue: t.value,
2615
- "onUpdate:modelValue": s[0] || (s[0] = (o) => t.value = o),
2616
- class: b(["relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary", { "bg-primary": t.value, "bg-primary-muted": !t.value }])
2641
+ "onUpdate:modelValue": s[0] || (s[0] = (a) => t.value = a),
2642
+ class: g(["relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary", { "bg-primary": t.value, "bg-primary-muted": !t.value }])
2617
2643
  }, {
2618
2644
  default: M(() => [
2619
- f("div", la, [
2620
- z(l(ft), { class: "h-5 w-5 drop-shadow-md" }),
2621
- z(l(Ke), { class: "h-5 w-5 drop-shadow-md" })
2645
+ f("div", ea, [
2646
+ V(n(pt), { class: "h-5 w-5 drop-shadow-md" }),
2647
+ V(n(Ke), { class: "h-5 w-5 drop-shadow-md" })
2622
2648
  ]),
2623
2649
  f("span", {
2624
- class: b(["scale-95 pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200", { "translate-x-5": t.value, "translate-x-0": !t.value }])
2650
+ class: g(["scale-95 pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200", { "translate-x-5": t.value, "translate-x-0": !t.value }])
2625
2651
  }, null, 2)
2626
2652
  ]),
2627
2653
  _: 1
2628
2654
  }, 8, ["modelValue", "class"])
2629
2655
  ]));
2630
2656
  }
2631
- }), aa = { class: "relative group bg-foundation-page p-2 rounded-lg pr-12" }, oa = { class: "absolute inset-0 right-2 flex justify-end items-center" }, Ro = /* @__PURE__ */ _({
2657
+ }), ta = { class: "relative group bg-foundation-page p-2 rounded-lg pr-12" }, sa = { class: "absolute inset-0 right-2 flex justify-end items-center" }, jo = /* @__PURE__ */ j({
2632
2658
  __name: "ClipboardInput",
2633
2659
  props: {
2634
2660
  value: null,
@@ -2637,23 +2663,23 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2637
2663
  },
2638
2664
  emits: ["copy"],
2639
2665
  setup(e, { emit: t }) {
2640
- const r = e, s = t, { copy: o } = gs({ legacy: !0 }), n = O(!1), d = async () => {
2641
- r.value && (await o(r.value), n.value = !0, s("copy", r.value), setTimeout(() => {
2642
- n.value = !1;
2666
+ const r = e, s = t, { copy: a } = gs({ legacy: !0 }), l = O(!1), h = async () => {
2667
+ r.value && (await a(r.value), l.value = !0, s("copy", r.value), setTimeout(() => {
2668
+ l.value = !1;
2643
2669
  }, 2e3));
2644
- }, h = (i) => {
2645
- const p = i.target, x = window.getSelection();
2646
- if (x) {
2647
- const y = document.createRange();
2648
- y.selectNodeContents(p), x.removeAllRanges(), x.addRange(y);
2670
+ }, p = (i) => {
2671
+ const d = i.target, v = window.getSelection();
2672
+ if (v) {
2673
+ const x = document.createRange();
2674
+ x.selectNodeContents(d), v.removeAllRanges(), v.addRange(x);
2649
2675
  }
2650
2676
  };
2651
- return (i, p) => (a(), m("div", aa, [
2652
- e.isMultiline ? (a(), m("div", {
2677
+ return (i, d) => (o(), m("div", ta, [
2678
+ e.isMultiline ? (o(), m("div", {
2653
2679
  key: 0,
2654
2680
  class: "relative z-10 text-xs sm:text-sm text-foreground font-mono break-all p-2 pl-3 max-h-[4.8rem] simple-scrollbar overflow-y-auto",
2655
- onKeypress: p[0] || (p[0] = (x) => l(gt)(h))
2656
- }, V(e.value), 33)) : (a(), L(l(wl), {
2681
+ onKeypress: d[0] || (d[0] = (v) => n(bt)(p))
2682
+ }, z(e.value), 33)) : (o(), L(n(bl), {
2657
2683
  key: 1,
2658
2684
  color: "transparent",
2659
2685
  name: "contentInput",
@@ -2661,45 +2687,45 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
2661
2687
  "model-value": e.value,
2662
2688
  class: "relative z-10 text-sm text-foreground font-mono"
2663
2689
  }, null, 8, ["model-value"])),
2664
- f("div", oa, [
2665
- z(l(oe), {
2690
+ f("div", sa, [
2691
+ V(n(oe), {
2666
2692
  color: "invert",
2667
2693
  size: "sm",
2668
- "icon-left": n.value ? l(Qt) : l(Jt),
2694
+ "icon-left": l.value ? n(Qt) : n(Jt),
2669
2695
  "hide-text": "",
2670
- onClick: d
2696
+ onClick: h
2671
2697
  }, null, 8, ["icon-left"])
2672
2698
  ])
2673
2699
  ]));
2674
2700
  }
2675
2701
  });
2676
- var $e = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))($e || {});
2677
- const Fe = cs(), ra = {
2702
+ var Ie = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(Ie || {});
2703
+ const Fe = cs(), na = {
2678
2704
  "cmd-or-ctrl": Fe === Te.Mac ? "Cmd" : "Ctrl",
2679
2705
  "alt-or-opt": Fe === Te.Mac ? "Opt" : "Alt",
2680
2706
  shift: "Shift"
2681
2707
  };
2682
- function Do(e) {
2683
- const t = (r) => Object.values($e).includes(r);
2684
- return e.map((r) => t(r) ? ra[r] : r).join("+");
2708
+ function _o(e) {
2709
+ const t = (r) => Object.values(Ie).includes(r);
2710
+ return e.map((r) => t(r) ? na[r] : r).join("+");
2685
2711
  }
2686
- function Eo(e, ...t) {
2712
+ function To(e, ...t) {
2687
2713
  bs(
2688
2714
  t[0],
2689
2715
  (r) => {
2690
- const s = r.getModifierState("Alt"), o = Fe === Te.Mac ? r.getModifierState("Meta") : r.getModifierState("Control"), n = r.getModifierState("Shift");
2691
- for (const d of e)
2692
- switch (d) {
2693
- case $e.CtrlOrCmd:
2694
- if (!o)
2716
+ const s = r.getModifierState("Alt"), a = Fe === Te.Mac ? r.getModifierState("Meta") : r.getModifierState("Control"), l = r.getModifierState("Shift");
2717
+ for (const h of e)
2718
+ switch (h) {
2719
+ case Ie.CtrlOrCmd:
2720
+ if (!a)
2695
2721
  return;
2696
2722
  break;
2697
- case $e.AltOrOpt:
2723
+ case Ie.AltOrOpt:
2698
2724
  if (!s)
2699
2725
  return;
2700
2726
  break;
2701
- case $e.Shift:
2702
- if (!n)
2727
+ case Ie.Shift:
2728
+ if (!l)
2703
2729
  return;
2704
2730
  break;
2705
2731
  }
@@ -2708,17 +2734,17 @@ function Eo(e, ...t) {
2708
2734
  t[2]
2709
2735
  );
2710
2736
  }
2711
- function Uo(e) {
2737
+ function Fo(e) {
2712
2738
  const t = (e == null ? void 0 : e.model) || O(), r = c({
2713
2739
  get: () => !!t.value,
2714
2740
  set: (s) => t.value = s ? !0 : void 0
2715
2741
  });
2716
2742
  return { model: t, isChecked: r };
2717
2743
  }
2718
- const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity backdrop-blur-xs" }, null, -1), ua = { class: "fixed inset-0 z-10 h-[100dvh] w-screen" }, ca = { class: "flex justify-center items-center h-full w-full p-4 sm:p-0" }, da = {
2744
+ const la = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity backdrop-blur-xs" }, null, -1), aa = { class: "fixed inset-0 z-10 h-[100dvh] w-screen" }, oa = { class: "flex justify-center items-center h-full w-full p-4 sm:p-0" }, ra = {
2719
2745
  key: 0,
2720
2746
  class: "flex items-center justify-start rounded-t-lg shrink-0 min-h-[2rem] sm:min-h-[4rem] py-2 px-4 sm:px-8 truncate text-lg sm:text-2xl font-bold"
2721
- }, fa = { class: "w-full truncate pr-12" }, qo = /* @__PURE__ */ _({
2747
+ }, ia = { class: "w-full truncate pr-12" }, Ro = /* @__PURE__ */ j({
2722
2748
  __name: "Dialog",
2723
2749
  props: {
2724
2750
  open: { type: Boolean },
@@ -2731,10 +2757,10 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
2731
2757
  },
2732
2758
  emits: ["update:open", "fully-closed"],
2733
2759
  setup(e, { emit: t }) {
2734
- const r = t, s = e, o = We(), n = O(!1), d = O(!0), h = c(() => !!s.onSubmit), i = c(() => s.buttons || o.buttons), p = c(() => s.title || o.header), x = c({
2760
+ const r = t, s = e, a = We(), l = O(!1), h = O(!0), p = c(() => !!s.onSubmit), i = c(() => s.buttons || a.buttons), d = c(() => s.title || a.header), v = c({
2735
2761
  get: () => s.open,
2736
2762
  set: (S) => r("update:open", S)
2737
- }), y = c(() => {
2763
+ }), x = c(() => {
2738
2764
  switch (s.maxWidth) {
2739
2765
  case "sm":
2740
2766
  return 0;
@@ -2747,27 +2773,27 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
2747
2773
  default:
2748
2774
  return 1e4;
2749
2775
  }
2750
- }), v = c(() => {
2776
+ }), b = c(() => {
2751
2777
  const S = ["w-full", "sm:w-full sm:max-w-2xl"];
2752
- return y.value >= 1 && S.push("md:max-w-2xl"), y.value >= 2 && S.push("lg:max-w-4xl"), y.value >= 3 && S.push("xl:max-w-6xl"), y.value >= 4 && S.push("2xl:max-w-7xl"), S.join(" ");
2753
- }), g = () => {
2754
- s.preventCloseOnClickOutside || (x.value = !1);
2778
+ return x.value >= 1 && S.push("md:max-w-2xl"), x.value >= 2 && S.push("lg:max-w-4xl"), x.value >= 3 && S.push("xl:max-w-6xl"), x.value >= 4 && S.push("2xl:max-w-7xl"), S.join(" ");
2779
+ }), y = () => {
2780
+ s.preventCloseOnClickOutside || (v.value = !1);
2755
2781
  }, u = ut((S) => {
2756
2782
  const k = S.target, { scrollTop: $, offsetHeight: B, scrollHeight: T } = k;
2757
- n.value = $ > 0, d.value = $ + B >= T;
2783
+ l.value = $ > 0, h.value = $ + B >= T;
2758
2784
  }, 60);
2759
- return (S, k) => (a(), L(l(ht), {
2785
+ return (S, k) => (o(), L(n(vt), {
2760
2786
  as: "template",
2761
- show: x.value
2787
+ show: v.value
2762
2788
  }, {
2763
2789
  default: M(() => [
2764
- z(l(Vs), {
2790
+ V(n(zs), {
2765
2791
  as: "div",
2766
2792
  class: "relative z-40",
2767
- onClose: g
2793
+ onClose: y
2768
2794
  }, {
2769
2795
  default: M(() => [
2770
- z(l(at), {
2796
+ V(n(at), {
2771
2797
  as: "template",
2772
2798
  enter: "ease-out duration-300",
2773
2799
  "enter-from": "opacity-0",
@@ -2777,13 +2803,13 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
2777
2803
  "leave-to": "opacity-0"
2778
2804
  }, {
2779
2805
  default: M(() => [
2780
- ia
2806
+ la
2781
2807
  ]),
2782
2808
  _: 1
2783
2809
  }),
2784
- f("div", ua, [
2785
- f("div", ca, [
2786
- z(l(at), {
2810
+ f("div", aa, [
2811
+ f("div", oa, [
2812
+ V(n(at), {
2787
2813
  as: "template",
2788
2814
  enter: "ease-out duration-300",
2789
2815
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -2794,55 +2820,55 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
2794
2820
  onAfterLeave: k[2] || (k[2] = ($) => S.$emit("fully-closed"))
2795
2821
  }, {
2796
2822
  default: M(() => [
2797
- z(l(zs), {
2798
- class: b([
2823
+ V(n(Vs), {
2824
+ class: g([
2799
2825
  "transform rounded-lg text-foreground overflow-hidden bg-foundation text-left shadow-xl transition-all flex flex-col max-h-[90dvh]",
2800
- v.value
2826
+ b.value
2801
2827
  ]),
2802
- as: h.value ? "form" : "div",
2828
+ as: p.value ? "form" : "div",
2803
2829
  onSubmit: pe(e.onSubmit, ["prevent"])
2804
2830
  }, {
2805
2831
  default: M(() => [
2806
2832
  f("div", {
2807
- class: b(n.value && "relative z-20 shadow-lg")
2833
+ class: g(l.value && "relative z-20 shadow-lg")
2808
2834
  }, [
2809
- p.value ? (a(), m("div", da, [
2810
- f("div", fa, [
2811
- R(V(e.title) + " ", 1),
2812
- D(S.$slots, "header")
2835
+ d.value ? (o(), m("div", ra, [
2836
+ f("div", ia, [
2837
+ R(z(e.title) + " ", 1),
2838
+ E(S.$slots, "header")
2813
2839
  ])
2814
2840
  ])) : I("", !0)
2815
2841
  ], 2),
2816
- e.hideCloser ? I("", !0) : (a(), m("button", {
2842
+ e.hideCloser ? I("", !0) : (o(), m("button", {
2817
2843
  key: 0,
2818
- class: b(["absolute z-20 bg-foundation rounded-full p-1", p.value ? "top-2 right-3 sm:top-4" : "right-4 top-3"]),
2819
- onClick: k[0] || (k[0] = ($) => x.value = !1)
2844
+ class: g(["absolute z-20 bg-foundation rounded-full p-1", d.value ? "top-2 right-3 sm:top-4" : "right-4 top-3"]),
2845
+ onClick: k[0] || (k[0] = ($) => v.value = !1)
2820
2846
  }, [
2821
- z(l(Yt), { class: "h-5 sm:h-6 w-5 sm:w-6" })
2847
+ V(n(Yt), { class: "h-5 sm:h-6 w-5 sm:w-6" })
2822
2848
  ], 2)),
2823
2849
  f("div", {
2824
- class: b(["flex-1 simple-scrollbar overflow-y-auto", p.value ? "p-3 sm:py-6 sm:px-8" : "p-10"]),
2850
+ class: g(["flex-1 simple-scrollbar overflow-y-auto", d.value ? "p-3 sm:py-6 sm:px-8" : "p-10"]),
2825
2851
  onScroll: k[1] || (k[1] = //@ts-ignore
2826
- (...$) => l(u) && l(u)(...$))
2852
+ (...$) => n(u) && n(u)(...$))
2827
2853
  }, [
2828
- D(S.$slots, "default", {}, () => [
2854
+ E(S.$slots, "default", {}, () => [
2829
2855
  R("Put your content here!")
2830
2856
  ])
2831
2857
  ], 34),
2832
- i.value ? (a(), m("div", {
2858
+ i.value ? (o(), m("div", {
2833
2859
  key: 1,
2834
- class: b(["relative z-50 flex px-4 py-2 sm:py-4 sm:px-6 gap-2 shrink-0 bg-foundation", !d.value && "shadow-t"])
2860
+ class: g(["relative z-50 flex px-4 py-2 sm:py-4 sm:px-6 gap-2 shrink-0 bg-foundation", !h.value && "shadow-t"])
2835
2861
  }, [
2836
- e.buttons ? (a(!0), m(K, { key: 0 }, G(e.buttons, ($, B) => (a(), L(l(oe), ie({ key: B }, $.props, {
2862
+ e.buttons ? (o(!0), m(K, { key: 0 }, G(e.buttons, ($, B) => (o(), L(n(oe), ie({ key: B }, $.props, {
2837
2863
  disabled: $.disabled,
2838
2864
  type: $.submit && "submit",
2839
2865
  onClick: $.onClick
2840
2866
  }), {
2841
2867
  default: M(() => [
2842
- R(V($.text), 1)
2868
+ R(z($.text), 1)
2843
2869
  ]),
2844
2870
  _: 2
2845
- }, 1040, ["disabled", "type", "onClick"]))), 128)) : D(S.$slots, "buttons", { key: 1 })
2871
+ }, 1040, ["disabled", "type", "onClick"]))), 128)) : E(S.$slots, "buttons", { key: 1 })
2846
2872
  ], 2)) : I("", !0)
2847
2873
  ]),
2848
2874
  _: 3
@@ -2859,7 +2885,7 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
2859
2885
  _: 3
2860
2886
  }, 8, ["show"]));
2861
2887
  }
2862
- }), pa = { class: "h-4 sm:h-5 h-4 sm:w-5 empty:h-0 empty:w-0" }, Wo = /* @__PURE__ */ _({
2888
+ }), ua = { class: "h-4 sm:h-5 h-4 sm:w-5 empty:h-0 empty:w-0" }, Do = /* @__PURE__ */ j({
2863
2889
  __name: "DialogSection",
2864
2890
  props: {
2865
2891
  title: String,
@@ -2878,10 +2904,10 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
2878
2904
  }
2879
2905
  },
2880
2906
  setup(e) {
2881
- const t = e, r = O(null), s = O(0), o = O(!1), n = c(() => {
2907
+ const t = e, r = O(null), s = O(0), a = O(!1), l = c(() => {
2882
2908
  const i = [];
2883
- return !t.button && !t.alwaysOpen && i.push("cursor-pointer", "hover:bg-foundation"), o.value && i.push("bg-foundation"), i;
2884
- }), d = c(() => {
2909
+ return !t.button && !t.alwaysOpen && i.push("cursor-pointer", "hover:bg-foundation"), a.value && i.push("bg-foundation"), i;
2910
+ }), h = c(() => {
2885
2911
  switch (t.titleColor) {
2886
2912
  case "danger":
2887
2913
  return "text-danger";
@@ -2896,85 +2922,85 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
2896
2922
  default:
2897
2923
  return "text-foreground";
2898
2924
  }
2899
- }), h = async () => {
2925
+ }), p = async () => {
2900
2926
  var i;
2901
- o.value = !o.value, o.value && (await At(), s.value = (((i = l(r)) == null ? void 0 : i.scrollHeight) || 0) + 64);
2927
+ a.value = !a.value, a.value && (await Pt(), s.value = (((i = n(r)) == null ? void 0 : i.scrollHeight) || 0) + 64);
2902
2928
  };
2903
- return (i, p) => {
2904
- var x, y;
2905
- return a(), m("div", {
2906
- class: b(["flex flex-col border-primary-muted", {
2929
+ return (i, d) => {
2930
+ var v, x;
2931
+ return o(), m("div", {
2932
+ class: g(["flex flex-col border-primary-muted", {
2907
2933
  "border-t": e.borderT,
2908
2934
  "border-b": e.borderB,
2909
- "relative z-10": o.value
2935
+ "relative z-10": a.value
2910
2936
  }])
2911
2937
  }, [
2912
2938
  f("div", ie({
2913
- class: ["flex justify-between items-center gap-4 sm:gap-8 py-3 sm:py-4 px-2", n.value],
2939
+ class: ["flex justify-between items-center gap-4 sm:gap-8 py-3 sm:py-4 px-2", l.value],
2914
2940
  tabindex: "0"
2915
2941
  }, st(
2916
2942
  !e.button && !e.alwaysOpen ? {
2917
- click: h,
2918
- keypress: l(gt)(h)
2943
+ click: p,
2944
+ keypress: n(bt)(p)
2919
2945
  } : {},
2920
2946
  !0
2921
2947
  )), [
2922
2948
  f("div", {
2923
- class: b(["text-sm sm:text-base font-bold flex items-center gap-1 sm:gap-2 select-none", d.value])
2949
+ class: g(["text-sm sm:text-base font-bold flex items-center gap-1 sm:gap-2 select-none", h.value])
2924
2950
  }, [
2925
- f("div", pa, [
2926
- D(i.$slots, "icon")
2951
+ f("div", ua, [
2952
+ E(i.$slots, "icon")
2927
2953
  ]),
2928
- f("span", null, V(e.title), 1)
2954
+ f("span", null, z(e.title), 1)
2929
2955
  ], 2),
2930
2956
  f("div", null, [
2931
- !e.button && !e.alwaysOpen ? (a(), L(l(es), {
2957
+ !e.button && !e.alwaysOpen ? (o(), L(n(es), {
2932
2958
  key: 0,
2933
- class: b(["w-4 h-4 sm:w-5 sm:h-5 transition-all duration-400", o.value && "rotate-180"])
2959
+ class: g(["w-4 h-4 sm:w-5 sm:h-5 transition-all duration-400", a.value && "rotate-180"])
2934
2960
  }, null, 8, ["class"])) : I("", !0),
2935
- e.button ? (a(), L(l(oe), ie({
2961
+ e.button ? (o(), L(n(oe), ie({
2936
2962
  key: 1,
2937
2963
  size: "sm",
2938
2964
  to: e.button.expandContent ? void 0 : e.button.to,
2939
- color: e.button.expandContent && o.value ? "invert" : e.button.color,
2940
- "icon-right": e.button.expandContent && o.value ? void 0 : e.button.iconRight,
2941
- onClick: (x = e.button) == null ? void 0 : x.onClick
2942
- }, st((y = e.button) != null && y.expandContent ? { click: h } : {})), {
2965
+ color: e.button.expandContent && a.value ? "invert" : e.button.color,
2966
+ "icon-right": e.button.expandContent && a.value ? void 0 : e.button.iconRight,
2967
+ onClick: (v = e.button) == null ? void 0 : v.onClick
2968
+ }, st((x = e.button) != null && x.expandContent ? { click: p } : {})), {
2943
2969
  default: M(() => [
2944
- R(V(e.button.expandContent && o.value ? "Cancel" : e.button.text), 1)
2970
+ R(z(e.button.expandContent && a.value ? "Cancel" : e.button.text), 1)
2945
2971
  ]),
2946
2972
  _: 1
2947
2973
  }, 16, ["to", "color", "icon-right", "onClick"])) : I("", !0)
2948
2974
  ])
2949
2975
  ], 16),
2950
2976
  f("div", {
2951
- class: b(["transition-all duration-700 overflow-hidden", [
2952
- e.allowOverflow && o.value ? "!overflow-visible" : "",
2953
- o.value ? "mb-3 mt-1" : "",
2977
+ class: g(["transition-all duration-700 overflow-hidden", [
2978
+ e.allowOverflow && a.value ? "!overflow-visible" : "",
2979
+ a.value ? "mb-3 mt-1" : "",
2954
2980
  !e.button && !e.alwaysOpen ? "cursor-pointer hover:bg-foundation" : ""
2955
2981
  ]]),
2956
2982
  style: ne(
2957
- e.alwaysOpen ? "max-height: none;" : `max-height: ${o.value ? s.value + "px" : "0px"}`
2983
+ e.alwaysOpen ? "max-height: none;" : `max-height: ${a.value ? s.value + "px" : "0px"}`
2958
2984
  )
2959
2985
  }, [
2960
- t.lazyLoad ? (a(), m(K, { key: 0 }, [
2961
- o.value || t.alwaysOpen ? (a(), m("div", {
2986
+ t.lazyLoad ? (o(), m(K, { key: 0 }, [
2987
+ a.value || t.alwaysOpen ? (o(), m("div", {
2962
2988
  key: 0,
2963
2989
  ref_key: "content",
2964
2990
  ref: r,
2965
2991
  class: "rounded-md text-sm pb-3 px-2 mt-1"
2966
2992
  }, [
2967
- D(i.$slots, "default", {}, () => [
2993
+ E(i.$slots, "default", {}, () => [
2968
2994
  R("Panel contents")
2969
2995
  ])
2970
2996
  ], 512)) : I("", !0)
2971
- ], 64)) : (a(), m("div", {
2997
+ ], 64)) : (o(), m("div", {
2972
2998
  key: 1,
2973
2999
  ref_key: "content",
2974
3000
  ref: r,
2975
3001
  class: "rounded-md text-sm pb-3 px-2 mt-1"
2976
3002
  }, [
2977
- D(i.$slots, "default", {}, () => [
3003
+ E(i.$slots, "default", {}, () => [
2978
3004
  R("Panel contents")
2979
3005
  ])
2980
3006
  ], 512))
@@ -2982,7 +3008,7 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
2982
3008
  ], 2);
2983
3009
  };
2984
3010
  }
2985
- }), ma = { class: "inline-flex items-center space-x-2" }, ha = { class: "label-light" }, Ho = /* @__PURE__ */ _({
3011
+ }), ca = { class: "inline-flex items-center space-x-2" }, da = { class: "label-light" }, Eo = /* @__PURE__ */ j({
2986
3012
  __name: "Disclosure",
2987
3013
  props: {
2988
3014
  title: null,
@@ -2991,77 +3017,77 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
2991
3017
  },
2992
3018
  setup(e) {
2993
3019
  const t = e, r = c(() => {
2994
- const o = [
3020
+ const a = [
2995
3021
  "pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
2996
3022
  "ring-1 font-medium"
2997
3023
  ];
2998
3024
  switch (t.color) {
2999
3025
  case "warning":
3000
- o.push(
3026
+ a.push(
3001
3027
  "border-warning text-warning ring-warning-lighter hover:ring-warning"
3002
3028
  );
3003
3029
  break;
3004
3030
  case "success":
3005
- o.push(
3031
+ a.push(
3006
3032
  "border-success text-success ring-success-lighter hover:ring-success"
3007
3033
  );
3008
3034
  break;
3009
3035
  case "danger":
3010
- o.push("border-danger text-danger ring-danger-lighter hover:ring-danger");
3036
+ a.push("border-danger text-danger ring-danger-lighter hover:ring-danger");
3011
3037
  break;
3012
3038
  case "default":
3013
3039
  default:
3014
- o.push(
3040
+ a.push(
3015
3041
  "border-primary text-primary ring-primary-muted hover:ring-primary"
3016
3042
  );
3017
3043
  break;
3018
3044
  }
3019
- return o.join(" ");
3045
+ return a.join(" ");
3020
3046
  }), s = c(() => {
3021
- const o = ["p-3 border-x border-b rounded-b-md"];
3047
+ const a = ["p-3 border-x border-b rounded-b-md"];
3022
3048
  switch (t.color) {
3023
3049
  case "warning":
3024
- o.push("border-warning-lighter");
3050
+ a.push("border-warning-lighter");
3025
3051
  break;
3026
3052
  case "success":
3027
- o.push("border-success-lighter");
3053
+ a.push("border-success-lighter");
3028
3054
  break;
3029
3055
  case "danger":
3030
- o.push("border-danger-lighter");
3056
+ a.push("border-danger-lighter");
3031
3057
  break;
3032
3058
  case "default":
3033
3059
  default:
3034
- o.push("border-primary-muted");
3060
+ a.push("border-primary-muted");
3035
3061
  break;
3036
3062
  }
3037
- return o.join(" ");
3063
+ return a.join(" ");
3038
3064
  });
3039
- return (o, n) => (a(), m("div", null, [
3040
- z(l(Os), null, {
3041
- default: M(({ open: d }) => [
3042
- z(l(Ls), {
3043
- class: b(r.value)
3065
+ return (a, l) => (o(), m("div", null, [
3066
+ V(n(Os), null, {
3067
+ default: M(({ open: h }) => [
3068
+ V(n(Ls), {
3069
+ class: g(r.value)
3044
3070
  }, {
3045
3071
  default: M(() => [
3046
- f("div", ma, [
3047
- e.icon ? (a(), L(Q(e.icon), {
3072
+ f("div", ca, [
3073
+ e.icon ? (o(), L(Q(e.icon), {
3048
3074
  key: 0,
3049
3075
  class: "h-5 w-5"
3050
3076
  })) : I("", !0),
3051
- f("span", null, V(e.title), 1)
3077
+ f("span", null, z(e.title), 1)
3052
3078
  ]),
3053
- z(l(dt), {
3054
- class: b([d ? "" : "rotate-180 transform", "h-5 w-5"])
3079
+ V(n(ft), {
3080
+ class: g([h ? "" : "rotate-180 transform", "h-5 w-5"])
3055
3081
  }, null, 8, ["class"])
3056
3082
  ]),
3057
3083
  _: 2
3058
3084
  }, 1032, ["class"]),
3059
- z(l(Ms), {
3060
- class: b(s.value)
3085
+ V(n(Ms), {
3086
+ class: g(s.value)
3061
3087
  }, {
3062
3088
  default: M(() => [
3063
- f("div", ha, [
3064
- D(o.$slots, "default", {}, () => [
3089
+ f("div", da, [
3090
+ E(a.$slots, "default", {}, () => [
3065
3091
  R("Panel contents")
3066
3092
  ])
3067
3093
  ])
@@ -3075,93 +3101,93 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
3075
3101
  }
3076
3102
  });
3077
3103
  var de = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(de || {});
3078
- const va = { class: "relative flex bg-foundation rounded-md" }, ga = { class: "relative z-10 flex gap-1 items-center p-1 rounded-l" }, ba = { class: "relative z-10 flex gap-1 items-center p-1 rounded-r" }, Ko = /* @__PURE__ */ _({
3104
+ const fa = { class: "relative flex bg-foundation rounded-md" }, pa = { class: "relative z-10 flex gap-1 items-center p-1 rounded-l" }, ma = { class: "relative z-10 flex gap-1 items-center p-1 rounded-r" }, Uo = /* @__PURE__ */ j({
3079
3105
  __name: "GridListToggle",
3080
3106
  props: {
3081
3107
  modelValue: null
3082
3108
  },
3083
3109
  emits: ["click", "update:modelValue"],
3084
3110
  setup(e, { emit: t }) {
3085
- const r = t, s = e, o = c({
3111
+ const r = t, s = e, a = c({
3086
3112
  get: () => s.modelValue || de.Grid,
3087
- set: (d) => r("update:modelValue", d)
3088
- }), n = (d) => {
3089
- r("click", d);
3090
- const h = o.value === de.Grid ? de.List : de.Grid;
3091
- o.value = h;
3113
+ set: (h) => r("update:modelValue", h)
3114
+ }), l = (h) => {
3115
+ r("click", h);
3116
+ const p = a.value === de.Grid ? de.List : de.Grid;
3117
+ a.value = p;
3092
3118
  };
3093
- return (d, h) => (a(), m("button", {
3119
+ return (h, p) => (o(), m("button", {
3094
3120
  class: "max-w-max transition flex justify-center items-center gap-2 outline-none select-none h-8 text-foreground border-2 bg-foundation border-foundation-2 rounded-md hover:ring-2 active:scale-[0.97] grow",
3095
- onClick: n
3121
+ onClick: l
3096
3122
  }, [
3097
- f("div", va, [
3123
+ f("div", fa, [
3098
3124
  f("div", {
3099
- class: b(["absolute -top-[2px] -left-[2px] transition", {
3100
- "translate-x-7": o.value !== l(de).Grid
3125
+ class: g(["absolute -top-[2px] -left-[2px] transition", {
3126
+ "translate-x-7": a.value !== n(de).Grid
3101
3127
  }])
3102
3128
  }, [
3103
3129
  f("div", {
3104
- class: b([o.value !== l(de).Grid ? "rounded-r-md" : "rounded-l-md", "w-8 h-8 bg-primary-muted shadow-inner transition"])
3130
+ class: g([a.value !== n(de).Grid ? "rounded-r-md" : "rounded-l-md", "w-8 h-8 bg-primary-muted shadow-inner transition"])
3105
3131
  }, null, 2)
3106
3132
  ], 2),
3107
- f("div", ga, [
3108
- z(l(Wt), { class: "h-5 w-5" })
3133
+ f("div", pa, [
3134
+ V(n(Wt), { class: "h-5 w-5" })
3109
3135
  ]),
3110
- f("div", ba, [
3111
- z(l(Ht), { class: "h-5 w-5" })
3136
+ f("div", ma, [
3137
+ V(n(Ht), { class: "h-5 w-5" })
3112
3138
  ])
3113
3139
  ])
3114
3140
  ]));
3115
3141
  }
3116
3142
  });
3117
- var ya = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(ya || {}), Re = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(Re || {});
3118
- function xa(e, t) {
3143
+ var ha = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(ha || {}), Re = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(Re || {});
3144
+ function va(e, t) {
3119
3145
  if (!Ge)
3120
3146
  return;
3121
3147
  const {
3122
3148
  wait: r = 100,
3123
3149
  throttleOrDebounce: s = 0
3124
3150
  /* Throttle */
3125
- } = t || {}, o = r ? s === 0 ? ut(e, r) : He(e, r) : e;
3126
- ae(() => window.addEventListener("resize", o)), Ue(() => window.removeEventListener("resize", o));
3151
+ } = t || {}, a = r ? s === 0 ? ut(e, r) : He(e, r) : e;
3152
+ ae(() => window.addEventListener("resize", a)), Ue(() => window.removeEventListener("resize", a));
3127
3153
  }
3128
- function Go(e) {
3154
+ function qo(e) {
3129
3155
  ae(() => {
3130
3156
  window.addEventListener("beforeunload", e);
3131
3157
  }), Ue(() => {
3132
3158
  window.removeEventListener("beforeunload", e);
3133
3159
  });
3134
3160
  }
3135
- function ka(e) {
3161
+ function ga(e) {
3136
3162
  const { el: t, defaultDirection: r } = e, s = O(
3137
3163
  ge(r) ? 1 : r
3138
3164
  /* Right */
3139
- ), o = c(() => {
3140
- const d = l(e.stopUpdatesBelowWidth);
3141
- if (!ge(d))
3142
- return d;
3143
- const h = l(t);
3144
- return h != null && h.offsetWidth ? h.offsetWidth * 2 : void 0;
3145
- }), n = () => {
3165
+ ), a = c(() => {
3166
+ const h = n(e.stopUpdatesBelowWidth);
3167
+ if (!ge(h))
3168
+ return h;
3169
+ const p = n(t);
3170
+ return p != null && p.offsetWidth ? p.offsetWidth * 2 : void 0;
3171
+ }), l = () => {
3146
3172
  if (!Ge)
3147
3173
  return;
3148
- const d = l(t);
3149
- if (!d)
3174
+ const h = n(t);
3175
+ if (!h)
3150
3176
  return;
3151
- const h = d.getBoundingClientRect(), i = h.x + h.width > window.innerWidth, p = h.x < 0;
3152
- i && p || !ge(o.value) && window.innerWidth < o.value || (i ? s.value = 0 : p && (s.value = 1));
3177
+ const p = h.getBoundingClientRect(), i = p.x + p.width > window.innerWidth, d = p.x < 0;
3178
+ i && d || !ge(a.value) && window.innerWidth < a.value || (i ? s.value = 0 : d && (s.value = 1));
3153
3179
  };
3154
- return xa(() => n()), fe(
3155
- () => l(t),
3156
- (d) => {
3157
- d && n();
3180
+ return va(() => l()), fe(
3181
+ () => n(t),
3182
+ (h) => {
3183
+ h && l();
3158
3184
  }
3159
3185
  ), {
3160
3186
  direction: c(() => s.value),
3161
- recalculateDirection: n
3187
+ recalculateDirection: l
3162
3188
  };
3163
3189
  }
3164
- const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3190
+ const ba = ["disabled", "onClick"], Wo = /* @__PURE__ */ j({
3165
3191
  __name: "Menu",
3166
3192
  props: {
3167
3193
  open: { type: Boolean },
@@ -3169,57 +3195,57 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3169
3195
  },
3170
3196
  emits: ["update:open", "chosen"],
3171
3197
  setup(e, { emit: t }) {
3172
- const r = t, s = e, o = O(null), { direction: n } = ka({
3198
+ const r = t, s = e, a = O(null), { direction: l } = ga({
3173
3199
  el: c(() => {
3174
- var g;
3175
- return ((g = o.value) == null ? void 0 : g.el) || null;
3200
+ var y;
3201
+ return ((y = a.value) == null ? void 0 : y.el) || null;
3176
3202
  }),
3177
3203
  defaultDirection: Re.Left,
3178
3204
  stopUpdatesBelowWidth: 300
3179
- }), d = O(null), h = O(!1), i = c({
3205
+ }), h = O(null), p = O(!1), i = c({
3180
3206
  get: () => s.open || !1,
3181
- set: (g) => r("update:open", g)
3182
- }), p = (g) => {
3183
- const { active: u, disabled: S, color: k } = g, $ = [
3207
+ set: (y) => r("update:open", y)
3208
+ }), d = (y) => {
3209
+ const { active: u, disabled: S, color: k } = y, $ = [
3184
3210
  "group flex gap-3 w-full items-center rounded-md px-2 py-1.5 text-sm"
3185
3211
  ];
3186
3212
  return u && !k ? $.push("bg-foundation-focus text-foreground") : S ? $.push("text-foreground-disabled") : k === "danger" && u ? $.push("text-foreground-on-primary bg-danger") : k === "danger" && !u ? $.push("text-danger") : k === "info" && u ? $.push("text-foreground-on-primary bg-info") : k === "info" && !u ? $.push("text-info") : $.push("text-foreground"), $.join(" ");
3187
- }, x = (g, u) => {
3188
- r("chosen", { item: g, event: u });
3189
- }, y = () => {
3190
- var g;
3191
- return (g = d.value) == null ? void 0 : g.el.click();
3192
- }, v = (g) => {
3193
- const u = !!g;
3194
- return h.value = u, u;
3213
+ }, v = (y, u) => {
3214
+ r("chosen", { item: y, event: u });
3215
+ }, x = () => {
3216
+ var y;
3217
+ return (y = h.value) == null ? void 0 : y.el.click();
3218
+ }, b = (y) => {
3219
+ const u = !!y;
3220
+ return p.value = u, u;
3195
3221
  };
3196
- return fe(h, (g, u) => {
3197
- g !== u && (i.value = g);
3198
- }), fe(i, (g) => {
3199
- (g && !h.value || !g && h.value) && y();
3200
- }), (g, u) => (a(), L(l(As), {
3222
+ return fe(p, (y, u) => {
3223
+ y !== u && (i.value = y);
3224
+ }), fe(i, (y) => {
3225
+ (y && !p.value || !y && p.value) && x();
3226
+ }), (y, u) => (o(), L(n(As), {
3201
3227
  as: "div",
3202
3228
  class: "relative inline-block"
3203
3229
  }, {
3204
3230
  default: M(({ open: S }) => [
3205
3231
  f("div", null, [
3206
- z(l(Ps), {
3232
+ V(n(Ps), {
3207
3233
  ref_key: "menuButton",
3208
- ref: d,
3234
+ ref: h,
3209
3235
  class: "hidden",
3210
3236
  onClick: u[0] || (u[0] = pe(() => {
3211
3237
  }, ["stop", "prevent"]))
3212
3238
  }, null, 512),
3213
3239
  f("div", {
3214
- class: b(S ? "pointer-events-none" : "")
3240
+ class: g(S ? "pointer-events-none" : "")
3215
3241
  }, [
3216
- D(g.$slots, "default", {
3217
- toggle: y,
3218
- open: v(S)
3242
+ E(y.$slots, "default", {
3243
+ toggle: x,
3244
+ open: b(S)
3219
3245
  })
3220
3246
  ], 2)
3221
3247
  ]),
3222
- z(Ee, {
3248
+ V(Ee, {
3223
3249
  "enter-active-class": "transition duration-100 ease-out",
3224
3250
  "enter-from-class": "transform scale-95 opacity-0",
3225
3251
  "enter-to-class": "transform scale-100 opacity-100",
@@ -3228,41 +3254,41 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3228
3254
  "leave-to-class": "transform scale-95 opacity-0"
3229
3255
  }, {
3230
3256
  default: M(() => [
3231
- z(l(_s), {
3257
+ V(n(js), {
3232
3258
  ref_key: "menuItems",
3233
- ref: o,
3234
- class: b([
3259
+ ref: a,
3260
+ class: g([
3235
3261
  "absolute mt-2 w-48 origin-top-right divide-y divide-outline-3 rounded-md bg-foundation shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none z-40",
3236
- l(n) === l(Re).Left ? "right-0" : ""
3262
+ n(l) === n(Re).Left ? "right-0" : ""
3237
3263
  ])
3238
3264
  }, {
3239
3265
  default: M(() => [
3240
- (a(!0), m(K, null, G(e.items, (k, $) => (a(), m("div", {
3266
+ (o(!0), m(K, null, G(e.items, (k, $) => (o(), m("div", {
3241
3267
  key: $,
3242
3268
  class: "p-1"
3243
3269
  }, [
3244
- (a(!0), m(K, null, G(k, (B) => (a(), L(l(js), {
3270
+ (o(!0), m(K, null, G(k, (B) => (o(), L(n(_s), {
3245
3271
  key: B.id,
3246
3272
  disabled: B.disabled,
3247
3273
  color: B.color
3248
3274
  }, {
3249
3275
  default: M(({ active: T, disabled: A }) => [
3250
- be((a(), m("span", null, [
3276
+ be((o(), m("span", null, [
3251
3277
  f("button", {
3252
- class: b(p({ active: T, disabled: A, color: B.color })),
3278
+ class: g(d({ active: T, disabled: A, color: B.color })),
3253
3279
  disabled: A,
3254
- onClick: (w) => x(B, w)
3280
+ onClick: (w) => v(B, w)
3255
3281
  }, [
3256
- B.icon ? (a(), L(Q(B.icon), {
3282
+ B.icon ? (o(), L(Q(B.icon), {
3257
3283
  key: 0,
3258
3284
  class: "h-5 w-5"
3259
3285
  })) : I("", !0),
3260
- D(g.$slots, "item", { item: B }, () => [
3261
- R(V(B.title), 1)
3286
+ E(y.$slots, "item", { item: B }, () => [
3287
+ R(z(B.title), 1)
3262
3288
  ])
3263
- ], 10, wa)
3289
+ ], 10, ba)
3264
3290
  ])), [
3265
- [l(vt), B.disabled && B.disabledTooltip]
3291
+ [n(gt), B.disabled && B.disabledTooltip]
3266
3292
  ])
3267
3293
  ]),
3268
3294
  _: 2
@@ -3278,108 +3304,124 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3278
3304
  _: 3
3279
3305
  }));
3280
3306
  }
3281
- }), Ca = { class: "flex flex-col gap-y-0 sm:gap-y-4" }, $a = { class: "flex gap-x-6" }, Zo = /* @__PURE__ */ _({
3307
+ }), ya = { class: "flex flex-col gap-y-0 sm:gap-y-4" }, xa = { class: "flex gap-x-6" }, Ho = /* @__PURE__ */ j({
3282
3308
  __name: "Tabs",
3283
3309
  props: {
3284
3310
  items: null
3285
3311
  },
3286
3312
  setup(e) {
3287
- const t = e, r = O(null), s = c(() => r.value && t.items.find((n) => n.id === r.value) || t.items[0]), o = (n) => {
3288
- r.value = n.id;
3313
+ const t = e, r = O(null), s = c(() => r.value && t.items.find((l) => l.id === r.value) || t.items[0]), a = (l) => {
3314
+ r.value = l.id;
3289
3315
  };
3290
- return (n, d) => (a(), m("div", Ca, [
3291
- f("div", $a, [
3292
- (a(!0), m(K, null, G(e.items, (h) => (a(), L(oe, {
3293
- key: h.id,
3316
+ return (l, h) => (o(), m("div", ya, [
3317
+ f("div", xa, [
3318
+ (o(!0), m(K, null, G(e.items, (p) => (o(), L(oe, {
3319
+ key: p.id,
3294
3320
  link: "",
3295
- color: s.value.id === h.id ? "default" : "secondary",
3296
- onClick: (i) => o(h)
3321
+ color: s.value.id === p.id ? "default" : "secondary",
3322
+ onClick: (i) => a(p)
3297
3323
  }, {
3298
3324
  default: M(() => [
3299
- R(V(h.title), 1)
3325
+ R(z(p.title), 1)
3300
3326
  ]),
3301
3327
  _: 2
3302
3328
  }, 1032, ["color", "onClick"]))), 128))
3303
3329
  ]),
3304
- D(n.$slots, "default", { activeItem: s.value })
3330
+ E(l.$slots, "default", { activeItem: s.value })
3305
3331
  ]));
3306
3332
  }
3307
- }), Ia = { class: "text-foreground" }, Sa = { class: "w-full text-sm overflow-x-auto overflow-y-visible simple-scrollbar" }, Ba = ["onClick", "onKeypress"], Va = /* @__PURE__ */ f("div", { class: "text-gray-900 font-medium order-1" }, "Placeholder", -1), za = { class: "absolute right-1.5 gap-1 flex items-center p-0" }, No = /* @__PURE__ */ _({
3333
+ }), ka = { class: "text-foreground" }, wa = { class: "w-full text-sm overflow-x-auto overflow-y-visible simple-scrollbar" }, Ca = ["onClick", "onKeypress"], $a = /* @__PURE__ */ f("div", { class: "text-gray-900 font-medium order-1" }, "Placeholder", -1), Ia = { class: "absolute right-1.5 gap-1 flex items-center p-0 h-full" }, Ko = /* @__PURE__ */ j({
3308
3334
  __name: "Table",
3309
3335
  props: {
3310
3336
  items: null,
3311
3337
  buttons: null,
3312
3338
  columns: null,
3313
3339
  overflowCells: { type: Boolean },
3314
- onRowClick: { type: Function }
3340
+ onRowClick: { type: Function },
3341
+ rowItemsAlign: { default: "center" }
3315
3342
  },
3316
3343
  setup(e) {
3317
3344
  const t = e, r = c(() => {
3318
- const d = (t.buttons || []).length;
3319
- let h = 16;
3320
- return d > 0 && (h = 48 + (d - 1) * 42), `${h}px`;
3321
- }), s = (d) => {
3322
- var h;
3323
- return ((h = t.columns.find((i) => i.id === d)) == null ? void 0 : h.classes) || "";
3324
- }, o = (d, h) => {
3325
- const i = s(d);
3326
- return h === 0 ? `bg-transparent py-3 pr-5 px-1 ${i}` : `lg:p-0 px-1 my-2 ${i}`;
3327
- }, n = (d) => {
3328
- var h;
3329
- (h = t.onRowClick) == null || h.call(t, d);
3345
+ const p = (t.buttons || []).length;
3346
+ let i = 16;
3347
+ return p > 0 && (i = 48 + (p - 1) * 42), `${i}px`;
3348
+ }), s = c(() => {
3349
+ const p = [
3350
+ "relative grid grid-cols-12 items-center gap-6 px-4 py-1 min-w-[900px] bg-foundation"
3351
+ ];
3352
+ switch (t.onRowClick && p.push("cursor-pointer hover:bg-primary-muted"), t.rowItemsAlign) {
3353
+ case "center":
3354
+ p.push("items-center");
3355
+ break;
3356
+ case "stretch":
3357
+ p.push("items-stretch");
3358
+ break;
3359
+ }
3360
+ return p.join(" ");
3361
+ }), a = (p) => {
3362
+ var i;
3363
+ return ((i = t.columns.find((d) => d.id === p)) == null ? void 0 : i.classes) || "";
3364
+ }, l = (p, i) => {
3365
+ const d = a(p);
3366
+ return i === 0 ? `bg-transparent py-3 pr-5 px-1 ${d}` : `lg:p-0 px-1 my-2 ${d}`;
3367
+ }, h = (p) => {
3368
+ var i;
3369
+ (i = t.onRowClick) == null || i.call(t, p);
3330
3370
  };
3331
- return (d, h) => (a(), m("div", Ia, [
3332
- f("div", Sa, [
3333
- e.items.length > 0 ? (a(), m("div", {
3371
+ return (p, i) => (o(), m("div", ka, [
3372
+ f("div", wa, [
3373
+ e.items.length > 0 ? (o(), m("div", {
3334
3374
  key: 0,
3335
3375
  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]",
3336
3376
  style: ne({ paddingRight: r.value })
3337
3377
  }, [
3338
- (a(!0), m(K, null, G(e.columns, (i) => (a(), m("div", {
3339
- key: i.id,
3340
- class: b([s(i.id), "capitalize"])
3341
- }, V(i.header), 3))), 128))
3378
+ (o(!0), m(K, null, G(e.columns, (d) => (o(), m("div", {
3379
+ key: d.id,
3380
+ class: g([a(d.id), "capitalize"])
3381
+ }, z(d.header), 3))), 128))
3342
3382
  ], 4)) : I("", !0),
3343
3383
  f("div", {
3344
- class: b(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": e.overflowCells }])
3384
+ class: g(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": e.overflowCells }])
3345
3385
  }, [
3346
- (a(!0), m(K, null, G(e.items, (i) => (a(), m("div", {
3347
- key: i.id,
3348
- 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 }]),
3386
+ (o(!0), m(K, null, G(e.items, (d) => (o(), m("div", {
3387
+ key: d.id,
3349
3388
  style: ne({ paddingRight: r.value }),
3389
+ class: g(s.value),
3350
3390
  tabindex: "0",
3351
- onClick: (p) => n(i),
3352
- onKeypress: (p) => n(i)
3391
+ onClick: (v) => h(d),
3392
+ onKeypress: (v) => h(d)
3353
3393
  }, [
3354
- (a(!0), m(K, null, G(e.columns, (p, x) => (a(), m("div", {
3355
- key: p.id,
3356
- class: b(o(p.id, x)),
3394
+ (o(!0), m(K, null, G(e.columns, (v, x) => (o(), m("div", {
3395
+ key: v.id,
3396
+ class: g(l(v.id, x)),
3357
3397
  tabindex: "0"
3358
3398
  }, [
3359
- D(d.$slots, p.id, { item: i }, () => [
3360
- Va
3399
+ E(p.$slots, v.id, { item: d }, () => [
3400
+ $a
3361
3401
  ])
3362
3402
  ], 2))), 128)),
3363
- f("div", za, [
3364
- (a(!0), m(K, null, G(e.buttons, (p) => (a(), m("div", {
3365
- key: p.label
3403
+ f("div", Ia, [
3404
+ (o(!0), m(K, null, G(e.buttons, (v) => (o(), m("div", {
3405
+ key: v.label
3366
3406
  }, [
3367
- z(l(oe), {
3368
- "icon-left": p.icon,
3407
+ V(n(oe), {
3408
+ "icon-left": v.icon,
3369
3409
  size: "sm",
3370
3410
  color: "secondary",
3371
3411
  "hide-text": "",
3372
- class: b(p.class),
3373
- onClick: pe((x) => p.action(i), ["stop"])
3374
- }, null, 8, ["icon-left", "class", "onClick"])
3412
+ class: g(v.class),
3413
+ "text-color": v.textColor,
3414
+ to: n(ye)(v.action) ? v.action : void 0,
3415
+ onClick: pe((x) => n(ye)(v.action) ? n(ct) : v.action(d), ["stop"])
3416
+ }, null, 8, ["icon-left", "class", "text-color", "to", "onClick"])
3375
3417
  ]))), 128))
3376
3418
  ])
3377
- ], 46, Ba))), 128))
3419
+ ], 46, Ca))), 128))
3378
3420
  ], 2)
3379
3421
  ])
3380
3422
  ]));
3381
3423
  }
3382
- }), Oa = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, La = { class: "inline-flex items-center space-x-1" }, Ma = /* @__PURE__ */ f("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Aa = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Pa = { class: "inline-flex items-center space-x-1" }, _a = /* @__PURE__ */ f("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Qo = /* @__PURE__ */ _({
3424
+ }), Sa = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Ba = { class: "inline-flex items-center space-x-1" }, za = /* @__PURE__ */ f("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Va = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Oa = { class: "inline-flex items-center space-x-1" }, La = /* @__PURE__ */ f("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Go = /* @__PURE__ */ j({
3383
3425
  __name: "InfiniteLoading",
3384
3426
  props: {
3385
3427
  settings: null,
@@ -3390,39 +3432,39 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3390
3432
  const t = O(null), r = O(!1);
3391
3433
  return Ge && ae(() => {
3392
3434
  const s = setInterval(() => {
3393
- var o;
3394
- (o = t.value) != null && o.isConnected && (r.value = !0, clearInterval(s));
3435
+ var a;
3436
+ (a = t.value) != null && a.isConnected && (r.value = !0, clearInterval(s));
3395
3437
  }, 200);
3396
- }), (s, o) => (a(), m("div", {
3438
+ }), (s, a) => (o(), m("div", {
3397
3439
  ref_key: "wrapper",
3398
3440
  ref: t
3399
3441
  }, [
3400
- r.value ? (a(), L(l(Ds), ie({ key: 0 }, s.$props.settings || {}, {
3401
- onInfinite: o[0] || (o[0] = (n) => s.$emit("infinite", n))
3442
+ r.value ? (o(), L(n(Ds), ie({ key: 0 }, s.$props.settings || {}, {
3443
+ onInfinite: a[0] || (a[0] = (l) => s.$emit("infinite", l))
3402
3444
  }), {
3403
3445
  spinner: M(() => [
3404
- z(Qe, {
3446
+ V(Qe, {
3405
3447
  loading: !0,
3406
3448
  class: "my-2"
3407
3449
  })
3408
3450
  ]),
3409
3451
  complete: M(() => [
3410
- f("div", Oa, [
3411
- f("div", La, [
3412
- z(l(ts), { class: "w-5 h-5 text-success" }),
3413
- Ma
3452
+ f("div", Sa, [
3453
+ f("div", Ba, [
3454
+ V(n(ts), { class: "w-5 h-5 text-success" }),
3455
+ za
3414
3456
  ])
3415
3457
  ])
3416
3458
  ]),
3417
- error: M(({ retry: n }) => [
3418
- f("div", Aa, [
3419
- f("div", Pa, [
3420
- z(l(ss), { class: "w-5 h-5 text-danger" }),
3421
- _a
3459
+ error: M(({ retry: l }) => [
3460
+ f("div", Va, [
3461
+ f("div", Oa, [
3462
+ V(n(ss), { class: "w-5 h-5 text-danger" }),
3463
+ La
3422
3464
  ]),
3423
- e.allowRetry ? (a(), L(oe, {
3465
+ e.allowRetry ? (o(), L(oe, {
3424
3466
  key: 0,
3425
- onClick: n
3467
+ onClick: l
3426
3468
  }, {
3427
3469
  default: M(() => [
3428
3470
  R("Retry")
@@ -3435,10 +3477,10 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3435
3477
  }, 16)) : I("", !0)
3436
3478
  ], 512));
3437
3479
  }
3438
- }), ja = { class: "relative group" }, Ta = {
3480
+ }), Ma = { class: "relative group" }, Aa = {
3439
3481
  key: 0,
3440
3482
  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"
3441
- }, Jo = /* @__PURE__ */ _({
3483
+ }, Xo = /* @__PURE__ */ j({
3442
3484
  __name: "Panel",
3443
3485
  props: {
3444
3486
  /**
@@ -3476,47 +3518,47 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3476
3518
  },
3477
3519
  emits: ["submit"],
3478
3520
  setup(e, { emit: t }) {
3479
- const r = t, s = e, o = c(
3521
+ const r = t, s = e, a = c(
3480
3522
  () => s.customPadding ? "" : "px-4 py-4 sm:px-6"
3481
- ), n = c(
3523
+ ), l = c(
3482
3524
  () => s.customPadding ? "" : "px-4 py-4 sm:p-6"
3483
- ), d = c(() => {
3484
- const h = ["rounded-lg"];
3485
- return s.noShadow || h.push("shadow"), s.ring && h.push("ring-outline-2 hover:ring-2"), s.panelClasses && h.push(s.panelClasses), h.join(" ");
3525
+ ), h = c(() => {
3526
+ const p = ["rounded-lg"];
3527
+ return s.noShadow || p.push("shadow"), s.ring && p.push("ring-outline-2 hover:ring-2"), s.panelClasses && p.push(s.panelClasses), p.join(" ");
3486
3528
  });
3487
- return (h, i) => (a(), m("div", ja, [
3488
- e.fancyGlow ? (a(), m("div", Ta)) : I("", !0),
3489
- (a(), L(Q(e.form ? "form" : "div"), {
3490
- class: b([
3529
+ return (p, i) => (o(), m("div", Ma, [
3530
+ e.fancyGlow ? (o(), m("div", Aa)) : I("", !0),
3531
+ (o(), L(Q(e.form ? "form" : "div"), {
3532
+ class: g([
3491
3533
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
3492
- d.value
3534
+ h.value
3493
3535
  ]),
3494
- onSubmit: i[0] || (i[0] = (p) => r("submit", p))
3536
+ onSubmit: i[0] || (i[0] = (d) => r("submit", d))
3495
3537
  }, {
3496
3538
  default: M(() => [
3497
- h.$slots.header ? (a(), m("div", {
3539
+ p.$slots.header ? (o(), m("div", {
3498
3540
  key: 0,
3499
- class: b(o.value)
3541
+ class: g(a.value)
3500
3542
  }, [
3501
- D(h.$slots, "header")
3543
+ E(p.$slots, "header")
3502
3544
  ], 2)) : I("", !0),
3503
3545
  f("div", {
3504
- class: b(["grow", n.value])
3546
+ class: g(["grow", l.value])
3505
3547
  }, [
3506
- D(h.$slots, "default")
3548
+ E(p.$slots, "default")
3507
3549
  ], 2),
3508
- h.$slots.footer ? (a(), m("div", {
3550
+ p.$slots.footer ? (o(), m("div", {
3509
3551
  key: 1,
3510
- class: b(o.value)
3552
+ class: g(a.value)
3511
3553
  }, [
3512
- D(h.$slots, "footer")
3554
+ E(p.$slots, "footer")
3513
3555
  ], 2)) : I("", !0)
3514
3556
  ]),
3515
3557
  _: 3
3516
3558
  }, 40, ["class"]))
3517
3559
  ]));
3518
3560
  }
3519
- }), Fa = { class: "flex-shrink-0" }, Ra = /* @__PURE__ */ f("span", { class: "sr-only" }, "Dismiss", -1), Yo = /* @__PURE__ */ _({
3561
+ }), Pa = { class: "flex-shrink-0" }, ja = /* @__PURE__ */ f("span", { class: "sr-only" }, "Dismiss", -1), Zo = /* @__PURE__ */ j({
3520
3562
  __name: "Alert",
3521
3563
  props: {
3522
3564
  color: { default: "success" },
@@ -3527,21 +3569,21 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3527
3569
  },
3528
3570
  emits: ["dismiss"],
3529
3571
  setup(e) {
3530
- const t = e, r = We(), s = c(() => !!r.description), o = c(() => {
3572
+ const t = e, r = We(), s = c(() => !!r.description), a = c(() => {
3531
3573
  if (t.customIcon)
3532
3574
  return t.customIcon;
3533
3575
  switch (t.color) {
3534
3576
  case "info":
3535
3577
  return os;
3536
3578
  case "warning":
3537
- return Ve;
3579
+ return ze;
3538
3580
  case "danger":
3539
3581
  return as;
3540
3582
  case "success":
3541
3583
  default:
3542
- return mt;
3584
+ return ht;
3543
3585
  }
3544
- }), n = c(() => {
3586
+ }), l = c(() => {
3545
3587
  const u = [];
3546
3588
  switch (t.size) {
3547
3589
  case "xs":
@@ -3567,7 +3609,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3567
3609
  break;
3568
3610
  }
3569
3611
  return u.join(" ");
3570
- }), d = c(() => {
3612
+ }), h = c(() => {
3571
3613
  const u = [];
3572
3614
  if (s.value)
3573
3615
  u.push("");
@@ -3582,7 +3624,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3582
3624
  break;
3583
3625
  }
3584
3626
  return u.join(" ");
3585
- }), h = c(() => {
3627
+ }), p = c(() => {
3586
3628
  const u = ["grow"];
3587
3629
  switch (s.value || u.push("flex items-center space-x-2"), t.size) {
3588
3630
  case "xs":
@@ -3606,7 +3648,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3606
3648
  break;
3607
3649
  }
3608
3650
  return u.join(" ");
3609
- }), p = c(() => {
3651
+ }), d = c(() => {
3610
3652
  var k;
3611
3653
  const u = ["flex"];
3612
3654
  s.value || u.push("grow justify-end");
@@ -3621,7 +3663,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3621
3663
  break;
3622
3664
  }
3623
3665
  return u.join(" ");
3624
- }), x = c(() => {
3666
+ }), v = c(() => {
3625
3667
  const u = [];
3626
3668
  switch (t.color) {
3627
3669
  case "success":
@@ -3638,7 +3680,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3638
3680
  break;
3639
3681
  }
3640
3682
  return u.join(" ");
3641
- }), y = c(() => {
3683
+ }), x = c(() => {
3642
3684
  const u = [];
3643
3685
  switch (t.size) {
3644
3686
  case "xs":
@@ -3664,7 +3706,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3664
3706
  break;
3665
3707
  }
3666
3708
  return u.join(" ");
3667
- }), v = c(() => {
3709
+ }), b = c(() => {
3668
3710
  const u = [];
3669
3711
  switch (t.color) {
3670
3712
  case "success":
@@ -3681,7 +3723,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3681
3723
  break;
3682
3724
  }
3683
3725
  return u.join(" ");
3684
- }), g = c(() => {
3726
+ }), y = c(() => {
3685
3727
  switch (t.size) {
3686
3728
  case "xs":
3687
3729
  return "xs";
@@ -3690,65 +3732,65 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3690
3732
  return "sm";
3691
3733
  }
3692
3734
  });
3693
- return (u, S) => (a(), m("div", {
3694
- class: b(["rounded-md", [n.value, x.value]])
3735
+ return (u, S) => (o(), m("div", {
3736
+ class: g(["rounded-md", [l.value, v.value]])
3695
3737
  }, [
3696
3738
  f("div", {
3697
- class: b(["flex", d.value])
3739
+ class: g(["flex", h.value])
3698
3740
  }, [
3699
- f("div", Fa, [
3700
- (a(), L(Q(o.value), {
3701
- class: b(y.value),
3741
+ f("div", Pa, [
3742
+ (o(), L(Q(a.value), {
3743
+ class: g(x.value),
3702
3744
  "aria-hidden": "true"
3703
3745
  }, null, 8, ["class"]))
3704
3746
  ]),
3705
3747
  f("div", {
3706
- class: b(h.value)
3748
+ class: g(p.value)
3707
3749
  }, [
3708
3750
  f("h3", {
3709
- class: b(["text-sm", [s.value ? "font-medium" : ""]])
3751
+ class: g(["text-sm", [s.value ? "font-medium" : ""]])
3710
3752
  }, [
3711
- D(u.$slots, "title", {}, () => [
3753
+ E(u.$slots, "title", {}, () => [
3712
3754
  R("Title")
3713
3755
  ])
3714
3756
  ], 2),
3715
- s.value ? (a(), m("div", {
3757
+ s.value ? (o(), m("div", {
3716
3758
  key: 0,
3717
- class: b(i.value)
3759
+ class: g(i.value)
3718
3760
  }, [
3719
- D(u.$slots, "description", {}, () => [
3761
+ E(u.$slots, "description", {}, () => [
3720
3762
  R(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
3721
3763
  ])
3722
3764
  ], 2)) : I("", !0),
3723
3765
  f("div", {
3724
- class: b(p.value)
3766
+ class: g(d.value)
3725
3767
  }, [
3726
- (a(!0), m(K, null, G(e.actions || [], (k, $) => (a(), L(oe, {
3768
+ (o(!0), m(K, null, G(e.actions || [], (k, $) => (o(), L(oe, {
3727
3769
  key: $,
3728
3770
  color: e.color,
3729
- size: g.value,
3771
+ size: y.value,
3730
3772
  to: k.url,
3731
3773
  external: k.externalUrl || !1,
3732
- onClick: (B) => k.onClick || l(Tt)
3774
+ onClick: (B) => k.onClick || n(ct)
3733
3775
  }, {
3734
3776
  default: M(() => [
3735
- R(V(k.title), 1)
3777
+ R(z(k.title), 1)
3736
3778
  ]),
3737
3779
  _: 2
3738
3780
  }, 1032, ["color", "size", "to", "external", "onClick"]))), 128))
3739
3781
  ], 2)
3740
3782
  ], 2),
3741
- e.withDismiss ? (a(), m("div", {
3783
+ e.withDismiss ? (o(), m("div", {
3742
3784
  key: 0,
3743
- class: b(["flex", [s.value ? "items-start" : "items-center"]])
3785
+ class: g(["flex", [s.value ? "items-start" : "items-center"]])
3744
3786
  }, [
3745
3787
  f("button", {
3746
3788
  type: "button",
3747
- class: b(["inline-flex rounded-md focus:outline-none focus:ring-2", v.value]),
3789
+ class: g(["inline-flex rounded-md focus:outline-none focus:ring-2", b.value]),
3748
3790
  onClick: S[0] || (S[0] = (k) => u.$emit("dismiss"))
3749
3791
  }, [
3750
- Ra,
3751
- z(l(ye), {
3792
+ ja,
3793
+ V(n(xe), {
3752
3794
  class: "h-5 w-5",
3753
3795
  "aria-hidden": "true"
3754
3796
  })
@@ -3758,41 +3800,41 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
3758
3800
  ], 2));
3759
3801
  }
3760
3802
  });
3761
- function er(e) {
3803
+ function No(e) {
3762
3804
  var u, S;
3763
- const { get: t, initialState: r, readOptions: s, set: o, asyncRead: n = !0, debugging: d } = e, h = d == null ? void 0 : d.log, i = () => (new Error("Trace:").stack || "").substring(7), p = ((S = (u = e.debugging) == null ? void 0 : u.log) == null ? void 0 : S.logger) || console.debug, x = h && !h.writesOnly ? () => {
3805
+ const { get: t, initialState: r, readOptions: s, set: a, asyncRead: l = !0, debugging: h } = e, p = h == null ? void 0 : h.log, i = () => (new Error("Trace:").stack || "").substring(7), d = ((S = (u = e.debugging) == null ? void 0 : u.log) == null ? void 0 : S.logger) || console.debug, v = p && !p.writesOnly ? () => {
3764
3806
  const k = t();
3765
- return p(`debugging: '${h.name}' read`, k, i()), k;
3766
- } : t, y = h && !h.readsOnly ? (k) => (p(`debugging: '${h.name}' written to`, k, i()), o(k)) : o, v = n ? ys(x, r, s) : c(x), g = c(() => v.value);
3767
- return g.update = y, g;
3807
+ return d(`debugging: '${p.name}' read`, k, i()), k;
3808
+ } : t, x = p && !p.readsOnly ? (k) => (d(`debugging: '${p.name}' written to`, k, i()), a(k)) : a, b = l ? ys(v, r, s) : c(v), y = c(() => b.value);
3809
+ return y.update = x, y;
3768
3810
  }
3769
- const Da = /* @__PURE__ */ _({
3811
+ const _a = /* @__PURE__ */ j({
3770
3812
  __name: "ContextManager",
3771
3813
  setup(e, { expose: t }) {
3772
- const s = Pt().provides, o = Object.getOwnPropertySymbols(s).find(
3773
- (v) => v.description === "ComboboxContext"
3814
+ const s = jt().provides, a = Object.getOwnPropertySymbols(s).find(
3815
+ (b) => b.description === "ComboboxContext"
3774
3816
  );
3775
- o || console.error("FormTagsContextManager ctx key not found!");
3776
- const n = _t(o || "__undefined");
3777
- return n || console.error("FormTagsContextManager ctx not found!"), t({ goUp: () => {
3778
- n == null || n.goToOption(1);
3817
+ a || console.error("FormTagsContextManager ctx key not found!");
3818
+ const l = _t(a || "__undefined");
3819
+ return l || console.error("FormTagsContextManager ctx not found!"), t({ goUp: () => {
3820
+ l == null || l.goToOption(1);
3779
3821
  }, goDown: () => {
3780
- n == null || n.goToOption(2);
3822
+ l == null || l.goToOption(2);
3781
3823
  }, open: () => {
3782
- n && n.openCombobox();
3824
+ l && l.openCombobox();
3783
3825
  }, close: () => {
3784
- n == null || n.closeCombobox();
3826
+ l == null || l.closeCombobox();
3785
3827
  }, selectActive: () => {
3786
- n == null || n.selectActiveOption();
3787
- }, isOpen: () => (n == null ? void 0 : n.comboboxState.value) === 0 }), (v, g) => D(v.$slots, "default");
3828
+ l == null || l.selectActiveOption();
3829
+ }, isOpen: () => (l == null ? void 0 : l.comboboxState.value) === 0 }), (b, y) => E(b.$slots, "default");
3788
3830
  }
3789
- }), Ea = ["for"], Ua = ["disabled", "placeholder", "onKeydown"], qa = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), Wa = { key: 1 }, Ha = /* @__PURE__ */ f("div", { class: "text-foreground-2 text-center" }, [
3831
+ }), Ta = ["for"], Fa = ["disabled", "placeholder", "onKeydown"], Ra = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), Da = { key: 1 }, Ea = /* @__PURE__ */ f("div", { class: "text-foreground-2 text-center" }, [
3790
3832
  /* @__PURE__ */ R(" Press "),
3791
3833
  /* @__PURE__ */ f("strong", null, "Enter"),
3792
3834
  /* @__PURE__ */ R(" to create tag ⚡ ")
3793
- ], -1), Ka = [
3794
- Ha
3795
- ], Ga = ["id"], tr = /* @__PURE__ */ _({
3835
+ ], -1), Ua = [
3836
+ Ea
3837
+ ], qa = ["id"], Qo = /* @__PURE__ */ j({
3796
3838
  __name: "Tags",
3797
3839
  props: {
3798
3840
  name: null,
@@ -3816,14 +3858,14 @@ const Da = /* @__PURE__ */ _({
3816
3858
  },
3817
3859
  emits: ["update:modelValue", "change", "clear"],
3818
3860
  setup(e, { expose: t, emit: r }) {
3819
- const s = (P) => P.type === "input", o = r, n = e, d = O(null), { focused: h } = xs(d), i = O(
3861
+ const s = (P) => P.type === "input", a = r, l = e, h = O(null), { focused: p } = xs(h), i = O(
3820
3862
  null
3821
3863
  ), {
3822
- coreInputClasses: p,
3823
- coreClasses: x,
3824
- labelClasses: y,
3825
- title: v,
3826
- helpTip: g,
3864
+ coreInputClasses: d,
3865
+ coreClasses: v,
3866
+ labelClasses: x,
3867
+ title: b,
3868
+ helpTip: y,
3827
3869
  helpTipId: u,
3828
3870
  hideHelpTip: S,
3829
3871
  helpTipClasses: k,
@@ -3831,19 +3873,19 @@ const Da = /* @__PURE__ */ _({
3831
3873
  clear: B,
3832
3874
  value: T
3833
3875
  } = Ze({
3834
- props: le(n),
3835
- emit: o,
3836
- inputEl: d
3876
+ props: le(l),
3877
+ emit: a,
3878
+ inputEl: h
3837
3879
  // options: {
3838
3880
  // customClear: () => (selectedItems.value = [])
3839
3881
  // }
3840
- }), A = O([]), w = O(!1), U = O(!1), q = O(""), E = c({
3882
+ }), A = O([]), w = O(!1), D = O(!1), q = O(""), U = c({
3841
3883
  get: () => T.value || [],
3842
3884
  set: (P) => {
3843
3885
  T.value = Ft(P).filter((F) => !!F.length);
3844
3886
  }
3845
3887
  }), Le = c(() => {
3846
- switch (n.size) {
3888
+ switch (l.size) {
3847
3889
  case "sm":
3848
3890
  return "h-6";
3849
3891
  case "lg":
@@ -3854,185 +3896,185 @@ const Da = /* @__PURE__ */ _({
3854
3896
  default:
3855
3897
  return "h-8";
3856
3898
  }
3857
- }), re = c(() => n.showClear && !!E.value.length), Me = c(() => {
3899
+ }), re = c(() => l.showClear && !!U.value.length), Me = c(() => {
3858
3900
  const P = [
3859
- x.value,
3860
- n.disabled ? "cursor-not-allowed !bg-foundation-disabled !text-disabled-muted" : ""
3901
+ v.value,
3902
+ l.disabled ? "cursor-not-allowed !bg-foundation-disabled !text-disabled-muted" : ""
3861
3903
  ];
3862
- return re.value && ($.value || n.showRequired) ? P.push("pr-14") : (re.value || $.value || n.showRequired) && P.push("pr-8"), $.value ? (P.push("border-2 border-danger text-danger-darker"), h.value && P.push("ring-1 ring-danger")) : (P.push("border-2 border-transparent"), h.value && P.push("ring-2 ring-outline-2")), P.join(" ");
3904
+ return re.value && ($.value || l.showRequired) ? P.push("pr-14") : (re.value || $.value || l.showRequired) && P.push("pr-8"), $.value ? (P.push("border-2 border-danger text-danger-darker"), p.value && P.push("ring-1 ring-danger")) : (P.push("border-2 border-transparent"), p.value && P.push("ring-2 ring-outline-2")), P.join(" ");
3863
3905
  }), Ae = (P) => {
3864
- if (n.disabled)
3906
+ if (l.disabled)
3865
3907
  return;
3866
- const F = E.value.indexOf(P);
3908
+ const F = U.value.indexOf(P);
3867
3909
  if (F !== -1) {
3868
- const j = E.value.slice();
3869
- j.splice(F, 1), E.value = j;
3910
+ const _ = U.value.slice();
3911
+ _.splice(F, 1), U.value = _;
3870
3912
  }
3871
3913
  }, me = () => {
3872
3914
  var P;
3873
- (P = d.value) == null || P.blur(), U.value = !1;
3915
+ (P = h.value) == null || P.blur(), D.value = !1;
3874
3916
  }, Y = (P) => {
3875
3917
  if (P.key !== "Backspace" || q.value.length)
3876
3918
  return;
3877
- const F = E.value.slice();
3878
- F.pop(), E.value = F, U.value = !1;
3919
+ const F = U.value.slice();
3920
+ F.pop(), U.value = F, D.value = !1;
3879
3921
  }, ce = () => {
3880
- var P, F, j;
3881
- (P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goUp() : (j = i.value) == null || j.open();
3922
+ var P, F, _;
3923
+ (P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goUp() : (_ = i.value) == null || _.open();
3882
3924
  }, X = () => {
3883
- var P, F, j;
3884
- (P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goDown() : (j = i.value) == null || j.open();
3925
+ var P, F, _;
3926
+ (P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goDown() : (_ = i.value) == null || _.open();
3885
3927
  }, he = async () => {
3886
- n.getAutocompleteItems && (w.value = !0, A.value = await Promise.resolve(
3887
- n.getAutocompleteItems(q.value)
3928
+ l.getAutocompleteItems && (w.value = !0, A.value = await Promise.resolve(
3929
+ l.getAutocompleteItems(q.value)
3888
3930
  ), w.value = !1);
3889
- }, Pe = He(he, 1e3), _e = () => {
3931
+ }, Pe = He(he, 1e3), je = () => {
3890
3932
  w.value = !0, Pe();
3891
- }, xe = (P, F) => {
3933
+ }, ke = (P, F) => {
3892
3934
  var Z, ee;
3893
3935
  if (s(P) ? P.data === " " || P.data === "," || P.data === ";" : !0) {
3894
- let ke = !1;
3936
+ let we = !1;
3895
3937
  if ((Z = i.value) != null && Z.isOpen() && A.value.length && !F)
3896
- (ee = i.value) == null || ee.selectActive(), ke = !0;
3938
+ (ee = i.value) == null || ee.selectActive(), we = !0;
3897
3939
  else {
3898
- const C = q.value.trim().substring(0, q.value.length - (s(P) ? 1 : 0)), H = E.value.includes(C);
3899
- C.length > 0 && !H && (E.value = [...E.value, C], ke = !0);
3940
+ const C = q.value.trim().substring(0, q.value.length - (s(P) ? 1 : 0)), H = U.value.includes(C);
3941
+ C.length > 0 && !H && (U.value = [...U.value, C], we = !0);
3900
3942
  }
3901
- ke && (q.value = "", U.value = !1);
3943
+ we && (q.value = "", D.value = !1);
3902
3944
  } else
3903
- U.value = !!q.value.length;
3945
+ D.value = !!q.value.length;
3904
3946
  };
3905
- return fe(U, (P, F) => {
3906
- var j, Z;
3907
- P && !F ? n.getAutocompleteItems && ((j = i.value) == null || j.open()) : !P && F && ((Z = i.value) == null || Z.close());
3947
+ return fe(D, (P, F) => {
3948
+ var _, Z;
3949
+ P && !F ? l.getAutocompleteItems && ((_ = i.value) == null || _.open()) : !P && F && ((Z = i.value) == null || Z.close());
3908
3950
  }), fe(q, () => {
3909
- _e();
3951
+ je();
3910
3952
  }), ae(() => {
3911
3953
  he();
3912
- }), t({ resolveAutocompleteItems: he }), (P, F) => (a(), L(l(Ts), {
3913
- modelValue: E.value,
3914
- "onUpdate:modelValue": F[5] || (F[5] = (j) => E.value = j),
3954
+ }), t({ resolveAutocompleteItems: he }), (P, F) => (o(), L(n(Ts), {
3955
+ modelValue: U.value,
3956
+ "onUpdate:modelValue": F[5] || (F[5] = (_) => U.value = _),
3915
3957
  as: "div",
3916
3958
  multiple: "",
3917
3959
  clearable: "",
3918
- class: b([e.wrapperClasses])
3960
+ class: g([e.wrapperClasses])
3919
3961
  }, {
3920
3962
  default: M(() => [
3921
- z(Da, {
3963
+ V(_a, {
3922
3964
  ref_key: "ctxManager",
3923
3965
  ref: i
3924
3966
  }, {
3925
3967
  default: M(() => [
3926
3968
  f("label", {
3927
3969
  for: e.name,
3928
- class: b(l(y))
3970
+ class: g(n(x))
3929
3971
  }, [
3930
- f("span", null, V(l(v)), 1)
3931
- ], 10, Ea),
3972
+ f("span", null, z(n(b)), 1)
3973
+ ], 10, Ta),
3932
3974
  f("div", {
3933
- class: b(["relative flex flex-wrap items-center space-x-1 px-2 py-1", Me.value])
3975
+ class: g(["relative flex flex-wrap items-center space-x-1 px-2 py-1", Me.value])
3934
3976
  }, [
3935
- (a(!0), m(K, null, G(E.value, (j) => (a(), L(Xe, {
3936
- key: j,
3937
- "icon-left": e.disabled ? void 0 : l(ye),
3977
+ (o(!0), m(K, null, G(U.value, (_) => (o(), L(Xe, {
3978
+ key: _,
3979
+ "icon-left": e.disabled ? void 0 : n(xe),
3938
3980
  "clickable-icon": "",
3939
3981
  size: "lg",
3940
- onClickIcon: () => Ae(j)
3982
+ onClickIcon: () => Ae(_)
3941
3983
  }, {
3942
3984
  default: M(() => [
3943
- R(V(j), 1)
3985
+ R(z(_), 1)
3944
3986
  ]),
3945
3987
  _: 2
3946
3988
  }, 1032, ["icon-left", "onClickIcon"]))), 128)),
3947
3989
  be(f("input", {
3948
3990
  ref_key: "inputEl",
3949
- ref: d,
3950
- "onUpdate:modelValue": F[0] || (F[0] = (j) => q.value = j),
3991
+ ref: h,
3992
+ "onUpdate:modelValue": F[0] || (F[0] = (_) => q.value = _),
3951
3993
  disabled: e.disabled,
3952
- class: b(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [l(p), Le.value]]),
3994
+ class: g(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [n(d), Le.value]]),
3953
3995
  style: { "flex-basis": "70px", "min-width": "70px" },
3954
- placeholder: E.value.length ? void 0 : e.placeholder,
3955
- onInput: xe,
3996
+ placeholder: U.value.length ? void 0 : e.placeholder,
3997
+ onInput: ke,
3956
3998
  onKeydown: [
3957
3999
  ve(me, ["escape"]),
3958
- F[1] || (F[1] = ve(pe((j) => xe(j, !0), ["stop", "prevent"]), ["enter"])),
3959
- ve(xe, ["tab"]),
4000
+ F[1] || (F[1] = ve(pe((_) => ke(_, !0), ["stop", "prevent"]), ["enter"])),
4001
+ ve(ke, ["tab"]),
3960
4002
  ve(Y, ["backspace"]),
3961
4003
  ve(ce, ["arrow-up"]),
3962
4004
  ve(X, ["arrow-down"])
3963
4005
  ],
3964
- onBlur: F[2] || (F[2] = (j) => U.value = !1)
3965
- }, null, 42, Ua), [
4006
+ onBlur: F[2] || (F[2] = (_) => D.value = !1)
4007
+ }, null, 42, Fa), [
3966
4008
  [qe, q.value]
3967
4009
  ]),
3968
- re.value ? (a(), m("a", {
4010
+ re.value ? (o(), m("a", {
3969
4011
  key: 0,
3970
4012
  title: "Clear input",
3971
4013
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
3972
4014
  onClick: F[3] || (F[3] = //@ts-ignore
3973
- (...j) => l(B) && l(B)(...j)),
4015
+ (..._) => n(B) && n(B)(..._)),
3974
4016
  onKeydown: F[4] || (F[4] = //@ts-ignore
3975
- (...j) => l(B) && l(B)(...j))
4017
+ (..._) => n(B) && n(B)(..._))
3976
4018
  }, [
3977
- qa,
3978
- z(l(ye), {
4019
+ Ra,
4020
+ V(n(xe), {
3979
4021
  class: "h-5 w-5 text-foreground",
3980
4022
  "aria-hidden": "true"
3981
4023
  })
3982
4024
  ], 32)) : I("", !0),
3983
- l($) ? (a(), m("div", {
4025
+ n($) ? (o(), m("div", {
3984
4026
  key: 1,
3985
- class: b([
4027
+ class: g([
3986
4028
  "pointer-events-none absolute top-[10px] right-0 flex items-center",
3987
4029
  re.value ? "pr-8" : "pr-2"
3988
4030
  ])
3989
4031
  }, [
3990
- z(l(Ve), {
4032
+ V(n(ze), {
3991
4033
  class: "h-4 w-4 text-danger",
3992
4034
  "aria-hidden": "true"
3993
4035
  })
3994
4036
  ], 2)) : I("", !0),
3995
- e.showRequired && !l($) ? (a(), m("div", {
4037
+ e.showRequired && !n($) ? (o(), m("div", {
3996
4038
  key: 2,
3997
- class: b(["pointer-events-none absolute top-[2px] text-4xl right-0 flex items-center text-danger opacity-50", re.value ? "pr-8" : "pr-2"])
4039
+ class: g(["pointer-events-none absolute top-[2px] text-4xl right-0 flex items-center text-danger opacity-50", re.value ? "pr-8" : "pr-2"])
3998
4040
  }, " * ", 2)) : I("", !0)
3999
4041
  ], 2),
4000
- z(l(ht), {
4042
+ V(n(vt), {
4001
4043
  leave: "transition ease-in duration-100",
4002
4044
  "leave-from": "opacity-100",
4003
4045
  "leave-to": "opacity-0",
4004
4046
  class: "relative px-0.5"
4005
4047
  }, {
4006
4048
  default: M(() => [
4007
- z(l(Fs), { class: "absolute top-1 max-h-60 w-full overflow-auto simple-scrollbar rounded-md bg-foundation-2 py-1 shadow label label--light outline outline-2 outline-primary-muted focus:outline-none" }, {
4049
+ V(n(Fs), { class: "absolute top-1 max-h-60 w-full overflow-auto simple-scrollbar rounded-md bg-foundation-2 py-1 shadow label label--light outline outline-2 outline-primary-muted focus:outline-none" }, {
4008
4050
  default: M(() => [
4009
- w.value ? (a(), m("div", {
4051
+ w.value ? (o(), m("div", {
4010
4052
  key: 0,
4011
- class: b(["px-1", A.value.length ? "mb-1" : ""])
4053
+ class: g(["px-1", A.value.length ? "mb-1" : ""])
4012
4054
  }, [
4013
- z(Qe, { loading: !0 })
4055
+ V(Qe, { loading: !0 })
4014
4056
  ], 2)) : I("", !0),
4015
- !A.value.length && !w.value ? (a(), m("div", Wa, Ka)) : I("", !0),
4016
- A.value.length ? (a(!0), m(K, { key: 2 }, G(A.value, (j) => (a(), L(l(Rs), {
4017
- key: j,
4057
+ !A.value.length && !w.value ? (o(), m("div", Da, Ua)) : I("", !0),
4058
+ A.value.length ? (o(!0), m(K, { key: 2 }, G(A.value, (_) => (o(), L(n(Rs), {
4059
+ key: _,
4018
4060
  as: "template",
4019
- value: j
4061
+ value: _
4020
4062
  }, {
4021
4063
  default: M(({ selected: Z, active: ee }) => [
4022
4064
  f("li", {
4023
- class: b(["relative cursor-pointer select-none py-1.5 pl-3", {
4065
+ class: g(["relative cursor-pointer select-none py-1.5 pl-3", {
4024
4066
  "text-primary": ee,
4025
4067
  "text-foreground": !ee
4026
4068
  }])
4027
4069
  }, [
4028
4070
  f("span", {
4029
- class: b(["block truncate", { "font-medium": Z, "font-normal": !Z }])
4030
- }, V(j), 3),
4031
- Z ? (a(), m("span", {
4071
+ class: g(["block truncate", { "font-medium": Z, "font-normal": !Z }])
4072
+ }, z(_), 3),
4073
+ Z ? (o(), m("span", {
4032
4074
  key: 0,
4033
- class: b(["absolute inset-y-0 right-0 flex items-center pr-4", { "text-primary": ee, "text-foreground": !ee }])
4075
+ class: g(["absolute inset-y-0 right-0 flex items-center pr-4", { "text-primary": ee, "text-foreground": !ee }])
4034
4076
  }, [
4035
- z(l(pt), {
4077
+ V(n(mt), {
4036
4078
  class: "h-5 w-5",
4037
4079
  "aria-hidden": "true"
4038
4080
  })
@@ -4047,11 +4089,11 @@ const Da = /* @__PURE__ */ _({
4047
4089
  ]),
4048
4090
  _: 1
4049
4091
  }),
4050
- l(u) && !l(S) ? (a(), m("p", {
4092
+ n(u) && !n(S) ? (o(), m("p", {
4051
4093
  key: 0,
4052
- id: l(u),
4053
- class: b(l(k))
4054
- }, V(l(g)), 11, Ga)) : I("", !0)
4094
+ id: n(u),
4095
+ class: g(n(k))
4096
+ }, z(n(y)), 11, qa)) : I("", !0)
4055
4097
  ]),
4056
4098
  _: 1
4057
4099
  }, 512)
@@ -4060,7 +4102,7 @@ const Da = /* @__PURE__ */ _({
4060
4102
  }, 8, ["modelValue", "class"]));
4061
4103
  }
4062
4104
  });
4063
- function Ct(e) {
4105
+ function $t(e) {
4064
4106
  const { props: t } = e, r = c(() => {
4065
4107
  var i;
4066
4108
  switch ((i = t.size) == null ? void 0 : i.value) {
@@ -4099,7 +4141,7 @@ function Ct(e) {
4099
4141
  default:
4100
4142
  return "w-8";
4101
4143
  }
4102
- }), o = c(() => {
4144
+ }), a = c(() => {
4103
4145
  var i;
4104
4146
  switch ((i = t.size) == null ? void 0 : i.value) {
4105
4147
  case "xs":
@@ -4118,7 +4160,7 @@ function Ct(e) {
4118
4160
  default:
4119
4161
  return "text-sm";
4120
4162
  }
4121
- }), n = c(() => {
4163
+ }), l = c(() => {
4122
4164
  var i;
4123
4165
  switch ((i = t.size) == null ? void 0 : i.value) {
4124
4166
  case "xs":
@@ -4137,15 +4179,15 @@ function Ct(e) {
4137
4179
  default:
4138
4180
  return "w-4 h-4";
4139
4181
  }
4140
- }), d = c(
4141
- () => `${s.value} ${r.value} ${o.value}`
4182
+ }), h = c(
4183
+ () => `${s.value} ${r.value} ${a.value}`
4142
4184
  );
4143
- return { heightClasses: r, widthClasses: s, sizeClasses: d, iconClasses: n };
4185
+ return { heightClasses: r, widthClasses: s, sizeClasses: h, iconClasses: l };
4144
4186
  }
4145
- const Xa = {
4187
+ const Wa = {
4146
4188
  key: 1,
4147
4189
  class: "flex h-full w-full select-none items-center justify-center"
4148
- }, Za = { key: 2 }, De = /* @__PURE__ */ _({
4190
+ }, Ha = { key: 2 }, De = /* @__PURE__ */ j({
4149
4191
  __name: "Avatar",
4150
4192
  props: {
4151
4193
  user: { default: null },
@@ -4156,41 +4198,41 @@ const Xa = {
4156
4198
  noBg: { type: Boolean }
4157
4199
  },
4158
4200
  setup(e) {
4159
- const t = e, { sizeClasses: r, iconClasses: s } = Ct({ props: le(t) }), o = c(() => {
4160
- var v, g, u;
4161
- if (!((v = t.user) != null && v.name.length))
4201
+ const t = e, { sizeClasses: r, iconClasses: s } = $t({ props: le(t) }), a = c(() => {
4202
+ var b, y, u;
4203
+ if (!((b = t.user) != null && b.name.length))
4162
4204
  return;
4163
- const p = t.user.name.split(" "), x = ((g = p[0]) == null ? void 0 : g[0]) || "", y = ((u = p[1]) == null ? void 0 : u[0]) || "";
4164
- return t.size === "sm" || t.size === "xs" ? x : x + y;
4165
- }), n = c(() => t.noBorder ? "" : "border-2 border-foundation"), d = c(() => t.noBg ? "" : "bg-primary"), h = c(() => t.hoverEffect ? "hover:border-primary focus:border-primary active:scale-95" : ""), i = c(() => t.active ? "border-primary" : "");
4166
- return (p, x) => (a(), m("div", {
4167
- class: b([
4205
+ const d = t.user.name.split(" "), v = ((y = d[0]) == null ? void 0 : y[0]) || "", x = ((u = d[1]) == null ? void 0 : u[0]) || "";
4206
+ return t.size === "sm" || t.size === "xs" ? v : v + x;
4207
+ }), l = c(() => t.noBorder ? "" : "border-2 border-foundation"), h = c(() => t.noBg ? "" : "bg-primary"), p = c(() => t.hoverEffect ? "hover:border-primary focus:border-primary active:scale-95" : ""), i = c(() => t.active ? "border-primary" : "");
4208
+ return (d, v) => (o(), m("div", {
4209
+ class: g([
4168
4210
  "text-foreground-on-primary flex shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold uppercase transition",
4169
- l(r),
4170
- d.value,
4171
- n.value,
4211
+ n(r),
4172
4212
  h.value,
4213
+ l.value,
4214
+ p.value,
4173
4215
  i.value
4174
4216
  ])
4175
4217
  }, [
4176
- D(p.$slots, "default", {}, () => {
4177
- var y;
4218
+ E(d.$slots, "default", {}, () => {
4219
+ var x;
4178
4220
  return [
4179
- (y = e.user) != null && y.avatar ? (a(), m("div", {
4221
+ (x = e.user) != null && x.avatar ? (o(), m("div", {
4180
4222
  key: 0,
4181
4223
  class: "h-full w-full bg-cover bg-center bg-no-repeat",
4182
4224
  style: ne({ backgroundImage: `url('${e.user.avatar}')` })
4183
- }, null, 4)) : o.value ? (a(), m("div", Xa, V(o.value), 1)) : (a(), m("div", Za, [
4184
- z(l(Kt), {
4185
- class: b(l(s))
4225
+ }, null, 4)) : a.value ? (o(), m("div", Wa, z(a.value), 1)) : (o(), m("div", Ha, [
4226
+ V(n(Kt), {
4227
+ class: g(n(s))
4186
4228
  }, null, 8, ["class"])
4187
4229
  ]))
4188
4230
  ];
4189
4231
  }),
4190
- D(p.$slots, "absolute-anchor")
4232
+ E(d.$slots, "absolute-anchor")
4191
4233
  ], 2));
4192
4234
  }
4193
- }), sr = /* @__PURE__ */ _({
4235
+ }), Jo = /* @__PURE__ */ j({
4194
4236
  __name: "AvatarGroup",
4195
4237
  props: {
4196
4238
  users: { default: () => [] },
@@ -4199,44 +4241,44 @@ const Xa = {
4199
4241
  maxCount: { default: void 0 }
4200
4242
  },
4201
4243
  setup(e) {
4202
- const t = e, r = O(null), s = O(null), { hiddenItemCount: o } = xt({
4244
+ const t = e, r = O(null), s = O(null), { hiddenItemCount: a } = kt({
4203
4245
  elementToWatchForChanges: r,
4204
4246
  itemContainer: s,
4205
4247
  trackResize: !0,
4206
4248
  trackMutations: !0
4207
- }), { heightClasses: n } = Ct({ props: le(t) }), d = c(() => t.maxCount ? Math.max(t.users.length - t.maxCount, 0) : 0), h = c(
4208
- () => o.value + d.value
4249
+ }), { heightClasses: l } = $t({ props: le(t) }), h = c(() => t.maxCount ? Math.max(t.users.length - t.maxCount, 0) : 0), p = c(
4250
+ () => a.value + h.value
4209
4251
  ), i = c(
4210
4252
  () => t.maxCount ? t.users.slice(0, t.maxCount) : t.users
4211
4253
  );
4212
- return (p, x) => (a(), m("div", {
4254
+ return (d, v) => (o(), m("div", {
4213
4255
  ref_key: "elementToWatchForChanges",
4214
4256
  ref: r,
4215
- class: b(`flex ${e.overlap ? "-space-x-2" : ""}`)
4257
+ class: g(`flex ${e.overlap ? "-space-x-2" : ""}`)
4216
4258
  }, [
4217
4259
  f("div", {
4218
4260
  ref_key: "itemContainer",
4219
4261
  ref: s,
4220
- class: b(`flex flex-wrap overflow-hidden ${e.overlap ? "-space-x-2 " : ""} ${l(n)}`)
4262
+ class: g(`flex flex-wrap overflow-hidden ${e.overlap ? "-space-x-2 " : ""} ${n(l)}`)
4221
4263
  }, [
4222
- (a(!0), m(K, null, G(i.value, (y, v) => (a(), L(De, {
4223
- key: y.id || v,
4224
- user: y,
4264
+ (o(!0), m(K, null, G(i.value, (x, b) => (o(), L(De, {
4265
+ key: x.id || b,
4266
+ user: x,
4225
4267
  size: e.size
4226
4268
  }, null, 8, ["user", "size"]))), 128))
4227
4269
  ], 2),
4228
- h.value ? (a(), L(De, {
4270
+ p.value ? (o(), L(De, {
4229
4271
  key: 0,
4230
4272
  size: e.size
4231
4273
  }, {
4232
4274
  default: M(() => [
4233
- R(" +" + V(h.value), 1)
4275
+ R(" +" + z(p.value), 1)
4234
4276
  ]),
4235
4277
  _: 1
4236
4278
  }, 8, ["size"])) : I("", !0)
4237
4279
  ], 2));
4238
4280
  }
4239
- }), Na = /* @__PURE__ */ _({
4281
+ }), Ka = /* @__PURE__ */ j({
4240
4282
  __name: "Icon",
4241
4283
  props: {
4242
4284
  loading: { type: Boolean, default: !0 },
@@ -4258,17 +4300,17 @@ const Xa = {
4258
4300
  }
4259
4301
  return s.join(" ");
4260
4302
  });
4261
- return (s, o) => (a(), L(l(ct), {
4262
- class: b(r.value)
4303
+ return (s, a) => (o(), L(n(dt), {
4304
+ class: g(r.value)
4263
4305
  }, null, 8, ["class"]));
4264
4306
  }
4265
- }), Qa = { class: "flex flex-col items-center space-y-2" }, Ja = {
4307
+ }), Ga = { class: "flex flex-col items-center space-y-2" }, Xa = {
4266
4308
  key: 1,
4267
4309
  class: "relative group"
4268
- }, Ya = { class: "opacity-0 transition-all absolute group-hover:opacity-100 inset-0 flex items-end justify-center bottom-4" }, eo = {
4310
+ }, Za = { class: "opacity-0 transition-all absolute group-hover:opacity-100 inset-0 flex items-end justify-center bottom-4" }, Na = {
4269
4311
  key: 2,
4270
4312
  class: "w-full text-center text-danger text-sm"
4271
- }, nr = /* @__PURE__ */ _({
4313
+ }, Yo = /* @__PURE__ */ j({
4272
4314
  __name: "AvatarEditable",
4273
4315
  props: nt({
4274
4316
  modelValue: null,
@@ -4284,37 +4326,37 @@ const Xa = {
4284
4326
  }),
4285
4327
  emits: nt(["save", "update:modelValue"], ["update:editMode"]),
4286
4328
  setup(e, { expose: t, emit: r }) {
4287
- const s = jt({
4329
+ const s = Tt({
4288
4330
  loader: () => import("./AvatarEditor-ce4e7960.js"),
4289
- loadingComponent: Na,
4331
+ loadingComponent: Ka,
4290
4332
  delay: 100
4291
- }), o = r, n = e, { value: d, errorMessage: h } = Ie(n.name, n.rules, {
4292
- validateOnMount: n.validateOnMount,
4293
- validateOnValueUpdate: n.validateOnValueUpdate,
4294
- initialValue: n.modelValue || void 0
4295
- }), i = it(e, "editMode", { local: !0 }), p = c(
4333
+ }), a = r, l = e, { value: h, errorMessage: p } = Se(l.name, l.rules, {
4334
+ validateOnMount: l.validateOnMount,
4335
+ validateOnValueUpdate: l.validateOnValueUpdate,
4336
+ initialValue: l.modelValue || void 0
4337
+ }), i = it(e, "editMode", { local: !0 }), d = c(
4296
4338
  () => ({
4297
- avatar: d.value,
4298
- name: n.placeholder
4339
+ avatar: h.value,
4340
+ name: l.placeholder
4299
4341
  })
4300
- ), x = (g) => {
4301
- d.value = g, o("save", g);
4342
+ ), v = (y) => {
4343
+ h.value = y, a("save", y);
4302
4344
  };
4303
- return t({ open: () => i.value = !0, close: () => i.value = !1 }), (g, u) => (a(), m("div", Qa, [
4304
- i.value ? (a(), L(l(s), {
4345
+ return t({ open: () => i.value = !0, close: () => i.value = !1 }), (y, u) => (o(), m("div", Ga, [
4346
+ i.value ? (o(), L(n(s), {
4305
4347
  key: 0,
4306
- user: p.value,
4348
+ user: d.value,
4307
4349
  disabled: e.disabled,
4308
4350
  size: e.size,
4309
4351
  onCancel: u[0] || (u[0] = (S) => i.value = !1),
4310
- onSave: x
4311
- }, null, 8, ["user", "disabled", "size"])) : (a(), m("div", Ja, [
4312
- z(De, {
4313
- user: p.value,
4352
+ onSave: v
4353
+ }, null, 8, ["user", "disabled", "size"])) : (o(), m("div", Xa, [
4354
+ V(De, {
4355
+ user: d.value,
4314
4356
  size: e.size
4315
4357
  }, null, 8, ["user", "size"]),
4316
- f("div", Ya, [
4317
- z(oe, {
4358
+ f("div", Za, [
4359
+ V(oe, {
4318
4360
  disabled: e.disabled,
4319
4361
  color: "secondary",
4320
4362
  onClick: u[1] || (u[1] = (S) => i.value = !0)
@@ -4326,7 +4368,7 @@ const Xa = {
4326
4368
  }, 8, ["disabled"])
4327
4369
  ])
4328
4370
  ])),
4329
- l(h) ? (a(), m("div", eo, V(l(h)), 1)) : I("", !0)
4371
+ n(p) ? (o(), m("div", Na, z(n(p)), 1)) : I("", !0)
4330
4372
  ]));
4331
4373
  }
4332
4374
  });
@@ -4339,26 +4381,26 @@ class ue extends Error {
4339
4381
  * Default message if none is passed
4340
4382
  */
4341
4383
  se(ue, "defaultMessage", "Unexpected error occurred");
4342
- class to extends ue {
4384
+ class Qa extends ue {
4343
4385
  }
4344
- se(to, "defaultMessage", "An unexpected logic error occurred!");
4345
- class so extends ue {
4386
+ se(Qa, "defaultMessage", "An unexpected logic error occurred!");
4387
+ class Ja extends ue {
4346
4388
  }
4347
- se(so, "defaultMessage", "Attempting to access an uninitialized resource");
4348
- class no extends ue {
4389
+ se(Ja, "defaultMessage", "Attempting to access an uninitialized resource");
4390
+ class Ya extends ue {
4349
4391
  }
4350
- se(no, "defaultMessage", "getCurrentInstance() returned null. Method must be called at the top of a setup function");
4351
- class lo extends ue {
4392
+ se(Ya, "defaultMessage", "getCurrentInstance() returned null. Method must be called at the top of a setup function");
4393
+ class eo extends ue {
4352
4394
  }
4353
- se(lo, "defaultMessage", "Operation not supported in current (server or client) environment");
4395
+ se(eo, "defaultMessage", "Operation not supported in current (server or client) environment");
4354
4396
  var Je = /* @__PURE__ */ ((e) => (e.AnyAudio = "audio/*", e.AnyVideo = "video/*", e.AnyImage = "image/*", e))(Je || {});
4355
- function ao(e, t) {
4397
+ function to(e, t) {
4356
4398
  const r = Rt(
4357
4399
  Object.values(Je),
4358
4400
  t
4359
4401
  );
4360
- for (const n of r)
4361
- switch (n) {
4402
+ for (const l of r)
4403
+ switch (l) {
4362
4404
  case "audio/*":
4363
4405
  if (e.type.startsWith("audio"))
4364
4406
  return !0;
@@ -4372,23 +4414,23 @@ function ao(e, t) {
4372
4414
  return !0;
4373
4415
  break;
4374
4416
  }
4375
- const s = Dt(t, r), o = oo(e.name);
4376
- if (!o)
4377
- return new $t();
4378
- for (const n of s)
4379
- if (n.toLowerCase() === o.toLowerCase())
4417
+ const s = Dt(t, r), a = so(e.name);
4418
+ if (!a)
4419
+ return new It();
4420
+ for (const l of s)
4421
+ if (l.toLowerCase() === a.toLowerCase())
4380
4422
  return !0;
4381
- return new It();
4423
+ return new St();
4382
4424
  }
4383
- function oo(e) {
4425
+ function so(e) {
4384
4426
  const t = e.split(".").pop() || null;
4385
4427
  return t ? `.${t}` : null;
4386
4428
  }
4387
- function ro(e) {
4429
+ function no(e) {
4388
4430
  return e.startsWith(".") || Object.values(Je).includes(e);
4389
4431
  }
4390
4432
  function rt(e) {
4391
- const t = (n) => parseFloat(n.toFixed(2)).toString();
4433
+ const t = (l) => parseFloat(l.toFixed(2)).toString();
4392
4434
  if (e < 1024)
4393
4435
  return `${e}bytes`;
4394
4436
  const r = e / 1024;
@@ -4397,10 +4439,10 @@ function rt(e) {
4397
4439
  const s = r / 1024;
4398
4440
  if (s < 1024)
4399
4441
  return `${t(s)}MB`;
4400
- const o = s / 1024;
4401
- return `${t(o)}GB`;
4442
+ const a = s / 1024;
4443
+ return `${t(a)}GB`;
4402
4444
  }
4403
- function io(e) {
4445
+ function lo(e) {
4404
4446
  const t = {
4405
4447
  name: e.name,
4406
4448
  lastModified: e.lastModified,
@@ -4409,69 +4451,69 @@ function io(e) {
4409
4451
  };
4410
4452
  return ds(JSON.stringify(t));
4411
4453
  }
4412
- class $t extends ue {
4413
- }
4414
- se($t, "defaultMessage", "The selected file has a missing extension");
4415
4454
  class It extends ue {
4416
4455
  }
4417
- se(It, "defaultMessage", "The selected file type is forbidden");
4418
- var uo = /* @__PURE__ */ ((e) => (e[e.Success = 1] = "Success", e[e.Failure = 2] = "Failure", e))(uo || {});
4419
- function co(e) {
4456
+ se(It, "defaultMessage", "The selected file has a missing extension");
4457
+ class St extends ue {
4458
+ }
4459
+ se(St, "defaultMessage", "The selected file type is forbidden");
4460
+ var ao = /* @__PURE__ */ ((e) => (e[e.Success = 1] = "Success", e[e.Failure = 2] = "Failure", e))(ao || {});
4461
+ function oo(e) {
4420
4462
  if (!e)
4421
4463
  return;
4422
- const t = e.split(",").map((r) => ro(r) ? r : null).filter((r) => r !== null);
4464
+ const t = e.split(",").map((r) => no(r) ? r : null).filter((r) => r !== null);
4423
4465
  return t.length ? t : void 0;
4424
4466
  }
4425
- function fo(e) {
4426
- const { disabled: t, accept: r, multiple: s, sizeLimit: o, countLimit: n } = e, d = c(() => co(l(r))), h = (i) => {
4427
- const p = [], x = d.value;
4428
- for (const y of i) {
4429
- const v = io(y), g = l(s) ? l(n) : 1;
4430
- if (!p.find((u) => u.id === v)) {
4431
- if (g && p.length >= g)
4467
+ function ro(e) {
4468
+ const { disabled: t, accept: r, multiple: s, sizeLimit: a, countLimit: l } = e, h = c(() => oo(n(r))), p = (i) => {
4469
+ const d = [], v = h.value;
4470
+ for (const x of i) {
4471
+ const b = lo(x), y = n(s) ? n(l) : 1;
4472
+ if (!d.find((u) => u.id === b)) {
4473
+ if (y && d.length >= y)
4432
4474
  break;
4433
- if (x) {
4434
- const u = ao(y, x);
4475
+ if (v) {
4476
+ const u = to(x, v);
4435
4477
  if (u instanceof Error) {
4436
- p.push({
4437
- file: y,
4438
- id: v,
4478
+ d.push({
4479
+ file: x,
4480
+ id: b,
4439
4481
  error: u
4440
4482
  });
4441
4483
  continue;
4442
4484
  }
4443
4485
  }
4444
- if (y.size > l(o)) {
4445
- p.push({
4446
- file: y,
4447
- id: v,
4448
- error: new St(
4486
+ if (x.size > n(a)) {
4487
+ d.push({
4488
+ file: x,
4489
+ id: b,
4490
+ error: new Bt(
4449
4491
  `The selected file's size (${rt(
4450
- y.size
4451
- )}) is too big (over ${rt(l(o))})`
4492
+ x.size
4493
+ )}) is too big (over ${rt(n(a))})`
4452
4494
  )
4453
4495
  });
4454
4496
  continue;
4455
4497
  }
4456
- p.push({ file: y, id: v, error: null });
4498
+ d.push({ file: x, id: b, error: null });
4457
4499
  }
4458
4500
  }
4459
- return p;
4501
+ return d;
4460
4502
  };
4461
4503
  return {
4462
4504
  /**
4463
4505
  * Validate incoming files and build UploadableFileItem structs out of them
4464
4506
  */
4465
4507
  buildUploadableFiles: (i) => {
4466
- if (!l(t || !1))
4467
- return h(i);
4508
+ if (!n(t || !1))
4509
+ return p(i);
4468
4510
  }
4469
4511
  };
4470
4512
  }
4471
- class St extends ue {
4513
+ class Bt extends ue {
4472
4514
  }
4473
- se(St, "defaultMessage", "The selected file's size is too large");
4474
- const po = ["accept", "multiple"], lr = /* @__PURE__ */ _({
4515
+ se(Bt, "defaultMessage", "The selected file's size is too large");
4516
+ const io = ["accept", "multiple"], er = /* @__PURE__ */ j({
4475
4517
  __name: "Zone",
4476
4518
  props: {
4477
4519
  accept: null,
@@ -4482,114 +4524,114 @@ const po = ["accept", "multiple"], lr = /* @__PURE__ */ _({
4482
4524
  },
4483
4525
  emits: ["files-selected"],
4484
4526
  setup(e, { expose: t, emit: r }) {
4485
- const s = r, o = e, n = O(null), d = O(null), { buildUploadableFiles: h } = fo({
4486
- sizeLimit: c(() => o.sizeLimit),
4487
- countLimit: c(() => o.countLimit),
4488
- accept: c(() => o.accept),
4489
- multiple: c(() => o.multiple),
4490
- disabled: c(() => o.disabled)
4491
- }), i = (v) => {
4492
- const g = h(v);
4493
- g != null && g.length && s("files-selected", { files: g });
4494
- }, { isOverDropZone: p } = ks(n, (v) => {
4495
- v != null && v.length && i(v);
4496
- }), x = () => {
4497
- const v = d.value;
4498
- if (!v)
4527
+ const s = r, a = e, l = O(null), h = O(null), { buildUploadableFiles: p } = ro({
4528
+ sizeLimit: c(() => a.sizeLimit),
4529
+ countLimit: c(() => a.countLimit),
4530
+ accept: c(() => a.accept),
4531
+ multiple: c(() => a.multiple),
4532
+ disabled: c(() => a.disabled)
4533
+ }), i = (b) => {
4534
+ const y = p(b);
4535
+ y != null && y.length && s("files-selected", { files: y });
4536
+ }, { isOverDropZone: d } = ks(l, (b) => {
4537
+ b != null && b.length && i(b);
4538
+ }), v = () => {
4539
+ const b = h.value;
4540
+ if (!b)
4499
4541
  return;
4500
- const g = [...v.files || []];
4501
- v.value = "", g.length && i(g);
4502
- }, y = () => {
4503
- var v;
4504
- (v = d.value) == null || v.click();
4542
+ const y = [...b.files || []];
4543
+ b.value = "", y.length && i(y);
4544
+ }, x = () => {
4545
+ var b;
4546
+ (b = h.value) == null || b.click();
4505
4547
  };
4506
4548
  return t({
4507
- triggerPicker: y
4508
- }), (v, g) => (a(), m("div", {
4549
+ triggerPicker: x
4550
+ }), (b, y) => (o(), m("div", {
4509
4551
  ref_key: "fileUploadZone",
4510
- ref: n,
4552
+ ref: l,
4511
4553
  class: "file-upload-zone"
4512
4554
  }, [
4513
- D(v.$slots, "default", {
4514
- isDraggingFiles: l(p),
4515
- openFilePicker: y,
4516
- activatorOn: { click: y }
4555
+ E(b.$slots, "default", {
4556
+ isDraggingFiles: n(d),
4557
+ openFilePicker: x,
4558
+ activatorOn: { click: x }
4517
4559
  }),
4518
4560
  f("input", {
4519
4561
  ref_key: "fileInput",
4520
- ref: d,
4562
+ ref: h,
4521
4563
  type: "file",
4522
4564
  class: "hidden",
4523
4565
  accept: e.accept,
4524
4566
  multiple: e.multiple,
4525
- onClick: g[0] || (g[0] = pe(() => {
4567
+ onClick: y[0] || (y[0] = pe(() => {
4526
4568
  }, ["stop"])),
4527
- onChange: x
4528
- }, null, 40, po)
4569
+ onChange: v
4570
+ }, null, 40, io)
4529
4571
  ], 512));
4530
4572
  }
4531
4573
  });
4532
4574
  export {
4533
4575
  ue as BaseError,
4534
- uo as BlobUploadStatus,
4535
- Yo as CommonAlert,
4536
- Oo as CommonAnimationInstructional,
4576
+ ao as BlobUploadStatus,
4577
+ Zo as CommonAlert,
4578
+ So as CommonAnimationInstructional,
4537
4579
  Xe as CommonBadge,
4538
4580
  Qe as CommonLoadingBar,
4539
- Na as CommonLoadingIcon,
4540
- zo as CommonStepsBullet,
4541
- Vo as CommonStepsNumber,
4581
+ Ka as CommonLoadingIcon,
4582
+ Io as CommonStepsBullet,
4583
+ $o as CommonStepsNumber,
4542
4584
  Us as CommonTextLink,
4543
- no as ComposableInvokedOutOfScopeError,
4585
+ Ya as ComposableInvokedOutOfScopeError,
4544
4586
  oe as FormButton,
4545
- Lo as FormCardButton,
4546
- Mo as FormCheckbox,
4547
- Ro as FormClipboardInput,
4548
- lr as FormFileUploadZone,
4549
- Ao as FormRadio,
4550
- To as FormSelectBadges,
4551
- wt as FormSelectBase,
4552
- jo as FormSelectSourceApps,
4553
- Fo as FormSwitch,
4554
- tr as FormTags,
4555
- Po as FormTextArea,
4556
- wl as FormTextInput,
4557
- Bo as GlobalToastRenderer,
4587
+ Bo as FormCardButton,
4588
+ zo as FormCheckbox,
4589
+ jo as FormClipboardInput,
4590
+ er as FormFileUploadZone,
4591
+ Vo as FormRadio,
4592
+ Ao as FormSelectBadges,
4593
+ Ct as FormSelectBase,
4594
+ Mo as FormSelectSourceApps,
4595
+ Po as FormSwitch,
4596
+ Qo as FormTags,
4597
+ Oo as FormTextArea,
4598
+ bl as FormTextInput,
4599
+ Co as GlobalToastRenderer,
4558
4600
  de as GridListToggleValue,
4559
4601
  Re as HorizontalDirection,
4560
- Qo as InfiniteLoading,
4561
- qo as LayoutDialog,
4562
- Wo as LayoutDialogSection,
4563
- Ho as LayoutDisclosure,
4564
- Ko as LayoutGridListToggle,
4565
- Xo as LayoutMenu,
4566
- Jo as LayoutPanel,
4567
- No as LayoutTable,
4568
- Zo as LayoutTabs,
4569
- to as LogicError,
4570
- $e as ModifierKeys,
4571
- Nl as SourceAppBadge,
4572
- Ce as TailwindBreakpoints,
4573
- ya as ThrottleOrDebounce,
4574
- we as ToastNotificationType,
4575
- so as UninitializedResourceAccessError,
4602
+ Go as InfiniteLoading,
4603
+ Ro as LayoutDialog,
4604
+ Do as LayoutDialogSection,
4605
+ Eo as LayoutDisclosure,
4606
+ Uo as LayoutGridListToggle,
4607
+ Wo as LayoutMenu,
4608
+ Xo as LayoutPanel,
4609
+ Ko as LayoutTable,
4610
+ Ho as LayoutTabs,
4611
+ Qa as LogicError,
4612
+ Ie as ModifierKeys,
4613
+ Kl as SourceAppBadge,
4614
+ $e as TailwindBreakpoints,
4615
+ ha as ThrottleOrDebounce,
4616
+ Ce as ToastNotificationType,
4617
+ Ja as UninitializedResourceAccessError,
4576
4618
  Je as UniqueFileTypeSpecifier,
4577
- lo as UnsupportedEnvironmentError,
4619
+ eo as UnsupportedEnvironmentError,
4578
4620
  De as UserAvatar,
4579
- nr as UserAvatarEditable,
4580
- sr as UserAvatarGroup,
4581
- _o as ValidationHelpers,
4621
+ Yo as UserAvatarEditable,
4622
+ Jo as UserAvatarGroup,
4623
+ Lo as ValidationHelpers,
4582
4624
  Fe as clientOs,
4583
- Do as getKeyboardShortcutTitle,
4584
- gt as keyboardClick,
4585
- Eo as onKeyboardShortcut,
4625
+ _o as getKeyboardShortcutTitle,
4626
+ bt as keyboardClick,
4627
+ To as onKeyboardShortcut,
4586
4628
  rt as prettyFileSize,
4587
- Uo as useFormCheckboxModel,
4588
- kt as useFormSelectChildInternals,
4589
- Go as useOnBeforeWindowUnload,
4590
- ka as useResponsiveHorizontalDirectionCalculation,
4591
- xa as useWindowResizeHandler,
4592
- xt as useWrappingContainerHiddenCount,
4593
- er as writableAsyncComputed
4629
+ Fo as useFormCheckboxModel,
4630
+ wt as useFormSelectChildInternals,
4631
+ qo as useOnBeforeWindowUnload,
4632
+ ga as useResponsiveHorizontalDirectionCalculation,
4633
+ va as useWindowResizeHandler,
4634
+ kt as useWrappingContainerHiddenCount,
4635
+ No as writableAsyncComputed
4594
4636
  };
4595
4637
  //# sourceMappingURL=lib.js.map