@speckle/ui-components 2.14.8-alpha1 → 2.14.8-alpha10

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