@speckle/ui-components 2.14.8-alpha8 → 2.14.8-alpha9

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,5 +1,5 @@
1
- import { defineComponent as V, resolveDynamicComponent as q, computed as u, openBlock as l, createBlock as j, unref as t, normalizeClass as v, withCtx as B, createCommentVNode as _, renderSlot as R, createTextVNode as D, createElementBlock as m, createElementVNode as r, createVNode as I, Transition as fe, toDisplayString as S, toRefs as Z, Fragment as U, renderList as H, ref as A, mergeProps as ne, onMounted as ee, withDirectives as te, isRef as le, vModelText as _e, useSlots as Se, vModelDynamic as Fe, pushScopeId as Ee, popScopeId as We, watch as Y, withModifiers as Ie, normalizeStyle as ie, onBeforeUnmount as Be } from "vue";
2
- import { isObjectLike as ke, clamp as we, isString as se, isUndefined as X, isArray as W, debounce as Le, throttle as Ue, noop as qe } from "lodash";
1
+ import { defineComponent as V, resolveDynamicComponent as q, computed as u, openBlock as l, createBlock as j, unref as t, normalizeClass as b, withCtx as B, createCommentVNode as _, renderSlot as R, createTextVNode as D, createElementBlock as m, createElementVNode as r, createVNode as I, Transition as fe, toDisplayString as S, toRefs as Z, Fragment as U, renderList as H, ref as A, mergeProps as ne, onMounted as ee, withDirectives as te, isRef as le, vModelText as _e, useSlots as Se, vModelDynamic as Fe, pushScopeId as Ee, popScopeId as We, watch as Y, withModifiers as Ie, normalizeStyle as ie, onBeforeUnmount as Be } from "vue";
2
+ import { isObjectLike as ke, clamp as Ce, isString as se, isUndefined as X, isArray as W, debounce as Le, throttle as Ue, noop as qe } from "lodash";
3
3
  import { ArrowPathIcon as He, ChevronUpIcon as Pe, ChevronDownIcon as Ge, XMarkIcon as Ke, MagnifyingGlassIcon as Xe, CheckIcon as Ne, Bars3Icon as Je, Squares2X2Icon as Qe } from "@heroicons/vue/24/solid";
4
4
  import { CheckCircleIcon as Ye, XCircleIcon as Ze, ExclamationCircleIcon as et, InformationCircleIcon as tt, XMarkIcon as st, CheckIcon as nt, ExclamationTriangleIcon as lt } from "@heroicons/vue/24/outline";
5
5
  import { XMarkIcon as ae, CheckIcon as at, CheckCircleIcon as je, ExclamationCircleIcon as Ve, EnvelopeIcon as ot, KeyIcon as rt } from "@heroicons/vue/20/solid";
@@ -7,7 +7,7 @@ import { useField as pe } from "vee-validate";
7
7
  import { nanoid as he } from "nanoid";
8
8
  import { isNullOrUndefined as it, SourceApps as ut, getClientOperatingSystem as ct, OperatingSystem as ue } from "@speckle/shared";
9
9
  import { useResizeObserver as dt, useMutationObserver as ft, onKeyDown as pt, isClient as me } from "@vueuse/core";
10
- import { Listbox as ht, ListboxLabel as mt, ListboxButton as gt, ListboxOptions as yt, ListboxOption as vt, TransitionRoot as bt, Dialog as xt, TransitionChild as Ce, DialogPanel as kt, Disclosure as wt, DisclosureButton as Ct, DisclosurePanel as $t, Menu as _t, MenuButton as St, MenuItems as It, MenuItem as Bt } from "@headlessui/vue";
10
+ import { Listbox as ht, ListboxLabel as mt, ListboxButton as gt, ListboxOptions as yt, ListboxOption as bt, TransitionRoot as vt, Dialog as xt, TransitionChild as we, DialogPanel as kt, Disclosure as Ct, DisclosureButton as wt, DisclosurePanel as $t, Menu as _t, MenuButton as St, MenuItems as It, MenuItem as Bt } from "@headlessui/vue";
11
11
  import { directive as Lt } from "vue-tippy";
12
12
  import Pt from "v3-infinite-loading";
13
13
  const jt = {
@@ -140,114 +140,114 @@ const jt = {
140
140
  }
141
141
  },
142
142
  emits: ["click"],
143
- setup(e, { emit: n }) {
144
- const s = e, a = q("NuxtLink"), o = q("RouterLink"), i = u(() => s.linkComponent ? s.linkComponent : s.external ? "a" : ke(a) ? a : ke(o) ? o : "a"), f = u(() => {
145
- if (!s.to)
146
- return s.submit ? "submit" : "button";
147
- }), c = u(() => s.disabled || s.loading), d = u(() => s.loading ? He : s.iconLeft), p = u(() => {
143
+ setup(e, { emit: s }) {
144
+ const n = e, a = q("NuxtLink"), o = q("RouterLink"), i = u(() => n.linkComponent ? n.linkComponent : n.external ? "a" : ke(a) ? a : ke(o) ? o : "a"), f = u(() => {
145
+ if (!n.to)
146
+ return n.submit ? "submit" : "button";
147
+ }), c = u(() => n.disabled || n.loading), d = u(() => n.loading ? He : n.iconLeft), p = u(() => {
148
148
  const h = [];
149
149
  if (h.push("border-2"), c.value)
150
150
  h.push(
151
- s.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
151
+ n.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
152
152
  );
153
153
  else
154
- switch (s.color) {
154
+ switch (n.color) {
155
155
  case "invert":
156
156
  h.push(
157
- s.outlined ? "border-foundation dark:border-foreground" : "bg-foundation dark:bg-foreground border-transparent"
157
+ n.outlined ? "border-foundation dark:border-foreground" : "bg-foundation dark:bg-foreground border-transparent"
158
158
  );
159
159
  break;
160
160
  case "card":
161
161
  h.push(
162
- s.outlined ? "border-foundation-2 shadow" : "bg-foundation-2 dark:bg-foundation-2 border-foundation shadow"
162
+ n.outlined ? "border-foundation-2 shadow" : "bg-foundation-2 dark:bg-foundation-2 border-foundation shadow"
163
163
  );
164
164
  break;
165
165
  case "danger":
166
- h.push(s.outlined ? "border-danger" : "bg-danger border-danger");
166
+ h.push(n.outlined ? "border-danger" : "bg-danger border-danger");
167
167
  break;
168
168
  case "secondary":
169
169
  h.push(
170
- s.outlined ? "border-foundation" : "bg-foundation border-foundation-2"
170
+ n.outlined ? "border-foundation" : "bg-foundation border-foundation-2"
171
171
  );
172
172
  break;
173
173
  case "warning":
174
- h.push(s.outlined ? "border-warning" : "bg-warning border-warning");
174
+ h.push(n.outlined ? "border-warning" : "bg-warning border-warning");
175
175
  break;
176
176
  case "info":
177
- h.push(s.outlined ? "border-info" : "bg-info border-info");
177
+ h.push(n.outlined ? "border-info" : "bg-info border-info");
178
178
  break;
179
179
  case "success":
180
- h.push(s.outlined ? "border-success" : "bg-success border-success");
180
+ h.push(n.outlined ? "border-success" : "bg-success border-success");
181
181
  break;
182
182
  case "default":
183
183
  default:
184
184
  h.push(
185
- s.outlined ? "border-primary hover:border-primary-focus" : "bg-primary hover:bg-primary-focus border-transparent"
185
+ n.outlined ? "border-primary hover:border-primary-focus" : "bg-primary hover:bg-primary-focus border-transparent"
186
186
  );
187
187
  break;
188
188
  }
189
189
  return h.join(" ");
190
- }), x = u(() => {
190
+ }), k = u(() => {
191
191
  const h = [];
192
- if (!s.text && !s.link)
192
+ if (!n.text && !n.link)
193
193
  if (c.value)
194
194
  h.push(
195
- (s.outlined, "text-foreground-disabled")
195
+ (n.outlined, "text-foreground-disabled")
196
196
  );
197
197
  else
198
- switch (s.color) {
198
+ switch (n.color) {
199
199
  case "invert":
200
200
  h.push(
201
- s.outlined ? "text-foundation dark:text-foreground" : "text-primary"
201
+ n.outlined ? "text-foundation dark:text-foreground" : "text-primary"
202
202
  );
203
203
  break;
204
204
  case "card":
205
- h.push((s.outlined, "text-foreground"));
205
+ h.push((n.outlined, "text-foreground"));
206
206
  break;
207
207
  case "danger":
208
208
  h.push(
209
- s.outlined ? "text-danger" : "text-foundation dark:text-foreground"
209
+ n.outlined ? "text-danger" : "text-foundation dark:text-foreground"
210
210
  );
211
211
  break;
212
212
  case "warning":
213
213
  h.push(
214
- s.outlined ? "text-warning" : "text-foundation dark:text-foreground"
214
+ n.outlined ? "text-warning" : "text-foundation dark:text-foreground"
215
215
  );
216
216
  break;
217
217
  case "info":
218
218
  h.push(
219
- s.outlined ? "text-info" : "text-foundation dark:text-foreground"
219
+ n.outlined ? "text-info" : "text-foundation dark:text-foreground"
220
220
  );
221
221
  break;
222
222
  case "success":
223
223
  h.push(
224
- s.outlined ? "text-success" : "text-foundation dark:text-foreground"
224
+ n.outlined ? "text-success" : "text-foundation dark:text-foreground"
225
225
  );
226
226
  break;
227
227
  case "secondary":
228
228
  h.push(
229
- (s.outlined, "text-foreground hover:text-primary")
229
+ (n.outlined, "text-foreground hover:text-primary")
230
230
  );
231
231
  break;
232
232
  case "default":
233
233
  default:
234
234
  h.push(
235
- s.outlined ? "text-primary hover:text-primary-focus" : "text-foundation dark:text-foreground"
235
+ n.outlined ? "text-primary hover:text-primary-focus" : "text-foundation dark:text-foreground"
236
236
  );
237
237
  break;
238
238
  }
239
239
  else
240
- c.value ? h.push("text-foreground-disabled") : s.color === "invert" ? h.push(
240
+ c.value ? h.push("text-foreground-disabled") : n.color === "invert" ? h.push(
241
241
  "text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
242
- ) : s.color === "secondary" ? h.push("text-foreground-2 hover:text-primary-focus") : s.color === "success" ? h.push("text-success") : s.color === "warning" ? h.push("text-warning") : s.color === "info" ? h.push("text-info") : s.color === "danger" ? h.push("text-danger") : h.push("text-primary hover:text-primary-focus");
242
+ ) : n.color === "secondary" ? h.push("text-foreground-2 hover:text-primary-focus") : n.color === "success" ? h.push("text-success") : n.color === "warning" ? h.push("text-warning") : n.color === "info" ? h.push("text-info") : n.color === "danger" ? h.push("text-danger") : h.push("text-primary hover:text-primary-focus");
243
243
  return h.join(" ");
244
244
  }), y = u(() => {
245
245
  const h = [];
246
- return h.push(s.rounded ? "rounded-full" : "rounded-md"), h.join(" ");
246
+ return h.push(n.rounded ? "rounded-full" : "rounded-md"), h.join(" ");
247
247
  }), g = u(() => {
248
248
  const h = [];
249
249
  if (!c.value)
250
- switch (s.color) {
250
+ switch (n.color) {
251
251
  case "invert":
252
252
  h.push("hover:ring-4 ring-white/50");
253
253
  break;
@@ -269,8 +269,8 @@ const jt = {
269
269
  break;
270
270
  }
271
271
  return h.join(" ");
272
- }), b = u(() => {
273
- switch (s.size) {
272
+ }), v = u(() => {
273
+ switch (n.size) {
274
274
  case "xs":
275
275
  return "h-5 text-xs font-medium xxx-tracking-wide";
276
276
  case "sm":
@@ -284,7 +284,7 @@ const jt = {
284
284
  return "h-8 text-base font-medium xxx-tracking-wide";
285
285
  }
286
286
  }), L = u(() => {
287
- switch (s.size) {
287
+ switch (n.size) {
288
288
  case "xs":
289
289
  return "px-1";
290
290
  case "sm":
@@ -299,28 +299,28 @@ const jt = {
299
299
  }
300
300
  }), P = u(() => {
301
301
  const h = [];
302
- return s.fullWidth && h.push("w-full"), c.value && h.push("cursor-not-allowed"), h.join(" ");
302
+ return n.fullWidth && h.push("w-full"), c.value && h.push("cursor-not-allowed"), h.join(" ");
303
303
  }), $ = u(() => {
304
304
  const h = [];
305
- return !c.value && !s.link && !s.text && h.push("active:scale-[0.97]"), !c.value && s.link && h.push(
305
+ return !c.value && !n.link && !n.text && h.push("active:scale-[0.97]"), !c.value && n.link && h.push(
306
306
  "underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
307
307
  ), h.join(" ");
308
- }), C = u(() => {
309
- const h = s.link || s.text;
308
+ }), w = u(() => {
309
+ const h = n.link || n.text;
310
310
  return [
311
311
  "transition inline-flex justify-center items-center space-x-2 outline-none select-none",
312
312
  P.value,
313
- b.value,
314
- x.value,
313
+ v.value,
314
+ k.value,
315
315
  h ? "" : p.value,
316
316
  h ? "" : y.value,
317
317
  h ? "" : g.value,
318
- s.link ? "" : L.value,
318
+ n.link ? "" : L.value,
319
319
  $.value
320
320
  ].join(" ");
321
- }), k = u(() => {
321
+ }), C = u(() => {
322
322
  const h = [""];
323
- switch (s.loading && h.push("animate-spin"), s.size) {
323
+ switch (n.loading && h.push("animate-spin"), n.size) {
324
324
  case "xs":
325
325
  h.push("h-3 w-3");
326
326
  break;
@@ -344,14 +344,14 @@ const jt = {
344
344
  h.preventDefault(), h.stopPropagation(), h.stopImmediatePropagation();
345
345
  return;
346
346
  }
347
- n("click", h);
347
+ s("click", h);
348
348
  };
349
349
  return (h, O) => (l(), j(q(e.to ? t(i) : "button"), {
350
350
  href: e.to,
351
351
  to: e.to,
352
352
  type: t(f),
353
353
  external: e.external,
354
- class: v(t(C)),
354
+ class: b(t(w)),
355
355
  disabled: t(c),
356
356
  role: "button",
357
357
  onClick: E
@@ -359,25 +359,25 @@ const jt = {
359
359
  default: B(() => [
360
360
  t(d) ? (l(), j(q(t(d)), {
361
361
  key: 0,
362
- class: v(`${t(k)} ${e.hideText ? "" : "mr-2"}`)
362
+ class: b(`${t(C)} ${e.hideText ? "" : "mr-2"}`)
363
363
  }, null, 8, ["class"])) : _("", !0),
364
364
  e.hideText ? (l(), m("div", jt, "   ")) : R(h.$slots, "default", { key: 1 }, () => [
365
365
  D("Button")
366
366
  ], !0),
367
367
  e.iconRight || !e.loading ? (l(), j(q(e.iconRight), {
368
368
  key: 3,
369
- class: v(`${t(k)} ${e.hideText ? "" : "ml-2"}`)
369
+ class: b(`${t(C)} ${e.hideText ? "" : "ml-2"}`)
370
370
  }, null, 8, ["class"])) : _("", !0)
371
371
  ]),
372
372
  _: 3
373
373
  }, 8, ["href", "to", "type", "external", "class", "disabled"]));
374
374
  }
375
375
  });
376
- const Oe = (e, n) => {
377
- const s = e.__vccOpts || e;
378
- for (const [a, o] of n)
379
- s[a] = o;
380
- return s;
376
+ const Oe = (e, s) => {
377
+ const n = e.__vccOpts || e;
378
+ for (const [a, o] of s)
379
+ n[a] = o;
380
+ return n;
381
381
  }, oe = /* @__PURE__ */ Oe(Vt, [["__scopeId", "data-v-38aa371e"]]), Ot = /* @__PURE__ */ V({
382
382
  __name: "Link",
383
383
  props: {
@@ -427,13 +427,13 @@ const Oe = (e, n) => {
427
427
  }
428
428
  },
429
429
  emits: ["click"],
430
- setup(e, { emit: n }) {
431
- const s = e, a = (o) => {
432
- if (s.disabled) {
430
+ setup(e, { emit: s }) {
431
+ const n = e, a = (o) => {
432
+ if (n.disabled) {
433
433
  o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation();
434
434
  return;
435
435
  }
436
- n("click", o);
436
+ s("click", o);
437
437
  };
438
438
  return (o, i) => (l(), j(oe, {
439
439
  link: "",
@@ -479,17 +479,17 @@ const Mt = {
479
479
  notification: null
480
480
  },
481
481
  emits: ["update:notification"],
482
- setup(e, { emit: n }) {
483
- const s = e, a = u(
482
+ setup(e, { emit: s }) {
483
+ const n = e, a = u(
484
484
  () => {
485
485
  var f, c;
486
- return !((f = s.notification) != null && f.description) && !((c = s.notification) != null && c.cta);
486
+ return !((f = n.notification) != null && f.description) && !((c = n.notification) != null && c.cta);
487
487
  }
488
488
  ), o = () => {
489
- n("update:notification", null);
489
+ s("update:notification", null);
490
490
  }, i = (f) => {
491
491
  var c, d, p;
492
- (p = (d = (c = s.notification) == null ? void 0 : c.cta) == null ? void 0 : d.onClick) == null || p.call(d, f), o();
492
+ (p = (d = (c = n.notification) == null ? void 0 : c.cta) == null ? void 0 : d.onClick) == null || p.call(d, f), o();
493
493
  };
494
494
  return (f, c) => (l(), m("div", Mt, [
495
495
  r("div", At, [
@@ -542,7 +542,7 @@ const Mt = {
542
542
  ])) : _("", !0)
543
543
  ]),
544
544
  r("div", {
545
- class: v(["ml-4 flex flex-shrink-0", { "self-center": t(a) }])
545
+ class: b(["ml-4 flex flex-shrink-0", { "self-center": t(a) }])
546
546
  }, [
547
547
  r("button", {
548
548
  type: "button",
@@ -583,43 +583,43 @@ const Mt = {
583
583
  clickableIcon: { type: Boolean }
584
584
  },
585
585
  emits: ["click-icon"],
586
- setup(e, { emit: n }) {
587
- const s = e, a = u(
588
- () => s.colorClasses || "bg-blue-100 text-blue-800"
586
+ setup(e, { emit: s }) {
587
+ const n = e, a = u(
588
+ () => n.colorClasses || "bg-blue-100 text-blue-800"
589
589
  ), o = u(
590
- () => s.dotIconColorClasses || "text-blue-400"
590
+ () => n.dotIconColorClasses || "text-blue-400"
591
591
  ), i = u(() => {
592
592
  const p = [
593
593
  "inline-flex items-center",
594
594
  a.value,
595
- s.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
595
+ n.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
596
596
  ];
597
- return s.rounded ? (p.push("rounded"), p.push(
598
- s.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
597
+ return n.rounded ? (p.push("rounded"), p.push(
598
+ n.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
599
599
  )) : (p.push("rounded-full"), p.push(
600
- s.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
600
+ n.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
601
601
  )), p.join(" ");
602
602
  }), f = u(() => {
603
603
  const p = [
604
604
  "mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
605
605
  ];
606
- return s.clickableIcon ? p.push("cursor-pointer") : p.push("cursor-default"), p.join(" ");
606
+ return n.clickableIcon ? p.push("cursor-pointer") : p.push("cursor-default"), p.join(" ");
607
607
  }), c = u(() => [
608
608
  "-ml-0.5 mr-1.5 h-2 w-2",
609
609
  o.value
610
610
  ].join(" ")), d = (p) => {
611
- if (!s.clickableIcon) {
611
+ if (!n.clickableIcon) {
612
612
  p.stopPropagation(), p.stopImmediatePropagation(), p.preventDefault();
613
613
  return;
614
614
  }
615
- n("click-icon", p);
615
+ s("click-icon", p);
616
616
  };
617
- return (p, x) => (l(), m("span", {
618
- class: v(t(i))
617
+ return (p, k) => (l(), m("span", {
618
+ class: b(t(i))
619
619
  }, [
620
620
  e.dot ? (l(), m("svg", {
621
621
  key: 0,
622
- class: v(t(c)),
622
+ class: b(t(c)),
623
623
  fill: "currentColor",
624
624
  viewBox: "0 0 8 8"
625
625
  }, Gt, 2)) : _("", !0),
@@ -628,11 +628,11 @@ const Mt = {
628
628
  ]),
629
629
  e.iconLeft ? (l(), m("button", {
630
630
  key: 1,
631
- class: v(t(f)),
632
- onClick: x[0] || (x[0] = (y) => d(y))
631
+ class: b(t(f)),
632
+ onClick: k[0] || (k[0] = (y) => d(y))
633
633
  }, [
634
634
  (l(), j(q(e.iconLeft), {
635
- class: v(["h-4 w-4", t(o)])
635
+ class: b(["h-4 w-4", t(o)])
636
636
  }, null, 8, ["class"]))
637
637
  ], 2)) : _("", !0)
638
638
  ], 2));
@@ -646,8 +646,8 @@ var J = /* @__PURE__ */ ((e) => (e[e.sm = 640] = "sm", e[e.md = 746] = "md", e[e
646
646
  function Me(e) {
647
647
  const {
648
648
  props: {
649
- modelValue: n,
650
- steps: s,
649
+ modelValue: s,
650
+ steps: n,
651
651
  orientation: a,
652
652
  goVerticalBelow: o,
653
653
  nonInteractive: i,
@@ -657,29 +657,29 @@ function Me(e) {
657
657
  } = e, d = u(
658
658
  () => (a == null ? void 0 : a.value) === "vertical" ? "vertical" : "horizontal"
659
659
  ), p = u({
660
- get: () => we((n == null ? void 0 : n.value) || 0, -1, s.value.length),
661
- set: ($) => c("update:modelValue", we($, 0, s.value.length))
662
- }), x = ($) => `${$ + 1}`, y = ($) => $ === p.value, g = ($) => $ < p.value, b = ($, C) => {
660
+ get: () => Ce((s == null ? void 0 : s.value) || 0, -1, n.value.length),
661
+ set: ($) => c("update:modelValue", Ce($, 0, n.value.length))
662
+ }), k = ($) => `${$ + 1}`, y = ($) => $ === p.value, g = ($) => $ < p.value, v = ($, w) => {
663
663
  var E;
664
664
  if (i != null && i.value) {
665
- C == null || C.preventDefault(), C == null || C.stopPropagation(), C == null || C.stopImmediatePropagation();
665
+ w == null || w.preventDefault(), w == null || w.stopPropagation(), w == null || w.stopImmediatePropagation();
666
666
  return;
667
667
  }
668
668
  p.value = $;
669
- const k = s.value[p.value];
670
- (E = k == null ? void 0 : k.onClick) == null || E.call(k);
669
+ const C = n.value[p.value];
670
+ (E = C == null ? void 0 : C.onClick) == null || E.call(C);
671
671
  }, L = u(() => {
672
672
  const $ = ["flex"];
673
- let C, k;
674
- return (f == null ? void 0 : f.value) === "xs" ? (C = "space-x-2", k = "space-y-1") : (f == null ? void 0 : f.value) === "sm" ? (C = "space-x-4", k = "space-y-1") : (C = "space-x-8", k = "space-y-4"), $.push("flex"), d.value === "vertical" || o != null && o.value ? ($.push(`flex-col ${k} justify-center`), (o == null ? void 0 : o.value) === J.sm ? $.push(
675
- `sm:flex-row sm:space-y-0 sm:justify-start sm:${C} sm:items-center`
673
+ let w, C;
674
+ return (f == null ? void 0 : f.value) === "xs" ? (w = "space-x-2", C = "space-y-1") : (f == null ? void 0 : f.value) === "sm" ? (w = "space-x-4", C = "space-y-1") : (w = "space-x-8", C = "space-y-4"), $.push("flex"), d.value === "vertical" || o != null && o.value ? ($.push(`flex-col ${C} justify-center`), (o == null ? void 0 : o.value) === J.sm ? $.push(
675
+ `sm:flex-row sm:space-y-0 sm:justify-start sm:${w} sm:items-center`
676
676
  ) : (o == null ? void 0 : o.value) === J.md ? $.push(
677
- `md:flex-row md:space-y-0 md:justify-start md:${C} md:items-center`
677
+ `md:flex-row md:space-y-0 md:justify-start md:${w} md:items-center`
678
678
  ) : (o == null ? void 0 : o.value) === J.lg ? $.push(
679
- `lg:flex-row lg:space-y-0 lg:justify-start lg:${C} lg:items-center`
679
+ `lg:flex-row lg:space-y-0 lg:justify-start lg:${w} lg:items-center`
680
680
  ) : (o == null ? void 0 : o.value) === J.xl && $.push(
681
- `xl:flex-row xl:space-y-0 xl:justify-start xl:${C} xl:items-center`
682
- )) : $.push(`flex-row ${C} items-center`), $.join(" ");
681
+ `xl:flex-row xl:space-y-0 xl:justify-start xl:${w} xl:items-center`
682
+ )) : $.push(`flex-row ${w} items-center`), $.join(" ");
683
683
  }), P = u(() => {
684
684
  const $ = ["flex items-center"];
685
685
  return i != null && i.value || $.push("cursor-pointer"), $.join(" ");
@@ -688,8 +688,8 @@ function Me(e) {
688
688
  value: p,
689
689
  isCurrentStep: y,
690
690
  isFinishedStep: g,
691
- switchStep: b,
692
- getStepDisplayValue: x,
691
+ switchStep: v,
692
+ getStepDisplayValue: k,
693
693
  listClasses: L,
694
694
  linkClasses: P,
695
695
  orientation: d
@@ -730,8 +730,8 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
730
730
  stepsPadding: null
731
731
  },
732
732
  emits: ["update:modelValue"],
733
- setup(e, { emit: n }) {
734
- const s = e, {
733
+ setup(e, { emit: s }) {
734
+ const n = e, {
735
735
  isCurrentStep: a,
736
736
  isFinishedStep: o,
737
737
  switchStep: i,
@@ -739,15 +739,15 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
739
739
  listClasses: c,
740
740
  linkClasses: d
741
741
  } = Me({
742
- props: Z(s),
743
- emit: n
742
+ props: Z(n),
743
+ emit: s
744
744
  });
745
- return (p, x) => (l(), m("nav", {
745
+ return (p, k) => (l(), m("nav", {
746
746
  class: "flex justify-center",
747
747
  "aria-label": e.ariaLabel || "Progress steps"
748
748
  }, [
749
749
  r("ol", {
750
- class: v(t(c))
750
+ class: b(t(c))
751
751
  }, [
752
752
  (l(!0), m(U, null, H(e.steps, (y, g) => (l(), m("li", {
753
753
  key: y.name
@@ -755,8 +755,8 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
755
755
  t(o)(g) ? (l(), m("a", {
756
756
  key: 0,
757
757
  href: y.href,
758
- class: v(t(d)),
759
- onClick: (b) => t(i)(g, b)
758
+ class: b(t(d)),
759
+ onClick: (v) => t(i)(g, v)
760
760
  }, [
761
761
  r("div", Qt, [
762
762
  r("div", Yt, [
@@ -770,9 +770,9 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
770
770
  ], 10, Jt)) : t(a)(g) ? (l(), m("a", {
771
771
  key: 1,
772
772
  href: y.href,
773
- class: v(t(d)),
773
+ class: b(t(d)),
774
774
  "aria-current": "step",
775
- onClick: (b) => t(i)(g, b)
775
+ onClick: (v) => t(i)(g, v)
776
776
  }, [
777
777
  r("div", ss, [
778
778
  r("div", ns, S(t(f)(g)), 1),
@@ -784,8 +784,8 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
784
784
  ], 10, ts)) : (l(), m("a", {
785
785
  key: 2,
786
786
  href: y.href,
787
- class: v(t(d)),
788
- onClick: (b) => t(i)(g, b)
787
+ class: b(t(d)),
788
+ onClick: (v) => t(i)(g, v)
789
789
  }, [
790
790
  r("div", rs, [
791
791
  r("div", is, S(t(f)(g)), 1),
@@ -808,13 +808,13 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
808
808
  }, ys = {
809
809
  key: 0,
810
810
  class: "h-3 w-3 rounded-full bg-foreground"
811
- }, vs = /* @__PURE__ */ r("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), bs = /* @__PURE__ */ r("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), xs = ["href", "onClick"], ks = {
811
+ }, bs = /* @__PURE__ */ r("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), vs = /* @__PURE__ */ r("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), xs = ["href", "onClick"], ks = {
812
812
  class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
813
813
  "aria-hidden": "true"
814
- }, ws = {
814
+ }, Cs = {
815
815
  key: 0,
816
816
  class: "h-3 w-3 rounded-full bg-foreground-2"
817
- }, Cs = {
817
+ }, ws = {
818
818
  key: 1,
819
819
  class: "h-4 w-4 rounded-full bg-foreground-disabled"
820
820
  }, fl = /* @__PURE__ */ V({
@@ -830,33 +830,33 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
830
830
  stepsPadding: null
831
831
  },
832
832
  emits: ["update:modelValue"],
833
- setup(e, { emit: n }) {
834
- const s = e, { isCurrentStep: a, isFinishedStep: o, switchStep: i, listClasses: f, linkClasses: c } = Me({
835
- props: Z(s),
836
- emit: n
833
+ setup(e, { emit: s }) {
834
+ const n = e, { isCurrentStep: a, isFinishedStep: o, switchStep: i, listClasses: f, linkClasses: c } = Me({
835
+ props: Z(n),
836
+ emit: s
837
837
  }), d = u(() => {
838
- const x = ["h6 font-medium leading-7"];
838
+ const k = ["h6 font-medium leading-7"];
839
839
  let y;
840
- return s.stepsPadding === "xs" ? y = "ml-1" : s.stepsPadding === "sm" ? y = "ml-2" : y = "ml-3", x.push(y), s.basic && x.push("sr-only"), x.join(" ");
840
+ return n.stepsPadding === "xs" ? y = "ml-1" : n.stepsPadding === "sm" ? y = "ml-2" : y = "ml-3", k.push(y), n.basic && k.push("sr-only"), k.join(" ");
841
841
  }), p = u(() => {
842
- const x = [];
843
- return s.basic && x.push("basic"), x.join(" ");
842
+ const k = [];
843
+ return n.basic && k.push("basic"), k.join(" ");
844
844
  });
845
- return (x, y) => (l(), m("nav", {
845
+ return (k, y) => (l(), m("nav", {
846
846
  class: "flex justify-center",
847
847
  "aria-label": e.ariaLabel || "Progress steps"
848
848
  }, [
849
849
  r("ol", {
850
- class: v([t(f), t(p)])
850
+ class: b([t(f), t(p)])
851
851
  }, [
852
- (l(!0), m(U, null, H(e.steps, (g, b) => (l(), m("li", {
852
+ (l(!0), m(U, null, H(e.steps, (g, v) => (l(), m("li", {
853
853
  key: g.name
854
854
  }, [
855
- t(o)(b) ? (l(), m("a", {
855
+ t(o)(v) ? (l(), m("a", {
856
856
  key: 0,
857
857
  href: g.href,
858
- class: v(t(c)),
859
- onClick: (L) => t(i)(b, L)
858
+ class: b(t(c)),
859
+ onClick: (L) => t(i)(v, L)
860
860
  }, [
861
861
  r("span", ps, [
862
862
  e.basic ? (l(), m("span", hs)) : (l(), j(t(je), {
@@ -866,35 +866,35 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
866
866
  }))
867
867
  ]),
868
868
  r("span", {
869
- class: v(["text-foreground", t(d)])
869
+ class: b(["text-foreground", t(d)])
870
870
  }, S(g.name), 3)
871
- ], 10, fs)) : t(a)(b) ? (l(), m("a", {
871
+ ], 10, fs)) : t(a)(v) ? (l(), m("a", {
872
872
  key: 1,
873
873
  href: g.href,
874
- class: v(t(c)),
874
+ class: b(t(c)),
875
875
  "aria-current": "step",
876
- onClick: (L) => t(i)(b, L)
876
+ onClick: (L) => t(i)(v, L)
877
877
  }, [
878
878
  r("span", gs, [
879
879
  e.basic ? (l(), m("span", ys)) : (l(), m(U, { key: 1 }, [
880
- vs,
881
- bs
880
+ bs,
881
+ vs
882
882
  ], 64))
883
883
  ]),
884
884
  r("span", {
885
- class: v(["text-primary-focus", t(d)])
885
+ class: b(["text-primary-focus", t(d)])
886
886
  }, S(g.name), 3)
887
887
  ], 10, ms)) : (l(), m("a", {
888
888
  key: 2,
889
889
  href: g.href,
890
- class: v(t(c)),
891
- onClick: (L) => t(i)(b, L)
890
+ class: b(t(c)),
891
+ onClick: (L) => t(i)(v, L)
892
892
  }, [
893
893
  r("div", ks, [
894
- e.basic ? (l(), m("span", ws)) : (l(), m("div", Cs))
894
+ e.basic ? (l(), m("span", Cs)) : (l(), m("div", ws))
895
895
  ]),
896
896
  r("p", {
897
- class: v(["text-foreground-disabled", t(d)])
897
+ class: b(["text-foreground-disabled", t(d)])
898
898
  }, S(g.name), 3)
899
899
  ], 10, xs))
900
900
  ]))), 128))
@@ -908,24 +908,24 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
908
908
  modelValue: { type: Boolean }
909
909
  },
910
910
  emits: ["update:modelValue", "click"],
911
- setup(e, { emit: n }) {
912
- const s = e, a = u(() => {
911
+ setup(e, { emit: s }) {
912
+ const n = e, a = u(() => {
913
913
  const i = [
914
914
  "h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
915
915
  "normal px-16 py-5 shadow rounded transition active:scale-95"
916
916
  ];
917
- return s.disabled ? i.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (i.push(
918
- s.modelValue ? "bg-primary-focus text-foreground-on-primary" : "bg-foundation text-foreground"
917
+ return n.disabled ? i.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (i.push(
918
+ n.modelValue ? "bg-primary-focus text-foreground-on-primary" : "bg-foundation text-foreground"
919
919
  ), i.push("ring-outline-2 hover:ring-4")), i.join(" ");
920
920
  }), o = (i) => {
921
- if (s.disabled) {
921
+ if (n.disabled) {
922
922
  i.preventDefault(), i.stopPropagation(), i.stopImmediatePropagation();
923
923
  return;
924
924
  }
925
- n("update:modelValue", !s.modelValue), n("click", i);
925
+ s("update:modelValue", !n.modelValue), s("click", i);
926
926
  };
927
927
  return (i, f) => (l(), m("button", {
928
- class: v(t(a)),
928
+ class: b(t(a)),
929
929
  disabled: e.disabled,
930
930
  onClick: o
931
931
  }, [
@@ -1031,21 +1031,21 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
1031
1031
  },
1032
1032
  emits: ["update:modelValue"],
1033
1033
  setup(e) {
1034
- const n = e, s = (P) => `${P}-${he()}`, a = u(() => n.value || n.name), {
1034
+ const s = e, n = (P) => `${P}-${he()}`, a = u(() => s.value || s.name), {
1035
1035
  checked: o,
1036
1036
  errorMessage: i,
1037
1037
  handleChange: f
1038
- } = pe(n.name, n.rules, {
1039
- validateOnMount: n.validateOnMount,
1038
+ } = pe(s.name, s.rules, {
1039
+ validateOnMount: s.validateOnMount,
1040
1040
  type: "checkbox",
1041
1041
  checkedValue: a,
1042
- initialValue: n.modelValue || void 0
1042
+ initialValue: s.modelValue || void 0
1043
1043
  }), c = (P) => {
1044
- n.disabled || f(P);
1045
- }, d = u(() => n.label || n.name), p = u(() => i.value ? "border-danger-lighter" : "border-foreground-4 "), x = u(() => n.description || i.value), y = u(() => `${n.name}-description`), g = u(() => {
1044
+ s.disabled || f(P);
1045
+ }, d = u(() => s.label || s.name), p = u(() => i.value ? "border-danger-lighter" : "border-foreground-4 "), k = u(() => s.description || i.value), y = u(() => `${s.name}-description`), g = u(() => {
1046
1046
  const P = [];
1047
- return n.inlineDescription ? P.push("inline ml-2") : P.push("block"), i.value ? P.push("text-danger") : P.push("text-foreground-2"), P.join(" ");
1048
- }), b = A(s("checkbox")), L = u(() => n.id || b.value);
1047
+ return s.inlineDescription ? P.push("inline ml-2") : P.push("block"), i.value ? P.push("text-danger") : P.push("text-foreground-2"), P.join(" ");
1048
+ }), v = A(n("checkbox")), L = u(() => s.id || v.value);
1049
1049
  return (P, $) => (l(), m("div", _s, [
1050
1050
  r("div", Ss, [
1051
1051
  r("input", ne({
@@ -1062,55 +1062,55 @@ const Nt = ["aria-label"], Jt = ["href", "onClick"], Qt = { class: "flex space-x
1062
1062
  r("div", Bs, [
1063
1063
  r("label", {
1064
1064
  for: t(L),
1065
- class: v(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1065
+ class: b(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1066
1066
  }, [
1067
1067
  r("span", null, S(t(d)), 1),
1068
1068
  e.showRequired ? (l(), m("span", Ps, "*")) : _("", !0)
1069
1069
  ], 10, Ls),
1070
- t(x) ? (l(), m("p", {
1070
+ t(k) ? (l(), m("p", {
1071
1071
  key: 0,
1072
1072
  id: t(y),
1073
- class: v(t(g))
1074
- }, S(t(x)), 11, js)) : _("", !0)
1073
+ class: b(t(g))
1074
+ }, S(t(k)), 11, js)) : _("", !0)
1075
1075
  ])
1076
1076
  ]));
1077
1077
  }
1078
1078
  });
1079
1079
  function Ae(e) {
1080
- const { props: n, inputEl: s, emit: a } = e, { value: o, errorMessage: i } = pe(n.name, n.rules, {
1081
- validateOnMount: t(n.validateOnMount),
1082
- validateOnValueUpdate: t(n.validateOnValueUpdate),
1083
- initialValue: t(n.modelValue) || void 0
1080
+ const { props: s, inputEl: n, emit: a } = e, { value: o, errorMessage: i } = pe(s.name, s.rules, {
1081
+ validateOnMount: t(s.validateOnMount),
1082
+ validateOnValueUpdate: t(s.validateOnValueUpdate),
1083
+ initialValue: t(s.modelValue) || void 0
1084
1084
  }), f = u(() => {
1085
- const k = ["block label text-foreground-2 mb-2"];
1086
- return t(n.showLabel) || k.push("sr-only"), k.join(" ");
1085
+ const C = ["block label text-foreground-2 mb-2"];
1086
+ return t(s.showLabel) || C.push("sr-only"), C.join(" ");
1087
1087
  }), c = u(() => {
1088
- const k = [
1088
+ const C = [
1089
1089
  "block w-full rounded focus:outline-none text-foreground transition-all",
1090
1090
  "disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
1091
1091
  "placeholder:text-foreground-2"
1092
1092
  ];
1093
- return i.value ? k.push(
1093
+ return i.value ? C.push(
1094
1094
  "border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
1095
- ) : k.push("border-0 focus:ring-2 focus:ring-outline-2"), t(n.color) === "foundation" ? k.push("bg-foundation shadow-sm hover:shadow") : k.push("bg-foundation-page"), k.join(" ");
1096
- }), d = A(he()), p = u(() => t(n.label) || t(n.name)), x = u(() => {
1097
- const k = i.value;
1098
- return !k || !t(n.useLabelInErrors) ? k : k.replace("Value", p.value);
1095
+ ) : C.push("border-0 focus:ring-2 focus:ring-outline-2"), t(s.color) === "foundation" ? C.push("bg-foundation shadow-sm hover:shadow") : C.push("bg-foundation-page"), C.join(" ");
1096
+ }), d = A(he()), p = u(() => t(s.label) || t(s.name)), k = u(() => {
1097
+ const C = i.value;
1098
+ return !C || !t(s.useLabelInErrors) ? C : C.replace("Value", p.value);
1099
1099
  }), y = u(
1100
- () => x.value && t(n.hideErrorMessage)
1101
- ), g = u(() => x.value || t(n.help)), b = u(() => !!g.value), L = u(
1102
- () => b.value ? `${t(n.name)}-${d.value}` : void 0
1100
+ () => k.value && t(s.hideErrorMessage)
1101
+ ), g = u(() => k.value || t(s.help)), v = u(() => !!g.value), L = u(
1102
+ () => v.value ? `${t(s.name)}-${d.value}` : void 0
1103
1103
  ), P = u(() => {
1104
- const k = ["mt-2 text-sm"];
1105
- return k.push(i.value ? "text-danger" : "text-foreground-2"), k.join(" ");
1104
+ const C = ["mt-2 text-sm"];
1105
+ return C.push(i.value ? "text-danger" : "text-foreground-2"), C.join(" ");
1106
1106
  }), $ = () => {
1107
- var k;
1108
- (k = s.value) == null || k.focus();
1109
- }, C = () => {
1107
+ var C;
1108
+ (C = n.value) == null || C.focus();
1109
+ }, w = () => {
1110
1110
  o.value = "", a("change", { value: "" }), a("clear");
1111
1111
  };
1112
1112
  return ee(() => {
1113
- t(n.autoFocus) && $();
1113
+ t(s.autoFocus) && $();
1114
1114
  }), {
1115
1115
  coreClasses: c,
1116
1116
  title: p,
@@ -1119,8 +1119,8 @@ function Ae(e) {
1119
1119
  helpTipClasses: P,
1120
1120
  helpTip: g,
1121
1121
  hideHelpTip: y,
1122
- errorMessage: x,
1123
- clear: C,
1122
+ errorMessage: k,
1123
+ clear: w,
1124
1124
  focus: $,
1125
1125
  labelClasses: f
1126
1126
  };
@@ -1149,32 +1149,32 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1149
1149
  color: { default: "page" }
1150
1150
  },
1151
1151
  emits: ["update:modelValue", "change", "input", "clear"],
1152
- setup(e, { expose: n, emit: s }) {
1152
+ setup(e, { expose: s, emit: n }) {
1153
1153
  const a = e, o = A(null), {
1154
1154
  coreClasses: i,
1155
1155
  title: f,
1156
1156
  value: c,
1157
1157
  helpTipId: d,
1158
1158
  helpTipClasses: p,
1159
- helpTip: x,
1159
+ helpTip: k,
1160
1160
  errorMessage: y,
1161
1161
  labelClasses: g,
1162
- clear: b,
1162
+ clear: v,
1163
1163
  focus: L
1164
1164
  } = Ae({
1165
1165
  props: Z(a),
1166
- emit: s,
1166
+ emit: n,
1167
1167
  inputEl: o
1168
1168
  }), P = u(() => {
1169
1169
  const $ = ["pl-2"];
1170
1170
  return a.showClear && y.value ? $.push("pr-12") : (a.showClear || y.value) && $.push("pr-8"), $.join(" ");
1171
1171
  });
1172
- return n({ focus: L }), ($, C) => (l(), m("div", {
1173
- class: v([e.fullWidth ? "w-full" : ""])
1172
+ return s({ focus: L }), ($, w) => (l(), m("div", {
1173
+ class: b([e.fullWidth ? "w-full" : ""])
1174
1174
  }, [
1175
1175
  r("label", {
1176
1176
  for: e.name,
1177
- class: v(t(g))
1177
+ class: b(t(g))
1178
1178
  }, [
1179
1179
  r("span", null, S(t(f)), 1)
1180
1180
  ], 10, Os),
@@ -1183,7 +1183,7 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1183
1183
  id: e.name,
1184
1184
  ref_key: "inputElement",
1185
1185
  ref: o,
1186
- "onUpdate:modelValue": C[0] || (C[0] = (k) => le(c) ? c.value = k : null),
1186
+ "onUpdate:modelValue": w[0] || (w[0] = (C) => le(c) ? c.value = C : null),
1187
1187
  name: e.name,
1188
1188
  class: [t(i), t(P), "min-h-[4rem]"],
1189
1189
  placeholder: e.placeholder,
@@ -1191,8 +1191,8 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1191
1191
  "aria-invalid": t(y) ? "true" : "false",
1192
1192
  "aria-describedby": t(d)
1193
1193
  }, $.$attrs, {
1194
- onChange: C[1] || (C[1] = (k) => $.$emit("change", { event: k, value: t(c) })),
1195
- onInput: C[2] || (C[2] = (k) => $.$emit("input", { event: k, value: t(c) }))
1194
+ onChange: w[1] || (w[1] = (C) => $.$emit("change", { event: C, value: t(c) })),
1195
+ onInput: w[2] || (w[2] = (C) => $.$emit("input", { event: C, value: t(c) }))
1196
1196
  }), null, 16, As), [
1197
1197
  [_e, t(c)]
1198
1198
  ]),
@@ -1200,10 +1200,10 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1200
1200
  key: 0,
1201
1201
  title: "Clear input",
1202
1202
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
1203
- onClick: C[3] || (C[3] = //@ts-ignore
1204
- (...k) => t(b) && t(b)(...k)),
1205
- onKeydown: C[4] || (C[4] = //@ts-ignore
1206
- (...k) => t(b) && t(b)(...k))
1203
+ onClick: w[3] || (w[3] = //@ts-ignore
1204
+ (...C) => t(v) && t(v)(...C)),
1205
+ onKeydown: w[4] || (w[4] = //@ts-ignore
1206
+ (...C) => t(v) && t(v)(...C))
1207
1207
  }, [
1208
1208
  Ds,
1209
1209
  I(t(ae), {
@@ -1213,7 +1213,7 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1213
1213
  ], 32)) : _("", !0),
1214
1214
  t(y) ? (l(), m("div", {
1215
1215
  key: 1,
1216
- class: v([
1216
+ class: b([
1217
1217
  "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1218
1218
  e.showClear ? "pr-8" : "pr-2"
1219
1219
  ])
@@ -1228,8 +1228,8 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1228
1228
  t(d) ? (l(), m("p", {
1229
1229
  key: 0,
1230
1230
  id: t(d),
1231
- class: v(t(p))
1232
- }, S(t(x)), 11, Ts)) : _("", !0)
1231
+ class: b(t(p))
1232
+ }, S(t(k)), 11, Ts)) : _("", !0)
1233
1233
  ], 2));
1234
1234
  }
1235
1235
  }), zs = ["for"], Fs = { class: "relative" }, Es = {
@@ -1376,31 +1376,31 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1376
1376
  }
1377
1377
  },
1378
1378
  emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
1379
- setup(e, { expose: n, emit: s }) {
1379
+ setup(e, { expose: s, emit: n }) {
1380
1380
  const a = e, o = Se(), i = A(null), {
1381
1381
  coreClasses: f,
1382
1382
  title: c,
1383
1383
  value: d,
1384
1384
  helpTipId: p,
1385
- helpTipClasses: x,
1385
+ helpTipClasses: k,
1386
1386
  helpTip: y,
1387
1387
  hideHelpTip: g,
1388
- errorMessage: b,
1388
+ errorMessage: v,
1389
1389
  clear: L,
1390
1390
  focus: P,
1391
1391
  labelClasses: $
1392
1392
  } = Ae({
1393
1393
  props: Z(a),
1394
- emit: s,
1394
+ emit: n,
1395
1395
  inputEl: i
1396
- }), C = u(() => {
1396
+ }), w = u(() => {
1397
1397
  const O = ["h-5 w-5"];
1398
- return b.value ? O.push("text-danger") : O.push("text-foreground-2"), O.join(" ");
1399
- }), k = u(
1398
+ return v.value ? O.push("text-danger") : O.push("text-foreground-2"), O.join(" ");
1399
+ }), C = u(
1400
1400
  () => ["email", "password"].includes(a.type) || a.customIcon
1401
1401
  ), E = u(() => {
1402
1402
  const O = [];
1403
- return k.value ? O.push("pl-8") : O.push("pl-2"), o["input-right"] || (b.value || a.showClear) && (b.value && a.showClear ? O.push("pr-12") : O.push("pr-8")), O.join(" ");
1403
+ return C.value ? O.push("pl-8") : O.push("pl-2"), o["input-right"] || (v.value || a.showClear) && (v.value && a.showClear ? O.push("pr-12") : O.push("pr-8")), O.join(" ");
1404
1404
  }), h = u(() => {
1405
1405
  switch (a.size) {
1406
1406
  case "sm":
@@ -1414,28 +1414,28 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1414
1414
  return "h-8";
1415
1415
  }
1416
1416
  });
1417
- return n({ focus: P }), (O, z) => (l(), m("div", {
1418
- class: v([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1417
+ return s({ focus: P }), (O, z) => (l(), m("div", {
1418
+ class: b([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1419
1419
  }, [
1420
1420
  r("label", {
1421
1421
  for: e.name,
1422
- class: v(t($))
1422
+ class: b(t($))
1423
1423
  }, [
1424
1424
  r("span", null, S(t(c)), 1)
1425
1425
  ], 10, zs),
1426
1426
  r("div", Fs, [
1427
- t(k) ? (l(), m("div", Es, [
1427
+ t(C) ? (l(), m("div", Es, [
1428
1428
  e.customIcon ? (l(), j(q(e.customIcon), {
1429
1429
  key: 0,
1430
- class: v(t(C)),
1430
+ class: b(t(w)),
1431
1431
  "aria-hidden": "true"
1432
1432
  }, null, 8, ["class"])) : e.type === "email" ? (l(), j(t(ot), {
1433
1433
  key: 1,
1434
- class: v(t(C)),
1434
+ class: b(t(w)),
1435
1435
  "aria-hidden": "true"
1436
1436
  }, null, 8, ["class"])) : e.type === "password" ? (l(), j(t(rt), {
1437
1437
  key: 2,
1438
- class: v(t(C)),
1438
+ class: b(t(w)),
1439
1439
  "aria-hidden": "true"
1440
1440
  }, null, 8, ["class"])) : _("", !0)
1441
1441
  ])) : _("", !0),
@@ -1449,7 +1449,7 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1449
1449
  class: [t(f), t(E), t(h), e.inputClasses || ""],
1450
1450
  placeholder: e.placeholder,
1451
1451
  disabled: e.disabled,
1452
- "aria-invalid": t(b) ? "true" : "false",
1452
+ "aria-invalid": t(v) ? "true" : "false",
1453
1453
  "aria-describedby": t(p),
1454
1454
  role: "textbox"
1455
1455
  }, O.$attrs, {
@@ -1474,9 +1474,9 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1474
1474
  "aria-hidden": "true"
1475
1475
  })
1476
1476
  ], 32)) : _("", !0),
1477
- t(b) ? (l(), m("div", {
1477
+ t(v) ? (l(), m("div", {
1478
1478
  key: 1,
1479
- class: v([
1479
+ class: b([
1480
1480
  "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1481
1481
  e.showClear ? "pr-8" : "pr-2"
1482
1482
  ])
@@ -1486,22 +1486,22 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1486
1486
  "aria-hidden": "true"
1487
1487
  })
1488
1488
  ], 2)) : _("", !0),
1489
- e.showRequired && !t(b) ? (l(), m("div", qs, " * ")) : _("", !0)
1489
+ e.showRequired && !t(v) ? (l(), m("div", qs, " * ")) : _("", !0)
1490
1490
  ])
1491
1491
  ]),
1492
1492
  t(p) && !t(g) ? (l(), m("p", {
1493
1493
  key: 0,
1494
1494
  id: t(p),
1495
- class: v(t(x))
1495
+ class: b(t(k))
1496
1496
  }, S(t(y)), 11, Hs)) : _("", !0)
1497
1497
  ], 2));
1498
1498
  }
1499
- }), Ks = /^https?:\/\//, ge = /^[\w-_.+]+@[\w-_.+]+$/, Xs = (e) => (e || "").match(ge) ? !0 : "Value should be a valid e-mail address", Ns = (e) => (e || "").split(",").map((a) => a.trim()).every((a) => a.match(ge)) || "Value should be one or multiple comma-delimited e-mail addresses", Js = (e) => (se(e) && (e = e.trim()), e ? !0 : "Value is required"), Qs = (e, n) => (s, a) => s === a.form[e] ? !0 : `Value must be the same as in field '${n || e}'`, Ys = (e) => (n) => {
1500
- const { minLength: s, maxLength: a } = e;
1501
- return n = it(n) ? "" : n, se(n) ? !X(s) && n.length < s ? `Value needs to be at least ${s} characters long` : !X(a) && n.length > a ? `Value needs to be no more than ${a} characters long` : !0 : "Value should be a text string";
1502
- }, Zs = (e) => (n) => {
1503
- const { match: s, message: a } = e;
1504
- return se(n) ? s ? se(s) ? n.includes(s) ? !0 : a : s.test(n) ? !0 : a : !0 : "Value should be a text string";
1499
+ }), Ks = /^https?:\/\//, ge = /^[\w-_.+]+@[\w-_.+]+$/, Xs = (e) => (e || "").match(ge) ? !0 : "Value should be a valid e-mail address", Ns = (e) => (e || "").split(",").map((a) => a.trim()).every((a) => a.match(ge)) || "Value should be one or multiple comma-delimited e-mail addresses", Js = (e) => (se(e) && (e = e.trim()), e ? !0 : "Value is required"), Qs = (e, s) => (n, a) => n === a.form[e] ? !0 : `Value must be the same as in field '${s || e}'`, Ys = (e) => (s) => {
1500
+ const { minLength: n, maxLength: a } = e;
1501
+ return s = it(s) ? "" : s, se(s) ? !X(n) && s.length < n ? `Value needs to be at least ${n} characters long` : !X(a) && s.length > a ? `Value needs to be no more than ${a} characters long` : !0 : "Value should be a text string";
1502
+ }, Zs = (e) => (s) => {
1503
+ const { match: n, message: a } = e;
1504
+ return se(s) ? n ? se(n) ? s.includes(n) ? !0 : a : n.test(s) ? !0 : a : !0 : "Value should be a text string";
1505
1505
  }, yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1506
1506
  __proto__: null,
1507
1507
  VALID_EMAIL: ge,
@@ -1515,24 +1515,24 @@ const Os = ["for"], Ms = { class: "relative" }, As = ["id", "name", "placeholder
1515
1515
  }, Symbol.toStringTag, { value: "Module" }));
1516
1516
  function en(e) {
1517
1517
  const {
1518
- skipCalculation: n,
1519
- elementToWatchForChanges: s,
1518
+ skipCalculation: s,
1519
+ elementToWatchForChanges: n,
1520
1520
  itemContainer: a,
1521
1521
  trackResize: o = !1,
1522
1522
  trackMutations: i = !0
1523
1523
  } = e || {}, f = A(0), c = () => {
1524
1524
  const d = a.value;
1525
- if (n != null && n.value || !d)
1525
+ if (s != null && s.value || !d)
1526
1526
  return;
1527
1527
  const p = d.children;
1528
- let x = 0, y = 0, g;
1529
- for (const b of p) {
1530
- const L = b.offsetTop;
1531
- X(g) ? (g = L, x += 1) : L === g && (x += 1), y += 1;
1528
+ let k = 0, y = 0, g;
1529
+ for (const v of p) {
1530
+ const L = v.offsetTop;
1531
+ X(g) ? (g = L, k += 1) : L === g && (k += 1), y += 1;
1532
1532
  }
1533
- f.value = y - x;
1533
+ f.value = y - k;
1534
1534
  };
1535
- return o && dt(s, c), i && ft(s, c, {
1535
+ return o && dt(n, c), i && ft(n, c, {
1536
1536
  childList: !0,
1537
1537
  subtree: !0
1538
1538
  }), {
@@ -1540,36 +1540,36 @@ function en(e) {
1540
1540
  };
1541
1541
  }
1542
1542
  function tn(e) {
1543
- const { props: n, emit: s, dynamicVisibility: a } = e;
1543
+ const { props: s, emit: n, dynamicVisibility: a } = e;
1544
1544
  let o;
1545
1545
  if (a) {
1546
- const { elementToWatchForChanges: p, itemContainer: x } = a;
1546
+ const { elementToWatchForChanges: p, itemContainer: k } = a;
1547
1547
  o = en({
1548
1548
  skipCalculation: u(() => {
1549
1549
  var g;
1550
- return !((g = n.multiple) != null && g.value);
1550
+ return !((g = s.multiple) != null && g.value);
1551
1551
  }),
1552
1552
  elementToWatchForChanges: p,
1553
- itemContainer: x
1553
+ itemContainer: k
1554
1554
  }).hiddenItemCount;
1555
1555
  } else
1556
1556
  o = A(0);
1557
1557
  const i = u({
1558
1558
  get: () => {
1559
- var x, y;
1560
- const p = (x = n.modelValue) == null ? void 0 : x.value;
1561
- return (y = n.multiple) != null && y.value ? W(p) ? p : [] : W(p) ? void 0 : p;
1559
+ var k, y;
1560
+ const p = (k = s.modelValue) == null ? void 0 : k.value;
1561
+ return (y = s.multiple) != null && y.value ? W(p) ? p : [] : W(p) ? void 0 : p;
1562
1562
  },
1563
1563
  set: (p) => {
1564
- var x, y, g;
1565
- if ((x = n.multiple) != null && x.value && !W(p)) {
1564
+ var k, y, g;
1565
+ if ((k = s.multiple) != null && k.value && !W(p)) {
1566
1566
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1567
1567
  return;
1568
- } else if (!((y = n.multiple) != null && y.value) && W(p)) {
1568
+ } else if (!((y = s.multiple) != null && y.value) && W(p)) {
1569
1569
  console.warn("Attempting to set array value in selector w/ multiple=false");
1570
1570
  return;
1571
1571
  }
1572
- s("update:modelValue", (g = n.multiple) != null && g.value ? p || [] : p);
1572
+ n("update:modelValue", (g = s.multiple) != null && g.value ? p || [] : p);
1573
1573
  }
1574
1574
  }), f = (p) => W(p);
1575
1575
  return {
@@ -1588,8 +1588,8 @@ const sn = (e) => (Ee("data-v-60cf597b"), e = e(), We(), e), nn = /* @__PURE__ *
1588
1588
  loading: { type: Boolean }
1589
1589
  },
1590
1590
  setup(e) {
1591
- return (n, s) => (l(), m("div", {
1592
- class: v([
1591
+ return (s, n) => (l(), m("div", {
1592
+ class: b([
1593
1593
  "relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
1594
1594
  e.loading ? "opacity-100" : "opacity-0"
1595
1595
  ])
@@ -1602,8 +1602,8 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
1602
1602
  }, fn = /* @__PURE__ */ r("span", { class: "sr-only label text-foreground" }, "Search", -1), pn = { class: "relative" }, hn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, mn = ["placeholder"], gn = {
1603
1603
  key: 0,
1604
1604
  class: "px-1"
1605
- }, yn = { key: 1 }, vn = /* @__PURE__ */ r("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), bn = {
1606
- class: /* @__PURE__ */ v(["block truncate"])
1605
+ }, yn = { key: 1 }, bn = /* @__PURE__ */ r("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), vn = {
1606
+ class: /* @__PURE__ */ b(["block truncate"])
1607
1607
  }, xn = ["id"], kn = /* @__PURE__ */ V({
1608
1608
  __name: "Base",
1609
1609
  props: {
@@ -1736,100 +1736,101 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
1736
1736
  },
1737
1737
  emits: ["update:modelValue"],
1738
1738
  setup(e) {
1739
- const n = e, { value: s, errorMessage: a } = pe(n.name, n.rules, {
1740
- validateOnMount: n.validateOnMount,
1741
- validateOnValueUpdate: n.validateOnValueUpdate,
1742
- initialValue: n.modelValue
1743
- }), o = A(null), i = A(""), f = A([]), c = A(!1), d = A(he()), p = u(() => t(n.label) || t(n.name)), x = u(() => {
1744
- const w = a.value;
1745
- return !w || !t(n.useLabelInErrors) ? w : w.replace("Value", p.value);
1746
- }), y = u(() => x.value || t(n.help)), g = u(() => !!y.value), b = u(
1747
- () => g.value ? `${t(n.name)}-${d.value}` : void 0
1739
+ const s = e, { value: n, errorMessage: a } = pe(s.name, s.rules, {
1740
+ validateOnMount: s.validateOnMount,
1741
+ validateOnValueUpdate: s.validateOnValueUpdate,
1742
+ initialValue: s.modelValue
1743
+ }), o = A(null), i = A(""), f = A([]), c = A(!1), d = A(he()), p = u(() => t(s.label) || t(s.name)), k = u(() => {
1744
+ const x = a.value;
1745
+ return !x || !t(s.useLabelInErrors) ? x : x.replace("Value", p.value);
1746
+ }), y = u(() => k.value || t(s.help)), g = u(() => !!y.value), v = u(
1747
+ () => g.value ? `${t(s.name)}-${d.value}` : void 0
1748
1748
  ), L = u(
1749
1749
  () => a.value ? "text-danger" : "text-foreground-2"
1750
1750
  ), P = u(
1751
- () => n.buttonStyle !== "simple" && n.clearable && !n.disabled
1751
+ () => s.buttonStyle !== "simple" && s.clearable && !s.disabled
1752
1752
  ), $ = u(() => {
1753
- const w = ["relative flex group", n.showLabel ? "mt-1" : ""];
1754
- return n.buttonStyle !== "simple" && (w.push("hover:shadow rounded-md"), w.push("outline outline-2 outline-primary-muted")), n.fixedHeight && w.push("h-8"), w.join(" ");
1755
- }), C = u(() => {
1756
- const w = [];
1757
- return n.buttonStyle !== "simple" && w.push(
1753
+ const x = ["relative flex group"];
1754
+ return s.buttonStyle !== "simple" && (x.push("hover:shadow rounded-md"), x.push("outline outline-2 outline-primary-muted")), s.fixedHeight && x.push("h-8"), x.join(" ");
1755
+ }), w = u(() => {
1756
+ const x = [];
1757
+ return s.buttonStyle !== "simple" && x.push(
1758
1758
  z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1759
- ), z.value && w.push("cursor-not-allowed"), w.join(" ");
1760
- }), k = u(() => {
1761
- const w = [
1759
+ ), z.value && x.push("cursor-not-allowed"), x.join(" ");
1760
+ }), C = u(() => {
1761
+ const x = [
1762
1762
  "relative z-[1]",
1763
1763
  "flex items-center justify-center text-center shrink-0",
1764
1764
  "rounded-r-md overflow-hidden transition-all",
1765
- ye.value ? `w-6 ${C.value}` : "w-0"
1765
+ "text-foreground",
1766
+ ye.value ? `w-6 ${w.value}` : "w-0"
1766
1767
  ];
1767
- return z.value || w.push(
1768
- "bg-primary-muted hover:bg-primary hover:text-foreground-on-primary"
1769
- ), w.join(" ");
1768
+ return z.value || (x.push(
1769
+ "hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
1770
+ ), s.buttonStyle === "tinted" ? x.push("bg-outline-3") : x.push("bg-primary-muted")), x.join(" ");
1770
1771
  }), E = u(() => {
1771
- const w = [
1772
+ const x = [
1772
1773
  "relative z-[2]",
1773
1774
  "normal rounded-md cursor-pointer transition truncate flex-1",
1774
1775
  "flex items-center",
1775
- C.value
1776
+ w.value
1776
1777
  ];
1777
- return n.buttonStyle !== "simple" && (w.push("py-2 px-3"), z.value || w.push("bg-foundation text-foreground")), P.value && ye.value && w.push("rounded-r-none"), w.join(" ");
1778
+ return s.buttonStyle !== "simple" && (x.push("py-2 px-3"), z.value || (s.buttonStyle === "tinted" ? x.push("bg-foundation-page text-foreground") : x.push("bg-foundation text-foreground"))), P.value && ye.value && x.push("rounded-r-none"), x.join(" ");
1778
1779
  }), h = u(
1779
- () => !!(n.search && (n.filterPredicate || n.getSearchResults))
1780
- ), O = u(() => h.value && n.getSearchResults), z = u(
1781
- () => n.disabled || !n.items.length && !O.value
1780
+ () => !!(s.search && (s.filterPredicate || s.getSearchResults))
1781
+ ), O = u(() => h.value && s.getSearchResults), z = u(
1782
+ () => s.disabled || !s.items.length && !O.value
1782
1783
  ), M = u({
1783
1784
  get: () => {
1784
- const w = s.value;
1785
- return n.multiple ? W(w) ? w : [] : W(w) ? void 0 : w;
1785
+ const x = n.value;
1786
+ return s.multiple ? W(x) ? x : [] : W(x) ? void 0 : x;
1786
1787
  },
1787
- set: (w) => {
1788
- if (n.multiple && !W(w)) {
1788
+ set: (x) => {
1789
+ if (s.multiple && !W(x)) {
1789
1790
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1790
1791
  return;
1791
- } else if (!n.multiple && W(w)) {
1792
+ } else if (!s.multiple && W(x)) {
1792
1793
  console.warn("Attempting to set array value in selector w/ multiple=false");
1793
1794
  return;
1794
1795
  }
1795
- if (n.multiple)
1796
- s.value = w || [];
1796
+ if (s.multiple)
1797
+ n.value = x || [];
1797
1798
  else {
1798
- const F = s.value, T = n.allowUnset && F && w && re(F) === re(w);
1799
- s.value = T ? void 0 : w;
1799
+ const F = n.value, T = s.allowUnset && F && x && re(F) === re(x);
1800
+ n.value = T ? void 0 : x;
1800
1801
  }
1801
1802
  }
1802
- }), ye = u(() => n.multiple ? M.value.length !== 0 : !!M.value), Re = () => {
1803
- n.multiple ? M.value = [] : M.value = void 0;
1803
+ }), ye = u(() => s.multiple ? M.value.length !== 0 : !!M.value), Re = () => {
1804
+ s.multiple ? M.value = [] : M.value = void 0;
1804
1805
  }, Te = u(() => {
1805
- const w = i.value;
1806
- return !h.value || !(w != null && w.length) ? f.value : n.filterPredicate ? f.value.filter(
1806
+ const x = i.value;
1807
+ return !h.value || !(x != null && x.length) ? f.value : s.filterPredicate ? f.value.filter(
1807
1808
  (F) => {
1808
1809
  var T;
1809
- return ((T = n.filterPredicate) == null ? void 0 : T.call(n, F, w)) || !1;
1810
+ return ((T = s.filterPredicate) == null ? void 0 : T.call(s, F, x)) || !1;
1810
1811
  }
1811
1812
  ) : f.value;
1812
- }), ve = (w) => JSON.stringify(w), re = (w) => n.by ? w[n.by] : w, be = async () => {
1813
- if (!(!O.value || !n.getSearchResults)) {
1813
+ }), be = (x) => JSON.stringify(x), re = (x) => s.by ? x[s.by] : x, ve = async () => {
1814
+ if (!(!O.value || !s.getSearchResults)) {
1814
1815
  c.value = !0;
1815
1816
  try {
1816
- f.value = await n.getSearchResults(i.value);
1817
+ f.value = await s.getSearchResults(i.value);
1817
1818
  } finally {
1818
1819
  c.value = !1;
1819
1820
  }
1820
1821
  }
1821
- }, ze = Le(be, 1e3);
1822
+ }, ze = Le(ve, 1e3);
1822
1823
  return Y(
1823
- () => n.items,
1824
- (w) => {
1825
- f.value = w.slice();
1824
+ () => s.items,
1825
+ (x) => {
1826
+ f.value = x.slice();
1826
1827
  },
1827
1828
  { immediate: !0 }
1828
1829
  ), Y(i, () => {
1829
1830
  O.value && ze();
1830
1831
  }), ee(() => {
1831
- O.value && !n.items.length && be();
1832
- }), (w, F) => (l(), m("div", null, [
1832
+ O.value && !s.items.length && ve();
1833
+ }), (x, F) => (l(), m("div", null, [
1833
1834
  I(t(ht), {
1834
1835
  modelValue: t(M),
1835
1836
  "onUpdate:modelValue": F[4] || (F[4] = (T) => le(M) ? M.value = T : null),
@@ -1841,7 +1842,7 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
1841
1842
  }, {
1842
1843
  default: B(() => [
1843
1844
  I(t(mt), {
1844
- class: v(["block label text-foreground", { "sr-only": !e.showLabel }])
1845
+ class: b(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
1845
1846
  }, {
1846
1847
  default: B(() => [
1847
1848
  D(S(e.label), 1)
@@ -1849,21 +1850,21 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
1849
1850
  _: 1
1850
1851
  }, 8, ["class"]),
1851
1852
  r("div", {
1852
- class: v(t($))
1853
+ class: b(t($))
1853
1854
  }, [
1854
1855
  I(t(gt), {
1855
- class: v(t(E))
1856
+ class: b(t(E))
1856
1857
  }, {
1857
1858
  default: B(({ open: T }) => [
1858
1859
  r("div", on, [
1859
1860
  r("div", rn, [
1860
- !t(M) || t(W)(t(M)) && !t(M).length ? R(w.$slots, "nothing-selected", { key: 0 }, () => [
1861
+ !t(M) || t(W)(t(M)) && !t(M).length ? R(x.$slots, "nothing-selected", { key: 0 }, () => [
1861
1862
  D(S(e.label), 1)
1862
- ]) : R(w.$slots, "something-selected", {
1863
+ ]) : R(x.$slots, "something-selected", {
1863
1864
  key: 1,
1864
1865
  value: t(M)
1865
1866
  }, () => [
1866
- D(S(ve(t(M))), 1)
1867
+ D(S(be(t(M))), 1)
1867
1868
  ])
1868
1869
  ]),
1869
1870
  r("div", un, [
@@ -1883,7 +1884,7 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
1883
1884
  }, 8, ["class"]),
1884
1885
  t(P) ? te((l(), m("button", {
1885
1886
  key: 0,
1886
- class: v(t(k)),
1887
+ class: b(t(C)),
1887
1888
  disabled: e.disabled,
1888
1889
  onClick: F[0] || (F[0] = (T) => Re())
1889
1890
  }, [
@@ -1926,39 +1927,39 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
1926
1927
  ])
1927
1928
  ])) : _("", !0),
1928
1929
  r("div", {
1929
- class: v(["overflow-auto simple-scrollbar", [t(h) ? "max-h-52" : "max-h-60"]])
1930
+ class: b(["overflow-auto simple-scrollbar", [t(h) ? "max-h-52" : "max-h-60"]])
1930
1931
  }, [
1931
1932
  t(O) && c.value ? (l(), m("div", gn, [
1932
1933
  I(De, { loading: !0 })
1933
1934
  ])) : t(O) && !f.value.length ? (l(), m("div", yn, [
1934
- R(w.$slots, "nothing-found", {}, () => [
1935
- vn
1935
+ R(x.$slots, "nothing-found", {}, () => [
1936
+ bn
1936
1937
  ])
1937
1938
  ])) : _("", !0),
1938
- !t(O) || !c.value ? (l(!0), m(U, { key: 2 }, H(t(Te), (T) => (l(), j(t(vt), {
1939
+ !t(O) || !c.value ? (l(!0), m(U, { key: 2 }, H(t(Te), (T) => (l(), j(t(bt), {
1939
1940
  key: re(T),
1940
1941
  value: T
1941
1942
  }, {
1942
1943
  default: B(({ active: G, selected: xe }) => [
1943
1944
  r("li", {
1944
- class: v([
1945
+ class: b([
1945
1946
  G ? "text-primary" : "text-foreground",
1946
1947
  "relative transition cursor-pointer select-none py-1.5 pl-3",
1947
1948
  e.hideCheckmarks ? "" : "pr-9"
1948
1949
  ])
1949
1950
  }, [
1950
- r("span", bn, [
1951
- R(w.$slots, "option", {
1951
+ r("span", vn, [
1952
+ R(x.$slots, "option", {
1952
1953
  item: T,
1953
1954
  active: G,
1954
1955
  selected: xe
1955
1956
  }, () => [
1956
- D(S(ve(T)), 1)
1957
+ D(S(be(T)), 1)
1957
1958
  ])
1958
1959
  ]),
1959
1960
  !e.hideCheckmarks && xe ? (l(), m("span", {
1960
1961
  key: 0,
1961
- class: v([
1962
+ class: b([
1962
1963
  G ? "text-primary" : "text-foreground",
1963
1964
  "absolute inset-y-0 right-0 flex items-center pr-4"
1964
1965
  ])
@@ -1983,20 +1984,20 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
1983
1984
  ]),
1984
1985
  _: 3
1985
1986
  }, 8, ["modelValue", "name", "multiple", "by", "disabled"]),
1986
- t(b) ? (l(), m("p", {
1987
+ t(v) ? (l(), m("p", {
1987
1988
  key: 0,
1988
- id: t(b),
1989
- class: v(["mt-2 ml-3 text-sm", t(L)])
1989
+ id: t(v),
1990
+ class: b(["mt-2 text-sm", t(L)])
1990
1991
  }, S(t(y)), 11, xn)) : _("", !0)
1991
1992
  ]));
1992
1993
  }
1993
- }), wn = /* @__PURE__ */ V({
1994
+ }), Cn = /* @__PURE__ */ V({
1994
1995
  __name: "SourceAppBadge",
1995
1996
  props: {
1996
1997
  sourceApp: null
1997
1998
  },
1998
1999
  setup(e) {
1999
- return (n, s) => (l(), j(Kt, {
2000
+ return (s, n) => (l(), j(Kt, {
2000
2001
  "color-classes": "text-foreground-on-primary",
2001
2002
  rounded: "",
2002
2003
  style: ie({ backgroundColor: e.sourceApp.bgColor })
@@ -2007,13 +2008,13 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
2007
2008
  _: 1
2008
2009
  }, 8, ["style"]));
2009
2010
  }
2010
- }), Cn = {
2011
+ }), wn = {
2011
2012
  key: 0,
2012
2013
  class: "text-foreground-2 normal"
2013
2014
  }, $n = {
2014
2015
  key: 1,
2015
2016
  class: "flex items-center"
2016
- }, _n = { class: "truncate" }, Sn = { class: "flex items-center" }, In = { class: "truncate" }, vl = /* @__PURE__ */ V({
2017
+ }, _n = { class: "truncate" }, Sn = { class: "flex items-center" }, In = { class: "truncate" }, bl = /* @__PURE__ */ V({
2017
2018
  __name: "SourceApps",
2018
2019
  props: {
2019
2020
  /**
@@ -2072,13 +2073,13 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
2072
2073
  }
2073
2074
  },
2074
2075
  emits: ["update:modelValue"],
2075
- setup(e, { emit: n }) {
2076
- const s = e, a = A(null), o = A(null), { selectedValue: i, hiddenSelectedItemCount: f, isMultiItemArrayValue: c, firstItem: d } = tn({
2077
- props: Z(s),
2078
- emit: n,
2076
+ setup(e, { emit: s }) {
2077
+ const n = e, a = A(null), o = A(null), { selectedValue: i, hiddenSelectedItemCount: f, isMultiItemArrayValue: c, firstItem: d } = tn({
2078
+ props: Z(n),
2079
+ emit: s,
2079
2080
  dynamicVisibility: { elementToWatchForChanges: a, itemContainer: o }
2080
- }), p = (x, y) => x.name.toLocaleLowerCase().includes(y.toLocaleLowerCase());
2081
- return (x, y) => (l(), j(kn, {
2081
+ }), p = (k, y) => k.name.toLocaleLowerCase().includes(y.toLocaleLowerCase());
2082
+ return (k, y) => (l(), j(kn, {
2082
2083
  modelValue: t(i),
2083
2084
  "onUpdate:modelValue": y[0] || (y[0] = (g) => le(i) ? i.value = g : null),
2084
2085
  multiple: e.multiple,
@@ -2110,12 +2111,12 @@ const De = /* @__PURE__ */ Oe(an, [["__scopeId", "data-v-60cf597b"]]), on = { cl
2110
2111
  ref: o,
2111
2112
  class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
2112
2113
  }, [
2113
- (l(!0), m(U, null, H(g, (b) => (l(), j(wn, {
2114
- key: b.name,
2115
- "source-app": b
2114
+ (l(!0), m(U, null, H(g, (v) => (l(), j(Cn, {
2115
+ key: v.name,
2116
+ "source-app": v
2116
2117
  }, null, 8, ["source-app"]))), 128))
2117
2118
  ], 512),
2118
- t(f) > 0 ? (l(), m("div", Cn, " +" + S(t(f)), 1)) : _("", !0)
2119
+ t(f) > 0 ? (l(), m("div", wn, " +" + S(t(f)), 1)) : _("", !0)
2119
2120
  ], 512)) : (l(), m("div", $n, [
2120
2121
  r("div", {
2121
2122
  class: "h-2 w-2 rounded-full mr-2",
@@ -2149,15 +2150,15 @@ const ce = ct(), Bn = {
2149
2150
  ]: ce === ue.Mac ? "Opt" : "Alt",
2150
2151
  shift: "Shift"
2151
2152
  };
2152
- function bl(e) {
2153
- const n = (s) => Object.values(Q).includes(s);
2154
- return e.map((s) => n(s) ? Bn[s] : s).join("+");
2153
+ function vl(e) {
2154
+ const s = (n) => Object.values(Q).includes(n);
2155
+ return e.map((n) => s(n) ? Bn[n] : n).join("+");
2155
2156
  }
2156
- function xl(e, ...n) {
2157
+ function xl(e, ...s) {
2157
2158
  pt(
2158
- n[0],
2159
- (s) => {
2160
- const a = s.getModifierState("Alt"), o = ce === ue.Mac ? s.getModifierState("Meta") : s.getModifierState("Control"), i = s.getModifierState("Shift");
2159
+ s[0],
2160
+ (n) => {
2161
+ const a = n.getModifierState("Alt"), o = ce === ue.Mac ? n.getModifierState("Meta") : n.getModifierState("Control"), i = n.getModifierState("Shift");
2161
2162
  for (const f of e)
2162
2163
  switch (f) {
2163
2164
  case Q.CtrlOrCmd:
@@ -2173,9 +2174,9 @@ function xl(e, ...n) {
2173
2174
  return;
2174
2175
  break;
2175
2176
  }
2176
- n[1](s);
2177
+ s[1](n);
2177
2178
  },
2178
- n[2]
2179
+ s[2]
2179
2180
  );
2180
2181
  }
2181
2182
  const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Pn = { class: "fixed inset-0 z-10 overflow-y-auto" }, jn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Vn = { class: "relative" }, kl = /* @__PURE__ */ V({
@@ -2187,12 +2188,12 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2187
2188
  preventCloseOnClickOutside: { type: Boolean }
2188
2189
  },
2189
2190
  emits: ["update:open", "fully-closed"],
2190
- setup(e, { emit: n }) {
2191
- const s = e, a = u({
2192
- get: () => s.open,
2193
- set: (c) => n("update:open", c)
2191
+ setup(e, { emit: s }) {
2192
+ const n = e, a = u({
2193
+ get: () => n.open,
2194
+ set: (c) => s("update:open", c)
2194
2195
  }), o = u(() => {
2195
- switch (s.maxWidth) {
2196
+ switch (n.maxWidth) {
2196
2197
  case "sm":
2197
2198
  return 0;
2198
2199
  case "md":
@@ -2211,9 +2212,9 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2211
2212
  ];
2212
2213
  return o.value >= 1 && c.push("md:max-w-2xl"), o.value >= 2 && c.push("lg:max-w-4xl"), o.value >= 3 && c.push("xl:max-w-6xl"), o.value >= 4 && c.push("2xl:max-w-7xl"), c.join(" ");
2213
2214
  }), f = () => {
2214
- s.preventCloseOnClickOutside || (a.value = !1);
2215
+ n.preventCloseOnClickOutside || (a.value = !1);
2215
2216
  };
2216
- return (c, d) => (l(), j(t(bt), {
2217
+ return (c, d) => (l(), j(t(vt), {
2217
2218
  as: "template",
2218
2219
  show: t(a)
2219
2220
  }, {
@@ -2224,7 +2225,7 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2224
2225
  onClose: f
2225
2226
  }, {
2226
2227
  default: B(() => [
2227
- I(t(Ce), {
2228
+ I(t(we), {
2228
2229
  as: "template",
2229
2230
  enter: "ease-out duration-300",
2230
2231
  "enter-from": "opacity-0",
@@ -2240,7 +2241,7 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2240
2241
  }),
2241
2242
  r("div", Pn, [
2242
2243
  r("div", jn, [
2243
- I(t(Ce), {
2244
+ I(t(we), {
2244
2245
  as: "template",
2245
2246
  enter: "ease-out duration-300",
2246
2247
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -2252,7 +2253,7 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2252
2253
  }, {
2253
2254
  default: B(() => [
2254
2255
  I(t(kt), {
2255
- class: v([
2256
+ class: b([
2256
2257
  "transform rounded-lg bg-foundation text-left shadow-xl transition-all",
2257
2258
  t(i)
2258
2259
  ])
@@ -2285,7 +2286,7 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2285
2286
  _: 3
2286
2287
  }, 8, ["show"]));
2287
2288
  }
2288
- }), On = { class: "inline-flex items-center space-x-2" }, Mn = { class: "label-light" }, wl = /* @__PURE__ */ V({
2289
+ }), On = { class: "inline-flex items-center space-x-2" }, Mn = { class: "label-light" }, Cl = /* @__PURE__ */ V({
2289
2290
  __name: "Disclosure",
2290
2291
  props: {
2291
2292
  title: null,
@@ -2293,12 +2294,12 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2293
2294
  color: { default: "default" }
2294
2295
  },
2295
2296
  setup(e) {
2296
- const n = e, s = u(() => {
2297
+ const s = e, n = u(() => {
2297
2298
  const o = [
2298
2299
  "pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
2299
2300
  "ring-1"
2300
2301
  ];
2301
- switch (n.color) {
2302
+ switch (s.color) {
2302
2303
  case "danger":
2303
2304
  o.push("border-danger text-danger ring-danger-lighter hover:ring-danger");
2304
2305
  break;
@@ -2312,7 +2313,7 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2312
2313
  return o.join(" ");
2313
2314
  }), a = u(() => {
2314
2315
  const o = ["mt-4 px-3 py-1 border-x "];
2315
- switch (n.color) {
2316
+ switch (s.color) {
2316
2317
  case "danger":
2317
2318
  o.push("border-danger-lighter");
2318
2319
  break;
@@ -2324,10 +2325,10 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2324
2325
  return o.join(" ");
2325
2326
  });
2326
2327
  return (o, i) => (l(), m("div", null, [
2327
- I(t(wt), null, {
2328
+ I(t(Ct), null, {
2328
2329
  default: B(({ open: f }) => [
2329
- I(t(Ct), {
2330
- class: v(t(s))
2330
+ I(t(wt), {
2331
+ class: b(t(n))
2331
2332
  }, {
2332
2333
  default: B(() => [
2333
2334
  r("div", On, [
@@ -2338,13 +2339,13 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2338
2339
  r("span", null, S(e.title), 1)
2339
2340
  ]),
2340
2341
  I(t(Pe), {
2341
- class: v([f ? "" : "rotate-180 transform", "h-5 w-5"])
2342
+ class: b([f ? "" : "rotate-180 transform", "h-5 w-5"])
2342
2343
  }, null, 8, ["class"])
2343
2344
  ]),
2344
2345
  _: 2
2345
2346
  }, 1032, ["class"]),
2346
2347
  I(t($t), {
2347
- class: v(t(a))
2348
+ class: b(t(a))
2348
2349
  }, {
2349
2350
  default: B(() => [
2350
2351
  r("div", Mn, [
@@ -2362,20 +2363,20 @@ const Ln = /* @__PURE__ */ r("div", { class: "fixed inset-0 bg-neutral-100/70 da
2362
2363
  }
2363
2364
  });
2364
2365
  var K = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(K || {});
2365
- const Cl = /* @__PURE__ */ V({
2366
+ const wl = /* @__PURE__ */ V({
2366
2367
  __name: "GridListToggle",
2367
2368
  props: {
2368
2369
  modelValue: null
2369
2370
  },
2370
2371
  emits: ["click", "update:modelValue"],
2371
- setup(e, { emit: n }) {
2372
- const s = e, a = u({
2373
- get: () => s.modelValue || K.Grid,
2374
- set: (f) => n("update:modelValue", f)
2372
+ setup(e, { emit: s }) {
2373
+ const n = e, a = u({
2374
+ get: () => n.modelValue || K.Grid,
2375
+ set: (f) => s("update:modelValue", f)
2375
2376
  }), o = u(
2376
2377
  () => a.value === K.Grid ? Je : Qe
2377
2378
  ), i = (f) => {
2378
- n("click", f);
2379
+ s("click", f);
2379
2380
  const c = a.value === K.Grid ? K.List : K.Grid;
2380
2381
  a.value = c;
2381
2382
  };
@@ -2388,14 +2389,14 @@ const Cl = /* @__PURE__ */ V({
2388
2389
  }
2389
2390
  });
2390
2391
  var An = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(An || {}), de = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(de || {});
2391
- function Dn(e, n) {
2392
+ function Dn(e, s) {
2392
2393
  if (!me)
2393
2394
  return;
2394
2395
  const {
2395
- wait: s = 100,
2396
+ wait: n = 100,
2396
2397
  throttleOrDebounce: a = 0
2397
2398
  /* Throttle */
2398
- } = n || {}, o = s ? a === 0 ? Ue(e, s) : Le(e, s) : e;
2399
+ } = s || {}, o = n ? a === 0 ? Ue(e, n) : Le(e, n) : e;
2399
2400
  ee(() => window.addEventListener("resize", o)), Be(() => window.removeEventListener("resize", o));
2400
2401
  }
2401
2402
  function $l(e) {
@@ -2406,26 +2407,26 @@ function $l(e) {
2406
2407
  });
2407
2408
  }
2408
2409
  function Rn(e) {
2409
- const { el: n, defaultDirection: s } = e, a = A(
2410
- X(s) ? 1 : s
2410
+ const { el: s, defaultDirection: n } = e, a = A(
2411
+ X(n) ? 1 : n
2411
2412
  /* Right */
2412
2413
  ), o = u(() => {
2413
2414
  const f = t(e.stopUpdatesBelowWidth);
2414
2415
  if (!X(f))
2415
2416
  return f;
2416
- const c = t(n);
2417
+ const c = t(s);
2417
2418
  return c != null && c.offsetWidth ? c.offsetWidth * 2 : void 0;
2418
2419
  }), i = () => {
2419
2420
  if (!me)
2420
2421
  return;
2421
- const f = t(n);
2422
+ const f = t(s);
2422
2423
  if (!f)
2423
2424
  return;
2424
2425
  const c = f.getBoundingClientRect(), d = c.x + c.width > window.innerWidth, p = c.x < 0;
2425
2426
  d && p || !X(o.value) && window.innerWidth < o.value || (d ? a.value = 0 : p && (a.value = 1));
2426
2427
  };
2427
2428
  return Dn(() => i()), Y(
2428
- () => t(n),
2429
+ () => t(s),
2429
2430
  (f) => {
2430
2431
  f && i();
2431
2432
  }
@@ -2441,8 +2442,8 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2441
2442
  items: null
2442
2443
  },
2443
2444
  emits: ["update:open", "chosen"],
2444
- setup(e, { emit: n }) {
2445
- const s = e, a = A(null), { direction: o } = Rn({
2445
+ setup(e, { emit: s }) {
2446
+ const n = e, a = A(null), { direction: o } = Rn({
2446
2447
  el: u(() => {
2447
2448
  var g;
2448
2449
  return ((g = a.value) == null ? void 0 : g.el) || null;
@@ -2450,25 +2451,25 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2450
2451
  defaultDirection: de.Left,
2451
2452
  stopUpdatesBelowWidth: 300
2452
2453
  }), i = A(null), f = A(!1), c = u({
2453
- get: () => s.open || !1,
2454
- set: (g) => n("update:open", g)
2454
+ get: () => n.open || !1,
2455
+ set: (g) => s("update:open", g)
2455
2456
  }), d = (g) => {
2456
- const { active: b, disabled: L } = g, P = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2457
- return b ? P.push("bg-primary text-foreground-on-primary") : L ? P.push("text-foreground-disabled") : P.push("text-foreground"), P.join(" ");
2458
- }, p = (g, b) => {
2459
- n("chosen", { item: g, event: b });
2460
- }, x = () => {
2457
+ const { active: v, disabled: L } = g, P = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2458
+ return v ? P.push("bg-primary text-foreground-on-primary") : L ? P.push("text-foreground-disabled") : P.push("text-foreground"), P.join(" ");
2459
+ }, p = (g, v) => {
2460
+ s("chosen", { item: g, event: v });
2461
+ }, k = () => {
2461
2462
  var g;
2462
2463
  return (g = i.value) == null ? void 0 : g.el.click();
2463
2464
  }, y = (g) => {
2464
- const b = !!g;
2465
- return f.value = b, b;
2465
+ const v = !!g;
2466
+ return f.value = v, v;
2466
2467
  };
2467
- return Y(f, (g, b) => {
2468
- g !== b && (c.value = g);
2468
+ return Y(f, (g, v) => {
2469
+ g !== v && (c.value = g);
2469
2470
  }), Y(c, (g) => {
2470
- (g && !f.value || !g && f.value) && x();
2471
- }), (g, b) => (l(), j(t(_t), {
2471
+ (g && !f.value || !g && f.value) && k();
2472
+ }), (g, v) => (l(), j(t(_t), {
2472
2473
  as: "div",
2473
2474
  class: "relative inline-block"
2474
2475
  }, {
@@ -2478,14 +2479,14 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2478
2479
  ref_key: "menuButton",
2479
2480
  ref: i,
2480
2481
  class: "hidden",
2481
- onClick: b[0] || (b[0] = Ie(() => {
2482
+ onClick: v[0] || (v[0] = Ie(() => {
2482
2483
  }, ["stop", "prevent"]))
2483
2484
  }, null, 512),
2484
2485
  r("div", {
2485
- class: v(L ? "pointer-events-none" : "")
2486
+ class: b(L ? "pointer-events-none" : "")
2486
2487
  }, [
2487
2488
  R(g.$slots, "default", {
2488
- toggle: x,
2489
+ toggle: k,
2489
2490
  open: y(L)
2490
2491
  })
2491
2492
  ], 2)
@@ -2502,7 +2503,7 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2502
2503
  I(t(It), {
2503
2504
  ref_key: "menuItems",
2504
2505
  ref: a,
2505
- class: v([
2506
+ class: b([
2506
2507
  "absolute mt-2 w-56 origin-top-right divide-y divide-outline-3 rounded-md bg-foundation shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none z-40",
2507
2508
  t(o) === t(de).Left ? "right-0" : ""
2508
2509
  ])
@@ -2512,17 +2513,17 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2512
2513
  key: $,
2513
2514
  class: "px-1 py-1"
2514
2515
  }, [
2515
- (l(!0), m(U, null, H(P, (C) => (l(), j(t(Bt), {
2516
- key: C.id,
2517
- disabled: C.disabled
2516
+ (l(!0), m(U, null, H(P, (w) => (l(), j(t(Bt), {
2517
+ key: w.id,
2518
+ disabled: w.disabled
2518
2519
  }, {
2519
- default: B(({ active: k, disabled: E }) => [
2520
+ default: B(({ active: C, disabled: E }) => [
2520
2521
  r("button", {
2521
- class: v(d({ active: k, disabled: E })),
2522
- onClick: (h) => p(C, h)
2522
+ class: b(d({ active: C, disabled: E })),
2523
+ onClick: (h) => p(w, h)
2523
2524
  }, [
2524
- R(g.$slots, "item", { item: C }, () => [
2525
- D(S(C.title), 1)
2525
+ R(g.$slots, "item", { item: w }, () => [
2526
+ D(S(w.title), 1)
2526
2527
  ])
2527
2528
  ], 10, Tn)
2528
2529
  ]),
@@ -2545,8 +2546,8 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2545
2546
  items: null
2546
2547
  },
2547
2548
  setup(e) {
2548
- const n = e, s = A(null), a = u(() => s.value && n.items.find((i) => i.id === s.value) || n.items[0]), o = (i) => {
2549
- s.value = i.id;
2549
+ const s = e, n = A(null), a = u(() => n.value && s.items.find((i) => i.id === n.value) || s.items[0]), o = (i) => {
2550
+ n.value = i.id;
2550
2551
  };
2551
2552
  return (i, f) => (l(), m("div", zn, [
2552
2553
  r("div", Fn, [
@@ -2573,17 +2574,17 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2573
2574
  },
2574
2575
  emits: ["infinite"],
2575
2576
  setup(e) {
2576
- const n = A(null), s = A(!1);
2577
+ const s = A(null), n = A(!1);
2577
2578
  return me && ee(() => {
2578
2579
  const a = setInterval(() => {
2579
2580
  var o;
2580
- (o = n.value) != null && o.isConnected && (s.value = !0, clearInterval(a));
2581
+ (o = s.value) != null && o.isConnected && (n.value = !0, clearInterval(a));
2581
2582
  }, 200);
2582
2583
  }), (a, o) => (l(), m("div", {
2583
2584
  ref_key: "wrapper",
2584
- ref: n
2585
+ ref: s
2585
2586
  }, [
2586
- s.value ? (l(), j(t(Pt), ne({ key: 0 }, a.$props.settings || {}, {
2587
+ n.value ? (l(), j(t(Pt), ne({ key: 0 }, a.$props.settings || {}, {
2587
2588
  onInfinite: o[0] || (o[0] = (i) => a.$emit("infinite", i))
2588
2589
  }), {
2589
2590
  spinner: B(() => [
@@ -2658,39 +2659,39 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2658
2659
  }
2659
2660
  },
2660
2661
  emits: ["submit"],
2661
- setup(e, { emit: n }) {
2662
- const s = e, a = u(
2663
- () => s.customPadding ? "" : "px-4 py-4 sm:px-6"
2662
+ setup(e, { emit: s }) {
2663
+ const n = e, a = u(
2664
+ () => n.customPadding ? "" : "px-4 py-4 sm:px-6"
2664
2665
  ), o = u(
2665
- () => s.customPadding ? "" : "px-4 py-4 sm:p-6"
2666
+ () => n.customPadding ? "" : "px-4 py-4 sm:p-6"
2666
2667
  ), i = u(() => {
2667
2668
  const f = ["rounded-lg"];
2668
- return s.noShadow || f.push("shadow"), s.ring && f.push("ring-outline-2 hover:ring-2"), f.join(" ");
2669
+ return n.noShadow || f.push("shadow"), n.ring && f.push("ring-outline-2 hover:ring-2"), f.join(" ");
2669
2670
  });
2670
2671
  return (f, c) => (l(), m("div", Kn, [
2671
2672
  e.fancyGlow ? (l(), m("div", Xn)) : _("", !0),
2672
2673
  (l(), j(q(e.form ? "form" : "div"), {
2673
- class: v([
2674
+ class: b([
2674
2675
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
2675
2676
  t(i)
2676
2677
  ]),
2677
- onSubmit: c[0] || (c[0] = (d) => n("submit", d))
2678
+ onSubmit: c[0] || (c[0] = (d) => s("submit", d))
2678
2679
  }, {
2679
2680
  default: B(() => [
2680
2681
  f.$slots.header ? (l(), m("div", {
2681
2682
  key: 0,
2682
- class: v(t(a))
2683
+ class: b(t(a))
2683
2684
  }, [
2684
2685
  R(f.$slots, "header")
2685
2686
  ], 2)) : _("", !0),
2686
2687
  r("div", {
2687
- class: v(["grow", t(o)])
2688
+ class: b(["grow", t(o)])
2688
2689
  }, [
2689
2690
  R(f.$slots, "default")
2690
2691
  ], 2),
2691
2692
  f.$slots.footer ? (l(), m("div", {
2692
2693
  key: 1,
2693
- class: v(t(a))
2694
+ class: b(t(a))
2694
2695
  }, [
2695
2696
  R(f.$slots, "footer")
2696
2697
  ], 2)) : _("", !0)
@@ -2711,9 +2712,9 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2711
2712
  },
2712
2713
  emits: ["dismiss"],
2713
2714
  setup(e) {
2714
- const n = e, s = Se(), a = u(() => !!s.description), o = u(() => {
2715
+ const s = e, n = Se(), a = u(() => !!n.description), o = u(() => {
2715
2716
  const d = [];
2716
- switch (d.push(a.value ? "p-4" : "p-2"), n.color) {
2717
+ switch (d.push(a.value ? "p-4" : "p-2"), s.color) {
2717
2718
  case "success":
2718
2719
  d.push("bg-success-lighter border-l-4 border-success");
2719
2720
  break;
@@ -2730,7 +2731,7 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2730
2731
  return d.join(" ");
2731
2732
  }), i = u(() => {
2732
2733
  const d = [];
2733
- switch (n.color) {
2734
+ switch (s.color) {
2734
2735
  case "success":
2735
2736
  d.push("text-success-darker");
2736
2737
  break;
@@ -2747,7 +2748,7 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2747
2748
  return d.join(" ");
2748
2749
  }), f = u(() => {
2749
2750
  const d = [];
2750
- switch (n.color) {
2751
+ switch (s.color) {
2751
2752
  case "success":
2752
2753
  d.push("text-success");
2753
2754
  break;
@@ -2764,7 +2765,7 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2764
2765
  return d.join(" ");
2765
2766
  }), c = u(() => {
2766
2767
  const d = [];
2767
- switch (n.color) {
2768
+ switch (s.color) {
2768
2769
  case "success":
2769
2770
  d.push("bg-success-lighter ring-success");
2770
2771
  break;
@@ -2781,24 +2782,24 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2781
2782
  return d.join(" ");
2782
2783
  });
2783
2784
  return (d, p) => {
2784
- var x;
2785
+ var k;
2785
2786
  return l(), m("div", {
2786
- class: v(["rounded-md", [t(o), t(i)]])
2787
+ class: b(["rounded-md", [t(o), t(i)]])
2787
2788
  }, [
2788
2789
  r("div", {
2789
- class: v(["flex", [t(a) ? "" : "items-center space-x-2"]])
2790
+ class: b(["flex", [t(a) ? "" : "items-center space-x-2"]])
2790
2791
  }, [
2791
2792
  r("div", Nn, [
2792
2793
  I(t(je), {
2793
- class: v(["h-5 w-5", t(f)]),
2794
+ class: b(["h-5 w-5", t(f)]),
2794
2795
  "aria-hidden": "true"
2795
2796
  }, null, 8, ["class"])
2796
2797
  ]),
2797
2798
  r("div", {
2798
- class: v(["ml-3 grow", [t(a) ? "" : "flex items-center space-x-2"]])
2799
+ class: b(["ml-3 grow", [t(a) ? "" : "flex items-center space-x-2"]])
2799
2800
  }, [
2800
2801
  r("h3", {
2801
- class: v(["text-sm", [t(a) ? "font-medium" : ""]])
2802
+ class: b(["text-sm", [t(a) ? "font-medium" : ""]])
2802
2803
  }, [
2803
2804
  R(d.$slots, "title", {}, () => [
2804
2805
  D("Title")
@@ -2810,10 +2811,10 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2810
2811
  ])
2811
2812
  ])) : _("", !0),
2812
2813
  r("div", {
2813
- class: v([t(a) ? (x = e.actions) != null && x.length ? "mt-4" : "" : "grow flex"])
2814
+ class: b([t(a) ? (k = e.actions) != null && k.length ? "mt-4" : "" : "grow flex"])
2814
2815
  }, [
2815
2816
  r("div", {
2816
- class: v(["flex", ["space-x-2", t(a) ? "" : "grow justify-end"]])
2817
+ class: b(["flex", ["space-x-2", t(a) ? "" : "grow justify-end"]])
2817
2818
  }, [
2818
2819
  (l(!0), m(U, null, H(e.actions || [], (y, g) => (l(), j(oe, {
2819
2820
  key: g,
@@ -2821,7 +2822,7 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2821
2822
  size: "sm",
2822
2823
  to: y.url,
2823
2824
  external: y.externalUrl || !1,
2824
- onClick: (b) => y.onClick || t(qe)
2825
+ onClick: (v) => y.onClick || t(qe)
2825
2826
  }, {
2826
2827
  default: B(() => [
2827
2828
  D(S(y.title), 1)
@@ -2833,11 +2834,11 @@ const Tn = ["onClick"], _l = /* @__PURE__ */ V({
2833
2834
  ], 2),
2834
2835
  e.withDismiss ? (l(), m("div", {
2835
2836
  key: 0,
2836
- class: v(["flex", [t(a) ? "items-start" : "items-center"]])
2837
+ class: b(["flex", [t(a) ? "items-start" : "items-center"]])
2837
2838
  }, [
2838
2839
  r("button", {
2839
2840
  type: "button",
2840
- class: v(["inline-flex rounded-md focus:outline-none focus:ring-2", t(c)]),
2841
+ class: b(["inline-flex rounded-md focus:outline-none focus:ring-2", t(c)]),
2841
2842
  onClick: p[0] || (p[0] = (y) => d.$emit("dismiss"))
2842
2843
  }, [
2843
2844
  Qn,
@@ -2863,7 +2864,7 @@ export {
2863
2864
  pl as FormCardButton,
2864
2865
  hl as FormCheckbox,
2865
2866
  kn as FormSelectBase,
2866
- vl as FormSelectSourceApps,
2867
+ bl as FormSelectSourceApps,
2867
2868
  ml as FormTextArea,
2868
2869
  gl as FormTextInput,
2869
2870
  cl as GlobalToastRenderer,
@@ -2871,19 +2872,19 @@ export {
2871
2872
  de as HorizontalDirection,
2872
2873
  Il as InfiniteLoading,
2873
2874
  kl as LayoutDialog,
2874
- wl as LayoutDisclosure,
2875
- Cl as LayoutGridListToggle,
2875
+ Cl as LayoutDisclosure,
2876
+ wl as LayoutGridListToggle,
2876
2877
  _l as LayoutMenu,
2877
2878
  Bl as LayoutPanel,
2878
2879
  Sl as LayoutTabs,
2879
2880
  Q as ModifierKeys,
2880
- wn as SourceAppBadge,
2881
+ Cn as SourceAppBadge,
2881
2882
  J as TailwindBreakpoints,
2882
2883
  An as ThrottleOrDebounce,
2883
2884
  N as ToastNotificationType,
2884
2885
  yl as ValidationHelpers,
2885
2886
  ce as clientOs,
2886
- bl as getKeyboardShortcutTitle,
2887
+ vl as getKeyboardShortcutTitle,
2887
2888
  xl as onKeyboardShortcut,
2888
2889
  tn as useFormSelectChildInternals,
2889
2890
  $l as useOnBeforeWindowUnload,