@aerogel/core 0.0.0-next.e4c0d5bd2801fbe93545477ea515af53df69b522 → 0.0.0-next.ec720bb060627e76b204dc15f6bf955d11a77cbc

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,39 +1,39 @@
1
1
  var xt = Object.defineProperty;
2
2
  var Ct = (t, s, e) => s in t ? xt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
- var w = (t, s, e) => Ct(t, typeof s != "symbol" ? s + "" : s, e);
4
- import { markRaw as R, Comment as St, Text as kt, Static as Mt, inject as le, reactive as de, nextTick as qe, defineComponent as g, useAttrs as Fe, useSlots as Me, computed as u, createBlock as f, openBlock as i, h as Et, unref as o, mergeProps as I, withCtx as m, renderSlot as _, createPropsRestProxy as J, onUnmounted as me, ref as F, readonly as Ee, onMounted as Ht, watch as He, toRaw as Lt, watchEffect as ie, createVNode as p, normalizeProps as ee, guardReactiveProps as te, createTextVNode as P, toDisplayString as C, normalizeClass as k, createElementBlock as b, Fragment as B, renderList as q, provide as se, resolveDynamicComponent as N, createCommentVNode as M, createElementVNode as y, toRef as Ve, useTemplateRef as re, withModifiers as Ue, withDirectives as Oe, vModelCheckbox as It, normalizeStyle as Tt, createApp as Vt, vModelText as Rt } from "vue";
5
- import { JSError as fe, tap as Z, MagicObject as Ne, PromisedValue as W, Storage as U, objectOnly as ne, arrayFrom as We, isEmpty as ye, objectDeepClone as Pt, fail as K, facade as G, arrayRemove as $e, getEnv as At, updateLocationQueryParameters as zt, forever as jt, toString as D, isDevelopment as Y, isTesting as Le, after as xe, uuid as oe, required as Bt, isObject as ce, objectWithoutEmpty as Ke, stringMatchAll as Qe, isInstanceOf as Re, objectWithout as Dt, noop as qt, debounce as Ft, value as Ut, stringExcerpt as Ot, arraySorted as Nt, ListenersManager as Wt, toError as Kt, round as Qt } from "@noeldemartin/utils";
3
+ var $ = (t, s, e) => Ct(t, typeof s != "symbol" ? s + "" : s, e);
4
+ import { markRaw as P, Comment as St, Text as kt, Static as Mt, inject as se, reactive as pe, nextTick as qe, unref as o, defineComponent as g, computed as u, createBlock as h, openBlock as c, mergeProps as H, withCtx as f, renderSlot as w, createPropsRestProxy as J, onUnmounted as fe, ref as B, readonly as he, useAttrs as Fe, onMounted as Et, watch as Ee, toRaw as Ht, watchEffect as Z, createVNode as m, normalizeProps as re, guardReactiveProps as ne, createTextVNode as A, toDisplayString as S, normalizeClass as C, createElementBlock as b, Fragment as j, renderList as F, provide as ae, resolveDynamicComponent as N, useSlots as He, createCommentVNode as M, createElementVNode as y, h as Vt, toRef as Te, useTemplateRef as le, withModifiers as Ue, withDirectives as Oe, vModelCheckbox as Lt, normalizeStyle as It, createApp as Tt, vModelText as Rt } from "vue";
5
+ import { JSError as ge, tap as X, MagicObject as Ne, PromisedValue as W, Storage as U, objectOnly as oe, arrayFrom as We, isEmpty as $e, objectDeepClone as Pt, fail as K, facade as Y, arrayRemove as Ce, getEnv as At, updateLocationQueryParameters as zt, forever as Dt, toString as q, isDevelopment as ee, isTesting as Ve, after as ce, uuid as te, required as jt, isObject as ue, objectWithoutEmpty as Ke, stringMatchAll as Qe, objectWithout as Bt, noop as qt, debounce as Ft, value as Ut, isInstanceOf as Re, stringExcerpt as Ot, arraySorted as Nt, ListenersManager as Wt, toError as Kt, round as Qt } from "@noeldemartin/utils";
6
6
  import O from "virtual:aerogel";
7
- import { createPinia as Jt, setActivePinia as Zt, defineStore as Gt } from "pinia";
8
- import Xt from "dompurify";
9
- import { marked as Yt, Renderer as Pe } from "marked";
10
- import { Primitive as es, SelectValue as Ae, SelectTrigger as ts, SelectIcon as ss, SelectItem as rs, SelectItemText as ns, SelectPortal as as, SelectContent as os, SelectViewport as ls, SelectRoot as is, Label as cs, useForwardExpose as Ie, DialogRoot as us, DialogPortal as ds, DialogContent as ps, DialogDescription as ms, DialogOverlay as fs, DialogTitle as hs, ToastClose as gs, ToastRoot as vs, ToastProvider as bs, ToastViewport as ys, DropdownMenuItem as _s, DropdownMenuContent as ws, DropdownMenuRoot as $s, DropdownMenuTrigger as xs, DropdownMenuPortal as Cs } from "reka-ui";
11
- import Ss from "clsx";
12
- import { cva as ks } from "class-variance-authority";
13
- import { twMerge as Ms } from "tailwind-merge";
14
- class Ce extends fe {
7
+ import { createPinia as Jt, setActivePinia as Zt, defineStore as Xt } from "pinia";
8
+ import Yt from "dompurify";
9
+ import { marked as Gt, Renderer as Pe } from "marked";
10
+ import es from "clsx";
11
+ import { cva as ts } from "class-variance-authority";
12
+ import { twMerge as ss } from "tailwind-merge";
13
+ import { Primitive as rs, SelectValue as Ae, SelectTrigger as ns, SelectIcon as as, SelectItem as ls, SelectItemText as os, SelectPortal as is, SelectContent as cs, SelectViewport as us, SelectRoot as ds, Label as ps, useForwardExpose as Le, SwitchRoot as ms, SwitchThumb as fs, DialogRoot as hs, DialogPortal as gs, DialogContent as vs, DialogDescription as bs, DialogOverlay as ys, DialogTitle as ws, ToastClose as $s, ToastRoot as _s, ToastProvider as xs, ToastViewport as Cs, DropdownMenuItem as Ss, DropdownMenuContent as ks, DropdownMenuRoot as Ms, DropdownMenuTrigger as Es, DropdownMenuPortal as Hs } from "reka-ui";
14
+ class Se extends ge {
15
15
  constructor(s, e) {
16
16
  super(`Service '${s}' failed booting`, { cause: e });
17
17
  }
18
18
  }
19
- let Te = null;
19
+ let Ie = null;
20
20
  function Je() {
21
- return Te ?? Es();
21
+ return Ie ?? Vs();
22
22
  }
23
- function Es() {
24
- return Z(Jt(), (t) => {
25
- Te = t, Zt(t);
23
+ function Vs() {
24
+ return X(Jt(), (t) => {
25
+ Ie = t, Zt(t);
26
26
  });
27
27
  }
28
- function Hs() {
29
- return Te ?? Je();
28
+ function Ls() {
29
+ return Ie ?? Je();
30
30
  }
31
- function Ls(t, s) {
32
- return Je(), Gt(t, s)();
31
+ function Is(t, s) {
32
+ return Je(), Xt(t, s)();
33
33
  }
34
- function he(t) {
34
+ function ve(t) {
35
35
  var s;
36
- return s = class extends ge {
36
+ return s = class extends be {
37
37
  usesStore() {
38
38
  return !0;
39
39
  }
@@ -67,19 +67,19 @@ To fix this problem, declare your initialState as a function instead.`
67
67
  var r;
68
68
  return ((r = t.restore) == null ? void 0 : r.call(t, e)) ?? e;
69
69
  }
70
- }, w(s, "persist", t.persist ?? []), s;
70
+ }, $(s, "persist", t.persist ?? []), s;
71
71
  }
72
- var we;
73
- let ge = (we = class extends Ne {
72
+ var xe;
73
+ let be = (xe = class extends Ne {
74
74
  constructor() {
75
75
  super();
76
- w(this, "_name");
77
- w(this, "_booted");
78
- w(this, "_computedStateKeys");
79
- w(this, "_watchers");
80
- w(this, "_store");
76
+ $(this, "_name");
77
+ $(this, "_booted");
78
+ $(this, "_computedStateKeys");
79
+ $(this, "_watchers");
80
+ $(this, "_store");
81
81
  const e = this.getComputedStateDefinition();
82
- this._name = this.getName() ?? new.target.name, this._booted = new W(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && Ls(this._name, {
82
+ this._name = this.getName() ?? new.target.name, this._booted = new W(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && Is(this._name, {
83
83
  state: () => this.getInitialState(),
84
84
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
85
  getters: e
@@ -92,7 +92,7 @@ let ge = (we = class extends Ne {
92
92
  return super.static(e);
93
93
  }
94
94
  launch() {
95
- const e = (r) => this._booted.reject(new Ce(this._name, r));
95
+ const e = (r) => this._booted.reject(new Se(this._name, r));
96
96
  try {
97
97
  this.frameworkBoot().then(() => this.boot()).then(() => this._booted.resolve()).catch(e);
98
98
  } catch (r) {
@@ -113,14 +113,14 @@ let ge = (we = class extends Ne {
113
113
  setState(e, r) {
114
114
  if (!this._store)
115
115
  return;
116
- const n = typeof e == "string" ? { [e]: r } : e, a = ne(this._store.$state, Object.keys(n));
116
+ const n = typeof e == "string" ? { [e]: r } : e, a = oe(this._store.$state, Object.keys(n));
117
117
  Object.assign(this._store.$state, n), this.onStateUpdated(n, a);
118
118
  }
119
119
  updatePersistedState(e) {
120
120
  if (!this._store)
121
121
  return;
122
- const r = We(e), n = ne(this._store.$state, r);
123
- ye(n) || this.onPersistentStateUpdated(n);
122
+ const r = We(e), n = oe(this._store.$state, r);
123
+ $e(n) || this.onPersistentStateUpdated(n);
124
124
  }
125
125
  __get(e) {
126
126
  return this.hasState(e) ? this.getState(e) : super.__get(e);
@@ -129,11 +129,11 @@ let ge = (we = class extends Ne {
129
129
  this.setState({ [e]: r });
130
130
  }
131
131
  onStateUpdated(e, r) {
132
- const n = ne(e, this.static("persist"));
133
- ye(n) || this.onPersistentStateUpdated(n);
132
+ const n = oe(e, this.static("persist"));
133
+ $e(n) || this.onPersistentStateUpdated(n);
134
134
  for (const a in e) {
135
- const l = this._watchers[a];
136
- !l || e[a] === r[a] || l.call(this, e[a], r[a]);
135
+ const i = this._watchers[a];
136
+ !i || e[a] === r[a] || i.call(this, e[a], r[a]);
137
137
  }
138
138
  }
139
139
  onPersistentStateUpdated(e) {
@@ -170,28 +170,28 @@ let ge = (we = class extends Ne {
170
170
  async boot() {
171
171
  }
172
172
  restorePersistedState() {
173
- if (!(!this.usesStore() || ye(this.static("persist")))) {
173
+ if (!(!this.usesStore() || $e(this.static("persist")))) {
174
174
  if (U.has(this._name)) {
175
175
  const e = U.require(this._name);
176
176
  this.setState(this.deserializePersistedState(e));
177
177
  return;
178
178
  }
179
- U.set(this._name, ne(this.getState(), this.static("persist")));
179
+ U.set(this._name, oe(this.getState(), this.static("persist")));
180
180
  }
181
181
  }
182
182
  requireStore() {
183
183
  return this._store ? this._store : K(`Failed getting '${this._name}' store`);
184
184
  }
185
- }, w(we, "persist", []), we);
186
- const Ia = {
185
+ }, $(xe, "persist", []), xe);
186
+ const qa = {
187
187
  Low: -256,
188
188
  Default: 0,
189
189
  High: 256
190
190
  };
191
- class Is extends ge {
191
+ class Ts extends be {
192
192
  constructor() {
193
193
  super(...arguments);
194
- w(this, "listeners", {});
194
+ $(this, "listeners", {});
195
195
  }
196
196
  async boot() {
197
197
  Object.entries(globalThis.__aerogelEvents__ ?? {}).forEach(([e, r]) => (
@@ -202,50 +202,50 @@ class Is extends ge {
202
202
  async emit(e, r) {
203
203
  var a;
204
204
  const n = this.listeners[e] ?? { priorities: [], handlers: {} };
205
- for (const l of n.priorities)
206
- await Promise.all(((a = n.handlers[l]) == null ? void 0 : a.map((c) => c(r))) ?? []);
205
+ for (const i of n.priorities)
206
+ await Promise.all(((a = n.handlers[i]) == null ? void 0 : a.map((l) => l(r))) ?? []);
207
207
  }
208
208
  // prettier-ignore
209
209
  /* eslint-enable max-len */
210
210
  on(e, r, n) {
211
- const a = typeof r == "function" ? {} : typeof r == "number" ? { priority: r } : r, l = typeof r == "function" ? r : n;
212
- return this.registerListener(e, a, l), () => this.off(e, l);
211
+ const a = typeof r == "function" ? {} : typeof r == "number" ? { priority: r } : r, i = typeof r == "function" ? r : n;
212
+ return this.registerListener(e, a, i), () => this.off(e, i);
213
213
  }
214
214
  // prettier-ignore
215
215
  /* eslint-enable max-len */
216
216
  once(e, r, n) {
217
217
  let a = null;
218
- const l = typeof r == "function" ? {} : r, c = typeof r == "function" ? r : n;
219
- return Z(
218
+ const i = typeof r == "function" ? {} : r, l = typeof r == "function" ? r : n;
219
+ return X(
220
220
  () => a && this.off(e, a),
221
221
  (d) => {
222
- a = (...v) => (d(), c(...v)), this.registerListener(e, l, c);
222
+ a = (...v) => (d(), l(...v)), this.registerListener(e, i, l);
223
223
  }
224
224
  );
225
225
  }
226
226
  off(e, r) {
227
- var l;
227
+ var i;
228
228
  const n = this.listeners[e];
229
229
  if (!n)
230
230
  return;
231
231
  const a = [...n.priorities];
232
- for (const c of a)
233
- $e(n.handlers[c] ?? [], r), ((l = n.handlers[c]) == null ? void 0 : l.length) === 0 && (delete n.handlers[c], $e(n.priorities, c));
232
+ for (const l of a)
233
+ Ce(n.handlers[l] ?? [], r), ((i = n.handlers[l]) == null ? void 0 : i.length) === 0 && (delete n.handlers[l], Ce(n.priorities, l));
234
234
  n.priorities.length === 0 && delete this.listeners[e];
235
235
  }
236
236
  registerListener(e, r, n) {
237
237
  var d, v, x;
238
238
  const a = r.priority ?? 0;
239
239
  e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
240
- const l = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? K(`priorities missing for event '${e}'`), c = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? K(`handlers missing for event '${e}'`);
241
- l.includes(a) || (l.push(a), l.sort((h, $) => $ - h), c[a] = []), (x = c[a]) == null || x.push(n);
240
+ const i = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? K(`priorities missing for event '${e}'`), l = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? K(`handlers missing for event '${e}'`);
241
+ i.includes(a) || (i.push(a), i.sort((p, _) => _ - p), l[a] = []), (x = l[a]) == null || x.push(n);
242
242
  }
243
243
  }
244
- const T = G(Is);
245
- function Ta(t) {
244
+ const I = Y(Ts);
245
+ function Fa(t) {
246
246
  return t;
247
247
  }
248
- const Ts = he({
248
+ const Rs = ve({
249
249
  name: "app",
250
250
  initialState: {
251
251
  plugins: {},
@@ -267,12 +267,12 @@ const Ts = he({
267
267
  }
268
268
  }
269
269
  });
270
- class Vs extends Ts {
270
+ class Ps extends Rs {
271
271
  constructor() {
272
272
  super(...arguments);
273
- w(this, "name", O.name);
274
- w(this, "ready", new W());
275
- w(this, "mounted", new W());
273
+ $(this, "name", O.name);
274
+ $(this, "ready", new W());
275
+ $(this, "mounted", new W());
276
276
  }
277
277
  isReady() {
278
278
  return this.ready.isResolved();
@@ -281,13 +281,13 @@ class Vs extends Ts {
281
281
  return this.mounted.isResolved();
282
282
  }
283
283
  addSetting(e) {
284
- this.settings.push(R(e));
284
+ this.settings.push(P(e));
285
285
  }
286
286
  async whenReady(e) {
287
287
  return await this.ready.then(e);
288
288
  }
289
289
  async reload(e) {
290
- e && zt(e), location.reload(), await jt();
290
+ e && zt(e), location.reload(), await Dt();
291
291
  }
292
292
  plugin(e) {
293
293
  return this.plugins[e] ?? null;
@@ -297,15 +297,15 @@ class Vs extends Ts {
297
297
  return ((r = this.instance) == null ? void 0 : r.config.globalProperties[e]) ?? null;
298
298
  }
299
299
  async boot() {
300
- T.once("application-ready", () => this.ready.resolve()), T.once("application-mounted", () => this.mounted.resolve());
300
+ I.once("application-ready", () => this.ready.resolve()), I.once("application-mounted", () => this.mounted.resolve());
301
301
  }
302
302
  }
303
- const j = G(Vs);
304
- function Va(t) {
303
+ const D = Y(Ps);
304
+ function Ua(t) {
305
305
  return t;
306
306
  }
307
- async function Rs(t, ...s) {
308
- j.setState(
307
+ async function As(t, ...s) {
308
+ D.setState(
309
309
  "plugins",
310
310
  t.reduce(
311
311
  (e, r) => (r.name && (e[r.name] = r), e),
@@ -313,55 +313,55 @@ async function Rs(t, ...s) {
313
313
  )
314
314
  ), await Promise.all(t.map((e) => e.install(...s)) ?? []);
315
315
  }
316
- function Ps(t) {
317
- return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${D(r)}"`, "");
316
+ function zs(t) {
317
+ return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${q(r)}"`, "");
318
318
  }
319
- function Ra(t) {
319
+ function Oa(t) {
320
320
  return t;
321
321
  }
322
- function As(t) {
323
- const s = le(t);
324
- return s ? de(s) : void 0;
322
+ function Ds(t) {
323
+ const s = se(t);
324
+ return s ? pe(s) : void 0;
325
325
  }
326
- function H(t, s) {
327
- return As(t) ?? K(s ?? `Could not resolve '${D(t)}' injection key`);
326
+ function V(t, s) {
327
+ return Ds(t) ?? K(s ?? `Could not resolve '${q(t)}' injection key`);
328
328
  }
329
- function zs(t, s) {
330
- return le(t) ?? K(s ?? `Could not resolve '${D(t)}' injection key`);
329
+ function js(t, s) {
330
+ return se(t) ?? K(s ?? `Could not resolve '${q(t)}' injection key`);
331
331
  }
332
332
  function Ze(t) {
333
333
  return typeof t == "string" ? t : t.type === St ? "" : t.type === kt || t.type === Mt ? t.children : t.type === "br" ? `
334
334
 
335
- ` : `<${t.type} ${Ps(t)}>${Array.from(t.children).map(Ze).join("")}</${t.type}>`;
335
+ ` : `<${t.type} ${zs(t)}>${Array.from(t.children).map(Ze).join("")}</${t.type}>`;
336
336
  }
337
- const _e = /* @__PURE__ */ new WeakMap(), js = {
337
+ const _e = /* @__PURE__ */ new WeakMap(), Bs = {
338
338
  mounted(t, { value: s, modifiers: e }) {
339
339
  const r = typeof s == "function" ? s : null, n = () => {
340
340
  const a = t.getBoundingClientRect();
341
341
  e.css && (t.style.setProperty("--width", `${a.width}px`), t.style.setProperty("--height", `${a.height}px`)), r == null || r({ width: a.width, height: a.height });
342
342
  };
343
- e.watch && _e.set(t, Z(new ResizeObserver(n)).observe(t)), n();
343
+ e.watch && _e.set(t, X(new ResizeObserver(n)).observe(t)), n();
344
344
  },
345
345
  unmounted(t) {
346
346
  var s;
347
347
  (s = _e.get(t)) == null || s.unobserve(t), _e.delete(t);
348
348
  }
349
- }, Bs = {
350
- measure: js
351
- }, Ds = {
349
+ }, qs = {
350
+ measure: Bs
351
+ }, Fs = {
352
352
  install(t, s) {
353
353
  const e = {
354
- ...Bs,
354
+ ...qs,
355
355
  ...s.directives
356
356
  };
357
357
  for (const [r, n] of Object.entries(e))
358
358
  t.directive(r, n);
359
359
  }
360
360
  };
361
- class qs extends ge {
361
+ class Us extends be {
362
362
  constructor() {
363
363
  super(...arguments);
364
- w(this, "cache");
364
+ $(this, "cache");
365
365
  }
366
366
  async get(e) {
367
367
  return await (await this.open()).match(e) ?? null;
@@ -374,73 +374,73 @@ class qs extends ge {
374
374
  (await n.keys(e)).length !== 0 && await n.put(e, r);
375
375
  }
376
376
  async open() {
377
- return this.cache = this.cache ?? Z(new W(), (e) => {
377
+ return this.cache = this.cache ?? X(new W(), (e) => {
378
378
  caches.open("app").then((r) => e.resolve(r));
379
379
  });
380
380
  }
381
381
  }
382
- const Pa = G(qs);
383
- class Fs extends ge {
382
+ const Na = Y(Us);
383
+ class Os extends be {
384
384
  async purge() {
385
- await T.emit("purge-storage");
385
+ await I.emit("purge-storage");
386
386
  }
387
387
  }
388
- const Us = G(Fs);
389
- function Aa(t, s) {
388
+ const Ns = Y(Os);
389
+ function Wa(t, s) {
390
390
  return {
391
391
  ...t,
392
- ...ne(s, Object.keys(t))
392
+ ...oe(s, Object.keys(t))
393
393
  };
394
394
  }
395
- const Os = {
396
- $app: j,
397
- $events: T,
398
- $storage: Us
395
+ const Ws = {
396
+ $app: D,
397
+ $events: I,
398
+ $storage: Ns
399
399
  };
400
- async function ve(t, s) {
400
+ async function ye(t, s) {
401
401
  await Promise.all(
402
402
  Object.entries(s).map(async ([e, r]) => {
403
403
  await r.launch().catch((n) => {
404
- var a, l;
405
- return (l = (a = t.config).errorHandler) == null ? void 0 : l.call(a, n, null, `Failed launching ${e}.`);
404
+ var a, i;
405
+ return (i = (a = t.config).errorHandler) == null ? void 0 : i.call(a, n, null, `Failed launching ${e}.`);
406
406
  });
407
407
  })
408
- ), Object.assign(t.config.globalProperties, s), (Y() || Le()) && Object.assign(globalThis, s);
408
+ ), Object.assign(t.config.globalProperties, s), (ee() || Ve()) && Object.assign(globalThis, s);
409
409
  }
410
- const Ns = {
410
+ const Ks = {
411
411
  async install(t, s) {
412
412
  var r;
413
413
  const e = {
414
- ...Os,
414
+ ...Ws,
415
415
  ...s.services
416
416
  };
417
- t.use(Hs()), (r = s.settings) == null || r.forEach((n) => j.addSetting(n)), await ve(t, e);
417
+ t.use(Ls()), (r = s.settings) == null || r.forEach((n) => D.addSetting(n)), await ye(t, e);
418
418
  }
419
- }, Ge = 768, pe = {
419
+ }, Xe = 768, me = {
420
420
  Mobile: "mobile",
421
421
  Desktop: "desktop"
422
422
  };
423
- function Xe() {
424
- return globalThis.innerWidth > Ge ? pe.Desktop : pe.Mobile;
423
+ function Ye() {
424
+ return globalThis.innerWidth > Xe ? me.Desktop : me.Mobile;
425
425
  }
426
- const Ws = he({
426
+ const Qs = ve({
427
427
  name: "ui",
428
428
  initialState: {
429
429
  modals: [],
430
430
  toasts: [],
431
- layout: Xe()
431
+ layout: Ye()
432
432
  },
433
433
  computed: {
434
- desktop: ({ layout: t }) => t === pe.Desktop,
435
- mobile: ({ layout: t }) => t === pe.Mobile,
434
+ desktop: ({ layout: t }) => t === me.Desktop,
435
+ mobile: ({ layout: t }) => t === me.Mobile,
436
436
  openModals: ({ modals: t }) => t.filter(({ closing: s }) => !s)
437
437
  }
438
438
  });
439
- class Ks extends Ws {
439
+ class Js extends Qs {
440
440
  constructor() {
441
441
  super(...arguments);
442
- w(this, "modalCallbacks", {});
443
- w(this, "components", {});
442
+ $(this, "modalCallbacks", {});
443
+ $(this, "components", {});
444
444
  }
445
445
  registerComponent(e, r) {
446
446
  this.components[e] = r;
@@ -461,7 +461,7 @@ class Ks extends Ws {
461
461
  // prettier-ignore
462
462
  /* eslint-enable max-len */
463
463
  async confirm(e, r, n) {
464
- const l = typeof r != "string" ? {
464
+ const i = typeof r != "string" ? {
465
465
  ...r ?? {},
466
466
  message: e,
467
467
  required: !!(r != null && r.required)
@@ -470,76 +470,89 @@ class Ks extends Ws {
470
470
  title: e,
471
471
  message: r,
472
472
  required: !!(n != null && n.required)
473
- }, c = await this.modalForm(this.requireComponent("confirm-modal"), l), d = typeof c == "object" ? c[0] : c ?? !1, v = typeof c == "object" ? c[1] : Object.entries(l.checkboxes ?? {}).reduce(
474
- (x, [h, { default: $ }]) => ({
475
- [h]: $ ?? !1,
473
+ }, 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(
474
+ (x, [p, { default: _ }]) => ({
475
+ [p]: _ ?? !1,
476
476
  ...x
477
477
  }),
478
478
  {}
479
479
  );
480
- for (const [x, h] of Object.entries(l.checkboxes ?? {}))
481
- if (!(!h.required || v[x]))
482
- return d && Y() && console.warn(`Confirmed confirm modal was suppressed because required '${x}' checkbox was missing`), [!1, v];
483
- return "checkboxes" in l ? [d, v] : d;
480
+ for (const [x, p] of Object.entries(i.checkboxes ?? {}))
481
+ if (!(!p.required || v[x]))
482
+ return d && ee() && console.warn(`Confirmed confirm modal was suppressed because required '${x}' checkbox was missing`), [!1, v];
483
+ return "checkboxes" in i ? [d, v] : d;
484
484
  }
485
485
  async prompt(e, r, n) {
486
- const a = (n == null ? void 0 : n.trim) ?? !0, l = () => typeof r != "string" ? {
486
+ const a = (n == null ? void 0 : n.trim) ?? !0, i = () => typeof r != "string" ? {
487
487
  message: e,
488
488
  ...r ?? {}
489
489
  } : {
490
490
  title: e,
491
491
  message: r,
492
492
  ...n ?? {}
493
- }, c = await this.modalForm(this.requireComponent("prompt-modal"), l());
494
- return (a && typeof c == "string" ? c == null ? void 0 : c.trim() : c) ?? null;
493
+ }, l = await this.modalForm(this.requireComponent("prompt-modal"), i());
494
+ return (a && typeof l == "string" ? l == null ? void 0 : l.trim() : l) ?? null;
495
495
  }
496
496
  async loading(e, r) {
497
- const n = (v) => typeof v == "function" ? Promise.resolve(v()) : v, a = () => typeof e == "string" ? {
498
- props: { message: e },
499
- operationPromise: n(r)
500
- } : typeof e == "function" || e instanceof Promise ? { operationPromise: n(e) } : {
501
- props: e,
502
- operationPromise: n(r)
503
- }, { operationPromise: l, props: c } = a(), d = await this.modal(this.requireComponent("loading-modal"), c);
497
+ const n = (p) => typeof p == "function" ? Promise.resolve(p()) : p, a = () => {
498
+ if (typeof e == "string")
499
+ return {
500
+ props: { message: e },
501
+ operationPromise: n(r)
502
+ };
503
+ if (typeof e == "function" || e instanceof Promise)
504
+ return { operationPromise: n(e) };
505
+ const { delay: p, ..._ } = e;
506
+ return {
507
+ props: _,
508
+ delay: o(p),
509
+ operationPromise: n(r)
510
+ };
511
+ };
512
+ let i = !1;
513
+ const { operationPromise: l, props: d, delay: v } = a();
514
+ if (v && await Promise.race([ce({ ms: v }).then(() => i = !0), l]), v && !i)
515
+ return l;
516
+ const x = await this.modal(this.requireComponent("loading-modal"), d);
504
517
  try {
505
- const v = await l;
506
- return await xe({ ms: 500 }), v;
518
+ const p = await l;
519
+ return await ce({ ms: 500 }), p;
507
520
  } finally {
508
- await this.closeModal(d.id);
521
+ await this.closeModal(x.id);
509
522
  }
510
523
  }
511
524
  toast(e, r = {}) {
512
- const { component: n, ...a } = r, l = {
513
- id: oe(),
525
+ const { component: n, ...a } = r, i = {
526
+ id: te(),
514
527
  properties: { message: e, ...a },
515
- component: R(n ?? this.requireComponent("toast"))
528
+ component: P(n ?? this.requireComponent("toast"))
516
529
  };
517
- this.setState("toasts", this.toasts.concat(l));
530
+ this.setState("toasts", this.toasts.concat(i));
518
531
  }
519
532
  async modal(e, r) {
520
- const n = oe(), a = {}, l = {
533
+ const n = te(), a = {}, i = {
521
534
  id: n,
522
535
  closing: !1,
523
536
  properties: r ?? {},
524
- component: R(e),
537
+ component: P(e),
525
538
  beforeClose: new Promise((d) => a.willClose = d),
526
539
  afterClose: new Promise((d) => a.hasClosed = d)
527
- }, c = this.modals.concat(l);
528
- return this.modalCallbacks[l.id] = a, this.setState({ modals: c }), await qe(), l;
540
+ }, l = this.modals.concat(i);
541
+ return this.modalCallbacks[i.id] = a, this.setState({ modals: l }), await qe(), i;
529
542
  }
530
543
  async modalForm(e, r) {
531
544
  return await (await this.modal(e, r)).beforeClose;
532
545
  }
533
546
  async closeModal(e, r) {
534
- if (!j.isMounted()) {
547
+ if (!D.isMounted()) {
535
548
  await this.removeModal(e, r);
536
549
  return;
537
550
  }
538
- await T.emit("close-modal", { id: e, result: r });
551
+ await I.emit("close-modal", { id: e, result: r });
539
552
  }
540
553
  async closeAllModals() {
541
554
  for (; this.modals.length > 0; )
542
- await this.closeModal(Bt(this.modals[this.modals.length - 1]).id);
555
+ await this.closeModal(jt(this.modals[this.modals.length - 1]).id);
543
556
  }
544
557
  async boot() {
545
558
  this.watchModalEvents(), this.watchMountedEvent(), this.watchViewportBreakpoints();
@@ -548,34 +561,34 @@ class Ks extends Ws {
548
561
  var n, a;
549
562
  this.setState(
550
563
  "modals",
551
- this.modals.filter((l) => l.id !== e)
564
+ this.modals.filter((i) => i.id !== e)
552
565
  ), (a = (n = this.modalCallbacks[e]) == null ? void 0 : n.hasClosed) == null || a.call(n, r), delete this.modalCallbacks[e];
553
566
  }
554
567
  watchModalEvents() {
555
- T.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
556
- var a, l;
557
- const n = this.modals.find((c) => e === c.id);
558
- n && (n.closing = !0), (l = (a = this.modalCallbacks[e]) == null ? void 0 : a.willClose) == null || l.call(a, r);
559
- }), T.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
568
+ I.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
569
+ var a, i;
570
+ const n = this.modals.find((l) => e === l.id);
571
+ n && (n.closing = !0), (i = (a = this.modalCallbacks[e]) == null ? void 0 : a.willClose) == null || i.call(a, r);
572
+ }), I.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
560
573
  await this.removeModal(e, r);
561
574
  });
562
575
  }
563
576
  watchMountedEvent() {
564
- T.once("application-mounted", async () => {
577
+ I.once("application-mounted", async () => {
565
578
  if (!globalThis.document || !globalThis.getComputedStyle)
566
579
  return;
567
580
  const e = globalThis.document.getElementById("splash");
568
- e && (globalThis.getComputedStyle(e).opacity !== "0" && (e.style.opacity = "0", await xe({ ms: 600 })), e.remove());
581
+ e && (globalThis.getComputedStyle(e).opacity !== "0" && (e.style.opacity = "0", await ce({ ms: 600 })), e.remove());
569
582
  });
570
583
  }
571
584
  watchViewportBreakpoints() {
572
585
  if (!globalThis.matchMedia)
573
586
  return;
574
- globalThis.matchMedia(`(min-width: ${Ge}px)`).addEventListener("change", () => this.setState({ layout: Xe() }));
587
+ globalThis.matchMedia(`(min-width: ${Xe}px)`).addEventListener("change", () => this.setState({ layout: Ye() }));
575
588
  }
576
589
  }
577
- const V = G(Ks);
578
- class Qs {
590
+ const R = Y(Js);
591
+ class Zs {
579
592
  constructor(s, e) {
580
593
  this.locale = s, this.fallbackLocale = e;
581
594
  }
@@ -595,13 +608,13 @@ class Qs {
595
608
  return ["en"];
596
609
  }
597
610
  translate(s) {
598
- return Y() && console.warn("Lang provider is missing"), s;
611
+ return ee() && console.warn("Lang provider is missing"), s;
599
612
  }
600
613
  translateWithDefault(s, e) {
601
- return Y() && console.warn("Lang provider is missing"), e;
614
+ return ee() && console.warn("Lang provider is missing"), e;
602
615
  }
603
616
  }
604
- const Js = he({
617
+ const Xs = ve({
605
618
  name: "lang",
606
619
  persist: ["locale", "fallbackLocale"],
607
620
  initialState: {
@@ -610,11 +623,11 @@ const Js = he({
610
623
  fallbackLocale: "en"
611
624
  }
612
625
  });
613
- class Zs extends Js {
626
+ class Ys extends Xs {
614
627
  constructor() {
615
628
  super();
616
- w(this, "provider");
617
- this.provider = new Qs(
629
+ $(this, "provider");
630
+ this.provider = new Zs(
618
631
  this.getState("locale") ?? this.getBrowserLocale(),
619
632
  this.getState("fallbackLocale")
620
633
  );
@@ -642,7 +655,7 @@ class Zs extends Js {
642
655
  );
643
656
  }
644
657
  }
645
- const Q = G(Zs), Ye = Q.translate.bind(Q), S = Q.translateWithDefault.bind(Q), Gs = he({
658
+ const Q = Y(Ys), Ge = Q.translate.bind(Q), k = Q.translateWithDefault.bind(Q), Gs = ve({
646
659
  name: "errors",
647
660
  initialState: {
648
661
  logs: [],
@@ -654,11 +667,11 @@ const Q = G(Zs), Ye = Q.translate.bind(Q), S = Q.translateWithDefault.bind(Q), G
654
667
  hasStartupErrors: ({ startupErrors: t }) => t.length > 0
655
668
  }
656
669
  });
657
- class Xs extends Gs {
670
+ class er extends Gs {
658
671
  constructor() {
659
672
  super(...arguments);
660
- w(this, "forceReporting", !1);
661
- w(this, "enabled", !0);
673
+ $(this, "forceReporting", !1);
674
+ $(this, "enabled", !0);
662
675
  }
663
676
  enable() {
664
677
  this.enabled = !0;
@@ -668,18 +681,18 @@ class Xs extends Gs {
668
681
  }
669
682
  async inspect(e, r) {
670
683
  if (Array.isArray(e) && e.length === 0) {
671
- V.alert(S("errors.inspectEmpty", "Nothing to inspect!"));
684
+ R.alert(k("errors.inspectEmpty", "Nothing to inspect!"));
672
685
  return;
673
686
  }
674
687
  const n = Array.isArray(e) ? e[0] : this.isErrorReport(e) ? e : await this.createErrorReport(e), a = Array.isArray(e) ? e : r ?? [n];
675
- V.modal(V.requireComponent("error-report-modal"), { report: n, reports: a });
688
+ R.modal(R.requireComponent("error-report-modal"), { report: n, reports: a });
676
689
  }
677
690
  async report(e, r) {
678
- if (await T.emit("error", { error: e, message: r }), Le("unit") || (Y() && this.logError(e), !this.enabled))
691
+ if (await I.emit("error", { error: e, message: r }), Ve("unit") || (ee() && this.logError(e), !this.enabled))
679
692
  throw e;
680
- if (!j.isMounted()) {
681
- const l = await this.createStartupErrorReport(e);
682
- l && this.setState({ startupErrors: this.startupErrors.concat(l) });
693
+ if (!D.isMounted()) {
694
+ const i = await this.createStartupErrorReport(e);
695
+ i && this.setState({ startupErrors: this.startupErrors.concat(i) });
683
696
  return;
684
697
  }
685
698
  const n = await this.createErrorReport(e), a = {
@@ -687,15 +700,15 @@ class Xs extends Gs {
687
700
  seen: !1,
688
701
  date: /* @__PURE__ */ new Date()
689
702
  };
690
- V.toast(
691
- r ?? S("errors.notice", "Something went wrong, but it's not your fault. Try again!"),
703
+ R.toast(
704
+ r ?? k("errors.notice", "Something went wrong, but it's not your fault. Try again!"),
692
705
  {
693
706
  variant: "danger",
694
707
  actions: [
695
708
  {
696
- label: S("errors.viewDetails", "View details"),
709
+ label: k("errors.viewDetails", "View details"),
697
710
  dismiss: !0,
698
- click: () => V.modal(V.requireComponent("error-report-modal"), { report: n, reports: [n] })
711
+ click: () => R.modal(R.requireComponent("error-report-modal"), { report: n, reports: [n] })
699
712
  }
700
713
  ]
701
714
  }
@@ -718,27 +731,27 @@ class Xs extends Gs {
718
731
  });
719
732
  }
720
733
  logError(e) {
721
- console.error(e), ce(e) && e.cause && this.logError(e.cause);
734
+ console.error(e), ue(e) && e.cause && this.logError(e.cause);
722
735
  }
723
736
  isErrorReport(e) {
724
- return ce(e) && "title" in e;
737
+ return ue(e) && "title" in e;
725
738
  }
726
739
  async createErrorReport(e) {
727
- return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof fe ? this.createErrorReportFromError(e) : ce(e) ? Ke({
728
- title: D(
729
- e.name ?? e.title ?? S("errors.unknown", "Unknown Error")
740
+ return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof ge ? this.createErrorReportFromError(e) : ue(e) ? Ke({
741
+ title: q(
742
+ e.name ?? e.title ?? k("errors.unknown", "Unknown Error")
730
743
  ),
731
- description: D(
732
- e.message ?? e.description ?? S("errors.unknownDescription", "Unknown error object")
744
+ description: q(
745
+ e.message ?? e.description ?? k("errors.unknownDescription", "Unknown error object")
733
746
  ),
734
747
  error: e
735
748
  }) : {
736
- title: S("errors.unknown", "Unknown Error"),
749
+ title: k("errors.unknown", "Unknown Error"),
737
750
  error: e
738
751
  };
739
752
  }
740
753
  async createStartupErrorReport(e) {
741
- return e instanceof Ce ? e.cause instanceof Ce ? null : this.createErrorReport(e.cause) : this.createErrorReport(e);
754
+ return e instanceof Se ? e.cause instanceof Se ? null : this.createErrorReport(e.cause) : this.createErrorReport(e);
742
755
  }
743
756
  createErrorReportFromError(e, r = {}) {
744
757
  return {
@@ -750,110 +763,44 @@ class Xs extends Gs {
750
763
  };
751
764
  }
752
765
  }
753
- const et = G(Xs), tt = [];
754
- function za(t) {
755
- tt.push(t);
756
- }
757
- function st(t) {
758
- for (const s of tt) {
759
- const e = s(t);
760
- if (e)
761
- return e;
762
- }
763
- return typeof t == "string" ? t : t instanceof Error || t instanceof fe ? t.message : ce(t) ? D(t.message ?? t.description ?? "Unknown error object") : S("errors.unknown", "Unknown Error");
764
- }
765
- class ze extends fe {
766
- }
767
- const Ys = { $errors: et }, er = (t) => (et.report(t), !0);
768
- function tr(t, s = () => !1) {
769
- const e = (r) => s(r) || er(r);
770
- t.config.errorHandler = e, globalThis.onerror = (r, n, a, l, c) => e(c ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
771
- }
772
- const sr = {
773
- async install(t, s) {
774
- tr(t, s.handleError), await ve(t, Ys);
775
- }
776
- };
777
- let ae = null;
778
- function rr() {
779
- return Z(new Pe(), (t) => {
766
+ const et = Y(er);
767
+ let ie = null;
768
+ function tr() {
769
+ return X(new Pe(), (t) => {
780
770
  t.link = function(s) {
781
771
  const e = Pe.prototype.link.apply(this, [s]);
782
772
  return s.href.startsWith("#") ? e : e.replace("<a", '<a target="_blank"');
783
773
  };
784
774
  });
785
775
  }
786
- function nr(t) {
776
+ function sr(t) {
787
777
  const s = Qe(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
788
778
  for (const [e, r, n] of s)
789
779
  t = t.replace(e, `<button type="button" data-markdown-action="${r}">${n}</button>`);
790
780
  return t;
791
781
  }
792
- function ar(t) {
782
+ function rr(t) {
793
783
  const s = Qe(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
794
784
  for (const [e, r, n] of s) {
795
- const a = (ae == null ? void 0 : ae.resolve(r)) ?? r;
785
+ const a = (ie == null ? void 0 : ie.resolve(r)) ?? r;
796
786
  t = t.replace(e, `<a data-markdown-route="${r}" href="${a}">${n}</a>`);
797
787
  }
798
788
  return t;
799
789
  }
800
- function or() {
801
- return ae;
790
+ function nr() {
791
+ return ie;
802
792
  }
803
- function ja(t) {
804
- ae = t;
793
+ function Ka(t) {
794
+ ie = t;
805
795
  }
806
- function lr(t) {
807
- let s = Yt(t, { renderer: rr(), async: !1 });
808
- return s = ir(s), s = nr(s), s = ar(s), s;
796
+ function ar(t) {
797
+ let s = Gt(t, { renderer: tr(), async: !1 });
798
+ return s = lr(s), s = sr(s), s = rr(s), s;
809
799
  }
810
- function ir(t) {
811
- return Xt.sanitize(t, { ADD_ATTR: ["target"] });
800
+ function lr(t) {
801
+ return Yt.sanitize(t, { ADD_ATTR: ["target"] });
812
802
  }
813
- const cr = /* @__PURE__ */ g({
814
- __name: "Markdown",
815
- props: {
816
- as: {},
817
- inline: { type: Boolean },
818
- langKey: {},
819
- langParams: {},
820
- langDefault: {},
821
- text: {},
822
- actions: {}
823
- },
824
- setup(t) {
825
- const s = Fe(), e = Me(), r = u(() => e.default ? e.default().map(Ze).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : Ye(t.langKey, t.langParams ?? {})))), n = u(() => {
826
- if (!r.value)
827
- return null;
828
- let c = lr(r.value);
829
- return t.inline && (c = c.replace("<p>", "<span>").replace("</p>", "</span>")), c;
830
- }), a = () => Et(t.as ?? (t.inline ? "span" : "div"), {
831
- innerHTML: n.value,
832
- onClick: l,
833
- ...s,
834
- class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
835
- });
836
- async function l(c) {
837
- var v, x;
838
- const { target: d } = c;
839
- if (Re(d, HTMLElement) && d.dataset.markdownAction) {
840
- (x = (v = t.actions) == null ? void 0 : v[d.dataset.markdownAction]) == null || x.call(v);
841
- return;
842
- }
843
- if (Re(d, HTMLAnchorElement) && d.dataset.markdownRoute) {
844
- const h = or();
845
- h && (c.preventDefault(), h.visit(d.dataset.markdownRoute));
846
- return;
847
- }
848
- }
849
- return (c, d) => (i(), f(a));
850
- }
851
- }), ur = (t, s) => {
852
- const e = t.__vccOpts || t;
853
- for (const [r, n] of s)
854
- e[r] = n;
855
- return e;
856
- }, A = /* @__PURE__ */ ur(cr, [["__scopeId", "data-v-8b211cfb"]]), rt = /* @__PURE__ */ g({
803
+ const tt = /* @__PURE__ */ g({
857
804
  __name: "HeadlessButton",
858
805
  props: {
859
806
  class: {},
@@ -870,7 +817,7 @@ const cr = /* @__PURE__ */ g({
870
817
  },
871
818
  setup(t) {
872
819
  const s = u(() => t.as ? { as: t.as } : t.route ? {
873
- as: V.resolveComponent("router-link") ?? "a",
820
+ as: R.resolveComponent("router-link") ?? "a",
874
821
  to: Ke({
875
822
  name: t.route,
876
823
  params: t.routeParams,
@@ -884,24 +831,24 @@ const cr = /* @__PURE__ */ g({
884
831
  as: "button",
885
832
  type: t.submit ? "submit" : "button"
886
833
  });
887
- return (e, r) => (i(), f(o(es), I({
834
+ return (e, r) => (c(), h(o(rs), H({
888
835
  class: t.class,
889
836
  "as-child": e.asChild,
890
837
  disabled: e.disabled
891
838
  }, s.value), {
892
- default: m(() => [
893
- _(e.$slots, "default")
839
+ default: f(() => [
840
+ w(e.$slots, "default")
894
841
  ]),
895
842
  _: 3
896
843
  }, 16, ["class", "as-child", "disabled"]));
897
844
  }
898
845
  });
899
- function nt(t, s) {
900
- const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, l = ks(n, a);
901
- return E(l(r), o(e));
846
+ function st(t, s) {
847
+ const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, i = ts(n, a);
848
+ return E(i(r), o(e));
902
849
  }
903
850
  function E(...t) {
904
- return Ms(Ss(t));
851
+ return ss(es(t));
905
852
  }
906
853
  const z = /* @__PURE__ */ g({
907
854
  __name: "Button",
@@ -919,7 +866,7 @@ const z = /* @__PURE__ */ g({
919
866
  as: {}
920
867
  },
921
868
  setup(t) {
922
- const s = J(t, ["class", "size", "variant", "disabled"]), e = u(() => nt(
869
+ const s = J(t, ["class", "size", "variant", "disabled"]), e = u(() => st(
923
870
  { baseClasses: t.class, variant: t.variant, size: t.size, disabled: t.disabled },
924
871
  {
925
872
  baseClasses: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
@@ -990,6 +937,21 @@ const z = /* @__PURE__ */ g({
990
937
  variant: "link",
991
938
  disabled: !1,
992
939
  class: "hover:underline"
940
+ },
941
+ {
942
+ variant: "link",
943
+ size: "small",
944
+ class: "leading-6"
945
+ },
946
+ {
947
+ variant: "link",
948
+ size: "default",
949
+ class: "leading-8"
950
+ },
951
+ {
952
+ variant: "link",
953
+ size: "large",
954
+ class: "leading-10"
993
955
  }
994
956
  ],
995
957
  defaultVariants: {
@@ -999,60 +961,60 @@ const z = /* @__PURE__ */ g({
999
961
  }
1000
962
  }
1001
963
  ));
1002
- return (r, n) => (i(), f(rt, I({
964
+ return (r, n) => (c(), h(tt, H({
1003
965
  class: e.value,
1004
966
  disabled: r.disabled
1005
967
  }, s), {
1006
- default: m(() => [
1007
- _(r.$slots, "default")
968
+ default: f(() => [
969
+ w(r.$slots, "default")
1008
970
  ]),
1009
971
  _: 3
1010
972
  }, 16, ["class", "disabled"]));
1011
973
  }
1012
974
  });
1013
- function dr(t) {
975
+ function or(t) {
1014
976
  return typeof t == "object" && t !== null && "label" in t;
1015
977
  }
1016
- function at(t, s) {
1017
- const e = T.on(t, s);
1018
- me(() => e());
978
+ function rt(t, s) {
979
+ const e = I.on(t, s);
980
+ fe(() => e());
1019
981
  }
1020
- const pr = {
982
+ const ir = {
1021
983
  required: (t) => t ? void 0 : "required"
1022
- }, ue = { ...pr };
1023
- function Ba(t, s) {
1024
- ue[t] = s;
984
+ }, de = { ...ir };
985
+ function Qa(t, s) {
986
+ de[t] = s;
1025
987
  }
1026
- function mr(t, s) {
988
+ function cr(t, s) {
1027
989
  var r;
1028
- const e = (r = ue[s]) == null ? void 0 : r.call(ue, t);
990
+ const e = (r = de[s]) == null ? void 0 : r.call(de, t);
1029
991
  return e ? We(e) : [];
1030
992
  }
1031
- const Da = Symbol(), je = /* @__PURE__ */ new WeakMap();
1032
- class fr extends Ne {
993
+ const Ja = Symbol(), ze = /* @__PURE__ */ new WeakMap();
994
+ class ur extends Ne {
1033
995
  constructor(e) {
1034
996
  super();
1035
- w(this, "errors");
1036
- w(this, "_fields");
1037
- w(this, "_data");
1038
- w(this, "_submitted");
1039
- w(this, "_errors");
1040
- w(this, "_listeners", {});
1041
- this._fields = e, this._submitted = F(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), je.set(
997
+ $(this, "errors");
998
+ $(this, "_fields");
999
+ $(this, "_data");
1000
+ $(this, "_submitted");
1001
+ $(this, "_errors");
1002
+ $(this, "_listeners", {});
1003
+ this._fields = e, this._submitted = B(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), ze.set(
1042
1004
  this,
1043
1005
  u(() => !Object.values(this._errors).some((r) => r !== null))
1044
- ), this.errors = Ee(this._errors);
1006
+ ), this.errors = he(this._errors);
1045
1007
  }
1046
1008
  get valid() {
1047
1009
  var e;
1048
- return !!((e = je.get(this)) != null && e.value);
1010
+ return !!((e = ze.get(this)) != null && e.value);
1049
1011
  }
1050
1012
  get submitted() {
1051
1013
  return this._submitted.value;
1052
1014
  }
1053
1015
  setFieldValue(e, r) {
1054
- const n = this._fields[e] ?? K(`Trying to set undefined '${D(e)}' field`);
1055
- this._data[e] = n.type === "string" && (n.trim ?? !0) ? D(r).trim() : r, this._submitted.value && this.validate();
1016
+ const n = this._fields[e] ?? K(`Trying to set undefined '${q(e)}' field`);
1017
+ this._data[e] = n.type === "string" && (n.trim ?? !0) ? q(r).trim() : r, this._submitted.value && this.validate();
1056
1018
  }
1057
1019
  getFieldValue(e) {
1058
1020
  return this._data[e];
@@ -1085,7 +1047,7 @@ class fr extends Ne {
1085
1047
  return (n = this._listeners)[e] ?? (n[e] = []), (a = this._listeners[e]) == null || a.push(r), () => this.off(e, r);
1086
1048
  }
1087
1049
  off(e, r) {
1088
- $e(this._listeners[e] ?? [], r);
1050
+ Ce(this._listeners[e] ?? [], r);
1089
1051
  }
1090
1052
  async focus(e) {
1091
1053
  var r;
@@ -1102,23 +1064,23 @@ class fr extends Ne {
1102
1064
  this.setFieldValue(e, r);
1103
1065
  }
1104
1066
  getFieldErrors(e, r) {
1105
- var c;
1106
- const n = [], a = this._data[e], l = ((c = r.rules) == null ? void 0 : c.split("|")) ?? [];
1107
- for (const d of l)
1108
- d !== "required" && a == null || n.push(...mr(a, d));
1067
+ var l;
1068
+ const n = [], a = this._data[e], i = ((l = r.rules) == null ? void 0 : l.split("|")) ?? [];
1069
+ for (const d of i)
1070
+ d !== "required" && a == null || n.push(...cr(a, d));
1109
1071
  return n.length > 0 ? n : null;
1110
1072
  }
1111
1073
  getInitialData(e) {
1112
1074
  if (this.static().isConjuring())
1113
1075
  return {};
1114
- const r = Object.entries(e).reduce((n, [a, l]) => (n[a] = l.default ?? null, n), {});
1115
- return de(r);
1076
+ const r = Object.entries(e).reduce((n, [a, i]) => (n[a] = i.default ?? null, n), {});
1077
+ return pe(r);
1116
1078
  }
1117
1079
  getInitialErrors(e) {
1118
1080
  if (this.static().isConjuring())
1119
1081
  return {};
1120
1082
  const r = Object.keys(e).reduce((n, a) => (n[a] = null, n), {});
1121
- return de(r);
1083
+ return pe(r);
1122
1084
  }
1123
1085
  resetData() {
1124
1086
  for (const [e, r] of Object.entries(this._fields))
@@ -1128,75 +1090,75 @@ class fr extends Ne {
1128
1090
  Object.keys(this._errors).forEach((r) => delete this._errors[r]), e && Object.assign(this._errors, e);
1129
1091
  }
1130
1092
  }
1131
- function ot(t, s) {
1132
- const e = le("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
1133
- me(() => r == null ? void 0 : r());
1093
+ function nt(t, s) {
1094
+ const e = se("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
1095
+ fe(() => r == null ? void 0 : r());
1134
1096
  }
1135
- function lt(t) {
1136
- return new fr(t);
1097
+ function at(t) {
1098
+ return new ur(t);
1137
1099
  }
1138
- function it() {
1100
+ function lt() {
1139
1101
  const t = Fe(), s = u(() => t.class);
1140
- return [u(() => Dt(t, "class")), s];
1102
+ return [u(() => Bt(t, "class")), s];
1141
1103
  }
1142
- function qa(t) {
1104
+ function Za(t) {
1143
1105
  let s = qt;
1144
- Ht(() => s = t()), me(() => s());
1106
+ Et(() => s = t()), fe(() => s());
1145
1107
  }
1146
- function Fa(t, s) {
1147
- const e = de(U.get(t) ?? s);
1148
- return He(e, () => U.set(t, Lt(e))), e;
1108
+ function Xa(t, s) {
1109
+ const e = pe(U.get(t) ?? s);
1110
+ return Ee(e, () => U.set(t, Ht(e))), e;
1149
1111
  }
1150
- function Ua(t) {
1151
- const s = F(), e = u(t);
1152
- return He(e, async () => s.value = await e.value, { immediate: !0 }), s;
1112
+ function Ya(t) {
1113
+ const s = B(), e = u(t);
1114
+ return Ee(e, async () => s.value = await e.value, { immediate: !0 }), s;
1153
1115
  }
1154
- function Oa(t, s) {
1155
- const e = s ? t : {}, r = s ?? t, n = F(e.initial ?? null), a = Ft((l) => n.value = l, e.delay ?? 300);
1156
- return ie(() => a(r())), n;
1116
+ function Ga(t, s) {
1117
+ const e = s ? t : {}, r = s ?? t, n = B(e.initial ?? null), a = Ft((i) => n.value = i, e.delay ?? 300);
1118
+ return Z(() => a(r())), n;
1157
1119
  }
1158
- const ct = /* @__PURE__ */ g({
1120
+ const ot = /* @__PURE__ */ g({
1159
1121
  __name: "HeadlessSelectValue",
1160
1122
  setup(t) {
1161
- const s = H(
1123
+ const s = V(
1162
1124
  "select",
1163
1125
  "<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
1164
1126
  );
1165
- return (e, r) => e.$slots.default ? (i(), f(o(Ae), {
1127
+ return (e, r) => e.$slots.default ? (c(), h(o(Ae), {
1166
1128
  key: 0,
1167
1129
  placeholder: o(s).placeholder
1168
1130
  }, {
1169
- default: m(() => [
1170
- _(e.$slots, "default")
1131
+ default: f(() => [
1132
+ w(e.$slots, "default")
1171
1133
  ]),
1172
1134
  _: 3
1173
- }, 8, ["placeholder"])) : (i(), f(o(Ae), {
1135
+ }, 8, ["placeholder"])) : (c(), h(o(Ae), {
1174
1136
  key: 1,
1175
1137
  placeholder: o(s).placeholder
1176
1138
  }, null, 8, ["placeholder"]));
1177
1139
  }
1178
- }), ut = /* @__PURE__ */ g({
1140
+ }), it = /* @__PURE__ */ g({
1179
1141
  __name: "HeadlessSelectTrigger",
1180
1142
  setup(t) {
1181
- const s = H(
1143
+ const s = V(
1182
1144
  "select",
1183
1145
  "<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
1184
1146
  );
1185
- return (e, r) => (i(), f(o(ts), {
1147
+ return (e, r) => (c(), h(o(ns), {
1186
1148
  id: o(s).id
1187
1149
  }, {
1188
- default: m(() => [
1189
- _(e.$slots, "default", {}, () => [
1190
- p(ct, {
1150
+ default: f(() => [
1151
+ w(e.$slots, "default", {}, () => [
1152
+ m(ot, {
1191
1153
  placeholder: o(s).placeholder
1192
1154
  }, null, 8, ["placeholder"]),
1193
- p(o(ss))
1155
+ m(o(as))
1194
1156
  ])
1195
1157
  ]),
1196
1158
  _: 3
1197
1159
  }, 8, ["id"]));
1198
1160
  }
1199
- }), dt = /* @__PURE__ */ g({
1161
+ }), ct = /* @__PURE__ */ g({
1200
1162
  __name: "HeadlessSelectOption",
1201
1163
  props: {
1202
1164
  value: {},
@@ -1206,20 +1168,20 @@ const ct = /* @__PURE__ */ g({
1206
1168
  as: {}
1207
1169
  },
1208
1170
  setup(t) {
1209
- const s = H(
1171
+ const s = V(
1210
1172
  "select",
1211
1173
  "<HeadlessSelectOption> must be a child of a <HeadlessSelect>"
1212
1174
  ), e = u(() => {
1213
1175
  var n;
1214
1176
  const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
1215
- return r ? r.label : D(t.value);
1177
+ return r ? r.label : q(t.value);
1216
1178
  });
1217
- return (r, n) => (i(), f(o(rs), ee(te(r.$props)), {
1218
- default: m(() => [
1219
- p(o(ns), null, {
1220
- default: m(() => [
1221
- _(r.$slots, "default", {}, () => [
1222
- P(C(e.value), 1)
1179
+ return (r, n) => (c(), h(o(ls), re(ne(r.$props)), {
1180
+ default: f(() => [
1181
+ m(o(os), null, {
1182
+ default: f(() => [
1183
+ w(r.$slots, "default", {}, () => [
1184
+ A(S(e.value), 1)
1223
1185
  ])
1224
1186
  ]),
1225
1187
  _: 3
@@ -1228,33 +1190,33 @@ const ct = /* @__PURE__ */ g({
1228
1190
  _: 3
1229
1191
  }, 16));
1230
1192
  }
1231
- }), pt = /* @__PURE__ */ g({
1193
+ }), ut = /* @__PURE__ */ g({
1232
1194
  __name: "HeadlessSelectOptions",
1233
1195
  props: {
1234
1196
  class: {},
1235
1197
  innerClass: {}
1236
1198
  },
1237
1199
  setup(t) {
1238
- const s = H(
1200
+ const s = V(
1239
1201
  "select",
1240
1202
  "<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
1241
1203
  ), e = u(() => E("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
1242
- return (r, n) => (i(), f(o(as), null, {
1243
- default: m(() => [
1244
- p(o(os), {
1204
+ return (r, n) => (c(), h(o(is), null, {
1205
+ default: f(() => [
1206
+ m(o(cs), {
1245
1207
  position: "popper",
1246
- class: k(e.value),
1208
+ class: C(e.value),
1247
1209
  align: o(s).align,
1248
1210
  side: o(s).side,
1249
1211
  "side-offset": 4
1250
1212
  }, {
1251
- default: m(() => [
1252
- p(o(ls), {
1253
- class: k(r.innerClass)
1213
+ default: f(() => [
1214
+ m(o(us), {
1215
+ class: C(r.innerClass)
1254
1216
  }, {
1255
- default: m(() => [
1256
- _(r.$slots, "default", {}, () => [
1257
- (i(!0), b(B, null, q(o(s).options ?? [], (a) => (i(), f(dt, {
1217
+ default: f(() => [
1218
+ w(r.$slots, "default", {}, () => [
1219
+ (c(!0), b(j, null, F(o(s).options ?? [], (a) => (c(), h(ct, {
1258
1220
  key: a.key,
1259
1221
  value: a.value
1260
1222
  }, null, 8, ["value"]))), 128))
@@ -1269,7 +1231,7 @@ const ct = /* @__PURE__ */ g({
1269
1231
  _: 3
1270
1232
  }));
1271
1233
  }
1272
- }), hr = /* @__PURE__ */ g({
1234
+ }), dr = /* @__PURE__ */ g({
1273
1235
  inheritAttrs: !1,
1274
1236
  __name: "HeadlessSelect",
1275
1237
  props: {
@@ -1289,56 +1251,56 @@ const ct = /* @__PURE__ */ g({
1289
1251
  },
1290
1252
  emits: ["update:modelValue"],
1291
1253
  setup(t, { expose: s, emit: e }) {
1292
- const r = e, n = le("form", null), a = u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), l = u(() => a.value), c = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = u(() => t.options ? t.options.map((h) => ({
1293
- key: oe(),
1294
- label: t.renderOption ? t.renderOption(h) : dr(h) ? Ut(h.label) : D(h),
1295
- value: h
1254
+ const r = e, n = se("form", null), a = u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), i = u(() => a.value), l = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = u(() => t.options ? t.options.map((p) => ({
1255
+ key: te(),
1256
+ label: t.renderOption ? t.renderOption(p) : or(p) ? Ut(p.label) : q(p),
1257
+ value: p
1296
1258
  })) : null), v = {
1297
1259
  labelClass: t.labelClass,
1298
1260
  optionsClass: t.optionsClass,
1299
1261
  align: t.align,
1300
1262
  side: t.side,
1301
1263
  value: a,
1302
- id: `select-${oe()}`,
1264
+ id: `select-${te()}`,
1303
1265
  name: u(() => t.name),
1304
1266
  label: u(() => t.label),
1305
1267
  description: u(() => t.description),
1306
- placeholder: u(() => t.placeholder ?? S("ui.select", "Select an option")),
1268
+ placeholder: u(() => t.placeholder ?? k("ui.select", "Select an option")),
1307
1269
  options: d,
1308
1270
  selectedOption: u(() => {
1309
- var h;
1310
- return (h = d.value) == null ? void 0 : h.find(($) => $.value === t.modelValue);
1271
+ var p;
1272
+ return (p = d.value) == null ? void 0 : p.find((_) => _.value === t.modelValue);
1311
1273
  }),
1312
- errors: Ee(c),
1274
+ errors: he(l),
1313
1275
  required: u(() => {
1314
1276
  if (!(!t.name || !n))
1315
1277
  return n.getFieldRules(t.name).includes("required");
1316
1278
  }),
1317
- update(h) {
1279
+ update(p) {
1318
1280
  if (n && t.name) {
1319
- n.setFieldValue(t.name, h);
1281
+ n.setFieldValue(t.name, p);
1320
1282
  return;
1321
1283
  }
1322
- r("update:modelValue", h);
1284
+ r("update:modelValue", p);
1323
1285
  }
1324
1286
  };
1325
- function x(h) {
1326
- v.update(h);
1287
+ function x(p) {
1288
+ v.update(p);
1327
1289
  }
1328
- return se("select", v), s(v), (h, $) => (i(), f(o(is), {
1329
- "model-value": l.value,
1330
- by: h.compareOptions,
1331
- "onUpdate:modelValue": $[0] || ($[0] = (L) => x(L))
1290
+ return ae("select", v), s(v), (p, _) => (c(), h(o(ds), {
1291
+ "model-value": i.value,
1292
+ by: p.compareOptions,
1293
+ "onUpdate:modelValue": _[0] || (_[0] = (L) => x(L))
1332
1294
  }, {
1333
- default: m(({ open: L }) => [
1334
- (i(), f(N(h.as), ee(te(h.$attrs)), {
1335
- default: m(() => [
1336
- _(h.$slots, "default", {
1337
- modelValue: h.modelValue,
1295
+ default: f(({ open: L }) => [
1296
+ (c(), h(N(p.as), re(ne(p.$attrs)), {
1297
+ default: f(() => [
1298
+ w(p.$slots, "default", {
1299
+ modelValue: p.modelValue,
1338
1300
  open: L
1339
1301
  }, () => [
1340
- p(ut),
1341
- p(pt)
1302
+ m(it),
1303
+ m(ut)
1342
1304
  ])
1343
1305
  ]),
1344
1306
  _: 2
@@ -1347,47 +1309,50 @@ const ct = /* @__PURE__ */ g({
1347
1309
  _: 3
1348
1310
  }, 8, ["model-value", "by"]));
1349
1311
  }
1350
- }), Be = /* @__PURE__ */ g({
1312
+ }), De = /* @__PURE__ */ g({
1351
1313
  __name: "HeadlessSelectLabel",
1352
1314
  props: {
1353
1315
  asChild: { type: Boolean },
1354
1316
  as: {}
1355
1317
  },
1356
1318
  setup(t) {
1357
- const s = H(
1319
+ const s = V(
1358
1320
  "select",
1359
1321
  "<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
1360
- ), e = Me(), r = u(() => !!(s.label || e.default));
1361
- return (n, a) => r.value ? (i(), f(o(cs), I({
1322
+ ), e = He(), r = u(() => !!(s.label || e.default));
1323
+ return (n, a) => r.value ? (c(), h(o(ps), H({
1362
1324
  key: 0,
1363
1325
  for: o(s).id
1364
1326
  }, n.$props), {
1365
- default: m(() => [
1366
- _(n.$slots, "default", {}, () => [
1367
- P(C(o(s).label), 1)
1327
+ default: f(() => [
1328
+ w(n.$slots, "default", {}, () => [
1329
+ A(S(o(s).label), 1)
1368
1330
  ])
1369
1331
  ]),
1370
1332
  _: 3
1371
1333
  }, 16, ["for"])) : M("", !0);
1372
1334
  }
1373
- }), mt = /* @__PURE__ */ g({
1335
+ }), dt = /* @__PURE__ */ g({
1374
1336
  __name: "SelectLabel",
1337
+ props: {
1338
+ class: {}
1339
+ },
1375
1340
  setup(t) {
1376
- const s = H("select", "<SelectLabel> must be a child of a <Select>"), e = u(() => E("block text-sm leading-6 font-medium text-gray-900", s.labelClass));
1377
- return (r, n) => r.$slots.default ? (i(), f(Be, {
1341
+ const s = V("select", "<SelectLabel> must be a child of a <Select>"), e = u(() => E("block text-sm leading-6 font-medium text-gray-900", s.labelClass, t.class));
1342
+ return (r, n) => r.$slots.default ? (c(), h(De, {
1378
1343
  key: 0,
1379
- class: k(e.value)
1344
+ class: C(e.value)
1380
1345
  }, {
1381
- default: m(() => [
1382
- _(r.$slots, "default")
1346
+ default: f(() => [
1347
+ w(r.$slots, "default")
1383
1348
  ]),
1384
1349
  _: 3
1385
- }, 8, ["class"])) : (i(), f(Be, {
1350
+ }, 8, ["class"])) : (c(), h(De, {
1386
1351
  key: 1,
1387
- class: k(e.value)
1352
+ class: C(e.value)
1388
1353
  }, null, 8, ["class"]));
1389
1354
  }
1390
- }), De = /* @__PURE__ */ g({
1355
+ }), je = /* @__PURE__ */ g({
1391
1356
  __name: "SelectOption",
1392
1357
  props: {
1393
1358
  value: {},
@@ -1400,57 +1365,57 @@ const ct = /* @__PURE__ */ g({
1400
1365
  "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",
1401
1366
  t.innerClass
1402
1367
  ));
1403
- return (r, n) => (i(), f(dt, {
1404
- class: k(s.value),
1368
+ return (r, n) => (c(), h(ct, {
1369
+ class: C(s.value),
1405
1370
  value: r.value
1406
1371
  }, {
1407
- default: m(() => [
1372
+ default: f(() => [
1408
1373
  y("div", {
1409
- class: k(e.value)
1374
+ class: C(e.value)
1410
1375
  }, [
1411
- _(r.$slots, "default")
1376
+ w(r.$slots, "default")
1412
1377
  ], 2)
1413
1378
  ]),
1414
1379
  _: 3
1415
1380
  }, 8, ["class", "value"]));
1416
1381
  }
1417
- }), ft = /* @__PURE__ */ g({
1382
+ }), pt = /* @__PURE__ */ g({
1418
1383
  __name: "SelectOptions",
1419
1384
  props: {
1420
1385
  class: {}
1421
1386
  },
1422
1387
  setup(t) {
1423
- const s = H("select", "<SelectOptions> must be a child of a <Select>"), e = u(() => E(
1388
+ const s = V("select", "<SelectOptions> must be a child of a <Select>"), e = u(() => E(
1424
1389
  "z-50 overflow-auto rounded-lg bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden",
1425
1390
  s.optionsClass,
1426
1391
  t.class
1427
1392
  ));
1428
- return (r, n) => (i(), f(pt, {
1429
- class: k(e.value)
1393
+ return (r, n) => (c(), h(ut, {
1394
+ class: C(e.value)
1430
1395
  }, {
1431
- default: m(() => {
1396
+ default: f(() => {
1432
1397
  var a;
1433
1398
  return [
1434
- (a = o(s).options) != null && a.length ? _(r.$slots, "default", { key: 0 }, () => {
1435
- var l;
1399
+ (a = o(s).options) != null && a.length ? w(r.$slots, "default", { key: 0 }, () => {
1400
+ var i;
1436
1401
  return [
1437
- (i(!0), b(B, null, q(((l = o(s)) == null ? void 0 : l.options) ?? [], (c) => (i(), f(De, {
1438
- key: c.key,
1439
- value: c.value
1402
+ (c(!0), b(j, null, F(((i = o(s)) == null ? void 0 : i.options) ?? [], (l) => (c(), h(je, {
1403
+ key: l.key,
1404
+ value: l.value
1440
1405
  }, {
1441
- default: m(() => [
1442
- P(C(c.label), 1)
1406
+ default: f(() => [
1407
+ A(S(l.label), 1)
1443
1408
  ]),
1444
1409
  _: 2
1445
1410
  }, 1032, ["value"]))), 128))
1446
1411
  ];
1447
- }) : _(r.$slots, "default", { key: 1 }, () => [
1448
- p(De, {
1412
+ }) : w(r.$slots, "default", { key: 1 }, () => [
1413
+ m(je, {
1449
1414
  disabled: "",
1450
1415
  value: null
1451
1416
  }, {
1452
- default: m(() => [
1453
- P(C(r.$td("ui.selectEmpty", "No options available")), 1)
1417
+ default: f(() => [
1418
+ A(S(r.$td("ui.selectEmpty", "No options available")), 1)
1454
1419
  ]),
1455
1420
  _: 1
1456
1421
  })
@@ -1460,42 +1425,42 @@ const ct = /* @__PURE__ */ g({
1460
1425
  _: 3
1461
1426
  }, 8, ["class"]));
1462
1427
  }
1463
- }), gr = {
1428
+ }), pr = {
1464
1429
  viewBox: "0 0 20 20",
1465
1430
  width: "1.2em",
1466
1431
  height: "1.2em"
1467
1432
  };
1468
- function vr(t, s) {
1469
- return i(), b("svg", gr, s[0] || (s[0] = [
1433
+ function mr(t, s) {
1434
+ return c(), b("svg", pr, s[0] || (s[0] = [
1470
1435
  y("path", {
1471
1436
  fill: "currentColor",
1472
1437
  d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
1473
1438
  }, null, -1)
1474
1439
  ]));
1475
1440
  }
1476
- const br = R({ name: "zondicons-cheveron-down", render: vr }), ht = /* @__PURE__ */ g({
1441
+ const fr = P({ name: "zondicons-cheveron-down", render: mr }), mt = /* @__PURE__ */ g({
1477
1442
  __name: "SelectTrigger",
1478
1443
  props: {
1479
1444
  class: {}
1480
1445
  },
1481
1446
  setup(t) {
1482
- const s = H("select", "<SelectTrigger> must be a child of a <Select>"), e = u(() => E(
1447
+ const s = V("select", "<SelectTrigger> must be a child of a <Select>"), e = u(() => E(
1483
1448
  // eslint-disable-next-line vue/max-len
1484
1449
  "focus:outline-primary-600 data-[state=open]:outline-primary-600 grid w-full cursor-default grid-cols-1 rounded-md bg-white py-1.5 pr-2 pl-3 text-left text-gray-900 outline-1 -outline-offset-1 outline-gray-300 focus:outline-2 focus:-outline-offset-2 sm:text-sm/6",
1485
1450
  { "mt-1": s.label },
1486
1451
  t.class
1487
1452
  ));
1488
- return (r, n) => (i(), f(ut, {
1489
- class: k(e.value)
1453
+ return (r, n) => (c(), h(it, {
1454
+ class: C(e.value)
1490
1455
  }, {
1491
- default: m(() => [
1492
- p(ct, { class: "col-start-1 row-start-1 truncate pr-6" }),
1493
- p(o(br), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1456
+ default: f(() => [
1457
+ m(ot, { class: "col-start-1 row-start-1 truncate pr-6" }),
1458
+ m(o(fr), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1494
1459
  ]),
1495
1460
  _: 1
1496
1461
  }, 8, ["class"]));
1497
1462
  }
1498
- }), yr = /* @__PURE__ */ g({
1463
+ }), hr = /* @__PURE__ */ g({
1499
1464
  __name: "Select",
1500
1465
  props: {
1501
1466
  as: {},
@@ -1514,91 +1479,291 @@ const br = R({ name: "zondicons-cheveron-down", render: vr }), ht = /* @__PURE__
1514
1479
  },
1515
1480
  emits: ["update:modelValue"],
1516
1481
  setup(t) {
1517
- const { forwardRef: s } = Ie();
1518
- return (e, r) => (i(), f(hr, I({ ref: o(s) }, e.$props, {
1482
+ const { forwardRef: s } = Le();
1483
+ return (e, r) => (c(), h(dr, H({ ref: o(s) }, e.$props, {
1519
1484
  "onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
1520
1485
  }), {
1521
- default: m(() => [
1522
- p(mt),
1523
- _(e.$slots, "default", {}, () => [
1524
- p(ht),
1525
- p(ft)
1486
+ default: f(() => [
1487
+ m(dt),
1488
+ w(e.$slots, "default", {}, () => [
1489
+ m(mt),
1490
+ m(pt)
1526
1491
  ])
1527
1492
  ]),
1528
1493
  _: 3
1529
1494
  }, 16));
1530
1495
  }
1531
- }), _r = { class: "grow" }, wr = /* @__PURE__ */ g({
1496
+ }), gr = { class: "grow" }, vr = /* @__PURE__ */ g({
1532
1497
  __name: "Language",
1533
1498
  setup(t) {
1534
1499
  const s = Q.getBrowserLocale(), e = u(() => [null, ...Q.locales]);
1535
1500
  function r(n) {
1536
- return (n && O.locales[n]) ?? S("settings.localeDefault", "{locale} (default)", {
1501
+ return (n && O.locales[n]) ?? k("settings.localeDefault", "{locale} (default)", {
1537
1502
  locale: O.locales[s] ?? s
1538
1503
  });
1539
1504
  }
1540
- return (n, a) => (i(), f(yr, {
1505
+ return (n, a) => (c(), h(hr, {
1541
1506
  modelValue: n.$lang.locale,
1542
- "onUpdate:modelValue": a[0] || (a[0] = (l) => n.$lang.locale = l),
1507
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => n.$lang.locale = i),
1543
1508
  class: "flex flex-col items-start md:flex-row",
1544
1509
  as: "div",
1545
1510
  options: e.value,
1546
1511
  "render-option": r
1547
1512
  }, {
1548
- default: m(() => [
1549
- y("div", _r, [
1550
- p(mt, null, {
1551
- default: m(() => [
1552
- P(C(n.$td("settings.locale", "Language")), 1)
1513
+ default: f(() => [
1514
+ y("div", gr, [
1515
+ m(dt, { class: "text-base font-semibold" }, {
1516
+ default: f(() => [
1517
+ A(S(n.$td("settings.locale", "Language")), 1)
1553
1518
  ]),
1554
1519
  _: 1
1555
1520
  }),
1556
- p(A, {
1521
+ m(T, {
1557
1522
  "lang-key": "settings.localeDescription",
1558
1523
  "lang-default": "Choose the application's language.",
1559
1524
  class: "mt-1 text-sm text-gray-500"
1560
1525
  })
1561
1526
  ]),
1562
- p(z, {
1527
+ m(z, {
1563
1528
  variant: "ghost",
1564
- as: ht,
1529
+ as: mt,
1565
1530
  class: "grid w-auto outline-none"
1566
1531
  }),
1567
- p(ft)
1532
+ m(pt)
1568
1533
  ]),
1569
1534
  _: 1
1570
1535
  }, 8, ["modelValue", "options"]));
1571
1536
  }
1572
- }), $r = [
1537
+ }), br = [
1573
1538
  {
1574
1539
  priority: 100,
1575
- component: wr
1540
+ component: vr
1576
1541
  }
1577
- ], xr = { $lang: Q }, Cr = {
1542
+ ], yr = { $lang: Q }, wr = {
1578
1543
  async install(t) {
1579
1544
  var s;
1580
- (s = t.config.globalProperties).$t ?? (s.$t = Ye), t.config.globalProperties.$td = S, $r.forEach((e) => j.addSetting(e)), await ve(t, xr);
1545
+ (s = t.config.globalProperties).$t ?? (s.$t = Ge), t.config.globalProperties.$td = k, br.forEach((e) => D.addSetting(e)), await ye(t, yr);
1546
+ }
1547
+ }, $r = /* @__PURE__ */ g({
1548
+ __name: "Markdown",
1549
+ props: {
1550
+ as: {},
1551
+ inline: { type: Boolean },
1552
+ langKey: {},
1553
+ langParams: {},
1554
+ langDefault: {},
1555
+ text: {},
1556
+ actions: {}
1557
+ },
1558
+ setup(t) {
1559
+ const s = Fe(), e = He(), r = u(() => e.default ? e.default().map(Ze).join("") : t.text ?? (t.langKey && (t.langDefault ? k(t.langKey, t.langDefault, t.langParams ?? {}) : Ge(t.langKey, t.langParams ?? {})))), n = u(() => {
1560
+ if (!r.value)
1561
+ return null;
1562
+ let l = ar(r.value);
1563
+ return t.inline && (l = l.replace("<p>", "<span>").replace("</p>", "</span>")), l;
1564
+ }), a = () => Vt(t.as ?? (t.inline ? "span" : "div"), {
1565
+ innerHTML: n.value,
1566
+ onClick: i,
1567
+ ...s,
1568
+ class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
1569
+ });
1570
+ async function i(l) {
1571
+ var v, x;
1572
+ const { target: d } = l;
1573
+ if (Re(d, HTMLElement) && d.dataset.markdownAction) {
1574
+ (x = (v = t.actions) == null ? void 0 : v[d.dataset.markdownAction]) == null || x.call(v);
1575
+ return;
1576
+ }
1577
+ if (Re(d, HTMLAnchorElement) && d.dataset.markdownRoute) {
1578
+ const p = nr();
1579
+ p && (l.preventDefault(), p.visit(d.dataset.markdownRoute));
1580
+ return;
1581
+ }
1582
+ }
1583
+ return (l, d) => (c(), h(a));
1581
1584
  }
1582
- }, Sr = {
1585
+ }), _r = (t, s) => {
1586
+ const e = t.__vccOpts || t;
1587
+ for (const [r, n] of s)
1588
+ e[r] = n;
1589
+ return e;
1590
+ }, T = /* @__PURE__ */ _r($r, [["__scopeId", "data-v-8b211cfb"]]), xr = { class: "flex-grow" }, Cr = ["id"], Sr = /* @__PURE__ */ g({
1591
+ __name: "Setting",
1592
+ props: {
1593
+ title: {},
1594
+ titleId: {},
1595
+ description: {},
1596
+ class: {},
1597
+ layout: { default: "horizontal" }
1598
+ },
1599
+ setup(t) {
1600
+ const s = u(() => E(t.class, "flex flex-col justify-center gap-1"));
1601
+ return (e, r) => (c(), b("div", {
1602
+ class: C(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
1603
+ }, [
1604
+ y("div", xr, [
1605
+ y("h3", {
1606
+ id: e.titleId,
1607
+ class: "text-base font-semibold"
1608
+ }, S(e.title), 9, Cr),
1609
+ e.description ? (c(), h(T, {
1610
+ key: 0,
1611
+ text: e.description,
1612
+ class: "mt-1 text-sm text-gray-500"
1613
+ }, null, 8, ["text"])) : M("", !0)
1614
+ ]),
1615
+ y("div", {
1616
+ class: C(s.value)
1617
+ }, [
1618
+ w(e.$slots, "default")
1619
+ ], 2)
1620
+ ], 2));
1621
+ }
1622
+ }), kr = ["for"], Mr = /* @__PURE__ */ g({
1623
+ inheritAttrs: !1,
1624
+ __name: "HeadlessSwitch",
1625
+ props: {
1626
+ name: {},
1627
+ label: {},
1628
+ description: {},
1629
+ modelValue: {},
1630
+ class: {},
1631
+ labelClass: {},
1632
+ inputClass: {},
1633
+ thumbClass: {}
1634
+ },
1635
+ emits: ["update:modelValue"],
1636
+ setup(t, { expose: s, emit: e }) {
1637
+ const r = e, n = se("form", null), a = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), i = {
1638
+ id: `switch-${te()}`,
1639
+ name: u(() => t.name),
1640
+ label: u(() => t.label),
1641
+ description: u(() => t.description),
1642
+ value: u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue),
1643
+ errors: he(a),
1644
+ required: u(() => {
1645
+ if (!(!t.name || !n))
1646
+ return n.getFieldRules(t.name).includes("required");
1647
+ }),
1648
+ update(l) {
1649
+ if (n && t.name) {
1650
+ n.setFieldValue(t.name, l);
1651
+ return;
1652
+ }
1653
+ r("update:modelValue", l);
1654
+ }
1655
+ };
1656
+ return s(i), Z(() => {
1657
+ !t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
1658
+ }), (l, d) => (c(), b("div", {
1659
+ class: C(t.class)
1660
+ }, [
1661
+ l.label ? (c(), b("label", {
1662
+ key: 0,
1663
+ for: i.id,
1664
+ class: C(l.labelClass)
1665
+ }, S(l.label), 11, kr)) : M("", !0),
1666
+ m(o(ms), H({
1667
+ id: i.id,
1668
+ name: l.name,
1669
+ "model-value": i.value.value
1670
+ }, l.$attrs, {
1671
+ class: l.inputClass,
1672
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
1673
+ }), {
1674
+ default: f(() => [
1675
+ m(o(fs), {
1676
+ class: C(l.thumbClass)
1677
+ }, null, 8, ["class"])
1678
+ ]),
1679
+ _: 1
1680
+ }, 16, ["id", "name", "model-value", "class"])
1681
+ ], 2));
1682
+ }
1683
+ }), Er = /* @__PURE__ */ g({
1684
+ __name: "Switch",
1685
+ setup(t) {
1686
+ return (s, e) => (c(), h(Mr, {
1687
+ class: "flex flex-row items-center gap-1",
1688
+ "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",
1689
+ "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"
1690
+ }));
1691
+ }
1692
+ }), Hr = /* @__PURE__ */ g({
1693
+ __name: "Debug",
1694
+ setup(t) {
1695
+ let s = null;
1696
+ const e = B(!1);
1697
+ return Z(async () => {
1698
+ if (!e.value) {
1699
+ s == null || s.destroy();
1700
+ return;
1701
+ }
1702
+ s ?? (s = (await import("eruda")).default), s.init();
1703
+ }), (r, n) => (c(), h(Sr, {
1704
+ "title-id": "debug-setting",
1705
+ title: r.$td("settings.debug", "Debugging"),
1706
+ description: r.$td("settings.debugDescription", "Enable debugging with [Eruda](https://eruda.liriliri.io/).")
1707
+ }, {
1708
+ default: f(() => [
1709
+ m(Er, {
1710
+ modelValue: e.value,
1711
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
1712
+ "aria-labelledby": "debug-setting"
1713
+ }, null, 8, ["modelValue"])
1714
+ ]),
1715
+ _: 1
1716
+ }, 8, ["title", "description"]));
1717
+ }
1718
+ }), Vr = [
1719
+ {
1720
+ priority: 10,
1721
+ component: Hr
1722
+ }
1723
+ ], ft = [];
1724
+ function el(t) {
1725
+ ft.push(t);
1726
+ }
1727
+ function ht(t) {
1728
+ for (const s of ft) {
1729
+ const e = s(t);
1730
+ if (e)
1731
+ return e;
1732
+ }
1733
+ return typeof t == "string" ? t : t instanceof Error || t instanceof ge ? t.message : ue(t) ? q(t.message ?? t.description ?? "Unknown error object") : k("errors.unknown", "Unknown Error");
1734
+ }
1735
+ class Be extends ge {
1736
+ }
1737
+ const Lr = { $errors: et }, Ir = (t) => (et.report(t), !0);
1738
+ function Tr(t, s = () => !1) {
1739
+ const e = (r) => s(r) || Ir(r);
1740
+ t.config.errorHandler = e, globalThis.onerror = (r, n, a, i, l) => e(l ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
1741
+ }
1742
+ const Rr = {
1743
+ async install(t, s) {
1744
+ Tr(t, s.handleError), Vr.forEach((e) => D.addSetting(e)), await ye(t, Lr);
1745
+ }
1746
+ }, Pr = {
1583
1747
  async install() {
1584
- Le() && (globalThis.testingRuntime = {
1585
- on: (...t) => T.on(...t)
1748
+ Ve() && (globalThis.testingRuntime = {
1749
+ on: (...t) => I.on(...t),
1750
+ service: (t) => D.service(t)
1586
1751
  });
1587
1752
  }
1588
- }, kr = {
1753
+ }, Ar = {
1589
1754
  viewBox: "0 0 20 20",
1590
1755
  width: "1.2em",
1591
1756
  height: "1.2em"
1592
1757
  };
1593
- function Mr(t, s) {
1594
- return i(), b("svg", kr, s[0] || (s[0] = [
1758
+ function zr(t, s) {
1759
+ return c(), b("svg", Ar, s[0] || (s[0] = [
1595
1760
  y("path", {
1596
1761
  fill: "currentColor",
1597
1762
  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"
1598
1763
  }, null, -1)
1599
1764
  ]));
1600
1765
  }
1601
- const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
1766
+ const Dr = P({ name: "zondicons-close", render: zr }), jr = /* @__PURE__ */ g({
1602
1767
  __name: "HeadlessModal",
1603
1768
  props: {
1604
1769
  persistent: { type: Boolean },
@@ -1608,27 +1773,27 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
1608
1773
  descriptionHidden: { type: Boolean }
1609
1774
  },
1610
1775
  setup(t, { expose: s }) {
1611
- const e = F(null), { modal: r } = H(
1776
+ const e = B(null), { modal: r } = V(
1612
1777
  "modal",
1613
1778
  "could not obtain modal reference from <HeadlessModal>, did you render this component manually? Show it using $ui.modal() instead"
1614
1779
  );
1615
- s({ close: l, $content: e });
1616
- const { forwardRef: n } = Ie(), a = F(!1);
1617
- se("$modalContentRef", e), at("close-modal", async ({ id: c, result: d }) => {
1618
- c === r.id && await l(d);
1780
+ s({ close: i, $content: e });
1781
+ const { forwardRef: n } = Le(), a = B(!1);
1782
+ ae("$modalContentRef", e), rt("close-modal", async ({ id: l, result: d }) => {
1783
+ l === r.id && await i(d);
1619
1784
  });
1620
- async function l(c) {
1621
- a.value || (await T.emit("modal-will-close", { modal: r, result: c }), a.value = !0, await T.emit("modal-has-closed", { modal: r, result: c }));
1785
+ async function i(l) {
1786
+ a.value || (await I.emit("modal-will-close", { modal: r, result: l }), a.value = !0, await I.emit("modal-has-closed", { modal: r, result: l }));
1622
1787
  }
1623
- return (c, d) => (i(), f(o(us), {
1788
+ return (l, d) => (c(), h(o(hs), {
1624
1789
  ref: o(n),
1625
1790
  open: "",
1626
- "onUpdate:open": d[0] || (d[0] = (v) => c.persistent || l())
1791
+ "onUpdate:open": d[0] || (d[0] = (v) => l.persistent || i())
1627
1792
  }, {
1628
- default: m(() => [
1629
- p(o(ds), null, {
1630
- default: m(() => [
1631
- _(c.$slots, "default", { close: l })
1793
+ default: f(() => [
1794
+ m(o(gs), null, {
1795
+ default: f(() => [
1796
+ w(l.$slots, "default", { close: i })
1632
1797
  ]),
1633
1798
  _: 3
1634
1799
  })
@@ -1649,22 +1814,22 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
1649
1814
  r[n] = o(s.modal.properties[n]);
1650
1815
  return r;
1651
1816
  });
1652
- return se("modal", {
1653
- modal: Ve(s, "modal"),
1654
- childIndex: Ve(s, "childIndex")
1655
- }), (r, n) => (i(), f(N(r.modal.component), ee(te(e.value)), null, 16));
1817
+ return ae("modal", {
1818
+ modal: Te(s, "modal"),
1819
+ childIndex: Te(s, "childIndex")
1820
+ }), (r, n) => (c(), h(N(r.modal.component), re(ne(e.value)), null, 16));
1656
1821
  }
1657
- }), Lr = /* @__PURE__ */ g({
1822
+ }), Br = /* @__PURE__ */ g({
1658
1823
  __name: "HeadlessModalContent",
1659
1824
  setup(t) {
1660
- const { childIndex: s = 0 } = H(
1825
+ const { childIndex: s = 0 } = V(
1661
1826
  "modal",
1662
1827
  "could not obtain modal reference from <HeadlessModalContent>, did you render this component manually? Show it using $ui.modal() instead"
1663
- ), e = zs("$modalContentRef"), r = re("$contentRef"), n = u(() => V.modals[s] ?? null);
1664
- return ie(() => e.value = r.value), (a, l) => (i(), f(o(ps), { ref: "$contentRef" }, {
1665
- default: m(() => [
1666
- _(a.$slots, "default"),
1667
- n.value ? (i(), f(gt, {
1828
+ ), e = js("$modalContentRef"), r = le("$contentRef"), n = u(() => R.modals[s] ?? null);
1829
+ return Z(() => e.value = r.value), (a, i) => (c(), h(o(vs), { ref: "$contentRef" }, {
1830
+ default: f(() => [
1831
+ w(a.$slots, "default"),
1832
+ n.value ? (c(), h(gt, {
1668
1833
  key: 0,
1669
1834
  "child-index": o(s) + 1,
1670
1835
  modal: n.value
@@ -1673,21 +1838,21 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
1673
1838
  _: 3
1674
1839
  }, 512));
1675
1840
  }
1676
- }), Ir = /* @__PURE__ */ g({
1841
+ }), qr = /* @__PURE__ */ g({
1677
1842
  __name: "HeadlessModalDescription",
1678
1843
  props: {
1679
1844
  asChild: { type: Boolean },
1680
1845
  as: {}
1681
1846
  },
1682
1847
  setup(t) {
1683
- return (s, e) => (i(), f(o(ms), ee(te(s.$props)), {
1684
- default: m(() => [
1685
- _(s.$slots, "default")
1848
+ return (s, e) => (c(), h(o(bs), re(ne(s.$props)), {
1849
+ default: f(() => [
1850
+ w(s.$slots, "default")
1686
1851
  ]),
1687
1852
  _: 3
1688
1853
  }, 16));
1689
1854
  }
1690
- }), Tr = /* @__PURE__ */ g({
1855
+ }), Fr = /* @__PURE__ */ g({
1691
1856
  __name: "HeadlessModalOverlay",
1692
1857
  props: {
1693
1858
  forceMount: { type: Boolean },
@@ -1695,31 +1860,31 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
1695
1860
  as: {}
1696
1861
  },
1697
1862
  setup(t) {
1698
- return (s, e) => (i(), f(o(fs), ee(te(s.$props)), {
1699
- default: m(() => [
1700
- _(s.$slots, "default")
1863
+ return (s, e) => (c(), h(o(ys), re(ne(s.$props)), {
1864
+ default: f(() => [
1865
+ w(s.$slots, "default")
1701
1866
  ]),
1702
1867
  _: 3
1703
1868
  }, 16));
1704
1869
  }
1705
- }), Vr = /* @__PURE__ */ g({
1870
+ }), Ur = /* @__PURE__ */ g({
1706
1871
  __name: "HeadlessModalTitle",
1707
1872
  props: {
1708
1873
  asChild: { type: Boolean },
1709
1874
  as: {}
1710
1875
  },
1711
1876
  setup(t) {
1712
- return (s, e) => (i(), f(o(hs), ee(te(s.$props)), {
1713
- default: m(() => [
1714
- _(s.$slots, "default")
1877
+ return (s, e) => (c(), h(o(ws), re(ne(s.$props)), {
1878
+ default: f(() => [
1879
+ w(s.$slots, "default")
1715
1880
  ]),
1716
1881
  _: 3
1717
1882
  }, 16));
1718
1883
  }
1719
- }), Rr = {
1884
+ }), Or = {
1720
1885
  key: 0,
1721
1886
  class: "absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block"
1722
- }, Pr = ["onClick"], Ar = { class: "sr-only" }, X = /* @__PURE__ */ g({
1887
+ }, Nr = ["onClick"], Wr = { class: "sr-only" }, G = /* @__PURE__ */ g({
1723
1888
  __name: "Modal",
1724
1889
  props: {
1725
1890
  persistent: { type: Boolean },
@@ -1734,79 +1899,83 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
1734
1899
  setup(t, { expose: s }) {
1735
1900
  const e = J(t, ["class", "wrapperClass", "title", "titleHidden", "description", "persistent", "closeHidden"]);
1736
1901
  s({
1737
- close: async (h) => {
1738
- var $;
1739
- return ($ = a.value) == null ? void 0 : $.close(h);
1902
+ close: async (p) => {
1903
+ var _;
1904
+ return (_ = a.value) == null ? void 0 : _.close(p);
1740
1905
  },
1741
1906
  $content: u(() => {
1742
- var h;
1743
- return (h = a.value) == null ? void 0 : h.$content;
1907
+ var p;
1908
+ return (p = a.value) == null ? void 0 : p.$content;
1744
1909
  })
1745
1910
  });
1746
- const { forwardRef: r, currentRef: n } = Ie(), a = n, l = H("modal"), c = u(() => !l.modal.closing && l.childIndex === V.openModals.length), d = u(() => t.description ? {} : { "aria-describedby": void 0 }), v = u(() => E("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), x = u(() => E(
1911
+ const { forwardRef: r, currentRef: n } = Le(), a = n, i = V("modal"), l = u(() => !i.modal.closing && i.childIndex === R.openModals.length), d = u(() => t.description ? {} : { "aria-describedby": void 0 }), v = u(() => E("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), x = u(() => E(
1747
1912
  "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",
1748
1913
  "overflow-hidden rounded-lg bg-white text-left shadow-xl sm:max-w-lg",
1749
1914
  "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
1750
1915
  "transition-[scale,opacity] will-change-[scale,opacity] duration-300",
1751
1916
  {
1752
- "scale-50 opacity-0": !c.value,
1753
- "scale-100 opacity-100": c.value
1917
+ "scale-50 opacity-0": !l.value,
1918
+ "scale-100 opacity-100": l.value
1754
1919
  },
1755
1920
  t.wrapperClass
1756
1921
  ));
1757
- return at("modal-will-close", async ({ modal: { id: h } }) => {
1758
- h === l.modal.id && await xe({ ms: 300 });
1759
- }), (h, $) => (i(), f(Hr, I(e, {
1922
+ return rt("modal-will-close", async ({ modal: { id: p } }) => {
1923
+ p === i.modal.id && await ce({ ms: 300 });
1924
+ }), (p, _) => (c(), h(jr, H(e, {
1760
1925
  ref: (L) => o(r)(L),
1761
- persistent: h.persistent
1926
+ persistent: p.persistent
1762
1927
  }), {
1763
- default: m(({ close: L }) => [
1764
- p(Tr, {
1765
- class: k(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
1766
- "bg-black/30": o(l).childIndex === 1,
1767
- "opacity-0": o(l).childIndex === 1 && o(l).modal.closing
1928
+ default: f(({ close: L }) => [
1929
+ m(Fr, {
1930
+ class: C(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
1931
+ "bg-black/30": o(i).childIndex === 1,
1932
+ "opacity-0": o(i).childIndex === 1 && o(i).modal.closing
1768
1933
  }])
1769
1934
  }, null, 8, ["class"]),
1770
- p(Lr, I(d.value, { class: x.value }), {
1771
- default: m(() => [
1772
- !h.persistent && !h.closeHidden ? (i(), b("div", Rr, [
1935
+ m(Br, H(d.value, { class: x.value }), {
1936
+ default: f(() => [
1937
+ !p.persistent && !p.closeHidden ? (c(), b("div", Or, [
1773
1938
  y("button", {
1774
1939
  type: "button",
1775
1940
  class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
1776
- onClick: (be) => L()
1941
+ onClick: (we) => L()
1777
1942
  }, [
1778
- y("span", Ar, C(h.$td("ui.close", "Close")), 1),
1779
- p(o(Er), { class: "size-4" })
1780
- ], 8, Pr)
1943
+ y("span", Wr, S(p.$td("ui.close", "Close")), 1),
1944
+ m(o(Dr), { class: "size-4" })
1945
+ ], 8, Nr)
1781
1946
  ])) : M("", !0),
1782
- h.title ? (i(), f(Vr, {
1947
+ p.title ? (c(), h(Ur, {
1783
1948
  key: 1,
1784
- class: k(["px-4 pt-5 pb-2 text-base font-semibold text-gray-900", { "sr-only": h.titleHidden }])
1949
+ class: C(["px-4 pt-5 text-base font-semibold text-gray-900", {
1950
+ "sr-only": p.titleHidden,
1951
+ "pb-0": p.description && !p.descriptionHidden,
1952
+ "pb-2": !p.description || p.descriptionHidden
1953
+ }])
1785
1954
  }, {
1786
- default: m(() => [
1787
- p(A, {
1788
- text: h.title,
1955
+ default: f(() => [
1956
+ m(T, {
1957
+ text: p.title,
1789
1958
  inline: ""
1790
1959
  }, null, 8, ["text"])
1791
1960
  ]),
1792
1961
  _: 1
1793
1962
  }, 8, ["class"])) : M("", !0),
1794
- h.description ? (i(), f(Ir, {
1963
+ p.description ? (c(), h(qr, {
1795
1964
  key: 2,
1796
- class: k({ "sr-only": h.descriptionHidden })
1965
+ class: C(["px-4 pt-1 pb-2", { "sr-only": p.descriptionHidden }])
1797
1966
  }, {
1798
- default: m(() => [
1799
- p(A, {
1800
- text: h.description,
1801
- class: "mt-1 text-sm leading-6 text-gray-500"
1967
+ default: f(() => [
1968
+ m(T, {
1969
+ text: p.description,
1970
+ class: "text-sm leading-6 text-gray-500"
1802
1971
  }, null, 8, ["text"])
1803
1972
  ]),
1804
1973
  _: 1
1805
1974
  }, 8, ["class"])) : M("", !0),
1806
1975
  y("div", {
1807
- class: k(v.value)
1976
+ class: C(v.value)
1808
1977
  }, [
1809
- _(h.$slots, "default", { close: L })
1978
+ w(p.$slots, "default", { close: L })
1810
1979
  ], 2)
1811
1980
  ]),
1812
1981
  _: 2
@@ -1816,24 +1985,24 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
1816
1985
  }, 16, ["persistent"]));
1817
1986
  }
1818
1987
  });
1819
- function zr(t) {
1820
- const s = u(() => t.title ?? S("ui.alert", "Alert")), e = u(() => !t.title);
1988
+ function Kr(t) {
1989
+ const s = u(() => t.title ?? k("ui.alert", "Alert")), e = u(() => !t.title);
1821
1990
  return { renderedTitle: s, titleHidden: e };
1822
1991
  }
1823
- const jr = /* @__PURE__ */ g({
1992
+ const Qr = /* @__PURE__ */ g({
1824
1993
  __name: "AlertModal",
1825
1994
  props: {
1826
1995
  title: {},
1827
1996
  message: {}
1828
1997
  },
1829
1998
  setup(t, { expose: s }) {
1830
- const e = t, { renderedTitle: r, titleHidden: n } = zr(e);
1831
- return s(), (a, l) => (i(), f(X, {
1999
+ const e = t, { renderedTitle: r, titleHidden: n } = Kr(e);
2000
+ return s(), (a, i) => (c(), h(G, {
1832
2001
  title: o(r),
1833
2002
  "title-hidden": o(n)
1834
2003
  }, {
1835
- default: m(() => [
1836
- p(A, { text: a.message }, null, 8, ["text"])
2004
+ default: f(() => [
2005
+ m(T, { text: a.message }, null, 8, ["text"])
1837
2006
  ]),
1838
2007
  _: 1
1839
2008
  }, 8, ["title", "title-hidden"]));
@@ -1847,39 +2016,39 @@ const jr = /* @__PURE__ */ g({
1847
2016
  setup(t, { emit: s }) {
1848
2017
  let e;
1849
2018
  const r = s;
1850
- return ie((n) => {
2019
+ return Z((n) => {
1851
2020
  var a;
1852
2021
  e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
1853
- }), se("form", t.form), (n, a) => (i(), b("form", {
1854
- onSubmit: a[0] || (a[0] = Ue((l) => {
1855
- var c;
1856
- return (c = n.form) == null ? void 0 : c.submit();
2022
+ }), ae("form", t.form), (n, a) => (c(), b("form", {
2023
+ onSubmit: a[0] || (a[0] = Ue((i) => {
2024
+ var l;
2025
+ return (l = n.form) == null ? void 0 : l.submit();
1857
2026
  }, ["prevent"]))
1858
2027
  }, [
1859
- _(n.$slots, "default")
2028
+ w(n.$slots, "default")
1860
2029
  ], 32));
1861
2030
  }
1862
2031
  });
1863
- function Br(t) {
1864
- const s = lt(
2032
+ function Jr(t) {
2033
+ const s = at(
1865
2034
  Object.entries(t.checkboxes ?? {}).reduce(
1866
- (l, [c, d]) => ({
1867
- [c]: {
2035
+ (i, [l, d]) => ({
2036
+ [l]: {
1868
2037
  type: "boolean",
1869
2038
  default: d.default,
1870
2039
  required: d.required ? "required" : void 0
1871
2040
  },
1872
- ...l
2041
+ ...i
1873
2042
  }),
1874
2043
  {}
1875
2044
  )
1876
- ), e = u(() => t.title ?? S("ui.confirm", "Confirm")), r = u(() => !t.title), n = u(() => t.acceptText ?? S("ui.accept", "Ok")), a = u(() => t.cancelText ?? S("ui.cancel", "Cancel"));
2045
+ ), e = u(() => t.title ?? k("ui.confirm", "Confirm")), r = u(() => !t.title), n = u(() => t.acceptText ?? k("ui.accept", "Ok")), a = u(() => t.cancelText ?? k("ui.cancel", "Cancel"));
1877
2046
  return { form: s, renderedTitle: e, titleHidden: r, renderedAcceptText: n, renderedCancelText: a };
1878
2047
  }
1879
- const Dr = {
2048
+ const Zr = {
1880
2049
  key: 0,
1881
2050
  class: "mt-4 flex flex-col text-sm text-gray-600"
1882
- }, qr = { class: "flex items-center" }, Fr = ["onUpdate:modelValue", "required"], Ur = { class: "ml-1.5" }, Or = { class: "mt-4 flex flex-row-reverse gap-2" }, Nr = /* @__PURE__ */ g({
2051
+ }, Xr = { class: "flex items-center" }, Yr = ["onUpdate:modelValue", "required"], Gr = { class: "ml-1.5" }, en = { class: "mt-4 flex flex-row-reverse gap-2" }, tn = /* @__PURE__ */ g({
1883
2052
  __name: "ConfirmModal",
1884
2053
  props: {
1885
2054
  title: {},
@@ -1893,54 +2062,54 @@ const Dr = {
1893
2062
  required: { type: Boolean }
1894
2063
  },
1895
2064
  setup(t, { expose: s }) {
1896
- const e = J(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: l, renderedCancelText: c } = Br(e);
1897
- return s(), (d, v) => (i(), f(X, {
2065
+ const e = J(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText: l } = Jr(e);
2066
+ return s(), (d, v) => (c(), h(G, {
1898
2067
  title: o(n),
1899
2068
  "title-hidden": o(a),
1900
2069
  persistent: ""
1901
2070
  }, {
1902
- default: m(({ close: x }) => [
1903
- p(vt, {
2071
+ default: f(({ close: x }) => [
2072
+ m(vt, {
1904
2073
  form: o(r),
1905
- onSubmit: (h) => x([!0, o(r).data()])
2074
+ onSubmit: (p) => x([!0, o(r).data()])
1906
2075
  }, {
1907
- default: m(() => [
1908
- p(A, {
2076
+ default: f(() => [
2077
+ m(T, {
1909
2078
  text: d.message,
1910
2079
  actions: d.actions
1911
2080
  }, null, 8, ["text", "actions"]),
1912
- d.checkboxes ? (i(), b("ul", Dr, [
1913
- (i(!0), b(B, null, q(d.checkboxes, (h, $) => (i(), b("li", { key: $ }, [
1914
- y("label", qr, [
2081
+ d.checkboxes ? (c(), b("ul", Zr, [
2082
+ (c(!0), b(j, null, F(d.checkboxes, (p, _) => (c(), b("li", { key: _ }, [
2083
+ y("label", Xr, [
1915
2084
  Oe(y("input", {
1916
- "onUpdate:modelValue": (L) => o(r)[$] = L,
2085
+ "onUpdate:modelValue": (L) => o(r)[_] = L,
1917
2086
  type: "checkbox",
1918
- required: h.required,
2087
+ required: p.required,
1919
2088
  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"
1920
- }, null, 8, Fr), [
1921
- [It, o(r)[$]]
2089
+ }, null, 8, Yr), [
2090
+ [Lt, o(r)[_]]
1922
2091
  ]),
1923
- y("span", Ur, C(h.label), 1)
2092
+ y("span", Gr, S(p.label), 1)
1924
2093
  ])
1925
2094
  ]))), 128))
1926
2095
  ])) : M("", !0),
1927
- y("div", Or, [
1928
- p(z, {
2096
+ y("div", en, [
2097
+ m(z, {
1929
2098
  variant: d.acceptVariant,
1930
2099
  submit: ""
1931
2100
  }, {
1932
- default: m(() => [
1933
- P(C(o(l)), 1)
2101
+ default: f(() => [
2102
+ A(S(o(i)), 1)
1934
2103
  ]),
1935
2104
  _: 1
1936
2105
  }, 8, ["variant"]),
1937
- d.required ? M("", !0) : (i(), f(z, {
2106
+ d.required ? M("", !0) : (c(), h(z, {
1938
2107
  key: 0,
1939
2108
  variant: d.cancelVariant,
1940
- onClick: (h) => x(!1)
2109
+ onClick: (p) => x(!1)
1941
2110
  }, {
1942
- default: m(() => [
1943
- P(C(o(c)), 1)
2111
+ default: f(() => [
2112
+ A(S(o(l)), 1)
1944
2113
  ]),
1945
2114
  _: 2
1946
2115
  }, 1032, ["variant", "onClick"]))
@@ -1952,94 +2121,94 @@ const Dr = {
1952
2121
  _: 1
1953
2122
  }, 8, ["title", "title-hidden"]));
1954
2123
  }
1955
- }), Wr = {
2124
+ }), sn = {
1956
2125
  viewBox: "0 0 20 20",
1957
2126
  width: "1.2em",
1958
2127
  height: "1.2em"
1959
2128
  };
1960
- function Kr(t, s) {
1961
- return i(), b("svg", Wr, s[0] || (s[0] = [
2129
+ function rn(t, s) {
2130
+ return c(), b("svg", sn, s[0] || (s[0] = [
1962
2131
  y("path", {
1963
2132
  fill: "currentColor",
1964
2133
  d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
1965
2134
  }, null, -1)
1966
2135
  ]));
1967
2136
  }
1968
- const Qr = R({ name: "zondicons-cheveron-left", render: Kr }), Jr = {
2137
+ const nn = P({ name: "zondicons-cheveron-left", render: rn }), an = {
1969
2138
  viewBox: "0 0 20 20",
1970
2139
  width: "1.2em",
1971
2140
  height: "1.2em"
1972
2141
  };
1973
- function Zr(t, s) {
1974
- return i(), b("svg", Jr, s[0] || (s[0] = [
2142
+ function ln(t, s) {
2143
+ return c(), b("svg", an, s[0] || (s[0] = [
1975
2144
  y("path", {
1976
2145
  fill: "currentColor",
1977
2146
  d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
1978
2147
  }, null, -1)
1979
2148
  ]));
1980
2149
  }
1981
- const bt = R({ name: "zondicons-cheveron-right", render: Zr }), Gr = {
2150
+ const bt = P({ name: "zondicons-cheveron-right", render: ln }), on = {
1982
2151
  viewBox: "0 0 20 20",
1983
2152
  width: "1.2em",
1984
2153
  height: "1.2em"
1985
2154
  };
1986
- function Xr(t, s) {
1987
- return i(), b("svg", Gr, s[0] || (s[0] = [
2155
+ function cn(t, s) {
2156
+ return c(), b("svg", on, s[0] || (s[0] = [
1988
2157
  y("path", {
1989
2158
  fill: "currentColor",
1990
2159
  d: "M2.93 17.07A10 10 0 1 1 17.07 2.93A10 10 0 0 1 2.93 17.07M9 5v6h2V5zm0 8v2h2v-2z"
1991
2160
  }, null, -1)
1992
2161
  ]));
1993
2162
  }
1994
- const yt = R({ name: "zondicons-exclamation-solid", render: Xr }), Yr = {
2163
+ const yt = P({ name: "zondicons-exclamation-solid", render: cn }), un = {
1995
2164
  viewBox: "0 0 24 24",
1996
2165
  width: "1.2em",
1997
2166
  height: "1.2em"
1998
2167
  };
1999
- function en(t, s) {
2000
- return i(), b("svg", Yr, s[0] || (s[0] = [
2168
+ function dn(t, s) {
2169
+ return c(), b("svg", un, s[0] || (s[0] = [
2001
2170
  y("path", {
2002
2171
  fill: "currentColor",
2003
2172
  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"
2004
2173
  }, null, -1)
2005
2174
  ]));
2006
2175
  }
2007
- const tn = R({ name: "mdi-console", render: en }), sn = {
2176
+ const pn = P({ name: "mdi-console", render: dn }), mn = {
2008
2177
  viewBox: "0 0 20 20",
2009
2178
  width: "1.2em",
2010
2179
  height: "1.2em"
2011
2180
  };
2012
- function rn(t, s) {
2013
- return i(), b("svg", sn, s[0] || (s[0] = [
2181
+ function fn(t, s) {
2182
+ return c(), b("svg", mn, s[0] || (s[0] = [
2014
2183
  y("path", {
2015
2184
  fill: "currentColor",
2016
2185
  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"
2017
2186
  }, null, -1)
2018
2187
  ]));
2019
2188
  }
2020
- const nn = R({ name: "zondicons-copy", render: rn }), an = {
2189
+ const hn = P({ name: "zondicons-copy", render: fn }), gn = {
2021
2190
  viewBox: "0 0 24 24",
2022
2191
  width: "1.2em",
2023
2192
  height: "1.2em"
2024
2193
  };
2025
- function on(t, s) {
2026
- return i(), b("svg", an, s[0] || (s[0] = [
2194
+ function vn(t, s) {
2195
+ return c(), b("svg", gn, s[0] || (s[0] = [
2027
2196
  y("path", {
2028
2197
  fill: "currentColor",
2029
2198
  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"
2030
2199
  }, null, -1)
2031
2200
  ]));
2032
2201
  }
2033
- const ln = R({ name: "mdi-github", render: on }), cn = { class: "flex" }, un = { class: "sr-only" }, dn = /* @__PURE__ */ g({
2202
+ const bn = P({ name: "mdi-github", render: vn }), yn = { class: "flex" }, wn = { class: "sr-only" }, $n = /* @__PURE__ */ g({
2034
2203
  __name: "ErrorReportModalButtons",
2035
2204
  props: {
2036
2205
  report: {}
2037
2206
  },
2038
2207
  setup(t) {
2039
2208
  const s = t, e = u(() => s.report.description ? `${s.report.title}: ${s.report.description}` : s.report.title), r = u(() => {
2040
- if (!j.sourceUrl)
2209
+ if (!D.sourceUrl)
2041
2210
  return !1;
2042
- const a = encodeURIComponent(e.value), l = encodeURIComponent(
2211
+ const a = encodeURIComponent(e.value), i = encodeURIComponent(
2043
2212
  [
2044
2213
  "[Please, explain here what you were trying to do when this error appeared]",
2045
2214
  "",
@@ -2047,33 +2216,33 @@ const ln = R({ name: "mdi-github", render: on }), cn = { class: "flex" }, un = {
2047
2216
  "```",
2048
2217
  Ot(
2049
2218
  s.report.details ?? "Details missing from report",
2050
- 1800 - a.length - j.sourceUrl.length
2219
+ 1800 - a.length - D.sourceUrl.length
2051
2220
  ).trim(),
2052
2221
  "```"
2053
2222
  ].join(`
2054
2223
  `)
2055
2224
  );
2056
- return `${j.sourceUrl}/issues/new?title=${a}&body=${l}`;
2057
- }), n = u(() => Z(
2225
+ return `${D.sourceUrl}/issues/new?title=${a}&body=${i}`;
2226
+ }), n = u(() => X(
2058
2227
  [
2059
2228
  {
2060
2229
  id: "clipboard",
2061
2230
  description: "Copy to clipboard",
2062
- iconComponent: nn,
2231
+ iconComponent: hn,
2063
2232
  async click() {
2064
2233
  await navigator.clipboard.writeText(`${e.value}
2065
2234
 
2066
- ${s.report.details}`), V.toast(S("errors.copiedToClipboard", "Debug information copied to clipboard"));
2235
+ ${s.report.details}`), R.toast(k("errors.copiedToClipboard", "Debug information copied to clipboard"));
2067
2236
  }
2068
2237
  },
2069
2238
  {
2070
2239
  id: "console",
2071
2240
  description: "Log to console",
2072
- iconComponent: tn,
2241
+ iconComponent: pn,
2073
2242
  click() {
2074
2243
  const a = s.report.error ?? s.report;
2075
- window.error = a, console.error(a), V.toast(
2076
- S(
2244
+ window.error = a, console.error(a), R.toast(
2245
+ k(
2077
2246
  "errors.addedToConsole",
2078
2247
  "You can now use the **error** variable in the console"
2079
2248
  )
@@ -2085,24 +2254,24 @@ ${s.report.details}`), V.toast(S("errors.copiedToClipboard", "Debug information
2085
2254
  r.value && a.push({
2086
2255
  id: "github",
2087
2256
  description: "Report in GitHub",
2088
- iconComponent: ln,
2257
+ iconComponent: bn,
2089
2258
  url: r.value
2090
2259
  });
2091
2260
  }
2092
2261
  ));
2093
- return (a, l) => (i(), b("div", cn, [
2094
- (i(!0), b(B, null, q(n.value, (c) => _(a.$slots, "default", I({ ref_for: !0 }, c), () => [
2095
- p(z, {
2262
+ return (a, i) => (c(), b("div", yn, [
2263
+ (c(!0), b(j, null, F(n.value, (l) => w(a.$slots, "default", H({ ref_for: !0 }, l), () => [
2264
+ m(z, {
2096
2265
  size: "icon",
2097
2266
  variant: "ghost",
2098
2267
  class: "group whitespace-nowrap",
2099
- href: c.url,
2100
- title: a.$td(`errors.report_${c.id}`, c.description),
2101
- onClick: c.click
2268
+ href: l.url,
2269
+ title: a.$td(`errors.report_${l.id}`, l.description),
2270
+ onClick: l.click
2102
2271
  }, {
2103
- default: m(() => [
2104
- y("span", un, C(a.$td(`errors.report_${c.id}`, c.description)), 1),
2105
- (i(), f(N(c.iconComponent), {
2272
+ default: f(() => [
2273
+ y("span", wn, S(a.$td(`errors.report_${l.id}`, l.description)), 1),
2274
+ (c(), h(N(l.iconComponent), {
2106
2275
  class: "size-4",
2107
2276
  "aria-hidden": "true"
2108
2277
  }))
@@ -2112,7 +2281,7 @@ ${s.report.details}`), V.toast(S("errors.copiedToClipboard", "Debug information
2112
2281
  ])), 256))
2113
2282
  ]));
2114
2283
  }
2115
- }), pn = /* @__PURE__ */ g({
2284
+ }), _n = /* @__PURE__ */ g({
2116
2285
  __name: "ErrorReportModalTitle",
2117
2286
  props: {
2118
2287
  report: {},
@@ -2121,19 +2290,19 @@ ${s.report.details}`), V.toast(S("errors.copiedToClipboard", "Debug information
2121
2290
  },
2122
2291
  setup(t) {
2123
2292
  const s = u(() => !t.totalReports || t.totalReports <= 1 ? t.report.title : `${t.report.title} (${t.currentReport}/${t.totalReports})`);
2124
- return (e, r) => (i(), f(A, {
2293
+ return (e, r) => (c(), h(T, {
2125
2294
  text: s.value,
2126
2295
  inline: ""
2127
2296
  }, null, 8, ["text"]));
2128
2297
  }
2129
2298
  });
2130
- function mn(t) {
2131
- const s = F(t.reports.includes(t.report) ? t.reports.indexOf(t.report) : 0), e = u(() => t.reports[s.value]), r = u(
2299
+ function xn(t) {
2300
+ const s = B(t.reports.includes(t.report) ? t.reports.indexOf(t.report) : 0), e = u(() => t.reports[s.value]), r = u(
2132
2301
  () => {
2133
- var l;
2134
- return ((l = e.value.details) == null ? void 0 : l.trim()) || S("errors.detailsEmpty", "This error is missing a stacktrace.");
2302
+ var i;
2303
+ return ((i = e.value.details) == null ? void 0 : i.trim()) || k("errors.detailsEmpty", "This error is missing a stacktrace.");
2135
2304
  }
2136
- ), n = S("errors.previousReport", "Show previous report"), a = S("errors.nextReport", "Show next report");
2305
+ ), n = k("errors.previousReport", "Show previous report"), a = k("errors.nextReport", "Show next report");
2137
2306
  return {
2138
2307
  activeReportIndex: s,
2139
2308
  details: r,
@@ -2142,50 +2311,50 @@ function mn(t) {
2142
2311
  activeReport: e
2143
2312
  };
2144
2313
  }
2145
- const fn = { class: "px-4 pt-5 pb-4" }, hn = { class: "flex justify-between gap-4" }, gn = { class: "flex items-center gap-2" }, vn = {
2314
+ const Cn = { class: "px-4 pt-5 pb-4" }, Sn = { class: "flex justify-between gap-4" }, kn = { class: "flex items-center gap-2" }, Mn = {
2146
2315
  key: 0,
2147
2316
  class: "flex gap-0.5"
2148
- }, bn = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, yn = ["textContent"], _n = /* @__PURE__ */ g({
2317
+ }, En = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, Hn = ["textContent"], Vn = /* @__PURE__ */ g({
2149
2318
  __name: "ErrorReportModal",
2150
2319
  props: {
2151
2320
  report: {},
2152
2321
  reports: {}
2153
2322
  },
2154
2323
  setup(t, { expose: s }) {
2155
- const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: l, activeReport: c } = mn(e);
2156
- return s(), (d, v) => (i(), f(X, {
2324
+ const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport: l } = xn(e);
2325
+ return s(), (d, v) => (c(), h(G, {
2157
2326
  title: d.$td("errors.report", "Error report"),
2158
2327
  "title-hidden": "",
2159
2328
  "close-hidden": "",
2160
2329
  class: "p-0",
2161
2330
  "wrapper-class": "sm:w-auto sm:min-w-lg sm:max-w-[80vw]"
2162
2331
  }, {
2163
- default: m(() => [
2164
- y("div", fn, [
2165
- y("h2", hn, [
2166
- y("div", gn, [
2167
- p(o(yt), { class: "size-5 text-red-600" }),
2168
- p(pn, {
2332
+ default: f(() => [
2333
+ y("div", Cn, [
2334
+ y("h2", Sn, [
2335
+ y("div", kn, [
2336
+ m(o(yt), { class: "size-5 text-red-600" }),
2337
+ m(_n, {
2169
2338
  class: "text-lg leading-6 font-semibold text-gray-900",
2170
- report: o(c),
2339
+ report: o(l),
2171
2340
  "current-report": o(r) + 1,
2172
2341
  "total-reports": d.reports.length
2173
2342
  }, null, 8, ["report", "current-report", "total-reports"]),
2174
- d.reports.length > 1 ? (i(), b("span", vn, [
2175
- p(z, {
2343
+ d.reports.length > 1 ? (c(), b("span", Mn, [
2344
+ m(z, {
2176
2345
  size: "icon",
2177
2346
  variant: "ghost",
2178
2347
  disabled: o(r) === 0,
2179
- "aria-label": o(l),
2180
- title: o(l),
2348
+ "aria-label": o(i),
2349
+ title: o(i),
2181
2350
  onClick: v[0] || (v[0] = (x) => r.value--)
2182
2351
  }, {
2183
- default: m(() => [
2184
- p(o(Qr), { class: "size-4" })
2352
+ default: f(() => [
2353
+ m(o(nn), { class: "size-4" })
2185
2354
  ]),
2186
2355
  _: 1
2187
2356
  }, 8, ["disabled", "aria-label", "title"]),
2188
- p(z, {
2357
+ m(z, {
2189
2358
  size: "icon",
2190
2359
  variant: "ghost",
2191
2360
  disabled: o(r) === d.reports.length - 1,
@@ -2193,41 +2362,41 @@ const fn = { class: "px-4 pt-5 pb-4" }, hn = { class: "flex justify-between gap-
2193
2362
  title: o(a),
2194
2363
  onClick: v[1] || (v[1] = (x) => r.value++)
2195
2364
  }, {
2196
- default: m(() => [
2197
- p(o(bt), { class: "size-4" })
2365
+ default: f(() => [
2366
+ m(o(bt), { class: "size-4" })
2198
2367
  ]),
2199
2368
  _: 1
2200
2369
  }, 8, ["disabled", "aria-label", "title"])
2201
2370
  ])) : M("", !0)
2202
2371
  ]),
2203
- p(dn, {
2204
- report: o(c),
2372
+ m($n, {
2373
+ report: o(l),
2205
2374
  class: "gap-0.5"
2206
2375
  }, null, 8, ["report"])
2207
2376
  ]),
2208
- o(c).description ? (i(), f(A, {
2377
+ o(l).description ? (c(), h(T, {
2209
2378
  key: 0,
2210
- text: o(c).description,
2379
+ text: o(l).description,
2211
2380
  class: "text-gray-600"
2212
2381
  }, null, 8, ["text"])) : M("", !0)
2213
2382
  ]),
2214
- y("div", bn, [
2383
+ y("div", En, [
2215
2384
  y("pre", {
2216
2385
  class: "p-4 text-xs text-red-800",
2217
- textContent: C(o(n))
2218
- }, null, 8, yn)
2386
+ textContent: S(o(n))
2387
+ }, null, 8, Hn)
2219
2388
  ])
2220
2389
  ]),
2221
2390
  _: 1
2222
2391
  }, 8, ["title"]));
2223
2392
  }
2224
- }), wn = {
2393
+ }), Ln = {
2225
2394
  viewBox: "0 0 24 24",
2226
2395
  width: "1.2em",
2227
2396
  height: "1.2em"
2228
2397
  };
2229
- function $n(t, s) {
2230
- return i(), b("svg", wn, s[0] || (s[0] = [
2398
+ function In(t, s) {
2399
+ return c(), b("svg", Ln, s[0] || (s[0] = [
2231
2400
  y("path", {
2232
2401
  fill: "currentColor",
2233
2402
  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",
@@ -2247,7 +2416,7 @@ function $n(t, s) {
2247
2416
  ], -1)
2248
2417
  ]));
2249
2418
  }
2250
- const xn = R({ name: "svg-spinners-90-ring-with-bg", render: $n }), Cn = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, Sn = { class: "sr-only" }, kn = /* @__PURE__ */ g({
2419
+ const Tn = P({ name: "svg-spinners-90-ring-with-bg", render: In }), Rn = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, Pn = { class: "sr-only" }, An = /* @__PURE__ */ g({
2251
2420
  __name: "ProgressBar",
2252
2421
  props: {
2253
2422
  filledClass: {},
@@ -2256,31 +2425,31 @@ const xn = R({ name: "svg-spinners-90-ring-with-bg", render: $n }), Cn = { class
2256
2425
  },
2257
2426
  setup(t) {
2258
2427
  let s;
2259
- const e = F(0), r = u(() => E("size-full transition-transform duration-500 rounded-r-full ease-linear bg-primary-600", t.filledClass)), n = u(() => typeof t.progress == "number" ? t.progress : e.value);
2260
- return He(
2428
+ const e = B(0), r = u(() => E("size-full transition-transform duration-500 rounded-r-full ease-linear bg-primary-600", t.filledClass)), n = u(() => typeof t.progress == "number" ? t.progress : e.value);
2429
+ return Ee(
2261
2430
  () => t.job,
2262
2431
  () => {
2263
2432
  s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (a) => e.value = a });
2264
2433
  },
2265
2434
  { immediate: !0 }
2266
- ), me(() => s && s()), (a, l) => (i(), b("div", Cn, [
2435
+ ), fe(() => s && s()), (a, i) => (c(), b("div", Rn, [
2267
2436
  y("div", {
2268
- class: k(r.value),
2269
- style: Tt(`transform:translateX(-${(1 - n.value) * 100}%)`)
2437
+ class: C(r.value),
2438
+ style: It(`transform:translateX(-${(1 - n.value) * 100}%)`)
2270
2439
  }, null, 6),
2271
- y("span", Sn, C(a.$td("ui.progress", "{progress}% complete", {
2440
+ y("span", Pn, S(a.$td("ui.progress", "{progress}% complete", {
2272
2441
  progress: n.value * 100
2273
2442
  })), 1)
2274
2443
  ]));
2275
2444
  }
2276
2445
  });
2277
- function Mn(t) {
2278
- const s = u(() => t.title ?? S("ui.loading", "Loading")), e = u(
2279
- () => t.message ?? S("ui.loadingInProgress", "Loading in progress...")
2446
+ function zn(t) {
2447
+ const s = u(() => t.title ?? k("ui.loading", "Loading")), e = u(
2448
+ () => t.message ?? k("ui.loadingInProgress", "Loading in progress...")
2280
2449
  ), r = u(() => typeof t.progress == "number" || !!t.job), n = u(() => !t.title);
2281
2450
  return { renderedTitle: s, renderedMessage: e, titleHidden: n, showProgress: r };
2282
2451
  }
2283
- const En = /* @__PURE__ */ g({
2452
+ const Dn = /* @__PURE__ */ g({
2284
2453
  __name: "LoadingModal",
2285
2454
  props: {
2286
2455
  title: {},
@@ -2289,30 +2458,30 @@ const En = /* @__PURE__ */ g({
2289
2458
  job: {}
2290
2459
  },
2291
2460
  setup(t, { expose: s }) {
2292
- const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: l } = Mn(e);
2293
- return s(), (c, d) => (i(), f(X, {
2461
+ const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: i } = zn(e);
2462
+ return s(), (l, d) => (c(), h(G, {
2294
2463
  persistent: "",
2295
- class: k(["flex", { "flex-col-reverse": o(l), "items-center justify-center gap-2": !o(l) }]),
2464
+ class: C(["flex", { "flex-col-reverse": o(i), "items-center justify-center gap-2": !o(i) }]),
2296
2465
  "wrapper-class": "w-auto",
2297
2466
  title: o(r),
2298
2467
  "title-hidden": o(a)
2299
2468
  }, {
2300
- default: m(() => [
2301
- o(l) ? (i(), f(kn, {
2469
+ default: f(() => [
2470
+ o(i) ? (c(), h(An, {
2302
2471
  key: 0,
2303
- progress: c.progress,
2304
- job: c.job,
2472
+ progress: l.progress,
2473
+ job: l.job,
2305
2474
  class: "min-w-[min(400px,80vw)]"
2306
- }, null, 8, ["progress", "job"])) : (i(), f(o(xn), {
2475
+ }, null, 8, ["progress", "job"])) : (c(), h(o(Tn), {
2307
2476
  key: 1,
2308
2477
  class: "text-primary-600 mr-1 size-6"
2309
2478
  })),
2310
- p(A, { text: o(n) }, null, 8, ["text"])
2479
+ m(T, { text: o(n) }, null, 8, ["text"])
2311
2480
  ]),
2312
2481
  _: 1
2313
2482
  }, 8, ["title", "title-hidden", "class"]));
2314
2483
  }
2315
- }), _t = /* @__PURE__ */ g({
2484
+ }), wt = /* @__PURE__ */ g({
2316
2485
  __name: "HeadlessInput",
2317
2486
  props: {
2318
2487
  name: {},
@@ -2323,59 +2492,59 @@ const En = /* @__PURE__ */ g({
2323
2492
  },
2324
2493
  emits: ["update:modelValue"],
2325
2494
  setup(t, { expose: s, emit: e }) {
2326
- const r = e, n = le("form", null), a = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), l = {
2327
- id: `input-${oe()}`,
2495
+ const r = e, n = se("form", null), a = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), i = {
2496
+ id: `input-${te()}`,
2328
2497
  name: u(() => t.name),
2329
2498
  label: u(() => t.label),
2330
2499
  description: u(() => t.description),
2331
2500
  value: u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue),
2332
- errors: Ee(a),
2501
+ errors: he(a),
2333
2502
  required: u(() => {
2334
2503
  if (!(!t.name || !n))
2335
2504
  return n.getFieldRules(t.name).includes("required");
2336
2505
  }),
2337
- update(c) {
2506
+ update(l) {
2338
2507
  if (n && t.name) {
2339
- n.setFieldValue(t.name, c);
2508
+ n.setFieldValue(t.name, l);
2340
2509
  return;
2341
2510
  }
2342
- r("update:modelValue", c);
2511
+ r("update:modelValue", l);
2343
2512
  }
2344
2513
  };
2345
- return se("input", l), s(l), (c, d) => (i(), f(N(c.as), null, {
2346
- default: m(() => [
2347
- _(c.$slots, "default")
2514
+ return ae("input", i), s(i), (l, d) => (c(), h(N(l.as), null, {
2515
+ default: f(() => [
2516
+ w(l.$slots, "default")
2348
2517
  ]),
2349
2518
  _: 3
2350
2519
  }));
2351
2520
  }
2352
- }), Hn = ["for"], Se = /* @__PURE__ */ g({
2521
+ }), jn = ["for"], ke = /* @__PURE__ */ g({
2353
2522
  __name: "HeadlessInputLabel",
2354
2523
  setup(t) {
2355
- const s = H("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = Me(), r = u(() => !!(s.label || e.default));
2356
- return (n, a) => r.value ? (i(), b("label", {
2524
+ const s = V("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = He(), r = u(() => !!(s.label || e.default));
2525
+ return (n, a) => r.value ? (c(), b("label", {
2357
2526
  key: 0,
2358
2527
  for: o(s).id
2359
2528
  }, [
2360
- _(n.$slots, "default", {}, () => [
2361
- P(C(o(s).label), 1)
2529
+ w(n.$slots, "default", {}, () => [
2530
+ A(S(o(s).label), 1)
2362
2531
  ])
2363
- ], 8, Hn)) : M("", !0);
2532
+ ], 8, jn)) : M("", !0);
2364
2533
  }
2365
- }), Ln = ["id", "name", "type", "checked", "required", "aria-invalid", "aria-describedby"], wt = /* @__PURE__ */ g({
2534
+ }), Bn = ["id", "name", "type", "checked", "required", "aria-invalid", "aria-describedby"], $t = /* @__PURE__ */ g({
2366
2535
  __name: "HeadlessInputInput",
2367
2536
  props: {
2368
2537
  type: { default: "text" }
2369
2538
  },
2370
2539
  setup(t) {
2371
- const s = re("$inputRef"), e = H("input", "<HeadlessInputInput> must be a child of a <HeadlessInput>"), r = u(() => e.name ?? void 0), n = u(() => e.value), a = u(() => {
2540
+ const s = le("$inputRef"), e = V("input", "<HeadlessInputInput> must be a child of a <HeadlessInput>"), r = u(() => e.name ?? void 0), n = u(() => e.value), a = u(() => {
2372
2541
  if (t.type === "checkbox")
2373
2542
  return !!n.value;
2374
2543
  });
2375
- function l() {
2376
- s.value && e.update(c());
2544
+ function i() {
2545
+ s.value && e.update(l());
2377
2546
  }
2378
- function c() {
2547
+ function l() {
2379
2548
  if (!s.value)
2380
2549
  return null;
2381
2550
  switch (t.type) {
@@ -2387,18 +2556,18 @@ const En = /* @__PURE__ */ g({
2387
2556
  return s.value.value;
2388
2557
  }
2389
2558
  }
2390
- return ot(e, () => {
2559
+ return nt(e, () => {
2391
2560
  var d;
2392
2561
  return (d = s.value) == null ? void 0 : d.focus();
2393
- }), ie(() => {
2562
+ }), Z(() => {
2394
2563
  if (s.value) {
2395
- if (t.type === "date") {
2564
+ if (t.type === "date" && n.value instanceof Date) {
2396
2565
  s.value.valueAsDate = n.value;
2397
2566
  return;
2398
2567
  }
2399
2568
  s.value.value = n.value ?? null;
2400
2569
  }
2401
- }), (d, v) => (i(), b("input", {
2570
+ }), (d, v) => (c(), b("input", {
2402
2571
  id: o(e).id,
2403
2572
  ref: "$inputRef",
2404
2573
  name: r.value,
@@ -2407,39 +2576,39 @@ const En = /* @__PURE__ */ g({
2407
2576
  required: o(e).required ?? void 0,
2408
2577
  "aria-invalid": o(e).errors ? "true" : "false",
2409
2578
  "aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
2410
- onInput: l
2411
- }, null, 40, Ln));
2579
+ onInput: i
2580
+ }, null, 40, Bn));
2412
2581
  }
2413
- }), In = /* @__PURE__ */ g({
2582
+ }), qn = /* @__PURE__ */ g({
2414
2583
  inheritAttrs: !1,
2415
2584
  __name: "HeadlessInputDescription",
2416
2585
  setup(t) {
2417
- const s = H(
2586
+ const s = V(
2418
2587
  "input",
2419
2588
  "<HeadlessInputDescription> must be a child of a <HeadlessInput>"
2420
2589
  ), e = u(() => typeof s.description == "string" ? s.description : ""), r = u(() => !!s.description);
2421
- return (n, a) => _(n.$slots, "default", {
2590
+ return (n, a) => w(n.$slots, "default", {
2422
2591
  id: `${o(s).id}-description`
2423
2592
  }, () => [
2424
- r.value ? (i(), f(A, I({ key: 0 }, n.$attrs, {
2593
+ r.value ? (c(), h(T, H({ key: 0 }, n.$attrs, {
2425
2594
  id: `${o(s).id}-description`,
2426
2595
  text: e.value
2427
2596
  }), null, 16, ["id", "text"])) : M("", !0)
2428
2597
  ]);
2429
2598
  }
2430
- }), Tn = ["id"], ke = /* @__PURE__ */ g({
2599
+ }), Fn = ["id"], Me = /* @__PURE__ */ g({
2431
2600
  __name: "HeadlessInputError",
2432
2601
  setup(t) {
2433
- const s = H("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = u(() => s.errors ? S(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
2434
- return (r, n) => e.value ? (i(), b("p", {
2602
+ const s = V("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = u(() => s.errors ? k(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
2603
+ return (r, n) => e.value ? (c(), b("p", {
2435
2604
  key: 0,
2436
2605
  id: `${o(s).id}-error`
2437
- }, C(e.value), 9, Tn)) : M("", !0);
2606
+ }, S(e.value), 9, Fn)) : M("", !0);
2438
2607
  }
2439
- }), Vn = {
2608
+ }), Un = {
2440
2609
  key: 0,
2441
2610
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
2442
- }, Rn = /* @__PURE__ */ g({
2611
+ }, On = /* @__PURE__ */ g({
2443
2612
  inheritAttrs: !1,
2444
2613
  __name: "Input",
2445
2614
  props: {
@@ -2452,123 +2621,123 @@ const En = /* @__PURE__ */ g({
2452
2621
  },
2453
2622
  emits: ["update:modelValue"],
2454
2623
  setup(t) {
2455
- const s = J(t, ["label", "inputClass", "wrapperClass"]), e = re("$inputRef"), [r, n] = it(), a = u(() => E("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), l = u(() => {
2456
- var c, d, v;
2624
+ const s = J(t, ["label", "inputClass", "wrapperClass"]), e = le("$inputRef"), [r, n] = lt(), a = u(() => E("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = u(() => {
2625
+ var l, d, v;
2457
2626
  return E(
2458
2627
  // eslint-disable-next-line vue/max-len
2459
2628
  "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",
2460
2629
  {
2461
- "focus:ring-primary-600": !((c = e.value) != null && c.errors),
2630
+ "focus:ring-primary-600": !((l = e.value) != null && l.errors),
2462
2631
  "text-gray-900 shadow-2xs ring-gray-300 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
2463
2632
  "pr-10 text-red-900 ring-red-300 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
2464
2633
  },
2465
2634
  t.inputClass
2466
2635
  );
2467
2636
  });
2468
- return (c, d) => (i(), f(_t, I({
2637
+ return (l, d) => (c(), h(wt, H({
2469
2638
  ref: "$inputRef",
2470
- label: c.label,
2639
+ label: l.label,
2471
2640
  class: o(n)
2472
2641
  }, s, {
2473
- "onUpdate:modelValue": d[0] || (d[0] = (v) => c.$emit("update:modelValue", v))
2642
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
2474
2643
  }), {
2475
- default: m(() => {
2644
+ default: f(() => {
2476
2645
  var v;
2477
2646
  return [
2478
- p(Se, { class: "block text-sm leading-6 font-medium text-gray-900" }),
2647
+ m(ke, { class: "block text-sm leading-6 font-medium text-gray-900" }),
2479
2648
  y("div", {
2480
- class: k(a.value)
2649
+ class: C(a.value)
2481
2650
  }, [
2482
- p(wt, I(o(r), { class: l.value }), null, 16, ["class"]),
2483
- (v = o(e)) != null && v.errors ? (i(), b("div", Vn, [
2484
- p(o(yt), { class: "size-5 text-red-500" })
2651
+ m($t, H(o(r), { class: i.value }), null, 16, ["class"]),
2652
+ (v = o(e)) != null && v.errors ? (c(), b("div", Un, [
2653
+ m(o(yt), { class: "size-5 text-red-500" })
2485
2654
  ])) : M("", !0)
2486
2655
  ], 2),
2487
- p(In, { class: "mt-2 text-sm text-gray-600" }),
2488
- p(ke, { class: "mt-2 text-sm text-red-600" })
2656
+ m(qn, { class: "mt-2 text-sm text-gray-600" }),
2657
+ m(Me, { class: "mt-2 text-sm text-red-600" })
2489
2658
  ];
2490
2659
  }),
2491
2660
  _: 1
2492
2661
  }, 16, ["label", "class"]));
2493
2662
  }
2494
2663
  });
2495
- function Na(t, s = {}) {
2664
+ function tl(t, s = {}) {
2496
2665
  return {
2497
2666
  default: t,
2498
2667
  type: "boolean",
2499
2668
  rules: s.rules
2500
2669
  };
2501
2670
  }
2502
- function Wa(t, s = {}) {
2671
+ function sl(t, s = {}) {
2503
2672
  return {
2504
2673
  default: t,
2505
2674
  type: "date",
2506
2675
  rules: s.rules
2507
2676
  };
2508
2677
  }
2509
- function Ka(t) {
2678
+ function rl(t) {
2510
2679
  return {
2511
2680
  default: t,
2512
2681
  type: "boolean",
2513
2682
  rules: "required"
2514
2683
  };
2515
2684
  }
2516
- function Qa(t) {
2685
+ function nl(t) {
2517
2686
  return {
2518
2687
  default: t,
2519
2688
  type: "date",
2520
2689
  rules: "required"
2521
2690
  };
2522
2691
  }
2523
- function Ja(t) {
2692
+ function al(t) {
2524
2693
  return {
2525
2694
  default: t,
2526
2695
  type: "number",
2527
2696
  rules: "required"
2528
2697
  };
2529
2698
  }
2530
- function Za(t) {
2699
+ function ll(t) {
2531
2700
  return {
2532
2701
  default: t,
2533
2702
  type: "object",
2534
2703
  rules: "required"
2535
2704
  };
2536
2705
  }
2537
- function Pn(t) {
2706
+ function Nn(t) {
2538
2707
  return {
2539
2708
  default: t,
2540
2709
  type: "string",
2541
2710
  rules: "required"
2542
2711
  };
2543
2712
  }
2544
- function Ga(t, s = {}) {
2713
+ function ol(t, s = {}) {
2545
2714
  return {
2546
2715
  default: t,
2547
2716
  type: "number",
2548
2717
  rules: s.rules
2549
2718
  };
2550
2719
  }
2551
- function Xa(t, s = {}) {
2720
+ function il(t, s = {}) {
2552
2721
  return {
2553
2722
  default: t,
2554
2723
  type: "object",
2555
2724
  rules: s.rules
2556
2725
  };
2557
2726
  }
2558
- function Ya(t, s = {}) {
2727
+ function cl(t, s = {}) {
2559
2728
  return {
2560
2729
  default: t,
2561
2730
  type: "string",
2562
2731
  rules: s.rules
2563
2732
  };
2564
2733
  }
2565
- function An(t) {
2566
- const s = lt({
2567
- draft: Pn(t.defaultValue ?? "")
2568
- }), e = u(() => t.title ?? t.message), r = u(() => t.title ? t.message : null), n = u(() => t.acceptText ?? S("ui.accept", "Ok")), a = u(() => t.cancelText ?? S("ui.cancel", "Cancel"));
2734
+ function Wn(t) {
2735
+ const s = at({
2736
+ draft: Nn(t.defaultValue ?? "")
2737
+ }), e = u(() => t.title ?? t.message), r = u(() => t.title ? t.message : null), n = u(() => t.acceptText ?? k("ui.accept", "Ok")), a = u(() => t.cancelText ?? k("ui.cancel", "Cancel"));
2569
2738
  return { form: s, renderedTitle: e, renderedMessage: r, renderedAcceptText: n, renderedCancelText: a };
2570
2739
  }
2571
- const zn = { class: "mt-4 flex flex-row-reverse gap-2" }, jn = /* @__PURE__ */ g({
2740
+ const Kn = { class: "mt-4 flex flex-row-reverse gap-2" }, Qn = /* @__PURE__ */ g({
2572
2741
  __name: "PromptModal",
2573
2742
  props: {
2574
2743
  title: {},
@@ -2582,43 +2751,43 @@ const zn = { class: "mt-4 flex flex-row-reverse gap-2" }, jn = /* @__PURE__ */ g
2582
2751
  cancelVariant: { default: "secondary" }
2583
2752
  },
2584
2753
  setup(t, { expose: s }) {
2585
- const e = J(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: l, renderedCancelText: c } = An(e);
2586
- return s(), (d, v) => (i(), f(X, {
2754
+ const e = J(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText: l } = Wn(e);
2755
+ return s(), (d, v) => (c(), h(G, {
2587
2756
  title: o(n),
2588
2757
  persistent: ""
2589
2758
  }, {
2590
- default: m(({ close: x }) => [
2591
- p(vt, {
2759
+ default: f(({ close: x }) => [
2760
+ m(vt, {
2592
2761
  form: o(r),
2593
- onSubmit: (h) => x(o(r).draft)
2762
+ onSubmit: (p) => x(o(r).draft)
2594
2763
  }, {
2595
- default: m(() => [
2596
- o(a) ? (i(), f(A, {
2764
+ default: f(() => [
2765
+ o(a) ? (c(), h(T, {
2597
2766
  key: 0,
2598
2767
  text: o(a)
2599
2768
  }, null, 8, ["text"])) : M("", !0),
2600
- p(Rn, {
2769
+ m(On, {
2601
2770
  name: "draft",
2602
2771
  class: "mt-2",
2603
2772
  placeholder: d.placeholder,
2604
2773
  label: d.label
2605
2774
  }, null, 8, ["placeholder", "label"]),
2606
- y("div", zn, [
2607
- p(z, {
2775
+ y("div", Kn, [
2776
+ m(z, {
2608
2777
  variant: d.acceptVariant,
2609
2778
  submit: ""
2610
2779
  }, {
2611
- default: m(() => [
2612
- P(C(o(l)), 1)
2780
+ default: f(() => [
2781
+ A(S(o(i)), 1)
2613
2782
  ]),
2614
2783
  _: 1
2615
2784
  }, 8, ["variant"]),
2616
- p(z, {
2785
+ m(z, {
2617
2786
  variant: d.cancelVariant,
2618
- onClick: (h) => x()
2787
+ onClick: (p) => x()
2619
2788
  }, {
2620
- default: m(() => [
2621
- P(C(o(c)), 1)
2789
+ default: f(() => [
2790
+ A(S(o(l)), 1)
2622
2791
  ]),
2623
2792
  _: 2
2624
2793
  }, 1032, ["variant", "onClick"])
@@ -2630,13 +2799,13 @@ const zn = { class: "mt-4 flex flex-row-reverse gap-2" }, jn = /* @__PURE__ */ g
2630
2799
  _: 1
2631
2800
  }, 8, ["title"]));
2632
2801
  }
2633
- }), Bn = { class: "grid grow place-items-center" }, Dn = { class: "flex flex-col items-center space-y-6 p-8" }, qn = { class: "mt-2 text-center text-4xl font-medium text-red-600" }, Fn = { class: "mt-4 flex flex-col space-y-4" }, Un = /* @__PURE__ */ g({
2802
+ }), Jn = { class: "grid grow place-items-center" }, Zn = { class: "flex flex-col items-center space-y-6 p-8" }, Xn = { class: "mt-2 text-center text-4xl font-medium text-red-600" }, Yn = { class: "mt-4 flex flex-col space-y-4" }, Gn = /* @__PURE__ */ g({
2634
2803
  __name: "StartupCrash",
2635
2804
  setup(t) {
2636
- return (s, e) => (i(), b("div", Bn, [
2637
- y("div", Dn, [
2638
- y("h1", qn, C(s.$td("startupCrash.title", "Something went wrong!")), 1),
2639
- p(A, {
2805
+ return (s, e) => (c(), b("div", Jn, [
2806
+ y("div", Zn, [
2807
+ y("h1", Xn, S(s.$td("startupCrash.title", "Something went wrong!")), 1),
2808
+ m(T, {
2640
2809
  text: s.$td(
2641
2810
  "startupCrash.message",
2642
2811
  `Something failed trying to start the application.
@@ -2645,22 +2814,22 @@ Here's some things you can do:`
2645
2814
  ),
2646
2815
  class: "mt-4 text-center"
2647
2816
  }, null, 8, ["text"]),
2648
- y("div", Fn, [
2649
- p(z, {
2817
+ y("div", Yn, [
2818
+ m(z, {
2650
2819
  variant: "danger",
2651
2820
  onClick: e[0] || (e[0] = (r) => s.$app.reload())
2652
2821
  }, {
2653
- default: m(() => [
2654
- P(C(s.$td("startupCrash.reload", "Try again")), 1)
2822
+ default: f(() => [
2823
+ A(S(s.$td("startupCrash.reload", "Try again")), 1)
2655
2824
  ]),
2656
2825
  _: 1
2657
2826
  }),
2658
- p(z, {
2827
+ m(z, {
2659
2828
  variant: "danger",
2660
2829
  onClick: e[1] || (e[1] = (r) => s.$errors.inspect(s.$errors.startupErrors))
2661
2830
  }, {
2662
- default: m(() => [
2663
- P(C(s.$td("startupCrash.inspect", "View error details")), 1)
2831
+ default: f(() => [
2832
+ A(S(s.$td("startupCrash.inspect", "View error details")), 1)
2664
2833
  ]),
2665
2834
  _: 1
2666
2835
  })
@@ -2668,23 +2837,23 @@ Here's some things you can do:`
2668
2837
  ])
2669
2838
  ]));
2670
2839
  }
2671
- }), $t = /* @__PURE__ */ g({
2840
+ }), _t = /* @__PURE__ */ g({
2672
2841
  __name: "HeadlessToastAction",
2673
2842
  props: {
2674
2843
  action: {}
2675
2844
  },
2676
2845
  setup(t) {
2677
- return (s, e) => (i(), f(N(s.action.dismiss ? o(gs) : "button"), {
2846
+ return (s, e) => (c(), h(N(s.action.dismiss ? o($s) : "button"), {
2678
2847
  type: "button",
2679
2848
  onClick: s.action.click
2680
2849
  }, {
2681
- default: m(() => [
2682
- P(C(s.action.label), 1)
2850
+ default: f(() => [
2851
+ A(S(s.action.label), 1)
2683
2852
  ]),
2684
2853
  _: 1
2685
2854
  }, 8, ["onClick"]));
2686
2855
  }
2687
- }), On = { key: 0 }, Nn = /* @__PURE__ */ g({
2856
+ }), ea = { key: 0 }, ta = /* @__PURE__ */ g({
2688
2857
  __name: "HeadlessToast",
2689
2858
  props: {
2690
2859
  message: {},
@@ -2692,11 +2861,11 @@ Here's some things you can do:`
2692
2861
  variant: {}
2693
2862
  },
2694
2863
  setup(t) {
2695
- return (s, e) => (i(), f(o(vs), null, {
2696
- default: m(() => [
2697
- _(s.$slots, "default", {}, () => [
2698
- s.message ? (i(), b("span", On, C(s.message), 1)) : M("", !0),
2699
- (i(!0), b(B, null, q(s.actions, (r, n) => (i(), f($t, {
2864
+ return (s, e) => (c(), h(o(_s), null, {
2865
+ default: f(() => [
2866
+ w(s.$slots, "default", {}, () => [
2867
+ s.message ? (c(), b("span", ea, S(s.message), 1)) : M("", !0),
2868
+ (c(!0), b(j, null, F(s.actions, (r, n) => (c(), h(_t, {
2700
2869
  key: n,
2701
2870
  action: r
2702
2871
  }, null, 8, ["action"]))), 128))
@@ -2705,7 +2874,7 @@ Here's some things you can do:`
2705
2874
  _: 3
2706
2875
  }));
2707
2876
  }
2708
- }), Wn = /* @__PURE__ */ g({
2877
+ }), sa = /* @__PURE__ */ g({
2709
2878
  __name: "Toast",
2710
2879
  props: {
2711
2880
  message: {},
@@ -2714,7 +2883,7 @@ Here's some things you can do:`
2714
2883
  class: {}
2715
2884
  },
2716
2885
  setup(t, { expose: s }) {
2717
- const e = u(() => nt(
2886
+ const e = u(() => st(
2718
2887
  { baseClasses: t.class, variant: t.variant },
2719
2888
  {
2720
2889
  baseClasses: "flex items-center gap-2 rounded-md p-2 ring-1 shadow-lg border-gray-200",
@@ -2729,110 +2898,110 @@ Here's some things you can do:`
2729
2898
  }
2730
2899
  }
2731
2900
  ));
2732
- return s(), (r, n) => (i(), f(Nn, {
2733
- class: k(e.value)
2901
+ return s(), (r, n) => (c(), h(ta, {
2902
+ class: C(e.value)
2734
2903
  }, {
2735
- default: m(() => [
2736
- r.message ? (i(), f(A, {
2904
+ default: f(() => [
2905
+ r.message ? (c(), h(T, {
2737
2906
  key: 0,
2738
2907
  text: r.message,
2739
2908
  inline: ""
2740
2909
  }, null, 8, ["text"])) : M("", !0),
2741
- (i(!0), b(B, null, q(r.actions, (a, l) => (i(), f(z, {
2742
- key: l,
2910
+ (c(!0), b(j, null, F(r.actions, (a, i) => (c(), h(z, {
2911
+ key: i,
2743
2912
  action: a,
2744
2913
  variant: r.variant,
2745
- as: $t
2914
+ as: _t
2746
2915
  }, null, 8, ["action", "variant"]))), 128))
2747
2916
  ]),
2748
2917
  _: 1
2749
2918
  }, 8, ["class"]));
2750
2919
  }
2751
- }), Kn = { $ui: V }, Qn = {
2920
+ }), ra = { $ui: R }, na = {
2752
2921
  async install(t, s) {
2753
2922
  const e = {
2754
- "alert-modal": jr,
2755
- "confirm-modal": Nr,
2756
- "error-report-modal": _n,
2757
- "loading-modal": En,
2758
- "prompt-modal": jn,
2759
- "startup-crash": Un,
2760
- toast: Wn,
2923
+ "alert-modal": Qr,
2924
+ "confirm-modal": tn,
2925
+ "error-report-modal": Vn,
2926
+ "loading-modal": Dn,
2927
+ "prompt-modal": Qn,
2928
+ "startup-crash": Gn,
2929
+ toast: sa,
2761
2930
  ...s.components
2762
2931
  };
2763
2932
  for (const [r, n] of Object.entries(e))
2764
- V.registerComponent(r, n);
2765
- await ve(t, Kn);
2933
+ R.registerComponent(r, n);
2934
+ await ye(t, ra);
2766
2935
  }
2767
2936
  };
2768
- async function Jn(t, s = {}) {
2937
+ async function aa(t, s = {}) {
2769
2938
  var r;
2770
- const e = [Sr, Ds, sr, Cr, Ns, Qn, ...s.plugins ?? []];
2771
- j.instance = t, await Rs(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await T.emit("application-ready");
2939
+ const e = [Pr, Fs, Rr, wr, Ks, na, ...s.plugins ?? []];
2940
+ D.instance = t, await As(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await I.emit("application-ready");
2772
2941
  }
2773
- async function eo(t, s = {}) {
2942
+ async function ul(t, s = {}) {
2774
2943
  var r;
2775
- const e = Vt(t);
2776
- Y() && (window.$aerogel = e), await Jn(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await T.emit("application-mounted");
2944
+ const e = Tt(t);
2945
+ ee() && (window.$aerogel = e), await aa(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await I.emit("application-mounted");
2777
2946
  }
2778
- const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
2947
+ const la = { key: 0 }, oa = /* @__PURE__ */ g({
2779
2948
  __name: "AppModals",
2780
2949
  setup(t) {
2781
- const s = u(() => V.modals[0] ?? null);
2782
- return (e, r) => s.value ? (i(), b("aside", Zn, [
2783
- p(gt, {
2950
+ const s = u(() => R.modals[0] ?? null);
2951
+ return (e, r) => s.value ? (c(), b("aside", la, [
2952
+ m(gt, {
2784
2953
  "child-index": 1,
2785
2954
  modal: s.value
2786
2955
  }, null, 8, ["modal"])
2787
2956
  ])) : M("", !0);
2788
2957
  }
2789
- }), Xn = /* @__PURE__ */ g({
2958
+ }), ia = /* @__PURE__ */ g({
2790
2959
  __name: "AppToasts",
2791
2960
  setup(t) {
2792
- return (s, e) => (i(), f(o(bs), null, {
2793
- default: m(() => [
2794
- (i(!0), b(B, null, q(s.$ui.toasts, (r) => (i(), f(N(r.component), I({
2961
+ return (s, e) => (c(), h(o(xs), null, {
2962
+ default: f(() => [
2963
+ (c(!0), b(j, null, F(s.$ui.toasts, (r) => (c(), h(N(r.component), H({
2795
2964
  id: r.id,
2796
2965
  key: r.id,
2797
2966
  ref_for: !0
2798
2967
  }, r.properties), null, 16, ["id"]))), 128)),
2799
- p(o(ys), { class: "fixed right-0 bottom-0 z-50 flex flex-col items-end space-y-4 px-4 py-6 sm:p-6" })
2968
+ m(o(Cs), { class: "fixed right-0 bottom-0 z-50 flex flex-col items-end space-y-4 px-4 py-6 sm:p-6" })
2800
2969
  ]),
2801
2970
  _: 1
2802
2971
  }));
2803
2972
  }
2804
- }), Yn = /* @__PURE__ */ g({
2973
+ }), ca = /* @__PURE__ */ g({
2805
2974
  __name: "AppOverlays",
2806
2975
  setup(t) {
2807
- return (s, e) => (i(), b(B, null, [
2808
- p(Gn),
2809
- p(Xn)
2976
+ return (s, e) => (c(), b(j, null, [
2977
+ m(oa),
2978
+ m(ia)
2810
2979
  ], 64));
2811
2980
  }
2812
- }), ea = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, to = /* @__PURE__ */ g({
2981
+ }), ua = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, dl = /* @__PURE__ */ g({
2813
2982
  __name: "AppLayout",
2814
2983
  setup(t) {
2815
- return (s, e) => (i(), b("div", ea, [
2816
- s.$errors.hasStartupErrors ? _(s.$slots, "startup-crash", { key: 0 }, () => [
2817
- (i(), f(N(s.$ui.requireComponent("startup-crash"))))
2818
- ]) : _(s.$slots, "default", { key: 1 }),
2819
- p(Yn)
2984
+ return (s, e) => (c(), b("div", ua, [
2985
+ s.$errors.hasStartupErrors ? w(s.$slots, "startup-crash", { key: 0 }, () => [
2986
+ (c(), h(N(s.$ui.requireComponent("startup-crash"))))
2987
+ ]) : w(s.$slots, "default", { key: 1 }),
2988
+ m(ca)
2820
2989
  ]));
2821
2990
  }
2822
- }), ta = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], so = /* @__PURE__ */ g({
2991
+ }), da = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], pl = /* @__PURE__ */ g({
2823
2992
  __name: "HeadlessInputTextArea",
2824
2993
  setup(t) {
2825
- const s = re("$textAreaRef"), e = H(
2994
+ const s = le("$textAreaRef"), e = V(
2826
2995
  "input",
2827
2996
  "<HeadlessInputTextArea> must be a child of a <HeadlessInput>"
2828
2997
  ), r = u(() => e.name ?? void 0), n = u(() => e.value);
2829
2998
  function a() {
2830
2999
  s.value && e.update(s.value.value);
2831
3000
  }
2832
- return ot(e, () => {
2833
- var l;
2834
- return (l = s.value) == null ? void 0 : l.focus();
2835
- }), (l, c) => (i(), b("textarea", {
3001
+ return nt(e, () => {
3002
+ var i;
3003
+ return (i = s.value) == null ? void 0 : i.focus();
3004
+ }), (i, l) => (c(), b("textarea", {
2836
3005
  id: o(e).id,
2837
3006
  ref: "$textAreaRef",
2838
3007
  name: r.value,
@@ -2841,22 +3010,22 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
2841
3010
  "aria-invalid": o(e).errors ? "true" : "false",
2842
3011
  "aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
2843
3012
  onInput: a
2844
- }, null, 40, ta));
3013
+ }, null, 40, da));
2845
3014
  }
2846
- }), sa = { class: "group" }, ra = { 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" }, na = { class: "pt-2 pl-4" }, ro = /* @__PURE__ */ g({
3015
+ }), pa = { class: "group" }, ma = { 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" }, fa = { class: "pt-2 pl-4" }, ml = /* @__PURE__ */ g({
2847
3016
  __name: "AdvancedOptions",
2848
3017
  setup(t) {
2849
- return (s, e) => (i(), b("details", sa, [
2850
- y("summary", ra, [
2851
- p(o(bt), { class: "size-6 transition-transform group-open:rotate-90" }),
2852
- y("span", null, C(s.$td("ui.advancedOptions", "Advanced options")), 1)
3018
+ return (s, e) => (c(), b("details", pa, [
3019
+ y("summary", ma, [
3020
+ m(o(bt), { class: "size-6 transition-transform group-open:rotate-90" }),
3021
+ y("span", null, S(s.$td("ui.advancedOptions", "Advanced options")), 1)
2853
3022
  ]),
2854
- y("div", na, [
2855
- _(s.$slots, "default")
3023
+ y("div", fa, [
3024
+ w(s.$slots, "default")
2856
3025
  ])
2857
3026
  ]));
2858
3027
  }
2859
- }), aa = { class: "flex h-6 items-center" }, no = /* @__PURE__ */ g({
3028
+ }), ha = { class: "flex h-6 items-center" }, fl = /* @__PURE__ */ g({
2860
3029
  inheritAttrs: !1,
2861
3030
  __name: "Checkbox",
2862
3031
  props: {
@@ -2869,7 +3038,7 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
2869
3038
  },
2870
3039
  emits: ["update:modelValue"],
2871
3040
  setup(t) {
2872
- const s = J(t, ["inputClass", "labelClass"]), e = re("$inputRef"), [r, n] = it(), a = u(() => E("relative flex items-start", n.value)), l = u(() => {
3041
+ const s = J(t, ["inputClass", "labelClass"]), e = le("$inputRef"), [r, n] = lt(), a = u(() => E("relative flex items-start", n.value)), i = u(() => {
2873
3042
  var d, v;
2874
3043
  return E(
2875
3044
  "size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
@@ -2879,43 +3048,43 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
2879
3048
  },
2880
3049
  t.inputClass
2881
3050
  );
2882
- }), c = u(() => E("ml-2 text-sm leading-6", t.labelClass));
2883
- return (d, v) => (i(), f(_t, I({
3051
+ }), l = u(() => E("ml-2 text-sm leading-6", t.labelClass));
3052
+ return (d, v) => (c(), h(wt, H({
2884
3053
  ref: "$inputRef",
2885
3054
  class: a.value
2886
3055
  }, s, {
2887
3056
  "onUpdate:modelValue": v[0] || (v[0] = (x) => d.$emit("update:modelValue", x))
2888
3057
  }), {
2889
- default: m(() => [
2890
- y("div", aa, [
2891
- p(wt, I(o(r), {
3058
+ default: f(() => [
3059
+ y("div", ha, [
3060
+ m($t, H(o(r), {
2892
3061
  type: "checkbox",
2893
- class: l.value
3062
+ class: i.value
2894
3063
  }), null, 16, ["class"])
2895
3064
  ]),
2896
- d.$slots.default ? (i(), b("div", {
3065
+ d.$slots.default ? (c(), b("div", {
2897
3066
  key: 0,
2898
- class: k(c.value)
3067
+ class: C(l.value)
2899
3068
  }, [
2900
- p(Se, { class: "text-gray-900" }, {
2901
- default: m(() => [
2902
- _(d.$slots, "default")
3069
+ m(ke, { class: "text-gray-900" }, {
3070
+ default: f(() => [
3071
+ w(d.$slots, "default")
2903
3072
  ]),
2904
3073
  _: 3
2905
3074
  }),
2906
- p(ke, { class: "text-red-600" })
2907
- ], 2)) : d.label ? (i(), b("div", {
3075
+ m(Me, { class: "text-red-600" })
3076
+ ], 2)) : d.label ? (c(), b("div", {
2908
3077
  key: 1,
2909
- class: k(c.value)
3078
+ class: C(l.value)
2910
3079
  }, [
2911
- p(Se, { class: "text-gray-900" }),
2912
- p(ke, { class: "text-red-600" })
3080
+ m(ke, { class: "text-gray-900" }),
3081
+ m(Me, { class: "text-red-600" })
2913
3082
  ], 2)) : M("", !0)
2914
3083
  ]),
2915
3084
  _: 3
2916
3085
  }, 16, ["class"]));
2917
3086
  }
2918
- }), oa = /* @__PURE__ */ g({
3087
+ }), ga = /* @__PURE__ */ g({
2919
3088
  __name: "DropdownMenuOption",
2920
3089
  props: {
2921
3090
  class: {},
@@ -2928,33 +3097,33 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
2928
3097
  "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
2929
3098
  t.class
2930
3099
  ));
2931
- return (r, n) => (i(), f(o(_s), I({ class: e.value }, s, {
3100
+ return (r, n) => (c(), h(o(Ss), H({ class: e.value }, s, {
2932
3101
  onSelect: n[0] || (n[0] = (a) => r.$emit("select"))
2933
3102
  }), {
2934
- default: m(() => [
2935
- _(r.$slots, "default")
3103
+ default: f(() => [
3104
+ w(r.$slots, "default")
2936
3105
  ]),
2937
3106
  _: 3
2938
3107
  }, 16, ["class"]));
2939
3108
  }
2940
- }), la = /* @__PURE__ */ g({
3109
+ }), va = /* @__PURE__ */ g({
2941
3110
  __name: "DropdownMenuOptions",
2942
3111
  setup(t) {
2943
- const s = H(
3112
+ const s = V(
2944
3113
  "dropdown-menu",
2945
3114
  "<DropdownMenuOptions> must be a child of a <DropdownMenu>"
2946
3115
  );
2947
- return (e, r) => (i(), f(o(ws), {
3116
+ return (e, r) => (c(), h(o(ks), {
2948
3117
  class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
2949
3118
  align: o(s).align,
2950
3119
  side: o(s).side
2951
3120
  }, {
2952
- default: m(() => [
2953
- _(e.$slots, "default", {}, () => [
2954
- (i(!0), b(B, null, q(o(s).options, (n, a) => (i(), f(oa, I(
3121
+ default: f(() => [
3122
+ w(e.$slots, "default", {}, () => [
3123
+ (c(!0), b(j, null, F(o(s).options, (n, a) => (c(), h(ga, H(
2955
3124
  {
2956
3125
  key: a,
2957
- as: n.route || n.href ? rt : void 0,
3126
+ as: n.route || n.href ? tt : void 0,
2958
3127
  class: n.class,
2959
3128
  ref_for: !0
2960
3129
  },
@@ -2965,14 +3134,14 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
2965
3134
  routeQuery: n.routeQuery
2966
3135
  } : {},
2967
3136
  {
2968
- onSelect: (l) => {
2969
- var c;
2970
- return (c = n.click) == null ? void 0 : c.call(n);
3137
+ onSelect: (i) => {
3138
+ var l;
3139
+ return (l = n.click) == null ? void 0 : l.call(n);
2971
3140
  }
2972
3141
  }
2973
3142
  ), {
2974
- default: m(() => [
2975
- P(C(n.label), 1)
3143
+ default: f(() => [
3144
+ A(S(n.label), 1)
2976
3145
  ]),
2977
3146
  _: 2
2978
3147
  }, 1040, ["as", "class", "onSelect"]))), 128))
@@ -2981,7 +3150,7 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
2981
3150
  _: 3
2982
3151
  }, 8, ["align", "side"]));
2983
3152
  }
2984
- }), ao = /* @__PURE__ */ g({
3153
+ }), hl = /* @__PURE__ */ g({
2985
3154
  __name: "DropdownMenu",
2986
3155
  props: {
2987
3156
  align: {},
@@ -2997,18 +3166,18 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
2997
3166
  return (r = t.options) == null ? void 0 : r.filter(Boolean);
2998
3167
  })
2999
3168
  };
3000
- return se("dropdown-menu", e), s(e), (r, n) => (i(), f(o($s), null, {
3001
- default: m(() => [
3002
- p(o(xs), null, {
3003
- default: m(() => [
3004
- _(r.$slots, "default")
3169
+ return ae("dropdown-menu", e), s(e), (r, n) => (c(), h(o(Ms), null, {
3170
+ default: f(() => [
3171
+ m(o(Es), null, {
3172
+ default: f(() => [
3173
+ w(r.$slots, "default")
3005
3174
  ]),
3006
3175
  _: 3
3007
3176
  }),
3008
- p(o(Cs), null, {
3009
- default: m(() => [
3010
- _(r.$slots, "options", {}, () => [
3011
- p(la)
3177
+ m(o(Hs), null, {
3178
+ default: f(() => [
3179
+ w(r.$slots, "options", {}, () => [
3180
+ m(va)
3012
3181
  ])
3013
3182
  ]),
3014
3183
  _: 3
@@ -3017,7 +3186,7 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
3017
3186
  _: 3
3018
3187
  }));
3019
3188
  }
3020
- }), ia = ["aria-hidden"], ca = ["tabindex", "aria-label", "type"], oo = /* @__PURE__ */ g({
3189
+ }), ba = ["aria-hidden"], ya = ["tabindex", "aria-label", "type"], gl = /* @__PURE__ */ g({
3021
3190
  __name: "EditableContent",
3022
3191
  props: {
3023
3192
  type: { default: "text" },
@@ -3030,106 +3199,106 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
3030
3199
  },
3031
3200
  emits: ["update", "save"],
3032
3201
  setup(t, { emit: s }) {
3033
- const e = s, r = re("$inputRef"), n = F(null), a = F(t.text), l = u(() => E("inline whitespace-pre", t.contentClass)), c = u(() => E("invisible whitespace-pre", t.contentClass)), d = u(() => E("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3202
+ const e = s, r = le("$inputRef"), n = B(null), a = B(t.text), i = u(() => E("inline whitespace-pre", t.contentClass)), l = u(() => E("invisible whitespace-pre", t.contentClass)), d = u(() => E("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3034
3203
  function v() {
3035
3204
  n.value = t.text;
3036
3205
  }
3037
3206
  function x() {
3038
3207
  n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
3039
3208
  }
3040
- return ie(() => a.value = t.text), (h, $) => (i(), b("div", {
3041
- class: k(["relative", { "pointer-events-none!": h.disabled && !n.value }])
3209
+ return Z(() => a.value = t.text), (p, _) => (c(), b("div", {
3210
+ class: C(["relative", { "pointer-events-none!": p.disabled && !n.value }])
3042
3211
  }, [
3043
- n.value ? (i(), b("span", {
3212
+ n.value ? (c(), b("span", {
3044
3213
  key: 1,
3045
- class: k(c.value)
3046
- }, C(a.value), 3)) : (i(), b("div", {
3214
+ class: C(l.value)
3215
+ }, S(a.value), 3)) : (c(), b("div", {
3047
3216
  key: 0,
3048
- class: k(l.value)
3217
+ class: C(i.value)
3049
3218
  }, [
3050
- _(h.$slots, "default")
3219
+ w(p.$slots, "default")
3051
3220
  ], 2)),
3052
- h.type === "number" ? (i(), b("span", {
3221
+ p.type === "number" ? (c(), b("span", {
3053
3222
  key: 2,
3054
- class: k(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
3223
+ class: C(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
3055
3224
  }, null, 2)) : M("", !0),
3056
3225
  y("form", {
3057
3226
  class: "w-full",
3058
- "aria-hidden": h.formAriaHidden,
3059
- onSubmit: $[4] || ($[4] = Ue((L) => {
3060
- var be;
3061
- return (be = o(r)) == null ? void 0 : be.blur();
3227
+ "aria-hidden": p.formAriaHidden,
3228
+ onSubmit: _[4] || (_[4] = Ue((L) => {
3229
+ var we;
3230
+ return (we = o(r)) == null ? void 0 : we.blur();
3062
3231
  }, ["prevent"]))
3063
3232
  }, [
3064
3233
  Oe(y("input", {
3065
3234
  ref: "$inputRef",
3066
- "onUpdate:modelValue": $[0] || ($[0] = (L) => a.value = L),
3067
- tabindex: h.tabindex ?? void 0,
3068
- "aria-label": h.ariaLabel ?? void 0,
3069
- type: h.type,
3070
- class: k([
3235
+ "onUpdate:modelValue": _[0] || (_[0] = (L) => a.value = L),
3236
+ tabindex: p.tabindex ?? void 0,
3237
+ "aria-label": p.ariaLabel ?? void 0,
3238
+ type: p.type,
3239
+ class: C([
3071
3240
  d.value,
3072
- { "opacity-0": !n.value, "appearance-textfield": !n.value && h.type === "number" }
3241
+ { "opacity-0": !n.value, "appearance-textfield": !n.value && p.type === "number" }
3073
3242
  ]),
3074
- onKeyup: $[1] || ($[1] = (L) => h.$emit("update", a.value)),
3075
- onFocus: $[2] || ($[2] = (L) => v()),
3076
- onBlur: $[3] || ($[3] = (L) => x())
3077
- }, null, 42, ca), [
3243
+ onKeyup: _[1] || (_[1] = (L) => p.$emit("update", a.value)),
3244
+ onFocus: _[2] || (_[2] = (L) => v()),
3245
+ onBlur: _[3] || (_[3] = (L) => x())
3246
+ }, null, 42, ya), [
3078
3247
  [Rt, a.value]
3079
3248
  ])
3080
- ], 40, ia)
3249
+ ], 40, ba)
3081
3250
  ], 2));
3082
3251
  }
3083
- }), ua = {
3252
+ }), wa = {
3084
3253
  viewBox: "0 0 512 512",
3085
3254
  width: "1.2em",
3086
3255
  height: "1.2em"
3087
3256
  };
3088
- function da(t, s) {
3089
- return i(), b("svg", ua, s[0] || (s[0] = [
3257
+ function $a(t, s) {
3258
+ return c(), b("svg", wa, s[0] || (s[0] = [
3090
3259
  y("path", {
3091
3260
  fill: "currentColor",
3092
3261
  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"
3093
3262
  }, null, -1)
3094
3263
  ]));
3095
3264
  }
3096
- const pa = R({ name: "ion-warning", render: da }), ma = {
3265
+ const _a = P({ name: "ion-warning", render: $a }), xa = {
3097
3266
  viewBox: "0 0 20 20",
3098
3267
  width: "1.2em",
3099
3268
  height: "1.2em"
3100
3269
  };
3101
- function fa(t, s) {
3102
- return i(), b("svg", ma, s[0] || (s[0] = [
3270
+ function Ca(t, s) {
3271
+ return c(), b("svg", xa, s[0] || (s[0] = [
3103
3272
  y("path", {
3104
3273
  fill: "currentColor",
3105
3274
  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"
3106
3275
  }, null, -1)
3107
3276
  ]));
3108
3277
  }
3109
- const ha = R({ name: "zondicons-view-show", render: fa }), ga = { class: "font-medium" }, va = ["datetime"], ba = /* @__PURE__ */ g({
3278
+ const Sa = P({ name: "zondicons-view-show", render: Ca }), ka = { class: "font-medium" }, Ma = ["datetime"], Ea = /* @__PURE__ */ g({
3110
3279
  __name: "ErrorLogsModal",
3111
3280
  setup(t) {
3112
- return (s, e) => (i(), f(X, {
3281
+ return (s, e) => (c(), h(G, {
3113
3282
  title: s.$td("errors.report", "Errors ({count})", { count: s.$errors.logs.length })
3114
3283
  }, {
3115
- default: m(() => [
3284
+ default: f(() => [
3116
3285
  y("ol", null, [
3117
- (i(!0), b(B, null, q(s.$errors.logs, (r, n) => (i(), b("li", {
3286
+ (c(!0), b(j, null, F(s.$errors.logs, (r, n) => (c(), b("li", {
3118
3287
  key: n,
3119
3288
  class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
3120
3289
  }, [
3121
3290
  y("div", null, [
3122
- y("h3", ga, C(r.report.title), 1),
3291
+ y("h3", ka, S(r.report.title), 1),
3123
3292
  y("time", {
3124
3293
  datetime: r.date.toISOString(),
3125
3294
  class: "text-xs text-gray-700"
3126
- }, C(r.date.toLocaleTimeString()), 9, va),
3127
- p(A, {
3295
+ }, S(r.date.toLocaleTimeString()), 9, Ma),
3296
+ m(T, {
3128
3297
  class: "text-sm text-gray-500",
3129
- text: r.report.description ?? o(st)(r.report)
3298
+ text: r.report.description ?? o(ht)(r.report)
3130
3299
  }, null, 8, ["text"])
3131
3300
  ]),
3132
- p(z, {
3301
+ m(z, {
3133
3302
  size: "icon",
3134
3303
  variant: "ghost",
3135
3304
  "aria-label": s.$td("errors.viewDetails", "View details"),
@@ -3137,11 +3306,11 @@ const ha = R({ name: "zondicons-view-show", render: fa }), ga = { class: "font-m
3137
3306
  class: "self-center",
3138
3307
  onClick: (a) => s.$errors.inspect(
3139
3308
  r.report,
3140
- s.$errors.logs.map(({ report: l }) => l)
3309
+ s.$errors.logs.map(({ report: i }) => i)
3141
3310
  )
3142
3311
  }, {
3143
- default: m(() => [
3144
- p(o(ha), {
3312
+ default: f(() => [
3313
+ m(o(Sa), {
3145
3314
  class: "size-4",
3146
3315
  "aria-hidden": "true"
3147
3316
  })
@@ -3154,36 +3323,36 @@ const ha = R({ name: "zondicons-view-show", render: fa }), ga = { class: "font-m
3154
3323
  _: 1
3155
3324
  }, 8, ["title"]));
3156
3325
  }
3157
- }), lo = /* @__PURE__ */ g({
3326
+ }), vl = /* @__PURE__ */ g({
3158
3327
  __name: "ErrorLogs",
3159
3328
  setup(t) {
3160
- return (s, e) => s.$errors.logs.length > 0 ? (i(), f(z, {
3329
+ return (s, e) => s.$errors.logs.length > 0 ? (c(), h(z, {
3161
3330
  key: 0,
3162
3331
  size: "icon",
3163
3332
  variant: "ghost",
3164
3333
  title: s.$td("errors.viewLogs", "View error logs"),
3165
3334
  "aria-label": s.$td("errors.viewLogs", "View error logs"),
3166
- onClick: e[0] || (e[0] = (r) => s.$ui.modal(ba))
3335
+ onClick: e[0] || (e[0] = (r) => s.$ui.modal(Ea))
3167
3336
  }, {
3168
- default: m(() => [
3169
- p(o(pa), { class: "size-6 text-red-500" })
3337
+ default: f(() => [
3338
+ m(o(_a), { class: "size-6 text-red-500" })
3170
3339
  ]),
3171
3340
  _: 1
3172
3341
  }, 8, ["title", "aria-label"])) : M("", !0);
3173
3342
  }
3174
- }), io = /* @__PURE__ */ g({
3343
+ }), bl = /* @__PURE__ */ g({
3175
3344
  __name: "ErrorMessage",
3176
3345
  props: {
3177
3346
  error: {}
3178
3347
  },
3179
3348
  setup(t) {
3180
- const s = u(() => st(t.error));
3181
- return (e, r) => (i(), f(A, {
3349
+ const s = u(() => ht(t.error));
3350
+ return (e, r) => (c(), h(T, {
3182
3351
  text: s.value,
3183
3352
  inline: ""
3184
3353
  }, null, 8, ["text"]));
3185
3354
  }
3186
- }), co = /* @__PURE__ */ g({
3355
+ }), yl = /* @__PURE__ */ g({
3187
3356
  __name: "Link",
3188
3357
  props: {
3189
3358
  class: {},
@@ -3198,35 +3367,35 @@ const ha = R({ name: "zondicons-view-show", render: fa }), ga = { class: "font-m
3198
3367
  as: {}
3199
3368
  },
3200
3369
  setup(t) {
3201
- return (s, e) => (i(), f(z, I({ variant: "link" }, s.$props), {
3202
- default: m(() => [
3203
- _(s.$slots, "default")
3370
+ return (s, e) => (c(), h(z, H({ variant: "link" }, s.$props), {
3371
+ default: f(() => [
3372
+ w(s.$slots, "default")
3204
3373
  ]),
3205
3374
  _: 3
3206
3375
  }, 16));
3207
3376
  }
3208
- }), uo = /* @__PURE__ */ g({
3377
+ }), wl = /* @__PURE__ */ g({
3209
3378
  __name: "SettingsModal",
3210
3379
  setup(t) {
3211
- const s = u(() => Nt(j.settings, "priority", "desc"));
3212
- return (e, r) => (i(), f(X, {
3380
+ const s = u(() => Nt(D.settings, "priority", "desc"));
3381
+ return (e, r) => (c(), h(G, {
3213
3382
  title: e.$td("settings.title", "Settings")
3214
3383
  }, {
3215
- default: m(() => [
3216
- (i(!0), b(B, null, q(s.value, (n, a) => (i(), f(N(n.component), { key: a }))), 128))
3384
+ default: f(() => [
3385
+ (c(!0), b(j, null, F(s.value, (n, a) => (c(), h(N(n.component), { key: a }))), 128))
3217
3386
  ]),
3218
3387
  _: 1
3219
3388
  }, 8, ["title"]));
3220
3389
  }
3221
3390
  });
3222
- class po {
3391
+ class $l {
3223
3392
  constructor() {
3224
- w(this, "status");
3225
- w(this, "_listeners");
3226
- w(this, "_progress");
3227
- w(this, "_cancelled");
3228
- w(this, "_started");
3229
- w(this, "_completed");
3393
+ $(this, "status");
3394
+ $(this, "_listeners");
3395
+ $(this, "_progress");
3396
+ $(this, "_cancelled");
3397
+ $(this, "_started");
3398
+ $(this, "_completed");
3230
3399
  this.status = this.getInitialStatus(), this._listeners = new Wt(), this._started = new W(), this._completed = new W();
3231
3400
  }
3232
3401
  async start() {
@@ -3234,9 +3403,9 @@ class po {
3234
3403
  try {
3235
3404
  await this.updateProgress(), await this.run(), await this.updateProgress(), this._completed.resolve();
3236
3405
  } catch (s) {
3237
- if (s instanceof ze)
3406
+ if (s instanceof Be)
3238
3407
  return;
3239
- throw Z(Kt(s), (e) => {
3408
+ throw X(Kt(s), (e) => {
3240
3409
  this._completed.reject(e);
3241
3410
  });
3242
3411
  }
@@ -3277,7 +3446,7 @@ class po {
3277
3446
  }
3278
3447
  assertNotCancelled() {
3279
3448
  if (this._cancelled)
3280
- throw this._cancelled.resolve(), new ze();
3449
+ throw this._cancelled.resolve(), new Be();
3281
3450
  }
3282
3451
  calculateCurrentProgress(s) {
3283
3452
  return s ?? (s = this.status), s.completed ? 1 : s.children ? Qt(
@@ -3294,139 +3463,142 @@ class po {
3294
3463
  return { ...s };
3295
3464
  }
3296
3465
  }
3297
- async function mo(t) {
3466
+ async function _l(t) {
3298
3467
  await t.start();
3299
3468
  }
3300
3469
  export {
3301
- ro as AdvancedOptions,
3302
- jr as AlertModal,
3303
- j as App,
3304
- to as AppLayout,
3305
- Gn as AppModals,
3306
- Yn as AppOverlays,
3307
- Vs as AppService,
3308
- Xn as AppToasts,
3470
+ ml as AdvancedOptions,
3471
+ Qr as AlertModal,
3472
+ D as App,
3473
+ dl as AppLayout,
3474
+ oa as AppModals,
3475
+ ca as AppOverlays,
3476
+ Ps as AppService,
3477
+ ia as AppToasts,
3309
3478
  z as Button,
3310
- Pa as Cache,
3311
- qs as CacheService,
3312
- no as Checkbox,
3313
- Nr as ConfirmModal,
3314
- ao as DropdownMenu,
3315
- oa as DropdownMenuOption,
3316
- la as DropdownMenuOptions,
3317
- oo as EditableContent,
3318
- lo as ErrorLogs,
3319
- ba as ErrorLogsModal,
3320
- io as ErrorMessage,
3321
- _n as ErrorReportModal,
3322
- dn as ErrorReportModalButtons,
3323
- pn as ErrorReportModalTitle,
3479
+ Na as Cache,
3480
+ Us as CacheService,
3481
+ fl as Checkbox,
3482
+ tn as ConfirmModal,
3483
+ hl as DropdownMenu,
3484
+ ga as DropdownMenuOption,
3485
+ va as DropdownMenuOptions,
3486
+ gl as EditableContent,
3487
+ vl as ErrorLogs,
3488
+ Ea as ErrorLogsModal,
3489
+ bl as ErrorMessage,
3490
+ Vn as ErrorReportModal,
3491
+ $n as ErrorReportModalButtons,
3492
+ _n as ErrorReportModalTitle,
3324
3493
  et as Errors,
3325
- Ia as EventListenerPriorities,
3326
- T as Events,
3327
- Is as EventsService,
3494
+ qa as EventListenerPriorities,
3495
+ I as Events,
3496
+ Ts as EventsService,
3328
3497
  vt as Form,
3329
- fr as FormController,
3330
- rt as HeadlessButton,
3331
- _t as HeadlessInput,
3332
- In as HeadlessInputDescription,
3333
- ke as HeadlessInputError,
3334
- wt as HeadlessInputInput,
3335
- Se as HeadlessInputLabel,
3336
- so as HeadlessInputTextArea,
3337
- Hr as HeadlessModal,
3338
- Lr as HeadlessModalContent,
3339
- Ir as HeadlessModalDescription,
3340
- Tr as HeadlessModalOverlay,
3341
- Vr as HeadlessModalTitle,
3342
- hr as HeadlessSelect,
3343
- Be as HeadlessSelectLabel,
3344
- dt as HeadlessSelectOption,
3345
- pt as HeadlessSelectOptions,
3346
- ut as HeadlessSelectTrigger,
3347
- ct as HeadlessSelectValue,
3348
- Nn as HeadlessToast,
3349
- Rn as Input,
3350
- po as Job,
3351
- ze as JobCancelledError,
3498
+ ur as FormController,
3499
+ tt as HeadlessButton,
3500
+ wt as HeadlessInput,
3501
+ qn as HeadlessInputDescription,
3502
+ Me as HeadlessInputError,
3503
+ $t as HeadlessInputInput,
3504
+ ke as HeadlessInputLabel,
3505
+ pl as HeadlessInputTextArea,
3506
+ jr as HeadlessModal,
3507
+ Br as HeadlessModalContent,
3508
+ qr as HeadlessModalDescription,
3509
+ Fr as HeadlessModalOverlay,
3510
+ Ur as HeadlessModalTitle,
3511
+ dr as HeadlessSelect,
3512
+ De as HeadlessSelectLabel,
3513
+ ct as HeadlessSelectOption,
3514
+ ut as HeadlessSelectOptions,
3515
+ it as HeadlessSelectTrigger,
3516
+ ot as HeadlessSelectValue,
3517
+ Mr as HeadlessSwitch,
3518
+ ta as HeadlessToast,
3519
+ On as Input,
3520
+ $l as Job,
3521
+ Be as JobCancelledError,
3352
3522
  Q as Lang,
3353
- pe as Layouts,
3354
- co as Link,
3355
- En as LoadingModal,
3356
- Ge as MOBILE_BREAKPOINT,
3357
- A as Markdown,
3358
- X as Modal,
3523
+ me as Layouts,
3524
+ yl as Link,
3525
+ Dn as LoadingModal,
3526
+ Xe as MOBILE_BREAKPOINT,
3527
+ T as Markdown,
3528
+ G as Modal,
3359
3529
  gt as ModalContext,
3360
- kn as ProgressBar,
3361
- jn as PromptModal,
3362
- yr as Select,
3363
- mt as SelectLabel,
3364
- De as SelectOption,
3365
- ft as SelectOptions,
3366
- ht as SelectTrigger,
3367
- ge as Service,
3368
- Ce as ServiceBootError,
3369
- uo as SettingsModal,
3370
- Un as StartupCrash,
3371
- Us as Storage,
3372
- Wn as Toast,
3373
- V as UI,
3374
- Ks as UIService,
3375
- Da as __objectType,
3376
- Na as booleanInput,
3377
- ve as bootServices,
3378
- eo as bootstrap,
3379
- Jn as bootstrapApplication,
3530
+ An as ProgressBar,
3531
+ Qn as PromptModal,
3532
+ hr as Select,
3533
+ dt as SelectLabel,
3534
+ je as SelectOption,
3535
+ pt as SelectOptions,
3536
+ mt as SelectTrigger,
3537
+ be as Service,
3538
+ Se as ServiceBootError,
3539
+ Sr as Setting,
3540
+ wl as SettingsModal,
3541
+ Gn as StartupCrash,
3542
+ Ns as Storage,
3543
+ Er as Switch,
3544
+ sa as Toast,
3545
+ R as UI,
3546
+ Js as UIService,
3547
+ Ja as __objectType,
3548
+ tl as booleanInput,
3549
+ ye as bootServices,
3550
+ ul as bootstrap,
3551
+ aa as bootstrapApplication,
3380
3552
  E as classes,
3381
- Ua as computedAsync,
3382
- Oa as computedDebounce,
3383
- Wa as dateInput,
3384
- Ra as defineDirective,
3385
- Ba as defineFormValidationRule,
3386
- Va as definePlugin,
3387
- he as defineServiceState,
3388
- Ls as defineServiceStore,
3389
- Ta as defineSettings,
3390
- mo as dispatch,
3391
- Xe as getCurrentLayout,
3392
- st as getErrorMessage,
3393
- or as getMarkdownRouter,
3394
- Hs as getPiniaStore,
3395
- dr as hasSelectOptionLabel,
3396
- zs as injectOrFail,
3397
- As as injectReactive,
3398
- H as injectReactiveOrFail,
3399
- Rs as installPlugins,
3400
- Ga as numberInput,
3401
- Xa as objectInput,
3402
- qa as onCleanMounted,
3403
- ot as onFormFocus,
3404
- Fa as persistent,
3405
- za as registerErrorHandler,
3406
- lr as renderMarkdown,
3553
+ Ya as computedAsync,
3554
+ Ga as computedDebounce,
3555
+ sl as dateInput,
3556
+ Oa as defineDirective,
3557
+ Qa as defineFormValidationRule,
3558
+ Ua as definePlugin,
3559
+ ve as defineServiceState,
3560
+ Is as defineServiceStore,
3561
+ Fa as defineSettings,
3562
+ _l as dispatch,
3563
+ Ye as getCurrentLayout,
3564
+ ht as getErrorMessage,
3565
+ nr as getMarkdownRouter,
3566
+ Ls as getPiniaStore,
3567
+ or as hasSelectOptionLabel,
3568
+ js as injectOrFail,
3569
+ Ds as injectReactive,
3570
+ V as injectReactiveOrFail,
3571
+ As as installPlugins,
3572
+ ol as numberInput,
3573
+ il as objectInput,
3574
+ Za as onCleanMounted,
3575
+ nt as onFormFocus,
3576
+ Xa as persistent,
3577
+ el as registerErrorHandler,
3578
+ ar as renderMarkdown,
3407
3579
  Ze as renderVNode,
3408
- Aa as replaceExisting,
3409
- Ka as requiredBooleanInput,
3410
- Qa as requiredDateInput,
3411
- Ja as requiredNumberInput,
3412
- Za as requiredObjectInput,
3413
- Pn as requiredStringInput,
3414
- Es as resetPiniaStore,
3415
- ir as safeHtml,
3416
- ja as setMarkdownRouter,
3417
- Ya as stringInput,
3418
- Ye as translate,
3419
- S as translateWithDefault,
3420
- zr as useAlertModal,
3421
- Br as useConfirmModal,
3422
- mn as useErrorReportModal,
3423
- at as useEvent,
3424
- lt as useForm,
3425
- it as useInputAttrs,
3426
- Mn as useLoadingModal,
3427
- An as usePromptModal,
3428
- mr as validate,
3429
- ue as validators,
3430
- nt as variantClasses
3580
+ Wa as replaceExisting,
3581
+ rl as requiredBooleanInput,
3582
+ nl as requiredDateInput,
3583
+ al as requiredNumberInput,
3584
+ ll as requiredObjectInput,
3585
+ Nn as requiredStringInput,
3586
+ Vs as resetPiniaStore,
3587
+ lr as safeHtml,
3588
+ Ka as setMarkdownRouter,
3589
+ cl as stringInput,
3590
+ Ge as translate,
3591
+ k as translateWithDefault,
3592
+ Kr as useAlertModal,
3593
+ Jr as useConfirmModal,
3594
+ xn as useErrorReportModal,
3595
+ rt as useEvent,
3596
+ at as useForm,
3597
+ lt as useInputAttrs,
3598
+ zn as useLoadingModal,
3599
+ Wn as usePromptModal,
3600
+ cr as validate,
3601
+ de as validators,
3602
+ st as variantClasses
3431
3603
  };
3432
3604
  //# sourceMappingURL=aerogel-core.js.map