@aerogel/core 0.1.1-next.38e999a09609d7c9cfa836fe396028ab230f6c89 → 0.1.1-next.47ee6e5e3485291a8763a804016f87a051476893
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.
- package/dist/aerogel-core.d.ts +14 -7
- package/dist/aerogel-core.js +459 -440
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AppLayout.vue +1 -1
- package/src/components/contracts/Modal.ts +1 -1
- package/src/components/ui/Details.vue +19 -6
- package/src/components/ui/Modal.vue +2 -2
- package/src/components/ui/SettingsModal.vue +1 -1
- package/src/index.css +1 -0
- package/src/services/App.state.ts +1 -0
- package/src/services/App.ts +4 -0
- package/src/services/index.ts +5 -0
package/dist/aerogel-core.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var At = Object.defineProperty;
|
|
2
2
|
var Dt = (t, s, e) => s in t ? At(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
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
|
|
5
|
-
import { JSError as Ce, stringToSlug as Xt, tap as se, MagicObject as lt, PromisedValue as J, Storage as
|
|
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
6
|
import B from "virtual:aerogel";
|
|
7
7
|
import { createPinia as ds, setActivePinia as ps, defineStore as fs } from "pinia";
|
|
8
8
|
import ms from "dompurify";
|
|
9
9
|
import { marked as hs, Renderer as We } from "marked";
|
|
10
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
|
|
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
12
|
import ws from "clsx";
|
|
13
13
|
import { cva as $s } from "class-variance-authority";
|
|
14
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
|
|
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
16
|
class Ve extends Ce {
|
|
17
17
|
constructor(s, e) {
|
|
18
18
|
super(`Service '${s}' failed booting`, { cause: e });
|
|
@@ -106,7 +106,7 @@ let Se = (Ee = class extends lt {
|
|
|
106
106
|
return this._booted;
|
|
107
107
|
}
|
|
108
108
|
hasPersistedState() {
|
|
109
|
-
return
|
|
109
|
+
return U.has(this.storageKey);
|
|
110
110
|
}
|
|
111
111
|
hasState(e) {
|
|
112
112
|
return this._store ? e in this._store.$state || this._computedStateKeys.has(e) : !1;
|
|
@@ -124,7 +124,7 @@ let Se = (Ee = class extends lt {
|
|
|
124
124
|
updatePersistedState(e) {
|
|
125
125
|
if (!this._store)
|
|
126
126
|
return;
|
|
127
|
-
const r =
|
|
127
|
+
const r = it(e), n = ae(this._store.$state, r);
|
|
128
128
|
Te(n) || this.onPersistentStateUpdated(n);
|
|
129
129
|
}
|
|
130
130
|
__get(e) {
|
|
@@ -145,8 +145,8 @@ let Se = (Ee = class extends lt {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
onPersistentStateUpdated(e) {
|
|
148
|
-
const r =
|
|
149
|
-
r &&
|
|
148
|
+
const r = U.get(this.storageKey);
|
|
149
|
+
r && U.set(this.storageKey, {
|
|
150
150
|
...r,
|
|
151
151
|
...this.serializePersistedState(Yt(e))
|
|
152
152
|
});
|
|
@@ -179,19 +179,19 @@ let Se = (Ee = class extends lt {
|
|
|
179
179
|
}
|
|
180
180
|
restorePersistedState() {
|
|
181
181
|
if (!(!this.usesStore() || Te(this.static("persist")))) {
|
|
182
|
-
if (
|
|
183
|
-
const e =
|
|
182
|
+
if (U.has(this.storageKey)) {
|
|
183
|
+
const e = U.require(this.storageKey);
|
|
184
184
|
this.setState(this.deserializePersistedState(e));
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
U.set(this.storageKey, ae(this.getState(), this.static("persist")));
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
requireStore() {
|
|
191
191
|
return this._store ? this._store : W(`Failed getting '${this._name}' store`);
|
|
192
192
|
}
|
|
193
193
|
}, C(Ee, "persist", []), Ee);
|
|
194
|
-
const
|
|
194
|
+
const _l = {
|
|
195
195
|
Low: -256,
|
|
196
196
|
Default: 0,
|
|
197
197
|
High: 256
|
|
@@ -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((
|
|
214
|
+
await Promise.all(((a = n.handlers[u]) == null ? void 0 : a.map((o) => o(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,
|
|
226
|
+
const u = typeof r == "function" ? {} : r, o = typeof r == "function" ? r : n;
|
|
227
227
|
return se(
|
|
228
228
|
() => a && this.off(e, a),
|
|
229
229
|
(p) => {
|
|
230
|
-
a = (...v) => (p(),
|
|
230
|
+
a = (...v) => (p(), o(...v)), this.registerListener(e, u, o);
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
}
|
|
@@ -237,20 +237,20 @@ class er extends Se {
|
|
|
237
237
|
if (!n)
|
|
238
238
|
return;
|
|
239
239
|
const a = [...n.priorities];
|
|
240
|
-
for (const
|
|
241
|
-
He(n.handlers[
|
|
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));
|
|
242
242
|
n.priorities.length === 0 && delete this.listeners[e];
|
|
243
243
|
}
|
|
244
244
|
registerListener(e, r, n) {
|
|
245
245
|
var p, v, w;
|
|
246
246
|
const a = r.priority ?? 0;
|
|
247
247
|
e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
|
|
248
|
-
const u = ((p = this.listeners[e]) == null ? void 0 : p.priorities) ?? W(`priorities missing for event '${e}'`),
|
|
249
|
-
u.includes(a) || (u.push(a), u.sort((h, k) => k - h),
|
|
248
|
+
const u = ((p = this.listeners[e]) == null ? void 0 : p.priorities) ?? W(`priorities missing for event '${e}'`), o = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? W(`handlers missing for event '${e}'`);
|
|
249
|
+
u.includes(a) || (u.push(a), u.sort((h, k) => k - h), o[a] = []), (w = o[a]) == null || w.push(n);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
const F = re(er);
|
|
253
|
-
function
|
|
253
|
+
function Cl(t) {
|
|
254
254
|
return t;
|
|
255
255
|
}
|
|
256
256
|
const tr = xe({
|
|
@@ -261,7 +261,8 @@ const tr = xe({
|
|
|
261
261
|
environment: Gt() ?? "development",
|
|
262
262
|
version: B.version,
|
|
263
263
|
sourceUrl: B.sourceUrl,
|
|
264
|
-
settings: []
|
|
264
|
+
settings: [],
|
|
265
|
+
settingsFullscreenOnMobile: !1
|
|
265
266
|
},
|
|
266
267
|
computed: {
|
|
267
268
|
development: (t) => t.environment === "development",
|
|
@@ -291,6 +292,9 @@ class sr extends tr {
|
|
|
291
292
|
addSetting(e) {
|
|
292
293
|
this.settings.push(V(e));
|
|
293
294
|
}
|
|
295
|
+
setSettingsFullscreenOnMobile(e) {
|
|
296
|
+
this.settingsFullscreenOnMobile = e;
|
|
297
|
+
}
|
|
294
298
|
async whenReady(e) {
|
|
295
299
|
return await this.ready.then(e);
|
|
296
300
|
}
|
|
@@ -308,12 +312,12 @@ class sr extends tr {
|
|
|
308
312
|
F.once("application-ready", () => this.ready.resolve()), F.once("application-mounted", () => this.mounted.resolve());
|
|
309
313
|
}
|
|
310
314
|
}
|
|
311
|
-
const
|
|
312
|
-
function
|
|
315
|
+
const R = re(sr);
|
|
316
|
+
function xl(t) {
|
|
313
317
|
return t;
|
|
314
318
|
}
|
|
315
319
|
async function rr(t, ...s) {
|
|
316
|
-
|
|
320
|
+
R.setState(
|
|
317
321
|
"plugins",
|
|
318
322
|
t.reduce(
|
|
319
323
|
(e, r) => (r.name && (e[r.name] = r), e),
|
|
@@ -324,14 +328,14 @@ async function rr(t, ...s) {
|
|
|
324
328
|
function nr(t) {
|
|
325
329
|
return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${j(r)}"`, "");
|
|
326
330
|
}
|
|
327
|
-
function
|
|
331
|
+
function Sl(t) {
|
|
328
332
|
return t;
|
|
329
333
|
}
|
|
330
334
|
function ar(t) {
|
|
331
335
|
const s = Y(t);
|
|
332
336
|
return s ? ve(s) : void 0;
|
|
333
337
|
}
|
|
334
|
-
function
|
|
338
|
+
function q(t, s) {
|
|
335
339
|
return ar(t) ?? W(s ?? `Could not resolve '${j(t)}' injection key`);
|
|
336
340
|
}
|
|
337
341
|
function lr(t, s) {
|
|
@@ -342,7 +346,7 @@ function pt(t) {
|
|
|
342
346
|
|
|
343
347
|
` : `<${t.type} ${nr(t)}>${Array.from(t.children).map(pt).join("")}</${t.type}>`;
|
|
344
348
|
}
|
|
345
|
-
const Me = /* @__PURE__ */ new WeakMap(),
|
|
349
|
+
const Me = /* @__PURE__ */ new WeakMap(), ir = {
|
|
346
350
|
mounted(t, { value: s, modifiers: e }) {
|
|
347
351
|
const r = typeof s == "function" ? s : null, n = () => {
|
|
348
352
|
const a = t.getBoundingClientRect();
|
|
@@ -357,16 +361,16 @@ const Me = /* @__PURE__ */ new WeakMap(), or = {
|
|
|
357
361
|
};
|
|
358
362
|
function ft(t, s) {
|
|
359
363
|
const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, u = $s(n, a);
|
|
360
|
-
return
|
|
364
|
+
return T(u(r), l(e));
|
|
361
365
|
}
|
|
362
|
-
function
|
|
366
|
+
function T(...t) {
|
|
363
367
|
return _s(ws(t));
|
|
364
368
|
}
|
|
365
|
-
function
|
|
369
|
+
function kl(t, s) {
|
|
366
370
|
const e = F.on(t, s);
|
|
367
371
|
$e(() => e());
|
|
368
372
|
}
|
|
369
|
-
const
|
|
373
|
+
const or = {
|
|
370
374
|
required: (t) => t ? void 0 : "required"
|
|
371
375
|
};
|
|
372
376
|
function ur(t, s) {
|
|
@@ -388,8 +392,8 @@ function ur(t, s) {
|
|
|
388
392
|
return typeof t == "object";
|
|
389
393
|
}
|
|
390
394
|
}
|
|
391
|
-
const ge = { ...
|
|
392
|
-
function
|
|
395
|
+
const ge = { ...or };
|
|
396
|
+
function Tl(t, s) {
|
|
393
397
|
ge[t] = s;
|
|
394
398
|
}
|
|
395
399
|
function cr(t, s) {
|
|
@@ -398,9 +402,9 @@ function cr(t, s) {
|
|
|
398
402
|
function dr(t, s) {
|
|
399
403
|
var r;
|
|
400
404
|
const e = (r = ge[s]) == null ? void 0 : r.call(ge, t);
|
|
401
|
-
return e ?
|
|
405
|
+
return e ? it(e) : [];
|
|
402
406
|
}
|
|
403
|
-
const
|
|
407
|
+
const Ml = Symbol(), Ze = /* @__PURE__ */ new WeakMap();
|
|
404
408
|
class pr extends lt {
|
|
405
409
|
constructor(e) {
|
|
406
410
|
super();
|
|
@@ -468,7 +472,7 @@ class pr extends lt {
|
|
|
468
472
|
}
|
|
469
473
|
async focus(e) {
|
|
470
474
|
var r;
|
|
471
|
-
await
|
|
475
|
+
await Ot(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
|
|
472
476
|
}
|
|
473
477
|
__get(e) {
|
|
474
478
|
return e in this._fields ? this.getFieldValue(e) : super.__get(e);
|
|
@@ -481,8 +485,8 @@ class pr extends lt {
|
|
|
481
485
|
this.setFieldValue(e, r);
|
|
482
486
|
}
|
|
483
487
|
getFieldErrors(e, r) {
|
|
484
|
-
var
|
|
485
|
-
const n = [], a = this._data[e], u = ((
|
|
488
|
+
var o;
|
|
489
|
+
const n = [], a = this._data[e], u = ((o = r.rules) == null ? void 0 : o.split("|")) ?? [];
|
|
486
490
|
n.push(...cr(a, r));
|
|
487
491
|
for (const p of u)
|
|
488
492
|
p !== "required" && a == null || n.push(...dr(a, p));
|
|
@@ -519,13 +523,13 @@ function Pe() {
|
|
|
519
523
|
const t = st(), s = c(() => t.class);
|
|
520
524
|
return [c(() => ss(t, "class")), s];
|
|
521
525
|
}
|
|
522
|
-
function
|
|
526
|
+
function El(t) {
|
|
523
527
|
let s = rs;
|
|
524
528
|
rt(() => s = t()), $e(() => s());
|
|
525
529
|
}
|
|
526
|
-
function
|
|
527
|
-
const e = ve(
|
|
528
|
-
return Le(e, () =>
|
|
530
|
+
function Hl(t, s) {
|
|
531
|
+
const e = ve(U.get(t) ?? s);
|
|
532
|
+
return Le(e, () => U.set(t, Ut(e))), e;
|
|
529
533
|
}
|
|
530
534
|
function fr(t) {
|
|
531
535
|
let s = new Set(t), e, r;
|
|
@@ -554,15 +558,15 @@ function fr(t) {
|
|
|
554
558
|
}
|
|
555
559
|
};
|
|
556
560
|
}
|
|
557
|
-
function
|
|
561
|
+
function Vl(t) {
|
|
558
562
|
const s = N(), e = c(t);
|
|
559
563
|
return Le(e, async () => s.value = await e.value, { immediate: !0 }), s;
|
|
560
564
|
}
|
|
561
|
-
function
|
|
565
|
+
function Ll(t, s) {
|
|
562
566
|
const e = s ? t : {}, r = s ?? t, n = N(e.initial ?? null), a = ns((u) => n.value = u, e.delay ?? 300);
|
|
563
567
|
return G(() => a(r())), n;
|
|
564
568
|
}
|
|
565
|
-
let
|
|
569
|
+
let oe = null;
|
|
566
570
|
function mr() {
|
|
567
571
|
return se(new We(), (t) => {
|
|
568
572
|
t.link = function(s) {
|
|
@@ -572,24 +576,24 @@ function mr() {
|
|
|
572
576
|
});
|
|
573
577
|
}
|
|
574
578
|
function hr(t) {
|
|
575
|
-
const s =
|
|
579
|
+
const s = ot(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
576
580
|
for (const [e, r, n] of s)
|
|
577
581
|
t = t.replace(e, `<button type="button" data-markdown-action="${r}">${n}</button>`);
|
|
578
582
|
return t;
|
|
579
583
|
}
|
|
580
584
|
function gr(t) {
|
|
581
|
-
const s =
|
|
585
|
+
const s = ot(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
582
586
|
for (const [e, r, n] of s) {
|
|
583
|
-
const a = (
|
|
587
|
+
const a = (oe == null ? void 0 : oe.resolve(r)) ?? r;
|
|
584
588
|
t = t.replace(e, `<a data-markdown-route="${r}" href="${a}">${n}</a>`);
|
|
585
589
|
}
|
|
586
590
|
return t;
|
|
587
591
|
}
|
|
588
592
|
function vr() {
|
|
589
|
-
return
|
|
593
|
+
return oe;
|
|
590
594
|
}
|
|
591
|
-
function
|
|
592
|
-
|
|
595
|
+
function Il(t) {
|
|
596
|
+
oe = t;
|
|
593
597
|
}
|
|
594
598
|
function br(t) {
|
|
595
599
|
let s = hs(t, { renderer: mr(), async: !1 });
|
|
@@ -603,7 +607,7 @@ const yr = 6e4, Xe = -(/* @__PURE__ */ new Date()).getTimezoneOffset() * -yr, wr
|
|
|
603
607
|
t.innerHTML = gt(s);
|
|
604
608
|
}
|
|
605
609
|
}, $r = {
|
|
606
|
-
measure:
|
|
610
|
+
measure: ir,
|
|
607
611
|
"safe-html": wr
|
|
608
612
|
}, _r = {
|
|
609
613
|
install(t, s) {
|
|
@@ -636,21 +640,21 @@ class Cr extends Se {
|
|
|
636
640
|
});
|
|
637
641
|
}
|
|
638
642
|
}
|
|
639
|
-
const
|
|
643
|
+
const zl = re(Cr);
|
|
640
644
|
class xr extends Se {
|
|
641
645
|
async purge() {
|
|
642
646
|
await F.emit("purge-storage");
|
|
643
647
|
}
|
|
644
648
|
}
|
|
645
649
|
const vt = re(xr);
|
|
646
|
-
function
|
|
650
|
+
function Rl(t, s) {
|
|
647
651
|
return {
|
|
648
652
|
...t,
|
|
649
653
|
...ae(s, Object.keys(t))
|
|
650
654
|
};
|
|
651
655
|
}
|
|
652
656
|
const Sr = {
|
|
653
|
-
$app:
|
|
657
|
+
$app: R,
|
|
654
658
|
$events: F,
|
|
655
659
|
$storage: vt
|
|
656
660
|
};
|
|
@@ -671,7 +675,7 @@ const kr = {
|
|
|
671
675
|
...Sr,
|
|
672
676
|
...s.services
|
|
673
677
|
};
|
|
674
|
-
t.use(Ys()), (r = s.settings) == null || r.forEach((n) =>
|
|
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);
|
|
675
679
|
}
|
|
676
680
|
}, Ye = /* @__PURE__ */ new WeakSet();
|
|
677
681
|
function Ae() {
|
|
@@ -679,7 +683,7 @@ function Ae() {
|
|
|
679
683
|
return Ye.add(t), {
|
|
680
684
|
...r,
|
|
681
685
|
async close(n) {
|
|
682
|
-
s(n), await
|
|
686
|
+
s(n), await ie(1e3), e();
|
|
683
687
|
}
|
|
684
688
|
};
|
|
685
689
|
}
|
|
@@ -734,7 +738,7 @@ class Mr extends Tr {
|
|
|
734
738
|
title: e,
|
|
735
739
|
message: r,
|
|
736
740
|
required: !!(n != null && n.required)
|
|
737
|
-
}, { response:
|
|
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(
|
|
738
742
|
(w, [h, { default: k }]) => ({
|
|
739
743
|
[h]: k ?? !1,
|
|
740
744
|
...w
|
|
@@ -754,8 +758,8 @@ class Mr extends Tr {
|
|
|
754
758
|
title: e,
|
|
755
759
|
message: r,
|
|
756
760
|
...n ?? {}
|
|
757
|
-
}, { response:
|
|
758
|
-
return (a && typeof
|
|
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;
|
|
759
763
|
}
|
|
760
764
|
async loading(e, r) {
|
|
761
765
|
const n = (h) => typeof h == "function" ? Promise.resolve(h()) : h, a = () => {
|
|
@@ -774,14 +778,14 @@ class Mr extends Tr {
|
|
|
774
778
|
};
|
|
775
779
|
};
|
|
776
780
|
let u = !1;
|
|
777
|
-
const { operationPromise:
|
|
778
|
-
if (v && await Promise.race([
|
|
779
|
-
return
|
|
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;
|
|
780
784
|
const w = vs(this.requireComponent("loading-modal"), p);
|
|
781
785
|
Ke(w);
|
|
782
786
|
try {
|
|
783
|
-
const h = await
|
|
784
|
-
return await
|
|
787
|
+
const h = await o;
|
|
788
|
+
return await ie({ ms: 500 }), h;
|
|
785
789
|
} finally {
|
|
786
790
|
await Qe(w.id, { removeAfter: 1e3 });
|
|
787
791
|
}
|
|
@@ -808,7 +812,7 @@ class Mr extends Tr {
|
|
|
808
812
|
if (!globalThis.document || !globalThis.getComputedStyle)
|
|
809
813
|
return;
|
|
810
814
|
const e = globalThis.document.getElementById("splash");
|
|
811
|
-
e && (globalThis.getComputedStyle(e).opacity !== "0" && (e.style.opacity = "0", await
|
|
815
|
+
e && (globalThis.getComputedStyle(e).opacity !== "0" && (e.style.opacity = "0", await ie({ ms: 600 })), e.remove());
|
|
812
816
|
});
|
|
813
817
|
}
|
|
814
818
|
watchViewportBreakpoints() {
|
|
@@ -817,7 +821,7 @@ class Mr extends Tr {
|
|
|
817
821
|
globalThis.matchMedia(`(min-width: ${bt}px)`).addEventListener("change", () => this.setState({ layout: yt() }));
|
|
818
822
|
}
|
|
819
823
|
}
|
|
820
|
-
const
|
|
824
|
+
const A = re(Mr);
|
|
821
825
|
class Er {
|
|
822
826
|
constructor(s, e) {
|
|
823
827
|
this.locale = s, this.fallbackLocale = e;
|
|
@@ -914,16 +918,16 @@ class Ir extends Lr {
|
|
|
914
918
|
}
|
|
915
919
|
async inspect(e, r) {
|
|
916
920
|
if (Array.isArray(e) && e.length === 0) {
|
|
917
|
-
|
|
921
|
+
A.alert(S("errors.inspectEmpty", "Nothing to inspect!"));
|
|
918
922
|
return;
|
|
919
923
|
}
|
|
920
924
|
const n = Array.isArray(e) ? e[0] : this.isErrorReport(e) ? e : await this.createErrorReport(e), a = Array.isArray(e) ? e : r ?? [n];
|
|
921
|
-
|
|
925
|
+
A.modal(A.requireComponent("error-report-modal"), { report: n, reports: a });
|
|
922
926
|
}
|
|
923
927
|
async report(e, r) {
|
|
924
928
|
if (await F.emit("error", { error: e, message: r }), ze("unit") || (Z() && this.logError(e), !this.enabled))
|
|
925
929
|
throw e;
|
|
926
|
-
if (!
|
|
930
|
+
if (!R.isMounted()) {
|
|
927
931
|
const u = await this.createStartupErrorReport(e);
|
|
928
932
|
u && this.setState({ startupErrors: this.startupErrors.concat(u) });
|
|
929
933
|
return;
|
|
@@ -933,7 +937,7 @@ class Ir extends Lr {
|
|
|
933
937
|
seen: !1,
|
|
934
938
|
date: /* @__PURE__ */ new Date()
|
|
935
939
|
};
|
|
936
|
-
|
|
940
|
+
A.toast(
|
|
937
941
|
r ?? S("errors.notice", "Something went wrong, but it's not your fault. Try again!"),
|
|
938
942
|
{
|
|
939
943
|
variant: "danger",
|
|
@@ -941,7 +945,7 @@ class Ir extends Lr {
|
|
|
941
945
|
{
|
|
942
946
|
label: S("errors.viewDetails", "View details"),
|
|
943
947
|
dismiss: !0,
|
|
944
|
-
click: () =>
|
|
948
|
+
click: () => A.modal(A.requireComponent("error-report-modal"), { report: n, reports: [n] })
|
|
945
949
|
}
|
|
946
950
|
]
|
|
947
951
|
}
|
|
@@ -1021,7 +1025,7 @@ const $t = re(Ir), _t = /* @__PURE__ */ g({
|
|
|
1021
1025
|
},
|
|
1022
1026
|
setup(t) {
|
|
1023
1027
|
const s = c(() => t.as ? { as: t.as } : t.route ? {
|
|
1024
|
-
as:
|
|
1028
|
+
as: A.resolveComponent("router-link") ?? "a",
|
|
1025
1029
|
to: ut({
|
|
1026
1030
|
name: t.route,
|
|
1027
1031
|
params: t.routeParams,
|
|
@@ -1035,7 +1039,7 @@ const $t = re(Ir), _t = /* @__PURE__ */ g({
|
|
|
1035
1039
|
as: "button",
|
|
1036
1040
|
type: t.submit ? "submit" : "button"
|
|
1037
1041
|
});
|
|
1038
|
-
return (e, r) => (
|
|
1042
|
+
return (e, r) => (i(), m(l(Cs), H({
|
|
1039
1043
|
class: t.class,
|
|
1040
1044
|
"as-child": e.asChild,
|
|
1041
1045
|
disabled: e.disabled
|
|
@@ -1158,7 +1162,7 @@ const $t = re(Ir), _t = /* @__PURE__ */ g({
|
|
|
1158
1162
|
}
|
|
1159
1163
|
}
|
|
1160
1164
|
));
|
|
1161
|
-
return (r, n) => (
|
|
1165
|
+
return (r, n) => (i(), m(_t, H({
|
|
1162
1166
|
class: e.value,
|
|
1163
1167
|
disabled: r.disabled
|
|
1164
1168
|
}, s), {
|
|
@@ -1175,11 +1179,11 @@ function zr(t) {
|
|
|
1175
1179
|
const Ct = /* @__PURE__ */ g({
|
|
1176
1180
|
__name: "HeadlessSelectValue",
|
|
1177
1181
|
setup(t) {
|
|
1178
|
-
const s =
|
|
1182
|
+
const s = q(
|
|
1179
1183
|
"select",
|
|
1180
1184
|
"<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
|
|
1181
1185
|
);
|
|
1182
|
-
return (e, r) => e.$slots.default ? (
|
|
1186
|
+
return (e, r) => e.$slots.default ? (i(), m(l(Je), {
|
|
1183
1187
|
key: 0,
|
|
1184
1188
|
placeholder: l(s).placeholder
|
|
1185
1189
|
}, {
|
|
@@ -1187,7 +1191,7 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1187
1191
|
$(e.$slots, "default")
|
|
1188
1192
|
]),
|
|
1189
1193
|
_: 3
|
|
1190
|
-
}, 8, ["placeholder"])) : (
|
|
1194
|
+
}, 8, ["placeholder"])) : (i(), m(l(Je), {
|
|
1191
1195
|
key: 1,
|
|
1192
1196
|
placeholder: l(s).placeholder
|
|
1193
1197
|
}, null, 8, ["placeholder"]));
|
|
@@ -1195,11 +1199,11 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1195
1199
|
}), xt = /* @__PURE__ */ g({
|
|
1196
1200
|
__name: "HeadlessSelectTrigger",
|
|
1197
1201
|
setup(t) {
|
|
1198
|
-
const s =
|
|
1202
|
+
const s = q(
|
|
1199
1203
|
"select",
|
|
1200
1204
|
"<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
|
|
1201
1205
|
);
|
|
1202
|
-
return (e, r) => (
|
|
1206
|
+
return (e, r) => (i(), m(l(xs), {
|
|
1203
1207
|
id: l(s).id
|
|
1204
1208
|
}, {
|
|
1205
1209
|
default: f(() => [
|
|
@@ -1223,7 +1227,7 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1223
1227
|
as: {}
|
|
1224
1228
|
},
|
|
1225
1229
|
setup(t) {
|
|
1226
|
-
const s =
|
|
1230
|
+
const s = q(
|
|
1227
1231
|
"select",
|
|
1228
1232
|
"<HeadlessSelectOption> must be a child of a <HeadlessSelect>"
|
|
1229
1233
|
), e = c(() => {
|
|
@@ -1231,7 +1235,7 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1231
1235
|
const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
|
|
1232
1236
|
return r ? r.label : j(t.value);
|
|
1233
1237
|
});
|
|
1234
|
-
return (r, n) => (
|
|
1238
|
+
return (r, n) => (i(), m(l(ks), ce(de(r.$props)), {
|
|
1235
1239
|
default: f(() => [
|
|
1236
1240
|
d(l(Ts), null, {
|
|
1237
1241
|
default: f(() => [
|
|
@@ -1252,11 +1256,11 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1252
1256
|
innerClass: {}
|
|
1253
1257
|
},
|
|
1254
1258
|
setup(t) {
|
|
1255
|
-
const s =
|
|
1259
|
+
const s = q(
|
|
1256
1260
|
"select",
|
|
1257
1261
|
"<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
|
|
1258
|
-
), e = c(() =>
|
|
1259
|
-
return (r, n) => (
|
|
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, {
|
|
1260
1264
|
default: f(() => [
|
|
1261
1265
|
d(l(Es), {
|
|
1262
1266
|
position: "popper",
|
|
@@ -1271,7 +1275,7 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1271
1275
|
}, {
|
|
1272
1276
|
default: f(() => [
|
|
1273
1277
|
$(r.$slots, "default", {}, () => [
|
|
1274
|
-
(
|
|
1278
|
+
(i(!0), b(D, null, O(l(s).options ?? [], (a) => (i(), m(St, {
|
|
1275
1279
|
key: a.key,
|
|
1276
1280
|
value: a.value
|
|
1277
1281
|
}, null, 8, ["value"]))), 128))
|
|
@@ -1306,7 +1310,7 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1306
1310
|
},
|
|
1307
1311
|
emits: ["update:modelValue"],
|
|
1308
1312
|
setup(t, { expose: s, emit: e }) {
|
|
1309
|
-
const r = e, n = Y("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), u = c(() => a.value),
|
|
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) => ({
|
|
1310
1314
|
key: ue(),
|
|
1311
1315
|
label: t.renderOption ? t.renderOption(h) : zr(h) ? as(h.label) : j(h),
|
|
1312
1316
|
value: h
|
|
@@ -1326,7 +1330,7 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1326
1330
|
var h;
|
|
1327
1331
|
return (h = p.value) == null ? void 0 : h.find((k) => k.value === t.modelValue);
|
|
1328
1332
|
}),
|
|
1329
|
-
errors: _e(
|
|
1333
|
+
errors: _e(o),
|
|
1330
1334
|
required: c(() => {
|
|
1331
1335
|
if (!(!t.name || !n))
|
|
1332
1336
|
return n.getFieldRules(t.name).includes("required");
|
|
@@ -1342,17 +1346,17 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1342
1346
|
function w(h) {
|
|
1343
1347
|
v.update(h);
|
|
1344
1348
|
}
|
|
1345
|
-
return pe("select", v), s(v), (h, k) => (
|
|
1349
|
+
return pe("select", v), s(v), (h, k) => (i(), m(l(Vs), {
|
|
1346
1350
|
"model-value": u.value,
|
|
1347
1351
|
by: h.compareOptions,
|
|
1348
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
1352
|
+
"onUpdate:modelValue": k[0] || (k[0] = (P) => w(P))
|
|
1349
1353
|
}, {
|
|
1350
|
-
default: f(({ open:
|
|
1351
|
-
(
|
|
1354
|
+
default: f(({ open: P }) => [
|
|
1355
|
+
(i(), m(ee(h.as), ce(de(h.$attrs)), {
|
|
1352
1356
|
default: f(() => [
|
|
1353
1357
|
$(h.$slots, "default", {
|
|
1354
1358
|
modelValue: h.modelValue,
|
|
1355
|
-
open:
|
|
1359
|
+
open: P
|
|
1356
1360
|
}, () => [
|
|
1357
1361
|
d(xt),
|
|
1358
1362
|
d(kt)
|
|
@@ -1371,11 +1375,11 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1371
1375
|
as: {}
|
|
1372
1376
|
},
|
|
1373
1377
|
setup(t) {
|
|
1374
|
-
const s =
|
|
1378
|
+
const s = q(
|
|
1375
1379
|
"select",
|
|
1376
1380
|
"<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
|
|
1377
1381
|
), e = Ie(), r = c(() => !!(s.label || e.default));
|
|
1378
|
-
return (n, a) => r.value ? (
|
|
1382
|
+
return (n, a) => r.value ? (i(), m(l(Ls), H({
|
|
1379
1383
|
key: 0,
|
|
1380
1384
|
for: l(s).id
|
|
1381
1385
|
}, n.$props), {
|
|
@@ -1393,8 +1397,8 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1393
1397
|
class: {}
|
|
1394
1398
|
},
|
|
1395
1399
|
setup(t) {
|
|
1396
|
-
const s =
|
|
1397
|
-
return (r, n) => r.$slots.default ? (
|
|
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, {
|
|
1398
1402
|
key: 0,
|
|
1399
1403
|
class: _(e.value)
|
|
1400
1404
|
}, {
|
|
@@ -1402,7 +1406,7 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1402
1406
|
$(r.$slots, "default")
|
|
1403
1407
|
]),
|
|
1404
1408
|
_: 3
|
|
1405
|
-
}, 8, ["class"])) : (
|
|
1409
|
+
}, 8, ["class"])) : (i(), m(Ge, {
|
|
1406
1410
|
key: 1,
|
|
1407
1411
|
class: _(e.value)
|
|
1408
1412
|
}, null, 8, ["class"]));
|
|
@@ -1415,12 +1419,12 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1415
1419
|
innerClass: {}
|
|
1416
1420
|
},
|
|
1417
1421
|
setup(t) {
|
|
1418
|
-
const s = c(() =>
|
|
1422
|
+
const s = c(() => T("group p-1 outline-none", t.class)), e = c(() => T(
|
|
1419
1423
|
// eslint-disable-next-line vue/max-len
|
|
1420
1424
|
"relative flex max-w-[calc(100vw-2rem)] cursor-pointer items-center truncate rounded-md gap-2 px-2 py-1 text-sm select-none *:truncate group-data-[highlighted]:bg-gray-100 group-data-[state=checked]:font-semibold group-data-[state=unchecked]:opacity-50",
|
|
1421
1425
|
t.innerClass
|
|
1422
1426
|
));
|
|
1423
|
-
return (r, n) => (
|
|
1427
|
+
return (r, n) => (i(), m(St, {
|
|
1424
1428
|
class: _(s.value),
|
|
1425
1429
|
value: r.value
|
|
1426
1430
|
}, {
|
|
@@ -1440,12 +1444,12 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1440
1444
|
class: {}
|
|
1441
1445
|
},
|
|
1442
1446
|
setup(t) {
|
|
1443
|
-
const s =
|
|
1447
|
+
const s = q("select", "<SelectOptions> must be a child of a <Select>"), e = c(() => T(
|
|
1444
1448
|
"z-50 overflow-auto rounded-lg bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden",
|
|
1445
1449
|
s.optionsClass,
|
|
1446
1450
|
t.class
|
|
1447
1451
|
));
|
|
1448
|
-
return (r, n) => (
|
|
1452
|
+
return (r, n) => (i(), m(kt, {
|
|
1449
1453
|
class: _(e.value)
|
|
1450
1454
|
}, {
|
|
1451
1455
|
default: f(() => {
|
|
@@ -1454,12 +1458,12 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1454
1458
|
(a = l(s).options) != null && a.length ? $(r.$slots, "default", { key: 0 }, () => {
|
|
1455
1459
|
var u;
|
|
1456
1460
|
return [
|
|
1457
|
-
(
|
|
1458
|
-
key:
|
|
1459
|
-
value:
|
|
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
|
|
1460
1464
|
}, {
|
|
1461
1465
|
default: f(() => [
|
|
1462
|
-
L(x(
|
|
1466
|
+
L(x(o.label), 1)
|
|
1463
1467
|
]),
|
|
1464
1468
|
_: 2
|
|
1465
1469
|
}, 1032, ["value"]))), 128))
|
|
@@ -1486,7 +1490,7 @@ const Ct = /* @__PURE__ */ g({
|
|
|
1486
1490
|
height: "1.2em"
|
|
1487
1491
|
};
|
|
1488
1492
|
function Pr(t, s) {
|
|
1489
|
-
return
|
|
1493
|
+
return i(), b("svg", qr, s[0] || (s[0] = [
|
|
1490
1494
|
y("path", {
|
|
1491
1495
|
fill: "currentColor",
|
|
1492
1496
|
d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
|
|
@@ -1499,13 +1503,13 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1499
1503
|
class: {}
|
|
1500
1504
|
},
|
|
1501
1505
|
setup(t) {
|
|
1502
|
-
const s =
|
|
1506
|
+
const s = q("select", "<SelectTrigger> must be a child of a <Select>"), e = c(() => T(
|
|
1503
1507
|
// eslint-disable-next-line vue/max-len
|
|
1504
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",
|
|
1505
1509
|
{ "mt-1": s.label },
|
|
1506
1510
|
t.class
|
|
1507
1511
|
));
|
|
1508
|
-
return (r, n) => (
|
|
1512
|
+
return (r, n) => (i(), m(xt, {
|
|
1509
1513
|
class: _(e.value)
|
|
1510
1514
|
}, {
|
|
1511
1515
|
default: f(() => [
|
|
@@ -1535,7 +1539,7 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1535
1539
|
emits: ["update:modelValue"],
|
|
1536
1540
|
setup(t) {
|
|
1537
1541
|
const { forwardRef: s } = Re();
|
|
1538
|
-
return (e, r) => (
|
|
1542
|
+
return (e, r) => (i(), m(Rr, H({ ref: l(s) }, e.$props, {
|
|
1539
1543
|
"onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
|
|
1540
1544
|
}), {
|
|
1541
1545
|
default: f(() => [
|
|
@@ -1557,7 +1561,7 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1557
1561
|
locale: B.locales[s] ?? s
|
|
1558
1562
|
});
|
|
1559
1563
|
}
|
|
1560
|
-
return (n, a) => (
|
|
1564
|
+
return (n, a) => (i(), m(Dr, {
|
|
1561
1565
|
modelValue: n.$lang.locale,
|
|
1562
1566
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => n.$lang.locale = u),
|
|
1563
1567
|
class: "flex flex-col items-start md:flex-row",
|
|
@@ -1594,10 +1598,10 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1594
1598
|
priority: 100,
|
|
1595
1599
|
component: jr
|
|
1596
1600
|
}
|
|
1597
|
-
],
|
|
1601
|
+
], Or = { $lang: X }, Ur = {
|
|
1598
1602
|
async install(t) {
|
|
1599
1603
|
var s;
|
|
1600
|
-
(s = t.config.globalProperties).$t ?? (s.$t = wt), t.config.globalProperties.$td = S, Fr.forEach((e) =>
|
|
1604
|
+
(s = t.config.globalProperties).$t ?? (s.$t = wt), t.config.globalProperties.$td = S, Fr.forEach((e) => R.addSetting(e)), await ke(t, Or);
|
|
1601
1605
|
}
|
|
1602
1606
|
}, Nr = /* @__PURE__ */ g({
|
|
1603
1607
|
__name: "Markdown",
|
|
@@ -1614,28 +1618,28 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1614
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(() => {
|
|
1615
1619
|
if (!r.value)
|
|
1616
1620
|
return null;
|
|
1617
|
-
let
|
|
1618
|
-
return t.inline && (
|
|
1621
|
+
let o = br(r.value);
|
|
1622
|
+
return t.inline && (o = o.replace("<p>", "<span>").replace("</p>", "</span>")), o;
|
|
1619
1623
|
}), a = () => Wt(t.as ?? (t.inline ? "span" : "div"), {
|
|
1620
1624
|
innerHTML: n.value,
|
|
1621
1625
|
onClick: u,
|
|
1622
1626
|
...s,
|
|
1623
1627
|
class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
|
|
1624
1628
|
});
|
|
1625
|
-
async function u(
|
|
1629
|
+
async function u(o) {
|
|
1626
1630
|
var v, w;
|
|
1627
|
-
const { target: p } =
|
|
1631
|
+
const { target: p } = o;
|
|
1628
1632
|
if (Ne(p, HTMLElement) && p.dataset.markdownAction) {
|
|
1629
1633
|
(w = (v = t.actions) == null ? void 0 : v[p.dataset.markdownAction]) == null || w.call(v);
|
|
1630
1634
|
return;
|
|
1631
1635
|
}
|
|
1632
1636
|
if (Ne(p, HTMLAnchorElement) && p.dataset.markdownRoute) {
|
|
1633
1637
|
const h = vr();
|
|
1634
|
-
h && (
|
|
1638
|
+
h && (o.preventDefault(), h.visit(p.dataset.markdownRoute));
|
|
1635
1639
|
return;
|
|
1636
1640
|
}
|
|
1637
1641
|
}
|
|
1638
|
-
return (
|
|
1642
|
+
return (o, p) => (i(), m(a));
|
|
1639
1643
|
}
|
|
1640
1644
|
}), Wr = (t, s) => {
|
|
1641
1645
|
const e = t.__vccOpts || t;
|
|
@@ -1652,8 +1656,8 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1652
1656
|
layout: { default: "horizontal" }
|
|
1653
1657
|
},
|
|
1654
1658
|
setup(t) {
|
|
1655
|
-
const s = c(() =>
|
|
1656
|
-
return (e, r) => (
|
|
1659
|
+
const s = c(() => T(t.class, "flex flex-col justify-center gap-1"));
|
|
1660
|
+
return (e, r) => (i(), b("div", {
|
|
1657
1661
|
class: _(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
|
|
1658
1662
|
}, [
|
|
1659
1663
|
y("div", Kr, [
|
|
@@ -1661,7 +1665,7 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1661
1665
|
id: e.titleId,
|
|
1662
1666
|
class: "text-base font-semibold"
|
|
1663
1667
|
}, x(e.title), 9, Qr),
|
|
1664
|
-
e.description ? (
|
|
1668
|
+
e.description ? (i(), m(z, {
|
|
1665
1669
|
key: 0,
|
|
1666
1670
|
text: e.description,
|
|
1667
1671
|
class: "mt-1 text-sm text-gray-500"
|
|
@@ -1700,35 +1704,35 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1700
1704
|
if (!(!t.name || !n))
|
|
1701
1705
|
return n.getFieldRules(t.name).includes("required");
|
|
1702
1706
|
}),
|
|
1703
|
-
update(
|
|
1707
|
+
update(o) {
|
|
1704
1708
|
if (n && t.name) {
|
|
1705
|
-
n.setFieldValue(t.name,
|
|
1709
|
+
n.setFieldValue(t.name, o);
|
|
1706
1710
|
return;
|
|
1707
1711
|
}
|
|
1708
|
-
r("update:modelValue",
|
|
1712
|
+
r("update:modelValue", o);
|
|
1709
1713
|
}
|
|
1710
1714
|
};
|
|
1711
1715
|
return s(u), G(() => {
|
|
1712
1716
|
!t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
|
|
1713
|
-
}), (
|
|
1717
|
+
}), (o, p) => (i(), b("div", {
|
|
1714
1718
|
class: _(t.class)
|
|
1715
1719
|
}, [
|
|
1716
|
-
|
|
1720
|
+
o.label ? (i(), b("label", {
|
|
1717
1721
|
key: 0,
|
|
1718
1722
|
for: u.id,
|
|
1719
|
-
class: _(
|
|
1720
|
-
}, x(
|
|
1723
|
+
class: _(o.labelClass)
|
|
1724
|
+
}, x(o.label), 11, Zr)) : E("", !0),
|
|
1721
1725
|
d(l(Is), H({
|
|
1722
1726
|
id: u.id,
|
|
1723
|
-
name:
|
|
1727
|
+
name: o.name,
|
|
1724
1728
|
"model-value": u.value.value
|
|
1725
|
-
},
|
|
1726
|
-
class:
|
|
1727
|
-
"onUpdate:modelValue": p[0] || (p[0] = (v) =>
|
|
1729
|
+
}, o.$attrs, {
|
|
1730
|
+
class: o.inputClass,
|
|
1731
|
+
"onUpdate:modelValue": p[0] || (p[0] = (v) => o.$emit("update:modelValue", v))
|
|
1728
1732
|
}), {
|
|
1729
1733
|
default: f(() => [
|
|
1730
1734
|
d(l(zs), {
|
|
1731
|
-
class: _(
|
|
1735
|
+
class: _(o.thumbClass)
|
|
1732
1736
|
}, null, 8, ["class"])
|
|
1733
1737
|
]),
|
|
1734
1738
|
_: 1
|
|
@@ -1738,7 +1742,7 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1738
1742
|
}), Yr = /* @__PURE__ */ g({
|
|
1739
1743
|
__name: "Switch",
|
|
1740
1744
|
setup(t) {
|
|
1741
|
-
return (s, e) => (
|
|
1745
|
+
return (s, e) => (i(), m(Xr, {
|
|
1742
1746
|
class: "flex flex-row items-center gap-1",
|
|
1743
1747
|
"input-class": "disabled:opacity-50 disabled:cursor-not-allowed data-[state=checked]:bg-primary-600 data-[state=unchecked]:bg-gray-200 relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focusdisabled:opacity-50 disabled:cursor-not-allowed :ring-2 focus:ring-primary-600 focus:ring-offset-2 focus:outline-hidden",
|
|
1744
1748
|
"thumb-class": "data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 pointer-events-none inline-block size-5 transform rounded-full bg-white shadow-sm ring-0 transition duration-200 ease-in-out"
|
|
@@ -1747,7 +1751,7 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1747
1751
|
}), Gr = /* @__PURE__ */ g({
|
|
1748
1752
|
__name: "Debug",
|
|
1749
1753
|
setup(t) {
|
|
1750
|
-
return (s, e) => (
|
|
1754
|
+
return (s, e) => (i(), m(Jr, {
|
|
1751
1755
|
"title-id": "debug-setting",
|
|
1752
1756
|
title: s.$td("settings.debug", "Debugging"),
|
|
1753
1757
|
description: s.$td("settings.debugDescription", "Enable debugging with [Eruda](https://eruda.liriliri.io/).")
|
|
@@ -1768,7 +1772,7 @@ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__
|
|
|
1768
1772
|
component: Gr
|
|
1769
1773
|
}
|
|
1770
1774
|
], Ht = [];
|
|
1771
|
-
function
|
|
1775
|
+
function ql(t) {
|
|
1772
1776
|
Ht.push(t);
|
|
1773
1777
|
}
|
|
1774
1778
|
function Vt(t) {
|
|
@@ -1784,17 +1788,17 @@ class tt extends Ce {
|
|
|
1784
1788
|
const tn = { $errors: $t }, sn = (t) => ($t.report(t), !0);
|
|
1785
1789
|
function rn(t, s = () => !1) {
|
|
1786
1790
|
const e = (r) => s(r) || sn(r);
|
|
1787
|
-
t.config.errorHandler = e, globalThis.onerror = (r, n, a, u,
|
|
1791
|
+
t.config.errorHandler = e, globalThis.onerror = (r, n, a, u, o) => e(o ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
|
|
1788
1792
|
}
|
|
1789
1793
|
const nn = {
|
|
1790
1794
|
async install(t, s) {
|
|
1791
|
-
rn(t, s.handleError), en.forEach((e) =>
|
|
1795
|
+
rn(t, s.handleError), en.forEach((e) => R.addSetting(e)), await ke(t, tn);
|
|
1792
1796
|
}
|
|
1793
1797
|
}, an = {
|
|
1794
1798
|
async install() {
|
|
1795
1799
|
ze() && (globalThis.testingRuntime = {
|
|
1796
1800
|
on: (...t) => F.on(...t),
|
|
1797
|
-
service: (t) =>
|
|
1801
|
+
service: (t) => R.service(t)
|
|
1798
1802
|
});
|
|
1799
1803
|
}
|
|
1800
1804
|
}, ln = {
|
|
@@ -1803,7 +1807,7 @@ const nn = {
|
|
|
1803
1807
|
height: "1.2em"
|
|
1804
1808
|
};
|
|
1805
1809
|
function on(t, s) {
|
|
1806
|
-
return
|
|
1810
|
+
return i(), b("svg", ln, s[0] || (s[0] = [
|
|
1807
1811
|
y("path", {
|
|
1808
1812
|
fill: "currentColor",
|
|
1809
1813
|
d: "M10 8.586L2.929 1.515L1.515 2.929L8.586 10l-7.071 7.071l1.414 1.414L10 11.414l7.071 7.071l1.414-1.414L11.414 10l7.071-7.071l-1.414-1.414z"
|
|
@@ -1815,7 +1819,7 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
|
|
|
1815
1819
|
props: {
|
|
1816
1820
|
persistent: { type: Boolean },
|
|
1817
1821
|
fullscreen: { type: Boolean },
|
|
1818
|
-
|
|
1822
|
+
fullscreenOnMobile: { type: Boolean },
|
|
1819
1823
|
title: {},
|
|
1820
1824
|
titleHidden: { type: Boolean },
|
|
1821
1825
|
description: {},
|
|
@@ -1825,10 +1829,10 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
|
|
|
1825
1829
|
const e = N(null), { close: r } = Ae();
|
|
1826
1830
|
s({ $content: e });
|
|
1827
1831
|
const { forwardRef: n } = Re();
|
|
1828
|
-
return pe("$modalContentRef", e), (a, u) => (
|
|
1832
|
+
return pe("$modalContentRef", e), (a, u) => (i(), m(l(Rs), {
|
|
1829
1833
|
ref: l(n),
|
|
1830
1834
|
open: "",
|
|
1831
|
-
"onUpdate:open": u[0] || (u[0] = (
|
|
1835
|
+
"onUpdate:open": u[0] || (u[0] = (o) => a.persistent || o || l(r)())
|
|
1832
1836
|
}, {
|
|
1833
1837
|
default: f(() => [
|
|
1834
1838
|
d(l(qs), null, {
|
|
@@ -1845,10 +1849,10 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
|
|
|
1845
1849
|
__name: "HeadlessModalContent",
|
|
1846
1850
|
setup(t) {
|
|
1847
1851
|
const { child: s } = Ae(), e = lr("$modalContentRef"), r = te("$contentRef");
|
|
1848
|
-
return G(() => e.value = r.value), (n, a) => (
|
|
1852
|
+
return G(() => e.value = r.value), (n, a) => (i(), m(l(Ps), { ref: "$contentRef" }, {
|
|
1849
1853
|
default: f(() => [
|
|
1850
1854
|
$(n.$slots, "default"),
|
|
1851
|
-
l(s) ? (
|
|
1855
|
+
l(s) ? (i(), m(l(bs), {
|
|
1852
1856
|
key: 0,
|
|
1853
1857
|
is: l(s)
|
|
1854
1858
|
}, null, 8, ["is"])) : E("", !0)
|
|
@@ -1863,7 +1867,7 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
|
|
|
1863
1867
|
as: {}
|
|
1864
1868
|
},
|
|
1865
1869
|
setup(t) {
|
|
1866
|
-
return (s, e) => (
|
|
1870
|
+
return (s, e) => (i(), m(l(As), ce(de(s.$props)), {
|
|
1867
1871
|
default: f(() => [
|
|
1868
1872
|
$(s.$slots, "default")
|
|
1869
1873
|
]),
|
|
@@ -1878,7 +1882,7 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
|
|
|
1878
1882
|
as: {}
|
|
1879
1883
|
},
|
|
1880
1884
|
setup(t) {
|
|
1881
|
-
return (s, e) => (
|
|
1885
|
+
return (s, e) => (i(), m(l(Ds), ce(de(s.$props)), {
|
|
1882
1886
|
default: f(() => [
|
|
1883
1887
|
$(s.$slots, "default")
|
|
1884
1888
|
]),
|
|
@@ -1892,7 +1896,7 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
|
|
|
1892
1896
|
as: {}
|
|
1893
1897
|
},
|
|
1894
1898
|
setup(t) {
|
|
1895
|
-
return (s, e) => (
|
|
1899
|
+
return (s, e) => (i(), m(l(Bs), ce(de(s.$props)), {
|
|
1896
1900
|
default: f(() => [
|
|
1897
1901
|
$(s.$slots, "default")
|
|
1898
1902
|
]),
|
|
@@ -1904,7 +1908,7 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
|
|
|
1904
1908
|
props: {
|
|
1905
1909
|
persistent: { type: Boolean },
|
|
1906
1910
|
fullscreen: { type: Boolean },
|
|
1907
|
-
|
|
1911
|
+
fullscreenOnMobile: { type: Boolean },
|
|
1908
1912
|
title: {},
|
|
1909
1913
|
titleHidden: { type: Boolean },
|
|
1910
1914
|
description: {},
|
|
@@ -1914,23 +1918,23 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
|
|
|
1914
1918
|
closeHidden: { type: Boolean }
|
|
1915
1919
|
},
|
|
1916
1920
|
setup(t, { expose: s }) {
|
|
1917
|
-
const e = K(t, ["class", "wrapperClass", "title", "titleHidden", "description", "persistent", "closeHidden", "fullscreen", "
|
|
1921
|
+
const e = K(t, ["class", "wrapperClass", "title", "titleHidden", "description", "persistent", "closeHidden", "fullscreen", "fullscreenOnMobile"]);
|
|
1918
1922
|
s({
|
|
1919
1923
|
$content: c(() => {
|
|
1920
|
-
var
|
|
1921
|
-
return (
|
|
1924
|
+
var M;
|
|
1925
|
+
return (M = o.value) == null ? void 0 : M.$content;
|
|
1922
1926
|
})
|
|
1923
1927
|
});
|
|
1924
|
-
const { forwardRef: r, currentRef: n } = Re(), { id: a, visible: u } = Ae(),
|
|
1928
|
+
const { forwardRef: r, currentRef: n } = Re(), { id: a, visible: u } = Ae(), o = n, p = ct(), v = c(
|
|
1925
1929
|
() => {
|
|
1926
|
-
var
|
|
1927
|
-
return u.value && ((
|
|
1930
|
+
var M;
|
|
1931
|
+
return u.value && ((M = le.value.toReversed().find((je) => je.visible.value)) == null ? void 0 : M.id) === a.value;
|
|
1928
1932
|
}
|
|
1929
|
-
), w = c(() => le.value.find((
|
|
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(
|
|
1930
1934
|
"overflow-auto px-4 pb-4 flex flex-col flex-1",
|
|
1931
1935
|
{ "pt-4": !t.title || t.titleHidden, "max-h-[90vh]": !Q.value },
|
|
1932
1936
|
t.class
|
|
1933
|
-
)), Q = c(() => t.fullscreen || t.
|
|
1937
|
+
)), Q = c(() => t.fullscreen || t.fullscreenOnMobile && A.mobile), Pt = c(() => T(
|
|
1934
1938
|
"isolate fixed z-50 flex flex-col overflow-hidden bg-white text-left duration-300",
|
|
1935
1939
|
Q.value ? [
|
|
1936
1940
|
"inset-0 transition-[transform,translate] will-change-[transform,translate]",
|
|
@@ -1945,68 +1949,68 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
|
|
|
1945
1949
|
],
|
|
1946
1950
|
t.wrapperClass
|
|
1947
1951
|
));
|
|
1948
|
-
return rt(() =>
|
|
1952
|
+
return rt(() => ie(500).then(() => me.add(p.value))), (M, je) => (i(), m(cn, H(e, {
|
|
1949
1953
|
ref: (fe) => l(r)(fe),
|
|
1950
|
-
persistent:
|
|
1954
|
+
persistent: M.persistent
|
|
1951
1955
|
}), {
|
|
1952
1956
|
default: f(({ close: fe }) => {
|
|
1953
|
-
var Fe,
|
|
1957
|
+
var Fe, Oe;
|
|
1954
1958
|
return [
|
|
1955
1959
|
d(fn, {
|
|
1956
1960
|
class: _(["fixed inset-0 transition-opacity duration-300 will-change-[opacity]", {
|
|
1957
1961
|
"animate-[fade-in_var(--tw-duration)_ease-in-out]": !h.value,
|
|
1958
|
-
"bg-black/30": ((Fe = w.value) == null ? void 0 : Fe.id) === l(a) || !w.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),
|
|
1959
1963
|
"opacity-0": !w.value,
|
|
1960
1964
|
hidden: Q.value
|
|
1961
1965
|
}])
|
|
1962
1966
|
}, null, 8, ["class"]),
|
|
1963
1967
|
d(dn, H(k.value, { class: Pt.value }), {
|
|
1964
1968
|
default: f(() => [
|
|
1965
|
-
!
|
|
1969
|
+
!M.persistent && !M.closeHidden ? (i(), b("div", {
|
|
1966
1970
|
key: 0,
|
|
1967
1971
|
class: _(["absolute top-0 right-0 pt-3.5 pr-2.5", { "hidden sm:block": !Q.value }])
|
|
1968
1972
|
}, [
|
|
1969
1973
|
y("button", {
|
|
1970
1974
|
type: "button",
|
|
1971
1975
|
class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
|
|
1972
|
-
onClick: (
|
|
1976
|
+
onClick: (ol) => fe()
|
|
1973
1977
|
}, [
|
|
1974
|
-
y("span", gn, x(
|
|
1978
|
+
y("span", gn, x(M.$td("ui.close", "Close")), 1),
|
|
1975
1979
|
d(l(un), { class: "size-4" })
|
|
1976
1980
|
], 8, hn)
|
|
1977
1981
|
], 2)) : E("", !0),
|
|
1978
|
-
|
|
1982
|
+
M.title ? (i(), m(mn, {
|
|
1979
1983
|
key: 1,
|
|
1980
1984
|
class: _(["px-4 pt-5 text-base font-semibold text-gray-900", {
|
|
1981
|
-
"sr-only":
|
|
1982
|
-
"pb-0":
|
|
1983
|
-
"pb-2": !
|
|
1985
|
+
"sr-only": M.titleHidden,
|
|
1986
|
+
"pb-0": M.description && !M.descriptionHidden,
|
|
1987
|
+
"pb-2": !M.description || M.descriptionHidden
|
|
1984
1988
|
}])
|
|
1985
1989
|
}, {
|
|
1986
1990
|
default: f(() => [
|
|
1987
1991
|
d(z, {
|
|
1988
|
-
text:
|
|
1992
|
+
text: M.title,
|
|
1989
1993
|
inline: ""
|
|
1990
1994
|
}, null, 8, ["text"])
|
|
1991
1995
|
]),
|
|
1992
1996
|
_: 1
|
|
1993
1997
|
}, 8, ["class"])) : E("", !0),
|
|
1994
|
-
|
|
1998
|
+
M.description ? (i(), m(pn, {
|
|
1995
1999
|
key: 2,
|
|
1996
|
-
class: _(["px-4 pt-1 pb-2", { "sr-only":
|
|
2000
|
+
class: _(["px-4 pt-1 pb-2", { "sr-only": M.descriptionHidden }])
|
|
1997
2001
|
}, {
|
|
1998
2002
|
default: f(() => [
|
|
1999
2003
|
d(z, {
|
|
2000
|
-
text:
|
|
2004
|
+
text: M.description,
|
|
2001
2005
|
class: "text-sm leading-6 text-gray-500"
|
|
2002
2006
|
}, null, 8, ["text"])
|
|
2003
2007
|
]),
|
|
2004
2008
|
_: 1
|
|
2005
2009
|
}, 8, ["class"])) : E("", !0),
|
|
2006
2010
|
y("div", {
|
|
2007
|
-
class: _(
|
|
2011
|
+
class: _(P.value)
|
|
2008
2012
|
}, [
|
|
2009
|
-
$(
|
|
2013
|
+
$(M.$slots, "default", { close: fe })
|
|
2010
2014
|
], 2)
|
|
2011
2015
|
]),
|
|
2012
2016
|
_: 2
|
|
@@ -2029,7 +2033,7 @@ const bn = /* @__PURE__ */ g({
|
|
|
2029
2033
|
},
|
|
2030
2034
|
setup(t, { expose: s }) {
|
|
2031
2035
|
const e = t, { renderedTitle: r, titleHidden: n } = vn(e);
|
|
2032
|
-
return s(), (a, u) => (
|
|
2036
|
+
return s(), (a, u) => (i(), m(ne, {
|
|
2033
2037
|
title: l(r),
|
|
2034
2038
|
"title-hidden": l(n)
|
|
2035
2039
|
}, {
|
|
@@ -2051,7 +2055,7 @@ const bn = /* @__PURE__ */ g({
|
|
|
2051
2055
|
return G((n) => {
|
|
2052
2056
|
var a;
|
|
2053
2057
|
e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
|
|
2054
|
-
}), pe("form", t.form), (n, a) => (
|
|
2058
|
+
}), pe("form", t.form), (n, a) => (i(), b("form", {
|
|
2055
2059
|
onSubmit: a[0] || (a[0] = nt((u) => n.form ? n.form.submit() : n.$emit("submit"), ["prevent"]))
|
|
2056
2060
|
}, [
|
|
2057
2061
|
$(n.$slots, "default")
|
|
@@ -2061,8 +2065,8 @@ const bn = /* @__PURE__ */ g({
|
|
|
2061
2065
|
function yn(t) {
|
|
2062
2066
|
const s = ht(
|
|
2063
2067
|
Object.entries(t.checkboxes ?? {}).reduce(
|
|
2064
|
-
(u, [
|
|
2065
|
-
[
|
|
2068
|
+
(u, [o, p]) => ({
|
|
2069
|
+
[o]: {
|
|
2066
2070
|
type: "boolean",
|
|
2067
2071
|
default: p.default,
|
|
2068
2072
|
required: p.required ? "required" : void 0
|
|
@@ -2092,8 +2096,8 @@ const wn = {
|
|
|
2092
2096
|
},
|
|
2093
2097
|
emits: ["close"],
|
|
2094
2098
|
setup(t, { expose: s }) {
|
|
2095
|
-
const e = K(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: u, renderedCancelText:
|
|
2096
|
-
return s(), (p, v) => (
|
|
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, {
|
|
2097
2101
|
title: l(n),
|
|
2098
2102
|
"title-hidden": l(a),
|
|
2099
2103
|
persistent: ""
|
|
@@ -2108,11 +2112,11 @@ const wn = {
|
|
|
2108
2112
|
text: p.message,
|
|
2109
2113
|
actions: p.actions
|
|
2110
2114
|
}, null, 8, ["text", "actions"]),
|
|
2111
|
-
p.checkboxes ? (
|
|
2112
|
-
(
|
|
2115
|
+
p.checkboxes ? (i(), b("ul", wn, [
|
|
2116
|
+
(i(!0), b(D, null, O(p.checkboxes, (h, k) => (i(), b("li", { key: k }, [
|
|
2113
2117
|
y("label", $n, [
|
|
2114
2118
|
at(y("input", {
|
|
2115
|
-
"onUpdate:modelValue": (
|
|
2119
|
+
"onUpdate:modelValue": (P) => l(r)[k] = P,
|
|
2116
2120
|
type: "checkbox",
|
|
2117
2121
|
required: h.required,
|
|
2118
2122
|
class: "border-primary-600 text-primary-600 hover:bg-primary-50 hover:checked:bg-primary-500 focus:ring-primary-600 focus-visible:ring-primary-600 rounded border-2"
|
|
@@ -2133,13 +2137,13 @@ const wn = {
|
|
|
2133
2137
|
]),
|
|
2134
2138
|
_: 1
|
|
2135
2139
|
}, 8, ["variant"]),
|
|
2136
|
-
p.required ? E("", !0) : (
|
|
2140
|
+
p.required ? E("", !0) : (i(), m(I, {
|
|
2137
2141
|
key: 0,
|
|
2138
2142
|
variant: p.cancelVariant,
|
|
2139
2143
|
onClick: (h) => w(!1)
|
|
2140
2144
|
}, {
|
|
2141
2145
|
default: f(() => [
|
|
2142
|
-
L(x(l(
|
|
2146
|
+
L(x(l(o)), 1)
|
|
2143
2147
|
]),
|
|
2144
2148
|
_: 2
|
|
2145
2149
|
}, 1032, ["variant", "onClick"]))
|
|
@@ -2157,7 +2161,7 @@ const wn = {
|
|
|
2157
2161
|
height: "1.2em"
|
|
2158
2162
|
};
|
|
2159
2163
|
function Tn(t, s) {
|
|
2160
|
-
return
|
|
2164
|
+
return i(), b("svg", kn, s[0] || (s[0] = [
|
|
2161
2165
|
y("path", {
|
|
2162
2166
|
fill: "currentColor",
|
|
2163
2167
|
d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
|
|
@@ -2170,7 +2174,7 @@ const Mn = V({ name: "zondicons-cheveron-left", render: Tn }), En = {
|
|
|
2170
2174
|
height: "1.2em"
|
|
2171
2175
|
};
|
|
2172
2176
|
function Hn(t, s) {
|
|
2173
|
-
return
|
|
2177
|
+
return i(), b("svg", En, s[0] || (s[0] = [
|
|
2174
2178
|
y("path", {
|
|
2175
2179
|
fill: "currentColor",
|
|
2176
2180
|
d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
|
|
@@ -2183,7 +2187,7 @@ const It = V({ name: "zondicons-cheveron-right", render: Hn }), Vn = {
|
|
|
2183
2187
|
height: "1.2em"
|
|
2184
2188
|
};
|
|
2185
2189
|
function Ln(t, s) {
|
|
2186
|
-
return
|
|
2190
|
+
return i(), b("svg", Vn, s[0] || (s[0] = [
|
|
2187
2191
|
y("path", {
|
|
2188
2192
|
fill: "currentColor",
|
|
2189
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"
|
|
@@ -2196,7 +2200,7 @@ const De = V({ name: "zondicons-exclamation-solid", render: Ln }), In = {
|
|
|
2196
2200
|
height: "1.2em"
|
|
2197
2201
|
};
|
|
2198
2202
|
function zn(t, s) {
|
|
2199
|
-
return
|
|
2203
|
+
return i(), b("svg", In, s[0] || (s[0] = [
|
|
2200
2204
|
y("path", {
|
|
2201
2205
|
fill: "currentColor",
|
|
2202
2206
|
d: "M20 19V7H4v12zm0-16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-7 14v-2h5v2zm-3.42-4L5.57 9H8.4l3.3 3.3c.39.39.39 1.03 0 1.42L8.42 17H5.59z"
|
|
@@ -2209,7 +2213,7 @@ const Rn = V({ name: "mdi-console", render: zn }), qn = {
|
|
|
2209
2213
|
height: "1.2em"
|
|
2210
2214
|
};
|
|
2211
2215
|
function Pn(t, s) {
|
|
2212
|
-
return
|
|
2216
|
+
return i(), b("svg", qn, s[0] || (s[0] = [
|
|
2213
2217
|
y("path", {
|
|
2214
2218
|
fill: "currentColor",
|
|
2215
2219
|
d: "M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2zm2 0h4a2 2 0 0 1 2 2v4h4V2H8zM2 8v10h10V8z"
|
|
@@ -2222,21 +2226,21 @@ const An = V({ name: "zondicons-copy", render: Pn }), Dn = {
|
|
|
2222
2226
|
height: "1.2em"
|
|
2223
2227
|
};
|
|
2224
2228
|
function Bn(t, s) {
|
|
2225
|
-
return
|
|
2229
|
+
return i(), b("svg", Dn, s[0] || (s[0] = [
|
|
2226
2230
|
y("path", {
|
|
2227
2231
|
fill: "currentColor",
|
|
2228
2232
|
d: "M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"
|
|
2229
2233
|
}, null, -1)
|
|
2230
2234
|
]));
|
|
2231
2235
|
}
|
|
2232
|
-
const jn = V({ name: "mdi-github", render: Bn }), Fn = { class: "flex" },
|
|
2236
|
+
const jn = V({ name: "mdi-github", render: Bn }), Fn = { class: "flex" }, On = { class: "sr-only" }, Un = /* @__PURE__ */ g({
|
|
2233
2237
|
__name: "ErrorReportModalButtons",
|
|
2234
2238
|
props: {
|
|
2235
2239
|
report: {}
|
|
2236
2240
|
},
|
|
2237
2241
|
setup(t) {
|
|
2238
2242
|
const s = t, e = c(() => s.report.description ? `${s.report.title}: ${s.report.description}` : s.report.title), r = c(() => {
|
|
2239
|
-
if (!
|
|
2243
|
+
if (!R.sourceUrl)
|
|
2240
2244
|
return !1;
|
|
2241
2245
|
const a = encodeURIComponent(e.value), u = encodeURIComponent(
|
|
2242
2246
|
[
|
|
@@ -2246,13 +2250,13 @@ const jn = V({ name: "mdi-github", render: Bn }), Fn = { class: "flex" }, Un = {
|
|
|
2246
2250
|
"```",
|
|
2247
2251
|
ls(
|
|
2248
2252
|
s.report.details ?? "Details missing from report",
|
|
2249
|
-
1800 - a.length -
|
|
2253
|
+
1800 - a.length - R.sourceUrl.length
|
|
2250
2254
|
).trim(),
|
|
2251
2255
|
"```"
|
|
2252
2256
|
].join(`
|
|
2253
2257
|
`)
|
|
2254
2258
|
);
|
|
2255
|
-
return `${
|
|
2259
|
+
return `${R.sourceUrl}/issues/new?title=${a}&body=${u}`;
|
|
2256
2260
|
}), n = c(() => se(
|
|
2257
2261
|
[
|
|
2258
2262
|
{
|
|
@@ -2262,7 +2266,7 @@ const jn = V({ name: "mdi-github", render: Bn }), Fn = { class: "flex" }, Un = {
|
|
|
2262
2266
|
async click() {
|
|
2263
2267
|
await navigator.clipboard.writeText(`${e.value}
|
|
2264
2268
|
|
|
2265
|
-
${s.report.details}`),
|
|
2269
|
+
${s.report.details}`), A.toast(S("errors.copiedToClipboard", "Debug information copied to clipboard"));
|
|
2266
2270
|
}
|
|
2267
2271
|
},
|
|
2268
2272
|
{
|
|
@@ -2271,7 +2275,7 @@ ${s.report.details}`), P.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2271
2275
|
iconComponent: Rn,
|
|
2272
2276
|
click() {
|
|
2273
2277
|
const a = s.report.error ?? s.report;
|
|
2274
|
-
window.error = a, console.error(a),
|
|
2278
|
+
window.error = a, console.error(a), A.toast(
|
|
2275
2279
|
S(
|
|
2276
2280
|
"errors.addedToConsole",
|
|
2277
2281
|
"You can now use the **error** variable in the console"
|
|
@@ -2289,19 +2293,19 @@ ${s.report.details}`), P.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2289
2293
|
});
|
|
2290
2294
|
}
|
|
2291
2295
|
));
|
|
2292
|
-
return (a, u) => (
|
|
2293
|
-
(
|
|
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), () => [
|
|
2294
2298
|
d(I, {
|
|
2295
2299
|
size: "icon",
|
|
2296
2300
|
variant: "ghost",
|
|
2297
2301
|
class: "group whitespace-nowrap",
|
|
2298
|
-
href:
|
|
2299
|
-
title: a.$td(`errors.report_${
|
|
2300
|
-
onClick:
|
|
2302
|
+
href: o.url,
|
|
2303
|
+
title: a.$td(`errors.report_${o.id}`, o.description),
|
|
2304
|
+
onClick: o.click
|
|
2301
2305
|
}, {
|
|
2302
2306
|
default: f(() => [
|
|
2303
|
-
y("span",
|
|
2304
|
-
(
|
|
2307
|
+
y("span", On, x(a.$td(`errors.report_${o.id}`, o.description)), 1),
|
|
2308
|
+
(i(), m(ee(o.iconComponent), {
|
|
2305
2309
|
class: "size-4",
|
|
2306
2310
|
"aria-hidden": "true"
|
|
2307
2311
|
}))
|
|
@@ -2320,7 +2324,7 @@ ${s.report.details}`), P.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2320
2324
|
},
|
|
2321
2325
|
setup(t) {
|
|
2322
2326
|
const s = c(() => !t.totalReports || t.totalReports <= 1 ? t.report.title : `${t.report.title} (${t.currentReport}/${t.totalReports})`);
|
|
2323
|
-
return (e, r) => (
|
|
2327
|
+
return (e, r) => (i(), m(z, {
|
|
2324
2328
|
text: s.value,
|
|
2325
2329
|
inline: ""
|
|
2326
2330
|
}, null, 8, ["text"]));
|
|
@@ -2351,8 +2355,8 @@ const Kn = { class: "px-4 pt-5 pb-4" }, Qn = { class: "flex justify-between gap-
|
|
|
2351
2355
|
reports: {}
|
|
2352
2356
|
},
|
|
2353
2357
|
setup(t, { expose: s }) {
|
|
2354
|
-
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: u, activeReport:
|
|
2355
|
-
return s(), (p, v) => (
|
|
2358
|
+
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: u, activeReport: o } = Wn(e);
|
|
2359
|
+
return s(), (p, v) => (i(), m(ne, {
|
|
2356
2360
|
title: p.$td("errors.report", "Error report"),
|
|
2357
2361
|
"title-hidden": "",
|
|
2358
2362
|
"close-hidden": "",
|
|
@@ -2366,11 +2370,11 @@ const Kn = { class: "px-4 pt-5 pb-4" }, Qn = { class: "flex justify-between gap-
|
|
|
2366
2370
|
d(l(De), { class: "size-5 text-red-600" }),
|
|
2367
2371
|
d(Nn, {
|
|
2368
2372
|
class: "text-lg leading-6 font-semibold text-gray-900",
|
|
2369
|
-
report: l(
|
|
2373
|
+
report: l(o),
|
|
2370
2374
|
"current-report": l(r) + 1,
|
|
2371
2375
|
"total-reports": p.reports.length
|
|
2372
2376
|
}, null, 8, ["report", "current-report", "total-reports"]),
|
|
2373
|
-
p.reports.length > 1 ? (
|
|
2377
|
+
p.reports.length > 1 ? (i(), b("span", Zn, [
|
|
2374
2378
|
d(I, {
|
|
2375
2379
|
size: "icon",
|
|
2376
2380
|
variant: "ghost",
|
|
@@ -2399,14 +2403,14 @@ const Kn = { class: "px-4 pt-5 pb-4" }, Qn = { class: "flex justify-between gap-
|
|
|
2399
2403
|
}, 8, ["disabled", "aria-label", "title"])
|
|
2400
2404
|
])) : E("", !0)
|
|
2401
2405
|
]),
|
|
2402
|
-
d(
|
|
2403
|
-
report: l(
|
|
2406
|
+
d(Un, {
|
|
2407
|
+
report: l(o),
|
|
2404
2408
|
class: "gap-0.5"
|
|
2405
2409
|
}, null, 8, ["report"])
|
|
2406
2410
|
]),
|
|
2407
|
-
l(
|
|
2411
|
+
l(o).description ? (i(), m(z, {
|
|
2408
2412
|
key: 0,
|
|
2409
|
-
text: l(
|
|
2413
|
+
text: l(o).description,
|
|
2410
2414
|
class: "text-gray-600"
|
|
2411
2415
|
}, null, 8, ["text"])) : E("", !0)
|
|
2412
2416
|
]),
|
|
@@ -2426,7 +2430,7 @@ const Kn = { class: "px-4 pt-5 pb-4" }, Qn = { class: "flex justify-between gap-
|
|
|
2426
2430
|
height: "1.2em"
|
|
2427
2431
|
};
|
|
2428
2432
|
function ta(t, s) {
|
|
2429
|
-
return
|
|
2433
|
+
return i(), b("svg", ea, s[0] || (s[0] = [
|
|
2430
2434
|
y("path", {
|
|
2431
2435
|
fill: "currentColor",
|
|
2432
2436
|
d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",
|
|
@@ -2456,7 +2460,7 @@ const sa = V({ name: "svg-spinners-90-ring-with-bg", render: ta }), ra = { class
|
|
|
2456
2460
|
},
|
|
2457
2461
|
setup(t) {
|
|
2458
2462
|
let s;
|
|
2459
|
-
const e = N(0), r = c(() =>
|
|
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(
|
|
2460
2464
|
"absolute inset-y-0 right-0 size-full rounded-r-full border-l-3 border-gray-200",
|
|
2461
2465
|
"bg-primary-900 transition-[width] duration-500 ease-linear",
|
|
2462
2466
|
t.overflowClass
|
|
@@ -2464,20 +2468,20 @@ const sa = V({ name: "svg-spinners-90-ring-with-bg", render: ta }), ra = { class
|
|
|
2464
2468
|
return Le(
|
|
2465
2469
|
() => t.job,
|
|
2466
2470
|
() => {
|
|
2467
|
-
s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (
|
|
2471
|
+
s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (o) => e.value = o });
|
|
2468
2472
|
},
|
|
2469
2473
|
{ immediate: !0 }
|
|
2470
|
-
), $e(() => s && s()), (
|
|
2474
|
+
), $e(() => s && s()), (o, p) => (i(), b("div", ra, [
|
|
2471
2475
|
y("div", {
|
|
2472
2476
|
class: _(r.value),
|
|
2473
|
-
style:
|
|
2477
|
+
style: Ue(`transform:translateX(-${(1 - a.value) * 100}%)`)
|
|
2474
2478
|
}, null, 6),
|
|
2475
|
-
u.value ? (
|
|
2479
|
+
u.value ? (i(), b("div", {
|
|
2476
2480
|
key: 0,
|
|
2477
2481
|
class: _(n.value),
|
|
2478
|
-
style:
|
|
2482
|
+
style: Ue({ width: `${u.value}%` })
|
|
2479
2483
|
}, null, 6)) : E("", !0),
|
|
2480
|
-
y("span", na, x(
|
|
2484
|
+
y("span", na, x(o.$td("ui.progress", "{progress}% complete", {
|
|
2481
2485
|
progress: a.value * 100
|
|
2482
2486
|
})), 1)
|
|
2483
2487
|
]));
|
|
@@ -2489,7 +2493,7 @@ function la(t) {
|
|
|
2489
2493
|
), r = c(() => typeof t.progress == "number" || !!t.job), n = c(() => !t.title);
|
|
2490
2494
|
return { renderedTitle: s, renderedMessage: e, titleHidden: n, showProgress: r };
|
|
2491
2495
|
}
|
|
2492
|
-
const
|
|
2496
|
+
const ia = /* @__PURE__ */ g({
|
|
2493
2497
|
__name: "LoadingModal",
|
|
2494
2498
|
props: {
|
|
2495
2499
|
title: {},
|
|
@@ -2499,7 +2503,7 @@ const oa = /* @__PURE__ */ g({
|
|
|
2499
2503
|
},
|
|
2500
2504
|
setup(t, { expose: s }) {
|
|
2501
2505
|
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: u } = la(e);
|
|
2502
|
-
return s(), (
|
|
2506
|
+
return s(), (o, p) => (i(), m(ne, {
|
|
2503
2507
|
persistent: "",
|
|
2504
2508
|
"wrapper-class": "w-auto",
|
|
2505
2509
|
title: l(r),
|
|
@@ -2507,12 +2511,12 @@ const oa = /* @__PURE__ */ g({
|
|
|
2507
2511
|
class: _({ "flex-col-reverse": l(u), "flex-row items-center justify-center gap-2": !l(u) })
|
|
2508
2512
|
}, {
|
|
2509
2513
|
default: f(() => [
|
|
2510
|
-
l(u) ? (
|
|
2514
|
+
l(u) ? (i(), m(aa, {
|
|
2511
2515
|
key: 0,
|
|
2512
|
-
progress:
|
|
2513
|
-
job:
|
|
2516
|
+
progress: o.progress,
|
|
2517
|
+
job: o.job,
|
|
2514
2518
|
class: "min-w-[min(400px,80vw)]"
|
|
2515
|
-
}, null, 8, ["progress", "job"])) : (
|
|
2519
|
+
}, null, 8, ["progress", "job"])) : (i(), m(l(sa), {
|
|
2516
2520
|
key: 1,
|
|
2517
2521
|
class: "text-primary-600 mr-1 size-6"
|
|
2518
2522
|
})),
|
|
@@ -2543,33 +2547,33 @@ const oa = /* @__PURE__ */ g({
|
|
|
2543
2547
|
if (!(!t.name || !n))
|
|
2544
2548
|
return n.getFieldRules(t.name).includes("required");
|
|
2545
2549
|
}),
|
|
2546
|
-
update(
|
|
2550
|
+
update(o) {
|
|
2547
2551
|
if (n && t.name) {
|
|
2548
|
-
n.setFieldValue(t.name,
|
|
2552
|
+
n.setFieldValue(t.name, o);
|
|
2549
2553
|
return;
|
|
2550
2554
|
}
|
|
2551
|
-
r("update:modelValue",
|
|
2555
|
+
r("update:modelValue", o);
|
|
2552
2556
|
}
|
|
2553
2557
|
};
|
|
2554
|
-
return pe("input", u), s(u), (
|
|
2558
|
+
return pe("input", u), s(u), (o, p) => (i(), m(ee(o.as), null, {
|
|
2555
2559
|
default: f(() => [
|
|
2556
|
-
$(
|
|
2560
|
+
$(o.$slots, "default")
|
|
2557
2561
|
]),
|
|
2558
2562
|
_: 3
|
|
2559
2563
|
}));
|
|
2560
2564
|
}
|
|
2561
|
-
}),
|
|
2565
|
+
}), oa = ["for"], ye = /* @__PURE__ */ g({
|
|
2562
2566
|
__name: "HeadlessInputLabel",
|
|
2563
2567
|
setup(t) {
|
|
2564
|
-
const s =
|
|
2565
|
-
return (n, a) => r.value ? (
|
|
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", {
|
|
2566
2570
|
key: 0,
|
|
2567
2571
|
for: l(s).id
|
|
2568
2572
|
}, [
|
|
2569
2573
|
$(n.$slots, "default", {}, () => [
|
|
2570
2574
|
L(x(l(s).label), 1)
|
|
2571
2575
|
])
|
|
2572
|
-
], 8,
|
|
2576
|
+
], 8, oa)) : E("", !0);
|
|
2573
2577
|
}
|
|
2574
2578
|
}), ua = ["id", "name", "checked", "type", "required", "aria-invalid", "aria-describedby"], zt = /* @__PURE__ */ g({
|
|
2575
2579
|
__name: "HeadlessInputInput",
|
|
@@ -2577,12 +2581,12 @@ const oa = /* @__PURE__ */ g({
|
|
|
2577
2581
|
type: {}
|
|
2578
2582
|
},
|
|
2579
2583
|
setup(t) {
|
|
2580
|
-
const s = te("$inputRef"), e =
|
|
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(() => {
|
|
2581
2585
|
if (t.type)
|
|
2582
2586
|
return t.type;
|
|
2583
2587
|
const w = (n.value && (r == null ? void 0 : r.getFieldType(n.value))) ?? "";
|
|
2584
2588
|
return ["text", "email", "number", "tel", "url"].includes(w) ? w : "text";
|
|
2585
|
-
}),
|
|
2589
|
+
}), o = c(() => {
|
|
2586
2590
|
if (u.value === "checkbox")
|
|
2587
2591
|
return !!a.value;
|
|
2588
2592
|
});
|
|
@@ -2617,11 +2621,11 @@ const oa = /* @__PURE__ */ g({
|
|
|
2617
2621
|
}
|
|
2618
2622
|
s.value.value = a.value ?? null;
|
|
2619
2623
|
}
|
|
2620
|
-
}), (w, h) => (
|
|
2624
|
+
}), (w, h) => (i(), b("input", {
|
|
2621
2625
|
id: l(e).id,
|
|
2622
2626
|
ref: "$inputRef",
|
|
2623
2627
|
name: n.value,
|
|
2624
|
-
checked:
|
|
2628
|
+
checked: o.value,
|
|
2625
2629
|
type: u.value,
|
|
2626
2630
|
required: l(e).required ?? void 0,
|
|
2627
2631
|
"aria-invalid": l(e).errors ? "true" : "false",
|
|
@@ -2633,14 +2637,14 @@ const oa = /* @__PURE__ */ g({
|
|
|
2633
2637
|
inheritAttrs: !1,
|
|
2634
2638
|
__name: "HeadlessInputDescription",
|
|
2635
2639
|
setup(t) {
|
|
2636
|
-
const s =
|
|
2640
|
+
const s = q(
|
|
2637
2641
|
"input",
|
|
2638
2642
|
"<HeadlessInputDescription> must be a child of a <HeadlessInput>"
|
|
2639
2643
|
), e = c(() => typeof s.description == "string" ? s.description : ""), r = c(() => !!s.description);
|
|
2640
2644
|
return (n, a) => $(n.$slots, "default", {
|
|
2641
2645
|
id: `${l(s).id}-description`
|
|
2642
2646
|
}, () => [
|
|
2643
|
-
r.value ? (
|
|
2647
|
+
r.value ? (i(), m(z, H({ key: 0 }, n.$attrs, {
|
|
2644
2648
|
id: `${l(s).id}-description`,
|
|
2645
2649
|
text: e.value
|
|
2646
2650
|
}), null, 16, ["id", "text"])) : E("", !0)
|
|
@@ -2649,8 +2653,8 @@ const oa = /* @__PURE__ */ g({
|
|
|
2649
2653
|
}), ca = ["id"], we = /* @__PURE__ */ g({
|
|
2650
2654
|
__name: "HeadlessInputError",
|
|
2651
2655
|
setup(t) {
|
|
2652
|
-
const s =
|
|
2653
|
-
return (r, n) => e.value ? (
|
|
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", {
|
|
2654
2658
|
key: 0,
|
|
2655
2659
|
id: `${l(s).id}-error`
|
|
2656
2660
|
}, x(e.value), 9, ca)) : E("", !0);
|
|
@@ -2673,9 +2677,9 @@ const oa = /* @__PURE__ */ g({
|
|
|
2673
2677
|
},
|
|
2674
2678
|
emits: ["update:modelValue"],
|
|
2675
2679
|
setup(t) {
|
|
2676
|
-
const s = K(t, ["label", "inputClass", "wrapperClass", "descriptionClass", "errorClass"]), e = te("$inputRef"), [r, n] = Pe(), a = c(() =>
|
|
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(() => {
|
|
2677
2681
|
var v, w, h;
|
|
2678
|
-
return
|
|
2682
|
+
return T(
|
|
2679
2683
|
// eslint-disable-next-line vue/max-len
|
|
2680
2684
|
"block w-full rounded-md border-0 py-1.5 ring-1 ring-inset focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6",
|
|
2681
2685
|
{
|
|
@@ -2686,7 +2690,7 @@ const oa = /* @__PURE__ */ g({
|
|
|
2686
2690
|
t.inputClass
|
|
2687
2691
|
);
|
|
2688
2692
|
});
|
|
2689
|
-
return (v, w) => (
|
|
2693
|
+
return (v, w) => (i(), m(Be, H({
|
|
2690
2694
|
ref: "$inputRef",
|
|
2691
2695
|
label: v.label,
|
|
2692
2696
|
class: l(n)
|
|
@@ -2701,7 +2705,7 @@ const oa = /* @__PURE__ */ g({
|
|
|
2701
2705
|
class: _(a.value)
|
|
2702
2706
|
}, [
|
|
2703
2707
|
d(zt, H(l(r), { class: p.value }), null, 16, ["class"]),
|
|
2704
|
-
(h = e.value) != null && h.errors ? (
|
|
2708
|
+
(h = e.value) != null && h.errors ? (i(), b("div", da, [
|
|
2705
2709
|
d(l(De), { class: "size-5 text-red-500" })
|
|
2706
2710
|
])) : E("", !0)
|
|
2707
2711
|
], 2),
|
|
@@ -2709,7 +2713,7 @@ const oa = /* @__PURE__ */ g({
|
|
|
2709
2713
|
class: _(u.value)
|
|
2710
2714
|
}, null, 8, ["class"]),
|
|
2711
2715
|
d(we, {
|
|
2712
|
-
class: _(
|
|
2716
|
+
class: _(o.value)
|
|
2713
2717
|
}, null, 8, ["class"])
|
|
2714
2718
|
];
|
|
2715
2719
|
}),
|
|
@@ -2717,21 +2721,21 @@ const oa = /* @__PURE__ */ g({
|
|
|
2717
2721
|
}, 16, ["label", "class"]));
|
|
2718
2722
|
}
|
|
2719
2723
|
});
|
|
2720
|
-
function
|
|
2724
|
+
function Pl(t, s = {}) {
|
|
2721
2725
|
return {
|
|
2722
2726
|
default: t,
|
|
2723
2727
|
type: "boolean",
|
|
2724
2728
|
rules: s.rules
|
|
2725
2729
|
};
|
|
2726
2730
|
}
|
|
2727
|
-
function
|
|
2731
|
+
function Al(t, s = {}) {
|
|
2728
2732
|
return {
|
|
2729
2733
|
default: t,
|
|
2730
2734
|
type: "date",
|
|
2731
2735
|
rules: s.rules
|
|
2732
2736
|
};
|
|
2733
2737
|
}
|
|
2734
|
-
function
|
|
2738
|
+
function Dl(t, s, e = {}) {
|
|
2735
2739
|
return {
|
|
2736
2740
|
default: s,
|
|
2737
2741
|
type: "enum",
|
|
@@ -2739,21 +2743,21 @@ function jl(t, s, e = {}) {
|
|
|
2739
2743
|
values: t
|
|
2740
2744
|
};
|
|
2741
2745
|
}
|
|
2742
|
-
function
|
|
2746
|
+
function Bl(t) {
|
|
2743
2747
|
return {
|
|
2744
2748
|
default: t,
|
|
2745
2749
|
type: "boolean",
|
|
2746
2750
|
rules: "required"
|
|
2747
2751
|
};
|
|
2748
2752
|
}
|
|
2749
|
-
function
|
|
2753
|
+
function jl(t) {
|
|
2750
2754
|
return {
|
|
2751
2755
|
default: t,
|
|
2752
2756
|
type: "date",
|
|
2753
2757
|
rules: "required"
|
|
2754
2758
|
};
|
|
2755
2759
|
}
|
|
2756
|
-
function
|
|
2760
|
+
function Fl(t, s) {
|
|
2757
2761
|
return {
|
|
2758
2762
|
default: s,
|
|
2759
2763
|
type: "enum",
|
|
@@ -2761,14 +2765,14 @@ function Ol(t, s) {
|
|
|
2761
2765
|
values: t
|
|
2762
2766
|
};
|
|
2763
2767
|
}
|
|
2764
|
-
function
|
|
2768
|
+
function Ol(t) {
|
|
2765
2769
|
return {
|
|
2766
2770
|
default: t,
|
|
2767
2771
|
type: "number",
|
|
2768
2772
|
rules: "required"
|
|
2769
2773
|
};
|
|
2770
2774
|
}
|
|
2771
|
-
function
|
|
2775
|
+
function Ul(t) {
|
|
2772
2776
|
return {
|
|
2773
2777
|
default: t,
|
|
2774
2778
|
type: "object",
|
|
@@ -2782,21 +2786,21 @@ function fa(t) {
|
|
|
2782
2786
|
rules: "required"
|
|
2783
2787
|
};
|
|
2784
2788
|
}
|
|
2785
|
-
function
|
|
2789
|
+
function Nl(t, s = {}) {
|
|
2786
2790
|
return {
|
|
2787
2791
|
default: t,
|
|
2788
2792
|
type: "number",
|
|
2789
2793
|
rules: s.rules
|
|
2790
2794
|
};
|
|
2791
2795
|
}
|
|
2792
|
-
function
|
|
2796
|
+
function Wl(t, s = {}) {
|
|
2793
2797
|
return {
|
|
2794
2798
|
default: t,
|
|
2795
2799
|
type: "object",
|
|
2796
2800
|
rules: s.rules
|
|
2797
2801
|
};
|
|
2798
2802
|
}
|
|
2799
|
-
function
|
|
2803
|
+
function Kl(t, s = {}) {
|
|
2800
2804
|
return {
|
|
2801
2805
|
default: t,
|
|
2802
2806
|
type: "string",
|
|
@@ -2824,8 +2828,8 @@ const ha = { class: "mt-4 flex flex-row-reverse gap-2" }, ga = /* @__PURE__ */ g
|
|
|
2824
2828
|
},
|
|
2825
2829
|
emits: ["close"],
|
|
2826
2830
|
setup(t, { expose: s }) {
|
|
2827
|
-
const e = K(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: u, renderedCancelText:
|
|
2828
|
-
return s(), (p, v) => (
|
|
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, {
|
|
2829
2833
|
title: l(n),
|
|
2830
2834
|
persistent: ""
|
|
2831
2835
|
}, {
|
|
@@ -2835,7 +2839,7 @@ const ha = { class: "mt-4 flex flex-row-reverse gap-2" }, ga = /* @__PURE__ */ g
|
|
|
2835
2839
|
onSubmit: (h) => w(l(r).draft)
|
|
2836
2840
|
}, {
|
|
2837
2841
|
default: f(() => [
|
|
2838
|
-
l(a) ? (
|
|
2842
|
+
l(a) ? (i(), m(z, {
|
|
2839
2843
|
key: 0,
|
|
2840
2844
|
text: l(a)
|
|
2841
2845
|
}, null, 8, ["text"])) : E("", !0),
|
|
@@ -2860,7 +2864,7 @@ const ha = { class: "mt-4 flex flex-row-reverse gap-2" }, ga = /* @__PURE__ */ g
|
|
|
2860
2864
|
onClick: (h) => w()
|
|
2861
2865
|
}, {
|
|
2862
2866
|
default: f(() => [
|
|
2863
|
-
L(x(l(
|
|
2867
|
+
L(x(l(o)), 1)
|
|
2864
2868
|
]),
|
|
2865
2869
|
_: 2
|
|
2866
2870
|
}, 1032, ["variant", "onClick"])
|
|
@@ -2878,7 +2882,7 @@ const ha = { class: "mt-4 flex flex-row-reverse gap-2" }, ga = /* @__PURE__ */ g
|
|
|
2878
2882
|
height: "1.2em"
|
|
2879
2883
|
};
|
|
2880
2884
|
function ba(t, s) {
|
|
2881
|
-
return
|
|
2885
|
+
return i(), b("svg", va, s[0] || (s[0] = [
|
|
2882
2886
|
y("path", {
|
|
2883
2887
|
fill: "currentColor",
|
|
2884
2888
|
d: "M12 21q-1.625 0-3.012-.8T6.8 18H4v-2h2.1q-.075-.5-.088-1T6 14H4v-2h2q0-.5.012-1t.088-1H4V8h2.8q.35-.575.788-1.075T8.6 6.05L7 4.4L8.4 3l2.15 2.15q.7-.225 1.425-.225t1.425.225L15.6 3L17 4.4l-1.65 1.65q.575.375 1.038.862T17.2 8H20v2h-2.1q.075.5.088 1T18 12h2v2h-2q0 .5-.013 1t-.087 1H20v2h-2.8q-.8 1.4-2.187 2.2T12 21m-2-5h4v-2h-4zm0-4h4v-2h-4z"
|
|
@@ -2891,7 +2895,7 @@ const ya = V({ name: "material-symbols-bug-report", render: ba }), wa = {
|
|
|
2891
2895
|
height: "1.2em"
|
|
2892
2896
|
};
|
|
2893
2897
|
function $a(t, s) {
|
|
2894
|
-
return
|
|
2898
|
+
return i(), b("svg", wa, s[0] || (s[0] = [
|
|
2895
2899
|
y("path", {
|
|
2896
2900
|
fill: "currentColor",
|
|
2897
2901
|
d: "M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zm5-7.1l1.9 1.9q.275.275.7.275t.7-.275t.275-.7t-.275-.7l-1.9-1.9l1.9-1.9q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275L12 11.1l-1.9-1.9q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7l1.9 1.9l-1.9 1.9q-.275.275-.275.7t.275.7t.7.275t.7-.275z"
|
|
@@ -2904,7 +2908,7 @@ const _a = V({ name: "material-symbols-delete-forever-rounded", render: $a }), C
|
|
|
2904
2908
|
height: "1.2em"
|
|
2905
2909
|
};
|
|
2906
2910
|
function xa(t, s) {
|
|
2907
|
-
return
|
|
2911
|
+
return i(), b("svg", Ca, s[0] || (s[0] = [
|
|
2908
2912
|
y("path", {
|
|
2909
2913
|
fill: "currentColor",
|
|
2910
2914
|
d: "M11.25 13.5q.95 0 1.6-.65t.65-1.6t-.65-1.6t-1.6-.65t-1.6.65t-.65 1.6t.65 1.6t1.6.65m4.825 4l-2.625-2.625q-.5.325-1.062.475t-1.138.15q-1.775 0-3.012-1.237T7 11.25t1.238-3.012T11.25 7t3.013 1.238T15.5 11.25q0 .575-.162 1.138t-.488 1.062l2.65 2.65zM5 21q-.825 0-1.412-.587T3 19v-4h2v4h4v2zm10 0v-2h4v-4h2v4q0 .825-.587 1.413T19 21zM3 9V5q0-.825.588-1.412T5 3h4v2H5v4zm16 0V5h-4V3h4q.825 0 1.413.588T21 5v4z"
|
|
@@ -2917,7 +2921,7 @@ const Sa = V({ name: "material-symbols-frame-inspect", render: xa }), ka = {
|
|
|
2917
2921
|
height: "1.2em"
|
|
2918
2922
|
};
|
|
2919
2923
|
function Ta(t, s) {
|
|
2920
|
-
return
|
|
2924
|
+
return i(), b("svg", ka, s[0] || (s[0] = [
|
|
2921
2925
|
y("path", {
|
|
2922
2926
|
fill: "currentColor",
|
|
2923
2927
|
d: "M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20"
|
|
@@ -2928,7 +2932,7 @@ const Ma = V({ name: "material-symbols-refresh-rounded", render: Ta }), Ea = { c
|
|
|
2928
2932
|
__name: "StartupCrash",
|
|
2929
2933
|
setup(t) {
|
|
2930
2934
|
async function s() {
|
|
2931
|
-
await
|
|
2935
|
+
await A.confirm(
|
|
2932
2936
|
S("startupCrash.purgeConfirmTitle", "Delete everything?"),
|
|
2933
2937
|
S(
|
|
2934
2938
|
"startupCrash.purgeConfirmMessage",
|
|
@@ -2940,11 +2944,11 @@ Do you still want to proceed?`
|
|
|
2940
2944
|
acceptVariant: "danger",
|
|
2941
2945
|
acceptText: S("startupCrash.purgeConfirmAccept", "Purge device")
|
|
2942
2946
|
}
|
|
2943
|
-
) && (await vt.purge(), await
|
|
2947
|
+
) && (await vt.purge(), await R.reload());
|
|
2944
2948
|
}
|
|
2945
2949
|
return (e, r) => {
|
|
2946
2950
|
const n = Qt("i-majesticons-exclamation");
|
|
2947
|
-
return
|
|
2951
|
+
return i(), b("div", Ea, [
|
|
2948
2952
|
y("div", Ha, [
|
|
2949
2953
|
d(n, { class: "size-20 text-red-600" }),
|
|
2950
2954
|
y("h1", Va, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
|
|
@@ -3007,7 +3011,7 @@ Do you still want to proceed?`
|
|
|
3007
3011
|
action: {}
|
|
3008
3012
|
},
|
|
3009
3013
|
setup(t) {
|
|
3010
|
-
return (s, e) => (
|
|
3014
|
+
return (s, e) => (i(), m(ee(s.action.dismiss ? l(js) : "button"), {
|
|
3011
3015
|
type: "button",
|
|
3012
3016
|
onClick: s.action.click
|
|
3013
3017
|
}, {
|
|
@@ -3025,11 +3029,11 @@ Do you still want to proceed?`
|
|
|
3025
3029
|
variant: {}
|
|
3026
3030
|
},
|
|
3027
3031
|
setup(t) {
|
|
3028
|
-
return (s, e) => (
|
|
3032
|
+
return (s, e) => (i(), m(l(Fs), null, {
|
|
3029
3033
|
default: f(() => [
|
|
3030
3034
|
$(s.$slots, "default", {}, () => [
|
|
3031
|
-
s.message ? (
|
|
3032
|
-
(
|
|
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, {
|
|
3033
3037
|
key: n,
|
|
3034
3038
|
action: r
|
|
3035
3039
|
}, null, 8, ["action"]))), 128))
|
|
@@ -3063,16 +3067,16 @@ Do you still want to proceed?`
|
|
|
3063
3067
|
}
|
|
3064
3068
|
}
|
|
3065
3069
|
));
|
|
3066
|
-
return s(), (r, n) => (
|
|
3070
|
+
return s(), (r, n) => (i(), m(Ra, {
|
|
3067
3071
|
class: _(e.value)
|
|
3068
3072
|
}, {
|
|
3069
3073
|
default: f(() => [
|
|
3070
|
-
r.message ? (
|
|
3074
|
+
r.message ? (i(), m(z, {
|
|
3071
3075
|
key: 0,
|
|
3072
3076
|
text: r.message,
|
|
3073
3077
|
inline: ""
|
|
3074
3078
|
}, null, 8, ["text"])) : E("", !0),
|
|
3075
|
-
(
|
|
3079
|
+
(i(!0), b(D, null, O(r.actions, (a, u) => (i(), m(I, {
|
|
3076
3080
|
key: u,
|
|
3077
3081
|
action: a,
|
|
3078
3082
|
variant: r.variant,
|
|
@@ -3082,29 +3086,29 @@ Do you still want to proceed?`
|
|
|
3082
3086
|
_: 1
|
|
3083
3087
|
}, 8, ["class"]));
|
|
3084
3088
|
}
|
|
3085
|
-
}), Pa = { $ui:
|
|
3089
|
+
}), Pa = { $ui: A }, Aa = {
|
|
3086
3090
|
async install(t, s) {
|
|
3087
3091
|
const e = {
|
|
3088
3092
|
"alert-modal": bn,
|
|
3089
3093
|
"confirm-modal": Sn,
|
|
3090
3094
|
"error-report-modal": Gn,
|
|
3091
|
-
"loading-modal":
|
|
3095
|
+
"loading-modal": ia,
|
|
3092
3096
|
"prompt-modal": ga,
|
|
3093
3097
|
"startup-crash": Ia,
|
|
3094
3098
|
toast: qa,
|
|
3095
3099
|
...s.components
|
|
3096
3100
|
};
|
|
3097
3101
|
for (const [r, n] of Object.entries(e))
|
|
3098
|
-
|
|
3102
|
+
A.registerComponent(r, n);
|
|
3099
3103
|
await ke(t, Pa);
|
|
3100
3104
|
}
|
|
3101
3105
|
};
|
|
3102
3106
|
async function Da(t, s = {}) {
|
|
3103
3107
|
var r;
|
|
3104
|
-
const e = [an, _r, nn,
|
|
3105
|
-
|
|
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");
|
|
3106
3110
|
}
|
|
3107
|
-
async function
|
|
3111
|
+
async function Ql(t, s = {}) {
|
|
3108
3112
|
var r;
|
|
3109
3113
|
const e = Jt(t);
|
|
3110
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");
|
|
@@ -3112,13 +3116,13 @@ async function Zl(t, s = {}) {
|
|
|
3112
3116
|
const Ba = /* @__PURE__ */ g({
|
|
3113
3117
|
__name: "AppToasts",
|
|
3114
3118
|
setup(t) {
|
|
3115
|
-
return (s, e) => (
|
|
3119
|
+
return (s, e) => (i(), m(l(Os), null, {
|
|
3116
3120
|
default: f(() => [
|
|
3117
|
-
(
|
|
3121
|
+
(i(!0), b(D, null, O(s.$ui.toasts, (r) => (i(), m(ee(r.component), H({
|
|
3118
3122
|
id: r.id,
|
|
3119
3123
|
key: r.id
|
|
3120
3124
|
}, { ref_for: !0 }, r.properties), null, 16, ["id"]))), 128)),
|
|
3121
|
-
d(l(
|
|
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" })
|
|
3122
3126
|
]),
|
|
3123
3127
|
_: 1
|
|
3124
3128
|
}));
|
|
@@ -3126,25 +3130,25 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3126
3130
|
}), ja = /* @__PURE__ */ g({
|
|
3127
3131
|
__name: "AppOverlays",
|
|
3128
3132
|
setup(t) {
|
|
3129
|
-
return (s, e) => (
|
|
3133
|
+
return (s, e) => (i(), b(D, null, [
|
|
3130
3134
|
d(l(ys), { nested: "" }),
|
|
3131
3135
|
d(Ba)
|
|
3132
3136
|
], 64));
|
|
3133
3137
|
}
|
|
3134
|
-
}), Fa = { class: "flex min-h-full flex-col text-base leading-tight font-normal
|
|
3138
|
+
}), Fa = { class: "text-primary-text flex min-h-full flex-col text-base leading-tight font-normal antialiased" }, Jl = /* @__PURE__ */ g({
|
|
3135
3139
|
__name: "AppLayout",
|
|
3136
3140
|
setup(t) {
|
|
3137
|
-
return (s, e) => (
|
|
3141
|
+
return (s, e) => (i(), b("div", Fa, [
|
|
3138
3142
|
s.$errors.hasStartupErrors ? $(s.$slots, "startup-crash", { key: 0 }, () => [
|
|
3139
|
-
(
|
|
3143
|
+
(i(), m(ee(s.$ui.requireComponent("startup-crash"))))
|
|
3140
3144
|
]) : $(s.$slots, "default", { key: 1 }),
|
|
3141
3145
|
d(ja)
|
|
3142
3146
|
]));
|
|
3143
3147
|
}
|
|
3144
|
-
}),
|
|
3148
|
+
}), Oa = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], Ua = /* @__PURE__ */ g({
|
|
3145
3149
|
__name: "HeadlessInputTextArea",
|
|
3146
3150
|
setup(t) {
|
|
3147
|
-
const s = te("$textAreaRef"), e =
|
|
3151
|
+
const s = te("$textAreaRef"), e = q(
|
|
3148
3152
|
"input",
|
|
3149
3153
|
"<HeadlessInputTextArea> must be a child of a <HeadlessInput>"
|
|
3150
3154
|
), r = c(() => e.name ?? void 0), n = c(() => e.value);
|
|
@@ -3154,7 +3158,7 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3154
3158
|
return mt(e, () => {
|
|
3155
3159
|
var u;
|
|
3156
3160
|
return (u = s.value) == null ? void 0 : u.focus();
|
|
3157
|
-
}), (u,
|
|
3161
|
+
}), (u, o) => (i(), b("textarea", {
|
|
3158
3162
|
id: l(e).id,
|
|
3159
3163
|
ref: "$textAreaRef",
|
|
3160
3164
|
name: r.value,
|
|
@@ -3163,28 +3167,42 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3163
3167
|
"aria-invalid": l(e).errors ? "true" : "false",
|
|
3164
3168
|
"aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
|
|
3165
3169
|
onInput: a
|
|
3166
|
-
}, null, 40,
|
|
3170
|
+
}, null, 40, Oa));
|
|
3167
3171
|
}
|
|
3168
|
-
}), Na = { class: "group" }, Wa =
|
|
3172
|
+
}), Na = { class: "group" }, Wa = /* @__PURE__ */ g({
|
|
3169
3173
|
__name: "Details",
|
|
3170
3174
|
props: {
|
|
3171
|
-
label: {
|
|
3175
|
+
label: { default: () => {
|
|
3176
|
+
} },
|
|
3177
|
+
contentClass: {},
|
|
3178
|
+
summaryClass: {}
|
|
3172
3179
|
},
|
|
3173
3180
|
setup(t) {
|
|
3174
|
-
|
|
3175
|
-
|
|
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",
|
|
3183
|
+
"hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700",
|
|
3184
|
+
t.summaryClass
|
|
3185
|
+
));
|
|
3186
|
+
return (r, n) => (i(), b("details", Na, [
|
|
3187
|
+
y("summary", {
|
|
3188
|
+
class: _(e.value)
|
|
3189
|
+
}, [
|
|
3176
3190
|
d(l(It), { class: "size-6 transition-transform group-open:rotate-90" }),
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3191
|
+
$(r.$slots, "label", {}, () => [
|
|
3192
|
+
y("span", null, x(r.label ?? r.$td("ui.details", "Details")), 1)
|
|
3193
|
+
])
|
|
3194
|
+
], 2),
|
|
3195
|
+
y("div", {
|
|
3196
|
+
class: _(s.value)
|
|
3197
|
+
}, [
|
|
3198
|
+
$(r.$slots, "default")
|
|
3199
|
+
], 2)
|
|
3182
3200
|
]));
|
|
3183
3201
|
}
|
|
3184
|
-
}),
|
|
3202
|
+
}), Zl = /* @__PURE__ */ g({
|
|
3185
3203
|
__name: "AdvancedOptions",
|
|
3186
3204
|
setup(t) {
|
|
3187
|
-
return (s, e) => (
|
|
3205
|
+
return (s, e) => (i(), m(Wa, {
|
|
3188
3206
|
label: s.$td("ui.advancedOptions", "Advanced options")
|
|
3189
3207
|
}, {
|
|
3190
3208
|
default: f(() => [
|
|
@@ -3193,7 +3211,7 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3193
3211
|
_: 3
|
|
3194
3212
|
}, 8, ["label"]));
|
|
3195
3213
|
}
|
|
3196
|
-
}),
|
|
3214
|
+
}), Ka = { class: "flex h-6 items-center" }, Xl = /* @__PURE__ */ g({
|
|
3197
3215
|
inheritAttrs: !1,
|
|
3198
3216
|
__name: "Checkbox",
|
|
3199
3217
|
props: {
|
|
@@ -3206,9 +3224,9 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3206
3224
|
},
|
|
3207
3225
|
emits: ["update:modelValue"],
|
|
3208
3226
|
setup(t) {
|
|
3209
|
-
const s = K(t, ["inputClass", "labelClass"]), e = te("$inputRef"), [r, n] = Pe(), a = c(() =>
|
|
3227
|
+
const s = K(t, ["inputClass", "labelClass"]), e = te("$inputRef"), [r, n] = Pe(), a = c(() => T("relative flex items-start", n.value)), u = c(() => {
|
|
3210
3228
|
var p, v;
|
|
3211
|
-
return
|
|
3229
|
+
return T(
|
|
3212
3230
|
"size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
|
|
3213
3231
|
{
|
|
3214
3232
|
"border-gray-300 focus:ring-primary-600": !((p = e.value) != null && p.errors),
|
|
@@ -3216,23 +3234,23 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3216
3234
|
},
|
|
3217
3235
|
t.inputClass
|
|
3218
3236
|
);
|
|
3219
|
-
}),
|
|
3220
|
-
return (p, v) => (
|
|
3237
|
+
}), o = c(() => T("ml-2 text-sm leading-6", t.labelClass));
|
|
3238
|
+
return (p, v) => (i(), m(Be, H({
|
|
3221
3239
|
ref: "$inputRef",
|
|
3222
3240
|
class: a.value
|
|
3223
3241
|
}, s, {
|
|
3224
3242
|
"onUpdate:modelValue": v[0] || (v[0] = (w) => p.$emit("update:modelValue", w))
|
|
3225
3243
|
}), {
|
|
3226
3244
|
default: f(() => [
|
|
3227
|
-
y("div",
|
|
3245
|
+
y("div", Ka, [
|
|
3228
3246
|
d(zt, H(l(r), {
|
|
3229
3247
|
type: "checkbox",
|
|
3230
3248
|
class: u.value
|
|
3231
3249
|
}), null, 16, ["class"])
|
|
3232
3250
|
]),
|
|
3233
|
-
p.$slots.default ? (
|
|
3251
|
+
p.$slots.default ? (i(), b("div", {
|
|
3234
3252
|
key: 0,
|
|
3235
|
-
class: _(
|
|
3253
|
+
class: _(o.value)
|
|
3236
3254
|
}, [
|
|
3237
3255
|
d(ye, { class: "text-gray-900" }, {
|
|
3238
3256
|
default: f(() => [
|
|
@@ -3241,9 +3259,9 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3241
3259
|
_: 3
|
|
3242
3260
|
}),
|
|
3243
3261
|
d(we, { class: "text-red-600" })
|
|
3244
|
-
], 2)) : p.label ? (
|
|
3262
|
+
], 2)) : p.label ? (i(), b("div", {
|
|
3245
3263
|
key: 1,
|
|
3246
|
-
class: _(
|
|
3264
|
+
class: _(o.value)
|
|
3247
3265
|
}, [
|
|
3248
3266
|
d(ye, { class: "text-gray-900" }),
|
|
3249
3267
|
d(we, { class: "text-red-600" })
|
|
@@ -3252,7 +3270,7 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3252
3270
|
_: 3
|
|
3253
3271
|
}, 16, ["class"]));
|
|
3254
3272
|
}
|
|
3255
|
-
}),
|
|
3273
|
+
}), Qa = /* @__PURE__ */ g({
|
|
3256
3274
|
__name: "DropdownMenuOption",
|
|
3257
3275
|
props: {
|
|
3258
3276
|
class: {},
|
|
@@ -3261,11 +3279,11 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3261
3279
|
},
|
|
3262
3280
|
emits: ["select"],
|
|
3263
3281
|
setup(t) {
|
|
3264
|
-
const s = K(t, ["class"]), e = c(() =>
|
|
3282
|
+
const s = K(t, ["class"]), e = c(() => T(
|
|
3265
3283
|
"flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
|
|
3266
3284
|
t.class
|
|
3267
3285
|
));
|
|
3268
|
-
return (r, n) => (
|
|
3286
|
+
return (r, n) => (i(), m(l(Ns), H({ class: e.value }, s, {
|
|
3269
3287
|
onSelect: n[0] || (n[0] = (a) => r.$emit("select"))
|
|
3270
3288
|
}), {
|
|
3271
3289
|
default: f(() => [
|
|
@@ -3274,21 +3292,21 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3274
3292
|
_: 3
|
|
3275
3293
|
}, 16, ["class"]));
|
|
3276
3294
|
}
|
|
3277
|
-
}),
|
|
3295
|
+
}), Ja = /* @__PURE__ */ g({
|
|
3278
3296
|
__name: "DropdownMenuOptions",
|
|
3279
3297
|
setup(t) {
|
|
3280
|
-
const s =
|
|
3298
|
+
const s = q(
|
|
3281
3299
|
"dropdown-menu",
|
|
3282
3300
|
"<DropdownMenuOptions> must be a child of a <DropdownMenu>"
|
|
3283
3301
|
);
|
|
3284
|
-
return (e, r) => (
|
|
3302
|
+
return (e, r) => (i(), m(l(Ws), {
|
|
3285
3303
|
class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
|
|
3286
3304
|
align: l(s).align,
|
|
3287
3305
|
side: l(s).side
|
|
3288
3306
|
}, {
|
|
3289
3307
|
default: f(() => [
|
|
3290
3308
|
$(e.$slots, "default", {}, () => [
|
|
3291
|
-
(
|
|
3309
|
+
(i(!0), b(D, null, O(l(s).options, (n, a) => (i(), m(Qa, H(
|
|
3292
3310
|
{
|
|
3293
3311
|
key: a,
|
|
3294
3312
|
as: n.route || n.href ? _t : void 0,
|
|
@@ -3303,8 +3321,8 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3303
3321
|
} : {},
|
|
3304
3322
|
{
|
|
3305
3323
|
onSelect: (u) => {
|
|
3306
|
-
var
|
|
3307
|
-
return (
|
|
3324
|
+
var o;
|
|
3325
|
+
return (o = n.click) == null ? void 0 : o.call(n);
|
|
3308
3326
|
}
|
|
3309
3327
|
}
|
|
3310
3328
|
), {
|
|
@@ -3318,7 +3336,7 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3318
3336
|
_: 3
|
|
3319
3337
|
}, 8, ["align", "side"]));
|
|
3320
3338
|
}
|
|
3321
|
-
}),
|
|
3339
|
+
}), Yl = /* @__PURE__ */ g({
|
|
3322
3340
|
__name: "DropdownMenu",
|
|
3323
3341
|
props: {
|
|
3324
3342
|
align: {},
|
|
@@ -3334,7 +3352,7 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3334
3352
|
return (r = t.options) == null ? void 0 : r.filter(Boolean);
|
|
3335
3353
|
})
|
|
3336
3354
|
};
|
|
3337
|
-
return pe("dropdown-menu", e), s(e), (r, n) => (
|
|
3355
|
+
return pe("dropdown-menu", e), s(e), (r, n) => (i(), m(l(Ks), null, {
|
|
3338
3356
|
default: f(() => [
|
|
3339
3357
|
d(l(Qs), null, {
|
|
3340
3358
|
default: f(() => [
|
|
@@ -3345,7 +3363,7 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3345
3363
|
d(l(Js), null, {
|
|
3346
3364
|
default: f(() => [
|
|
3347
3365
|
$(r.$slots, "options", {}, () => [
|
|
3348
|
-
d(
|
|
3366
|
+
d(Ja)
|
|
3349
3367
|
])
|
|
3350
3368
|
]),
|
|
3351
3369
|
_: 3
|
|
@@ -3354,7 +3372,7 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3354
3372
|
_: 3
|
|
3355
3373
|
}));
|
|
3356
3374
|
}
|
|
3357
|
-
}),
|
|
3375
|
+
}), Za = ["aria-hidden"], Xa = ["tabindex", "aria-label", "type"], Gl = /* @__PURE__ */ g({
|
|
3358
3376
|
__name: "EditableContent",
|
|
3359
3377
|
props: {
|
|
3360
3378
|
type: { default: "text" },
|
|
@@ -3367,40 +3385,40 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3367
3385
|
},
|
|
3368
3386
|
emits: ["update", "save"],
|
|
3369
3387
|
setup(t, { emit: s }) {
|
|
3370
|
-
const e = s, r = te("$inputRef"), n = N(null), a = N(t.text), u = c(() =>
|
|
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));
|
|
3371
3389
|
function v() {
|
|
3372
3390
|
n.value = t.text;
|
|
3373
3391
|
}
|
|
3374
3392
|
function w() {
|
|
3375
3393
|
n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
|
|
3376
3394
|
}
|
|
3377
|
-
return G(() => a.value = t.text), (h, k) => (
|
|
3395
|
+
return G(() => a.value = t.text), (h, k) => (i(), b("div", {
|
|
3378
3396
|
class: _(["relative", { "pointer-events-none!": h.disabled && !n.value }])
|
|
3379
3397
|
}, [
|
|
3380
|
-
n.value ? (
|
|
3398
|
+
n.value ? (i(), b("span", {
|
|
3381
3399
|
key: 1,
|
|
3382
|
-
class: _(
|
|
3383
|
-
}, x(a.value), 3)) : (
|
|
3400
|
+
class: _(o.value)
|
|
3401
|
+
}, x(a.value), 3)) : (i(), b("div", {
|
|
3384
3402
|
key: 0,
|
|
3385
3403
|
class: _(u.value)
|
|
3386
3404
|
}, [
|
|
3387
3405
|
$(h.$slots, "default")
|
|
3388
3406
|
], 2)),
|
|
3389
|
-
h.type === "number" ? (
|
|
3407
|
+
h.type === "number" ? (i(), b("span", {
|
|
3390
3408
|
key: 2,
|
|
3391
3409
|
class: _(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
|
|
3392
3410
|
}, null, 2)) : E("", !0),
|
|
3393
3411
|
y("form", {
|
|
3394
3412
|
class: "w-full",
|
|
3395
3413
|
"aria-hidden": h.formAriaHidden,
|
|
3396
|
-
onSubmit: k[4] || (k[4] = nt((
|
|
3414
|
+
onSubmit: k[4] || (k[4] = nt((P) => {
|
|
3397
3415
|
var Q;
|
|
3398
3416
|
return (Q = r.value) == null ? void 0 : Q.blur();
|
|
3399
3417
|
}, ["prevent"]))
|
|
3400
3418
|
}, [
|
|
3401
3419
|
at(y("input", {
|
|
3402
3420
|
ref: "$inputRef",
|
|
3403
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
3421
|
+
"onUpdate:modelValue": k[0] || (k[0] = (P) => a.value = P),
|
|
3404
3422
|
tabindex: h.tabindex ?? void 0,
|
|
3405
3423
|
"aria-label": h.ariaLabel ?? void 0,
|
|
3406
3424
|
type: h.type,
|
|
@@ -3408,59 +3426,59 @@ const Ba = /* @__PURE__ */ g({
|
|
|
3408
3426
|
p.value,
|
|
3409
3427
|
{ "opacity-0": !n.value, "appearance-textfield": !n.value && h.type === "number" }
|
|
3410
3428
|
]),
|
|
3411
|
-
onKeyup: k[1] || (k[1] = (
|
|
3412
|
-
onFocus: k[2] || (k[2] = (
|
|
3413
|
-
onBlur: k[3] || (k[3] = (
|
|
3414
|
-
}, null, 42,
|
|
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), [
|
|
3415
3433
|
[Zt, a.value]
|
|
3416
3434
|
])
|
|
3417
|
-
], 40,
|
|
3435
|
+
], 40, Za)
|
|
3418
3436
|
], 2));
|
|
3419
3437
|
}
|
|
3420
|
-
}),
|
|
3438
|
+
}), Ya = {
|
|
3421
3439
|
viewBox: "0 0 512 512",
|
|
3422
3440
|
width: "1.2em",
|
|
3423
3441
|
height: "1.2em"
|
|
3424
3442
|
};
|
|
3425
|
-
function
|
|
3426
|
-
return
|
|
3443
|
+
function Ga(t, s) {
|
|
3444
|
+
return i(), b("svg", Ya, s[0] || (s[0] = [
|
|
3427
3445
|
y("path", {
|
|
3428
3446
|
fill: "currentColor",
|
|
3429
3447
|
d: "M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17m-198.6-1.83a20 20 0 1 1 20-20a20 20 0 0 1-20 20m21.72-201.15l-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7Z"
|
|
3430
3448
|
}, null, -1)
|
|
3431
3449
|
]));
|
|
3432
3450
|
}
|
|
3433
|
-
const
|
|
3451
|
+
const el = V({ name: "ion-warning", render: Ga }), tl = {
|
|
3434
3452
|
viewBox: "0 0 20 20",
|
|
3435
3453
|
width: "1.2em",
|
|
3436
3454
|
height: "1.2em"
|
|
3437
3455
|
};
|
|
3438
|
-
function
|
|
3439
|
-
return
|
|
3456
|
+
function sl(t, s) {
|
|
3457
|
+
return i(), b("svg", tl, s[0] || (s[0] = [
|
|
3440
3458
|
y("path", {
|
|
3441
3459
|
fill: "currentColor",
|
|
3442
3460
|
d: "M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10m9.8 4a4 4 0 1 0 0-8a4 4 0 0 0 0 8m0-2a2 2 0 1 1 0-4a2 2 0 0 1 0 4"
|
|
3443
3461
|
}, null, -1)
|
|
3444
3462
|
]));
|
|
3445
3463
|
}
|
|
3446
|
-
const
|
|
3464
|
+
const rl = V({ name: "zondicons-view-show", render: sl }), nl = { class: "font-medium" }, al = ["datetime"], ll = /* @__PURE__ */ g({
|
|
3447
3465
|
__name: "ErrorLogsModal",
|
|
3448
3466
|
setup(t) {
|
|
3449
|
-
return (s, e) => (
|
|
3467
|
+
return (s, e) => (i(), m(ne, {
|
|
3450
3468
|
title: s.$td("errors.report", "Errors ({count})", { count: s.$errors.logs.length })
|
|
3451
3469
|
}, {
|
|
3452
3470
|
default: f(() => [
|
|
3453
3471
|
y("ol", null, [
|
|
3454
|
-
(
|
|
3472
|
+
(i(!0), b(D, null, O(s.$errors.logs, (r, n) => (i(), b("li", {
|
|
3455
3473
|
key: n,
|
|
3456
3474
|
class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
|
|
3457
3475
|
}, [
|
|
3458
3476
|
y("div", null, [
|
|
3459
|
-
y("h3",
|
|
3477
|
+
y("h3", nl, x(r.report.title), 1),
|
|
3460
3478
|
y("time", {
|
|
3461
3479
|
datetime: r.date.toISOString(),
|
|
3462
3480
|
class: "text-xs text-gray-700"
|
|
3463
|
-
}, x(r.date.toLocaleTimeString()), 9,
|
|
3481
|
+
}, x(r.date.toLocaleTimeString()), 9, al),
|
|
3464
3482
|
d(z, {
|
|
3465
3483
|
class: "text-sm text-gray-500",
|
|
3466
3484
|
text: r.report.description ?? l(Vt)(r.report)
|
|
@@ -3478,7 +3496,7 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
|
|
|
3478
3496
|
)
|
|
3479
3497
|
}, {
|
|
3480
3498
|
default: f(() => [
|
|
3481
|
-
d(l(
|
|
3499
|
+
d(l(rl), {
|
|
3482
3500
|
class: "size-4",
|
|
3483
3501
|
"aria-hidden": "true"
|
|
3484
3502
|
})
|
|
@@ -3491,36 +3509,36 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
|
|
|
3491
3509
|
_: 1
|
|
3492
3510
|
}, 8, ["title"]));
|
|
3493
3511
|
}
|
|
3494
|
-
}),
|
|
3512
|
+
}), ei = /* @__PURE__ */ g({
|
|
3495
3513
|
__name: "ErrorLogs",
|
|
3496
3514
|
setup(t) {
|
|
3497
|
-
return (s, e) => s.$errors.logs.length > 0 ? (
|
|
3515
|
+
return (s, e) => s.$errors.logs.length > 0 ? (i(), m(I, {
|
|
3498
3516
|
key: 0,
|
|
3499
3517
|
size: "icon",
|
|
3500
3518
|
variant: "ghost",
|
|
3501
3519
|
title: s.$td("errors.viewLogs", "View error logs"),
|
|
3502
3520
|
"aria-label": s.$td("errors.viewLogs", "View error logs"),
|
|
3503
|
-
onClick: e[0] || (e[0] = (r) => s.$ui.modal(
|
|
3521
|
+
onClick: e[0] || (e[0] = (r) => s.$ui.modal(ll))
|
|
3504
3522
|
}, {
|
|
3505
3523
|
default: f(() => [
|
|
3506
|
-
d(l(
|
|
3524
|
+
d(l(el), { class: "size-6 text-red-500" })
|
|
3507
3525
|
]),
|
|
3508
3526
|
_: 1
|
|
3509
3527
|
}, 8, ["title", "aria-label"])) : E("", !0);
|
|
3510
3528
|
}
|
|
3511
|
-
}),
|
|
3529
|
+
}), ti = /* @__PURE__ */ g({
|
|
3512
3530
|
__name: "ErrorMessage",
|
|
3513
3531
|
props: {
|
|
3514
3532
|
error: {}
|
|
3515
3533
|
},
|
|
3516
3534
|
setup(t) {
|
|
3517
3535
|
const s = c(() => Vt(t.error));
|
|
3518
|
-
return (e, r) => (
|
|
3536
|
+
return (e, r) => (i(), m(z, {
|
|
3519
3537
|
text: s.value,
|
|
3520
3538
|
inline: ""
|
|
3521
3539
|
}, null, 8, ["text"]));
|
|
3522
3540
|
}
|
|
3523
|
-
}),
|
|
3541
|
+
}), si = /* @__PURE__ */ g({
|
|
3524
3542
|
__name: "Link",
|
|
3525
3543
|
props: {
|
|
3526
3544
|
class: {},
|
|
@@ -3535,30 +3553,31 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
|
|
|
3535
3553
|
as: {}
|
|
3536
3554
|
},
|
|
3537
3555
|
setup(t) {
|
|
3538
|
-
return (s, e) => (
|
|
3556
|
+
return (s, e) => (i(), m(I, H({ variant: "link" }, s.$props), {
|
|
3539
3557
|
default: f(() => [
|
|
3540
3558
|
$(s.$slots, "default")
|
|
3541
3559
|
]),
|
|
3542
3560
|
_: 3
|
|
3543
3561
|
}, 16));
|
|
3544
3562
|
}
|
|
3545
|
-
}),
|
|
3563
|
+
}), ri = /* @__PURE__ */ g({
|
|
3546
3564
|
__name: "SettingsModal",
|
|
3547
3565
|
setup(t) {
|
|
3548
|
-
const s = c(() =>
|
|
3549
|
-
return (e, r) => (
|
|
3550
|
-
title: e.$td("settings.title", "Settings")
|
|
3566
|
+
const s = c(() => is(R.settings, "priority", "desc"));
|
|
3567
|
+
return (e, r) => (i(), m(ne, {
|
|
3568
|
+
title: e.$td("settings.title", "Settings"),
|
|
3569
|
+
"fullscreen-on-mobile": e.$app.settingsFullscreenOnMobile
|
|
3551
3570
|
}, {
|
|
3552
3571
|
default: f(() => [
|
|
3553
|
-
(
|
|
3572
|
+
(i(!0), b(D, null, O(s.value, (n, a) => (i(), m(ee(n.component), { key: a }))), 128))
|
|
3554
3573
|
]),
|
|
3555
3574
|
_: 1
|
|
3556
|
-
}, 8, ["title"]));
|
|
3575
|
+
}, 8, ["title", "fullscreen-on-mobile"]));
|
|
3557
3576
|
}
|
|
3558
|
-
}),
|
|
3577
|
+
}), il = {
|
|
3559
3578
|
key: 0,
|
|
3560
3579
|
class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
|
|
3561
|
-
},
|
|
3580
|
+
}, ni = /* @__PURE__ */ g({
|
|
3562
3581
|
inheritAttrs: !1,
|
|
3563
3582
|
__name: "TextArea",
|
|
3564
3583
|
props: {
|
|
@@ -3571,25 +3590,25 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
|
|
|
3571
3590
|
},
|
|
3572
3591
|
emits: ["update:modelValue"],
|
|
3573
3592
|
setup(t) {
|
|
3574
|
-
const s = K(t, ["label", "inputClass", "wrapperClass"]), e = te("$inputRef"), [r, n] = Pe(), a = c(() =>
|
|
3575
|
-
var
|
|
3576
|
-
return
|
|
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(
|
|
3577
3596
|
// eslint-disable-next-line vue/max-len
|
|
3578
3597
|
"block w-full rounded-md border-0 py-1.5 ring-1 ring-inset focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6",
|
|
3579
3598
|
{
|
|
3580
|
-
"focus:ring-primary-600": !((
|
|
3599
|
+
"focus:ring-primary-600": !((o = e.value) != null && o.errors),
|
|
3581
3600
|
"text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((p = e.value) != null && p.errors),
|
|
3582
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
|
|
3583
3602
|
},
|
|
3584
3603
|
t.inputClass
|
|
3585
3604
|
);
|
|
3586
3605
|
});
|
|
3587
|
-
return (
|
|
3606
|
+
return (o, p) => (i(), m(Be, H({
|
|
3588
3607
|
ref: "$inputRef",
|
|
3589
|
-
label:
|
|
3608
|
+
label: o.label,
|
|
3590
3609
|
class: l(n)
|
|
3591
3610
|
}, s, {
|
|
3592
|
-
"onUpdate:modelValue": p[0] || (p[0] = (v) =>
|
|
3611
|
+
"onUpdate:modelValue": p[0] || (p[0] = (v) => o.$emit("update:modelValue", v))
|
|
3593
3612
|
}), {
|
|
3594
3613
|
default: f(() => {
|
|
3595
3614
|
var v;
|
|
@@ -3598,8 +3617,8 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
|
|
|
3598
3617
|
y("div", {
|
|
3599
3618
|
class: _(a.value)
|
|
3600
3619
|
}, [
|
|
3601
|
-
d(
|
|
3602
|
-
(v = e.value) != null && v.errors ? (
|
|
3620
|
+
d(Ua, H(l(r), { class: u.value }), null, 16, ["class"]),
|
|
3621
|
+
(v = e.value) != null && v.errors ? (i(), b("div", il, [
|
|
3603
3622
|
d(l(De), { class: "size-5 text-red-500" })
|
|
3604
3623
|
])) : E("", !0)
|
|
3605
3624
|
], 2),
|
|
@@ -3611,7 +3630,7 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
|
|
|
3611
3630
|
}, 16, ["label", "class"]));
|
|
3612
3631
|
}
|
|
3613
3632
|
});
|
|
3614
|
-
class
|
|
3633
|
+
class ai {
|
|
3615
3634
|
constructor() {
|
|
3616
3635
|
C(this, "status");
|
|
3617
3636
|
C(this, "_listeners");
|
|
@@ -3619,7 +3638,7 @@ class oo {
|
|
|
3619
3638
|
C(this, "_cancelled");
|
|
3620
3639
|
C(this, "_started");
|
|
3621
3640
|
C(this, "_completed");
|
|
3622
|
-
this.status = this.getInitialStatus(), this._listeners = new
|
|
3641
|
+
this.status = this.getInitialStatus(), this._listeners = new os(), this._started = new J(), this._completed = new J();
|
|
3623
3642
|
}
|
|
3624
3643
|
async start() {
|
|
3625
3644
|
this.beforeStart(), this._started.resolve();
|
|
@@ -3686,35 +3705,35 @@ class oo {
|
|
|
3686
3705
|
return { ...s };
|
|
3687
3706
|
}
|
|
3688
3707
|
}
|
|
3689
|
-
async function
|
|
3708
|
+
async function li(t) {
|
|
3690
3709
|
await t.start();
|
|
3691
3710
|
}
|
|
3692
3711
|
export {
|
|
3693
|
-
|
|
3712
|
+
Zl as AdvancedOptions,
|
|
3694
3713
|
bn as AlertModal,
|
|
3695
|
-
|
|
3696
|
-
|
|
3714
|
+
R as App,
|
|
3715
|
+
Jl as AppLayout,
|
|
3697
3716
|
ja as AppOverlays,
|
|
3698
3717
|
sr as AppService,
|
|
3699
3718
|
Ba as AppToasts,
|
|
3700
3719
|
I as Button,
|
|
3701
|
-
|
|
3720
|
+
zl as Cache,
|
|
3702
3721
|
Cr as CacheService,
|
|
3703
|
-
|
|
3722
|
+
Xl as Checkbox,
|
|
3704
3723
|
Sn as ConfirmModal,
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
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,
|
|
3713
3732
|
Gn as ErrorReportModal,
|
|
3714
|
-
|
|
3733
|
+
Un as ErrorReportModalButtons,
|
|
3715
3734
|
Nn as ErrorReportModalTitle,
|
|
3716
3735
|
$t as Errors,
|
|
3717
|
-
|
|
3736
|
+
_l as EventListenerPriorities,
|
|
3718
3737
|
F as Events,
|
|
3719
3738
|
er as EventsService,
|
|
3720
3739
|
Lt as Form,
|
|
@@ -3725,7 +3744,7 @@ export {
|
|
|
3725
3744
|
we as HeadlessInputError,
|
|
3726
3745
|
zt as HeadlessInputInput,
|
|
3727
3746
|
ye as HeadlessInputLabel,
|
|
3728
|
-
|
|
3747
|
+
Ua as HeadlessInputTextArea,
|
|
3729
3748
|
cn as HeadlessModal,
|
|
3730
3749
|
dn as HeadlessModalContent,
|
|
3731
3750
|
pn as HeadlessModalDescription,
|
|
@@ -3740,19 +3759,19 @@ export {
|
|
|
3740
3759
|
Xr as HeadlessSwitch,
|
|
3741
3760
|
Ra as HeadlessToast,
|
|
3742
3761
|
pa as Input,
|
|
3743
|
-
|
|
3762
|
+
ai as Job,
|
|
3744
3763
|
tt as JobCancelledError,
|
|
3745
3764
|
Xe as LOCAL_TIMEZONE_OFFSET,
|
|
3746
3765
|
X as Lang,
|
|
3747
3766
|
be as Layouts,
|
|
3748
|
-
|
|
3749
|
-
|
|
3767
|
+
si as Link,
|
|
3768
|
+
ia as LoadingModal,
|
|
3750
3769
|
yr as MINUTE_MILLISECONDS,
|
|
3751
3770
|
bt as MOBILE_BREAKPOINT,
|
|
3752
3771
|
z as Markdown,
|
|
3753
3772
|
ne as Modal,
|
|
3754
|
-
|
|
3755
|
-
|
|
3773
|
+
ui as ModalComponent,
|
|
3774
|
+
ci as ModalsPortal,
|
|
3756
3775
|
aa as ProgressBar,
|
|
3757
3776
|
ga as PromptModal,
|
|
3758
3777
|
Dr as Select,
|
|
@@ -3763,73 +3782,73 @@ export {
|
|
|
3763
3782
|
Se as Service,
|
|
3764
3783
|
Ve as ServiceBootError,
|
|
3765
3784
|
Jr as Setting,
|
|
3766
|
-
|
|
3785
|
+
ri as SettingsModal,
|
|
3767
3786
|
Ia as StartupCrash,
|
|
3768
3787
|
vt as Storage,
|
|
3769
3788
|
Yr as Switch,
|
|
3770
|
-
|
|
3789
|
+
ni as TextArea,
|
|
3771
3790
|
qa as Toast,
|
|
3772
|
-
|
|
3791
|
+
A as UI,
|
|
3773
3792
|
Mr as UIService,
|
|
3774
|
-
|
|
3793
|
+
Ml as __valueType,
|
|
3775
3794
|
$r as aerogelDirectives,
|
|
3776
3795
|
Zs as appNamespace,
|
|
3777
|
-
|
|
3796
|
+
Pl as booleanInput,
|
|
3778
3797
|
ke as bootServices,
|
|
3779
|
-
|
|
3798
|
+
Ql as bootstrap,
|
|
3780
3799
|
Da as bootstrapApplication,
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
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,
|
|
3790
3809
|
xe as defineServiceState,
|
|
3791
3810
|
Gs as defineServiceStore,
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3811
|
+
Cl as defineSettings,
|
|
3812
|
+
li as dispatch,
|
|
3813
|
+
Dl as enumInput,
|
|
3795
3814
|
yt as getCurrentLayout,
|
|
3796
3815
|
Vt as getErrorMessage,
|
|
3797
3816
|
vr as getMarkdownRouter,
|
|
3798
3817
|
Ys as getPiniaStore,
|
|
3799
3818
|
zr as hasSelectOptionLabel,
|
|
3800
|
-
|
|
3819
|
+
fi as injectModal,
|
|
3801
3820
|
lr as injectOrFail,
|
|
3802
3821
|
ar as injectReactive,
|
|
3803
|
-
|
|
3822
|
+
q as injectReactiveOrFail,
|
|
3804
3823
|
rr as installPlugins,
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3824
|
+
mi as modals,
|
|
3825
|
+
Nl as numberInput,
|
|
3826
|
+
Wl as objectInput,
|
|
3827
|
+
El as onCleanMounted,
|
|
3809
3828
|
mt as onFormFocus,
|
|
3810
|
-
|
|
3829
|
+
Hl as persistent,
|
|
3811
3830
|
fr as reactiveSet,
|
|
3812
|
-
|
|
3831
|
+
ql as registerErrorHandler,
|
|
3813
3832
|
br as renderMarkdown,
|
|
3814
3833
|
pt as renderVNode,
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3834
|
+
Rl as replaceExisting,
|
|
3835
|
+
Bl as requiredBooleanInput,
|
|
3836
|
+
jl as requiredDateInput,
|
|
3837
|
+
Fl as requiredEnumInput,
|
|
3838
|
+
Ol as requiredNumberInput,
|
|
3839
|
+
Ul as requiredObjectInput,
|
|
3821
3840
|
fa as requiredStringInput,
|
|
3822
3841
|
Xs as resetPiniaStore,
|
|
3823
3842
|
gt as safeHtml,
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3843
|
+
Il as setMarkdownRouter,
|
|
3844
|
+
hi as showModal,
|
|
3845
|
+
Kl as stringInput,
|
|
3827
3846
|
wt as translate,
|
|
3828
3847
|
S as translateWithDefault,
|
|
3829
3848
|
vn as useAlertModal,
|
|
3830
3849
|
yn as useConfirmModal,
|
|
3831
3850
|
Wn as useErrorReportModal,
|
|
3832
|
-
|
|
3851
|
+
kl as useEvent,
|
|
3833
3852
|
ht as useForm,
|
|
3834
3853
|
Pe as useInputAttrs,
|
|
3835
3854
|
la as useLoadingModal,
|