@aerogel/core 0.1.1-next.47ee6e5e3485291a8763a804016f87a051476893 → 0.1.1-next.6005e06a52b9294023bae608af05bf826d281a4d

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