@aerogel/core 0.1.0 → 0.1.1-next.1a964fb10cbea49d0eed8de0623c9b71ce8442f4

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.
@@ -1,38 +1,38 @@
1
- var kt = Object.defineProperty;
2
- var St = (t, s, e) => s in t ? kt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
- var _ = (t, s, e) => St(t, typeof s != "symbol" ? s + "" : s, e);
4
- import { markRaw as E, Comment as Tt, Text as Mt, Static as Ht, inject as X, reactive as pe, nextTick as Oe, unref as o, watchEffect as Y, defineComponent as g, computed as c, createBlock as h, openBlock as u, mergeProps as H, withCtx as f, renderSlot as w, createPropsRestProxy as N, onUnmounted as ge, ref as U, readonly as ve, useAttrs as Ne, onMounted as Et, watch as Me, toRaw as Vt, createVNode as p, normalizeProps as ne, guardReactiveProps as ae, createTextVNode as I, toDisplayString as x, normalizeClass as k, createElementBlock as b, Fragment as D, renderList as F, provide as le, resolveDynamicComponent as W, useSlots as He, createCommentVNode as T, createElementVNode as y, h as Lt, toRef as Re, useTemplateRef as G, withModifiers as We, withDirectives as Ke, vModelCheckbox as It, normalizeStyle as qt, resolveComponent as zt, createApp as Rt, vModelText as Pt } from "vue";
5
- import { JSError as be, stringToSlug as At, tap as ee, MagicObject as Qe, PromisedValue as K, Storage as O, objectOnly as oe, arrayFrom as Je, isEmpty as xe, objectDeepClone as Dt, fail as Q, facade as te, arrayRemove as Se, getEnv as jt, updateLocationQueryParameters as Bt, forever as Ft, toString as B, isDevelopment as J, isTesting as Ee, after as ue, uuid as re, required as Ut, isObject as ce, objectWithoutEmpty as Ze, stringMatchAll as Xe, objectWithout as Ot, noop as Nt, debounce as Wt, value as Kt, isInstanceOf as Pe, stringExcerpt as Qt, arraySorted as Jt, ListenersManager as Zt, toError as Xt, round as Yt } from "@noeldemartin/utils";
1
+ var St = Object.defineProperty;
2
+ var Tt = (t, s, e) => s in t ? St(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
+ var _ = (t, s, e) => Tt(t, typeof s != "symbol" ? s + "" : s, e);
4
+ import { markRaw as E, Comment as Mt, Text as Ht, Static as Et, inject as X, reactive as pe, unref as l, onUnmounted as ge, ref as U, computed as c, readonly as ve, nextTick as Oe, useAttrs as Ne, onMounted as Vt, watch as Me, toRaw as Lt, customRef as It, watchEffect as Y, defineComponent as g, createBlock as h, openBlock as u, mergeProps as H, withCtx as f, renderSlot as w, createPropsRestProxy as W, createVNode as p, normalizeProps as ne, guardReactiveProps as ae, createTextVNode as I, toDisplayString as x, normalizeClass as k, createElementBlock as b, Fragment as D, renderList as F, provide as le, resolveDynamicComponent as K, useSlots as He, createCommentVNode as T, createElementVNode as y, h as qt, toRef as Re, useTemplateRef as G, withModifiers as We, withDirectives as Ke, vModelCheckbox as zt, normalizeStyle as Rt, resolveComponent as At, createApp as Pt, vModelText as Dt } from "vue";
5
+ import { JSError as be, stringToSlug as jt, tap as ee, MagicObject as Qe, PromisedValue as Q, Storage as O, objectOnly as oe, arrayFrom as Je, isEmpty as xe, objectDeepClone as Bt, fail as N, facade as te, arrayRemove as Se, getEnv as Ft, updateLocationQueryParameters as Ut, forever as Ot, toString as B, objectWithout as Nt, noop as Wt, debounce as Kt, stringMatchAll as Ze, isDevelopment as J, isTesting as Ee, after as ue, uuid as re, required as Qt, isObject as ce, objectWithoutEmpty as Xe, value as Jt, isInstanceOf as Ae, stringExcerpt as Zt, arraySorted as Xt, ListenersManager as Yt, toError as Gt, round as es } from "@noeldemartin/utils";
6
6
  import j from "virtual:aerogel";
7
- import { createPinia as Gt, setActivePinia as es, defineStore as ts } from "pinia";
8
- import ss from "dompurify";
9
- import { marked as rs, Renderer as Ae } from "marked";
10
- import ns from "clsx";
11
- import { cva as as } from "class-variance-authority";
12
- import { twMerge as ls } from "tailwind-merge";
13
- import { Primitive as os, SelectValue as De, SelectTrigger as is, SelectIcon as us, SelectItem as cs, SelectItemText as ds, SelectPortal as ps, SelectContent as ms, SelectViewport as fs, SelectRoot as hs, Label as gs, useForwardExpose as Ve, SwitchRoot as vs, SwitchThumb as bs, DialogRoot as ys, DialogPortal as ws, DialogContent as $s, DialogDescription as _s, DialogOverlay as xs, DialogTitle as Cs, ToastClose as ks, ToastRoot as Ss, ToastProvider as Ts, ToastViewport as Ms, DropdownMenuItem as Hs, DropdownMenuContent as Es, DropdownMenuRoot as Vs, DropdownMenuTrigger as Ls, DropdownMenuPortal as Is } from "reka-ui";
7
+ import { createPinia as ts, setActivePinia as ss, defineStore as rs } from "pinia";
8
+ import ns from "dompurify";
9
+ import { marked as as, Renderer as Pe } from "marked";
10
+ import ls from "clsx";
11
+ import { cva as os } from "class-variance-authority";
12
+ import { twMerge as is } from "tailwind-merge";
13
+ import { Primitive as us, SelectValue as De, SelectTrigger as cs, SelectIcon as ds, SelectItem as ps, SelectItemText as ms, SelectPortal as fs, SelectContent as hs, SelectViewport as gs, SelectRoot as vs, Label as bs, useForwardExpose as Ve, SwitchRoot as ys, SwitchThumb as ws, DialogRoot as $s, DialogPortal as _s, DialogContent as xs, DialogDescription as Cs, DialogOverlay as ks, DialogTitle as Ss, ToastClose as Ts, ToastRoot as Ms, ToastProvider as Hs, ToastViewport as Es, DropdownMenuItem as Vs, DropdownMenuContent as Ls, DropdownMenuRoot as Is, DropdownMenuTrigger as qs, DropdownMenuPortal as zs } from "reka-ui";
14
14
  class Te extends be {
15
15
  constructor(s, e) {
16
16
  super(`Service '${s}' failed booting`, { cause: e });
17
17
  }
18
18
  }
19
- function qs() {
20
- return j.namespace ?? At(j.name);
19
+ function Rs() {
20
+ return j.namespace ?? jt(j.name);
21
21
  }
22
22
  let Le = null;
23
23
  function Ye() {
24
- return Le ?? zs();
24
+ return Le ?? As();
25
25
  }
26
- function zs() {
27
- return ee(Gt(), (t) => {
28
- Le = t, es(t);
26
+ function As() {
27
+ return ee(ts(), (t) => {
28
+ Le = t, ss(t);
29
29
  });
30
30
  }
31
- function Rs() {
31
+ function Ps() {
32
32
  return Le ?? Ye();
33
33
  }
34
- function Ps(t, s) {
35
- return Ye(), ts(t, s)();
34
+ function Ds(t, s) {
35
+ return Ye(), rs(t, s)();
36
36
  }
37
37
  function ye(t) {
38
38
  var s;
@@ -82,7 +82,7 @@ let we = (ke = class extends Qe {
82
82
  _(this, "_watchers");
83
83
  _(this, "_store");
84
84
  const e = this.getComputedStateDefinition();
85
- this._name = this.getName() ?? new.target.name, this._booted = new K(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && Ps(this._name, {
85
+ this._name = this.getName() ?? new.target.name, this._booted = new Q(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && Ds(this._name, {
86
86
  state: () => this.getInitialState(),
87
87
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
88
88
  getters: e
@@ -132,7 +132,7 @@ let we = (ke = class extends Qe {
132
132
  this.setState({ [e]: r });
133
133
  }
134
134
  get storageKey() {
135
- return `${qs()}:${this._name}`;
135
+ return `${Rs()}:${this._name}`;
136
136
  }
137
137
  onStateUpdated(e, r) {
138
138
  const n = oe(e, this.static("persist"));
@@ -146,7 +146,7 @@ let we = (ke = class extends Qe {
146
146
  const r = O.get(this.storageKey);
147
147
  r && O.set(this.storageKey, {
148
148
  ...r,
149
- ...this.serializePersistedState(Dt(e))
149
+ ...this.serializePersistedState(Bt(e))
150
150
  });
151
151
  }
152
152
  usesStore() {
@@ -186,15 +186,15 @@ let we = (ke = class extends Qe {
186
186
  }
187
187
  }
188
188
  requireStore() {
189
- return this._store ? this._store : Q(`Failed getting '${this._name}' store`);
189
+ return this._store ? this._store : N(`Failed getting '${this._name}' store`);
190
190
  }
191
191
  }, _(ke, "persist", []), ke);
192
- const ll = {
192
+ const il = {
193
193
  Low: -256,
194
194
  Default: 0,
195
195
  High: 256
196
196
  };
197
- class As extends we {
197
+ class js extends we {
198
198
  constructor() {
199
199
  super(...arguments);
200
200
  _(this, "listeners", {});
@@ -209,7 +209,7 @@ class As extends we {
209
209
  var a;
210
210
  const n = this.listeners[e] ?? { priorities: [], handlers: {} };
211
211
  for (const i of n.priorities)
212
- await Promise.all(((a = n.handlers[i]) == null ? void 0 : a.map((l) => l(r))) ?? []);
212
+ await Promise.all(((a = n.handlers[i]) == null ? void 0 : a.map((o) => o(r))) ?? []);
213
213
  }
214
214
  // prettier-ignore
215
215
  /* eslint-enable max-len */
@@ -221,11 +221,11 @@ class As extends we {
221
221
  /* eslint-enable max-len */
222
222
  once(e, r, n) {
223
223
  let a = null;
224
- const i = typeof r == "function" ? {} : r, l = typeof r == "function" ? r : n;
224
+ const i = typeof r == "function" ? {} : r, o = typeof r == "function" ? r : n;
225
225
  return ee(
226
226
  () => a && this.off(e, a),
227
227
  (d) => {
228
- a = (...v) => (d(), l(...v)), this.registerListener(e, i, l);
228
+ a = (...v) => (d(), o(...v)), this.registerListener(e, i, o);
229
229
  }
230
230
  );
231
231
  }
@@ -235,28 +235,28 @@ class As extends we {
235
235
  if (!n)
236
236
  return;
237
237
  const a = [...n.priorities];
238
- for (const l of a)
239
- Se(n.handlers[l] ?? [], r), ((i = n.handlers[l]) == null ? void 0 : i.length) === 0 && (delete n.handlers[l], Se(n.priorities, l));
238
+ for (const o of a)
239
+ Se(n.handlers[o] ?? [], r), ((i = n.handlers[o]) == null ? void 0 : i.length) === 0 && (delete n.handlers[o], Se(n.priorities, o));
240
240
  n.priorities.length === 0 && delete this.listeners[e];
241
241
  }
242
242
  registerListener(e, r, n) {
243
243
  var d, v, $;
244
244
  const a = r.priority ?? 0;
245
245
  e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
246
- const i = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? Q(`priorities missing for event '${e}'`), l = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? Q(`handlers missing for event '${e}'`);
247
- i.includes(a) || (i.push(a), i.sort((m, C) => C - m), l[a] = []), ($ = l[a]) == null || $.push(n);
246
+ const i = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? N(`priorities missing for event '${e}'`), o = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? N(`handlers missing for event '${e}'`);
247
+ i.includes(a) || (i.push(a), i.sort((m, C) => C - m), o[a] = []), ($ = o[a]) == null || $.push(n);
248
248
  }
249
249
  }
250
- const R = te(As);
251
- function ol(t) {
250
+ const R = te(js);
251
+ function ul(t) {
252
252
  return t;
253
253
  }
254
- const Ds = ye({
254
+ const Bs = ye({
255
255
  name: "app",
256
256
  initialState: {
257
257
  plugins: {},
258
258
  instance: null,
259
- environment: jt() ?? "development",
259
+ environment: Ft() ?? "development",
260
260
  version: j.version,
261
261
  sourceUrl: j.sourceUrl,
262
262
  settings: []
@@ -273,12 +273,12 @@ const Ds = ye({
273
273
  }
274
274
  }
275
275
  });
276
- class js extends Ds {
276
+ class Fs extends Bs {
277
277
  constructor() {
278
278
  super(...arguments);
279
279
  _(this, "name", j.name);
280
- _(this, "ready", new K());
281
- _(this, "mounted", new K());
280
+ _(this, "ready", new Q());
281
+ _(this, "mounted", new Q());
282
282
  }
283
283
  isReady() {
284
284
  return this.ready.isResolved();
@@ -293,7 +293,7 @@ class js extends Ds {
293
293
  return await this.ready.then(e);
294
294
  }
295
295
  async reload(e) {
296
- e && Bt(e), location.reload(), await Ft();
296
+ e && Ut(e), location.reload(), await Ot();
297
297
  }
298
298
  plugin(e) {
299
299
  return this.plugins[e] ?? null;
@@ -306,12 +306,12 @@ class js extends Ds {
306
306
  R.once("application-ready", () => this.ready.resolve()), R.once("application-mounted", () => this.mounted.resolve());
307
307
  }
308
308
  }
309
- const A = te(js);
310
- function il(t) {
309
+ const P = te(Fs);
310
+ function cl(t) {
311
311
  return t;
312
312
  }
313
- async function Bs(t, ...s) {
314
- A.setState(
313
+ async function Us(t, ...s) {
314
+ P.setState(
315
315
  "plugins",
316
316
  t.reduce(
317
317
  (e, r) => (r.name && (e[r.name] = r), e),
@@ -319,28 +319,28 @@ async function Bs(t, ...s) {
319
319
  )
320
320
  ), await Promise.all(t.map((e) => e.install(...s)) ?? []);
321
321
  }
322
- function Fs(t) {
322
+ function Os(t) {
323
323
  return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${B(r)}"`, "");
324
324
  }
325
- function ul(t) {
325
+ function dl(t) {
326
326
  return t;
327
327
  }
328
- function Us(t) {
328
+ function Ns(t) {
329
329
  const s = X(t);
330
330
  return s ? pe(s) : void 0;
331
331
  }
332
332
  function V(t, s) {
333
- return Us(t) ?? Q(s ?? `Could not resolve '${B(t)}' injection key`);
333
+ return Ns(t) ?? N(s ?? `Could not resolve '${B(t)}' injection key`);
334
334
  }
335
- function Os(t, s) {
336
- return X(t) ?? Q(s ?? `Could not resolve '${B(t)}' injection key`);
335
+ function Ws(t, s) {
336
+ return X(t) ?? N(s ?? `Could not resolve '${B(t)}' injection key`);
337
337
  }
338
338
  function Ge(t) {
339
- return typeof t == "string" ? t : t.type === Tt ? "" : t.type === Mt || t.type === Ht ? t.children : t.type === "br" ? `
339
+ return typeof t == "string" ? t : t.type === Mt ? "" : t.type === Ht || t.type === Et ? t.children : t.type === "br" ? `
340
340
 
341
- ` : `<${t.type} ${Fs(t)}>${Array.from(t.children).map(Ge).join("")}</${t.type}>`;
341
+ ` : `<${t.type} ${Os(t)}>${Array.from(t.children).map(Ge).join("")}</${t.type}>`;
342
342
  }
343
- const Ce = /* @__PURE__ */ new WeakMap(), Ns = {
343
+ const Ce = /* @__PURE__ */ new WeakMap(), Ks = {
344
344
  mounted(t, { value: s, modifiers: e }) {
345
345
  const r = typeof s == "function" ? s : null, n = () => {
346
346
  const a = t.getBoundingClientRect();
@@ -352,19 +352,265 @@ const Ce = /* @__PURE__ */ new WeakMap(), Ns = {
352
352
  var s;
353
353
  (s = Ce.get(t)) == null || s.unobserve(t), Ce.delete(t);
354
354
  }
355
- }, Ws = {
356
- measure: Ns
357
- }, Ks = {
355
+ };
356
+ function et(t, s) {
357
+ const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, i = os(n, a);
358
+ return M(i(r), l(e));
359
+ }
360
+ function M(...t) {
361
+ return is(ls(t));
362
+ }
363
+ function tt(t, s) {
364
+ const e = R.on(t, s);
365
+ ge(() => e());
366
+ }
367
+ const Qs = {
368
+ required: (t) => t ? void 0 : "required"
369
+ };
370
+ function Js(t, s) {
371
+ var e;
372
+ if (t == null)
373
+ return !0;
374
+ switch (s.type) {
375
+ case "string":
376
+ return typeof t == "string";
377
+ case "enum":
378
+ return !!((e = s.values) != null && e.includes(t));
379
+ case "number":
380
+ return typeof t == "number";
381
+ case "boolean":
382
+ return typeof t == "boolean";
383
+ case "date":
384
+ return t instanceof Date;
385
+ case "object":
386
+ return typeof t == "object";
387
+ }
388
+ }
389
+ const de = { ...Qs };
390
+ function pl(t, s) {
391
+ de[t] = s;
392
+ }
393
+ function Zs(t, s) {
394
+ return Js(t, s) ? [] : ["invalid_value"];
395
+ }
396
+ function Xs(t, s) {
397
+ var r;
398
+ const e = (r = de[s]) == null ? void 0 : r.call(de, t);
399
+ return e ? Je(e) : [];
400
+ }
401
+ const ml = Symbol(), je = /* @__PURE__ */ new WeakMap();
402
+ class Ys extends Qe {
403
+ constructor(e) {
404
+ super();
405
+ _(this, "errors");
406
+ _(this, "_fields");
407
+ _(this, "_data");
408
+ _(this, "_submitted");
409
+ _(this, "_errors");
410
+ _(this, "_listeners", {});
411
+ this._fields = e, this._submitted = U(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), je.set(
412
+ this,
413
+ c(() => !Object.values(this._errors).some((r) => r !== null))
414
+ ), this.errors = ve(this._errors);
415
+ }
416
+ get valid() {
417
+ var e;
418
+ return !!((e = je.get(this)) != null && e.value);
419
+ }
420
+ get submitted() {
421
+ return this._submitted.value;
422
+ }
423
+ setFieldValue(e, r) {
424
+ const n = this._fields[e] ?? N(`Trying to set undefined '${B(e)}' field`);
425
+ this._data[e] = n.type === "string" && (n.trim ?? !0) ? B(r).trim() : r, this._submitted.value && this.validate();
426
+ }
427
+ getFieldValue(e) {
428
+ return this._data[e];
429
+ }
430
+ getFieldRules(e) {
431
+ var r, n;
432
+ return ((n = (r = this._fields[e]) == null ? void 0 : r.rules) == null ? void 0 : n.split("|")) ?? [];
433
+ }
434
+ getFieldType(e) {
435
+ var r;
436
+ return ((r = this._fields[e]) == null ? void 0 : r.type) ?? null;
437
+ }
438
+ data() {
439
+ return { ...this._data };
440
+ }
441
+ validate() {
442
+ const e = Object.entries(this._fields).reduce(
443
+ (r, [n, a]) => (r[n] = this.getFieldErrors(n, a), r),
444
+ {}
445
+ );
446
+ return this.resetErrors(e), this.valid;
447
+ }
448
+ reset(e = {}) {
449
+ this._submitted.value = !1, e.keepData || this.resetData(), e.keepErrors || this.resetErrors();
450
+ }
451
+ submit() {
452
+ var r;
453
+ this._submitted.value = !0;
454
+ const e = this.validate();
455
+ return e && ((r = this._listeners.submit) == null || r.forEach((n) => n())), e;
456
+ }
457
+ on(e, r) {
458
+ var n, a;
459
+ return (n = this._listeners)[e] ?? (n[e] = []), (a = this._listeners[e]) == null || a.push(r), () => this.off(e, r);
460
+ }
461
+ off(e, r) {
462
+ Se(this._listeners[e] ?? [], r);
463
+ }
464
+ async focus(e) {
465
+ var r;
466
+ await Oe(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
467
+ }
468
+ __get(e) {
469
+ return e in this._fields ? this.getFieldValue(e) : super.__get(e);
470
+ }
471
+ __set(e, r) {
472
+ if (!(e in this._fields)) {
473
+ super.__set(e, r);
474
+ return;
475
+ }
476
+ this.setFieldValue(e, r);
477
+ }
478
+ getFieldErrors(e, r) {
479
+ var o;
480
+ const n = [], a = this._data[e], i = ((o = r.rules) == null ? void 0 : o.split("|")) ?? [];
481
+ n.push(...Zs(a, r));
482
+ for (const d of i)
483
+ d !== "required" && a == null || n.push(...Xs(a, d));
484
+ return n.length > 0 ? n : null;
485
+ }
486
+ getInitialData(e) {
487
+ if (this.static().isConjuring())
488
+ return {};
489
+ const r = Object.entries(e).reduce((n, [a, i]) => (n[a] = i.default ?? null, n), {});
490
+ return pe(r);
491
+ }
492
+ getInitialErrors(e) {
493
+ if (this.static().isConjuring())
494
+ return {};
495
+ const r = Object.keys(e).reduce((n, a) => (n[a] = null, n), {});
496
+ return pe(r);
497
+ }
498
+ resetData() {
499
+ for (const [e, r] of Object.entries(this._fields))
500
+ this._data[e] = r.default ?? null;
501
+ }
502
+ resetErrors(e) {
503
+ Object.keys(this._errors).forEach((r) => delete this._errors[r]), e && Object.assign(this._errors, e);
504
+ }
505
+ }
506
+ function st(t, s) {
507
+ const e = X("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
508
+ ge(() => r == null ? void 0 : r());
509
+ }
510
+ function rt(t) {
511
+ return new Ys(t);
512
+ }
513
+ function Ie() {
514
+ const t = Ne(), s = c(() => t.class);
515
+ return [c(() => Nt(t, "class")), s];
516
+ }
517
+ function fl(t) {
518
+ let s = Wt;
519
+ Vt(() => s = t()), ge(() => s());
520
+ }
521
+ function hl(t, s) {
522
+ const e = pe(O.get(t) ?? s);
523
+ return Me(e, () => O.set(t, Lt(e))), e;
524
+ }
525
+ function gl(t) {
526
+ let s = new Set(t), e, r;
527
+ const n = It((a, i) => (r = a, e = i, {
528
+ get: () => s,
529
+ set: () => N("Attempted to write read-only reactive set")
530
+ }));
531
+ return {
532
+ values() {
533
+ return r(), Array.from(n.value.values());
534
+ },
535
+ has(a) {
536
+ return r(), n.value.has(a);
537
+ },
538
+ add(a) {
539
+ e(), n.value.add(a);
540
+ },
541
+ delete(a) {
542
+ e(), n.value.delete(a);
543
+ },
544
+ clear() {
545
+ e(), n.value.clear();
546
+ },
547
+ reset(a) {
548
+ e(), s = new Set(a);
549
+ }
550
+ };
551
+ }
552
+ function vl(t) {
553
+ const s = U(), e = c(t);
554
+ return Me(e, async () => s.value = await e.value, { immediate: !0 }), s;
555
+ }
556
+ function bl(t, s) {
557
+ const e = s ? t : {}, r = s ?? t, n = U(e.initial ?? null), a = Kt((i) => n.value = i, e.delay ?? 300);
558
+ return Y(() => a(r())), n;
559
+ }
560
+ let ie = null;
561
+ function Gs() {
562
+ return ee(new Pe(), (t) => {
563
+ t.link = function(s) {
564
+ const e = Pe.prototype.link.apply(this, [s]);
565
+ return s.href.startsWith("#") ? e : e.replace("<a", '<a target="_blank"');
566
+ };
567
+ });
568
+ }
569
+ function er(t) {
570
+ const s = Ze(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
571
+ for (const [e, r, n] of s)
572
+ t = t.replace(e, `<button type="button" data-markdown-action="${r}">${n}</button>`);
573
+ return t;
574
+ }
575
+ function tr(t) {
576
+ const s = Ze(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
577
+ for (const [e, r, n] of s) {
578
+ const a = (ie == null ? void 0 : ie.resolve(r)) ?? r;
579
+ t = t.replace(e, `<a data-markdown-route="${r}" href="${a}">${n}</a>`);
580
+ }
581
+ return t;
582
+ }
583
+ function sr() {
584
+ return ie;
585
+ }
586
+ function yl(t) {
587
+ ie = t;
588
+ }
589
+ function rr(t) {
590
+ let s = as(t, { renderer: Gs(), async: !1 });
591
+ return s = nt(s), s = er(s), s = tr(s), s;
592
+ }
593
+ function nt(t) {
594
+ return ns.sanitize(t, { ADD_ATTR: ["target"] });
595
+ }
596
+ const nr = {
597
+ mounted(t, { value: s }) {
598
+ t.innerHTML = nt(s);
599
+ }
600
+ }, ar = {
601
+ measure: Ks,
602
+ "safe-html": nr
603
+ }, lr = {
358
604
  install(t, s) {
359
605
  const e = {
360
- ...Ws,
606
+ ...ar,
361
607
  ...s.directives
362
608
  };
363
609
  for (const [r, n] of Object.entries(e))
364
610
  t.directive(r, n);
365
611
  }
366
612
  };
367
- class Qs extends we {
613
+ class or extends we {
368
614
  constructor() {
369
615
  super(...arguments);
370
616
  _(this, "cache");
@@ -380,28 +626,28 @@ class Qs extends we {
380
626
  (await n.keys(e)).length !== 0 && await n.put(e, r);
381
627
  }
382
628
  async open() {
383
- return this.cache = this.cache ?? ee(new K(), (e) => {
629
+ return this.cache = this.cache ?? ee(new Q(), (e) => {
384
630
  caches.open("app").then((r) => e.resolve(r));
385
631
  });
386
632
  }
387
633
  }
388
- const cl = te(Qs);
389
- class Js extends we {
634
+ const wl = te(or);
635
+ class ir extends we {
390
636
  async purge() {
391
637
  await R.emit("purge-storage");
392
638
  }
393
639
  }
394
- const et = te(Js);
395
- function dl(t, s) {
640
+ const at = te(ir);
641
+ function $l(t, s) {
396
642
  return {
397
643
  ...t,
398
644
  ...oe(s, Object.keys(t))
399
645
  };
400
646
  }
401
- const Zs = {
402
- $app: A,
647
+ const ur = {
648
+ $app: P,
403
649
  $events: R,
404
- $storage: et
650
+ $storage: at
405
651
  };
406
652
  async function $e(t, s) {
407
653
  await Promise.all(
@@ -413,28 +659,28 @@ async function $e(t, s) {
413
659
  })
414
660
  ), Object.assign(t.config.globalProperties, s), (J() || Ee()) && Object.assign(globalThis, s);
415
661
  }
416
- const Xs = {
662
+ const cr = {
417
663
  async install(t, s) {
418
664
  var r;
419
665
  const e = {
420
- ...Zs,
666
+ ...ur,
421
667
  ...s.services
422
668
  };
423
- t.use(Rs()), (r = s.settings) == null || r.forEach((n) => A.addSetting(n)), await $e(t, e);
669
+ t.use(Ps()), (r = s.settings) == null || r.forEach((n) => P.addSetting(n)), await $e(t, e);
424
670
  }
425
- }, tt = 768, me = {
671
+ }, lt = 768, me = {
426
672
  Mobile: "mobile",
427
673
  Desktop: "desktop"
428
674
  };
429
- function st() {
430
- return globalThis.innerWidth > tt ? me.Desktop : me.Mobile;
675
+ function ot() {
676
+ return globalThis.innerWidth > lt ? me.Desktop : me.Mobile;
431
677
  }
432
- const Ys = ye({
678
+ const dr = ye({
433
679
  name: "ui",
434
680
  initialState: {
435
681
  modals: [],
436
682
  toasts: [],
437
- layout: st()
683
+ layout: ot()
438
684
  },
439
685
  computed: {
440
686
  desktop: ({ layout: t }) => t === me.Desktop,
@@ -442,7 +688,7 @@ const Ys = ye({
442
688
  openModals: ({ modals: t }) => t.filter(({ closing: s }) => !s)
443
689
  }
444
690
  });
445
- class Gs extends Ys {
691
+ class pr extends dr {
446
692
  constructor() {
447
693
  super(...arguments);
448
694
  _(this, "modalCallbacks", {});
@@ -455,7 +701,7 @@ class Gs extends Ys {
455
701
  return this.components[e] ?? null;
456
702
  }
457
703
  requireComponent(e) {
458
- return this.resolveComponent(e) ?? Q(`UI Component '${e}' is not defined!`);
704
+ return this.resolveComponent(e) ?? N(`UI Component '${e}' is not defined!`);
459
705
  }
460
706
  alert(e, r) {
461
707
  const n = () => typeof r != "string" ? { message: e } : {
@@ -476,7 +722,7 @@ class Gs extends Ys {
476
722
  title: e,
477
723
  message: r,
478
724
  required: !!(n != null && n.required)
479
- }, l = await this.modalForm(this.requireComponent("confirm-modal"), i), d = typeof l == "object" ? l[0] : l ?? !1, v = typeof l == "object" ? l[1] : Object.entries(i.checkboxes ?? {}).reduce(
725
+ }, o = await this.modalForm(this.requireComponent("confirm-modal"), i), d = typeof o == "object" ? o[0] : o ?? !1, v = typeof o == "object" ? o[1] : Object.entries(i.checkboxes ?? {}).reduce(
480
726
  ($, [m, { default: C }]) => ({
481
727
  [m]: C ?? !1,
482
728
  ...$
@@ -496,8 +742,8 @@ class Gs extends Ys {
496
742
  title: e,
497
743
  message: r,
498
744
  ...n ?? {}
499
- }, l = await this.modalForm(this.requireComponent("prompt-modal"), i());
500
- return (a && typeof l == "string" ? l == null ? void 0 : l.trim() : l) ?? null;
745
+ }, o = await this.modalForm(this.requireComponent("prompt-modal"), i());
746
+ return (a && typeof o == "string" ? o == null ? void 0 : o.trim() : o) ?? null;
501
747
  }
502
748
  async loading(e, r) {
503
749
  const n = (m) => typeof m == "function" ? Promise.resolve(m()) : m, a = () => {
@@ -511,17 +757,17 @@ class Gs extends Ys {
511
757
  const { delay: m, ...C } = e;
512
758
  return {
513
759
  props: C,
514
- delay: o(m),
760
+ delay: l(m),
515
761
  operationPromise: n(r)
516
762
  };
517
763
  };
518
764
  let i = !1;
519
- const { operationPromise: l, props: d, delay: v } = a();
520
- if (v && await Promise.race([ue({ ms: v }).then(() => i = !0), l]), v && !i)
521
- return l;
765
+ const { operationPromise: o, props: d, delay: v } = a();
766
+ if (v && await Promise.race([ue({ ms: v }).then(() => i = !0), o]), v && !i)
767
+ return o;
522
768
  const $ = await this.modal(this.requireComponent("loading-modal"), d);
523
769
  try {
524
- const m = await l;
770
+ const m = await o;
525
771
  return await ue({ ms: 500 }), m;
526
772
  } finally {
527
773
  await this.closeModal($.id);
@@ -543,14 +789,14 @@ class Gs extends Ys {
543
789
  component: E(e),
544
790
  beforeClose: new Promise((d) => a.willClose = d),
545
791
  afterClose: new Promise((d) => a.hasClosed = d)
546
- }, l = this.modals.concat(i);
547
- return this.modalCallbacks[i.id] = a, this.setState({ modals: l }), await Oe(), i;
792
+ }, o = this.modals.concat(i);
793
+ return this.modalCallbacks[i.id] = a, this.setState({ modals: o }), await Oe(), i;
548
794
  }
549
795
  async modalForm(e, r) {
550
796
  return await (await this.modal(e, r)).beforeClose;
551
797
  }
552
798
  async closeModal(e, r) {
553
- if (!A.isMounted()) {
799
+ if (!P.isMounted()) {
554
800
  await this.removeModal(e, r);
555
801
  return;
556
802
  }
@@ -558,7 +804,7 @@ class Gs extends Ys {
558
804
  }
559
805
  async closeAllModals() {
560
806
  for (; this.modals.length > 0; )
561
- await this.closeModal(Ut(this.modals[this.modals.length - 1]).id);
807
+ await this.closeModal(Qt(this.modals[this.modals.length - 1]).id);
562
808
  }
563
809
  async boot() {
564
810
  this.watchModalEvents(), this.watchMountedEvent(), this.watchViewportBreakpoints();
@@ -573,7 +819,7 @@ class Gs extends Ys {
573
819
  watchModalEvents() {
574
820
  R.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
575
821
  var a, i;
576
- const n = this.modals.find((l) => e === l.id);
822
+ const n = this.modals.find((o) => e === o.id);
577
823
  n && (n.closing = !0), (i = (a = this.modalCallbacks[e]) == null ? void 0 : a.willClose) == null || i.call(a, r);
578
824
  }), R.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
579
825
  await this.removeModal(e, r);
@@ -590,11 +836,11 @@ class Gs extends Ys {
590
836
  watchViewportBreakpoints() {
591
837
  if (!globalThis.matchMedia)
592
838
  return;
593
- globalThis.matchMedia(`(min-width: ${tt}px)`).addEventListener("change", () => this.setState({ layout: st() }));
839
+ globalThis.matchMedia(`(min-width: ${lt}px)`).addEventListener("change", () => this.setState({ layout: ot() }));
594
840
  }
595
841
  }
596
- const z = te(Gs);
597
- class er {
842
+ const z = te(pr);
843
+ class mr {
598
844
  constructor(s, e) {
599
845
  this.locale = s, this.fallbackLocale = e;
600
846
  }
@@ -620,7 +866,7 @@ class er {
620
866
  return J() && console.warn("Lang provider is missing"), e;
621
867
  }
622
868
  }
623
- const tr = ye({
869
+ const fr = ye({
624
870
  name: "lang",
625
871
  persist: ["locale", "fallbackLocale"],
626
872
  initialState: {
@@ -629,11 +875,11 @@ const tr = ye({
629
875
  fallbackLocale: "en"
630
876
  }
631
877
  });
632
- class sr extends tr {
878
+ class hr extends fr {
633
879
  constructor() {
634
880
  super();
635
881
  _(this, "provider");
636
- this.provider = new er(
882
+ this.provider = new mr(
637
883
  this.getState("locale") ?? this.getBrowserLocale(),
638
884
  this.getState("fallbackLocale")
639
885
  );
@@ -661,7 +907,7 @@ class sr extends tr {
661
907
  );
662
908
  }
663
909
  }
664
- const Z = te(sr), rt = Z.translate.bind(Z), S = Z.translateWithDefault.bind(Z), rr = ye({
910
+ const Z = te(hr), it = Z.translate.bind(Z), S = Z.translateWithDefault.bind(Z), gr = ye({
665
911
  name: "errors",
666
912
  initialState: {
667
913
  logs: [],
@@ -674,7 +920,7 @@ const Z = te(sr), rt = Z.translate.bind(Z), S = Z.translateWithDefault.bind(Z),
674
920
  hasStartupErrors: ({ startupErrors: t }) => t.length > 0
675
921
  }
676
922
  });
677
- class nr extends rr {
923
+ class vr extends gr {
678
924
  constructor() {
679
925
  super(...arguments);
680
926
  _(this, "forceReporting", !1);
@@ -698,7 +944,7 @@ class nr extends rr {
698
944
  async report(e, r) {
699
945
  if (await R.emit("error", { error: e, message: r }), Ee("unit") || (J() && this.logError(e), !this.enabled))
700
946
  throw e;
701
- if (!A.isMounted()) {
947
+ if (!P.isMounted()) {
702
948
  const i = await this.createStartupErrorReport(e);
703
949
  i && this.setState({ startupErrors: this.startupErrors.concat(i) });
704
950
  return;
@@ -750,7 +996,7 @@ class nr extends rr {
750
996
  return ce(e) && "title" in e;
751
997
  }
752
998
  async createErrorReport(e) {
753
- return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof be ? this.createErrorReportFromError(e) : ce(e) ? Ze({
999
+ return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof be ? this.createErrorReportFromError(e) : ce(e) ? Xe({
754
1000
  title: B(
755
1001
  e.name ?? e.title ?? S("errors.unknown", "Unknown Error")
756
1002
  ),
@@ -776,44 +1022,7 @@ class nr extends rr {
776
1022
  };
777
1023
  }
778
1024
  }
779
- const nt = te(nr);
780
- let ie = null;
781
- function ar() {
782
- return ee(new Ae(), (t) => {
783
- t.link = function(s) {
784
- const e = Ae.prototype.link.apply(this, [s]);
785
- return s.href.startsWith("#") ? e : e.replace("<a", '<a target="_blank"');
786
- };
787
- });
788
- }
789
- function lr(t) {
790
- const s = Xe(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
791
- for (const [e, r, n] of s)
792
- t = t.replace(e, `<button type="button" data-markdown-action="${r}">${n}</button>`);
793
- return t;
794
- }
795
- function or(t) {
796
- const s = Xe(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
797
- for (const [e, r, n] of s) {
798
- const a = (ie == null ? void 0 : ie.resolve(r)) ?? r;
799
- t = t.replace(e, `<a data-markdown-route="${r}" href="${a}">${n}</a>`);
800
- }
801
- return t;
802
- }
803
- function ir() {
804
- return ie;
805
- }
806
- function pl(t) {
807
- ie = t;
808
- }
809
- function ur(t) {
810
- let s = rs(t, { renderer: ar(), async: !1 });
811
- return s = cr(s), s = lr(s), s = or(s), s;
812
- }
813
- function cr(t) {
814
- return ss.sanitize(t, { ADD_ATTR: ["target"] });
815
- }
816
- const at = /* @__PURE__ */ g({
1025
+ const ut = te(vr), ct = /* @__PURE__ */ g({
817
1026
  __name: "HeadlessButton",
818
1027
  props: {
819
1028
  class: {},
@@ -831,7 +1040,7 @@ const at = /* @__PURE__ */ g({
831
1040
  setup(t) {
832
1041
  const s = c(() => t.as ? { as: t.as } : t.route ? {
833
1042
  as: z.resolveComponent("router-link") ?? "a",
834
- to: Ze({
1043
+ to: Xe({
835
1044
  name: t.route,
836
1045
  params: t.routeParams,
837
1046
  query: t.routeQuery
@@ -844,7 +1053,7 @@ const at = /* @__PURE__ */ g({
844
1053
  as: "button",
845
1054
  type: t.submit ? "submit" : "button"
846
1055
  });
847
- return (e, r) => (u(), h(o(os), H({
1056
+ return (e, r) => (u(), h(l(us), H({
848
1057
  class: t.class,
849
1058
  "as-child": e.asChild,
850
1059
  disabled: e.disabled
@@ -855,15 +1064,7 @@ const at = /* @__PURE__ */ g({
855
1064
  _: 3
856
1065
  }, 16, ["class", "as-child", "disabled"]));
857
1066
  }
858
- });
859
- function lt(t, s) {
860
- const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, i = as(n, a);
861
- return M(i(r), o(e));
862
- }
863
- function M(...t) {
864
- return ls(ns(t));
865
- }
866
- const q = /* @__PURE__ */ g({
1067
+ }), q = /* @__PURE__ */ g({
867
1068
  __name: "Button",
868
1069
  props: {
869
1070
  class: {},
@@ -879,7 +1080,7 @@ const q = /* @__PURE__ */ g({
879
1080
  as: {}
880
1081
  },
881
1082
  setup(t) {
882
- const s = N(t, ["class", "size", "variant", "disabled"]), e = c(() => lt(
1083
+ const s = W(t, ["class", "size", "variant", "disabled"]), e = c(() => et(
883
1084
  { baseClasses: t.class, variant: t.variant, size: t.size, disabled: t.disabled },
884
1085
  {
885
1086
  baseClasses: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
@@ -974,7 +1175,7 @@ const q = /* @__PURE__ */ g({
974
1175
  }
975
1176
  }
976
1177
  ));
977
- return (r, n) => (u(), h(at, H({
1178
+ return (r, n) => (u(), h(ct, H({
978
1179
  class: e.value,
979
1180
  disabled: r.disabled
980
1181
  }, s), {
@@ -985,221 +1186,51 @@ const q = /* @__PURE__ */ g({
985
1186
  }, 16, ["class", "disabled"]));
986
1187
  }
987
1188
  });
988
- function dr(t) {
1189
+ function br(t) {
989
1190
  return typeof t == "object" && t !== null && "label" in t;
990
1191
  }
991
- function ot(t, s) {
992
- const e = R.on(t, s);
993
- ge(() => e());
994
- }
995
- const pr = {
996
- required: (t) => t ? void 0 : "required"
997
- };
998
- function mr(t, s) {
999
- var e;
1000
- if (t == null)
1001
- return !0;
1002
- switch (s.type) {
1003
- case "string":
1004
- return typeof t == "string";
1005
- case "enum":
1006
- return !!((e = s.values) != null && e.includes(t));
1007
- case "number":
1008
- return typeof t == "number";
1009
- case "boolean":
1010
- return typeof t == "boolean";
1011
- case "date":
1012
- return t instanceof Date;
1013
- case "object":
1014
- return typeof t == "object";
1015
- }
1016
- }
1017
- const de = { ...pr };
1018
- function ml(t, s) {
1019
- de[t] = s;
1020
- }
1021
- function fr(t, s) {
1022
- return mr(t, s) ? [] : ["invalid_value"];
1023
- }
1024
- function hr(t, s) {
1025
- var r;
1026
- const e = (r = de[s]) == null ? void 0 : r.call(de, t);
1027
- return e ? Je(e) : [];
1028
- }
1029
- const fl = Symbol(), je = /* @__PURE__ */ new WeakMap();
1030
- class gr extends Qe {
1031
- constructor(e) {
1032
- super();
1033
- _(this, "errors");
1034
- _(this, "_fields");
1035
- _(this, "_data");
1036
- _(this, "_submitted");
1037
- _(this, "_errors");
1038
- _(this, "_listeners", {});
1039
- this._fields = e, this._submitted = U(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), je.set(
1040
- this,
1041
- c(() => !Object.values(this._errors).some((r) => r !== null))
1042
- ), this.errors = ve(this._errors);
1043
- }
1044
- get valid() {
1045
- var e;
1046
- return !!((e = je.get(this)) != null && e.value);
1047
- }
1048
- get submitted() {
1049
- return this._submitted.value;
1050
- }
1051
- setFieldValue(e, r) {
1052
- const n = this._fields[e] ?? Q(`Trying to set undefined '${B(e)}' field`);
1053
- this._data[e] = n.type === "string" && (n.trim ?? !0) ? B(r).trim() : r, this._submitted.value && this.validate();
1054
- }
1055
- getFieldValue(e) {
1056
- return this._data[e];
1057
- }
1058
- getFieldRules(e) {
1059
- var r, n;
1060
- return ((n = (r = this._fields[e]) == null ? void 0 : r.rules) == null ? void 0 : n.split("|")) ?? [];
1061
- }
1062
- getFieldType(e) {
1063
- var r;
1064
- return ((r = this._fields[e]) == null ? void 0 : r.type) ?? null;
1065
- }
1066
- data() {
1067
- return { ...this._data };
1068
- }
1069
- validate() {
1070
- const e = Object.entries(this._fields).reduce(
1071
- (r, [n, a]) => (r[n] = this.getFieldErrors(n, a), r),
1072
- {}
1073
- );
1074
- return this.resetErrors(e), this.valid;
1075
- }
1076
- reset(e = {}) {
1077
- this._submitted.value = !1, e.keepData || this.resetData(), e.keepErrors || this.resetErrors();
1078
- }
1079
- submit() {
1080
- var r;
1081
- this._submitted.value = !0;
1082
- const e = this.validate();
1083
- return e && ((r = this._listeners.submit) == null || r.forEach((n) => n())), e;
1084
- }
1085
- on(e, r) {
1086
- var n, a;
1087
- return (n = this._listeners)[e] ?? (n[e] = []), (a = this._listeners[e]) == null || a.push(r), () => this.off(e, r);
1088
- }
1089
- off(e, r) {
1090
- Se(this._listeners[e] ?? [], r);
1091
- }
1092
- async focus(e) {
1093
- var r;
1094
- await Oe(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
1095
- }
1096
- __get(e) {
1097
- return e in this._fields ? this.getFieldValue(e) : super.__get(e);
1098
- }
1099
- __set(e, r) {
1100
- if (!(e in this._fields)) {
1101
- super.__set(e, r);
1102
- return;
1103
- }
1104
- this.setFieldValue(e, r);
1105
- }
1106
- getFieldErrors(e, r) {
1107
- var l;
1108
- const n = [], a = this._data[e], i = ((l = r.rules) == null ? void 0 : l.split("|")) ?? [];
1109
- n.push(...fr(a, r));
1110
- for (const d of i)
1111
- d !== "required" && a == null || n.push(...hr(a, d));
1112
- return n.length > 0 ? n : null;
1113
- }
1114
- getInitialData(e) {
1115
- if (this.static().isConjuring())
1116
- return {};
1117
- const r = Object.entries(e).reduce((n, [a, i]) => (n[a] = i.default ?? null, n), {});
1118
- return pe(r);
1119
- }
1120
- getInitialErrors(e) {
1121
- if (this.static().isConjuring())
1122
- return {};
1123
- const r = Object.keys(e).reduce((n, a) => (n[a] = null, n), {});
1124
- return pe(r);
1125
- }
1126
- resetData() {
1127
- for (const [e, r] of Object.entries(this._fields))
1128
- this._data[e] = r.default ?? null;
1129
- }
1130
- resetErrors(e) {
1131
- Object.keys(this._errors).forEach((r) => delete this._errors[r]), e && Object.assign(this._errors, e);
1132
- }
1133
- }
1134
- function it(t, s) {
1135
- const e = X("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
1136
- ge(() => r == null ? void 0 : r());
1137
- }
1138
- function ut(t) {
1139
- return new gr(t);
1140
- }
1141
- function Ie() {
1142
- const t = Ne(), s = c(() => t.class);
1143
- return [c(() => Ot(t, "class")), s];
1144
- }
1145
- function hl(t) {
1146
- let s = Nt;
1147
- Et(() => s = t()), ge(() => s());
1148
- }
1149
- function gl(t, s) {
1150
- const e = pe(O.get(t) ?? s);
1151
- return Me(e, () => O.set(t, Vt(e))), e;
1152
- }
1153
- function vl(t) {
1154
- const s = U(), e = c(t);
1155
- return Me(e, async () => s.value = await e.value, { immediate: !0 }), s;
1156
- }
1157
- function bl(t, s) {
1158
- const e = s ? t : {}, r = s ?? t, n = U(e.initial ?? null), a = Wt((i) => n.value = i, e.delay ?? 300);
1159
- return Y(() => a(r())), n;
1160
- }
1161
- const ct = /* @__PURE__ */ g({
1192
+ const dt = /* @__PURE__ */ g({
1162
1193
  __name: "HeadlessSelectValue",
1163
1194
  setup(t) {
1164
1195
  const s = V(
1165
1196
  "select",
1166
1197
  "<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
1167
1198
  );
1168
- return (e, r) => e.$slots.default ? (u(), h(o(De), {
1199
+ return (e, r) => e.$slots.default ? (u(), h(l(De), {
1169
1200
  key: 0,
1170
- placeholder: o(s).placeholder
1201
+ placeholder: l(s).placeholder
1171
1202
  }, {
1172
1203
  default: f(() => [
1173
1204
  w(e.$slots, "default")
1174
1205
  ]),
1175
1206
  _: 3
1176
- }, 8, ["placeholder"])) : (u(), h(o(De), {
1207
+ }, 8, ["placeholder"])) : (u(), h(l(De), {
1177
1208
  key: 1,
1178
- placeholder: o(s).placeholder
1209
+ placeholder: l(s).placeholder
1179
1210
  }, null, 8, ["placeholder"]));
1180
1211
  }
1181
- }), dt = /* @__PURE__ */ g({
1212
+ }), pt = /* @__PURE__ */ g({
1182
1213
  __name: "HeadlessSelectTrigger",
1183
1214
  setup(t) {
1184
1215
  const s = V(
1185
1216
  "select",
1186
1217
  "<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
1187
1218
  );
1188
- return (e, r) => (u(), h(o(is), {
1189
- id: o(s).id
1219
+ return (e, r) => (u(), h(l(cs), {
1220
+ id: l(s).id
1190
1221
  }, {
1191
1222
  default: f(() => [
1192
1223
  w(e.$slots, "default", {}, () => [
1193
- p(ct, {
1194
- placeholder: o(s).placeholder
1224
+ p(dt, {
1225
+ placeholder: l(s).placeholder
1195
1226
  }, null, 8, ["placeholder"]),
1196
- p(o(us))
1227
+ p(l(ds))
1197
1228
  ])
1198
1229
  ]),
1199
1230
  _: 3
1200
1231
  }, 8, ["id"]));
1201
1232
  }
1202
- }), pt = /* @__PURE__ */ g({
1233
+ }), mt = /* @__PURE__ */ g({
1203
1234
  __name: "HeadlessSelectOption",
1204
1235
  props: {
1205
1236
  value: {},
@@ -1217,9 +1248,9 @@ const ct = /* @__PURE__ */ g({
1217
1248
  const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
1218
1249
  return r ? r.label : B(t.value);
1219
1250
  });
1220
- return (r, n) => (u(), h(o(cs), ne(ae(r.$props)), {
1251
+ return (r, n) => (u(), h(l(ps), ne(ae(r.$props)), {
1221
1252
  default: f(() => [
1222
- p(o(ds), null, {
1253
+ p(l(ms), null, {
1223
1254
  default: f(() => [
1224
1255
  w(r.$slots, "default", {}, () => [
1225
1256
  I(x(e.value), 1)
@@ -1231,7 +1262,7 @@ const ct = /* @__PURE__ */ g({
1231
1262
  _: 3
1232
1263
  }, 16));
1233
1264
  }
1234
- }), mt = /* @__PURE__ */ g({
1265
+ }), ft = /* @__PURE__ */ g({
1235
1266
  __name: "HeadlessSelectOptions",
1236
1267
  props: {
1237
1268
  class: {},
@@ -1242,22 +1273,22 @@ const ct = /* @__PURE__ */ g({
1242
1273
  "select",
1243
1274
  "<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
1244
1275
  ), e = c(() => M("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
1245
- return (r, n) => (u(), h(o(ps), null, {
1276
+ return (r, n) => (u(), h(l(fs), null, {
1246
1277
  default: f(() => [
1247
- p(o(ms), {
1278
+ p(l(hs), {
1248
1279
  position: "popper",
1249
1280
  class: k(e.value),
1250
- align: o(s).align,
1251
- side: o(s).side,
1281
+ align: l(s).align,
1282
+ side: l(s).side,
1252
1283
  "side-offset": 4
1253
1284
  }, {
1254
1285
  default: f(() => [
1255
- p(o(fs), {
1286
+ p(l(gs), {
1256
1287
  class: k(r.innerClass)
1257
1288
  }, {
1258
1289
  default: f(() => [
1259
1290
  w(r.$slots, "default", {}, () => [
1260
- (u(!0), b(D, null, F(o(s).options ?? [], (a) => (u(), h(pt, {
1291
+ (u(!0), b(D, null, F(l(s).options ?? [], (a) => (u(), h(mt, {
1261
1292
  key: a.key,
1262
1293
  value: a.value
1263
1294
  }, null, 8, ["value"]))), 128))
@@ -1272,7 +1303,7 @@ const ct = /* @__PURE__ */ g({
1272
1303
  _: 3
1273
1304
  }));
1274
1305
  }
1275
- }), vr = /* @__PURE__ */ g({
1306
+ }), yr = /* @__PURE__ */ g({
1276
1307
  inheritAttrs: !1,
1277
1308
  __name: "HeadlessSelect",
1278
1309
  props: {
@@ -1292,9 +1323,9 @@ const ct = /* @__PURE__ */ g({
1292
1323
  },
1293
1324
  emits: ["update:modelValue"],
1294
1325
  setup(t, { expose: s, emit: e }) {
1295
- const r = e, n = X("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), i = c(() => a.value), l = c(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = c(() => t.options ? t.options.map((m) => ({
1326
+ const r = e, n = X("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), i = c(() => a.value), o = c(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = c(() => t.options ? t.options.map((m) => ({
1296
1327
  key: re(),
1297
- label: t.renderOption ? t.renderOption(m) : dr(m) ? Kt(m.label) : B(m),
1328
+ label: t.renderOption ? t.renderOption(m) : br(m) ? Jt(m.label) : B(m),
1298
1329
  value: m
1299
1330
  })) : null), v = {
1300
1331
  labelClass: t.labelClass,
@@ -1312,7 +1343,7 @@ const ct = /* @__PURE__ */ g({
1312
1343
  var m;
1313
1344
  return (m = d.value) == null ? void 0 : m.find((C) => C.value === t.modelValue);
1314
1345
  }),
1315
- errors: ve(l),
1346
+ errors: ve(o),
1316
1347
  required: c(() => {
1317
1348
  if (!(!t.name || !n))
1318
1349
  return n.getFieldRules(t.name).includes("required");
@@ -1328,20 +1359,20 @@ const ct = /* @__PURE__ */ g({
1328
1359
  function $(m) {
1329
1360
  v.update(m);
1330
1361
  }
1331
- return le("select", v), s(v), (m, C) => (u(), h(o(hs), {
1362
+ return le("select", v), s(v), (m, C) => (u(), h(l(vs), {
1332
1363
  "model-value": i.value,
1333
1364
  by: m.compareOptions,
1334
1365
  "onUpdate:modelValue": C[0] || (C[0] = (L) => $(L))
1335
1366
  }, {
1336
1367
  default: f(({ open: L }) => [
1337
- (u(), h(W(m.as), ne(ae(m.$attrs)), {
1368
+ (u(), h(K(m.as), ne(ae(m.$attrs)), {
1338
1369
  default: f(() => [
1339
1370
  w(m.$slots, "default", {
1340
1371
  modelValue: m.modelValue,
1341
1372
  open: L
1342
1373
  }, () => [
1343
- p(dt),
1344
- p(mt)
1374
+ p(pt),
1375
+ p(ft)
1345
1376
  ])
1346
1377
  ]),
1347
1378
  _: 2
@@ -1361,19 +1392,19 @@ const ct = /* @__PURE__ */ g({
1361
1392
  "select",
1362
1393
  "<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
1363
1394
  ), e = He(), r = c(() => !!(s.label || e.default));
1364
- return (n, a) => r.value ? (u(), h(o(gs), H({
1395
+ return (n, a) => r.value ? (u(), h(l(bs), H({
1365
1396
  key: 0,
1366
- for: o(s).id
1397
+ for: l(s).id
1367
1398
  }, n.$props), {
1368
1399
  default: f(() => [
1369
1400
  w(n.$slots, "default", {}, () => [
1370
- I(x(o(s).label), 1)
1401
+ I(x(l(s).label), 1)
1371
1402
  ])
1372
1403
  ]),
1373
1404
  _: 3
1374
1405
  }, 16, ["for"])) : T("", !0);
1375
1406
  }
1376
- }), ft = /* @__PURE__ */ g({
1407
+ }), ht = /* @__PURE__ */ g({
1377
1408
  __name: "SelectLabel",
1378
1409
  props: {
1379
1410
  class: {}
@@ -1406,7 +1437,7 @@ const ct = /* @__PURE__ */ g({
1406
1437
  "relative flex max-w-[calc(100vw-2rem)] cursor-pointer items-center truncate rounded-md gap-2 px-2 py-1 text-sm select-none *:truncate group-data-[highlighted]:bg-gray-100 group-data-[state=checked]:font-semibold group-data-[state=unchecked]:opacity-50",
1407
1438
  t.innerClass
1408
1439
  ));
1409
- return (r, n) => (u(), h(pt, {
1440
+ return (r, n) => (u(), h(mt, {
1410
1441
  class: k(s.value),
1411
1442
  value: r.value
1412
1443
  }, {
@@ -1420,7 +1451,7 @@ const ct = /* @__PURE__ */ g({
1420
1451
  _: 3
1421
1452
  }, 8, ["class", "value"]));
1422
1453
  }
1423
- }), ht = /* @__PURE__ */ g({
1454
+ }), gt = /* @__PURE__ */ g({
1424
1455
  __name: "SelectOptions",
1425
1456
  props: {
1426
1457
  class: {}
@@ -1431,21 +1462,21 @@ const ct = /* @__PURE__ */ g({
1431
1462
  s.optionsClass,
1432
1463
  t.class
1433
1464
  ));
1434
- return (r, n) => (u(), h(mt, {
1465
+ return (r, n) => (u(), h(ft, {
1435
1466
  class: k(e.value)
1436
1467
  }, {
1437
1468
  default: f(() => {
1438
1469
  var a;
1439
1470
  return [
1440
- (a = o(s).options) != null && a.length ? w(r.$slots, "default", { key: 0 }, () => {
1471
+ (a = l(s).options) != null && a.length ? w(r.$slots, "default", { key: 0 }, () => {
1441
1472
  var i;
1442
1473
  return [
1443
- (u(!0), b(D, null, F(((i = o(s)) == null ? void 0 : i.options) ?? [], (l) => (u(), h(Fe, {
1444
- key: l.key,
1445
- value: l.value
1474
+ (u(!0), b(D, null, F(((i = l(s)) == null ? void 0 : i.options) ?? [], (o) => (u(), h(Fe, {
1475
+ key: o.key,
1476
+ value: o.value
1446
1477
  }, {
1447
1478
  default: f(() => [
1448
- I(x(l.label), 1)
1479
+ I(x(o.label), 1)
1449
1480
  ]),
1450
1481
  _: 2
1451
1482
  }, 1032, ["value"]))), 128))
@@ -1466,20 +1497,20 @@ const ct = /* @__PURE__ */ g({
1466
1497
  _: 3
1467
1498
  }, 8, ["class"]));
1468
1499
  }
1469
- }), br = {
1500
+ }), wr = {
1470
1501
  viewBox: "0 0 20 20",
1471
1502
  width: "1.2em",
1472
1503
  height: "1.2em"
1473
1504
  };
1474
- function yr(t, s) {
1475
- return u(), b("svg", br, s[0] || (s[0] = [
1505
+ function $r(t, s) {
1506
+ return u(), b("svg", wr, s[0] || (s[0] = [
1476
1507
  y("path", {
1477
1508
  fill: "currentColor",
1478
1509
  d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
1479
1510
  }, null, -1)
1480
1511
  ]));
1481
1512
  }
1482
- const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__ */ g({
1513
+ const _r = E({ name: "zondicons-cheveron-down", render: $r }), vt = /* @__PURE__ */ g({
1483
1514
  __name: "SelectTrigger",
1484
1515
  props: {
1485
1516
  class: {}
@@ -1491,17 +1522,17 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1491
1522
  { "mt-1": s.label },
1492
1523
  t.class
1493
1524
  ));
1494
- return (r, n) => (u(), h(dt, {
1525
+ return (r, n) => (u(), h(pt, {
1495
1526
  class: k(e.value)
1496
1527
  }, {
1497
1528
  default: f(() => [
1498
- p(ct, { class: "col-start-1 row-start-1 truncate pr-6" }),
1499
- p(o(wr), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1529
+ p(dt, { class: "col-start-1 row-start-1 truncate pr-6" }),
1530
+ p(l(_r), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1500
1531
  ]),
1501
1532
  _: 1
1502
1533
  }, 8, ["class"]));
1503
1534
  }
1504
- }), $r = /* @__PURE__ */ g({
1535
+ }), xr = /* @__PURE__ */ g({
1505
1536
  __name: "Select",
1506
1537
  props: {
1507
1538
  as: {},
@@ -1521,20 +1552,20 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1521
1552
  emits: ["update:modelValue"],
1522
1553
  setup(t) {
1523
1554
  const { forwardRef: s } = Ve();
1524
- return (e, r) => (u(), h(vr, H({ ref: o(s) }, e.$props, {
1555
+ return (e, r) => (u(), h(yr, H({ ref: l(s) }, e.$props, {
1525
1556
  "onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
1526
1557
  }), {
1527
1558
  default: f(() => [
1528
- p(ft),
1559
+ p(ht),
1529
1560
  w(e.$slots, "default", {}, () => [
1530
- p(gt),
1531
- p(ht)
1561
+ p(vt),
1562
+ p(gt)
1532
1563
  ])
1533
1564
  ]),
1534
1565
  _: 3
1535
1566
  }, 16));
1536
1567
  }
1537
- }), _r = { class: "grow" }, xr = /* @__PURE__ */ g({
1568
+ }), Cr = { class: "grow" }, kr = /* @__PURE__ */ g({
1538
1569
  __name: "Language",
1539
1570
  setup(t) {
1540
1571
  const s = Z.getBrowserLocale(), e = c(() => [null, ...Z.locales]);
@@ -1543,7 +1574,7 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1543
1574
  locale: j.locales[s] ?? s
1544
1575
  });
1545
1576
  }
1546
- return (n, a) => (u(), h($r, {
1577
+ return (n, a) => (u(), h(xr, {
1547
1578
  modelValue: n.$lang.locale,
1548
1579
  "onUpdate:modelValue": a[0] || (a[0] = (i) => n.$lang.locale = i),
1549
1580
  class: "flex flex-col items-start md:flex-row",
@@ -1552,14 +1583,14 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1552
1583
  "render-option": r
1553
1584
  }, {
1554
1585
  default: f(() => [
1555
- y("div", _r, [
1556
- p(ft, { class: "text-base font-semibold" }, {
1586
+ y("div", Cr, [
1587
+ p(ht, { class: "text-base font-semibold" }, {
1557
1588
  default: f(() => [
1558
1589
  I(x(n.$td("settings.locale", "Language")), 1)
1559
1590
  ]),
1560
1591
  _: 1
1561
1592
  }),
1562
- p(P, {
1593
+ p(A, {
1563
1594
  "lang-key": "settings.localeDescription",
1564
1595
  "lang-default": "Choose the application's language.",
1565
1596
  class: "mt-1 text-sm text-gray-500"
@@ -1567,25 +1598,25 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1567
1598
  ]),
1568
1599
  p(q, {
1569
1600
  variant: "ghost",
1570
- as: gt,
1601
+ as: vt,
1571
1602
  class: "grid w-auto outline-none"
1572
1603
  }),
1573
- p(ht)
1604
+ p(gt)
1574
1605
  ]),
1575
1606
  _: 1
1576
1607
  }, 8, ["modelValue", "options"]));
1577
1608
  }
1578
- }), Cr = [
1609
+ }), Sr = [
1579
1610
  {
1580
1611
  priority: 100,
1581
- component: xr
1612
+ component: kr
1582
1613
  }
1583
- ], kr = { $lang: Z }, Sr = {
1614
+ ], Tr = { $lang: Z }, Mr = {
1584
1615
  async install(t) {
1585
1616
  var s;
1586
- (s = t.config.globalProperties).$t ?? (s.$t = rt), t.config.globalProperties.$td = S, Cr.forEach((e) => A.addSetting(e)), await $e(t, kr);
1617
+ (s = t.config.globalProperties).$t ?? (s.$t = it), t.config.globalProperties.$td = S, Sr.forEach((e) => P.addSetting(e)), await $e(t, Tr);
1587
1618
  }
1588
- }, Tr = /* @__PURE__ */ g({
1619
+ }, Hr = /* @__PURE__ */ g({
1589
1620
  __name: "Markdown",
1590
1621
  props: {
1591
1622
  as: {},
@@ -1597,38 +1628,38 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1597
1628
  actions: {}
1598
1629
  },
1599
1630
  setup(t) {
1600
- const s = Ne(), e = He(), r = c(() => e.default ? e.default().map(Ge).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : rt(t.langKey, t.langParams ?? {})))), n = c(() => {
1631
+ const s = Ne(), e = He(), r = c(() => e.default ? e.default().map(Ge).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : it(t.langKey, t.langParams ?? {})))), n = c(() => {
1601
1632
  if (!r.value)
1602
1633
  return null;
1603
- let l = ur(r.value);
1604
- return t.inline && (l = l.replace("<p>", "<span>").replace("</p>", "</span>")), l;
1605
- }), a = () => Lt(t.as ?? (t.inline ? "span" : "div"), {
1634
+ let o = rr(r.value);
1635
+ return t.inline && (o = o.replace("<p>", "<span>").replace("</p>", "</span>")), o;
1636
+ }), a = () => qt(t.as ?? (t.inline ? "span" : "div"), {
1606
1637
  innerHTML: n.value,
1607
1638
  onClick: i,
1608
1639
  ...s,
1609
1640
  class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
1610
1641
  });
1611
- async function i(l) {
1642
+ async function i(o) {
1612
1643
  var v, $;
1613
- const { target: d } = l;
1614
- if (Pe(d, HTMLElement) && d.dataset.markdownAction) {
1644
+ const { target: d } = o;
1645
+ if (Ae(d, HTMLElement) && d.dataset.markdownAction) {
1615
1646
  ($ = (v = t.actions) == null ? void 0 : v[d.dataset.markdownAction]) == null || $.call(v);
1616
1647
  return;
1617
1648
  }
1618
- if (Pe(d, HTMLAnchorElement) && d.dataset.markdownRoute) {
1619
- const m = ir();
1620
- m && (l.preventDefault(), m.visit(d.dataset.markdownRoute));
1649
+ if (Ae(d, HTMLAnchorElement) && d.dataset.markdownRoute) {
1650
+ const m = sr();
1651
+ m && (o.preventDefault(), m.visit(d.dataset.markdownRoute));
1621
1652
  return;
1622
1653
  }
1623
1654
  }
1624
- return (l, d) => (u(), h(a));
1655
+ return (o, d) => (u(), h(a));
1625
1656
  }
1626
- }), Mr = (t, s) => {
1657
+ }), Er = (t, s) => {
1627
1658
  const e = t.__vccOpts || t;
1628
1659
  for (const [r, n] of s)
1629
1660
  e[r] = n;
1630
1661
  return e;
1631
- }, P = /* @__PURE__ */ Mr(Tr, [["__scopeId", "data-v-8b211cfb"]]), Hr = { class: "flex-grow" }, Er = ["id"], Vr = /* @__PURE__ */ g({
1662
+ }, A = /* @__PURE__ */ Er(Hr, [["__scopeId", "data-v-8b211cfb"]]), Vr = { class: "flex-grow" }, Lr = ["id"], Ir = /* @__PURE__ */ g({
1632
1663
  __name: "Setting",
1633
1664
  props: {
1634
1665
  title: {},
@@ -1642,12 +1673,12 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1642
1673
  return (e, r) => (u(), b("div", {
1643
1674
  class: k(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
1644
1675
  }, [
1645
- y("div", Hr, [
1676
+ y("div", Vr, [
1646
1677
  y("h3", {
1647
1678
  id: e.titleId,
1648
1679
  class: "text-base font-semibold"
1649
- }, x(e.title), 9, Er),
1650
- e.description ? (u(), h(P, {
1680
+ }, x(e.title), 9, Lr),
1681
+ e.description ? (u(), h(A, {
1651
1682
  key: 0,
1652
1683
  text: e.description,
1653
1684
  class: "mt-1 text-sm text-gray-500"
@@ -1660,7 +1691,7 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1660
1691
  ], 2)
1661
1692
  ], 2));
1662
1693
  }
1663
- }), Lr = ["for"], Ir = /* @__PURE__ */ g({
1694
+ }), qr = ["for"], zr = /* @__PURE__ */ g({
1664
1695
  inheritAttrs: !1,
1665
1696
  __name: "HeadlessSwitch",
1666
1697
  props: {
@@ -1686,60 +1717,60 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1686
1717
  if (!(!t.name || !n))
1687
1718
  return n.getFieldRules(t.name).includes("required");
1688
1719
  }),
1689
- update(l) {
1720
+ update(o) {
1690
1721
  if (n && t.name) {
1691
- n.setFieldValue(t.name, l);
1722
+ n.setFieldValue(t.name, o);
1692
1723
  return;
1693
1724
  }
1694
- r("update:modelValue", l);
1725
+ r("update:modelValue", o);
1695
1726
  }
1696
1727
  };
1697
1728
  return s(i), Y(() => {
1698
1729
  !t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
1699
- }), (l, d) => (u(), b("div", {
1730
+ }), (o, d) => (u(), b("div", {
1700
1731
  class: k(t.class)
1701
1732
  }, [
1702
- l.label ? (u(), b("label", {
1733
+ o.label ? (u(), b("label", {
1703
1734
  key: 0,
1704
1735
  for: i.id,
1705
- class: k(l.labelClass)
1706
- }, x(l.label), 11, Lr)) : T("", !0),
1707
- p(o(vs), H({
1736
+ class: k(o.labelClass)
1737
+ }, x(o.label), 11, qr)) : T("", !0),
1738
+ p(l(ys), H({
1708
1739
  id: i.id,
1709
- name: l.name,
1740
+ name: o.name,
1710
1741
  "model-value": i.value.value
1711
- }, l.$attrs, {
1712
- class: l.inputClass,
1713
- "onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
1742
+ }, o.$attrs, {
1743
+ class: o.inputClass,
1744
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => o.$emit("update:modelValue", v))
1714
1745
  }), {
1715
1746
  default: f(() => [
1716
- p(o(bs), {
1717
- class: k(l.thumbClass)
1747
+ p(l(ws), {
1748
+ class: k(o.thumbClass)
1718
1749
  }, null, 8, ["class"])
1719
1750
  ]),
1720
1751
  _: 1
1721
1752
  }, 16, ["id", "name", "model-value", "class"])
1722
1753
  ], 2));
1723
1754
  }
1724
- }), qr = /* @__PURE__ */ g({
1755
+ }), Rr = /* @__PURE__ */ g({
1725
1756
  __name: "Switch",
1726
1757
  setup(t) {
1727
- return (s, e) => (u(), h(Ir, {
1758
+ return (s, e) => (u(), h(zr, {
1728
1759
  class: "flex flex-row items-center gap-1",
1729
1760
  "input-class": "disabled:opacity-50 disabled:cursor-not-allowed data-[state=checked]:bg-primary-600 data-[state=unchecked]:bg-gray-200 relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focusdisabled:opacity-50 disabled:cursor-not-allowed :ring-2 focus:ring-primary-600 focus:ring-offset-2 focus:outline-hidden",
1730
1761
  "thumb-class": "data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 pointer-events-none inline-block size-5 transform rounded-full bg-white shadow-sm ring-0 transition duration-200 ease-in-out"
1731
1762
  }));
1732
1763
  }
1733
- }), zr = /* @__PURE__ */ g({
1764
+ }), Ar = /* @__PURE__ */ g({
1734
1765
  __name: "Debug",
1735
1766
  setup(t) {
1736
- return (s, e) => (u(), h(Vr, {
1767
+ return (s, e) => (u(), h(Ir, {
1737
1768
  "title-id": "debug-setting",
1738
1769
  title: s.$td("settings.debug", "Debugging"),
1739
1770
  description: s.$td("settings.debugDescription", "Enable debugging with [Eruda](https://eruda.liriliri.io/).")
1740
1771
  }, {
1741
1772
  default: f(() => [
1742
- p(qr, {
1773
+ p(Rr, {
1743
1774
  modelValue: s.$errors.debug,
1744
1775
  "onUpdate:modelValue": e[0] || (e[0] = (r) => s.$errors.debug = r),
1745
1776
  "aria-labelledby": "debug-setting"
@@ -1748,17 +1779,17 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
1748
1779
  _: 1
1749
1780
  }, 8, ["title", "description"]));
1750
1781
  }
1751
- }), Rr = [
1782
+ }), Pr = [
1752
1783
  {
1753
1784
  priority: 10,
1754
- component: zr
1785
+ component: Ar
1755
1786
  }
1756
- ], vt = [];
1757
- function yl(t) {
1758
- vt.push(t);
1787
+ ], bt = [];
1788
+ function _l(t) {
1789
+ bt.push(t);
1759
1790
  }
1760
- function bt(t) {
1761
- for (const s of vt) {
1791
+ function yt(t) {
1792
+ for (const s of bt) {
1762
1793
  const e = s(t);
1763
1794
  if (e)
1764
1795
  return e;
@@ -1767,36 +1798,36 @@ function bt(t) {
1767
1798
  }
1768
1799
  class Ue extends be {
1769
1800
  }
1770
- const Pr = { $errors: nt }, Ar = (t) => (nt.report(t), !0);
1771
- function Dr(t, s = () => !1) {
1772
- const e = (r) => s(r) || Ar(r);
1773
- t.config.errorHandler = e, globalThis.onerror = (r, n, a, i, l) => e(l ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
1801
+ const Dr = { $errors: ut }, jr = (t) => (ut.report(t), !0);
1802
+ function Br(t, s = () => !1) {
1803
+ const e = (r) => s(r) || jr(r);
1804
+ t.config.errorHandler = e, globalThis.onerror = (r, n, a, i, o) => e(o ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
1774
1805
  }
1775
- const jr = {
1806
+ const Fr = {
1776
1807
  async install(t, s) {
1777
- Dr(t, s.handleError), Rr.forEach((e) => A.addSetting(e)), await $e(t, Pr);
1808
+ Br(t, s.handleError), Pr.forEach((e) => P.addSetting(e)), await $e(t, Dr);
1778
1809
  }
1779
- }, Br = {
1810
+ }, Ur = {
1780
1811
  async install() {
1781
1812
  Ee() && (globalThis.testingRuntime = {
1782
1813
  on: (...t) => R.on(...t),
1783
- service: (t) => A.service(t)
1814
+ service: (t) => P.service(t)
1784
1815
  });
1785
1816
  }
1786
- }, Fr = {
1817
+ }, Or = {
1787
1818
  viewBox: "0 0 20 20",
1788
1819
  width: "1.2em",
1789
1820
  height: "1.2em"
1790
1821
  };
1791
- function Ur(t, s) {
1792
- return u(), b("svg", Fr, s[0] || (s[0] = [
1822
+ function Nr(t, s) {
1823
+ return u(), b("svg", Or, s[0] || (s[0] = [
1793
1824
  y("path", {
1794
1825
  fill: "currentColor",
1795
1826
  d: "M10 8.586L2.929 1.515L1.515 2.929L8.586 10l-7.071 7.071l1.414 1.414L10 11.414l7.071 7.071l1.414-1.414L11.414 10l7.071-7.071l-1.414-1.414z"
1796
1827
  }, null, -1)
1797
1828
  ]));
1798
1829
  }
1799
- const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
1830
+ const Wr = E({ name: "zondicons-close", render: Nr }), Kr = /* @__PURE__ */ g({
1800
1831
  __name: "HeadlessModal",
1801
1832
  props: {
1802
1833
  persistent: { type: Boolean },
@@ -1812,21 +1843,21 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
1812
1843
  );
1813
1844
  s({ close: i, $content: e });
1814
1845
  const { forwardRef: n } = Ve(), a = U(!1);
1815
- le("$modalContentRef", e), ot("close-modal", async ({ id: l, result: d }) => {
1816
- l === r.id && await i(d);
1846
+ le("$modalContentRef", e), tt("close-modal", async ({ id: o, result: d }) => {
1847
+ o === r.id && await i(d);
1817
1848
  });
1818
- async function i(l) {
1819
- a.value || (await R.emit("modal-will-close", { modal: r, result: l }), a.value = !0, await R.emit("modal-has-closed", { modal: r, result: l }));
1849
+ async function i(o) {
1850
+ a.value || (await R.emit("modal-will-close", { modal: r, result: o }), a.value = !0, await R.emit("modal-has-closed", { modal: r, result: o }));
1820
1851
  }
1821
- return (l, d) => (u(), h(o(ys), {
1822
- ref: o(n),
1852
+ return (o, d) => (u(), h(l($s), {
1853
+ ref: l(n),
1823
1854
  open: "",
1824
- "onUpdate:open": d[0] || (d[0] = (v) => l.persistent || i())
1855
+ "onUpdate:open": d[0] || (d[0] = (v) => o.persistent || i())
1825
1856
  }, {
1826
1857
  default: f(() => [
1827
- p(o(ws), null, {
1858
+ p(l(_s), null, {
1828
1859
  default: f(() => [
1829
- w(l.$slots, "default", { close: i })
1860
+ w(o.$slots, "default", { close: i })
1830
1861
  ]),
1831
1862
  _: 3
1832
1863
  })
@@ -1834,7 +1865,7 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
1834
1865
  _: 3
1835
1866
  }, 512));
1836
1867
  }
1837
- }), yt = /* @__PURE__ */ g({
1868
+ }), wt = /* @__PURE__ */ g({
1838
1869
  __name: "ModalContext",
1839
1870
  props: {
1840
1871
  modal: {},
@@ -1844,48 +1875,48 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
1844
1875
  const s = t, e = c(() => {
1845
1876
  const r = {};
1846
1877
  for (const n in s.modal.properties)
1847
- r[n] = o(s.modal.properties[n]);
1878
+ r[n] = l(s.modal.properties[n]);
1848
1879
  return r;
1849
1880
  });
1850
1881
  return le("modal", {
1851
1882
  modal: Re(s, "modal"),
1852
1883
  childIndex: Re(s, "childIndex")
1853
- }), (r, n) => (u(), h(W(r.modal.component), ne(ae(e.value)), null, 16));
1884
+ }), (r, n) => (u(), h(K(r.modal.component), ne(ae(e.value)), null, 16));
1854
1885
  }
1855
- }), Wr = /* @__PURE__ */ g({
1886
+ }), Qr = /* @__PURE__ */ g({
1856
1887
  __name: "HeadlessModalContent",
1857
1888
  setup(t) {
1858
1889
  const { childIndex: s = 0 } = V(
1859
1890
  "modal",
1860
1891
  "could not obtain modal reference from <HeadlessModalContent>, did you render this component manually? Show it using $ui.modal() instead"
1861
- ), e = Os("$modalContentRef"), r = G("$contentRef"), n = c(() => z.modals[s] ?? null);
1862
- return Y(() => e.value = r.value), (a, i) => (u(), h(o($s), { ref: "$contentRef" }, {
1892
+ ), e = Ws("$modalContentRef"), r = G("$contentRef"), n = c(() => z.modals[s] ?? null);
1893
+ return Y(() => e.value = r.value), (a, i) => (u(), h(l(xs), { ref: "$contentRef" }, {
1863
1894
  default: f(() => [
1864
1895
  w(a.$slots, "default"),
1865
- n.value ? (u(), h(yt, {
1896
+ n.value ? (u(), h(wt, {
1866
1897
  key: 0,
1867
- "child-index": o(s) + 1,
1898
+ "child-index": l(s) + 1,
1868
1899
  modal: n.value
1869
1900
  }, null, 8, ["child-index", "modal"])) : T("", !0)
1870
1901
  ]),
1871
1902
  _: 3
1872
1903
  }, 512));
1873
1904
  }
1874
- }), Kr = /* @__PURE__ */ g({
1905
+ }), Jr = /* @__PURE__ */ g({
1875
1906
  __name: "HeadlessModalDescription",
1876
1907
  props: {
1877
1908
  asChild: { type: Boolean },
1878
1909
  as: {}
1879
1910
  },
1880
1911
  setup(t) {
1881
- return (s, e) => (u(), h(o(_s), ne(ae(s.$props)), {
1912
+ return (s, e) => (u(), h(l(Cs), ne(ae(s.$props)), {
1882
1913
  default: f(() => [
1883
1914
  w(s.$slots, "default")
1884
1915
  ]),
1885
1916
  _: 3
1886
1917
  }, 16));
1887
1918
  }
1888
- }), Qr = /* @__PURE__ */ g({
1919
+ }), Zr = /* @__PURE__ */ g({
1889
1920
  __name: "HeadlessModalOverlay",
1890
1921
  props: {
1891
1922
  forceMount: { type: Boolean },
@@ -1893,31 +1924,31 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
1893
1924
  as: {}
1894
1925
  },
1895
1926
  setup(t) {
1896
- return (s, e) => (u(), h(o(xs), ne(ae(s.$props)), {
1927
+ return (s, e) => (u(), h(l(ks), ne(ae(s.$props)), {
1897
1928
  default: f(() => [
1898
1929
  w(s.$slots, "default")
1899
1930
  ]),
1900
1931
  _: 3
1901
1932
  }, 16));
1902
1933
  }
1903
- }), Jr = /* @__PURE__ */ g({
1934
+ }), Xr = /* @__PURE__ */ g({
1904
1935
  __name: "HeadlessModalTitle",
1905
1936
  props: {
1906
1937
  asChild: { type: Boolean },
1907
1938
  as: {}
1908
1939
  },
1909
1940
  setup(t) {
1910
- return (s, e) => (u(), h(o(Cs), ne(ae(s.$props)), {
1941
+ return (s, e) => (u(), h(l(Ss), ne(ae(s.$props)), {
1911
1942
  default: f(() => [
1912
1943
  w(s.$slots, "default")
1913
1944
  ]),
1914
1945
  _: 3
1915
1946
  }, 16));
1916
1947
  }
1917
- }), Zr = {
1948
+ }), Yr = {
1918
1949
  key: 0,
1919
1950
  class: "absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block"
1920
- }, Xr = ["onClick"], Yr = { class: "sr-only" }, se = /* @__PURE__ */ g({
1951
+ }, Gr = ["onClick"], en = { class: "sr-only" }, se = /* @__PURE__ */ g({
1921
1952
  __name: "Modal",
1922
1953
  props: {
1923
1954
  persistent: { type: Boolean },
@@ -1930,7 +1961,7 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
1930
1961
  closeHidden: { type: Boolean }
1931
1962
  },
1932
1963
  setup(t, { expose: s }) {
1933
- const e = N(t, ["class", "wrapperClass", "title", "titleHidden", "description", "persistent", "closeHidden"]);
1964
+ const e = W(t, ["class", "wrapperClass", "title", "titleHidden", "description", "persistent", "closeHidden"]);
1934
1965
  s({
1935
1966
  close: async (m) => {
1936
1967
  var C;
@@ -1941,43 +1972,43 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
1941
1972
  return (m = a.value) == null ? void 0 : m.$content;
1942
1973
  })
1943
1974
  });
1944
- const { forwardRef: r, currentRef: n } = Ve(), a = n, i = V("modal"), l = c(() => !i.modal.closing && i.childIndex === z.openModals.length), d = c(() => t.description ? {} : { "aria-describedby": void 0 }), v = c(() => M("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), $ = c(() => M(
1975
+ const { forwardRef: r, currentRef: n } = Ve(), a = n, i = V("modal"), o = c(() => !i.modal.closing && i.childIndex === z.openModals.length), d = c(() => t.description ? {} : { "aria-describedby": void 0 }), v = c(() => M("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), $ = c(() => M(
1945
1976
  "isolate fixed top-1/2 left-1/2 z-50 w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2",
1946
1977
  "overflow-hidden rounded-lg bg-white text-left shadow-xl sm:max-w-lg",
1947
1978
  "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
1948
1979
  "transition-[scale,opacity] will-change-[scale,opacity] duration-300",
1949
1980
  {
1950
- "scale-50 opacity-0": !l.value,
1951
- "scale-100 opacity-100": l.value
1981
+ "scale-50 opacity-0": !o.value,
1982
+ "scale-100 opacity-100": o.value
1952
1983
  },
1953
1984
  t.wrapperClass
1954
1985
  ));
1955
- return ot("modal-will-close", async ({ modal: { id: m } }) => {
1986
+ return tt("modal-will-close", async ({ modal: { id: m } }) => {
1956
1987
  m === i.modal.id && await ue({ ms: 300 });
1957
- }), (m, C) => (u(), h(Nr, H(e, {
1958
- ref: (L) => o(r)(L),
1988
+ }), (m, C) => (u(), h(Kr, H(e, {
1989
+ ref: (L) => l(r)(L),
1959
1990
  persistent: m.persistent
1960
1991
  }), {
1961
1992
  default: f(({ close: L }) => [
1962
- p(Qr, {
1993
+ p(Zr, {
1963
1994
  class: k(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
1964
- "bg-black/30": o(i).childIndex === 1,
1965
- "opacity-0": o(i).childIndex === 1 && o(i).modal.closing
1995
+ "bg-black/30": l(i).childIndex === 1,
1996
+ "opacity-0": l(i).childIndex === 1 && l(i).modal.closing
1966
1997
  }])
1967
1998
  }, null, 8, ["class"]),
1968
- p(Wr, H(d.value, { class: $.value }), {
1999
+ p(Qr, H(d.value, { class: $.value }), {
1969
2000
  default: f(() => [
1970
- !m.persistent && !m.closeHidden ? (u(), b("div", Zr, [
2001
+ !m.persistent && !m.closeHidden ? (u(), b("div", Yr, [
1971
2002
  y("button", {
1972
2003
  type: "button",
1973
2004
  class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
1974
2005
  onClick: (_e) => L()
1975
2006
  }, [
1976
- y("span", Yr, x(m.$td("ui.close", "Close")), 1),
1977
- p(o(Or), { class: "size-4" })
1978
- ], 8, Xr)
2007
+ y("span", en, x(m.$td("ui.close", "Close")), 1),
2008
+ p(l(Wr), { class: "size-4" })
2009
+ ], 8, Gr)
1979
2010
  ])) : T("", !0),
1980
- m.title ? (u(), h(Jr, {
2011
+ m.title ? (u(), h(Xr, {
1981
2012
  key: 1,
1982
2013
  class: k(["px-4 pt-5 text-base font-semibold text-gray-900", {
1983
2014
  "sr-only": m.titleHidden,
@@ -1986,19 +2017,19 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
1986
2017
  }])
1987
2018
  }, {
1988
2019
  default: f(() => [
1989
- p(P, {
2020
+ p(A, {
1990
2021
  text: m.title,
1991
2022
  inline: ""
1992
2023
  }, null, 8, ["text"])
1993
2024
  ]),
1994
2025
  _: 1
1995
2026
  }, 8, ["class"])) : T("", !0),
1996
- m.description ? (u(), h(Kr, {
2027
+ m.description ? (u(), h(Jr, {
1997
2028
  key: 2,
1998
2029
  class: k(["px-4 pt-1 pb-2", { "sr-only": m.descriptionHidden }])
1999
2030
  }, {
2000
2031
  default: f(() => [
2001
- p(P, {
2032
+ p(A, {
2002
2033
  text: m.description,
2003
2034
  class: "text-sm leading-6 text-gray-500"
2004
2035
  }, null, 8, ["text"])
@@ -2018,29 +2049,29 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
2018
2049
  }, 16, ["persistent"]));
2019
2050
  }
2020
2051
  });
2021
- function Gr(t) {
2052
+ function tn(t) {
2022
2053
  const s = c(() => t.title ?? S("ui.alert", "Alert")), e = c(() => !t.title);
2023
2054
  return { renderedTitle: s, titleHidden: e };
2024
2055
  }
2025
- const en = /* @__PURE__ */ g({
2056
+ const sn = /* @__PURE__ */ g({
2026
2057
  __name: "AlertModal",
2027
2058
  props: {
2028
2059
  title: {},
2029
2060
  message: {}
2030
2061
  },
2031
2062
  setup(t, { expose: s }) {
2032
- const e = t, { renderedTitle: r, titleHidden: n } = Gr(e);
2063
+ const e = t, { renderedTitle: r, titleHidden: n } = tn(e);
2033
2064
  return s(), (a, i) => (u(), h(se, {
2034
- title: o(r),
2035
- "title-hidden": o(n)
2065
+ title: l(r),
2066
+ "title-hidden": l(n)
2036
2067
  }, {
2037
2068
  default: f(() => [
2038
- p(P, { text: a.message }, null, 8, ["text"])
2069
+ p(A, { text: a.message }, null, 8, ["text"])
2039
2070
  ]),
2040
2071
  _: 1
2041
2072
  }, 8, ["title", "title-hidden"]));
2042
2073
  }
2043
- }), wt = /* @__PURE__ */ g({
2074
+ }), $t = /* @__PURE__ */ g({
2044
2075
  __name: "Form",
2045
2076
  props: {
2046
2077
  form: {}
@@ -2053,20 +2084,17 @@ const en = /* @__PURE__ */ g({
2053
2084
  var a;
2054
2085
  e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
2055
2086
  }), le("form", t.form), (n, a) => (u(), b("form", {
2056
- onSubmit: a[0] || (a[0] = We((i) => {
2057
- var l;
2058
- return (l = n.form) == null ? void 0 : l.submit();
2059
- }, ["prevent"]))
2087
+ onSubmit: a[0] || (a[0] = We((i) => n.form ? n.form.submit() : n.$emit("submit"), ["prevent"]))
2060
2088
  }, [
2061
2089
  w(n.$slots, "default")
2062
2090
  ], 32));
2063
2091
  }
2064
2092
  });
2065
- function tn(t) {
2066
- const s = ut(
2093
+ function rn(t) {
2094
+ const s = rt(
2067
2095
  Object.entries(t.checkboxes ?? {}).reduce(
2068
- (i, [l, d]) => ({
2069
- [l]: {
2096
+ (i, [o, d]) => ({
2097
+ [o]: {
2070
2098
  type: "boolean",
2071
2099
  default: d.default,
2072
2100
  required: d.required ? "required" : void 0
@@ -2078,10 +2106,10 @@ function tn(t) {
2078
2106
  ), e = c(() => t.title ?? S("ui.confirm", "Confirm")), r = c(() => !t.title), n = c(() => t.acceptText ?? S("ui.accept", "Ok")), a = c(() => t.cancelText ?? S("ui.cancel", "Cancel"));
2079
2107
  return { form: s, renderedTitle: e, titleHidden: r, renderedAcceptText: n, renderedCancelText: a };
2080
2108
  }
2081
- const sn = {
2109
+ const nn = {
2082
2110
  key: 0,
2083
2111
  class: "mt-4 flex flex-col text-sm text-gray-600"
2084
- }, rn = { class: "flex items-center" }, nn = ["onUpdate:modelValue", "required"], an = { class: "ml-1.5" }, ln = { class: "mt-4 flex flex-row-reverse gap-2" }, on = /* @__PURE__ */ g({
2112
+ }, an = { class: "flex items-center" }, ln = ["onUpdate:modelValue", "required"], on = { class: "ml-1.5" }, un = { class: "mt-4 flex flex-row-reverse gap-2" }, cn = /* @__PURE__ */ g({
2085
2113
  __name: "ConfirmModal",
2086
2114
  props: {
2087
2115
  title: {},
@@ -2095,44 +2123,44 @@ const sn = {
2095
2123
  required: { type: Boolean }
2096
2124
  },
2097
2125
  setup(t, { expose: s }) {
2098
- const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText: l } = tn(e);
2126
+ const e = W(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText: o } = rn(e);
2099
2127
  return s(), (d, v) => (u(), h(se, {
2100
- title: o(n),
2101
- "title-hidden": o(a),
2128
+ title: l(n),
2129
+ "title-hidden": l(a),
2102
2130
  persistent: ""
2103
2131
  }, {
2104
2132
  default: f(({ close: $ }) => [
2105
- p(wt, {
2106
- form: o(r),
2107
- onSubmit: (m) => $([!0, o(r).data()])
2133
+ p($t, {
2134
+ form: l(r),
2135
+ onSubmit: (m) => $([!0, l(r).data()])
2108
2136
  }, {
2109
2137
  default: f(() => [
2110
- p(P, {
2138
+ p(A, {
2111
2139
  text: d.message,
2112
2140
  actions: d.actions
2113
2141
  }, null, 8, ["text", "actions"]),
2114
- d.checkboxes ? (u(), b("ul", sn, [
2142
+ d.checkboxes ? (u(), b("ul", nn, [
2115
2143
  (u(!0), b(D, null, F(d.checkboxes, (m, C) => (u(), b("li", { key: C }, [
2116
- y("label", rn, [
2144
+ y("label", an, [
2117
2145
  Ke(y("input", {
2118
- "onUpdate:modelValue": (L) => o(r)[C] = L,
2146
+ "onUpdate:modelValue": (L) => l(r)[C] = L,
2119
2147
  type: "checkbox",
2120
2148
  required: m.required,
2121
2149
  class: "border-primary-600 text-primary-600 hover:bg-primary-50 hover:checked:bg-primary-500 focus:ring-primary-600 focus-visible:ring-primary-600 rounded border-2"
2122
- }, null, 8, nn), [
2123
- [It, o(r)[C]]
2150
+ }, null, 8, ln), [
2151
+ [zt, l(r)[C]]
2124
2152
  ]),
2125
- y("span", an, x(m.label), 1)
2153
+ y("span", on, x(m.label), 1)
2126
2154
  ])
2127
2155
  ]))), 128))
2128
2156
  ])) : T("", !0),
2129
- y("div", ln, [
2157
+ y("div", un, [
2130
2158
  p(q, {
2131
2159
  variant: d.acceptVariant,
2132
2160
  submit: ""
2133
2161
  }, {
2134
2162
  default: f(() => [
2135
- I(x(o(i)), 1)
2163
+ I(x(l(i)), 1)
2136
2164
  ]),
2137
2165
  _: 1
2138
2166
  }, 8, ["variant"]),
@@ -2142,7 +2170,7 @@ const sn = {
2142
2170
  onClick: (m) => $(!1)
2143
2171
  }, {
2144
2172
  default: f(() => [
2145
- I(x(o(l)), 1)
2173
+ I(x(l(o)), 1)
2146
2174
  ]),
2147
2175
  _: 2
2148
2176
  }, 1032, ["variant", "onClick"]))
@@ -2154,92 +2182,92 @@ const sn = {
2154
2182
  _: 1
2155
2183
  }, 8, ["title", "title-hidden"]));
2156
2184
  }
2157
- }), un = {
2185
+ }), dn = {
2158
2186
  viewBox: "0 0 20 20",
2159
2187
  width: "1.2em",
2160
2188
  height: "1.2em"
2161
2189
  };
2162
- function cn(t, s) {
2163
- return u(), b("svg", un, s[0] || (s[0] = [
2190
+ function pn(t, s) {
2191
+ return u(), b("svg", dn, s[0] || (s[0] = [
2164
2192
  y("path", {
2165
2193
  fill: "currentColor",
2166
2194
  d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
2167
2195
  }, null, -1)
2168
2196
  ]));
2169
2197
  }
2170
- const dn = E({ name: "zondicons-cheveron-left", render: cn }), pn = {
2198
+ const mn = E({ name: "zondicons-cheveron-left", render: pn }), fn = {
2171
2199
  viewBox: "0 0 20 20",
2172
2200
  width: "1.2em",
2173
2201
  height: "1.2em"
2174
2202
  };
2175
- function mn(t, s) {
2176
- return u(), b("svg", pn, s[0] || (s[0] = [
2203
+ function hn(t, s) {
2204
+ return u(), b("svg", fn, s[0] || (s[0] = [
2177
2205
  y("path", {
2178
2206
  fill: "currentColor",
2179
2207
  d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
2180
2208
  }, null, -1)
2181
2209
  ]));
2182
2210
  }
2183
- const $t = E({ name: "zondicons-cheveron-right", render: mn }), fn = {
2211
+ const _t = E({ name: "zondicons-cheveron-right", render: hn }), gn = {
2184
2212
  viewBox: "0 0 20 20",
2185
2213
  width: "1.2em",
2186
2214
  height: "1.2em"
2187
2215
  };
2188
- function hn(t, s) {
2189
- return u(), b("svg", fn, s[0] || (s[0] = [
2216
+ function vn(t, s) {
2217
+ return u(), b("svg", gn, s[0] || (s[0] = [
2190
2218
  y("path", {
2191
2219
  fill: "currentColor",
2192
2220
  d: "M2.93 17.07A10 10 0 1 1 17.07 2.93A10 10 0 0 1 2.93 17.07M9 5v6h2V5zm0 8v2h2v-2z"
2193
2221
  }, null, -1)
2194
2222
  ]));
2195
2223
  }
2196
- const qe = E({ name: "zondicons-exclamation-solid", render: hn }), gn = {
2224
+ const qe = E({ name: "zondicons-exclamation-solid", render: vn }), bn = {
2197
2225
  viewBox: "0 0 24 24",
2198
2226
  width: "1.2em",
2199
2227
  height: "1.2em"
2200
2228
  };
2201
- function vn(t, s) {
2202
- return u(), b("svg", gn, s[0] || (s[0] = [
2229
+ function yn(t, s) {
2230
+ return u(), b("svg", bn, s[0] || (s[0] = [
2203
2231
  y("path", {
2204
2232
  fill: "currentColor",
2205
2233
  d: "M20 19V7H4v12zm0-16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-7 14v-2h5v2zm-3.42-4L5.57 9H8.4l3.3 3.3c.39.39.39 1.03 0 1.42L8.42 17H5.59z"
2206
2234
  }, null, -1)
2207
2235
  ]));
2208
2236
  }
2209
- const bn = E({ name: "mdi-console", render: vn }), yn = {
2237
+ const wn = E({ name: "mdi-console", render: yn }), $n = {
2210
2238
  viewBox: "0 0 20 20",
2211
2239
  width: "1.2em",
2212
2240
  height: "1.2em"
2213
2241
  };
2214
- function wn(t, s) {
2215
- return u(), b("svg", yn, s[0] || (s[0] = [
2242
+ function _n(t, s) {
2243
+ return u(), b("svg", $n, s[0] || (s[0] = [
2216
2244
  y("path", {
2217
2245
  fill: "currentColor",
2218
2246
  d: "M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2zm2 0h4a2 2 0 0 1 2 2v4h4V2H8zM2 8v10h10V8z"
2219
2247
  }, null, -1)
2220
2248
  ]));
2221
2249
  }
2222
- const $n = E({ name: "zondicons-copy", render: wn }), _n = {
2250
+ const xn = E({ name: "zondicons-copy", render: _n }), Cn = {
2223
2251
  viewBox: "0 0 24 24",
2224
2252
  width: "1.2em",
2225
2253
  height: "1.2em"
2226
2254
  };
2227
- function xn(t, s) {
2228
- return u(), b("svg", _n, s[0] || (s[0] = [
2255
+ function kn(t, s) {
2256
+ return u(), b("svg", Cn, s[0] || (s[0] = [
2229
2257
  y("path", {
2230
2258
  fill: "currentColor",
2231
2259
  d: "M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"
2232
2260
  }, null, -1)
2233
2261
  ]));
2234
2262
  }
2235
- const Cn = E({ name: "mdi-github", render: xn }), kn = { class: "flex" }, Sn = { class: "sr-only" }, Tn = /* @__PURE__ */ g({
2263
+ const Sn = E({ name: "mdi-github", render: kn }), Tn = { class: "flex" }, Mn = { class: "sr-only" }, Hn = /* @__PURE__ */ g({
2236
2264
  __name: "ErrorReportModalButtons",
2237
2265
  props: {
2238
2266
  report: {}
2239
2267
  },
2240
2268
  setup(t) {
2241
2269
  const s = t, e = c(() => s.report.description ? `${s.report.title}: ${s.report.description}` : s.report.title), r = c(() => {
2242
- if (!A.sourceUrl)
2270
+ if (!P.sourceUrl)
2243
2271
  return !1;
2244
2272
  const a = encodeURIComponent(e.value), i = encodeURIComponent(
2245
2273
  [
@@ -2247,21 +2275,21 @@ const Cn = E({ name: "mdi-github", render: xn }), kn = { class: "flex" }, Sn = {
2247
2275
  "",
2248
2276
  "Error details:",
2249
2277
  "```",
2250
- Qt(
2278
+ Zt(
2251
2279
  s.report.details ?? "Details missing from report",
2252
- 1800 - a.length - A.sourceUrl.length
2280
+ 1800 - a.length - P.sourceUrl.length
2253
2281
  ).trim(),
2254
2282
  "```"
2255
2283
  ].join(`
2256
2284
  `)
2257
2285
  );
2258
- return `${A.sourceUrl}/issues/new?title=${a}&body=${i}`;
2286
+ return `${P.sourceUrl}/issues/new?title=${a}&body=${i}`;
2259
2287
  }), n = c(() => ee(
2260
2288
  [
2261
2289
  {
2262
2290
  id: "clipboard",
2263
2291
  description: "Copy to clipboard",
2264
- iconComponent: $n,
2292
+ iconComponent: xn,
2265
2293
  async click() {
2266
2294
  await navigator.clipboard.writeText(`${e.value}
2267
2295
 
@@ -2271,7 +2299,7 @@ ${s.report.details}`), z.toast(S("errors.copiedToClipboard", "Debug information
2271
2299
  {
2272
2300
  id: "console",
2273
2301
  description: "Log to console",
2274
- iconComponent: bn,
2302
+ iconComponent: wn,
2275
2303
  click() {
2276
2304
  const a = s.report.error ?? s.report;
2277
2305
  window.error = a, console.error(a), z.toast(
@@ -2287,24 +2315,24 @@ ${s.report.details}`), z.toast(S("errors.copiedToClipboard", "Debug information
2287
2315
  r.value && a.push({
2288
2316
  id: "github",
2289
2317
  description: "Report in GitHub",
2290
- iconComponent: Cn,
2318
+ iconComponent: Sn,
2291
2319
  url: r.value
2292
2320
  });
2293
2321
  }
2294
2322
  ));
2295
- return (a, i) => (u(), b("div", kn, [
2296
- (u(!0), b(D, null, F(n.value, (l) => w(a.$slots, "default", H({ ref_for: !0 }, l), () => [
2323
+ return (a, i) => (u(), b("div", Tn, [
2324
+ (u(!0), b(D, null, F(n.value, (o) => w(a.$slots, "default", H({ ref_for: !0 }, o), () => [
2297
2325
  p(q, {
2298
2326
  size: "icon",
2299
2327
  variant: "ghost",
2300
2328
  class: "group whitespace-nowrap",
2301
- href: l.url,
2302
- title: a.$td(`errors.report_${l.id}`, l.description),
2303
- onClick: l.click
2329
+ href: o.url,
2330
+ title: a.$td(`errors.report_${o.id}`, o.description),
2331
+ onClick: o.click
2304
2332
  }, {
2305
2333
  default: f(() => [
2306
- y("span", Sn, x(a.$td(`errors.report_${l.id}`, l.description)), 1),
2307
- (u(), h(W(l.iconComponent), {
2334
+ y("span", Mn, x(a.$td(`errors.report_${o.id}`, o.description)), 1),
2335
+ (u(), h(K(o.iconComponent), {
2308
2336
  class: "size-4",
2309
2337
  "aria-hidden": "true"
2310
2338
  }))
@@ -2314,7 +2342,7 @@ ${s.report.details}`), z.toast(S("errors.copiedToClipboard", "Debug information
2314
2342
  ])), 256))
2315
2343
  ]));
2316
2344
  }
2317
- }), Mn = /* @__PURE__ */ g({
2345
+ }), En = /* @__PURE__ */ g({
2318
2346
  __name: "ErrorReportModalTitle",
2319
2347
  props: {
2320
2348
  report: {},
@@ -2323,13 +2351,13 @@ ${s.report.details}`), z.toast(S("errors.copiedToClipboard", "Debug information
2323
2351
  },
2324
2352
  setup(t) {
2325
2353
  const s = c(() => !t.totalReports || t.totalReports <= 1 ? t.report.title : `${t.report.title} (${t.currentReport}/${t.totalReports})`);
2326
- return (e, r) => (u(), h(P, {
2354
+ return (e, r) => (u(), h(A, {
2327
2355
  text: s.value,
2328
2356
  inline: ""
2329
2357
  }, null, 8, ["text"]));
2330
2358
  }
2331
2359
  });
2332
- function Hn(t) {
2360
+ function Vn(t) {
2333
2361
  const s = U(t.reports.includes(t.report) ? t.reports.indexOf(t.report) : 0), e = c(() => t.reports[s.value]), r = c(
2334
2362
  () => {
2335
2363
  var i;
@@ -2344,17 +2372,17 @@ function Hn(t) {
2344
2372
  activeReport: e
2345
2373
  };
2346
2374
  }
2347
- const En = { class: "px-4 pt-5 pb-4" }, Vn = { class: "flex justify-between gap-4" }, Ln = { class: "flex items-center gap-2" }, In = {
2375
+ const Ln = { class: "px-4 pt-5 pb-4" }, In = { class: "flex justify-between gap-4" }, qn = { class: "flex items-center gap-2" }, zn = {
2348
2376
  key: 0,
2349
2377
  class: "flex gap-0.5"
2350
- }, qn = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, zn = ["textContent"], Rn = /* @__PURE__ */ g({
2378
+ }, Rn = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, An = ["textContent"], Pn = /* @__PURE__ */ g({
2351
2379
  __name: "ErrorReportModal",
2352
2380
  props: {
2353
2381
  report: {},
2354
2382
  reports: {}
2355
2383
  },
2356
2384
  setup(t, { expose: s }) {
2357
- const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport: l } = Hn(e);
2385
+ const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport: o } = Vn(e);
2358
2386
  return s(), (d, v) => (u(), h(se, {
2359
2387
  title: d.$td("errors.report", "Error report"),
2360
2388
  "title-hidden": "",
@@ -2363,73 +2391,73 @@ const En = { class: "px-4 pt-5 pb-4" }, Vn = { class: "flex justify-between gap-
2363
2391
  "wrapper-class": "sm:w-auto sm:min-w-lg sm:max-w-[80vw]"
2364
2392
  }, {
2365
2393
  default: f(() => [
2366
- y("div", En, [
2367
- y("h2", Vn, [
2368
- y("div", Ln, [
2369
- p(o(qe), { class: "size-5 text-red-600" }),
2370
- p(Mn, {
2394
+ y("div", Ln, [
2395
+ y("h2", In, [
2396
+ y("div", qn, [
2397
+ p(l(qe), { class: "size-5 text-red-600" }),
2398
+ p(En, {
2371
2399
  class: "text-lg leading-6 font-semibold text-gray-900",
2372
- report: o(l),
2373
- "current-report": o(r) + 1,
2400
+ report: l(o),
2401
+ "current-report": l(r) + 1,
2374
2402
  "total-reports": d.reports.length
2375
2403
  }, null, 8, ["report", "current-report", "total-reports"]),
2376
- d.reports.length > 1 ? (u(), b("span", In, [
2404
+ d.reports.length > 1 ? (u(), b("span", zn, [
2377
2405
  p(q, {
2378
2406
  size: "icon",
2379
2407
  variant: "ghost",
2380
- disabled: o(r) === 0,
2381
- "aria-label": o(i),
2382
- title: o(i),
2408
+ disabled: l(r) === 0,
2409
+ "aria-label": l(i),
2410
+ title: l(i),
2383
2411
  onClick: v[0] || (v[0] = ($) => r.value--)
2384
2412
  }, {
2385
2413
  default: f(() => [
2386
- p(o(dn), { class: "size-4" })
2414
+ p(l(mn), { class: "size-4" })
2387
2415
  ]),
2388
2416
  _: 1
2389
2417
  }, 8, ["disabled", "aria-label", "title"]),
2390
2418
  p(q, {
2391
2419
  size: "icon",
2392
2420
  variant: "ghost",
2393
- disabled: o(r) === d.reports.length - 1,
2394
- "aria-label": o(a),
2395
- title: o(a),
2421
+ disabled: l(r) === d.reports.length - 1,
2422
+ "aria-label": l(a),
2423
+ title: l(a),
2396
2424
  onClick: v[1] || (v[1] = ($) => r.value++)
2397
2425
  }, {
2398
2426
  default: f(() => [
2399
- p(o($t), { class: "size-4" })
2427
+ p(l(_t), { class: "size-4" })
2400
2428
  ]),
2401
2429
  _: 1
2402
2430
  }, 8, ["disabled", "aria-label", "title"])
2403
2431
  ])) : T("", !0)
2404
2432
  ]),
2405
- p(Tn, {
2406
- report: o(l),
2433
+ p(Hn, {
2434
+ report: l(o),
2407
2435
  class: "gap-0.5"
2408
2436
  }, null, 8, ["report"])
2409
2437
  ]),
2410
- o(l).description ? (u(), h(P, {
2438
+ l(o).description ? (u(), h(A, {
2411
2439
  key: 0,
2412
- text: o(l).description,
2440
+ text: l(o).description,
2413
2441
  class: "text-gray-600"
2414
2442
  }, null, 8, ["text"])) : T("", !0)
2415
2443
  ]),
2416
- y("div", qn, [
2444
+ y("div", Rn, [
2417
2445
  y("pre", {
2418
2446
  class: "p-4 text-xs text-red-800",
2419
- textContent: x(o(n))
2420
- }, null, 8, zn)
2447
+ textContent: x(l(n))
2448
+ }, null, 8, An)
2421
2449
  ])
2422
2450
  ]),
2423
2451
  _: 1
2424
2452
  }, 8, ["title"]));
2425
2453
  }
2426
- }), Pn = {
2454
+ }), Dn = {
2427
2455
  viewBox: "0 0 24 24",
2428
2456
  width: "1.2em",
2429
2457
  height: "1.2em"
2430
2458
  };
2431
- function An(t, s) {
2432
- return u(), b("svg", Pn, s[0] || (s[0] = [
2459
+ function jn(t, s) {
2460
+ return u(), b("svg", Dn, s[0] || (s[0] = [
2433
2461
  y("path", {
2434
2462
  fill: "currentColor",
2435
2463
  d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",
@@ -2449,7 +2477,7 @@ function An(t, s) {
2449
2477
  ], -1)
2450
2478
  ]));
2451
2479
  }
2452
- const Dn = E({ name: "svg-spinners-90-ring-with-bg", render: An }), jn = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, Bn = { class: "sr-only" }, Fn = /* @__PURE__ */ g({
2480
+ const Bn = E({ name: "svg-spinners-90-ring-with-bg", render: jn }), Fn = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, Un = { class: "sr-only" }, On = /* @__PURE__ */ g({
2453
2481
  __name: "ProgressBar",
2454
2482
  props: {
2455
2483
  filledClass: {},
@@ -2465,24 +2493,24 @@ const Dn = E({ name: "svg-spinners-90-ring-with-bg", render: An }), jn = { class
2465
2493
  s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (a) => e.value = a });
2466
2494
  },
2467
2495
  { immediate: !0 }
2468
- ), ge(() => s && s()), (a, i) => (u(), b("div", jn, [
2496
+ ), ge(() => s && s()), (a, i) => (u(), b("div", Fn, [
2469
2497
  y("div", {
2470
2498
  class: k(r.value),
2471
- style: qt(`transform:translateX(-${(1 - n.value) * 100}%)`)
2499
+ style: Rt(`transform:translateX(-${(1 - n.value) * 100}%)`)
2472
2500
  }, null, 6),
2473
- y("span", Bn, x(a.$td("ui.progress", "{progress}% complete", {
2501
+ y("span", Un, x(a.$td("ui.progress", "{progress}% complete", {
2474
2502
  progress: n.value * 100
2475
2503
  })), 1)
2476
2504
  ]));
2477
2505
  }
2478
2506
  });
2479
- function Un(t) {
2507
+ function Nn(t) {
2480
2508
  const s = c(() => t.title ?? S("ui.loading", "Loading")), e = c(
2481
2509
  () => t.message ?? S("ui.loadingInProgress", "Loading in progress...")
2482
2510
  ), r = c(() => typeof t.progress == "number" || !!t.job), n = c(() => !t.title);
2483
2511
  return { renderedTitle: s, renderedMessage: e, titleHidden: n, showProgress: r };
2484
2512
  }
2485
- const On = /* @__PURE__ */ g({
2513
+ const Wn = /* @__PURE__ */ g({
2486
2514
  __name: "LoadingModal",
2487
2515
  props: {
2488
2516
  title: {},
@@ -2491,25 +2519,25 @@ const On = /* @__PURE__ */ g({
2491
2519
  job: {}
2492
2520
  },
2493
2521
  setup(t, { expose: s }) {
2494
- const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: i } = Un(e);
2495
- return s(), (l, d) => (u(), h(se, {
2522
+ const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: i } = Nn(e);
2523
+ return s(), (o, d) => (u(), h(se, {
2496
2524
  persistent: "",
2497
- class: k(["flex", { "flex-col-reverse": o(i), "items-center justify-center gap-2": !o(i) }]),
2525
+ class: k(["flex", { "flex-col-reverse": l(i), "items-center justify-center gap-2": !l(i) }]),
2498
2526
  "wrapper-class": "w-auto",
2499
- title: o(r),
2500
- "title-hidden": o(a)
2527
+ title: l(r),
2528
+ "title-hidden": l(a)
2501
2529
  }, {
2502
2530
  default: f(() => [
2503
- o(i) ? (u(), h(Fn, {
2531
+ l(i) ? (u(), h(On, {
2504
2532
  key: 0,
2505
- progress: l.progress,
2506
- job: l.job,
2533
+ progress: o.progress,
2534
+ job: o.job,
2507
2535
  class: "min-w-[min(400px,80vw)]"
2508
- }, null, 8, ["progress", "job"])) : (u(), h(o(Dn), {
2536
+ }, null, 8, ["progress", "job"])) : (u(), h(l(Bn), {
2509
2537
  key: 1,
2510
2538
  class: "text-primary-600 mr-1 size-6"
2511
2539
  })),
2512
- p(P, { text: o(n) }, null, 8, ["text"])
2540
+ p(A, { text: l(n) }, null, 8, ["text"])
2513
2541
  ]),
2514
2542
  _: 1
2515
2543
  }, 8, ["title", "title-hidden", "class"]));
@@ -2536,35 +2564,35 @@ const On = /* @__PURE__ */ g({
2536
2564
  if (!(!t.name || !n))
2537
2565
  return n.getFieldRules(t.name).includes("required");
2538
2566
  }),
2539
- update(l) {
2567
+ update(o) {
2540
2568
  if (n && t.name) {
2541
- n.setFieldValue(t.name, l);
2569
+ n.setFieldValue(t.name, o);
2542
2570
  return;
2543
2571
  }
2544
- r("update:modelValue", l);
2572
+ r("update:modelValue", o);
2545
2573
  }
2546
2574
  };
2547
- return le("input", i), s(i), (l, d) => (u(), h(W(l.as), null, {
2575
+ return le("input", i), s(i), (o, d) => (u(), h(K(o.as), null, {
2548
2576
  default: f(() => [
2549
- w(l.$slots, "default")
2577
+ w(o.$slots, "default")
2550
2578
  ]),
2551
2579
  _: 3
2552
2580
  }));
2553
2581
  }
2554
- }), Nn = ["for"], fe = /* @__PURE__ */ g({
2582
+ }), Kn = ["for"], fe = /* @__PURE__ */ g({
2555
2583
  __name: "HeadlessInputLabel",
2556
2584
  setup(t) {
2557
2585
  const s = V("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = He(), r = c(() => !!(s.label || e.default));
2558
2586
  return (n, a) => r.value ? (u(), b("label", {
2559
2587
  key: 0,
2560
- for: o(s).id
2588
+ for: l(s).id
2561
2589
  }, [
2562
2590
  w(n.$slots, "default", {}, () => [
2563
- I(x(o(s).label), 1)
2591
+ I(x(l(s).label), 1)
2564
2592
  ])
2565
- ], 8, Nn)) : T("", !0);
2593
+ ], 8, Kn)) : T("", !0);
2566
2594
  }
2567
- }), Wn = ["id", "name", "checked", "type", "required", "aria-invalid", "aria-describedby"], _t = /* @__PURE__ */ g({
2595
+ }), Qn = ["id", "name", "checked", "type", "required", "aria-invalid", "aria-describedby"], xt = /* @__PURE__ */ g({
2568
2596
  __name: "HeadlessInputInput",
2569
2597
  props: {
2570
2598
  type: {}
@@ -2575,7 +2603,7 @@ const On = /* @__PURE__ */ g({
2575
2603
  return t.type;
2576
2604
  const $ = (n.value && (r == null ? void 0 : r.getFieldType(n.value))) ?? "";
2577
2605
  return ["text", "email", "number", "tel", "url"].includes($) ? $ : "text";
2578
- }), l = c(() => {
2606
+ }), o = c(() => {
2579
2607
  if (t.type === "checkbox")
2580
2608
  return !!a.value;
2581
2609
  });
@@ -2594,7 +2622,7 @@ const On = /* @__PURE__ */ g({
2594
2622
  return s.value.value;
2595
2623
  }
2596
2624
  }
2597
- return it(e, () => {
2625
+ return st(e, () => {
2598
2626
  var $;
2599
2627
  return ($ = s.value) == null ? void 0 : $.focus();
2600
2628
  }), Y(() => {
@@ -2606,18 +2634,18 @@ const On = /* @__PURE__ */ g({
2606
2634
  s.value.value = a.value ?? null;
2607
2635
  }
2608
2636
  }), ($, m) => (u(), b("input", {
2609
- id: o(e).id,
2637
+ id: l(e).id,
2610
2638
  ref: "$inputRef",
2611
2639
  name: n.value,
2612
- checked: l.value,
2640
+ checked: o.value,
2613
2641
  type: i.value,
2614
- required: o(e).required ?? void 0,
2615
- "aria-invalid": o(e).errors ? "true" : "false",
2616
- "aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
2642
+ required: l(e).required ?? void 0,
2643
+ "aria-invalid": l(e).errors ? "true" : "false",
2644
+ "aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
2617
2645
  onInput: d
2618
- }, null, 40, Wn));
2646
+ }, null, 40, Qn));
2619
2647
  }
2620
- }), xt = /* @__PURE__ */ g({
2648
+ }), Ct = /* @__PURE__ */ g({
2621
2649
  inheritAttrs: !1,
2622
2650
  __name: "HeadlessInputDescription",
2623
2651
  setup(t) {
@@ -2626,27 +2654,27 @@ const On = /* @__PURE__ */ g({
2626
2654
  "<HeadlessInputDescription> must be a child of a <HeadlessInput>"
2627
2655
  ), e = c(() => typeof s.description == "string" ? s.description : ""), r = c(() => !!s.description);
2628
2656
  return (n, a) => w(n.$slots, "default", {
2629
- id: `${o(s).id}-description`
2657
+ id: `${l(s).id}-description`
2630
2658
  }, () => [
2631
- r.value ? (u(), h(P, H({ key: 0 }, n.$attrs, {
2632
- id: `${o(s).id}-description`,
2659
+ r.value ? (u(), h(A, H({ key: 0 }, n.$attrs, {
2660
+ id: `${l(s).id}-description`,
2633
2661
  text: e.value
2634
2662
  }), null, 16, ["id", "text"])) : T("", !0)
2635
2663
  ]);
2636
2664
  }
2637
- }), Kn = ["id"], he = /* @__PURE__ */ g({
2665
+ }), Jn = ["id"], he = /* @__PURE__ */ g({
2638
2666
  __name: "HeadlessInputError",
2639
2667
  setup(t) {
2640
2668
  const s = V("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = c(() => s.errors ? S(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
2641
2669
  return (r, n) => e.value ? (u(), b("p", {
2642
2670
  key: 0,
2643
- id: `${o(s).id}-error`
2644
- }, x(e.value), 9, Kn)) : T("", !0);
2671
+ id: `${l(s).id}-error`
2672
+ }, x(e.value), 9, Jn)) : T("", !0);
2645
2673
  }
2646
- }), Qn = {
2674
+ }), Zn = {
2647
2675
  key: 0,
2648
2676
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
2649
- }, Jn = /* @__PURE__ */ g({
2677
+ }, Xn = /* @__PURE__ */ g({
2650
2678
  inheritAttrs: !1,
2651
2679
  __name: "Input",
2652
2680
  props: {
@@ -2659,25 +2687,25 @@ const On = /* @__PURE__ */ g({
2659
2687
  },
2660
2688
  emits: ["update:modelValue"],
2661
2689
  setup(t) {
2662
- const s = N(t, ["label", "inputClass", "wrapperClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = c(() => {
2663
- var l, d, v;
2690
+ const s = W(t, ["label", "inputClass", "wrapperClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = c(() => {
2691
+ var o, d, v;
2664
2692
  return M(
2665
2693
  // eslint-disable-next-line vue/max-len
2666
2694
  "block w-full rounded-md border-0 py-1.5 ring-1 ring-inset focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6",
2667
2695
  {
2668
- "focus:ring-primary-600": !((l = e.value) != null && l.errors),
2696
+ "focus:ring-primary-600": !((o = e.value) != null && o.errors),
2669
2697
  "text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
2670
2698
  "pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
2671
2699
  },
2672
2700
  t.inputClass
2673
2701
  );
2674
2702
  });
2675
- return (l, d) => (u(), h(ze, H({
2703
+ return (o, d) => (u(), h(ze, H({
2676
2704
  ref: "$inputRef",
2677
- label: l.label,
2678
- class: o(n)
2705
+ label: o.label,
2706
+ class: l(n)
2679
2707
  }, s, {
2680
- "onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
2708
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => o.$emit("update:modelValue", v))
2681
2709
  }), {
2682
2710
  default: f(() => {
2683
2711
  var v;
@@ -2686,12 +2714,12 @@ const On = /* @__PURE__ */ g({
2686
2714
  y("div", {
2687
2715
  class: k(a.value)
2688
2716
  }, [
2689
- p(_t, H(o(r), { class: i.value }), null, 16, ["class"]),
2690
- (v = e.value) != null && v.errors ? (u(), b("div", Qn, [
2691
- p(o(qe), { class: "size-5 text-red-500" })
2717
+ p(xt, H(l(r), { class: i.value }), null, 16, ["class"]),
2718
+ (v = e.value) != null && v.errors ? (u(), b("div", Zn, [
2719
+ p(l(qe), { class: "size-5 text-red-500" })
2692
2720
  ])) : T("", !0)
2693
2721
  ], 2),
2694
- p(xt, { class: "mt-2 text-sm text-gray-600" }),
2722
+ p(Ct, { class: "mt-2 text-sm text-gray-600" }),
2695
2723
  p(he, { class: "mt-2 text-sm text-red-600" })
2696
2724
  ];
2697
2725
  }),
@@ -2699,21 +2727,21 @@ const On = /* @__PURE__ */ g({
2699
2727
  }, 16, ["label", "class"]));
2700
2728
  }
2701
2729
  });
2702
- function wl(t, s = {}) {
2730
+ function xl(t, s = {}) {
2703
2731
  return {
2704
2732
  default: t,
2705
2733
  type: "boolean",
2706
2734
  rules: s.rules
2707
2735
  };
2708
2736
  }
2709
- function $l(t, s = {}) {
2737
+ function Cl(t, s = {}) {
2710
2738
  return {
2711
2739
  default: t,
2712
2740
  type: "date",
2713
2741
  rules: s.rules
2714
2742
  };
2715
2743
  }
2716
- function _l(t, s, e = {}) {
2744
+ function kl(t, s, e = {}) {
2717
2745
  return {
2718
2746
  default: s,
2719
2747
  type: "enum",
@@ -2721,21 +2749,21 @@ function _l(t, s, e = {}) {
2721
2749
  values: t
2722
2750
  };
2723
2751
  }
2724
- function xl(t) {
2752
+ function Sl(t) {
2725
2753
  return {
2726
2754
  default: t,
2727
2755
  type: "boolean",
2728
2756
  rules: "required"
2729
2757
  };
2730
2758
  }
2731
- function Cl(t) {
2759
+ function Tl(t) {
2732
2760
  return {
2733
2761
  default: t,
2734
2762
  type: "date",
2735
2763
  rules: "required"
2736
2764
  };
2737
2765
  }
2738
- function kl(t, s) {
2766
+ function Ml(t, s) {
2739
2767
  return {
2740
2768
  default: s,
2741
2769
  type: "enum",
@@ -2743,55 +2771,55 @@ function kl(t, s) {
2743
2771
  values: t
2744
2772
  };
2745
2773
  }
2746
- function Sl(t) {
2774
+ function Hl(t) {
2747
2775
  return {
2748
2776
  default: t,
2749
2777
  type: "number",
2750
2778
  rules: "required"
2751
2779
  };
2752
2780
  }
2753
- function Tl(t) {
2781
+ function El(t) {
2754
2782
  return {
2755
2783
  default: t,
2756
2784
  type: "object",
2757
2785
  rules: "required"
2758
2786
  };
2759
2787
  }
2760
- function Zn(t) {
2788
+ function Yn(t) {
2761
2789
  return {
2762
2790
  default: t,
2763
2791
  type: "string",
2764
2792
  rules: "required"
2765
2793
  };
2766
2794
  }
2767
- function Ml(t, s = {}) {
2795
+ function Vl(t, s = {}) {
2768
2796
  return {
2769
2797
  default: t,
2770
2798
  type: "number",
2771
2799
  rules: s.rules
2772
2800
  };
2773
2801
  }
2774
- function Hl(t, s = {}) {
2802
+ function Ll(t, s = {}) {
2775
2803
  return {
2776
2804
  default: t,
2777
2805
  type: "object",
2778
2806
  rules: s.rules
2779
2807
  };
2780
2808
  }
2781
- function El(t, s = {}) {
2809
+ function Il(t, s = {}) {
2782
2810
  return {
2783
2811
  default: t,
2784
2812
  type: "string",
2785
2813
  rules: s.rules
2786
2814
  };
2787
2815
  }
2788
- function Xn(t) {
2789
- const s = ut({
2790
- draft: Zn(t.defaultValue ?? "")
2816
+ function Gn(t) {
2817
+ const s = rt({
2818
+ draft: Yn(t.defaultValue ?? "")
2791
2819
  }), e = c(() => t.title ?? t.message), r = c(() => t.title ? t.message : null), n = c(() => t.acceptText ?? S("ui.accept", "Ok")), a = c(() => t.cancelText ?? S("ui.cancel", "Cancel"));
2792
2820
  return { form: s, renderedTitle: e, renderedMessage: r, renderedAcceptText: n, renderedCancelText: a };
2793
2821
  }
2794
- const Yn = { class: "mt-4 flex flex-row-reverse gap-2" }, Gn = /* @__PURE__ */ g({
2822
+ const ea = { class: "mt-4 flex flex-row-reverse gap-2" }, ta = /* @__PURE__ */ g({
2795
2823
  __name: "PromptModal",
2796
2824
  props: {
2797
2825
  title: {},
@@ -2805,34 +2833,34 @@ const Yn = { class: "mt-4 flex flex-row-reverse gap-2" }, Gn = /* @__PURE__ */ g
2805
2833
  cancelVariant: { default: "secondary" }
2806
2834
  },
2807
2835
  setup(t, { expose: s }) {
2808
- const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText: l } = Xn(e);
2836
+ const e = W(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText: o } = Gn(e);
2809
2837
  return s(), (d, v) => (u(), h(se, {
2810
- title: o(n),
2838
+ title: l(n),
2811
2839
  persistent: ""
2812
2840
  }, {
2813
2841
  default: f(({ close: $ }) => [
2814
- p(wt, {
2815
- form: o(r),
2816
- onSubmit: (m) => $(o(r).draft)
2842
+ p($t, {
2843
+ form: l(r),
2844
+ onSubmit: (m) => $(l(r).draft)
2817
2845
  }, {
2818
2846
  default: f(() => [
2819
- o(a) ? (u(), h(P, {
2847
+ l(a) ? (u(), h(A, {
2820
2848
  key: 0,
2821
- text: o(a)
2849
+ text: l(a)
2822
2850
  }, null, 8, ["text"])) : T("", !0),
2823
- p(Jn, {
2851
+ p(Xn, {
2824
2852
  name: "draft",
2825
2853
  class: "mt-2",
2826
2854
  placeholder: d.placeholder,
2827
2855
  label: d.label
2828
2856
  }, null, 8, ["placeholder", "label"]),
2829
- y("div", Yn, [
2857
+ y("div", ea, [
2830
2858
  p(q, {
2831
2859
  variant: d.acceptVariant,
2832
2860
  submit: ""
2833
2861
  }, {
2834
2862
  default: f(() => [
2835
- I(x(o(i)), 1)
2863
+ I(x(l(i)), 1)
2836
2864
  ]),
2837
2865
  _: 1
2838
2866
  }, 8, ["variant"]),
@@ -2841,7 +2869,7 @@ const Yn = { class: "mt-4 flex flex-row-reverse gap-2" }, Gn = /* @__PURE__ */ g
2841
2869
  onClick: (m) => $()
2842
2870
  }, {
2843
2871
  default: f(() => [
2844
- I(x(o(l)), 1)
2872
+ I(x(l(o)), 1)
2845
2873
  ]),
2846
2874
  _: 2
2847
2875
  }, 1032, ["variant", "onClick"])
@@ -2853,59 +2881,59 @@ const Yn = { class: "mt-4 flex flex-row-reverse gap-2" }, Gn = /* @__PURE__ */ g
2853
2881
  _: 1
2854
2882
  }, 8, ["title"]));
2855
2883
  }
2856
- }), ea = {
2884
+ }), sa = {
2857
2885
  viewBox: "0 0 24 24",
2858
2886
  width: "1.2em",
2859
2887
  height: "1.2em"
2860
2888
  };
2861
- function ta(t, s) {
2862
- return u(), b("svg", ea, s[0] || (s[0] = [
2889
+ function ra(t, s) {
2890
+ return u(), b("svg", sa, s[0] || (s[0] = [
2863
2891
  y("path", {
2864
2892
  fill: "currentColor",
2865
2893
  d: "M12 21q-1.625 0-3.012-.8T6.8 18H4v-2h2.1q-.075-.5-.088-1T6 14H4v-2h2q0-.5.012-1t.088-1H4V8h2.8q.35-.575.788-1.075T8.6 6.05L7 4.4L8.4 3l2.15 2.15q.7-.225 1.425-.225t1.425.225L15.6 3L17 4.4l-1.65 1.65q.575.375 1.038.862T17.2 8H20v2h-2.1q.075.5.088 1T18 12h2v2h-2q0 .5-.013 1t-.087 1H20v2h-2.8q-.8 1.4-2.187 2.2T12 21m-2-5h4v-2h-4zm0-4h4v-2h-4z"
2866
2894
  }, null, -1)
2867
2895
  ]));
2868
2896
  }
2869
- const sa = E({ name: "material-symbols-bug-report", render: ta }), ra = {
2897
+ const na = E({ name: "material-symbols-bug-report", render: ra }), aa = {
2870
2898
  viewBox: "0 0 24 24",
2871
2899
  width: "1.2em",
2872
2900
  height: "1.2em"
2873
2901
  };
2874
- function na(t, s) {
2875
- return u(), b("svg", ra, s[0] || (s[0] = [
2902
+ function la(t, s) {
2903
+ return u(), b("svg", aa, s[0] || (s[0] = [
2876
2904
  y("path", {
2877
2905
  fill: "currentColor",
2878
2906
  d: "M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zm5-7.1l1.9 1.9q.275.275.7.275t.7-.275t.275-.7t-.275-.7l-1.9-1.9l1.9-1.9q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275L12 11.1l-1.9-1.9q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7l1.9 1.9l-1.9 1.9q-.275.275-.275.7t.275.7t.7.275t.7-.275z"
2879
2907
  }, null, -1)
2880
2908
  ]));
2881
2909
  }
2882
- const aa = E({ name: "material-symbols-delete-forever-rounded", render: na }), la = {
2910
+ const oa = E({ name: "material-symbols-delete-forever-rounded", render: la }), ia = {
2883
2911
  viewBox: "0 0 24 24",
2884
2912
  width: "1.2em",
2885
2913
  height: "1.2em"
2886
2914
  };
2887
- function oa(t, s) {
2888
- return u(), b("svg", la, s[0] || (s[0] = [
2915
+ function ua(t, s) {
2916
+ return u(), b("svg", ia, s[0] || (s[0] = [
2889
2917
  y("path", {
2890
2918
  fill: "currentColor",
2891
2919
  d: "M11.25 13.5q.95 0 1.6-.65t.65-1.6t-.65-1.6t-1.6-.65t-1.6.65t-.65 1.6t.65 1.6t1.6.65m4.825 4l-2.625-2.625q-.5.325-1.062.475t-1.138.15q-1.775 0-3.012-1.237T7 11.25t1.238-3.012T11.25 7t3.013 1.238T15.5 11.25q0 .575-.162 1.138t-.488 1.062l2.65 2.65zM5 21q-.825 0-1.412-.587T3 19v-4h2v4h4v2zm10 0v-2h4v-4h2v4q0 .825-.587 1.413T19 21zM3 9V5q0-.825.588-1.412T5 3h4v2H5v4zm16 0V5h-4V3h4q.825 0 1.413.588T21 5v4z"
2892
2920
  }, null, -1)
2893
2921
  ]));
2894
2922
  }
2895
- const ia = E({ name: "material-symbols-frame-inspect", render: oa }), ua = {
2923
+ const ca = E({ name: "material-symbols-frame-inspect", render: ua }), da = {
2896
2924
  viewBox: "0 0 24 24",
2897
2925
  width: "1.2em",
2898
2926
  height: "1.2em"
2899
2927
  };
2900
- function ca(t, s) {
2901
- return u(), b("svg", ua, s[0] || (s[0] = [
2928
+ function pa(t, s) {
2929
+ return u(), b("svg", da, s[0] || (s[0] = [
2902
2930
  y("path", {
2903
2931
  fill: "currentColor",
2904
2932
  d: "M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20"
2905
2933
  }, null, -1)
2906
2934
  ]));
2907
2935
  }
2908
- const da = E({ name: "material-symbols-refresh-rounded", render: ca }), pa = { class: "grid grow place-items-center" }, ma = { class: "flex flex-col items-center p-8" }, fa = { class: "mt-0 mb-0 text-center text-4xl font-medium text-red-600" }, ha = { class: "mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2 [&_button]:justify-start sm:[&_button]:size-32 sm:[&_button]:flex-col sm:[&_button]:justify-center [&_svg]:size-6 sm:[&_svg]:size-8" }, ga = /* @__PURE__ */ g({
2936
+ const ma = E({ name: "material-symbols-refresh-rounded", render: pa }), fa = { class: "grid grow place-items-center" }, ha = { class: "flex flex-col items-center p-8" }, ga = { class: "mt-0 mb-0 text-center text-4xl font-medium text-red-600" }, va = { class: "mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2 [&_button]:justify-start sm:[&_button]:size-32 sm:[&_button]:flex-col sm:[&_button]:justify-center [&_svg]:size-6 sm:[&_svg]:size-8" }, ba = /* @__PURE__ */ g({
2909
2937
  __name: "StartupCrash",
2910
2938
  setup(t) {
2911
2939
  async function s() {
@@ -2921,28 +2949,28 @@ Do you still want to proceed?`
2921
2949
  acceptVariant: "danger",
2922
2950
  acceptText: S("startupCrash.purgeConfirmAccept", "Purge device")
2923
2951
  }
2924
- ) && (await et.purge(), await A.reload());
2952
+ ) && (await at.purge(), await P.reload());
2925
2953
  }
2926
2954
  return (e, r) => {
2927
- const n = zt("i-majesticons-exclamation");
2928
- return u(), b("div", pa, [
2929
- y("div", ma, [
2955
+ const n = At("i-majesticons-exclamation");
2956
+ return u(), b("div", fa, [
2957
+ y("div", ha, [
2930
2958
  p(n, { class: "size-20 text-red-600" }),
2931
- y("h1", fa, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
2932
- p(P, {
2959
+ y("h1", ga, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
2960
+ p(A, {
2933
2961
  text: e.$td(
2934
2962
  "startupCrash.message",
2935
2963
  "There was a problem starting the application, but here's some things you can do:"
2936
2964
  ),
2937
2965
  class: "mt-4 text-center"
2938
2966
  }, null, 8, ["text"]),
2939
- y("div", ha, [
2967
+ y("div", va, [
2940
2968
  p(q, {
2941
2969
  variant: "danger",
2942
2970
  onClick: r[0] || (r[0] = (a) => e.$app.reload())
2943
2971
  }, {
2944
2972
  default: f(() => [
2945
- p(o(da)),
2973
+ p(l(ma)),
2946
2974
  I(" " + x(e.$td("startupCrash.reload", "Try again")), 1)
2947
2975
  ]),
2948
2976
  _: 1
@@ -2952,7 +2980,7 @@ Do you still want to proceed?`
2952
2980
  onClick: r[1] || (r[1] = (a) => e.$errors.inspect(e.$errors.startupErrors))
2953
2981
  }, {
2954
2982
  default: f(() => [
2955
- p(o(sa)),
2983
+ p(l(na)),
2956
2984
  I(" " + x(e.$td("startupCrash.inspect", "View error details")), 1)
2957
2985
  ]),
2958
2986
  _: 1
@@ -2962,7 +2990,7 @@ Do you still want to proceed?`
2962
2990
  onClick: r[2] || (r[2] = (a) => s())
2963
2991
  }, {
2964
2992
  default: f(() => [
2965
- p(o(aa)),
2993
+ p(l(oa)),
2966
2994
  I(" " + x(e.$td("startupCrash.purge", "Purge device")), 1)
2967
2995
  ]),
2968
2996
  _: 1
@@ -2972,7 +3000,7 @@ Do you still want to proceed?`
2972
3000
  onClick: r[3] || (r[3] = (a) => e.$errors.debug = !e.$errors.debug)
2973
3001
  }, {
2974
3002
  default: f(() => [
2975
- p(o(ia)),
3003
+ p(l(ca)),
2976
3004
  I(" " + x(e.$td("startupCrash.debug", "Toggle debugging")), 1)
2977
3005
  ]),
2978
3006
  _: 1
@@ -2982,13 +3010,13 @@ Do you still want to proceed?`
2982
3010
  ]);
2983
3011
  };
2984
3012
  }
2985
- }), Ct = /* @__PURE__ */ g({
3013
+ }), kt = /* @__PURE__ */ g({
2986
3014
  __name: "HeadlessToastAction",
2987
3015
  props: {
2988
3016
  action: {}
2989
3017
  },
2990
3018
  setup(t) {
2991
- return (s, e) => (u(), h(W(s.action.dismiss ? o(ks) : "button"), {
3019
+ return (s, e) => (u(), h(K(s.action.dismiss ? l(Ts) : "button"), {
2992
3020
  type: "button",
2993
3021
  onClick: s.action.click
2994
3022
  }, {
@@ -2998,7 +3026,7 @@ Do you still want to proceed?`
2998
3026
  _: 1
2999
3027
  }, 8, ["onClick"]));
3000
3028
  }
3001
- }), va = { key: 0 }, ba = /* @__PURE__ */ g({
3029
+ }), ya = { key: 0 }, wa = /* @__PURE__ */ g({
3002
3030
  __name: "HeadlessToast",
3003
3031
  props: {
3004
3032
  message: {},
@@ -3006,11 +3034,11 @@ Do you still want to proceed?`
3006
3034
  variant: {}
3007
3035
  },
3008
3036
  setup(t) {
3009
- return (s, e) => (u(), h(o(Ss), null, {
3037
+ return (s, e) => (u(), h(l(Ms), null, {
3010
3038
  default: f(() => [
3011
3039
  w(s.$slots, "default", {}, () => [
3012
- s.message ? (u(), b("span", va, x(s.message), 1)) : T("", !0),
3013
- (u(!0), b(D, null, F(s.actions, (r, n) => (u(), h(Ct, {
3040
+ s.message ? (u(), b("span", ya, x(s.message), 1)) : T("", !0),
3041
+ (u(!0), b(D, null, F(s.actions, (r, n) => (u(), h(kt, {
3014
3042
  key: n,
3015
3043
  action: r
3016
3044
  }, null, 8, ["action"]))), 128))
@@ -3019,7 +3047,7 @@ Do you still want to proceed?`
3019
3047
  _: 3
3020
3048
  }));
3021
3049
  }
3022
- }), ya = /* @__PURE__ */ g({
3050
+ }), $a = /* @__PURE__ */ g({
3023
3051
  __name: "Toast",
3024
3052
  props: {
3025
3053
  message: {},
@@ -3028,7 +3056,7 @@ Do you still want to proceed?`
3028
3056
  class: {}
3029
3057
  },
3030
3058
  setup(t, { expose: s }) {
3031
- const e = c(() => lt(
3059
+ const e = c(() => et(
3032
3060
  { baseClasses: t.class, variant: t.variant },
3033
3061
  {
3034
3062
  baseClasses: "flex items-center gap-2 rounded-md p-2 ring-1 shadow-lg border-gray-200",
@@ -3043,11 +3071,11 @@ Do you still want to proceed?`
3043
3071
  }
3044
3072
  }
3045
3073
  ));
3046
- return s(), (r, n) => (u(), h(ba, {
3074
+ return s(), (r, n) => (u(), h(wa, {
3047
3075
  class: k(e.value)
3048
3076
  }, {
3049
3077
  default: f(() => [
3050
- r.message ? (u(), h(P, {
3078
+ r.message ? (u(), h(A, {
3051
3079
  key: 0,
3052
3080
  text: r.message,
3053
3081
  inline: ""
@@ -3056,84 +3084,84 @@ Do you still want to proceed?`
3056
3084
  key: i,
3057
3085
  action: a,
3058
3086
  variant: r.variant,
3059
- as: Ct
3087
+ as: kt
3060
3088
  }, null, 8, ["action", "variant"]))), 128))
3061
3089
  ]),
3062
3090
  _: 1
3063
3091
  }, 8, ["class"]));
3064
3092
  }
3065
- }), wa = { $ui: z }, $a = {
3093
+ }), _a = { $ui: z }, xa = {
3066
3094
  async install(t, s) {
3067
3095
  const e = {
3068
- "alert-modal": en,
3069
- "confirm-modal": on,
3070
- "error-report-modal": Rn,
3071
- "loading-modal": On,
3072
- "prompt-modal": Gn,
3073
- "startup-crash": ga,
3074
- toast: ya,
3096
+ "alert-modal": sn,
3097
+ "confirm-modal": cn,
3098
+ "error-report-modal": Pn,
3099
+ "loading-modal": Wn,
3100
+ "prompt-modal": ta,
3101
+ "startup-crash": ba,
3102
+ toast: $a,
3075
3103
  ...s.components
3076
3104
  };
3077
3105
  for (const [r, n] of Object.entries(e))
3078
3106
  z.registerComponent(r, n);
3079
- await $e(t, wa);
3107
+ await $e(t, _a);
3080
3108
  }
3081
3109
  };
3082
- async function _a(t, s = {}) {
3110
+ async function Ca(t, s = {}) {
3083
3111
  var r;
3084
- const e = [Br, Ks, jr, Sr, Xs, $a, ...s.plugins ?? []];
3085
- A.instance = t, await Bs(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await R.emit("application-ready");
3112
+ const e = [Ur, lr, Fr, Mr, cr, xa, ...s.plugins ?? []];
3113
+ P.instance = t, await Us(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await R.emit("application-ready");
3086
3114
  }
3087
- async function Vl(t, s = {}) {
3115
+ async function ql(t, s = {}) {
3088
3116
  var r;
3089
- const e = Rt(t);
3090
- J() && (window.$aerogel = e), await _a(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await R.emit("application-mounted");
3117
+ const e = Pt(t);
3118
+ J() && (window.$aerogel = e), await Ca(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await R.emit("application-mounted");
3091
3119
  }
3092
- const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3120
+ const ka = { key: 0 }, Sa = /* @__PURE__ */ g({
3093
3121
  __name: "AppModals",
3094
3122
  setup(t) {
3095
3123
  const s = c(() => z.modals[0] ?? null);
3096
- return (e, r) => s.value ? (u(), b("aside", xa, [
3097
- p(yt, {
3124
+ return (e, r) => s.value ? (u(), b("aside", ka, [
3125
+ p(wt, {
3098
3126
  "child-index": 1,
3099
3127
  modal: s.value
3100
3128
  }, null, 8, ["modal"])
3101
3129
  ])) : T("", !0);
3102
3130
  }
3103
- }), ka = /* @__PURE__ */ g({
3131
+ }), Ta = /* @__PURE__ */ g({
3104
3132
  __name: "AppToasts",
3105
3133
  setup(t) {
3106
- return (s, e) => (u(), h(o(Ts), null, {
3134
+ return (s, e) => (u(), h(l(Hs), null, {
3107
3135
  default: f(() => [
3108
- (u(!0), b(D, null, F(s.$ui.toasts, (r) => (u(), h(W(r.component), H({
3136
+ (u(!0), b(D, null, F(s.$ui.toasts, (r) => (u(), h(K(r.component), H({
3109
3137
  id: r.id,
3110
3138
  key: r.id,
3111
3139
  ref_for: !0
3112
3140
  }, r.properties), null, 16, ["id"]))), 128)),
3113
- p(o(Ms), { class: "fixed right-0 bottom-0 z-50 flex flex-col items-end space-y-4 px-4 py-6 sm:p-6" })
3141
+ p(l(Es), { class: "fixed right-0 bottom-0 z-50 flex flex-col items-end space-y-4 px-4 py-6 sm:p-6" })
3114
3142
  ]),
3115
3143
  _: 1
3116
3144
  }));
3117
3145
  }
3118
- }), Sa = /* @__PURE__ */ g({
3146
+ }), Ma = /* @__PURE__ */ g({
3119
3147
  __name: "AppOverlays",
3120
3148
  setup(t) {
3121
3149
  return (s, e) => (u(), b(D, null, [
3122
- p(Ca),
3123
- p(ka)
3150
+ p(Sa),
3151
+ p(Ta)
3124
3152
  ], 64));
3125
3153
  }
3126
- }), Ta = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, Ll = /* @__PURE__ */ g({
3154
+ }), Ha = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, zl = /* @__PURE__ */ g({
3127
3155
  __name: "AppLayout",
3128
3156
  setup(t) {
3129
- return (s, e) => (u(), b("div", Ta, [
3157
+ return (s, e) => (u(), b("div", Ha, [
3130
3158
  s.$errors.hasStartupErrors ? w(s.$slots, "startup-crash", { key: 0 }, () => [
3131
- (u(), h(W(s.$ui.requireComponent("startup-crash"))))
3159
+ (u(), h(K(s.$ui.requireComponent("startup-crash"))))
3132
3160
  ]) : w(s.$slots, "default", { key: 1 }),
3133
- p(Sa)
3161
+ p(Ma)
3134
3162
  ]));
3135
3163
  }
3136
- }), Ma = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], Ha = /* @__PURE__ */ g({
3164
+ }), Ea = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], Va = /* @__PURE__ */ g({
3137
3165
  __name: "HeadlessInputTextArea",
3138
3166
  setup(t) {
3139
3167
  const s = G("$textAreaRef"), e = V(
@@ -3143,34 +3171,34 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3143
3171
  function a() {
3144
3172
  s.value && e.update(s.value.value);
3145
3173
  }
3146
- return it(e, () => {
3174
+ return st(e, () => {
3147
3175
  var i;
3148
3176
  return (i = s.value) == null ? void 0 : i.focus();
3149
- }), (i, l) => (u(), b("textarea", {
3150
- id: o(e).id,
3177
+ }), (i, o) => (u(), b("textarea", {
3178
+ id: l(e).id,
3151
3179
  ref: "$textAreaRef",
3152
3180
  name: r.value,
3153
3181
  value: n.value,
3154
- required: o(e).required ?? void 0,
3155
- "aria-invalid": o(e).errors ? "true" : "false",
3156
- "aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
3182
+ required: l(e).required ?? void 0,
3183
+ "aria-invalid": l(e).errors ? "true" : "false",
3184
+ "aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
3157
3185
  onInput: a
3158
- }, null, 40, Ma));
3186
+ }, null, 40, Ea));
3159
3187
  }
3160
- }), Ea = { class: "group" }, Va = { class: "-ml-2 flex w-[max-content] items-center rounded-lg py-2 pr-3 pl-1 hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700" }, La = { class: "pt-2 pl-4" }, Il = /* @__PURE__ */ g({
3188
+ }), La = { class: "group" }, Ia = { class: "-ml-2 flex w-[max-content] items-center rounded-lg py-2 pr-3 pl-1 hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700" }, qa = { class: "pt-2 pl-4" }, Rl = /* @__PURE__ */ g({
3161
3189
  __name: "AdvancedOptions",
3162
3190
  setup(t) {
3163
- return (s, e) => (u(), b("details", Ea, [
3164
- y("summary", Va, [
3165
- p(o($t), { class: "size-6 transition-transform group-open:rotate-90" }),
3191
+ return (s, e) => (u(), b("details", La, [
3192
+ y("summary", Ia, [
3193
+ p(l(_t), { class: "size-6 transition-transform group-open:rotate-90" }),
3166
3194
  y("span", null, x(s.$td("ui.advancedOptions", "Advanced options")), 1)
3167
3195
  ]),
3168
- y("div", La, [
3196
+ y("div", qa, [
3169
3197
  w(s.$slots, "default")
3170
3198
  ])
3171
3199
  ]));
3172
3200
  }
3173
- }), Ia = { class: "flex h-6 items-center" }, ql = /* @__PURE__ */ g({
3201
+ }), za = { class: "flex h-6 items-center" }, Al = /* @__PURE__ */ g({
3174
3202
  inheritAttrs: !1,
3175
3203
  __name: "Checkbox",
3176
3204
  props: {
@@ -3183,7 +3211,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3183
3211
  },
3184
3212
  emits: ["update:modelValue"],
3185
3213
  setup(t) {
3186
- const s = N(t, ["inputClass", "labelClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative flex items-start", n.value)), i = c(() => {
3214
+ const s = W(t, ["inputClass", "labelClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative flex items-start", n.value)), i = c(() => {
3187
3215
  var d, v;
3188
3216
  return M(
3189
3217
  "size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
@@ -3193,7 +3221,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3193
3221
  },
3194
3222
  t.inputClass
3195
3223
  );
3196
- }), l = c(() => M("ml-2 text-sm leading-6", t.labelClass));
3224
+ }), o = c(() => M("ml-2 text-sm leading-6", t.labelClass));
3197
3225
  return (d, v) => (u(), h(ze, H({
3198
3226
  ref: "$inputRef",
3199
3227
  class: a.value
@@ -3201,15 +3229,15 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3201
3229
  "onUpdate:modelValue": v[0] || (v[0] = ($) => d.$emit("update:modelValue", $))
3202
3230
  }), {
3203
3231
  default: f(() => [
3204
- y("div", Ia, [
3205
- p(_t, H(o(r), {
3232
+ y("div", za, [
3233
+ p(xt, H(l(r), {
3206
3234
  type: "checkbox",
3207
3235
  class: i.value
3208
3236
  }), null, 16, ["class"])
3209
3237
  ]),
3210
3238
  d.$slots.default ? (u(), b("div", {
3211
3239
  key: 0,
3212
- class: k(l.value)
3240
+ class: k(o.value)
3213
3241
  }, [
3214
3242
  p(fe, { class: "text-gray-900" }, {
3215
3243
  default: f(() => [
@@ -3220,7 +3248,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3220
3248
  p(he, { class: "text-red-600" })
3221
3249
  ], 2)) : d.label ? (u(), b("div", {
3222
3250
  key: 1,
3223
- class: k(l.value)
3251
+ class: k(o.value)
3224
3252
  }, [
3225
3253
  p(fe, { class: "text-gray-900" }),
3226
3254
  p(he, { class: "text-red-600" })
@@ -3229,7 +3257,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3229
3257
  _: 3
3230
3258
  }, 16, ["class"]));
3231
3259
  }
3232
- }), qa = /* @__PURE__ */ g({
3260
+ }), Ra = /* @__PURE__ */ g({
3233
3261
  __name: "DropdownMenuOption",
3234
3262
  props: {
3235
3263
  class: {},
@@ -3238,11 +3266,11 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3238
3266
  },
3239
3267
  emits: ["select"],
3240
3268
  setup(t) {
3241
- const s = N(t, ["class"]), e = c(() => M(
3269
+ const s = W(t, ["class"]), e = c(() => M(
3242
3270
  "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
3243
3271
  t.class
3244
3272
  ));
3245
- return (r, n) => (u(), h(o(Hs), H({ class: e.value }, s, {
3273
+ return (r, n) => (u(), h(l(Vs), H({ class: e.value }, s, {
3246
3274
  onSelect: n[0] || (n[0] = (a) => r.$emit("select"))
3247
3275
  }), {
3248
3276
  default: f(() => [
@@ -3251,24 +3279,24 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3251
3279
  _: 3
3252
3280
  }, 16, ["class"]));
3253
3281
  }
3254
- }), za = /* @__PURE__ */ g({
3282
+ }), Aa = /* @__PURE__ */ g({
3255
3283
  __name: "DropdownMenuOptions",
3256
3284
  setup(t) {
3257
3285
  const s = V(
3258
3286
  "dropdown-menu",
3259
3287
  "<DropdownMenuOptions> must be a child of a <DropdownMenu>"
3260
3288
  );
3261
- return (e, r) => (u(), h(o(Es), {
3289
+ return (e, r) => (u(), h(l(Ls), {
3262
3290
  class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
3263
- align: o(s).align,
3264
- side: o(s).side
3291
+ align: l(s).align,
3292
+ side: l(s).side
3265
3293
  }, {
3266
3294
  default: f(() => [
3267
3295
  w(e.$slots, "default", {}, () => [
3268
- (u(!0), b(D, null, F(o(s).options, (n, a) => (u(), h(qa, H(
3296
+ (u(!0), b(D, null, F(l(s).options, (n, a) => (u(), h(Ra, H(
3269
3297
  {
3270
3298
  key: a,
3271
- as: n.route || n.href ? at : void 0,
3299
+ as: n.route || n.href ? ct : void 0,
3272
3300
  class: n.class,
3273
3301
  ref_for: !0
3274
3302
  },
@@ -3280,8 +3308,8 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3280
3308
  } : {},
3281
3309
  {
3282
3310
  onSelect: (i) => {
3283
- var l;
3284
- return (l = n.click) == null ? void 0 : l.call(n);
3311
+ var o;
3312
+ return (o = n.click) == null ? void 0 : o.call(n);
3285
3313
  }
3286
3314
  }
3287
3315
  ), {
@@ -3295,7 +3323,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3295
3323
  _: 3
3296
3324
  }, 8, ["align", "side"]));
3297
3325
  }
3298
- }), zl = /* @__PURE__ */ g({
3326
+ }), Pl = /* @__PURE__ */ g({
3299
3327
  __name: "DropdownMenu",
3300
3328
  props: {
3301
3329
  align: {},
@@ -3311,18 +3339,18 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3311
3339
  return (r = t.options) == null ? void 0 : r.filter(Boolean);
3312
3340
  })
3313
3341
  };
3314
- return le("dropdown-menu", e), s(e), (r, n) => (u(), h(o(Vs), null, {
3342
+ return le("dropdown-menu", e), s(e), (r, n) => (u(), h(l(Is), null, {
3315
3343
  default: f(() => [
3316
- p(o(Ls), null, {
3344
+ p(l(qs), null, {
3317
3345
  default: f(() => [
3318
3346
  w(r.$slots, "default")
3319
3347
  ]),
3320
3348
  _: 3
3321
3349
  }),
3322
- p(o(Is), null, {
3350
+ p(l(zs), null, {
3323
3351
  default: f(() => [
3324
3352
  w(r.$slots, "options", {}, () => [
3325
- p(za)
3353
+ p(Aa)
3326
3354
  ])
3327
3355
  ]),
3328
3356
  _: 3
@@ -3331,7 +3359,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3331
3359
  _: 3
3332
3360
  }));
3333
3361
  }
3334
- }), Ra = ["aria-hidden"], Pa = ["tabindex", "aria-label", "type"], Rl = /* @__PURE__ */ g({
3362
+ }), Pa = ["aria-hidden"], Da = ["tabindex", "aria-label", "type"], Dl = /* @__PURE__ */ g({
3335
3363
  __name: "EditableContent",
3336
3364
  props: {
3337
3365
  type: { default: "text" },
@@ -3344,7 +3372,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3344
3372
  },
3345
3373
  emits: ["update", "save"],
3346
3374
  setup(t, { emit: s }) {
3347
- const e = s, r = G("$inputRef"), n = U(null), a = U(t.text), i = c(() => M("inline whitespace-pre", t.contentClass)), l = c(() => M("invisible whitespace-pre", t.contentClass)), d = c(() => M("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3375
+ const e = s, r = G("$inputRef"), n = U(null), a = U(t.text), i = c(() => M("inline whitespace-pre", t.contentClass)), o = c(() => M("invisible whitespace-pre", t.contentClass)), d = c(() => M("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3348
3376
  function v() {
3349
3377
  n.value = t.text;
3350
3378
  }
@@ -3356,7 +3384,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3356
3384
  }, [
3357
3385
  n.value ? (u(), b("span", {
3358
3386
  key: 1,
3359
- class: k(l.value)
3387
+ class: k(o.value)
3360
3388
  }, x(a.value), 3)) : (u(), b("div", {
3361
3389
  key: 0,
3362
3390
  class: k(i.value)
@@ -3388,39 +3416,39 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
3388
3416
  onKeyup: C[1] || (C[1] = (L) => m.$emit("update", a.value)),
3389
3417
  onFocus: C[2] || (C[2] = (L) => v()),
3390
3418
  onBlur: C[3] || (C[3] = (L) => $())
3391
- }, null, 42, Pa), [
3392
- [Pt, a.value]
3419
+ }, null, 42, Da), [
3420
+ [Dt, a.value]
3393
3421
  ])
3394
- ], 40, Ra)
3422
+ ], 40, Pa)
3395
3423
  ], 2));
3396
3424
  }
3397
- }), Aa = {
3425
+ }), ja = {
3398
3426
  viewBox: "0 0 512 512",
3399
3427
  width: "1.2em",
3400
3428
  height: "1.2em"
3401
3429
  };
3402
- function Da(t, s) {
3403
- return u(), b("svg", Aa, s[0] || (s[0] = [
3430
+ function Ba(t, s) {
3431
+ return u(), b("svg", ja, s[0] || (s[0] = [
3404
3432
  y("path", {
3405
3433
  fill: "currentColor",
3406
3434
  d: "M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17m-198.6-1.83a20 20 0 1 1 20-20a20 20 0 0 1-20 20m21.72-201.15l-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7Z"
3407
3435
  }, null, -1)
3408
3436
  ]));
3409
3437
  }
3410
- const ja = E({ name: "ion-warning", render: Da }), Ba = {
3438
+ const Fa = E({ name: "ion-warning", render: Ba }), Ua = {
3411
3439
  viewBox: "0 0 20 20",
3412
3440
  width: "1.2em",
3413
3441
  height: "1.2em"
3414
3442
  };
3415
- function Fa(t, s) {
3416
- return u(), b("svg", Ba, s[0] || (s[0] = [
3443
+ function Oa(t, s) {
3444
+ return u(), b("svg", Ua, s[0] || (s[0] = [
3417
3445
  y("path", {
3418
3446
  fill: "currentColor",
3419
3447
  d: "M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10m9.8 4a4 4 0 1 0 0-8a4 4 0 0 0 0 8m0-2a2 2 0 1 1 0-4a2 2 0 0 1 0 4"
3420
3448
  }, null, -1)
3421
3449
  ]));
3422
3450
  }
3423
- const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-medium" }, Na = ["datetime"], Wa = /* @__PURE__ */ g({
3451
+ const Na = E({ name: "zondicons-view-show", render: Oa }), Wa = { class: "font-medium" }, Ka = ["datetime"], Qa = /* @__PURE__ */ g({
3424
3452
  __name: "ErrorLogsModal",
3425
3453
  setup(t) {
3426
3454
  return (s, e) => (u(), h(se, {
@@ -3433,14 +3461,14 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
3433
3461
  class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
3434
3462
  }, [
3435
3463
  y("div", null, [
3436
- y("h3", Oa, x(r.report.title), 1),
3464
+ y("h3", Wa, x(r.report.title), 1),
3437
3465
  y("time", {
3438
3466
  datetime: r.date.toISOString(),
3439
3467
  class: "text-xs text-gray-700"
3440
- }, x(r.date.toLocaleTimeString()), 9, Na),
3441
- p(P, {
3468
+ }, x(r.date.toLocaleTimeString()), 9, Ka),
3469
+ p(A, {
3442
3470
  class: "text-sm text-gray-500",
3443
- text: r.report.description ?? o(bt)(r.report)
3471
+ text: r.report.description ?? l(yt)(r.report)
3444
3472
  }, null, 8, ["text"])
3445
3473
  ]),
3446
3474
  p(q, {
@@ -3455,7 +3483,7 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
3455
3483
  )
3456
3484
  }, {
3457
3485
  default: f(() => [
3458
- p(o(Ua), {
3486
+ p(l(Na), {
3459
3487
  class: "size-4",
3460
3488
  "aria-hidden": "true"
3461
3489
  })
@@ -3468,7 +3496,7 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
3468
3496
  _: 1
3469
3497
  }, 8, ["title"]));
3470
3498
  }
3471
- }), Pl = /* @__PURE__ */ g({
3499
+ }), jl = /* @__PURE__ */ g({
3472
3500
  __name: "ErrorLogs",
3473
3501
  setup(t) {
3474
3502
  return (s, e) => s.$errors.logs.length > 0 ? (u(), h(q, {
@@ -3477,27 +3505,27 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
3477
3505
  variant: "ghost",
3478
3506
  title: s.$td("errors.viewLogs", "View error logs"),
3479
3507
  "aria-label": s.$td("errors.viewLogs", "View error logs"),
3480
- onClick: e[0] || (e[0] = (r) => s.$ui.modal(Wa))
3508
+ onClick: e[0] || (e[0] = (r) => s.$ui.modal(Qa))
3481
3509
  }, {
3482
3510
  default: f(() => [
3483
- p(o(ja), { class: "size-6 text-red-500" })
3511
+ p(l(Fa), { class: "size-6 text-red-500" })
3484
3512
  ]),
3485
3513
  _: 1
3486
3514
  }, 8, ["title", "aria-label"])) : T("", !0);
3487
3515
  }
3488
- }), Al = /* @__PURE__ */ g({
3516
+ }), Bl = /* @__PURE__ */ g({
3489
3517
  __name: "ErrorMessage",
3490
3518
  props: {
3491
3519
  error: {}
3492
3520
  },
3493
3521
  setup(t) {
3494
- const s = c(() => bt(t.error));
3495
- return (e, r) => (u(), h(P, {
3522
+ const s = c(() => yt(t.error));
3523
+ return (e, r) => (u(), h(A, {
3496
3524
  text: s.value,
3497
3525
  inline: ""
3498
3526
  }, null, 8, ["text"]));
3499
3527
  }
3500
- }), Dl = /* @__PURE__ */ g({
3528
+ }), Fl = /* @__PURE__ */ g({
3501
3529
  __name: "Link",
3502
3530
  props: {
3503
3531
  class: {},
@@ -3519,23 +3547,23 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
3519
3547
  _: 3
3520
3548
  }, 16));
3521
3549
  }
3522
- }), jl = /* @__PURE__ */ g({
3550
+ }), Ul = /* @__PURE__ */ g({
3523
3551
  __name: "SettingsModal",
3524
3552
  setup(t) {
3525
- const s = c(() => Jt(A.settings, "priority", "desc"));
3553
+ const s = c(() => Xt(P.settings, "priority", "desc"));
3526
3554
  return (e, r) => (u(), h(se, {
3527
3555
  title: e.$td("settings.title", "Settings")
3528
3556
  }, {
3529
3557
  default: f(() => [
3530
- (u(!0), b(D, null, F(s.value, (n, a) => (u(), h(W(n.component), { key: a }))), 128))
3558
+ (u(!0), b(D, null, F(s.value, (n, a) => (u(), h(K(n.component), { key: a }))), 128))
3531
3559
  ]),
3532
3560
  _: 1
3533
3561
  }, 8, ["title"]));
3534
3562
  }
3535
- }), Ka = {
3563
+ }), Ja = {
3536
3564
  key: 0,
3537
3565
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
3538
- }, Bl = /* @__PURE__ */ g({
3566
+ }, Ol = /* @__PURE__ */ g({
3539
3567
  inheritAttrs: !1,
3540
3568
  __name: "TextArea",
3541
3569
  props: {
@@ -3548,25 +3576,25 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
3548
3576
  },
3549
3577
  emits: ["update:modelValue"],
3550
3578
  setup(t) {
3551
- const s = N(t, ["label", "inputClass", "wrapperClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = c(() => {
3552
- var l, d, v;
3579
+ const s = W(t, ["label", "inputClass", "wrapperClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = c(() => {
3580
+ var o, d, v;
3553
3581
  return M(
3554
3582
  // eslint-disable-next-line vue/max-len
3555
3583
  "block w-full rounded-md border-0 py-1.5 ring-1 ring-inset focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6",
3556
3584
  {
3557
- "focus:ring-primary-600": !((l = e.value) != null && l.errors),
3585
+ "focus:ring-primary-600": !((o = e.value) != null && o.errors),
3558
3586
  "text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
3559
3587
  "pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
3560
3588
  },
3561
3589
  t.inputClass
3562
3590
  );
3563
3591
  });
3564
- return (l, d) => (u(), h(ze, H({
3592
+ return (o, d) => (u(), h(ze, H({
3565
3593
  ref: "$inputRef",
3566
- label: l.label,
3567
- class: o(n)
3594
+ label: o.label,
3595
+ class: l(n)
3568
3596
  }, s, {
3569
- "onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
3597
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => o.$emit("update:modelValue", v))
3570
3598
  }), {
3571
3599
  default: f(() => {
3572
3600
  var v;
@@ -3575,12 +3603,12 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
3575
3603
  y("div", {
3576
3604
  class: k(a.value)
3577
3605
  }, [
3578
- p(Ha, H(o(r), { class: i.value }), null, 16, ["class"]),
3579
- (v = e.value) != null && v.errors ? (u(), b("div", Ka, [
3580
- p(o(qe), { class: "size-5 text-red-500" })
3606
+ p(Va, H(l(r), { class: i.value }), null, 16, ["class"]),
3607
+ (v = e.value) != null && v.errors ? (u(), b("div", Ja, [
3608
+ p(l(qe), { class: "size-5 text-red-500" })
3581
3609
  ])) : T("", !0)
3582
3610
  ], 2),
3583
- p(xt, { class: "mt-2 text-sm text-gray-600" }),
3611
+ p(Ct, { class: "mt-2 text-sm text-gray-600" }),
3584
3612
  p(he, { class: "mt-2 text-sm text-red-600" })
3585
3613
  ];
3586
3614
  }),
@@ -3588,7 +3616,7 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
3588
3616
  }, 16, ["label", "class"]));
3589
3617
  }
3590
3618
  });
3591
- class Fl {
3619
+ class Nl {
3592
3620
  constructor() {
3593
3621
  _(this, "status");
3594
3622
  _(this, "_listeners");
@@ -3596,7 +3624,7 @@ class Fl {
3596
3624
  _(this, "_cancelled");
3597
3625
  _(this, "_started");
3598
3626
  _(this, "_completed");
3599
- this.status = this.getInitialStatus(), this._listeners = new Zt(), this._started = new K(), this._completed = new K();
3627
+ this.status = this.getInitialStatus(), this._listeners = new Yt(), this._started = new Q(), this._completed = new Q();
3600
3628
  }
3601
3629
  async start() {
3602
3630
  this.beforeStart(), this._started.resolve();
@@ -3605,13 +3633,13 @@ class Fl {
3605
3633
  } catch (s) {
3606
3634
  if (s instanceof Ue)
3607
3635
  return;
3608
- throw ee(Xt(s), (e) => {
3636
+ throw ee(Gt(s), (e) => {
3609
3637
  this._completed.reject(e);
3610
3638
  });
3611
3639
  }
3612
3640
  }
3613
3641
  async cancel() {
3614
- this._cancelled = new K(), await this._cancelled;
3642
+ this._cancelled = new Q(), await this._cancelled;
3615
3643
  }
3616
3644
  serialize() {
3617
3645
  return this.serializeStatus(this.status);
@@ -3649,7 +3677,7 @@ class Fl {
3649
3677
  throw this._cancelled.resolve(), new Ue();
3650
3678
  }
3651
3679
  calculateCurrentProgress(s) {
3652
- return s ?? (s = this.status), s.completed ? 1 : s.children ? Yt(
3680
+ return s ?? (s = this.status), s.completed ? 1 : s.children ? es(
3653
3681
  s.children.reduce((e, r) => e + this.calculateCurrentProgress(r), 0) / s.children.length,
3654
3682
  2
3655
3683
  ) : 0;
@@ -3663,147 +3691,149 @@ class Fl {
3663
3691
  return { ...s };
3664
3692
  }
3665
3693
  }
3666
- async function Ul(t) {
3694
+ async function Wl(t) {
3667
3695
  await t.start();
3668
3696
  }
3669
3697
  export {
3670
- Il as AdvancedOptions,
3671
- en as AlertModal,
3672
- A as App,
3673
- Ll as AppLayout,
3674
- Ca as AppModals,
3675
- Sa as AppOverlays,
3676
- js as AppService,
3677
- ka as AppToasts,
3698
+ Rl as AdvancedOptions,
3699
+ sn as AlertModal,
3700
+ P as App,
3701
+ zl as AppLayout,
3702
+ Sa as AppModals,
3703
+ Ma as AppOverlays,
3704
+ Fs as AppService,
3705
+ Ta as AppToasts,
3678
3706
  q as Button,
3679
- cl as Cache,
3680
- Qs as CacheService,
3681
- ql as Checkbox,
3682
- on as ConfirmModal,
3683
- zl as DropdownMenu,
3684
- qa as DropdownMenuOption,
3685
- za as DropdownMenuOptions,
3686
- Rl as EditableContent,
3687
- Pl as ErrorLogs,
3688
- Wa as ErrorLogsModal,
3689
- Al as ErrorMessage,
3690
- Rn as ErrorReportModal,
3691
- Tn as ErrorReportModalButtons,
3692
- Mn as ErrorReportModalTitle,
3693
- nt as Errors,
3694
- ll as EventListenerPriorities,
3707
+ wl as Cache,
3708
+ or as CacheService,
3709
+ Al as Checkbox,
3710
+ cn as ConfirmModal,
3711
+ Pl as DropdownMenu,
3712
+ Ra as DropdownMenuOption,
3713
+ Aa as DropdownMenuOptions,
3714
+ Dl as EditableContent,
3715
+ jl as ErrorLogs,
3716
+ Qa as ErrorLogsModal,
3717
+ Bl as ErrorMessage,
3718
+ Pn as ErrorReportModal,
3719
+ Hn as ErrorReportModalButtons,
3720
+ En as ErrorReportModalTitle,
3721
+ ut as Errors,
3722
+ il as EventListenerPriorities,
3695
3723
  R as Events,
3696
- As as EventsService,
3697
- wt as Form,
3698
- gr as FormController,
3699
- at as HeadlessButton,
3724
+ js as EventsService,
3725
+ $t as Form,
3726
+ Ys as FormController,
3727
+ ct as HeadlessButton,
3700
3728
  ze as HeadlessInput,
3701
- xt as HeadlessInputDescription,
3729
+ Ct as HeadlessInputDescription,
3702
3730
  he as HeadlessInputError,
3703
- _t as HeadlessInputInput,
3731
+ xt as HeadlessInputInput,
3704
3732
  fe as HeadlessInputLabel,
3705
- Ha as HeadlessInputTextArea,
3706
- Nr as HeadlessModal,
3707
- Wr as HeadlessModalContent,
3708
- Kr as HeadlessModalDescription,
3709
- Qr as HeadlessModalOverlay,
3710
- Jr as HeadlessModalTitle,
3711
- vr as HeadlessSelect,
3733
+ Va as HeadlessInputTextArea,
3734
+ Kr as HeadlessModal,
3735
+ Qr as HeadlessModalContent,
3736
+ Jr as HeadlessModalDescription,
3737
+ Zr as HeadlessModalOverlay,
3738
+ Xr as HeadlessModalTitle,
3739
+ yr as HeadlessSelect,
3712
3740
  Be as HeadlessSelectLabel,
3713
- pt as HeadlessSelectOption,
3714
- mt as HeadlessSelectOptions,
3715
- dt as HeadlessSelectTrigger,
3716
- ct as HeadlessSelectValue,
3717
- Ir as HeadlessSwitch,
3718
- ba as HeadlessToast,
3719
- Jn as Input,
3720
- Fl as Job,
3741
+ mt as HeadlessSelectOption,
3742
+ ft as HeadlessSelectOptions,
3743
+ pt as HeadlessSelectTrigger,
3744
+ dt as HeadlessSelectValue,
3745
+ zr as HeadlessSwitch,
3746
+ wa as HeadlessToast,
3747
+ Xn as Input,
3748
+ Nl as Job,
3721
3749
  Ue as JobCancelledError,
3722
3750
  Z as Lang,
3723
3751
  me as Layouts,
3724
- Dl as Link,
3725
- On as LoadingModal,
3726
- tt as MOBILE_BREAKPOINT,
3727
- P as Markdown,
3752
+ Fl as Link,
3753
+ Wn as LoadingModal,
3754
+ lt as MOBILE_BREAKPOINT,
3755
+ A as Markdown,
3728
3756
  se as Modal,
3729
- yt as ModalContext,
3730
- Fn as ProgressBar,
3731
- Gn as PromptModal,
3732
- $r as Select,
3733
- ft as SelectLabel,
3757
+ wt as ModalContext,
3758
+ On as ProgressBar,
3759
+ ta as PromptModal,
3760
+ xr as Select,
3761
+ ht as SelectLabel,
3734
3762
  Fe as SelectOption,
3735
- ht as SelectOptions,
3736
- gt as SelectTrigger,
3763
+ gt as SelectOptions,
3764
+ vt as SelectTrigger,
3737
3765
  we as Service,
3738
3766
  Te as ServiceBootError,
3739
- Vr as Setting,
3740
- jl as SettingsModal,
3741
- ga as StartupCrash,
3742
- et as Storage,
3743
- qr as Switch,
3744
- Bl as TextArea,
3745
- ya as Toast,
3767
+ Ir as Setting,
3768
+ Ul as SettingsModal,
3769
+ ba as StartupCrash,
3770
+ at as Storage,
3771
+ Rr as Switch,
3772
+ Ol as TextArea,
3773
+ $a as Toast,
3746
3774
  z as UI,
3747
- Gs as UIService,
3748
- fl as __valueType,
3749
- qs as appNamespace,
3750
- wl as booleanInput,
3775
+ pr as UIService,
3776
+ ml as __valueType,
3777
+ ar as aerogelDirectives,
3778
+ Rs as appNamespace,
3779
+ xl as booleanInput,
3751
3780
  $e as bootServices,
3752
- Vl as bootstrap,
3753
- _a as bootstrapApplication,
3781
+ ql as bootstrap,
3782
+ Ca as bootstrapApplication,
3754
3783
  M as classes,
3755
3784
  vl as computedAsync,
3756
3785
  bl as computedDebounce,
3757
- $l as dateInput,
3758
- ul as defineDirective,
3759
- ml as defineFormValidationRule,
3760
- il as definePlugin,
3786
+ Cl as dateInput,
3787
+ dl as defineDirective,
3788
+ pl as defineFormValidationRule,
3789
+ cl as definePlugin,
3761
3790
  ye as defineServiceState,
3762
- Ps as defineServiceStore,
3763
- ol as defineSettings,
3764
- Ul as dispatch,
3765
- _l as enumInput,
3766
- st as getCurrentLayout,
3767
- bt as getErrorMessage,
3768
- ir as getMarkdownRouter,
3769
- Rs as getPiniaStore,
3770
- dr as hasSelectOptionLabel,
3771
- Os as injectOrFail,
3772
- Us as injectReactive,
3791
+ Ds as defineServiceStore,
3792
+ ul as defineSettings,
3793
+ Wl as dispatch,
3794
+ kl as enumInput,
3795
+ ot as getCurrentLayout,
3796
+ yt as getErrorMessage,
3797
+ sr as getMarkdownRouter,
3798
+ Ps as getPiniaStore,
3799
+ br as hasSelectOptionLabel,
3800
+ Ws as injectOrFail,
3801
+ Ns as injectReactive,
3773
3802
  V as injectReactiveOrFail,
3774
- Bs as installPlugins,
3775
- Ml as numberInput,
3776
- Hl as objectInput,
3777
- hl as onCleanMounted,
3778
- it as onFormFocus,
3779
- gl as persistent,
3780
- yl as registerErrorHandler,
3781
- ur as renderMarkdown,
3803
+ Us as installPlugins,
3804
+ Vl as numberInput,
3805
+ Ll as objectInput,
3806
+ fl as onCleanMounted,
3807
+ st as onFormFocus,
3808
+ hl as persistent,
3809
+ gl as reactiveSet,
3810
+ _l as registerErrorHandler,
3811
+ rr as renderMarkdown,
3782
3812
  Ge as renderVNode,
3783
- dl as replaceExisting,
3784
- xl as requiredBooleanInput,
3785
- Cl as requiredDateInput,
3786
- kl as requiredEnumInput,
3787
- Sl as requiredNumberInput,
3788
- Tl as requiredObjectInput,
3789
- Zn as requiredStringInput,
3790
- zs as resetPiniaStore,
3791
- cr as safeHtml,
3792
- pl as setMarkdownRouter,
3793
- El as stringInput,
3794
- rt as translate,
3813
+ $l as replaceExisting,
3814
+ Sl as requiredBooleanInput,
3815
+ Tl as requiredDateInput,
3816
+ Ml as requiredEnumInput,
3817
+ Hl as requiredNumberInput,
3818
+ El as requiredObjectInput,
3819
+ Yn as requiredStringInput,
3820
+ As as resetPiniaStore,
3821
+ nt as safeHtml,
3822
+ yl as setMarkdownRouter,
3823
+ Il as stringInput,
3824
+ it as translate,
3795
3825
  S as translateWithDefault,
3796
- Gr as useAlertModal,
3797
- tn as useConfirmModal,
3798
- Hn as useErrorReportModal,
3799
- ot as useEvent,
3800
- ut as useForm,
3826
+ tn as useAlertModal,
3827
+ rn as useConfirmModal,
3828
+ Vn as useErrorReportModal,
3829
+ tt as useEvent,
3830
+ rt as useForm,
3801
3831
  Ie as useInputAttrs,
3802
- Un as useLoadingModal,
3803
- Xn as usePromptModal,
3804
- hr as validate,
3805
- fr as validateType,
3832
+ Nn as useLoadingModal,
3833
+ Gn as usePromptModal,
3834
+ Xs as validate,
3835
+ Zs as validateType,
3806
3836
  de as validators,
3807
- lt as variantClasses
3837
+ et as variantClasses
3808
3838
  };
3809
3839
  //# sourceMappingURL=aerogel-core.js.map