@aerogel/core 0.1.1-next.ce10b6d6ba4cd98145cf14595fb4f292b979e2dc → 0.1.1-next.d6144642389e7fbf7ef662ecdbb069e185750112
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.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var Ot = Object.defineProperty;
|
|
2
2
|
var Ft = (t, s, e) => s in t ? Ot(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
3
|
var C = (t, s, e) => Ft(t, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
-
import { markRaw as R, Comment as Ut, Text as Nt, Static as Wt, inject as te, reactive as we, unref as l, onUnmounted as Ce, ref as B, computed as d, readonly as ke, nextTick as Kt, useAttrs as
|
|
5
|
-
import { JSError as Te, stringToSlug as ss, tap as ne, MagicObject as
|
|
4
|
+
import { markRaw as R, Comment as Ut, Text as Nt, Static as Wt, inject as te, reactive as we, unref as l, onUnmounted as Ce, ref as B, computed as d, readonly as ke, nextTick as Kt, useAttrs as at, onMounted as lt, watch as X, toRaw as Qt, customRef as Jt, watchEffect as se, defineComponent as v, createBlock as g, openBlock as i, mergeProps as I, withCtx as h, renderSlot as $, createPropsRestProxy as K, provide as oe, createVNode as p, normalizeProps as me, guardReactiveProps as fe, createTextVNode as z, toDisplayString as x, normalizeClass as _, createElementBlock as y, Fragment as j, renderList as F, resolveDynamicComponent as re, useSlots as Se, createCommentVNode as T, createElementVNode as w, h as Zt, useTemplateRef as Z, withModifiers as ot, withDirectives as it, vModelCheckbox as Gt, normalizeStyle as We, resolveComponent as Xt, createApp as Yt, withKeys as es, vModelText as ts } from "vue";
|
|
5
|
+
import { JSError as Te, stringToSlug as ss, tap as ne, MagicObject as ut, PromisedValue as G, Storage as Q, objectOnly as ie, arrayFrom as ct, isEmpty as He, objectDeepClone as rs, fail as J, facade as ae, arrayRemove as ze, getEnv as ns, updateLocationQueryParameters as as, forever as ls, toString as O, objectWithout as os, noop as is, debounce as us, stringMatchAll as dt, isDevelopment as Y, isTesting as qe, isObject as be, after as ce, uuid as pe, objectWithoutEmpty as pt, evaluate as cs, isInstanceOf as Ke, stringExcerpt as ds, arraySorted as ps, ListenersManager as ms, toError as fs, round as hs } from "@noeldemartin/utils";
|
|
6
6
|
import N from "virtual:aerogel";
|
|
7
7
|
import { createPinia as gs, setActivePinia as vs, defineStore as bs } from "pinia";
|
|
8
8
|
import ys from "dompurify";
|
|
9
|
-
import { marked as ws, Renderer as
|
|
10
|
-
import { injectModal as
|
|
11
|
-
import { ModalComponent as
|
|
9
|
+
import { marked as ws, Renderer as Qe } from "marked";
|
|
10
|
+
import { injectModal as mt, useModal as $s, createModal as _s, showModal as Je, closeModal as Ze, modals as ue, ModalComponent as xs, ModalsPortal as Cs } from "@noeldemartin/vue-modals";
|
|
11
|
+
import { ModalComponent as Ao, ModalsPortal as Po, closeModal as Do, createModal as Bo, injectModal as jo, modals as Oo, showModal as Fo } from "@noeldemartin/vue-modals";
|
|
12
12
|
import ks from "clsx";
|
|
13
13
|
import { cva as Ss } from "class-variance-authority";
|
|
14
14
|
import { twMerge as Ts } from "tailwind-merge";
|
|
15
|
-
import { Primitive as Ms, SelectValue as
|
|
15
|
+
import { Primitive as Ms, SelectValue as Ge, SelectTrigger as Vs, SelectIcon as Es, SelectItem as Hs, SelectItemText as Ls, SelectPortal as Is, SelectContent as zs, SelectViewport as Rs, SelectRoot as qs, Label as ft, useForwardExpose as Ae, SwitchRoot as As, SwitchThumb as Ps, DialogRoot as Ds, DialogPortal as Bs, DialogContent as js, DialogDescription as Os, DialogOverlay as Fs, DialogTitle as Us, ToastClose as Ns, ToastRoot as Ws, ToastProvider as Ks, ToastViewport as Qs, injectComboboxRootContext as Js, ComboboxItem as Zs, useFilter as Gs, ComboboxPortal as Xs, ComboboxContent as Ys, ComboboxViewport as er, ComboboxEmpty as tr, ComboboxGroup as sr, ComboboxAnchor as rr, ComboboxInput as nr, ComboboxRoot as ar, DropdownMenuItem as lr, DropdownMenuContent as or, DropdownMenuRoot as ir, DropdownMenuTrigger as ur, DropdownMenuPortal as cr } from "reka-ui";
|
|
16
16
|
class Re extends Te {
|
|
17
17
|
constructor(s, e) {
|
|
18
18
|
super(`Service '${s}' failed booting`, { cause: e });
|
|
@@ -21,20 +21,20 @@ class Re extends Te {
|
|
|
21
21
|
function dr() {
|
|
22
22
|
return N.namespace ?? ss(N.name);
|
|
23
23
|
}
|
|
24
|
-
let
|
|
25
|
-
function
|
|
26
|
-
return
|
|
24
|
+
let Pe = null;
|
|
25
|
+
function ht() {
|
|
26
|
+
return Pe ?? pr();
|
|
27
27
|
}
|
|
28
28
|
function pr() {
|
|
29
29
|
return ne(gs(), (t) => {
|
|
30
|
-
|
|
30
|
+
Pe = t, vs(t);
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
function mr() {
|
|
34
|
-
return
|
|
34
|
+
return Pe ?? ht();
|
|
35
35
|
}
|
|
36
36
|
function fr(t, s) {
|
|
37
|
-
return
|
|
37
|
+
return ht(), bs(t, s)();
|
|
38
38
|
}
|
|
39
39
|
function Me(t) {
|
|
40
40
|
var s;
|
|
@@ -75,7 +75,7 @@ To fix this problem, declare your initialState as a function instead.`
|
|
|
75
75
|
}, C(s, "persist", t.persist ?? []), s;
|
|
76
76
|
}
|
|
77
77
|
var Ie;
|
|
78
|
-
let Ve = (Ie = class extends
|
|
78
|
+
let Ve = (Ie = class extends ut {
|
|
79
79
|
constructor() {
|
|
80
80
|
super();
|
|
81
81
|
C(this, "_name");
|
|
@@ -124,7 +124,7 @@ let Ve = (Ie = class extends it {
|
|
|
124
124
|
updatePersistedState(e) {
|
|
125
125
|
if (!this._store)
|
|
126
126
|
return;
|
|
127
|
-
const r =
|
|
127
|
+
const r = ct(e), n = ie(this._store.$state, r);
|
|
128
128
|
He(n) || this.onPersistentStateUpdated(n);
|
|
129
129
|
}
|
|
130
130
|
__get(e) {
|
|
@@ -140,8 +140,8 @@ let Ve = (Ie = class extends it {
|
|
|
140
140
|
const n = ie(e, this.static("persist"));
|
|
141
141
|
He(n) || this.onPersistentStateUpdated(n);
|
|
142
142
|
for (const a in e) {
|
|
143
|
-
const
|
|
144
|
-
!
|
|
143
|
+
const c = this._watchers[a];
|
|
144
|
+
!c || e[a] === r[a] || c.call(this, e[a], r[a]);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
onPersistentStateUpdated(e) {
|
|
@@ -210,43 +210,43 @@ class hr extends Ve {
|
|
|
210
210
|
async emit(e, r) {
|
|
211
211
|
var a;
|
|
212
212
|
const n = this.listeners[e] ?? { priorities: [], handlers: {} };
|
|
213
|
-
for (const
|
|
214
|
-
await Promise.all(((a = n.handlers[
|
|
213
|
+
for (const c of n.priorities)
|
|
214
|
+
await Promise.all(((a = n.handlers[c]) == null ? void 0 : a.map((o) => o(r))) ?? []);
|
|
215
215
|
}
|
|
216
216
|
// prettier-ignore
|
|
217
217
|
/* eslint-enable max-len */
|
|
218
218
|
on(e, r, n) {
|
|
219
|
-
const a = typeof r == "function" ? {} : typeof r == "number" ? { priority: r } : r,
|
|
220
|
-
return this.registerListener(e, a,
|
|
219
|
+
const a = typeof r == "function" ? {} : typeof r == "number" ? { priority: r } : r, c = typeof r == "function" ? r : n;
|
|
220
|
+
return this.registerListener(e, a, c), () => this.off(e, c);
|
|
221
221
|
}
|
|
222
222
|
// prettier-ignore
|
|
223
223
|
/* eslint-enable max-len */
|
|
224
224
|
once(e, r, n) {
|
|
225
225
|
let a = null;
|
|
226
|
-
const
|
|
226
|
+
const c = typeof r == "function" ? {} : r, o = typeof r == "function" ? r : n;
|
|
227
227
|
return ne(
|
|
228
228
|
() => a && this.off(e, a),
|
|
229
|
-
(
|
|
230
|
-
a = (...f) => (
|
|
229
|
+
(u) => {
|
|
230
|
+
a = (...f) => (u(), o(...f)), this.registerListener(e, c, o);
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
234
|
off(e, r) {
|
|
235
|
-
var
|
|
235
|
+
var c;
|
|
236
236
|
const n = this.listeners[e];
|
|
237
237
|
if (!n)
|
|
238
238
|
return;
|
|
239
239
|
const a = [...n.priorities];
|
|
240
|
-
for (const
|
|
241
|
-
ze(n.handlers[
|
|
240
|
+
for (const o of a)
|
|
241
|
+
ze(n.handlers[o] ?? [], r), ((c = n.handlers[o]) == null ? void 0 : c.length) === 0 && (delete n.handlers[o], ze(n.priorities, o));
|
|
242
242
|
n.priorities.length === 0 && delete this.listeners[e];
|
|
243
243
|
}
|
|
244
244
|
registerListener(e, r, n) {
|
|
245
|
-
var
|
|
245
|
+
var u, f, m;
|
|
246
246
|
const a = r.priority ?? 0;
|
|
247
247
|
e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
|
|
248
|
-
const
|
|
249
|
-
|
|
248
|
+
const c = ((u = this.listeners[e]) == null ? void 0 : u.priorities) ?? J(`priorities missing for event '${e}'`), o = ((f = this.listeners[e]) == null ? void 0 : f.handlers) ?? J(`handlers missing for event '${e}'`);
|
|
249
|
+
c.includes(a) || (c.push(a), c.sort((b, M) => M - b), o[a] = []), (m = o[a]) == null || m.push(n);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
const W = ae(hr);
|
|
@@ -312,12 +312,12 @@ class vr extends gr {
|
|
|
312
312
|
W.once("application-ready", () => this.ready.resolve()), W.once("application-mounted", () => this.mounted.resolve());
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
const
|
|
315
|
+
const P = ae(vr);
|
|
316
316
|
function Zl(t) {
|
|
317
317
|
return t;
|
|
318
318
|
}
|
|
319
319
|
async function br(t, ...s) {
|
|
320
|
-
|
|
320
|
+
P.setState(
|
|
321
321
|
"plugins",
|
|
322
322
|
t.reduce(
|
|
323
323
|
(e, r) => (r.name && (e[r.name] = r), e),
|
|
@@ -341,10 +341,10 @@ function L(t, s) {
|
|
|
341
341
|
function $r(t, s) {
|
|
342
342
|
return te(t) ?? J(s ?? `Could not resolve '${O(t)}' injection key`);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function gt(t) {
|
|
345
345
|
return typeof t == "string" ? t : t.type === Ut ? "" : t.type === Nt || t.type === Wt ? t.children : t.type === "br" ? `
|
|
346
346
|
|
|
347
|
-
` : `<${t.type} ${yr(t)}>${Array.from(t.children).map(
|
|
347
|
+
` : `<${t.type} ${yr(t)}>${Array.from(t.children).map(gt).join("")}</${t.type}>`;
|
|
348
348
|
}
|
|
349
349
|
const Le = /* @__PURE__ */ new WeakMap(), _r = {
|
|
350
350
|
mounted(t, { value: s, modifiers: e }) {
|
|
@@ -359,9 +359,9 @@ const Le = /* @__PURE__ */ new WeakMap(), _r = {
|
|
|
359
359
|
(s = Le.get(t)) == null || s.unobserve(t), Le.delete(t);
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
|
-
function
|
|
363
|
-
const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s,
|
|
364
|
-
return k(
|
|
362
|
+
function vt(t, s) {
|
|
363
|
+
const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, c = Ss(n, a);
|
|
364
|
+
return k(c(r), l(e));
|
|
365
365
|
}
|
|
366
366
|
function k(...t) {
|
|
367
367
|
return Ts(ks(t));
|
|
@@ -405,10 +405,10 @@ function Sr(t, s) {
|
|
|
405
405
|
function Tr(t, s) {
|
|
406
406
|
var r;
|
|
407
407
|
const e = (r = ye[s]) == null ? void 0 : r.call(ye, t);
|
|
408
|
-
return e ?
|
|
408
|
+
return e ? ct(e) : [];
|
|
409
409
|
}
|
|
410
|
-
const eo = Symbol(),
|
|
411
|
-
class Mr extends
|
|
410
|
+
const eo = Symbol(), Xe = /* @__PURE__ */ new WeakMap();
|
|
411
|
+
class Mr extends ut {
|
|
412
412
|
constructor(e) {
|
|
413
413
|
super();
|
|
414
414
|
C(this, "errors");
|
|
@@ -417,14 +417,14 @@ class Mr extends it {
|
|
|
417
417
|
C(this, "_submitted");
|
|
418
418
|
C(this, "_errors");
|
|
419
419
|
C(this, "_listeners", {});
|
|
420
|
-
this._fields = e, this._submitted = B(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e),
|
|
420
|
+
this._fields = e, this._submitted = B(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), Xe.set(
|
|
421
421
|
this,
|
|
422
422
|
d(() => !Object.values(this._errors).some((r) => r !== null))
|
|
423
423
|
), this.errors = ke(this._errors);
|
|
424
424
|
}
|
|
425
425
|
get valid() {
|
|
426
426
|
var e;
|
|
427
|
-
return !!((e =
|
|
427
|
+
return !!((e = Xe.get(this)) != null && e.value);
|
|
428
428
|
}
|
|
429
429
|
get submitted() {
|
|
430
430
|
return this._submitted.value;
|
|
@@ -488,16 +488,16 @@ class Mr extends it {
|
|
|
488
488
|
this.setFieldValue(e, r);
|
|
489
489
|
}
|
|
490
490
|
getFieldErrors(e, r) {
|
|
491
|
-
const n = [], a = this._data[e],
|
|
491
|
+
const n = [], a = this._data[e], c = r.rules ?? [];
|
|
492
492
|
n.push(...Sr(a, r));
|
|
493
|
-
for (const
|
|
494
|
-
|
|
493
|
+
for (const o of c)
|
|
494
|
+
o !== "required" && a == null || n.push(...Tr(a, o));
|
|
495
495
|
return n.length > 0 ? n : null;
|
|
496
496
|
}
|
|
497
497
|
getInitialData(e) {
|
|
498
498
|
if (this.static().isConjuring())
|
|
499
499
|
return {};
|
|
500
|
-
const r = Object.entries(e).reduce((n, [a,
|
|
500
|
+
const r = Object.entries(e).reduce((n, [a, c]) => (n[a] = c.default ?? null, n), {});
|
|
501
501
|
return we(r);
|
|
502
502
|
}
|
|
503
503
|
getInitialErrors(e) {
|
|
@@ -514,49 +514,49 @@ class Mr extends it {
|
|
|
514
514
|
Object.keys(this._errors).forEach((r) => delete this._errors[r]), e && Object.assign(this._errors, e);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function bt(t, s) {
|
|
518
518
|
const e = te("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
|
|
519
519
|
Ce(() => r == null ? void 0 : r());
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function yt(t) {
|
|
522
522
|
return new Mr(t);
|
|
523
523
|
}
|
|
524
524
|
function De() {
|
|
525
|
-
const t =
|
|
525
|
+
const t = at(), s = d(() => t.class);
|
|
526
526
|
return [d(() => os(t, "class")), s];
|
|
527
527
|
}
|
|
528
528
|
function to(t) {
|
|
529
529
|
let s = is;
|
|
530
|
-
|
|
530
|
+
lt(() => s = t()), Ce(() => s());
|
|
531
531
|
}
|
|
532
532
|
function so(t, s) {
|
|
533
533
|
const e = we(Q.get(t) ?? s);
|
|
534
534
|
return X(e, () => Q.set(t, Qt(e))), e;
|
|
535
535
|
}
|
|
536
|
-
function Vr(t) {
|
|
537
|
-
let
|
|
538
|
-
const
|
|
539
|
-
get: () =>
|
|
536
|
+
function Vr(t, s = {}) {
|
|
537
|
+
let e = new Set(t), r, n;
|
|
538
|
+
const a = s == null ? void 0 : s.equals, c = a ? (u) => o.value.values().some((f) => a(u, f)) : () => !1, o = Jt((u, f) => (n = u, r = f, {
|
|
539
|
+
get: () => e,
|
|
540
540
|
set: () => J("Attempted to write read-only reactive set")
|
|
541
541
|
}));
|
|
542
542
|
return {
|
|
543
543
|
values() {
|
|
544
|
-
return
|
|
544
|
+
return n(), Array.from(o.value.values());
|
|
545
545
|
},
|
|
546
|
-
has(
|
|
547
|
-
return
|
|
546
|
+
has(u) {
|
|
547
|
+
return n(), o.value.has(u) || c(u);
|
|
548
548
|
},
|
|
549
|
-
add(
|
|
550
|
-
|
|
549
|
+
add(u) {
|
|
550
|
+
r(), !c(u) && o.value.add(u);
|
|
551
551
|
},
|
|
552
|
-
delete(
|
|
553
|
-
|
|
552
|
+
delete(u) {
|
|
553
|
+
r(), o.value.delete(u);
|
|
554
554
|
},
|
|
555
555
|
clear() {
|
|
556
|
-
|
|
556
|
+
r(), o.value.clear();
|
|
557
557
|
},
|
|
558
|
-
reset(
|
|
559
|
-
|
|
558
|
+
reset(u) {
|
|
559
|
+
r(), e = new Set(u);
|
|
560
560
|
}
|
|
561
561
|
};
|
|
562
562
|
}
|
|
@@ -565,26 +565,26 @@ function ro(t) {
|
|
|
565
565
|
return X(e, async () => s.value = await e.value, { immediate: !0 }), s;
|
|
566
566
|
}
|
|
567
567
|
function no(t, s) {
|
|
568
|
-
const e = s ? t : {}, r = s ?? t, n = B(e.initial ?? null), a = us((
|
|
568
|
+
const e = s ? t : {}, r = s ?? t, n = B(e.initial ?? null), a = us((c) => n.value = c, e.delay ?? 300);
|
|
569
569
|
return se(() => a(r())), n;
|
|
570
570
|
}
|
|
571
571
|
let de = null;
|
|
572
572
|
function Er() {
|
|
573
|
-
return ne(new
|
|
573
|
+
return ne(new Qe(), (t) => {
|
|
574
574
|
t.link = function(s) {
|
|
575
|
-
const e =
|
|
575
|
+
const e = Qe.prototype.link.apply(this, [s]);
|
|
576
576
|
return s.href.startsWith("#") ? e : e.replace("<a", '<a target="_blank"');
|
|
577
577
|
};
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
580
|
function Hr(t) {
|
|
581
|
-
const s =
|
|
581
|
+
const s = dt(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
582
582
|
for (const [e, r, n] of s)
|
|
583
583
|
t = t.replace(e, `<button type="button" data-markdown-action="${r}">${n}</button>`);
|
|
584
584
|
return t;
|
|
585
585
|
}
|
|
586
586
|
function Lr(t) {
|
|
587
|
-
const s =
|
|
587
|
+
const s = dt(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
588
588
|
for (const [e, r, n] of s) {
|
|
589
589
|
const a = (de == null ? void 0 : de.resolve(r)) ?? r;
|
|
590
590
|
t = t.replace(e, `<a data-markdown-route="${r}" href="${a}">${n}</a>`);
|
|
@@ -599,26 +599,26 @@ function ao(t) {
|
|
|
599
599
|
}
|
|
600
600
|
function zr(t) {
|
|
601
601
|
let s = ws(t, { renderer: Er(), async: !1 });
|
|
602
|
-
return s =
|
|
602
|
+
return s = wt(s), s = Hr(s), s = Lr(s), s;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function wt(t) {
|
|
605
605
|
return ys.sanitize(t, { ADD_ATTR: ["target"] });
|
|
606
606
|
}
|
|
607
607
|
const Rr = 6e4;
|
|
608
|
-
function
|
|
608
|
+
function Ye(t) {
|
|
609
609
|
return -(t ?? /* @__PURE__ */ new Date()).getTimezoneOffset() * -Rr;
|
|
610
610
|
}
|
|
611
611
|
const qr = {
|
|
612
612
|
mounted(t, { value: s }) {
|
|
613
|
-
t.innerHTML =
|
|
613
|
+
t.innerHTML = wt(s);
|
|
614
614
|
}
|
|
615
|
-
},
|
|
615
|
+
}, Ar = {
|
|
616
616
|
measure: _r,
|
|
617
617
|
"safe-html": qr
|
|
618
|
-
},
|
|
618
|
+
}, Pr = {
|
|
619
619
|
install(t, s) {
|
|
620
620
|
const e = {
|
|
621
|
-
...
|
|
621
|
+
...Ar,
|
|
622
622
|
...s.directives
|
|
623
623
|
};
|
|
624
624
|
for (const [r, n] of Object.entries(e))
|
|
@@ -652,7 +652,7 @@ class Br extends Ve {
|
|
|
652
652
|
await W.emit("purge-storage");
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
const
|
|
655
|
+
const $t = ae(Br);
|
|
656
656
|
function oo(t, s) {
|
|
657
657
|
return {
|
|
658
658
|
...t,
|
|
@@ -660,16 +660,16 @@ function oo(t, s) {
|
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
662
|
const jr = {
|
|
663
|
-
$app:
|
|
663
|
+
$app: P,
|
|
664
664
|
$events: W,
|
|
665
|
-
$storage:
|
|
665
|
+
$storage: $t
|
|
666
666
|
};
|
|
667
667
|
async function Ee(t, s) {
|
|
668
668
|
await Promise.all(
|
|
669
669
|
Object.entries(s).map(async ([e, r]) => {
|
|
670
670
|
await r.launch().catch((n) => {
|
|
671
|
-
var a,
|
|
672
|
-
return (
|
|
671
|
+
var a, c;
|
|
672
|
+
return (c = (a = t.config).errorHandler) == null ? void 0 : c.call(a, n, null, `Failed launching ${e}.`);
|
|
673
673
|
});
|
|
674
674
|
})
|
|
675
675
|
), Object.assign(t.config.globalProperties, s), (Y() || qe()) && Object.assign(globalThis, s);
|
|
@@ -681,37 +681,117 @@ const Or = {
|
|
|
681
681
|
...jr,
|
|
682
682
|
...s.services
|
|
683
683
|
};
|
|
684
|
-
t.use(mr()), (r = s.settings) == null || r.forEach((n) =>
|
|
684
|
+
t.use(mr()), (r = s.settings) == null || r.forEach((n) => P.addSetting(n)), s.settingsFullscreenOnMobile !== void 0 && P.setSettingsFullscreenOnMobile(s.settingsFullscreenOnMobile), await Ee(t, e);
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
class Fr {
|
|
688
|
+
constructor(s, e) {
|
|
689
|
+
this.locale = s, this.fallbackLocale = e;
|
|
690
|
+
}
|
|
691
|
+
getLocale() {
|
|
692
|
+
return this.locale;
|
|
693
|
+
}
|
|
694
|
+
async setLocale(s) {
|
|
695
|
+
this.locale = s;
|
|
696
|
+
}
|
|
697
|
+
getFallbackLocale() {
|
|
698
|
+
return this.fallbackLocale;
|
|
699
|
+
}
|
|
700
|
+
async setFallbackLocale(s) {
|
|
701
|
+
this.fallbackLocale = s;
|
|
702
|
+
}
|
|
703
|
+
getLocales() {
|
|
704
|
+
return ["en"];
|
|
705
|
+
}
|
|
706
|
+
translate(s) {
|
|
707
|
+
return Y() && console.warn("Lang provider is missing"), s;
|
|
708
|
+
}
|
|
709
|
+
translateWithDefault(s, e) {
|
|
710
|
+
return Y() && console.warn("Lang provider is missing"), e;
|
|
685
711
|
}
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
712
|
+
}
|
|
713
|
+
const Ur = Me({
|
|
714
|
+
name: "lang",
|
|
715
|
+
persist: ["locale", "fallbackLocale"],
|
|
716
|
+
initialState: {
|
|
717
|
+
locale: null,
|
|
718
|
+
locales: ["en"],
|
|
719
|
+
fallbackLocale: "en"
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
class Nr extends Ur {
|
|
723
|
+
constructor() {
|
|
724
|
+
super();
|
|
725
|
+
C(this, "provider");
|
|
726
|
+
this.provider = new Fr(
|
|
727
|
+
this.getState("locale") ?? this.getBrowserLocale(),
|
|
728
|
+
this.getState("fallbackLocale")
|
|
729
|
+
);
|
|
730
|
+
}
|
|
731
|
+
async setProvider(e) {
|
|
732
|
+
this.provider = e, this.locales = e.getLocales(), await e.setLocale(this.locale ?? this.getBrowserLocale()), await e.setFallbackLocale(this.fallbackLocale);
|
|
733
|
+
}
|
|
734
|
+
translate(e, r) {
|
|
735
|
+
return this.provider.translate(e, r) ?? e;
|
|
736
|
+
}
|
|
737
|
+
translateWithDefault(e, r, n = {}) {
|
|
738
|
+
return this.provider.translateWithDefault(e, r, n);
|
|
739
|
+
}
|
|
740
|
+
getBrowserLocale() {
|
|
741
|
+
const e = this.getState("locales");
|
|
742
|
+
return navigator.languages.find((r) => e.includes(r)) ?? "en";
|
|
743
|
+
}
|
|
744
|
+
async boot() {
|
|
745
|
+
globalThis.document && this.requireStore().$subscribe(
|
|
746
|
+
async () => {
|
|
747
|
+
var e, r;
|
|
748
|
+
await this.provider.setLocale(this.locale ?? this.getBrowserLocale()), await this.provider.setFallbackLocale(this.fallbackLocale), this.locale ? (e = document.querySelector("html")) == null || e.setAttribute("lang", this.locale) : (r = document.querySelector("html")) == null || r.removeAttribute("lang");
|
|
749
|
+
},
|
|
750
|
+
{ immediate: !0 }
|
|
751
|
+
);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
const ee = ae(Nr), _t = ee.translate.bind(ee), S = ee.translateWithDefault.bind(ee), xt = [];
|
|
755
|
+
function io(t) {
|
|
756
|
+
xt.push(t);
|
|
757
|
+
}
|
|
758
|
+
function Be(t) {
|
|
759
|
+
for (const s of xt) {
|
|
760
|
+
const e = s(t);
|
|
761
|
+
if (e)
|
|
762
|
+
return e;
|
|
763
|
+
}
|
|
764
|
+
return typeof t == "string" ? t : t instanceof Error || t instanceof Te ? t.message : be(t) ? O(t.message ?? t.description ?? "Unknown error object") : S("errors.unknown", "Unknown Error");
|
|
765
|
+
}
|
|
766
|
+
const et = /* @__PURE__ */ new WeakSet();
|
|
767
|
+
function je() {
|
|
768
|
+
const t = mt(), { close: s, remove: e, ...r } = $s(et.has(t) ? {} : { removeOnClose: !1 });
|
|
769
|
+
return et.add(t), {
|
|
690
770
|
...r,
|
|
691
771
|
async close(n) {
|
|
692
772
|
s(n), await ce(1e3), e();
|
|
693
773
|
}
|
|
694
774
|
};
|
|
695
775
|
}
|
|
696
|
-
const
|
|
776
|
+
const Ct = 768, $e = {
|
|
697
777
|
Mobile: "mobile",
|
|
698
778
|
Desktop: "desktop"
|
|
699
779
|
};
|
|
700
|
-
function
|
|
701
|
-
return globalThis.innerWidth >
|
|
780
|
+
function kt() {
|
|
781
|
+
return globalThis.innerWidth > Ct ? $e.Desktop : $e.Mobile;
|
|
702
782
|
}
|
|
703
|
-
const
|
|
783
|
+
const Wr = Me({
|
|
704
784
|
name: "ui",
|
|
705
785
|
initialState: {
|
|
706
786
|
toasts: [],
|
|
707
|
-
layout:
|
|
787
|
+
layout: kt()
|
|
708
788
|
},
|
|
709
789
|
computed: {
|
|
710
790
|
desktop: ({ layout: t }) => t === $e.Desktop,
|
|
711
791
|
mobile: ({ layout: t }) => t === $e.Mobile
|
|
712
792
|
}
|
|
713
793
|
});
|
|
714
|
-
class
|
|
794
|
+
class Kr extends Wr {
|
|
715
795
|
constructor() {
|
|
716
796
|
super(...arguments);
|
|
717
797
|
C(this, "components", {});
|
|
@@ -735,7 +815,7 @@ class Ur extends Fr {
|
|
|
735
815
|
// prettier-ignore
|
|
736
816
|
/* eslint-enable max-len */
|
|
737
817
|
async confirm(e, r, n) {
|
|
738
|
-
const
|
|
818
|
+
const c = typeof r != "string" ? {
|
|
739
819
|
...r ?? {},
|
|
740
820
|
message: e,
|
|
741
821
|
required: !!(r != null && r.required)
|
|
@@ -744,28 +824,28 @@ class Ur extends Fr {
|
|
|
744
824
|
title: e,
|
|
745
825
|
message: r,
|
|
746
826
|
required: !!(n != null && n.required)
|
|
747
|
-
}, { response:
|
|
827
|
+
}, { response: o } = await this.modal(this.requireComponent("confirm-modal"), c), u = typeof o == "object" ? o[0] : o ?? !1, f = typeof o == "object" ? o[1] : Object.entries(c.checkboxes ?? {}).reduce(
|
|
748
828
|
(m, [b, { default: M }]) => ({
|
|
749
829
|
[b]: M ?? !1,
|
|
750
830
|
...m
|
|
751
831
|
}),
|
|
752
832
|
{}
|
|
753
833
|
);
|
|
754
|
-
for (const [m, b] of Object.entries(
|
|
834
|
+
for (const [m, b] of Object.entries(c.checkboxes ?? {}))
|
|
755
835
|
if (!(!b.required || f[m]))
|
|
756
|
-
return
|
|
757
|
-
return "checkboxes" in
|
|
836
|
+
return u && Y() && console.warn(`Confirmed confirm modal was suppressed because required '${m}' checkbox was missing`), [!1, f];
|
|
837
|
+
return "checkboxes" in c ? [u, f] : u;
|
|
758
838
|
}
|
|
759
839
|
async prompt(e, r, n) {
|
|
760
|
-
const a = (n == null ? void 0 : n.trim) ?? !0,
|
|
840
|
+
const a = (n == null ? void 0 : n.trim) ?? !0, c = () => typeof r != "string" ? {
|
|
761
841
|
message: e,
|
|
762
842
|
...r ?? {}
|
|
763
843
|
} : {
|
|
764
844
|
title: e,
|
|
765
845
|
message: r,
|
|
766
846
|
...n ?? {}
|
|
767
|
-
}, { response:
|
|
768
|
-
return (a && typeof
|
|
847
|
+
}, { response: o } = await this.modal(this.requireComponent("prompt-modal"), c());
|
|
848
|
+
return (a && typeof o == "string" ? o == null ? void 0 : o.trim() : o) ?? null;
|
|
769
849
|
}
|
|
770
850
|
async loading(e, r) {
|
|
771
851
|
const n = (b) => typeof b == "function" ? Promise.resolve(b()) : b, a = () => {
|
|
@@ -783,32 +863,32 @@ class Ur extends Fr {
|
|
|
783
863
|
operationPromise: n(r)
|
|
784
864
|
};
|
|
785
865
|
};
|
|
786
|
-
let
|
|
787
|
-
const { operationPromise:
|
|
788
|
-
if (f && await Promise.race([ce({ ms: f }).then(() =>
|
|
789
|
-
return
|
|
790
|
-
const m = _s(this.requireComponent("loading-modal"),
|
|
791
|
-
|
|
866
|
+
let c = !1;
|
|
867
|
+
const { operationPromise: o, props: u, delay: f } = a();
|
|
868
|
+
if (f && await Promise.race([ce({ ms: f }).then(() => c = !0), o]), f && !c)
|
|
869
|
+
return o;
|
|
870
|
+
const m = _s(this.requireComponent("loading-modal"), u);
|
|
871
|
+
Je(m);
|
|
792
872
|
try {
|
|
793
|
-
const b = await
|
|
873
|
+
const b = await o;
|
|
794
874
|
return await ce({ ms: 500 }), b;
|
|
795
875
|
} finally {
|
|
796
|
-
await
|
|
876
|
+
await Ze(m.id, { removeAfter: 1e3 });
|
|
797
877
|
}
|
|
798
878
|
}
|
|
799
879
|
toast(e, r = {}) {
|
|
800
|
-
const { component: n, ...a } = r,
|
|
880
|
+
const { component: n, ...a } = r, c = {
|
|
801
881
|
id: pe(),
|
|
802
882
|
properties: { message: e, ...a },
|
|
803
883
|
component: R(n ?? this.requireComponent("toast"))
|
|
804
884
|
};
|
|
805
|
-
this.setState("toasts", this.toasts.concat(
|
|
885
|
+
this.setState("toasts", this.toasts.concat(c));
|
|
806
886
|
}
|
|
807
887
|
modal(e, r) {
|
|
808
|
-
return
|
|
888
|
+
return Je(e, r ?? {});
|
|
809
889
|
}
|
|
810
890
|
async closeAllModals() {
|
|
811
|
-
await Promise.all(ue.value.map(({ id: e }) =>
|
|
891
|
+
await Promise.all(ue.value.map(({ id: e }) => Ze(e, { removeAfter: 1e3 })));
|
|
812
892
|
}
|
|
813
893
|
async boot() {
|
|
814
894
|
this.watchMountedEvent(), this.watchViewportBreakpoints();
|
|
@@ -824,78 +904,10 @@ class Ur extends Fr {
|
|
|
824
904
|
watchViewportBreakpoints() {
|
|
825
905
|
if (!globalThis.matchMedia)
|
|
826
906
|
return;
|
|
827
|
-
globalThis.matchMedia(`(min-width: ${
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
const D = ae(Ur);
|
|
831
|
-
class Nr {
|
|
832
|
-
constructor(s, e) {
|
|
833
|
-
this.locale = s, this.fallbackLocale = e;
|
|
834
|
-
}
|
|
835
|
-
getLocale() {
|
|
836
|
-
return this.locale;
|
|
837
|
-
}
|
|
838
|
-
async setLocale(s) {
|
|
839
|
-
this.locale = s;
|
|
840
|
-
}
|
|
841
|
-
getFallbackLocale() {
|
|
842
|
-
return this.fallbackLocale;
|
|
843
|
-
}
|
|
844
|
-
async setFallbackLocale(s) {
|
|
845
|
-
this.fallbackLocale = s;
|
|
846
|
-
}
|
|
847
|
-
getLocales() {
|
|
848
|
-
return ["en"];
|
|
849
|
-
}
|
|
850
|
-
translate(s) {
|
|
851
|
-
return Y() && console.warn("Lang provider is missing"), s;
|
|
852
|
-
}
|
|
853
|
-
translateWithDefault(s, e) {
|
|
854
|
-
return Y() && console.warn("Lang provider is missing"), e;
|
|
907
|
+
globalThis.matchMedia(`(min-width: ${Ct}px)`).addEventListener("change", () => this.setState({ layout: kt() }));
|
|
855
908
|
}
|
|
856
909
|
}
|
|
857
|
-
const
|
|
858
|
-
name: "lang",
|
|
859
|
-
persist: ["locale", "fallbackLocale"],
|
|
860
|
-
initialState: {
|
|
861
|
-
locale: null,
|
|
862
|
-
locales: ["en"],
|
|
863
|
-
fallbackLocale: "en"
|
|
864
|
-
}
|
|
865
|
-
});
|
|
866
|
-
class Kr extends Wr {
|
|
867
|
-
constructor() {
|
|
868
|
-
super();
|
|
869
|
-
C(this, "provider");
|
|
870
|
-
this.provider = new Nr(
|
|
871
|
-
this.getState("locale") ?? this.getBrowserLocale(),
|
|
872
|
-
this.getState("fallbackLocale")
|
|
873
|
-
);
|
|
874
|
-
}
|
|
875
|
-
async setProvider(e) {
|
|
876
|
-
this.provider = e, this.locales = e.getLocales(), await e.setLocale(this.locale ?? this.getBrowserLocale()), await e.setFallbackLocale(this.fallbackLocale);
|
|
877
|
-
}
|
|
878
|
-
translate(e, r) {
|
|
879
|
-
return this.provider.translate(e, r) ?? e;
|
|
880
|
-
}
|
|
881
|
-
translateWithDefault(e, r, n = {}) {
|
|
882
|
-
return this.provider.translateWithDefault(e, r, n);
|
|
883
|
-
}
|
|
884
|
-
getBrowserLocale() {
|
|
885
|
-
const e = this.getState("locales");
|
|
886
|
-
return navigator.languages.find((r) => e.includes(r)) ?? "en";
|
|
887
|
-
}
|
|
888
|
-
async boot() {
|
|
889
|
-
globalThis.document && this.requireStore().$subscribe(
|
|
890
|
-
async () => {
|
|
891
|
-
var e, r;
|
|
892
|
-
await this.provider.setLocale(this.locale ?? this.getBrowserLocale()), await this.provider.setFallbackLocale(this.fallbackLocale), this.locale ? (e = document.querySelector("html")) == null || e.setAttribute("lang", this.locale) : (r = document.querySelector("html")) == null || r.removeAttribute("lang");
|
|
893
|
-
},
|
|
894
|
-
{ immediate: !0 }
|
|
895
|
-
);
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
const ee = ae(Kr), xt = ee.translate.bind(ee), S = ee.translateWithDefault.bind(ee), Qr = Me({
|
|
910
|
+
const D = ae(Kr), Qr = Me({
|
|
899
911
|
name: "errors",
|
|
900
912
|
initialState: {
|
|
901
913
|
logs: [],
|
|
@@ -933,9 +945,9 @@ class Jr extends Qr {
|
|
|
933
945
|
async report(e, r) {
|
|
934
946
|
if (await W.emit("error", { error: e, message: r }), qe("unit") || (Y() && this.logError(e), !this.enabled))
|
|
935
947
|
throw e;
|
|
936
|
-
if (!
|
|
937
|
-
const
|
|
938
|
-
|
|
948
|
+
if (!P.isMounted()) {
|
|
949
|
+
const c = await this.createStartupErrorReport(e);
|
|
950
|
+
c && this.setState({ startupErrors: this.startupErrors.concat(c) });
|
|
939
951
|
return;
|
|
940
952
|
}
|
|
941
953
|
const n = await this.createErrorReport(e), a = {
|
|
@@ -988,7 +1000,7 @@ class Jr extends Qr {
|
|
|
988
1000
|
return be(e) && "title" in e;
|
|
989
1001
|
}
|
|
990
1002
|
async createErrorReport(e) {
|
|
991
|
-
return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof Te ? this.createErrorReportFromError(e) : be(e) ?
|
|
1003
|
+
return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof Te ? this.createErrorReportFromError(e) : be(e) ? pt({
|
|
992
1004
|
title: O(
|
|
993
1005
|
e.name ?? e.title ?? S("errors.unknown", "Unknown Error")
|
|
994
1006
|
),
|
|
@@ -1014,7 +1026,7 @@ class Jr extends Qr {
|
|
|
1014
1026
|
};
|
|
1015
1027
|
}
|
|
1016
1028
|
}
|
|
1017
|
-
const
|
|
1029
|
+
const St = ae(Jr), Tt = /* @__PURE__ */ v({
|
|
1018
1030
|
__name: "HeadlessButton",
|
|
1019
1031
|
props: {
|
|
1020
1032
|
class: {},
|
|
@@ -1032,7 +1044,7 @@ const Ct = ae(Jr), kt = /* @__PURE__ */ v({
|
|
|
1032
1044
|
setup(t) {
|
|
1033
1045
|
const s = d(() => t.as ? { as: t.as } : t.route ? {
|
|
1034
1046
|
as: D.resolveComponent("router-link") ?? "a",
|
|
1035
|
-
to:
|
|
1047
|
+
to: pt({
|
|
1036
1048
|
name: t.route,
|
|
1037
1049
|
params: t.routeParams,
|
|
1038
1050
|
query: t.routeQuery
|
|
@@ -1045,7 +1057,7 @@ const Ct = ae(Jr), kt = /* @__PURE__ */ v({
|
|
|
1045
1057
|
as: "button",
|
|
1046
1058
|
type: t.submit ? "submit" : "button"
|
|
1047
1059
|
});
|
|
1048
|
-
return (e, r) => (
|
|
1060
|
+
return (e, r) => (i(), g(l(Ms), I({
|
|
1049
1061
|
class: t.class,
|
|
1050
1062
|
"as-child": e.asChild,
|
|
1051
1063
|
disabled: e.disabled
|
|
@@ -1072,7 +1084,7 @@ const Ct = ae(Jr), kt = /* @__PURE__ */ v({
|
|
|
1072
1084
|
as: {}
|
|
1073
1085
|
},
|
|
1074
1086
|
setup(t) {
|
|
1075
|
-
const s = K(t, ["class", "size", "variant", "disabled"]), e = d(() =>
|
|
1087
|
+
const s = K(t, ["class", "size", "variant", "disabled"]), e = d(() => vt(
|
|
1076
1088
|
{ baseClasses: t.class, variant: t.variant, size: t.size, disabled: t.disabled },
|
|
1077
1089
|
{
|
|
1078
1090
|
baseClasses: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
@@ -1168,7 +1180,7 @@ const Ct = ae(Jr), kt = /* @__PURE__ */ v({
|
|
|
1168
1180
|
}
|
|
1169
1181
|
}
|
|
1170
1182
|
));
|
|
1171
|
-
return (r, n) => (
|
|
1183
|
+
return (r, n) => (i(), g(Tt, I({
|
|
1172
1184
|
class: e.value,
|
|
1173
1185
|
disabled: r.disabled
|
|
1174
1186
|
}, s), {
|
|
@@ -1182,15 +1194,15 @@ const Ct = ae(Jr), kt = /* @__PURE__ */ v({
|
|
|
1182
1194
|
function Zr(t) {
|
|
1183
1195
|
return typeof t == "object" && t !== null && "label" in t;
|
|
1184
1196
|
}
|
|
1185
|
-
function
|
|
1197
|
+
function Mt(t, s) {
|
|
1186
1198
|
const e = te("form", null), r = (m) => m === void 0 ? "" : t.value.renderOption ? t.value.renderOption(m) : Zr(m) ? cs(m.label) : O(m), n = d(() => {
|
|
1187
1199
|
const { name: m, modelValue: b } = t.value;
|
|
1188
1200
|
return e && m ? e.getFieldValue(m) : b;
|
|
1189
|
-
}), a = d(() => n.value),
|
|
1201
|
+
}), a = d(() => n.value), c = d(() => !e || !t.value.name ? null : e.errors[t.value.name] ?? null), o = d(() => t.value.options ? t.value.options.map((m) => ({
|
|
1190
1202
|
key: pe(),
|
|
1191
1203
|
label: r(m),
|
|
1192
1204
|
value: m
|
|
1193
|
-
})) : null),
|
|
1205
|
+
})) : null), u = {
|
|
1194
1206
|
renderOption: r,
|
|
1195
1207
|
labelClass: d(() => t.value.labelClass),
|
|
1196
1208
|
optionsClass: d(() => t.value.optionsClass),
|
|
@@ -1202,12 +1214,12 @@ function St(t, s) {
|
|
|
1202
1214
|
label: d(() => t.value.label),
|
|
1203
1215
|
description: d(() => t.value.description),
|
|
1204
1216
|
placeholder: d(() => t.value.placeholder ?? S("ui.select", "Select an option")),
|
|
1205
|
-
options:
|
|
1217
|
+
options: o,
|
|
1206
1218
|
selectedOption: d(() => {
|
|
1207
1219
|
var m;
|
|
1208
|
-
return (m =
|
|
1220
|
+
return (m = o.value) == null ? void 0 : m.find((b) => b.value === t.value.modelValue);
|
|
1209
1221
|
}),
|
|
1210
|
-
errors: ke(
|
|
1222
|
+
errors: ke(c),
|
|
1211
1223
|
required: d(() => {
|
|
1212
1224
|
if (!(!t.value.name || !e))
|
|
1213
1225
|
return e.getFieldRules(t.value.name).includes("required");
|
|
@@ -1221,18 +1233,18 @@ function St(t, s) {
|
|
|
1221
1233
|
}
|
|
1222
1234
|
};
|
|
1223
1235
|
function f(m) {
|
|
1224
|
-
|
|
1236
|
+
u.update(m);
|
|
1225
1237
|
}
|
|
1226
|
-
return oe("select",
|
|
1238
|
+
return oe("select", u), { expose: u, acceptableValue: a, update: f, renderOption: r };
|
|
1227
1239
|
}
|
|
1228
|
-
const
|
|
1240
|
+
const Vt = /* @__PURE__ */ v({
|
|
1229
1241
|
__name: "HeadlessSelectValue",
|
|
1230
1242
|
setup(t) {
|
|
1231
1243
|
const s = L(
|
|
1232
1244
|
"select",
|
|
1233
1245
|
"<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
|
|
1234
1246
|
);
|
|
1235
|
-
return (e, r) => e.$slots.default ? (
|
|
1247
|
+
return (e, r) => e.$slots.default ? (i(), g(l(Ge), {
|
|
1236
1248
|
key: 0,
|
|
1237
1249
|
placeholder: l(s).placeholder
|
|
1238
1250
|
}, {
|
|
@@ -1240,24 +1252,24 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1240
1252
|
$(e.$slots, "default")
|
|
1241
1253
|
]),
|
|
1242
1254
|
_: 3
|
|
1243
|
-
}, 8, ["placeholder"])) : (
|
|
1255
|
+
}, 8, ["placeholder"])) : (i(), g(l(Ge), {
|
|
1244
1256
|
key: 1,
|
|
1245
1257
|
placeholder: l(s).placeholder
|
|
1246
1258
|
}, null, 8, ["placeholder"]));
|
|
1247
1259
|
}
|
|
1248
|
-
}),
|
|
1260
|
+
}), Et = /* @__PURE__ */ v({
|
|
1249
1261
|
__name: "HeadlessSelectTrigger",
|
|
1250
1262
|
setup(t) {
|
|
1251
1263
|
const s = L(
|
|
1252
1264
|
"select",
|
|
1253
1265
|
"<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
|
|
1254
1266
|
);
|
|
1255
|
-
return (e, r) => (
|
|
1267
|
+
return (e, r) => (i(), g(l(Vs), {
|
|
1256
1268
|
id: l(s).id
|
|
1257
1269
|
}, {
|
|
1258
1270
|
default: h(() => [
|
|
1259
1271
|
$(e.$slots, "default", {}, () => [
|
|
1260
|
-
p(
|
|
1272
|
+
p(Vt, {
|
|
1261
1273
|
placeholder: l(s).placeholder
|
|
1262
1274
|
}, null, 8, ["placeholder"]),
|
|
1263
1275
|
p(l(Es))
|
|
@@ -1266,7 +1278,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1266
1278
|
_: 3
|
|
1267
1279
|
}, 8, ["id"]));
|
|
1268
1280
|
}
|
|
1269
|
-
}),
|
|
1281
|
+
}), Ht = /* @__PURE__ */ v({
|
|
1270
1282
|
__name: "HeadlessSelectOption",
|
|
1271
1283
|
props: {
|
|
1272
1284
|
value: {},
|
|
@@ -1284,7 +1296,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1284
1296
|
const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
|
|
1285
1297
|
return r ? s.renderOption(r.value) : O(t.value);
|
|
1286
1298
|
});
|
|
1287
|
-
return (r, n) => (
|
|
1299
|
+
return (r, n) => (i(), g(l(Hs), me(fe(r.$props)), {
|
|
1288
1300
|
default: h(() => [
|
|
1289
1301
|
p(l(Ls), null, {
|
|
1290
1302
|
default: h(() => [
|
|
@@ -1298,7 +1310,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1298
1310
|
_: 3
|
|
1299
1311
|
}, 16));
|
|
1300
1312
|
}
|
|
1301
|
-
}),
|
|
1313
|
+
}), Lt = /* @__PURE__ */ v({
|
|
1302
1314
|
__name: "HeadlessSelectOptions",
|
|
1303
1315
|
props: {
|
|
1304
1316
|
class: {},
|
|
@@ -1309,7 +1321,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1309
1321
|
"select",
|
|
1310
1322
|
"<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
|
|
1311
1323
|
), e = d(() => k("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
|
|
1312
|
-
return (r, n) => (
|
|
1324
|
+
return (r, n) => (i(), g(l(Is), null, {
|
|
1313
1325
|
default: h(() => [
|
|
1314
1326
|
p(l(zs), {
|
|
1315
1327
|
position: "popper",
|
|
@@ -1324,7 +1336,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1324
1336
|
}, {
|
|
1325
1337
|
default: h(() => [
|
|
1326
1338
|
$(r.$slots, "default", {}, () => [
|
|
1327
|
-
(
|
|
1339
|
+
(i(!0), y(j, null, F(l(s).options ?? [], (a) => (i(), g(Ht, {
|
|
1328
1340
|
key: a.key,
|
|
1329
1341
|
value: a.value
|
|
1330
1342
|
}, null, 8, ["value"]))), 128))
|
|
@@ -1359,24 +1371,24 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1359
1371
|
},
|
|
1360
1372
|
emits: ["update:modelValue"],
|
|
1361
1373
|
setup(t, { expose: s, emit: e }) {
|
|
1362
|
-
const r = e, n = K(t, ["as", "compareOptions"]), { expose: a, acceptableValue:
|
|
1374
|
+
const r = e, n = K(t, ["as", "compareOptions"]), { expose: a, acceptableValue: c, update: o } = Mt(
|
|
1363
1375
|
d(() => ({ as: t.as, compareOptions: t.compareOptions, ...n })),
|
|
1364
1376
|
r
|
|
1365
1377
|
);
|
|
1366
|
-
return s(a), (
|
|
1367
|
-
"model-value": l(
|
|
1368
|
-
by:
|
|
1369
|
-
"onUpdate:modelValue": f[0] || (f[0] = (m) => l(
|
|
1378
|
+
return s(a), (u, f) => (i(), g(l(qs), {
|
|
1379
|
+
"model-value": l(c),
|
|
1380
|
+
by: u.compareOptions,
|
|
1381
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => l(o)(m))
|
|
1370
1382
|
}, {
|
|
1371
1383
|
default: h(({ open: m }) => [
|
|
1372
|
-
(
|
|
1384
|
+
(i(), g(re(u.as), me(fe(u.$attrs)), {
|
|
1373
1385
|
default: h(() => [
|
|
1374
|
-
$(
|
|
1375
|
-
modelValue:
|
|
1386
|
+
$(u.$slots, "default", {
|
|
1387
|
+
modelValue: u.modelValue,
|
|
1376
1388
|
open: m
|
|
1377
1389
|
}, () => [
|
|
1378
|
-
p(
|
|
1379
|
-
p(
|
|
1390
|
+
p(Et),
|
|
1391
|
+
p(Lt)
|
|
1380
1392
|
])
|
|
1381
1393
|
]),
|
|
1382
1394
|
_: 2
|
|
@@ -1385,7 +1397,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1385
1397
|
_: 3
|
|
1386
1398
|
}, 8, ["model-value", "by"]));
|
|
1387
1399
|
}
|
|
1388
|
-
}),
|
|
1400
|
+
}), tt = /* @__PURE__ */ v({
|
|
1389
1401
|
__name: "HeadlessSelectLabel",
|
|
1390
1402
|
props: {
|
|
1391
1403
|
asChild: { type: Boolean },
|
|
@@ -1396,7 +1408,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1396
1408
|
"select",
|
|
1397
1409
|
"<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
|
|
1398
1410
|
), e = Se(), r = d(() => !!(s.label || e.default));
|
|
1399
|
-
return (n, a) => r.value ? (
|
|
1411
|
+
return (n, a) => r.value ? (i(), g(l(ft), I({
|
|
1400
1412
|
key: 0,
|
|
1401
1413
|
for: l(s).id
|
|
1402
1414
|
}, n.$props), {
|
|
@@ -1408,14 +1420,14 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1408
1420
|
_: 3
|
|
1409
1421
|
}, 16, ["for"])) : T("", !0);
|
|
1410
1422
|
}
|
|
1411
|
-
}),
|
|
1423
|
+
}), It = /* @__PURE__ */ v({
|
|
1412
1424
|
__name: "SelectLabel",
|
|
1413
1425
|
props: {
|
|
1414
1426
|
class: {}
|
|
1415
1427
|
},
|
|
1416
1428
|
setup(t) {
|
|
1417
1429
|
const s = L("select", "<SelectLabel> must be a child of a <Select>"), e = d(() => k("block text-sm leading-6 font-medium text-gray-900", s.labelClass, t.class));
|
|
1418
|
-
return (r, n) => r.$slots.default ? (
|
|
1430
|
+
return (r, n) => r.$slots.default ? (i(), g(tt, {
|
|
1419
1431
|
key: 0,
|
|
1420
1432
|
class: _(e.value)
|
|
1421
1433
|
}, {
|
|
@@ -1423,12 +1435,12 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1423
1435
|
$(r.$slots, "default")
|
|
1424
1436
|
]),
|
|
1425
1437
|
_: 3
|
|
1426
|
-
}, 8, ["class"])) : (
|
|
1438
|
+
}, 8, ["class"])) : (i(), g(tt, {
|
|
1427
1439
|
key: 1,
|
|
1428
1440
|
class: _(e.value)
|
|
1429
1441
|
}, null, 8, ["class"]));
|
|
1430
1442
|
}
|
|
1431
|
-
}),
|
|
1443
|
+
}), st = /* @__PURE__ */ v({
|
|
1432
1444
|
__name: "SelectOption",
|
|
1433
1445
|
props: {
|
|
1434
1446
|
value: {},
|
|
@@ -1441,7 +1453,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1441
1453
|
"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",
|
|
1442
1454
|
t.innerClass
|
|
1443
1455
|
));
|
|
1444
|
-
return (r, n) => (
|
|
1456
|
+
return (r, n) => (i(), g(Ht, {
|
|
1445
1457
|
class: _(s.value),
|
|
1446
1458
|
value: r.value
|
|
1447
1459
|
}, {
|
|
@@ -1455,7 +1467,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1455
1467
|
_: 3
|
|
1456
1468
|
}, 8, ["class", "value"]));
|
|
1457
1469
|
}
|
|
1458
|
-
}),
|
|
1470
|
+
}), zt = /* @__PURE__ */ v({
|
|
1459
1471
|
__name: "SelectOptions",
|
|
1460
1472
|
props: {
|
|
1461
1473
|
class: {}
|
|
@@ -1466,27 +1478,27 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1466
1478
|
s.optionsClass,
|
|
1467
1479
|
t.class
|
|
1468
1480
|
));
|
|
1469
|
-
return (r, n) => (
|
|
1481
|
+
return (r, n) => (i(), g(Lt, {
|
|
1470
1482
|
class: _(e.value)
|
|
1471
1483
|
}, {
|
|
1472
1484
|
default: h(() => {
|
|
1473
1485
|
var a;
|
|
1474
1486
|
return [
|
|
1475
1487
|
(a = l(s).options) != null && a.length ? $(r.$slots, "default", { key: 0 }, () => {
|
|
1476
|
-
var
|
|
1488
|
+
var c;
|
|
1477
1489
|
return [
|
|
1478
|
-
(
|
|
1479
|
-
key:
|
|
1480
|
-
value:
|
|
1490
|
+
(i(!0), y(j, null, F(((c = l(s)) == null ? void 0 : c.options) ?? [], (o) => (i(), g(st, {
|
|
1491
|
+
key: o.key,
|
|
1492
|
+
value: o.value
|
|
1481
1493
|
}, {
|
|
1482
1494
|
default: h(() => [
|
|
1483
|
-
z(x(
|
|
1495
|
+
z(x(o.label), 1)
|
|
1484
1496
|
]),
|
|
1485
1497
|
_: 2
|
|
1486
1498
|
}, 1032, ["value"]))), 128))
|
|
1487
1499
|
];
|
|
1488
1500
|
}) : $(r.$slots, "default", { key: 1 }, () => [
|
|
1489
|
-
p(
|
|
1501
|
+
p(st, {
|
|
1490
1502
|
disabled: "",
|
|
1491
1503
|
value: null
|
|
1492
1504
|
}, {
|
|
@@ -1507,7 +1519,7 @@ const Tt = /* @__PURE__ */ v({
|
|
|
1507
1519
|
height: "1.2em"
|
|
1508
1520
|
};
|
|
1509
1521
|
function Yr(t, s) {
|
|
1510
|
-
return
|
|
1522
|
+
return i(), y("svg", Xr, s[0] || (s[0] = [
|
|
1511
1523
|
w("path", {
|
|
1512
1524
|
fill: "currentColor",
|
|
1513
1525
|
d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
|
|
@@ -1520,7 +1532,7 @@ const en = R({ name: "zondicons-cheveron-down", render: Yr }), tn = {
|
|
|
1520
1532
|
height: "1.2em"
|
|
1521
1533
|
};
|
|
1522
1534
|
function sn(t, s) {
|
|
1523
|
-
return
|
|
1535
|
+
return i(), y("svg", tn, s[0] || (s[0] = [
|
|
1524
1536
|
w("path", {
|
|
1525
1537
|
fill: "currentColor",
|
|
1526
1538
|
d: "M2.93 17.07A10 10 0 1 1 17.07 2.93A10 10 0 0 1 2.93 17.07M9 5v6h2V5zm0 8v2h2v-2z"
|
|
@@ -1530,7 +1542,7 @@ function sn(t, s) {
|
|
|
1530
1542
|
const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
1531
1543
|
key: 0,
|
|
1532
1544
|
class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
|
|
1533
|
-
},
|
|
1545
|
+
}, Rt = /* @__PURE__ */ v({
|
|
1534
1546
|
__name: "SelectTrigger",
|
|
1535
1547
|
props: {
|
|
1536
1548
|
class: {}
|
|
@@ -1549,15 +1561,15 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1549
1561
|
},
|
|
1550
1562
|
t.class
|
|
1551
1563
|
));
|
|
1552
|
-
return (r, n) => (
|
|
1564
|
+
return (r, n) => (i(), g(Et, {
|
|
1553
1565
|
class: _(e.value)
|
|
1554
1566
|
}, {
|
|
1555
1567
|
default: h(() => {
|
|
1556
1568
|
var a;
|
|
1557
1569
|
return [
|
|
1558
|
-
p(
|
|
1570
|
+
p(Vt, { class: "col-start-1 row-start-1 truncate pr-6" }),
|
|
1559
1571
|
p(l(en), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" }),
|
|
1560
|
-
(a = l(s)) != null && a.errors ? (
|
|
1572
|
+
(a = l(s)) != null && a.errors ? (i(), y("div", rn, [
|
|
1561
1573
|
p(l(he), { class: "size-5 text-red-500" })
|
|
1562
1574
|
])) : T("", !0)
|
|
1563
1575
|
];
|
|
@@ -1565,14 +1577,14 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1565
1577
|
_: 1
|
|
1566
1578
|
}, 8, ["class"]));
|
|
1567
1579
|
}
|
|
1568
|
-
}), nn = ["id"],
|
|
1580
|
+
}), nn = ["id"], qt = /* @__PURE__ */ v({
|
|
1569
1581
|
__name: "HeadlessSelectError",
|
|
1570
1582
|
setup(t) {
|
|
1571
1583
|
const s = L(
|
|
1572
1584
|
"select",
|
|
1573
1585
|
"<HeadlessSelectError> must be a child of a <HeadlessSelect>"
|
|
1574
1586
|
), e = d(() => s.errors ? S(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
|
|
1575
|
-
return (r, n) => e.value ? (
|
|
1587
|
+
return (r, n) => e.value ? (i(), y("p", {
|
|
1576
1588
|
key: 0,
|
|
1577
1589
|
id: `${l(s).id}-error`
|
|
1578
1590
|
}, x(e.value), 9, nn)) : T("", !0);
|
|
@@ -1596,16 +1608,16 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1596
1608
|
},
|
|
1597
1609
|
emits: ["update:modelValue"],
|
|
1598
1610
|
setup(t) {
|
|
1599
|
-
const { forwardRef: s } =
|
|
1600
|
-
return (e, r) => (
|
|
1611
|
+
const { forwardRef: s } = Ae();
|
|
1612
|
+
return (e, r) => (i(), g(Gr, I({ ref: l(s) }, e.$props, {
|
|
1601
1613
|
"onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
|
|
1602
1614
|
}), {
|
|
1603
1615
|
default: h(() => [
|
|
1604
|
-
p(
|
|
1616
|
+
p(It),
|
|
1605
1617
|
$(e.$slots, "default", {}, () => [
|
|
1606
|
-
p(
|
|
1607
|
-
p(
|
|
1608
|
-
p(
|
|
1618
|
+
p(Rt),
|
|
1619
|
+
p(qt, { class: "mt-2 text-sm text-red-600" }),
|
|
1620
|
+
p(zt)
|
|
1609
1621
|
])
|
|
1610
1622
|
]),
|
|
1611
1623
|
_: 3
|
|
@@ -1620,9 +1632,9 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1620
1632
|
locale: N.locales[s] ?? s
|
|
1621
1633
|
});
|
|
1622
1634
|
}
|
|
1623
|
-
return (n, a) => (
|
|
1635
|
+
return (n, a) => (i(), g(an, {
|
|
1624
1636
|
modelValue: n.$lang.locale,
|
|
1625
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1637
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => n.$lang.locale = c),
|
|
1626
1638
|
class: "flex flex-col items-start md:flex-row",
|
|
1627
1639
|
as: "div",
|
|
1628
1640
|
options: e.value,
|
|
@@ -1630,13 +1642,13 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1630
1642
|
}, {
|
|
1631
1643
|
default: h(() => [
|
|
1632
1644
|
w("div", ln, [
|
|
1633
|
-
p(
|
|
1645
|
+
p(It, { class: "text-base font-semibold" }, {
|
|
1634
1646
|
default: h(() => [
|
|
1635
1647
|
z(x(n.$td("settings.locale", "Language")), 1)
|
|
1636
1648
|
]),
|
|
1637
1649
|
_: 1
|
|
1638
1650
|
}),
|
|
1639
|
-
p(
|
|
1651
|
+
p(A, {
|
|
1640
1652
|
"lang-key": "settings.localeDescription",
|
|
1641
1653
|
"lang-default": "Choose the application's language.",
|
|
1642
1654
|
class: "mt-1 text-sm text-gray-500"
|
|
@@ -1644,10 +1656,10 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1644
1656
|
]),
|
|
1645
1657
|
p(q, {
|
|
1646
1658
|
variant: "ghost",
|
|
1647
|
-
as:
|
|
1659
|
+
as: Rt,
|
|
1648
1660
|
class: "grid w-auto outline-none"
|
|
1649
1661
|
}),
|
|
1650
|
-
p(
|
|
1662
|
+
p(zt)
|
|
1651
1663
|
]),
|
|
1652
1664
|
_: 1
|
|
1653
1665
|
}, 8, ["modelValue", "options"]));
|
|
@@ -1660,7 +1672,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1660
1672
|
], cn = { $lang: ee }, dn = {
|
|
1661
1673
|
async install(t) {
|
|
1662
1674
|
var s;
|
|
1663
|
-
(s = t.config.globalProperties).$t ?? (s.$t =
|
|
1675
|
+
(s = t.config.globalProperties).$t ?? (s.$t = _t), t.config.globalProperties.$td = S, un.forEach((e) => P.addSetting(e)), await Ee(t, cn);
|
|
1664
1676
|
}
|
|
1665
1677
|
}, pn = /* @__PURE__ */ v({
|
|
1666
1678
|
__name: "Markdown",
|
|
@@ -1674,38 +1686,38 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1674
1686
|
actions: {}
|
|
1675
1687
|
},
|
|
1676
1688
|
setup(t) {
|
|
1677
|
-
const s =
|
|
1689
|
+
const s = at(), e = Se(), r = d(() => e.default ? e.default().map(gt).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : _t(t.langKey, t.langParams ?? {})))), n = d(() => {
|
|
1678
1690
|
if (!r.value)
|
|
1679
1691
|
return null;
|
|
1680
|
-
let
|
|
1681
|
-
return t.inline && (
|
|
1692
|
+
let o = zr(r.value);
|
|
1693
|
+
return t.inline && (o = o.replace("<p>", "<span>").replace("</p>", "</span>")), o;
|
|
1682
1694
|
}), a = () => Zt(t.as ?? (t.inline ? "span" : "div"), {
|
|
1683
1695
|
innerHTML: n.value,
|
|
1684
|
-
onClick:
|
|
1696
|
+
onClick: c,
|
|
1685
1697
|
...s,
|
|
1686
1698
|
class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
|
|
1687
1699
|
});
|
|
1688
|
-
async function
|
|
1700
|
+
async function c(o) {
|
|
1689
1701
|
var f, m;
|
|
1690
|
-
const { target:
|
|
1691
|
-
if (
|
|
1692
|
-
(m = (f = t.actions) == null ? void 0 : f[
|
|
1702
|
+
const { target: u } = o;
|
|
1703
|
+
if (Ke(u, HTMLElement) && u.dataset.markdownAction) {
|
|
1704
|
+
(m = (f = t.actions) == null ? void 0 : f[u.dataset.markdownAction]) == null || m.call(f);
|
|
1693
1705
|
return;
|
|
1694
1706
|
}
|
|
1695
|
-
if (
|
|
1707
|
+
if (Ke(u, HTMLAnchorElement) && u.dataset.markdownRoute) {
|
|
1696
1708
|
const b = Ir();
|
|
1697
|
-
b && (
|
|
1709
|
+
b && (o.preventDefault(), b.visit(u.dataset.markdownRoute));
|
|
1698
1710
|
return;
|
|
1699
1711
|
}
|
|
1700
1712
|
}
|
|
1701
|
-
return (
|
|
1713
|
+
return (o, u) => (i(), g(a));
|
|
1702
1714
|
}
|
|
1703
1715
|
}), mn = (t, s) => {
|
|
1704
1716
|
const e = t.__vccOpts || t;
|
|
1705
1717
|
for (const [r, n] of s)
|
|
1706
1718
|
e[r] = n;
|
|
1707
1719
|
return e;
|
|
1708
|
-
},
|
|
1720
|
+
}, A = /* @__PURE__ */ mn(pn, [["__scopeId", "data-v-8b211cfb"]]), fn = { class: "flex-grow" }, hn = ["id"], gn = /* @__PURE__ */ v({
|
|
1709
1721
|
__name: "Setting",
|
|
1710
1722
|
props: {
|
|
1711
1723
|
title: {},
|
|
@@ -1716,7 +1728,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1716
1728
|
},
|
|
1717
1729
|
setup(t) {
|
|
1718
1730
|
const s = d(() => k(t.class, "flex flex-col justify-center gap-1"));
|
|
1719
|
-
return (e, r) => (
|
|
1731
|
+
return (e, r) => (i(), y("div", {
|
|
1720
1732
|
class: _(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
|
|
1721
1733
|
}, [
|
|
1722
1734
|
w("div", fn, [
|
|
@@ -1724,7 +1736,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1724
1736
|
id: e.titleId,
|
|
1725
1737
|
class: "text-base font-semibold"
|
|
1726
1738
|
}, x(e.title), 9, hn),
|
|
1727
|
-
e.description ? (
|
|
1739
|
+
e.description ? (i(), g(A, {
|
|
1728
1740
|
key: 0,
|
|
1729
1741
|
text: e.description,
|
|
1730
1742
|
class: "mt-1 text-sm text-gray-500"
|
|
@@ -1752,7 +1764,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1752
1764
|
},
|
|
1753
1765
|
emits: ["update:modelValue"],
|
|
1754
1766
|
setup(t, { expose: s, emit: e }) {
|
|
1755
|
-
const r = e, n = te("form", null), a = d(() => !n || !t.name ? null : n.errors[t.name] ?? null),
|
|
1767
|
+
const r = e, n = te("form", null), a = d(() => !n || !t.name ? null : n.errors[t.name] ?? null), c = {
|
|
1756
1768
|
id: `switch-${pe()}`,
|
|
1757
1769
|
name: d(() => t.name),
|
|
1758
1770
|
label: d(() => t.label),
|
|
@@ -1763,35 +1775,35 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1763
1775
|
if (!(!t.name || !n))
|
|
1764
1776
|
return n.getFieldRules(t.name).includes("required");
|
|
1765
1777
|
}),
|
|
1766
|
-
update(
|
|
1778
|
+
update(o) {
|
|
1767
1779
|
if (n && t.name) {
|
|
1768
|
-
n.setFieldValue(t.name,
|
|
1780
|
+
n.setFieldValue(t.name, o);
|
|
1769
1781
|
return;
|
|
1770
1782
|
}
|
|
1771
|
-
r("update:modelValue",
|
|
1783
|
+
r("update:modelValue", o);
|
|
1772
1784
|
}
|
|
1773
1785
|
};
|
|
1774
|
-
return s(
|
|
1786
|
+
return s(c), se(() => {
|
|
1775
1787
|
!t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
|
|
1776
|
-
}), (
|
|
1788
|
+
}), (o, u) => (i(), y("div", {
|
|
1777
1789
|
class: _(t.class)
|
|
1778
1790
|
}, [
|
|
1779
|
-
|
|
1791
|
+
o.label ? (i(), y("label", {
|
|
1780
1792
|
key: 0,
|
|
1781
|
-
for:
|
|
1782
|
-
class: _(
|
|
1783
|
-
}, x(
|
|
1784
|
-
p(l(
|
|
1785
|
-
id:
|
|
1786
|
-
name:
|
|
1787
|
-
"model-value":
|
|
1788
|
-
},
|
|
1789
|
-
class:
|
|
1790
|
-
"onUpdate:modelValue":
|
|
1793
|
+
for: c.id,
|
|
1794
|
+
class: _(o.labelClass)
|
|
1795
|
+
}, x(o.label), 11, vn)) : T("", !0),
|
|
1796
|
+
p(l(As), I({
|
|
1797
|
+
id: c.id,
|
|
1798
|
+
name: o.name,
|
|
1799
|
+
"model-value": c.value.value
|
|
1800
|
+
}, o.$attrs, {
|
|
1801
|
+
class: o.inputClass,
|
|
1802
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => o.$emit("update:modelValue", f))
|
|
1791
1803
|
}), {
|
|
1792
1804
|
default: h(() => [
|
|
1793
|
-
p(l(
|
|
1794
|
-
class: _(
|
|
1805
|
+
p(l(Ps), {
|
|
1806
|
+
class: _(o.thumbClass)
|
|
1795
1807
|
}, null, 8, ["class"])
|
|
1796
1808
|
]),
|
|
1797
1809
|
_: 1
|
|
@@ -1801,7 +1813,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1801
1813
|
}), yn = /* @__PURE__ */ v({
|
|
1802
1814
|
__name: "Switch",
|
|
1803
1815
|
setup(t) {
|
|
1804
|
-
return (s, e) => (
|
|
1816
|
+
return (s, e) => (i(), g(bn, {
|
|
1805
1817
|
class: "flex flex-row items-center gap-1",
|
|
1806
1818
|
"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",
|
|
1807
1819
|
"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"
|
|
@@ -1810,7 +1822,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1810
1822
|
}), wn = /* @__PURE__ */ v({
|
|
1811
1823
|
__name: "Debug",
|
|
1812
1824
|
setup(t) {
|
|
1813
|
-
return (s, e) => (
|
|
1825
|
+
return (s, e) => (i(), g(gn, {
|
|
1814
1826
|
"title-id": "debug-setting",
|
|
1815
1827
|
title: s.$td("settings.debug", "Debugging"),
|
|
1816
1828
|
description: s.$td("settings.debugDescription", "Enable debugging with [Eruda](https://eruda.liriliri.io/).")
|
|
@@ -1830,34 +1842,23 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1830
1842
|
priority: 10,
|
|
1831
1843
|
component: wn
|
|
1832
1844
|
}
|
|
1833
|
-
]
|
|
1834
|
-
|
|
1835
|
-
Rt.push(t);
|
|
1845
|
+
];
|
|
1846
|
+
class rt extends Te {
|
|
1836
1847
|
}
|
|
1837
|
-
|
|
1838
|
-
for (const s of Rt) {
|
|
1839
|
-
const e = s(t);
|
|
1840
|
-
if (e)
|
|
1841
|
-
return e;
|
|
1842
|
-
}
|
|
1843
|
-
return typeof t == "string" ? t : t instanceof Error || t instanceof Te ? t.message : be(t) ? O(t.message ?? t.description ?? "Unknown error object") : S("errors.unknown", "Unknown Error");
|
|
1844
|
-
}
|
|
1845
|
-
class st extends Te {
|
|
1846
|
-
}
|
|
1847
|
-
const _n = { $errors: Ct }, xn = (t) => (Ct.report(t), !0);
|
|
1848
|
+
const _n = { $errors: St }, xn = (t) => (Be(t).includes("ResizeObserver loop completed with undelivered notifications.") || St.report(t), !0);
|
|
1848
1849
|
function Cn(t, s = () => !1) {
|
|
1849
1850
|
const e = (r) => s(r) || xn(r);
|
|
1850
|
-
t.config.errorHandler = e, globalThis.onerror = (r, n, a,
|
|
1851
|
+
t.config.errorHandler = e, globalThis.onerror = (r, n, a, c, o) => e(o ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
|
|
1851
1852
|
}
|
|
1852
1853
|
const kn = {
|
|
1853
1854
|
async install(t, s) {
|
|
1854
|
-
Cn(t, s.handleError), $n.forEach((e) =>
|
|
1855
|
+
Cn(t, s.handleError), $n.forEach((e) => P.addSetting(e)), await Ee(t, _n);
|
|
1855
1856
|
}
|
|
1856
1857
|
}, Sn = {
|
|
1857
1858
|
async install() {
|
|
1858
1859
|
qe() && (globalThis.testingRuntime = {
|
|
1859
1860
|
on: (...t) => W.on(...t),
|
|
1860
|
-
service: (t) =>
|
|
1861
|
+
service: (t) => P.service(t)
|
|
1861
1862
|
});
|
|
1862
1863
|
}
|
|
1863
1864
|
}, Tn = {
|
|
@@ -1866,7 +1867,7 @@ const kn = {
|
|
|
1866
1867
|
height: "1.2em"
|
|
1867
1868
|
};
|
|
1868
1869
|
function Mn(t, s) {
|
|
1869
|
-
return
|
|
1870
|
+
return i(), y("svg", Tn, s[0] || (s[0] = [
|
|
1870
1871
|
w("path", {
|
|
1871
1872
|
fill: "currentColor",
|
|
1872
1873
|
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"
|
|
@@ -1885,13 +1886,13 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
1885
1886
|
descriptionHidden: { type: Boolean }
|
|
1886
1887
|
},
|
|
1887
1888
|
setup(t, { expose: s }) {
|
|
1888
|
-
const e = B(null), { close: r } =
|
|
1889
|
+
const e = B(null), { close: r } = je();
|
|
1889
1890
|
s({ $content: e });
|
|
1890
|
-
const { forwardRef: n } =
|
|
1891
|
-
return oe("$modalContentRef", e), (a,
|
|
1891
|
+
const { forwardRef: n } = Ae();
|
|
1892
|
+
return oe("$modalContentRef", e), (a, c) => (i(), g(l(Ds), {
|
|
1892
1893
|
ref: l(n),
|
|
1893
1894
|
open: "",
|
|
1894
|
-
"onUpdate:open":
|
|
1895
|
+
"onUpdate:open": c[0] || (c[0] = (o) => a.persistent || o || l(r)())
|
|
1895
1896
|
}, {
|
|
1896
1897
|
default: h(() => [
|
|
1897
1898
|
p(l(Bs), null, {
|
|
@@ -1907,11 +1908,11 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
1907
1908
|
}), Hn = /* @__PURE__ */ v({
|
|
1908
1909
|
__name: "HeadlessModalContent",
|
|
1909
1910
|
setup(t) {
|
|
1910
|
-
const { child: s } =
|
|
1911
|
-
return se(() => e.value = r.value), (n, a) => (
|
|
1911
|
+
const { child: s } = je(), e = $r("$modalContentRef"), r = Z("$contentRef");
|
|
1912
|
+
return se(() => e.value = r.value), (n, a) => (i(), g(l(js), { ref: "$contentRef" }, {
|
|
1912
1913
|
default: h(() => [
|
|
1913
1914
|
$(n.$slots, "default"),
|
|
1914
|
-
l(s) ? (
|
|
1915
|
+
l(s) ? (i(), g(l(xs), {
|
|
1915
1916
|
key: 0,
|
|
1916
1917
|
is: l(s)
|
|
1917
1918
|
}, null, 8, ["is"])) : T("", !0)
|
|
@@ -1926,7 +1927,7 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
1926
1927
|
as: {}
|
|
1927
1928
|
},
|
|
1928
1929
|
setup(t) {
|
|
1929
|
-
return (s, e) => (
|
|
1930
|
+
return (s, e) => (i(), g(l(Os), me(fe(s.$props)), {
|
|
1930
1931
|
default: h(() => [
|
|
1931
1932
|
$(s.$slots, "default")
|
|
1932
1933
|
]),
|
|
@@ -1941,7 +1942,7 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
1941
1942
|
as: {}
|
|
1942
1943
|
},
|
|
1943
1944
|
setup(t) {
|
|
1944
|
-
return (s, e) => (
|
|
1945
|
+
return (s, e) => (i(), g(l(Fs), me(fe(s.$props)), {
|
|
1945
1946
|
default: h(() => [
|
|
1946
1947
|
$(s.$slots, "default")
|
|
1947
1948
|
]),
|
|
@@ -1955,7 +1956,7 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
1955
1956
|
as: {}
|
|
1956
1957
|
},
|
|
1957
1958
|
setup(t) {
|
|
1958
|
-
return (s, e) => (
|
|
1959
|
+
return (s, e) => (i(), g(l(Us), me(fe(s.$props)), {
|
|
1959
1960
|
default: h(() => [
|
|
1960
1961
|
$(s.$slots, "default")
|
|
1961
1962
|
]),
|
|
@@ -1981,13 +1982,13 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
1981
1982
|
s({
|
|
1982
1983
|
$content: d(() => {
|
|
1983
1984
|
var E;
|
|
1984
|
-
return (E =
|
|
1985
|
+
return (E = o.value) == null ? void 0 : E.$content;
|
|
1985
1986
|
})
|
|
1986
1987
|
});
|
|
1987
|
-
const { forwardRef: r, currentRef: n } =
|
|
1988
|
+
const { forwardRef: r, currentRef: n } = Ae(), { id: a, visible: c } = je(), o = n, u = mt(), f = d(
|
|
1988
1989
|
() => {
|
|
1989
1990
|
var E;
|
|
1990
|
-
return
|
|
1991
|
+
return c.value && ((E = ue.value.toReversed().find((Fe) => Fe.visible.value)) == null ? void 0 : E.id) === a.value;
|
|
1991
1992
|
}
|
|
1992
1993
|
), m = d(() => ue.value.find((E) => E.visible.value)), b = d(() => ue.value.some((E) => ve.has(E))), M = d(() => t.description ? {} : { "aria-describedby": void 0 }), H = d(() => k(
|
|
1993
1994
|
"overflow-auto px-4 pb-4 flex flex-col flex-1",
|
|
@@ -1997,35 +1998,35 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
1997
1998
|
"isolate fixed z-50 flex flex-col overflow-hidden bg-white text-left duration-300",
|
|
1998
1999
|
V.value ? [
|
|
1999
2000
|
"inset-0 transition-[transform,translate] will-change-[transform,translate]",
|
|
2000
|
-
ve.has(
|
|
2001
|
+
ve.has(u.value) || "animate-[slide-in_var(--tw-duration)_ease-in-out]",
|
|
2001
2002
|
f.value ? "translate-y-0" : "translate-y-full"
|
|
2002
2003
|
] : [
|
|
2003
2004
|
"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full",
|
|
2004
2005
|
"max-w-[calc(100%-2rem)] rounded-lg shadow-xl sm:max-w-lg",
|
|
2005
2006
|
"transition-[scale,opacity] will-change-[scale,opacity]",
|
|
2006
|
-
ve.has(
|
|
2007
|
+
ve.has(u.value) || "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
|
|
2007
2008
|
f.value ? "scale-100 opacity-100" : "scale-50 opacity-0"
|
|
2008
2009
|
],
|
|
2009
2010
|
t.wrapperClass
|
|
2010
2011
|
));
|
|
2011
|
-
return
|
|
2012
|
+
return lt(() => ce(500).then(() => ve.add(u.value))), (E, Fe) => (i(), g(En, I(e, {
|
|
2012
2013
|
ref: (ge) => l(r)(ge),
|
|
2013
2014
|
persistent: E.persistent
|
|
2014
2015
|
}), {
|
|
2015
2016
|
default: h(({ close: ge }) => {
|
|
2016
|
-
var
|
|
2017
|
+
var Ue, Ne;
|
|
2017
2018
|
return [
|
|
2018
2019
|
p(In, {
|
|
2019
2020
|
class: _(["fixed inset-0 transition-opacity duration-300 will-change-[opacity]", {
|
|
2020
2021
|
"animate-[fade-in_var(--tw-duration)_ease-in-out]": !b.value,
|
|
2021
|
-
"bg-black/30": ((
|
|
2022
|
+
"bg-black/30": ((Ue = m.value) == null ? void 0 : Ue.id) === l(a) || !m.value && ((Ne = l(ue)[0]) == null ? void 0 : Ne.id) === l(a),
|
|
2022
2023
|
"opacity-0": !m.value,
|
|
2023
2024
|
hidden: V.value
|
|
2024
2025
|
}])
|
|
2025
2026
|
}, null, 8, ["class"]),
|
|
2026
2027
|
p(Hn, I(M.value, { class: U.value }), {
|
|
2027
2028
|
default: h(() => [
|
|
2028
|
-
!E.persistent && !E.closeHidden ? (
|
|
2029
|
+
!E.persistent && !E.closeHidden ? (i(), y("div", {
|
|
2029
2030
|
key: 0,
|
|
2030
2031
|
class: _(["absolute top-0 right-0 pt-3.5 pr-2.5", { "hidden sm:block": !V.value }])
|
|
2031
2032
|
}, [
|
|
@@ -2038,7 +2039,7 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
2038
2039
|
p(l(Vn), { class: "size-4" })
|
|
2039
2040
|
], 8, Rn)
|
|
2040
2041
|
], 2)) : T("", !0),
|
|
2041
|
-
E.title ? (
|
|
2042
|
+
E.title ? (i(), g(zn, {
|
|
2042
2043
|
key: 1,
|
|
2043
2044
|
class: _(["px-4 pt-5 text-base font-semibold text-gray-900", {
|
|
2044
2045
|
"sr-only": E.titleHidden,
|
|
@@ -2047,19 +2048,19 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
2047
2048
|
}])
|
|
2048
2049
|
}, {
|
|
2049
2050
|
default: h(() => [
|
|
2050
|
-
p(
|
|
2051
|
+
p(A, {
|
|
2051
2052
|
text: E.title,
|
|
2052
2053
|
inline: ""
|
|
2053
2054
|
}, null, 8, ["text"])
|
|
2054
2055
|
]),
|
|
2055
2056
|
_: 1
|
|
2056
2057
|
}, 8, ["class"])) : T("", !0),
|
|
2057
|
-
E.description ? (
|
|
2058
|
+
E.description ? (i(), g(Ln, {
|
|
2058
2059
|
key: 2,
|
|
2059
2060
|
class: _(["px-4 pt-1 pb-2", { "sr-only": E.descriptionHidden }])
|
|
2060
2061
|
}, {
|
|
2061
2062
|
default: h(() => [
|
|
2062
|
-
p(
|
|
2063
|
+
p(A, {
|
|
2063
2064
|
text: E.description,
|
|
2064
2065
|
class: "text-sm leading-6 text-gray-500"
|
|
2065
2066
|
}, null, 8, ["text"])
|
|
@@ -2080,29 +2081,29 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
2080
2081
|
}, 16, ["persistent"]));
|
|
2081
2082
|
}
|
|
2082
2083
|
});
|
|
2083
|
-
function
|
|
2084
|
+
function An(t) {
|
|
2084
2085
|
const s = d(() => t.title ?? S("ui.alert", "Alert")), e = d(() => !t.title);
|
|
2085
2086
|
return { renderedTitle: s, titleHidden: e };
|
|
2086
2087
|
}
|
|
2087
|
-
const
|
|
2088
|
+
const Pn = /* @__PURE__ */ v({
|
|
2088
2089
|
__name: "AlertModal",
|
|
2089
2090
|
props: {
|
|
2090
2091
|
title: {},
|
|
2091
2092
|
message: {}
|
|
2092
2093
|
},
|
|
2093
2094
|
setup(t, { expose: s }) {
|
|
2094
|
-
const e = t, { renderedTitle: r, titleHidden: n } =
|
|
2095
|
-
return s(), (a,
|
|
2095
|
+
const e = t, { renderedTitle: r, titleHidden: n } = An(e);
|
|
2096
|
+
return s(), (a, c) => (i(), g(le, {
|
|
2096
2097
|
title: l(r),
|
|
2097
2098
|
"title-hidden": l(n)
|
|
2098
2099
|
}, {
|
|
2099
2100
|
default: h(() => [
|
|
2100
|
-
p(
|
|
2101
|
+
p(A, { text: a.message }, null, 8, ["text"])
|
|
2101
2102
|
]),
|
|
2102
2103
|
_: 1
|
|
2103
2104
|
}, 8, ["title", "title-hidden"]));
|
|
2104
2105
|
}
|
|
2105
|
-
}),
|
|
2106
|
+
}), At = /* @__PURE__ */ v({
|
|
2106
2107
|
__name: "Form",
|
|
2107
2108
|
props: {
|
|
2108
2109
|
form: {}
|
|
@@ -2114,23 +2115,23 @@ const An = /* @__PURE__ */ v({
|
|
|
2114
2115
|
return se((n) => {
|
|
2115
2116
|
var a;
|
|
2116
2117
|
e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
|
|
2117
|
-
}), oe("form", t.form), (n, a) => (
|
|
2118
|
-
onSubmit: a[0] || (a[0] =
|
|
2118
|
+
}), oe("form", t.form), (n, a) => (i(), y("form", {
|
|
2119
|
+
onSubmit: a[0] || (a[0] = ot((c) => n.form ? n.form.submit() : n.$emit("submit"), ["prevent"]))
|
|
2119
2120
|
}, [
|
|
2120
2121
|
$(n.$slots, "default")
|
|
2121
2122
|
], 32));
|
|
2122
2123
|
}
|
|
2123
2124
|
});
|
|
2124
2125
|
function Dn(t) {
|
|
2125
|
-
const s =
|
|
2126
|
+
const s = yt(
|
|
2126
2127
|
Object.entries(t.checkboxes ?? {}).reduce(
|
|
2127
|
-
(
|
|
2128
|
-
[
|
|
2128
|
+
(c, [o, u]) => ({
|
|
2129
|
+
[o]: {
|
|
2129
2130
|
type: "boolean",
|
|
2130
|
-
default:
|
|
2131
|
-
required:
|
|
2131
|
+
default: u.default,
|
|
2132
|
+
required: u.required ? "required" : void 0
|
|
2132
2133
|
},
|
|
2133
|
-
...
|
|
2134
|
+
...c
|
|
2134
2135
|
}),
|
|
2135
2136
|
{}
|
|
2136
2137
|
)
|
|
@@ -2155,26 +2156,26 @@ const Bn = {
|
|
|
2155
2156
|
},
|
|
2156
2157
|
emits: ["close"],
|
|
2157
2158
|
setup(t, { expose: s }) {
|
|
2158
|
-
const e = K(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText:
|
|
2159
|
-
return s(), (
|
|
2159
|
+
const e = K(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: c, renderedCancelText: o } = Dn(e);
|
|
2160
|
+
return s(), (u, f) => (i(), g(le, {
|
|
2160
2161
|
title: l(n),
|
|
2161
2162
|
"title-hidden": l(a),
|
|
2162
2163
|
persistent: ""
|
|
2163
2164
|
}, {
|
|
2164
2165
|
default: h(({ close: m }) => [
|
|
2165
|
-
p(
|
|
2166
|
+
p(At, {
|
|
2166
2167
|
form: l(r),
|
|
2167
2168
|
onSubmit: (b) => m([!0, l(r).data()])
|
|
2168
2169
|
}, {
|
|
2169
2170
|
default: h(() => [
|
|
2170
|
-
p(
|
|
2171
|
-
text:
|
|
2172
|
-
actions:
|
|
2171
|
+
p(A, {
|
|
2172
|
+
text: u.message,
|
|
2173
|
+
actions: u.actions
|
|
2173
2174
|
}, null, 8, ["text", "actions"]),
|
|
2174
|
-
|
|
2175
|
-
(
|
|
2175
|
+
u.checkboxes ? (i(), y("ul", Bn, [
|
|
2176
|
+
(i(!0), y(j, null, F(u.checkboxes, (b, M) => (i(), y("li", { key: M }, [
|
|
2176
2177
|
w("label", jn, [
|
|
2177
|
-
|
|
2178
|
+
it(w("input", {
|
|
2178
2179
|
"onUpdate:modelValue": (H) => l(r)[M] = H,
|
|
2179
2180
|
type: "checkbox",
|
|
2180
2181
|
required: b.required,
|
|
@@ -2188,21 +2189,21 @@ const Bn = {
|
|
|
2188
2189
|
])) : T("", !0),
|
|
2189
2190
|
w("div", Un, [
|
|
2190
2191
|
p(q, {
|
|
2191
|
-
variant:
|
|
2192
|
+
variant: u.acceptVariant,
|
|
2192
2193
|
submit: ""
|
|
2193
2194
|
}, {
|
|
2194
2195
|
default: h(() => [
|
|
2195
|
-
z(x(l(
|
|
2196
|
+
z(x(l(c)), 1)
|
|
2196
2197
|
]),
|
|
2197
2198
|
_: 1
|
|
2198
2199
|
}, 8, ["variant"]),
|
|
2199
|
-
|
|
2200
|
+
u.required ? T("", !0) : (i(), g(q, {
|
|
2200
2201
|
key: 0,
|
|
2201
|
-
variant:
|
|
2202
|
+
variant: u.cancelVariant,
|
|
2202
2203
|
onClick: (b) => m(!1)
|
|
2203
2204
|
}, {
|
|
2204
2205
|
default: h(() => [
|
|
2205
|
-
z(x(l(
|
|
2206
|
+
z(x(l(o)), 1)
|
|
2206
2207
|
]),
|
|
2207
2208
|
_: 2
|
|
2208
2209
|
}, 1032, ["variant", "onClick"]))
|
|
@@ -2220,7 +2221,7 @@ const Bn = {
|
|
|
2220
2221
|
height: "1.2em"
|
|
2221
2222
|
};
|
|
2222
2223
|
function Kn(t, s) {
|
|
2223
|
-
return
|
|
2224
|
+
return i(), y("svg", Wn, s[0] || (s[0] = [
|
|
2224
2225
|
w("path", {
|
|
2225
2226
|
fill: "currentColor",
|
|
2226
2227
|
d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
|
|
@@ -2233,20 +2234,20 @@ const Qn = R({ name: "zondicons-cheveron-left", render: Kn }), Jn = {
|
|
|
2233
2234
|
height: "1.2em"
|
|
2234
2235
|
};
|
|
2235
2236
|
function Zn(t, s) {
|
|
2236
|
-
return
|
|
2237
|
+
return i(), y("svg", Jn, s[0] || (s[0] = [
|
|
2237
2238
|
w("path", {
|
|
2238
2239
|
fill: "currentColor",
|
|
2239
2240
|
d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
|
|
2240
2241
|
}, null, -1)
|
|
2241
2242
|
]));
|
|
2242
2243
|
}
|
|
2243
|
-
const
|
|
2244
|
+
const Pt = R({ name: "zondicons-cheveron-right", render: Zn }), Gn = {
|
|
2244
2245
|
viewBox: "0 0 24 24",
|
|
2245
2246
|
width: "1.2em",
|
|
2246
2247
|
height: "1.2em"
|
|
2247
2248
|
};
|
|
2248
2249
|
function Xn(t, s) {
|
|
2249
|
-
return
|
|
2250
|
+
return i(), y("svg", Gn, s[0] || (s[0] = [
|
|
2250
2251
|
w("path", {
|
|
2251
2252
|
fill: "currentColor",
|
|
2252
2253
|
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"
|
|
@@ -2259,7 +2260,7 @@ const Yn = R({ name: "mdi-console", render: Xn }), ea = {
|
|
|
2259
2260
|
height: "1.2em"
|
|
2260
2261
|
};
|
|
2261
2262
|
function ta(t, s) {
|
|
2262
|
-
return
|
|
2263
|
+
return i(), y("svg", ea, s[0] || (s[0] = [
|
|
2263
2264
|
w("path", {
|
|
2264
2265
|
fill: "currentColor",
|
|
2265
2266
|
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"
|
|
@@ -2272,7 +2273,7 @@ const sa = R({ name: "zondicons-copy", render: ta }), ra = {
|
|
|
2272
2273
|
height: "1.2em"
|
|
2273
2274
|
};
|
|
2274
2275
|
function na(t, s) {
|
|
2275
|
-
return
|
|
2276
|
+
return i(), y("svg", ra, s[0] || (s[0] = [
|
|
2276
2277
|
w("path", {
|
|
2277
2278
|
fill: "currentColor",
|
|
2278
2279
|
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"
|
|
@@ -2286,9 +2287,9 @@ const aa = R({ name: "mdi-github", render: na }), la = { class: "flex" }, oa = {
|
|
|
2286
2287
|
},
|
|
2287
2288
|
setup(t) {
|
|
2288
2289
|
const s = t, e = d(() => s.report.description ? `${s.report.title}: ${s.report.description}` : s.report.title), r = d(() => {
|
|
2289
|
-
if (!
|
|
2290
|
+
if (!P.sourceUrl)
|
|
2290
2291
|
return !1;
|
|
2291
|
-
const a = encodeURIComponent(e.value),
|
|
2292
|
+
const a = encodeURIComponent(e.value), c = encodeURIComponent(
|
|
2292
2293
|
[
|
|
2293
2294
|
"[Please, explain here what you were trying to do when this error appeared]",
|
|
2294
2295
|
"",
|
|
@@ -2296,13 +2297,13 @@ const aa = R({ name: "mdi-github", render: na }), la = { class: "flex" }, oa = {
|
|
|
2296
2297
|
"```",
|
|
2297
2298
|
ds(
|
|
2298
2299
|
s.report.details ?? "Details missing from report",
|
|
2299
|
-
1800 - a.length -
|
|
2300
|
+
1800 - a.length - P.sourceUrl.length
|
|
2300
2301
|
).trim(),
|
|
2301
2302
|
"```"
|
|
2302
2303
|
].join(`
|
|
2303
2304
|
`)
|
|
2304
2305
|
);
|
|
2305
|
-
return `${
|
|
2306
|
+
return `${P.sourceUrl}/issues/new?title=${a}&body=${c}`;
|
|
2306
2307
|
}), n = d(() => ne(
|
|
2307
2308
|
[
|
|
2308
2309
|
{
|
|
@@ -2339,19 +2340,19 @@ ${s.report.details}`), D.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2339
2340
|
});
|
|
2340
2341
|
}
|
|
2341
2342
|
));
|
|
2342
|
-
return (a,
|
|
2343
|
-
(
|
|
2343
|
+
return (a, c) => (i(), y("div", la, [
|
|
2344
|
+
(i(!0), y(j, null, F(n.value, (o) => $(a.$slots, "default", I({ ref_for: !0 }, o), () => [
|
|
2344
2345
|
p(q, {
|
|
2345
2346
|
size: "icon",
|
|
2346
2347
|
variant: "ghost",
|
|
2347
2348
|
class: "group whitespace-nowrap",
|
|
2348
|
-
href:
|
|
2349
|
-
title: a.$td(`errors.report_${
|
|
2350
|
-
onClick:
|
|
2349
|
+
href: o.url,
|
|
2350
|
+
title: a.$td(`errors.report_${o.id}`, o.description),
|
|
2351
|
+
onClick: o.click
|
|
2351
2352
|
}, {
|
|
2352
2353
|
default: h(() => [
|
|
2353
|
-
w("span", oa, x(a.$td(`errors.report_${
|
|
2354
|
-
(
|
|
2354
|
+
w("span", oa, x(a.$td(`errors.report_${o.id}`, o.description)), 1),
|
|
2355
|
+
(i(), g(re(o.iconComponent), {
|
|
2355
2356
|
class: "size-4",
|
|
2356
2357
|
"aria-hidden": "true"
|
|
2357
2358
|
}))
|
|
@@ -2370,7 +2371,7 @@ ${s.report.details}`), D.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2370
2371
|
},
|
|
2371
2372
|
setup(t) {
|
|
2372
2373
|
const s = d(() => !t.totalReports || t.totalReports <= 1 ? t.report.title : `${t.report.title} (${t.currentReport}/${t.totalReports})`);
|
|
2373
|
-
return (e, r) => (
|
|
2374
|
+
return (e, r) => (i(), g(A, {
|
|
2374
2375
|
text: s.value,
|
|
2375
2376
|
inline: ""
|
|
2376
2377
|
}, null, 8, ["text"]));
|
|
@@ -2379,8 +2380,8 @@ ${s.report.details}`), D.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2379
2380
|
function ca(t) {
|
|
2380
2381
|
const s = B(t.reports.includes(t.report) ? t.reports.indexOf(t.report) : 0), e = d(() => t.reports[s.value]), r = d(
|
|
2381
2382
|
() => {
|
|
2382
|
-
var
|
|
2383
|
-
return ((
|
|
2383
|
+
var c;
|
|
2384
|
+
return ((c = e.value.details) == null ? void 0 : c.trim()) || S("errors.detailsEmpty", "This error is missing a stacktrace.");
|
|
2384
2385
|
}
|
|
2385
2386
|
), n = S("errors.previousReport", "Show previous report"), a = S("errors.nextReport", "Show next report");
|
|
2386
2387
|
return {
|
|
@@ -2401,9 +2402,9 @@ const da = { class: "px-4 pt-5 pb-4" }, pa = { class: "flex justify-between gap-
|
|
|
2401
2402
|
reports: {}
|
|
2402
2403
|
},
|
|
2403
2404
|
setup(t, { expose: s }) {
|
|
2404
|
-
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText:
|
|
2405
|
-
return s(), (
|
|
2406
|
-
title:
|
|
2405
|
+
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: c, activeReport: o } = ca(e);
|
|
2406
|
+
return s(), (u, f) => (i(), g(le, {
|
|
2407
|
+
title: u.$td("errors.report", "Error report"),
|
|
2407
2408
|
"title-hidden": "",
|
|
2408
2409
|
"close-hidden": "",
|
|
2409
2410
|
class: "p-0",
|
|
@@ -2416,17 +2417,17 @@ const da = { class: "px-4 pt-5 pb-4" }, pa = { class: "flex justify-between gap-
|
|
|
2416
2417
|
p(l(he), { class: "size-5 text-red-600" }),
|
|
2417
2418
|
p(ua, {
|
|
2418
2419
|
class: "text-lg leading-6 font-semibold text-gray-900",
|
|
2419
|
-
report: l(
|
|
2420
|
+
report: l(o),
|
|
2420
2421
|
"current-report": l(r) + 1,
|
|
2421
|
-
"total-reports":
|
|
2422
|
+
"total-reports": u.reports.length
|
|
2422
2423
|
}, null, 8, ["report", "current-report", "total-reports"]),
|
|
2423
|
-
|
|
2424
|
+
u.reports.length > 1 ? (i(), y("span", fa, [
|
|
2424
2425
|
p(q, {
|
|
2425
2426
|
size: "icon",
|
|
2426
2427
|
variant: "ghost",
|
|
2427
2428
|
disabled: l(r) === 0,
|
|
2428
|
-
"aria-label": l(
|
|
2429
|
-
title: l(
|
|
2429
|
+
"aria-label": l(c),
|
|
2430
|
+
title: l(c),
|
|
2430
2431
|
onClick: f[0] || (f[0] = (m) => r.value--)
|
|
2431
2432
|
}, {
|
|
2432
2433
|
default: h(() => [
|
|
@@ -2437,26 +2438,26 @@ const da = { class: "px-4 pt-5 pb-4" }, pa = { class: "flex justify-between gap-
|
|
|
2437
2438
|
p(q, {
|
|
2438
2439
|
size: "icon",
|
|
2439
2440
|
variant: "ghost",
|
|
2440
|
-
disabled: l(r) ===
|
|
2441
|
+
disabled: l(r) === u.reports.length - 1,
|
|
2441
2442
|
"aria-label": l(a),
|
|
2442
2443
|
title: l(a),
|
|
2443
2444
|
onClick: f[1] || (f[1] = (m) => r.value++)
|
|
2444
2445
|
}, {
|
|
2445
2446
|
default: h(() => [
|
|
2446
|
-
p(l(
|
|
2447
|
+
p(l(Pt), { class: "size-4" })
|
|
2447
2448
|
]),
|
|
2448
2449
|
_: 1
|
|
2449
2450
|
}, 8, ["disabled", "aria-label", "title"])
|
|
2450
2451
|
])) : T("", !0)
|
|
2451
2452
|
]),
|
|
2452
2453
|
p(ia, {
|
|
2453
|
-
report: l(
|
|
2454
|
+
report: l(o),
|
|
2454
2455
|
class: "gap-0.5"
|
|
2455
2456
|
}, null, 8, ["report"])
|
|
2456
2457
|
]),
|
|
2457
|
-
l(
|
|
2458
|
+
l(o).description ? (i(), g(A, {
|
|
2458
2459
|
key: 0,
|
|
2459
|
-
text: l(
|
|
2460
|
+
text: l(o).description,
|
|
2460
2461
|
class: "text-gray-600"
|
|
2461
2462
|
}, null, 8, ["text"])) : T("", !0)
|
|
2462
2463
|
]),
|
|
@@ -2476,7 +2477,7 @@ const da = { class: "px-4 pt-5 pb-4" }, pa = { class: "flex justify-between gap-
|
|
|
2476
2477
|
height: "1.2em"
|
|
2477
2478
|
};
|
|
2478
2479
|
function ya(t, s) {
|
|
2479
|
-
return
|
|
2480
|
+
return i(), y("svg", ba, s[0] || (s[0] = [
|
|
2480
2481
|
w("path", {
|
|
2481
2482
|
fill: "currentColor",
|
|
2482
2483
|
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",
|
|
@@ -2510,24 +2511,24 @@ const wa = R({ name: "svg-spinners-90-ring-with-bg", render: ya }), $a = { class
|
|
|
2510
2511
|
"absolute inset-y-0 right-0 size-full rounded-r-full",
|
|
2511
2512
|
"bg-primary-900 transition-[width] duration-500 ease-linear",
|
|
2512
2513
|
t.overflowClass
|
|
2513
|
-
)), a = d(() => typeof t.progress == "number" ? t.progress : e.value),
|
|
2514
|
+
)), a = d(() => typeof t.progress == "number" ? t.progress : e.value), c = d(() => a.value > 1 ? 100 * ((a.value - 1) / a.value) : null);
|
|
2514
2515
|
return X(
|
|
2515
2516
|
() => t.job,
|
|
2516
2517
|
() => {
|
|
2517
|
-
s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (
|
|
2518
|
+
s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (o) => e.value = o });
|
|
2518
2519
|
},
|
|
2519
2520
|
{ immediate: !0 }
|
|
2520
|
-
), Ce(() => s && s()), (
|
|
2521
|
+
), Ce(() => s && s()), (o, u) => (i(), y("div", $a, [
|
|
2521
2522
|
w("div", {
|
|
2522
2523
|
class: _(r.value),
|
|
2523
|
-
style:
|
|
2524
|
+
style: We(`transform:translateX(-${(1 - a.value) * 100}%)`)
|
|
2524
2525
|
}, null, 6),
|
|
2525
|
-
|
|
2526
|
+
c.value ? (i(), y("div", {
|
|
2526
2527
|
key: 0,
|
|
2527
2528
|
class: _(n.value),
|
|
2528
|
-
style:
|
|
2529
|
+
style: We({ width: `${c.value}%` })
|
|
2529
2530
|
}, null, 6)) : T("", !0),
|
|
2530
|
-
w("span", _a, x(
|
|
2531
|
+
w("span", _a, x(o.$td("ui.progress", "{progress}% complete", {
|
|
2531
2532
|
progress: a.value * 100
|
|
2532
2533
|
})), 1)
|
|
2533
2534
|
]));
|
|
@@ -2548,30 +2549,30 @@ const ka = /* @__PURE__ */ v({
|
|
|
2548
2549
|
job: {}
|
|
2549
2550
|
},
|
|
2550
2551
|
setup(t, { expose: s }) {
|
|
2551
|
-
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress:
|
|
2552
|
-
return s(), (
|
|
2552
|
+
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: c } = Ca(e);
|
|
2553
|
+
return s(), (o, u) => (i(), g(le, {
|
|
2553
2554
|
persistent: "",
|
|
2554
2555
|
"wrapper-class": "w-auto",
|
|
2555
2556
|
title: l(r),
|
|
2556
2557
|
"title-hidden": l(a),
|
|
2557
|
-
class: _({ "flex-col-reverse": l(
|
|
2558
|
+
class: _({ "flex-col-reverse": l(c), "flex-row items-center justify-center gap-2": !l(c) })
|
|
2558
2559
|
}, {
|
|
2559
2560
|
default: h(() => [
|
|
2560
|
-
l(
|
|
2561
|
+
l(c) ? (i(), g(xa, {
|
|
2561
2562
|
key: 0,
|
|
2562
|
-
progress:
|
|
2563
|
-
job:
|
|
2563
|
+
progress: o.progress,
|
|
2564
|
+
job: o.job,
|
|
2564
2565
|
class: "min-w-[min(400px,80vw)]"
|
|
2565
|
-
}, null, 8, ["progress", "job"])) : (
|
|
2566
|
+
}, null, 8, ["progress", "job"])) : (i(), g(l(wa), {
|
|
2566
2567
|
key: 1,
|
|
2567
2568
|
class: "text-primary-600 mr-1 size-6"
|
|
2568
2569
|
})),
|
|
2569
|
-
p(
|
|
2570
|
+
p(A, { text: l(n) }, null, 8, ["text"])
|
|
2570
2571
|
]),
|
|
2571
2572
|
_: 1
|
|
2572
2573
|
}, 8, ["title", "title-hidden", "class"]));
|
|
2573
2574
|
}
|
|
2574
|
-
}),
|
|
2575
|
+
}), Oe = /* @__PURE__ */ v({
|
|
2575
2576
|
__name: "HeadlessInput",
|
|
2576
2577
|
props: {
|
|
2577
2578
|
name: {},
|
|
@@ -2582,7 +2583,7 @@ const ka = /* @__PURE__ */ v({
|
|
|
2582
2583
|
},
|
|
2583
2584
|
emits: ["update:modelValue"],
|
|
2584
2585
|
setup(t, { expose: s, emit: e }) {
|
|
2585
|
-
const r = e, n = te("form", null), a = d(() => !n || !t.name ? null : n.errors[t.name] ?? null),
|
|
2586
|
+
const r = e, n = te("form", null), a = d(() => !n || !t.name ? null : n.errors[t.name] ?? null), c = {
|
|
2586
2587
|
id: `input-${pe()}`,
|
|
2587
2588
|
name: d(() => t.name),
|
|
2588
2589
|
label: d(() => t.label),
|
|
@@ -2593,17 +2594,17 @@ const ka = /* @__PURE__ */ v({
|
|
|
2593
2594
|
if (!(!t.name || !n))
|
|
2594
2595
|
return n.getFieldRules(t.name).includes("required");
|
|
2595
2596
|
}),
|
|
2596
|
-
update(
|
|
2597
|
+
update(o) {
|
|
2597
2598
|
if (n && t.name) {
|
|
2598
|
-
n.setFieldValue(t.name,
|
|
2599
|
+
n.setFieldValue(t.name, o);
|
|
2599
2600
|
return;
|
|
2600
2601
|
}
|
|
2601
|
-
r("update:modelValue",
|
|
2602
|
+
r("update:modelValue", o);
|
|
2602
2603
|
}
|
|
2603
2604
|
};
|
|
2604
|
-
return oe("input",
|
|
2605
|
+
return oe("input", c), s(c), (o, u) => (i(), g(re(o.as), null, {
|
|
2605
2606
|
default: h(() => [
|
|
2606
|
-
$(
|
|
2607
|
+
$(o.$slots, "default")
|
|
2607
2608
|
]),
|
|
2608
2609
|
_: 3
|
|
2609
2610
|
}));
|
|
@@ -2612,7 +2613,7 @@ const ka = /* @__PURE__ */ v({
|
|
|
2612
2613
|
__name: "HeadlessInputLabel",
|
|
2613
2614
|
setup(t) {
|
|
2614
2615
|
const s = L("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = Se(), r = d(() => !!(s.label || e.default));
|
|
2615
|
-
return (n, a) => r.value ? (
|
|
2616
|
+
return (n, a) => r.value ? (i(), y("label", {
|
|
2616
2617
|
key: 0,
|
|
2617
2618
|
for: l(s).id
|
|
2618
2619
|
}, [
|
|
@@ -2627,58 +2628,60 @@ const ka = /* @__PURE__ */ v({
|
|
|
2627
2628
|
type: {}
|
|
2628
2629
|
},
|
|
2629
2630
|
setup(t) {
|
|
2630
|
-
const s = Z("$inputRef"), e = L("input", "<HeadlessInputInput> must be a child of a <HeadlessInput>"), r = te("form", null), n = d(() => e.name ?? void 0), a = d(() => e.value),
|
|
2631
|
+
const s = Z("$inputRef"), e = L("input", "<HeadlessInputInput> must be a child of a <HeadlessInput>"), r = te("form", null), n = d(() => e.name ?? void 0), a = d(() => e.value), c = d(() => {
|
|
2631
2632
|
if (t.type)
|
|
2632
2633
|
return t.type;
|
|
2633
2634
|
const m = (n.value && (r == null ? void 0 : r.getFieldType(n.value))) ?? "";
|
|
2634
2635
|
return ["text", "email", "number", "tel", "url"].includes(m) ? m : "text";
|
|
2635
|
-
}),
|
|
2636
|
-
if (
|
|
2636
|
+
}), o = d(() => {
|
|
2637
|
+
if (c.value === "checkbox")
|
|
2637
2638
|
return !!a.value;
|
|
2638
2639
|
});
|
|
2639
|
-
function
|
|
2640
|
+
function u() {
|
|
2640
2641
|
s.value && e.update(f());
|
|
2641
2642
|
}
|
|
2642
2643
|
function f() {
|
|
2643
2644
|
if (!s.value)
|
|
2644
2645
|
return null;
|
|
2645
|
-
switch (
|
|
2646
|
+
switch (c.value) {
|
|
2646
2647
|
case "checkbox":
|
|
2647
2648
|
return s.value.checked;
|
|
2648
2649
|
case "date":
|
|
2649
2650
|
case "time":
|
|
2650
|
-
case "datetime-local":
|
|
2651
|
-
|
|
2652
|
-
Math.round(s.value.valueAsNumber / 6e4) * 6e4 +
|
|
2651
|
+
case "datetime-local": {
|
|
2652
|
+
const m = new Date(
|
|
2653
|
+
Math.round(s.value.valueAsNumber / 6e4) * 6e4 + Ye(s.value.valueAsDate ?? new Date(s.value.valueAsNumber))
|
|
2653
2654
|
);
|
|
2655
|
+
return isNaN(m.getTime()) ? null : m;
|
|
2656
|
+
}
|
|
2654
2657
|
case "number":
|
|
2655
2658
|
return s.value.valueAsNumber;
|
|
2656
2659
|
default:
|
|
2657
2660
|
return s.value.value;
|
|
2658
2661
|
}
|
|
2659
2662
|
}
|
|
2660
|
-
return
|
|
2663
|
+
return bt(e, () => {
|
|
2661
2664
|
var m;
|
|
2662
2665
|
return (m = s.value) == null ? void 0 : m.focus();
|
|
2663
2666
|
}), se(() => {
|
|
2664
2667
|
if (s.value) {
|
|
2665
|
-
if (["date", "time", "datetime-local"].includes(
|
|
2668
|
+
if (["date", "time", "datetime-local"].includes(c.value) && a.value instanceof Date) {
|
|
2666
2669
|
const m = Math.round(a.value.getTime() / 6e4) * 6e4;
|
|
2667
|
-
s.value.valueAsNumber = m -
|
|
2670
|
+
s.value.valueAsNumber = m - Ye(a.value), a.value.getTime() !== m && e.update(new Date(m));
|
|
2668
2671
|
return;
|
|
2669
2672
|
}
|
|
2670
2673
|
s.value.value = a.value ?? null;
|
|
2671
2674
|
}
|
|
2672
|
-
}), (m, b) => (
|
|
2675
|
+
}), (m, b) => (i(), y("input", {
|
|
2673
2676
|
id: l(e).id,
|
|
2674
2677
|
ref: "$inputRef",
|
|
2675
2678
|
name: n.value,
|
|
2676
|
-
checked:
|
|
2677
|
-
type:
|
|
2679
|
+
checked: o.value,
|
|
2680
|
+
type: c.value,
|
|
2678
2681
|
required: l(e).required ?? void 0,
|
|
2679
2682
|
"aria-invalid": l(e).errors ? "true" : "false",
|
|
2680
2683
|
"aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
|
|
2681
|
-
onInput:
|
|
2684
|
+
onInput: u
|
|
2682
2685
|
}, null, 40, Ta));
|
|
2683
2686
|
}
|
|
2684
2687
|
}), Bt = /* @__PURE__ */ v({
|
|
@@ -2692,7 +2695,7 @@ const ka = /* @__PURE__ */ v({
|
|
|
2692
2695
|
return (n, a) => $(n.$slots, "default", {
|
|
2693
2696
|
id: `${l(s).id}-description`
|
|
2694
2697
|
}, () => [
|
|
2695
|
-
r.value ? (
|
|
2698
|
+
r.value ? (i(), g(A, I({ key: 0 }, n.$attrs, {
|
|
2696
2699
|
id: `${l(s).id}-description`,
|
|
2697
2700
|
text: e.value
|
|
2698
2701
|
}), null, 16, ["id", "text"])) : T("", !0)
|
|
@@ -2702,7 +2705,7 @@ const ka = /* @__PURE__ */ v({
|
|
|
2702
2705
|
__name: "HeadlessInputError",
|
|
2703
2706
|
setup(t) {
|
|
2704
2707
|
const s = L("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = d(() => s.errors ? S(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
|
|
2705
|
-
return (r, n) => e.value ? (
|
|
2708
|
+
return (r, n) => e.value ? (i(), y("p", {
|
|
2706
2709
|
key: 0,
|
|
2707
2710
|
id: `${l(s).id}-error`
|
|
2708
2711
|
}, x(e.value), 9, Ma)) : T("", !0);
|
|
@@ -2725,7 +2728,7 @@ const ka = /* @__PURE__ */ v({
|
|
|
2725
2728
|
},
|
|
2726
2729
|
emits: ["update:modelValue"],
|
|
2727
2730
|
setup(t) {
|
|
2728
|
-
const s = K(t, ["label", "inputClass", "wrapperClass", "descriptionClass", "errorClass"]), e = Z("$inputRef"), [r, n] = De(), a = d(() => k("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)),
|
|
2731
|
+
const s = K(t, ["label", "inputClass", "wrapperClass", "descriptionClass", "errorClass"]), e = Z("$inputRef"), [r, n] = De(), a = d(() => k("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), c = d(() => k("mt-2 text-sm text-gray-600", t.descriptionClass)), o = d(() => k("mt-2 text-sm text-red-600", t.errorClass)), u = d(() => {
|
|
2729
2732
|
var f, m, b;
|
|
2730
2733
|
return k(
|
|
2731
2734
|
// eslint-disable-next-line vue/max-len
|
|
@@ -2738,7 +2741,7 @@ const ka = /* @__PURE__ */ v({
|
|
|
2738
2741
|
t.inputClass
|
|
2739
2742
|
);
|
|
2740
2743
|
});
|
|
2741
|
-
return (f, m) => (
|
|
2744
|
+
return (f, m) => (i(), g(Oe, I({
|
|
2742
2745
|
ref: "$inputRef",
|
|
2743
2746
|
label: f.label,
|
|
2744
2747
|
class: l(n)
|
|
@@ -2752,16 +2755,16 @@ const ka = /* @__PURE__ */ v({
|
|
|
2752
2755
|
w("div", {
|
|
2753
2756
|
class: _(a.value)
|
|
2754
2757
|
}, [
|
|
2755
|
-
p(Dt, I(l(r), { class:
|
|
2756
|
-
(b = e.value) != null && b.errors ? (
|
|
2758
|
+
p(Dt, I(l(r), { class: u.value }), null, 16, ["class"]),
|
|
2759
|
+
(b = e.value) != null && b.errors ? (i(), y("div", Va, [
|
|
2757
2760
|
p(l(he), { class: "size-5 text-red-500" })
|
|
2758
2761
|
])) : T("", !0)
|
|
2759
2762
|
], 2),
|
|
2760
2763
|
p(Bt, {
|
|
2761
|
-
class: _(
|
|
2764
|
+
class: _(c.value)
|
|
2762
2765
|
}, null, 8, ["class"]),
|
|
2763
2766
|
p(xe, {
|
|
2764
|
-
class: _(
|
|
2767
|
+
class: _(o.value)
|
|
2765
2768
|
}, null, 8, ["class"])
|
|
2766
2769
|
];
|
|
2767
2770
|
}),
|
|
@@ -2856,7 +2859,7 @@ function wo(t, s = {}) {
|
|
|
2856
2859
|
};
|
|
2857
2860
|
}
|
|
2858
2861
|
function La(t) {
|
|
2859
|
-
const s =
|
|
2862
|
+
const s = yt({
|
|
2860
2863
|
draft: Ha(t.defaultValue ?? "")
|
|
2861
2864
|
}), e = d(() => t.title ?? t.message), r = d(() => t.title ? t.message : null), n = d(() => t.acceptText ?? S("ui.accept", "Ok")), a = d(() => t.cancelText ?? S("ui.cancel", "Cancel"));
|
|
2862
2865
|
return { form: s, renderedTitle: e, renderedMessage: r, renderedAcceptText: n, renderedCancelText: a };
|
|
@@ -2876,43 +2879,43 @@ const Ia = { class: "mt-4 flex flex-row-reverse gap-2" }, za = /* @__PURE__ */ v
|
|
|
2876
2879
|
},
|
|
2877
2880
|
emits: ["close"],
|
|
2878
2881
|
setup(t, { expose: s }) {
|
|
2879
|
-
const e = K(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText:
|
|
2880
|
-
return s(), (
|
|
2882
|
+
const e = K(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: c, renderedCancelText: o } = La(e);
|
|
2883
|
+
return s(), (u, f) => (i(), g(le, {
|
|
2881
2884
|
title: l(n),
|
|
2882
2885
|
persistent: ""
|
|
2883
2886
|
}, {
|
|
2884
2887
|
default: h(({ close: m }) => [
|
|
2885
|
-
p(
|
|
2888
|
+
p(At, {
|
|
2886
2889
|
form: l(r),
|
|
2887
2890
|
onSubmit: (b) => m(l(r).draft)
|
|
2888
2891
|
}, {
|
|
2889
2892
|
default: h(() => [
|
|
2890
|
-
l(a) ? (
|
|
2893
|
+
l(a) ? (i(), g(A, {
|
|
2891
2894
|
key: 0,
|
|
2892
2895
|
text: l(a)
|
|
2893
2896
|
}, null, 8, ["text"])) : T("", !0),
|
|
2894
2897
|
p(Ea, {
|
|
2895
2898
|
name: "draft",
|
|
2896
2899
|
class: "mt-2",
|
|
2897
|
-
placeholder:
|
|
2898
|
-
label:
|
|
2900
|
+
placeholder: u.placeholder,
|
|
2901
|
+
label: u.label
|
|
2899
2902
|
}, null, 8, ["placeholder", "label"]),
|
|
2900
2903
|
w("div", Ia, [
|
|
2901
2904
|
p(q, {
|
|
2902
|
-
variant:
|
|
2905
|
+
variant: u.acceptVariant,
|
|
2903
2906
|
submit: ""
|
|
2904
2907
|
}, {
|
|
2905
2908
|
default: h(() => [
|
|
2906
|
-
z(x(l(
|
|
2909
|
+
z(x(l(c)), 1)
|
|
2907
2910
|
]),
|
|
2908
2911
|
_: 1
|
|
2909
2912
|
}, 8, ["variant"]),
|
|
2910
2913
|
p(q, {
|
|
2911
|
-
variant:
|
|
2914
|
+
variant: u.cancelVariant,
|
|
2912
2915
|
onClick: (b) => m()
|
|
2913
2916
|
}, {
|
|
2914
2917
|
default: h(() => [
|
|
2915
|
-
z(x(l(
|
|
2918
|
+
z(x(l(o)), 1)
|
|
2916
2919
|
]),
|
|
2917
2920
|
_: 2
|
|
2918
2921
|
}, 1032, ["variant", "onClick"])
|
|
@@ -2930,20 +2933,20 @@ const Ia = { class: "mt-4 flex flex-row-reverse gap-2" }, za = /* @__PURE__ */ v
|
|
|
2930
2933
|
height: "1.2em"
|
|
2931
2934
|
};
|
|
2932
2935
|
function qa(t, s) {
|
|
2933
|
-
return
|
|
2936
|
+
return i(), y("svg", Ra, s[0] || (s[0] = [
|
|
2934
2937
|
w("path", {
|
|
2935
2938
|
fill: "currentColor",
|
|
2936
2939
|
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"
|
|
2937
2940
|
}, null, -1)
|
|
2938
2941
|
]));
|
|
2939
2942
|
}
|
|
2940
|
-
const
|
|
2943
|
+
const Aa = R({ name: "material-symbols-bug-report", render: qa }), Pa = {
|
|
2941
2944
|
viewBox: "0 0 24 24",
|
|
2942
2945
|
width: "1.2em",
|
|
2943
2946
|
height: "1.2em"
|
|
2944
2947
|
};
|
|
2945
2948
|
function Da(t, s) {
|
|
2946
|
-
return
|
|
2949
|
+
return i(), y("svg", Pa, s[0] || (s[0] = [
|
|
2947
2950
|
w("path", {
|
|
2948
2951
|
fill: "currentColor",
|
|
2949
2952
|
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"
|
|
@@ -2956,7 +2959,7 @@ const Ba = R({ name: "material-symbols-delete-forever-rounded", render: Da }), j
|
|
|
2956
2959
|
height: "1.2em"
|
|
2957
2960
|
};
|
|
2958
2961
|
function Oa(t, s) {
|
|
2959
|
-
return
|
|
2962
|
+
return i(), y("svg", ja, s[0] || (s[0] = [
|
|
2960
2963
|
w("path", {
|
|
2961
2964
|
fill: "currentColor",
|
|
2962
2965
|
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"
|
|
@@ -2969,7 +2972,7 @@ const Fa = R({ name: "material-symbols-frame-inspect", render: Oa }), Ua = {
|
|
|
2969
2972
|
height: "1.2em"
|
|
2970
2973
|
};
|
|
2971
2974
|
function Na(t, s) {
|
|
2972
|
-
return
|
|
2975
|
+
return i(), y("svg", Ua, s[0] || (s[0] = [
|
|
2973
2976
|
w("path", {
|
|
2974
2977
|
fill: "currentColor",
|
|
2975
2978
|
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"
|
|
@@ -2992,15 +2995,15 @@ Do you still want to proceed?`
|
|
|
2992
2995
|
acceptVariant: "danger",
|
|
2993
2996
|
acceptText: S("startupCrash.purgeConfirmAccept", "Purge device")
|
|
2994
2997
|
}
|
|
2995
|
-
) && (await
|
|
2998
|
+
) && (await $t.purge(), await P.reload());
|
|
2996
2999
|
}
|
|
2997
3000
|
return (e, r) => {
|
|
2998
3001
|
const n = Xt("i-majesticons-exclamation");
|
|
2999
|
-
return
|
|
3002
|
+
return i(), y("div", Ka, [
|
|
3000
3003
|
w("div", Qa, [
|
|
3001
3004
|
p(n, { class: "size-20 text-red-600" }),
|
|
3002
3005
|
w("h1", Ja, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
|
|
3003
|
-
p(
|
|
3006
|
+
p(A, {
|
|
3004
3007
|
text: e.$td(
|
|
3005
3008
|
"startupCrash.message",
|
|
3006
3009
|
"There was a problem starting the application, but here's some things you can do:"
|
|
@@ -3023,7 +3026,7 @@ Do you still want to proceed?`
|
|
|
3023
3026
|
onClick: r[1] || (r[1] = (a) => e.$errors.inspect(e.$errors.startupErrors))
|
|
3024
3027
|
}, {
|
|
3025
3028
|
default: h(() => [
|
|
3026
|
-
p(l(
|
|
3029
|
+
p(l(Aa)),
|
|
3027
3030
|
z(" " + x(e.$td("startupCrash.inspect", "View error details")), 1)
|
|
3028
3031
|
]),
|
|
3029
3032
|
_: 1
|
|
@@ -3059,7 +3062,7 @@ Do you still want to proceed?`
|
|
|
3059
3062
|
action: {}
|
|
3060
3063
|
},
|
|
3061
3064
|
setup(t) {
|
|
3062
|
-
return (s, e) => (
|
|
3065
|
+
return (s, e) => (i(), g(re(s.action.dismiss ? l(Ns) : "button"), {
|
|
3063
3066
|
type: "button",
|
|
3064
3067
|
onClick: s.action.click
|
|
3065
3068
|
}, {
|
|
@@ -3077,11 +3080,11 @@ Do you still want to proceed?`
|
|
|
3077
3080
|
variant: {}
|
|
3078
3081
|
},
|
|
3079
3082
|
setup(t) {
|
|
3080
|
-
return (s, e) => (
|
|
3083
|
+
return (s, e) => (i(), g(l(Ws), null, {
|
|
3081
3084
|
default: h(() => [
|
|
3082
3085
|
$(s.$slots, "default", {}, () => [
|
|
3083
|
-
s.message ? (
|
|
3084
|
-
(
|
|
3086
|
+
s.message ? (i(), y("span", Xa, x(s.message), 1)) : T("", !0),
|
|
3087
|
+
(i(!0), y(j, null, F(s.actions, (r, n) => (i(), g(jt, {
|
|
3085
3088
|
key: n,
|
|
3086
3089
|
action: r
|
|
3087
3090
|
}, null, 8, ["action"]))), 128))
|
|
@@ -3099,7 +3102,7 @@ Do you still want to proceed?`
|
|
|
3099
3102
|
class: {}
|
|
3100
3103
|
},
|
|
3101
3104
|
setup(t, { expose: s }) {
|
|
3102
|
-
const e = d(() =>
|
|
3105
|
+
const e = d(() => vt(
|
|
3103
3106
|
{ baseClasses: t.class, variant: t.variant },
|
|
3104
3107
|
{
|
|
3105
3108
|
baseClasses: "flex items-center gap-2 rounded-md p-2 ring-1 shadow-lg border-gray-200",
|
|
@@ -3115,17 +3118,17 @@ Do you still want to proceed?`
|
|
|
3115
3118
|
}
|
|
3116
3119
|
}
|
|
3117
3120
|
));
|
|
3118
|
-
return s(), (r, n) => (
|
|
3121
|
+
return s(), (r, n) => (i(), g(Ya, {
|
|
3119
3122
|
class: _(e.value)
|
|
3120
3123
|
}, {
|
|
3121
3124
|
default: h(() => [
|
|
3122
|
-
r.message ? (
|
|
3125
|
+
r.message ? (i(), g(A, {
|
|
3123
3126
|
key: 0,
|
|
3124
3127
|
text: r.message,
|
|
3125
3128
|
inline: ""
|
|
3126
3129
|
}, null, 8, ["text"])) : T("", !0),
|
|
3127
|
-
(
|
|
3128
|
-
key:
|
|
3130
|
+
(i(!0), y(j, null, F(r.actions, (a, c) => (i(), g(q, {
|
|
3131
|
+
key: c,
|
|
3129
3132
|
action: a,
|
|
3130
3133
|
variant: r.variant,
|
|
3131
3134
|
as: jt
|
|
@@ -3137,7 +3140,7 @@ Do you still want to proceed?`
|
|
|
3137
3140
|
}), tl = { $ui: D }, sl = {
|
|
3138
3141
|
async install(t, s) {
|
|
3139
3142
|
const e = {
|
|
3140
|
-
"alert-modal":
|
|
3143
|
+
"alert-modal": Pn,
|
|
3141
3144
|
"confirm-modal": Nn,
|
|
3142
3145
|
"error-report-modal": va,
|
|
3143
3146
|
"loading-modal": ka,
|
|
@@ -3158,8 +3161,8 @@ Do you still want to proceed?`
|
|
|
3158
3161
|
};
|
|
3159
3162
|
async function nl(t, s = {}) {
|
|
3160
3163
|
var r;
|
|
3161
|
-
const e = [Sn,
|
|
3162
|
-
|
|
3164
|
+
const e = [Sn, Pr, kn, dn, Or, sl, rl, ...s.plugins ?? []];
|
|
3165
|
+
P.instance = t, await br(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await W.emit("application-ready");
|
|
3163
3166
|
}
|
|
3164
3167
|
async function $o(t, s = {}) {
|
|
3165
3168
|
var r;
|
|
@@ -3169,9 +3172,9 @@ async function $o(t, s = {}) {
|
|
|
3169
3172
|
const al = /* @__PURE__ */ v({
|
|
3170
3173
|
__name: "AppToasts",
|
|
3171
3174
|
setup(t) {
|
|
3172
|
-
return (s, e) => (
|
|
3175
|
+
return (s, e) => (i(), g(l(Ks), null, {
|
|
3173
3176
|
default: h(() => [
|
|
3174
|
-
(
|
|
3177
|
+
(i(!0), y(j, null, F(s.$ui.toasts, (r) => (i(), g(re(r.component), I({
|
|
3175
3178
|
id: r.id,
|
|
3176
3179
|
key: r.id
|
|
3177
3180
|
}, { ref_for: !0 }, r.properties), null, 16, ["id"]))), 128)),
|
|
@@ -3183,7 +3186,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3183
3186
|
}), ll = /* @__PURE__ */ v({
|
|
3184
3187
|
__name: "AppOverlays",
|
|
3185
3188
|
setup(t) {
|
|
3186
|
-
return (s, e) => (
|
|
3189
|
+
return (s, e) => (i(), y(j, null, [
|
|
3187
3190
|
p(l(Cs), { nested: "" }),
|
|
3188
3191
|
p(al)
|
|
3189
3192
|
], 64));
|
|
@@ -3191,9 +3194,9 @@ const al = /* @__PURE__ */ v({
|
|
|
3191
3194
|
}), ol = { class: "text-primary-text flex min-h-full flex-col text-base leading-tight font-normal antialiased" }, _o = /* @__PURE__ */ v({
|
|
3192
3195
|
__name: "AppLayout",
|
|
3193
3196
|
setup(t) {
|
|
3194
|
-
return (s, e) => (
|
|
3197
|
+
return (s, e) => (i(), y("div", ol, [
|
|
3195
3198
|
s.$errors.hasStartupErrors ? $(s.$slots, "startup-crash", { key: 0 }, () => [
|
|
3196
|
-
(
|
|
3199
|
+
(i(), g(re(s.$ui.requireComponent("startup-crash"))))
|
|
3197
3200
|
]) : $(s.$slots, "default", { key: 1 }),
|
|
3198
3201
|
p(ll)
|
|
3199
3202
|
]));
|
|
@@ -3208,10 +3211,10 @@ const al = /* @__PURE__ */ v({
|
|
|
3208
3211
|
function a() {
|
|
3209
3212
|
s.value && e.update(s.value.value);
|
|
3210
3213
|
}
|
|
3211
|
-
return
|
|
3212
|
-
var
|
|
3213
|
-
return (
|
|
3214
|
-
}), (
|
|
3214
|
+
return bt(e, () => {
|
|
3215
|
+
var c;
|
|
3216
|
+
return (c = s.value) == null ? void 0 : c.focus();
|
|
3217
|
+
}), (c, o) => (i(), y("textarea", {
|
|
3215
3218
|
id: l(e).id,
|
|
3216
3219
|
ref: "$textAreaRef",
|
|
3217
3220
|
name: r.value,
|
|
@@ -3236,11 +3239,11 @@ const al = /* @__PURE__ */ v({
|
|
|
3236
3239
|
"hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700",
|
|
3237
3240
|
t.summaryClass
|
|
3238
3241
|
));
|
|
3239
|
-
return (r, n) => (
|
|
3242
|
+
return (r, n) => (i(), y("details", cl, [
|
|
3240
3243
|
w("summary", {
|
|
3241
3244
|
class: _(e.value)
|
|
3242
3245
|
}, [
|
|
3243
|
-
p(l(
|
|
3246
|
+
p(l(Pt), { class: "size-6 transition-transform group-open:rotate-90" }),
|
|
3244
3247
|
$(r.$slots, "label", {}, () => [
|
|
3245
3248
|
w("span", null, x(r.label ?? r.$td("ui.details", "Details")), 1)
|
|
3246
3249
|
])
|
|
@@ -3255,7 +3258,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3255
3258
|
}), xo = /* @__PURE__ */ v({
|
|
3256
3259
|
__name: "AdvancedOptions",
|
|
3257
3260
|
setup(t) {
|
|
3258
|
-
return (s, e) => (
|
|
3261
|
+
return (s, e) => (i(), g(dl, {
|
|
3259
3262
|
label: s.$td("ui.advancedOptions", "Advanced options")
|
|
3260
3263
|
}, {
|
|
3261
3264
|
default: h(() => [
|
|
@@ -3277,44 +3280,44 @@ const al = /* @__PURE__ */ v({
|
|
|
3277
3280
|
},
|
|
3278
3281
|
emits: ["update:modelValue"],
|
|
3279
3282
|
setup(t) {
|
|
3280
|
-
const s = K(t, ["inputClass", "labelClass"]), e = Z("$inputRef"), [r, n] = De(), a = d(() => k("relative flex items-start", n.value)),
|
|
3281
|
-
var
|
|
3283
|
+
const s = K(t, ["inputClass", "labelClass"]), e = Z("$inputRef"), [r, n] = De(), a = d(() => k("relative flex items-start", n.value)), c = d(() => {
|
|
3284
|
+
var u, f;
|
|
3282
3285
|
return k(
|
|
3283
3286
|
"size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
|
|
3284
3287
|
{
|
|
3285
|
-
"border-gray-300 focus:ring-primary-600": !((
|
|
3288
|
+
"border-gray-300 focus:ring-primary-600": !((u = e.value) != null && u.errors),
|
|
3286
3289
|
"border-red-400 border-2 focus:ring-red-600": (f = e.value) == null ? void 0 : f.errors
|
|
3287
3290
|
},
|
|
3288
3291
|
t.inputClass
|
|
3289
3292
|
);
|
|
3290
|
-
}),
|
|
3291
|
-
return (
|
|
3293
|
+
}), o = d(() => k("ml-2 text-sm leading-6", t.labelClass));
|
|
3294
|
+
return (u, f) => (i(), g(Oe, I({
|
|
3292
3295
|
ref: "$inputRef",
|
|
3293
3296
|
class: a.value
|
|
3294
3297
|
}, s, {
|
|
3295
|
-
"onUpdate:modelValue": f[0] || (f[0] = (m) =>
|
|
3298
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => u.$emit("update:modelValue", m))
|
|
3296
3299
|
}), {
|
|
3297
3300
|
default: h(() => [
|
|
3298
3301
|
w("div", pl, [
|
|
3299
3302
|
p(Dt, I(l(r), {
|
|
3300
3303
|
type: "checkbox",
|
|
3301
|
-
class:
|
|
3304
|
+
class: c.value
|
|
3302
3305
|
}), null, 16, ["class"])
|
|
3303
3306
|
]),
|
|
3304
|
-
|
|
3307
|
+
u.$slots.default ? (i(), y("div", {
|
|
3305
3308
|
key: 0,
|
|
3306
|
-
class: _(
|
|
3309
|
+
class: _(o.value)
|
|
3307
3310
|
}, [
|
|
3308
3311
|
p(_e, { class: "text-gray-900" }, {
|
|
3309
3312
|
default: h(() => [
|
|
3310
|
-
$(
|
|
3313
|
+
$(u.$slots, "default")
|
|
3311
3314
|
]),
|
|
3312
3315
|
_: 3
|
|
3313
3316
|
}),
|
|
3314
3317
|
p(xe, { class: "text-red-600" })
|
|
3315
|
-
], 2)) :
|
|
3318
|
+
], 2)) : u.label ? (i(), y("div", {
|
|
3316
3319
|
key: 1,
|
|
3317
|
-
class: _(
|
|
3320
|
+
class: _(o.value)
|
|
3318
3321
|
}, [
|
|
3319
3322
|
p(_e, { class: "text-gray-900" }),
|
|
3320
3323
|
p(xe, { class: "text-red-600" })
|
|
@@ -3332,7 +3335,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3332
3335
|
setup(t) {
|
|
3333
3336
|
return oe(t.name, t.value), (s, e) => $(s.$slots, "default");
|
|
3334
3337
|
}
|
|
3335
|
-
}), fl = { class: "relative flex max-w-[calc(100vw-2rem)] cursor-pointer items-center gap-2 truncate rounded-md px-2 py-1 text-sm select-none *:truncate group-data-[highlighted]:bg-gray-100 group-data-[state=checked]:font-semibold group-data-[state=unchecked]:opacity-50" },
|
|
3338
|
+
}), fl = { class: "relative flex max-w-[calc(100vw-2rem)] cursor-pointer items-center gap-2 truncate rounded-md px-2 py-1 text-sm select-none *:truncate group-data-[highlighted]:bg-gray-100 group-data-[state=checked]:font-semibold group-data-[state=unchecked]:opacity-50" }, nt = /* @__PURE__ */ v({
|
|
3336
3339
|
__name: "ComboboxOption",
|
|
3337
3340
|
props: {
|
|
3338
3341
|
textValue: {},
|
|
@@ -3343,22 +3346,22 @@ const al = /* @__PURE__ */ v({
|
|
|
3343
3346
|
},
|
|
3344
3347
|
emits: ["select"],
|
|
3345
3348
|
setup(t, { emit: s }) {
|
|
3346
|
-
const e = s, r = L("select", "<ComboboxOption> must be a child of a <Combobox>"), n = Js(), a = L("combobox"),
|
|
3349
|
+
const e = s, r = L("select", "<ComboboxOption> must be a child of a <Combobox>"), n = Js(), a = L("combobox"), c = d(() => {
|
|
3347
3350
|
var f;
|
|
3348
|
-
const
|
|
3349
|
-
return
|
|
3351
|
+
const u = (f = r.options) == null ? void 0 : f.find((m) => m.value === t.value);
|
|
3352
|
+
return u ? r.renderOption(u.value) : O(t.value);
|
|
3350
3353
|
});
|
|
3351
|
-
function
|
|
3352
|
-
n.multiple.value || n.disabled.value || (
|
|
3354
|
+
function o(u) {
|
|
3355
|
+
n.multiple.value || n.disabled.value || (u.preventDefault(), a.preventChange = !0, n.modelValue.value = t.value, e("select"));
|
|
3353
3356
|
}
|
|
3354
|
-
return (
|
|
3357
|
+
return (u, f) => (i(), g(l(Zs), I(u.$props, {
|
|
3355
3358
|
class: "group p-1 outline-none",
|
|
3356
|
-
onSelect: f[0] || (f[0] = (m) =>
|
|
3359
|
+
onSelect: f[0] || (f[0] = (m) => o(m))
|
|
3357
3360
|
}), {
|
|
3358
3361
|
default: h(() => [
|
|
3359
3362
|
w("div", fl, [
|
|
3360
|
-
$(
|
|
3361
|
-
z(x(
|
|
3363
|
+
$(u.$slots, "default", {}, () => [
|
|
3364
|
+
z(x(c.value), 1)
|
|
3362
3365
|
])
|
|
3363
3366
|
])
|
|
3364
3367
|
]),
|
|
@@ -3374,33 +3377,33 @@ const al = /* @__PURE__ */ v({
|
|
|
3374
3377
|
setup(t) {
|
|
3375
3378
|
const { contains: s } = Gs({ sensitivity: "base" }), e = L("select", "<ComboboxOptions> must be a child of a <Combobox>"), r = L("combobox"), n = Z("$group"), a = d(
|
|
3376
3379
|
() => {
|
|
3377
|
-
var
|
|
3378
|
-
return ((
|
|
3380
|
+
var u;
|
|
3381
|
+
return ((u = e.options) == null ? void 0 : u.filter((f) => s(f.label, r.input))) ?? [];
|
|
3379
3382
|
}
|
|
3380
|
-
),
|
|
3381
|
-
() => r.input && !a.value.some((
|
|
3382
|
-
),
|
|
3383
|
+
), c = d(
|
|
3384
|
+
() => r.input && !a.value.some((u) => u.label === r.input)
|
|
3385
|
+
), o = k(
|
|
3383
3386
|
"max-h-(--reka-combobox-content-available-height) min-w-(--reka-combobox-trigger-width)",
|
|
3384
3387
|
"z-50 overflow-auto rounded-lg bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden"
|
|
3385
3388
|
);
|
|
3386
3389
|
return X(n, () => {
|
|
3387
|
-
var
|
|
3388
|
-
return r.$group = ((
|
|
3389
|
-
}), (
|
|
3390
|
+
var u;
|
|
3391
|
+
return r.$group = ((u = n.value) == null ? void 0 : u.$el) ?? null;
|
|
3392
|
+
}), (u, f) => (i(), g(l(Xs), null, {
|
|
3390
3393
|
default: h(() => [
|
|
3391
3394
|
p(l(Ys), {
|
|
3392
3395
|
position: "popper",
|
|
3393
3396
|
align: l(e).align,
|
|
3394
3397
|
side: l(e).side,
|
|
3395
3398
|
"side-offset": 4,
|
|
3396
|
-
class: _(l(
|
|
3399
|
+
class: _(l(o))
|
|
3397
3400
|
}, {
|
|
3398
3401
|
default: h(() => [
|
|
3399
3402
|
p(l(er), null, {
|
|
3400
3403
|
default: h(() => [
|
|
3401
3404
|
p(l(tr), { class: "group p-1 outline-none" }, {
|
|
3402
3405
|
default: h(() => [
|
|
3403
|
-
w("div", hl, x(
|
|
3406
|
+
w("div", hl, x(u.$td("ui.comboboxEmpty", "No options found")), 1)
|
|
3404
3407
|
]),
|
|
3405
3408
|
_: 1
|
|
3406
3409
|
}),
|
|
@@ -3411,20 +3414,20 @@ const al = /* @__PURE__ */ v({
|
|
|
3411
3414
|
default: h(() => {
|
|
3412
3415
|
var m;
|
|
3413
3416
|
return [
|
|
3414
|
-
|
|
3417
|
+
c.value ? (i(), g(nt, {
|
|
3415
3418
|
key: 0,
|
|
3416
|
-
value: ((m =
|
|
3417
|
-
onSelect: f[0] || (f[0] = (b) =>
|
|
3419
|
+
value: ((m = u.newInputValue) == null ? void 0 : m.call(u, l(r).input)) ?? l(r).input,
|
|
3420
|
+
onSelect: f[0] || (f[0] = (b) => u.$emit("select"))
|
|
3418
3421
|
}, {
|
|
3419
3422
|
default: h(() => [
|
|
3420
3423
|
z(x(l(r).input), 1)
|
|
3421
3424
|
]),
|
|
3422
3425
|
_: 1
|
|
3423
3426
|
}, 8, ["value"])) : T("", !0),
|
|
3424
|
-
(
|
|
3427
|
+
(i(!0), y(j, null, F(a.value, (b) => (i(), g(nt, {
|
|
3425
3428
|
key: b.key,
|
|
3426
3429
|
value: b.value,
|
|
3427
|
-
onSelect: f[1] || (f[1] = (M) =>
|
|
3430
|
+
onSelect: f[1] || (f[1] = (M) => u.$emit("select"))
|
|
3428
3431
|
}, null, 8, ["value"]))), 128))
|
|
3429
3432
|
];
|
|
3430
3433
|
}),
|
|
@@ -3457,10 +3460,10 @@ const al = /* @__PURE__ */ v({
|
|
|
3457
3460
|
"pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": r.errors
|
|
3458
3461
|
}
|
|
3459
3462
|
));
|
|
3460
|
-
function
|
|
3461
|
-
Array.from(document.querySelectorAll(":hover")).some((
|
|
3463
|
+
function c() {
|
|
3464
|
+
Array.from(document.querySelectorAll(":hover")).some((u) => {
|
|
3462
3465
|
var f;
|
|
3463
|
-
return (f = n.$group) == null ? void 0 : f.contains(
|
|
3466
|
+
return (f = n.$group) == null ? void 0 : f.contains(u);
|
|
3464
3467
|
}) || e("blur");
|
|
3465
3468
|
}
|
|
3466
3469
|
return X(
|
|
@@ -3472,23 +3475,23 @@ const al = /* @__PURE__ */ v({
|
|
|
3472
3475
|
}
|
|
3473
3476
|
e("change");
|
|
3474
3477
|
}
|
|
3475
|
-
), (
|
|
3478
|
+
), (o, u) => (i(), g(l(rr), { class: "relative" }, {
|
|
3476
3479
|
default: h(() => {
|
|
3477
3480
|
var f;
|
|
3478
3481
|
return [
|
|
3479
3482
|
p(l(nr), {
|
|
3480
3483
|
id: l(r).id,
|
|
3481
3484
|
modelValue: l(n).input,
|
|
3482
|
-
"onUpdate:modelValue":
|
|
3485
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => l(n).input = m),
|
|
3483
3486
|
placeholder: l(r).placeholder,
|
|
3484
3487
|
class: _(a.value),
|
|
3485
3488
|
"display-value": l(r).renderOption,
|
|
3486
3489
|
name: l(r).name,
|
|
3487
|
-
onFocus:
|
|
3488
|
-
onBlur:
|
|
3489
|
-
onKeydown:
|
|
3490
|
+
onFocus: u[1] || (u[1] = (m) => o.$emit("focus")),
|
|
3491
|
+
onBlur: u[2] || (u[2] = (m) => c()),
|
|
3492
|
+
onKeydown: u[3] || (u[3] = es((m) => o.$emit("blur"), ["esc"]))
|
|
3490
3493
|
}, null, 8, ["id", "modelValue", "placeholder", "class", "display-value", "name"]),
|
|
3491
|
-
(f = l(r)) != null && f.errors ? (
|
|
3494
|
+
(f = l(r)) != null && f.errors ? (i(), y("div", vl, [
|
|
3492
3495
|
p(l(he), { class: "size-5 text-red-500" })
|
|
3493
3496
|
])) : T("", !0)
|
|
3494
3497
|
];
|
|
@@ -3504,7 +3507,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3504
3507
|
},
|
|
3505
3508
|
setup(t) {
|
|
3506
3509
|
const s = L("select", "<ComboboxLabel> must be a child of a <Combobox>"), e = Se(), r = d(() => !!(s.label || e.default)), n = d(() => k("block text-sm leading-6 font-medium text-gray-900", s.labelClass));
|
|
3507
|
-
return (a,
|
|
3510
|
+
return (a, c) => r.value ? (i(), g(l(ft), I({
|
|
3508
3511
|
key: 0,
|
|
3509
3512
|
for: l(s).id,
|
|
3510
3513
|
class: n.value
|
|
@@ -3539,39 +3542,39 @@ const al = /* @__PURE__ */ v({
|
|
|
3539
3542
|
setup(t, { expose: s, emit: e }) {
|
|
3540
3543
|
const r = e, n = K(t, ["as", "compareOptions", "newInputValue"]), {
|
|
3541
3544
|
expose: a,
|
|
3542
|
-
acceptableValue:
|
|
3543
|
-
update:
|
|
3544
|
-
renderOption:
|
|
3545
|
-
} =
|
|
3545
|
+
acceptableValue: c,
|
|
3546
|
+
update: o,
|
|
3547
|
+
renderOption: u
|
|
3548
|
+
} = Mt(
|
|
3546
3549
|
d(() => ({ as: t.as, compareOptions: t.compareOptions, ...n })),
|
|
3547
3550
|
r
|
|
3548
3551
|
), f = B(!1), m = d(() => {
|
|
3549
3552
|
var H;
|
|
3550
3553
|
return Object.fromEntries(((H = a.options.value) == null ? void 0 : H.map((V) => [V.label, V.value])) ?? []);
|
|
3551
3554
|
}), b = {
|
|
3552
|
-
input: B(
|
|
3555
|
+
input: B(c.value ? u(c.value) : ""),
|
|
3553
3556
|
preventChange: B(!1),
|
|
3554
3557
|
$group: B(null)
|
|
3555
3558
|
};
|
|
3556
3559
|
function M(H) {
|
|
3557
|
-
b.input.value =
|
|
3560
|
+
b.input.value = u(H), o(H);
|
|
3558
3561
|
}
|
|
3559
3562
|
return X(a.value, (H) => {
|
|
3560
|
-
const V =
|
|
3563
|
+
const V = u(H);
|
|
3561
3564
|
b.input.value !== V && (b.preventChange.value = !0, b.input.value = V);
|
|
3562
3565
|
}), X(b.input, (H) => {
|
|
3563
|
-
const V = t.newInputValue ? t.newInputValue(H) : H, U =
|
|
3566
|
+
const V = t.newInputValue ? t.newInputValue(H) : H, U = u(V);
|
|
3564
3567
|
if (U in m.value) {
|
|
3565
3568
|
M(m.value[U]);
|
|
3566
3569
|
return;
|
|
3567
3570
|
}
|
|
3568
3571
|
M(V);
|
|
3569
|
-
}), s(a), (H, V) => (
|
|
3572
|
+
}), s(a), (H, V) => (i(), g(l(ar), {
|
|
3570
3573
|
"ignore-filter": "",
|
|
3571
3574
|
open: f.value,
|
|
3572
3575
|
"reset-search-term-on-blur": !1,
|
|
3573
3576
|
"reset-search-term-on-select": !1,
|
|
3574
|
-
"model-value": l(
|
|
3577
|
+
"model-value": l(c),
|
|
3575
3578
|
by: H.compareOptions,
|
|
3576
3579
|
"onUpdate:modelValue": V[4] || (V[4] = (U) => M(U))
|
|
3577
3580
|
}, {
|
|
@@ -3587,7 +3590,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3587
3590
|
onChange: V[1] || (V[1] = (U) => f.value = !0),
|
|
3588
3591
|
onBlur: V[2] || (V[2] = (U) => f.value = !1)
|
|
3589
3592
|
}),
|
|
3590
|
-
p(
|
|
3593
|
+
p(qt, { class: "mt-2 text-sm text-red-600" }),
|
|
3591
3594
|
p(gl, {
|
|
3592
3595
|
"new-input-value": H.newInputValue,
|
|
3593
3596
|
onSelect: V[3] || (V[3] = (U) => f.value = !1)
|
|
@@ -3612,7 +3615,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3612
3615
|
"flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
|
|
3613
3616
|
t.class
|
|
3614
3617
|
));
|
|
3615
|
-
return (r, n) => (
|
|
3618
|
+
return (r, n) => (i(), g(l(lr), I({ class: e.value }, s, {
|
|
3616
3619
|
onSelect: n[0] || (n[0] = (a) => r.$emit("select"))
|
|
3617
3620
|
}), {
|
|
3618
3621
|
default: h(() => [
|
|
@@ -3628,17 +3631,17 @@ const al = /* @__PURE__ */ v({
|
|
|
3628
3631
|
"dropdown-menu",
|
|
3629
3632
|
"<DropdownMenuOptions> must be a child of a <DropdownMenu>"
|
|
3630
3633
|
);
|
|
3631
|
-
return (e, r) => (
|
|
3634
|
+
return (e, r) => (i(), g(l(or), {
|
|
3632
3635
|
class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
|
|
3633
3636
|
align: l(s).align,
|
|
3634
3637
|
side: l(s).side
|
|
3635
3638
|
}, {
|
|
3636
3639
|
default: h(() => [
|
|
3637
3640
|
$(e.$slots, "default", {}, () => [
|
|
3638
|
-
(
|
|
3641
|
+
(i(!0), y(j, null, F(l(s).options, (n, a) => (i(), g(wl, I(
|
|
3639
3642
|
{
|
|
3640
3643
|
key: a,
|
|
3641
|
-
as: n.route || n.href ?
|
|
3644
|
+
as: n.route || n.href ? Tt : void 0,
|
|
3642
3645
|
class: n.class
|
|
3643
3646
|
},
|
|
3644
3647
|
{ ref_for: !0 },
|
|
@@ -3649,9 +3652,9 @@ const al = /* @__PURE__ */ v({
|
|
|
3649
3652
|
routeQuery: n.routeQuery
|
|
3650
3653
|
} : {},
|
|
3651
3654
|
{
|
|
3652
|
-
onSelect: (
|
|
3653
|
-
var
|
|
3654
|
-
return (
|
|
3655
|
+
onSelect: (c) => {
|
|
3656
|
+
var o;
|
|
3657
|
+
return (o = n.click) == null ? void 0 : o.call(n);
|
|
3655
3658
|
}
|
|
3656
3659
|
}
|
|
3657
3660
|
), {
|
|
@@ -3681,7 +3684,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3681
3684
|
return (r = t.options) == null ? void 0 : r.filter(Boolean);
|
|
3682
3685
|
})
|
|
3683
3686
|
};
|
|
3684
|
-
return oe("dropdown-menu", e), s(e), (r, n) => (
|
|
3687
|
+
return oe("dropdown-menu", e), s(e), (r, n) => (i(), g(l(ir), null, {
|
|
3685
3688
|
default: h(() => [
|
|
3686
3689
|
p(l(ur), null, {
|
|
3687
3690
|
default: h(() => [
|
|
@@ -3714,45 +3717,45 @@ const al = /* @__PURE__ */ v({
|
|
|
3714
3717
|
},
|
|
3715
3718
|
emits: ["update", "save"],
|
|
3716
3719
|
setup(t, { emit: s }) {
|
|
3717
|
-
const e = s, r = Z("$inputRef"), n = B(null), a = B(t.text),
|
|
3720
|
+
const e = s, r = Z("$inputRef"), n = B(null), a = B(t.text), c = d(() => k("inline whitespace-pre", t.contentClass)), o = d(() => k("invisible whitespace-pre", t.contentClass)), u = d(() => k("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
|
|
3718
3721
|
function f() {
|
|
3719
3722
|
n.value = t.text;
|
|
3720
3723
|
}
|
|
3721
3724
|
function m() {
|
|
3722
3725
|
n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
|
|
3723
3726
|
}
|
|
3724
|
-
return se(() => a.value = t.text), (b, M) => (
|
|
3727
|
+
return se(() => a.value = t.text), (b, M) => (i(), y("div", {
|
|
3725
3728
|
class: _(["relative", { "pointer-events-none!": b.disabled && !n.value }])
|
|
3726
3729
|
}, [
|
|
3727
|
-
n.value ? (
|
|
3730
|
+
n.value ? (i(), y("span", {
|
|
3728
3731
|
key: 1,
|
|
3729
|
-
class: _(
|
|
3730
|
-
}, x(a.value), 3)) : (
|
|
3732
|
+
class: _(o.value)
|
|
3733
|
+
}, x(a.value), 3)) : (i(), y("div", {
|
|
3731
3734
|
key: 0,
|
|
3732
|
-
class: _(
|
|
3735
|
+
class: _(c.value)
|
|
3733
3736
|
}, [
|
|
3734
3737
|
$(b.$slots, "default")
|
|
3735
3738
|
], 2)),
|
|
3736
|
-
b.type === "number" ? (
|
|
3739
|
+
b.type === "number" ? (i(), y("span", {
|
|
3737
3740
|
key: 2,
|
|
3738
3741
|
class: _(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
|
|
3739
3742
|
}, null, 2)) : T("", !0),
|
|
3740
3743
|
w("form", {
|
|
3741
3744
|
class: "w-full",
|
|
3742
3745
|
"aria-hidden": b.formAriaHidden,
|
|
3743
|
-
onSubmit: M[4] || (M[4] =
|
|
3746
|
+
onSubmit: M[4] || (M[4] = ot((H) => {
|
|
3744
3747
|
var V;
|
|
3745
3748
|
return (V = r.value) == null ? void 0 : V.blur();
|
|
3746
3749
|
}, ["prevent"]))
|
|
3747
3750
|
}, [
|
|
3748
|
-
|
|
3751
|
+
it(w("input", {
|
|
3749
3752
|
ref: "$inputRef",
|
|
3750
3753
|
"onUpdate:modelValue": M[0] || (M[0] = (H) => a.value = H),
|
|
3751
3754
|
tabindex: b.tabindex ?? void 0,
|
|
3752
3755
|
"aria-label": b.ariaLabel ?? void 0,
|
|
3753
3756
|
type: b.type,
|
|
3754
3757
|
class: _([
|
|
3755
|
-
|
|
3758
|
+
u.value,
|
|
3756
3759
|
{ "opacity-0": !n.value, "appearance-textfield": !n.value && b.type === "number" }
|
|
3757
3760
|
]),
|
|
3758
3761
|
onKeyup: M[1] || (M[1] = (H) => b.$emit("update", a.value)),
|
|
@@ -3770,7 +3773,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3770
3773
|
height: "1.2em"
|
|
3771
3774
|
};
|
|
3772
3775
|
function kl(t, s) {
|
|
3773
|
-
return
|
|
3776
|
+
return i(), y("svg", Cl, s[0] || (s[0] = [
|
|
3774
3777
|
w("path", {
|
|
3775
3778
|
fill: "currentColor",
|
|
3776
3779
|
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"
|
|
@@ -3783,7 +3786,7 @@ const Sl = R({ name: "ion-warning", render: kl }), Tl = {
|
|
|
3783
3786
|
height: "1.2em"
|
|
3784
3787
|
};
|
|
3785
3788
|
function Ml(t, s) {
|
|
3786
|
-
return
|
|
3789
|
+
return i(), y("svg", Tl, s[0] || (s[0] = [
|
|
3787
3790
|
w("path", {
|
|
3788
3791
|
fill: "currentColor",
|
|
3789
3792
|
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"
|
|
@@ -3793,12 +3796,12 @@ function Ml(t, s) {
|
|
|
3793
3796
|
const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-medium" }, Hl = ["datetime"], Ll = /* @__PURE__ */ v({
|
|
3794
3797
|
__name: "ErrorLogsModal",
|
|
3795
3798
|
setup(t) {
|
|
3796
|
-
return (s, e) => (
|
|
3799
|
+
return (s, e) => (i(), g(le, {
|
|
3797
3800
|
title: s.$td("errors.report", "Errors ({count})", { count: s.$errors.logs.length })
|
|
3798
3801
|
}, {
|
|
3799
3802
|
default: h(() => [
|
|
3800
3803
|
w("ol", null, [
|
|
3801
|
-
(
|
|
3804
|
+
(i(!0), y(j, null, F(s.$errors.logs, (r, n) => (i(), y("li", {
|
|
3802
3805
|
key: n,
|
|
3803
3806
|
class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
|
|
3804
3807
|
}, [
|
|
@@ -3808,9 +3811,9 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3808
3811
|
datetime: r.date.toISOString(),
|
|
3809
3812
|
class: "text-xs text-gray-700"
|
|
3810
3813
|
}, x(r.date.toLocaleTimeString()), 9, Hl),
|
|
3811
|
-
p(
|
|
3814
|
+
p(A, {
|
|
3812
3815
|
class: "text-sm text-gray-500",
|
|
3813
|
-
text: r.report.description ?? l(
|
|
3816
|
+
text: r.report.description ?? l(Be)(r.report)
|
|
3814
3817
|
}, null, 8, ["text"])
|
|
3815
3818
|
]),
|
|
3816
3819
|
p(q, {
|
|
@@ -3821,7 +3824,7 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3821
3824
|
class: "self-center",
|
|
3822
3825
|
onClick: (a) => s.$errors.inspect(
|
|
3823
3826
|
r.report,
|
|
3824
|
-
s.$errors.logs.map(({ report:
|
|
3827
|
+
s.$errors.logs.map(({ report: c }) => c)
|
|
3825
3828
|
)
|
|
3826
3829
|
}, {
|
|
3827
3830
|
default: h(() => [
|
|
@@ -3841,7 +3844,7 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3841
3844
|
}), Mo = /* @__PURE__ */ v({
|
|
3842
3845
|
__name: "ErrorLogs",
|
|
3843
3846
|
setup(t) {
|
|
3844
|
-
return (s, e) => s.$errors.logs.length > 0 ? (
|
|
3847
|
+
return (s, e) => s.$errors.logs.length > 0 ? (i(), g(q, {
|
|
3845
3848
|
key: 0,
|
|
3846
3849
|
size: "icon",
|
|
3847
3850
|
variant: "ghost",
|
|
@@ -3861,8 +3864,8 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3861
3864
|
error: {}
|
|
3862
3865
|
},
|
|
3863
3866
|
setup(t) {
|
|
3864
|
-
const s = d(() =>
|
|
3865
|
-
return (e, r) => (
|
|
3867
|
+
const s = d(() => Be(t.error));
|
|
3868
|
+
return (e, r) => (i(), g(A, {
|
|
3866
3869
|
text: s.value,
|
|
3867
3870
|
inline: ""
|
|
3868
3871
|
}, null, 8, ["text"]));
|
|
@@ -3882,7 +3885,7 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3882
3885
|
as: {}
|
|
3883
3886
|
},
|
|
3884
3887
|
setup(t) {
|
|
3885
|
-
return (s, e) => (
|
|
3888
|
+
return (s, e) => (i(), g(q, I({ variant: "link" }, s.$props), {
|
|
3886
3889
|
default: h(() => [
|
|
3887
3890
|
$(s.$slots, "default")
|
|
3888
3891
|
]),
|
|
@@ -3892,13 +3895,13 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3892
3895
|
}), Ho = /* @__PURE__ */ v({
|
|
3893
3896
|
__name: "SettingsModal",
|
|
3894
3897
|
setup(t) {
|
|
3895
|
-
const s = d(() => ps(
|
|
3896
|
-
return (e, r) => (
|
|
3898
|
+
const s = d(() => ps(P.settings, "priority", "desc"));
|
|
3899
|
+
return (e, r) => (i(), g(le, {
|
|
3897
3900
|
title: e.$td("settings.title", "Settings"),
|
|
3898
3901
|
"fullscreen-on-mobile": e.$app.settingsFullscreenOnMobile
|
|
3899
3902
|
}, {
|
|
3900
3903
|
default: h(() => [
|
|
3901
|
-
(
|
|
3904
|
+
(i(!0), y(j, null, F(s.value, (n, a) => (i(), g(re(n.component), { key: a }))), 128))
|
|
3902
3905
|
]),
|
|
3903
3906
|
_: 1
|
|
3904
3907
|
}, 8, ["title", "fullscreen-on-mobile"]));
|
|
@@ -3919,25 +3922,25 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3919
3922
|
},
|
|
3920
3923
|
emits: ["update:modelValue"],
|
|
3921
3924
|
setup(t) {
|
|
3922
|
-
const s = K(t, ["label", "inputClass", "wrapperClass"]), e = Z("$inputRef"), [r, n] = De(), a = d(() => k("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)),
|
|
3923
|
-
var
|
|
3925
|
+
const s = K(t, ["label", "inputClass", "wrapperClass"]), e = Z("$inputRef"), [r, n] = De(), a = d(() => k("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), c = d(() => {
|
|
3926
|
+
var o, u, f;
|
|
3924
3927
|
return k(
|
|
3925
3928
|
// eslint-disable-next-line vue/max-len
|
|
3926
3929
|
"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",
|
|
3927
3930
|
{
|
|
3928
|
-
"focus:ring-primary-600": !((
|
|
3929
|
-
"text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((
|
|
3931
|
+
"focus:ring-primary-600": !((o = e.value) != null && o.errors),
|
|
3932
|
+
"text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((u = e.value) != null && u.errors),
|
|
3930
3933
|
"pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (f = e.value) == null ? void 0 : f.errors
|
|
3931
3934
|
},
|
|
3932
3935
|
t.inputClass
|
|
3933
3936
|
);
|
|
3934
3937
|
});
|
|
3935
|
-
return (
|
|
3938
|
+
return (o, u) => (i(), g(Oe, I({
|
|
3936
3939
|
ref: "$inputRef",
|
|
3937
|
-
label:
|
|
3940
|
+
label: o.label,
|
|
3938
3941
|
class: l(n)
|
|
3939
3942
|
}, s, {
|
|
3940
|
-
"onUpdate:modelValue":
|
|
3943
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => o.$emit("update:modelValue", f))
|
|
3941
3944
|
}), {
|
|
3942
3945
|
default: h(() => {
|
|
3943
3946
|
var f;
|
|
@@ -3946,8 +3949,8 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3946
3949
|
w("div", {
|
|
3947
3950
|
class: _(a.value)
|
|
3948
3951
|
}, [
|
|
3949
|
-
p(ul, I(l(r), { class:
|
|
3950
|
-
(f = e.value) != null && f.errors ? (
|
|
3952
|
+
p(ul, I(l(r), { class: c.value }), null, 16, ["class"]),
|
|
3953
|
+
(f = e.value) != null && f.errors ? (i(), y("div", Il, [
|
|
3951
3954
|
p(l(he), { class: "size-5 text-red-500" })
|
|
3952
3955
|
])) : T("", !0)
|
|
3953
3956
|
], 2),
|
|
@@ -3974,7 +3977,7 @@ class Io {
|
|
|
3974
3977
|
try {
|
|
3975
3978
|
await this.updateProgress(), await this.run(), await this.updateProgress(), this._completed.resolve();
|
|
3976
3979
|
} catch (s) {
|
|
3977
|
-
if (s instanceof
|
|
3980
|
+
if (s instanceof rt)
|
|
3978
3981
|
return;
|
|
3979
3982
|
throw ne(fs(s), (e) => {
|
|
3980
3983
|
this._completed.reject(e);
|
|
@@ -4017,7 +4020,7 @@ class Io {
|
|
|
4017
4020
|
}
|
|
4018
4021
|
assertNotCancelled() {
|
|
4019
4022
|
if (this._cancelled)
|
|
4020
|
-
throw this._cancelled.resolve(), new
|
|
4023
|
+
throw this._cancelled.resolve(), new rt();
|
|
4021
4024
|
}
|
|
4022
4025
|
calculateCurrentProgress(s) {
|
|
4023
4026
|
return s ?? (s = this.status), s.completed ? 1 : !s.children || s.children.length === 0 ? 0 : hs(
|
|
@@ -4039,8 +4042,8 @@ async function zo(t) {
|
|
|
4039
4042
|
}
|
|
4040
4043
|
export {
|
|
4041
4044
|
xo as AdvancedOptions,
|
|
4042
|
-
|
|
4043
|
-
|
|
4045
|
+
Pn as AlertModal,
|
|
4046
|
+
P as App,
|
|
4044
4047
|
_o as AppLayout,
|
|
4045
4048
|
ll as AppOverlays,
|
|
4046
4049
|
vr as AppService,
|
|
@@ -4051,7 +4054,7 @@ export {
|
|
|
4051
4054
|
Co as Checkbox,
|
|
4052
4055
|
ko as Combobox,
|
|
4053
4056
|
yl as ComboboxLabel,
|
|
4054
|
-
|
|
4057
|
+
nt as ComboboxOption,
|
|
4055
4058
|
gl as ComboboxOptions,
|
|
4056
4059
|
bl as ComboboxTrigger,
|
|
4057
4060
|
Nn as ConfirmModal,
|
|
@@ -4066,14 +4069,14 @@ export {
|
|
|
4066
4069
|
va as ErrorReportModal,
|
|
4067
4070
|
ia as ErrorReportModalButtons,
|
|
4068
4071
|
ua as ErrorReportModalTitle,
|
|
4069
|
-
|
|
4072
|
+
St as Errors,
|
|
4070
4073
|
Ql as EventListenerPriorities,
|
|
4071
4074
|
W as Events,
|
|
4072
4075
|
hr as EventsService,
|
|
4073
|
-
|
|
4076
|
+
At as Form,
|
|
4074
4077
|
Mr as FormController,
|
|
4075
|
-
|
|
4076
|
-
|
|
4078
|
+
Tt as HeadlessButton,
|
|
4079
|
+
Oe as HeadlessInput,
|
|
4077
4080
|
Bt as HeadlessInputDescription,
|
|
4078
4081
|
xe as HeadlessInputError,
|
|
4079
4082
|
Dt as HeadlessInputInput,
|
|
@@ -4085,47 +4088,47 @@ export {
|
|
|
4085
4088
|
In as HeadlessModalOverlay,
|
|
4086
4089
|
zn as HeadlessModalTitle,
|
|
4087
4090
|
Gr as HeadlessSelect,
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4091
|
+
tt as HeadlessSelectLabel,
|
|
4092
|
+
Ht as HeadlessSelectOption,
|
|
4093
|
+
Lt as HeadlessSelectOptions,
|
|
4094
|
+
Et as HeadlessSelectTrigger,
|
|
4095
|
+
Vt as HeadlessSelectValue,
|
|
4093
4096
|
bn as HeadlessSwitch,
|
|
4094
4097
|
Ya as HeadlessToast,
|
|
4095
4098
|
Ea as Input,
|
|
4096
4099
|
Io as Job,
|
|
4097
|
-
|
|
4100
|
+
rt as JobCancelledError,
|
|
4098
4101
|
ee as Lang,
|
|
4099
4102
|
$e as Layouts,
|
|
4100
4103
|
Eo as Link,
|
|
4101
4104
|
ka as LoadingModal,
|
|
4102
4105
|
Rr as MINUTE_MILLISECONDS,
|
|
4103
|
-
|
|
4104
|
-
|
|
4106
|
+
Ct as MOBILE_BREAKPOINT,
|
|
4107
|
+
A as Markdown,
|
|
4105
4108
|
le as Modal,
|
|
4106
|
-
|
|
4107
|
-
|
|
4109
|
+
Ao as ModalComponent,
|
|
4110
|
+
Po as ModalsPortal,
|
|
4108
4111
|
xa as ProgressBar,
|
|
4109
4112
|
za as PromptModal,
|
|
4110
4113
|
ml as Provide,
|
|
4111
4114
|
an as Select,
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4115
|
+
It as SelectLabel,
|
|
4116
|
+
st as SelectOption,
|
|
4117
|
+
zt as SelectOptions,
|
|
4118
|
+
Rt as SelectTrigger,
|
|
4116
4119
|
Ve as Service,
|
|
4117
4120
|
Re as ServiceBootError,
|
|
4118
4121
|
gn as Setting,
|
|
4119
4122
|
Ho as SettingsModal,
|
|
4120
4123
|
Ga as StartupCrash,
|
|
4121
|
-
|
|
4124
|
+
$t as Storage,
|
|
4122
4125
|
yn as Switch,
|
|
4123
4126
|
Lo as TextArea,
|
|
4124
4127
|
el as Toast,
|
|
4125
4128
|
D as UI,
|
|
4126
|
-
|
|
4129
|
+
Kr as UIService,
|
|
4127
4130
|
eo as __valueType,
|
|
4128
|
-
|
|
4131
|
+
Ar as aerogelDirectives,
|
|
4129
4132
|
dr as appNamespace,
|
|
4130
4133
|
uo as booleanInput,
|
|
4131
4134
|
Ee as bootServices,
|
|
@@ -4145,9 +4148,9 @@ export {
|
|
|
4145
4148
|
Jl as defineSettings,
|
|
4146
4149
|
zo as dispatch,
|
|
4147
4150
|
po as enumInput,
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
+
kt as getCurrentLayout,
|
|
4152
|
+
Be as getErrorMessage,
|
|
4153
|
+
Ye as getLocalTimezoneOffset,
|
|
4151
4154
|
Ir as getMarkdownRouter,
|
|
4152
4155
|
mr as getPiniaStore,
|
|
4153
4156
|
Zr as hasSelectOptionLabel,
|
|
@@ -4160,13 +4163,13 @@ export {
|
|
|
4160
4163
|
bo as numberInput,
|
|
4161
4164
|
yo as objectInput,
|
|
4162
4165
|
to as onCleanMounted,
|
|
4163
|
-
|
|
4166
|
+
bt as onFormFocus,
|
|
4164
4167
|
so as persistent,
|
|
4165
4168
|
Vr as reactiveSet,
|
|
4166
4169
|
io as registerErrorHandler,
|
|
4167
4170
|
kr as registerFormValidationRule,
|
|
4168
4171
|
zr as renderMarkdown,
|
|
4169
|
-
|
|
4172
|
+
gt as renderVNode,
|
|
4170
4173
|
oo as replaceExisting,
|
|
4171
4174
|
mo as requiredBooleanInput,
|
|
4172
4175
|
fo as requiredDateInput,
|
|
@@ -4175,25 +4178,25 @@ export {
|
|
|
4175
4178
|
vo as requiredObjectInput,
|
|
4176
4179
|
Ha as requiredStringInput,
|
|
4177
4180
|
pr as resetPiniaStore,
|
|
4178
|
-
|
|
4181
|
+
wt as safeHtml,
|
|
4179
4182
|
ao as setMarkdownRouter,
|
|
4180
4183
|
Fo as showModal,
|
|
4181
4184
|
wo as stringInput,
|
|
4182
|
-
|
|
4185
|
+
_t as translate,
|
|
4183
4186
|
S as translateWithDefault,
|
|
4184
|
-
|
|
4187
|
+
An as useAlertModal,
|
|
4185
4188
|
Dn as useConfirmModal,
|
|
4186
4189
|
ca as useErrorReportModal,
|
|
4187
4190
|
Xl as useEvent,
|
|
4188
|
-
|
|
4191
|
+
yt as useForm,
|
|
4189
4192
|
De as useInputAttrs,
|
|
4190
4193
|
Ca as useLoadingModal,
|
|
4191
|
-
|
|
4194
|
+
je as useModal,
|
|
4192
4195
|
La as usePromptModal,
|
|
4193
|
-
|
|
4196
|
+
Mt as useSelect,
|
|
4194
4197
|
Tr as validate,
|
|
4195
4198
|
Sr as validateType,
|
|
4196
4199
|
ye as validators,
|
|
4197
|
-
|
|
4200
|
+
vt as variantClasses
|
|
4198
4201
|
};
|
|
4199
4202
|
//# sourceMappingURL=aerogel-core.js.map
|