@aerogel/core 0.1.1-next.c3c3c32e9b674ba4ae2d33973d4659e37c863c35 → 0.1.1-next.ce10b6d6ba4cd98145cf14595fb4f292b979e2dc

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