@speckle/ui-components 2.15.2-alpha7 → 2.16.1-alpha1

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 l, createBlock as P, normalizeClass as k, withCtx as _, createCommentVNode as I, renderSlot as z, createTextVNode as M, createElementBlock as m, createElementVNode as i, createVNode as L, Transition as ge, unref as a, toDisplayString as B, toRefs as le, 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 ae, 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, ExclamationCircleIcon as et, ChevronUpIcon as De, ChevronDownIcon as tt, XMarkIcon as st, MagnifyingGlassIcon as nt, CheckIcon as at, Bars3Icon as lt, Squares2X2Icon as ot } from "@heroicons/vue/24/solid";
4
- import { CheckCircleIcon as rt, XCircleIcon as it, ExclamationCircleIcon as ut, InformationCircleIcon as ct, XMarkIcon as dt, CheckIcon as ft, ExclamationTriangleIcon as pt } from "@heroicons/vue/24/outline";
5
- import { XMarkIcon as ue, CheckIcon as ht, CheckCircleIcon as Re, ExclamationCircleIcon as xe, EnvelopeIcon as mt, KeyIcon as gt, XCircleIcon as vt, InformationCircleIcon as bt } 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 yt, SourceApps as xt, getClientOperatingSystem as kt, OperatingSystem as pe } from "@speckle/shared";
9
- import { useResizeObserver as Ct, useMutationObserver as wt, onKeyDown as $t, isClient as we, computedAsync as St } from "@vueuse/core";
10
- import { Listbox as It, ListboxLabel as Bt, ListboxButton as _t, ListboxOptions as Pt, ListboxOption as Lt, TransitionRoot as jt, Dialog as Vt, TransitionChild as Ve, DialogPanel as Ot, Disclosure as At, DisclosureButton as Mt, DisclosurePanel as zt, Menu as Dt, MenuButton as Rt, MenuItems as Tt, MenuItem as Ft } from "@headlessui/vue";
11
- import { directive as Te } from "vue-tippy";
12
- import Et from "v3-infinite-loading";
13
- const Wt = {
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
- }, Ut = /* @__PURE__ */ A({
16
+ }, Nt = /* @__PURE__ */ j({
17
17
  __name: "Button",
18
18
  props: {
19
19
  /**
@@ -140,136 +140,136 @@ const Wt = {
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 Wt = {
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 Wt = {
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
- }), $ = 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
- }), T = (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, R) => (l(), P(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($.value),
355
- disabled: f.value,
354
+ class: x($.value),
355
+ disabled: r.value,
356
356
  role: "button",
357
- onClick: T
357
+ onClick: F
358
358
  }, {
359
359
  default: _(() => [
360
- x.value ? (l(), P(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 ? (l(), m("div", Wt, "   ")) : 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 ? (l(), P(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(Ut, [["__scopeId", "data-v-38aa371e"]]), qt = /* @__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) => (l(), P(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 Ht = {
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
- }, Gt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, Kt = {
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
- }, Xt = { class: "p-4" }, Nt = { class: "flex items-start" }, Jt = { class: "flex-shrink-0" }, Qt = { class: "ml-2 w-0 flex-1 flex flex-col" }, Yt = {
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
- }, Zt = {
470
+ }, as = {
471
471
  key: 1,
472
472
  class: "label label--light text-foreground-2"
473
- }, es = {
473
+ }, os = {
474
474
  key: 2,
475
475
  class: "flex justify-start mt-2"
476
- }, ts = /* @__PURE__ */ i("span", { class: "sr-only" }, "Close", -1), Ca = /* @__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) => (l(), m("div", Ht, [
495
- i("div", Gt, [
496
- L(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 Ht = {
502
502
  "leave-to-class": "opacity-0"
503
503
  }, {
504
504
  default: _(() => [
505
- e.notification ? (l(), m("div", Kt, [
506
- i("div", Xt, [
507
- i("div", Nt, [
508
- i("div", Jt, [
509
- e.notification.type === a(ee).Success ? (l(), P(a(rt), {
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 === a(ee).Danger ? (l(), P(a(it), {
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 === a(ee).Warning ? (l(), P(a(ut), {
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 === a(ee).Info ? (l(), P(a(ct), {
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", Qt, [
528
- e.notification.title ? (l(), m("p", Yt, B(e.notification.title), 1)) : I("", !0),
529
- e.notification.description ? (l(), m("p", Zt, B(e.notification.description), 1)) : I("", !0),
530
- e.notification.cta ? (l(), m("div", es, [
531
- L(qt, {
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
- ts,
553
- L(a(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 Ht = {
565
565
  ])
566
566
  ]));
567
567
  }
568
- }), ss = /* @__PURE__ */ i("circle", {
568
+ }), is = /* @__PURE__ */ d("circle", {
569
569
  cx: "4",
570
570
  cy: "4",
571
571
  r: "3"
572
- }, null, -1), ns = [
573
- ss
574
- ], as = /* @__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 Ht = {
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) => (l(), m("span", {
618
- class: k(c.value)
617
+ return (u, y) => (a(), p("span", {
618
+ class: x(f.value)
619
619
  }, [
620
- e.dot ? (l(), 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
- }, ns, 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 ? (l(), 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
- (l(), P(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, $) => {
663
- var T;
664
- if (c != null && c.value) {
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
665
  $ == null || $.preventDefault(), $ == null || $.stopPropagation(), $ == null || $.stopImmediatePropagation();
666
666
  return;
667
667
  }
668
- p.value = v;
669
- const S = t.value[p.value];
670
- (T = S == null ? void 0 : S.onClick) == null || T.call(S);
671
- }, u = r(() => {
672
- const v = ["flex"];
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
673
  let $, S;
674
- return (d == null ? void 0 : d.value) === "xs" ? ($ = "space-x-2", S = "space-y-1") : (d == null ? void 0 : d.value) === "sm" ? ($ = "space-x-4", S = "space-y-1") : ($ = "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(
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
675
  `sm:flex-row sm:space-y-0 sm:justify-start sm:${$} sm:items-center`
676
- ) : (o == null ? void 0 : o.value) === te.md ? v.push(
676
+ ) : (o == null ? void 0 : o.value) === le.md ? b.push(
677
677
  `md:flex-row md:space-y-0 md:justify-start md:${$} md:items-center`
678
- ) : (o == null ? void 0 : o.value) === te.lg ? v.push(
678
+ ) : (o == null ? void 0 : o.value) === le.lg ? b.push(
679
679
  `lg:flex-row lg:space-y-0 lg:justify-start lg:${$} lg:items-center`
680
- ) : (o == null ? void 0 : o.value) === te.xl && v.push(
680
+ ) : (o == null ? void 0 : o.value) === le.xl && b.push(
681
681
  `xl:flex-row xl:space-y-0 xl:justify-start xl:${$} xl:items-center`
682
- )) : v.push(`flex-row ${$} 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(" ");
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 os = ["aria-label"], rs = ["href", "onClick"], is = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, us = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, cs = { class: "flex flex-col" }, ds = {
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
- }, 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 border-2 border-primary-focus inline-flex items-center justify-center" }, ms = { class: "flex flex-col" }, gs = {
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
- }, vs = ["href", "onClick"], bs = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, ys = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, xs = { class: "flex flex-col" }, ks = {
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
- }, wa = /* @__PURE__ */ A({
721
+ }, Mn = /* @__PURE__ */ j({
722
722
  __name: "Number",
723
723
  props: {
724
724
  ariaLabel: null,
@@ -730,94 +730,94 @@ const os = ["aria-label"], rs = ["href", "onClick"], is = { 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: le(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) => (l(), 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(a(f))
749
+ d("ol", {
750
+ class: x(n(r))
751
751
  }, [
752
- (l(!0), m(W, null, G(e.steps, (y, h) => (l(), 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
- a(o)(h) ? (l(), m("a", {
755
+ n(o)(g) ? (a(), p("a", {
756
756
  key: 0,
757
- href: y.href,
758
- class: k(a(x)),
759
- onClick: (C) => a(c)(h, C)
757
+ href: k.href,
758
+ class: x(n(m)),
759
+ onClick: (w) => n(f)(g, w)
760
760
  }, [
761
- i("div", is, [
762
- i("div", us, [
763
- L(a(ht), { 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", cs, [
766
- i("div", null, B(y.name), 1),
767
- y.description ? (l(), m("div", ds, 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, rs)) : a(s)(h) ? (l(), m("a", {
770
+ ], 10, fs)) : n(s)(g) ? (a(), p("a", {
771
771
  key: 1,
772
- href: y.href,
773
- class: k(a(x)),
772
+ href: k.href,
773
+ class: x(n(m)),
774
774
  "aria-current": "step",
775
- onClick: (C) => a(c)(h, C)
775
+ onClick: (w) => n(f)(g, w)
776
776
  }, [
777
- i("div", ps, [
778
- i("div", hs, B(a(d)(h)), 1),
779
- i("div", ms, [
780
- i("div", null, B(y.name), 1),
781
- y.description ? (l(), m("div", gs, 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, fs)) : (l(), m("a", {
784
+ ], 10, vs)) : (a(), p("a", {
785
785
  key: 2,
786
- href: y.href,
787
- class: k(a(x)),
788
- onClick: (C) => a(c)(h, C)
786
+ href: k.href,
787
+ class: x(n(m)),
788
+ onClick: (w) => n(f)(g, w)
789
789
  }, [
790
- i("div", bs, [
791
- i("div", ys, B(a(d)(h)), 1),
792
- i("div", xs, [
793
- i("div", null, B(y.name), 1),
794
- y.description ? (l(), m("div", ks, 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, vs))
797
+ ], 10, ws))
798
798
  ]))), 128))
799
799
  ], 2)
800
- ], 8, os));
800
+ ], 8, ds));
801
801
  }
802
- }), Cs = ["aria-label"], ws = ["href", "onClick"], $s = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, Ss = {
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
- }, Is = ["href", "onClick"], Bs = {
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
- }, _s = {
808
+ }, Os = {
809
809
  key: 0,
810
810
  class: "h-3 w-3 rounded-full bg-foreground"
811
- }, Ps = /* @__PURE__ */ i("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), Ls = /* @__PURE__ */ i("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), js = ["href", "onClick"], Vs = {
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
- }, Os = {
814
+ }, Ds = {
815
815
  key: 0,
816
816
  class: "h-3 w-3 rounded-full bg-foreground-2"
817
- }, As = {
817
+ }, Ts = {
818
818
  key: 1,
819
819
  class: "h-4 w-4 rounded-full bg-foreground-disabled"
820
- }, $a = /* @__PURE__ */ A({
820
+ }, zn = /* @__PURE__ */ j({
821
821
  __name: "Bullet",
822
822
  props: {
823
823
  ariaLabel: null,
@@ -830,117 +830,117 @@ const os = ["aria-label"], rs = ["href", "onClick"], is = { 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: le(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) => (l(), 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([a(d), p.value])
849
+ d("ol", {
850
+ class: x([n(i), u.value])
851
851
  }, [
852
- (l(!0), m(W, null, G(e.steps, (h, C) => (l(), 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
- a(o)(C) ? (l(), m("a", {
855
+ n(o)(w) ? (a(), p("a", {
856
856
  key: 0,
857
- href: h.href,
858
- class: k(a(f)),
859
- onClick: (u) => a(c)(C, u)
857
+ href: g.href,
858
+ class: x(n(r)),
859
+ onClick: (h) => n(f)(w, h)
860
860
  }, [
861
- i("span", $s, [
862
- e.basic ? (l(), m("span", Ss)) : (l(), P(a(Re), {
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, ws)) : a(s)(C) ? (l(), 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(a(f)),
873
+ href: g.href,
874
+ class: x(n(r)),
875
875
  "aria-current": "step",
876
- onClick: (u) => a(c)(C, u)
876
+ onClick: (h) => n(f)(w, h)
877
877
  }, [
878
- i("span", Bs, [
879
- e.basic ? (l(), m("span", _s)) : (l(), m(W, { key: 1 }, [
880
- Ps,
881
- Ls
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, Is)) : (l(), 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(a(f)),
891
- onClick: (u) => a(c)(C, u)
889
+ href: g.href,
890
+ class: x(n(r)),
891
+ onClick: (h) => n(f)(w, h)
892
892
  }, [
893
- i("div", Vs, [
894
- e.basic ? (l(), m("span", Os)) : (l(), m("div", As))
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, js))
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, Cs));
902
+ ], 8, Bs));
903
903
  }
904
- }), Ms = ["disabled"], Sa = /* @__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) => (l(), 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, Ms));
935
+ ], 10, Fs));
936
936
  }
937
- }), zs = { class: "relative flex items-start" }, Ds = { class: "flex h-6 items-center" }, Rs = ["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
- }, Fs = ["for"], Es = {
940
+ }, Hs = ["for"], Gs = {
941
941
  key: 0,
942
942
  class: "text-danger ml-1"
943
- }, Ws = ["id"], Ia = /* @__PURE__ */ A({
943
+ }, Ks = ["id"], Dn = /* @__PURE__ */ j({
944
944
  inheritAttrs: !1,
945
945
  __name: "Checkbox",
946
946
  props: {
@@ -1029,108 +1029,108 @@ const os = ["aria-label"], rs = ["href", "onClick"], is = { 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, $ = f.value, S = Array.isArray(v) ? v.includes(n.value) : v === n.value, T = Array.isArray($) ? $.includes(n.value) : $ === n.value;
1050
- S !== T && d(v);
1051
- }), (v, $) => (l(), m("div", zs, [
1052
- i("div", Ds, [
1053
- i("input", oe({
1054
- id: u.value,
1055
- checked: a(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, Rs)
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 ? (l(), m("span", Es, "*")) : I("", !0)
1071
- ], 10, Fs),
1072
- b.value ? (l(), 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, Ws)) : 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: a(n.validateOnMount),
1084
- validateOnValueUpdate: a(n.validateOnValueUpdate),
1085
- initialValue: a(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 a(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"), a(n.color) === "foundation" ? S.push("bg-foundation shadow-sm hover:shadow") : S.push("bg-foundation-page"), S.join(" ");
1098
- }), x = O(Ce()), p = r(() => a(n.label) || a(n.name)), b = r(() => {
1099
- const S = c.value;
1100
- return !S || !a(n.useLabelInErrors) ? S : S.replace("Value", p.value);
1101
- }), y = r(
1102
- () => b.value && a(n.hideErrorMessage)
1103
- ), h = r(() => b.value || a(n.help)), C = r(() => !!h.value), u = r(
1104
- () => C.value ? `${a(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
1111
  }, $ = () => {
1112
1112
  o.value = "", s("change", { value: "" }), s("clear");
1113
1113
  };
1114
- return Y(() => {
1115
- a(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,
1120
+ helpTipId: h,
1121
+ helpTipClasses: P,
1122
+ helpTip: g,
1123
+ hideHelpTip: k,
1124
+ errorMessage: y,
1125
1125
  clear: $,
1126
- focus: v,
1127
- labelClasses: d
1126
+ focus: b,
1127
+ labelClasses: i
1128
1128
  };
1129
1129
  }
1130
- const Us = ["for"], qs = { class: "relative" }, Hs = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Gs = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), Ks = {
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
- }, Xs = ["id"], Ba = /* @__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,
@@ -1151,96 +1151,96 @@ const Us = ["for"], qs = { class: "relative" }, Hs = ["id", "name", "placeholder
1151
1151
  color: { default: "page" }
1152
1152
  },
1153
1153
  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: le(s),
1154
+ setup(e, { expose: l, emit: t }) {
1155
+ const s = e, o = M(null), {
1156
+ coreClasses: f,
1157
+ title: i,
1158
+ value: r,
1159
+ helpTipId: m,
1160
+ helpTipClasses: u,
1161
+ helpTip: y,
1162
+ errorMessage: k,
1163
+ labelClasses: g,
1164
+ clear: w,
1165
+ focus: h
1166
+ } = He({
1167
+ props: Y(s),
1168
1168
  emit: t,
1169
1169
  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(" ");
1170
+ }), P = c(() => {
1171
+ const b = ["pl-2"];
1172
+ return s.showClear && k.value ? b.push("pr-12") : (s.showClear || k.value) && b.push("pr-8"), b.join(" ");
1173
1173
  });
1174
- return n({ focus: u }), (v, $) => (l(), m("div", {
1175
- class: k([e.fullWidth ? "w-full" : ""])
1174
+ return l({ focus: h }), (b, $) => (a(), p("div", {
1175
+ class: x([e.fullWidth ? "w-full" : ""])
1176
1176
  }, [
1177
- i("label", {
1177
+ d("label", {
1178
1178
  for: e.name,
1179
- class: k(a(h))
1179
+ class: x(n(g))
1180
1180
  }, [
1181
- i("span", null, B(a(d)), 1)
1182
- ], 10, Us),
1183
- i("div", qs, [
1184
- ne(i("textarea", oe({
1181
+ d("span", null, B(n(i)), 1)
1182
+ ], 10, Xs),
1183
+ d("div", Ns, [
1184
+ ae(d("textarea", ie({
1185
1185
  id: e.name,
1186
1186
  ref_key: "inputElement",
1187
1187
  ref: o,
1188
- "onUpdate:modelValue": $[0] || ($[0] = (S) => ve(f) ? f.value = S : null),
1188
+ "onUpdate:modelValue": $[0] || ($[0] = (S) => de(r) ? r.value = S : null),
1189
1189
  name: e.name,
1190
- class: [a(c), j.value, "min-h-[4rem]"],
1190
+ class: [n(f), P.value, "min-h-[4rem] simple-scrollbar"],
1191
1191
  placeholder: e.placeholder,
1192
1192
  disabled: e.disabled,
1193
- "aria-invalid": a(y) ? "true" : "false",
1194
- "aria-describedby": a(x)
1195
- }, v.$attrs, {
1196
- onChange: $[1] || ($[1] = (S) => v.$emit("change", { event: S, value: a(f) })),
1197
- onInput: $[2] || ($[2] = (S) => v.$emit("input", { event: S, value: a(f) }))
1198
- }), null, 16, Hs), [
1199
- [Ae, a(f)]
1193
+ "aria-invalid": n(k) ? "true" : "false",
1194
+ "aria-describedby": n(m)
1195
+ }, b.$attrs, {
1196
+ onChange: $[1] || ($[1] = (S) => b.$emit("change", { event: S, value: n(r) })),
1197
+ onInput: $[2] || ($[2] = (S) => b.$emit("input", { event: S, value: n(r) }))
1198
+ }), null, 16, Js), [
1199
+ [Me, n(r)]
1200
1200
  ]),
1201
- e.showClear ? (l(), m("a", {
1201
+ e.showClear ? (a(), p("a", {
1202
1202
  key: 0,
1203
1203
  title: "Clear input",
1204
1204
  class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
1205
1205
  onClick: $[3] || ($[3] = //@ts-ignore
1206
- (...S) => a(C) && a(C)(...S)),
1206
+ (...S) => n(w) && n(w)(...S)),
1207
1207
  onKeydown: $[4] || ($[4] = //@ts-ignore
1208
- (...S) => a(C) && a(C)(...S))
1208
+ (...S) => n(w) && n(w)(...S))
1209
1209
  }, [
1210
- Gs,
1211
- L(a(ue), {
1210
+ Qs,
1211
+ V(n(fe), {
1212
1212
  class: "h-5 w-5 text-foreground",
1213
1213
  "aria-hidden": "true"
1214
1214
  })
1215
1215
  ], 32)) : I("", !0),
1216
- a(y) ? (l(), m("div", {
1216
+ n(k) ? (a(), p("div", {
1217
1217
  key: 1,
1218
- class: k([
1219
- "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1218
+ class: x([
1219
+ "pointer-events-none absolute inset-y-0 right-0 flex items-start mt-2",
1220
1220
  e.showClear ? "pr-8" : "pr-2"
1221
1221
  ])
1222
1222
  }, [
1223
- L(a(xe), {
1223
+ V(n(ke), {
1224
1224
  class: "h-4 w-4 text-danger",
1225
1225
  "aria-hidden": "true"
1226
1226
  })
1227
1227
  ], 2)) : I("", !0),
1228
- e.showRequired && !a(y) ? (l(), m("div", Ks, " * ")) : I("", !0)
1228
+ e.showRequired && !n(k) ? (a(), p("div", Ys, " * ")) : I("", !0)
1229
1229
  ]),
1230
- a(x) ? (l(), m("p", {
1230
+ n(m) ? (a(), p("p", {
1231
1231
  key: 0,
1232
- id: a(x),
1233
- class: k(a(p))
1234
- }, B(a(b)), 11, Xs)) : I("", !0)
1232
+ id: n(m),
1233
+ class: x(n(u))
1234
+ }, B(n(y)), 11, Zs)) : I("", !0)
1235
1235
  ], 2));
1236
1236
  }
1237
- }), Ns = ["for"], Js = { class: "relative" }, Qs = {
1237
+ }), el = ["for"], tl = { class: "relative" }, sl = {
1238
1238
  key: 0,
1239
1239
  class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
1240
- }, Ys = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Zs = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), en = {
1240
+ }, ll = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], nl = /* @__PURE__ */ d("span", { class: "text-xs sr-only" }, "Clear input", -1), al = {
1241
1241
  key: 2,
1242
1242
  class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
1243
- }, tn = ["id"], _a = /* @__PURE__ */ A({
1243
+ }, ol = ["id"], Fn = /* @__PURE__ */ j({
1244
1244
  inheritAttrs: !1,
1245
1245
  __name: "TextInput",
1246
1246
  props: {
@@ -1376,32 +1376,32 @@ const Us = ["for"], qs = { class: "relative" }, Hs = ["id", "name", "placeholder
1376
1376
  }
1377
1377
  },
1378
1378
  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: le(s),
1379
+ setup(e, { expose: l, emit: t }) {
1380
+ const s = e, o = ye(), f = M(null), {
1381
+ coreClasses: i,
1382
+ title: r,
1383
+ value: m,
1384
+ helpTipId: u,
1385
+ helpTipClasses: y,
1386
+ helpTip: k,
1387
+ hideHelpTip: g,
1388
+ errorMessage: w,
1389
+ clear: h,
1390
+ focus: P,
1391
+ labelClasses: b
1392
+ } = He({
1393
+ props: Y(s),
1394
1394
  emit: t,
1395
- inputEl: c
1396
- }), $ = r(() => {
1397
- const R = ["h-5 w-5"];
1398
- return C.value ? R.push("text-danger") : R.push("text-foreground-2"), R.join(" ");
1399
- }), S = r(
1395
+ inputEl: f
1396
+ }), $ = c(() => {
1397
+ const D = ["h-5 w-5"];
1398
+ return w.value ? D.push("text-danger") : D.push("text-foreground-2"), D.join(" ");
1399
+ }), S = c(
1400
1400
  () => ["email", "password"].includes(s.type) || s.customIcon
1401
- ), T = r(() => {
1402
- const R = [];
1403
- return S.value ? R.push("pl-8") : R.push("pl-2"), o["input-right"] || (C.value || s.showClear) && (C.value && s.showClear ? R.push("pr-12") : R.push("pr-8")), R.join(" ");
1404
- }), g = r(() => {
1401
+ ), F = c(() => {
1402
+ const D = [];
1403
+ 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(" ");
1404
+ }), v = c(() => {
1405
1405
  switch (s.size) {
1406
1406
  case "sm":
1407
1407
  return "h-6";
@@ -1414,200 +1414,202 @@ const Us = ["for"], qs = { class: "relative" }, Hs = ["id", "name", "placeholder
1414
1414
  return "h-8";
1415
1415
  }
1416
1416
  });
1417
- return n({ focus: j }), (R, E) => (l(), m("div", {
1418
- class: k([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1417
+ return l({ focus: P }), (D, W) => (a(), p("div", {
1418
+ class: x([e.fullWidth ? "w-full" : "", e.wrapperClasses])
1419
1419
  }, [
1420
- i("label", {
1420
+ d("label", {
1421
1421
  for: e.name,
1422
- class: k(a(v))
1422
+ class: x(n(b))
1423
1423
  }, [
1424
- i("span", null, B(a(f)), 1)
1425
- ], 10, Ns),
1426
- i("div", Js, [
1427
- S.value ? (l(), m("div", Qs, [
1428
- e.customIcon ? (l(), P(H(e.customIcon), {
1424
+ d("span", null, B(n(r)), 1)
1425
+ ], 10, el),
1426
+ d("div", tl, [
1427
+ S.value ? (a(), p("div", sl, [
1428
+ e.customIcon ? (a(), L(G(e.customIcon), {
1429
1429
  key: 0,
1430
- class: k($.value),
1430
+ class: x($.value),
1431
1431
  "aria-hidden": "true"
1432
- }, null, 8, ["class"])) : e.type === "email" ? (l(), P(a(mt), {
1432
+ }, null, 8, ["class"])) : e.type === "email" ? (a(), L(n(xt), {
1433
1433
  key: 1,
1434
- class: k($.value),
1434
+ class: x($.value),
1435
1435
  "aria-hidden": "true"
1436
- }, null, 8, ["class"])) : e.type === "password" ? (l(), P(a(gt), {
1436
+ }, null, 8, ["class"])) : e.type === "password" ? (a(), L(n(kt), {
1437
1437
  key: 2,
1438
- class: k($.value),
1438
+ class: x($.value),
1439
1439
  "aria-hidden": "true"
1440
1440
  }, null, 8, ["class"])) : I("", !0)
1441
1441
  ])) : I("", !0),
1442
- ne(i("input", oe({
1442
+ ae(d("input", ie({
1443
1443
  id: e.name,
1444
1444
  ref_key: "inputElement",
1445
- ref: c,
1446
- "onUpdate:modelValue": E[0] || (E[0] = (F) => ve(x) ? x.value = F : null),
1445
+ ref: f,
1446
+ "onUpdate:modelValue": W[0] || (W[0] = (E) => de(m) ? m.value = E : null),
1447
1447
  type: e.type,
1448
1448
  name: e.name,
1449
- class: [a(d), T.value, g.value, e.inputClasses || ""],
1449
+ class: [n(i), F.value, v.value, e.inputClasses || ""],
1450
1450
  placeholder: e.placeholder,
1451
1451
  disabled: e.disabled,
1452
- "aria-invalid": a(C) ? "true" : "false",
1453
- "aria-describedby": a(p),
1452
+ "aria-invalid": n(w) ? "true" : "false",
1453
+ "aria-describedby": n(u),
1454
1454
  role: "textbox"
1455
- }, R.$attrs, {
1456
- onChange: E[1] || (E[1] = (F) => R.$emit("change", { event: F, value: a(x) })),
1457
- onInput: E[2] || (E[2] = (F) => R.$emit("input", { event: F, value: a(x) }))
1458
- }), null, 16, Ys), [
1459
- [Xe, a(x)]
1455
+ }, D.$attrs, {
1456
+ onChange: W[1] || (W[1] = (E) => D.$emit("change", { event: E, value: n(m) })),
1457
+ onInput: W[2] || (W[2] = (E) => D.$emit("input", { event: E, value: n(m) }))
1458
+ }), null, 16, ll), [
1459
+ [et, n(m)]
1460
1460
  ]),
1461
- z(R.$slots, "input-right", {}, () => [
1462
- e.showClear ? (l(), m("a", {
1461
+ z(D.$slots, "input-right", {}, () => [
1462
+ e.showClear ? (a(), p("a", {
1463
1463
  key: 0,
1464
1464
  title: "Clear input",
1465
1465
  class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
1466
- onClick: E[3] || (E[3] = //@ts-ignore
1467
- (...F) => a(u) && a(u)(...F)),
1468
- onKeydown: E[4] || (E[4] = //@ts-ignore
1469
- (...F) => a(u) && a(u)(...F))
1466
+ onClick: W[3] || (W[3] = //@ts-ignore
1467
+ (...E) => n(h) && n(h)(...E)),
1468
+ onKeydown: W[4] || (W[4] = //@ts-ignore
1469
+ (...E) => n(h) && n(h)(...E))
1470
1470
  }, [
1471
- Zs,
1472
- L(a(ue), {
1471
+ nl,
1472
+ V(n(fe), {
1473
1473
  class: "h-5 w-5 text-foreground",
1474
1474
  "aria-hidden": "true"
1475
1475
  })
1476
1476
  ], 32)) : I("", !0),
1477
- a(C) ? (l(), m("div", {
1477
+ n(w) ? (a(), p("div", {
1478
1478
  key: 1,
1479
- class: k([
1479
+ class: x([
1480
1480
  "pointer-events-none absolute inset-y-0 right-0 flex items-center",
1481
1481
  e.showClear ? "pr-8" : "pr-2"
1482
1482
  ])
1483
1483
  }, [
1484
- L(a(xe), {
1484
+ V(n(ke), {
1485
1485
  class: "h-4 w-4 text-danger",
1486
1486
  "aria-hidden": "true"
1487
1487
  })
1488
1488
  ], 2)) : I("", !0),
1489
- e.showRequired && !a(C) ? (l(), m("div", en, " * ")) : I("", !0)
1489
+ e.showRequired && !n(w) ? (a(), p("div", al, " * ")) : I("", !0)
1490
1490
  ])
1491
1491
  ]),
1492
- a(p) && !a(h) ? (l(), m("p", {
1492
+ n(u) && !n(g) ? (a(), p("p", {
1493
1493
  key: 0,
1494
- id: a(p),
1495
- class: k(a(b))
1496
- }, B(a(y)), 11, tn)) : I("", !0)
1494
+ id: n(u),
1495
+ class: x(n(y))
1496
+ }, B(n(k)), 11, ol)) : I("", !0)
1497
1497
  ], 2));
1498
1498
  }
1499
- }), sn = /^https?:\/\//, $e = /^[\w-_.+]+@[\w-_.+]+$/, nn = (e) => (e || "").match($e) ? !0 : "Value should be a valid e-mail address", an = (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"), on = (e, n) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${n || e}'`, rn = (e) => (n) => {
1499
+ }), 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
1500
  const { minLength: t, maxLength: s } = e;
1501
- return n = yt(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
- }, un = (e) => (n) => {
1501
+ 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";
1502
+ }, fl = (e) => (l) => {
1503
1503
  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
- }, Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1504
+ return ce(l) ? t ? ce(t) ? l.includes(t) ? !0 : s : t.test(l) ? !0 : s : !0 : "Value should be a text string";
1505
+ }, 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
1506
  __proto__: null,
1507
- VALID_EMAIL: $e,
1508
- VALID_HTTP_URL: sn,
1509
- isEmail: nn,
1510
- isOneOrMultipleEmails: an,
1511
- isRequired: ln,
1512
- isSameAs: on,
1513
- isStringOfLength: rn,
1514
- stringContains: un
1507
+ VALID_EMAIL: Se,
1508
+ VALID_HTTP_URL: Ge,
1509
+ isEmail: rl,
1510
+ isItemSelected: hl,
1511
+ isOneOrMultipleEmails: il,
1512
+ isRequired: ul,
1513
+ isSameAs: cl,
1514
+ isStringOfLength: dl,
1515
+ isUrl: pl,
1516
+ stringContains: fl
1515
1517
  }, Symbol.toStringTag, { value: "Module" }));
1516
- function cn(e) {
1518
+ function ml(e) {
1517
1519
  const {
1518
- skipCalculation: n,
1520
+ skipCalculation: l,
1519
1521
  elementToWatchForChanges: t,
1520
1522
  itemContainer: s,
1521
1523
  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)
1524
+ trackMutations: f = !0
1525
+ } = e || {}, i = M(0), r = () => {
1526
+ const m = s.value;
1527
+ if (l != null && l.value || !m)
1526
1528
  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;
1529
+ const u = m.children;
1530
+ let y = 0, k = 0, g;
1531
+ for (const w of u) {
1532
+ const h = w.offsetTop;
1533
+ Q(g) ? (g = h, y += 1) : h === g && (y += 1), k += 1;
1532
1534
  }
1533
- d.value = y - b;
1535
+ i.value = k - y;
1534
1536
  };
1535
- return o && Ct(t, f), c && wt(t, f, {
1537
+ return o && Bt(t, r), f && _t(t, r, {
1536
1538
  childList: !0,
1537
1539
  subtree: !0
1538
1540
  }), {
1539
- hiddenItemCount: d
1541
+ hiddenItemCount: i
1540
1542
  };
1541
1543
  }
1542
- function dn(e) {
1543
- const { props: n, emit: t, dynamicVisibility: s } = e;
1544
+ function Ke(e) {
1545
+ const { props: l, emit: t, dynamicVisibility: s } = e;
1544
1546
  let o;
1545
1547
  if (s) {
1546
- const { elementToWatchForChanges: p, itemContainer: b } = s;
1547
- o = cn({
1548
- skipCalculation: r(() => {
1549
- var h;
1550
- return !((h = n.multiple) != null && h.value);
1548
+ const { elementToWatchForChanges: u, itemContainer: y } = s;
1549
+ o = ml({
1550
+ skipCalculation: c(() => {
1551
+ var g;
1552
+ return !((g = l.multiple) != null && g.value);
1551
1553
  }),
1552
- elementToWatchForChanges: p,
1553
- itemContainer: b
1554
+ elementToWatchForChanges: u,
1555
+ itemContainer: y
1554
1556
  }).hiddenItemCount;
1555
1557
  } else
1556
- o = O(0);
1557
- const c = r({
1558
+ o = M(0);
1559
+ const f = c({
1558
1560
  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;
1561
+ var y, k;
1562
+ const u = (y = l.modelValue) == null ? void 0 : y.value;
1563
+ return (k = l.multiple) != null && k.value ? H(u) ? u : [] : H(u) ? void 0 : u;
1562
1564
  },
1563
- set: (p) => {
1564
- var b, y, h;
1565
- if ((b = n.multiple) != null && b.value && !q(p)) {
1565
+ set: (u) => {
1566
+ var y, k, g;
1567
+ if ((y = l.multiple) != null && y.value && !H(u)) {
1566
1568
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1567
1569
  return;
1568
- } else if (!((y = n.multiple) != null && y.value) && q(p)) {
1570
+ } else if (!((k = l.multiple) != null && k.value) && H(u)) {
1569
1571
  console.warn("Attempting to set array value in selector w/ multiple=false");
1570
1572
  return;
1571
1573
  }
1572
- t("update:modelValue", (h = n.multiple) != null && h.value ? p || [] : p);
1574
+ t("update:modelValue", (g = l.multiple) != null && g.value ? u || [] : u);
1573
1575
  }
1574
- }), d = (p) => q(p);
1576
+ }), i = (u) => H(u);
1575
1577
  return {
1576
- selectedValue: c,
1578
+ selectedValue: f,
1577
1579
  hiddenSelectedItemCount: o,
1578
- isArrayValue: d,
1579
- isMultiItemArrayValue: (p) => q(p) && p.length > 1,
1580
- firstItem: (p) => d(p) ? p[0] : p
1580
+ isArrayValue: i,
1581
+ isMultiItemArrayValue: (u) => H(u) && u.length > 1,
1582
+ firstItem: (u) => i(u) ? u[0] : u
1581
1583
  };
1582
1584
  }
1583
- const fn = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), pn = /* @__PURE__ */ fn(() => /* @__PURE__ */ i("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), hn = [
1584
- pn
1585
- ], mn = /* @__PURE__ */ A({
1585
+ 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 = [
1586
+ vl
1587
+ ], yl = /* @__PURE__ */ j({
1586
1588
  __name: "Bar",
1587
1589
  props: {
1588
1590
  loading: { type: Boolean }
1589
1591
  },
1590
1592
  setup(e) {
1591
- return (n, t) => (l(), m("div", {
1592
- class: k([
1593
+ return (l, t) => (a(), p("div", {
1594
+ class: x([
1593
1595
  "relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
1594
1596
  e.loading ? "opacity-100" : "opacity-0"
1595
1597
  ])
1596
- }, hn, 2));
1598
+ }, bl, 2));
1597
1599
  }
1598
1600
  });
1599
- const Ue = /* @__PURE__ */ Fe(mn, [["__scopeId", "data-v-60cf597b"]]), gn = { class: "flex items-center justify-between w-full" }, vn = { class: "block truncate grow text-left" }, bn = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, yn = {
1601
+ 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 = {
1600
1602
  key: 1,
1601
1603
  class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
1602
- }, xn = ["disabled"], kn = {
1604
+ }, $l = ["disabled"], Sl = {
1603
1605
  key: 0,
1604
1606
  class: "flex flex-col mx-1 mb-1"
1605
- }, Cn = /* @__PURE__ */ i("span", { class: "sr-only label text-foreground" }, "Search", -1), wn = { class: "relative" }, $n = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Sn = ["placeholder"], In = {
1607
+ }, 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 = {
1606
1608
  key: 0,
1607
1609
  class: "px-1"
1608
- }, Bn = { key: 1 }, _n = /* @__PURE__ */ i("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Pn = {
1609
- class: /* @__PURE__ */ k(["block truncate"])
1610
- }, Ln = ["id"], jn = /* @__PURE__ */ A({
1610
+ }, Pl = { key: 1 }, jl = /* @__PURE__ */ d("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷‍♂️", -1), Ol = {
1611
+ class: /* @__PURE__ */ x(["block truncate"])
1612
+ }, Al = ["id"], Ne = /* @__PURE__ */ j({
1611
1613
  __name: "Base",
1612
1614
  props: {
1613
1615
  multiple: {
@@ -1666,6 +1668,12 @@ const Ue = /* @__PURE__ */ Fe(mn, [["__scopeId", "data-v-60cf597b"]]), gn = { cl
1666
1668
  type: String,
1667
1669
  required: !0
1668
1670
  },
1671
+ /**
1672
+ * Optional text that replaces the label as the placeholder when set.
1673
+ */
1674
+ placeholder: {
1675
+ type: String
1676
+ },
1669
1677
  /**
1670
1678
  * Whether to show the label visually
1671
1679
  */
@@ -1762,158 +1770,158 @@ const Ue = /* @__PURE__ */ Fe(mn, [["__scopeId", "data-v-60cf597b"]]), gn = { cl
1762
1770
  }
1763
1771
  },
1764
1772
  emits: ["update:modelValue"],
1765
- setup(e, { expose: n, emit: t }) {
1766
- const s = e, { value: o, errorMessage: c } = ke(s.name, s.rules, {
1773
+ setup(e, { expose: l, emit: t }) {
1774
+ const s = e, { value: o, errorMessage: f } = we(s.name, s.rules, {
1767
1775
  validateOnMount: s.validateOnMount,
1768
1776
  validateOnValueUpdate: s.validateOnValueUpdate,
1769
1777
  initialValue: s.modelValue
1770
- }), d = O(null), f = O(""), x = O([]), p = O(!1), b = O(1), y = O(Ce()), h = r(() => a(s.label) || a(s.name)), C = r(() => {
1771
- const w = c.value;
1772
- return !w || !a(s.useLabelInErrors) ? w : w.replace("Value", h.value);
1773
- }), u = r(() => C.value || a(s.help)), j = r(() => !!u.value), v = r(
1774
- () => j.value ? `${a(s.name)}-${y.value}` : void 0
1775
- ), $ = r(
1776
- () => c.value ? "text-danger" : "text-foreground-2"
1777
- ), S = r(
1778
+ }), 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(() => {
1779
+ const C = f.value;
1780
+ return !C || !n(s.useLabelInErrors) ? C : C.replace("Value", g.value);
1781
+ }), h = c(() => w.value || n(s.help)), P = c(() => !!h.value), b = c(
1782
+ () => P.value ? `${n(s.name)}-${k.value}` : void 0
1783
+ ), $ = c(
1784
+ () => f.value ? "text-danger" : "text-foreground-2"
1785
+ ), S = c(
1778
1786
  () => s.buttonStyle !== "simple" && s.clearable && !s.disabled
1779
- ), T = r(() => {
1780
- const w = ["relative flex group"];
1781
- return c.value ? (w.push("hover:shadow rounded-md"), w.push("text-danger-darker focus:border-danger focus:ring-danger"), s.buttonStyle !== "simple" && w.push("outline outline-2 outline-danger")) : s.buttonStyle !== "simple" && (w.push("hover:shadow rounded-md"), w.push("outline outline-2 outline-primary-muted")), s.fixedHeight && w.push("h-8"), w.join(" ");
1782
- }), g = r(() => {
1783
- const w = [];
1784
- return s.buttonStyle !== "simple" && w.push(
1785
- Z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1786
- ), Z.value && w.push("cursor-not-allowed"), w.join(" ");
1787
- }), R = r(() => {
1788
- const w = [
1787
+ ), F = c(() => {
1788
+ const C = ["relative flex group"];
1789
+ 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(" ");
1790
+ }), v = c(() => {
1791
+ const C = [];
1792
+ return s.buttonStyle !== "simple" && C.push(
1793
+ te.value ? "bg-foundation-disabled text-foreground-disabled" : ""
1794
+ ), te.value && C.push("cursor-not-allowed"), C.join(" ");
1795
+ }), D = c(() => {
1796
+ const C = [
1789
1797
  "relative z-[1]",
1790
1798
  "flex items-center justify-center text-center shrink-0",
1791
1799
  "rounded-r-md overflow-hidden transition-all",
1792
1800
  "text-foreground",
1793
- Se.value ? `w-6 ${g.value}` : "w-0"
1801
+ Ie.value ? `w-6 ${v.value}` : "w-0"
1794
1802
  ];
1795
- return Z.value || (w.push(
1803
+ return te.value || (C.push(
1796
1804
  "hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
1797
- ), s.buttonStyle === "tinted" ? w.push("bg-outline-3") : w.push("bg-primary-muted")), w.join(" ");
1798
- }), E = r(() => {
1799
- const w = [
1805
+ ), s.buttonStyle === "tinted" ? C.push("bg-outline-3") : C.push("bg-primary-muted")), C.join(" ");
1806
+ }), W = c(() => {
1807
+ const C = [
1800
1808
  "relative z-[2]",
1801
1809
  "normal rounded-md cursor-pointer transition truncate flex-1",
1802
1810
  "flex items-center",
1803
- g.value
1811
+ v.value
1804
1812
  ];
1805
- return s.buttonStyle !== "simple" && (w.push("py-2 px-3"), Z.value || (s.buttonStyle === "tinted" ? w.push("bg-foundation-page text-foreground") : w.push("bg-foundation text-foreground"))), S.value && Se.value && w.push("rounded-r-none"), w.join(" ");
1806
- }), F = r(
1813
+ 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(" ");
1814
+ }), E = c(
1807
1815
  () => !!(s.search && (s.filterPredicate || s.getSearchResults))
1808
- ), X = r(() => F.value && s.getSearchResults), Z = r(
1816
+ ), X = c(() => E.value && s.getSearchResults), te = c(
1809
1817
  () => s.disabled || !s.items.length && !X.value
1810
- ), U = r({
1818
+ ), q = c({
1811
1819
  get: () => {
1812
- const w = o.value;
1813
- return s.multiple ? q(w) ? w : [] : q(w) ? void 0 : w;
1820
+ const C = o.value;
1821
+ return s.multiple ? H(C) ? C : [] : H(C) ? void 0 : C;
1814
1822
  },
1815
- set: (w) => {
1816
- if (s.multiple && !q(w)) {
1823
+ set: (C) => {
1824
+ if (s.multiple && !H(C)) {
1817
1825
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1818
1826
  return;
1819
- } else if (!s.multiple && q(w)) {
1827
+ } else if (!s.multiple && H(C)) {
1820
1828
  console.warn("Attempting to set array value in selector w/ multiple=false");
1821
1829
  return;
1822
1830
  }
1823
- let D;
1831
+ let R;
1824
1832
  if (s.multiple)
1825
- D = w || [];
1833
+ R = C || [];
1826
1834
  else {
1827
- const V = o.value;
1828
- D = s.allowUnset && V && w && ce(V) === ce(w) ? void 0 : w;
1835
+ const O = o.value;
1836
+ R = s.allowUnset && O && C && pe(O) === pe(C) ? void 0 : C;
1829
1837
  }
1830
- s.fullyControlValue ? t("update:modelValue", D) : o.value = D, b.value += 1;
1838
+ s.fullyControlValue ? t("update:modelValue", R) : o.value = R, y.value += 1;
1831
1839
  }
1832
- }), Se = r(() => s.multiple ? U.value.length !== 0 : !!U.value), qe = () => {
1833
- s.multiple ? U.value = [] : U.value = void 0;
1834
- }, He = r(() => {
1835
- const w = f.value;
1836
- return !F.value || !(w != null && w.length) ? x.value : s.filterPredicate ? x.value.filter(
1837
- (D) => {
1838
- var V;
1839
- return ((V = s.filterPredicate) == null ? void 0 : V.call(s, D, w)) || !1;
1840
+ }), Ie = c(() => s.multiple ? q.value.length !== 0 : !!q.value), Je = () => {
1841
+ s.multiple ? q.value = [] : q.value = void 0;
1842
+ }, Qe = c(() => {
1843
+ const C = r.value;
1844
+ return !E.value || !(C != null && C.length) ? m.value : s.filterPredicate ? m.value.filter(
1845
+ (R) => {
1846
+ var O;
1847
+ return ((O = s.filterPredicate) == null ? void 0 : O.call(s, R, C)) || !1;
1840
1848
  }
1841
- ) : x.value;
1842
- }), Ie = (w) => JSON.stringify(w), ce = (w) => s.by ? w[s.by] : w, de = async () => {
1849
+ ) : m.value;
1850
+ }), Be = (C) => JSON.stringify(C), pe = (C) => s.by ? C[s.by] : C, he = async () => {
1843
1851
  if (!(!X.value || !s.getSearchResults)) {
1844
- p.value = !0;
1852
+ u.value = !0;
1845
1853
  try {
1846
- x.value = await s.getSearchResults(f.value);
1854
+ m.value = await s.getSearchResults(r.value);
1847
1855
  } finally {
1848
- p.value = !1;
1856
+ u.value = !1;
1849
1857
  }
1850
1858
  }
1851
- }, Ge = ze(de, 1e3), Ke = (w) => {
1852
- const { active: D, disabled: V } = w || {}, { hideCheckmarks: K } = s, N = [
1859
+ }, Ye = Re(he, 1e3), Ze = (C) => {
1860
+ const { active: R, disabled: O } = C || {}, { hideCheckmarks: K } = s, N = [
1853
1861
  "relative transition cursor-pointer select-none py-1.5 pl-3",
1854
1862
  K ? "" : "pr-9"
1855
1863
  ];
1856
- return V ? N.push("opacity-50 cursor-not-allowed") : N.push(D ? "text-primary" : "text-foreground"), N.join(" ");
1864
+ return O ? N.push("opacity-50 cursor-not-allowed") : N.push(R ? "text-primary" : "text-foreground"), N.join(" ");
1857
1865
  };
1858
- return ae(
1866
+ return oe(
1859
1867
  () => s.items,
1860
- (w) => {
1861
- x.value = w.slice();
1868
+ (C) => {
1869
+ m.value = C.slice();
1862
1870
  },
1863
1871
  { immediate: !0 }
1864
- ), ae(f, () => {
1865
- X.value && Ge();
1866
- }), Y(() => {
1867
- X.value && !s.items.length && de();
1868
- }), n({ triggerSearch: de }), (w, D) => (l(), m("div", null, [
1869
- (l(), P(a(It), {
1870
- key: b.value,
1871
- modelValue: U.value,
1872
- "onUpdate:modelValue": D[4] || (D[4] = (V) => U.value = V),
1872
+ ), oe(r, () => {
1873
+ X.value && Ye();
1874
+ }), Z(() => {
1875
+ X.value && !s.items.length && he();
1876
+ }), l({ triggerSearch: he }), (C, R) => (a(), p("div", null, [
1877
+ (a(), L(n(Pt), {
1878
+ key: y.value,
1879
+ modelValue: q.value,
1880
+ "onUpdate:modelValue": R[4] || (R[4] = (O) => q.value = O),
1873
1881
  name: e.name,
1874
1882
  multiple: e.multiple,
1875
1883
  by: e.by,
1876
- disabled: Z.value,
1884
+ disabled: te.value,
1877
1885
  as: "div"
1878
1886
  }, {
1879
1887
  default: _(() => [
1880
- L(a(Bt), {
1881
- class: k(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
1888
+ V(n(jt), {
1889
+ class: x(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
1882
1890
  }, {
1883
1891
  default: _(() => [
1884
- M(B(e.label), 1)
1892
+ A(B(e.label), 1)
1885
1893
  ]),
1886
1894
  _: 1
1887
1895
  }, 8, ["class"]),
1888
- i("div", {
1889
- class: k(T.value)
1896
+ d("div", {
1897
+ class: x(F.value)
1890
1898
  }, [
1891
- L(a(_t), {
1892
- class: k(E.value)
1899
+ V(n(Ot), {
1900
+ class: x(W.value)
1893
1901
  }, {
1894
- default: _(({ open: V }) => [
1895
- i("div", gn, [
1896
- i("div", vn, [
1897
- !U.value || a(q)(U.value) && !U.value.length ? z(w.$slots, "nothing-selected", { key: 0 }, () => [
1898
- M(B(e.label), 1)
1899
- ]) : z(w.$slots, "something-selected", {
1902
+ default: _(({ open: O }) => [
1903
+ d("div", xl, [
1904
+ d("div", kl, [
1905
+ !q.value || n(H)(q.value) && !q.value.length ? z(C.$slots, "nothing-selected", { key: 0 }, () => [
1906
+ A(B(e.placeholder ? e.placeholder : e.label), 1)
1907
+ ]) : z(C.$slots, "something-selected", {
1900
1908
  key: 1,
1901
- value: U.value
1909
+ value: q.value
1902
1910
  }, () => [
1903
- M(B(Ie(U.value)), 1)
1911
+ A(B(Be(q.value)), 1)
1904
1912
  ])
1905
1913
  ]),
1906
- i("div", bn, [
1907
- C.value ? (l(), P(a(et), {
1914
+ d("div", wl, [
1915
+ w.value ? (a(), L(n(rt), {
1908
1916
  key: 0,
1909
1917
  class: "h-4 w-4 text-danger",
1910
1918
  "aria-hidden": "true"
1911
- })) : e.showRequired ? (l(), m("div", yn, " * ")) : I("", !0),
1912
- V ? (l(), P(a(De), {
1919
+ })) : e.showRequired ? (a(), p("div", Cl, " * ")) : I("", !0),
1920
+ O ? (a(), L(n(De), {
1913
1921
  key: 2,
1914
1922
  class: "h-4 w-4 text-foreground",
1915
1923
  "aria-hidden": "true"
1916
- })) : (l(), P(a(tt), {
1924
+ })) : (a(), L(n(it), {
1917
1925
  key: 3,
1918
1926
  class: "h-4 w-4 text-foreground",
1919
1927
  "aria-hidden": "true"
@@ -1923,96 +1931,96 @@ const Ue = /* @__PURE__ */ Fe(mn, [["__scopeId", "data-v-60cf597b"]]), gn = { cl
1923
1931
  ]),
1924
1932
  _: 3
1925
1933
  }, 8, ["class"]),
1926
- S.value ? ne((l(), m("button", {
1934
+ S.value ? ae((a(), p("button", {
1927
1935
  key: 0,
1928
- class: k(R.value),
1936
+ class: x(D.value),
1929
1937
  disabled: e.disabled,
1930
- onClick: D[0] || (D[0] = (V) => qe())
1938
+ onClick: R[0] || (R[0] = (O) => Je())
1931
1939
  }, [
1932
- L(a(st), { class: "w-3 h-3" })
1933
- ], 10, xn)), [
1934
- [a(Te), "Clear"]
1940
+ V(n(xe), { class: "w-3 h-3" })
1941
+ ], 10, $l)), [
1942
+ [n(Ee), "Clear"]
1935
1943
  ]) : I("", !0),
1936
- L(ge, {
1944
+ V(be, {
1937
1945
  "leave-active-class": "transition ease-in duration-100",
1938
1946
  "leave-from-class": "opacity-100",
1939
1947
  "leave-to-class": "opacity-0"
1940
1948
  }, {
1941
1949
  default: _(() => [
1942
- L(a(Pt), {
1950
+ V(n(At), {
1943
1951
  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",
1944
- onFocus: D[3] || (D[3] = (V) => {
1952
+ onFocus: R[3] || (R[3] = (O) => {
1945
1953
  var K;
1946
- return (K = d.value) == null ? void 0 : K.focus();
1954
+ return (K = i.value) == null ? void 0 : K.focus();
1947
1955
  })
1948
1956
  }, {
1949
1957
  default: _(() => [
1950
- F.value ? (l(), m("label", kn, [
1951
- Cn,
1952
- i("div", wn, [
1953
- i("div", $n, [
1954
- L(a(nt), { class: "h-5 w-5 text-foreground" })
1958
+ E.value ? (a(), p("label", Sl, [
1959
+ Il,
1960
+ d("div", Bl, [
1961
+ d("div", _l, [
1962
+ V(n(ut), { class: "h-5 w-5 text-foreground" })
1955
1963
  ]),
1956
- ne(i("input", {
1964
+ ae(d("input", {
1957
1965
  ref_key: "searchInput",
1958
- ref: d,
1959
- "onUpdate:modelValue": D[1] || (D[1] = (V) => f.value = V),
1966
+ ref: i,
1967
+ "onUpdate:modelValue": R[1] || (R[1] = (O) => r.value = O),
1960
1968
  type: "text",
1961
1969
  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",
1962
1970
  placeholder: e.searchPlaceholder,
1963
- onKeydown: D[2] || (D[2] = ye(() => {
1971
+ onKeydown: R[2] || (R[2] = ue(() => {
1964
1972
  }, ["stop"]))
1965
- }, null, 40, Sn), [
1966
- [Ae, f.value]
1973
+ }, null, 40, Vl), [
1974
+ [Me, r.value]
1967
1975
  ])
1968
1976
  ])
1969
1977
  ])) : I("", !0),
1970
- i("div", {
1971
- class: k(["overflow-auto simple-scrollbar", [F.value ? "max-h-52" : "max-h-60"]])
1978
+ d("div", {
1979
+ class: x(["overflow-auto simple-scrollbar", [E.value ? "max-h-52" : "max-h-60"]])
1972
1980
  }, [
1973
- X.value && p.value ? (l(), m("div", In, [
1974
- L(Ue, { loading: !0 })
1975
- ])) : X.value && !x.value.length ? (l(), m("div", Bn, [
1976
- z(w.$slots, "nothing-found", {}, () => [
1977
- _n
1981
+ X.value && u.value ? (a(), p("div", Ll, [
1982
+ V(Xe, { loading: !0 })
1983
+ ])) : X.value && !m.value.length ? (a(), p("div", Pl, [
1984
+ z(C.$slots, "nothing-found", {}, () => [
1985
+ jl
1978
1986
  ])
1979
1987
  ])) : I("", !0),
1980
- !X.value || !p.value ? (l(!0), m(W, { key: 2 }, G(He.value, (V) => {
1988
+ !X.value || !u.value ? (a(!0), p(T, { key: 2 }, U(Qe.value, (O) => {
1981
1989
  var K;
1982
- return l(), P(a(Lt), {
1983
- key: ce(V),
1984
- value: V,
1985
- disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, V)) || !1
1990
+ return a(), L(n(Mt), {
1991
+ key: pe(O),
1992
+ value: O,
1993
+ disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, O)) || !1
1986
1994
  }, {
1987
- default: _(({ active: N, selected: Be }) => {
1988
- var _e, Pe;
1995
+ default: _(({ active: N, selected: _e }) => {
1996
+ var Ve, Le;
1989
1997
  return [
1990
- i("li", {
1991
- class: k(
1992
- Ke({
1998
+ d("li", {
1999
+ class: x(
2000
+ Ze({
1993
2001
  active: N,
1994
- disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e, V)) || !1
2002
+ disabled: ((Ve = e.disabledItemPredicate) == null ? void 0 : Ve.call(e, O)) || !1
1995
2003
  })
1996
2004
  )
1997
2005
  }, [
1998
- i("span", Pn, [
1999
- z(w.$slots, "option", {
2000
- item: V,
2006
+ d("span", Ol, [
2007
+ z(C.$slots, "option", {
2008
+ item: O,
2001
2009
  active: N,
2002
- selected: Be,
2003
- disabled: ((Pe = e.disabledItemPredicate) == null ? void 0 : Pe.call(e, V)) || !1
2010
+ selected: _e,
2011
+ disabled: ((Le = e.disabledItemPredicate) == null ? void 0 : Le.call(e, O)) || !1
2004
2012
  }, () => [
2005
- M(B(Ie(V)), 1)
2013
+ A(B(Be(O)), 1)
2006
2014
  ])
2007
2015
  ]),
2008
- !e.hideCheckmarks && Be ? (l(), m("span", {
2016
+ !e.hideCheckmarks && _e ? (a(), p("span", {
2009
2017
  key: 0,
2010
- class: k([
2018
+ class: x([
2011
2019
  N ? "text-primary" : "text-foreground",
2012
2020
  "absolute inset-y-0 right-0 flex items-center pr-4"
2013
2021
  ])
2014
2022
  }, [
2015
- L(a(at), {
2023
+ V(n(Te), {
2016
2024
  class: "h-5 w-5",
2017
2025
  "aria-hidden": "true"
2018
2026
  })
@@ -2034,37 +2042,37 @@ const Ue = /* @__PURE__ */ Fe(mn, [["__scopeId", "data-v-60cf597b"]]), gn = { cl
2034
2042
  ]),
2035
2043
  _: 3
2036
2044
  }, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
2037
- v.value ? (l(), m("p", {
2045
+ b.value ? (a(), p("p", {
2038
2046
  key: 0,
2039
- id: v.value,
2040
- class: k(["mt-2 text-sm", $.value])
2041
- }, B(u.value), 11, Ln)) : I("", !0)
2047
+ id: b.value,
2048
+ class: x(["mt-2 text-sm", $.value])
2049
+ }, B(h.value), 11, Al)) : I("", !0)
2042
2050
  ]));
2043
2051
  }
2044
- }), Vn = /* @__PURE__ */ A({
2052
+ }), Ml = /* @__PURE__ */ j({
2045
2053
  __name: "SourceAppBadge",
2046
2054
  props: {
2047
2055
  sourceApp: null
2048
2056
  },
2049
2057
  setup(e) {
2050
- return (n, t) => (l(), P(as, {
2058
+ return (l, t) => (a(), L(We, {
2051
2059
  "color-classes": "text-foreground-on-primary",
2052
2060
  rounded: "",
2053
- style: fe({ backgroundColor: e.sourceApp.bgColor })
2061
+ style: re({ backgroundColor: e.sourceApp.bgColor })
2054
2062
  }, {
2055
2063
  default: _(() => [
2056
- M(B(e.sourceApp.short), 1)
2064
+ A(B(e.sourceApp.short), 1)
2057
2065
  ]),
2058
2066
  _: 1
2059
2067
  }, 8, ["style"]));
2060
2068
  }
2061
- }), On = {
2069
+ }), zl = {
2062
2070
  key: 0,
2063
2071
  class: "text-foreground-2 normal"
2064
- }, An = {
2072
+ }, Rl = {
2065
2073
  key: 1,
2066
2074
  class: "flex items-center"
2067
- }, Mn = { class: "truncate" }, zn = { class: "flex items-center" }, Dn = { class: "truncate" }, La = /* @__PURE__ */ A({
2075
+ }, Dl = { class: "truncate" }, Tl = { class: "flex items-center" }, Fl = { class: "truncate" }, Un = /* @__PURE__ */ j({
2068
2076
  __name: "SourceApps",
2069
2077
  props: {
2070
2078
  /**
@@ -2123,126 +2131,209 @@ const Ue = /* @__PURE__ */ Fe(mn, [["__scopeId", "data-v-60cf597b"]]), gn = { cl
2123
2131
  }
2124
2132
  },
2125
2133
  emits: ["update:modelValue"],
2126
- setup(e, { emit: n }) {
2127
- const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: d, isMultiItemArrayValue: f, firstItem: x } = dn({
2128
- props: le(t),
2129
- emit: n,
2134
+ setup(e, { emit: l }) {
2135
+ const t = e, s = M(null), o = M(null), { selectedValue: f, hiddenSelectedItemCount: i, isMultiItemArrayValue: r, firstItem: m } = Ke({
2136
+ props: Y(t),
2137
+ emit: l,
2130
2138
  dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
2131
- }), p = (b, y) => b.name.toLocaleLowerCase().includes(y.toLocaleLowerCase());
2132
- return (b, y) => (l(), P(jn, {
2133
- modelValue: a(c),
2134
- "onUpdate:modelValue": y[0] || (y[0] = (h) => ve(c) ? c.value = h : null),
2139
+ }), u = (y, k) => y.name.toLocaleLowerCase().includes(k.toLocaleLowerCase());
2140
+ return (y, k) => (a(), L(Ne, {
2141
+ modelValue: n(f),
2142
+ "onUpdate:modelValue": k[0] || (k[0] = (g) => de(f) ? f.value = g : null),
2135
2143
  multiple: e.multiple,
2136
- items: e.items ?? a(xt),
2144
+ items: e.items ?? n(St),
2137
2145
  search: e.search,
2138
2146
  "search-placeholder": e.searchPlaceholder,
2139
2147
  label: e.label,
2140
2148
  "show-label": e.showLabel,
2141
2149
  name: e.name || "sourceApps",
2142
- "filter-predicate": p,
2150
+ "filter-predicate": u,
2143
2151
  by: "name"
2144
2152
  }, {
2145
2153
  "nothing-selected": _(() => [
2146
- e.selectorPlaceholder ? (l(), m(W, { key: 0 }, [
2147
- M(B(e.selectorPlaceholder), 1)
2148
- ], 64)) : (l(), m(W, { key: 1 }, [
2149
- M(B(e.multiple ? "Select apps" : "Select an app"), 1)
2154
+ e.selectorPlaceholder ? (a(), p(T, { key: 0 }, [
2155
+ A(B(e.selectorPlaceholder), 1)
2156
+ ], 64)) : (a(), p(T, { key: 1 }, [
2157
+ A(B(e.multiple ? "Select apps" : "Select an app"), 1)
2150
2158
  ], 64))
2151
2159
  ]),
2152
- "something-selected": _(({ value: h }) => [
2153
- a(f)(h) ? (l(), m("div", {
2160
+ "something-selected": _(({ value: g }) => [
2161
+ n(r)(g) ? (a(), p("div", {
2154
2162
  key: 0,
2155
2163
  ref_key: "elementToWatchForChanges",
2156
2164
  ref: s,
2157
2165
  class: "flex items-center space-x-0.5 h-5"
2158
2166
  }, [
2159
- i("div", {
2167
+ d("div", {
2160
2168
  ref_key: "itemContainer",
2161
2169
  ref: o,
2162
2170
  class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
2163
2171
  }, [
2164
- (l(!0), m(W, null, G(h, (C) => (l(), P(Vn, {
2165
- key: C.name,
2166
- "source-app": C
2172
+ (a(!0), p(T, null, U(g, (w) => (a(), L(Ml, {
2173
+ key: w.name,
2174
+ "source-app": w
2167
2175
  }, null, 8, ["source-app"]))), 128))
2168
2176
  ], 512),
2169
- a(d) > 0 ? (l(), m("div", On, " +" + B(a(d)), 1)) : I("", !0)
2170
- ], 512)) : (l(), m("div", An, [
2171
- i("div", {
2177
+ n(i) > 0 ? (a(), p("div", zl, " +" + B(n(i)), 1)) : I("", !0)
2178
+ ], 512)) : (a(), p("div", Rl, [
2179
+ d("div", {
2172
2180
  class: "h-2 w-2 rounded-full mr-2",
2173
- style: fe({ backgroundColor: a(x)(h).bgColor })
2181
+ style: re({ backgroundColor: n(m)(g).bgColor })
2174
2182
  }, null, 4),
2175
- i("span", Mn, B(a(x)(h).name), 1)
2183
+ d("span", Dl, B(n(m)(g).name), 1)
2176
2184
  ]))
2177
2185
  ]),
2178
- option: _(({ item: h }) => [
2179
- i("div", zn, [
2180
- i("div", {
2186
+ option: _(({ item: g }) => [
2187
+ d("div", Tl, [
2188
+ d("div", {
2181
2189
  class: "h-2 w-2 rounded-full mr-2",
2182
- style: fe({ backgroundColor: h.bgColor })
2190
+ style: re({ backgroundColor: g.bgColor })
2183
2191
  }, null, 4),
2184
- i("span", Dn, B(h.name), 1)
2192
+ d("span", Fl, B(g.name), 1)
2185
2193
  ])
2186
2194
  ]),
2187
2195
  _: 1
2188
2196
  }, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name"]));
2189
2197
  }
2198
+ }), El = { class: "flex flex-wrap gap-1.5 text-xs" }, Wn = /* @__PURE__ */ j({
2199
+ __name: "Badges",
2200
+ props: {
2201
+ items: null,
2202
+ label: null,
2203
+ name: null,
2204
+ help: null,
2205
+ modelValue: null,
2206
+ multiple: { type: Boolean },
2207
+ rules: null,
2208
+ by: null
2209
+ },
2210
+ emits: ["update:modelValue"],
2211
+ setup(e, { emit: l }) {
2212
+ const t = e, { selectedValue: s, isArrayValue: o } = Ke({
2213
+ props: Y(t),
2214
+ emit: l
2215
+ }), f = (i) => {
2216
+ o(s.value) ? s.value = s.value.filter((r) => r.id !== i.id) : s.value = void 0;
2217
+ };
2218
+ return (i, r) => (a(), L(Ne, {
2219
+ modelValue: n(s),
2220
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => de(s) ? s.value = m : null),
2221
+ multiple: e.multiple,
2222
+ items: e.items,
2223
+ label: e.label,
2224
+ name: e.name,
2225
+ help: e.help,
2226
+ rules: e.rules,
2227
+ by: e.by
2228
+ }, {
2229
+ "something-selected": _(({ value: m }) => [
2230
+ d("ul", El, [
2231
+ (a(!0), p(T, null, U(n(o)(m) ? m : [m], (u) => (a(), p("li", {
2232
+ key: u[e.by]
2233
+ }, [
2234
+ V(We, {
2235
+ size: "lg",
2236
+ "clickable-icon": !0,
2237
+ "icon-left": n(xe),
2238
+ onClickIcon: ue((y) => f(u), ["stop"])
2239
+ }, {
2240
+ default: _(() => [
2241
+ A(B(u.text), 1)
2242
+ ]),
2243
+ _: 2
2244
+ }, 1032, ["icon-left", "onClickIcon"])
2245
+ ]))), 128))
2246
+ ])
2247
+ ]),
2248
+ option: _(({ item: m }) => [
2249
+ A(B(m.text), 1)
2250
+ ]),
2251
+ _: 1
2252
+ }, 8, ["modelValue", "multiple", "items", "label", "name", "help", "rules", "by"]));
2253
+ }
2254
+ }), Ul = { class: "flex items-center" }, Wl = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, qn = /* @__PURE__ */ j({
2255
+ __name: "Switch",
2256
+ props: {
2257
+ modelValue: { type: Boolean }
2258
+ },
2259
+ emits: ["update:modelValue"],
2260
+ setup(e) {
2261
+ const l = lt(e, "modelValue");
2262
+ return (t, s) => (a(), p("div", Ul, [
2263
+ V(n(zt), {
2264
+ modelValue: l.value,
2265
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => l.value = o),
2266
+ 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 }])
2267
+ }, {
2268
+ default: _(() => [
2269
+ d("div", Wl, [
2270
+ V(n(Te), { class: "h-5 w-5 drop-shadow-md" }),
2271
+ V(n(xe), { class: "h-5 w-5 drop-shadow-md" })
2272
+ ]),
2273
+ d("span", {
2274
+ 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 }])
2275
+ }, null, 2)
2276
+ ]),
2277
+ _: 1
2278
+ }, 8, ["modelValue", "class"])
2279
+ ]));
2280
+ }
2190
2281
  });
2191
- var se = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(se || {});
2192
- const he = kt(), Rn = {
2282
+ var ne = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(ne || {});
2283
+ const ge = It(), ql = {
2193
2284
  [
2194
2285
  "cmd-or-ctrl"
2195
2286
  /* CtrlOrCmd */
2196
- ]: he === pe.Mac ? "Cmd" : "Ctrl",
2287
+ ]: ge === me.Mac ? "Cmd" : "Ctrl",
2197
2288
  [
2198
2289
  "alt-or-opt"
2199
2290
  /* AltOrOpt */
2200
- ]: he === pe.Mac ? "Opt" : "Alt",
2291
+ ]: ge === me.Mac ? "Opt" : "Alt",
2201
2292
  shift: "Shift"
2202
2293
  };
2203
- function ja(e) {
2204
- const n = (t) => Object.values(se).includes(t);
2205
- return e.map((t) => n(t) ? Rn[t] : t).join("+");
2294
+ function Hn(e) {
2295
+ const l = (t) => Object.values(ne).includes(t);
2296
+ return e.map((t) => l(t) ? ql[t] : t).join("+");
2206
2297
  }
2207
- function Va(e, ...n) {
2208
- $t(
2209
- n[0],
2298
+ function Gn(e, ...l) {
2299
+ Vt(
2300
+ l[0],
2210
2301
  (t) => {
2211
- const s = t.getModifierState("Alt"), o = he === pe.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), c = t.getModifierState("Shift");
2212
- for (const d of e)
2213
- switch (d) {
2214
- case se.CtrlOrCmd:
2302
+ const s = t.getModifierState("Alt"), o = ge === me.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), f = t.getModifierState("Shift");
2303
+ for (const i of e)
2304
+ switch (i) {
2305
+ case ne.CtrlOrCmd:
2215
2306
  if (!o)
2216
2307
  return;
2217
2308
  break;
2218
- case se.AltOrOpt:
2309
+ case ne.AltOrOpt:
2219
2310
  if (!s)
2220
2311
  return;
2221
2312
  break;
2222
- case se.Shift:
2223
- if (!c)
2313
+ case ne.Shift:
2314
+ if (!f)
2224
2315
  return;
2225
2316
  break;
2226
2317
  }
2227
- n[1](t);
2318
+ l[1](t);
2228
2319
  },
2229
- n[2]
2320
+ l[2]
2230
2321
  );
2231
2322
  }
2232
- function Oa(e) {
2233
- const n = (e == null ? void 0 : e.model) || O(), t = r({
2234
- get: () => !!n.value,
2235
- set: (s) => n.value = s ? !0 : void 0
2323
+ function Kn(e) {
2324
+ const l = (e == null ? void 0 : e.model) || M(), t = c({
2325
+ get: () => !!l.value,
2326
+ set: (s) => l.value = s ? !0 : void 0
2236
2327
  });
2237
- return { model: n, isChecked: t };
2328
+ return { model: l, isChecked: t };
2238
2329
  }
2239
- const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Fn = { class: "fixed inset-0 z-10 overflow-y-auto" }, En = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Wn = {
2330
+ 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 = {
2240
2331
  key: 0,
2241
2332
  class: "flex items-center justify-center shadow p-4 relative z-10 bg-foundation rounded-t-lg"
2242
- }, Un = { class: "text-2xl font-bold" }, qn = { class: "p-4 sm:p-6" }, Hn = {
2333
+ }, Nl = { class: "text-2xl font-bold" }, Jl = { class: "p-4 sm:p-6" }, Ql = {
2243
2334
  key: 2,
2244
2335
  class: "flex p-4 sm:px-6 sm:py-5 border-t gap-2 border-outline-3"
2245
- }, Aa = /* @__PURE__ */ A({
2336
+ }, Xn = /* @__PURE__ */ j({
2246
2337
  __name: "Dialog",
2247
2338
  props: {
2248
2339
  open: { type: Boolean },
@@ -2254,11 +2345,11 @@ const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2254
2345
  onSubmit: { type: Function }
2255
2346
  },
2256
2347
  emits: ["update:open", "fully-closed"],
2257
- setup(e, { emit: n }) {
2258
- const t = e, s = be(), o = r(() => !!t.onSubmit), c = r(() => t.buttons || s.buttons), d = r({
2348
+ setup(e, { emit: l }) {
2349
+ const t = e, s = ye(), o = c(() => !!t.onSubmit), f = c(() => t.buttons || s.buttons), i = c({
2259
2350
  get: () => t.open,
2260
- set: (b) => n("update:open", b)
2261
- }), f = r(() => {
2351
+ set: (y) => l("update:open", y)
2352
+ }), r = c(() => {
2262
2353
  switch (t.maxWidth) {
2263
2354
  case "sm":
2264
2355
  return 0;
@@ -2271,24 +2362,24 @@ const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2271
2362
  default:
2272
2363
  return 1e4;
2273
2364
  }
2274
- }), x = r(() => {
2275
- const b = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
2276
- 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(" ");
2277
- }), p = () => {
2278
- t.preventCloseOnClickOutside || (d.value = !1);
2365
+ }), m = c(() => {
2366
+ const y = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
2367
+ 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(" ");
2368
+ }), u = () => {
2369
+ t.preventCloseOnClickOutside || (i.value = !1);
2279
2370
  };
2280
- return (b, y) => (l(), P(a(jt), {
2371
+ return (y, k) => (a(), L(n(Rt), {
2281
2372
  as: "template",
2282
- show: d.value
2373
+ show: i.value
2283
2374
  }, {
2284
2375
  default: _(() => [
2285
- L(a(Vt), {
2376
+ V(n(Dt), {
2286
2377
  as: "div",
2287
2378
  class: "relative z-40",
2288
- onClose: p
2379
+ onClose: u
2289
2380
  }, {
2290
2381
  default: _(() => [
2291
- L(a(Ve), {
2382
+ V(n(Oe), {
2292
2383
  as: "template",
2293
2384
  enter: "ease-out duration-300",
2294
2385
  "enter-from": "opacity-0",
@@ -2298,13 +2389,13 @@ const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2298
2389
  "leave-to": "opacity-0"
2299
2390
  }, {
2300
2391
  default: _(() => [
2301
- Tn
2392
+ Hl
2302
2393
  ]),
2303
2394
  _: 1
2304
2395
  }),
2305
- i("div", Fn, [
2306
- i("div", En, [
2307
- L(a(Ve), {
2396
+ d("div", Gl, [
2397
+ d("div", Kl, [
2398
+ V(n(Oe), {
2308
2399
  as: "template",
2309
2400
  enter: "ease-out duration-300",
2310
2401
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -2312,42 +2403,42 @@ const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2312
2403
  leave: "ease-in duration-200",
2313
2404
  "leave-from": "opacity-100 translate-y-0 sm:scale-100",
2314
2405
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
2315
- onAfterLeave: y[1] || (y[1] = (h) => b.$emit("fully-closed"))
2406
+ onAfterLeave: k[1] || (k[1] = (g) => y.$emit("fully-closed"))
2316
2407
  }, {
2317
2408
  default: _(() => [
2318
- L(a(Ot), {
2319
- class: k([
2409
+ V(n(Tt), {
2410
+ class: x([
2320
2411
  "transform rounded-lg bg-foundation text-left shadow-xl transition-all",
2321
- x.value
2412
+ m.value
2322
2413
  ]),
2323
2414
  as: o.value ? "form" : "div",
2324
- onSubmit: ye(e.onSubmit, ["prevent"])
2415
+ onSubmit: ue(e.onSubmit, ["prevent"])
2325
2416
  }, {
2326
2417
  default: _(() => [
2327
- e.title ? (l(), m("div", Wn, [
2328
- i("h4", Un, B(e.title), 1)
2418
+ e.title ? (a(), p("div", Xl, [
2419
+ d("h4", Nl, B(e.title), 1)
2329
2420
  ])) : I("", !0),
2330
- e.hideCloser ? I("", !0) : (l(), m("button", {
2421
+ e.hideCloser ? I("", !0) : (a(), p("button", {
2331
2422
  key: 1,
2332
2423
  class: "absolute z-20 top-5 right-4 text-foreground",
2333
- onClick: y[0] || (y[0] = (h) => d.value = !1)
2424
+ onClick: k[0] || (k[0] = (g) => i.value = !1)
2334
2425
  }, [
2335
- L(a(dt), { class: "h-6 w-6" })
2426
+ V(n(gt), { class: "h-6 w-6" })
2336
2427
  ])),
2337
- i("div", qn, [
2338
- z(b.$slots, "default", {}, () => [
2339
- M("Put your content here!")
2428
+ d("div", Jl, [
2429
+ z(y.$slots, "default", {}, () => [
2430
+ A("Put your content here!")
2340
2431
  ])
2341
2432
  ]),
2342
- c.value ? (l(), m("div", Hn, [
2343
- e.buttons ? (l(!0), m(W, { key: 0 }, G(e.buttons, (h, C) => (l(), P(a(re), oe({ key: C }, h.props, {
2344
- onClick: h.onClick
2433
+ f.value ? (a(), p("div", Ql, [
2434
+ e.buttons ? (a(!0), p(T, { key: 0 }, U(e.buttons, (g, w) => (a(), L(n(ee), ie({ key: w }, g.props, {
2435
+ onClick: g.onClick
2345
2436
  }), {
2346
2437
  default: _(() => [
2347
- M(B(h.text), 1)
2438
+ A(B(g.text), 1)
2348
2439
  ]),
2349
2440
  _: 2
2350
- }, 1040, ["onClick"]))), 128)) : z(b.$slots, "buttons", { key: 1 })
2441
+ }, 1040, ["onClick"]))), 128)) : z(y.$slots, "buttons", { key: 1 })
2351
2442
  ])) : I("", !0)
2352
2443
  ]),
2353
2444
  _: 3
@@ -2364,7 +2455,7 @@ const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2364
2455
  _: 3
2365
2456
  }, 8, ["show"]));
2366
2457
  }
2367
- }), Gn = { class: "inline-flex items-center space-x-2" }, Kn = { class: "label-light" }, Ma = /* @__PURE__ */ A({
2458
+ }), Yl = { class: "inline-flex items-center space-x-2" }, Zl = { class: "label-light" }, Nn = /* @__PURE__ */ j({
2368
2459
  __name: "Disclosure",
2369
2460
  props: {
2370
2461
  title: null,
@@ -2372,12 +2463,12 @@ const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2372
2463
  color: { default: "default" }
2373
2464
  },
2374
2465
  setup(e) {
2375
- const n = e, t = r(() => {
2466
+ const l = e, t = c(() => {
2376
2467
  const o = [
2377
2468
  "pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
2378
2469
  "ring-1 font-medium"
2379
2470
  ];
2380
- switch (n.color) {
2471
+ switch (l.color) {
2381
2472
  case "warning":
2382
2473
  o.push(
2383
2474
  "border-warning text-warning ring-warning-lighter hover:ring-warning"
@@ -2399,9 +2490,9 @@ const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2399
2490
  break;
2400
2491
  }
2401
2492
  return o.join(" ");
2402
- }), s = r(() => {
2493
+ }), s = c(() => {
2403
2494
  const o = ["mt-4 px-3 py-1 border-x "];
2404
- switch (n.color) {
2495
+ switch (l.color) {
2405
2496
  case "warning":
2406
2497
  o.push("border-warning-lighter");
2407
2498
  break;
@@ -2418,33 +2509,33 @@ const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2418
2509
  }
2419
2510
  return o.join(" ");
2420
2511
  });
2421
- return (o, c) => (l(), m("div", null, [
2422
- L(a(At), null, {
2423
- default: _(({ open: d }) => [
2424
- L(a(Mt), {
2425
- class: k(t.value)
2512
+ return (o, f) => (a(), p("div", null, [
2513
+ V(n(Ft), null, {
2514
+ default: _(({ open: i }) => [
2515
+ V(n(Et), {
2516
+ class: x(t.value)
2426
2517
  }, {
2427
2518
  default: _(() => [
2428
- i("div", Gn, [
2429
- e.icon ? (l(), P(H(e.icon), {
2519
+ d("div", Yl, [
2520
+ e.icon ? (a(), L(G(e.icon), {
2430
2521
  key: 0,
2431
2522
  class: "h-4 w-4"
2432
2523
  })) : I("", !0),
2433
- i("span", null, B(e.title), 1)
2524
+ d("span", null, B(e.title), 1)
2434
2525
  ]),
2435
- L(a(De), {
2436
- class: k([d ? "" : "rotate-180 transform", "h-5 w-5"])
2526
+ V(n(De), {
2527
+ class: x([i ? "" : "rotate-180 transform", "h-5 w-5"])
2437
2528
  }, null, 8, ["class"])
2438
2529
  ]),
2439
2530
  _: 2
2440
2531
  }, 1032, ["class"]),
2441
- L(a(zt), {
2442
- class: k(s.value)
2532
+ V(n(Ut), {
2533
+ class: x(s.value)
2443
2534
  }, {
2444
2535
  default: _(() => [
2445
- i("div", Kn, [
2536
+ d("div", Zl, [
2446
2537
  z(o.$slots, "default", {}, () => [
2447
- M("Panel contents")
2538
+ A("Panel contents")
2448
2539
  ])
2449
2540
  ])
2450
2541
  ]),
@@ -2457,135 +2548,135 @@ const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
2457
2548
  }
2458
2549
  });
2459
2550
  var J = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(J || {});
2460
- const za = /* @__PURE__ */ A({
2551
+ const Jn = /* @__PURE__ */ j({
2461
2552
  __name: "GridListToggle",
2462
2553
  props: {
2463
2554
  modelValue: null
2464
2555
  },
2465
2556
  emits: ["click", "update:modelValue"],
2466
- setup(e, { emit: n }) {
2467
- const t = e, s = r({
2557
+ setup(e, { emit: l }) {
2558
+ const t = e, s = c({
2468
2559
  get: () => t.modelValue || J.Grid,
2469
- set: (d) => n("update:modelValue", d)
2470
- }), o = r(
2471
- () => s.value === J.Grid ? lt : ot
2472
- ), c = (d) => {
2473
- n("click", d);
2474
- const f = s.value === J.Grid ? J.List : J.Grid;
2475
- s.value = f;
2560
+ set: (i) => l("update:modelValue", i)
2561
+ }), o = c(
2562
+ () => s.value === J.Grid ? ct : dt
2563
+ ), f = (i) => {
2564
+ l("click", i);
2565
+ const r = s.value === J.Grid ? J.List : J.Grid;
2566
+ s.value = r;
2476
2567
  };
2477
- return (d, f) => (l(), m("button", {
2568
+ return (i, r) => (a(), p("button", {
2478
2569
  class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
2479
- onClick: c
2570
+ onClick: f
2480
2571
  }, [
2481
- (l(), P(H(o.value), { class: "h-6 w-6" }))
2572
+ (a(), L(G(o.value), { class: "h-6 w-6" }))
2482
2573
  ]));
2483
2574
  }
2484
2575
  });
2485
- var Xn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(Xn || {}), me = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(me || {});
2486
- function Nn(e, n) {
2487
- if (!we)
2576
+ 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 || {});
2577
+ function tn(e, l) {
2578
+ if (!$e)
2488
2579
  return;
2489
2580
  const {
2490
2581
  wait: t = 100,
2491
2582
  throttleOrDebounce: s = 0
2492
2583
  /* Throttle */
2493
- } = n || {}, o = t ? s === 0 ? Qe(e, t) : ze(e, t) : e;
2494
- Y(() => window.addEventListener("resize", o)), Me(() => window.removeEventListener("resize", o));
2584
+ } = l || {}, o = t ? s === 0 ? nt(e, t) : Re(e, t) : e;
2585
+ Z(() => window.addEventListener("resize", o)), ze(() => window.removeEventListener("resize", o));
2495
2586
  }
2496
- function Da(e) {
2497
- Y(() => {
2587
+ function Qn(e) {
2588
+ Z(() => {
2498
2589
  window.addEventListener("beforeunload", e);
2499
- }), Me(() => {
2590
+ }), ze(() => {
2500
2591
  window.removeEventListener("beforeunload", e);
2501
2592
  });
2502
2593
  }
2503
- function Jn(e) {
2504
- const { el: n, defaultDirection: t } = e, s = O(
2594
+ function sn(e) {
2595
+ const { el: l, defaultDirection: t } = e, s = M(
2505
2596
  Q(t) ? 1 : t
2506
2597
  /* Right */
2507
- ), o = r(() => {
2508
- const d = a(e.stopUpdatesBelowWidth);
2509
- if (!Q(d))
2510
- return d;
2511
- const f = a(n);
2512
- return f != null && f.offsetWidth ? f.offsetWidth * 2 : void 0;
2513
- }), c = () => {
2514
- if (!we)
2598
+ ), o = c(() => {
2599
+ const i = n(e.stopUpdatesBelowWidth);
2600
+ if (!Q(i))
2601
+ return i;
2602
+ const r = n(l);
2603
+ return r != null && r.offsetWidth ? r.offsetWidth * 2 : void 0;
2604
+ }), f = () => {
2605
+ if (!$e)
2515
2606
  return;
2516
- const d = a(n);
2517
- if (!d)
2607
+ const i = n(l);
2608
+ if (!i)
2518
2609
  return;
2519
- const f = d.getBoundingClientRect(), x = f.x + f.width > window.innerWidth, p = f.x < 0;
2520
- x && p || !Q(o.value) && window.innerWidth < o.value || (x ? s.value = 0 : p && (s.value = 1));
2610
+ const r = i.getBoundingClientRect(), m = r.x + r.width > window.innerWidth, u = r.x < 0;
2611
+ m && u || !Q(o.value) && window.innerWidth < o.value || (m ? s.value = 0 : u && (s.value = 1));
2521
2612
  };
2522
- return Nn(() => c()), ae(
2523
- () => a(n),
2524
- (d) => {
2525
- d && c();
2613
+ return tn(() => f()), oe(
2614
+ () => n(l),
2615
+ (i) => {
2616
+ i && f();
2526
2617
  }
2527
2618
  ), {
2528
- direction: r(() => s.value),
2529
- recalculateDirection: c
2619
+ direction: c(() => s.value),
2620
+ recalculateDirection: f
2530
2621
  };
2531
2622
  }
2532
- const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
2623
+ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
2533
2624
  __name: "Menu",
2534
2625
  props: {
2535
2626
  open: { type: Boolean },
2536
2627
  items: null
2537
2628
  },
2538
2629
  emits: ["update:open", "chosen"],
2539
- setup(e, { emit: n }) {
2540
- const t = e, s = O(null), { direction: o } = Jn({
2541
- el: r(() => {
2542
- var h;
2543
- return ((h = s.value) == null ? void 0 : h.el) || null;
2630
+ setup(e, { emit: l }) {
2631
+ const t = e, s = M(null), { direction: o } = sn({
2632
+ el: c(() => {
2633
+ var g;
2634
+ return ((g = s.value) == null ? void 0 : g.el) || null;
2544
2635
  }),
2545
- defaultDirection: me.Left,
2636
+ defaultDirection: ve.Left,
2546
2637
  stopUpdatesBelowWidth: 300
2547
- }), c = O(null), d = O(!1), f = r({
2638
+ }), f = M(null), i = M(!1), r = c({
2548
2639
  get: () => t.open || !1,
2549
- set: (h) => n("update:open", h)
2550
- }), x = (h) => {
2551
- const { active: C, disabled: u } = h, j = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2552
- return C ? j.push("bg-primary text-foreground-on-primary") : u ? j.push("text-foreground-disabled") : j.push("text-foreground"), j.join(" ");
2553
- }, p = (h, C) => {
2554
- n("chosen", { item: h, event: C });
2555
- }, b = () => {
2556
- var h;
2557
- return (h = c.value) == null ? void 0 : h.el.click();
2558
- }, y = (h) => {
2559
- const C = !!h;
2560
- return d.value = C, C;
2640
+ set: (g) => l("update:open", g)
2641
+ }), m = (g) => {
2642
+ const { active: w, disabled: h } = g, P = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2643
+ return w ? P.push("bg-primary text-foreground-on-primary") : h ? P.push("text-foreground-disabled") : P.push("text-foreground"), P.join(" ");
2644
+ }, u = (g, w) => {
2645
+ l("chosen", { item: g, event: w });
2646
+ }, y = () => {
2647
+ var g;
2648
+ return (g = f.value) == null ? void 0 : g.el.click();
2649
+ }, k = (g) => {
2650
+ const w = !!g;
2651
+ return i.value = w, w;
2561
2652
  };
2562
- return ae(d, (h, C) => {
2563
- h !== C && (f.value = h);
2564
- }), ae(f, (h) => {
2565
- (h && !d.value || !h && d.value) && b();
2566
- }), (h, C) => (l(), P(a(Dt), {
2653
+ return oe(i, (g, w) => {
2654
+ g !== w && (r.value = g);
2655
+ }), oe(r, (g) => {
2656
+ (g && !i.value || !g && i.value) && y();
2657
+ }), (g, w) => (a(), L(n(Wt), {
2567
2658
  as: "div",
2568
2659
  class: "relative inline-block"
2569
2660
  }, {
2570
- default: _(({ open: u }) => [
2571
- i("div", null, [
2572
- L(a(Rt), {
2661
+ default: _(({ open: h }) => [
2662
+ d("div", null, [
2663
+ V(n(qt), {
2573
2664
  ref_key: "menuButton",
2574
- ref: c,
2665
+ ref: f,
2575
2666
  class: "hidden",
2576
- onClick: C[0] || (C[0] = ye(() => {
2667
+ onClick: w[0] || (w[0] = ue(() => {
2577
2668
  }, ["stop", "prevent"]))
2578
2669
  }, null, 512),
2579
- i("div", {
2580
- class: k(u ? "pointer-events-none" : "")
2670
+ d("div", {
2671
+ class: x(h ? "pointer-events-none" : "")
2581
2672
  }, [
2582
- z(h.$slots, "default", {
2583
- toggle: b,
2584
- open: y(u)
2673
+ z(g.$slots, "default", {
2674
+ toggle: y,
2675
+ open: k(h)
2585
2676
  })
2586
2677
  ], 2)
2587
2678
  ]),
2588
- L(ge, {
2679
+ V(be, {
2589
2680
  "enter-active-class": "transition duration-100 ease-out",
2590
2681
  "enter-from-class": "transform scale-95 opacity-0",
2591
2682
  "enter-to-class": "transform scale-100 opacity-100",
@@ -2594,36 +2685,36 @@ const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
2594
2685
  "leave-to-class": "transform scale-95 opacity-0"
2595
2686
  }, {
2596
2687
  default: _(() => [
2597
- L(a(Tt), {
2688
+ V(n(Ht), {
2598
2689
  ref_key: "menuItems",
2599
2690
  ref: s,
2600
- class: k([
2691
+ class: x([
2601
2692
  "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",
2602
- a(o) === a(me).Left ? "right-0" : ""
2693
+ n(o) === n(ve).Left ? "right-0" : ""
2603
2694
  ])
2604
2695
  }, {
2605
2696
  default: _(() => [
2606
- (l(!0), m(W, null, G(e.items, (j, v) => (l(), m("div", {
2607
- key: v,
2697
+ (a(!0), p(T, null, U(e.items, (P, b) => (a(), p("div", {
2698
+ key: b,
2608
2699
  class: "px-1 py-1"
2609
2700
  }, [
2610
- (l(!0), m(W, null, G(j, ($) => (l(), P(a(Ft), {
2701
+ (a(!0), p(T, null, U(P, ($) => (a(), L(n(Gt), {
2611
2702
  key: $.id,
2612
2703
  disabled: $.disabled
2613
2704
  }, {
2614
- default: _(({ active: S, disabled: T }) => [
2615
- ne((l(), m("span", null, [
2616
- i("button", {
2617
- class: k(x({ active: S, disabled: T })),
2618
- disabled: T,
2619
- onClick: (g) => p($, g)
2705
+ default: _(({ active: S, disabled: F }) => [
2706
+ ae((a(), p("span", null, [
2707
+ d("button", {
2708
+ class: x(m({ active: S, disabled: F })),
2709
+ disabled: F,
2710
+ onClick: (v) => u($, v)
2620
2711
  }, [
2621
- z(h.$slots, "item", { item: $ }, () => [
2622
- M(B($.title), 1)
2712
+ z(g.$slots, "item", { item: $ }, () => [
2713
+ A(B($.title), 1)
2623
2714
  ])
2624
- ], 10, Qn)
2715
+ ], 10, ln)
2625
2716
  ])), [
2626
- [a(Te), $.disabled && $.disabledTooltip]
2717
+ [n(Ee), $.disabled && $.disabledTooltip]
2627
2718
  ])
2628
2719
  ]),
2629
2720
  _: 2
@@ -2639,33 +2730,108 @@ const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
2639
2730
  _: 3
2640
2731
  }));
2641
2732
  }
2642
- }), Yn = { class: "flex flex-col space-y-4" }, Zn = { class: "flex space-x-6" }, Ta = /* @__PURE__ */ A({
2733
+ }), nn = { class: "flex flex-col space-y-4" }, an = { class: "flex space-x-6" }, Zn = /* @__PURE__ */ j({
2643
2734
  __name: "Tabs",
2644
2735
  props: {
2645
2736
  items: null
2646
2737
  },
2647
2738
  setup(e) {
2648
- const n = e, t = O(null), s = r(() => t.value && n.items.find((c) => c.id === t.value) || n.items[0]), o = (c) => {
2649
- t.value = c.id;
2739
+ const l = e, t = M(null), s = c(() => t.value && l.items.find((f) => f.id === t.value) || l.items[0]), o = (f) => {
2740
+ t.value = f.id;
2650
2741
  };
2651
- return (c, d) => (l(), m("div", Yn, [
2652
- i("div", Zn, [
2653
- (l(!0), m(W, null, G(e.items, (f) => (l(), P(re, {
2654
- key: f.id,
2742
+ return (f, i) => (a(), p("div", nn, [
2743
+ d("div", an, [
2744
+ (a(!0), p(T, null, U(e.items, (r) => (a(), L(ee, {
2745
+ key: r.id,
2655
2746
  link: "",
2656
- color: s.value.id === f.id ? "default" : "secondary",
2657
- onClick: (x) => o(f)
2747
+ color: s.value.id === r.id ? "default" : "secondary",
2748
+ onClick: (m) => o(r)
2658
2749
  }, {
2659
2750
  default: _(() => [
2660
- M(B(f.title), 1)
2751
+ A(B(r.title), 1)
2661
2752
  ]),
2662
2753
  _: 2
2663
2754
  }, 1032, ["color", "onClick"]))), 128))
2664
2755
  ]),
2665
- z(c.$slots, "default", { activeItem: s.value })
2756
+ z(f.$slots, "default", { activeItem: s.value })
2757
+ ]));
2758
+ }
2759
+ }), 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({
2760
+ __name: "Table",
2761
+ props: {
2762
+ items: null,
2763
+ buttons: null,
2764
+ columns: null,
2765
+ overflowCells: { type: Boolean },
2766
+ onRowClick: { type: Function }
2767
+ },
2768
+ setup(e) {
2769
+ const l = e, t = c(() => {
2770
+ const i = (l.buttons || []).length;
2771
+ let r = 16;
2772
+ return i > 0 && (r = 48 + (i - 1) * 42), `${r}px`;
2773
+ }), s = (i) => {
2774
+ var r;
2775
+ return ((r = l.columns.find((m) => m.id === i)) == null ? void 0 : r.classes) || "";
2776
+ }, o = (i, r) => {
2777
+ const m = s(i);
2778
+ return r === 0 ? `bg-transparent py-3 pr-5 px-1 ${m}` : `lg:p-0 px-1 ${m}`;
2779
+ }, f = (i) => {
2780
+ var r;
2781
+ (r = l.onRowClick) == null || r.call(l, i);
2782
+ };
2783
+ return (i, r) => (a(), p("div", on, [
2784
+ d("div", rn, [
2785
+ e.items.length > 0 ? (a(), p("div", {
2786
+ key: 0,
2787
+ 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]",
2788
+ style: re({ paddingRight: t.value })
2789
+ }, [
2790
+ (a(!0), p(T, null, U(e.columns, (m) => (a(), p("div", {
2791
+ key: m.id,
2792
+ class: x([s(m.id), "capitalize"])
2793
+ }, B(m.header), 3))), 128))
2794
+ ], 4)) : I("", !0),
2795
+ d("div", {
2796
+ class: x(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": e.overflowCells }])
2797
+ }, [
2798
+ (a(!0), p(T, null, U(e.items, (m) => (a(), p("div", {
2799
+ key: m.id,
2800
+ 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 }]),
2801
+ style: re({ paddingRight: t.value }),
2802
+ tabindex: "0",
2803
+ onClick: (u) => f(m),
2804
+ onKeypress: (u) => f(m)
2805
+ }, [
2806
+ (a(!0), p(T, null, U(e.columns, (u, y) => (a(), p("div", {
2807
+ key: u.id,
2808
+ class: x(o(u.id, y)),
2809
+ tabindex: "0"
2810
+ }, [
2811
+ z(i.$slots, u.id, { item: m }, () => [
2812
+ cn
2813
+ ])
2814
+ ], 2))), 128)),
2815
+ d("div", dn, [
2816
+ (a(!0), p(T, null, U(e.buttons, (u) => (a(), p("div", {
2817
+ key: u.label
2818
+ }, [
2819
+ V(n(ee), {
2820
+ "icon-left": u.icon,
2821
+ size: "sm",
2822
+ color: "secondary",
2823
+ "hide-text": "",
2824
+ class: x(u.class),
2825
+ onClick: ue((y) => u.action(m), ["stop"])
2826
+ }, null, 8, ["icon-left", "class", "onClick"])
2827
+ ]))), 128))
2828
+ ])
2829
+ ], 46, un))), 128))
2830
+ ], 2)
2831
+ ])
2666
2832
  ]));
2667
2833
  }
2668
- }), ea = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, ta = { class: "inline-flex items-center space-x-1" }, sa = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), na = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, aa = { class: "inline-flex items-center space-x-1" }, la = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Fa = /* @__PURE__ */ A({
2834
+ }), 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({
2669
2835
  __name: "InfiniteLoading",
2670
2836
  props: {
2671
2837
  settings: null,
@@ -2673,45 +2839,45 @@ const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
2673
2839
  },
2674
2840
  emits: ["infinite"],
2675
2841
  setup(e) {
2676
- const n = O(null), t = O(!1);
2677
- return we && Y(() => {
2842
+ const l = M(null), t = M(!1);
2843
+ return $e && Z(() => {
2678
2844
  const s = setInterval(() => {
2679
2845
  var o;
2680
- (o = n.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
2846
+ (o = l.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
2681
2847
  }, 200);
2682
- }), (s, o) => (l(), m("div", {
2848
+ }), (s, o) => (a(), p("div", {
2683
2849
  ref_key: "wrapper",
2684
- ref: n
2850
+ ref: l
2685
2851
  }, [
2686
- t.value ? (l(), P(a(Et), oe({ key: 0 }, s.$props.settings || {}, {
2687
- onInfinite: o[0] || (o[0] = (c) => s.$emit("infinite", c))
2852
+ t.value ? (a(), L(n(Kt), ie({ key: 0 }, s.$props.settings || {}, {
2853
+ onInfinite: o[0] || (o[0] = (f) => s.$emit("infinite", f))
2688
2854
  }), {
2689
2855
  spinner: _(() => [
2690
- L(Ue, {
2856
+ V(Xe, {
2691
2857
  loading: !0,
2692
2858
  class: "my-2"
2693
2859
  })
2694
2860
  ]),
2695
2861
  complete: _(() => [
2696
- i("div", ea, [
2697
- i("div", ta, [
2698
- L(a(ft), { class: "w-5 h-5 text-success" }),
2699
- sa
2862
+ d("div", fn, [
2863
+ d("div", pn, [
2864
+ V(n(vt), { class: "w-5 h-5 text-success" }),
2865
+ hn
2700
2866
  ])
2701
2867
  ])
2702
2868
  ]),
2703
- error: _(({ retry: c }) => [
2704
- i("div", na, [
2705
- i("div", aa, [
2706
- L(a(pt), { class: "w-5 h-5 text-danger" }),
2707
- la
2869
+ error: _(({ retry: f }) => [
2870
+ d("div", mn, [
2871
+ d("div", gn, [
2872
+ V(n(bt), { class: "w-5 h-5 text-danger" }),
2873
+ vn
2708
2874
  ]),
2709
- e.allowRetry ? (l(), P(re, {
2875
+ e.allowRetry ? (a(), L(ee, {
2710
2876
  key: 0,
2711
- onClick: c
2877
+ onClick: f
2712
2878
  }, {
2713
2879
  default: _(() => [
2714
- M("Retry")
2880
+ A("Retry")
2715
2881
  ]),
2716
2882
  _: 2
2717
2883
  }, 1032, ["onClick"])) : I("", !0)
@@ -2721,10 +2887,10 @@ const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
2721
2887
  }, 16)) : I("", !0)
2722
2888
  ], 512));
2723
2889
  }
2724
- }), oa = { class: "relative group" }, ra = {
2890
+ }), bn = { class: "relative group" }, yn = {
2725
2891
  key: 0,
2726
2892
  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"
2727
- }, Ea = /* @__PURE__ */ A({
2893
+ }, sa = /* @__PURE__ */ j({
2728
2894
  __name: "Panel",
2729
2895
  props: {
2730
2896
  /**
@@ -2761,48 +2927,48 @@ const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
2761
2927
  }
2762
2928
  },
2763
2929
  emits: ["submit"],
2764
- setup(e, { emit: n }) {
2765
- const t = e, s = r(
2930
+ setup(e, { emit: l }) {
2931
+ const t = e, s = c(
2766
2932
  () => t.customPadding ? "" : "px-4 py-4 sm:px-6"
2767
- ), o = r(
2933
+ ), o = c(
2768
2934
  () => t.customPadding ? "" : "px-4 py-4 sm:p-6"
2769
- ), c = r(() => {
2770
- const d = ["rounded-lg"];
2771
- return t.noShadow || d.push("shadow"), t.ring && d.push("ring-outline-2 hover:ring-2"), t.panelClasses && d.push(t.panelClasses), d.join(" ");
2935
+ ), f = c(() => {
2936
+ const i = ["rounded-lg"];
2937
+ return t.noShadow || i.push("shadow"), t.ring && i.push("ring-outline-2 hover:ring-2"), t.panelClasses && i.push(t.panelClasses), i.join(" ");
2772
2938
  });
2773
- return (d, f) => (l(), m("div", oa, [
2774
- e.fancyGlow ? (l(), m("div", ra)) : I("", !0),
2775
- (l(), P(H(e.form ? "form" : "div"), {
2776
- class: k([
2939
+ return (i, r) => (a(), p("div", bn, [
2940
+ e.fancyGlow ? (a(), p("div", yn)) : I("", !0),
2941
+ (a(), L(G(e.form ? "form" : "div"), {
2942
+ class: x([
2777
2943
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
2778
- c.value
2944
+ f.value
2779
2945
  ]),
2780
- onSubmit: f[0] || (f[0] = (x) => n("submit", x))
2946
+ onSubmit: r[0] || (r[0] = (m) => l("submit", m))
2781
2947
  }, {
2782
2948
  default: _(() => [
2783
- d.$slots.header ? (l(), m("div", {
2949
+ i.$slots.header ? (a(), p("div", {
2784
2950
  key: 0,
2785
- class: k(s.value)
2951
+ class: x(s.value)
2786
2952
  }, [
2787
- z(d.$slots, "header")
2953
+ z(i.$slots, "header")
2788
2954
  ], 2)) : I("", !0),
2789
- i("div", {
2790
- class: k(["grow", o.value])
2955
+ d("div", {
2956
+ class: x(["grow", o.value])
2791
2957
  }, [
2792
- z(d.$slots, "default")
2958
+ z(i.$slots, "default")
2793
2959
  ], 2),
2794
- d.$slots.footer ? (l(), m("div", {
2960
+ i.$slots.footer ? (a(), p("div", {
2795
2961
  key: 1,
2796
- class: k(s.value)
2962
+ class: x(s.value)
2797
2963
  }, [
2798
- z(d.$slots, "footer")
2964
+ z(i.$slots, "footer")
2799
2965
  ], 2)) : I("", !0)
2800
2966
  ]),
2801
2967
  _: 3
2802
2968
  }, 40, ["class"]))
2803
2969
  ]));
2804
2970
  }
2805
- }), ia = { class: "flex-shrink-0" }, ua = /* @__PURE__ */ i("span", { class: "sr-only" }, "Dismiss", -1), Wa = /* @__PURE__ */ A({
2971
+ }), xn = { class: "flex-shrink-0" }, kn = /* @__PURE__ */ d("span", { class: "sr-only" }, "Dismiss", -1), la = /* @__PURE__ */ j({
2806
2972
  __name: "Alert",
2807
2973
  props: {
2808
2974
  color: { default: "success" },
@@ -2813,162 +2979,162 @@ const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
2813
2979
  },
2814
2980
  emits: ["dismiss"],
2815
2981
  setup(e) {
2816
- const n = e, t = be(), s = r(() => !!t.description), o = r(() => {
2817
- if (n.customIcon)
2818
- return n.customIcon;
2819
- switch (n.color) {
2982
+ const l = e, t = ye(), s = c(() => !!t.description), o = c(() => {
2983
+ if (l.customIcon)
2984
+ return l.customIcon;
2985
+ switch (l.color) {
2820
2986
  case "info":
2821
- return bt;
2987
+ return Ct;
2822
2988
  case "warning":
2823
- return xe;
2989
+ return ke;
2824
2990
  case "danger":
2825
- return vt;
2991
+ return wt;
2826
2992
  case "success":
2827
2993
  default:
2828
- return Re;
2994
+ return Fe;
2829
2995
  }
2830
- }), c = r(() => {
2831
- const u = [];
2832
- switch (n.size) {
2996
+ }), f = c(() => {
2997
+ const h = [];
2998
+ switch (l.size) {
2833
2999
  case "xs":
2834
- u.push("p-1");
3000
+ h.push("p-1");
2835
3001
  break;
2836
3002
  case "default":
2837
3003
  default:
2838
- u.push(s.value ? "p-4" : "p-2");
3004
+ h.push(s.value ? "p-4" : "p-2");
2839
3005
  break;
2840
3006
  }
2841
- switch (n.color) {
3007
+ switch (l.color) {
2842
3008
  case "success":
2843
- u.push("bg-success-lighter border-l-4 border-success");
3009
+ h.push("bg-success-lighter border-l-4 border-success");
2844
3010
  break;
2845
3011
  case "info":
2846
- u.push("bg-info-lighter border-l-4 border-info");
3012
+ h.push("bg-info-lighter border-l-4 border-info");
2847
3013
  break;
2848
3014
  case "danger":
2849
- u.push("bg-danger-lighter border-l-4 border-danger");
3015
+ h.push("bg-danger-lighter border-l-4 border-danger");
2850
3016
  break;
2851
3017
  case "warning":
2852
- u.push("bg-warning-lighter border-l-4 border-warning");
3018
+ h.push("bg-warning-lighter border-l-4 border-warning");
2853
3019
  break;
2854
3020
  }
2855
- return u.join(" ");
2856
- }), d = r(() => {
2857
- const u = [];
3021
+ return h.join(" ");
3022
+ }), i = c(() => {
3023
+ const h = [];
2858
3024
  if (s.value)
2859
- u.push("");
3025
+ h.push("");
2860
3026
  else
2861
- switch (u.push("items-center"), n.size) {
3027
+ switch (h.push("items-center"), l.size) {
2862
3028
  case "xs":
2863
- u.push("space-x-1");
3029
+ h.push("space-x-1");
2864
3030
  break;
2865
3031
  case "default":
2866
3032
  default:
2867
- u.push("space-x-2");
3033
+ h.push("space-x-2");
2868
3034
  break;
2869
3035
  }
2870
- return u.join(" ");
2871
- }), f = r(() => {
2872
- const u = ["grow"];
2873
- switch (s.value || u.push("flex items-center space-x-2"), n.size) {
3036
+ return h.join(" ");
3037
+ }), r = c(() => {
3038
+ const h = ["grow"];
3039
+ switch (s.value || h.push("flex items-center space-x-2"), l.size) {
2874
3040
  case "xs":
2875
- u.push("ml-1");
3041
+ h.push("ml-1");
2876
3042
  break;
2877
3043
  case "default":
2878
3044
  default:
2879
- u.push("ml-3");
3045
+ h.push("ml-3");
2880
3046
  break;
2881
3047
  }
2882
- return u.join(" ");
2883
- }), x = r(() => {
2884
- const u = [];
2885
- switch (n.size) {
3048
+ return h.join(" ");
3049
+ }), m = c(() => {
3050
+ const h = [];
3051
+ switch (l.size) {
2886
3052
  case "xs":
2887
- u.push("text-xs");
3053
+ h.push("text-xs");
2888
3054
  break;
2889
3055
  case "default":
2890
3056
  default:
2891
- u.push("mt-2 text-sm");
3057
+ h.push("mt-2 text-sm");
2892
3058
  break;
2893
3059
  }
2894
- return u.join(" ");
2895
- }), p = r(() => {
2896
- var v;
2897
- const u = ["flex"];
2898
- s.value || u.push("grow justify-end");
2899
- const j = s.value && ((v = n.actions) == null ? void 0 : v.length);
2900
- switch (n.size) {
3060
+ return h.join(" ");
3061
+ }), u = c(() => {
3062
+ var b;
3063
+ const h = ["flex"];
3064
+ s.value || h.push("grow justify-end");
3065
+ const P = s.value && ((b = l.actions) == null ? void 0 : b.length);
3066
+ switch (l.size) {
2901
3067
  case "xs":
2902
- u.push("space-x-1"), j && u.push("mt-1");
3068
+ h.push("space-x-1"), P && h.push("mt-1");
2903
3069
  break;
2904
3070
  case "default":
2905
3071
  default:
2906
- u.push("space-x-2"), j && u.push("mt-4");
3072
+ h.push("space-x-2"), P && h.push("mt-4");
2907
3073
  break;
2908
3074
  }
2909
- return u.join(" ");
2910
- }), b = r(() => {
2911
- const u = [];
2912
- switch (n.color) {
3075
+ return h.join(" ");
3076
+ }), y = c(() => {
3077
+ const h = [];
3078
+ switch (l.color) {
2913
3079
  case "success":
2914
- u.push("text-success-darker");
3080
+ h.push("text-success-darker");
2915
3081
  break;
2916
3082
  case "info":
2917
- u.push("text-info-darker");
3083
+ h.push("text-info-darker");
2918
3084
  break;
2919
3085
  case "danger":
2920
- u.push("text-danger-darker");
3086
+ h.push("text-danger-darker");
2921
3087
  break;
2922
3088
  case "warning":
2923
- u.push("text-warning-darker");
3089
+ h.push("text-warning-darker");
2924
3090
  break;
2925
3091
  }
2926
- return u.join(" ");
2927
- }), y = r(() => {
2928
- const u = [];
2929
- switch (n.size) {
3092
+ return h.join(" ");
3093
+ }), k = c(() => {
3094
+ const h = [];
3095
+ switch (l.size) {
2930
3096
  case "xs":
2931
- u.push("h-4 w-4"), u.push(s.value ? "mt-0.5" : "");
3097
+ h.push("h-4 w-4"), h.push(s.value ? "mt-0.5" : "");
2932
3098
  break;
2933
3099
  case "default":
2934
3100
  default:
2935
- u.push("h-5 w-5");
3101
+ h.push("h-5 w-5");
2936
3102
  break;
2937
3103
  }
2938
- switch (n.color) {
3104
+ switch (l.color) {
2939
3105
  case "success":
2940
- u.push("text-success");
3106
+ h.push("text-success");
2941
3107
  break;
2942
3108
  case "info":
2943
- u.push("text-info");
3109
+ h.push("text-info");
2944
3110
  break;
2945
3111
  case "danger":
2946
- u.push("text-danger");
3112
+ h.push("text-danger");
2947
3113
  break;
2948
3114
  case "warning":
2949
- u.push("text-warning");
3115
+ h.push("text-warning");
2950
3116
  break;
2951
3117
  }
2952
- return u.join(" ");
2953
- }), h = r(() => {
2954
- const u = [];
2955
- switch (n.color) {
3118
+ return h.join(" ");
3119
+ }), g = c(() => {
3120
+ const h = [];
3121
+ switch (l.color) {
2956
3122
  case "success":
2957
- u.push("bg-success-lighter ring-success");
3123
+ h.push("bg-success-lighter ring-success");
2958
3124
  break;
2959
3125
  case "info":
2960
- u.push("bg-info-lighter ring-info");
3126
+ h.push("bg-info-lighter ring-info");
2961
3127
  break;
2962
3128
  case "danger":
2963
- u.push("bg-danger-lighter ring-danger");
3129
+ h.push("bg-danger-lighter ring-danger");
2964
3130
  break;
2965
3131
  case "warning":
2966
- u.push("bg-warning-lighter ring-warning");
3132
+ h.push("bg-warning-lighter ring-warning");
2967
3133
  break;
2968
3134
  }
2969
- return u.join(" ");
2970
- }), C = r(() => {
2971
- switch (n.size) {
3135
+ return h.join(" ");
3136
+ }), w = c(() => {
3137
+ switch (l.size) {
2972
3138
  case "xs":
2973
3139
  return "xs";
2974
3140
  case "default":
@@ -2976,65 +3142,65 @@ const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
2976
3142
  return "sm";
2977
3143
  }
2978
3144
  });
2979
- return (u, j) => (l(), m("div", {
2980
- class: k(["rounded-md", [c.value, b.value]])
3145
+ return (h, P) => (a(), p("div", {
3146
+ class: x(["rounded-md", [f.value, y.value]])
2981
3147
  }, [
2982
- i("div", {
2983
- class: k(["flex", d.value])
3148
+ d("div", {
3149
+ class: x(["flex", i.value])
2984
3150
  }, [
2985
- i("div", ia, [
2986
- (l(), P(H(o.value), {
2987
- class: k(y.value),
3151
+ d("div", xn, [
3152
+ (a(), L(G(o.value), {
3153
+ class: x(k.value),
2988
3154
  "aria-hidden": "true"
2989
3155
  }, null, 8, ["class"]))
2990
3156
  ]),
2991
- i("div", {
2992
- class: k(f.value)
3157
+ d("div", {
3158
+ class: x(r.value)
2993
3159
  }, [
2994
- i("h3", {
2995
- class: k(["text-sm", [s.value ? "font-medium" : ""]])
3160
+ d("h3", {
3161
+ class: x(["text-sm", [s.value ? "font-medium" : ""]])
2996
3162
  }, [
2997
- z(u.$slots, "title", {}, () => [
2998
- M("Title")
3163
+ z(h.$slots, "title", {}, () => [
3164
+ A("Title")
2999
3165
  ])
3000
3166
  ], 2),
3001
- s.value ? (l(), m("div", {
3167
+ s.value ? (a(), p("div", {
3002
3168
  key: 0,
3003
- class: k(x.value)
3169
+ class: x(m.value)
3004
3170
  }, [
3005
- z(u.$slots, "description", {}, () => [
3006
- M(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
3171
+ z(h.$slots, "description", {}, () => [
3172
+ A(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
3007
3173
  ])
3008
3174
  ], 2)) : I("", !0),
3009
- i("div", {
3010
- class: k(p.value)
3175
+ d("div", {
3176
+ class: x(u.value)
3011
3177
  }, [
3012
- (l(!0), m(W, null, G(e.actions || [], (v, $) => (l(), P(re, {
3178
+ (a(!0), p(T, null, U(e.actions || [], (b, $) => (a(), L(ee, {
3013
3179
  key: $,
3014
3180
  color: e.color,
3015
- size: C.value,
3016
- to: v.url,
3017
- external: v.externalUrl || !1,
3018
- onClick: (S) => v.onClick || a(Ye)
3181
+ size: w.value,
3182
+ to: b.url,
3183
+ external: b.externalUrl || !1,
3184
+ onClick: (S) => b.onClick || n(at)
3019
3185
  }, {
3020
3186
  default: _(() => [
3021
- M(B(v.title), 1)
3187
+ A(B(b.title), 1)
3022
3188
  ]),
3023
3189
  _: 2
3024
3190
  }, 1032, ["color", "size", "to", "external", "onClick"]))), 128))
3025
3191
  ], 2)
3026
3192
  ], 2),
3027
- e.withDismiss ? (l(), m("div", {
3193
+ e.withDismiss ? (a(), p("div", {
3028
3194
  key: 0,
3029
- class: k(["flex", [s.value ? "items-start" : "items-center"]])
3195
+ class: x(["flex", [s.value ? "items-start" : "items-center"]])
3030
3196
  }, [
3031
- i("button", {
3197
+ d("button", {
3032
3198
  type: "button",
3033
- class: k(["inline-flex rounded-md focus:outline-none focus:ring-2", h.value]),
3034
- onClick: j[0] || (j[0] = (v) => u.$emit("dismiss"))
3199
+ class: x(["inline-flex rounded-md focus:outline-none focus:ring-2", g.value]),
3200
+ onClick: P[0] || (P[0] = (b) => h.$emit("dismiss"))
3035
3201
  }, [
3036
- ua,
3037
- L(a(ue), {
3202
+ kn,
3203
+ V(n(fe), {
3038
3204
  class: "h-5 w-5",
3039
3205
  "aria-hidden": "true"
3040
3206
  })
@@ -3044,52 +3210,56 @@ const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
3044
3210
  ], 2));
3045
3211
  }
3046
3212
  });
3047
- function Ua(e) {
3048
- var u, j;
3049
- 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 ? () => {
3050
- const v = n();
3051
- return p(`debugging: '${f.name}' read`, v, x()), v;
3052
- } : n, y = f && !f.readsOnly ? (v) => (p(`debugging: '${f.name}' written to`, v, x()), o(v)) : o, h = c ? St(b, t, s) : r(b), C = r(() => h.value);
3053
- return C.update = y, C;
3213
+ function na(e) {
3214
+ var h, P;
3215
+ 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 ? () => {
3216
+ const b = l();
3217
+ return u(`debugging: '${r.name}' read`, b, m()), b;
3218
+ } : 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);
3219
+ return w.update = k, w;
3054
3220
  }
3055
3221
  export {
3056
- Wa as CommonAlert,
3057
- as as CommonBadge,
3058
- Ue as CommonLoadingBar,
3059
- $a as CommonStepsBullet,
3060
- wa as CommonStepsNumber,
3061
- qt as CommonTextLink,
3062
- re as FormButton,
3063
- Sa as FormCardButton,
3064
- Ia as FormCheckbox,
3065
- jn as FormSelectBase,
3066
- La as FormSelectSourceApps,
3067
- Ba as FormTextArea,
3068
- _a as FormTextInput,
3069
- Ca as GlobalToastRenderer,
3222
+ la as CommonAlert,
3223
+ We as CommonBadge,
3224
+ Xe as CommonLoadingBar,
3225
+ zn as CommonStepsBullet,
3226
+ Mn as CommonStepsNumber,
3227
+ Jt as CommonTextLink,
3228
+ ee as FormButton,
3229
+ Rn as FormCardButton,
3230
+ Dn as FormCheckbox,
3231
+ Wn as FormSelectBadges,
3232
+ Ne as FormSelectBase,
3233
+ Un as FormSelectSourceApps,
3234
+ qn as FormSwitch,
3235
+ Tn as FormTextArea,
3236
+ Fn as FormTextInput,
3237
+ An as GlobalToastRenderer,
3070
3238
  J as GridListToggleValue,
3071
- me as HorizontalDirection,
3072
- Fa as InfiniteLoading,
3073
- Aa as LayoutDialog,
3074
- Ma as LayoutDisclosure,
3075
- za as LayoutGridListToggle,
3076
- Ra as LayoutMenu,
3077
- Ea as LayoutPanel,
3078
- Ta as LayoutTabs,
3079
- se as ModifierKeys,
3080
- Vn as SourceAppBadge,
3081
- te as TailwindBreakpoints,
3082
- Xn as ThrottleOrDebounce,
3083
- ee as ToastNotificationType,
3084
- Pa as ValidationHelpers,
3085
- he as clientOs,
3086
- ja as getKeyboardShortcutTitle,
3087
- Va as onKeyboardShortcut,
3088
- Oa as useFormCheckboxModel,
3089
- dn as useFormSelectChildInternals,
3090
- Da as useOnBeforeWindowUnload,
3091
- Jn as useResponsiveHorizontalDirectionCalculation,
3092
- Nn as useWindowResizeHandler,
3093
- cn as useWrappingContainerHiddenCount,
3094
- Ua as writableAsyncComputed
3239
+ ve as HorizontalDirection,
3240
+ ta as InfiniteLoading,
3241
+ Xn as LayoutDialog,
3242
+ Nn as LayoutDisclosure,
3243
+ Jn as LayoutGridListToggle,
3244
+ Yn as LayoutMenu,
3245
+ sa as LayoutPanel,
3246
+ ea as LayoutTable,
3247
+ Zn as LayoutTabs,
3248
+ ne as ModifierKeys,
3249
+ Ml as SourceAppBadge,
3250
+ le as TailwindBreakpoints,
3251
+ en as ThrottleOrDebounce,
3252
+ se as ToastNotificationType,
3253
+ En as ValidationHelpers,
3254
+ ge as clientOs,
3255
+ Hn as getKeyboardShortcutTitle,
3256
+ Gn as onKeyboardShortcut,
3257
+ Kn as useFormCheckboxModel,
3258
+ Ke as useFormSelectChildInternals,
3259
+ Qn as useOnBeforeWindowUnload,
3260
+ sn as useResponsiveHorizontalDirectionCalculation,
3261
+ tn as useWindowResizeHandler,
3262
+ ml as useWrappingContainerHiddenCount,
3263
+ na as writableAsyncComputed
3095
3264
  };
3265
+ //# sourceMappingURL=lib.js.map