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

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