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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.js CHANGED
@@ -1,19 +1,19 @@
1
- import { defineComponent as O, resolveDynamicComponent as W, computed as c, openBlock as l, createBlock as P, unref as t, normalizeClass as v, withCtx as B, createCommentVNode as $, renderSlot as R, createTextVNode as T, createElementBlock as h, createElementVNode as u, createVNode as I, Transition as ce, toDisplayString as _, toRefs as Z, Fragment as U, renderList as H, pushScopeId as _e, popScopeId as Se, ref as A, mergeProps as ne, onMounted as ee, withDirectives as te, isRef as le, vModelText as Ie, useSlots as ze, vModelDynamic as Ee, watch as Y, withModifiers as Be, normalizeStyle as oe, onBeforeUnmount as Le } from "vue";
2
- import { isObjectLike as Ce, clamp as we, isString as se, isUndefined as X, isArray as E, debounce as Pe, throttle as We } from "lodash";
3
- import { ArrowPathIcon as Ue, ChevronUpIcon as je, ChevronDownIcon as qe, XMarkIcon as He, MagnifyingGlassIcon as Ge, CheckIcon as Ke, Bars3Icon as Xe, Squares2X2Icon as Ne } from "@heroicons/vue/24/solid";
1
+ import { defineComponent as O, resolveDynamicComponent as U, computed as c, openBlock as l, createBlock as P, unref as t, normalizeClass as v, withCtx as B, createCommentVNode as _, renderSlot as R, createTextVNode as T, createElementBlock as h, createElementVNode as u, createVNode as I, Transition as de, toDisplayString as S, toRefs as Z, Fragment as q, renderList as H, pushScopeId as _e, popScopeId as Se, ref as A, mergeProps as ne, onMounted as ee, withDirectives as te, isRef as le, vModelText as Ie, useSlots as Fe, vModelDynamic as Ee, watch as Y, withModifiers as Be, normalizeStyle as oe, onBeforeUnmount as Le } from "vue";
2
+ import { isObjectLike as Ce, clamp as we, isString as se, isUndefined as X, isArray as W, debounce as Pe, throttle as We } from "lodash";
3
+ import { ArrowPathIcon as Ue, ChevronUpIcon as Ve, ChevronDownIcon as qe, XMarkIcon as He, MagnifyingGlassIcon as Ge, CheckIcon as Ke, Bars3Icon as Xe, Squares2X2Icon as Ne } from "@heroicons/vue/24/solid";
4
4
  import { CheckCircleIcon as Je, XCircleIcon as Qe, ExclamationCircleIcon as Ye, InformationCircleIcon as Ze, XMarkIcon as et, CheckIcon as tt, ExclamationTriangleIcon as st } from "@heroicons/vue/24/outline";
5
- import { XMarkIcon as de, CheckIcon as nt, CheckCircleIcon as lt, ExclamationCircleIcon as Ve, EnvelopeIcon as at, KeyIcon as ot } from "@heroicons/vue/20/solid";
5
+ import { XMarkIcon as ce, CheckIcon as nt, CheckCircleIcon as lt, ExclamationCircleIcon as je, EnvelopeIcon as at, KeyIcon as ot } from "@heroicons/vue/20/solid";
6
6
  import { useField as fe } from "vee-validate";
7
7
  import { nanoid as pe } from "nanoid";
8
8
  import { isNullOrUndefined as rt, SourceApps as it, getClientOperatingSystem as ut, OperatingSystem as re } from "@speckle/shared";
9
- import { useResizeObserver as ct, useMutationObserver as dt, onKeyDown as ft, isClient as he } from "@vueuse/core";
9
+ import { useResizeObserver as dt, useMutationObserver as ct, onKeyDown as ft, isClient as he } from "@vueuse/core";
10
10
  import { Listbox as pt, ListboxLabel as ht, ListboxButton as mt, ListboxOptions as gt, ListboxOption as yt, TransitionRoot as vt, Dialog as bt, TransitionChild as $e, DialogPanel as xt, Disclosure as kt, DisclosureButton as Ct, DisclosurePanel as wt, Menu as $t, MenuButton as _t, MenuItems as St, MenuItem as It } from "@headlessui/vue";
11
11
  import { directive as Bt } from "vue-tippy";
12
12
  import Lt from "v3-infinite-loading";
13
13
  const Pt = {
14
14
  key: 2,
15
15
  style: { margin: "0 !important", width: "0.01px" }
16
- }, jt = /* @__PURE__ */ O({
16
+ }, Vt = /* @__PURE__ */ O({
17
17
  __name: "Button",
18
18
  props: {
19
19
  /**
@@ -141,123 +141,123 @@ const Pt = {
141
141
  },
142
142
  emits: ["click"],
143
143
  setup(e, { emit: s }) {
144
- const n = e, o = W("NuxtLink"), a = W("RouterLink"), r = c(() => n.linkComponent ? n.linkComponent : n.external ? "a" : Ce(o) ? o : Ce(a) ? a : "a"), i = c(() => {
144
+ const n = e, o = U("NuxtLink"), a = U("RouterLink"), r = c(() => n.linkComponent ? n.linkComponent : n.external ? "a" : Ce(o) ? o : Ce(a) ? a : "a"), d = c(() => {
145
145
  if (!n.to)
146
146
  return n.submit ? "submit" : "button";
147
- }), d = c(() => n.disabled || n.loading), y = c(() => n.loading ? Ue : n.iconLeft), p = c(() => {
148
- const f = [];
149
- if (f.push("border-2"), d.value)
150
- f.push(
147
+ }), i = c(() => n.disabled || n.loading), y = c(() => n.loading ? Ue : n.iconLeft), f = c(() => {
148
+ const p = [];
149
+ if (p.push("border-2"), i.value)
150
+ p.push(
151
151
  n.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
152
152
  );
153
153
  else
154
154
  switch (n.color) {
155
155
  case "invert":
156
- f.push(
156
+ p.push(
157
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
- f.push(
161
+ p.push(
162
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
- f.push(n.outlined ? "border-danger" : "bg-danger border-danger");
166
+ p.push(n.outlined ? "border-danger" : "bg-danger border-danger");
167
167
  break;
168
168
  case "secondary":
169
- f.push(
169
+ p.push(
170
170
  n.outlined ? "border-foundation" : "bg-foundation border-foundation-2"
171
171
  );
172
172
  break;
173
173
  case "warning":
174
- f.push(n.outlined ? "border-warning" : "bg-warning border-warning");
174
+ p.push(n.outlined ? "border-warning" : "bg-warning border-warning");
175
175
  break;
176
176
  case "success":
177
- f.push(n.outlined ? "border-success" : "bg-success border-success");
177
+ p.push(n.outlined ? "border-success" : "bg-success border-success");
178
178
  break;
179
179
  case "default":
180
180
  default:
181
- f.push(
181
+ p.push(
182
182
  n.outlined ? "border-primary hover:border-primary-focus" : "bg-primary hover:bg-primary-focus border-transparent"
183
183
  );
184
184
  break;
185
185
  }
186
- return f.join(" ");
186
+ return p.join(" ");
187
187
  }), w = c(() => {
188
- const f = [];
188
+ const p = [];
189
189
  if (!n.text && !n.link)
190
- if (d.value)
191
- f.push(
190
+ if (i.value)
191
+ p.push(
192
192
  (n.outlined, "text-foreground-disabled")
193
193
  );
194
194
  else
195
195
  switch (n.color) {
196
196
  case "invert":
197
- f.push(
197
+ p.push(
198
198
  n.outlined ? "text-foundation dark:text-foreground" : "text-primary"
199
199
  );
200
200
  break;
201
201
  case "card":
202
- f.push((n.outlined, "text-foreground"));
202
+ p.push((n.outlined, "text-foreground"));
203
203
  break;
204
204
  case "danger":
205
- f.push(
205
+ p.push(
206
206
  n.outlined ? "text-danger" : "text-foundation dark:text-foreground"
207
207
  );
208
208
  break;
209
209
  case "warning":
210
- f.push(
210
+ p.push(
211
211
  n.outlined ? "text-warning" : "text-foundation dark:text-foreground"
212
212
  );
213
213
  break;
214
214
  case "success":
215
- f.push(
215
+ p.push(
216
216
  n.outlined ? "text-success" : "text-foundation dark:text-foreground"
217
217
  );
218
218
  break;
219
219
  case "secondary":
220
- f.push(
220
+ p.push(
221
221
  (n.outlined, "text-foreground hover:text-primary")
222
222
  );
223
223
  break;
224
224
  case "default":
225
225
  default:
226
- f.push(
226
+ p.push(
227
227
  n.outlined ? "text-primary hover:text-primary-focus" : "text-foundation dark:text-foreground"
228
228
  );
229
229
  break;
230
230
  }
231
231
  else
232
- d.value ? f.push("text-foreground-disabled") : n.color === "invert" ? f.push(
232
+ i.value ? p.push("text-foreground-disabled") : n.color === "invert" ? p.push(
233
233
  "text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
234
- ) : n.color === "secondary" ? f.push("text-foreground-2 hover:text-primary-focus") : n.color === "success" ? f.push("text-success") : n.color === "warning" ? f.push("text-warning") : n.color === "danger" ? f.push("text-danger") : f.push("text-primary hover:text-primary-focus");
235
- return f.join(" ");
234
+ ) : n.color === "secondary" ? p.push("text-foreground-2 hover:text-primary-focus") : n.color === "success" ? p.push("text-success") : n.color === "warning" ? p.push("text-warning") : n.color === "danger" ? p.push("text-danger") : p.push("text-primary hover:text-primary-focus");
235
+ return p.join(" ");
236
236
  }), g = c(() => {
237
- const f = [];
238
- return f.push(n.rounded ? "rounded-full" : "rounded-md"), f.join(" ");
237
+ const p = [];
238
+ return p.push(n.rounded ? "rounded-full" : "rounded-md"), p.join(" ");
239
239
  }), m = c(() => {
240
- const f = [];
241
- if (!d.value)
240
+ const p = [];
241
+ if (!i.value)
242
242
  switch (n.color) {
243
243
  case "invert":
244
- f.push("hover:ring-4 ring-white/50");
244
+ p.push("hover:ring-4 ring-white/50");
245
245
  break;
246
246
  case "danger":
247
- f.push("hover:ring-4 ring-danger-lighter dark:ring-danger-darker");
247
+ p.push("hover:ring-4 ring-danger-lighter dark:ring-danger-darker");
248
248
  break;
249
249
  case "warning":
250
- f.push("hover:ring-4 ring-warning-lighter dark:ring-warning-darker");
250
+ p.push("hover:ring-4 ring-warning-lighter dark:ring-warning-darker");
251
251
  break;
252
252
  case "success":
253
- f.push("hover:ring-4 ring-success-lighter dark:ring-success-darker");
253
+ p.push("hover:ring-4 ring-success-lighter dark:ring-success-darker");
254
254
  break;
255
255
  case "default":
256
256
  default:
257
- f.push("hover:ring-2");
257
+ p.push("hover:ring-2");
258
258
  break;
259
259
  }
260
- return f.join(" ");
260
+ return p.join(" ");
261
261
  }), b = c(() => {
262
262
  switch (n.size) {
263
263
  case "xs":
@@ -272,7 +272,7 @@ const Pt = {
272
272
  case "base":
273
273
  return "h-8 text-base font-medium xxx-tracking-wide";
274
274
  }
275
- }), j = c(() => {
275
+ }), V = c(() => {
276
276
  switch (n.size) {
277
277
  case "xs":
278
278
  return "px-1";
@@ -286,77 +286,77 @@ const Pt = {
286
286
  case "base":
287
287
  return "px-3";
288
288
  }
289
- }), x = c(() => {
290
- const f = [];
291
- return n.fullWidth && f.push("w-full"), d.value && f.push("cursor-not-allowed"), f.join(" ");
292
289
  }), L = c(() => {
293
- const f = [];
294
- return !d.value && !n.link && !n.text && f.push("active:scale-[0.97]"), !d.value && n.link && f.push(
290
+ const p = [];
291
+ return n.fullWidth && p.push("w-full"), i.value && p.push("cursor-not-allowed"), p.join(" ");
292
+ }), $ = c(() => {
293
+ const p = [];
294
+ return !i.value && !n.link && !n.text && p.push("active:scale-[0.97]"), !i.value && n.link && p.push(
295
295
  "underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
296
- ), f.join(" ");
297
- }), S = c(() => {
298
- const f = n.link || n.text;
296
+ ), p.join(" ");
297
+ }), C = c(() => {
298
+ const p = n.link || n.text;
299
299
  return [
300
300
  "transition inline-flex justify-center items-center space-x-2 outline-none select-none",
301
- x.value,
301
+ L.value,
302
302
  b.value,
303
303
  w.value,
304
- f ? "" : p.value,
305
- f ? "" : g.value,
306
- f ? "" : m.value,
307
- n.link ? "" : j.value,
308
- L.value
304
+ p ? "" : f.value,
305
+ p ? "" : g.value,
306
+ p ? "" : m.value,
307
+ n.link ? "" : V.value,
308
+ $.value
309
309
  ].join(" ");
310
- }), C = c(() => {
311
- const f = [""];
312
- switch (n.loading && f.push("animate-spin"), n.size) {
310
+ }), x = c(() => {
311
+ const p = [""];
312
+ switch (n.loading && p.push("animate-spin"), n.size) {
313
313
  case "xs":
314
- f.push("h-3 w-3");
314
+ p.push("h-3 w-3");
315
315
  break;
316
316
  case "sm":
317
- f.push("h-4 w-4");
317
+ p.push("h-4 w-4");
318
318
  break;
319
319
  case "lg":
320
- f.push("h-6 w-6");
320
+ p.push("h-6 w-6");
321
321
  break;
322
322
  case "xl":
323
- f.push("h-8 w-8");
323
+ p.push("h-8 w-8");
324
324
  break;
325
325
  case "base":
326
326
  default:
327
- f.push("h-5 w-5");
327
+ p.push("h-5 w-5");
328
328
  break;
329
329
  }
330
- return f.join(" ");
331
- }), q = (f) => {
332
- if (d.value) {
333
- f.preventDefault(), f.stopPropagation(), f.stopImmediatePropagation();
330
+ return p.join(" ");
331
+ }), E = (p) => {
332
+ if (i.value) {
333
+ p.preventDefault(), p.stopPropagation(), p.stopImmediatePropagation();
334
334
  return;
335
335
  }
336
- s("click", f);
336
+ s("click", p);
337
337
  };
338
- return (f, V) => (l(), P(W(e.to ? t(r) : "button"), {
338
+ return (p, j) => (l(), P(U(e.to ? t(r) : "button"), {
339
339
  href: e.to,
340
340
  to: e.to,
341
- type: t(i),
341
+ type: t(d),
342
342
  external: e.external,
343
- class: v(t(S)),
344
- disabled: t(d),
343
+ class: v(t(C)),
344
+ disabled: t(i),
345
345
  role: "button",
346
- onClick: q
346
+ onClick: E
347
347
  }, {
348
348
  default: B(() => [
349
- t(y) ? (l(), P(W(t(y)), {
349
+ t(y) ? (l(), P(U(t(y)), {
350
350
  key: 0,
351
- class: v(`${t(C)} ${e.hideText ? "" : "mr-2"}`)
352
- }, null, 8, ["class"])) : $("", !0),
353
- e.hideText ? (l(), h("div", Pt, "   ")) : R(f.$slots, "default", { key: 1 }, () => [
351
+ class: v(`${t(x)} ${e.hideText ? "" : "mr-2"}`)
352
+ }, null, 8, ["class"])) : _("", !0),
353
+ e.hideText ? (l(), h("div", Pt, "   ")) : R(p.$slots, "default", { key: 1 }, () => [
354
354
  T("Button")
355
355
  ], !0),
356
- e.iconRight || !e.loading ? (l(), P(W(e.iconRight), {
356
+ e.iconRight || !e.loading ? (l(), P(U(e.iconRight), {
357
357
  key: 3,
358
- class: v(`${t(C)} ${e.hideText ? "" : "ml-2"}`)
359
- }, null, 8, ["class"])) : $("", !0)
358
+ class: v(`${t(x)} ${e.hideText ? "" : "ml-2"}`)
359
+ }, null, 8, ["class"])) : _("", !0)
360
360
  ]),
361
361
  _: 3
362
362
  }, 8, ["href", "to", "type", "external", "class", "disabled"]));
@@ -367,7 +367,7 @@ const me = (e, s) => {
367
367
  for (const [o, a] of s)
368
368
  n[o] = a;
369
369
  return n;
370
- }, ge = /* @__PURE__ */ me(jt, [["__scopeId", "data-v-da9a3400"]]), Vt = /* @__PURE__ */ O({
370
+ }, ge = /* @__PURE__ */ me(Vt, [["__scopeId", "data-v-da9a3400"]]), jt = /* @__PURE__ */ O({
371
371
  __name: "Link",
372
372
  props: {
373
373
  to: {
@@ -453,7 +453,7 @@ const Ot = {
453
453
  }, Mt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, At = {
454
454
  key: 0,
455
455
  class: "pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-foundation text-foreground shadow-lg ring-1 ring-primary-muted ring-opacity-5"
456
- }, Dt = { class: "p-4" }, Rt = { class: "flex items-start" }, Tt = { class: "flex-shrink-0" }, Ft = { class: "ml-2 w-0 flex-1 flex flex-col" }, zt = {
456
+ }, Dt = { class: "p-4" }, Rt = { class: "flex items-start" }, Tt = { class: "flex-shrink-0" }, zt = { class: "ml-2 w-0 flex-1 flex flex-col" }, Ft = {
457
457
  key: 0,
458
458
  class: "text-foreground font-bold"
459
459
  }, Et = {
@@ -471,18 +471,18 @@ const Ot = {
471
471
  setup(e, { emit: s }) {
472
472
  const n = e, o = c(
473
473
  () => {
474
- var i, d;
475
- return !((i = n.notification) != null && i.description) && !((d = n.notification) != null && d.cta);
474
+ var d, i;
475
+ return !((d = n.notification) != null && d.description) && !((i = n.notification) != null && i.cta);
476
476
  }
477
477
  ), a = () => {
478
478
  s("update:notification", null);
479
- }, r = (i) => {
480
- var d, y, p;
481
- (p = (y = (d = n.notification) == null ? void 0 : d.cta) == null ? void 0 : y.onClick) == null || p.call(y, i), a();
479
+ }, r = (d) => {
480
+ var i, y, f;
481
+ (f = (y = (i = n.notification) == null ? void 0 : i.cta) == null ? void 0 : y.onClick) == null || f.call(y, d), a();
482
482
  };
483
- return (i, d) => (l(), h("div", Ot, [
483
+ return (d, i) => (l(), h("div", Ot, [
484
484
  u("div", Mt, [
485
- I(ce, {
485
+ I(de, {
486
486
  "enter-active-class": "transform ease-out duration-300 transition",
487
487
  "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
488
488
  "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
@@ -511,24 +511,24 @@ const Ot = {
511
511
  key: 3,
512
512
  class: "h-6 w-6 text-info",
513
513
  "aria-hidden": "true"
514
- })) : $("", !0)
514
+ })) : _("", !0)
515
515
  ]),
516
- u("div", Ft, [
517
- e.notification.title ? (l(), h("p", zt, _(e.notification.title), 1)) : $("", !0),
518
- e.notification.description ? (l(), h("p", Et, _(e.notification.description), 1)) : $("", !0),
516
+ u("div", zt, [
517
+ e.notification.title ? (l(), h("p", Ft, S(e.notification.title), 1)) : _("", !0),
518
+ e.notification.description ? (l(), h("p", Et, S(e.notification.description), 1)) : _("", !0),
519
519
  e.notification.cta ? (l(), h("div", Wt, [
520
- I(Vt, {
520
+ I(jt, {
521
521
  to: e.notification.cta.url,
522
522
  class: "label",
523
523
  primary: "",
524
524
  onClick: r
525
525
  }, {
526
526
  default: B(() => [
527
- T(_(e.notification.cta.title), 1)
527
+ T(S(e.notification.cta.title), 1)
528
528
  ]),
529
529
  _: 1
530
530
  }, 8, ["to"])
531
- ])) : $("", !0)
531
+ ])) : _("", !0)
532
532
  ]),
533
533
  u("div", {
534
534
  class: v(["ml-4 flex flex-shrink-0", { "self-center": t(o) }])
@@ -539,7 +539,7 @@ const Ot = {
539
539
  onClick: a
540
540
  }, [
541
541
  Ut,
542
- I(t(de), {
542
+ I(t(ce), {
543
543
  class: "h-6 w-6",
544
544
  "aria-hidden": "true"
545
545
  })
@@ -547,7 +547,7 @@ const Ot = {
547
547
  ], 2)
548
548
  ])
549
549
  ])
550
- ])) : $("", !0)
550
+ ])) : _("", !0)
551
551
  ]),
552
552
  _: 1
553
553
  })
@@ -578,98 +578,106 @@ const Ot = {
578
578
  ), a = c(
579
579
  () => n.dotIconColorClasses || "text-blue-400"
580
580
  ), r = c(() => {
581
- const p = [
581
+ const f = [
582
582
  "inline-flex items-center",
583
583
  o.value,
584
584
  n.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
585
585
  ];
586
- return n.rounded ? (p.push("rounded"), p.push(
586
+ return n.rounded ? (f.push("rounded"), f.push(
587
587
  n.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
588
- )) : (p.push("rounded-full"), p.push(
588
+ )) : (f.push("rounded-full"), f.push(
589
589
  n.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
590
- )), p.join(" ");
591
- }), i = c(() => {
592
- const p = [
590
+ )), f.join(" ");
591
+ }), d = c(() => {
592
+ const f = [
593
593
  "mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
594
594
  ];
595
- return n.clickableIcon ? p.push("cursor-pointer") : p.push("cursor-default"), p.join(" ");
596
- }), d = c(() => [
595
+ return n.clickableIcon ? f.push("cursor-pointer") : f.push("cursor-default"), f.join(" ");
596
+ }), i = c(() => [
597
597
  "-ml-0.5 mr-1.5 h-2 w-2",
598
598
  a.value
599
- ].join(" ")), y = (p) => {
599
+ ].join(" ")), y = (f) => {
600
600
  if (!n.clickableIcon) {
601
- p.stopPropagation(), p.stopImmediatePropagation(), p.preventDefault();
601
+ f.stopPropagation(), f.stopImmediatePropagation(), f.preventDefault();
602
602
  return;
603
603
  }
604
- s("click-icon", p);
604
+ s("click-icon", f);
605
605
  };
606
- return (p, w) => (l(), h("span", {
606
+ return (f, w) => (l(), h("span", {
607
607
  class: v(t(r))
608
608
  }, [
609
609
  e.dot ? (l(), h("svg", {
610
610
  key: 0,
611
- class: v(t(d)),
611
+ class: v(t(i)),
612
612
  fill: "currentColor",
613
613
  viewBox: "0 0 8 8"
614
- }, Ht, 2)) : $("", !0),
615
- R(p.$slots, "default", {}, () => [
614
+ }, Ht, 2)) : _("", !0),
615
+ R(f.$slots, "default", {}, () => [
616
616
  T("Badge")
617
617
  ]),
618
618
  e.iconLeft ? (l(), h("button", {
619
619
  key: 1,
620
- class: v(t(i)),
620
+ class: v(t(d)),
621
621
  onClick: w[0] || (w[0] = (g) => y(g))
622
622
  }, [
623
- (l(), P(W(e.iconLeft), {
623
+ (l(), P(U(e.iconLeft), {
624
624
  class: v(["h-4 w-4", t(a)])
625
625
  }, null, 8, ["class"]))
626
- ], 2)) : $("", !0)
626
+ ], 2)) : _("", !0)
627
627
  ], 2));
628
628
  }
629
629
  });
630
630
  var J = /* @__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))(J || {});
631
631
  function Oe(e) {
632
632
  const {
633
- props: { modelValue: s, steps: n, orientation: o, goVerticalBelow: a, nonInteractive: r },
633
+ props: {
634
+ modelValue: s,
635
+ steps: n,
636
+ orientation: o,
637
+ goVerticalBelow: a,
638
+ nonInteractive: r,
639
+ stepsPadding: d
640
+ },
634
641
  emit: i
635
- } = e, d = c(
642
+ } = e, y = c(
636
643
  () => (o == null ? void 0 : o.value) === "vertical" ? "vertical" : "horizontal"
637
- ), y = c({
644
+ ), f = c({
638
645
  get: () => we((s == null ? void 0 : s.value) || 0, -1, n.value.length),
639
- set: (x) => i("update:modelValue", we(x, 0, n.value.length))
640
- }), p = (x) => `${x + 1}`, w = (x) => x === y.value, g = (x) => x < y.value, m = (x, L) => {
641
- var C;
646
+ set: ($) => i("update:modelValue", we($, 0, n.value.length))
647
+ }), w = ($) => `${$ + 1}`, g = ($) => $ === f.value, m = ($) => $ < f.value, b = ($, C) => {
648
+ var E;
642
649
  if (r != null && r.value) {
643
- L == null || L.preventDefault(), L == null || L.stopPropagation(), L == null || L.stopImmediatePropagation();
650
+ C == null || C.preventDefault(), C == null || C.stopPropagation(), C == null || C.stopImmediatePropagation();
644
651
  return;
645
652
  }
646
- y.value = x;
647
- const S = n.value[y.value];
648
- (C = S == null ? void 0 : S.onClick) == null || C.call(S);
649
- }, b = c(() => {
650
- const x = ["flex"];
651
- return x.push("flex"), d.value === "vertical" || a != null && a.value ? (x.push("flex-col space-y-4 justify-center"), (a == null ? void 0 : a.value) === J.sm ? x.push(
652
- "sm:flex-row sm:space-y-0 sm:justify-start sm:space-x-8 sm:items-center"
653
- ) : (a == null ? void 0 : a.value) === J.md ? x.push(
654
- "md:flex-row md:space-y-0 md:justify-start md:space-x-8 md:items-center"
655
- ) : (a == null ? void 0 : a.value) === J.lg ? x.push(
656
- "lg:flex-row lg:space-y-0 lg:justify-start lg:space-x-8 lg:items-center"
657
- ) : (a == null ? void 0 : a.value) === J.xl && x.push(
658
- "xl:flex-row xl:space-y-0 xl:justify-start xl:space-x-8 xl:items-center"
659
- )) : x.push("flex-row space-x-8 items-center"), x.join(" ");
660
- }), j = c(() => {
661
- const x = ["flex items-center"];
662
- return r != null && r.value || x.push("cursor-pointer"), x.join(" ");
653
+ f.value = $;
654
+ const x = n.value[f.value];
655
+ (E = x == null ? void 0 : x.onClick) == null || E.call(x);
656
+ }, V = c(() => {
657
+ const $ = ["flex"];
658
+ let C, x;
659
+ return (d == null ? void 0 : d.value) === "xs" ? (C = "space-x-2", x = "space-y-1") : (d == null ? void 0 : d.value) === "sm" ? (C = "space-x-4", x = "space-y-1") : (C = "space-x-8", x = "space-y-4"), $.push("flex"), y.value === "vertical" || a != null && a.value ? ($.push(`flex-col ${x} justify-center`), (a == null ? void 0 : a.value) === J.sm ? $.push(
660
+ `sm:flex-row sm:space-y-0 sm:justify-start sm:${C} sm:items-center`
661
+ ) : (a == null ? void 0 : a.value) === J.md ? $.push(
662
+ `md:flex-row md:space-y-0 md:justify-start md:${C} md:items-center`
663
+ ) : (a == null ? void 0 : a.value) === J.lg ? $.push(
664
+ `lg:flex-row lg:space-y-0 lg:justify-start lg:${C} lg:items-center`
665
+ ) : (a == null ? void 0 : a.value) === J.xl && $.push(
666
+ `xl:flex-row xl:space-y-0 xl:justify-start xl:${C} xl:items-center`
667
+ )) : $.push(`flex-row ${C} items-center`), $.join(" ");
668
+ }), L = c(() => {
669
+ const $ = ["flex items-center"];
670
+ return r != null && r.value || $.push("cursor-pointer"), $.join(" ");
663
671
  });
664
672
  return {
665
- value: y,
666
- isCurrentStep: w,
667
- isFinishedStep: g,
668
- switchStep: m,
669
- getStepDisplayValue: p,
670
- listClasses: b,
671
- linkClasses: j,
672
- orientation: d
673
+ value: f,
674
+ isCurrentStep: g,
675
+ isFinishedStep: m,
676
+ switchStep: b,
677
+ getStepDisplayValue: w,
678
+ listClasses: V,
679
+ linkClasses: L,
680
+ orientation: y
673
681
  };
674
682
  }
675
683
  const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Jt = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, Qt = { class: "flex flex-col" }, Yt = {
@@ -689,7 +697,8 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
689
697
  steps: null,
690
698
  modelValue: null,
691
699
  goVerticalBelow: null,
692
- nonInteractive: { type: Boolean }
700
+ nonInteractive: { type: Boolean },
701
+ stepsPadding: null
693
702
  },
694
703
  emits: ["update:modelValue"],
695
704
  setup(e, { emit: s }) {
@@ -697,21 +706,21 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
697
706
  isCurrentStep: o,
698
707
  isFinishedStep: a,
699
708
  switchStep: r,
700
- getStepDisplayValue: i,
701
- listClasses: d,
709
+ getStepDisplayValue: d,
710
+ listClasses: i,
702
711
  linkClasses: y
703
712
  } = Oe({
704
713
  props: Z(n),
705
714
  emit: s
706
715
  });
707
- return (p, w) => (l(), h("nav", {
716
+ return (f, w) => (l(), h("nav", {
708
717
  class: "flex justify-center",
709
718
  "aria-label": e.ariaLabel || "Progress steps"
710
719
  }, [
711
720
  u("ol", {
712
- class: v(t(d))
721
+ class: v(t(i))
713
722
  }, [
714
- (l(!0), h(U, null, H(e.steps, (g, m) => (l(), h("li", {
723
+ (l(!0), h(q, null, H(e.steps, (g, m) => (l(), h("li", {
715
724
  key: g.name
716
725
  }, [
717
726
  t(a)(m) ? (l(), h("a", {
@@ -725,8 +734,8 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
725
734
  I(t(nt), { class: "w-5 h-5" })
726
735
  ]),
727
736
  u("div", Qt, [
728
- u("div", null, _(g.name), 1),
729
- g.description ? (l(), h("div", Yt, _(g.description), 1)) : $("", !0)
737
+ u("div", null, S(g.name), 1),
738
+ g.description ? (l(), h("div", Yt, S(g.description), 1)) : _("", !0)
730
739
  ])
731
740
  ])
732
741
  ], 10, Xt)) : t(o)(m) ? (l(), h("a", {
@@ -737,10 +746,10 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
737
746
  onClick: (b) => t(r)(m, b)
738
747
  }, [
739
748
  u("div", es, [
740
- u("div", ts, _(t(i)(m)), 1),
749
+ u("div", ts, S(t(d)(m)), 1),
741
750
  u("div", ss, [
742
- u("div", null, _(g.name), 1),
743
- g.description ? (l(), h("div", ns, _(g.description), 1)) : $("", !0)
751
+ u("div", null, S(g.name), 1),
752
+ g.description ? (l(), h("div", ns, S(g.description), 1)) : _("", !0)
744
753
  ])
745
754
  ])
746
755
  ], 10, Zt)) : (l(), h("a", {
@@ -750,10 +759,10 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
750
759
  onClick: (b) => t(r)(m, b)
751
760
  }, [
752
761
  u("div", as, [
753
- u("div", os, _(t(i)(m)), 1),
762
+ u("div", os, S(t(d)(m)), 1),
754
763
  u("div", rs, [
755
- u("div", null, _(g.name), 1),
756
- g.description ? (l(), h("div", is, _(g.description), 1)) : $("", !0)
764
+ u("div", null, S(g.name), 1),
765
+ g.description ? (l(), h("div", is, S(g.description), 1)) : _("", !0)
757
766
  ])
758
767
  ])
759
768
  ], 10, ls))
@@ -761,7 +770,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
761
770
  ], 2)
762
771
  ], 8, Kt));
763
772
  }
764
- }), Me = (e) => (_e("data-v-56fc6520"), e = e(), Se(), e), us = ["aria-label"], cs = ["href", "onClick"], ds = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, fs = {
773
+ }), Me = (e) => (_e("data-v-9dd7b659"), e = e(), Se(), e), us = ["aria-label"], ds = ["href", "onClick"], cs = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, fs = {
765
774
  key: 0,
766
775
  class: "h-3 w-3 rounded-full bg-foreground-2"
767
776
  }, ps = ["href", "onClick"], hs = {
@@ -788,34 +797,36 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
788
797
  steps: null,
789
798
  modelValue: null,
790
799
  goVerticalBelow: null,
791
- nonInteractive: { type: Boolean }
800
+ nonInteractive: { type: Boolean },
801
+ stepsPadding: null
792
802
  },
793
803
  emits: ["update:modelValue"],
794
804
  setup(e, { emit: s }) {
795
- const n = e, { isCurrentStep: o, isFinishedStep: a, switchStep: r, listClasses: i, linkClasses: d } = Oe({
805
+ const n = e, { isCurrentStep: o, isFinishedStep: a, switchStep: r, listClasses: d, linkClasses: i } = Oe({
796
806
  props: Z(n),
797
807
  emit: s
798
808
  }), y = c(() => {
799
- const p = ["ml-3 h6 font-medium leading-7"];
800
- return n.basic && p.push("sr-only"), p.join(" ");
809
+ const f = ["h6 font-medium leading-7"];
810
+ let w;
811
+ return n.stepsPadding === "xs" ? w = "ml-1" : n.stepsPadding === "sm" ? w = "ml-2" : w = "ml-3", f.push(w), n.basic && f.push("sr-only"), f.join(" ");
801
812
  });
802
- return (p, w) => (l(), h("nav", {
813
+ return (f, w) => (l(), h("nav", {
803
814
  class: "flex justify-center",
804
815
  "aria-label": e.ariaLabel || "Progress steps"
805
816
  }, [
806
817
  u("ol", {
807
- class: v([t(i), e.basic ? "basic" : ""])
818
+ class: v([t(d), e.basic ? "basic" : ""])
808
819
  }, [
809
- (l(!0), h(U, null, H(e.steps, (g, m) => (l(), h("li", {
820
+ (l(!0), h(q, null, H(e.steps, (g, m) => (l(), h("li", {
810
821
  key: g.name
811
822
  }, [
812
823
  t(a)(m) ? (l(), h("a", {
813
824
  key: 0,
814
825
  href: g.href,
815
- class: v(t(d)),
826
+ class: v(t(i)),
816
827
  onClick: (b) => t(r)(m, b)
817
828
  }, [
818
- u("span", ds, [
829
+ u("span", cs, [
819
830
  e.basic ? (l(), h("span", fs)) : (l(), P(t(lt), {
820
831
  key: 1,
821
832
  class: "h-full w-full text-primary",
@@ -824,27 +835,27 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
824
835
  ]),
825
836
  u("span", {
826
837
  class: v(["text-foreground", t(y)])
827
- }, _(g.name), 3)
828
- ], 10, cs)) : t(o)(m) ? (l(), h("a", {
838
+ }, S(g.name), 3)
839
+ ], 10, ds)) : t(o)(m) ? (l(), h("a", {
829
840
  key: 1,
830
841
  href: g.href,
831
- class: v(t(d)),
842
+ class: v(t(i)),
832
843
  "aria-current": "step",
833
844
  onClick: (b) => t(r)(m, b)
834
845
  }, [
835
846
  u("span", hs, [
836
- e.basic ? (l(), h("span", ms)) : (l(), h(U, { key: 1 }, [
847
+ e.basic ? (l(), h("span", ms)) : (l(), h(q, { key: 1 }, [
837
848
  gs,
838
849
  ys
839
850
  ], 64))
840
851
  ]),
841
852
  u("span", {
842
853
  class: v(["text-primary-focus", t(y)])
843
- }, _(g.name), 3)
854
+ }, S(g.name), 3)
844
855
  ], 10, ps)) : (l(), h("a", {
845
856
  key: 2,
846
857
  href: g.href,
847
- class: v(t(d)),
858
+ class: v(t(i)),
848
859
  onClick: (b) => t(r)(m, b)
849
860
  }, [
850
861
  u("div", bs, [
@@ -852,14 +863,14 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
852
863
  ]),
853
864
  u("p", {
854
865
  class: v(["text-foreground-disabled", t(y)])
855
- }, _(g.name), 3)
866
+ }, S(g.name), 3)
856
867
  ], 10, vs))
857
868
  ]))), 128))
858
869
  ], 2)
859
870
  ], 8, us));
860
871
  }
861
872
  });
862
- const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["disabled"], ul = /* @__PURE__ */ O({
873
+ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-9dd7b659"]]), ws = ["disabled"], ul = /* @__PURE__ */ O({
863
874
  __name: "CardButton",
864
875
  props: {
865
876
  disabled: { type: Boolean },
@@ -882,7 +893,7 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
882
893
  }
883
894
  s("update:modelValue", !n.modelValue), s("click", r);
884
895
  };
885
- return (r, i) => (l(), h("button", {
896
+ return (r, d) => (l(), h("button", {
886
897
  class: v(t(o)),
887
898
  disabled: e.disabled,
888
899
  onClick: a
@@ -898,10 +909,10 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
898
909
  }, Bs = ["for"], Ls = {
899
910
  key: 0,
900
911
  class: "text-danger ml-1"
901
- }, Ps = ["id"], js = O({
912
+ }, Ps = ["id"], Vs = O({
902
913
  inheritAttrs: !1
903
- }), cl = /* @__PURE__ */ O({
904
- ...js,
914
+ }), dl = /* @__PURE__ */ O({
915
+ ...Vs,
905
916
  __name: "Checkbox",
906
917
  props: {
907
918
  /**
@@ -989,47 +1000,47 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
989
1000
  },
990
1001
  emits: ["update:modelValue"],
991
1002
  setup(e) {
992
- const s = e, n = (x) => `${x}-${pe()}`, o = c(() => s.value || s.name), {
1003
+ const s = e, n = (L) => `${L}-${pe()}`, o = c(() => s.value || s.name), {
993
1004
  checked: a,
994
1005
  errorMessage: r,
995
- handleChange: i
1006
+ handleChange: d
996
1007
  } = fe(s.name, s.rules, {
997
1008
  validateOnMount: s.validateOnMount,
998
1009
  type: "checkbox",
999
1010
  checkedValue: o,
1000
1011
  initialValue: s.modelValue || void 0
1001
- }), d = (x) => {
1002
- s.disabled || i(x);
1003
- }, y = c(() => s.label || s.name), p = c(() => r.value ? "border-danger-lighter" : "border-foreground-4 "), w = c(() => s.description || r.value), g = c(() => `${s.name}-description`), m = c(() => {
1004
- const x = [];
1005
- return s.inlineDescription ? x.push("inline ml-2") : x.push("block"), r.value ? x.push("text-danger") : x.push("text-foreground-2"), x.join(" ");
1006
- }), b = A(n("checkbox")), j = c(() => s.id || b.value);
1007
- return (x, L) => (l(), h("div", $s, [
1012
+ }), i = (L) => {
1013
+ s.disabled || d(L);
1014
+ }, y = c(() => s.label || s.name), f = c(() => r.value ? "border-danger-lighter" : "border-foreground-4 "), w = c(() => s.description || r.value), g = c(() => `${s.name}-description`), m = c(() => {
1015
+ const L = [];
1016
+ return s.inlineDescription ? L.push("inline ml-2") : L.push("block"), r.value ? L.push("text-danger") : L.push("text-foreground-2"), L.join(" ");
1017
+ }), b = A(n("checkbox")), V = c(() => s.id || b.value);
1018
+ return (L, $) => (l(), h("div", $s, [
1008
1019
  u("div", _s, [
1009
1020
  u("input", ne({
1010
- id: t(j),
1021
+ id: t(V),
1011
1022
  checked: t(a),
1012
1023
  "aria-describedby": t(g),
1013
1024
  name: e.name,
1014
1025
  value: t(o),
1015
1026
  disabled: e.disabled,
1016
1027
  type: "checkbox",
1017
- class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", t(p)]
1018
- }, x.$attrs, { onChange: d }), null, 16, Ss)
1028
+ class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", t(f)]
1029
+ }, L.$attrs, { onChange: i }), null, 16, Ss)
1019
1030
  ]),
1020
1031
  u("div", Is, [
1021
1032
  u("label", {
1022
- for: t(j),
1033
+ for: t(V),
1023
1034
  class: v(["font-medium text-foreground", { "sr-only": e.hideLabel }])
1024
1035
  }, [
1025
- u("span", null, _(t(y)), 1),
1026
- e.showRequired ? (l(), h("span", Ls, "*")) : $("", !0)
1036
+ u("span", null, S(t(y)), 1),
1037
+ e.showRequired ? (l(), h("span", Ls, "*")) : _("", !0)
1027
1038
  ], 10, Bs),
1028
1039
  t(w) ? (l(), h("p", {
1029
1040
  key: 0,
1030
1041
  id: t(g),
1031
1042
  class: v(t(m))
1032
- }, _(t(w)), 11, Ps)) : $("", !0)
1043
+ }, S(t(w)), 11, Ps)) : _("", !0)
1033
1044
  ])
1034
1045
  ]));
1035
1046
  }
@@ -1039,54 +1050,54 @@ function Ae(e) {
1039
1050
  validateOnMount: t(s.validateOnMount),
1040
1051
  validateOnValueUpdate: t(s.validateOnValueUpdate),
1041
1052
  initialValue: t(s.modelValue) || void 0
1042
- }), i = c(() => {
1043
- const C = ["block label text-foreground-2 mb-2"];
1044
- return t(s.showLabel) || C.push("sr-only"), C.join(" ");
1045
1053
  }), d = c(() => {
1046
- const C = [
1054
+ const x = ["block label text-foreground-2 mb-2"];
1055
+ return t(s.showLabel) || x.push("sr-only"), x.join(" ");
1056
+ }), i = c(() => {
1057
+ const x = [
1047
1058
  "block w-full rounded focus:outline-none text-foreground transition-all",
1048
1059
  "disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
1049
1060
  "placeholder:text-foreground-2"
1050
1061
  ];
1051
- return r.value ? C.push(
1062
+ return r.value ? x.push(
1052
1063
  "border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
1053
- ) : C.push("border-0 focus:ring-2 focus:ring-outline-2"), t(s.color) === "foundation" ? C.push("bg-foundation shadow-sm hover:shadow") : C.push("bg-foundation-page"), C.join(" ");
1054
- }), y = A(pe()), p = c(() => t(s.label) || t(s.name)), w = c(() => {
1055
- const C = r.value;
1056
- return !C || !t(s.useLabelInErrors) ? C : C.replace("Value", p.value);
1064
+ ) : x.push("border-0 focus:ring-2 focus:ring-outline-2"), t(s.color) === "foundation" ? x.push("bg-foundation shadow-sm hover:shadow") : x.push("bg-foundation-page"), x.join(" ");
1065
+ }), y = A(pe()), f = c(() => t(s.label) || t(s.name)), w = c(() => {
1066
+ const x = r.value;
1067
+ return !x || !t(s.useLabelInErrors) ? x : x.replace("Value", f.value);
1057
1068
  }), g = c(
1058
1069
  () => w.value && t(s.hideErrorMessage)
1059
- ), m = c(() => w.value || t(s.help)), b = c(() => !!m.value), j = c(
1070
+ ), m = c(() => w.value || t(s.help)), b = c(() => !!m.value), V = c(
1060
1071
  () => b.value ? `${t(s.name)}-${y.value}` : void 0
1061
- ), x = c(() => {
1062
- const C = ["mt-2 text-sm"];
1063
- return C.push(r.value ? "text-danger" : "text-foreground-2"), C.join(" ");
1064
- }), L = () => {
1065
- var C;
1066
- (C = n.value) == null || C.focus();
1067
- }, S = () => {
1072
+ ), L = c(() => {
1073
+ const x = ["mt-2 text-sm"];
1074
+ return x.push(r.value ? "text-danger" : "text-foreground-2"), x.join(" ");
1075
+ }), $ = () => {
1076
+ var x;
1077
+ (x = n.value) == null || x.focus();
1078
+ }, C = () => {
1068
1079
  a.value = "", o("change", { value: "" }), o("clear");
1069
1080
  };
1070
1081
  return ee(() => {
1071
- t(s.autoFocus) && L();
1082
+ t(s.autoFocus) && $();
1072
1083
  }), {
1073
- coreClasses: d,
1074
- title: p,
1084
+ coreClasses: i,
1085
+ title: f,
1075
1086
  value: a,
1076
- helpTipId: j,
1077
- helpTipClasses: x,
1087
+ helpTipId: V,
1088
+ helpTipClasses: L,
1078
1089
  helpTip: m,
1079
1090
  hideHelpTip: g,
1080
1091
  errorMessage: w,
1081
- clear: S,
1082
- focus: L,
1083
- labelClasses: i
1092
+ clear: C,
1093
+ focus: $,
1094
+ labelClasses: d
1084
1095
  };
1085
1096
  }
1086
- const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], As = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Ds = {
1097
+ const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], As = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Ds = {
1087
1098
  key: 2,
1088
1099
  class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
1089
- }, Rs = ["id"], dl = /* @__PURE__ */ O({
1100
+ }, Rs = ["id"], cl = /* @__PURE__ */ O({
1090
1101
  __name: "TextArea",
1091
1102
  props: {
1092
1103
  name: null,
@@ -1110,65 +1121,65 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1110
1121
  setup(e, { expose: s, emit: n }) {
1111
1122
  const o = e, a = A(null), {
1112
1123
  coreClasses: r,
1113
- title: i,
1114
- value: d,
1124
+ title: d,
1125
+ value: i,
1115
1126
  helpTipId: y,
1116
- helpTipClasses: p,
1127
+ helpTipClasses: f,
1117
1128
  helpTip: w,
1118
1129
  errorMessage: g,
1119
1130
  labelClasses: m,
1120
1131
  clear: b,
1121
- focus: j
1132
+ focus: V
1122
1133
  } = Ae({
1123
1134
  props: Z(o),
1124
1135
  emit: n,
1125
1136
  inputEl: a
1126
- }), x = c(() => {
1127
- const L = ["pl-2"];
1128
- return o.showClear && g.value ? L.push("pr-12") : (o.showClear || g.value) && L.push("pr-8"), L.join(" ");
1137
+ }), L = c(() => {
1138
+ const $ = ["pl-2"];
1139
+ return o.showClear && g.value ? $.push("pr-12") : (o.showClear || g.value) && $.push("pr-8"), $.join(" ");
1129
1140
  });
1130
- return s({ focus: j }), (L, S) => (l(), h("div", {
1141
+ return s({ focus: V }), ($, C) => (l(), h("div", {
1131
1142
  class: v([e.fullWidth ? "w-full" : ""])
1132
1143
  }, [
1133
1144
  u("label", {
1134
1145
  for: e.name,
1135
1146
  class: v(t(m))
1136
1147
  }, [
1137
- u("span", null, _(t(i)), 1)
1138
- ], 10, Vs),
1148
+ u("span", null, S(t(d)), 1)
1149
+ ], 10, js),
1139
1150
  u("div", Os, [
1140
1151
  te(u("textarea", ne({
1141
1152
  id: e.name,
1142
1153
  ref_key: "inputElement",
1143
1154
  ref: a,
1144
- "onUpdate:modelValue": S[0] || (S[0] = (C) => le(d) ? d.value = C : null),
1155
+ "onUpdate:modelValue": C[0] || (C[0] = (x) => le(i) ? i.value = x : null),
1145
1156
  name: e.name,
1146
- class: [t(r), t(x), "min-h-[4rem]"],
1157
+ class: [t(r), t(L), "min-h-[4rem]"],
1147
1158
  placeholder: e.placeholder,
1148
1159
  disabled: e.disabled,
1149
1160
  "aria-invalid": t(g) ? "true" : "false",
1150
1161
  "aria-describedby": t(y)
1151
- }, L.$attrs, {
1152
- onChange: S[1] || (S[1] = (C) => L.$emit("change", { event: C, value: t(d) })),
1153
- onInput: S[2] || (S[2] = (C) => L.$emit("input", { event: C, value: t(d) }))
1162
+ }, $.$attrs, {
1163
+ onChange: C[1] || (C[1] = (x) => $.$emit("change", { event: x, value: t(i) })),
1164
+ onInput: C[2] || (C[2] = (x) => $.$emit("input", { event: x, value: t(i) }))
1154
1165
  }), null, 16, Ms), [
1155
- [Ie, t(d)]
1166
+ [Ie, t(i)]
1156
1167
  ]),
1157
1168
  e.showClear ? (l(), h("a", {
1158
1169
  key: 0,
1159
1170
  title: "Clear input",
1160
1171
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
1161
- onClick: S[3] || (S[3] = //@ts-ignore
1162
- (...C) => t(b) && t(b)(...C)),
1163
- onKeydown: S[4] || (S[4] = //@ts-ignore
1164
- (...C) => t(b) && t(b)(...C))
1172
+ onClick: C[3] || (C[3] = //@ts-ignore
1173
+ (...x) => t(b) && t(b)(...x)),
1174
+ onKeydown: C[4] || (C[4] = //@ts-ignore
1175
+ (...x) => t(b) && t(b)(...x))
1165
1176
  }, [
1166
1177
  As,
1167
- I(t(de), {
1178
+ I(t(ce), {
1168
1179
  class: "h-5 w-5 text-foreground",
1169
1180
  "aria-hidden": "true"
1170
1181
  })
1171
- ], 32)) : $("", !0),
1182
+ ], 32)) : _("", !0),
1172
1183
  t(g) ? (l(), h("div", {
1173
1184
  key: 1,
1174
1185
  class: v([
@@ -1176,21 +1187,21 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1176
1187
  e.showClear ? "pr-8" : "pr-2"
1177
1188
  ])
1178
1189
  }, [
1179
- I(t(Ve), {
1190
+ I(t(je), {
1180
1191
  class: "h-4 w-4 text-danger",
1181
1192
  "aria-hidden": "true"
1182
1193
  })
1183
- ], 2)) : $("", !0),
1184
- e.showRequired && !t(g) ? (l(), h("div", Ds, " * ")) : $("", !0)
1194
+ ], 2)) : _("", !0),
1195
+ e.showRequired && !t(g) ? (l(), h("div", Ds, " * ")) : _("", !0)
1185
1196
  ]),
1186
1197
  t(y) ? (l(), h("p", {
1187
1198
  key: 0,
1188
1199
  id: t(y),
1189
- class: v(t(p))
1190
- }, _(t(w)), 11, Rs)) : $("", !0)
1200
+ class: v(t(f))
1201
+ }, S(t(w)), 11, Rs)) : _("", !0)
1191
1202
  ], 2));
1192
1203
  }
1193
- }), Ts = ["for"], Fs = { class: "relative" }, zs = {
1204
+ }), Ts = ["for"], zs = { class: "relative" }, Fs = {
1194
1205
  key: 0,
1195
1206
  class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
1196
1207
  }, Es = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ws = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Us = {
@@ -1335,31 +1346,31 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1335
1346
  },
1336
1347
  emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
1337
1348
  setup(e, { expose: s, emit: n }) {
1338
- const o = e, a = ze(), r = A(null), {
1339
- coreClasses: i,
1340
- title: d,
1349
+ const o = e, a = Fe(), r = A(null), {
1350
+ coreClasses: d,
1351
+ title: i,
1341
1352
  value: y,
1342
- helpTipId: p,
1353
+ helpTipId: f,
1343
1354
  helpTipClasses: w,
1344
1355
  helpTip: g,
1345
1356
  hideHelpTip: m,
1346
1357
  errorMessage: b,
1347
- clear: j,
1348
- focus: x,
1349
- labelClasses: L
1358
+ clear: V,
1359
+ focus: L,
1360
+ labelClasses: $
1350
1361
  } = Ae({
1351
1362
  props: Z(o),
1352
1363
  emit: n,
1353
1364
  inputEl: r
1354
- }), S = c(() => {
1355
- const V = ["h-5 w-5"];
1356
- return b.value ? V.push("text-danger") : V.push("text-foreground-2"), V.join(" ");
1357
- }), C = c(
1365
+ }), C = c(() => {
1366
+ const j = ["h-5 w-5"];
1367
+ return b.value ? j.push("text-danger") : j.push("text-foreground-2"), j.join(" ");
1368
+ }), x = c(
1358
1369
  () => ["email", "password"].includes(o.type) || o.customIcon
1359
- ), q = c(() => {
1360
- const V = [];
1361
- return C.value ? V.push("pl-8") : V.push("pl-2"), a["input-right"] || (b.value || o.showClear) && (b.value && o.showClear ? V.push("pr-12") : V.push("pr-8")), V.join(" ");
1362
- }), f = c(() => {
1370
+ ), E = c(() => {
1371
+ const j = [];
1372
+ return x.value ? j.push("pl-8") : j.push("pl-2"), a["input-right"] || (b.value || o.showClear) && (b.value && o.showClear ? j.push("pr-12") : j.push("pr-8")), j.join(" ");
1373
+ }), p = c(() => {
1363
1374
  switch (o.size) {
1364
1375
  case "sm":
1365
1376
  return "h-6";
@@ -1372,66 +1383,66 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1372
1383
  return "h-8";
1373
1384
  }
1374
1385
  });
1375
- return s({ focus: x }), (V, F) => (l(), h("div", {
1386
+ return s({ focus: L }), (j, z) => (l(), h("div", {
1376
1387
  class: v([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1377
1388
  }, [
1378
1389
  u("label", {
1379
1390
  for: e.name,
1380
- class: v(t(L))
1391
+ class: v(t($))
1381
1392
  }, [
1382
- u("span", null, _(t(d)), 1)
1393
+ u("span", null, S(t(i)), 1)
1383
1394
  ], 10, Ts),
1384
- u("div", Fs, [
1385
- t(C) ? (l(), h("div", zs, [
1386
- e.customIcon ? (l(), P(W(e.customIcon), {
1395
+ u("div", zs, [
1396
+ t(x) ? (l(), h("div", Fs, [
1397
+ e.customIcon ? (l(), P(U(e.customIcon), {
1387
1398
  key: 0,
1388
- class: v(t(S)),
1399
+ class: v(t(C)),
1389
1400
  "aria-hidden": "true"
1390
1401
  }, null, 8, ["class"])) : e.type === "email" ? (l(), P(t(at), {
1391
1402
  key: 1,
1392
- class: v(t(S)),
1403
+ class: v(t(C)),
1393
1404
  "aria-hidden": "true"
1394
1405
  }, null, 8, ["class"])) : e.type === "password" ? (l(), P(t(ot), {
1395
1406
  key: 2,
1396
- class: v(t(S)),
1407
+ class: v(t(C)),
1397
1408
  "aria-hidden": "true"
1398
- }, null, 8, ["class"])) : $("", !0)
1399
- ])) : $("", !0),
1409
+ }, null, 8, ["class"])) : _("", !0)
1410
+ ])) : _("", !0),
1400
1411
  te(u("input", ne({
1401
1412
  id: e.name,
1402
1413
  ref_key: "inputElement",
1403
1414
  ref: r,
1404
- "onUpdate:modelValue": F[0] || (F[0] = (M) => le(y) ? y.value = M : null),
1415
+ "onUpdate:modelValue": z[0] || (z[0] = (M) => le(y) ? y.value = M : null),
1405
1416
  type: e.type,
1406
1417
  name: e.name,
1407
- class: [t(i), t(q), t(f), e.inputClasses || ""],
1418
+ class: [t(d), t(E), t(p), e.inputClasses || ""],
1408
1419
  placeholder: e.placeholder,
1409
1420
  disabled: e.disabled,
1410
1421
  "aria-invalid": t(b) ? "true" : "false",
1411
- "aria-describedby": t(p),
1422
+ "aria-describedby": t(f),
1412
1423
  role: "textbox"
1413
- }, V.$attrs, {
1414
- onChange: F[1] || (F[1] = (M) => V.$emit("change", { event: M, value: t(y) })),
1415
- onInput: F[2] || (F[2] = (M) => V.$emit("input", { event: M, value: t(y) }))
1424
+ }, j.$attrs, {
1425
+ onChange: z[1] || (z[1] = (M) => j.$emit("change", { event: M, value: t(y) })),
1426
+ onInput: z[2] || (z[2] = (M) => j.$emit("input", { event: M, value: t(y) }))
1416
1427
  }), null, 16, Es), [
1417
1428
  [Ee, t(y)]
1418
1429
  ]),
1419
- R(V.$slots, "input-right", {}, () => [
1430
+ R(j.$slots, "input-right", {}, () => [
1420
1431
  e.showClear ? (l(), h("a", {
1421
1432
  key: 0,
1422
1433
  title: "Clear input",
1423
1434
  class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
1424
- onClick: F[3] || (F[3] = //@ts-ignore
1425
- (...M) => t(j) && t(j)(...M)),
1426
- onKeydown: F[4] || (F[4] = //@ts-ignore
1427
- (...M) => t(j) && t(j)(...M))
1435
+ onClick: z[3] || (z[3] = //@ts-ignore
1436
+ (...M) => t(V) && t(V)(...M)),
1437
+ onKeydown: z[4] || (z[4] = //@ts-ignore
1438
+ (...M) => t(V) && t(V)(...M))
1428
1439
  }, [
1429
1440
  Ws,
1430
- I(t(de), {
1441
+ I(t(ce), {
1431
1442
  class: "h-5 w-5 text-foreground",
1432
1443
  "aria-hidden": "true"
1433
1444
  })
1434
- ], 32)) : $("", !0),
1445
+ ], 32)) : _("", !0),
1435
1446
  t(b) ? (l(), h("div", {
1436
1447
  key: 1,
1437
1448
  class: v([
@@ -1439,19 +1450,19 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1439
1450
  e.showClear ? "pr-8" : "pr-2"
1440
1451
  ])
1441
1452
  }, [
1442
- I(t(Ve), {
1453
+ I(t(je), {
1443
1454
  class: "h-4 w-4 text-danger",
1444
1455
  "aria-hidden": "true"
1445
1456
  })
1446
- ], 2)) : $("", !0),
1447
- e.showRequired && !t(b) ? (l(), h("div", Us, " * ")) : $("", !0)
1457
+ ], 2)) : _("", !0),
1458
+ e.showRequired && !t(b) ? (l(), h("div", Us, " * ")) : _("", !0)
1448
1459
  ])
1449
1460
  ]),
1450
- t(p) && !t(m) ? (l(), h("p", {
1461
+ t(f) && !t(m) ? (l(), h("p", {
1451
1462
  key: 0,
1452
- id: t(p),
1463
+ id: t(f),
1453
1464
  class: v(t(w))
1454
- }, _(t(g)), 11, qs)) : $("", !0)
1465
+ }, S(t(g)), 11, qs)) : _("", !0)
1455
1466
  ], 2));
1456
1467
  }
1457
1468
  }), Gs = /^https?:\/\//, ye = /^[\w-_.+]+@[\w-_.+]+$/, Ks = (e) => (e || "").match(ye) ? !0 : "Value should be a valid e-mail address", Xs = (e) => (e || "").split(",").map((o) => o.trim()).every((o) => o.match(ye)) || "Value should be one or multiple comma-delimited e-mail addresses", Ns = (e) => (se(e) && (e = e.trim()), e ? !0 : "Value is required"), Js = (e, s) => (n, o) => n === o.form[e] ? !0 : `Value must be the same as in field '${s || e}'`, Qs = (e) => (s) => {
@@ -1478,36 +1489,36 @@ function Zs(e) {
1478
1489
  itemContainer: o,
1479
1490
  trackResize: a = !1,
1480
1491
  trackMutations: r = !0
1481
- } = e || {}, i = A(0), d = () => {
1492
+ } = e || {}, d = A(0), i = () => {
1482
1493
  const y = o.value;
1483
1494
  if (s != null && s.value || !y)
1484
1495
  return;
1485
- const p = y.children;
1496
+ const f = y.children;
1486
1497
  let w = 0, g = 0, m;
1487
- for (const b of p) {
1488
- const j = b.offsetTop;
1489
- X(m) ? (m = j, w += 1) : j === m && (w += 1), g += 1;
1498
+ for (const b of f) {
1499
+ const V = b.offsetTop;
1500
+ X(m) ? (m = V, w += 1) : V === m && (w += 1), g += 1;
1490
1501
  }
1491
- i.value = g - w;
1502
+ d.value = g - w;
1492
1503
  };
1493
- return a && ct(n, d), r && dt(n, d, {
1504
+ return a && dt(n, i), r && ct(n, i, {
1494
1505
  childList: !0,
1495
1506
  subtree: !0
1496
1507
  }), {
1497
- hiddenItemCount: i
1508
+ hiddenItemCount: d
1498
1509
  };
1499
1510
  }
1500
1511
  function en(e) {
1501
1512
  const { props: s, emit: n, dynamicVisibility: o } = e;
1502
1513
  let a;
1503
1514
  if (o) {
1504
- const { elementToWatchForChanges: p, itemContainer: w } = o;
1515
+ const { elementToWatchForChanges: f, itemContainer: w } = o;
1505
1516
  a = Zs({
1506
1517
  skipCalculation: c(() => {
1507
1518
  var m;
1508
1519
  return !((m = s.multiple) != null && m.value);
1509
1520
  }),
1510
- elementToWatchForChanges: p,
1521
+ elementToWatchForChanges: f,
1511
1522
  itemContainer: w
1512
1523
  }).hiddenItemCount;
1513
1524
  } else
@@ -1515,27 +1526,27 @@ function en(e) {
1515
1526
  const r = c({
1516
1527
  get: () => {
1517
1528
  var w, g;
1518
- const p = (w = s.modelValue) == null ? void 0 : w.value;
1519
- return (g = s.multiple) != null && g.value ? E(p) ? p : [] : E(p) ? void 0 : p;
1529
+ const f = (w = s.modelValue) == null ? void 0 : w.value;
1530
+ return (g = s.multiple) != null && g.value ? W(f) ? f : [] : W(f) ? void 0 : f;
1520
1531
  },
1521
- set: (p) => {
1532
+ set: (f) => {
1522
1533
  var w, g, m;
1523
- if ((w = s.multiple) != null && w.value && !E(p)) {
1534
+ if ((w = s.multiple) != null && w.value && !W(f)) {
1524
1535
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1525
1536
  return;
1526
- } else if (!((g = s.multiple) != null && g.value) && E(p)) {
1537
+ } else if (!((g = s.multiple) != null && g.value) && W(f)) {
1527
1538
  console.warn("Attempting to set array value in selector w/ multiple=false");
1528
1539
  return;
1529
1540
  }
1530
- n("update:modelValue", (m = s.multiple) != null && m.value ? p || [] : p);
1541
+ n("update:modelValue", (m = s.multiple) != null && m.value ? f || [] : f);
1531
1542
  }
1532
- }), i = (p) => E(p);
1543
+ }), d = (f) => W(f);
1533
1544
  return {
1534
1545
  selectedValue: r,
1535
1546
  hiddenSelectedItemCount: a,
1536
- isArrayValue: i,
1537
- isMultiItemArrayValue: (p) => E(p) && p.length > 1,
1538
- firstItem: (p) => i(p) ? p[0] : p
1547
+ isArrayValue: d,
1548
+ isMultiItemArrayValue: (f) => W(f) && f.length > 1,
1549
+ firstItem: (f) => d(f) ? f[0] : f
1539
1550
  };
1540
1551
  }
1541
1552
  const tn = (e) => (_e("data-v-60cf597b"), e = e(), Se(), e), sn = /* @__PURE__ */ tn(() => /* @__PURE__ */ u("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), nn = [
@@ -1554,10 +1565,10 @@ const tn = (e) => (_e("data-v-60cf597b"), e = e(), Se(), e), sn = /* @__PURE__ *
1554
1565
  }, nn, 2));
1555
1566
  }
1556
1567
  });
1557
- const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { class: "flex items-center justify-between w-full" }, on = { class: "block truncate grow text-left" }, rn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, un = ["disabled"], cn = {
1568
+ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { class: "flex items-center justify-between w-full" }, on = { class: "block truncate grow text-left" }, rn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, un = ["disabled"], dn = {
1558
1569
  key: 0,
1559
1570
  class: "flex flex-col mx-1 mb-1"
1560
- }, dn = /* @__PURE__ */ u("span", { class: "sr-only label text-foreground" }, "Search", -1), fn = { class: "relative" }, pn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, hn = ["placeholder"], mn = {
1571
+ }, cn = /* @__PURE__ */ u("span", { class: "sr-only label text-foreground" }, "Search", -1), fn = { class: "relative" }, pn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, hn = ["placeholder"], mn = {
1561
1572
  key: 0,
1562
1573
  class: "px-1"
1563
1574
  }, gn = { key: 1 }, yn = /* @__PURE__ */ u("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), vn = {
@@ -1698,62 +1709,62 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1698
1709
  validateOnMount: s.validateOnMount,
1699
1710
  validateOnValueUpdate: s.validateOnValueUpdate,
1700
1711
  initialValue: s.modelValue
1701
- }), a = A(null), r = A(""), i = A([]), d = A(!1), y = A(pe()), p = c(() => t(s.label) || t(s.name)), w = c(() => {
1712
+ }), a = A(null), r = A(""), d = A([]), i = A(!1), y = A(pe()), f = c(() => t(s.label) || t(s.name)), w = c(() => {
1702
1713
  const k = o.value;
1703
- return !k || !t(s.useLabelInErrors) ? k : k.replace("Value", p.value);
1714
+ return !k || !t(s.useLabelInErrors) ? k : k.replace("Value", f.value);
1704
1715
  }), g = c(() => w.value || t(s.help)), m = c(() => !!g.value), b = c(
1705
1716
  () => m.value ? `${t(s.name)}-${y.value}` : void 0
1706
- ), j = c(
1717
+ ), V = c(
1707
1718
  () => o.value ? "text-danger" : "text-foreground-2"
1708
- ), x = c(
1719
+ ), L = c(
1709
1720
  () => s.buttonStyle !== "simple" && s.clearable && !s.disabled
1710
- ), L = c(() => {
1721
+ ), $ = c(() => {
1711
1722
  const k = ["relative flex group", s.showLabel ? "mt-1" : ""];
1712
1723
  return s.buttonStyle !== "simple" && (k.push("hover:shadow rounded-md"), k.push("outline outline-2 outline-primary-muted")), s.fixedHeight && k.push("h-8"), k.join(" ");
1713
- }), S = c(() => {
1724
+ }), C = c(() => {
1714
1725
  const k = [];
1715
1726
  return s.buttonStyle !== "simple" && k.push(
1716
- F.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1717
- ), F.value && k.push("cursor-not-allowed"), k.join(" ");
1718
- }), C = c(() => {
1727
+ z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1728
+ ), z.value && k.push("cursor-not-allowed"), k.join(" ");
1729
+ }), x = c(() => {
1719
1730
  const k = [
1720
1731
  "relative z-[1]",
1721
1732
  "flex items-center justify-center text-center shrink-0",
1722
1733
  "rounded-r-md overflow-hidden transition-all",
1723
- ve.value ? `w-6 ${S.value}` : "w-0"
1734
+ ve.value ? `w-6 ${C.value}` : "w-0"
1724
1735
  ];
1725
- return F.value || k.push(
1736
+ return z.value || k.push(
1726
1737
  "bg-primary-muted hover:bg-primary hover:text-foreground-on-primary"
1727
1738
  ), k.join(" ");
1728
- }), q = c(() => {
1739
+ }), E = c(() => {
1729
1740
  const k = [
1730
1741
  "relative z-[2]",
1731
1742
  "normal rounded-md cursor-pointer transition truncate flex-1",
1732
1743
  "flex items-center",
1733
- S.value
1744
+ C.value
1734
1745
  ];
1735
- return s.buttonStyle !== "simple" && (k.push("py-2 px-3"), F.value || k.push("bg-foundation text-foreground")), x.value && ve.value && k.push("rounded-r-none"), k.join(" ");
1736
- }), f = c(
1746
+ return s.buttonStyle !== "simple" && (k.push("py-2 px-3"), z.value || k.push("bg-foundation text-foreground")), L.value && ve.value && k.push("rounded-r-none"), k.join(" ");
1747
+ }), p = c(
1737
1748
  () => !!(s.search && (s.filterPredicate || s.getSearchResults))
1738
- ), V = c(() => f.value && s.getSearchResults), F = c(
1739
- () => s.disabled || !s.items.length && !V.value
1749
+ ), j = c(() => p.value && s.getSearchResults), z = c(
1750
+ () => s.disabled || !s.items.length && !j.value
1740
1751
  ), M = c({
1741
1752
  get: () => {
1742
1753
  const k = n.value;
1743
- return s.multiple ? E(k) ? k : [] : E(k) ? void 0 : k;
1754
+ return s.multiple ? W(k) ? k : [] : W(k) ? void 0 : k;
1744
1755
  },
1745
1756
  set: (k) => {
1746
- if (s.multiple && !E(k)) {
1757
+ if (s.multiple && !W(k)) {
1747
1758
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1748
1759
  return;
1749
- } else if (!s.multiple && E(k)) {
1760
+ } else if (!s.multiple && W(k)) {
1750
1761
  console.warn("Attempting to set array value in selector w/ multiple=false");
1751
1762
  return;
1752
1763
  }
1753
1764
  if (s.multiple)
1754
1765
  n.value = k || [];
1755
1766
  else {
1756
- const z = n.value, D = s.allowUnset && z && k && ae(z) === ae(k);
1767
+ const F = n.value, D = s.allowUnset && F && k && ae(F) === ae(k);
1757
1768
  n.value = D ? void 0 : k;
1758
1769
  }
1759
1770
  }
@@ -1761,40 +1772,40 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1761
1772
  s.multiple ? M.value = [] : M.value = void 0;
1762
1773
  }, Te = c(() => {
1763
1774
  const k = r.value;
1764
- return !f.value || !(k != null && k.length) ? i.value : s.filterPredicate ? i.value.filter(
1765
- (z) => {
1775
+ return !p.value || !(k != null && k.length) ? d.value : s.filterPredicate ? d.value.filter(
1776
+ (F) => {
1766
1777
  var D;
1767
- return ((D = s.filterPredicate) == null ? void 0 : D.call(s, z, k)) || !1;
1778
+ return ((D = s.filterPredicate) == null ? void 0 : D.call(s, F, k)) || !1;
1768
1779
  }
1769
- ) : i.value;
1780
+ ) : d.value;
1770
1781
  }), be = (k) => JSON.stringify(k), ae = (k) => s.by ? k[s.by] : k, xe = async () => {
1771
- if (console.log("triggerSearch"), !(!V.value || !s.getSearchResults)) {
1772
- d.value = !0;
1782
+ if (console.log("triggerSearch"), !(!j.value || !s.getSearchResults)) {
1783
+ i.value = !0;
1773
1784
  try {
1774
- i.value = await s.getSearchResults(r.value);
1785
+ d.value = await s.getSearchResults(r.value);
1775
1786
  } finally {
1776
- d.value = !1;
1787
+ i.value = !1;
1777
1788
  }
1778
1789
  }
1779
- }, Fe = Pe(xe, 1e3);
1790
+ }, ze = Pe(xe, 1e3);
1780
1791
  return Y(
1781
1792
  () => s.items,
1782
1793
  (k) => {
1783
- i.value = k.slice();
1794
+ d.value = k.slice();
1784
1795
  },
1785
1796
  { immediate: !0 }
1786
1797
  ), Y(r, () => {
1787
- V.value && Fe();
1798
+ j.value && ze();
1788
1799
  }), ee(() => {
1789
- V.value && !s.items.length && xe();
1790
- }), (k, z) => (l(), h("div", null, [
1800
+ j.value && !s.items.length && xe();
1801
+ }), (k, F) => (l(), h("div", null, [
1791
1802
  I(t(pt), {
1792
1803
  modelValue: t(M),
1793
- "onUpdate:modelValue": z[4] || (z[4] = (D) => le(M) ? M.value = D : null),
1804
+ "onUpdate:modelValue": F[4] || (F[4] = (D) => le(M) ? M.value = D : null),
1794
1805
  name: e.name,
1795
1806
  multiple: e.multiple,
1796
1807
  by: e.by,
1797
- disabled: t(F),
1808
+ disabled: t(z),
1798
1809
  as: "div"
1799
1810
  }, {
1800
1811
  default: B(() => [
@@ -1802,30 +1813,30 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1802
1813
  class: v(["block label text-foreground", { "sr-only": !e.showLabel }])
1803
1814
  }, {
1804
1815
  default: B(() => [
1805
- T(_(e.label), 1)
1816
+ T(S(e.label), 1)
1806
1817
  ]),
1807
1818
  _: 1
1808
1819
  }, 8, ["class"]),
1809
1820
  u("div", {
1810
- class: v(t(L))
1821
+ class: v(t($))
1811
1822
  }, [
1812
1823
  I(t(mt), {
1813
- class: v(t(q))
1824
+ class: v(t(E))
1814
1825
  }, {
1815
1826
  default: B(({ open: D }) => [
1816
1827
  u("div", an, [
1817
1828
  u("div", on, [
1818
- !t(M) || t(E)(t(M)) && !t(M).length ? R(k.$slots, "nothing-selected", { key: 0 }, () => [
1819
- T(_(e.label), 1)
1829
+ !t(M) || t(W)(t(M)) && !t(M).length ? R(k.$slots, "nothing-selected", { key: 0 }, () => [
1830
+ T(S(e.label), 1)
1820
1831
  ]) : R(k.$slots, "something-selected", {
1821
1832
  key: 1,
1822
1833
  value: t(M)
1823
1834
  }, () => [
1824
- T(_(be(t(M))), 1)
1835
+ T(S(be(t(M))), 1)
1825
1836
  ])
1826
1837
  ]),
1827
1838
  u("div", rn, [
1828
- D ? (l(), P(t(je), {
1839
+ D ? (l(), P(t(Ve), {
1829
1840
  key: 0,
1830
1841
  class: "h-4 w-4 text-foreground",
1831
1842
  "aria-hidden": "true"
@@ -1839,17 +1850,17 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1839
1850
  ]),
1840
1851
  _: 3
1841
1852
  }, 8, ["class"]),
1842
- t(x) ? te((l(), h("button", {
1853
+ t(L) ? te((l(), h("button", {
1843
1854
  key: 0,
1844
- class: v(t(C)),
1855
+ class: v(t(x)),
1845
1856
  disabled: e.disabled,
1846
- onClick: z[0] || (z[0] = (D) => Re())
1857
+ onClick: F[0] || (F[0] = (D) => Re())
1847
1858
  }, [
1848
1859
  I(t(He), { class: "w-3 h-3" })
1849
1860
  ], 10, un)), [
1850
1861
  [t(Bt), "Clear"]
1851
- ]) : $("", !0),
1852
- I(ce, {
1862
+ ]) : _("", !0),
1863
+ I(de, {
1853
1864
  "leave-active-class": "transition ease-in duration-100",
1854
1865
  "leave-from-class": "opacity-100",
1855
1866
  "leave-to-class": "opacity-0"
@@ -1857,14 +1868,14 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1857
1868
  default: B(() => [
1858
1869
  I(t(gt), {
1859
1870
  class: "absolute top-[100%] z-10 mt-1 w-full rounded-md bg-foundation-2 py-1 label label--light outline outline-2 outline-primary-muted focus:outline-none shadow",
1860
- onFocus: z[3] || (z[3] = (D) => {
1871
+ onFocus: F[3] || (F[3] = (D) => {
1861
1872
  var G;
1862
1873
  return (G = a.value) == null ? void 0 : G.focus();
1863
1874
  })
1864
1875
  }, {
1865
1876
  default: B(() => [
1866
- t(f) ? (l(), h("label", cn, [
1867
- dn,
1877
+ t(p) ? (l(), h("label", dn, [
1878
+ cn,
1868
1879
  u("div", fn, [
1869
1880
  u("div", pn, [
1870
1881
  I(t(Ge), { class: "h-5 w-5 text-foreground" })
@@ -1872,28 +1883,28 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1872
1883
  te(u("input", {
1873
1884
  ref_key: "searchInput",
1874
1885
  ref: a,
1875
- "onUpdate:modelValue": z[1] || (z[1] = (D) => r.value = D),
1886
+ "onUpdate:modelValue": F[1] || (F[1] = (D) => r.value = D),
1876
1887
  type: "text",
1877
1888
  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",
1878
1889
  placeholder: e.searchPlaceholder,
1879
- onKeydown: z[2] || (z[2] = Be(() => {
1890
+ onKeydown: F[2] || (F[2] = Be(() => {
1880
1891
  }, ["stop"]))
1881
1892
  }, null, 40, hn), [
1882
1893
  [Ie, r.value]
1883
1894
  ])
1884
1895
  ])
1885
- ])) : $("", !0),
1896
+ ])) : _("", !0),
1886
1897
  u("div", {
1887
- class: v(["overflow-auto simple-scrollbar", [t(f) ? "max-h-52" : "max-h-60"]])
1898
+ class: v(["overflow-auto simple-scrollbar", [t(p) ? "max-h-52" : "max-h-60"]])
1888
1899
  }, [
1889
- t(V) && d.value ? (l(), h("div", mn, [
1900
+ t(j) && i.value ? (l(), h("div", mn, [
1890
1901
  I(De, { loading: !0 })
1891
- ])) : t(V) && !i.value.length ? (l(), h("div", gn, [
1902
+ ])) : t(j) && !d.value.length ? (l(), h("div", gn, [
1892
1903
  R(k.$slots, "nothing-found", {}, () => [
1893
1904
  yn
1894
1905
  ])
1895
- ])) : $("", !0),
1896
- !t(V) || !d.value ? (l(!0), h(U, { key: 2 }, H(t(Te), (D) => (l(), P(t(yt), {
1906
+ ])) : _("", !0),
1907
+ !t(j) || !i.value ? (l(!0), h(q, { key: 2 }, H(t(Te), (D) => (l(), P(t(yt), {
1897
1908
  key: ae(D),
1898
1909
  value: D
1899
1910
  }, {
@@ -1911,7 +1922,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1911
1922
  active: G,
1912
1923
  selected: ke
1913
1924
  }, () => [
1914
- T(_(be(D)), 1)
1925
+ T(S(be(D)), 1)
1915
1926
  ])
1916
1927
  ]),
1917
1928
  !e.hideCheckmarks && ke ? (l(), h("span", {
@@ -1925,11 +1936,11 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1925
1936
  class: "h-5 w-5",
1926
1937
  "aria-hidden": "true"
1927
1938
  })
1928
- ], 2)) : $("", !0)
1939
+ ], 2)) : _("", !0)
1929
1940
  ], 2)
1930
1941
  ]),
1931
1942
  _: 2
1932
- }, 1032, ["value"]))), 128)) : $("", !0)
1943
+ }, 1032, ["value"]))), 128)) : _("", !0)
1933
1944
  ], 2)
1934
1945
  ]),
1935
1946
  _: 3
@@ -1944,8 +1955,8 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1944
1955
  t(b) ? (l(), h("p", {
1945
1956
  key: 0,
1946
1957
  id: t(b),
1947
- class: v(["mt-2 ml-3 text-sm", t(j)])
1948
- }, _(t(g)), 11, bn)) : $("", !0)
1958
+ class: v(["mt-2 ml-3 text-sm", t(V)])
1959
+ }, S(t(g)), 11, bn)) : _("", !0)
1949
1960
  ]));
1950
1961
  }
1951
1962
  }), kn = /* @__PURE__ */ O({
@@ -1960,7 +1971,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1960
1971
  style: oe({ backgroundColor: e.sourceApp.bgColor })
1961
1972
  }, {
1962
1973
  default: B(() => [
1963
- T(_(e.sourceApp.short), 1)
1974
+ T(S(e.sourceApp.short), 1)
1964
1975
  ]),
1965
1976
  _: 1
1966
1977
  }, 8, ["style"]));
@@ -2031,11 +2042,11 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2031
2042
  },
2032
2043
  emits: ["update:modelValue"],
2033
2044
  setup(e, { emit: s }) {
2034
- const n = e, o = A(null), a = A(null), { selectedValue: r, hiddenSelectedItemCount: i, isMultiItemArrayValue: d, firstItem: y } = en({
2045
+ const n = e, o = A(null), a = A(null), { selectedValue: r, hiddenSelectedItemCount: d, isMultiItemArrayValue: i, firstItem: y } = en({
2035
2046
  props: Z(n),
2036
2047
  emit: s,
2037
2048
  dynamicVisibility: { elementToWatchForChanges: o, itemContainer: a }
2038
- }), p = (w, g) => w.name.toLocaleLowerCase().includes(g.toLocaleLowerCase());
2049
+ }), f = (w, g) => w.name.toLocaleLowerCase().includes(g.toLocaleLowerCase());
2039
2050
  return (w, g) => (l(), P(xn, {
2040
2051
  modelValue: t(r),
2041
2052
  "onUpdate:modelValue": g[0] || (g[0] = (m) => le(r) ? r.value = m : null),
@@ -2046,18 +2057,18 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2046
2057
  label: e.label,
2047
2058
  "show-label": e.showLabel,
2048
2059
  name: e.name || "sourceApps",
2049
- "filter-predicate": p,
2060
+ "filter-predicate": f,
2050
2061
  by: "name"
2051
2062
  }, {
2052
2063
  "nothing-selected": B(() => [
2053
- e.selectorPlaceholder ? (l(), h(U, { key: 0 }, [
2054
- T(_(e.selectorPlaceholder), 1)
2055
- ], 64)) : (l(), h(U, { key: 1 }, [
2056
- T(_(e.multiple ? "Select apps" : "Select an app"), 1)
2064
+ e.selectorPlaceholder ? (l(), h(q, { key: 0 }, [
2065
+ T(S(e.selectorPlaceholder), 1)
2066
+ ], 64)) : (l(), h(q, { key: 1 }, [
2067
+ T(S(e.multiple ? "Select apps" : "Select an app"), 1)
2057
2068
  ], 64))
2058
2069
  ]),
2059
2070
  "something-selected": B(({ value: m }) => [
2060
- t(d)(m) ? (l(), h("div", {
2071
+ t(i)(m) ? (l(), h("div", {
2061
2072
  key: 0,
2062
2073
  ref_key: "elementToWatchForChanges",
2063
2074
  ref: o,
@@ -2068,18 +2079,18 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2068
2079
  ref: a,
2069
2080
  class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
2070
2081
  }, [
2071
- (l(!0), h(U, null, H(m, (b) => (l(), P(kn, {
2082
+ (l(!0), h(q, null, H(m, (b) => (l(), P(kn, {
2072
2083
  key: b.name,
2073
2084
  "source-app": b
2074
2085
  }, null, 8, ["source-app"]))), 128))
2075
2086
  ], 512),
2076
- t(i) > 0 ? (l(), h("div", Cn, " +" + _(t(i)), 1)) : $("", !0)
2087
+ t(d) > 0 ? (l(), h("div", Cn, " +" + S(t(d)), 1)) : _("", !0)
2077
2088
  ], 512)) : (l(), h("div", wn, [
2078
2089
  u("div", {
2079
2090
  class: "h-2 w-2 rounded-full mr-2",
2080
2091
  style: oe({ backgroundColor: t(y)(m).bgColor })
2081
2092
  }, null, 4),
2082
- u("span", $n, _(t(y)(m).name), 1)
2093
+ u("span", $n, S(t(y)(m).name), 1)
2083
2094
  ]))
2084
2095
  ]),
2085
2096
  option: B(({ item: m }) => [
@@ -2088,7 +2099,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2088
2099
  class: "h-2 w-2 rounded-full mr-2",
2089
2100
  style: oe({ backgroundColor: m.bgColor })
2090
2101
  }, null, 4),
2091
- u("span", Sn, _(m.name), 1)
2102
+ u("span", Sn, S(m.name), 1)
2092
2103
  ])
2093
2104
  ]),
2094
2105
  _: 1
@@ -2116,8 +2127,8 @@ function gl(e, ...s) {
2116
2127
  s[0],
2117
2128
  (n) => {
2118
2129
  const o = n.getModifierState("Alt"), a = ie === re.Mac ? n.getModifierState("Meta") : n.getModifierState("Control"), r = n.getModifierState("Shift");
2119
- for (const i of e)
2120
- switch (i) {
2130
+ for (const d of e)
2131
+ switch (d) {
2121
2132
  case Q.CtrlOrCmd:
2122
2133
  if (!a)
2123
2134
  return;
@@ -2136,12 +2147,13 @@ function gl(e, ...s) {
2136
2147
  s[2]
2137
2148
  );
2138
2149
  }
2139
- const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Ln = { class: "fixed inset-0 z-10 overflow-y-auto" }, Pn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, jn = { class: "relative" }, yl = /* @__PURE__ */ O({
2150
+ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Ln = { class: "fixed inset-0 z-10 overflow-y-auto" }, Pn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Vn = { class: "relative" }, yl = /* @__PURE__ */ O({
2140
2151
  __name: "Dialog",
2141
2152
  props: {
2142
2153
  open: { type: Boolean },
2143
2154
  maxWidth: null,
2144
- hideCloser: { type: Boolean }
2155
+ hideCloser: { type: Boolean },
2156
+ preventCloseOnClickOutside: { type: Boolean }
2145
2157
  },
2146
2158
  emits: ["update:open", "fully-closed"],
2147
2159
  setup(e, { emit: s }) {
@@ -2167,8 +2179,10 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2167
2179
  "sm:my-8 sm:w-full sm:max-w-xl sm:p-6"
2168
2180
  ];
2169
2181
  return a.value >= 1 && i.push("md:max-w-2xl"), a.value >= 2 && i.push("lg:max-w-4xl"), a.value >= 3 && i.push("xl:max-w-6xl"), a.value >= 4 && i.push("2xl:max-w-7xl"), i.join(" ");
2170
- });
2171
- return (i, d) => (l(), P(t(vt), {
2182
+ }), d = () => {
2183
+ n.preventCloseOnClickOutside || (o.value = !1);
2184
+ };
2185
+ return (i, y) => (l(), P(t(vt), {
2172
2186
  as: "template",
2173
2187
  show: t(o)
2174
2188
  }, {
@@ -2176,7 +2190,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2176
2190
  I(t(bt), {
2177
2191
  as: "div",
2178
2192
  class: "relative z-40",
2179
- onClose: d[2] || (d[2] = (y) => o.value = !1)
2193
+ onClose: d
2180
2194
  }, {
2181
2195
  default: B(() => [
2182
2196
  I(t($e), {
@@ -2203,7 +2217,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2203
2217
  leave: "ease-in duration-200",
2204
2218
  "leave-from": "opacity-100 translate-y-0 sm:scale-100",
2205
2219
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
2206
- onAfterLeave: d[1] || (d[1] = (y) => i.$emit("fully-closed"))
2220
+ onAfterLeave: y[1] || (y[1] = (f) => i.$emit("fully-closed"))
2207
2221
  }, {
2208
2222
  default: B(() => [
2209
2223
  I(t(xt), {
@@ -2213,14 +2227,14 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2213
2227
  ])
2214
2228
  }, {
2215
2229
  default: B(() => [
2216
- u("div", jn, [
2230
+ u("div", Vn, [
2217
2231
  R(i.$slots, "default", {}, () => [
2218
2232
  T("Put your content here!")
2219
2233
  ]),
2220
- e.hideCloser ? $("", !0) : (l(), h("button", {
2234
+ e.hideCloser ? _("", !0) : (l(), h("button", {
2221
2235
  key: 0,
2222
2236
  class: "absolute top-0 right-0 text-foreground",
2223
- onClick: d[0] || (d[0] = (y) => o.value = !1)
2237
+ onClick: y[0] || (y[0] = (f) => o.value = !1)
2224
2238
  }, [
2225
2239
  I(t(et), { class: "h-6 w-6" })
2226
2240
  ]))
@@ -2240,7 +2254,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2240
2254
  _: 3
2241
2255
  }, 8, ["show"]));
2242
2256
  }
2243
- }), Vn = { class: "inline-flex items-center space-x-2" }, On = { class: "label-light" }, vl = /* @__PURE__ */ O({
2257
+ }), jn = { class: "inline-flex items-center space-x-2" }, On = { class: "label-light" }, vl = /* @__PURE__ */ O({
2244
2258
  __name: "Disclosure",
2245
2259
  props: {
2246
2260
  title: null,
@@ -2280,20 +2294,20 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2280
2294
  });
2281
2295
  return (a, r) => (l(), h("div", null, [
2282
2296
  I(t(kt), null, {
2283
- default: B(({ open: i }) => [
2297
+ default: B(({ open: d }) => [
2284
2298
  I(t(Ct), {
2285
2299
  class: v(t(n))
2286
2300
  }, {
2287
2301
  default: B(() => [
2288
- u("div", Vn, [
2289
- e.icon ? (l(), P(W(e.icon), {
2302
+ u("div", jn, [
2303
+ e.icon ? (l(), P(U(e.icon), {
2290
2304
  key: 0,
2291
2305
  class: "h-4 w-4"
2292
- })) : $("", !0),
2293
- u("span", null, _(e.title), 1)
2306
+ })) : _("", !0),
2307
+ u("span", null, S(e.title), 1)
2294
2308
  ]),
2295
- I(t(je), {
2296
- class: v([i ? "" : "rotate-180 transform", "h-5 w-5"])
2309
+ I(t(Ve), {
2310
+ class: v([d ? "" : "rotate-180 transform", "h-5 w-5"])
2297
2311
  }, null, 8, ["class"])
2298
2312
  ]),
2299
2313
  _: 2
@@ -2326,19 +2340,19 @@ const bl = /* @__PURE__ */ O({
2326
2340
  setup(e, { emit: s }) {
2327
2341
  const n = e, o = c({
2328
2342
  get: () => n.modelValue || K.Grid,
2329
- set: (i) => s("update:modelValue", i)
2343
+ set: (d) => s("update:modelValue", d)
2330
2344
  }), a = c(
2331
2345
  () => o.value === K.Grid ? Xe : Ne
2332
- ), r = (i) => {
2333
- s("click", i);
2334
- const d = o.value === K.Grid ? K.List : K.Grid;
2335
- o.value = d;
2346
+ ), r = (d) => {
2347
+ s("click", d);
2348
+ const i = o.value === K.Grid ? K.List : K.Grid;
2349
+ o.value = i;
2336
2350
  };
2337
- return (i, d) => (l(), h("button", {
2351
+ return (d, i) => (l(), h("button", {
2338
2352
  class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
2339
2353
  onClick: r
2340
2354
  }, [
2341
- (l(), P(W(t(a)), { class: "h-6 w-6" }))
2355
+ (l(), P(U(t(a)), { class: "h-6 w-6" }))
2342
2356
  ]));
2343
2357
  }
2344
2358
  });
@@ -2365,24 +2379,24 @@ function Dn(e) {
2365
2379
  X(n) ? 1 : n
2366
2380
  /* Right */
2367
2381
  ), a = c(() => {
2368
- const i = t(e.stopUpdatesBelowWidth);
2369
- if (!X(i))
2370
- return i;
2371
- const d = t(s);
2372
- return d != null && d.offsetWidth ? d.offsetWidth * 2 : void 0;
2382
+ const d = t(e.stopUpdatesBelowWidth);
2383
+ if (!X(d))
2384
+ return d;
2385
+ const i = t(s);
2386
+ return i != null && i.offsetWidth ? i.offsetWidth * 2 : void 0;
2373
2387
  }), r = () => {
2374
2388
  if (!he)
2375
2389
  return;
2376
- const i = t(s);
2377
- if (!i)
2390
+ const d = t(s);
2391
+ if (!d)
2378
2392
  return;
2379
- const d = i.getBoundingClientRect(), y = d.x + d.width > window.innerWidth, p = d.x < 0;
2380
- y && p || !X(a.value) && window.innerWidth < a.value || (y ? o.value = 0 : p && (o.value = 1));
2393
+ const i = d.getBoundingClientRect(), y = i.x + i.width > window.innerWidth, f = i.x < 0;
2394
+ y && f || !X(a.value) && window.innerWidth < a.value || (y ? o.value = 0 : f && (o.value = 1));
2381
2395
  };
2382
2396
  return An(() => r()), Y(
2383
2397
  () => t(s),
2384
- (i) => {
2385
- i && r();
2398
+ (d) => {
2399
+ d && r();
2386
2400
  }
2387
2401
  ), {
2388
2402
  direction: c(() => o.value),
@@ -2404,30 +2418,30 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2404
2418
  }),
2405
2419
  defaultDirection: ue.Left,
2406
2420
  stopUpdatesBelowWidth: 300
2407
- }), r = A(null), i = A(!1), d = c({
2421
+ }), r = A(null), d = A(!1), i = c({
2408
2422
  get: () => n.open || !1,
2409
2423
  set: (m) => s("update:open", m)
2410
2424
  }), y = (m) => {
2411
- const { active: b, disabled: j } = m, x = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2412
- return b ? x.push("bg-primary text-foreground-on-primary") : j ? x.push("text-foreground-disabled") : x.push("text-foreground"), x.join(" ");
2413
- }, p = (m, b) => {
2425
+ const { active: b, disabled: V } = m, L = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2426
+ return b ? L.push("bg-primary text-foreground-on-primary") : V ? L.push("text-foreground-disabled") : L.push("text-foreground"), L.join(" ");
2427
+ }, f = (m, b) => {
2414
2428
  s("chosen", { item: m, event: b });
2415
2429
  }, w = () => {
2416
2430
  var m;
2417
2431
  return (m = r.value) == null ? void 0 : m.el.click();
2418
2432
  }, g = (m) => {
2419
2433
  const b = !!m;
2420
- return i.value = b, b;
2434
+ return d.value = b, b;
2421
2435
  };
2422
- return Y(i, (m, b) => {
2423
- m !== b && (d.value = m);
2424
- }), Y(d, (m) => {
2425
- (m && !i.value || !m && i.value) && w();
2436
+ return Y(d, (m, b) => {
2437
+ m !== b && (i.value = m);
2438
+ }), Y(i, (m) => {
2439
+ (m && !d.value || !m && d.value) && w();
2426
2440
  }), (m, b) => (l(), P(t($t), {
2427
2441
  as: "div",
2428
2442
  class: "relative inline-block"
2429
2443
  }, {
2430
- default: B(({ open: j }) => [
2444
+ default: B(({ open: V }) => [
2431
2445
  u("div", null, [
2432
2446
  I(t(_t), {
2433
2447
  ref_key: "menuButton",
@@ -2437,15 +2451,15 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2437
2451
  }, ["stop", "prevent"]))
2438
2452
  }, null, 512),
2439
2453
  u("div", {
2440
- class: v(j ? "pointer-events-none" : "")
2454
+ class: v(V ? "pointer-events-none" : "")
2441
2455
  }, [
2442
2456
  R(m.$slots, "default", {
2443
2457
  toggle: w,
2444
- open: g(j)
2458
+ open: g(V)
2445
2459
  })
2446
2460
  ], 2)
2447
2461
  ]),
2448
- I(ce, {
2462
+ I(de, {
2449
2463
  "enter-active-class": "transition duration-100 ease-out",
2450
2464
  "enter-from-class": "transform scale-95 opacity-0",
2451
2465
  "enter-to-class": "transform scale-100 opacity-100",
@@ -2463,21 +2477,21 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2463
2477
  ])
2464
2478
  }, {
2465
2479
  default: B(() => [
2466
- (l(!0), h(U, null, H(e.items, (x, L) => (l(), h("div", {
2467
- key: L,
2480
+ (l(!0), h(q, null, H(e.items, (L, $) => (l(), h("div", {
2481
+ key: $,
2468
2482
  class: "px-1 py-1"
2469
2483
  }, [
2470
- (l(!0), h(U, null, H(x, (S) => (l(), P(t(It), {
2471
- key: S.id,
2472
- disabled: S.disabled
2484
+ (l(!0), h(q, null, H(L, (C) => (l(), P(t(It), {
2485
+ key: C.id,
2486
+ disabled: C.disabled
2473
2487
  }, {
2474
- default: B(({ active: C, disabled: q }) => [
2488
+ default: B(({ active: x, disabled: E }) => [
2475
2489
  u("button", {
2476
- class: v(y({ active: C, disabled: q })),
2477
- onClick: (f) => p(S, f)
2490
+ class: v(y({ active: x, disabled: E })),
2491
+ onClick: (p) => f(C, p)
2478
2492
  }, [
2479
- R(m.$slots, "item", { item: S }, () => [
2480
- T(_(S.title), 1)
2493
+ R(m.$slots, "item", { item: C }, () => [
2494
+ T(S(C.title), 1)
2481
2495
  ])
2482
2496
  ], 10, Rn)
2483
2497
  ]),
@@ -2494,7 +2508,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2494
2508
  _: 3
2495
2509
  }));
2496
2510
  }
2497
- }), Tn = { class: "flex flex-col space-y-4" }, Fn = { class: "flex space-x-6" }, Cl = /* @__PURE__ */ O({
2511
+ }), Tn = { class: "flex flex-col space-y-4" }, zn = { class: "flex space-x-6" }, Cl = /* @__PURE__ */ O({
2498
2512
  __name: "Tabs",
2499
2513
  props: {
2500
2514
  items: null
@@ -2503,16 +2517,16 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2503
2517
  const s = e, n = A(null), o = c(() => n.value && s.items.find((r) => r.id === n.value) || s.items[0]), a = (r) => {
2504
2518
  n.value = r.id;
2505
2519
  };
2506
- return (r, i) => (l(), h("div", Tn, [
2507
- u("div", Fn, [
2508
- (l(!0), h(U, null, H(e.items, (d) => (l(), P(ge, {
2509
- key: d.id,
2520
+ return (r, d) => (l(), h("div", Tn, [
2521
+ u("div", zn, [
2522
+ (l(!0), h(q, null, H(e.items, (i) => (l(), P(ge, {
2523
+ key: i.id,
2510
2524
  link: "",
2511
- color: t(o).id === d.id ? "default" : "secondary",
2512
- onClick: (y) => a(d)
2525
+ color: t(o).id === i.id ? "default" : "secondary",
2526
+ onClick: (y) => a(i)
2513
2527
  }, {
2514
2528
  default: B(() => [
2515
- T(_(d.title), 1)
2529
+ T(S(i.title), 1)
2516
2530
  ]),
2517
2531
  _: 2
2518
2532
  }, 1032, ["color", "onClick"]))), 128))
@@ -2520,7 +2534,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2520
2534
  R(r.$slots, "default", { activeItem: t(o) })
2521
2535
  ]));
2522
2536
  }
2523
- }), zn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, En = { class: "inline-flex items-center space-x-1" }, Wn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Un = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, qn = { class: "inline-flex items-center space-x-1" }, Hn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), wl = /* @__PURE__ */ O({
2537
+ }), Fn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, En = { class: "inline-flex items-center space-x-1" }, Wn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Un = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, qn = { class: "inline-flex items-center space-x-1" }, Hn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), wl = /* @__PURE__ */ O({
2524
2538
  __name: "InfiniteLoading",
2525
2539
  props: {
2526
2540
  settings: null,
@@ -2548,7 +2562,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2548
2562
  })
2549
2563
  ]),
2550
2564
  complete: B(() => [
2551
- u("div", zn, [
2565
+ u("div", Fn, [
2552
2566
  u("div", En, [
2553
2567
  I(t(tt), { class: "w-5 h-5 text-success" }),
2554
2568
  Wn
@@ -2569,11 +2583,11 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2569
2583
  T("Retry")
2570
2584
  ]),
2571
2585
  _: 2
2572
- }, 1032, ["onClick"])) : $("", !0)
2586
+ }, 1032, ["onClick"])) : _("", !0)
2573
2587
  ])
2574
2588
  ]),
2575
2589
  _: 1
2576
- }, 16)) : $("", !0)
2590
+ }, 16)) : _("", !0)
2577
2591
  ], 512));
2578
2592
  }
2579
2593
  }), Gn = { class: "relative group" }, Kn = {
@@ -2619,36 +2633,36 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2619
2633
  ), a = c(
2620
2634
  () => n.customPadding ? "" : "px-4 py-4 sm:p-6"
2621
2635
  ), r = c(() => {
2622
- const i = ["rounded-lg"];
2623
- return n.noShadow || i.push("shadow"), n.ring && i.push("ring-outline-2 hover:ring-2"), i.join(" ");
2636
+ const d = ["rounded-lg"];
2637
+ return n.noShadow || d.push("shadow"), n.ring && d.push("ring-outline-2 hover:ring-2"), d.join(" ");
2624
2638
  });
2625
- return (i, d) => (l(), h("div", Gn, [
2626
- e.fancyGlow ? (l(), h("div", Kn)) : $("", !0),
2627
- (l(), P(W(e.form ? "form" : "div"), {
2639
+ return (d, i) => (l(), h("div", Gn, [
2640
+ e.fancyGlow ? (l(), h("div", Kn)) : _("", !0),
2641
+ (l(), P(U(e.form ? "form" : "div"), {
2628
2642
  class: v([
2629
2643
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
2630
2644
  t(r)
2631
2645
  ]),
2632
- onSubmit: d[0] || (d[0] = (y) => s("submit", y))
2646
+ onSubmit: i[0] || (i[0] = (y) => s("submit", y))
2633
2647
  }, {
2634
2648
  default: B(() => [
2635
- i.$slots.header ? (l(), h("div", {
2649
+ d.$slots.header ? (l(), h("div", {
2636
2650
  key: 0,
2637
2651
  class: v(t(o))
2638
2652
  }, [
2639
- R(i.$slots, "header")
2640
- ], 2)) : $("", !0),
2653
+ R(d.$slots, "header")
2654
+ ], 2)) : _("", !0),
2641
2655
  u("div", {
2642
2656
  class: v(["grow", t(a)])
2643
2657
  }, [
2644
- R(i.$slots, "default")
2658
+ R(d.$slots, "default")
2645
2659
  ], 2),
2646
- i.$slots.footer ? (l(), h("div", {
2660
+ d.$slots.footer ? (l(), h("div", {
2647
2661
  key: 1,
2648
2662
  class: v(t(o))
2649
2663
  }, [
2650
- R(i.$slots, "footer")
2651
- ], 2)) : $("", !0)
2664
+ R(d.$slots, "footer")
2665
+ ], 2)) : _("", !0)
2652
2666
  ]),
2653
2667
  _: 3
2654
2668
  }, 40, ["class"]))
@@ -2660,13 +2674,13 @@ export {
2660
2674
  De as CommonLoadingBar,
2661
2675
  il as CommonStepsBullet,
2662
2676
  rl as CommonStepsNumber,
2663
- Vt as CommonTextLink,
2677
+ jt as CommonTextLink,
2664
2678
  ge as FormButton,
2665
2679
  ul as FormCardButton,
2666
- cl as FormCheckbox,
2680
+ dl as FormCheckbox,
2667
2681
  xn as FormSelectBase,
2668
2682
  hl as FormSelectSourceApps,
2669
- dl as FormTextArea,
2683
+ cl as FormTextArea,
2670
2684
  fl as FormTextInput,
2671
2685
  ol as GlobalToastRenderer,
2672
2686
  K as GridListToggleValue,