@aerogel/core 0.1.1-next.9bd06e629f34098543a54bdb87e8996767876d42 → 0.1.1-next.a8a712e051e6729532e787aab3e4573464412909

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