@aerogel/core 0.1.0 → 0.1.1-next.b25730fd2850ebabef064973972dabd342d92769
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aerogel-core.d.ts +12 -6
- package/dist/aerogel-core.js +890 -888
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/Form.vue +1 -1
- package/src/directives/index.ts +10 -8
- package/src/directives/safe-html.ts +10 -0
package/dist/aerogel-core.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var _ = (t, s, e) =>
|
|
4
|
-
import { markRaw as E, Comment as
|
|
5
|
-
import { JSError as be, stringToSlug as
|
|
1
|
+
var St = Object.defineProperty;
|
|
2
|
+
var Tt = (t, s, e) => s in t ? St(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
|
+
var _ = (t, s, e) => Tt(t, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { markRaw as E, Comment as Mt, Text as Ht, Static as Et, inject as X, reactive as pe, unref as l, onUnmounted as ge, ref as U, computed as c, readonly as ve, nextTick as Oe, useAttrs as Ne, onMounted as Vt, watch as Me, toRaw as Lt, watchEffect as Y, defineComponent as g, createBlock as h, openBlock as u, mergeProps as H, withCtx as f, renderSlot as w, createPropsRestProxy as N, createVNode as p, normalizeProps as ne, guardReactiveProps as ae, createTextVNode as I, toDisplayString as x, normalizeClass as k, createElementBlock as b, Fragment as D, renderList as F, provide as le, resolveDynamicComponent as W, useSlots as He, createCommentVNode as T, createElementVNode as y, h as It, toRef as Re, useTemplateRef as G, withModifiers as We, withDirectives as Ke, vModelCheckbox as qt, normalizeStyle as zt, resolveComponent as Rt, createApp as Pt, vModelText as At } from "vue";
|
|
5
|
+
import { JSError as be, stringToSlug as Dt, tap as ee, MagicObject as Qe, PromisedValue as K, Storage as O, objectOnly as oe, arrayFrom as Je, isEmpty as xe, objectDeepClone as jt, fail as Q, facade as te, arrayRemove as Se, getEnv as Bt, updateLocationQueryParameters as Ft, forever as Ut, toString as B, objectWithout as Ot, noop as Nt, debounce as Wt, stringMatchAll as Ze, isDevelopment as J, isTesting as Ee, after as ue, uuid as re, required as Kt, isObject as ce, objectWithoutEmpty as Xe, value as Qt, isInstanceOf as Pe, stringExcerpt as Jt, arraySorted as Zt, ListenersManager as Xt, toError as Yt, round as Gt } from "@noeldemartin/utils";
|
|
6
6
|
import j from "virtual:aerogel";
|
|
7
|
-
import { createPinia as
|
|
8
|
-
import
|
|
9
|
-
import { marked as
|
|
10
|
-
import
|
|
11
|
-
import { cva as
|
|
12
|
-
import { twMerge as
|
|
13
|
-
import { Primitive as
|
|
7
|
+
import { createPinia as es, setActivePinia as ts, defineStore as ss } from "pinia";
|
|
8
|
+
import rs from "dompurify";
|
|
9
|
+
import { marked as ns, Renderer as Ae } from "marked";
|
|
10
|
+
import as from "clsx";
|
|
11
|
+
import { cva as ls } from "class-variance-authority";
|
|
12
|
+
import { twMerge as os } from "tailwind-merge";
|
|
13
|
+
import { Primitive as is, SelectValue as De, SelectTrigger as us, SelectIcon as cs, SelectItem as ds, SelectItemText as ps, SelectPortal as ms, SelectContent as fs, SelectViewport as hs, SelectRoot as gs, Label as vs, useForwardExpose as Ve, SwitchRoot as bs, SwitchThumb as ys, DialogRoot as ws, DialogPortal as $s, DialogContent as _s, DialogDescription as xs, DialogOverlay as Cs, DialogTitle as ks, ToastClose as Ss, ToastRoot as Ts, ToastProvider as Ms, ToastViewport as Hs, DropdownMenuItem as Es, DropdownMenuContent as Vs, DropdownMenuRoot as Ls, DropdownMenuTrigger as Is, DropdownMenuPortal as qs } from "reka-ui";
|
|
14
14
|
class Te extends be {
|
|
15
15
|
constructor(s, e) {
|
|
16
16
|
super(`Service '${s}' failed booting`, { cause: e });
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return j.namespace ??
|
|
19
|
+
function zs() {
|
|
20
|
+
return j.namespace ?? Dt(j.name);
|
|
21
21
|
}
|
|
22
22
|
let Le = null;
|
|
23
23
|
function Ye() {
|
|
24
|
-
return Le ??
|
|
24
|
+
return Le ?? Rs();
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return ee(
|
|
28
|
-
Le = t,
|
|
26
|
+
function Rs() {
|
|
27
|
+
return ee(es(), (t) => {
|
|
28
|
+
Le = t, ts(t);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Ps() {
|
|
32
32
|
return Le ?? Ye();
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return Ye(),
|
|
34
|
+
function As(t, s) {
|
|
35
|
+
return Ye(), ss(t, s)();
|
|
36
36
|
}
|
|
37
37
|
function ye(t) {
|
|
38
38
|
var s;
|
|
@@ -82,7 +82,7 @@ let we = (ke = class extends Qe {
|
|
|
82
82
|
_(this, "_watchers");
|
|
83
83
|
_(this, "_store");
|
|
84
84
|
const e = this.getComputedStateDefinition();
|
|
85
|
-
this._name = this.getName() ?? new.target.name, this._booted = new K(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() &&
|
|
85
|
+
this._name = this.getName() ?? new.target.name, this._booted = new K(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && As(this._name, {
|
|
86
86
|
state: () => this.getInitialState(),
|
|
87
87
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
88
|
getters: e
|
|
@@ -132,7 +132,7 @@ let we = (ke = class extends Qe {
|
|
|
132
132
|
this.setState({ [e]: r });
|
|
133
133
|
}
|
|
134
134
|
get storageKey() {
|
|
135
|
-
return `${
|
|
135
|
+
return `${zs()}:${this._name}`;
|
|
136
136
|
}
|
|
137
137
|
onStateUpdated(e, r) {
|
|
138
138
|
const n = oe(e, this.static("persist"));
|
|
@@ -146,7 +146,7 @@ let we = (ke = class extends Qe {
|
|
|
146
146
|
const r = O.get(this.storageKey);
|
|
147
147
|
r && O.set(this.storageKey, {
|
|
148
148
|
...r,
|
|
149
|
-
...this.serializePersistedState(
|
|
149
|
+
...this.serializePersistedState(jt(e))
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
usesStore() {
|
|
@@ -189,12 +189,12 @@ let we = (ke = class extends Qe {
|
|
|
189
189
|
return this._store ? this._store : Q(`Failed getting '${this._name}' store`);
|
|
190
190
|
}
|
|
191
191
|
}, _(ke, "persist", []), ke);
|
|
192
|
-
const
|
|
192
|
+
const ol = {
|
|
193
193
|
Low: -256,
|
|
194
194
|
Default: 0,
|
|
195
195
|
High: 256
|
|
196
196
|
};
|
|
197
|
-
class
|
|
197
|
+
class Ds extends we {
|
|
198
198
|
constructor() {
|
|
199
199
|
super(...arguments);
|
|
200
200
|
_(this, "listeners", {});
|
|
@@ -209,7 +209,7 @@ class As extends we {
|
|
|
209
209
|
var a;
|
|
210
210
|
const n = this.listeners[e] ?? { priorities: [], handlers: {} };
|
|
211
211
|
for (const i of n.priorities)
|
|
212
|
-
await Promise.all(((a = n.handlers[i]) == null ? void 0 : a.map((
|
|
212
|
+
await Promise.all(((a = n.handlers[i]) == null ? void 0 : a.map((o) => o(r))) ?? []);
|
|
213
213
|
}
|
|
214
214
|
// prettier-ignore
|
|
215
215
|
/* eslint-enable max-len */
|
|
@@ -221,11 +221,11 @@ class As extends we {
|
|
|
221
221
|
/* eslint-enable max-len */
|
|
222
222
|
once(e, r, n) {
|
|
223
223
|
let a = null;
|
|
224
|
-
const i = typeof r == "function" ? {} : r,
|
|
224
|
+
const i = typeof r == "function" ? {} : r, o = typeof r == "function" ? r : n;
|
|
225
225
|
return ee(
|
|
226
226
|
() => a && this.off(e, a),
|
|
227
227
|
(d) => {
|
|
228
|
-
a = (...v) => (d(),
|
|
228
|
+
a = (...v) => (d(), o(...v)), this.registerListener(e, i, o);
|
|
229
229
|
}
|
|
230
230
|
);
|
|
231
231
|
}
|
|
@@ -235,28 +235,28 @@ class As extends we {
|
|
|
235
235
|
if (!n)
|
|
236
236
|
return;
|
|
237
237
|
const a = [...n.priorities];
|
|
238
|
-
for (const
|
|
239
|
-
Se(n.handlers[
|
|
238
|
+
for (const o of a)
|
|
239
|
+
Se(n.handlers[o] ?? [], r), ((i = n.handlers[o]) == null ? void 0 : i.length) === 0 && (delete n.handlers[o], Se(n.priorities, o));
|
|
240
240
|
n.priorities.length === 0 && delete this.listeners[e];
|
|
241
241
|
}
|
|
242
242
|
registerListener(e, r, n) {
|
|
243
243
|
var d, v, $;
|
|
244
244
|
const a = r.priority ?? 0;
|
|
245
245
|
e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
|
|
246
|
-
const i = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? Q(`priorities missing for event '${e}'`),
|
|
247
|
-
i.includes(a) || (i.push(a), i.sort((m, C) => C - m),
|
|
246
|
+
const i = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? Q(`priorities missing for event '${e}'`), o = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? Q(`handlers missing for event '${e}'`);
|
|
247
|
+
i.includes(a) || (i.push(a), i.sort((m, C) => C - m), o[a] = []), ($ = o[a]) == null || $.push(n);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
const R = te(
|
|
251
|
-
function
|
|
250
|
+
const R = te(Ds);
|
|
251
|
+
function il(t) {
|
|
252
252
|
return t;
|
|
253
253
|
}
|
|
254
|
-
const
|
|
254
|
+
const js = ye({
|
|
255
255
|
name: "app",
|
|
256
256
|
initialState: {
|
|
257
257
|
plugins: {},
|
|
258
258
|
instance: null,
|
|
259
|
-
environment:
|
|
259
|
+
environment: Bt() ?? "development",
|
|
260
260
|
version: j.version,
|
|
261
261
|
sourceUrl: j.sourceUrl,
|
|
262
262
|
settings: []
|
|
@@ -273,7 +273,7 @@ const Ds = ye({
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
class
|
|
276
|
+
class Bs extends js {
|
|
277
277
|
constructor() {
|
|
278
278
|
super(...arguments);
|
|
279
279
|
_(this, "name", j.name);
|
|
@@ -293,7 +293,7 @@ class js extends Ds {
|
|
|
293
293
|
return await this.ready.then(e);
|
|
294
294
|
}
|
|
295
295
|
async reload(e) {
|
|
296
|
-
e &&
|
|
296
|
+
e && Ft(e), location.reload(), await Ut();
|
|
297
297
|
}
|
|
298
298
|
plugin(e) {
|
|
299
299
|
return this.plugins[e] ?? null;
|
|
@@ -306,11 +306,11 @@ class js extends Ds {
|
|
|
306
306
|
R.once("application-ready", () => this.ready.resolve()), R.once("application-mounted", () => this.mounted.resolve());
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
const A = te(
|
|
310
|
-
function
|
|
309
|
+
const A = te(Bs);
|
|
310
|
+
function ul(t) {
|
|
311
311
|
return t;
|
|
312
312
|
}
|
|
313
|
-
async function
|
|
313
|
+
async function Fs(t, ...s) {
|
|
314
314
|
A.setState(
|
|
315
315
|
"plugins",
|
|
316
316
|
t.reduce(
|
|
@@ -319,28 +319,28 @@ async function Bs(t, ...s) {
|
|
|
319
319
|
)
|
|
320
320
|
), await Promise.all(t.map((e) => e.install(...s)) ?? []);
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function Us(t) {
|
|
323
323
|
return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${B(r)}"`, "");
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function cl(t) {
|
|
326
326
|
return t;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Os(t) {
|
|
329
329
|
const s = X(t);
|
|
330
330
|
return s ? pe(s) : void 0;
|
|
331
331
|
}
|
|
332
332
|
function V(t, s) {
|
|
333
|
-
return
|
|
333
|
+
return Os(t) ?? Q(s ?? `Could not resolve '${B(t)}' injection key`);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Ns(t, s) {
|
|
336
336
|
return X(t) ?? Q(s ?? `Could not resolve '${B(t)}' injection key`);
|
|
337
337
|
}
|
|
338
338
|
function Ge(t) {
|
|
339
|
-
return typeof t == "string" ? t : t.type ===
|
|
339
|
+
return typeof t == "string" ? t : t.type === Mt ? "" : t.type === Ht || t.type === Et ? t.children : t.type === "br" ? `
|
|
340
340
|
|
|
341
|
-
` : `<${t.type} ${
|
|
341
|
+
` : `<${t.type} ${Us(t)}>${Array.from(t.children).map(Ge).join("")}</${t.type}>`;
|
|
342
342
|
}
|
|
343
|
-
const Ce = /* @__PURE__ */ new WeakMap(),
|
|
343
|
+
const Ce = /* @__PURE__ */ new WeakMap(), Ws = {
|
|
344
344
|
mounted(t, { value: s, modifiers: e }) {
|
|
345
345
|
const r = typeof s == "function" ? s : null, n = () => {
|
|
346
346
|
const a = t.getBoundingClientRect();
|
|
@@ -352,19 +352,238 @@ const Ce = /* @__PURE__ */ new WeakMap(), Ns = {
|
|
|
352
352
|
var s;
|
|
353
353
|
(s = Ce.get(t)) == null || s.unobserve(t), Ce.delete(t);
|
|
354
354
|
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
},
|
|
355
|
+
};
|
|
356
|
+
function et(t, s) {
|
|
357
|
+
const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, i = ls(n, a);
|
|
358
|
+
return M(i(r), l(e));
|
|
359
|
+
}
|
|
360
|
+
function M(...t) {
|
|
361
|
+
return os(as(t));
|
|
362
|
+
}
|
|
363
|
+
function tt(t, s) {
|
|
364
|
+
const e = R.on(t, s);
|
|
365
|
+
ge(() => e());
|
|
366
|
+
}
|
|
367
|
+
const Ks = {
|
|
368
|
+
required: (t) => t ? void 0 : "required"
|
|
369
|
+
};
|
|
370
|
+
function Qs(t, s) {
|
|
371
|
+
var e;
|
|
372
|
+
if (t == null)
|
|
373
|
+
return !0;
|
|
374
|
+
switch (s.type) {
|
|
375
|
+
case "string":
|
|
376
|
+
return typeof t == "string";
|
|
377
|
+
case "enum":
|
|
378
|
+
return !!((e = s.values) != null && e.includes(t));
|
|
379
|
+
case "number":
|
|
380
|
+
return typeof t == "number";
|
|
381
|
+
case "boolean":
|
|
382
|
+
return typeof t == "boolean";
|
|
383
|
+
case "date":
|
|
384
|
+
return t instanceof Date;
|
|
385
|
+
case "object":
|
|
386
|
+
return typeof t == "object";
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
const de = { ...Ks };
|
|
390
|
+
function dl(t, s) {
|
|
391
|
+
de[t] = s;
|
|
392
|
+
}
|
|
393
|
+
function Js(t, s) {
|
|
394
|
+
return Qs(t, s) ? [] : ["invalid_value"];
|
|
395
|
+
}
|
|
396
|
+
function Zs(t, s) {
|
|
397
|
+
var r;
|
|
398
|
+
const e = (r = de[s]) == null ? void 0 : r.call(de, t);
|
|
399
|
+
return e ? Je(e) : [];
|
|
400
|
+
}
|
|
401
|
+
const pl = Symbol(), je = /* @__PURE__ */ new WeakMap();
|
|
402
|
+
class Xs extends Qe {
|
|
403
|
+
constructor(e) {
|
|
404
|
+
super();
|
|
405
|
+
_(this, "errors");
|
|
406
|
+
_(this, "_fields");
|
|
407
|
+
_(this, "_data");
|
|
408
|
+
_(this, "_submitted");
|
|
409
|
+
_(this, "_errors");
|
|
410
|
+
_(this, "_listeners", {});
|
|
411
|
+
this._fields = e, this._submitted = U(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), je.set(
|
|
412
|
+
this,
|
|
413
|
+
c(() => !Object.values(this._errors).some((r) => r !== null))
|
|
414
|
+
), this.errors = ve(this._errors);
|
|
415
|
+
}
|
|
416
|
+
get valid() {
|
|
417
|
+
var e;
|
|
418
|
+
return !!((e = je.get(this)) != null && e.value);
|
|
419
|
+
}
|
|
420
|
+
get submitted() {
|
|
421
|
+
return this._submitted.value;
|
|
422
|
+
}
|
|
423
|
+
setFieldValue(e, r) {
|
|
424
|
+
const n = this._fields[e] ?? Q(`Trying to set undefined '${B(e)}' field`);
|
|
425
|
+
this._data[e] = n.type === "string" && (n.trim ?? !0) ? B(r).trim() : r, this._submitted.value && this.validate();
|
|
426
|
+
}
|
|
427
|
+
getFieldValue(e) {
|
|
428
|
+
return this._data[e];
|
|
429
|
+
}
|
|
430
|
+
getFieldRules(e) {
|
|
431
|
+
var r, n;
|
|
432
|
+
return ((n = (r = this._fields[e]) == null ? void 0 : r.rules) == null ? void 0 : n.split("|")) ?? [];
|
|
433
|
+
}
|
|
434
|
+
getFieldType(e) {
|
|
435
|
+
var r;
|
|
436
|
+
return ((r = this._fields[e]) == null ? void 0 : r.type) ?? null;
|
|
437
|
+
}
|
|
438
|
+
data() {
|
|
439
|
+
return { ...this._data };
|
|
440
|
+
}
|
|
441
|
+
validate() {
|
|
442
|
+
const e = Object.entries(this._fields).reduce(
|
|
443
|
+
(r, [n, a]) => (r[n] = this.getFieldErrors(n, a), r),
|
|
444
|
+
{}
|
|
445
|
+
);
|
|
446
|
+
return this.resetErrors(e), this.valid;
|
|
447
|
+
}
|
|
448
|
+
reset(e = {}) {
|
|
449
|
+
this._submitted.value = !1, e.keepData || this.resetData(), e.keepErrors || this.resetErrors();
|
|
450
|
+
}
|
|
451
|
+
submit() {
|
|
452
|
+
var r;
|
|
453
|
+
this._submitted.value = !0;
|
|
454
|
+
const e = this.validate();
|
|
455
|
+
return e && ((r = this._listeners.submit) == null || r.forEach((n) => n())), e;
|
|
456
|
+
}
|
|
457
|
+
on(e, r) {
|
|
458
|
+
var n, a;
|
|
459
|
+
return (n = this._listeners)[e] ?? (n[e] = []), (a = this._listeners[e]) == null || a.push(r), () => this.off(e, r);
|
|
460
|
+
}
|
|
461
|
+
off(e, r) {
|
|
462
|
+
Se(this._listeners[e] ?? [], r);
|
|
463
|
+
}
|
|
464
|
+
async focus(e) {
|
|
465
|
+
var r;
|
|
466
|
+
await Oe(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
|
|
467
|
+
}
|
|
468
|
+
__get(e) {
|
|
469
|
+
return e in this._fields ? this.getFieldValue(e) : super.__get(e);
|
|
470
|
+
}
|
|
471
|
+
__set(e, r) {
|
|
472
|
+
if (!(e in this._fields)) {
|
|
473
|
+
super.__set(e, r);
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
this.setFieldValue(e, r);
|
|
477
|
+
}
|
|
478
|
+
getFieldErrors(e, r) {
|
|
479
|
+
var o;
|
|
480
|
+
const n = [], a = this._data[e], i = ((o = r.rules) == null ? void 0 : o.split("|")) ?? [];
|
|
481
|
+
n.push(...Js(a, r));
|
|
482
|
+
for (const d of i)
|
|
483
|
+
d !== "required" && a == null || n.push(...Zs(a, d));
|
|
484
|
+
return n.length > 0 ? n : null;
|
|
485
|
+
}
|
|
486
|
+
getInitialData(e) {
|
|
487
|
+
if (this.static().isConjuring())
|
|
488
|
+
return {};
|
|
489
|
+
const r = Object.entries(e).reduce((n, [a, i]) => (n[a] = i.default ?? null, n), {});
|
|
490
|
+
return pe(r);
|
|
491
|
+
}
|
|
492
|
+
getInitialErrors(e) {
|
|
493
|
+
if (this.static().isConjuring())
|
|
494
|
+
return {};
|
|
495
|
+
const r = Object.keys(e).reduce((n, a) => (n[a] = null, n), {});
|
|
496
|
+
return pe(r);
|
|
497
|
+
}
|
|
498
|
+
resetData() {
|
|
499
|
+
for (const [e, r] of Object.entries(this._fields))
|
|
500
|
+
this._data[e] = r.default ?? null;
|
|
501
|
+
}
|
|
502
|
+
resetErrors(e) {
|
|
503
|
+
Object.keys(this._errors).forEach((r) => delete this._errors[r]), e && Object.assign(this._errors, e);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
function st(t, s) {
|
|
507
|
+
const e = X("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
|
|
508
|
+
ge(() => r == null ? void 0 : r());
|
|
509
|
+
}
|
|
510
|
+
function rt(t) {
|
|
511
|
+
return new Xs(t);
|
|
512
|
+
}
|
|
513
|
+
function Ie() {
|
|
514
|
+
const t = Ne(), s = c(() => t.class);
|
|
515
|
+
return [c(() => Ot(t, "class")), s];
|
|
516
|
+
}
|
|
517
|
+
function ml(t) {
|
|
518
|
+
let s = Nt;
|
|
519
|
+
Vt(() => s = t()), ge(() => s());
|
|
520
|
+
}
|
|
521
|
+
function fl(t, s) {
|
|
522
|
+
const e = pe(O.get(t) ?? s);
|
|
523
|
+
return Me(e, () => O.set(t, Lt(e))), e;
|
|
524
|
+
}
|
|
525
|
+
function hl(t) {
|
|
526
|
+
const s = U(), e = c(t);
|
|
527
|
+
return Me(e, async () => s.value = await e.value, { immediate: !0 }), s;
|
|
528
|
+
}
|
|
529
|
+
function gl(t, s) {
|
|
530
|
+
const e = s ? t : {}, r = s ?? t, n = U(e.initial ?? null), a = Wt((i) => n.value = i, e.delay ?? 300);
|
|
531
|
+
return Y(() => a(r())), n;
|
|
532
|
+
}
|
|
533
|
+
let ie = null;
|
|
534
|
+
function Ys() {
|
|
535
|
+
return ee(new Ae(), (t) => {
|
|
536
|
+
t.link = function(s) {
|
|
537
|
+
const e = Ae.prototype.link.apply(this, [s]);
|
|
538
|
+
return s.href.startsWith("#") ? e : e.replace("<a", '<a target="_blank"');
|
|
539
|
+
};
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
function Gs(t) {
|
|
543
|
+
const s = Ze(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
544
|
+
for (const [e, r, n] of s)
|
|
545
|
+
t = t.replace(e, `<button type="button" data-markdown-action="${r}">${n}</button>`);
|
|
546
|
+
return t;
|
|
547
|
+
}
|
|
548
|
+
function er(t) {
|
|
549
|
+
const s = Ze(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
550
|
+
for (const [e, r, n] of s) {
|
|
551
|
+
const a = (ie == null ? void 0 : ie.resolve(r)) ?? r;
|
|
552
|
+
t = t.replace(e, `<a data-markdown-route="${r}" href="${a}">${n}</a>`);
|
|
553
|
+
}
|
|
554
|
+
return t;
|
|
555
|
+
}
|
|
556
|
+
function tr() {
|
|
557
|
+
return ie;
|
|
558
|
+
}
|
|
559
|
+
function vl(t) {
|
|
560
|
+
ie = t;
|
|
561
|
+
}
|
|
562
|
+
function sr(t) {
|
|
563
|
+
let s = ns(t, { renderer: Ys(), async: !1 });
|
|
564
|
+
return s = nt(s), s = Gs(s), s = er(s), s;
|
|
565
|
+
}
|
|
566
|
+
function nt(t) {
|
|
567
|
+
return rs.sanitize(t, { ADD_ATTR: ["target"] });
|
|
568
|
+
}
|
|
569
|
+
const rr = {
|
|
570
|
+
mounted(t, { value: s }) {
|
|
571
|
+
t.innerHTML = nt(s);
|
|
572
|
+
}
|
|
573
|
+
}, nr = {
|
|
574
|
+
measure: Ws,
|
|
575
|
+
"safe-html": rr
|
|
576
|
+
}, ar = {
|
|
358
577
|
install(t, s) {
|
|
359
578
|
const e = {
|
|
360
|
-
...
|
|
579
|
+
...nr,
|
|
361
580
|
...s.directives
|
|
362
581
|
};
|
|
363
582
|
for (const [r, n] of Object.entries(e))
|
|
364
583
|
t.directive(r, n);
|
|
365
584
|
}
|
|
366
585
|
};
|
|
367
|
-
class
|
|
586
|
+
class lr extends we {
|
|
368
587
|
constructor() {
|
|
369
588
|
super(...arguments);
|
|
370
589
|
_(this, "cache");
|
|
@@ -385,23 +604,23 @@ class Qs extends we {
|
|
|
385
604
|
});
|
|
386
605
|
}
|
|
387
606
|
}
|
|
388
|
-
const
|
|
389
|
-
class
|
|
607
|
+
const bl = te(lr);
|
|
608
|
+
class or extends we {
|
|
390
609
|
async purge() {
|
|
391
610
|
await R.emit("purge-storage");
|
|
392
611
|
}
|
|
393
612
|
}
|
|
394
|
-
const
|
|
395
|
-
function
|
|
613
|
+
const at = te(or);
|
|
614
|
+
function yl(t, s) {
|
|
396
615
|
return {
|
|
397
616
|
...t,
|
|
398
617
|
...oe(s, Object.keys(t))
|
|
399
618
|
};
|
|
400
619
|
}
|
|
401
|
-
const
|
|
620
|
+
const ir = {
|
|
402
621
|
$app: A,
|
|
403
622
|
$events: R,
|
|
404
|
-
$storage:
|
|
623
|
+
$storage: at
|
|
405
624
|
};
|
|
406
625
|
async function $e(t, s) {
|
|
407
626
|
await Promise.all(
|
|
@@ -413,28 +632,28 @@ async function $e(t, s) {
|
|
|
413
632
|
})
|
|
414
633
|
), Object.assign(t.config.globalProperties, s), (J() || Ee()) && Object.assign(globalThis, s);
|
|
415
634
|
}
|
|
416
|
-
const
|
|
635
|
+
const ur = {
|
|
417
636
|
async install(t, s) {
|
|
418
637
|
var r;
|
|
419
638
|
const e = {
|
|
420
|
-
...
|
|
639
|
+
...ir,
|
|
421
640
|
...s.services
|
|
422
641
|
};
|
|
423
|
-
t.use(
|
|
642
|
+
t.use(Ps()), (r = s.settings) == null || r.forEach((n) => A.addSetting(n)), await $e(t, e);
|
|
424
643
|
}
|
|
425
|
-
},
|
|
644
|
+
}, lt = 768, me = {
|
|
426
645
|
Mobile: "mobile",
|
|
427
646
|
Desktop: "desktop"
|
|
428
647
|
};
|
|
429
|
-
function
|
|
430
|
-
return globalThis.innerWidth >
|
|
648
|
+
function ot() {
|
|
649
|
+
return globalThis.innerWidth > lt ? me.Desktop : me.Mobile;
|
|
431
650
|
}
|
|
432
|
-
const
|
|
651
|
+
const cr = ye({
|
|
433
652
|
name: "ui",
|
|
434
653
|
initialState: {
|
|
435
654
|
modals: [],
|
|
436
655
|
toasts: [],
|
|
437
|
-
layout:
|
|
656
|
+
layout: ot()
|
|
438
657
|
},
|
|
439
658
|
computed: {
|
|
440
659
|
desktop: ({ layout: t }) => t === me.Desktop,
|
|
@@ -442,7 +661,7 @@ const Ys = ye({
|
|
|
442
661
|
openModals: ({ modals: t }) => t.filter(({ closing: s }) => !s)
|
|
443
662
|
}
|
|
444
663
|
});
|
|
445
|
-
class
|
|
664
|
+
class dr extends cr {
|
|
446
665
|
constructor() {
|
|
447
666
|
super(...arguments);
|
|
448
667
|
_(this, "modalCallbacks", {});
|
|
@@ -476,7 +695,7 @@ class Gs extends Ys {
|
|
|
476
695
|
title: e,
|
|
477
696
|
message: r,
|
|
478
697
|
required: !!(n != null && n.required)
|
|
479
|
-
},
|
|
698
|
+
}, o = await this.modalForm(this.requireComponent("confirm-modal"), i), d = typeof o == "object" ? o[0] : o ?? !1, v = typeof o == "object" ? o[1] : Object.entries(i.checkboxes ?? {}).reduce(
|
|
480
699
|
($, [m, { default: C }]) => ({
|
|
481
700
|
[m]: C ?? !1,
|
|
482
701
|
...$
|
|
@@ -496,8 +715,8 @@ class Gs extends Ys {
|
|
|
496
715
|
title: e,
|
|
497
716
|
message: r,
|
|
498
717
|
...n ?? {}
|
|
499
|
-
},
|
|
500
|
-
return (a && typeof
|
|
718
|
+
}, o = await this.modalForm(this.requireComponent("prompt-modal"), i());
|
|
719
|
+
return (a && typeof o == "string" ? o == null ? void 0 : o.trim() : o) ?? null;
|
|
501
720
|
}
|
|
502
721
|
async loading(e, r) {
|
|
503
722
|
const n = (m) => typeof m == "function" ? Promise.resolve(m()) : m, a = () => {
|
|
@@ -511,17 +730,17 @@ class Gs extends Ys {
|
|
|
511
730
|
const { delay: m, ...C } = e;
|
|
512
731
|
return {
|
|
513
732
|
props: C,
|
|
514
|
-
delay:
|
|
733
|
+
delay: l(m),
|
|
515
734
|
operationPromise: n(r)
|
|
516
735
|
};
|
|
517
736
|
};
|
|
518
737
|
let i = !1;
|
|
519
|
-
const { operationPromise:
|
|
520
|
-
if (v && await Promise.race([ue({ ms: v }).then(() => i = !0),
|
|
521
|
-
return
|
|
738
|
+
const { operationPromise: o, props: d, delay: v } = a();
|
|
739
|
+
if (v && await Promise.race([ue({ ms: v }).then(() => i = !0), o]), v && !i)
|
|
740
|
+
return o;
|
|
522
741
|
const $ = await this.modal(this.requireComponent("loading-modal"), d);
|
|
523
742
|
try {
|
|
524
|
-
const m = await
|
|
743
|
+
const m = await o;
|
|
525
744
|
return await ue({ ms: 500 }), m;
|
|
526
745
|
} finally {
|
|
527
746
|
await this.closeModal($.id);
|
|
@@ -543,8 +762,8 @@ class Gs extends Ys {
|
|
|
543
762
|
component: E(e),
|
|
544
763
|
beforeClose: new Promise((d) => a.willClose = d),
|
|
545
764
|
afterClose: new Promise((d) => a.hasClosed = d)
|
|
546
|
-
},
|
|
547
|
-
return this.modalCallbacks[i.id] = a, this.setState({ modals:
|
|
765
|
+
}, o = this.modals.concat(i);
|
|
766
|
+
return this.modalCallbacks[i.id] = a, this.setState({ modals: o }), await Oe(), i;
|
|
548
767
|
}
|
|
549
768
|
async modalForm(e, r) {
|
|
550
769
|
return await (await this.modal(e, r)).beforeClose;
|
|
@@ -558,7 +777,7 @@ class Gs extends Ys {
|
|
|
558
777
|
}
|
|
559
778
|
async closeAllModals() {
|
|
560
779
|
for (; this.modals.length > 0; )
|
|
561
|
-
await this.closeModal(
|
|
780
|
+
await this.closeModal(Kt(this.modals[this.modals.length - 1]).id);
|
|
562
781
|
}
|
|
563
782
|
async boot() {
|
|
564
783
|
this.watchModalEvents(), this.watchMountedEvent(), this.watchViewportBreakpoints();
|
|
@@ -573,7 +792,7 @@ class Gs extends Ys {
|
|
|
573
792
|
watchModalEvents() {
|
|
574
793
|
R.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
|
|
575
794
|
var a, i;
|
|
576
|
-
const n = this.modals.find((
|
|
795
|
+
const n = this.modals.find((o) => e === o.id);
|
|
577
796
|
n && (n.closing = !0), (i = (a = this.modalCallbacks[e]) == null ? void 0 : a.willClose) == null || i.call(a, r);
|
|
578
797
|
}), R.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
|
|
579
798
|
await this.removeModal(e, r);
|
|
@@ -590,11 +809,11 @@ class Gs extends Ys {
|
|
|
590
809
|
watchViewportBreakpoints() {
|
|
591
810
|
if (!globalThis.matchMedia)
|
|
592
811
|
return;
|
|
593
|
-
globalThis.matchMedia(`(min-width: ${
|
|
812
|
+
globalThis.matchMedia(`(min-width: ${lt}px)`).addEventListener("change", () => this.setState({ layout: ot() }));
|
|
594
813
|
}
|
|
595
814
|
}
|
|
596
|
-
const z = te(
|
|
597
|
-
class
|
|
815
|
+
const z = te(dr);
|
|
816
|
+
class pr {
|
|
598
817
|
constructor(s, e) {
|
|
599
818
|
this.locale = s, this.fallbackLocale = e;
|
|
600
819
|
}
|
|
@@ -620,7 +839,7 @@ class er {
|
|
|
620
839
|
return J() && console.warn("Lang provider is missing"), e;
|
|
621
840
|
}
|
|
622
841
|
}
|
|
623
|
-
const
|
|
842
|
+
const mr = ye({
|
|
624
843
|
name: "lang",
|
|
625
844
|
persist: ["locale", "fallbackLocale"],
|
|
626
845
|
initialState: {
|
|
@@ -629,11 +848,11 @@ const tr = ye({
|
|
|
629
848
|
fallbackLocale: "en"
|
|
630
849
|
}
|
|
631
850
|
});
|
|
632
|
-
class
|
|
851
|
+
class fr extends mr {
|
|
633
852
|
constructor() {
|
|
634
853
|
super();
|
|
635
854
|
_(this, "provider");
|
|
636
|
-
this.provider = new
|
|
855
|
+
this.provider = new pr(
|
|
637
856
|
this.getState("locale") ?? this.getBrowserLocale(),
|
|
638
857
|
this.getState("fallbackLocale")
|
|
639
858
|
);
|
|
@@ -661,7 +880,7 @@ class sr extends tr {
|
|
|
661
880
|
);
|
|
662
881
|
}
|
|
663
882
|
}
|
|
664
|
-
const Z = te(
|
|
883
|
+
const Z = te(fr), it = Z.translate.bind(Z), S = Z.translateWithDefault.bind(Z), hr = ye({
|
|
665
884
|
name: "errors",
|
|
666
885
|
initialState: {
|
|
667
886
|
logs: [],
|
|
@@ -674,7 +893,7 @@ const Z = te(sr), rt = Z.translate.bind(Z), S = Z.translateWithDefault.bind(Z),
|
|
|
674
893
|
hasStartupErrors: ({ startupErrors: t }) => t.length > 0
|
|
675
894
|
}
|
|
676
895
|
});
|
|
677
|
-
class
|
|
896
|
+
class gr extends hr {
|
|
678
897
|
constructor() {
|
|
679
898
|
super(...arguments);
|
|
680
899
|
_(this, "forceReporting", !1);
|
|
@@ -750,7 +969,7 @@ class nr extends rr {
|
|
|
750
969
|
return ce(e) && "title" in e;
|
|
751
970
|
}
|
|
752
971
|
async createErrorReport(e) {
|
|
753
|
-
return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof be ? this.createErrorReportFromError(e) : ce(e) ?
|
|
972
|
+
return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof be ? this.createErrorReportFromError(e) : ce(e) ? Xe({
|
|
754
973
|
title: B(
|
|
755
974
|
e.name ?? e.title ?? S("errors.unknown", "Unknown Error")
|
|
756
975
|
),
|
|
@@ -776,44 +995,7 @@ class nr extends rr {
|
|
|
776
995
|
};
|
|
777
996
|
}
|
|
778
997
|
}
|
|
779
|
-
const
|
|
780
|
-
let ie = null;
|
|
781
|
-
function ar() {
|
|
782
|
-
return ee(new Ae(), (t) => {
|
|
783
|
-
t.link = function(s) {
|
|
784
|
-
const e = Ae.prototype.link.apply(this, [s]);
|
|
785
|
-
return s.href.startsWith("#") ? e : e.replace("<a", '<a target="_blank"');
|
|
786
|
-
};
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
function lr(t) {
|
|
790
|
-
const s = Xe(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
791
|
-
for (const [e, r, n] of s)
|
|
792
|
-
t = t.replace(e, `<button type="button" data-markdown-action="${r}">${n}</button>`);
|
|
793
|
-
return t;
|
|
794
|
-
}
|
|
795
|
-
function or(t) {
|
|
796
|
-
const s = Xe(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
797
|
-
for (const [e, r, n] of s) {
|
|
798
|
-
const a = (ie == null ? void 0 : ie.resolve(r)) ?? r;
|
|
799
|
-
t = t.replace(e, `<a data-markdown-route="${r}" href="${a}">${n}</a>`);
|
|
800
|
-
}
|
|
801
|
-
return t;
|
|
802
|
-
}
|
|
803
|
-
function ir() {
|
|
804
|
-
return ie;
|
|
805
|
-
}
|
|
806
|
-
function pl(t) {
|
|
807
|
-
ie = t;
|
|
808
|
-
}
|
|
809
|
-
function ur(t) {
|
|
810
|
-
let s = rs(t, { renderer: ar(), async: !1 });
|
|
811
|
-
return s = cr(s), s = lr(s), s = or(s), s;
|
|
812
|
-
}
|
|
813
|
-
function cr(t) {
|
|
814
|
-
return ss.sanitize(t, { ADD_ATTR: ["target"] });
|
|
815
|
-
}
|
|
816
|
-
const at = /* @__PURE__ */ g({
|
|
998
|
+
const ut = te(gr), ct = /* @__PURE__ */ g({
|
|
817
999
|
__name: "HeadlessButton",
|
|
818
1000
|
props: {
|
|
819
1001
|
class: {},
|
|
@@ -831,7 +1013,7 @@ const at = /* @__PURE__ */ g({
|
|
|
831
1013
|
setup(t) {
|
|
832
1014
|
const s = c(() => t.as ? { as: t.as } : t.route ? {
|
|
833
1015
|
as: z.resolveComponent("router-link") ?? "a",
|
|
834
|
-
to:
|
|
1016
|
+
to: Xe({
|
|
835
1017
|
name: t.route,
|
|
836
1018
|
params: t.routeParams,
|
|
837
1019
|
query: t.routeQuery
|
|
@@ -844,7 +1026,7 @@ const at = /* @__PURE__ */ g({
|
|
|
844
1026
|
as: "button",
|
|
845
1027
|
type: t.submit ? "submit" : "button"
|
|
846
1028
|
});
|
|
847
|
-
return (e, r) => (u(), h(
|
|
1029
|
+
return (e, r) => (u(), h(l(is), H({
|
|
848
1030
|
class: t.class,
|
|
849
1031
|
"as-child": e.asChild,
|
|
850
1032
|
disabled: e.disabled
|
|
@@ -855,15 +1037,7 @@ const at = /* @__PURE__ */ g({
|
|
|
855
1037
|
_: 3
|
|
856
1038
|
}, 16, ["class", "as-child", "disabled"]));
|
|
857
1039
|
}
|
|
858
|
-
})
|
|
859
|
-
function lt(t, s) {
|
|
860
|
-
const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, i = as(n, a);
|
|
861
|
-
return M(i(r), o(e));
|
|
862
|
-
}
|
|
863
|
-
function M(...t) {
|
|
864
|
-
return ls(ns(t));
|
|
865
|
-
}
|
|
866
|
-
const q = /* @__PURE__ */ g({
|
|
1040
|
+
}), q = /* @__PURE__ */ g({
|
|
867
1041
|
__name: "Button",
|
|
868
1042
|
props: {
|
|
869
1043
|
class: {},
|
|
@@ -879,7 +1053,7 @@ const q = /* @__PURE__ */ g({
|
|
|
879
1053
|
as: {}
|
|
880
1054
|
},
|
|
881
1055
|
setup(t) {
|
|
882
|
-
const s = N(t, ["class", "size", "variant", "disabled"]), e = c(() =>
|
|
1056
|
+
const s = N(t, ["class", "size", "variant", "disabled"]), e = c(() => et(
|
|
883
1057
|
{ baseClasses: t.class, variant: t.variant, size: t.size, disabled: t.disabled },
|
|
884
1058
|
{
|
|
885
1059
|
baseClasses: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
@@ -974,7 +1148,7 @@ const q = /* @__PURE__ */ g({
|
|
|
974
1148
|
}
|
|
975
1149
|
}
|
|
976
1150
|
));
|
|
977
|
-
return (r, n) => (u(), h(
|
|
1151
|
+
return (r, n) => (u(), h(ct, H({
|
|
978
1152
|
class: e.value,
|
|
979
1153
|
disabled: r.disabled
|
|
980
1154
|
}, s), {
|
|
@@ -985,221 +1159,51 @@ const q = /* @__PURE__ */ g({
|
|
|
985
1159
|
}, 16, ["class", "disabled"]));
|
|
986
1160
|
}
|
|
987
1161
|
});
|
|
988
|
-
function
|
|
1162
|
+
function vr(t) {
|
|
989
1163
|
return typeof t == "object" && t !== null && "label" in t;
|
|
990
1164
|
}
|
|
991
|
-
|
|
992
|
-
const e = R.on(t, s);
|
|
993
|
-
ge(() => e());
|
|
994
|
-
}
|
|
995
|
-
const pr = {
|
|
996
|
-
required: (t) => t ? void 0 : "required"
|
|
997
|
-
};
|
|
998
|
-
function mr(t, s) {
|
|
999
|
-
var e;
|
|
1000
|
-
if (t == null)
|
|
1001
|
-
return !0;
|
|
1002
|
-
switch (s.type) {
|
|
1003
|
-
case "string":
|
|
1004
|
-
return typeof t == "string";
|
|
1005
|
-
case "enum":
|
|
1006
|
-
return !!((e = s.values) != null && e.includes(t));
|
|
1007
|
-
case "number":
|
|
1008
|
-
return typeof t == "number";
|
|
1009
|
-
case "boolean":
|
|
1010
|
-
return typeof t == "boolean";
|
|
1011
|
-
case "date":
|
|
1012
|
-
return t instanceof Date;
|
|
1013
|
-
case "object":
|
|
1014
|
-
return typeof t == "object";
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
const de = { ...pr };
|
|
1018
|
-
function ml(t, s) {
|
|
1019
|
-
de[t] = s;
|
|
1020
|
-
}
|
|
1021
|
-
function fr(t, s) {
|
|
1022
|
-
return mr(t, s) ? [] : ["invalid_value"];
|
|
1023
|
-
}
|
|
1024
|
-
function hr(t, s) {
|
|
1025
|
-
var r;
|
|
1026
|
-
const e = (r = de[s]) == null ? void 0 : r.call(de, t);
|
|
1027
|
-
return e ? Je(e) : [];
|
|
1028
|
-
}
|
|
1029
|
-
const fl = Symbol(), je = /* @__PURE__ */ new WeakMap();
|
|
1030
|
-
class gr extends Qe {
|
|
1031
|
-
constructor(e) {
|
|
1032
|
-
super();
|
|
1033
|
-
_(this, "errors");
|
|
1034
|
-
_(this, "_fields");
|
|
1035
|
-
_(this, "_data");
|
|
1036
|
-
_(this, "_submitted");
|
|
1037
|
-
_(this, "_errors");
|
|
1038
|
-
_(this, "_listeners", {});
|
|
1039
|
-
this._fields = e, this._submitted = U(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), je.set(
|
|
1040
|
-
this,
|
|
1041
|
-
c(() => !Object.values(this._errors).some((r) => r !== null))
|
|
1042
|
-
), this.errors = ve(this._errors);
|
|
1043
|
-
}
|
|
1044
|
-
get valid() {
|
|
1045
|
-
var e;
|
|
1046
|
-
return !!((e = je.get(this)) != null && e.value);
|
|
1047
|
-
}
|
|
1048
|
-
get submitted() {
|
|
1049
|
-
return this._submitted.value;
|
|
1050
|
-
}
|
|
1051
|
-
setFieldValue(e, r) {
|
|
1052
|
-
const n = this._fields[e] ?? Q(`Trying to set undefined '${B(e)}' field`);
|
|
1053
|
-
this._data[e] = n.type === "string" && (n.trim ?? !0) ? B(r).trim() : r, this._submitted.value && this.validate();
|
|
1054
|
-
}
|
|
1055
|
-
getFieldValue(e) {
|
|
1056
|
-
return this._data[e];
|
|
1057
|
-
}
|
|
1058
|
-
getFieldRules(e) {
|
|
1059
|
-
var r, n;
|
|
1060
|
-
return ((n = (r = this._fields[e]) == null ? void 0 : r.rules) == null ? void 0 : n.split("|")) ?? [];
|
|
1061
|
-
}
|
|
1062
|
-
getFieldType(e) {
|
|
1063
|
-
var r;
|
|
1064
|
-
return ((r = this._fields[e]) == null ? void 0 : r.type) ?? null;
|
|
1065
|
-
}
|
|
1066
|
-
data() {
|
|
1067
|
-
return { ...this._data };
|
|
1068
|
-
}
|
|
1069
|
-
validate() {
|
|
1070
|
-
const e = Object.entries(this._fields).reduce(
|
|
1071
|
-
(r, [n, a]) => (r[n] = this.getFieldErrors(n, a), r),
|
|
1072
|
-
{}
|
|
1073
|
-
);
|
|
1074
|
-
return this.resetErrors(e), this.valid;
|
|
1075
|
-
}
|
|
1076
|
-
reset(e = {}) {
|
|
1077
|
-
this._submitted.value = !1, e.keepData || this.resetData(), e.keepErrors || this.resetErrors();
|
|
1078
|
-
}
|
|
1079
|
-
submit() {
|
|
1080
|
-
var r;
|
|
1081
|
-
this._submitted.value = !0;
|
|
1082
|
-
const e = this.validate();
|
|
1083
|
-
return e && ((r = this._listeners.submit) == null || r.forEach((n) => n())), e;
|
|
1084
|
-
}
|
|
1085
|
-
on(e, r) {
|
|
1086
|
-
var n, a;
|
|
1087
|
-
return (n = this._listeners)[e] ?? (n[e] = []), (a = this._listeners[e]) == null || a.push(r), () => this.off(e, r);
|
|
1088
|
-
}
|
|
1089
|
-
off(e, r) {
|
|
1090
|
-
Se(this._listeners[e] ?? [], r);
|
|
1091
|
-
}
|
|
1092
|
-
async focus(e) {
|
|
1093
|
-
var r;
|
|
1094
|
-
await Oe(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
|
|
1095
|
-
}
|
|
1096
|
-
__get(e) {
|
|
1097
|
-
return e in this._fields ? this.getFieldValue(e) : super.__get(e);
|
|
1098
|
-
}
|
|
1099
|
-
__set(e, r) {
|
|
1100
|
-
if (!(e in this._fields)) {
|
|
1101
|
-
super.__set(e, r);
|
|
1102
|
-
return;
|
|
1103
|
-
}
|
|
1104
|
-
this.setFieldValue(e, r);
|
|
1105
|
-
}
|
|
1106
|
-
getFieldErrors(e, r) {
|
|
1107
|
-
var l;
|
|
1108
|
-
const n = [], a = this._data[e], i = ((l = r.rules) == null ? void 0 : l.split("|")) ?? [];
|
|
1109
|
-
n.push(...fr(a, r));
|
|
1110
|
-
for (const d of i)
|
|
1111
|
-
d !== "required" && a == null || n.push(...hr(a, d));
|
|
1112
|
-
return n.length > 0 ? n : null;
|
|
1113
|
-
}
|
|
1114
|
-
getInitialData(e) {
|
|
1115
|
-
if (this.static().isConjuring())
|
|
1116
|
-
return {};
|
|
1117
|
-
const r = Object.entries(e).reduce((n, [a, i]) => (n[a] = i.default ?? null, n), {});
|
|
1118
|
-
return pe(r);
|
|
1119
|
-
}
|
|
1120
|
-
getInitialErrors(e) {
|
|
1121
|
-
if (this.static().isConjuring())
|
|
1122
|
-
return {};
|
|
1123
|
-
const r = Object.keys(e).reduce((n, a) => (n[a] = null, n), {});
|
|
1124
|
-
return pe(r);
|
|
1125
|
-
}
|
|
1126
|
-
resetData() {
|
|
1127
|
-
for (const [e, r] of Object.entries(this._fields))
|
|
1128
|
-
this._data[e] = r.default ?? null;
|
|
1129
|
-
}
|
|
1130
|
-
resetErrors(e) {
|
|
1131
|
-
Object.keys(this._errors).forEach((r) => delete this._errors[r]), e && Object.assign(this._errors, e);
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
function it(t, s) {
|
|
1135
|
-
const e = X("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
|
|
1136
|
-
ge(() => r == null ? void 0 : r());
|
|
1137
|
-
}
|
|
1138
|
-
function ut(t) {
|
|
1139
|
-
return new gr(t);
|
|
1140
|
-
}
|
|
1141
|
-
function Ie() {
|
|
1142
|
-
const t = Ne(), s = c(() => t.class);
|
|
1143
|
-
return [c(() => Ot(t, "class")), s];
|
|
1144
|
-
}
|
|
1145
|
-
function hl(t) {
|
|
1146
|
-
let s = Nt;
|
|
1147
|
-
Et(() => s = t()), ge(() => s());
|
|
1148
|
-
}
|
|
1149
|
-
function gl(t, s) {
|
|
1150
|
-
const e = pe(O.get(t) ?? s);
|
|
1151
|
-
return Me(e, () => O.set(t, Vt(e))), e;
|
|
1152
|
-
}
|
|
1153
|
-
function vl(t) {
|
|
1154
|
-
const s = U(), e = c(t);
|
|
1155
|
-
return Me(e, async () => s.value = await e.value, { immediate: !0 }), s;
|
|
1156
|
-
}
|
|
1157
|
-
function bl(t, s) {
|
|
1158
|
-
const e = s ? t : {}, r = s ?? t, n = U(e.initial ?? null), a = Wt((i) => n.value = i, e.delay ?? 300);
|
|
1159
|
-
return Y(() => a(r())), n;
|
|
1160
|
-
}
|
|
1161
|
-
const ct = /* @__PURE__ */ g({
|
|
1165
|
+
const dt = /* @__PURE__ */ g({
|
|
1162
1166
|
__name: "HeadlessSelectValue",
|
|
1163
1167
|
setup(t) {
|
|
1164
1168
|
const s = V(
|
|
1165
1169
|
"select",
|
|
1166
1170
|
"<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
|
|
1167
1171
|
);
|
|
1168
|
-
return (e, r) => e.$slots.default ? (u(), h(
|
|
1172
|
+
return (e, r) => e.$slots.default ? (u(), h(l(De), {
|
|
1169
1173
|
key: 0,
|
|
1170
|
-
placeholder:
|
|
1174
|
+
placeholder: l(s).placeholder
|
|
1171
1175
|
}, {
|
|
1172
1176
|
default: f(() => [
|
|
1173
1177
|
w(e.$slots, "default")
|
|
1174
1178
|
]),
|
|
1175
1179
|
_: 3
|
|
1176
|
-
}, 8, ["placeholder"])) : (u(), h(
|
|
1180
|
+
}, 8, ["placeholder"])) : (u(), h(l(De), {
|
|
1177
1181
|
key: 1,
|
|
1178
|
-
placeholder:
|
|
1182
|
+
placeholder: l(s).placeholder
|
|
1179
1183
|
}, null, 8, ["placeholder"]));
|
|
1180
1184
|
}
|
|
1181
|
-
}),
|
|
1185
|
+
}), pt = /* @__PURE__ */ g({
|
|
1182
1186
|
__name: "HeadlessSelectTrigger",
|
|
1183
1187
|
setup(t) {
|
|
1184
1188
|
const s = V(
|
|
1185
1189
|
"select",
|
|
1186
1190
|
"<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
|
|
1187
1191
|
);
|
|
1188
|
-
return (e, r) => (u(), h(
|
|
1189
|
-
id:
|
|
1192
|
+
return (e, r) => (u(), h(l(us), {
|
|
1193
|
+
id: l(s).id
|
|
1190
1194
|
}, {
|
|
1191
1195
|
default: f(() => [
|
|
1192
1196
|
w(e.$slots, "default", {}, () => [
|
|
1193
|
-
p(
|
|
1194
|
-
placeholder:
|
|
1197
|
+
p(dt, {
|
|
1198
|
+
placeholder: l(s).placeholder
|
|
1195
1199
|
}, null, 8, ["placeholder"]),
|
|
1196
|
-
p(
|
|
1200
|
+
p(l(cs))
|
|
1197
1201
|
])
|
|
1198
1202
|
]),
|
|
1199
1203
|
_: 3
|
|
1200
1204
|
}, 8, ["id"]));
|
|
1201
1205
|
}
|
|
1202
|
-
}),
|
|
1206
|
+
}), mt = /* @__PURE__ */ g({
|
|
1203
1207
|
__name: "HeadlessSelectOption",
|
|
1204
1208
|
props: {
|
|
1205
1209
|
value: {},
|
|
@@ -1217,9 +1221,9 @@ const ct = /* @__PURE__ */ g({
|
|
|
1217
1221
|
const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
|
|
1218
1222
|
return r ? r.label : B(t.value);
|
|
1219
1223
|
});
|
|
1220
|
-
return (r, n) => (u(), h(
|
|
1224
|
+
return (r, n) => (u(), h(l(ds), ne(ae(r.$props)), {
|
|
1221
1225
|
default: f(() => [
|
|
1222
|
-
p(
|
|
1226
|
+
p(l(ps), null, {
|
|
1223
1227
|
default: f(() => [
|
|
1224
1228
|
w(r.$slots, "default", {}, () => [
|
|
1225
1229
|
I(x(e.value), 1)
|
|
@@ -1231,7 +1235,7 @@ const ct = /* @__PURE__ */ g({
|
|
|
1231
1235
|
_: 3
|
|
1232
1236
|
}, 16));
|
|
1233
1237
|
}
|
|
1234
|
-
}),
|
|
1238
|
+
}), ft = /* @__PURE__ */ g({
|
|
1235
1239
|
__name: "HeadlessSelectOptions",
|
|
1236
1240
|
props: {
|
|
1237
1241
|
class: {},
|
|
@@ -1242,22 +1246,22 @@ const ct = /* @__PURE__ */ g({
|
|
|
1242
1246
|
"select",
|
|
1243
1247
|
"<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
|
|
1244
1248
|
), e = c(() => M("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
|
|
1245
|
-
return (r, n) => (u(), h(
|
|
1249
|
+
return (r, n) => (u(), h(l(ms), null, {
|
|
1246
1250
|
default: f(() => [
|
|
1247
|
-
p(
|
|
1251
|
+
p(l(fs), {
|
|
1248
1252
|
position: "popper",
|
|
1249
1253
|
class: k(e.value),
|
|
1250
|
-
align:
|
|
1251
|
-
side:
|
|
1254
|
+
align: l(s).align,
|
|
1255
|
+
side: l(s).side,
|
|
1252
1256
|
"side-offset": 4
|
|
1253
1257
|
}, {
|
|
1254
1258
|
default: f(() => [
|
|
1255
|
-
p(
|
|
1259
|
+
p(l(hs), {
|
|
1256
1260
|
class: k(r.innerClass)
|
|
1257
1261
|
}, {
|
|
1258
1262
|
default: f(() => [
|
|
1259
1263
|
w(r.$slots, "default", {}, () => [
|
|
1260
|
-
(u(!0), b(D, null, F(
|
|
1264
|
+
(u(!0), b(D, null, F(l(s).options ?? [], (a) => (u(), h(mt, {
|
|
1261
1265
|
key: a.key,
|
|
1262
1266
|
value: a.value
|
|
1263
1267
|
}, null, 8, ["value"]))), 128))
|
|
@@ -1272,7 +1276,7 @@ const ct = /* @__PURE__ */ g({
|
|
|
1272
1276
|
_: 3
|
|
1273
1277
|
}));
|
|
1274
1278
|
}
|
|
1275
|
-
}),
|
|
1279
|
+
}), br = /* @__PURE__ */ g({
|
|
1276
1280
|
inheritAttrs: !1,
|
|
1277
1281
|
__name: "HeadlessSelect",
|
|
1278
1282
|
props: {
|
|
@@ -1292,9 +1296,9 @@ const ct = /* @__PURE__ */ g({
|
|
|
1292
1296
|
},
|
|
1293
1297
|
emits: ["update:modelValue"],
|
|
1294
1298
|
setup(t, { expose: s, emit: e }) {
|
|
1295
|
-
const r = e, n = X("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), i = c(() => a.value),
|
|
1299
|
+
const r = e, n = X("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), i = c(() => a.value), o = c(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = c(() => t.options ? t.options.map((m) => ({
|
|
1296
1300
|
key: re(),
|
|
1297
|
-
label: t.renderOption ? t.renderOption(m) :
|
|
1301
|
+
label: t.renderOption ? t.renderOption(m) : vr(m) ? Qt(m.label) : B(m),
|
|
1298
1302
|
value: m
|
|
1299
1303
|
})) : null), v = {
|
|
1300
1304
|
labelClass: t.labelClass,
|
|
@@ -1312,7 +1316,7 @@ const ct = /* @__PURE__ */ g({
|
|
|
1312
1316
|
var m;
|
|
1313
1317
|
return (m = d.value) == null ? void 0 : m.find((C) => C.value === t.modelValue);
|
|
1314
1318
|
}),
|
|
1315
|
-
errors: ve(
|
|
1319
|
+
errors: ve(o),
|
|
1316
1320
|
required: c(() => {
|
|
1317
1321
|
if (!(!t.name || !n))
|
|
1318
1322
|
return n.getFieldRules(t.name).includes("required");
|
|
@@ -1328,7 +1332,7 @@ const ct = /* @__PURE__ */ g({
|
|
|
1328
1332
|
function $(m) {
|
|
1329
1333
|
v.update(m);
|
|
1330
1334
|
}
|
|
1331
|
-
return le("select", v), s(v), (m, C) => (u(), h(
|
|
1335
|
+
return le("select", v), s(v), (m, C) => (u(), h(l(gs), {
|
|
1332
1336
|
"model-value": i.value,
|
|
1333
1337
|
by: m.compareOptions,
|
|
1334
1338
|
"onUpdate:modelValue": C[0] || (C[0] = (L) => $(L))
|
|
@@ -1340,8 +1344,8 @@ const ct = /* @__PURE__ */ g({
|
|
|
1340
1344
|
modelValue: m.modelValue,
|
|
1341
1345
|
open: L
|
|
1342
1346
|
}, () => [
|
|
1343
|
-
p(
|
|
1344
|
-
p(
|
|
1347
|
+
p(pt),
|
|
1348
|
+
p(ft)
|
|
1345
1349
|
])
|
|
1346
1350
|
]),
|
|
1347
1351
|
_: 2
|
|
@@ -1361,19 +1365,19 @@ const ct = /* @__PURE__ */ g({
|
|
|
1361
1365
|
"select",
|
|
1362
1366
|
"<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
|
|
1363
1367
|
), e = He(), r = c(() => !!(s.label || e.default));
|
|
1364
|
-
return (n, a) => r.value ? (u(), h(
|
|
1368
|
+
return (n, a) => r.value ? (u(), h(l(vs), H({
|
|
1365
1369
|
key: 0,
|
|
1366
|
-
for:
|
|
1370
|
+
for: l(s).id
|
|
1367
1371
|
}, n.$props), {
|
|
1368
1372
|
default: f(() => [
|
|
1369
1373
|
w(n.$slots, "default", {}, () => [
|
|
1370
|
-
I(x(
|
|
1374
|
+
I(x(l(s).label), 1)
|
|
1371
1375
|
])
|
|
1372
1376
|
]),
|
|
1373
1377
|
_: 3
|
|
1374
1378
|
}, 16, ["for"])) : T("", !0);
|
|
1375
1379
|
}
|
|
1376
|
-
}),
|
|
1380
|
+
}), ht = /* @__PURE__ */ g({
|
|
1377
1381
|
__name: "SelectLabel",
|
|
1378
1382
|
props: {
|
|
1379
1383
|
class: {}
|
|
@@ -1406,7 +1410,7 @@ const ct = /* @__PURE__ */ g({
|
|
|
1406
1410
|
"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",
|
|
1407
1411
|
t.innerClass
|
|
1408
1412
|
));
|
|
1409
|
-
return (r, n) => (u(), h(
|
|
1413
|
+
return (r, n) => (u(), h(mt, {
|
|
1410
1414
|
class: k(s.value),
|
|
1411
1415
|
value: r.value
|
|
1412
1416
|
}, {
|
|
@@ -1420,7 +1424,7 @@ const ct = /* @__PURE__ */ g({
|
|
|
1420
1424
|
_: 3
|
|
1421
1425
|
}, 8, ["class", "value"]));
|
|
1422
1426
|
}
|
|
1423
|
-
}),
|
|
1427
|
+
}), gt = /* @__PURE__ */ g({
|
|
1424
1428
|
__name: "SelectOptions",
|
|
1425
1429
|
props: {
|
|
1426
1430
|
class: {}
|
|
@@ -1431,21 +1435,21 @@ const ct = /* @__PURE__ */ g({
|
|
|
1431
1435
|
s.optionsClass,
|
|
1432
1436
|
t.class
|
|
1433
1437
|
));
|
|
1434
|
-
return (r, n) => (u(), h(
|
|
1438
|
+
return (r, n) => (u(), h(ft, {
|
|
1435
1439
|
class: k(e.value)
|
|
1436
1440
|
}, {
|
|
1437
1441
|
default: f(() => {
|
|
1438
1442
|
var a;
|
|
1439
1443
|
return [
|
|
1440
|
-
(a =
|
|
1444
|
+
(a = l(s).options) != null && a.length ? w(r.$slots, "default", { key: 0 }, () => {
|
|
1441
1445
|
var i;
|
|
1442
1446
|
return [
|
|
1443
|
-
(u(!0), b(D, null, F(((i =
|
|
1444
|
-
key:
|
|
1445
|
-
value:
|
|
1447
|
+
(u(!0), b(D, null, F(((i = l(s)) == null ? void 0 : i.options) ?? [], (o) => (u(), h(Fe, {
|
|
1448
|
+
key: o.key,
|
|
1449
|
+
value: o.value
|
|
1446
1450
|
}, {
|
|
1447
1451
|
default: f(() => [
|
|
1448
|
-
I(x(
|
|
1452
|
+
I(x(o.label), 1)
|
|
1449
1453
|
]),
|
|
1450
1454
|
_: 2
|
|
1451
1455
|
}, 1032, ["value"]))), 128))
|
|
@@ -1466,20 +1470,20 @@ const ct = /* @__PURE__ */ g({
|
|
|
1466
1470
|
_: 3
|
|
1467
1471
|
}, 8, ["class"]));
|
|
1468
1472
|
}
|
|
1469
|
-
}),
|
|
1473
|
+
}), yr = {
|
|
1470
1474
|
viewBox: "0 0 20 20",
|
|
1471
1475
|
width: "1.2em",
|
|
1472
1476
|
height: "1.2em"
|
|
1473
1477
|
};
|
|
1474
|
-
function
|
|
1475
|
-
return u(), b("svg",
|
|
1478
|
+
function wr(t, s) {
|
|
1479
|
+
return u(), b("svg", yr, s[0] || (s[0] = [
|
|
1476
1480
|
y("path", {
|
|
1477
1481
|
fill: "currentColor",
|
|
1478
1482
|
d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
|
|
1479
1483
|
}, null, -1)
|
|
1480
1484
|
]));
|
|
1481
1485
|
}
|
|
1482
|
-
const
|
|
1486
|
+
const $r = E({ name: "zondicons-cheveron-down", render: wr }), vt = /* @__PURE__ */ g({
|
|
1483
1487
|
__name: "SelectTrigger",
|
|
1484
1488
|
props: {
|
|
1485
1489
|
class: {}
|
|
@@ -1491,17 +1495,17 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1491
1495
|
{ "mt-1": s.label },
|
|
1492
1496
|
t.class
|
|
1493
1497
|
));
|
|
1494
|
-
return (r, n) => (u(), h(
|
|
1498
|
+
return (r, n) => (u(), h(pt, {
|
|
1495
1499
|
class: k(e.value)
|
|
1496
1500
|
}, {
|
|
1497
1501
|
default: f(() => [
|
|
1498
|
-
p(
|
|
1499
|
-
p(
|
|
1502
|
+
p(dt, { class: "col-start-1 row-start-1 truncate pr-6" }),
|
|
1503
|
+
p(l($r), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
|
|
1500
1504
|
]),
|
|
1501
1505
|
_: 1
|
|
1502
1506
|
}, 8, ["class"]));
|
|
1503
1507
|
}
|
|
1504
|
-
}),
|
|
1508
|
+
}), _r = /* @__PURE__ */ g({
|
|
1505
1509
|
__name: "Select",
|
|
1506
1510
|
props: {
|
|
1507
1511
|
as: {},
|
|
@@ -1521,20 +1525,20 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1521
1525
|
emits: ["update:modelValue"],
|
|
1522
1526
|
setup(t) {
|
|
1523
1527
|
const { forwardRef: s } = Ve();
|
|
1524
|
-
return (e, r) => (u(), h(
|
|
1528
|
+
return (e, r) => (u(), h(br, H({ ref: l(s) }, e.$props, {
|
|
1525
1529
|
"onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
|
|
1526
1530
|
}), {
|
|
1527
1531
|
default: f(() => [
|
|
1528
|
-
p(
|
|
1532
|
+
p(ht),
|
|
1529
1533
|
w(e.$slots, "default", {}, () => [
|
|
1530
|
-
p(
|
|
1531
|
-
p(
|
|
1534
|
+
p(vt),
|
|
1535
|
+
p(gt)
|
|
1532
1536
|
])
|
|
1533
1537
|
]),
|
|
1534
1538
|
_: 3
|
|
1535
1539
|
}, 16));
|
|
1536
1540
|
}
|
|
1537
|
-
}),
|
|
1541
|
+
}), xr = { class: "grow" }, Cr = /* @__PURE__ */ g({
|
|
1538
1542
|
__name: "Language",
|
|
1539
1543
|
setup(t) {
|
|
1540
1544
|
const s = Z.getBrowserLocale(), e = c(() => [null, ...Z.locales]);
|
|
@@ -1543,7 +1547,7 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1543
1547
|
locale: j.locales[s] ?? s
|
|
1544
1548
|
});
|
|
1545
1549
|
}
|
|
1546
|
-
return (n, a) => (u(), h(
|
|
1550
|
+
return (n, a) => (u(), h(_r, {
|
|
1547
1551
|
modelValue: n.$lang.locale,
|
|
1548
1552
|
"onUpdate:modelValue": a[0] || (a[0] = (i) => n.$lang.locale = i),
|
|
1549
1553
|
class: "flex flex-col items-start md:flex-row",
|
|
@@ -1552,8 +1556,8 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1552
1556
|
"render-option": r
|
|
1553
1557
|
}, {
|
|
1554
1558
|
default: f(() => [
|
|
1555
|
-
y("div",
|
|
1556
|
-
p(
|
|
1559
|
+
y("div", xr, [
|
|
1560
|
+
p(ht, { class: "text-base font-semibold" }, {
|
|
1557
1561
|
default: f(() => [
|
|
1558
1562
|
I(x(n.$td("settings.locale", "Language")), 1)
|
|
1559
1563
|
]),
|
|
@@ -1567,25 +1571,25 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1567
1571
|
]),
|
|
1568
1572
|
p(q, {
|
|
1569
1573
|
variant: "ghost",
|
|
1570
|
-
as:
|
|
1574
|
+
as: vt,
|
|
1571
1575
|
class: "grid w-auto outline-none"
|
|
1572
1576
|
}),
|
|
1573
|
-
p(
|
|
1577
|
+
p(gt)
|
|
1574
1578
|
]),
|
|
1575
1579
|
_: 1
|
|
1576
1580
|
}, 8, ["modelValue", "options"]));
|
|
1577
1581
|
}
|
|
1578
|
-
}),
|
|
1582
|
+
}), kr = [
|
|
1579
1583
|
{
|
|
1580
1584
|
priority: 100,
|
|
1581
|
-
component:
|
|
1585
|
+
component: Cr
|
|
1582
1586
|
}
|
|
1583
|
-
],
|
|
1587
|
+
], Sr = { $lang: Z }, Tr = {
|
|
1584
1588
|
async install(t) {
|
|
1585
1589
|
var s;
|
|
1586
|
-
(s = t.config.globalProperties).$t ?? (s.$t =
|
|
1590
|
+
(s = t.config.globalProperties).$t ?? (s.$t = it), t.config.globalProperties.$td = S, kr.forEach((e) => A.addSetting(e)), await $e(t, Sr);
|
|
1587
1591
|
}
|
|
1588
|
-
},
|
|
1592
|
+
}, Mr = /* @__PURE__ */ g({
|
|
1589
1593
|
__name: "Markdown",
|
|
1590
1594
|
props: {
|
|
1591
1595
|
as: {},
|
|
@@ -1597,38 +1601,38 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1597
1601
|
actions: {}
|
|
1598
1602
|
},
|
|
1599
1603
|
setup(t) {
|
|
1600
|
-
const s = Ne(), e = He(), r = c(() => e.default ? e.default().map(Ge).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) :
|
|
1604
|
+
const s = Ne(), e = He(), r = c(() => e.default ? e.default().map(Ge).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : it(t.langKey, t.langParams ?? {})))), n = c(() => {
|
|
1601
1605
|
if (!r.value)
|
|
1602
1606
|
return null;
|
|
1603
|
-
let
|
|
1604
|
-
return t.inline && (
|
|
1605
|
-
}), a = () =>
|
|
1607
|
+
let o = sr(r.value);
|
|
1608
|
+
return t.inline && (o = o.replace("<p>", "<span>").replace("</p>", "</span>")), o;
|
|
1609
|
+
}), a = () => It(t.as ?? (t.inline ? "span" : "div"), {
|
|
1606
1610
|
innerHTML: n.value,
|
|
1607
1611
|
onClick: i,
|
|
1608
1612
|
...s,
|
|
1609
1613
|
class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
|
|
1610
1614
|
});
|
|
1611
|
-
async function i(
|
|
1615
|
+
async function i(o) {
|
|
1612
1616
|
var v, $;
|
|
1613
|
-
const { target: d } =
|
|
1617
|
+
const { target: d } = o;
|
|
1614
1618
|
if (Pe(d, HTMLElement) && d.dataset.markdownAction) {
|
|
1615
1619
|
($ = (v = t.actions) == null ? void 0 : v[d.dataset.markdownAction]) == null || $.call(v);
|
|
1616
1620
|
return;
|
|
1617
1621
|
}
|
|
1618
1622
|
if (Pe(d, HTMLAnchorElement) && d.dataset.markdownRoute) {
|
|
1619
|
-
const m =
|
|
1620
|
-
m && (
|
|
1623
|
+
const m = tr();
|
|
1624
|
+
m && (o.preventDefault(), m.visit(d.dataset.markdownRoute));
|
|
1621
1625
|
return;
|
|
1622
1626
|
}
|
|
1623
1627
|
}
|
|
1624
|
-
return (
|
|
1628
|
+
return (o, d) => (u(), h(a));
|
|
1625
1629
|
}
|
|
1626
|
-
}),
|
|
1630
|
+
}), Hr = (t, s) => {
|
|
1627
1631
|
const e = t.__vccOpts || t;
|
|
1628
1632
|
for (const [r, n] of s)
|
|
1629
1633
|
e[r] = n;
|
|
1630
1634
|
return e;
|
|
1631
|
-
}, P = /* @__PURE__ */ Mr
|
|
1635
|
+
}, P = /* @__PURE__ */ Hr(Mr, [["__scopeId", "data-v-8b211cfb"]]), Er = { class: "flex-grow" }, Vr = ["id"], Lr = /* @__PURE__ */ g({
|
|
1632
1636
|
__name: "Setting",
|
|
1633
1637
|
props: {
|
|
1634
1638
|
title: {},
|
|
@@ -1642,11 +1646,11 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1642
1646
|
return (e, r) => (u(), b("div", {
|
|
1643
1647
|
class: k(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
|
|
1644
1648
|
}, [
|
|
1645
|
-
y("div",
|
|
1649
|
+
y("div", Er, [
|
|
1646
1650
|
y("h3", {
|
|
1647
1651
|
id: e.titleId,
|
|
1648
1652
|
class: "text-base font-semibold"
|
|
1649
|
-
}, x(e.title), 9,
|
|
1653
|
+
}, x(e.title), 9, Vr),
|
|
1650
1654
|
e.description ? (u(), h(P, {
|
|
1651
1655
|
key: 0,
|
|
1652
1656
|
text: e.description,
|
|
@@ -1660,7 +1664,7 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1660
1664
|
], 2)
|
|
1661
1665
|
], 2));
|
|
1662
1666
|
}
|
|
1663
|
-
}),
|
|
1667
|
+
}), Ir = ["for"], qr = /* @__PURE__ */ g({
|
|
1664
1668
|
inheritAttrs: !1,
|
|
1665
1669
|
__name: "HeadlessSwitch",
|
|
1666
1670
|
props: {
|
|
@@ -1686,60 +1690,60 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1686
1690
|
if (!(!t.name || !n))
|
|
1687
1691
|
return n.getFieldRules(t.name).includes("required");
|
|
1688
1692
|
}),
|
|
1689
|
-
update(
|
|
1693
|
+
update(o) {
|
|
1690
1694
|
if (n && t.name) {
|
|
1691
|
-
n.setFieldValue(t.name,
|
|
1695
|
+
n.setFieldValue(t.name, o);
|
|
1692
1696
|
return;
|
|
1693
1697
|
}
|
|
1694
|
-
r("update:modelValue",
|
|
1698
|
+
r("update:modelValue", o);
|
|
1695
1699
|
}
|
|
1696
1700
|
};
|
|
1697
1701
|
return s(i), Y(() => {
|
|
1698
1702
|
!t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
|
|
1699
|
-
}), (
|
|
1703
|
+
}), (o, d) => (u(), b("div", {
|
|
1700
1704
|
class: k(t.class)
|
|
1701
1705
|
}, [
|
|
1702
|
-
|
|
1706
|
+
o.label ? (u(), b("label", {
|
|
1703
1707
|
key: 0,
|
|
1704
1708
|
for: i.id,
|
|
1705
|
-
class: k(
|
|
1706
|
-
}, x(
|
|
1707
|
-
p(
|
|
1709
|
+
class: k(o.labelClass)
|
|
1710
|
+
}, x(o.label), 11, Ir)) : T("", !0),
|
|
1711
|
+
p(l(bs), H({
|
|
1708
1712
|
id: i.id,
|
|
1709
|
-
name:
|
|
1713
|
+
name: o.name,
|
|
1710
1714
|
"model-value": i.value.value
|
|
1711
|
-
},
|
|
1712
|
-
class:
|
|
1713
|
-
"onUpdate:modelValue": d[0] || (d[0] = (v) =>
|
|
1715
|
+
}, o.$attrs, {
|
|
1716
|
+
class: o.inputClass,
|
|
1717
|
+
"onUpdate:modelValue": d[0] || (d[0] = (v) => o.$emit("update:modelValue", v))
|
|
1714
1718
|
}), {
|
|
1715
1719
|
default: f(() => [
|
|
1716
|
-
p(
|
|
1717
|
-
class: k(
|
|
1720
|
+
p(l(ys), {
|
|
1721
|
+
class: k(o.thumbClass)
|
|
1718
1722
|
}, null, 8, ["class"])
|
|
1719
1723
|
]),
|
|
1720
1724
|
_: 1
|
|
1721
1725
|
}, 16, ["id", "name", "model-value", "class"])
|
|
1722
1726
|
], 2));
|
|
1723
1727
|
}
|
|
1724
|
-
}),
|
|
1728
|
+
}), zr = /* @__PURE__ */ g({
|
|
1725
1729
|
__name: "Switch",
|
|
1726
1730
|
setup(t) {
|
|
1727
|
-
return (s, e) => (u(), h(
|
|
1731
|
+
return (s, e) => (u(), h(qr, {
|
|
1728
1732
|
class: "flex flex-row items-center gap-1",
|
|
1729
1733
|
"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",
|
|
1730
1734
|
"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"
|
|
1731
1735
|
}));
|
|
1732
1736
|
}
|
|
1733
|
-
}),
|
|
1737
|
+
}), Rr = /* @__PURE__ */ g({
|
|
1734
1738
|
__name: "Debug",
|
|
1735
1739
|
setup(t) {
|
|
1736
|
-
return (s, e) => (u(), h(
|
|
1740
|
+
return (s, e) => (u(), h(Lr, {
|
|
1737
1741
|
"title-id": "debug-setting",
|
|
1738
1742
|
title: s.$td("settings.debug", "Debugging"),
|
|
1739
1743
|
description: s.$td("settings.debugDescription", "Enable debugging with [Eruda](https://eruda.liriliri.io/).")
|
|
1740
1744
|
}, {
|
|
1741
1745
|
default: f(() => [
|
|
1742
|
-
p(
|
|
1746
|
+
p(zr, {
|
|
1743
1747
|
modelValue: s.$errors.debug,
|
|
1744
1748
|
"onUpdate:modelValue": e[0] || (e[0] = (r) => s.$errors.debug = r),
|
|
1745
1749
|
"aria-labelledby": "debug-setting"
|
|
@@ -1748,17 +1752,17 @@ const wr = E({ name: "zondicons-cheveron-down", render: yr }), gt = /* @__PURE__
|
|
|
1748
1752
|
_: 1
|
|
1749
1753
|
}, 8, ["title", "description"]));
|
|
1750
1754
|
}
|
|
1751
|
-
}),
|
|
1755
|
+
}), Pr = [
|
|
1752
1756
|
{
|
|
1753
1757
|
priority: 10,
|
|
1754
|
-
component:
|
|
1758
|
+
component: Rr
|
|
1755
1759
|
}
|
|
1756
|
-
],
|
|
1757
|
-
function
|
|
1758
|
-
|
|
1760
|
+
], bt = [];
|
|
1761
|
+
function wl(t) {
|
|
1762
|
+
bt.push(t);
|
|
1759
1763
|
}
|
|
1760
|
-
function
|
|
1761
|
-
for (const s of
|
|
1764
|
+
function yt(t) {
|
|
1765
|
+
for (const s of bt) {
|
|
1762
1766
|
const e = s(t);
|
|
1763
1767
|
if (e)
|
|
1764
1768
|
return e;
|
|
@@ -1767,36 +1771,36 @@ function bt(t) {
|
|
|
1767
1771
|
}
|
|
1768
1772
|
class Ue extends be {
|
|
1769
1773
|
}
|
|
1770
|
-
const
|
|
1771
|
-
function
|
|
1772
|
-
const e = (r) => s(r) ||
|
|
1773
|
-
t.config.errorHandler = e, globalThis.onerror = (r, n, a, i,
|
|
1774
|
+
const Ar = { $errors: ut }, Dr = (t) => (ut.report(t), !0);
|
|
1775
|
+
function jr(t, s = () => !1) {
|
|
1776
|
+
const e = (r) => s(r) || Dr(r);
|
|
1777
|
+
t.config.errorHandler = e, globalThis.onerror = (r, n, a, i, o) => e(o ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
|
|
1774
1778
|
}
|
|
1775
|
-
const
|
|
1779
|
+
const Br = {
|
|
1776
1780
|
async install(t, s) {
|
|
1777
|
-
|
|
1781
|
+
jr(t, s.handleError), Pr.forEach((e) => A.addSetting(e)), await $e(t, Ar);
|
|
1778
1782
|
}
|
|
1779
|
-
},
|
|
1783
|
+
}, Fr = {
|
|
1780
1784
|
async install() {
|
|
1781
1785
|
Ee() && (globalThis.testingRuntime = {
|
|
1782
1786
|
on: (...t) => R.on(...t),
|
|
1783
1787
|
service: (t) => A.service(t)
|
|
1784
1788
|
});
|
|
1785
1789
|
}
|
|
1786
|
-
},
|
|
1790
|
+
}, Ur = {
|
|
1787
1791
|
viewBox: "0 0 20 20",
|
|
1788
1792
|
width: "1.2em",
|
|
1789
1793
|
height: "1.2em"
|
|
1790
1794
|
};
|
|
1791
|
-
function
|
|
1792
|
-
return u(), b("svg",
|
|
1795
|
+
function Or(t, s) {
|
|
1796
|
+
return u(), b("svg", Ur, s[0] || (s[0] = [
|
|
1793
1797
|
y("path", {
|
|
1794
1798
|
fill: "currentColor",
|
|
1795
1799
|
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"
|
|
1796
1800
|
}, null, -1)
|
|
1797
1801
|
]));
|
|
1798
1802
|
}
|
|
1799
|
-
const
|
|
1803
|
+
const Nr = E({ name: "zondicons-close", render: Or }), Wr = /* @__PURE__ */ g({
|
|
1800
1804
|
__name: "HeadlessModal",
|
|
1801
1805
|
props: {
|
|
1802
1806
|
persistent: { type: Boolean },
|
|
@@ -1812,21 +1816,21 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
|
|
|
1812
1816
|
);
|
|
1813
1817
|
s({ close: i, $content: e });
|
|
1814
1818
|
const { forwardRef: n } = Ve(), a = U(!1);
|
|
1815
|
-
le("$modalContentRef", e),
|
|
1816
|
-
|
|
1819
|
+
le("$modalContentRef", e), tt("close-modal", async ({ id: o, result: d }) => {
|
|
1820
|
+
o === r.id && await i(d);
|
|
1817
1821
|
});
|
|
1818
|
-
async function i(
|
|
1819
|
-
a.value || (await R.emit("modal-will-close", { modal: r, result:
|
|
1822
|
+
async function i(o) {
|
|
1823
|
+
a.value || (await R.emit("modal-will-close", { modal: r, result: o }), a.value = !0, await R.emit("modal-has-closed", { modal: r, result: o }));
|
|
1820
1824
|
}
|
|
1821
|
-
return (
|
|
1822
|
-
ref:
|
|
1825
|
+
return (o, d) => (u(), h(l(ws), {
|
|
1826
|
+
ref: l(n),
|
|
1823
1827
|
open: "",
|
|
1824
|
-
"onUpdate:open": d[0] || (d[0] = (v) =>
|
|
1828
|
+
"onUpdate:open": d[0] || (d[0] = (v) => o.persistent || i())
|
|
1825
1829
|
}, {
|
|
1826
1830
|
default: f(() => [
|
|
1827
|
-
p(
|
|
1831
|
+
p(l($s), null, {
|
|
1828
1832
|
default: f(() => [
|
|
1829
|
-
w(
|
|
1833
|
+
w(o.$slots, "default", { close: i })
|
|
1830
1834
|
]),
|
|
1831
1835
|
_: 3
|
|
1832
1836
|
})
|
|
@@ -1834,7 +1838,7 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
|
|
|
1834
1838
|
_: 3
|
|
1835
1839
|
}, 512));
|
|
1836
1840
|
}
|
|
1837
|
-
}),
|
|
1841
|
+
}), wt = /* @__PURE__ */ g({
|
|
1838
1842
|
__name: "ModalContext",
|
|
1839
1843
|
props: {
|
|
1840
1844
|
modal: {},
|
|
@@ -1844,7 +1848,7 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
|
|
|
1844
1848
|
const s = t, e = c(() => {
|
|
1845
1849
|
const r = {};
|
|
1846
1850
|
for (const n in s.modal.properties)
|
|
1847
|
-
r[n] =
|
|
1851
|
+
r[n] = l(s.modal.properties[n]);
|
|
1848
1852
|
return r;
|
|
1849
1853
|
});
|
|
1850
1854
|
return le("modal", {
|
|
@@ -1852,40 +1856,40 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
|
|
|
1852
1856
|
childIndex: Re(s, "childIndex")
|
|
1853
1857
|
}), (r, n) => (u(), h(W(r.modal.component), ne(ae(e.value)), null, 16));
|
|
1854
1858
|
}
|
|
1855
|
-
}),
|
|
1859
|
+
}), Kr = /* @__PURE__ */ g({
|
|
1856
1860
|
__name: "HeadlessModalContent",
|
|
1857
1861
|
setup(t) {
|
|
1858
1862
|
const { childIndex: s = 0 } = V(
|
|
1859
1863
|
"modal",
|
|
1860
1864
|
"could not obtain modal reference from <HeadlessModalContent>, did you render this component manually? Show it using $ui.modal() instead"
|
|
1861
|
-
), e =
|
|
1862
|
-
return Y(() => e.value = r.value), (a, i) => (u(), h(
|
|
1865
|
+
), e = Ns("$modalContentRef"), r = G("$contentRef"), n = c(() => z.modals[s] ?? null);
|
|
1866
|
+
return Y(() => e.value = r.value), (a, i) => (u(), h(l(_s), { ref: "$contentRef" }, {
|
|
1863
1867
|
default: f(() => [
|
|
1864
1868
|
w(a.$slots, "default"),
|
|
1865
|
-
n.value ? (u(), h(
|
|
1869
|
+
n.value ? (u(), h(wt, {
|
|
1866
1870
|
key: 0,
|
|
1867
|
-
"child-index":
|
|
1871
|
+
"child-index": l(s) + 1,
|
|
1868
1872
|
modal: n.value
|
|
1869
1873
|
}, null, 8, ["child-index", "modal"])) : T("", !0)
|
|
1870
1874
|
]),
|
|
1871
1875
|
_: 3
|
|
1872
1876
|
}, 512));
|
|
1873
1877
|
}
|
|
1874
|
-
}),
|
|
1878
|
+
}), Qr = /* @__PURE__ */ g({
|
|
1875
1879
|
__name: "HeadlessModalDescription",
|
|
1876
1880
|
props: {
|
|
1877
1881
|
asChild: { type: Boolean },
|
|
1878
1882
|
as: {}
|
|
1879
1883
|
},
|
|
1880
1884
|
setup(t) {
|
|
1881
|
-
return (s, e) => (u(), h(
|
|
1885
|
+
return (s, e) => (u(), h(l(xs), ne(ae(s.$props)), {
|
|
1882
1886
|
default: f(() => [
|
|
1883
1887
|
w(s.$slots, "default")
|
|
1884
1888
|
]),
|
|
1885
1889
|
_: 3
|
|
1886
1890
|
}, 16));
|
|
1887
1891
|
}
|
|
1888
|
-
}),
|
|
1892
|
+
}), Jr = /* @__PURE__ */ g({
|
|
1889
1893
|
__name: "HeadlessModalOverlay",
|
|
1890
1894
|
props: {
|
|
1891
1895
|
forceMount: { type: Boolean },
|
|
@@ -1893,31 +1897,31 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
|
|
|
1893
1897
|
as: {}
|
|
1894
1898
|
},
|
|
1895
1899
|
setup(t) {
|
|
1896
|
-
return (s, e) => (u(), h(
|
|
1900
|
+
return (s, e) => (u(), h(l(Cs), ne(ae(s.$props)), {
|
|
1897
1901
|
default: f(() => [
|
|
1898
1902
|
w(s.$slots, "default")
|
|
1899
1903
|
]),
|
|
1900
1904
|
_: 3
|
|
1901
1905
|
}, 16));
|
|
1902
1906
|
}
|
|
1903
|
-
}),
|
|
1907
|
+
}), Zr = /* @__PURE__ */ g({
|
|
1904
1908
|
__name: "HeadlessModalTitle",
|
|
1905
1909
|
props: {
|
|
1906
1910
|
asChild: { type: Boolean },
|
|
1907
1911
|
as: {}
|
|
1908
1912
|
},
|
|
1909
1913
|
setup(t) {
|
|
1910
|
-
return (s, e) => (u(), h(
|
|
1914
|
+
return (s, e) => (u(), h(l(ks), ne(ae(s.$props)), {
|
|
1911
1915
|
default: f(() => [
|
|
1912
1916
|
w(s.$slots, "default")
|
|
1913
1917
|
]),
|
|
1914
1918
|
_: 3
|
|
1915
1919
|
}, 16));
|
|
1916
1920
|
}
|
|
1917
|
-
}),
|
|
1921
|
+
}), Xr = {
|
|
1918
1922
|
key: 0,
|
|
1919
1923
|
class: "absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block"
|
|
1920
|
-
},
|
|
1924
|
+
}, Yr = ["onClick"], Gr = { class: "sr-only" }, se = /* @__PURE__ */ g({
|
|
1921
1925
|
__name: "Modal",
|
|
1922
1926
|
props: {
|
|
1923
1927
|
persistent: { type: Boolean },
|
|
@@ -1941,43 +1945,43 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
|
|
|
1941
1945
|
return (m = a.value) == null ? void 0 : m.$content;
|
|
1942
1946
|
})
|
|
1943
1947
|
});
|
|
1944
|
-
const { forwardRef: r, currentRef: n } = Ve(), a = n, i = V("modal"),
|
|
1948
|
+
const { forwardRef: r, currentRef: n } = Ve(), a = n, i = V("modal"), o = c(() => !i.modal.closing && i.childIndex === z.openModals.length), d = c(() => t.description ? {} : { "aria-describedby": void 0 }), v = c(() => M("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), $ = c(() => M(
|
|
1945
1949
|
"isolate fixed top-1/2 left-1/2 z-50 w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2",
|
|
1946
1950
|
"overflow-hidden rounded-lg bg-white text-left shadow-xl sm:max-w-lg",
|
|
1947
1951
|
"animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
|
|
1948
1952
|
"transition-[scale,opacity] will-change-[scale,opacity] duration-300",
|
|
1949
1953
|
{
|
|
1950
|
-
"scale-50 opacity-0": !
|
|
1951
|
-
"scale-100 opacity-100":
|
|
1954
|
+
"scale-50 opacity-0": !o.value,
|
|
1955
|
+
"scale-100 opacity-100": o.value
|
|
1952
1956
|
},
|
|
1953
1957
|
t.wrapperClass
|
|
1954
1958
|
));
|
|
1955
|
-
return
|
|
1959
|
+
return tt("modal-will-close", async ({ modal: { id: m } }) => {
|
|
1956
1960
|
m === i.modal.id && await ue({ ms: 300 });
|
|
1957
|
-
}), (m, C) => (u(), h(
|
|
1958
|
-
ref: (L) =>
|
|
1961
|
+
}), (m, C) => (u(), h(Wr, H(e, {
|
|
1962
|
+
ref: (L) => l(r)(L),
|
|
1959
1963
|
persistent: m.persistent
|
|
1960
1964
|
}), {
|
|
1961
1965
|
default: f(({ close: L }) => [
|
|
1962
|
-
p(
|
|
1966
|
+
p(Jr, {
|
|
1963
1967
|
class: k(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
|
|
1964
|
-
"bg-black/30":
|
|
1965
|
-
"opacity-0":
|
|
1968
|
+
"bg-black/30": l(i).childIndex === 1,
|
|
1969
|
+
"opacity-0": l(i).childIndex === 1 && l(i).modal.closing
|
|
1966
1970
|
}])
|
|
1967
1971
|
}, null, 8, ["class"]),
|
|
1968
|
-
p(
|
|
1972
|
+
p(Kr, H(d.value, { class: $.value }), {
|
|
1969
1973
|
default: f(() => [
|
|
1970
|
-
!m.persistent && !m.closeHidden ? (u(), b("div",
|
|
1974
|
+
!m.persistent && !m.closeHidden ? (u(), b("div", Xr, [
|
|
1971
1975
|
y("button", {
|
|
1972
1976
|
type: "button",
|
|
1973
1977
|
class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
|
|
1974
1978
|
onClick: (_e) => L()
|
|
1975
1979
|
}, [
|
|
1976
|
-
y("span",
|
|
1977
|
-
p(
|
|
1978
|
-
], 8,
|
|
1980
|
+
y("span", Gr, x(m.$td("ui.close", "Close")), 1),
|
|
1981
|
+
p(l(Nr), { class: "size-4" })
|
|
1982
|
+
], 8, Yr)
|
|
1979
1983
|
])) : T("", !0),
|
|
1980
|
-
m.title ? (u(), h(
|
|
1984
|
+
m.title ? (u(), h(Zr, {
|
|
1981
1985
|
key: 1,
|
|
1982
1986
|
class: k(["px-4 pt-5 text-base font-semibold text-gray-900", {
|
|
1983
1987
|
"sr-only": m.titleHidden,
|
|
@@ -1993,7 +1997,7 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
|
|
|
1993
1997
|
]),
|
|
1994
1998
|
_: 1
|
|
1995
1999
|
}, 8, ["class"])) : T("", !0),
|
|
1996
|
-
m.description ? (u(), h(
|
|
2000
|
+
m.description ? (u(), h(Qr, {
|
|
1997
2001
|
key: 2,
|
|
1998
2002
|
class: k(["px-4 pt-1 pb-2", { "sr-only": m.descriptionHidden }])
|
|
1999
2003
|
}, {
|
|
@@ -2018,21 +2022,21 @@ const Or = E({ name: "zondicons-close", render: Ur }), Nr = /* @__PURE__ */ g({
|
|
|
2018
2022
|
}, 16, ["persistent"]));
|
|
2019
2023
|
}
|
|
2020
2024
|
});
|
|
2021
|
-
function
|
|
2025
|
+
function en(t) {
|
|
2022
2026
|
const s = c(() => t.title ?? S("ui.alert", "Alert")), e = c(() => !t.title);
|
|
2023
2027
|
return { renderedTitle: s, titleHidden: e };
|
|
2024
2028
|
}
|
|
2025
|
-
const
|
|
2029
|
+
const tn = /* @__PURE__ */ g({
|
|
2026
2030
|
__name: "AlertModal",
|
|
2027
2031
|
props: {
|
|
2028
2032
|
title: {},
|
|
2029
2033
|
message: {}
|
|
2030
2034
|
},
|
|
2031
2035
|
setup(t, { expose: s }) {
|
|
2032
|
-
const e = t, { renderedTitle: r, titleHidden: n } =
|
|
2036
|
+
const e = t, { renderedTitle: r, titleHidden: n } = en(e);
|
|
2033
2037
|
return s(), (a, i) => (u(), h(se, {
|
|
2034
|
-
title:
|
|
2035
|
-
"title-hidden":
|
|
2038
|
+
title: l(r),
|
|
2039
|
+
"title-hidden": l(n)
|
|
2036
2040
|
}, {
|
|
2037
2041
|
default: f(() => [
|
|
2038
2042
|
p(P, { text: a.message }, null, 8, ["text"])
|
|
@@ -2040,7 +2044,7 @@ const en = /* @__PURE__ */ g({
|
|
|
2040
2044
|
_: 1
|
|
2041
2045
|
}, 8, ["title", "title-hidden"]));
|
|
2042
2046
|
}
|
|
2043
|
-
}),
|
|
2047
|
+
}), $t = /* @__PURE__ */ g({
|
|
2044
2048
|
__name: "Form",
|
|
2045
2049
|
props: {
|
|
2046
2050
|
form: {}
|
|
@@ -2053,20 +2057,17 @@ const en = /* @__PURE__ */ g({
|
|
|
2053
2057
|
var a;
|
|
2054
2058
|
e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
|
|
2055
2059
|
}), le("form", t.form), (n, a) => (u(), b("form", {
|
|
2056
|
-
onSubmit: a[0] || (a[0] = We((i) =>
|
|
2057
|
-
var l;
|
|
2058
|
-
return (l = n.form) == null ? void 0 : l.submit();
|
|
2059
|
-
}, ["prevent"]))
|
|
2060
|
+
onSubmit: a[0] || (a[0] = We((i) => n.form ? n.form.submit() : n.$emit("submit"), ["prevent"]))
|
|
2060
2061
|
}, [
|
|
2061
2062
|
w(n.$slots, "default")
|
|
2062
2063
|
], 32));
|
|
2063
2064
|
}
|
|
2064
2065
|
});
|
|
2065
|
-
function
|
|
2066
|
-
const s =
|
|
2066
|
+
function sn(t) {
|
|
2067
|
+
const s = rt(
|
|
2067
2068
|
Object.entries(t.checkboxes ?? {}).reduce(
|
|
2068
|
-
(i, [
|
|
2069
|
-
[
|
|
2069
|
+
(i, [o, d]) => ({
|
|
2070
|
+
[o]: {
|
|
2070
2071
|
type: "boolean",
|
|
2071
2072
|
default: d.default,
|
|
2072
2073
|
required: d.required ? "required" : void 0
|
|
@@ -2078,10 +2079,10 @@ function tn(t) {
|
|
|
2078
2079
|
), e = c(() => t.title ?? S("ui.confirm", "Confirm")), r = c(() => !t.title), n = c(() => t.acceptText ?? S("ui.accept", "Ok")), a = c(() => t.cancelText ?? S("ui.cancel", "Cancel"));
|
|
2079
2080
|
return { form: s, renderedTitle: e, titleHidden: r, renderedAcceptText: n, renderedCancelText: a };
|
|
2080
2081
|
}
|
|
2081
|
-
const
|
|
2082
|
+
const rn = {
|
|
2082
2083
|
key: 0,
|
|
2083
2084
|
class: "mt-4 flex flex-col text-sm text-gray-600"
|
|
2084
|
-
},
|
|
2085
|
+
}, nn = { class: "flex items-center" }, an = ["onUpdate:modelValue", "required"], ln = { class: "ml-1.5" }, on = { class: "mt-4 flex flex-row-reverse gap-2" }, un = /* @__PURE__ */ g({
|
|
2085
2086
|
__name: "ConfirmModal",
|
|
2086
2087
|
props: {
|
|
2087
2088
|
title: {},
|
|
@@ -2095,44 +2096,44 @@ const sn = {
|
|
|
2095
2096
|
required: { type: Boolean }
|
|
2096
2097
|
},
|
|
2097
2098
|
setup(t, { expose: s }) {
|
|
2098
|
-
const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText:
|
|
2099
|
+
const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText: o } = sn(e);
|
|
2099
2100
|
return s(), (d, v) => (u(), h(se, {
|
|
2100
|
-
title:
|
|
2101
|
-
"title-hidden":
|
|
2101
|
+
title: l(n),
|
|
2102
|
+
"title-hidden": l(a),
|
|
2102
2103
|
persistent: ""
|
|
2103
2104
|
}, {
|
|
2104
2105
|
default: f(({ close: $ }) => [
|
|
2105
|
-
p(
|
|
2106
|
-
form:
|
|
2107
|
-
onSubmit: (m) => $([!0,
|
|
2106
|
+
p($t, {
|
|
2107
|
+
form: l(r),
|
|
2108
|
+
onSubmit: (m) => $([!0, l(r).data()])
|
|
2108
2109
|
}, {
|
|
2109
2110
|
default: f(() => [
|
|
2110
2111
|
p(P, {
|
|
2111
2112
|
text: d.message,
|
|
2112
2113
|
actions: d.actions
|
|
2113
2114
|
}, null, 8, ["text", "actions"]),
|
|
2114
|
-
d.checkboxes ? (u(), b("ul",
|
|
2115
|
+
d.checkboxes ? (u(), b("ul", rn, [
|
|
2115
2116
|
(u(!0), b(D, null, F(d.checkboxes, (m, C) => (u(), b("li", { key: C }, [
|
|
2116
|
-
y("label",
|
|
2117
|
+
y("label", nn, [
|
|
2117
2118
|
Ke(y("input", {
|
|
2118
|
-
"onUpdate:modelValue": (L) =>
|
|
2119
|
+
"onUpdate:modelValue": (L) => l(r)[C] = L,
|
|
2119
2120
|
type: "checkbox",
|
|
2120
2121
|
required: m.required,
|
|
2121
2122
|
class: "border-primary-600 text-primary-600 hover:bg-primary-50 hover:checked:bg-primary-500 focus:ring-primary-600 focus-visible:ring-primary-600 rounded border-2"
|
|
2122
|
-
}, null, 8,
|
|
2123
|
-
[
|
|
2123
|
+
}, null, 8, an), [
|
|
2124
|
+
[qt, l(r)[C]]
|
|
2124
2125
|
]),
|
|
2125
|
-
y("span",
|
|
2126
|
+
y("span", ln, x(m.label), 1)
|
|
2126
2127
|
])
|
|
2127
2128
|
]))), 128))
|
|
2128
2129
|
])) : T("", !0),
|
|
2129
|
-
y("div",
|
|
2130
|
+
y("div", on, [
|
|
2130
2131
|
p(q, {
|
|
2131
2132
|
variant: d.acceptVariant,
|
|
2132
2133
|
submit: ""
|
|
2133
2134
|
}, {
|
|
2134
2135
|
default: f(() => [
|
|
2135
|
-
I(x(
|
|
2136
|
+
I(x(l(i)), 1)
|
|
2136
2137
|
]),
|
|
2137
2138
|
_: 1
|
|
2138
2139
|
}, 8, ["variant"]),
|
|
@@ -2142,7 +2143,7 @@ const sn = {
|
|
|
2142
2143
|
onClick: (m) => $(!1)
|
|
2143
2144
|
}, {
|
|
2144
2145
|
default: f(() => [
|
|
2145
|
-
I(x(o
|
|
2146
|
+
I(x(l(o)), 1)
|
|
2146
2147
|
]),
|
|
2147
2148
|
_: 2
|
|
2148
2149
|
}, 1032, ["variant", "onClick"]))
|
|
@@ -2154,85 +2155,85 @@ const sn = {
|
|
|
2154
2155
|
_: 1
|
|
2155
2156
|
}, 8, ["title", "title-hidden"]));
|
|
2156
2157
|
}
|
|
2157
|
-
}),
|
|
2158
|
+
}), cn = {
|
|
2158
2159
|
viewBox: "0 0 20 20",
|
|
2159
2160
|
width: "1.2em",
|
|
2160
2161
|
height: "1.2em"
|
|
2161
2162
|
};
|
|
2162
|
-
function
|
|
2163
|
-
return u(), b("svg",
|
|
2163
|
+
function dn(t, s) {
|
|
2164
|
+
return u(), b("svg", cn, s[0] || (s[0] = [
|
|
2164
2165
|
y("path", {
|
|
2165
2166
|
fill: "currentColor",
|
|
2166
2167
|
d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
|
|
2167
2168
|
}, null, -1)
|
|
2168
2169
|
]));
|
|
2169
2170
|
}
|
|
2170
|
-
const
|
|
2171
|
+
const pn = E({ name: "zondicons-cheveron-left", render: dn }), mn = {
|
|
2171
2172
|
viewBox: "0 0 20 20",
|
|
2172
2173
|
width: "1.2em",
|
|
2173
2174
|
height: "1.2em"
|
|
2174
2175
|
};
|
|
2175
|
-
function
|
|
2176
|
-
return u(), b("svg",
|
|
2176
|
+
function fn(t, s) {
|
|
2177
|
+
return u(), b("svg", mn, s[0] || (s[0] = [
|
|
2177
2178
|
y("path", {
|
|
2178
2179
|
fill: "currentColor",
|
|
2179
2180
|
d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
|
|
2180
2181
|
}, null, -1)
|
|
2181
2182
|
]));
|
|
2182
2183
|
}
|
|
2183
|
-
const
|
|
2184
|
+
const _t = E({ name: "zondicons-cheveron-right", render: fn }), hn = {
|
|
2184
2185
|
viewBox: "0 0 20 20",
|
|
2185
2186
|
width: "1.2em",
|
|
2186
2187
|
height: "1.2em"
|
|
2187
2188
|
};
|
|
2188
|
-
function
|
|
2189
|
-
return u(), b("svg",
|
|
2189
|
+
function gn(t, s) {
|
|
2190
|
+
return u(), b("svg", hn, s[0] || (s[0] = [
|
|
2190
2191
|
y("path", {
|
|
2191
2192
|
fill: "currentColor",
|
|
2192
2193
|
d: "M2.93 17.07A10 10 0 1 1 17.07 2.93A10 10 0 0 1 2.93 17.07M9 5v6h2V5zm0 8v2h2v-2z"
|
|
2193
2194
|
}, null, -1)
|
|
2194
2195
|
]));
|
|
2195
2196
|
}
|
|
2196
|
-
const qe = E({ name: "zondicons-exclamation-solid", render:
|
|
2197
|
+
const qe = E({ name: "zondicons-exclamation-solid", render: gn }), vn = {
|
|
2197
2198
|
viewBox: "0 0 24 24",
|
|
2198
2199
|
width: "1.2em",
|
|
2199
2200
|
height: "1.2em"
|
|
2200
2201
|
};
|
|
2201
|
-
function
|
|
2202
|
-
return u(), b("svg",
|
|
2202
|
+
function bn(t, s) {
|
|
2203
|
+
return u(), b("svg", vn, s[0] || (s[0] = [
|
|
2203
2204
|
y("path", {
|
|
2204
2205
|
fill: "currentColor",
|
|
2205
2206
|
d: "M20 19V7H4v12zm0-16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-7 14v-2h5v2zm-3.42-4L5.57 9H8.4l3.3 3.3c.39.39.39 1.03 0 1.42L8.42 17H5.59z"
|
|
2206
2207
|
}, null, -1)
|
|
2207
2208
|
]));
|
|
2208
2209
|
}
|
|
2209
|
-
const
|
|
2210
|
+
const yn = E({ name: "mdi-console", render: bn }), wn = {
|
|
2210
2211
|
viewBox: "0 0 20 20",
|
|
2211
2212
|
width: "1.2em",
|
|
2212
2213
|
height: "1.2em"
|
|
2213
2214
|
};
|
|
2214
|
-
function
|
|
2215
|
-
return u(), b("svg",
|
|
2215
|
+
function $n(t, s) {
|
|
2216
|
+
return u(), b("svg", wn, s[0] || (s[0] = [
|
|
2216
2217
|
y("path", {
|
|
2217
2218
|
fill: "currentColor",
|
|
2218
2219
|
d: "M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2zm2 0h4a2 2 0 0 1 2 2v4h4V2H8zM2 8v10h10V8z"
|
|
2219
2220
|
}, null, -1)
|
|
2220
2221
|
]));
|
|
2221
2222
|
}
|
|
2222
|
-
const
|
|
2223
|
+
const _n = E({ name: "zondicons-copy", render: $n }), xn = {
|
|
2223
2224
|
viewBox: "0 0 24 24",
|
|
2224
2225
|
width: "1.2em",
|
|
2225
2226
|
height: "1.2em"
|
|
2226
2227
|
};
|
|
2227
|
-
function
|
|
2228
|
-
return u(), b("svg",
|
|
2228
|
+
function Cn(t, s) {
|
|
2229
|
+
return u(), b("svg", xn, s[0] || (s[0] = [
|
|
2229
2230
|
y("path", {
|
|
2230
2231
|
fill: "currentColor",
|
|
2231
2232
|
d: "M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"
|
|
2232
2233
|
}, null, -1)
|
|
2233
2234
|
]));
|
|
2234
2235
|
}
|
|
2235
|
-
const
|
|
2236
|
+
const kn = E({ name: "mdi-github", render: Cn }), Sn = { class: "flex" }, Tn = { class: "sr-only" }, Mn = /* @__PURE__ */ g({
|
|
2236
2237
|
__name: "ErrorReportModalButtons",
|
|
2237
2238
|
props: {
|
|
2238
2239
|
report: {}
|
|
@@ -2247,7 +2248,7 @@ const Cn = E({ name: "mdi-github", render: xn }), kn = { class: "flex" }, Sn = {
|
|
|
2247
2248
|
"",
|
|
2248
2249
|
"Error details:",
|
|
2249
2250
|
"```",
|
|
2250
|
-
|
|
2251
|
+
Jt(
|
|
2251
2252
|
s.report.details ?? "Details missing from report",
|
|
2252
2253
|
1800 - a.length - A.sourceUrl.length
|
|
2253
2254
|
).trim(),
|
|
@@ -2261,7 +2262,7 @@ const Cn = E({ name: "mdi-github", render: xn }), kn = { class: "flex" }, Sn = {
|
|
|
2261
2262
|
{
|
|
2262
2263
|
id: "clipboard",
|
|
2263
2264
|
description: "Copy to clipboard",
|
|
2264
|
-
iconComponent:
|
|
2265
|
+
iconComponent: _n,
|
|
2265
2266
|
async click() {
|
|
2266
2267
|
await navigator.clipboard.writeText(`${e.value}
|
|
2267
2268
|
|
|
@@ -2271,7 +2272,7 @@ ${s.report.details}`), z.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2271
2272
|
{
|
|
2272
2273
|
id: "console",
|
|
2273
2274
|
description: "Log to console",
|
|
2274
|
-
iconComponent:
|
|
2275
|
+
iconComponent: yn,
|
|
2275
2276
|
click() {
|
|
2276
2277
|
const a = s.report.error ?? s.report;
|
|
2277
2278
|
window.error = a, console.error(a), z.toast(
|
|
@@ -2287,24 +2288,24 @@ ${s.report.details}`), z.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2287
2288
|
r.value && a.push({
|
|
2288
2289
|
id: "github",
|
|
2289
2290
|
description: "Report in GitHub",
|
|
2290
|
-
iconComponent:
|
|
2291
|
+
iconComponent: kn,
|
|
2291
2292
|
url: r.value
|
|
2292
2293
|
});
|
|
2293
2294
|
}
|
|
2294
2295
|
));
|
|
2295
|
-
return (a, i) => (u(), b("div",
|
|
2296
|
-
(u(!0), b(D, null, F(n.value, (
|
|
2296
|
+
return (a, i) => (u(), b("div", Sn, [
|
|
2297
|
+
(u(!0), b(D, null, F(n.value, (o) => w(a.$slots, "default", H({ ref_for: !0 }, o), () => [
|
|
2297
2298
|
p(q, {
|
|
2298
2299
|
size: "icon",
|
|
2299
2300
|
variant: "ghost",
|
|
2300
2301
|
class: "group whitespace-nowrap",
|
|
2301
|
-
href:
|
|
2302
|
-
title: a.$td(`errors.report_${
|
|
2303
|
-
onClick:
|
|
2302
|
+
href: o.url,
|
|
2303
|
+
title: a.$td(`errors.report_${o.id}`, o.description),
|
|
2304
|
+
onClick: o.click
|
|
2304
2305
|
}, {
|
|
2305
2306
|
default: f(() => [
|
|
2306
|
-
y("span",
|
|
2307
|
-
(u(), h(W(
|
|
2307
|
+
y("span", Tn, x(a.$td(`errors.report_${o.id}`, o.description)), 1),
|
|
2308
|
+
(u(), h(W(o.iconComponent), {
|
|
2308
2309
|
class: "size-4",
|
|
2309
2310
|
"aria-hidden": "true"
|
|
2310
2311
|
}))
|
|
@@ -2314,7 +2315,7 @@ ${s.report.details}`), z.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2314
2315
|
])), 256))
|
|
2315
2316
|
]));
|
|
2316
2317
|
}
|
|
2317
|
-
}),
|
|
2318
|
+
}), Hn = /* @__PURE__ */ g({
|
|
2318
2319
|
__name: "ErrorReportModalTitle",
|
|
2319
2320
|
props: {
|
|
2320
2321
|
report: {},
|
|
@@ -2329,7 +2330,7 @@ ${s.report.details}`), z.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2329
2330
|
}, null, 8, ["text"]));
|
|
2330
2331
|
}
|
|
2331
2332
|
});
|
|
2332
|
-
function
|
|
2333
|
+
function En(t) {
|
|
2333
2334
|
const s = U(t.reports.includes(t.report) ? t.reports.indexOf(t.report) : 0), e = c(() => t.reports[s.value]), r = c(
|
|
2334
2335
|
() => {
|
|
2335
2336
|
var i;
|
|
@@ -2344,17 +2345,17 @@ function Hn(t) {
|
|
|
2344
2345
|
activeReport: e
|
|
2345
2346
|
};
|
|
2346
2347
|
}
|
|
2347
|
-
const
|
|
2348
|
+
const Vn = { class: "px-4 pt-5 pb-4" }, Ln = { class: "flex justify-between gap-4" }, In = { class: "flex items-center gap-2" }, qn = {
|
|
2348
2349
|
key: 0,
|
|
2349
2350
|
class: "flex gap-0.5"
|
|
2350
|
-
},
|
|
2351
|
+
}, zn = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, Rn = ["textContent"], Pn = /* @__PURE__ */ g({
|
|
2351
2352
|
__name: "ErrorReportModal",
|
|
2352
2353
|
props: {
|
|
2353
2354
|
report: {},
|
|
2354
2355
|
reports: {}
|
|
2355
2356
|
},
|
|
2356
2357
|
setup(t, { expose: s }) {
|
|
2357
|
-
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport:
|
|
2358
|
+
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport: o } = En(e);
|
|
2358
2359
|
return s(), (d, v) => (u(), h(se, {
|
|
2359
2360
|
title: d.$td("errors.report", "Error report"),
|
|
2360
2361
|
"title-hidden": "",
|
|
@@ -2363,73 +2364,73 @@ const En = { class: "px-4 pt-5 pb-4" }, Vn = { class: "flex justify-between gap-
|
|
|
2363
2364
|
"wrapper-class": "sm:w-auto sm:min-w-lg sm:max-w-[80vw]"
|
|
2364
2365
|
}, {
|
|
2365
2366
|
default: f(() => [
|
|
2366
|
-
y("div",
|
|
2367
|
-
y("h2",
|
|
2368
|
-
y("div",
|
|
2369
|
-
p(
|
|
2370
|
-
p(
|
|
2367
|
+
y("div", Vn, [
|
|
2368
|
+
y("h2", Ln, [
|
|
2369
|
+
y("div", In, [
|
|
2370
|
+
p(l(qe), { class: "size-5 text-red-600" }),
|
|
2371
|
+
p(Hn, {
|
|
2371
2372
|
class: "text-lg leading-6 font-semibold text-gray-900",
|
|
2372
|
-
report: o
|
|
2373
|
-
"current-report":
|
|
2373
|
+
report: l(o),
|
|
2374
|
+
"current-report": l(r) + 1,
|
|
2374
2375
|
"total-reports": d.reports.length
|
|
2375
2376
|
}, null, 8, ["report", "current-report", "total-reports"]),
|
|
2376
|
-
d.reports.length > 1 ? (u(), b("span",
|
|
2377
|
+
d.reports.length > 1 ? (u(), b("span", qn, [
|
|
2377
2378
|
p(q, {
|
|
2378
2379
|
size: "icon",
|
|
2379
2380
|
variant: "ghost",
|
|
2380
|
-
disabled:
|
|
2381
|
-
"aria-label":
|
|
2382
|
-
title:
|
|
2381
|
+
disabled: l(r) === 0,
|
|
2382
|
+
"aria-label": l(i),
|
|
2383
|
+
title: l(i),
|
|
2383
2384
|
onClick: v[0] || (v[0] = ($) => r.value--)
|
|
2384
2385
|
}, {
|
|
2385
2386
|
default: f(() => [
|
|
2386
|
-
p(
|
|
2387
|
+
p(l(pn), { class: "size-4" })
|
|
2387
2388
|
]),
|
|
2388
2389
|
_: 1
|
|
2389
2390
|
}, 8, ["disabled", "aria-label", "title"]),
|
|
2390
2391
|
p(q, {
|
|
2391
2392
|
size: "icon",
|
|
2392
2393
|
variant: "ghost",
|
|
2393
|
-
disabled:
|
|
2394
|
-
"aria-label":
|
|
2395
|
-
title:
|
|
2394
|
+
disabled: l(r) === d.reports.length - 1,
|
|
2395
|
+
"aria-label": l(a),
|
|
2396
|
+
title: l(a),
|
|
2396
2397
|
onClick: v[1] || (v[1] = ($) => r.value++)
|
|
2397
2398
|
}, {
|
|
2398
2399
|
default: f(() => [
|
|
2399
|
-
p(
|
|
2400
|
+
p(l(_t), { class: "size-4" })
|
|
2400
2401
|
]),
|
|
2401
2402
|
_: 1
|
|
2402
2403
|
}, 8, ["disabled", "aria-label", "title"])
|
|
2403
2404
|
])) : T("", !0)
|
|
2404
2405
|
]),
|
|
2405
|
-
p(
|
|
2406
|
-
report: o
|
|
2406
|
+
p(Mn, {
|
|
2407
|
+
report: l(o),
|
|
2407
2408
|
class: "gap-0.5"
|
|
2408
2409
|
}, null, 8, ["report"])
|
|
2409
2410
|
]),
|
|
2410
|
-
o
|
|
2411
|
+
l(o).description ? (u(), h(P, {
|
|
2411
2412
|
key: 0,
|
|
2412
|
-
text: o
|
|
2413
|
+
text: l(o).description,
|
|
2413
2414
|
class: "text-gray-600"
|
|
2414
2415
|
}, null, 8, ["text"])) : T("", !0)
|
|
2415
2416
|
]),
|
|
2416
|
-
y("div",
|
|
2417
|
+
y("div", zn, [
|
|
2417
2418
|
y("pre", {
|
|
2418
2419
|
class: "p-4 text-xs text-red-800",
|
|
2419
|
-
textContent: x(
|
|
2420
|
-
}, null, 8,
|
|
2420
|
+
textContent: x(l(n))
|
|
2421
|
+
}, null, 8, Rn)
|
|
2421
2422
|
])
|
|
2422
2423
|
]),
|
|
2423
2424
|
_: 1
|
|
2424
2425
|
}, 8, ["title"]));
|
|
2425
2426
|
}
|
|
2426
|
-
}),
|
|
2427
|
+
}), An = {
|
|
2427
2428
|
viewBox: "0 0 24 24",
|
|
2428
2429
|
width: "1.2em",
|
|
2429
2430
|
height: "1.2em"
|
|
2430
2431
|
};
|
|
2431
|
-
function
|
|
2432
|
-
return u(), b("svg",
|
|
2432
|
+
function Dn(t, s) {
|
|
2433
|
+
return u(), b("svg", An, s[0] || (s[0] = [
|
|
2433
2434
|
y("path", {
|
|
2434
2435
|
fill: "currentColor",
|
|
2435
2436
|
d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",
|
|
@@ -2449,7 +2450,7 @@ function An(t, s) {
|
|
|
2449
2450
|
], -1)
|
|
2450
2451
|
]));
|
|
2451
2452
|
}
|
|
2452
|
-
const
|
|
2453
|
+
const jn = E({ name: "svg-spinners-90-ring-with-bg", render: Dn }), Bn = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, Fn = { class: "sr-only" }, Un = /* @__PURE__ */ g({
|
|
2453
2454
|
__name: "ProgressBar",
|
|
2454
2455
|
props: {
|
|
2455
2456
|
filledClass: {},
|
|
@@ -2465,24 +2466,24 @@ const Dn = E({ name: "svg-spinners-90-ring-with-bg", render: An }), jn = { class
|
|
|
2465
2466
|
s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (a) => e.value = a });
|
|
2466
2467
|
},
|
|
2467
2468
|
{ immediate: !0 }
|
|
2468
|
-
), ge(() => s && s()), (a, i) => (u(), b("div",
|
|
2469
|
+
), ge(() => s && s()), (a, i) => (u(), b("div", Bn, [
|
|
2469
2470
|
y("div", {
|
|
2470
2471
|
class: k(r.value),
|
|
2471
|
-
style:
|
|
2472
|
+
style: zt(`transform:translateX(-${(1 - n.value) * 100}%)`)
|
|
2472
2473
|
}, null, 6),
|
|
2473
|
-
y("span",
|
|
2474
|
+
y("span", Fn, x(a.$td("ui.progress", "{progress}% complete", {
|
|
2474
2475
|
progress: n.value * 100
|
|
2475
2476
|
})), 1)
|
|
2476
2477
|
]));
|
|
2477
2478
|
}
|
|
2478
2479
|
});
|
|
2479
|
-
function
|
|
2480
|
+
function On(t) {
|
|
2480
2481
|
const s = c(() => t.title ?? S("ui.loading", "Loading")), e = c(
|
|
2481
2482
|
() => t.message ?? S("ui.loadingInProgress", "Loading in progress...")
|
|
2482
2483
|
), r = c(() => typeof t.progress == "number" || !!t.job), n = c(() => !t.title);
|
|
2483
2484
|
return { renderedTitle: s, renderedMessage: e, titleHidden: n, showProgress: r };
|
|
2484
2485
|
}
|
|
2485
|
-
const
|
|
2486
|
+
const Nn = /* @__PURE__ */ g({
|
|
2486
2487
|
__name: "LoadingModal",
|
|
2487
2488
|
props: {
|
|
2488
2489
|
title: {},
|
|
@@ -2491,25 +2492,25 @@ const On = /* @__PURE__ */ g({
|
|
|
2491
2492
|
job: {}
|
|
2492
2493
|
},
|
|
2493
2494
|
setup(t, { expose: s }) {
|
|
2494
|
-
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: i } =
|
|
2495
|
-
return s(), (
|
|
2495
|
+
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: i } = On(e);
|
|
2496
|
+
return s(), (o, d) => (u(), h(se, {
|
|
2496
2497
|
persistent: "",
|
|
2497
|
-
class: k(["flex", { "flex-col-reverse":
|
|
2498
|
+
class: k(["flex", { "flex-col-reverse": l(i), "items-center justify-center gap-2": !l(i) }]),
|
|
2498
2499
|
"wrapper-class": "w-auto",
|
|
2499
|
-
title:
|
|
2500
|
-
"title-hidden":
|
|
2500
|
+
title: l(r),
|
|
2501
|
+
"title-hidden": l(a)
|
|
2501
2502
|
}, {
|
|
2502
2503
|
default: f(() => [
|
|
2503
|
-
|
|
2504
|
+
l(i) ? (u(), h(Un, {
|
|
2504
2505
|
key: 0,
|
|
2505
|
-
progress:
|
|
2506
|
-
job:
|
|
2506
|
+
progress: o.progress,
|
|
2507
|
+
job: o.job,
|
|
2507
2508
|
class: "min-w-[min(400px,80vw)]"
|
|
2508
|
-
}, null, 8, ["progress", "job"])) : (u(), h(
|
|
2509
|
+
}, null, 8, ["progress", "job"])) : (u(), h(l(jn), {
|
|
2509
2510
|
key: 1,
|
|
2510
2511
|
class: "text-primary-600 mr-1 size-6"
|
|
2511
2512
|
})),
|
|
2512
|
-
p(P, { text:
|
|
2513
|
+
p(P, { text: l(n) }, null, 8, ["text"])
|
|
2513
2514
|
]),
|
|
2514
2515
|
_: 1
|
|
2515
2516
|
}, 8, ["title", "title-hidden", "class"]));
|
|
@@ -2536,35 +2537,35 @@ const On = /* @__PURE__ */ g({
|
|
|
2536
2537
|
if (!(!t.name || !n))
|
|
2537
2538
|
return n.getFieldRules(t.name).includes("required");
|
|
2538
2539
|
}),
|
|
2539
|
-
update(
|
|
2540
|
+
update(o) {
|
|
2540
2541
|
if (n && t.name) {
|
|
2541
|
-
n.setFieldValue(t.name,
|
|
2542
|
+
n.setFieldValue(t.name, o);
|
|
2542
2543
|
return;
|
|
2543
2544
|
}
|
|
2544
|
-
r("update:modelValue",
|
|
2545
|
+
r("update:modelValue", o);
|
|
2545
2546
|
}
|
|
2546
2547
|
};
|
|
2547
|
-
return le("input", i), s(i), (
|
|
2548
|
+
return le("input", i), s(i), (o, d) => (u(), h(W(o.as), null, {
|
|
2548
2549
|
default: f(() => [
|
|
2549
|
-
w(
|
|
2550
|
+
w(o.$slots, "default")
|
|
2550
2551
|
]),
|
|
2551
2552
|
_: 3
|
|
2552
2553
|
}));
|
|
2553
2554
|
}
|
|
2554
|
-
}),
|
|
2555
|
+
}), Wn = ["for"], fe = /* @__PURE__ */ g({
|
|
2555
2556
|
__name: "HeadlessInputLabel",
|
|
2556
2557
|
setup(t) {
|
|
2557
2558
|
const s = V("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = He(), r = c(() => !!(s.label || e.default));
|
|
2558
2559
|
return (n, a) => r.value ? (u(), b("label", {
|
|
2559
2560
|
key: 0,
|
|
2560
|
-
for:
|
|
2561
|
+
for: l(s).id
|
|
2561
2562
|
}, [
|
|
2562
2563
|
w(n.$slots, "default", {}, () => [
|
|
2563
|
-
I(x(
|
|
2564
|
+
I(x(l(s).label), 1)
|
|
2564
2565
|
])
|
|
2565
|
-
], 8,
|
|
2566
|
+
], 8, Wn)) : T("", !0);
|
|
2566
2567
|
}
|
|
2567
|
-
}),
|
|
2568
|
+
}), Kn = ["id", "name", "checked", "type", "required", "aria-invalid", "aria-describedby"], xt = /* @__PURE__ */ g({
|
|
2568
2569
|
__name: "HeadlessInputInput",
|
|
2569
2570
|
props: {
|
|
2570
2571
|
type: {}
|
|
@@ -2575,7 +2576,7 @@ const On = /* @__PURE__ */ g({
|
|
|
2575
2576
|
return t.type;
|
|
2576
2577
|
const $ = (n.value && (r == null ? void 0 : r.getFieldType(n.value))) ?? "";
|
|
2577
2578
|
return ["text", "email", "number", "tel", "url"].includes($) ? $ : "text";
|
|
2578
|
-
}),
|
|
2579
|
+
}), o = c(() => {
|
|
2579
2580
|
if (t.type === "checkbox")
|
|
2580
2581
|
return !!a.value;
|
|
2581
2582
|
});
|
|
@@ -2594,7 +2595,7 @@ const On = /* @__PURE__ */ g({
|
|
|
2594
2595
|
return s.value.value;
|
|
2595
2596
|
}
|
|
2596
2597
|
}
|
|
2597
|
-
return
|
|
2598
|
+
return st(e, () => {
|
|
2598
2599
|
var $;
|
|
2599
2600
|
return ($ = s.value) == null ? void 0 : $.focus();
|
|
2600
2601
|
}), Y(() => {
|
|
@@ -2606,18 +2607,18 @@ const On = /* @__PURE__ */ g({
|
|
|
2606
2607
|
s.value.value = a.value ?? null;
|
|
2607
2608
|
}
|
|
2608
2609
|
}), ($, m) => (u(), b("input", {
|
|
2609
|
-
id:
|
|
2610
|
+
id: l(e).id,
|
|
2610
2611
|
ref: "$inputRef",
|
|
2611
2612
|
name: n.value,
|
|
2612
|
-
checked:
|
|
2613
|
+
checked: o.value,
|
|
2613
2614
|
type: i.value,
|
|
2614
|
-
required:
|
|
2615
|
-
"aria-invalid":
|
|
2616
|
-
"aria-describedby":
|
|
2615
|
+
required: l(e).required ?? void 0,
|
|
2616
|
+
"aria-invalid": l(e).errors ? "true" : "false",
|
|
2617
|
+
"aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
|
|
2617
2618
|
onInput: d
|
|
2618
|
-
}, null, 40,
|
|
2619
|
+
}, null, 40, Kn));
|
|
2619
2620
|
}
|
|
2620
|
-
}),
|
|
2621
|
+
}), Ct = /* @__PURE__ */ g({
|
|
2621
2622
|
inheritAttrs: !1,
|
|
2622
2623
|
__name: "HeadlessInputDescription",
|
|
2623
2624
|
setup(t) {
|
|
@@ -2626,27 +2627,27 @@ const On = /* @__PURE__ */ g({
|
|
|
2626
2627
|
"<HeadlessInputDescription> must be a child of a <HeadlessInput>"
|
|
2627
2628
|
), e = c(() => typeof s.description == "string" ? s.description : ""), r = c(() => !!s.description);
|
|
2628
2629
|
return (n, a) => w(n.$slots, "default", {
|
|
2629
|
-
id: `${
|
|
2630
|
+
id: `${l(s).id}-description`
|
|
2630
2631
|
}, () => [
|
|
2631
2632
|
r.value ? (u(), h(P, H({ key: 0 }, n.$attrs, {
|
|
2632
|
-
id: `${
|
|
2633
|
+
id: `${l(s).id}-description`,
|
|
2633
2634
|
text: e.value
|
|
2634
2635
|
}), null, 16, ["id", "text"])) : T("", !0)
|
|
2635
2636
|
]);
|
|
2636
2637
|
}
|
|
2637
|
-
}),
|
|
2638
|
+
}), Qn = ["id"], he = /* @__PURE__ */ g({
|
|
2638
2639
|
__name: "HeadlessInputError",
|
|
2639
2640
|
setup(t) {
|
|
2640
2641
|
const s = V("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = c(() => s.errors ? S(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
|
|
2641
2642
|
return (r, n) => e.value ? (u(), b("p", {
|
|
2642
2643
|
key: 0,
|
|
2643
|
-
id: `${
|
|
2644
|
-
}, x(e.value), 9,
|
|
2644
|
+
id: `${l(s).id}-error`
|
|
2645
|
+
}, x(e.value), 9, Qn)) : T("", !0);
|
|
2645
2646
|
}
|
|
2646
|
-
}),
|
|
2647
|
+
}), Jn = {
|
|
2647
2648
|
key: 0,
|
|
2648
2649
|
class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
|
|
2649
|
-
},
|
|
2650
|
+
}, Zn = /* @__PURE__ */ g({
|
|
2650
2651
|
inheritAttrs: !1,
|
|
2651
2652
|
__name: "Input",
|
|
2652
2653
|
props: {
|
|
@@ -2660,24 +2661,24 @@ const On = /* @__PURE__ */ g({
|
|
|
2660
2661
|
emits: ["update:modelValue"],
|
|
2661
2662
|
setup(t) {
|
|
2662
2663
|
const s = N(t, ["label", "inputClass", "wrapperClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = c(() => {
|
|
2663
|
-
var
|
|
2664
|
+
var o, d, v;
|
|
2664
2665
|
return M(
|
|
2665
2666
|
// eslint-disable-next-line vue/max-len
|
|
2666
2667
|
"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",
|
|
2667
2668
|
{
|
|
2668
|
-
"focus:ring-primary-600": !((
|
|
2669
|
+
"focus:ring-primary-600": !((o = e.value) != null && o.errors),
|
|
2669
2670
|
"text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
|
|
2670
2671
|
"pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
|
|
2671
2672
|
},
|
|
2672
2673
|
t.inputClass
|
|
2673
2674
|
);
|
|
2674
2675
|
});
|
|
2675
|
-
return (
|
|
2676
|
+
return (o, d) => (u(), h(ze, H({
|
|
2676
2677
|
ref: "$inputRef",
|
|
2677
|
-
label:
|
|
2678
|
-
class:
|
|
2678
|
+
label: o.label,
|
|
2679
|
+
class: l(n)
|
|
2679
2680
|
}, s, {
|
|
2680
|
-
"onUpdate:modelValue": d[0] || (d[0] = (v) =>
|
|
2681
|
+
"onUpdate:modelValue": d[0] || (d[0] = (v) => o.$emit("update:modelValue", v))
|
|
2681
2682
|
}), {
|
|
2682
2683
|
default: f(() => {
|
|
2683
2684
|
var v;
|
|
@@ -2686,12 +2687,12 @@ const On = /* @__PURE__ */ g({
|
|
|
2686
2687
|
y("div", {
|
|
2687
2688
|
class: k(a.value)
|
|
2688
2689
|
}, [
|
|
2689
|
-
p(
|
|
2690
|
-
(v = e.value) != null && v.errors ? (u(), b("div",
|
|
2691
|
-
p(
|
|
2690
|
+
p(xt, H(l(r), { class: i.value }), null, 16, ["class"]),
|
|
2691
|
+
(v = e.value) != null && v.errors ? (u(), b("div", Jn, [
|
|
2692
|
+
p(l(qe), { class: "size-5 text-red-500" })
|
|
2692
2693
|
])) : T("", !0)
|
|
2693
2694
|
], 2),
|
|
2694
|
-
p(
|
|
2695
|
+
p(Ct, { class: "mt-2 text-sm text-gray-600" }),
|
|
2695
2696
|
p(he, { class: "mt-2 text-sm text-red-600" })
|
|
2696
2697
|
];
|
|
2697
2698
|
}),
|
|
@@ -2699,21 +2700,21 @@ const On = /* @__PURE__ */ g({
|
|
|
2699
2700
|
}, 16, ["label", "class"]));
|
|
2700
2701
|
}
|
|
2701
2702
|
});
|
|
2702
|
-
function
|
|
2703
|
+
function $l(t, s = {}) {
|
|
2703
2704
|
return {
|
|
2704
2705
|
default: t,
|
|
2705
2706
|
type: "boolean",
|
|
2706
2707
|
rules: s.rules
|
|
2707
2708
|
};
|
|
2708
2709
|
}
|
|
2709
|
-
function
|
|
2710
|
+
function _l(t, s = {}) {
|
|
2710
2711
|
return {
|
|
2711
2712
|
default: t,
|
|
2712
2713
|
type: "date",
|
|
2713
2714
|
rules: s.rules
|
|
2714
2715
|
};
|
|
2715
2716
|
}
|
|
2716
|
-
function
|
|
2717
|
+
function xl(t, s, e = {}) {
|
|
2717
2718
|
return {
|
|
2718
2719
|
default: s,
|
|
2719
2720
|
type: "enum",
|
|
@@ -2721,21 +2722,21 @@ function _l(t, s, e = {}) {
|
|
|
2721
2722
|
values: t
|
|
2722
2723
|
};
|
|
2723
2724
|
}
|
|
2724
|
-
function
|
|
2725
|
+
function Cl(t) {
|
|
2725
2726
|
return {
|
|
2726
2727
|
default: t,
|
|
2727
2728
|
type: "boolean",
|
|
2728
2729
|
rules: "required"
|
|
2729
2730
|
};
|
|
2730
2731
|
}
|
|
2731
|
-
function
|
|
2732
|
+
function kl(t) {
|
|
2732
2733
|
return {
|
|
2733
2734
|
default: t,
|
|
2734
2735
|
type: "date",
|
|
2735
2736
|
rules: "required"
|
|
2736
2737
|
};
|
|
2737
2738
|
}
|
|
2738
|
-
function
|
|
2739
|
+
function Sl(t, s) {
|
|
2739
2740
|
return {
|
|
2740
2741
|
default: s,
|
|
2741
2742
|
type: "enum",
|
|
@@ -2743,55 +2744,55 @@ function kl(t, s) {
|
|
|
2743
2744
|
values: t
|
|
2744
2745
|
};
|
|
2745
2746
|
}
|
|
2746
|
-
function
|
|
2747
|
+
function Tl(t) {
|
|
2747
2748
|
return {
|
|
2748
2749
|
default: t,
|
|
2749
2750
|
type: "number",
|
|
2750
2751
|
rules: "required"
|
|
2751
2752
|
};
|
|
2752
2753
|
}
|
|
2753
|
-
function
|
|
2754
|
+
function Ml(t) {
|
|
2754
2755
|
return {
|
|
2755
2756
|
default: t,
|
|
2756
2757
|
type: "object",
|
|
2757
2758
|
rules: "required"
|
|
2758
2759
|
};
|
|
2759
2760
|
}
|
|
2760
|
-
function
|
|
2761
|
+
function Xn(t) {
|
|
2761
2762
|
return {
|
|
2762
2763
|
default: t,
|
|
2763
2764
|
type: "string",
|
|
2764
2765
|
rules: "required"
|
|
2765
2766
|
};
|
|
2766
2767
|
}
|
|
2767
|
-
function
|
|
2768
|
+
function Hl(t, s = {}) {
|
|
2768
2769
|
return {
|
|
2769
2770
|
default: t,
|
|
2770
2771
|
type: "number",
|
|
2771
2772
|
rules: s.rules
|
|
2772
2773
|
};
|
|
2773
2774
|
}
|
|
2774
|
-
function
|
|
2775
|
+
function El(t, s = {}) {
|
|
2775
2776
|
return {
|
|
2776
2777
|
default: t,
|
|
2777
2778
|
type: "object",
|
|
2778
2779
|
rules: s.rules
|
|
2779
2780
|
};
|
|
2780
2781
|
}
|
|
2781
|
-
function
|
|
2782
|
+
function Vl(t, s = {}) {
|
|
2782
2783
|
return {
|
|
2783
2784
|
default: t,
|
|
2784
2785
|
type: "string",
|
|
2785
2786
|
rules: s.rules
|
|
2786
2787
|
};
|
|
2787
2788
|
}
|
|
2788
|
-
function
|
|
2789
|
-
const s =
|
|
2790
|
-
draft:
|
|
2789
|
+
function Yn(t) {
|
|
2790
|
+
const s = rt({
|
|
2791
|
+
draft: Xn(t.defaultValue ?? "")
|
|
2791
2792
|
}), e = c(() => t.title ?? t.message), r = c(() => t.title ? t.message : null), n = c(() => t.acceptText ?? S("ui.accept", "Ok")), a = c(() => t.cancelText ?? S("ui.cancel", "Cancel"));
|
|
2792
2793
|
return { form: s, renderedTitle: e, renderedMessage: r, renderedAcceptText: n, renderedCancelText: a };
|
|
2793
2794
|
}
|
|
2794
|
-
const
|
|
2795
|
+
const Gn = { class: "mt-4 flex flex-row-reverse gap-2" }, ea = /* @__PURE__ */ g({
|
|
2795
2796
|
__name: "PromptModal",
|
|
2796
2797
|
props: {
|
|
2797
2798
|
title: {},
|
|
@@ -2805,34 +2806,34 @@ const Yn = { class: "mt-4 flex flex-row-reverse gap-2" }, Gn = /* @__PURE__ */ g
|
|
|
2805
2806
|
cancelVariant: { default: "secondary" }
|
|
2806
2807
|
},
|
|
2807
2808
|
setup(t, { expose: s }) {
|
|
2808
|
-
const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText:
|
|
2809
|
+
const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText: o } = Yn(e);
|
|
2809
2810
|
return s(), (d, v) => (u(), h(se, {
|
|
2810
|
-
title:
|
|
2811
|
+
title: l(n),
|
|
2811
2812
|
persistent: ""
|
|
2812
2813
|
}, {
|
|
2813
2814
|
default: f(({ close: $ }) => [
|
|
2814
|
-
p(
|
|
2815
|
-
form:
|
|
2816
|
-
onSubmit: (m) => $(
|
|
2815
|
+
p($t, {
|
|
2816
|
+
form: l(r),
|
|
2817
|
+
onSubmit: (m) => $(l(r).draft)
|
|
2817
2818
|
}, {
|
|
2818
2819
|
default: f(() => [
|
|
2819
|
-
|
|
2820
|
+
l(a) ? (u(), h(P, {
|
|
2820
2821
|
key: 0,
|
|
2821
|
-
text:
|
|
2822
|
+
text: l(a)
|
|
2822
2823
|
}, null, 8, ["text"])) : T("", !0),
|
|
2823
|
-
p(
|
|
2824
|
+
p(Zn, {
|
|
2824
2825
|
name: "draft",
|
|
2825
2826
|
class: "mt-2",
|
|
2826
2827
|
placeholder: d.placeholder,
|
|
2827
2828
|
label: d.label
|
|
2828
2829
|
}, null, 8, ["placeholder", "label"]),
|
|
2829
|
-
y("div",
|
|
2830
|
+
y("div", Gn, [
|
|
2830
2831
|
p(q, {
|
|
2831
2832
|
variant: d.acceptVariant,
|
|
2832
2833
|
submit: ""
|
|
2833
2834
|
}, {
|
|
2834
2835
|
default: f(() => [
|
|
2835
|
-
I(x(
|
|
2836
|
+
I(x(l(i)), 1)
|
|
2836
2837
|
]),
|
|
2837
2838
|
_: 1
|
|
2838
2839
|
}, 8, ["variant"]),
|
|
@@ -2841,7 +2842,7 @@ const Yn = { class: "mt-4 flex flex-row-reverse gap-2" }, Gn = /* @__PURE__ */ g
|
|
|
2841
2842
|
onClick: (m) => $()
|
|
2842
2843
|
}, {
|
|
2843
2844
|
default: f(() => [
|
|
2844
|
-
I(x(o
|
|
2845
|
+
I(x(l(o)), 1)
|
|
2845
2846
|
]),
|
|
2846
2847
|
_: 2
|
|
2847
2848
|
}, 1032, ["variant", "onClick"])
|
|
@@ -2853,59 +2854,59 @@ const Yn = { class: "mt-4 flex flex-row-reverse gap-2" }, Gn = /* @__PURE__ */ g
|
|
|
2853
2854
|
_: 1
|
|
2854
2855
|
}, 8, ["title"]));
|
|
2855
2856
|
}
|
|
2856
|
-
}),
|
|
2857
|
+
}), ta = {
|
|
2857
2858
|
viewBox: "0 0 24 24",
|
|
2858
2859
|
width: "1.2em",
|
|
2859
2860
|
height: "1.2em"
|
|
2860
2861
|
};
|
|
2861
|
-
function
|
|
2862
|
-
return u(), b("svg",
|
|
2862
|
+
function sa(t, s) {
|
|
2863
|
+
return u(), b("svg", ta, s[0] || (s[0] = [
|
|
2863
2864
|
y("path", {
|
|
2864
2865
|
fill: "currentColor",
|
|
2865
2866
|
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"
|
|
2866
2867
|
}, null, -1)
|
|
2867
2868
|
]));
|
|
2868
2869
|
}
|
|
2869
|
-
const
|
|
2870
|
+
const ra = E({ name: "material-symbols-bug-report", render: sa }), na = {
|
|
2870
2871
|
viewBox: "0 0 24 24",
|
|
2871
2872
|
width: "1.2em",
|
|
2872
2873
|
height: "1.2em"
|
|
2873
2874
|
};
|
|
2874
|
-
function
|
|
2875
|
-
return u(), b("svg",
|
|
2875
|
+
function aa(t, s) {
|
|
2876
|
+
return u(), b("svg", na, s[0] || (s[0] = [
|
|
2876
2877
|
y("path", {
|
|
2877
2878
|
fill: "currentColor",
|
|
2878
2879
|
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"
|
|
2879
2880
|
}, null, -1)
|
|
2880
2881
|
]));
|
|
2881
2882
|
}
|
|
2882
|
-
const
|
|
2883
|
+
const la = E({ name: "material-symbols-delete-forever-rounded", render: aa }), oa = {
|
|
2883
2884
|
viewBox: "0 0 24 24",
|
|
2884
2885
|
width: "1.2em",
|
|
2885
2886
|
height: "1.2em"
|
|
2886
2887
|
};
|
|
2887
|
-
function
|
|
2888
|
-
return u(), b("svg",
|
|
2888
|
+
function ia(t, s) {
|
|
2889
|
+
return u(), b("svg", oa, s[0] || (s[0] = [
|
|
2889
2890
|
y("path", {
|
|
2890
2891
|
fill: "currentColor",
|
|
2891
2892
|
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"
|
|
2892
2893
|
}, null, -1)
|
|
2893
2894
|
]));
|
|
2894
2895
|
}
|
|
2895
|
-
const
|
|
2896
|
+
const ua = E({ name: "material-symbols-frame-inspect", render: ia }), ca = {
|
|
2896
2897
|
viewBox: "0 0 24 24",
|
|
2897
2898
|
width: "1.2em",
|
|
2898
2899
|
height: "1.2em"
|
|
2899
2900
|
};
|
|
2900
|
-
function
|
|
2901
|
-
return u(), b("svg",
|
|
2901
|
+
function da(t, s) {
|
|
2902
|
+
return u(), b("svg", ca, s[0] || (s[0] = [
|
|
2902
2903
|
y("path", {
|
|
2903
2904
|
fill: "currentColor",
|
|
2904
2905
|
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"
|
|
2905
2906
|
}, null, -1)
|
|
2906
2907
|
]));
|
|
2907
2908
|
}
|
|
2908
|
-
const
|
|
2909
|
+
const pa = E({ name: "material-symbols-refresh-rounded", render: da }), ma = { class: "grid grow place-items-center" }, fa = { class: "flex flex-col items-center p-8" }, ha = { class: "mt-0 mb-0 text-center text-4xl font-medium text-red-600" }, ga = { class: "mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2 [&_button]:justify-start sm:[&_button]:size-32 sm:[&_button]:flex-col sm:[&_button]:justify-center [&_svg]:size-6 sm:[&_svg]:size-8" }, va = /* @__PURE__ */ g({
|
|
2909
2910
|
__name: "StartupCrash",
|
|
2910
2911
|
setup(t) {
|
|
2911
2912
|
async function s() {
|
|
@@ -2921,14 +2922,14 @@ Do you still want to proceed?`
|
|
|
2921
2922
|
acceptVariant: "danger",
|
|
2922
2923
|
acceptText: S("startupCrash.purgeConfirmAccept", "Purge device")
|
|
2923
2924
|
}
|
|
2924
|
-
) && (await
|
|
2925
|
+
) && (await at.purge(), await A.reload());
|
|
2925
2926
|
}
|
|
2926
2927
|
return (e, r) => {
|
|
2927
|
-
const n =
|
|
2928
|
-
return u(), b("div",
|
|
2929
|
-
y("div",
|
|
2928
|
+
const n = Rt("i-majesticons-exclamation");
|
|
2929
|
+
return u(), b("div", ma, [
|
|
2930
|
+
y("div", fa, [
|
|
2930
2931
|
p(n, { class: "size-20 text-red-600" }),
|
|
2931
|
-
y("h1",
|
|
2932
|
+
y("h1", ha, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
|
|
2932
2933
|
p(P, {
|
|
2933
2934
|
text: e.$td(
|
|
2934
2935
|
"startupCrash.message",
|
|
@@ -2936,13 +2937,13 @@ Do you still want to proceed?`
|
|
|
2936
2937
|
),
|
|
2937
2938
|
class: "mt-4 text-center"
|
|
2938
2939
|
}, null, 8, ["text"]),
|
|
2939
|
-
y("div",
|
|
2940
|
+
y("div", ga, [
|
|
2940
2941
|
p(q, {
|
|
2941
2942
|
variant: "danger",
|
|
2942
2943
|
onClick: r[0] || (r[0] = (a) => e.$app.reload())
|
|
2943
2944
|
}, {
|
|
2944
2945
|
default: f(() => [
|
|
2945
|
-
p(
|
|
2946
|
+
p(l(pa)),
|
|
2946
2947
|
I(" " + x(e.$td("startupCrash.reload", "Try again")), 1)
|
|
2947
2948
|
]),
|
|
2948
2949
|
_: 1
|
|
@@ -2952,7 +2953,7 @@ Do you still want to proceed?`
|
|
|
2952
2953
|
onClick: r[1] || (r[1] = (a) => e.$errors.inspect(e.$errors.startupErrors))
|
|
2953
2954
|
}, {
|
|
2954
2955
|
default: f(() => [
|
|
2955
|
-
p(
|
|
2956
|
+
p(l(ra)),
|
|
2956
2957
|
I(" " + x(e.$td("startupCrash.inspect", "View error details")), 1)
|
|
2957
2958
|
]),
|
|
2958
2959
|
_: 1
|
|
@@ -2962,7 +2963,7 @@ Do you still want to proceed?`
|
|
|
2962
2963
|
onClick: r[2] || (r[2] = (a) => s())
|
|
2963
2964
|
}, {
|
|
2964
2965
|
default: f(() => [
|
|
2965
|
-
p(
|
|
2966
|
+
p(l(la)),
|
|
2966
2967
|
I(" " + x(e.$td("startupCrash.purge", "Purge device")), 1)
|
|
2967
2968
|
]),
|
|
2968
2969
|
_: 1
|
|
@@ -2972,7 +2973,7 @@ Do you still want to proceed?`
|
|
|
2972
2973
|
onClick: r[3] || (r[3] = (a) => e.$errors.debug = !e.$errors.debug)
|
|
2973
2974
|
}, {
|
|
2974
2975
|
default: f(() => [
|
|
2975
|
-
p(
|
|
2976
|
+
p(l(ua)),
|
|
2976
2977
|
I(" " + x(e.$td("startupCrash.debug", "Toggle debugging")), 1)
|
|
2977
2978
|
]),
|
|
2978
2979
|
_: 1
|
|
@@ -2982,13 +2983,13 @@ Do you still want to proceed?`
|
|
|
2982
2983
|
]);
|
|
2983
2984
|
};
|
|
2984
2985
|
}
|
|
2985
|
-
}),
|
|
2986
|
+
}), kt = /* @__PURE__ */ g({
|
|
2986
2987
|
__name: "HeadlessToastAction",
|
|
2987
2988
|
props: {
|
|
2988
2989
|
action: {}
|
|
2989
2990
|
},
|
|
2990
2991
|
setup(t) {
|
|
2991
|
-
return (s, e) => (u(), h(W(s.action.dismiss ?
|
|
2992
|
+
return (s, e) => (u(), h(W(s.action.dismiss ? l(Ss) : "button"), {
|
|
2992
2993
|
type: "button",
|
|
2993
2994
|
onClick: s.action.click
|
|
2994
2995
|
}, {
|
|
@@ -2998,7 +2999,7 @@ Do you still want to proceed?`
|
|
|
2998
2999
|
_: 1
|
|
2999
3000
|
}, 8, ["onClick"]));
|
|
3000
3001
|
}
|
|
3001
|
-
}),
|
|
3002
|
+
}), ba = { key: 0 }, ya = /* @__PURE__ */ g({
|
|
3002
3003
|
__name: "HeadlessToast",
|
|
3003
3004
|
props: {
|
|
3004
3005
|
message: {},
|
|
@@ -3006,11 +3007,11 @@ Do you still want to proceed?`
|
|
|
3006
3007
|
variant: {}
|
|
3007
3008
|
},
|
|
3008
3009
|
setup(t) {
|
|
3009
|
-
return (s, e) => (u(), h(
|
|
3010
|
+
return (s, e) => (u(), h(l(Ts), null, {
|
|
3010
3011
|
default: f(() => [
|
|
3011
3012
|
w(s.$slots, "default", {}, () => [
|
|
3012
|
-
s.message ? (u(), b("span",
|
|
3013
|
-
(u(!0), b(D, null, F(s.actions, (r, n) => (u(), h(
|
|
3013
|
+
s.message ? (u(), b("span", ba, x(s.message), 1)) : T("", !0),
|
|
3014
|
+
(u(!0), b(D, null, F(s.actions, (r, n) => (u(), h(kt, {
|
|
3014
3015
|
key: n,
|
|
3015
3016
|
action: r
|
|
3016
3017
|
}, null, 8, ["action"]))), 128))
|
|
@@ -3019,7 +3020,7 @@ Do you still want to proceed?`
|
|
|
3019
3020
|
_: 3
|
|
3020
3021
|
}));
|
|
3021
3022
|
}
|
|
3022
|
-
}),
|
|
3023
|
+
}), wa = /* @__PURE__ */ g({
|
|
3023
3024
|
__name: "Toast",
|
|
3024
3025
|
props: {
|
|
3025
3026
|
message: {},
|
|
@@ -3028,7 +3029,7 @@ Do you still want to proceed?`
|
|
|
3028
3029
|
class: {}
|
|
3029
3030
|
},
|
|
3030
3031
|
setup(t, { expose: s }) {
|
|
3031
|
-
const e = c(() =>
|
|
3032
|
+
const e = c(() => et(
|
|
3032
3033
|
{ baseClasses: t.class, variant: t.variant },
|
|
3033
3034
|
{
|
|
3034
3035
|
baseClasses: "flex items-center gap-2 rounded-md p-2 ring-1 shadow-lg border-gray-200",
|
|
@@ -3043,7 +3044,7 @@ Do you still want to proceed?`
|
|
|
3043
3044
|
}
|
|
3044
3045
|
}
|
|
3045
3046
|
));
|
|
3046
|
-
return s(), (r, n) => (u(), h(
|
|
3047
|
+
return s(), (r, n) => (u(), h(ya, {
|
|
3047
3048
|
class: k(e.value)
|
|
3048
3049
|
}, {
|
|
3049
3050
|
default: f(() => [
|
|
@@ -3056,84 +3057,84 @@ Do you still want to proceed?`
|
|
|
3056
3057
|
key: i,
|
|
3057
3058
|
action: a,
|
|
3058
3059
|
variant: r.variant,
|
|
3059
|
-
as:
|
|
3060
|
+
as: kt
|
|
3060
3061
|
}, null, 8, ["action", "variant"]))), 128))
|
|
3061
3062
|
]),
|
|
3062
3063
|
_: 1
|
|
3063
3064
|
}, 8, ["class"]));
|
|
3064
3065
|
}
|
|
3065
|
-
}),
|
|
3066
|
+
}), $a = { $ui: z }, _a = {
|
|
3066
3067
|
async install(t, s) {
|
|
3067
3068
|
const e = {
|
|
3068
|
-
"alert-modal":
|
|
3069
|
-
"confirm-modal":
|
|
3070
|
-
"error-report-modal":
|
|
3071
|
-
"loading-modal":
|
|
3072
|
-
"prompt-modal":
|
|
3073
|
-
"startup-crash":
|
|
3074
|
-
toast:
|
|
3069
|
+
"alert-modal": tn,
|
|
3070
|
+
"confirm-modal": un,
|
|
3071
|
+
"error-report-modal": Pn,
|
|
3072
|
+
"loading-modal": Nn,
|
|
3073
|
+
"prompt-modal": ea,
|
|
3074
|
+
"startup-crash": va,
|
|
3075
|
+
toast: wa,
|
|
3075
3076
|
...s.components
|
|
3076
3077
|
};
|
|
3077
3078
|
for (const [r, n] of Object.entries(e))
|
|
3078
3079
|
z.registerComponent(r, n);
|
|
3079
|
-
await $e(t,
|
|
3080
|
+
await $e(t, $a);
|
|
3080
3081
|
}
|
|
3081
3082
|
};
|
|
3082
|
-
async function
|
|
3083
|
+
async function xa(t, s = {}) {
|
|
3083
3084
|
var r;
|
|
3084
|
-
const e = [
|
|
3085
|
-
A.instance = t, await
|
|
3085
|
+
const e = [Fr, ar, Br, Tr, ur, _a, ...s.plugins ?? []];
|
|
3086
|
+
A.instance = t, await Fs(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await R.emit("application-ready");
|
|
3086
3087
|
}
|
|
3087
|
-
async function
|
|
3088
|
+
async function Ll(t, s = {}) {
|
|
3088
3089
|
var r;
|
|
3089
|
-
const e =
|
|
3090
|
-
J() && (window.$aerogel = e), await
|
|
3090
|
+
const e = Pt(t);
|
|
3091
|
+
J() && (window.$aerogel = e), await xa(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await R.emit("application-mounted");
|
|
3091
3092
|
}
|
|
3092
|
-
const
|
|
3093
|
+
const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
|
|
3093
3094
|
__name: "AppModals",
|
|
3094
3095
|
setup(t) {
|
|
3095
3096
|
const s = c(() => z.modals[0] ?? null);
|
|
3096
|
-
return (e, r) => s.value ? (u(), b("aside",
|
|
3097
|
-
p(
|
|
3097
|
+
return (e, r) => s.value ? (u(), b("aside", Ca, [
|
|
3098
|
+
p(wt, {
|
|
3098
3099
|
"child-index": 1,
|
|
3099
3100
|
modal: s.value
|
|
3100
3101
|
}, null, 8, ["modal"])
|
|
3101
3102
|
])) : T("", !0);
|
|
3102
3103
|
}
|
|
3103
|
-
}),
|
|
3104
|
+
}), Sa = /* @__PURE__ */ g({
|
|
3104
3105
|
__name: "AppToasts",
|
|
3105
3106
|
setup(t) {
|
|
3106
|
-
return (s, e) => (u(), h(
|
|
3107
|
+
return (s, e) => (u(), h(l(Ms), null, {
|
|
3107
3108
|
default: f(() => [
|
|
3108
3109
|
(u(!0), b(D, null, F(s.$ui.toasts, (r) => (u(), h(W(r.component), H({
|
|
3109
3110
|
id: r.id,
|
|
3110
3111
|
key: r.id,
|
|
3111
3112
|
ref_for: !0
|
|
3112
3113
|
}, r.properties), null, 16, ["id"]))), 128)),
|
|
3113
|
-
p(
|
|
3114
|
+
p(l(Hs), { class: "fixed right-0 bottom-0 z-50 flex flex-col items-end space-y-4 px-4 py-6 sm:p-6" })
|
|
3114
3115
|
]),
|
|
3115
3116
|
_: 1
|
|
3116
3117
|
}));
|
|
3117
3118
|
}
|
|
3118
|
-
}),
|
|
3119
|
+
}), Ta = /* @__PURE__ */ g({
|
|
3119
3120
|
__name: "AppOverlays",
|
|
3120
3121
|
setup(t) {
|
|
3121
3122
|
return (s, e) => (u(), b(D, null, [
|
|
3122
|
-
p(
|
|
3123
|
-
p(
|
|
3123
|
+
p(ka),
|
|
3124
|
+
p(Sa)
|
|
3124
3125
|
], 64));
|
|
3125
3126
|
}
|
|
3126
|
-
}),
|
|
3127
|
+
}), Ma = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, Il = /* @__PURE__ */ g({
|
|
3127
3128
|
__name: "AppLayout",
|
|
3128
3129
|
setup(t) {
|
|
3129
|
-
return (s, e) => (u(), b("div",
|
|
3130
|
+
return (s, e) => (u(), b("div", Ma, [
|
|
3130
3131
|
s.$errors.hasStartupErrors ? w(s.$slots, "startup-crash", { key: 0 }, () => [
|
|
3131
3132
|
(u(), h(W(s.$ui.requireComponent("startup-crash"))))
|
|
3132
3133
|
]) : w(s.$slots, "default", { key: 1 }),
|
|
3133
|
-
p(
|
|
3134
|
+
p(Ta)
|
|
3134
3135
|
]));
|
|
3135
3136
|
}
|
|
3136
|
-
}),
|
|
3137
|
+
}), Ha = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], Ea = /* @__PURE__ */ g({
|
|
3137
3138
|
__name: "HeadlessInputTextArea",
|
|
3138
3139
|
setup(t) {
|
|
3139
3140
|
const s = G("$textAreaRef"), e = V(
|
|
@@ -3143,34 +3144,34 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3143
3144
|
function a() {
|
|
3144
3145
|
s.value && e.update(s.value.value);
|
|
3145
3146
|
}
|
|
3146
|
-
return
|
|
3147
|
+
return st(e, () => {
|
|
3147
3148
|
var i;
|
|
3148
3149
|
return (i = s.value) == null ? void 0 : i.focus();
|
|
3149
|
-
}), (i,
|
|
3150
|
-
id:
|
|
3150
|
+
}), (i, o) => (u(), b("textarea", {
|
|
3151
|
+
id: l(e).id,
|
|
3151
3152
|
ref: "$textAreaRef",
|
|
3152
3153
|
name: r.value,
|
|
3153
3154
|
value: n.value,
|
|
3154
|
-
required:
|
|
3155
|
-
"aria-invalid":
|
|
3156
|
-
"aria-describedby":
|
|
3155
|
+
required: l(e).required ?? void 0,
|
|
3156
|
+
"aria-invalid": l(e).errors ? "true" : "false",
|
|
3157
|
+
"aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
|
|
3157
3158
|
onInput: a
|
|
3158
|
-
}, null, 40,
|
|
3159
|
+
}, null, 40, Ha));
|
|
3159
3160
|
}
|
|
3160
|
-
}),
|
|
3161
|
+
}), Va = { class: "group" }, La = { class: "-ml-2 flex w-[max-content] items-center rounded-lg py-2 pr-3 pl-1 hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700" }, Ia = { class: "pt-2 pl-4" }, ql = /* @__PURE__ */ g({
|
|
3161
3162
|
__name: "AdvancedOptions",
|
|
3162
3163
|
setup(t) {
|
|
3163
|
-
return (s, e) => (u(), b("details",
|
|
3164
|
-
y("summary",
|
|
3165
|
-
p(
|
|
3164
|
+
return (s, e) => (u(), b("details", Va, [
|
|
3165
|
+
y("summary", La, [
|
|
3166
|
+
p(l(_t), { class: "size-6 transition-transform group-open:rotate-90" }),
|
|
3166
3167
|
y("span", null, x(s.$td("ui.advancedOptions", "Advanced options")), 1)
|
|
3167
3168
|
]),
|
|
3168
|
-
y("div",
|
|
3169
|
+
y("div", Ia, [
|
|
3169
3170
|
w(s.$slots, "default")
|
|
3170
3171
|
])
|
|
3171
3172
|
]));
|
|
3172
3173
|
}
|
|
3173
|
-
}),
|
|
3174
|
+
}), qa = { class: "flex h-6 items-center" }, zl = /* @__PURE__ */ g({
|
|
3174
3175
|
inheritAttrs: !1,
|
|
3175
3176
|
__name: "Checkbox",
|
|
3176
3177
|
props: {
|
|
@@ -3193,7 +3194,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3193
3194
|
},
|
|
3194
3195
|
t.inputClass
|
|
3195
3196
|
);
|
|
3196
|
-
}),
|
|
3197
|
+
}), o = c(() => M("ml-2 text-sm leading-6", t.labelClass));
|
|
3197
3198
|
return (d, v) => (u(), h(ze, H({
|
|
3198
3199
|
ref: "$inputRef",
|
|
3199
3200
|
class: a.value
|
|
@@ -3201,15 +3202,15 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3201
3202
|
"onUpdate:modelValue": v[0] || (v[0] = ($) => d.$emit("update:modelValue", $))
|
|
3202
3203
|
}), {
|
|
3203
3204
|
default: f(() => [
|
|
3204
|
-
y("div",
|
|
3205
|
-
p(
|
|
3205
|
+
y("div", qa, [
|
|
3206
|
+
p(xt, H(l(r), {
|
|
3206
3207
|
type: "checkbox",
|
|
3207
3208
|
class: i.value
|
|
3208
3209
|
}), null, 16, ["class"])
|
|
3209
3210
|
]),
|
|
3210
3211
|
d.$slots.default ? (u(), b("div", {
|
|
3211
3212
|
key: 0,
|
|
3212
|
-
class: k(
|
|
3213
|
+
class: k(o.value)
|
|
3213
3214
|
}, [
|
|
3214
3215
|
p(fe, { class: "text-gray-900" }, {
|
|
3215
3216
|
default: f(() => [
|
|
@@ -3220,7 +3221,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3220
3221
|
p(he, { class: "text-red-600" })
|
|
3221
3222
|
], 2)) : d.label ? (u(), b("div", {
|
|
3222
3223
|
key: 1,
|
|
3223
|
-
class: k(
|
|
3224
|
+
class: k(o.value)
|
|
3224
3225
|
}, [
|
|
3225
3226
|
p(fe, { class: "text-gray-900" }),
|
|
3226
3227
|
p(he, { class: "text-red-600" })
|
|
@@ -3229,7 +3230,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3229
3230
|
_: 3
|
|
3230
3231
|
}, 16, ["class"]));
|
|
3231
3232
|
}
|
|
3232
|
-
}),
|
|
3233
|
+
}), za = /* @__PURE__ */ g({
|
|
3233
3234
|
__name: "DropdownMenuOption",
|
|
3234
3235
|
props: {
|
|
3235
3236
|
class: {},
|
|
@@ -3242,7 +3243,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3242
3243
|
"flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
|
|
3243
3244
|
t.class
|
|
3244
3245
|
));
|
|
3245
|
-
return (r, n) => (u(), h(
|
|
3246
|
+
return (r, n) => (u(), h(l(Es), H({ class: e.value }, s, {
|
|
3246
3247
|
onSelect: n[0] || (n[0] = (a) => r.$emit("select"))
|
|
3247
3248
|
}), {
|
|
3248
3249
|
default: f(() => [
|
|
@@ -3251,24 +3252,24 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3251
3252
|
_: 3
|
|
3252
3253
|
}, 16, ["class"]));
|
|
3253
3254
|
}
|
|
3254
|
-
}),
|
|
3255
|
+
}), Ra = /* @__PURE__ */ g({
|
|
3255
3256
|
__name: "DropdownMenuOptions",
|
|
3256
3257
|
setup(t) {
|
|
3257
3258
|
const s = V(
|
|
3258
3259
|
"dropdown-menu",
|
|
3259
3260
|
"<DropdownMenuOptions> must be a child of a <DropdownMenu>"
|
|
3260
3261
|
);
|
|
3261
|
-
return (e, r) => (u(), h(
|
|
3262
|
+
return (e, r) => (u(), h(l(Vs), {
|
|
3262
3263
|
class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
|
|
3263
|
-
align:
|
|
3264
|
-
side:
|
|
3264
|
+
align: l(s).align,
|
|
3265
|
+
side: l(s).side
|
|
3265
3266
|
}, {
|
|
3266
3267
|
default: f(() => [
|
|
3267
3268
|
w(e.$slots, "default", {}, () => [
|
|
3268
|
-
(u(!0), b(D, null, F(
|
|
3269
|
+
(u(!0), b(D, null, F(l(s).options, (n, a) => (u(), h(za, H(
|
|
3269
3270
|
{
|
|
3270
3271
|
key: a,
|
|
3271
|
-
as: n.route || n.href ?
|
|
3272
|
+
as: n.route || n.href ? ct : void 0,
|
|
3272
3273
|
class: n.class,
|
|
3273
3274
|
ref_for: !0
|
|
3274
3275
|
},
|
|
@@ -3280,8 +3281,8 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3280
3281
|
} : {},
|
|
3281
3282
|
{
|
|
3282
3283
|
onSelect: (i) => {
|
|
3283
|
-
var
|
|
3284
|
-
return (
|
|
3284
|
+
var o;
|
|
3285
|
+
return (o = n.click) == null ? void 0 : o.call(n);
|
|
3285
3286
|
}
|
|
3286
3287
|
}
|
|
3287
3288
|
), {
|
|
@@ -3295,7 +3296,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3295
3296
|
_: 3
|
|
3296
3297
|
}, 8, ["align", "side"]));
|
|
3297
3298
|
}
|
|
3298
|
-
}),
|
|
3299
|
+
}), Rl = /* @__PURE__ */ g({
|
|
3299
3300
|
__name: "DropdownMenu",
|
|
3300
3301
|
props: {
|
|
3301
3302
|
align: {},
|
|
@@ -3311,18 +3312,18 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3311
3312
|
return (r = t.options) == null ? void 0 : r.filter(Boolean);
|
|
3312
3313
|
})
|
|
3313
3314
|
};
|
|
3314
|
-
return le("dropdown-menu", e), s(e), (r, n) => (u(), h(
|
|
3315
|
+
return le("dropdown-menu", e), s(e), (r, n) => (u(), h(l(Ls), null, {
|
|
3315
3316
|
default: f(() => [
|
|
3316
|
-
p(
|
|
3317
|
+
p(l(Is), null, {
|
|
3317
3318
|
default: f(() => [
|
|
3318
3319
|
w(r.$slots, "default")
|
|
3319
3320
|
]),
|
|
3320
3321
|
_: 3
|
|
3321
3322
|
}),
|
|
3322
|
-
p(
|
|
3323
|
+
p(l(qs), null, {
|
|
3323
3324
|
default: f(() => [
|
|
3324
3325
|
w(r.$slots, "options", {}, () => [
|
|
3325
|
-
p(
|
|
3326
|
+
p(Ra)
|
|
3326
3327
|
])
|
|
3327
3328
|
]),
|
|
3328
3329
|
_: 3
|
|
@@ -3331,7 +3332,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3331
3332
|
_: 3
|
|
3332
3333
|
}));
|
|
3333
3334
|
}
|
|
3334
|
-
}),
|
|
3335
|
+
}), Pa = ["aria-hidden"], Aa = ["tabindex", "aria-label", "type"], Pl = /* @__PURE__ */ g({
|
|
3335
3336
|
__name: "EditableContent",
|
|
3336
3337
|
props: {
|
|
3337
3338
|
type: { default: "text" },
|
|
@@ -3344,7 +3345,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3344
3345
|
},
|
|
3345
3346
|
emits: ["update", "save"],
|
|
3346
3347
|
setup(t, { emit: s }) {
|
|
3347
|
-
const e = s, r = G("$inputRef"), n = U(null), a = U(t.text), i = c(() => M("inline whitespace-pre", t.contentClass)),
|
|
3348
|
+
const e = s, r = G("$inputRef"), n = U(null), a = U(t.text), i = c(() => M("inline whitespace-pre", t.contentClass)), o = c(() => M("invisible whitespace-pre", t.contentClass)), d = c(() => M("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
|
|
3348
3349
|
function v() {
|
|
3349
3350
|
n.value = t.text;
|
|
3350
3351
|
}
|
|
@@ -3356,7 +3357,7 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3356
3357
|
}, [
|
|
3357
3358
|
n.value ? (u(), b("span", {
|
|
3358
3359
|
key: 1,
|
|
3359
|
-
class: k(
|
|
3360
|
+
class: k(o.value)
|
|
3360
3361
|
}, x(a.value), 3)) : (u(), b("div", {
|
|
3361
3362
|
key: 0,
|
|
3362
3363
|
class: k(i.value)
|
|
@@ -3388,39 +3389,39 @@ const xa = { key: 0 }, Ca = /* @__PURE__ */ g({
|
|
|
3388
3389
|
onKeyup: C[1] || (C[1] = (L) => m.$emit("update", a.value)),
|
|
3389
3390
|
onFocus: C[2] || (C[2] = (L) => v()),
|
|
3390
3391
|
onBlur: C[3] || (C[3] = (L) => $())
|
|
3391
|
-
}, null, 42,
|
|
3392
|
-
[
|
|
3392
|
+
}, null, 42, Aa), [
|
|
3393
|
+
[At, a.value]
|
|
3393
3394
|
])
|
|
3394
|
-
], 40,
|
|
3395
|
+
], 40, Pa)
|
|
3395
3396
|
], 2));
|
|
3396
3397
|
}
|
|
3397
|
-
}),
|
|
3398
|
+
}), Da = {
|
|
3398
3399
|
viewBox: "0 0 512 512",
|
|
3399
3400
|
width: "1.2em",
|
|
3400
3401
|
height: "1.2em"
|
|
3401
3402
|
};
|
|
3402
|
-
function
|
|
3403
|
-
return u(), b("svg",
|
|
3403
|
+
function ja(t, s) {
|
|
3404
|
+
return u(), b("svg", Da, s[0] || (s[0] = [
|
|
3404
3405
|
y("path", {
|
|
3405
3406
|
fill: "currentColor",
|
|
3406
3407
|
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"
|
|
3407
3408
|
}, null, -1)
|
|
3408
3409
|
]));
|
|
3409
3410
|
}
|
|
3410
|
-
const
|
|
3411
|
+
const Ba = E({ name: "ion-warning", render: ja }), Fa = {
|
|
3411
3412
|
viewBox: "0 0 20 20",
|
|
3412
3413
|
width: "1.2em",
|
|
3413
3414
|
height: "1.2em"
|
|
3414
3415
|
};
|
|
3415
|
-
function
|
|
3416
|
-
return u(), b("svg",
|
|
3416
|
+
function Ua(t, s) {
|
|
3417
|
+
return u(), b("svg", Fa, s[0] || (s[0] = [
|
|
3417
3418
|
y("path", {
|
|
3418
3419
|
fill: "currentColor",
|
|
3419
3420
|
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"
|
|
3420
3421
|
}, null, -1)
|
|
3421
3422
|
]));
|
|
3422
3423
|
}
|
|
3423
|
-
const
|
|
3424
|
+
const Oa = E({ name: "zondicons-view-show", render: Ua }), Na = { class: "font-medium" }, Wa = ["datetime"], Ka = /* @__PURE__ */ g({
|
|
3424
3425
|
__name: "ErrorLogsModal",
|
|
3425
3426
|
setup(t) {
|
|
3426
3427
|
return (s, e) => (u(), h(se, {
|
|
@@ -3433,14 +3434,14 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
|
|
|
3433
3434
|
class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
|
|
3434
3435
|
}, [
|
|
3435
3436
|
y("div", null, [
|
|
3436
|
-
y("h3",
|
|
3437
|
+
y("h3", Na, x(r.report.title), 1),
|
|
3437
3438
|
y("time", {
|
|
3438
3439
|
datetime: r.date.toISOString(),
|
|
3439
3440
|
class: "text-xs text-gray-700"
|
|
3440
|
-
}, x(r.date.toLocaleTimeString()), 9,
|
|
3441
|
+
}, x(r.date.toLocaleTimeString()), 9, Wa),
|
|
3441
3442
|
p(P, {
|
|
3442
3443
|
class: "text-sm text-gray-500",
|
|
3443
|
-
text: r.report.description ??
|
|
3444
|
+
text: r.report.description ?? l(yt)(r.report)
|
|
3444
3445
|
}, null, 8, ["text"])
|
|
3445
3446
|
]),
|
|
3446
3447
|
p(q, {
|
|
@@ -3455,7 +3456,7 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
|
|
|
3455
3456
|
)
|
|
3456
3457
|
}, {
|
|
3457
3458
|
default: f(() => [
|
|
3458
|
-
p(
|
|
3459
|
+
p(l(Oa), {
|
|
3459
3460
|
class: "size-4",
|
|
3460
3461
|
"aria-hidden": "true"
|
|
3461
3462
|
})
|
|
@@ -3468,7 +3469,7 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
|
|
|
3468
3469
|
_: 1
|
|
3469
3470
|
}, 8, ["title"]));
|
|
3470
3471
|
}
|
|
3471
|
-
}),
|
|
3472
|
+
}), Al = /* @__PURE__ */ g({
|
|
3472
3473
|
__name: "ErrorLogs",
|
|
3473
3474
|
setup(t) {
|
|
3474
3475
|
return (s, e) => s.$errors.logs.length > 0 ? (u(), h(q, {
|
|
@@ -3477,27 +3478,27 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
|
|
|
3477
3478
|
variant: "ghost",
|
|
3478
3479
|
title: s.$td("errors.viewLogs", "View error logs"),
|
|
3479
3480
|
"aria-label": s.$td("errors.viewLogs", "View error logs"),
|
|
3480
|
-
onClick: e[0] || (e[0] = (r) => s.$ui.modal(
|
|
3481
|
+
onClick: e[0] || (e[0] = (r) => s.$ui.modal(Ka))
|
|
3481
3482
|
}, {
|
|
3482
3483
|
default: f(() => [
|
|
3483
|
-
p(
|
|
3484
|
+
p(l(Ba), { class: "size-6 text-red-500" })
|
|
3484
3485
|
]),
|
|
3485
3486
|
_: 1
|
|
3486
3487
|
}, 8, ["title", "aria-label"])) : T("", !0);
|
|
3487
3488
|
}
|
|
3488
|
-
}),
|
|
3489
|
+
}), Dl = /* @__PURE__ */ g({
|
|
3489
3490
|
__name: "ErrorMessage",
|
|
3490
3491
|
props: {
|
|
3491
3492
|
error: {}
|
|
3492
3493
|
},
|
|
3493
3494
|
setup(t) {
|
|
3494
|
-
const s = c(() =>
|
|
3495
|
+
const s = c(() => yt(t.error));
|
|
3495
3496
|
return (e, r) => (u(), h(P, {
|
|
3496
3497
|
text: s.value,
|
|
3497
3498
|
inline: ""
|
|
3498
3499
|
}, null, 8, ["text"]));
|
|
3499
3500
|
}
|
|
3500
|
-
}),
|
|
3501
|
+
}), jl = /* @__PURE__ */ g({
|
|
3501
3502
|
__name: "Link",
|
|
3502
3503
|
props: {
|
|
3503
3504
|
class: {},
|
|
@@ -3519,10 +3520,10 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
|
|
|
3519
3520
|
_: 3
|
|
3520
3521
|
}, 16));
|
|
3521
3522
|
}
|
|
3522
|
-
}),
|
|
3523
|
+
}), Bl = /* @__PURE__ */ g({
|
|
3523
3524
|
__name: "SettingsModal",
|
|
3524
3525
|
setup(t) {
|
|
3525
|
-
const s = c(() =>
|
|
3526
|
+
const s = c(() => Zt(A.settings, "priority", "desc"));
|
|
3526
3527
|
return (e, r) => (u(), h(se, {
|
|
3527
3528
|
title: e.$td("settings.title", "Settings")
|
|
3528
3529
|
}, {
|
|
@@ -3532,10 +3533,10 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
|
|
|
3532
3533
|
_: 1
|
|
3533
3534
|
}, 8, ["title"]));
|
|
3534
3535
|
}
|
|
3535
|
-
}),
|
|
3536
|
+
}), Qa = {
|
|
3536
3537
|
key: 0,
|
|
3537
3538
|
class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
|
|
3538
|
-
},
|
|
3539
|
+
}, Fl = /* @__PURE__ */ g({
|
|
3539
3540
|
inheritAttrs: !1,
|
|
3540
3541
|
__name: "TextArea",
|
|
3541
3542
|
props: {
|
|
@@ -3549,24 +3550,24 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
|
|
|
3549
3550
|
emits: ["update:modelValue"],
|
|
3550
3551
|
setup(t) {
|
|
3551
3552
|
const s = N(t, ["label", "inputClass", "wrapperClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = c(() => {
|
|
3552
|
-
var
|
|
3553
|
+
var o, d, v;
|
|
3553
3554
|
return M(
|
|
3554
3555
|
// eslint-disable-next-line vue/max-len
|
|
3555
3556
|
"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",
|
|
3556
3557
|
{
|
|
3557
|
-
"focus:ring-primary-600": !((
|
|
3558
|
+
"focus:ring-primary-600": !((o = e.value) != null && o.errors),
|
|
3558
3559
|
"text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
|
|
3559
3560
|
"pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
|
|
3560
3561
|
},
|
|
3561
3562
|
t.inputClass
|
|
3562
3563
|
);
|
|
3563
3564
|
});
|
|
3564
|
-
return (
|
|
3565
|
+
return (o, d) => (u(), h(ze, H({
|
|
3565
3566
|
ref: "$inputRef",
|
|
3566
|
-
label:
|
|
3567
|
-
class:
|
|
3567
|
+
label: o.label,
|
|
3568
|
+
class: l(n)
|
|
3568
3569
|
}, s, {
|
|
3569
|
-
"onUpdate:modelValue": d[0] || (d[0] = (v) =>
|
|
3570
|
+
"onUpdate:modelValue": d[0] || (d[0] = (v) => o.$emit("update:modelValue", v))
|
|
3570
3571
|
}), {
|
|
3571
3572
|
default: f(() => {
|
|
3572
3573
|
var v;
|
|
@@ -3575,12 +3576,12 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
|
|
|
3575
3576
|
y("div", {
|
|
3576
3577
|
class: k(a.value)
|
|
3577
3578
|
}, [
|
|
3578
|
-
p(
|
|
3579
|
-
(v = e.value) != null && v.errors ? (u(), b("div",
|
|
3580
|
-
p(
|
|
3579
|
+
p(Ea, H(l(r), { class: i.value }), null, 16, ["class"]),
|
|
3580
|
+
(v = e.value) != null && v.errors ? (u(), b("div", Qa, [
|
|
3581
|
+
p(l(qe), { class: "size-5 text-red-500" })
|
|
3581
3582
|
])) : T("", !0)
|
|
3582
3583
|
], 2),
|
|
3583
|
-
p(
|
|
3584
|
+
p(Ct, { class: "mt-2 text-sm text-gray-600" }),
|
|
3584
3585
|
p(he, { class: "mt-2 text-sm text-red-600" })
|
|
3585
3586
|
];
|
|
3586
3587
|
}),
|
|
@@ -3588,7 +3589,7 @@ const Ua = E({ name: "zondicons-view-show", render: Fa }), Oa = { class: "font-m
|
|
|
3588
3589
|
}, 16, ["label", "class"]));
|
|
3589
3590
|
}
|
|
3590
3591
|
});
|
|
3591
|
-
class
|
|
3592
|
+
class Ul {
|
|
3592
3593
|
constructor() {
|
|
3593
3594
|
_(this, "status");
|
|
3594
3595
|
_(this, "_listeners");
|
|
@@ -3596,7 +3597,7 @@ class Fl {
|
|
|
3596
3597
|
_(this, "_cancelled");
|
|
3597
3598
|
_(this, "_started");
|
|
3598
3599
|
_(this, "_completed");
|
|
3599
|
-
this.status = this.getInitialStatus(), this._listeners = new
|
|
3600
|
+
this.status = this.getInitialStatus(), this._listeners = new Xt(), this._started = new K(), this._completed = new K();
|
|
3600
3601
|
}
|
|
3601
3602
|
async start() {
|
|
3602
3603
|
this.beforeStart(), this._started.resolve();
|
|
@@ -3605,7 +3606,7 @@ class Fl {
|
|
|
3605
3606
|
} catch (s) {
|
|
3606
3607
|
if (s instanceof Ue)
|
|
3607
3608
|
return;
|
|
3608
|
-
throw ee(
|
|
3609
|
+
throw ee(Yt(s), (e) => {
|
|
3609
3610
|
this._completed.reject(e);
|
|
3610
3611
|
});
|
|
3611
3612
|
}
|
|
@@ -3649,7 +3650,7 @@ class Fl {
|
|
|
3649
3650
|
throw this._cancelled.resolve(), new Ue();
|
|
3650
3651
|
}
|
|
3651
3652
|
calculateCurrentProgress(s) {
|
|
3652
|
-
return s ?? (s = this.status), s.completed ? 1 : s.children ?
|
|
3653
|
+
return s ?? (s = this.status), s.completed ? 1 : s.children ? Gt(
|
|
3653
3654
|
s.children.reduce((e, r) => e + this.calculateCurrentProgress(r), 0) / s.children.length,
|
|
3654
3655
|
2
|
|
3655
3656
|
) : 0;
|
|
@@ -3663,147 +3664,148 @@ class Fl {
|
|
|
3663
3664
|
return { ...s };
|
|
3664
3665
|
}
|
|
3665
3666
|
}
|
|
3666
|
-
async function
|
|
3667
|
+
async function Ol(t) {
|
|
3667
3668
|
await t.start();
|
|
3668
3669
|
}
|
|
3669
3670
|
export {
|
|
3670
|
-
|
|
3671
|
-
|
|
3671
|
+
ql as AdvancedOptions,
|
|
3672
|
+
tn as AlertModal,
|
|
3672
3673
|
A as App,
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3674
|
+
Il as AppLayout,
|
|
3675
|
+
ka as AppModals,
|
|
3676
|
+
Ta as AppOverlays,
|
|
3677
|
+
Bs as AppService,
|
|
3678
|
+
Sa as AppToasts,
|
|
3678
3679
|
q as Button,
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3680
|
+
bl as Cache,
|
|
3681
|
+
lr as CacheService,
|
|
3682
|
+
zl as Checkbox,
|
|
3683
|
+
un as ConfirmModal,
|
|
3684
|
+
Rl as DropdownMenu,
|
|
3685
|
+
za as DropdownMenuOption,
|
|
3686
|
+
Ra as DropdownMenuOptions,
|
|
3687
|
+
Pl as EditableContent,
|
|
3688
|
+
Al as ErrorLogs,
|
|
3689
|
+
Ka as ErrorLogsModal,
|
|
3690
|
+
Dl as ErrorMessage,
|
|
3691
|
+
Pn as ErrorReportModal,
|
|
3692
|
+
Mn as ErrorReportModalButtons,
|
|
3693
|
+
Hn as ErrorReportModalTitle,
|
|
3694
|
+
ut as Errors,
|
|
3695
|
+
ol as EventListenerPriorities,
|
|
3695
3696
|
R as Events,
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3697
|
+
Ds as EventsService,
|
|
3698
|
+
$t as Form,
|
|
3699
|
+
Xs as FormController,
|
|
3700
|
+
ct as HeadlessButton,
|
|
3700
3701
|
ze as HeadlessInput,
|
|
3701
|
-
|
|
3702
|
+
Ct as HeadlessInputDescription,
|
|
3702
3703
|
he as HeadlessInputError,
|
|
3703
|
-
|
|
3704
|
+
xt as HeadlessInputInput,
|
|
3704
3705
|
fe as HeadlessInputLabel,
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3706
|
+
Ea as HeadlessInputTextArea,
|
|
3707
|
+
Wr as HeadlessModal,
|
|
3708
|
+
Kr as HeadlessModalContent,
|
|
3709
|
+
Qr as HeadlessModalDescription,
|
|
3710
|
+
Jr as HeadlessModalOverlay,
|
|
3711
|
+
Zr as HeadlessModalTitle,
|
|
3712
|
+
br as HeadlessSelect,
|
|
3712
3713
|
Be as HeadlessSelectLabel,
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3714
|
+
mt as HeadlessSelectOption,
|
|
3715
|
+
ft as HeadlessSelectOptions,
|
|
3716
|
+
pt as HeadlessSelectTrigger,
|
|
3717
|
+
dt as HeadlessSelectValue,
|
|
3718
|
+
qr as HeadlessSwitch,
|
|
3719
|
+
ya as HeadlessToast,
|
|
3720
|
+
Zn as Input,
|
|
3721
|
+
Ul as Job,
|
|
3721
3722
|
Ue as JobCancelledError,
|
|
3722
3723
|
Z as Lang,
|
|
3723
3724
|
me as Layouts,
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3725
|
+
jl as Link,
|
|
3726
|
+
Nn as LoadingModal,
|
|
3727
|
+
lt as MOBILE_BREAKPOINT,
|
|
3727
3728
|
P as Markdown,
|
|
3728
3729
|
se as Modal,
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3730
|
+
wt as ModalContext,
|
|
3731
|
+
Un as ProgressBar,
|
|
3732
|
+
ea as PromptModal,
|
|
3733
|
+
_r as Select,
|
|
3734
|
+
ht as SelectLabel,
|
|
3734
3735
|
Fe as SelectOption,
|
|
3735
|
-
|
|
3736
|
-
|
|
3736
|
+
gt as SelectOptions,
|
|
3737
|
+
vt as SelectTrigger,
|
|
3737
3738
|
we as Service,
|
|
3738
3739
|
Te as ServiceBootError,
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3740
|
+
Lr as Setting,
|
|
3741
|
+
Bl as SettingsModal,
|
|
3742
|
+
va as StartupCrash,
|
|
3743
|
+
at as Storage,
|
|
3744
|
+
zr as Switch,
|
|
3745
|
+
Fl as TextArea,
|
|
3746
|
+
wa as Toast,
|
|
3746
3747
|
z as UI,
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3748
|
+
dr as UIService,
|
|
3749
|
+
pl as __valueType,
|
|
3750
|
+
nr as aerogelDirectives,
|
|
3751
|
+
zs as appNamespace,
|
|
3752
|
+
$l as booleanInput,
|
|
3751
3753
|
$e as bootServices,
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
+
Ll as bootstrap,
|
|
3755
|
+
xa as bootstrapApplication,
|
|
3754
3756
|
M as classes,
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3757
|
+
hl as computedAsync,
|
|
3758
|
+
gl as computedDebounce,
|
|
3759
|
+
_l as dateInput,
|
|
3760
|
+
cl as defineDirective,
|
|
3761
|
+
dl as defineFormValidationRule,
|
|
3762
|
+
ul as definePlugin,
|
|
3761
3763
|
ye as defineServiceState,
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3764
|
+
As as defineServiceStore,
|
|
3765
|
+
il as defineSettings,
|
|
3766
|
+
Ol as dispatch,
|
|
3767
|
+
xl as enumInput,
|
|
3768
|
+
ot as getCurrentLayout,
|
|
3769
|
+
yt as getErrorMessage,
|
|
3770
|
+
tr as getMarkdownRouter,
|
|
3771
|
+
Ps as getPiniaStore,
|
|
3772
|
+
vr as hasSelectOptionLabel,
|
|
3773
|
+
Ns as injectOrFail,
|
|
3774
|
+
Os as injectReactive,
|
|
3773
3775
|
V as injectReactiveOrFail,
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3776
|
+
Fs as installPlugins,
|
|
3777
|
+
Hl as numberInput,
|
|
3778
|
+
El as objectInput,
|
|
3779
|
+
ml as onCleanMounted,
|
|
3780
|
+
st as onFormFocus,
|
|
3781
|
+
fl as persistent,
|
|
3782
|
+
wl as registerErrorHandler,
|
|
3783
|
+
sr as renderMarkdown,
|
|
3782
3784
|
Ge as renderVNode,
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3785
|
+
yl as replaceExisting,
|
|
3786
|
+
Cl as requiredBooleanInput,
|
|
3787
|
+
kl as requiredDateInput,
|
|
3788
|
+
Sl as requiredEnumInput,
|
|
3789
|
+
Tl as requiredNumberInput,
|
|
3790
|
+
Ml as requiredObjectInput,
|
|
3791
|
+
Xn as requiredStringInput,
|
|
3792
|
+
Rs as resetPiniaStore,
|
|
3793
|
+
nt as safeHtml,
|
|
3794
|
+
vl as setMarkdownRouter,
|
|
3795
|
+
Vl as stringInput,
|
|
3796
|
+
it as translate,
|
|
3795
3797
|
S as translateWithDefault,
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3798
|
+
en as useAlertModal,
|
|
3799
|
+
sn as useConfirmModal,
|
|
3800
|
+
En as useErrorReportModal,
|
|
3801
|
+
tt as useEvent,
|
|
3802
|
+
rt as useForm,
|
|
3801
3803
|
Ie as useInputAttrs,
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3804
|
+
On as useLoadingModal,
|
|
3805
|
+
Yn as usePromptModal,
|
|
3806
|
+
Zs as validate,
|
|
3807
|
+
Js as validateType,
|
|
3806
3808
|
de as validators,
|
|
3807
|
-
|
|
3809
|
+
et as variantClasses
|
|
3808
3810
|
};
|
|
3809
3811
|
//# sourceMappingURL=aerogel-core.js.map
|