@speckle/ui-components 2.16.0 → 2.16.1-alpha2

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