@aerogel/core 0.0.0-next.e4c0d5bd2801fbe93545477ea515af53df69b522 → 0.0.0-next.ec720bb060627e76b204dc15f6bf955d11a77cbc
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 +98 -31
- package/dist/aerogel-core.js +1261 -1089
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +2 -1
- package/src/components/headless/HeadlessInputInput.vue +2 -2
- package/src/components/headless/HeadlessSwitch.vue +96 -0
- package/src/components/headless/index.ts +1 -0
- package/src/components/ui/Button.vue +15 -0
- package/src/components/ui/Modal.vue +12 -4
- package/src/components/ui/SelectLabel.vue +5 -1
- package/src/components/ui/Setting.vue +31 -0
- package/src/components/ui/Switch.vue +11 -0
- package/src/components/ui/index.ts +2 -0
- package/src/errors/index.ts +6 -2
- package/src/errors/settings/Debug.vue +32 -0
- package/src/errors/settings/index.ts +10 -0
- package/src/lang/index.ts +1 -1
- package/src/lang/settings/Language.vue +1 -1
- package/src/services/index.ts +2 -2
- package/src/testing/index.ts +4 -0
- package/src/ui/UI.ts +20 -4
package/dist/aerogel-core.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
var xt = Object.defineProperty;
|
|
2
2
|
var Ct = (t, s, e) => s in t ? xt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
|
-
var
|
|
4
|
-
import { markRaw as
|
|
5
|
-
import { JSError as
|
|
3
|
+
var $ = (t, s, e) => Ct(t, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { markRaw as P, Comment as St, Text as kt, Static as Mt, inject as se, reactive as pe, nextTick as qe, unref as o, defineComponent as g, computed as u, createBlock as h, openBlock as c, mergeProps as H, withCtx as f, renderSlot as w, createPropsRestProxy as J, onUnmounted as fe, ref as B, readonly as he, useAttrs as Fe, onMounted as Et, watch as Ee, toRaw as Ht, watchEffect as Z, createVNode as m, normalizeProps as re, guardReactiveProps as ne, createTextVNode as A, toDisplayString as S, normalizeClass as C, createElementBlock as b, Fragment as j, renderList as F, provide as ae, resolveDynamicComponent as N, useSlots as He, createCommentVNode as M, createElementVNode as y, h as Vt, toRef as Te, useTemplateRef as le, withModifiers as Ue, withDirectives as Oe, vModelCheckbox as Lt, normalizeStyle as It, createApp as Tt, vModelText as Rt } from "vue";
|
|
5
|
+
import { JSError as ge, tap as X, MagicObject as Ne, PromisedValue as W, Storage as U, objectOnly as oe, arrayFrom as We, isEmpty as $e, objectDeepClone as Pt, fail as K, facade as Y, arrayRemove as Ce, getEnv as At, updateLocationQueryParameters as zt, forever as Dt, toString as q, isDevelopment as ee, isTesting as Ve, after as ce, uuid as te, required as jt, isObject as ue, objectWithoutEmpty as Ke, stringMatchAll as Qe, objectWithout as Bt, noop as qt, debounce as Ft, value as Ut, isInstanceOf as Re, stringExcerpt as Ot, arraySorted as Nt, ListenersManager as Wt, toError as Kt, round as Qt } from "@noeldemartin/utils";
|
|
6
6
|
import O from "virtual:aerogel";
|
|
7
|
-
import { createPinia as Jt, setActivePinia as Zt, defineStore as
|
|
8
|
-
import
|
|
9
|
-
import { marked as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
class
|
|
7
|
+
import { createPinia as Jt, setActivePinia as Zt, defineStore as Xt } from "pinia";
|
|
8
|
+
import Yt from "dompurify";
|
|
9
|
+
import { marked as Gt, Renderer as Pe } from "marked";
|
|
10
|
+
import es from "clsx";
|
|
11
|
+
import { cva as ts } from "class-variance-authority";
|
|
12
|
+
import { twMerge as ss } from "tailwind-merge";
|
|
13
|
+
import { Primitive as rs, SelectValue as Ae, SelectTrigger as ns, SelectIcon as as, SelectItem as ls, SelectItemText as os, SelectPortal as is, SelectContent as cs, SelectViewport as us, SelectRoot as ds, Label as ps, useForwardExpose as Le, SwitchRoot as ms, SwitchThumb as fs, DialogRoot as hs, DialogPortal as gs, DialogContent as vs, DialogDescription as bs, DialogOverlay as ys, DialogTitle as ws, ToastClose as $s, ToastRoot as _s, ToastProvider as xs, ToastViewport as Cs, DropdownMenuItem as Ss, DropdownMenuContent as ks, DropdownMenuRoot as Ms, DropdownMenuTrigger as Es, DropdownMenuPortal as Hs } from "reka-ui";
|
|
14
|
+
class Se extends ge {
|
|
15
15
|
constructor(s, e) {
|
|
16
16
|
super(`Service '${s}' failed booting`, { cause: e });
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
let
|
|
19
|
+
let Ie = null;
|
|
20
20
|
function Je() {
|
|
21
|
-
return
|
|
21
|
+
return Ie ?? Vs();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
return
|
|
25
|
-
|
|
23
|
+
function Vs() {
|
|
24
|
+
return X(Jt(), (t) => {
|
|
25
|
+
Ie = t, Zt(t);
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function Ls() {
|
|
29
|
+
return Ie ?? Je();
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return Je(),
|
|
31
|
+
function Is(t, s) {
|
|
32
|
+
return Je(), Xt(t, s)();
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function ve(t) {
|
|
35
35
|
var s;
|
|
36
|
-
return s = class extends
|
|
36
|
+
return s = class extends be {
|
|
37
37
|
usesStore() {
|
|
38
38
|
return !0;
|
|
39
39
|
}
|
|
@@ -67,19 +67,19 @@ To fix this problem, declare your initialState as a function instead.`
|
|
|
67
67
|
var r;
|
|
68
68
|
return ((r = t.restore) == null ? void 0 : r.call(t, e)) ?? e;
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, $(s, "persist", t.persist ?? []), s;
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
let
|
|
72
|
+
var xe;
|
|
73
|
+
let be = (xe = class extends Ne {
|
|
74
74
|
constructor() {
|
|
75
75
|
super();
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
$(this, "_name");
|
|
77
|
+
$(this, "_booted");
|
|
78
|
+
$(this, "_computedStateKeys");
|
|
79
|
+
$(this, "_watchers");
|
|
80
|
+
$(this, "_store");
|
|
81
81
|
const e = this.getComputedStateDefinition();
|
|
82
|
-
this._name = this.getName() ?? new.target.name, this._booted = new W(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() &&
|
|
82
|
+
this._name = this.getName() ?? new.target.name, this._booted = new W(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && Is(this._name, {
|
|
83
83
|
state: () => this.getInitialState(),
|
|
84
84
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
85
85
|
getters: e
|
|
@@ -92,7 +92,7 @@ let ge = (we = class extends Ne {
|
|
|
92
92
|
return super.static(e);
|
|
93
93
|
}
|
|
94
94
|
launch() {
|
|
95
|
-
const e = (r) => this._booted.reject(new
|
|
95
|
+
const e = (r) => this._booted.reject(new Se(this._name, r));
|
|
96
96
|
try {
|
|
97
97
|
this.frameworkBoot().then(() => this.boot()).then(() => this._booted.resolve()).catch(e);
|
|
98
98
|
} catch (r) {
|
|
@@ -113,14 +113,14 @@ let ge = (we = class extends Ne {
|
|
|
113
113
|
setState(e, r) {
|
|
114
114
|
if (!this._store)
|
|
115
115
|
return;
|
|
116
|
-
const n = typeof e == "string" ? { [e]: r } : e, a =
|
|
116
|
+
const n = typeof e == "string" ? { [e]: r } : e, a = oe(this._store.$state, Object.keys(n));
|
|
117
117
|
Object.assign(this._store.$state, n), this.onStateUpdated(n, a);
|
|
118
118
|
}
|
|
119
119
|
updatePersistedState(e) {
|
|
120
120
|
if (!this._store)
|
|
121
121
|
return;
|
|
122
|
-
const r = We(e), n =
|
|
123
|
-
|
|
122
|
+
const r = We(e), n = oe(this._store.$state, r);
|
|
123
|
+
$e(n) || this.onPersistentStateUpdated(n);
|
|
124
124
|
}
|
|
125
125
|
__get(e) {
|
|
126
126
|
return this.hasState(e) ? this.getState(e) : super.__get(e);
|
|
@@ -129,11 +129,11 @@ let ge = (we = class extends Ne {
|
|
|
129
129
|
this.setState({ [e]: r });
|
|
130
130
|
}
|
|
131
131
|
onStateUpdated(e, r) {
|
|
132
|
-
const n =
|
|
133
|
-
|
|
132
|
+
const n = oe(e, this.static("persist"));
|
|
133
|
+
$e(n) || this.onPersistentStateUpdated(n);
|
|
134
134
|
for (const a in e) {
|
|
135
|
-
const
|
|
136
|
-
!
|
|
135
|
+
const i = this._watchers[a];
|
|
136
|
+
!i || e[a] === r[a] || i.call(this, e[a], r[a]);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
onPersistentStateUpdated(e) {
|
|
@@ -170,28 +170,28 @@ let ge = (we = class extends Ne {
|
|
|
170
170
|
async boot() {
|
|
171
171
|
}
|
|
172
172
|
restorePersistedState() {
|
|
173
|
-
if (!(!this.usesStore() ||
|
|
173
|
+
if (!(!this.usesStore() || $e(this.static("persist")))) {
|
|
174
174
|
if (U.has(this._name)) {
|
|
175
175
|
const e = U.require(this._name);
|
|
176
176
|
this.setState(this.deserializePersistedState(e));
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
U.set(this._name,
|
|
179
|
+
U.set(this._name, oe(this.getState(), this.static("persist")));
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
requireStore() {
|
|
183
183
|
return this._store ? this._store : K(`Failed getting '${this._name}' store`);
|
|
184
184
|
}
|
|
185
|
-
},
|
|
186
|
-
const
|
|
185
|
+
}, $(xe, "persist", []), xe);
|
|
186
|
+
const qa = {
|
|
187
187
|
Low: -256,
|
|
188
188
|
Default: 0,
|
|
189
189
|
High: 256
|
|
190
190
|
};
|
|
191
|
-
class
|
|
191
|
+
class Ts extends be {
|
|
192
192
|
constructor() {
|
|
193
193
|
super(...arguments);
|
|
194
|
-
|
|
194
|
+
$(this, "listeners", {});
|
|
195
195
|
}
|
|
196
196
|
async boot() {
|
|
197
197
|
Object.entries(globalThis.__aerogelEvents__ ?? {}).forEach(([e, r]) => (
|
|
@@ -202,50 +202,50 @@ class Is extends ge {
|
|
|
202
202
|
async emit(e, r) {
|
|
203
203
|
var a;
|
|
204
204
|
const n = this.listeners[e] ?? { priorities: [], handlers: {} };
|
|
205
|
-
for (const
|
|
206
|
-
await Promise.all(((a = n.handlers[
|
|
205
|
+
for (const i of n.priorities)
|
|
206
|
+
await Promise.all(((a = n.handlers[i]) == null ? void 0 : a.map((l) => l(r))) ?? []);
|
|
207
207
|
}
|
|
208
208
|
// prettier-ignore
|
|
209
209
|
/* eslint-enable max-len */
|
|
210
210
|
on(e, r, n) {
|
|
211
|
-
const a = typeof r == "function" ? {} : typeof r == "number" ? { priority: r } : r,
|
|
212
|
-
return this.registerListener(e, a,
|
|
211
|
+
const a = typeof r == "function" ? {} : typeof r == "number" ? { priority: r } : r, i = typeof r == "function" ? r : n;
|
|
212
|
+
return this.registerListener(e, a, i), () => this.off(e, i);
|
|
213
213
|
}
|
|
214
214
|
// prettier-ignore
|
|
215
215
|
/* eslint-enable max-len */
|
|
216
216
|
once(e, r, n) {
|
|
217
217
|
let a = null;
|
|
218
|
-
const
|
|
219
|
-
return
|
|
218
|
+
const i = typeof r == "function" ? {} : r, l = typeof r == "function" ? r : n;
|
|
219
|
+
return X(
|
|
220
220
|
() => a && this.off(e, a),
|
|
221
221
|
(d) => {
|
|
222
|
-
a = (...v) => (d(),
|
|
222
|
+
a = (...v) => (d(), l(...v)), this.registerListener(e, i, l);
|
|
223
223
|
}
|
|
224
224
|
);
|
|
225
225
|
}
|
|
226
226
|
off(e, r) {
|
|
227
|
-
var
|
|
227
|
+
var i;
|
|
228
228
|
const n = this.listeners[e];
|
|
229
229
|
if (!n)
|
|
230
230
|
return;
|
|
231
231
|
const a = [...n.priorities];
|
|
232
|
-
for (const
|
|
233
|
-
|
|
232
|
+
for (const l of a)
|
|
233
|
+
Ce(n.handlers[l] ?? [], r), ((i = n.handlers[l]) == null ? void 0 : i.length) === 0 && (delete n.handlers[l], Ce(n.priorities, l));
|
|
234
234
|
n.priorities.length === 0 && delete this.listeners[e];
|
|
235
235
|
}
|
|
236
236
|
registerListener(e, r, n) {
|
|
237
237
|
var d, v, x;
|
|
238
238
|
const a = r.priority ?? 0;
|
|
239
239
|
e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
|
|
240
|
-
const
|
|
241
|
-
|
|
240
|
+
const i = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? K(`priorities missing for event '${e}'`), l = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? K(`handlers missing for event '${e}'`);
|
|
241
|
+
i.includes(a) || (i.push(a), i.sort((p, _) => _ - p), l[a] = []), (x = l[a]) == null || x.push(n);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
const
|
|
245
|
-
function
|
|
244
|
+
const I = Y(Ts);
|
|
245
|
+
function Fa(t) {
|
|
246
246
|
return t;
|
|
247
247
|
}
|
|
248
|
-
const
|
|
248
|
+
const Rs = ve({
|
|
249
249
|
name: "app",
|
|
250
250
|
initialState: {
|
|
251
251
|
plugins: {},
|
|
@@ -267,12 +267,12 @@ const Ts = he({
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
|
-
class
|
|
270
|
+
class Ps extends Rs {
|
|
271
271
|
constructor() {
|
|
272
272
|
super(...arguments);
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
$(this, "name", O.name);
|
|
274
|
+
$(this, "ready", new W());
|
|
275
|
+
$(this, "mounted", new W());
|
|
276
276
|
}
|
|
277
277
|
isReady() {
|
|
278
278
|
return this.ready.isResolved();
|
|
@@ -281,13 +281,13 @@ class Vs extends Ts {
|
|
|
281
281
|
return this.mounted.isResolved();
|
|
282
282
|
}
|
|
283
283
|
addSetting(e) {
|
|
284
|
-
this.settings.push(
|
|
284
|
+
this.settings.push(P(e));
|
|
285
285
|
}
|
|
286
286
|
async whenReady(e) {
|
|
287
287
|
return await this.ready.then(e);
|
|
288
288
|
}
|
|
289
289
|
async reload(e) {
|
|
290
|
-
e && zt(e), location.reload(), await
|
|
290
|
+
e && zt(e), location.reload(), await Dt();
|
|
291
291
|
}
|
|
292
292
|
plugin(e) {
|
|
293
293
|
return this.plugins[e] ?? null;
|
|
@@ -297,15 +297,15 @@ class Vs extends Ts {
|
|
|
297
297
|
return ((r = this.instance) == null ? void 0 : r.config.globalProperties[e]) ?? null;
|
|
298
298
|
}
|
|
299
299
|
async boot() {
|
|
300
|
-
|
|
300
|
+
I.once("application-ready", () => this.ready.resolve()), I.once("application-mounted", () => this.mounted.resolve());
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
const
|
|
304
|
-
function
|
|
303
|
+
const D = Y(Ps);
|
|
304
|
+
function Ua(t) {
|
|
305
305
|
return t;
|
|
306
306
|
}
|
|
307
|
-
async function
|
|
308
|
-
|
|
307
|
+
async function As(t, ...s) {
|
|
308
|
+
D.setState(
|
|
309
309
|
"plugins",
|
|
310
310
|
t.reduce(
|
|
311
311
|
(e, r) => (r.name && (e[r.name] = r), e),
|
|
@@ -313,55 +313,55 @@ async function Rs(t, ...s) {
|
|
|
313
313
|
)
|
|
314
314
|
), await Promise.all(t.map((e) => e.install(...s)) ?? []);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${
|
|
316
|
+
function zs(t) {
|
|
317
|
+
return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${q(r)}"`, "");
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Oa(t) {
|
|
320
320
|
return t;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
const s =
|
|
324
|
-
return s ?
|
|
322
|
+
function Ds(t) {
|
|
323
|
+
const s = se(t);
|
|
324
|
+
return s ? pe(s) : void 0;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
return
|
|
326
|
+
function V(t, s) {
|
|
327
|
+
return Ds(t) ?? K(s ?? `Could not resolve '${q(t)}' injection key`);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
329
|
+
function js(t, s) {
|
|
330
|
+
return se(t) ?? K(s ?? `Could not resolve '${q(t)}' injection key`);
|
|
331
331
|
}
|
|
332
332
|
function Ze(t) {
|
|
333
333
|
return typeof t == "string" ? t : t.type === St ? "" : t.type === kt || t.type === Mt ? t.children : t.type === "br" ? `
|
|
334
334
|
|
|
335
|
-
` : `<${t.type} ${
|
|
335
|
+
` : `<${t.type} ${zs(t)}>${Array.from(t.children).map(Ze).join("")}</${t.type}>`;
|
|
336
336
|
}
|
|
337
|
-
const _e = /* @__PURE__ */ new WeakMap(),
|
|
337
|
+
const _e = /* @__PURE__ */ new WeakMap(), Bs = {
|
|
338
338
|
mounted(t, { value: s, modifiers: e }) {
|
|
339
339
|
const r = typeof s == "function" ? s : null, n = () => {
|
|
340
340
|
const a = t.getBoundingClientRect();
|
|
341
341
|
e.css && (t.style.setProperty("--width", `${a.width}px`), t.style.setProperty("--height", `${a.height}px`)), r == null || r({ width: a.width, height: a.height });
|
|
342
342
|
};
|
|
343
|
-
e.watch && _e.set(t,
|
|
343
|
+
e.watch && _e.set(t, X(new ResizeObserver(n)).observe(t)), n();
|
|
344
344
|
},
|
|
345
345
|
unmounted(t) {
|
|
346
346
|
var s;
|
|
347
347
|
(s = _e.get(t)) == null || s.unobserve(t), _e.delete(t);
|
|
348
348
|
}
|
|
349
|
-
},
|
|
350
|
-
measure:
|
|
351
|
-
},
|
|
349
|
+
}, qs = {
|
|
350
|
+
measure: Bs
|
|
351
|
+
}, Fs = {
|
|
352
352
|
install(t, s) {
|
|
353
353
|
const e = {
|
|
354
|
-
...
|
|
354
|
+
...qs,
|
|
355
355
|
...s.directives
|
|
356
356
|
};
|
|
357
357
|
for (const [r, n] of Object.entries(e))
|
|
358
358
|
t.directive(r, n);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
|
-
class
|
|
361
|
+
class Us extends be {
|
|
362
362
|
constructor() {
|
|
363
363
|
super(...arguments);
|
|
364
|
-
|
|
364
|
+
$(this, "cache");
|
|
365
365
|
}
|
|
366
366
|
async get(e) {
|
|
367
367
|
return await (await this.open()).match(e) ?? null;
|
|
@@ -374,73 +374,73 @@ class qs extends ge {
|
|
|
374
374
|
(await n.keys(e)).length !== 0 && await n.put(e, r);
|
|
375
375
|
}
|
|
376
376
|
async open() {
|
|
377
|
-
return this.cache = this.cache ??
|
|
377
|
+
return this.cache = this.cache ?? X(new W(), (e) => {
|
|
378
378
|
caches.open("app").then((r) => e.resolve(r));
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
const
|
|
383
|
-
class
|
|
382
|
+
const Na = Y(Us);
|
|
383
|
+
class Os extends be {
|
|
384
384
|
async purge() {
|
|
385
|
-
await
|
|
385
|
+
await I.emit("purge-storage");
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
388
|
+
const Ns = Y(Os);
|
|
389
|
+
function Wa(t, s) {
|
|
390
390
|
return {
|
|
391
391
|
...t,
|
|
392
|
-
...
|
|
392
|
+
...oe(s, Object.keys(t))
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
const
|
|
396
|
-
$app:
|
|
397
|
-
$events:
|
|
398
|
-
$storage:
|
|
395
|
+
const Ws = {
|
|
396
|
+
$app: D,
|
|
397
|
+
$events: I,
|
|
398
|
+
$storage: Ns
|
|
399
399
|
};
|
|
400
|
-
async function
|
|
400
|
+
async function ye(t, s) {
|
|
401
401
|
await Promise.all(
|
|
402
402
|
Object.entries(s).map(async ([e, r]) => {
|
|
403
403
|
await r.launch().catch((n) => {
|
|
404
|
-
var a,
|
|
405
|
-
return (
|
|
404
|
+
var a, i;
|
|
405
|
+
return (i = (a = t.config).errorHandler) == null ? void 0 : i.call(a, n, null, `Failed launching ${e}.`);
|
|
406
406
|
});
|
|
407
407
|
})
|
|
408
|
-
), Object.assign(t.config.globalProperties, s), (
|
|
408
|
+
), Object.assign(t.config.globalProperties, s), (ee() || Ve()) && Object.assign(globalThis, s);
|
|
409
409
|
}
|
|
410
|
-
const
|
|
410
|
+
const Ks = {
|
|
411
411
|
async install(t, s) {
|
|
412
412
|
var r;
|
|
413
413
|
const e = {
|
|
414
|
-
...
|
|
414
|
+
...Ws,
|
|
415
415
|
...s.services
|
|
416
416
|
};
|
|
417
|
-
t.use(
|
|
417
|
+
t.use(Ls()), (r = s.settings) == null || r.forEach((n) => D.addSetting(n)), await ye(t, e);
|
|
418
418
|
}
|
|
419
|
-
},
|
|
419
|
+
}, Xe = 768, me = {
|
|
420
420
|
Mobile: "mobile",
|
|
421
421
|
Desktop: "desktop"
|
|
422
422
|
};
|
|
423
|
-
function
|
|
424
|
-
return globalThis.innerWidth >
|
|
423
|
+
function Ye() {
|
|
424
|
+
return globalThis.innerWidth > Xe ? me.Desktop : me.Mobile;
|
|
425
425
|
}
|
|
426
|
-
const
|
|
426
|
+
const Qs = ve({
|
|
427
427
|
name: "ui",
|
|
428
428
|
initialState: {
|
|
429
429
|
modals: [],
|
|
430
430
|
toasts: [],
|
|
431
|
-
layout:
|
|
431
|
+
layout: Ye()
|
|
432
432
|
},
|
|
433
433
|
computed: {
|
|
434
|
-
desktop: ({ layout: t }) => t ===
|
|
435
|
-
mobile: ({ layout: t }) => t ===
|
|
434
|
+
desktop: ({ layout: t }) => t === me.Desktop,
|
|
435
|
+
mobile: ({ layout: t }) => t === me.Mobile,
|
|
436
436
|
openModals: ({ modals: t }) => t.filter(({ closing: s }) => !s)
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
|
-
class
|
|
439
|
+
class Js extends Qs {
|
|
440
440
|
constructor() {
|
|
441
441
|
super(...arguments);
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
$(this, "modalCallbacks", {});
|
|
443
|
+
$(this, "components", {});
|
|
444
444
|
}
|
|
445
445
|
registerComponent(e, r) {
|
|
446
446
|
this.components[e] = r;
|
|
@@ -461,7 +461,7 @@ class Ks extends Ws {
|
|
|
461
461
|
// prettier-ignore
|
|
462
462
|
/* eslint-enable max-len */
|
|
463
463
|
async confirm(e, r, n) {
|
|
464
|
-
const
|
|
464
|
+
const i = typeof r != "string" ? {
|
|
465
465
|
...r ?? {},
|
|
466
466
|
message: e,
|
|
467
467
|
required: !!(r != null && r.required)
|
|
@@ -470,76 +470,89 @@ class Ks extends Ws {
|
|
|
470
470
|
title: e,
|
|
471
471
|
message: r,
|
|
472
472
|
required: !!(n != null && n.required)
|
|
473
|
-
},
|
|
474
|
-
(x, [
|
|
475
|
-
[
|
|
473
|
+
}, l = await this.modalForm(this.requireComponent("confirm-modal"), i), d = typeof l == "object" ? l[0] : l ?? !1, v = typeof l == "object" ? l[1] : Object.entries(i.checkboxes ?? {}).reduce(
|
|
474
|
+
(x, [p, { default: _ }]) => ({
|
|
475
|
+
[p]: _ ?? !1,
|
|
476
476
|
...x
|
|
477
477
|
}),
|
|
478
478
|
{}
|
|
479
479
|
);
|
|
480
|
-
for (const [x,
|
|
481
|
-
if (!(!
|
|
482
|
-
return d &&
|
|
483
|
-
return "checkboxes" in
|
|
480
|
+
for (const [x, p] of Object.entries(i.checkboxes ?? {}))
|
|
481
|
+
if (!(!p.required || v[x]))
|
|
482
|
+
return d && ee() && console.warn(`Confirmed confirm modal was suppressed because required '${x}' checkbox was missing`), [!1, v];
|
|
483
|
+
return "checkboxes" in i ? [d, v] : d;
|
|
484
484
|
}
|
|
485
485
|
async prompt(e, r, n) {
|
|
486
|
-
const a = (n == null ? void 0 : n.trim) ?? !0,
|
|
486
|
+
const a = (n == null ? void 0 : n.trim) ?? !0, i = () => typeof r != "string" ? {
|
|
487
487
|
message: e,
|
|
488
488
|
...r ?? {}
|
|
489
489
|
} : {
|
|
490
490
|
title: e,
|
|
491
491
|
message: r,
|
|
492
492
|
...n ?? {}
|
|
493
|
-
},
|
|
494
|
-
return (a && typeof
|
|
493
|
+
}, l = await this.modalForm(this.requireComponent("prompt-modal"), i());
|
|
494
|
+
return (a && typeof l == "string" ? l == null ? void 0 : l.trim() : l) ?? null;
|
|
495
495
|
}
|
|
496
496
|
async loading(e, r) {
|
|
497
|
-
const n = (
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
497
|
+
const n = (p) => typeof p == "function" ? Promise.resolve(p()) : p, a = () => {
|
|
498
|
+
if (typeof e == "string")
|
|
499
|
+
return {
|
|
500
|
+
props: { message: e },
|
|
501
|
+
operationPromise: n(r)
|
|
502
|
+
};
|
|
503
|
+
if (typeof e == "function" || e instanceof Promise)
|
|
504
|
+
return { operationPromise: n(e) };
|
|
505
|
+
const { delay: p, ..._ } = e;
|
|
506
|
+
return {
|
|
507
|
+
props: _,
|
|
508
|
+
delay: o(p),
|
|
509
|
+
operationPromise: n(r)
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
let i = !1;
|
|
513
|
+
const { operationPromise: l, props: d, delay: v } = a();
|
|
514
|
+
if (v && await Promise.race([ce({ ms: v }).then(() => i = !0), l]), v && !i)
|
|
515
|
+
return l;
|
|
516
|
+
const x = await this.modal(this.requireComponent("loading-modal"), d);
|
|
504
517
|
try {
|
|
505
|
-
const
|
|
506
|
-
return await
|
|
518
|
+
const p = await l;
|
|
519
|
+
return await ce({ ms: 500 }), p;
|
|
507
520
|
} finally {
|
|
508
|
-
await this.closeModal(
|
|
521
|
+
await this.closeModal(x.id);
|
|
509
522
|
}
|
|
510
523
|
}
|
|
511
524
|
toast(e, r = {}) {
|
|
512
|
-
const { component: n, ...a } = r,
|
|
513
|
-
id:
|
|
525
|
+
const { component: n, ...a } = r, i = {
|
|
526
|
+
id: te(),
|
|
514
527
|
properties: { message: e, ...a },
|
|
515
|
-
component:
|
|
528
|
+
component: P(n ?? this.requireComponent("toast"))
|
|
516
529
|
};
|
|
517
|
-
this.setState("toasts", this.toasts.concat(
|
|
530
|
+
this.setState("toasts", this.toasts.concat(i));
|
|
518
531
|
}
|
|
519
532
|
async modal(e, r) {
|
|
520
|
-
const n =
|
|
533
|
+
const n = te(), a = {}, i = {
|
|
521
534
|
id: n,
|
|
522
535
|
closing: !1,
|
|
523
536
|
properties: r ?? {},
|
|
524
|
-
component:
|
|
537
|
+
component: P(e),
|
|
525
538
|
beforeClose: new Promise((d) => a.willClose = d),
|
|
526
539
|
afterClose: new Promise((d) => a.hasClosed = d)
|
|
527
|
-
},
|
|
528
|
-
return this.modalCallbacks[
|
|
540
|
+
}, l = this.modals.concat(i);
|
|
541
|
+
return this.modalCallbacks[i.id] = a, this.setState({ modals: l }), await qe(), i;
|
|
529
542
|
}
|
|
530
543
|
async modalForm(e, r) {
|
|
531
544
|
return await (await this.modal(e, r)).beforeClose;
|
|
532
545
|
}
|
|
533
546
|
async closeModal(e, r) {
|
|
534
|
-
if (!
|
|
547
|
+
if (!D.isMounted()) {
|
|
535
548
|
await this.removeModal(e, r);
|
|
536
549
|
return;
|
|
537
550
|
}
|
|
538
|
-
await
|
|
551
|
+
await I.emit("close-modal", { id: e, result: r });
|
|
539
552
|
}
|
|
540
553
|
async closeAllModals() {
|
|
541
554
|
for (; this.modals.length > 0; )
|
|
542
|
-
await this.closeModal(
|
|
555
|
+
await this.closeModal(jt(this.modals[this.modals.length - 1]).id);
|
|
543
556
|
}
|
|
544
557
|
async boot() {
|
|
545
558
|
this.watchModalEvents(), this.watchMountedEvent(), this.watchViewportBreakpoints();
|
|
@@ -548,34 +561,34 @@ class Ks extends Ws {
|
|
|
548
561
|
var n, a;
|
|
549
562
|
this.setState(
|
|
550
563
|
"modals",
|
|
551
|
-
this.modals.filter((
|
|
564
|
+
this.modals.filter((i) => i.id !== e)
|
|
552
565
|
), (a = (n = this.modalCallbacks[e]) == null ? void 0 : n.hasClosed) == null || a.call(n, r), delete this.modalCallbacks[e];
|
|
553
566
|
}
|
|
554
567
|
watchModalEvents() {
|
|
555
|
-
|
|
556
|
-
var a,
|
|
557
|
-
const n = this.modals.find((
|
|
558
|
-
n && (n.closing = !0), (
|
|
559
|
-
}),
|
|
568
|
+
I.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
|
|
569
|
+
var a, i;
|
|
570
|
+
const n = this.modals.find((l) => e === l.id);
|
|
571
|
+
n && (n.closing = !0), (i = (a = this.modalCallbacks[e]) == null ? void 0 : a.willClose) == null || i.call(a, r);
|
|
572
|
+
}), I.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
|
|
560
573
|
await this.removeModal(e, r);
|
|
561
574
|
});
|
|
562
575
|
}
|
|
563
576
|
watchMountedEvent() {
|
|
564
|
-
|
|
577
|
+
I.once("application-mounted", async () => {
|
|
565
578
|
if (!globalThis.document || !globalThis.getComputedStyle)
|
|
566
579
|
return;
|
|
567
580
|
const e = globalThis.document.getElementById("splash");
|
|
568
|
-
e && (globalThis.getComputedStyle(e).opacity !== "0" && (e.style.opacity = "0", await
|
|
581
|
+
e && (globalThis.getComputedStyle(e).opacity !== "0" && (e.style.opacity = "0", await ce({ ms: 600 })), e.remove());
|
|
569
582
|
});
|
|
570
583
|
}
|
|
571
584
|
watchViewportBreakpoints() {
|
|
572
585
|
if (!globalThis.matchMedia)
|
|
573
586
|
return;
|
|
574
|
-
globalThis.matchMedia(`(min-width: ${
|
|
587
|
+
globalThis.matchMedia(`(min-width: ${Xe}px)`).addEventListener("change", () => this.setState({ layout: Ye() }));
|
|
575
588
|
}
|
|
576
589
|
}
|
|
577
|
-
const
|
|
578
|
-
class
|
|
590
|
+
const R = Y(Js);
|
|
591
|
+
class Zs {
|
|
579
592
|
constructor(s, e) {
|
|
580
593
|
this.locale = s, this.fallbackLocale = e;
|
|
581
594
|
}
|
|
@@ -595,13 +608,13 @@ class Qs {
|
|
|
595
608
|
return ["en"];
|
|
596
609
|
}
|
|
597
610
|
translate(s) {
|
|
598
|
-
return
|
|
611
|
+
return ee() && console.warn("Lang provider is missing"), s;
|
|
599
612
|
}
|
|
600
613
|
translateWithDefault(s, e) {
|
|
601
|
-
return
|
|
614
|
+
return ee() && console.warn("Lang provider is missing"), e;
|
|
602
615
|
}
|
|
603
616
|
}
|
|
604
|
-
const
|
|
617
|
+
const Xs = ve({
|
|
605
618
|
name: "lang",
|
|
606
619
|
persist: ["locale", "fallbackLocale"],
|
|
607
620
|
initialState: {
|
|
@@ -610,11 +623,11 @@ const Js = he({
|
|
|
610
623
|
fallbackLocale: "en"
|
|
611
624
|
}
|
|
612
625
|
});
|
|
613
|
-
class
|
|
626
|
+
class Ys extends Xs {
|
|
614
627
|
constructor() {
|
|
615
628
|
super();
|
|
616
|
-
|
|
617
|
-
this.provider = new
|
|
629
|
+
$(this, "provider");
|
|
630
|
+
this.provider = new Zs(
|
|
618
631
|
this.getState("locale") ?? this.getBrowserLocale(),
|
|
619
632
|
this.getState("fallbackLocale")
|
|
620
633
|
);
|
|
@@ -642,7 +655,7 @@ class Zs extends Js {
|
|
|
642
655
|
);
|
|
643
656
|
}
|
|
644
657
|
}
|
|
645
|
-
const Q =
|
|
658
|
+
const Q = Y(Ys), Ge = Q.translate.bind(Q), k = Q.translateWithDefault.bind(Q), Gs = ve({
|
|
646
659
|
name: "errors",
|
|
647
660
|
initialState: {
|
|
648
661
|
logs: [],
|
|
@@ -654,11 +667,11 @@ const Q = G(Zs), Ye = Q.translate.bind(Q), S = Q.translateWithDefault.bind(Q), G
|
|
|
654
667
|
hasStartupErrors: ({ startupErrors: t }) => t.length > 0
|
|
655
668
|
}
|
|
656
669
|
});
|
|
657
|
-
class
|
|
670
|
+
class er extends Gs {
|
|
658
671
|
constructor() {
|
|
659
672
|
super(...arguments);
|
|
660
|
-
|
|
661
|
-
|
|
673
|
+
$(this, "forceReporting", !1);
|
|
674
|
+
$(this, "enabled", !0);
|
|
662
675
|
}
|
|
663
676
|
enable() {
|
|
664
677
|
this.enabled = !0;
|
|
@@ -668,18 +681,18 @@ class Xs extends Gs {
|
|
|
668
681
|
}
|
|
669
682
|
async inspect(e, r) {
|
|
670
683
|
if (Array.isArray(e) && e.length === 0) {
|
|
671
|
-
|
|
684
|
+
R.alert(k("errors.inspectEmpty", "Nothing to inspect!"));
|
|
672
685
|
return;
|
|
673
686
|
}
|
|
674
687
|
const n = Array.isArray(e) ? e[0] : this.isErrorReport(e) ? e : await this.createErrorReport(e), a = Array.isArray(e) ? e : r ?? [n];
|
|
675
|
-
|
|
688
|
+
R.modal(R.requireComponent("error-report-modal"), { report: n, reports: a });
|
|
676
689
|
}
|
|
677
690
|
async report(e, r) {
|
|
678
|
-
if (await
|
|
691
|
+
if (await I.emit("error", { error: e, message: r }), Ve("unit") || (ee() && this.logError(e), !this.enabled))
|
|
679
692
|
throw e;
|
|
680
|
-
if (!
|
|
681
|
-
const
|
|
682
|
-
|
|
693
|
+
if (!D.isMounted()) {
|
|
694
|
+
const i = await this.createStartupErrorReport(e);
|
|
695
|
+
i && this.setState({ startupErrors: this.startupErrors.concat(i) });
|
|
683
696
|
return;
|
|
684
697
|
}
|
|
685
698
|
const n = await this.createErrorReport(e), a = {
|
|
@@ -687,15 +700,15 @@ class Xs extends Gs {
|
|
|
687
700
|
seen: !1,
|
|
688
701
|
date: /* @__PURE__ */ new Date()
|
|
689
702
|
};
|
|
690
|
-
|
|
691
|
-
r ??
|
|
703
|
+
R.toast(
|
|
704
|
+
r ?? k("errors.notice", "Something went wrong, but it's not your fault. Try again!"),
|
|
692
705
|
{
|
|
693
706
|
variant: "danger",
|
|
694
707
|
actions: [
|
|
695
708
|
{
|
|
696
|
-
label:
|
|
709
|
+
label: k("errors.viewDetails", "View details"),
|
|
697
710
|
dismiss: !0,
|
|
698
|
-
click: () =>
|
|
711
|
+
click: () => R.modal(R.requireComponent("error-report-modal"), { report: n, reports: [n] })
|
|
699
712
|
}
|
|
700
713
|
]
|
|
701
714
|
}
|
|
@@ -718,27 +731,27 @@ class Xs extends Gs {
|
|
|
718
731
|
});
|
|
719
732
|
}
|
|
720
733
|
logError(e) {
|
|
721
|
-
console.error(e),
|
|
734
|
+
console.error(e), ue(e) && e.cause && this.logError(e.cause);
|
|
722
735
|
}
|
|
723
736
|
isErrorReport(e) {
|
|
724
|
-
return
|
|
737
|
+
return ue(e) && "title" in e;
|
|
725
738
|
}
|
|
726
739
|
async createErrorReport(e) {
|
|
727
|
-
return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof
|
|
728
|
-
title:
|
|
729
|
-
e.name ?? e.title ??
|
|
740
|
+
return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof ge ? this.createErrorReportFromError(e) : ue(e) ? Ke({
|
|
741
|
+
title: q(
|
|
742
|
+
e.name ?? e.title ?? k("errors.unknown", "Unknown Error")
|
|
730
743
|
),
|
|
731
|
-
description:
|
|
732
|
-
e.message ?? e.description ??
|
|
744
|
+
description: q(
|
|
745
|
+
e.message ?? e.description ?? k("errors.unknownDescription", "Unknown error object")
|
|
733
746
|
),
|
|
734
747
|
error: e
|
|
735
748
|
}) : {
|
|
736
|
-
title:
|
|
749
|
+
title: k("errors.unknown", "Unknown Error"),
|
|
737
750
|
error: e
|
|
738
751
|
};
|
|
739
752
|
}
|
|
740
753
|
async createStartupErrorReport(e) {
|
|
741
|
-
return e instanceof
|
|
754
|
+
return e instanceof Se ? e.cause instanceof Se ? null : this.createErrorReport(e.cause) : this.createErrorReport(e);
|
|
742
755
|
}
|
|
743
756
|
createErrorReportFromError(e, r = {}) {
|
|
744
757
|
return {
|
|
@@ -750,110 +763,44 @@ class Xs extends Gs {
|
|
|
750
763
|
};
|
|
751
764
|
}
|
|
752
765
|
}
|
|
753
|
-
const et =
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
function st(t) {
|
|
758
|
-
for (const s of tt) {
|
|
759
|
-
const e = s(t);
|
|
760
|
-
if (e)
|
|
761
|
-
return e;
|
|
762
|
-
}
|
|
763
|
-
return typeof t == "string" ? t : t instanceof Error || t instanceof fe ? t.message : ce(t) ? D(t.message ?? t.description ?? "Unknown error object") : S("errors.unknown", "Unknown Error");
|
|
764
|
-
}
|
|
765
|
-
class ze extends fe {
|
|
766
|
-
}
|
|
767
|
-
const Ys = { $errors: et }, er = (t) => (et.report(t), !0);
|
|
768
|
-
function tr(t, s = () => !1) {
|
|
769
|
-
const e = (r) => s(r) || er(r);
|
|
770
|
-
t.config.errorHandler = e, globalThis.onerror = (r, n, a, l, c) => e(c ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
|
|
771
|
-
}
|
|
772
|
-
const sr = {
|
|
773
|
-
async install(t, s) {
|
|
774
|
-
tr(t, s.handleError), await ve(t, Ys);
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
let ae = null;
|
|
778
|
-
function rr() {
|
|
779
|
-
return Z(new Pe(), (t) => {
|
|
766
|
+
const et = Y(er);
|
|
767
|
+
let ie = null;
|
|
768
|
+
function tr() {
|
|
769
|
+
return X(new Pe(), (t) => {
|
|
780
770
|
t.link = function(s) {
|
|
781
771
|
const e = Pe.prototype.link.apply(this, [s]);
|
|
782
772
|
return s.href.startsWith("#") ? e : e.replace("<a", '<a target="_blank"');
|
|
783
773
|
};
|
|
784
774
|
});
|
|
785
775
|
}
|
|
786
|
-
function
|
|
776
|
+
function sr(t) {
|
|
787
777
|
const s = Qe(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
788
778
|
for (const [e, r, n] of s)
|
|
789
779
|
t = t.replace(e, `<button type="button" data-markdown-action="${r}">${n}</button>`);
|
|
790
780
|
return t;
|
|
791
781
|
}
|
|
792
|
-
function
|
|
782
|
+
function rr(t) {
|
|
793
783
|
const s = Qe(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
|
|
794
784
|
for (const [e, r, n] of s) {
|
|
795
|
-
const a = (
|
|
785
|
+
const a = (ie == null ? void 0 : ie.resolve(r)) ?? r;
|
|
796
786
|
t = t.replace(e, `<a data-markdown-route="${r}" href="${a}">${n}</a>`);
|
|
797
787
|
}
|
|
798
788
|
return t;
|
|
799
789
|
}
|
|
800
|
-
function
|
|
801
|
-
return
|
|
790
|
+
function nr() {
|
|
791
|
+
return ie;
|
|
802
792
|
}
|
|
803
|
-
function
|
|
804
|
-
|
|
793
|
+
function Ka(t) {
|
|
794
|
+
ie = t;
|
|
805
795
|
}
|
|
806
|
-
function
|
|
807
|
-
let s =
|
|
808
|
-
return s =
|
|
796
|
+
function ar(t) {
|
|
797
|
+
let s = Gt(t, { renderer: tr(), async: !1 });
|
|
798
|
+
return s = lr(s), s = sr(s), s = rr(s), s;
|
|
809
799
|
}
|
|
810
|
-
function
|
|
811
|
-
return
|
|
800
|
+
function lr(t) {
|
|
801
|
+
return Yt.sanitize(t, { ADD_ATTR: ["target"] });
|
|
812
802
|
}
|
|
813
|
-
const
|
|
814
|
-
__name: "Markdown",
|
|
815
|
-
props: {
|
|
816
|
-
as: {},
|
|
817
|
-
inline: { type: Boolean },
|
|
818
|
-
langKey: {},
|
|
819
|
-
langParams: {},
|
|
820
|
-
langDefault: {},
|
|
821
|
-
text: {},
|
|
822
|
-
actions: {}
|
|
823
|
-
},
|
|
824
|
-
setup(t) {
|
|
825
|
-
const s = Fe(), e = Me(), r = u(() => e.default ? e.default().map(Ze).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : Ye(t.langKey, t.langParams ?? {})))), n = u(() => {
|
|
826
|
-
if (!r.value)
|
|
827
|
-
return null;
|
|
828
|
-
let c = lr(r.value);
|
|
829
|
-
return t.inline && (c = c.replace("<p>", "<span>").replace("</p>", "</span>")), c;
|
|
830
|
-
}), a = () => Et(t.as ?? (t.inline ? "span" : "div"), {
|
|
831
|
-
innerHTML: n.value,
|
|
832
|
-
onClick: l,
|
|
833
|
-
...s,
|
|
834
|
-
class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
|
|
835
|
-
});
|
|
836
|
-
async function l(c) {
|
|
837
|
-
var v, x;
|
|
838
|
-
const { target: d } = c;
|
|
839
|
-
if (Re(d, HTMLElement) && d.dataset.markdownAction) {
|
|
840
|
-
(x = (v = t.actions) == null ? void 0 : v[d.dataset.markdownAction]) == null || x.call(v);
|
|
841
|
-
return;
|
|
842
|
-
}
|
|
843
|
-
if (Re(d, HTMLAnchorElement) && d.dataset.markdownRoute) {
|
|
844
|
-
const h = or();
|
|
845
|
-
h && (c.preventDefault(), h.visit(d.dataset.markdownRoute));
|
|
846
|
-
return;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
return (c, d) => (i(), f(a));
|
|
850
|
-
}
|
|
851
|
-
}), ur = (t, s) => {
|
|
852
|
-
const e = t.__vccOpts || t;
|
|
853
|
-
for (const [r, n] of s)
|
|
854
|
-
e[r] = n;
|
|
855
|
-
return e;
|
|
856
|
-
}, A = /* @__PURE__ */ ur(cr, [["__scopeId", "data-v-8b211cfb"]]), rt = /* @__PURE__ */ g({
|
|
803
|
+
const tt = /* @__PURE__ */ g({
|
|
857
804
|
__name: "HeadlessButton",
|
|
858
805
|
props: {
|
|
859
806
|
class: {},
|
|
@@ -870,7 +817,7 @@ const cr = /* @__PURE__ */ g({
|
|
|
870
817
|
},
|
|
871
818
|
setup(t) {
|
|
872
819
|
const s = u(() => t.as ? { as: t.as } : t.route ? {
|
|
873
|
-
as:
|
|
820
|
+
as: R.resolveComponent("router-link") ?? "a",
|
|
874
821
|
to: Ke({
|
|
875
822
|
name: t.route,
|
|
876
823
|
params: t.routeParams,
|
|
@@ -884,24 +831,24 @@ const cr = /* @__PURE__ */ g({
|
|
|
884
831
|
as: "button",
|
|
885
832
|
type: t.submit ? "submit" : "button"
|
|
886
833
|
});
|
|
887
|
-
return (e, r) => (
|
|
834
|
+
return (e, r) => (c(), h(o(rs), H({
|
|
888
835
|
class: t.class,
|
|
889
836
|
"as-child": e.asChild,
|
|
890
837
|
disabled: e.disabled
|
|
891
838
|
}, s.value), {
|
|
892
|
-
default:
|
|
893
|
-
|
|
839
|
+
default: f(() => [
|
|
840
|
+
w(e.$slots, "default")
|
|
894
841
|
]),
|
|
895
842
|
_: 3
|
|
896
843
|
}, 16, ["class", "as-child", "disabled"]));
|
|
897
844
|
}
|
|
898
845
|
});
|
|
899
|
-
function
|
|
900
|
-
const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s,
|
|
901
|
-
return E(
|
|
846
|
+
function st(t, s) {
|
|
847
|
+
const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, i = ts(n, a);
|
|
848
|
+
return E(i(r), o(e));
|
|
902
849
|
}
|
|
903
850
|
function E(...t) {
|
|
904
|
-
return
|
|
851
|
+
return ss(es(t));
|
|
905
852
|
}
|
|
906
853
|
const z = /* @__PURE__ */ g({
|
|
907
854
|
__name: "Button",
|
|
@@ -919,7 +866,7 @@ const z = /* @__PURE__ */ g({
|
|
|
919
866
|
as: {}
|
|
920
867
|
},
|
|
921
868
|
setup(t) {
|
|
922
|
-
const s = J(t, ["class", "size", "variant", "disabled"]), e = u(() =>
|
|
869
|
+
const s = J(t, ["class", "size", "variant", "disabled"]), e = u(() => st(
|
|
923
870
|
{ baseClasses: t.class, variant: t.variant, size: t.size, disabled: t.disabled },
|
|
924
871
|
{
|
|
925
872
|
baseClasses: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
@@ -990,6 +937,21 @@ const z = /* @__PURE__ */ g({
|
|
|
990
937
|
variant: "link",
|
|
991
938
|
disabled: !1,
|
|
992
939
|
class: "hover:underline"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
variant: "link",
|
|
943
|
+
size: "small",
|
|
944
|
+
class: "leading-6"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
variant: "link",
|
|
948
|
+
size: "default",
|
|
949
|
+
class: "leading-8"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
variant: "link",
|
|
953
|
+
size: "large",
|
|
954
|
+
class: "leading-10"
|
|
993
955
|
}
|
|
994
956
|
],
|
|
995
957
|
defaultVariants: {
|
|
@@ -999,60 +961,60 @@ const z = /* @__PURE__ */ g({
|
|
|
999
961
|
}
|
|
1000
962
|
}
|
|
1001
963
|
));
|
|
1002
|
-
return (r, n) => (
|
|
964
|
+
return (r, n) => (c(), h(tt, H({
|
|
1003
965
|
class: e.value,
|
|
1004
966
|
disabled: r.disabled
|
|
1005
967
|
}, s), {
|
|
1006
|
-
default:
|
|
1007
|
-
|
|
968
|
+
default: f(() => [
|
|
969
|
+
w(r.$slots, "default")
|
|
1008
970
|
]),
|
|
1009
971
|
_: 3
|
|
1010
972
|
}, 16, ["class", "disabled"]));
|
|
1011
973
|
}
|
|
1012
974
|
});
|
|
1013
|
-
function
|
|
975
|
+
function or(t) {
|
|
1014
976
|
return typeof t == "object" && t !== null && "label" in t;
|
|
1015
977
|
}
|
|
1016
|
-
function
|
|
1017
|
-
const e =
|
|
1018
|
-
|
|
978
|
+
function rt(t, s) {
|
|
979
|
+
const e = I.on(t, s);
|
|
980
|
+
fe(() => e());
|
|
1019
981
|
}
|
|
1020
|
-
const
|
|
982
|
+
const ir = {
|
|
1021
983
|
required: (t) => t ? void 0 : "required"
|
|
1022
|
-
},
|
|
1023
|
-
function
|
|
1024
|
-
|
|
984
|
+
}, de = { ...ir };
|
|
985
|
+
function Qa(t, s) {
|
|
986
|
+
de[t] = s;
|
|
1025
987
|
}
|
|
1026
|
-
function
|
|
988
|
+
function cr(t, s) {
|
|
1027
989
|
var r;
|
|
1028
|
-
const e = (r =
|
|
990
|
+
const e = (r = de[s]) == null ? void 0 : r.call(de, t);
|
|
1029
991
|
return e ? We(e) : [];
|
|
1030
992
|
}
|
|
1031
|
-
const
|
|
1032
|
-
class
|
|
993
|
+
const Ja = Symbol(), ze = /* @__PURE__ */ new WeakMap();
|
|
994
|
+
class ur extends Ne {
|
|
1033
995
|
constructor(e) {
|
|
1034
996
|
super();
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
this._fields = e, this._submitted =
|
|
997
|
+
$(this, "errors");
|
|
998
|
+
$(this, "_fields");
|
|
999
|
+
$(this, "_data");
|
|
1000
|
+
$(this, "_submitted");
|
|
1001
|
+
$(this, "_errors");
|
|
1002
|
+
$(this, "_listeners", {});
|
|
1003
|
+
this._fields = e, this._submitted = B(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), ze.set(
|
|
1042
1004
|
this,
|
|
1043
1005
|
u(() => !Object.values(this._errors).some((r) => r !== null))
|
|
1044
|
-
), this.errors =
|
|
1006
|
+
), this.errors = he(this._errors);
|
|
1045
1007
|
}
|
|
1046
1008
|
get valid() {
|
|
1047
1009
|
var e;
|
|
1048
|
-
return !!((e =
|
|
1010
|
+
return !!((e = ze.get(this)) != null && e.value);
|
|
1049
1011
|
}
|
|
1050
1012
|
get submitted() {
|
|
1051
1013
|
return this._submitted.value;
|
|
1052
1014
|
}
|
|
1053
1015
|
setFieldValue(e, r) {
|
|
1054
|
-
const n = this._fields[e] ?? K(`Trying to set undefined '${
|
|
1055
|
-
this._data[e] = n.type === "string" && (n.trim ?? !0) ?
|
|
1016
|
+
const n = this._fields[e] ?? K(`Trying to set undefined '${q(e)}' field`);
|
|
1017
|
+
this._data[e] = n.type === "string" && (n.trim ?? !0) ? q(r).trim() : r, this._submitted.value && this.validate();
|
|
1056
1018
|
}
|
|
1057
1019
|
getFieldValue(e) {
|
|
1058
1020
|
return this._data[e];
|
|
@@ -1085,7 +1047,7 @@ class fr extends Ne {
|
|
|
1085
1047
|
return (n = this._listeners)[e] ?? (n[e] = []), (a = this._listeners[e]) == null || a.push(r), () => this.off(e, r);
|
|
1086
1048
|
}
|
|
1087
1049
|
off(e, r) {
|
|
1088
|
-
|
|
1050
|
+
Ce(this._listeners[e] ?? [], r);
|
|
1089
1051
|
}
|
|
1090
1052
|
async focus(e) {
|
|
1091
1053
|
var r;
|
|
@@ -1102,23 +1064,23 @@ class fr extends Ne {
|
|
|
1102
1064
|
this.setFieldValue(e, r);
|
|
1103
1065
|
}
|
|
1104
1066
|
getFieldErrors(e, r) {
|
|
1105
|
-
var
|
|
1106
|
-
const n = [], a = this._data[e],
|
|
1107
|
-
for (const d of
|
|
1108
|
-
d !== "required" && a == null || n.push(...
|
|
1067
|
+
var l;
|
|
1068
|
+
const n = [], a = this._data[e], i = ((l = r.rules) == null ? void 0 : l.split("|")) ?? [];
|
|
1069
|
+
for (const d of i)
|
|
1070
|
+
d !== "required" && a == null || n.push(...cr(a, d));
|
|
1109
1071
|
return n.length > 0 ? n : null;
|
|
1110
1072
|
}
|
|
1111
1073
|
getInitialData(e) {
|
|
1112
1074
|
if (this.static().isConjuring())
|
|
1113
1075
|
return {};
|
|
1114
|
-
const r = Object.entries(e).reduce((n, [a,
|
|
1115
|
-
return
|
|
1076
|
+
const r = Object.entries(e).reduce((n, [a, i]) => (n[a] = i.default ?? null, n), {});
|
|
1077
|
+
return pe(r);
|
|
1116
1078
|
}
|
|
1117
1079
|
getInitialErrors(e) {
|
|
1118
1080
|
if (this.static().isConjuring())
|
|
1119
1081
|
return {};
|
|
1120
1082
|
const r = Object.keys(e).reduce((n, a) => (n[a] = null, n), {});
|
|
1121
|
-
return
|
|
1083
|
+
return pe(r);
|
|
1122
1084
|
}
|
|
1123
1085
|
resetData() {
|
|
1124
1086
|
for (const [e, r] of Object.entries(this._fields))
|
|
@@ -1128,75 +1090,75 @@ class fr extends Ne {
|
|
|
1128
1090
|
Object.keys(this._errors).forEach((r) => delete this._errors[r]), e && Object.assign(this._errors, e);
|
|
1129
1091
|
}
|
|
1130
1092
|
}
|
|
1131
|
-
function
|
|
1132
|
-
const e =
|
|
1133
|
-
|
|
1093
|
+
function nt(t, s) {
|
|
1094
|
+
const e = se("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
|
|
1095
|
+
fe(() => r == null ? void 0 : r());
|
|
1134
1096
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return new
|
|
1097
|
+
function at(t) {
|
|
1098
|
+
return new ur(t);
|
|
1137
1099
|
}
|
|
1138
|
-
function
|
|
1100
|
+
function lt() {
|
|
1139
1101
|
const t = Fe(), s = u(() => t.class);
|
|
1140
|
-
return [u(() =>
|
|
1102
|
+
return [u(() => Bt(t, "class")), s];
|
|
1141
1103
|
}
|
|
1142
|
-
function
|
|
1104
|
+
function Za(t) {
|
|
1143
1105
|
let s = qt;
|
|
1144
|
-
|
|
1106
|
+
Et(() => s = t()), fe(() => s());
|
|
1145
1107
|
}
|
|
1146
|
-
function
|
|
1147
|
-
const e =
|
|
1148
|
-
return
|
|
1108
|
+
function Xa(t, s) {
|
|
1109
|
+
const e = pe(U.get(t) ?? s);
|
|
1110
|
+
return Ee(e, () => U.set(t, Ht(e))), e;
|
|
1149
1111
|
}
|
|
1150
|
-
function
|
|
1151
|
-
const s =
|
|
1152
|
-
return
|
|
1112
|
+
function Ya(t) {
|
|
1113
|
+
const s = B(), e = u(t);
|
|
1114
|
+
return Ee(e, async () => s.value = await e.value, { immediate: !0 }), s;
|
|
1153
1115
|
}
|
|
1154
|
-
function
|
|
1155
|
-
const e = s ? t : {}, r = s ?? t, n =
|
|
1156
|
-
return
|
|
1116
|
+
function Ga(t, s) {
|
|
1117
|
+
const e = s ? t : {}, r = s ?? t, n = B(e.initial ?? null), a = Ft((i) => n.value = i, e.delay ?? 300);
|
|
1118
|
+
return Z(() => a(r())), n;
|
|
1157
1119
|
}
|
|
1158
|
-
const
|
|
1120
|
+
const ot = /* @__PURE__ */ g({
|
|
1159
1121
|
__name: "HeadlessSelectValue",
|
|
1160
1122
|
setup(t) {
|
|
1161
|
-
const s =
|
|
1123
|
+
const s = V(
|
|
1162
1124
|
"select",
|
|
1163
1125
|
"<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
|
|
1164
1126
|
);
|
|
1165
|
-
return (e, r) => e.$slots.default ? (
|
|
1127
|
+
return (e, r) => e.$slots.default ? (c(), h(o(Ae), {
|
|
1166
1128
|
key: 0,
|
|
1167
1129
|
placeholder: o(s).placeholder
|
|
1168
1130
|
}, {
|
|
1169
|
-
default:
|
|
1170
|
-
|
|
1131
|
+
default: f(() => [
|
|
1132
|
+
w(e.$slots, "default")
|
|
1171
1133
|
]),
|
|
1172
1134
|
_: 3
|
|
1173
|
-
}, 8, ["placeholder"])) : (
|
|
1135
|
+
}, 8, ["placeholder"])) : (c(), h(o(Ae), {
|
|
1174
1136
|
key: 1,
|
|
1175
1137
|
placeholder: o(s).placeholder
|
|
1176
1138
|
}, null, 8, ["placeholder"]));
|
|
1177
1139
|
}
|
|
1178
|
-
}),
|
|
1140
|
+
}), it = /* @__PURE__ */ g({
|
|
1179
1141
|
__name: "HeadlessSelectTrigger",
|
|
1180
1142
|
setup(t) {
|
|
1181
|
-
const s =
|
|
1143
|
+
const s = V(
|
|
1182
1144
|
"select",
|
|
1183
1145
|
"<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
|
|
1184
1146
|
);
|
|
1185
|
-
return (e, r) => (
|
|
1147
|
+
return (e, r) => (c(), h(o(ns), {
|
|
1186
1148
|
id: o(s).id
|
|
1187
1149
|
}, {
|
|
1188
|
-
default:
|
|
1189
|
-
|
|
1190
|
-
|
|
1150
|
+
default: f(() => [
|
|
1151
|
+
w(e.$slots, "default", {}, () => [
|
|
1152
|
+
m(ot, {
|
|
1191
1153
|
placeholder: o(s).placeholder
|
|
1192
1154
|
}, null, 8, ["placeholder"]),
|
|
1193
|
-
|
|
1155
|
+
m(o(as))
|
|
1194
1156
|
])
|
|
1195
1157
|
]),
|
|
1196
1158
|
_: 3
|
|
1197
1159
|
}, 8, ["id"]));
|
|
1198
1160
|
}
|
|
1199
|
-
}),
|
|
1161
|
+
}), ct = /* @__PURE__ */ g({
|
|
1200
1162
|
__name: "HeadlessSelectOption",
|
|
1201
1163
|
props: {
|
|
1202
1164
|
value: {},
|
|
@@ -1206,20 +1168,20 @@ const ct = /* @__PURE__ */ g({
|
|
|
1206
1168
|
as: {}
|
|
1207
1169
|
},
|
|
1208
1170
|
setup(t) {
|
|
1209
|
-
const s =
|
|
1171
|
+
const s = V(
|
|
1210
1172
|
"select",
|
|
1211
1173
|
"<HeadlessSelectOption> must be a child of a <HeadlessSelect>"
|
|
1212
1174
|
), e = u(() => {
|
|
1213
1175
|
var n;
|
|
1214
1176
|
const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
|
|
1215
|
-
return r ? r.label :
|
|
1177
|
+
return r ? r.label : q(t.value);
|
|
1216
1178
|
});
|
|
1217
|
-
return (r, n) => (
|
|
1218
|
-
default:
|
|
1219
|
-
|
|
1220
|
-
default:
|
|
1221
|
-
|
|
1222
|
-
|
|
1179
|
+
return (r, n) => (c(), h(o(ls), re(ne(r.$props)), {
|
|
1180
|
+
default: f(() => [
|
|
1181
|
+
m(o(os), null, {
|
|
1182
|
+
default: f(() => [
|
|
1183
|
+
w(r.$slots, "default", {}, () => [
|
|
1184
|
+
A(S(e.value), 1)
|
|
1223
1185
|
])
|
|
1224
1186
|
]),
|
|
1225
1187
|
_: 3
|
|
@@ -1228,33 +1190,33 @@ const ct = /* @__PURE__ */ g({
|
|
|
1228
1190
|
_: 3
|
|
1229
1191
|
}, 16));
|
|
1230
1192
|
}
|
|
1231
|
-
}),
|
|
1193
|
+
}), ut = /* @__PURE__ */ g({
|
|
1232
1194
|
__name: "HeadlessSelectOptions",
|
|
1233
1195
|
props: {
|
|
1234
1196
|
class: {},
|
|
1235
1197
|
innerClass: {}
|
|
1236
1198
|
},
|
|
1237
1199
|
setup(t) {
|
|
1238
|
-
const s =
|
|
1200
|
+
const s = V(
|
|
1239
1201
|
"select",
|
|
1240
1202
|
"<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
|
|
1241
1203
|
), e = u(() => E("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
|
|
1242
|
-
return (r, n) => (
|
|
1243
|
-
default:
|
|
1244
|
-
|
|
1204
|
+
return (r, n) => (c(), h(o(is), null, {
|
|
1205
|
+
default: f(() => [
|
|
1206
|
+
m(o(cs), {
|
|
1245
1207
|
position: "popper",
|
|
1246
|
-
class:
|
|
1208
|
+
class: C(e.value),
|
|
1247
1209
|
align: o(s).align,
|
|
1248
1210
|
side: o(s).side,
|
|
1249
1211
|
"side-offset": 4
|
|
1250
1212
|
}, {
|
|
1251
|
-
default:
|
|
1252
|
-
|
|
1253
|
-
class:
|
|
1213
|
+
default: f(() => [
|
|
1214
|
+
m(o(us), {
|
|
1215
|
+
class: C(r.innerClass)
|
|
1254
1216
|
}, {
|
|
1255
|
-
default:
|
|
1256
|
-
|
|
1257
|
-
(
|
|
1217
|
+
default: f(() => [
|
|
1218
|
+
w(r.$slots, "default", {}, () => [
|
|
1219
|
+
(c(!0), b(j, null, F(o(s).options ?? [], (a) => (c(), h(ct, {
|
|
1258
1220
|
key: a.key,
|
|
1259
1221
|
value: a.value
|
|
1260
1222
|
}, null, 8, ["value"]))), 128))
|
|
@@ -1269,7 +1231,7 @@ const ct = /* @__PURE__ */ g({
|
|
|
1269
1231
|
_: 3
|
|
1270
1232
|
}));
|
|
1271
1233
|
}
|
|
1272
|
-
}),
|
|
1234
|
+
}), dr = /* @__PURE__ */ g({
|
|
1273
1235
|
inheritAttrs: !1,
|
|
1274
1236
|
__name: "HeadlessSelect",
|
|
1275
1237
|
props: {
|
|
@@ -1289,56 +1251,56 @@ const ct = /* @__PURE__ */ g({
|
|
|
1289
1251
|
},
|
|
1290
1252
|
emits: ["update:modelValue"],
|
|
1291
1253
|
setup(t, { expose: s, emit: e }) {
|
|
1292
|
-
const r = e, n =
|
|
1293
|
-
key:
|
|
1294
|
-
label: t.renderOption ? t.renderOption(
|
|
1295
|
-
value:
|
|
1254
|
+
const r = e, n = se("form", null), a = u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), i = u(() => a.value), l = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = u(() => t.options ? t.options.map((p) => ({
|
|
1255
|
+
key: te(),
|
|
1256
|
+
label: t.renderOption ? t.renderOption(p) : or(p) ? Ut(p.label) : q(p),
|
|
1257
|
+
value: p
|
|
1296
1258
|
})) : null), v = {
|
|
1297
1259
|
labelClass: t.labelClass,
|
|
1298
1260
|
optionsClass: t.optionsClass,
|
|
1299
1261
|
align: t.align,
|
|
1300
1262
|
side: t.side,
|
|
1301
1263
|
value: a,
|
|
1302
|
-
id: `select-${
|
|
1264
|
+
id: `select-${te()}`,
|
|
1303
1265
|
name: u(() => t.name),
|
|
1304
1266
|
label: u(() => t.label),
|
|
1305
1267
|
description: u(() => t.description),
|
|
1306
|
-
placeholder: u(() => t.placeholder ??
|
|
1268
|
+
placeholder: u(() => t.placeholder ?? k("ui.select", "Select an option")),
|
|
1307
1269
|
options: d,
|
|
1308
1270
|
selectedOption: u(() => {
|
|
1309
|
-
var
|
|
1310
|
-
return (
|
|
1271
|
+
var p;
|
|
1272
|
+
return (p = d.value) == null ? void 0 : p.find((_) => _.value === t.modelValue);
|
|
1311
1273
|
}),
|
|
1312
|
-
errors:
|
|
1274
|
+
errors: he(l),
|
|
1313
1275
|
required: u(() => {
|
|
1314
1276
|
if (!(!t.name || !n))
|
|
1315
1277
|
return n.getFieldRules(t.name).includes("required");
|
|
1316
1278
|
}),
|
|
1317
|
-
update(
|
|
1279
|
+
update(p) {
|
|
1318
1280
|
if (n && t.name) {
|
|
1319
|
-
n.setFieldValue(t.name,
|
|
1281
|
+
n.setFieldValue(t.name, p);
|
|
1320
1282
|
return;
|
|
1321
1283
|
}
|
|
1322
|
-
r("update:modelValue",
|
|
1284
|
+
r("update:modelValue", p);
|
|
1323
1285
|
}
|
|
1324
1286
|
};
|
|
1325
|
-
function x(
|
|
1326
|
-
v.update(
|
|
1287
|
+
function x(p) {
|
|
1288
|
+
v.update(p);
|
|
1327
1289
|
}
|
|
1328
|
-
return
|
|
1329
|
-
"model-value":
|
|
1330
|
-
by:
|
|
1331
|
-
"onUpdate:modelValue":
|
|
1290
|
+
return ae("select", v), s(v), (p, _) => (c(), h(o(ds), {
|
|
1291
|
+
"model-value": i.value,
|
|
1292
|
+
by: p.compareOptions,
|
|
1293
|
+
"onUpdate:modelValue": _[0] || (_[0] = (L) => x(L))
|
|
1332
1294
|
}, {
|
|
1333
|
-
default:
|
|
1334
|
-
(
|
|
1335
|
-
default:
|
|
1336
|
-
|
|
1337
|
-
modelValue:
|
|
1295
|
+
default: f(({ open: L }) => [
|
|
1296
|
+
(c(), h(N(p.as), re(ne(p.$attrs)), {
|
|
1297
|
+
default: f(() => [
|
|
1298
|
+
w(p.$slots, "default", {
|
|
1299
|
+
modelValue: p.modelValue,
|
|
1338
1300
|
open: L
|
|
1339
1301
|
}, () => [
|
|
1340
|
-
|
|
1341
|
-
|
|
1302
|
+
m(it),
|
|
1303
|
+
m(ut)
|
|
1342
1304
|
])
|
|
1343
1305
|
]),
|
|
1344
1306
|
_: 2
|
|
@@ -1347,47 +1309,50 @@ const ct = /* @__PURE__ */ g({
|
|
|
1347
1309
|
_: 3
|
|
1348
1310
|
}, 8, ["model-value", "by"]));
|
|
1349
1311
|
}
|
|
1350
|
-
}),
|
|
1312
|
+
}), De = /* @__PURE__ */ g({
|
|
1351
1313
|
__name: "HeadlessSelectLabel",
|
|
1352
1314
|
props: {
|
|
1353
1315
|
asChild: { type: Boolean },
|
|
1354
1316
|
as: {}
|
|
1355
1317
|
},
|
|
1356
1318
|
setup(t) {
|
|
1357
|
-
const s =
|
|
1319
|
+
const s = V(
|
|
1358
1320
|
"select",
|
|
1359
1321
|
"<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
|
|
1360
|
-
), e =
|
|
1361
|
-
return (n, a) => r.value ? (
|
|
1322
|
+
), e = He(), r = u(() => !!(s.label || e.default));
|
|
1323
|
+
return (n, a) => r.value ? (c(), h(o(ps), H({
|
|
1362
1324
|
key: 0,
|
|
1363
1325
|
for: o(s).id
|
|
1364
1326
|
}, n.$props), {
|
|
1365
|
-
default:
|
|
1366
|
-
|
|
1367
|
-
|
|
1327
|
+
default: f(() => [
|
|
1328
|
+
w(n.$slots, "default", {}, () => [
|
|
1329
|
+
A(S(o(s).label), 1)
|
|
1368
1330
|
])
|
|
1369
1331
|
]),
|
|
1370
1332
|
_: 3
|
|
1371
1333
|
}, 16, ["for"])) : M("", !0);
|
|
1372
1334
|
}
|
|
1373
|
-
}),
|
|
1335
|
+
}), dt = /* @__PURE__ */ g({
|
|
1374
1336
|
__name: "SelectLabel",
|
|
1337
|
+
props: {
|
|
1338
|
+
class: {}
|
|
1339
|
+
},
|
|
1375
1340
|
setup(t) {
|
|
1376
|
-
const s =
|
|
1377
|
-
return (r, n) => r.$slots.default ? (
|
|
1341
|
+
const s = V("select", "<SelectLabel> must be a child of a <Select>"), e = u(() => E("block text-sm leading-6 font-medium text-gray-900", s.labelClass, t.class));
|
|
1342
|
+
return (r, n) => r.$slots.default ? (c(), h(De, {
|
|
1378
1343
|
key: 0,
|
|
1379
|
-
class:
|
|
1344
|
+
class: C(e.value)
|
|
1380
1345
|
}, {
|
|
1381
|
-
default:
|
|
1382
|
-
|
|
1346
|
+
default: f(() => [
|
|
1347
|
+
w(r.$slots, "default")
|
|
1383
1348
|
]),
|
|
1384
1349
|
_: 3
|
|
1385
|
-
}, 8, ["class"])) : (
|
|
1350
|
+
}, 8, ["class"])) : (c(), h(De, {
|
|
1386
1351
|
key: 1,
|
|
1387
|
-
class:
|
|
1352
|
+
class: C(e.value)
|
|
1388
1353
|
}, null, 8, ["class"]));
|
|
1389
1354
|
}
|
|
1390
|
-
}),
|
|
1355
|
+
}), je = /* @__PURE__ */ g({
|
|
1391
1356
|
__name: "SelectOption",
|
|
1392
1357
|
props: {
|
|
1393
1358
|
value: {},
|
|
@@ -1400,57 +1365,57 @@ const ct = /* @__PURE__ */ g({
|
|
|
1400
1365
|
"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",
|
|
1401
1366
|
t.innerClass
|
|
1402
1367
|
));
|
|
1403
|
-
return (r, n) => (
|
|
1404
|
-
class:
|
|
1368
|
+
return (r, n) => (c(), h(ct, {
|
|
1369
|
+
class: C(s.value),
|
|
1405
1370
|
value: r.value
|
|
1406
1371
|
}, {
|
|
1407
|
-
default:
|
|
1372
|
+
default: f(() => [
|
|
1408
1373
|
y("div", {
|
|
1409
|
-
class:
|
|
1374
|
+
class: C(e.value)
|
|
1410
1375
|
}, [
|
|
1411
|
-
|
|
1376
|
+
w(r.$slots, "default")
|
|
1412
1377
|
], 2)
|
|
1413
1378
|
]),
|
|
1414
1379
|
_: 3
|
|
1415
1380
|
}, 8, ["class", "value"]));
|
|
1416
1381
|
}
|
|
1417
|
-
}),
|
|
1382
|
+
}), pt = /* @__PURE__ */ g({
|
|
1418
1383
|
__name: "SelectOptions",
|
|
1419
1384
|
props: {
|
|
1420
1385
|
class: {}
|
|
1421
1386
|
},
|
|
1422
1387
|
setup(t) {
|
|
1423
|
-
const s =
|
|
1388
|
+
const s = V("select", "<SelectOptions> must be a child of a <Select>"), e = u(() => E(
|
|
1424
1389
|
"z-50 overflow-auto rounded-lg bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden",
|
|
1425
1390
|
s.optionsClass,
|
|
1426
1391
|
t.class
|
|
1427
1392
|
));
|
|
1428
|
-
return (r, n) => (
|
|
1429
|
-
class:
|
|
1393
|
+
return (r, n) => (c(), h(ut, {
|
|
1394
|
+
class: C(e.value)
|
|
1430
1395
|
}, {
|
|
1431
|
-
default:
|
|
1396
|
+
default: f(() => {
|
|
1432
1397
|
var a;
|
|
1433
1398
|
return [
|
|
1434
|
-
(a = o(s).options) != null && a.length ?
|
|
1435
|
-
var
|
|
1399
|
+
(a = o(s).options) != null && a.length ? w(r.$slots, "default", { key: 0 }, () => {
|
|
1400
|
+
var i;
|
|
1436
1401
|
return [
|
|
1437
|
-
(
|
|
1438
|
-
key:
|
|
1439
|
-
value:
|
|
1402
|
+
(c(!0), b(j, null, F(((i = o(s)) == null ? void 0 : i.options) ?? [], (l) => (c(), h(je, {
|
|
1403
|
+
key: l.key,
|
|
1404
|
+
value: l.value
|
|
1440
1405
|
}, {
|
|
1441
|
-
default:
|
|
1442
|
-
|
|
1406
|
+
default: f(() => [
|
|
1407
|
+
A(S(l.label), 1)
|
|
1443
1408
|
]),
|
|
1444
1409
|
_: 2
|
|
1445
1410
|
}, 1032, ["value"]))), 128))
|
|
1446
1411
|
];
|
|
1447
|
-
}) :
|
|
1448
|
-
|
|
1412
|
+
}) : w(r.$slots, "default", { key: 1 }, () => [
|
|
1413
|
+
m(je, {
|
|
1449
1414
|
disabled: "",
|
|
1450
1415
|
value: null
|
|
1451
1416
|
}, {
|
|
1452
|
-
default:
|
|
1453
|
-
|
|
1417
|
+
default: f(() => [
|
|
1418
|
+
A(S(r.$td("ui.selectEmpty", "No options available")), 1)
|
|
1454
1419
|
]),
|
|
1455
1420
|
_: 1
|
|
1456
1421
|
})
|
|
@@ -1460,42 +1425,42 @@ const ct = /* @__PURE__ */ g({
|
|
|
1460
1425
|
_: 3
|
|
1461
1426
|
}, 8, ["class"]));
|
|
1462
1427
|
}
|
|
1463
|
-
}),
|
|
1428
|
+
}), pr = {
|
|
1464
1429
|
viewBox: "0 0 20 20",
|
|
1465
1430
|
width: "1.2em",
|
|
1466
1431
|
height: "1.2em"
|
|
1467
1432
|
};
|
|
1468
|
-
function
|
|
1469
|
-
return
|
|
1433
|
+
function mr(t, s) {
|
|
1434
|
+
return c(), b("svg", pr, s[0] || (s[0] = [
|
|
1470
1435
|
y("path", {
|
|
1471
1436
|
fill: "currentColor",
|
|
1472
1437
|
d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
|
|
1473
1438
|
}, null, -1)
|
|
1474
1439
|
]));
|
|
1475
1440
|
}
|
|
1476
|
-
const
|
|
1441
|
+
const fr = P({ name: "zondicons-cheveron-down", render: mr }), mt = /* @__PURE__ */ g({
|
|
1477
1442
|
__name: "SelectTrigger",
|
|
1478
1443
|
props: {
|
|
1479
1444
|
class: {}
|
|
1480
1445
|
},
|
|
1481
1446
|
setup(t) {
|
|
1482
|
-
const s =
|
|
1447
|
+
const s = V("select", "<SelectTrigger> must be a child of a <Select>"), e = u(() => E(
|
|
1483
1448
|
// eslint-disable-next-line vue/max-len
|
|
1484
1449
|
"focus:outline-primary-600 data-[state=open]:outline-primary-600 grid w-full cursor-default grid-cols-1 rounded-md bg-white py-1.5 pr-2 pl-3 text-left text-gray-900 outline-1 -outline-offset-1 outline-gray-300 focus:outline-2 focus:-outline-offset-2 sm:text-sm/6",
|
|
1485
1450
|
{ "mt-1": s.label },
|
|
1486
1451
|
t.class
|
|
1487
1452
|
));
|
|
1488
|
-
return (r, n) => (
|
|
1489
|
-
class:
|
|
1453
|
+
return (r, n) => (c(), h(it, {
|
|
1454
|
+
class: C(e.value)
|
|
1490
1455
|
}, {
|
|
1491
|
-
default:
|
|
1492
|
-
|
|
1493
|
-
|
|
1456
|
+
default: f(() => [
|
|
1457
|
+
m(ot, { class: "col-start-1 row-start-1 truncate pr-6" }),
|
|
1458
|
+
m(o(fr), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
|
|
1494
1459
|
]),
|
|
1495
1460
|
_: 1
|
|
1496
1461
|
}, 8, ["class"]));
|
|
1497
1462
|
}
|
|
1498
|
-
}),
|
|
1463
|
+
}), hr = /* @__PURE__ */ g({
|
|
1499
1464
|
__name: "Select",
|
|
1500
1465
|
props: {
|
|
1501
1466
|
as: {},
|
|
@@ -1514,91 +1479,291 @@ const br = R({ name: "zondicons-cheveron-down", render: vr }), ht = /* @__PURE__
|
|
|
1514
1479
|
},
|
|
1515
1480
|
emits: ["update:modelValue"],
|
|
1516
1481
|
setup(t) {
|
|
1517
|
-
const { forwardRef: s } =
|
|
1518
|
-
return (e, r) => (
|
|
1482
|
+
const { forwardRef: s } = Le();
|
|
1483
|
+
return (e, r) => (c(), h(dr, H({ ref: o(s) }, e.$props, {
|
|
1519
1484
|
"onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
|
|
1520
1485
|
}), {
|
|
1521
|
-
default:
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1486
|
+
default: f(() => [
|
|
1487
|
+
m(dt),
|
|
1488
|
+
w(e.$slots, "default", {}, () => [
|
|
1489
|
+
m(mt),
|
|
1490
|
+
m(pt)
|
|
1526
1491
|
])
|
|
1527
1492
|
]),
|
|
1528
1493
|
_: 3
|
|
1529
1494
|
}, 16));
|
|
1530
1495
|
}
|
|
1531
|
-
}),
|
|
1496
|
+
}), gr = { class: "grow" }, vr = /* @__PURE__ */ g({
|
|
1532
1497
|
__name: "Language",
|
|
1533
1498
|
setup(t) {
|
|
1534
1499
|
const s = Q.getBrowserLocale(), e = u(() => [null, ...Q.locales]);
|
|
1535
1500
|
function r(n) {
|
|
1536
|
-
return (n && O.locales[n]) ??
|
|
1501
|
+
return (n && O.locales[n]) ?? k("settings.localeDefault", "{locale} (default)", {
|
|
1537
1502
|
locale: O.locales[s] ?? s
|
|
1538
1503
|
});
|
|
1539
1504
|
}
|
|
1540
|
-
return (n, a) => (
|
|
1505
|
+
return (n, a) => (c(), h(hr, {
|
|
1541
1506
|
modelValue: n.$lang.locale,
|
|
1542
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1507
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => n.$lang.locale = i),
|
|
1543
1508
|
class: "flex flex-col items-start md:flex-row",
|
|
1544
1509
|
as: "div",
|
|
1545
1510
|
options: e.value,
|
|
1546
1511
|
"render-option": r
|
|
1547
1512
|
}, {
|
|
1548
|
-
default:
|
|
1549
|
-
y("div",
|
|
1550
|
-
|
|
1551
|
-
default:
|
|
1552
|
-
|
|
1513
|
+
default: f(() => [
|
|
1514
|
+
y("div", gr, [
|
|
1515
|
+
m(dt, { class: "text-base font-semibold" }, {
|
|
1516
|
+
default: f(() => [
|
|
1517
|
+
A(S(n.$td("settings.locale", "Language")), 1)
|
|
1553
1518
|
]),
|
|
1554
1519
|
_: 1
|
|
1555
1520
|
}),
|
|
1556
|
-
|
|
1521
|
+
m(T, {
|
|
1557
1522
|
"lang-key": "settings.localeDescription",
|
|
1558
1523
|
"lang-default": "Choose the application's language.",
|
|
1559
1524
|
class: "mt-1 text-sm text-gray-500"
|
|
1560
1525
|
})
|
|
1561
1526
|
]),
|
|
1562
|
-
|
|
1527
|
+
m(z, {
|
|
1563
1528
|
variant: "ghost",
|
|
1564
|
-
as:
|
|
1529
|
+
as: mt,
|
|
1565
1530
|
class: "grid w-auto outline-none"
|
|
1566
1531
|
}),
|
|
1567
|
-
|
|
1532
|
+
m(pt)
|
|
1568
1533
|
]),
|
|
1569
1534
|
_: 1
|
|
1570
1535
|
}, 8, ["modelValue", "options"]));
|
|
1571
1536
|
}
|
|
1572
|
-
}),
|
|
1537
|
+
}), br = [
|
|
1573
1538
|
{
|
|
1574
1539
|
priority: 100,
|
|
1575
|
-
component:
|
|
1540
|
+
component: vr
|
|
1576
1541
|
}
|
|
1577
|
-
],
|
|
1542
|
+
], yr = { $lang: Q }, wr = {
|
|
1578
1543
|
async install(t) {
|
|
1579
1544
|
var s;
|
|
1580
|
-
(s = t.config.globalProperties).$t ?? (s.$t =
|
|
1545
|
+
(s = t.config.globalProperties).$t ?? (s.$t = Ge), t.config.globalProperties.$td = k, br.forEach((e) => D.addSetting(e)), await ye(t, yr);
|
|
1546
|
+
}
|
|
1547
|
+
}, $r = /* @__PURE__ */ g({
|
|
1548
|
+
__name: "Markdown",
|
|
1549
|
+
props: {
|
|
1550
|
+
as: {},
|
|
1551
|
+
inline: { type: Boolean },
|
|
1552
|
+
langKey: {},
|
|
1553
|
+
langParams: {},
|
|
1554
|
+
langDefault: {},
|
|
1555
|
+
text: {},
|
|
1556
|
+
actions: {}
|
|
1557
|
+
},
|
|
1558
|
+
setup(t) {
|
|
1559
|
+
const s = Fe(), e = He(), r = u(() => e.default ? e.default().map(Ze).join("") : t.text ?? (t.langKey && (t.langDefault ? k(t.langKey, t.langDefault, t.langParams ?? {}) : Ge(t.langKey, t.langParams ?? {})))), n = u(() => {
|
|
1560
|
+
if (!r.value)
|
|
1561
|
+
return null;
|
|
1562
|
+
let l = ar(r.value);
|
|
1563
|
+
return t.inline && (l = l.replace("<p>", "<span>").replace("</p>", "</span>")), l;
|
|
1564
|
+
}), a = () => Vt(t.as ?? (t.inline ? "span" : "div"), {
|
|
1565
|
+
innerHTML: n.value,
|
|
1566
|
+
onClick: i,
|
|
1567
|
+
...s,
|
|
1568
|
+
class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
|
|
1569
|
+
});
|
|
1570
|
+
async function i(l) {
|
|
1571
|
+
var v, x;
|
|
1572
|
+
const { target: d } = l;
|
|
1573
|
+
if (Re(d, HTMLElement) && d.dataset.markdownAction) {
|
|
1574
|
+
(x = (v = t.actions) == null ? void 0 : v[d.dataset.markdownAction]) == null || x.call(v);
|
|
1575
|
+
return;
|
|
1576
|
+
}
|
|
1577
|
+
if (Re(d, HTMLAnchorElement) && d.dataset.markdownRoute) {
|
|
1578
|
+
const p = nr();
|
|
1579
|
+
p && (l.preventDefault(), p.visit(d.dataset.markdownRoute));
|
|
1580
|
+
return;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
return (l, d) => (c(), h(a));
|
|
1581
1584
|
}
|
|
1582
|
-
},
|
|
1585
|
+
}), _r = (t, s) => {
|
|
1586
|
+
const e = t.__vccOpts || t;
|
|
1587
|
+
for (const [r, n] of s)
|
|
1588
|
+
e[r] = n;
|
|
1589
|
+
return e;
|
|
1590
|
+
}, T = /* @__PURE__ */ _r($r, [["__scopeId", "data-v-8b211cfb"]]), xr = { class: "flex-grow" }, Cr = ["id"], Sr = /* @__PURE__ */ g({
|
|
1591
|
+
__name: "Setting",
|
|
1592
|
+
props: {
|
|
1593
|
+
title: {},
|
|
1594
|
+
titleId: {},
|
|
1595
|
+
description: {},
|
|
1596
|
+
class: {},
|
|
1597
|
+
layout: { default: "horizontal" }
|
|
1598
|
+
},
|
|
1599
|
+
setup(t) {
|
|
1600
|
+
const s = u(() => E(t.class, "flex flex-col justify-center gap-1"));
|
|
1601
|
+
return (e, r) => (c(), b("div", {
|
|
1602
|
+
class: C(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
|
|
1603
|
+
}, [
|
|
1604
|
+
y("div", xr, [
|
|
1605
|
+
y("h3", {
|
|
1606
|
+
id: e.titleId,
|
|
1607
|
+
class: "text-base font-semibold"
|
|
1608
|
+
}, S(e.title), 9, Cr),
|
|
1609
|
+
e.description ? (c(), h(T, {
|
|
1610
|
+
key: 0,
|
|
1611
|
+
text: e.description,
|
|
1612
|
+
class: "mt-1 text-sm text-gray-500"
|
|
1613
|
+
}, null, 8, ["text"])) : M("", !0)
|
|
1614
|
+
]),
|
|
1615
|
+
y("div", {
|
|
1616
|
+
class: C(s.value)
|
|
1617
|
+
}, [
|
|
1618
|
+
w(e.$slots, "default")
|
|
1619
|
+
], 2)
|
|
1620
|
+
], 2));
|
|
1621
|
+
}
|
|
1622
|
+
}), kr = ["for"], Mr = /* @__PURE__ */ g({
|
|
1623
|
+
inheritAttrs: !1,
|
|
1624
|
+
__name: "HeadlessSwitch",
|
|
1625
|
+
props: {
|
|
1626
|
+
name: {},
|
|
1627
|
+
label: {},
|
|
1628
|
+
description: {},
|
|
1629
|
+
modelValue: {},
|
|
1630
|
+
class: {},
|
|
1631
|
+
labelClass: {},
|
|
1632
|
+
inputClass: {},
|
|
1633
|
+
thumbClass: {}
|
|
1634
|
+
},
|
|
1635
|
+
emits: ["update:modelValue"],
|
|
1636
|
+
setup(t, { expose: s, emit: e }) {
|
|
1637
|
+
const r = e, n = se("form", null), a = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), i = {
|
|
1638
|
+
id: `switch-${te()}`,
|
|
1639
|
+
name: u(() => t.name),
|
|
1640
|
+
label: u(() => t.label),
|
|
1641
|
+
description: u(() => t.description),
|
|
1642
|
+
value: u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue),
|
|
1643
|
+
errors: he(a),
|
|
1644
|
+
required: u(() => {
|
|
1645
|
+
if (!(!t.name || !n))
|
|
1646
|
+
return n.getFieldRules(t.name).includes("required");
|
|
1647
|
+
}),
|
|
1648
|
+
update(l) {
|
|
1649
|
+
if (n && t.name) {
|
|
1650
|
+
n.setFieldValue(t.name, l);
|
|
1651
|
+
return;
|
|
1652
|
+
}
|
|
1653
|
+
r("update:modelValue", l);
|
|
1654
|
+
}
|
|
1655
|
+
};
|
|
1656
|
+
return s(i), Z(() => {
|
|
1657
|
+
!t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
|
|
1658
|
+
}), (l, d) => (c(), b("div", {
|
|
1659
|
+
class: C(t.class)
|
|
1660
|
+
}, [
|
|
1661
|
+
l.label ? (c(), b("label", {
|
|
1662
|
+
key: 0,
|
|
1663
|
+
for: i.id,
|
|
1664
|
+
class: C(l.labelClass)
|
|
1665
|
+
}, S(l.label), 11, kr)) : M("", !0),
|
|
1666
|
+
m(o(ms), H({
|
|
1667
|
+
id: i.id,
|
|
1668
|
+
name: l.name,
|
|
1669
|
+
"model-value": i.value.value
|
|
1670
|
+
}, l.$attrs, {
|
|
1671
|
+
class: l.inputClass,
|
|
1672
|
+
"onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
|
|
1673
|
+
}), {
|
|
1674
|
+
default: f(() => [
|
|
1675
|
+
m(o(fs), {
|
|
1676
|
+
class: C(l.thumbClass)
|
|
1677
|
+
}, null, 8, ["class"])
|
|
1678
|
+
]),
|
|
1679
|
+
_: 1
|
|
1680
|
+
}, 16, ["id", "name", "model-value", "class"])
|
|
1681
|
+
], 2));
|
|
1682
|
+
}
|
|
1683
|
+
}), Er = /* @__PURE__ */ g({
|
|
1684
|
+
__name: "Switch",
|
|
1685
|
+
setup(t) {
|
|
1686
|
+
return (s, e) => (c(), h(Mr, {
|
|
1687
|
+
class: "flex flex-row items-center gap-1",
|
|
1688
|
+
"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",
|
|
1689
|
+
"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"
|
|
1690
|
+
}));
|
|
1691
|
+
}
|
|
1692
|
+
}), Hr = /* @__PURE__ */ g({
|
|
1693
|
+
__name: "Debug",
|
|
1694
|
+
setup(t) {
|
|
1695
|
+
let s = null;
|
|
1696
|
+
const e = B(!1);
|
|
1697
|
+
return Z(async () => {
|
|
1698
|
+
if (!e.value) {
|
|
1699
|
+
s == null || s.destroy();
|
|
1700
|
+
return;
|
|
1701
|
+
}
|
|
1702
|
+
s ?? (s = (await import("eruda")).default), s.init();
|
|
1703
|
+
}), (r, n) => (c(), h(Sr, {
|
|
1704
|
+
"title-id": "debug-setting",
|
|
1705
|
+
title: r.$td("settings.debug", "Debugging"),
|
|
1706
|
+
description: r.$td("settings.debugDescription", "Enable debugging with [Eruda](https://eruda.liriliri.io/).")
|
|
1707
|
+
}, {
|
|
1708
|
+
default: f(() => [
|
|
1709
|
+
m(Er, {
|
|
1710
|
+
modelValue: e.value,
|
|
1711
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
|
|
1712
|
+
"aria-labelledby": "debug-setting"
|
|
1713
|
+
}, null, 8, ["modelValue"])
|
|
1714
|
+
]),
|
|
1715
|
+
_: 1
|
|
1716
|
+
}, 8, ["title", "description"]));
|
|
1717
|
+
}
|
|
1718
|
+
}), Vr = [
|
|
1719
|
+
{
|
|
1720
|
+
priority: 10,
|
|
1721
|
+
component: Hr
|
|
1722
|
+
}
|
|
1723
|
+
], ft = [];
|
|
1724
|
+
function el(t) {
|
|
1725
|
+
ft.push(t);
|
|
1726
|
+
}
|
|
1727
|
+
function ht(t) {
|
|
1728
|
+
for (const s of ft) {
|
|
1729
|
+
const e = s(t);
|
|
1730
|
+
if (e)
|
|
1731
|
+
return e;
|
|
1732
|
+
}
|
|
1733
|
+
return typeof t == "string" ? t : t instanceof Error || t instanceof ge ? t.message : ue(t) ? q(t.message ?? t.description ?? "Unknown error object") : k("errors.unknown", "Unknown Error");
|
|
1734
|
+
}
|
|
1735
|
+
class Be extends ge {
|
|
1736
|
+
}
|
|
1737
|
+
const Lr = { $errors: et }, Ir = (t) => (et.report(t), !0);
|
|
1738
|
+
function Tr(t, s = () => !1) {
|
|
1739
|
+
const e = (r) => s(r) || Ir(r);
|
|
1740
|
+
t.config.errorHandler = e, globalThis.onerror = (r, n, a, i, l) => e(l ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
|
|
1741
|
+
}
|
|
1742
|
+
const Rr = {
|
|
1743
|
+
async install(t, s) {
|
|
1744
|
+
Tr(t, s.handleError), Vr.forEach((e) => D.addSetting(e)), await ye(t, Lr);
|
|
1745
|
+
}
|
|
1746
|
+
}, Pr = {
|
|
1583
1747
|
async install() {
|
|
1584
|
-
|
|
1585
|
-
on: (...t) =>
|
|
1748
|
+
Ve() && (globalThis.testingRuntime = {
|
|
1749
|
+
on: (...t) => I.on(...t),
|
|
1750
|
+
service: (t) => D.service(t)
|
|
1586
1751
|
});
|
|
1587
1752
|
}
|
|
1588
|
-
},
|
|
1753
|
+
}, Ar = {
|
|
1589
1754
|
viewBox: "0 0 20 20",
|
|
1590
1755
|
width: "1.2em",
|
|
1591
1756
|
height: "1.2em"
|
|
1592
1757
|
};
|
|
1593
|
-
function
|
|
1594
|
-
return
|
|
1758
|
+
function zr(t, s) {
|
|
1759
|
+
return c(), b("svg", Ar, s[0] || (s[0] = [
|
|
1595
1760
|
y("path", {
|
|
1596
1761
|
fill: "currentColor",
|
|
1597
1762
|
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"
|
|
1598
1763
|
}, null, -1)
|
|
1599
1764
|
]));
|
|
1600
1765
|
}
|
|
1601
|
-
const
|
|
1766
|
+
const Dr = P({ name: "zondicons-close", render: zr }), jr = /* @__PURE__ */ g({
|
|
1602
1767
|
__name: "HeadlessModal",
|
|
1603
1768
|
props: {
|
|
1604
1769
|
persistent: { type: Boolean },
|
|
@@ -1608,27 +1773,27 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
|
|
|
1608
1773
|
descriptionHidden: { type: Boolean }
|
|
1609
1774
|
},
|
|
1610
1775
|
setup(t, { expose: s }) {
|
|
1611
|
-
const e =
|
|
1776
|
+
const e = B(null), { modal: r } = V(
|
|
1612
1777
|
"modal",
|
|
1613
1778
|
"could not obtain modal reference from <HeadlessModal>, did you render this component manually? Show it using $ui.modal() instead"
|
|
1614
1779
|
);
|
|
1615
|
-
s({ close:
|
|
1616
|
-
const { forwardRef: n } =
|
|
1617
|
-
|
|
1618
|
-
|
|
1780
|
+
s({ close: i, $content: e });
|
|
1781
|
+
const { forwardRef: n } = Le(), a = B(!1);
|
|
1782
|
+
ae("$modalContentRef", e), rt("close-modal", async ({ id: l, result: d }) => {
|
|
1783
|
+
l === r.id && await i(d);
|
|
1619
1784
|
});
|
|
1620
|
-
async function l
|
|
1621
|
-
a.value || (await
|
|
1785
|
+
async function i(l) {
|
|
1786
|
+
a.value || (await I.emit("modal-will-close", { modal: r, result: l }), a.value = !0, await I.emit("modal-has-closed", { modal: r, result: l }));
|
|
1622
1787
|
}
|
|
1623
|
-
return (
|
|
1788
|
+
return (l, d) => (c(), h(o(hs), {
|
|
1624
1789
|
ref: o(n),
|
|
1625
1790
|
open: "",
|
|
1626
|
-
"onUpdate:open": d[0] || (d[0] = (v) =>
|
|
1791
|
+
"onUpdate:open": d[0] || (d[0] = (v) => l.persistent || i())
|
|
1627
1792
|
}, {
|
|
1628
|
-
default:
|
|
1629
|
-
|
|
1630
|
-
default:
|
|
1631
|
-
|
|
1793
|
+
default: f(() => [
|
|
1794
|
+
m(o(gs), null, {
|
|
1795
|
+
default: f(() => [
|
|
1796
|
+
w(l.$slots, "default", { close: i })
|
|
1632
1797
|
]),
|
|
1633
1798
|
_: 3
|
|
1634
1799
|
})
|
|
@@ -1649,22 +1814,22 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
|
|
|
1649
1814
|
r[n] = o(s.modal.properties[n]);
|
|
1650
1815
|
return r;
|
|
1651
1816
|
});
|
|
1652
|
-
return
|
|
1653
|
-
modal:
|
|
1654
|
-
childIndex:
|
|
1655
|
-
}), (r, n) => (
|
|
1817
|
+
return ae("modal", {
|
|
1818
|
+
modal: Te(s, "modal"),
|
|
1819
|
+
childIndex: Te(s, "childIndex")
|
|
1820
|
+
}), (r, n) => (c(), h(N(r.modal.component), re(ne(e.value)), null, 16));
|
|
1656
1821
|
}
|
|
1657
|
-
}),
|
|
1822
|
+
}), Br = /* @__PURE__ */ g({
|
|
1658
1823
|
__name: "HeadlessModalContent",
|
|
1659
1824
|
setup(t) {
|
|
1660
|
-
const { childIndex: s = 0 } =
|
|
1825
|
+
const { childIndex: s = 0 } = V(
|
|
1661
1826
|
"modal",
|
|
1662
1827
|
"could not obtain modal reference from <HeadlessModalContent>, did you render this component manually? Show it using $ui.modal() instead"
|
|
1663
|
-
), e =
|
|
1664
|
-
return
|
|
1665
|
-
default:
|
|
1666
|
-
|
|
1667
|
-
n.value ? (
|
|
1828
|
+
), e = js("$modalContentRef"), r = le("$contentRef"), n = u(() => R.modals[s] ?? null);
|
|
1829
|
+
return Z(() => e.value = r.value), (a, i) => (c(), h(o(vs), { ref: "$contentRef" }, {
|
|
1830
|
+
default: f(() => [
|
|
1831
|
+
w(a.$slots, "default"),
|
|
1832
|
+
n.value ? (c(), h(gt, {
|
|
1668
1833
|
key: 0,
|
|
1669
1834
|
"child-index": o(s) + 1,
|
|
1670
1835
|
modal: n.value
|
|
@@ -1673,21 +1838,21 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
|
|
|
1673
1838
|
_: 3
|
|
1674
1839
|
}, 512));
|
|
1675
1840
|
}
|
|
1676
|
-
}),
|
|
1841
|
+
}), qr = /* @__PURE__ */ g({
|
|
1677
1842
|
__name: "HeadlessModalDescription",
|
|
1678
1843
|
props: {
|
|
1679
1844
|
asChild: { type: Boolean },
|
|
1680
1845
|
as: {}
|
|
1681
1846
|
},
|
|
1682
1847
|
setup(t) {
|
|
1683
|
-
return (s, e) => (
|
|
1684
|
-
default:
|
|
1685
|
-
|
|
1848
|
+
return (s, e) => (c(), h(o(bs), re(ne(s.$props)), {
|
|
1849
|
+
default: f(() => [
|
|
1850
|
+
w(s.$slots, "default")
|
|
1686
1851
|
]),
|
|
1687
1852
|
_: 3
|
|
1688
1853
|
}, 16));
|
|
1689
1854
|
}
|
|
1690
|
-
}),
|
|
1855
|
+
}), Fr = /* @__PURE__ */ g({
|
|
1691
1856
|
__name: "HeadlessModalOverlay",
|
|
1692
1857
|
props: {
|
|
1693
1858
|
forceMount: { type: Boolean },
|
|
@@ -1695,31 +1860,31 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
|
|
|
1695
1860
|
as: {}
|
|
1696
1861
|
},
|
|
1697
1862
|
setup(t) {
|
|
1698
|
-
return (s, e) => (
|
|
1699
|
-
default:
|
|
1700
|
-
|
|
1863
|
+
return (s, e) => (c(), h(o(ys), re(ne(s.$props)), {
|
|
1864
|
+
default: f(() => [
|
|
1865
|
+
w(s.$slots, "default")
|
|
1701
1866
|
]),
|
|
1702
1867
|
_: 3
|
|
1703
1868
|
}, 16));
|
|
1704
1869
|
}
|
|
1705
|
-
}),
|
|
1870
|
+
}), Ur = /* @__PURE__ */ g({
|
|
1706
1871
|
__name: "HeadlessModalTitle",
|
|
1707
1872
|
props: {
|
|
1708
1873
|
asChild: { type: Boolean },
|
|
1709
1874
|
as: {}
|
|
1710
1875
|
},
|
|
1711
1876
|
setup(t) {
|
|
1712
|
-
return (s, e) => (
|
|
1713
|
-
default:
|
|
1714
|
-
|
|
1877
|
+
return (s, e) => (c(), h(o(ws), re(ne(s.$props)), {
|
|
1878
|
+
default: f(() => [
|
|
1879
|
+
w(s.$slots, "default")
|
|
1715
1880
|
]),
|
|
1716
1881
|
_: 3
|
|
1717
1882
|
}, 16));
|
|
1718
1883
|
}
|
|
1719
|
-
}),
|
|
1884
|
+
}), Or = {
|
|
1720
1885
|
key: 0,
|
|
1721
1886
|
class: "absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block"
|
|
1722
|
-
},
|
|
1887
|
+
}, Nr = ["onClick"], Wr = { class: "sr-only" }, G = /* @__PURE__ */ g({
|
|
1723
1888
|
__name: "Modal",
|
|
1724
1889
|
props: {
|
|
1725
1890
|
persistent: { type: Boolean },
|
|
@@ -1734,79 +1899,83 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
|
|
|
1734
1899
|
setup(t, { expose: s }) {
|
|
1735
1900
|
const e = J(t, ["class", "wrapperClass", "title", "titleHidden", "description", "persistent", "closeHidden"]);
|
|
1736
1901
|
s({
|
|
1737
|
-
close: async (
|
|
1738
|
-
var
|
|
1739
|
-
return (
|
|
1902
|
+
close: async (p) => {
|
|
1903
|
+
var _;
|
|
1904
|
+
return (_ = a.value) == null ? void 0 : _.close(p);
|
|
1740
1905
|
},
|
|
1741
1906
|
$content: u(() => {
|
|
1742
|
-
var
|
|
1743
|
-
return (
|
|
1907
|
+
var p;
|
|
1908
|
+
return (p = a.value) == null ? void 0 : p.$content;
|
|
1744
1909
|
})
|
|
1745
1910
|
});
|
|
1746
|
-
const { forwardRef: r, currentRef: n } =
|
|
1911
|
+
const { forwardRef: r, currentRef: n } = Le(), a = n, i = V("modal"), l = u(() => !i.modal.closing && i.childIndex === R.openModals.length), d = u(() => t.description ? {} : { "aria-describedby": void 0 }), v = u(() => E("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), x = u(() => E(
|
|
1747
1912
|
"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",
|
|
1748
1913
|
"overflow-hidden rounded-lg bg-white text-left shadow-xl sm:max-w-lg",
|
|
1749
1914
|
"animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
|
|
1750
1915
|
"transition-[scale,opacity] will-change-[scale,opacity] duration-300",
|
|
1751
1916
|
{
|
|
1752
|
-
"scale-50 opacity-0": !
|
|
1753
|
-
"scale-100 opacity-100":
|
|
1917
|
+
"scale-50 opacity-0": !l.value,
|
|
1918
|
+
"scale-100 opacity-100": l.value
|
|
1754
1919
|
},
|
|
1755
1920
|
t.wrapperClass
|
|
1756
1921
|
));
|
|
1757
|
-
return
|
|
1758
|
-
|
|
1759
|
-
}), (
|
|
1922
|
+
return rt("modal-will-close", async ({ modal: { id: p } }) => {
|
|
1923
|
+
p === i.modal.id && await ce({ ms: 300 });
|
|
1924
|
+
}), (p, _) => (c(), h(jr, H(e, {
|
|
1760
1925
|
ref: (L) => o(r)(L),
|
|
1761
|
-
persistent:
|
|
1926
|
+
persistent: p.persistent
|
|
1762
1927
|
}), {
|
|
1763
|
-
default:
|
|
1764
|
-
|
|
1765
|
-
class:
|
|
1766
|
-
"bg-black/30": o(
|
|
1767
|
-
"opacity-0": o(
|
|
1928
|
+
default: f(({ close: L }) => [
|
|
1929
|
+
m(Fr, {
|
|
1930
|
+
class: C(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
|
|
1931
|
+
"bg-black/30": o(i).childIndex === 1,
|
|
1932
|
+
"opacity-0": o(i).childIndex === 1 && o(i).modal.closing
|
|
1768
1933
|
}])
|
|
1769
1934
|
}, null, 8, ["class"]),
|
|
1770
|
-
|
|
1771
|
-
default:
|
|
1772
|
-
!
|
|
1935
|
+
m(Br, H(d.value, { class: x.value }), {
|
|
1936
|
+
default: f(() => [
|
|
1937
|
+
!p.persistent && !p.closeHidden ? (c(), b("div", Or, [
|
|
1773
1938
|
y("button", {
|
|
1774
1939
|
type: "button",
|
|
1775
1940
|
class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
|
|
1776
|
-
onClick: (
|
|
1941
|
+
onClick: (we) => L()
|
|
1777
1942
|
}, [
|
|
1778
|
-
y("span",
|
|
1779
|
-
|
|
1780
|
-
], 8,
|
|
1943
|
+
y("span", Wr, S(p.$td("ui.close", "Close")), 1),
|
|
1944
|
+
m(o(Dr), { class: "size-4" })
|
|
1945
|
+
], 8, Nr)
|
|
1781
1946
|
])) : M("", !0),
|
|
1782
|
-
|
|
1947
|
+
p.title ? (c(), h(Ur, {
|
|
1783
1948
|
key: 1,
|
|
1784
|
-
class:
|
|
1949
|
+
class: C(["px-4 pt-5 text-base font-semibold text-gray-900", {
|
|
1950
|
+
"sr-only": p.titleHidden,
|
|
1951
|
+
"pb-0": p.description && !p.descriptionHidden,
|
|
1952
|
+
"pb-2": !p.description || p.descriptionHidden
|
|
1953
|
+
}])
|
|
1785
1954
|
}, {
|
|
1786
|
-
default:
|
|
1787
|
-
|
|
1788
|
-
text:
|
|
1955
|
+
default: f(() => [
|
|
1956
|
+
m(T, {
|
|
1957
|
+
text: p.title,
|
|
1789
1958
|
inline: ""
|
|
1790
1959
|
}, null, 8, ["text"])
|
|
1791
1960
|
]),
|
|
1792
1961
|
_: 1
|
|
1793
1962
|
}, 8, ["class"])) : M("", !0),
|
|
1794
|
-
|
|
1963
|
+
p.description ? (c(), h(qr, {
|
|
1795
1964
|
key: 2,
|
|
1796
|
-
class:
|
|
1965
|
+
class: C(["px-4 pt-1 pb-2", { "sr-only": p.descriptionHidden }])
|
|
1797
1966
|
}, {
|
|
1798
|
-
default:
|
|
1799
|
-
|
|
1800
|
-
text:
|
|
1801
|
-
class: "
|
|
1967
|
+
default: f(() => [
|
|
1968
|
+
m(T, {
|
|
1969
|
+
text: p.description,
|
|
1970
|
+
class: "text-sm leading-6 text-gray-500"
|
|
1802
1971
|
}, null, 8, ["text"])
|
|
1803
1972
|
]),
|
|
1804
1973
|
_: 1
|
|
1805
1974
|
}, 8, ["class"])) : M("", !0),
|
|
1806
1975
|
y("div", {
|
|
1807
|
-
class:
|
|
1976
|
+
class: C(v.value)
|
|
1808
1977
|
}, [
|
|
1809
|
-
|
|
1978
|
+
w(p.$slots, "default", { close: L })
|
|
1810
1979
|
], 2)
|
|
1811
1980
|
]),
|
|
1812
1981
|
_: 2
|
|
@@ -1816,24 +1985,24 @@ const Er = R({ name: "zondicons-close", render: Mr }), Hr = /* @__PURE__ */ g({
|
|
|
1816
1985
|
}, 16, ["persistent"]));
|
|
1817
1986
|
}
|
|
1818
1987
|
});
|
|
1819
|
-
function
|
|
1820
|
-
const s = u(() => t.title ??
|
|
1988
|
+
function Kr(t) {
|
|
1989
|
+
const s = u(() => t.title ?? k("ui.alert", "Alert")), e = u(() => !t.title);
|
|
1821
1990
|
return { renderedTitle: s, titleHidden: e };
|
|
1822
1991
|
}
|
|
1823
|
-
const
|
|
1992
|
+
const Qr = /* @__PURE__ */ g({
|
|
1824
1993
|
__name: "AlertModal",
|
|
1825
1994
|
props: {
|
|
1826
1995
|
title: {},
|
|
1827
1996
|
message: {}
|
|
1828
1997
|
},
|
|
1829
1998
|
setup(t, { expose: s }) {
|
|
1830
|
-
const e = t, { renderedTitle: r, titleHidden: n } =
|
|
1831
|
-
return s(), (a,
|
|
1999
|
+
const e = t, { renderedTitle: r, titleHidden: n } = Kr(e);
|
|
2000
|
+
return s(), (a, i) => (c(), h(G, {
|
|
1832
2001
|
title: o(r),
|
|
1833
2002
|
"title-hidden": o(n)
|
|
1834
2003
|
}, {
|
|
1835
|
-
default:
|
|
1836
|
-
|
|
2004
|
+
default: f(() => [
|
|
2005
|
+
m(T, { text: a.message }, null, 8, ["text"])
|
|
1837
2006
|
]),
|
|
1838
2007
|
_: 1
|
|
1839
2008
|
}, 8, ["title", "title-hidden"]));
|
|
@@ -1847,39 +2016,39 @@ const jr = /* @__PURE__ */ g({
|
|
|
1847
2016
|
setup(t, { emit: s }) {
|
|
1848
2017
|
let e;
|
|
1849
2018
|
const r = s;
|
|
1850
|
-
return
|
|
2019
|
+
return Z((n) => {
|
|
1851
2020
|
var a;
|
|
1852
2021
|
e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
|
|
1853
|
-
}),
|
|
1854
|
-
onSubmit: a[0] || (a[0] = Ue((
|
|
1855
|
-
var
|
|
1856
|
-
return (
|
|
2022
|
+
}), ae("form", t.form), (n, a) => (c(), b("form", {
|
|
2023
|
+
onSubmit: a[0] || (a[0] = Ue((i) => {
|
|
2024
|
+
var l;
|
|
2025
|
+
return (l = n.form) == null ? void 0 : l.submit();
|
|
1857
2026
|
}, ["prevent"]))
|
|
1858
2027
|
}, [
|
|
1859
|
-
|
|
2028
|
+
w(n.$slots, "default")
|
|
1860
2029
|
], 32));
|
|
1861
2030
|
}
|
|
1862
2031
|
});
|
|
1863
|
-
function
|
|
1864
|
-
const s =
|
|
2032
|
+
function Jr(t) {
|
|
2033
|
+
const s = at(
|
|
1865
2034
|
Object.entries(t.checkboxes ?? {}).reduce(
|
|
1866
|
-
(
|
|
1867
|
-
[
|
|
2035
|
+
(i, [l, d]) => ({
|
|
2036
|
+
[l]: {
|
|
1868
2037
|
type: "boolean",
|
|
1869
2038
|
default: d.default,
|
|
1870
2039
|
required: d.required ? "required" : void 0
|
|
1871
2040
|
},
|
|
1872
|
-
...
|
|
2041
|
+
...i
|
|
1873
2042
|
}),
|
|
1874
2043
|
{}
|
|
1875
2044
|
)
|
|
1876
|
-
), e = u(() => t.title ??
|
|
2045
|
+
), e = u(() => t.title ?? k("ui.confirm", "Confirm")), r = u(() => !t.title), n = u(() => t.acceptText ?? k("ui.accept", "Ok")), a = u(() => t.cancelText ?? k("ui.cancel", "Cancel"));
|
|
1877
2046
|
return { form: s, renderedTitle: e, titleHidden: r, renderedAcceptText: n, renderedCancelText: a };
|
|
1878
2047
|
}
|
|
1879
|
-
const
|
|
2048
|
+
const Zr = {
|
|
1880
2049
|
key: 0,
|
|
1881
2050
|
class: "mt-4 flex flex-col text-sm text-gray-600"
|
|
1882
|
-
},
|
|
2051
|
+
}, Xr = { class: "flex items-center" }, Yr = ["onUpdate:modelValue", "required"], Gr = { class: "ml-1.5" }, en = { class: "mt-4 flex flex-row-reverse gap-2" }, tn = /* @__PURE__ */ g({
|
|
1883
2052
|
__name: "ConfirmModal",
|
|
1884
2053
|
props: {
|
|
1885
2054
|
title: {},
|
|
@@ -1893,54 +2062,54 @@ const Dr = {
|
|
|
1893
2062
|
required: { type: Boolean }
|
|
1894
2063
|
},
|
|
1895
2064
|
setup(t, { expose: s }) {
|
|
1896
|
-
const e = J(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText:
|
|
1897
|
-
return s(), (d, v) => (
|
|
2065
|
+
const e = J(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText: l } = Jr(e);
|
|
2066
|
+
return s(), (d, v) => (c(), h(G, {
|
|
1898
2067
|
title: o(n),
|
|
1899
2068
|
"title-hidden": o(a),
|
|
1900
2069
|
persistent: ""
|
|
1901
2070
|
}, {
|
|
1902
|
-
default:
|
|
1903
|
-
|
|
2071
|
+
default: f(({ close: x }) => [
|
|
2072
|
+
m(vt, {
|
|
1904
2073
|
form: o(r),
|
|
1905
|
-
onSubmit: (
|
|
2074
|
+
onSubmit: (p) => x([!0, o(r).data()])
|
|
1906
2075
|
}, {
|
|
1907
|
-
default:
|
|
1908
|
-
|
|
2076
|
+
default: f(() => [
|
|
2077
|
+
m(T, {
|
|
1909
2078
|
text: d.message,
|
|
1910
2079
|
actions: d.actions
|
|
1911
2080
|
}, null, 8, ["text", "actions"]),
|
|
1912
|
-
d.checkboxes ? (
|
|
1913
|
-
(
|
|
1914
|
-
y("label",
|
|
2081
|
+
d.checkboxes ? (c(), b("ul", Zr, [
|
|
2082
|
+
(c(!0), b(j, null, F(d.checkboxes, (p, _) => (c(), b("li", { key: _ }, [
|
|
2083
|
+
y("label", Xr, [
|
|
1915
2084
|
Oe(y("input", {
|
|
1916
|
-
"onUpdate:modelValue": (L) => o(r)[
|
|
2085
|
+
"onUpdate:modelValue": (L) => o(r)[_] = L,
|
|
1917
2086
|
type: "checkbox",
|
|
1918
|
-
required:
|
|
2087
|
+
required: p.required,
|
|
1919
2088
|
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"
|
|
1920
|
-
}, null, 8,
|
|
1921
|
-
[
|
|
2089
|
+
}, null, 8, Yr), [
|
|
2090
|
+
[Lt, o(r)[_]]
|
|
1922
2091
|
]),
|
|
1923
|
-
y("span",
|
|
2092
|
+
y("span", Gr, S(p.label), 1)
|
|
1924
2093
|
])
|
|
1925
2094
|
]))), 128))
|
|
1926
2095
|
])) : M("", !0),
|
|
1927
|
-
y("div",
|
|
1928
|
-
|
|
2096
|
+
y("div", en, [
|
|
2097
|
+
m(z, {
|
|
1929
2098
|
variant: d.acceptVariant,
|
|
1930
2099
|
submit: ""
|
|
1931
2100
|
}, {
|
|
1932
|
-
default:
|
|
1933
|
-
|
|
2101
|
+
default: f(() => [
|
|
2102
|
+
A(S(o(i)), 1)
|
|
1934
2103
|
]),
|
|
1935
2104
|
_: 1
|
|
1936
2105
|
}, 8, ["variant"]),
|
|
1937
|
-
d.required ? M("", !0) : (
|
|
2106
|
+
d.required ? M("", !0) : (c(), h(z, {
|
|
1938
2107
|
key: 0,
|
|
1939
2108
|
variant: d.cancelVariant,
|
|
1940
|
-
onClick: (
|
|
2109
|
+
onClick: (p) => x(!1)
|
|
1941
2110
|
}, {
|
|
1942
|
-
default:
|
|
1943
|
-
|
|
2111
|
+
default: f(() => [
|
|
2112
|
+
A(S(o(l)), 1)
|
|
1944
2113
|
]),
|
|
1945
2114
|
_: 2
|
|
1946
2115
|
}, 1032, ["variant", "onClick"]))
|
|
@@ -1952,94 +2121,94 @@ const Dr = {
|
|
|
1952
2121
|
_: 1
|
|
1953
2122
|
}, 8, ["title", "title-hidden"]));
|
|
1954
2123
|
}
|
|
1955
|
-
}),
|
|
2124
|
+
}), sn = {
|
|
1956
2125
|
viewBox: "0 0 20 20",
|
|
1957
2126
|
width: "1.2em",
|
|
1958
2127
|
height: "1.2em"
|
|
1959
2128
|
};
|
|
1960
|
-
function
|
|
1961
|
-
return
|
|
2129
|
+
function rn(t, s) {
|
|
2130
|
+
return c(), b("svg", sn, s[0] || (s[0] = [
|
|
1962
2131
|
y("path", {
|
|
1963
2132
|
fill: "currentColor",
|
|
1964
2133
|
d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
|
|
1965
2134
|
}, null, -1)
|
|
1966
2135
|
]));
|
|
1967
2136
|
}
|
|
1968
|
-
const
|
|
2137
|
+
const nn = P({ name: "zondicons-cheveron-left", render: rn }), an = {
|
|
1969
2138
|
viewBox: "0 0 20 20",
|
|
1970
2139
|
width: "1.2em",
|
|
1971
2140
|
height: "1.2em"
|
|
1972
2141
|
};
|
|
1973
|
-
function
|
|
1974
|
-
return
|
|
2142
|
+
function ln(t, s) {
|
|
2143
|
+
return c(), b("svg", an, s[0] || (s[0] = [
|
|
1975
2144
|
y("path", {
|
|
1976
2145
|
fill: "currentColor",
|
|
1977
2146
|
d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
|
|
1978
2147
|
}, null, -1)
|
|
1979
2148
|
]));
|
|
1980
2149
|
}
|
|
1981
|
-
const bt =
|
|
2150
|
+
const bt = P({ name: "zondicons-cheveron-right", render: ln }), on = {
|
|
1982
2151
|
viewBox: "0 0 20 20",
|
|
1983
2152
|
width: "1.2em",
|
|
1984
2153
|
height: "1.2em"
|
|
1985
2154
|
};
|
|
1986
|
-
function
|
|
1987
|
-
return
|
|
2155
|
+
function cn(t, s) {
|
|
2156
|
+
return c(), b("svg", on, s[0] || (s[0] = [
|
|
1988
2157
|
y("path", {
|
|
1989
2158
|
fill: "currentColor",
|
|
1990
2159
|
d: "M2.93 17.07A10 10 0 1 1 17.07 2.93A10 10 0 0 1 2.93 17.07M9 5v6h2V5zm0 8v2h2v-2z"
|
|
1991
2160
|
}, null, -1)
|
|
1992
2161
|
]));
|
|
1993
2162
|
}
|
|
1994
|
-
const yt =
|
|
2163
|
+
const yt = P({ name: "zondicons-exclamation-solid", render: cn }), un = {
|
|
1995
2164
|
viewBox: "0 0 24 24",
|
|
1996
2165
|
width: "1.2em",
|
|
1997
2166
|
height: "1.2em"
|
|
1998
2167
|
};
|
|
1999
|
-
function
|
|
2000
|
-
return
|
|
2168
|
+
function dn(t, s) {
|
|
2169
|
+
return c(), b("svg", un, s[0] || (s[0] = [
|
|
2001
2170
|
y("path", {
|
|
2002
2171
|
fill: "currentColor",
|
|
2003
2172
|
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"
|
|
2004
2173
|
}, null, -1)
|
|
2005
2174
|
]));
|
|
2006
2175
|
}
|
|
2007
|
-
const
|
|
2176
|
+
const pn = P({ name: "mdi-console", render: dn }), mn = {
|
|
2008
2177
|
viewBox: "0 0 20 20",
|
|
2009
2178
|
width: "1.2em",
|
|
2010
2179
|
height: "1.2em"
|
|
2011
2180
|
};
|
|
2012
|
-
function
|
|
2013
|
-
return
|
|
2181
|
+
function fn(t, s) {
|
|
2182
|
+
return c(), b("svg", mn, s[0] || (s[0] = [
|
|
2014
2183
|
y("path", {
|
|
2015
2184
|
fill: "currentColor",
|
|
2016
2185
|
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"
|
|
2017
2186
|
}, null, -1)
|
|
2018
2187
|
]));
|
|
2019
2188
|
}
|
|
2020
|
-
const
|
|
2189
|
+
const hn = P({ name: "zondicons-copy", render: fn }), gn = {
|
|
2021
2190
|
viewBox: "0 0 24 24",
|
|
2022
2191
|
width: "1.2em",
|
|
2023
2192
|
height: "1.2em"
|
|
2024
2193
|
};
|
|
2025
|
-
function
|
|
2026
|
-
return
|
|
2194
|
+
function vn(t, s) {
|
|
2195
|
+
return c(), b("svg", gn, s[0] || (s[0] = [
|
|
2027
2196
|
y("path", {
|
|
2028
2197
|
fill: "currentColor",
|
|
2029
2198
|
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"
|
|
2030
2199
|
}, null, -1)
|
|
2031
2200
|
]));
|
|
2032
2201
|
}
|
|
2033
|
-
const
|
|
2202
|
+
const bn = P({ name: "mdi-github", render: vn }), yn = { class: "flex" }, wn = { class: "sr-only" }, $n = /* @__PURE__ */ g({
|
|
2034
2203
|
__name: "ErrorReportModalButtons",
|
|
2035
2204
|
props: {
|
|
2036
2205
|
report: {}
|
|
2037
2206
|
},
|
|
2038
2207
|
setup(t) {
|
|
2039
2208
|
const s = t, e = u(() => s.report.description ? `${s.report.title}: ${s.report.description}` : s.report.title), r = u(() => {
|
|
2040
|
-
if (!
|
|
2209
|
+
if (!D.sourceUrl)
|
|
2041
2210
|
return !1;
|
|
2042
|
-
const a = encodeURIComponent(e.value),
|
|
2211
|
+
const a = encodeURIComponent(e.value), i = encodeURIComponent(
|
|
2043
2212
|
[
|
|
2044
2213
|
"[Please, explain here what you were trying to do when this error appeared]",
|
|
2045
2214
|
"",
|
|
@@ -2047,33 +2216,33 @@ const ln = R({ name: "mdi-github", render: on }), cn = { class: "flex" }, un = {
|
|
|
2047
2216
|
"```",
|
|
2048
2217
|
Ot(
|
|
2049
2218
|
s.report.details ?? "Details missing from report",
|
|
2050
|
-
1800 - a.length -
|
|
2219
|
+
1800 - a.length - D.sourceUrl.length
|
|
2051
2220
|
).trim(),
|
|
2052
2221
|
"```"
|
|
2053
2222
|
].join(`
|
|
2054
2223
|
`)
|
|
2055
2224
|
);
|
|
2056
|
-
return `${
|
|
2057
|
-
}), n = u(() =>
|
|
2225
|
+
return `${D.sourceUrl}/issues/new?title=${a}&body=${i}`;
|
|
2226
|
+
}), n = u(() => X(
|
|
2058
2227
|
[
|
|
2059
2228
|
{
|
|
2060
2229
|
id: "clipboard",
|
|
2061
2230
|
description: "Copy to clipboard",
|
|
2062
|
-
iconComponent:
|
|
2231
|
+
iconComponent: hn,
|
|
2063
2232
|
async click() {
|
|
2064
2233
|
await navigator.clipboard.writeText(`${e.value}
|
|
2065
2234
|
|
|
2066
|
-
${s.report.details}`),
|
|
2235
|
+
${s.report.details}`), R.toast(k("errors.copiedToClipboard", "Debug information copied to clipboard"));
|
|
2067
2236
|
}
|
|
2068
2237
|
},
|
|
2069
2238
|
{
|
|
2070
2239
|
id: "console",
|
|
2071
2240
|
description: "Log to console",
|
|
2072
|
-
iconComponent:
|
|
2241
|
+
iconComponent: pn,
|
|
2073
2242
|
click() {
|
|
2074
2243
|
const a = s.report.error ?? s.report;
|
|
2075
|
-
window.error = a, console.error(a),
|
|
2076
|
-
|
|
2244
|
+
window.error = a, console.error(a), R.toast(
|
|
2245
|
+
k(
|
|
2077
2246
|
"errors.addedToConsole",
|
|
2078
2247
|
"You can now use the **error** variable in the console"
|
|
2079
2248
|
)
|
|
@@ -2085,24 +2254,24 @@ ${s.report.details}`), V.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2085
2254
|
r.value && a.push({
|
|
2086
2255
|
id: "github",
|
|
2087
2256
|
description: "Report in GitHub",
|
|
2088
|
-
iconComponent:
|
|
2257
|
+
iconComponent: bn,
|
|
2089
2258
|
url: r.value
|
|
2090
2259
|
});
|
|
2091
2260
|
}
|
|
2092
2261
|
));
|
|
2093
|
-
return (a,
|
|
2094
|
-
(
|
|
2095
|
-
|
|
2262
|
+
return (a, i) => (c(), b("div", yn, [
|
|
2263
|
+
(c(!0), b(j, null, F(n.value, (l) => w(a.$slots, "default", H({ ref_for: !0 }, l), () => [
|
|
2264
|
+
m(z, {
|
|
2096
2265
|
size: "icon",
|
|
2097
2266
|
variant: "ghost",
|
|
2098
2267
|
class: "group whitespace-nowrap",
|
|
2099
|
-
href:
|
|
2100
|
-
title: a.$td(`errors.report_${
|
|
2101
|
-
onClick:
|
|
2268
|
+
href: l.url,
|
|
2269
|
+
title: a.$td(`errors.report_${l.id}`, l.description),
|
|
2270
|
+
onClick: l.click
|
|
2102
2271
|
}, {
|
|
2103
|
-
default:
|
|
2104
|
-
y("span",
|
|
2105
|
-
(
|
|
2272
|
+
default: f(() => [
|
|
2273
|
+
y("span", wn, S(a.$td(`errors.report_${l.id}`, l.description)), 1),
|
|
2274
|
+
(c(), h(N(l.iconComponent), {
|
|
2106
2275
|
class: "size-4",
|
|
2107
2276
|
"aria-hidden": "true"
|
|
2108
2277
|
}))
|
|
@@ -2112,7 +2281,7 @@ ${s.report.details}`), V.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2112
2281
|
])), 256))
|
|
2113
2282
|
]));
|
|
2114
2283
|
}
|
|
2115
|
-
}),
|
|
2284
|
+
}), _n = /* @__PURE__ */ g({
|
|
2116
2285
|
__name: "ErrorReportModalTitle",
|
|
2117
2286
|
props: {
|
|
2118
2287
|
report: {},
|
|
@@ -2121,19 +2290,19 @@ ${s.report.details}`), V.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2121
2290
|
},
|
|
2122
2291
|
setup(t) {
|
|
2123
2292
|
const s = u(() => !t.totalReports || t.totalReports <= 1 ? t.report.title : `${t.report.title} (${t.currentReport}/${t.totalReports})`);
|
|
2124
|
-
return (e, r) => (
|
|
2293
|
+
return (e, r) => (c(), h(T, {
|
|
2125
2294
|
text: s.value,
|
|
2126
2295
|
inline: ""
|
|
2127
2296
|
}, null, 8, ["text"]));
|
|
2128
2297
|
}
|
|
2129
2298
|
});
|
|
2130
|
-
function
|
|
2131
|
-
const s =
|
|
2299
|
+
function xn(t) {
|
|
2300
|
+
const s = B(t.reports.includes(t.report) ? t.reports.indexOf(t.report) : 0), e = u(() => t.reports[s.value]), r = u(
|
|
2132
2301
|
() => {
|
|
2133
|
-
var
|
|
2134
|
-
return ((
|
|
2302
|
+
var i;
|
|
2303
|
+
return ((i = e.value.details) == null ? void 0 : i.trim()) || k("errors.detailsEmpty", "This error is missing a stacktrace.");
|
|
2135
2304
|
}
|
|
2136
|
-
), n =
|
|
2305
|
+
), n = k("errors.previousReport", "Show previous report"), a = k("errors.nextReport", "Show next report");
|
|
2137
2306
|
return {
|
|
2138
2307
|
activeReportIndex: s,
|
|
2139
2308
|
details: r,
|
|
@@ -2142,50 +2311,50 @@ function mn(t) {
|
|
|
2142
2311
|
activeReport: e
|
|
2143
2312
|
};
|
|
2144
2313
|
}
|
|
2145
|
-
const
|
|
2314
|
+
const Cn = { class: "px-4 pt-5 pb-4" }, Sn = { class: "flex justify-between gap-4" }, kn = { class: "flex items-center gap-2" }, Mn = {
|
|
2146
2315
|
key: 0,
|
|
2147
2316
|
class: "flex gap-0.5"
|
|
2148
|
-
},
|
|
2317
|
+
}, En = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, Hn = ["textContent"], Vn = /* @__PURE__ */ g({
|
|
2149
2318
|
__name: "ErrorReportModal",
|
|
2150
2319
|
props: {
|
|
2151
2320
|
report: {},
|
|
2152
2321
|
reports: {}
|
|
2153
2322
|
},
|
|
2154
2323
|
setup(t, { expose: s }) {
|
|
2155
|
-
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText:
|
|
2156
|
-
return s(), (d, v) => (
|
|
2324
|
+
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport: l } = xn(e);
|
|
2325
|
+
return s(), (d, v) => (c(), h(G, {
|
|
2157
2326
|
title: d.$td("errors.report", "Error report"),
|
|
2158
2327
|
"title-hidden": "",
|
|
2159
2328
|
"close-hidden": "",
|
|
2160
2329
|
class: "p-0",
|
|
2161
2330
|
"wrapper-class": "sm:w-auto sm:min-w-lg sm:max-w-[80vw]"
|
|
2162
2331
|
}, {
|
|
2163
|
-
default:
|
|
2164
|
-
y("div",
|
|
2165
|
-
y("h2",
|
|
2166
|
-
y("div",
|
|
2167
|
-
|
|
2168
|
-
|
|
2332
|
+
default: f(() => [
|
|
2333
|
+
y("div", Cn, [
|
|
2334
|
+
y("h2", Sn, [
|
|
2335
|
+
y("div", kn, [
|
|
2336
|
+
m(o(yt), { class: "size-5 text-red-600" }),
|
|
2337
|
+
m(_n, {
|
|
2169
2338
|
class: "text-lg leading-6 font-semibold text-gray-900",
|
|
2170
|
-
report: o(
|
|
2339
|
+
report: o(l),
|
|
2171
2340
|
"current-report": o(r) + 1,
|
|
2172
2341
|
"total-reports": d.reports.length
|
|
2173
2342
|
}, null, 8, ["report", "current-report", "total-reports"]),
|
|
2174
|
-
d.reports.length > 1 ? (
|
|
2175
|
-
|
|
2343
|
+
d.reports.length > 1 ? (c(), b("span", Mn, [
|
|
2344
|
+
m(z, {
|
|
2176
2345
|
size: "icon",
|
|
2177
2346
|
variant: "ghost",
|
|
2178
2347
|
disabled: o(r) === 0,
|
|
2179
|
-
"aria-label": o(
|
|
2180
|
-
title: o(
|
|
2348
|
+
"aria-label": o(i),
|
|
2349
|
+
title: o(i),
|
|
2181
2350
|
onClick: v[0] || (v[0] = (x) => r.value--)
|
|
2182
2351
|
}, {
|
|
2183
|
-
default:
|
|
2184
|
-
|
|
2352
|
+
default: f(() => [
|
|
2353
|
+
m(o(nn), { class: "size-4" })
|
|
2185
2354
|
]),
|
|
2186
2355
|
_: 1
|
|
2187
2356
|
}, 8, ["disabled", "aria-label", "title"]),
|
|
2188
|
-
|
|
2357
|
+
m(z, {
|
|
2189
2358
|
size: "icon",
|
|
2190
2359
|
variant: "ghost",
|
|
2191
2360
|
disabled: o(r) === d.reports.length - 1,
|
|
@@ -2193,41 +2362,41 @@ const fn = { class: "px-4 pt-5 pb-4" }, hn = { class: "flex justify-between gap-
|
|
|
2193
2362
|
title: o(a),
|
|
2194
2363
|
onClick: v[1] || (v[1] = (x) => r.value++)
|
|
2195
2364
|
}, {
|
|
2196
|
-
default:
|
|
2197
|
-
|
|
2365
|
+
default: f(() => [
|
|
2366
|
+
m(o(bt), { class: "size-4" })
|
|
2198
2367
|
]),
|
|
2199
2368
|
_: 1
|
|
2200
2369
|
}, 8, ["disabled", "aria-label", "title"])
|
|
2201
2370
|
])) : M("", !0)
|
|
2202
2371
|
]),
|
|
2203
|
-
|
|
2204
|
-
report: o(
|
|
2372
|
+
m($n, {
|
|
2373
|
+
report: o(l),
|
|
2205
2374
|
class: "gap-0.5"
|
|
2206
2375
|
}, null, 8, ["report"])
|
|
2207
2376
|
]),
|
|
2208
|
-
o(
|
|
2377
|
+
o(l).description ? (c(), h(T, {
|
|
2209
2378
|
key: 0,
|
|
2210
|
-
text: o(
|
|
2379
|
+
text: o(l).description,
|
|
2211
2380
|
class: "text-gray-600"
|
|
2212
2381
|
}, null, 8, ["text"])) : M("", !0)
|
|
2213
2382
|
]),
|
|
2214
|
-
y("div",
|
|
2383
|
+
y("div", En, [
|
|
2215
2384
|
y("pre", {
|
|
2216
2385
|
class: "p-4 text-xs text-red-800",
|
|
2217
|
-
textContent:
|
|
2218
|
-
}, null, 8,
|
|
2386
|
+
textContent: S(o(n))
|
|
2387
|
+
}, null, 8, Hn)
|
|
2219
2388
|
])
|
|
2220
2389
|
]),
|
|
2221
2390
|
_: 1
|
|
2222
2391
|
}, 8, ["title"]));
|
|
2223
2392
|
}
|
|
2224
|
-
}),
|
|
2393
|
+
}), Ln = {
|
|
2225
2394
|
viewBox: "0 0 24 24",
|
|
2226
2395
|
width: "1.2em",
|
|
2227
2396
|
height: "1.2em"
|
|
2228
2397
|
};
|
|
2229
|
-
function
|
|
2230
|
-
return
|
|
2398
|
+
function In(t, s) {
|
|
2399
|
+
return c(), b("svg", Ln, s[0] || (s[0] = [
|
|
2231
2400
|
y("path", {
|
|
2232
2401
|
fill: "currentColor",
|
|
2233
2402
|
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",
|
|
@@ -2247,7 +2416,7 @@ function $n(t, s) {
|
|
|
2247
2416
|
], -1)
|
|
2248
2417
|
]));
|
|
2249
2418
|
}
|
|
2250
|
-
const
|
|
2419
|
+
const Tn = P({ name: "svg-spinners-90-ring-with-bg", render: In }), Rn = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, Pn = { class: "sr-only" }, An = /* @__PURE__ */ g({
|
|
2251
2420
|
__name: "ProgressBar",
|
|
2252
2421
|
props: {
|
|
2253
2422
|
filledClass: {},
|
|
@@ -2256,31 +2425,31 @@ const xn = R({ name: "svg-spinners-90-ring-with-bg", render: $n }), Cn = { class
|
|
|
2256
2425
|
},
|
|
2257
2426
|
setup(t) {
|
|
2258
2427
|
let s;
|
|
2259
|
-
const e =
|
|
2260
|
-
return
|
|
2428
|
+
const e = B(0), r = u(() => E("size-full transition-transform duration-500 rounded-r-full ease-linear bg-primary-600", t.filledClass)), n = u(() => typeof t.progress == "number" ? t.progress : e.value);
|
|
2429
|
+
return Ee(
|
|
2261
2430
|
() => t.job,
|
|
2262
2431
|
() => {
|
|
2263
2432
|
s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (a) => e.value = a });
|
|
2264
2433
|
},
|
|
2265
2434
|
{ immediate: !0 }
|
|
2266
|
-
),
|
|
2435
|
+
), fe(() => s && s()), (a, i) => (c(), b("div", Rn, [
|
|
2267
2436
|
y("div", {
|
|
2268
|
-
class:
|
|
2269
|
-
style:
|
|
2437
|
+
class: C(r.value),
|
|
2438
|
+
style: It(`transform:translateX(-${(1 - n.value) * 100}%)`)
|
|
2270
2439
|
}, null, 6),
|
|
2271
|
-
y("span",
|
|
2440
|
+
y("span", Pn, S(a.$td("ui.progress", "{progress}% complete", {
|
|
2272
2441
|
progress: n.value * 100
|
|
2273
2442
|
})), 1)
|
|
2274
2443
|
]));
|
|
2275
2444
|
}
|
|
2276
2445
|
});
|
|
2277
|
-
function
|
|
2278
|
-
const s = u(() => t.title ??
|
|
2279
|
-
() => t.message ??
|
|
2446
|
+
function zn(t) {
|
|
2447
|
+
const s = u(() => t.title ?? k("ui.loading", "Loading")), e = u(
|
|
2448
|
+
() => t.message ?? k("ui.loadingInProgress", "Loading in progress...")
|
|
2280
2449
|
), r = u(() => typeof t.progress == "number" || !!t.job), n = u(() => !t.title);
|
|
2281
2450
|
return { renderedTitle: s, renderedMessage: e, titleHidden: n, showProgress: r };
|
|
2282
2451
|
}
|
|
2283
|
-
const
|
|
2452
|
+
const Dn = /* @__PURE__ */ g({
|
|
2284
2453
|
__name: "LoadingModal",
|
|
2285
2454
|
props: {
|
|
2286
2455
|
title: {},
|
|
@@ -2289,30 +2458,30 @@ const En = /* @__PURE__ */ g({
|
|
|
2289
2458
|
job: {}
|
|
2290
2459
|
},
|
|
2291
2460
|
setup(t, { expose: s }) {
|
|
2292
|
-
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress:
|
|
2293
|
-
return s(), (
|
|
2461
|
+
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: i } = zn(e);
|
|
2462
|
+
return s(), (l, d) => (c(), h(G, {
|
|
2294
2463
|
persistent: "",
|
|
2295
|
-
class:
|
|
2464
|
+
class: C(["flex", { "flex-col-reverse": o(i), "items-center justify-center gap-2": !o(i) }]),
|
|
2296
2465
|
"wrapper-class": "w-auto",
|
|
2297
2466
|
title: o(r),
|
|
2298
2467
|
"title-hidden": o(a)
|
|
2299
2468
|
}, {
|
|
2300
|
-
default:
|
|
2301
|
-
o(
|
|
2469
|
+
default: f(() => [
|
|
2470
|
+
o(i) ? (c(), h(An, {
|
|
2302
2471
|
key: 0,
|
|
2303
|
-
progress:
|
|
2304
|
-
job:
|
|
2472
|
+
progress: l.progress,
|
|
2473
|
+
job: l.job,
|
|
2305
2474
|
class: "min-w-[min(400px,80vw)]"
|
|
2306
|
-
}, null, 8, ["progress", "job"])) : (
|
|
2475
|
+
}, null, 8, ["progress", "job"])) : (c(), h(o(Tn), {
|
|
2307
2476
|
key: 1,
|
|
2308
2477
|
class: "text-primary-600 mr-1 size-6"
|
|
2309
2478
|
})),
|
|
2310
|
-
|
|
2479
|
+
m(T, { text: o(n) }, null, 8, ["text"])
|
|
2311
2480
|
]),
|
|
2312
2481
|
_: 1
|
|
2313
2482
|
}, 8, ["title", "title-hidden", "class"]));
|
|
2314
2483
|
}
|
|
2315
|
-
}),
|
|
2484
|
+
}), wt = /* @__PURE__ */ g({
|
|
2316
2485
|
__name: "HeadlessInput",
|
|
2317
2486
|
props: {
|
|
2318
2487
|
name: {},
|
|
@@ -2323,59 +2492,59 @@ const En = /* @__PURE__ */ g({
|
|
|
2323
2492
|
},
|
|
2324
2493
|
emits: ["update:modelValue"],
|
|
2325
2494
|
setup(t, { expose: s, emit: e }) {
|
|
2326
|
-
const r = e, n =
|
|
2327
|
-
id: `input-${
|
|
2495
|
+
const r = e, n = se("form", null), a = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), i = {
|
|
2496
|
+
id: `input-${te()}`,
|
|
2328
2497
|
name: u(() => t.name),
|
|
2329
2498
|
label: u(() => t.label),
|
|
2330
2499
|
description: u(() => t.description),
|
|
2331
2500
|
value: u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue),
|
|
2332
|
-
errors:
|
|
2501
|
+
errors: he(a),
|
|
2333
2502
|
required: u(() => {
|
|
2334
2503
|
if (!(!t.name || !n))
|
|
2335
2504
|
return n.getFieldRules(t.name).includes("required");
|
|
2336
2505
|
}),
|
|
2337
|
-
update(
|
|
2506
|
+
update(l) {
|
|
2338
2507
|
if (n && t.name) {
|
|
2339
|
-
n.setFieldValue(t.name,
|
|
2508
|
+
n.setFieldValue(t.name, l);
|
|
2340
2509
|
return;
|
|
2341
2510
|
}
|
|
2342
|
-
r("update:modelValue",
|
|
2511
|
+
r("update:modelValue", l);
|
|
2343
2512
|
}
|
|
2344
2513
|
};
|
|
2345
|
-
return
|
|
2346
|
-
default:
|
|
2347
|
-
|
|
2514
|
+
return ae("input", i), s(i), (l, d) => (c(), h(N(l.as), null, {
|
|
2515
|
+
default: f(() => [
|
|
2516
|
+
w(l.$slots, "default")
|
|
2348
2517
|
]),
|
|
2349
2518
|
_: 3
|
|
2350
2519
|
}));
|
|
2351
2520
|
}
|
|
2352
|
-
}),
|
|
2521
|
+
}), jn = ["for"], ke = /* @__PURE__ */ g({
|
|
2353
2522
|
__name: "HeadlessInputLabel",
|
|
2354
2523
|
setup(t) {
|
|
2355
|
-
const s =
|
|
2356
|
-
return (n, a) => r.value ? (
|
|
2524
|
+
const s = V("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = He(), r = u(() => !!(s.label || e.default));
|
|
2525
|
+
return (n, a) => r.value ? (c(), b("label", {
|
|
2357
2526
|
key: 0,
|
|
2358
2527
|
for: o(s).id
|
|
2359
2528
|
}, [
|
|
2360
|
-
|
|
2361
|
-
|
|
2529
|
+
w(n.$slots, "default", {}, () => [
|
|
2530
|
+
A(S(o(s).label), 1)
|
|
2362
2531
|
])
|
|
2363
|
-
], 8,
|
|
2532
|
+
], 8, jn)) : M("", !0);
|
|
2364
2533
|
}
|
|
2365
|
-
}),
|
|
2534
|
+
}), Bn = ["id", "name", "type", "checked", "required", "aria-invalid", "aria-describedby"], $t = /* @__PURE__ */ g({
|
|
2366
2535
|
__name: "HeadlessInputInput",
|
|
2367
2536
|
props: {
|
|
2368
2537
|
type: { default: "text" }
|
|
2369
2538
|
},
|
|
2370
2539
|
setup(t) {
|
|
2371
|
-
const s =
|
|
2540
|
+
const s = le("$inputRef"), e = V("input", "<HeadlessInputInput> must be a child of a <HeadlessInput>"), r = u(() => e.name ?? void 0), n = u(() => e.value), a = u(() => {
|
|
2372
2541
|
if (t.type === "checkbox")
|
|
2373
2542
|
return !!n.value;
|
|
2374
2543
|
});
|
|
2375
|
-
function
|
|
2376
|
-
s.value && e.update(
|
|
2544
|
+
function i() {
|
|
2545
|
+
s.value && e.update(l());
|
|
2377
2546
|
}
|
|
2378
|
-
function
|
|
2547
|
+
function l() {
|
|
2379
2548
|
if (!s.value)
|
|
2380
2549
|
return null;
|
|
2381
2550
|
switch (t.type) {
|
|
@@ -2387,18 +2556,18 @@ const En = /* @__PURE__ */ g({
|
|
|
2387
2556
|
return s.value.value;
|
|
2388
2557
|
}
|
|
2389
2558
|
}
|
|
2390
|
-
return
|
|
2559
|
+
return nt(e, () => {
|
|
2391
2560
|
var d;
|
|
2392
2561
|
return (d = s.value) == null ? void 0 : d.focus();
|
|
2393
|
-
}),
|
|
2562
|
+
}), Z(() => {
|
|
2394
2563
|
if (s.value) {
|
|
2395
|
-
if (t.type === "date") {
|
|
2564
|
+
if (t.type === "date" && n.value instanceof Date) {
|
|
2396
2565
|
s.value.valueAsDate = n.value;
|
|
2397
2566
|
return;
|
|
2398
2567
|
}
|
|
2399
2568
|
s.value.value = n.value ?? null;
|
|
2400
2569
|
}
|
|
2401
|
-
}), (d, v) => (
|
|
2570
|
+
}), (d, v) => (c(), b("input", {
|
|
2402
2571
|
id: o(e).id,
|
|
2403
2572
|
ref: "$inputRef",
|
|
2404
2573
|
name: r.value,
|
|
@@ -2407,39 +2576,39 @@ const En = /* @__PURE__ */ g({
|
|
|
2407
2576
|
required: o(e).required ?? void 0,
|
|
2408
2577
|
"aria-invalid": o(e).errors ? "true" : "false",
|
|
2409
2578
|
"aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
|
|
2410
|
-
onInput:
|
|
2411
|
-
}, null, 40,
|
|
2579
|
+
onInput: i
|
|
2580
|
+
}, null, 40, Bn));
|
|
2412
2581
|
}
|
|
2413
|
-
}),
|
|
2582
|
+
}), qn = /* @__PURE__ */ g({
|
|
2414
2583
|
inheritAttrs: !1,
|
|
2415
2584
|
__name: "HeadlessInputDescription",
|
|
2416
2585
|
setup(t) {
|
|
2417
|
-
const s =
|
|
2586
|
+
const s = V(
|
|
2418
2587
|
"input",
|
|
2419
2588
|
"<HeadlessInputDescription> must be a child of a <HeadlessInput>"
|
|
2420
2589
|
), e = u(() => typeof s.description == "string" ? s.description : ""), r = u(() => !!s.description);
|
|
2421
|
-
return (n, a) =>
|
|
2590
|
+
return (n, a) => w(n.$slots, "default", {
|
|
2422
2591
|
id: `${o(s).id}-description`
|
|
2423
2592
|
}, () => [
|
|
2424
|
-
r.value ? (
|
|
2593
|
+
r.value ? (c(), h(T, H({ key: 0 }, n.$attrs, {
|
|
2425
2594
|
id: `${o(s).id}-description`,
|
|
2426
2595
|
text: e.value
|
|
2427
2596
|
}), null, 16, ["id", "text"])) : M("", !0)
|
|
2428
2597
|
]);
|
|
2429
2598
|
}
|
|
2430
|
-
}),
|
|
2599
|
+
}), Fn = ["id"], Me = /* @__PURE__ */ g({
|
|
2431
2600
|
__name: "HeadlessInputError",
|
|
2432
2601
|
setup(t) {
|
|
2433
|
-
const s =
|
|
2434
|
-
return (r, n) => e.value ? (
|
|
2602
|
+
const s = V("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = u(() => s.errors ? k(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
|
|
2603
|
+
return (r, n) => e.value ? (c(), b("p", {
|
|
2435
2604
|
key: 0,
|
|
2436
2605
|
id: `${o(s).id}-error`
|
|
2437
|
-
},
|
|
2606
|
+
}, S(e.value), 9, Fn)) : M("", !0);
|
|
2438
2607
|
}
|
|
2439
|
-
}),
|
|
2608
|
+
}), Un = {
|
|
2440
2609
|
key: 0,
|
|
2441
2610
|
class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
|
|
2442
|
-
},
|
|
2611
|
+
}, On = /* @__PURE__ */ g({
|
|
2443
2612
|
inheritAttrs: !1,
|
|
2444
2613
|
__name: "Input",
|
|
2445
2614
|
props: {
|
|
@@ -2452,123 +2621,123 @@ const En = /* @__PURE__ */ g({
|
|
|
2452
2621
|
},
|
|
2453
2622
|
emits: ["update:modelValue"],
|
|
2454
2623
|
setup(t) {
|
|
2455
|
-
const s = J(t, ["label", "inputClass", "wrapperClass"]), e =
|
|
2456
|
-
var
|
|
2624
|
+
const s = J(t, ["label", "inputClass", "wrapperClass"]), e = le("$inputRef"), [r, n] = lt(), a = u(() => E("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = u(() => {
|
|
2625
|
+
var l, d, v;
|
|
2457
2626
|
return E(
|
|
2458
2627
|
// eslint-disable-next-line vue/max-len
|
|
2459
2628
|
"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",
|
|
2460
2629
|
{
|
|
2461
|
-
"focus:ring-primary-600": !((
|
|
2630
|
+
"focus:ring-primary-600": !((l = e.value) != null && l.errors),
|
|
2462
2631
|
"text-gray-900 shadow-2xs ring-gray-300 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
|
|
2463
2632
|
"pr-10 text-red-900 ring-red-300 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
|
|
2464
2633
|
},
|
|
2465
2634
|
t.inputClass
|
|
2466
2635
|
);
|
|
2467
2636
|
});
|
|
2468
|
-
return (
|
|
2637
|
+
return (l, d) => (c(), h(wt, H({
|
|
2469
2638
|
ref: "$inputRef",
|
|
2470
|
-
label:
|
|
2639
|
+
label: l.label,
|
|
2471
2640
|
class: o(n)
|
|
2472
2641
|
}, s, {
|
|
2473
|
-
"onUpdate:modelValue": d[0] || (d[0] = (v) =>
|
|
2642
|
+
"onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
|
|
2474
2643
|
}), {
|
|
2475
|
-
default:
|
|
2644
|
+
default: f(() => {
|
|
2476
2645
|
var v;
|
|
2477
2646
|
return [
|
|
2478
|
-
|
|
2647
|
+
m(ke, { class: "block text-sm leading-6 font-medium text-gray-900" }),
|
|
2479
2648
|
y("div", {
|
|
2480
|
-
class:
|
|
2649
|
+
class: C(a.value)
|
|
2481
2650
|
}, [
|
|
2482
|
-
|
|
2483
|
-
(v = o(e)) != null && v.errors ? (
|
|
2484
|
-
|
|
2651
|
+
m($t, H(o(r), { class: i.value }), null, 16, ["class"]),
|
|
2652
|
+
(v = o(e)) != null && v.errors ? (c(), b("div", Un, [
|
|
2653
|
+
m(o(yt), { class: "size-5 text-red-500" })
|
|
2485
2654
|
])) : M("", !0)
|
|
2486
2655
|
], 2),
|
|
2487
|
-
|
|
2488
|
-
|
|
2656
|
+
m(qn, { class: "mt-2 text-sm text-gray-600" }),
|
|
2657
|
+
m(Me, { class: "mt-2 text-sm text-red-600" })
|
|
2489
2658
|
];
|
|
2490
2659
|
}),
|
|
2491
2660
|
_: 1
|
|
2492
2661
|
}, 16, ["label", "class"]));
|
|
2493
2662
|
}
|
|
2494
2663
|
});
|
|
2495
|
-
function
|
|
2664
|
+
function tl(t, s = {}) {
|
|
2496
2665
|
return {
|
|
2497
2666
|
default: t,
|
|
2498
2667
|
type: "boolean",
|
|
2499
2668
|
rules: s.rules
|
|
2500
2669
|
};
|
|
2501
2670
|
}
|
|
2502
|
-
function
|
|
2671
|
+
function sl(t, s = {}) {
|
|
2503
2672
|
return {
|
|
2504
2673
|
default: t,
|
|
2505
2674
|
type: "date",
|
|
2506
2675
|
rules: s.rules
|
|
2507
2676
|
};
|
|
2508
2677
|
}
|
|
2509
|
-
function
|
|
2678
|
+
function rl(t) {
|
|
2510
2679
|
return {
|
|
2511
2680
|
default: t,
|
|
2512
2681
|
type: "boolean",
|
|
2513
2682
|
rules: "required"
|
|
2514
2683
|
};
|
|
2515
2684
|
}
|
|
2516
|
-
function
|
|
2685
|
+
function nl(t) {
|
|
2517
2686
|
return {
|
|
2518
2687
|
default: t,
|
|
2519
2688
|
type: "date",
|
|
2520
2689
|
rules: "required"
|
|
2521
2690
|
};
|
|
2522
2691
|
}
|
|
2523
|
-
function
|
|
2692
|
+
function al(t) {
|
|
2524
2693
|
return {
|
|
2525
2694
|
default: t,
|
|
2526
2695
|
type: "number",
|
|
2527
2696
|
rules: "required"
|
|
2528
2697
|
};
|
|
2529
2698
|
}
|
|
2530
|
-
function
|
|
2699
|
+
function ll(t) {
|
|
2531
2700
|
return {
|
|
2532
2701
|
default: t,
|
|
2533
2702
|
type: "object",
|
|
2534
2703
|
rules: "required"
|
|
2535
2704
|
};
|
|
2536
2705
|
}
|
|
2537
|
-
function
|
|
2706
|
+
function Nn(t) {
|
|
2538
2707
|
return {
|
|
2539
2708
|
default: t,
|
|
2540
2709
|
type: "string",
|
|
2541
2710
|
rules: "required"
|
|
2542
2711
|
};
|
|
2543
2712
|
}
|
|
2544
|
-
function
|
|
2713
|
+
function ol(t, s = {}) {
|
|
2545
2714
|
return {
|
|
2546
2715
|
default: t,
|
|
2547
2716
|
type: "number",
|
|
2548
2717
|
rules: s.rules
|
|
2549
2718
|
};
|
|
2550
2719
|
}
|
|
2551
|
-
function
|
|
2720
|
+
function il(t, s = {}) {
|
|
2552
2721
|
return {
|
|
2553
2722
|
default: t,
|
|
2554
2723
|
type: "object",
|
|
2555
2724
|
rules: s.rules
|
|
2556
2725
|
};
|
|
2557
2726
|
}
|
|
2558
|
-
function
|
|
2727
|
+
function cl(t, s = {}) {
|
|
2559
2728
|
return {
|
|
2560
2729
|
default: t,
|
|
2561
2730
|
type: "string",
|
|
2562
2731
|
rules: s.rules
|
|
2563
2732
|
};
|
|
2564
2733
|
}
|
|
2565
|
-
function
|
|
2566
|
-
const s =
|
|
2567
|
-
draft:
|
|
2568
|
-
}), e = u(() => t.title ?? t.message), r = u(() => t.title ? t.message : null), n = u(() => t.acceptText ??
|
|
2734
|
+
function Wn(t) {
|
|
2735
|
+
const s = at({
|
|
2736
|
+
draft: Nn(t.defaultValue ?? "")
|
|
2737
|
+
}), e = u(() => t.title ?? t.message), r = u(() => t.title ? t.message : null), n = u(() => t.acceptText ?? k("ui.accept", "Ok")), a = u(() => t.cancelText ?? k("ui.cancel", "Cancel"));
|
|
2569
2738
|
return { form: s, renderedTitle: e, renderedMessage: r, renderedAcceptText: n, renderedCancelText: a };
|
|
2570
2739
|
}
|
|
2571
|
-
const
|
|
2740
|
+
const Kn = { class: "mt-4 flex flex-row-reverse gap-2" }, Qn = /* @__PURE__ */ g({
|
|
2572
2741
|
__name: "PromptModal",
|
|
2573
2742
|
props: {
|
|
2574
2743
|
title: {},
|
|
@@ -2582,43 +2751,43 @@ const zn = { class: "mt-4 flex flex-row-reverse gap-2" }, jn = /* @__PURE__ */ g
|
|
|
2582
2751
|
cancelVariant: { default: "secondary" }
|
|
2583
2752
|
},
|
|
2584
2753
|
setup(t, { expose: s }) {
|
|
2585
|
-
const e = J(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText:
|
|
2586
|
-
return s(), (d, v) => (
|
|
2754
|
+
const e = J(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText: l } = Wn(e);
|
|
2755
|
+
return s(), (d, v) => (c(), h(G, {
|
|
2587
2756
|
title: o(n),
|
|
2588
2757
|
persistent: ""
|
|
2589
2758
|
}, {
|
|
2590
|
-
default:
|
|
2591
|
-
|
|
2759
|
+
default: f(({ close: x }) => [
|
|
2760
|
+
m(vt, {
|
|
2592
2761
|
form: o(r),
|
|
2593
|
-
onSubmit: (
|
|
2762
|
+
onSubmit: (p) => x(o(r).draft)
|
|
2594
2763
|
}, {
|
|
2595
|
-
default:
|
|
2596
|
-
o(a) ? (
|
|
2764
|
+
default: f(() => [
|
|
2765
|
+
o(a) ? (c(), h(T, {
|
|
2597
2766
|
key: 0,
|
|
2598
2767
|
text: o(a)
|
|
2599
2768
|
}, null, 8, ["text"])) : M("", !0),
|
|
2600
|
-
|
|
2769
|
+
m(On, {
|
|
2601
2770
|
name: "draft",
|
|
2602
2771
|
class: "mt-2",
|
|
2603
2772
|
placeholder: d.placeholder,
|
|
2604
2773
|
label: d.label
|
|
2605
2774
|
}, null, 8, ["placeholder", "label"]),
|
|
2606
|
-
y("div",
|
|
2607
|
-
|
|
2775
|
+
y("div", Kn, [
|
|
2776
|
+
m(z, {
|
|
2608
2777
|
variant: d.acceptVariant,
|
|
2609
2778
|
submit: ""
|
|
2610
2779
|
}, {
|
|
2611
|
-
default:
|
|
2612
|
-
|
|
2780
|
+
default: f(() => [
|
|
2781
|
+
A(S(o(i)), 1)
|
|
2613
2782
|
]),
|
|
2614
2783
|
_: 1
|
|
2615
2784
|
}, 8, ["variant"]),
|
|
2616
|
-
|
|
2785
|
+
m(z, {
|
|
2617
2786
|
variant: d.cancelVariant,
|
|
2618
|
-
onClick: (
|
|
2787
|
+
onClick: (p) => x()
|
|
2619
2788
|
}, {
|
|
2620
|
-
default:
|
|
2621
|
-
|
|
2789
|
+
default: f(() => [
|
|
2790
|
+
A(S(o(l)), 1)
|
|
2622
2791
|
]),
|
|
2623
2792
|
_: 2
|
|
2624
2793
|
}, 1032, ["variant", "onClick"])
|
|
@@ -2630,13 +2799,13 @@ const zn = { class: "mt-4 flex flex-row-reverse gap-2" }, jn = /* @__PURE__ */ g
|
|
|
2630
2799
|
_: 1
|
|
2631
2800
|
}, 8, ["title"]));
|
|
2632
2801
|
}
|
|
2633
|
-
}),
|
|
2802
|
+
}), Jn = { class: "grid grow place-items-center" }, Zn = { class: "flex flex-col items-center space-y-6 p-8" }, Xn = { class: "mt-2 text-center text-4xl font-medium text-red-600" }, Yn = { class: "mt-4 flex flex-col space-y-4" }, Gn = /* @__PURE__ */ g({
|
|
2634
2803
|
__name: "StartupCrash",
|
|
2635
2804
|
setup(t) {
|
|
2636
|
-
return (s, e) => (
|
|
2637
|
-
y("div",
|
|
2638
|
-
y("h1",
|
|
2639
|
-
|
|
2805
|
+
return (s, e) => (c(), b("div", Jn, [
|
|
2806
|
+
y("div", Zn, [
|
|
2807
|
+
y("h1", Xn, S(s.$td("startupCrash.title", "Something went wrong!")), 1),
|
|
2808
|
+
m(T, {
|
|
2640
2809
|
text: s.$td(
|
|
2641
2810
|
"startupCrash.message",
|
|
2642
2811
|
`Something failed trying to start the application.
|
|
@@ -2645,22 +2814,22 @@ Here's some things you can do:`
|
|
|
2645
2814
|
),
|
|
2646
2815
|
class: "mt-4 text-center"
|
|
2647
2816
|
}, null, 8, ["text"]),
|
|
2648
|
-
y("div",
|
|
2649
|
-
|
|
2817
|
+
y("div", Yn, [
|
|
2818
|
+
m(z, {
|
|
2650
2819
|
variant: "danger",
|
|
2651
2820
|
onClick: e[0] || (e[0] = (r) => s.$app.reload())
|
|
2652
2821
|
}, {
|
|
2653
|
-
default:
|
|
2654
|
-
|
|
2822
|
+
default: f(() => [
|
|
2823
|
+
A(S(s.$td("startupCrash.reload", "Try again")), 1)
|
|
2655
2824
|
]),
|
|
2656
2825
|
_: 1
|
|
2657
2826
|
}),
|
|
2658
|
-
|
|
2827
|
+
m(z, {
|
|
2659
2828
|
variant: "danger",
|
|
2660
2829
|
onClick: e[1] || (e[1] = (r) => s.$errors.inspect(s.$errors.startupErrors))
|
|
2661
2830
|
}, {
|
|
2662
|
-
default:
|
|
2663
|
-
|
|
2831
|
+
default: f(() => [
|
|
2832
|
+
A(S(s.$td("startupCrash.inspect", "View error details")), 1)
|
|
2664
2833
|
]),
|
|
2665
2834
|
_: 1
|
|
2666
2835
|
})
|
|
@@ -2668,23 +2837,23 @@ Here's some things you can do:`
|
|
|
2668
2837
|
])
|
|
2669
2838
|
]));
|
|
2670
2839
|
}
|
|
2671
|
-
}),
|
|
2840
|
+
}), _t = /* @__PURE__ */ g({
|
|
2672
2841
|
__name: "HeadlessToastAction",
|
|
2673
2842
|
props: {
|
|
2674
2843
|
action: {}
|
|
2675
2844
|
},
|
|
2676
2845
|
setup(t) {
|
|
2677
|
-
return (s, e) => (
|
|
2846
|
+
return (s, e) => (c(), h(N(s.action.dismiss ? o($s) : "button"), {
|
|
2678
2847
|
type: "button",
|
|
2679
2848
|
onClick: s.action.click
|
|
2680
2849
|
}, {
|
|
2681
|
-
default:
|
|
2682
|
-
|
|
2850
|
+
default: f(() => [
|
|
2851
|
+
A(S(s.action.label), 1)
|
|
2683
2852
|
]),
|
|
2684
2853
|
_: 1
|
|
2685
2854
|
}, 8, ["onClick"]));
|
|
2686
2855
|
}
|
|
2687
|
-
}),
|
|
2856
|
+
}), ea = { key: 0 }, ta = /* @__PURE__ */ g({
|
|
2688
2857
|
__name: "HeadlessToast",
|
|
2689
2858
|
props: {
|
|
2690
2859
|
message: {},
|
|
@@ -2692,11 +2861,11 @@ Here's some things you can do:`
|
|
|
2692
2861
|
variant: {}
|
|
2693
2862
|
},
|
|
2694
2863
|
setup(t) {
|
|
2695
|
-
return (s, e) => (
|
|
2696
|
-
default:
|
|
2697
|
-
|
|
2698
|
-
s.message ? (
|
|
2699
|
-
(
|
|
2864
|
+
return (s, e) => (c(), h(o(_s), null, {
|
|
2865
|
+
default: f(() => [
|
|
2866
|
+
w(s.$slots, "default", {}, () => [
|
|
2867
|
+
s.message ? (c(), b("span", ea, S(s.message), 1)) : M("", !0),
|
|
2868
|
+
(c(!0), b(j, null, F(s.actions, (r, n) => (c(), h(_t, {
|
|
2700
2869
|
key: n,
|
|
2701
2870
|
action: r
|
|
2702
2871
|
}, null, 8, ["action"]))), 128))
|
|
@@ -2705,7 +2874,7 @@ Here's some things you can do:`
|
|
|
2705
2874
|
_: 3
|
|
2706
2875
|
}));
|
|
2707
2876
|
}
|
|
2708
|
-
}),
|
|
2877
|
+
}), sa = /* @__PURE__ */ g({
|
|
2709
2878
|
__name: "Toast",
|
|
2710
2879
|
props: {
|
|
2711
2880
|
message: {},
|
|
@@ -2714,7 +2883,7 @@ Here's some things you can do:`
|
|
|
2714
2883
|
class: {}
|
|
2715
2884
|
},
|
|
2716
2885
|
setup(t, { expose: s }) {
|
|
2717
|
-
const e = u(() =>
|
|
2886
|
+
const e = u(() => st(
|
|
2718
2887
|
{ baseClasses: t.class, variant: t.variant },
|
|
2719
2888
|
{
|
|
2720
2889
|
baseClasses: "flex items-center gap-2 rounded-md p-2 ring-1 shadow-lg border-gray-200",
|
|
@@ -2729,110 +2898,110 @@ Here's some things you can do:`
|
|
|
2729
2898
|
}
|
|
2730
2899
|
}
|
|
2731
2900
|
));
|
|
2732
|
-
return s(), (r, n) => (
|
|
2733
|
-
class:
|
|
2901
|
+
return s(), (r, n) => (c(), h(ta, {
|
|
2902
|
+
class: C(e.value)
|
|
2734
2903
|
}, {
|
|
2735
|
-
default:
|
|
2736
|
-
r.message ? (
|
|
2904
|
+
default: f(() => [
|
|
2905
|
+
r.message ? (c(), h(T, {
|
|
2737
2906
|
key: 0,
|
|
2738
2907
|
text: r.message,
|
|
2739
2908
|
inline: ""
|
|
2740
2909
|
}, null, 8, ["text"])) : M("", !0),
|
|
2741
|
-
(
|
|
2742
|
-
key:
|
|
2910
|
+
(c(!0), b(j, null, F(r.actions, (a, i) => (c(), h(z, {
|
|
2911
|
+
key: i,
|
|
2743
2912
|
action: a,
|
|
2744
2913
|
variant: r.variant,
|
|
2745
|
-
as:
|
|
2914
|
+
as: _t
|
|
2746
2915
|
}, null, 8, ["action", "variant"]))), 128))
|
|
2747
2916
|
]),
|
|
2748
2917
|
_: 1
|
|
2749
2918
|
}, 8, ["class"]));
|
|
2750
2919
|
}
|
|
2751
|
-
}),
|
|
2920
|
+
}), ra = { $ui: R }, na = {
|
|
2752
2921
|
async install(t, s) {
|
|
2753
2922
|
const e = {
|
|
2754
|
-
"alert-modal":
|
|
2755
|
-
"confirm-modal":
|
|
2756
|
-
"error-report-modal":
|
|
2757
|
-
"loading-modal":
|
|
2758
|
-
"prompt-modal":
|
|
2759
|
-
"startup-crash":
|
|
2760
|
-
toast:
|
|
2923
|
+
"alert-modal": Qr,
|
|
2924
|
+
"confirm-modal": tn,
|
|
2925
|
+
"error-report-modal": Vn,
|
|
2926
|
+
"loading-modal": Dn,
|
|
2927
|
+
"prompt-modal": Qn,
|
|
2928
|
+
"startup-crash": Gn,
|
|
2929
|
+
toast: sa,
|
|
2761
2930
|
...s.components
|
|
2762
2931
|
};
|
|
2763
2932
|
for (const [r, n] of Object.entries(e))
|
|
2764
|
-
|
|
2765
|
-
await
|
|
2933
|
+
R.registerComponent(r, n);
|
|
2934
|
+
await ye(t, ra);
|
|
2766
2935
|
}
|
|
2767
2936
|
};
|
|
2768
|
-
async function
|
|
2937
|
+
async function aa(t, s = {}) {
|
|
2769
2938
|
var r;
|
|
2770
|
-
const e = [
|
|
2771
|
-
|
|
2939
|
+
const e = [Pr, Fs, Rr, wr, Ks, na, ...s.plugins ?? []];
|
|
2940
|
+
D.instance = t, await As(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await I.emit("application-ready");
|
|
2772
2941
|
}
|
|
2773
|
-
async function
|
|
2942
|
+
async function ul(t, s = {}) {
|
|
2774
2943
|
var r;
|
|
2775
|
-
const e =
|
|
2776
|
-
|
|
2944
|
+
const e = Tt(t);
|
|
2945
|
+
ee() && (window.$aerogel = e), await aa(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await I.emit("application-mounted");
|
|
2777
2946
|
}
|
|
2778
|
-
const
|
|
2947
|
+
const la = { key: 0 }, oa = /* @__PURE__ */ g({
|
|
2779
2948
|
__name: "AppModals",
|
|
2780
2949
|
setup(t) {
|
|
2781
|
-
const s = u(() =>
|
|
2782
|
-
return (e, r) => s.value ? (
|
|
2783
|
-
|
|
2950
|
+
const s = u(() => R.modals[0] ?? null);
|
|
2951
|
+
return (e, r) => s.value ? (c(), b("aside", la, [
|
|
2952
|
+
m(gt, {
|
|
2784
2953
|
"child-index": 1,
|
|
2785
2954
|
modal: s.value
|
|
2786
2955
|
}, null, 8, ["modal"])
|
|
2787
2956
|
])) : M("", !0);
|
|
2788
2957
|
}
|
|
2789
|
-
}),
|
|
2958
|
+
}), ia = /* @__PURE__ */ g({
|
|
2790
2959
|
__name: "AppToasts",
|
|
2791
2960
|
setup(t) {
|
|
2792
|
-
return (s, e) => (
|
|
2793
|
-
default:
|
|
2794
|
-
(
|
|
2961
|
+
return (s, e) => (c(), h(o(xs), null, {
|
|
2962
|
+
default: f(() => [
|
|
2963
|
+
(c(!0), b(j, null, F(s.$ui.toasts, (r) => (c(), h(N(r.component), H({
|
|
2795
2964
|
id: r.id,
|
|
2796
2965
|
key: r.id,
|
|
2797
2966
|
ref_for: !0
|
|
2798
2967
|
}, r.properties), null, 16, ["id"]))), 128)),
|
|
2799
|
-
|
|
2968
|
+
m(o(Cs), { class: "fixed right-0 bottom-0 z-50 flex flex-col items-end space-y-4 px-4 py-6 sm:p-6" })
|
|
2800
2969
|
]),
|
|
2801
2970
|
_: 1
|
|
2802
2971
|
}));
|
|
2803
2972
|
}
|
|
2804
|
-
}),
|
|
2973
|
+
}), ca = /* @__PURE__ */ g({
|
|
2805
2974
|
__name: "AppOverlays",
|
|
2806
2975
|
setup(t) {
|
|
2807
|
-
return (s, e) => (
|
|
2808
|
-
|
|
2809
|
-
|
|
2976
|
+
return (s, e) => (c(), b(j, null, [
|
|
2977
|
+
m(oa),
|
|
2978
|
+
m(ia)
|
|
2810
2979
|
], 64));
|
|
2811
2980
|
}
|
|
2812
|
-
}),
|
|
2981
|
+
}), ua = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, dl = /* @__PURE__ */ g({
|
|
2813
2982
|
__name: "AppLayout",
|
|
2814
2983
|
setup(t) {
|
|
2815
|
-
return (s, e) => (
|
|
2816
|
-
s.$errors.hasStartupErrors ?
|
|
2817
|
-
(
|
|
2818
|
-
]) :
|
|
2819
|
-
|
|
2984
|
+
return (s, e) => (c(), b("div", ua, [
|
|
2985
|
+
s.$errors.hasStartupErrors ? w(s.$slots, "startup-crash", { key: 0 }, () => [
|
|
2986
|
+
(c(), h(N(s.$ui.requireComponent("startup-crash"))))
|
|
2987
|
+
]) : w(s.$slots, "default", { key: 1 }),
|
|
2988
|
+
m(ca)
|
|
2820
2989
|
]));
|
|
2821
2990
|
}
|
|
2822
|
-
}),
|
|
2991
|
+
}), da = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], pl = /* @__PURE__ */ g({
|
|
2823
2992
|
__name: "HeadlessInputTextArea",
|
|
2824
2993
|
setup(t) {
|
|
2825
|
-
const s =
|
|
2994
|
+
const s = le("$textAreaRef"), e = V(
|
|
2826
2995
|
"input",
|
|
2827
2996
|
"<HeadlessInputTextArea> must be a child of a <HeadlessInput>"
|
|
2828
2997
|
), r = u(() => e.name ?? void 0), n = u(() => e.value);
|
|
2829
2998
|
function a() {
|
|
2830
2999
|
s.value && e.update(s.value.value);
|
|
2831
3000
|
}
|
|
2832
|
-
return
|
|
2833
|
-
var
|
|
2834
|
-
return (
|
|
2835
|
-
}), (
|
|
3001
|
+
return nt(e, () => {
|
|
3002
|
+
var i;
|
|
3003
|
+
return (i = s.value) == null ? void 0 : i.focus();
|
|
3004
|
+
}), (i, l) => (c(), b("textarea", {
|
|
2836
3005
|
id: o(e).id,
|
|
2837
3006
|
ref: "$textAreaRef",
|
|
2838
3007
|
name: r.value,
|
|
@@ -2841,22 +3010,22 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
|
|
|
2841
3010
|
"aria-invalid": o(e).errors ? "true" : "false",
|
|
2842
3011
|
"aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
|
|
2843
3012
|
onInput: a
|
|
2844
|
-
}, null, 40,
|
|
3013
|
+
}, null, 40, da));
|
|
2845
3014
|
}
|
|
2846
|
-
}),
|
|
3015
|
+
}), pa = { class: "group" }, ma = { 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" }, fa = { class: "pt-2 pl-4" }, ml = /* @__PURE__ */ g({
|
|
2847
3016
|
__name: "AdvancedOptions",
|
|
2848
3017
|
setup(t) {
|
|
2849
|
-
return (s, e) => (
|
|
2850
|
-
y("summary",
|
|
2851
|
-
|
|
2852
|
-
y("span", null,
|
|
3018
|
+
return (s, e) => (c(), b("details", pa, [
|
|
3019
|
+
y("summary", ma, [
|
|
3020
|
+
m(o(bt), { class: "size-6 transition-transform group-open:rotate-90" }),
|
|
3021
|
+
y("span", null, S(s.$td("ui.advancedOptions", "Advanced options")), 1)
|
|
2853
3022
|
]),
|
|
2854
|
-
y("div",
|
|
2855
|
-
|
|
3023
|
+
y("div", fa, [
|
|
3024
|
+
w(s.$slots, "default")
|
|
2856
3025
|
])
|
|
2857
3026
|
]));
|
|
2858
3027
|
}
|
|
2859
|
-
}),
|
|
3028
|
+
}), ha = { class: "flex h-6 items-center" }, fl = /* @__PURE__ */ g({
|
|
2860
3029
|
inheritAttrs: !1,
|
|
2861
3030
|
__name: "Checkbox",
|
|
2862
3031
|
props: {
|
|
@@ -2869,7 +3038,7 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
|
|
|
2869
3038
|
},
|
|
2870
3039
|
emits: ["update:modelValue"],
|
|
2871
3040
|
setup(t) {
|
|
2872
|
-
const s = J(t, ["inputClass", "labelClass"]), e =
|
|
3041
|
+
const s = J(t, ["inputClass", "labelClass"]), e = le("$inputRef"), [r, n] = lt(), a = u(() => E("relative flex items-start", n.value)), i = u(() => {
|
|
2873
3042
|
var d, v;
|
|
2874
3043
|
return E(
|
|
2875
3044
|
"size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
|
|
@@ -2879,43 +3048,43 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
|
|
|
2879
3048
|
},
|
|
2880
3049
|
t.inputClass
|
|
2881
3050
|
);
|
|
2882
|
-
}),
|
|
2883
|
-
return (d, v) => (
|
|
3051
|
+
}), l = u(() => E("ml-2 text-sm leading-6", t.labelClass));
|
|
3052
|
+
return (d, v) => (c(), h(wt, H({
|
|
2884
3053
|
ref: "$inputRef",
|
|
2885
3054
|
class: a.value
|
|
2886
3055
|
}, s, {
|
|
2887
3056
|
"onUpdate:modelValue": v[0] || (v[0] = (x) => d.$emit("update:modelValue", x))
|
|
2888
3057
|
}), {
|
|
2889
|
-
default:
|
|
2890
|
-
y("div",
|
|
2891
|
-
|
|
3058
|
+
default: f(() => [
|
|
3059
|
+
y("div", ha, [
|
|
3060
|
+
m($t, H(o(r), {
|
|
2892
3061
|
type: "checkbox",
|
|
2893
|
-
class:
|
|
3062
|
+
class: i.value
|
|
2894
3063
|
}), null, 16, ["class"])
|
|
2895
3064
|
]),
|
|
2896
|
-
d.$slots.default ? (
|
|
3065
|
+
d.$slots.default ? (c(), b("div", {
|
|
2897
3066
|
key: 0,
|
|
2898
|
-
class:
|
|
3067
|
+
class: C(l.value)
|
|
2899
3068
|
}, [
|
|
2900
|
-
|
|
2901
|
-
default:
|
|
2902
|
-
|
|
3069
|
+
m(ke, { class: "text-gray-900" }, {
|
|
3070
|
+
default: f(() => [
|
|
3071
|
+
w(d.$slots, "default")
|
|
2903
3072
|
]),
|
|
2904
3073
|
_: 3
|
|
2905
3074
|
}),
|
|
2906
|
-
|
|
2907
|
-
], 2)) : d.label ? (
|
|
3075
|
+
m(Me, { class: "text-red-600" })
|
|
3076
|
+
], 2)) : d.label ? (c(), b("div", {
|
|
2908
3077
|
key: 1,
|
|
2909
|
-
class:
|
|
3078
|
+
class: C(l.value)
|
|
2910
3079
|
}, [
|
|
2911
|
-
|
|
2912
|
-
|
|
3080
|
+
m(ke, { class: "text-gray-900" }),
|
|
3081
|
+
m(Me, { class: "text-red-600" })
|
|
2913
3082
|
], 2)) : M("", !0)
|
|
2914
3083
|
]),
|
|
2915
3084
|
_: 3
|
|
2916
3085
|
}, 16, ["class"]));
|
|
2917
3086
|
}
|
|
2918
|
-
}),
|
|
3087
|
+
}), ga = /* @__PURE__ */ g({
|
|
2919
3088
|
__name: "DropdownMenuOption",
|
|
2920
3089
|
props: {
|
|
2921
3090
|
class: {},
|
|
@@ -2928,33 +3097,33 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
|
|
|
2928
3097
|
"flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
|
|
2929
3098
|
t.class
|
|
2930
3099
|
));
|
|
2931
|
-
return (r, n) => (
|
|
3100
|
+
return (r, n) => (c(), h(o(Ss), H({ class: e.value }, s, {
|
|
2932
3101
|
onSelect: n[0] || (n[0] = (a) => r.$emit("select"))
|
|
2933
3102
|
}), {
|
|
2934
|
-
default:
|
|
2935
|
-
|
|
3103
|
+
default: f(() => [
|
|
3104
|
+
w(r.$slots, "default")
|
|
2936
3105
|
]),
|
|
2937
3106
|
_: 3
|
|
2938
3107
|
}, 16, ["class"]));
|
|
2939
3108
|
}
|
|
2940
|
-
}),
|
|
3109
|
+
}), va = /* @__PURE__ */ g({
|
|
2941
3110
|
__name: "DropdownMenuOptions",
|
|
2942
3111
|
setup(t) {
|
|
2943
|
-
const s =
|
|
3112
|
+
const s = V(
|
|
2944
3113
|
"dropdown-menu",
|
|
2945
3114
|
"<DropdownMenuOptions> must be a child of a <DropdownMenu>"
|
|
2946
3115
|
);
|
|
2947
|
-
return (e, r) => (
|
|
3116
|
+
return (e, r) => (c(), h(o(ks), {
|
|
2948
3117
|
class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
|
|
2949
3118
|
align: o(s).align,
|
|
2950
3119
|
side: o(s).side
|
|
2951
3120
|
}, {
|
|
2952
|
-
default:
|
|
2953
|
-
|
|
2954
|
-
(
|
|
3121
|
+
default: f(() => [
|
|
3122
|
+
w(e.$slots, "default", {}, () => [
|
|
3123
|
+
(c(!0), b(j, null, F(o(s).options, (n, a) => (c(), h(ga, H(
|
|
2955
3124
|
{
|
|
2956
3125
|
key: a,
|
|
2957
|
-
as: n.route || n.href ?
|
|
3126
|
+
as: n.route || n.href ? tt : void 0,
|
|
2958
3127
|
class: n.class,
|
|
2959
3128
|
ref_for: !0
|
|
2960
3129
|
},
|
|
@@ -2965,14 +3134,14 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
|
|
|
2965
3134
|
routeQuery: n.routeQuery
|
|
2966
3135
|
} : {},
|
|
2967
3136
|
{
|
|
2968
|
-
onSelect: (
|
|
2969
|
-
var
|
|
2970
|
-
return (
|
|
3137
|
+
onSelect: (i) => {
|
|
3138
|
+
var l;
|
|
3139
|
+
return (l = n.click) == null ? void 0 : l.call(n);
|
|
2971
3140
|
}
|
|
2972
3141
|
}
|
|
2973
3142
|
), {
|
|
2974
|
-
default:
|
|
2975
|
-
|
|
3143
|
+
default: f(() => [
|
|
3144
|
+
A(S(n.label), 1)
|
|
2976
3145
|
]),
|
|
2977
3146
|
_: 2
|
|
2978
3147
|
}, 1040, ["as", "class", "onSelect"]))), 128))
|
|
@@ -2981,7 +3150,7 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
|
|
|
2981
3150
|
_: 3
|
|
2982
3151
|
}, 8, ["align", "side"]));
|
|
2983
3152
|
}
|
|
2984
|
-
}),
|
|
3153
|
+
}), hl = /* @__PURE__ */ g({
|
|
2985
3154
|
__name: "DropdownMenu",
|
|
2986
3155
|
props: {
|
|
2987
3156
|
align: {},
|
|
@@ -2997,18 +3166,18 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
|
|
|
2997
3166
|
return (r = t.options) == null ? void 0 : r.filter(Boolean);
|
|
2998
3167
|
})
|
|
2999
3168
|
};
|
|
3000
|
-
return
|
|
3001
|
-
default:
|
|
3002
|
-
|
|
3003
|
-
default:
|
|
3004
|
-
|
|
3169
|
+
return ae("dropdown-menu", e), s(e), (r, n) => (c(), h(o(Ms), null, {
|
|
3170
|
+
default: f(() => [
|
|
3171
|
+
m(o(Es), null, {
|
|
3172
|
+
default: f(() => [
|
|
3173
|
+
w(r.$slots, "default")
|
|
3005
3174
|
]),
|
|
3006
3175
|
_: 3
|
|
3007
3176
|
}),
|
|
3008
|
-
|
|
3009
|
-
default:
|
|
3010
|
-
|
|
3011
|
-
|
|
3177
|
+
m(o(Hs), null, {
|
|
3178
|
+
default: f(() => [
|
|
3179
|
+
w(r.$slots, "options", {}, () => [
|
|
3180
|
+
m(va)
|
|
3012
3181
|
])
|
|
3013
3182
|
]),
|
|
3014
3183
|
_: 3
|
|
@@ -3017,7 +3186,7 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
|
|
|
3017
3186
|
_: 3
|
|
3018
3187
|
}));
|
|
3019
3188
|
}
|
|
3020
|
-
}),
|
|
3189
|
+
}), ba = ["aria-hidden"], ya = ["tabindex", "aria-label", "type"], gl = /* @__PURE__ */ g({
|
|
3021
3190
|
__name: "EditableContent",
|
|
3022
3191
|
props: {
|
|
3023
3192
|
type: { default: "text" },
|
|
@@ -3030,106 +3199,106 @@ const Zn = { key: 0 }, Gn = /* @__PURE__ */ g({
|
|
|
3030
3199
|
},
|
|
3031
3200
|
emits: ["update", "save"],
|
|
3032
3201
|
setup(t, { emit: s }) {
|
|
3033
|
-
const e = s, r =
|
|
3202
|
+
const e = s, r = le("$inputRef"), n = B(null), a = B(t.text), i = u(() => E("inline whitespace-pre", t.contentClass)), l = u(() => E("invisible whitespace-pre", t.contentClass)), d = u(() => E("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
|
|
3034
3203
|
function v() {
|
|
3035
3204
|
n.value = t.text;
|
|
3036
3205
|
}
|
|
3037
3206
|
function x() {
|
|
3038
3207
|
n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
|
|
3039
3208
|
}
|
|
3040
|
-
return
|
|
3041
|
-
class:
|
|
3209
|
+
return Z(() => a.value = t.text), (p, _) => (c(), b("div", {
|
|
3210
|
+
class: C(["relative", { "pointer-events-none!": p.disabled && !n.value }])
|
|
3042
3211
|
}, [
|
|
3043
|
-
n.value ? (
|
|
3212
|
+
n.value ? (c(), b("span", {
|
|
3044
3213
|
key: 1,
|
|
3045
|
-
class:
|
|
3046
|
-
},
|
|
3214
|
+
class: C(l.value)
|
|
3215
|
+
}, S(a.value), 3)) : (c(), b("div", {
|
|
3047
3216
|
key: 0,
|
|
3048
|
-
class:
|
|
3217
|
+
class: C(i.value)
|
|
3049
3218
|
}, [
|
|
3050
|
-
|
|
3219
|
+
w(p.$slots, "default")
|
|
3051
3220
|
], 2)),
|
|
3052
|
-
|
|
3221
|
+
p.type === "number" ? (c(), b("span", {
|
|
3053
3222
|
key: 2,
|
|
3054
|
-
class:
|
|
3223
|
+
class: C(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
|
|
3055
3224
|
}, null, 2)) : M("", !0),
|
|
3056
3225
|
y("form", {
|
|
3057
3226
|
class: "w-full",
|
|
3058
|
-
"aria-hidden":
|
|
3059
|
-
onSubmit:
|
|
3060
|
-
var
|
|
3061
|
-
return (
|
|
3227
|
+
"aria-hidden": p.formAriaHidden,
|
|
3228
|
+
onSubmit: _[4] || (_[4] = Ue((L) => {
|
|
3229
|
+
var we;
|
|
3230
|
+
return (we = o(r)) == null ? void 0 : we.blur();
|
|
3062
3231
|
}, ["prevent"]))
|
|
3063
3232
|
}, [
|
|
3064
3233
|
Oe(y("input", {
|
|
3065
3234
|
ref: "$inputRef",
|
|
3066
|
-
"onUpdate:modelValue":
|
|
3067
|
-
tabindex:
|
|
3068
|
-
"aria-label":
|
|
3069
|
-
type:
|
|
3070
|
-
class:
|
|
3235
|
+
"onUpdate:modelValue": _[0] || (_[0] = (L) => a.value = L),
|
|
3236
|
+
tabindex: p.tabindex ?? void 0,
|
|
3237
|
+
"aria-label": p.ariaLabel ?? void 0,
|
|
3238
|
+
type: p.type,
|
|
3239
|
+
class: C([
|
|
3071
3240
|
d.value,
|
|
3072
|
-
{ "opacity-0": !n.value, "appearance-textfield": !n.value &&
|
|
3241
|
+
{ "opacity-0": !n.value, "appearance-textfield": !n.value && p.type === "number" }
|
|
3073
3242
|
]),
|
|
3074
|
-
onKeyup:
|
|
3075
|
-
onFocus:
|
|
3076
|
-
onBlur:
|
|
3077
|
-
}, null, 42,
|
|
3243
|
+
onKeyup: _[1] || (_[1] = (L) => p.$emit("update", a.value)),
|
|
3244
|
+
onFocus: _[2] || (_[2] = (L) => v()),
|
|
3245
|
+
onBlur: _[3] || (_[3] = (L) => x())
|
|
3246
|
+
}, null, 42, ya), [
|
|
3078
3247
|
[Rt, a.value]
|
|
3079
3248
|
])
|
|
3080
|
-
], 40,
|
|
3249
|
+
], 40, ba)
|
|
3081
3250
|
], 2));
|
|
3082
3251
|
}
|
|
3083
|
-
}),
|
|
3252
|
+
}), wa = {
|
|
3084
3253
|
viewBox: "0 0 512 512",
|
|
3085
3254
|
width: "1.2em",
|
|
3086
3255
|
height: "1.2em"
|
|
3087
3256
|
};
|
|
3088
|
-
function
|
|
3089
|
-
return
|
|
3257
|
+
function $a(t, s) {
|
|
3258
|
+
return c(), b("svg", wa, s[0] || (s[0] = [
|
|
3090
3259
|
y("path", {
|
|
3091
3260
|
fill: "currentColor",
|
|
3092
3261
|
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"
|
|
3093
3262
|
}, null, -1)
|
|
3094
3263
|
]));
|
|
3095
3264
|
}
|
|
3096
|
-
const
|
|
3265
|
+
const _a = P({ name: "ion-warning", render: $a }), xa = {
|
|
3097
3266
|
viewBox: "0 0 20 20",
|
|
3098
3267
|
width: "1.2em",
|
|
3099
3268
|
height: "1.2em"
|
|
3100
3269
|
};
|
|
3101
|
-
function
|
|
3102
|
-
return
|
|
3270
|
+
function Ca(t, s) {
|
|
3271
|
+
return c(), b("svg", xa, s[0] || (s[0] = [
|
|
3103
3272
|
y("path", {
|
|
3104
3273
|
fill: "currentColor",
|
|
3105
3274
|
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"
|
|
3106
3275
|
}, null, -1)
|
|
3107
3276
|
]));
|
|
3108
3277
|
}
|
|
3109
|
-
const
|
|
3278
|
+
const Sa = P({ name: "zondicons-view-show", render: Ca }), ka = { class: "font-medium" }, Ma = ["datetime"], Ea = /* @__PURE__ */ g({
|
|
3110
3279
|
__name: "ErrorLogsModal",
|
|
3111
3280
|
setup(t) {
|
|
3112
|
-
return (s, e) => (
|
|
3281
|
+
return (s, e) => (c(), h(G, {
|
|
3113
3282
|
title: s.$td("errors.report", "Errors ({count})", { count: s.$errors.logs.length })
|
|
3114
3283
|
}, {
|
|
3115
|
-
default:
|
|
3284
|
+
default: f(() => [
|
|
3116
3285
|
y("ol", null, [
|
|
3117
|
-
(
|
|
3286
|
+
(c(!0), b(j, null, F(s.$errors.logs, (r, n) => (c(), b("li", {
|
|
3118
3287
|
key: n,
|
|
3119
3288
|
class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
|
|
3120
3289
|
}, [
|
|
3121
3290
|
y("div", null, [
|
|
3122
|
-
y("h3",
|
|
3291
|
+
y("h3", ka, S(r.report.title), 1),
|
|
3123
3292
|
y("time", {
|
|
3124
3293
|
datetime: r.date.toISOString(),
|
|
3125
3294
|
class: "text-xs text-gray-700"
|
|
3126
|
-
},
|
|
3127
|
-
|
|
3295
|
+
}, S(r.date.toLocaleTimeString()), 9, Ma),
|
|
3296
|
+
m(T, {
|
|
3128
3297
|
class: "text-sm text-gray-500",
|
|
3129
|
-
text: r.report.description ?? o(
|
|
3298
|
+
text: r.report.description ?? o(ht)(r.report)
|
|
3130
3299
|
}, null, 8, ["text"])
|
|
3131
3300
|
]),
|
|
3132
|
-
|
|
3301
|
+
m(z, {
|
|
3133
3302
|
size: "icon",
|
|
3134
3303
|
variant: "ghost",
|
|
3135
3304
|
"aria-label": s.$td("errors.viewDetails", "View details"),
|
|
@@ -3137,11 +3306,11 @@ const ha = R({ name: "zondicons-view-show", render: fa }), ga = { class: "font-m
|
|
|
3137
3306
|
class: "self-center",
|
|
3138
3307
|
onClick: (a) => s.$errors.inspect(
|
|
3139
3308
|
r.report,
|
|
3140
|
-
s.$errors.logs.map(({ report:
|
|
3309
|
+
s.$errors.logs.map(({ report: i }) => i)
|
|
3141
3310
|
)
|
|
3142
3311
|
}, {
|
|
3143
|
-
default:
|
|
3144
|
-
|
|
3312
|
+
default: f(() => [
|
|
3313
|
+
m(o(Sa), {
|
|
3145
3314
|
class: "size-4",
|
|
3146
3315
|
"aria-hidden": "true"
|
|
3147
3316
|
})
|
|
@@ -3154,36 +3323,36 @@ const ha = R({ name: "zondicons-view-show", render: fa }), ga = { class: "font-m
|
|
|
3154
3323
|
_: 1
|
|
3155
3324
|
}, 8, ["title"]));
|
|
3156
3325
|
}
|
|
3157
|
-
}),
|
|
3326
|
+
}), vl = /* @__PURE__ */ g({
|
|
3158
3327
|
__name: "ErrorLogs",
|
|
3159
3328
|
setup(t) {
|
|
3160
|
-
return (s, e) => s.$errors.logs.length > 0 ? (
|
|
3329
|
+
return (s, e) => s.$errors.logs.length > 0 ? (c(), h(z, {
|
|
3161
3330
|
key: 0,
|
|
3162
3331
|
size: "icon",
|
|
3163
3332
|
variant: "ghost",
|
|
3164
3333
|
title: s.$td("errors.viewLogs", "View error logs"),
|
|
3165
3334
|
"aria-label": s.$td("errors.viewLogs", "View error logs"),
|
|
3166
|
-
onClick: e[0] || (e[0] = (r) => s.$ui.modal(
|
|
3335
|
+
onClick: e[0] || (e[0] = (r) => s.$ui.modal(Ea))
|
|
3167
3336
|
}, {
|
|
3168
|
-
default:
|
|
3169
|
-
|
|
3337
|
+
default: f(() => [
|
|
3338
|
+
m(o(_a), { class: "size-6 text-red-500" })
|
|
3170
3339
|
]),
|
|
3171
3340
|
_: 1
|
|
3172
3341
|
}, 8, ["title", "aria-label"])) : M("", !0);
|
|
3173
3342
|
}
|
|
3174
|
-
}),
|
|
3343
|
+
}), bl = /* @__PURE__ */ g({
|
|
3175
3344
|
__name: "ErrorMessage",
|
|
3176
3345
|
props: {
|
|
3177
3346
|
error: {}
|
|
3178
3347
|
},
|
|
3179
3348
|
setup(t) {
|
|
3180
|
-
const s = u(() =>
|
|
3181
|
-
return (e, r) => (
|
|
3349
|
+
const s = u(() => ht(t.error));
|
|
3350
|
+
return (e, r) => (c(), h(T, {
|
|
3182
3351
|
text: s.value,
|
|
3183
3352
|
inline: ""
|
|
3184
3353
|
}, null, 8, ["text"]));
|
|
3185
3354
|
}
|
|
3186
|
-
}),
|
|
3355
|
+
}), yl = /* @__PURE__ */ g({
|
|
3187
3356
|
__name: "Link",
|
|
3188
3357
|
props: {
|
|
3189
3358
|
class: {},
|
|
@@ -3198,35 +3367,35 @@ const ha = R({ name: "zondicons-view-show", render: fa }), ga = { class: "font-m
|
|
|
3198
3367
|
as: {}
|
|
3199
3368
|
},
|
|
3200
3369
|
setup(t) {
|
|
3201
|
-
return (s, e) => (
|
|
3202
|
-
default:
|
|
3203
|
-
|
|
3370
|
+
return (s, e) => (c(), h(z, H({ variant: "link" }, s.$props), {
|
|
3371
|
+
default: f(() => [
|
|
3372
|
+
w(s.$slots, "default")
|
|
3204
3373
|
]),
|
|
3205
3374
|
_: 3
|
|
3206
3375
|
}, 16));
|
|
3207
3376
|
}
|
|
3208
|
-
}),
|
|
3377
|
+
}), wl = /* @__PURE__ */ g({
|
|
3209
3378
|
__name: "SettingsModal",
|
|
3210
3379
|
setup(t) {
|
|
3211
|
-
const s = u(() => Nt(
|
|
3212
|
-
return (e, r) => (
|
|
3380
|
+
const s = u(() => Nt(D.settings, "priority", "desc"));
|
|
3381
|
+
return (e, r) => (c(), h(G, {
|
|
3213
3382
|
title: e.$td("settings.title", "Settings")
|
|
3214
3383
|
}, {
|
|
3215
|
-
default:
|
|
3216
|
-
(
|
|
3384
|
+
default: f(() => [
|
|
3385
|
+
(c(!0), b(j, null, F(s.value, (n, a) => (c(), h(N(n.component), { key: a }))), 128))
|
|
3217
3386
|
]),
|
|
3218
3387
|
_: 1
|
|
3219
3388
|
}, 8, ["title"]));
|
|
3220
3389
|
}
|
|
3221
3390
|
});
|
|
3222
|
-
class
|
|
3391
|
+
class $l {
|
|
3223
3392
|
constructor() {
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3393
|
+
$(this, "status");
|
|
3394
|
+
$(this, "_listeners");
|
|
3395
|
+
$(this, "_progress");
|
|
3396
|
+
$(this, "_cancelled");
|
|
3397
|
+
$(this, "_started");
|
|
3398
|
+
$(this, "_completed");
|
|
3230
3399
|
this.status = this.getInitialStatus(), this._listeners = new Wt(), this._started = new W(), this._completed = new W();
|
|
3231
3400
|
}
|
|
3232
3401
|
async start() {
|
|
@@ -3234,9 +3403,9 @@ class po {
|
|
|
3234
3403
|
try {
|
|
3235
3404
|
await this.updateProgress(), await this.run(), await this.updateProgress(), this._completed.resolve();
|
|
3236
3405
|
} catch (s) {
|
|
3237
|
-
if (s instanceof
|
|
3406
|
+
if (s instanceof Be)
|
|
3238
3407
|
return;
|
|
3239
|
-
throw
|
|
3408
|
+
throw X(Kt(s), (e) => {
|
|
3240
3409
|
this._completed.reject(e);
|
|
3241
3410
|
});
|
|
3242
3411
|
}
|
|
@@ -3277,7 +3446,7 @@ class po {
|
|
|
3277
3446
|
}
|
|
3278
3447
|
assertNotCancelled() {
|
|
3279
3448
|
if (this._cancelled)
|
|
3280
|
-
throw this._cancelled.resolve(), new
|
|
3449
|
+
throw this._cancelled.resolve(), new Be();
|
|
3281
3450
|
}
|
|
3282
3451
|
calculateCurrentProgress(s) {
|
|
3283
3452
|
return s ?? (s = this.status), s.completed ? 1 : s.children ? Qt(
|
|
@@ -3294,139 +3463,142 @@ class po {
|
|
|
3294
3463
|
return { ...s };
|
|
3295
3464
|
}
|
|
3296
3465
|
}
|
|
3297
|
-
async function
|
|
3466
|
+
async function _l(t) {
|
|
3298
3467
|
await t.start();
|
|
3299
3468
|
}
|
|
3300
3469
|
export {
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3470
|
+
ml as AdvancedOptions,
|
|
3471
|
+
Qr as AlertModal,
|
|
3472
|
+
D as App,
|
|
3473
|
+
dl as AppLayout,
|
|
3474
|
+
oa as AppModals,
|
|
3475
|
+
ca as AppOverlays,
|
|
3476
|
+
Ps as AppService,
|
|
3477
|
+
ia as AppToasts,
|
|
3309
3478
|
z as Button,
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3479
|
+
Na as Cache,
|
|
3480
|
+
Us as CacheService,
|
|
3481
|
+
fl as Checkbox,
|
|
3482
|
+
tn as ConfirmModal,
|
|
3483
|
+
hl as DropdownMenu,
|
|
3484
|
+
ga as DropdownMenuOption,
|
|
3485
|
+
va as DropdownMenuOptions,
|
|
3486
|
+
gl as EditableContent,
|
|
3487
|
+
vl as ErrorLogs,
|
|
3488
|
+
Ea as ErrorLogsModal,
|
|
3489
|
+
bl as ErrorMessage,
|
|
3490
|
+
Vn as ErrorReportModal,
|
|
3491
|
+
$n as ErrorReportModalButtons,
|
|
3492
|
+
_n as ErrorReportModalTitle,
|
|
3324
3493
|
et as Errors,
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3494
|
+
qa as EventListenerPriorities,
|
|
3495
|
+
I as Events,
|
|
3496
|
+
Ts as EventsService,
|
|
3328
3497
|
vt as Form,
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3498
|
+
ur as FormController,
|
|
3499
|
+
tt as HeadlessButton,
|
|
3500
|
+
wt as HeadlessInput,
|
|
3501
|
+
qn as HeadlessInputDescription,
|
|
3502
|
+
Me as HeadlessInputError,
|
|
3503
|
+
$t as HeadlessInputInput,
|
|
3504
|
+
ke as HeadlessInputLabel,
|
|
3505
|
+
pl as HeadlessInputTextArea,
|
|
3506
|
+
jr as HeadlessModal,
|
|
3507
|
+
Br as HeadlessModalContent,
|
|
3508
|
+
qr as HeadlessModalDescription,
|
|
3509
|
+
Fr as HeadlessModalOverlay,
|
|
3510
|
+
Ur as HeadlessModalTitle,
|
|
3511
|
+
dr as HeadlessSelect,
|
|
3512
|
+
De as HeadlessSelectLabel,
|
|
3513
|
+
ct as HeadlessSelectOption,
|
|
3514
|
+
ut as HeadlessSelectOptions,
|
|
3515
|
+
it as HeadlessSelectTrigger,
|
|
3516
|
+
ot as HeadlessSelectValue,
|
|
3517
|
+
Mr as HeadlessSwitch,
|
|
3518
|
+
ta as HeadlessToast,
|
|
3519
|
+
On as Input,
|
|
3520
|
+
$l as Job,
|
|
3521
|
+
Be as JobCancelledError,
|
|
3352
3522
|
Q as Lang,
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3523
|
+
me as Layouts,
|
|
3524
|
+
yl as Link,
|
|
3525
|
+
Dn as LoadingModal,
|
|
3526
|
+
Xe as MOBILE_BREAKPOINT,
|
|
3527
|
+
T as Markdown,
|
|
3528
|
+
G as Modal,
|
|
3359
3529
|
gt as ModalContext,
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3530
|
+
An as ProgressBar,
|
|
3531
|
+
Qn as PromptModal,
|
|
3532
|
+
hr as Select,
|
|
3533
|
+
dt as SelectLabel,
|
|
3534
|
+
je as SelectOption,
|
|
3535
|
+
pt as SelectOptions,
|
|
3536
|
+
mt as SelectTrigger,
|
|
3537
|
+
be as Service,
|
|
3538
|
+
Se as ServiceBootError,
|
|
3539
|
+
Sr as Setting,
|
|
3540
|
+
wl as SettingsModal,
|
|
3541
|
+
Gn as StartupCrash,
|
|
3542
|
+
Ns as Storage,
|
|
3543
|
+
Er as Switch,
|
|
3544
|
+
sa as Toast,
|
|
3545
|
+
R as UI,
|
|
3546
|
+
Js as UIService,
|
|
3547
|
+
Ja as __objectType,
|
|
3548
|
+
tl as booleanInput,
|
|
3549
|
+
ye as bootServices,
|
|
3550
|
+
ul as bootstrap,
|
|
3551
|
+
aa as bootstrapApplication,
|
|
3380
3552
|
E as classes,
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3553
|
+
Ya as computedAsync,
|
|
3554
|
+
Ga as computedDebounce,
|
|
3555
|
+
sl as dateInput,
|
|
3556
|
+
Oa as defineDirective,
|
|
3557
|
+
Qa as defineFormValidationRule,
|
|
3558
|
+
Ua as definePlugin,
|
|
3559
|
+
ve as defineServiceState,
|
|
3560
|
+
Is as defineServiceStore,
|
|
3561
|
+
Fa as defineSettings,
|
|
3562
|
+
_l as dispatch,
|
|
3563
|
+
Ye as getCurrentLayout,
|
|
3564
|
+
ht as getErrorMessage,
|
|
3565
|
+
nr as getMarkdownRouter,
|
|
3566
|
+
Ls as getPiniaStore,
|
|
3567
|
+
or as hasSelectOptionLabel,
|
|
3568
|
+
js as injectOrFail,
|
|
3569
|
+
Ds as injectReactive,
|
|
3570
|
+
V as injectReactiveOrFail,
|
|
3571
|
+
As as installPlugins,
|
|
3572
|
+
ol as numberInput,
|
|
3573
|
+
il as objectInput,
|
|
3574
|
+
Za as onCleanMounted,
|
|
3575
|
+
nt as onFormFocus,
|
|
3576
|
+
Xa as persistent,
|
|
3577
|
+
el as registerErrorHandler,
|
|
3578
|
+
ar as renderMarkdown,
|
|
3407
3579
|
Ze as renderVNode,
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3580
|
+
Wa as replaceExisting,
|
|
3581
|
+
rl as requiredBooleanInput,
|
|
3582
|
+
nl as requiredDateInput,
|
|
3583
|
+
al as requiredNumberInput,
|
|
3584
|
+
ll as requiredObjectInput,
|
|
3585
|
+
Nn as requiredStringInput,
|
|
3586
|
+
Vs as resetPiniaStore,
|
|
3587
|
+
lr as safeHtml,
|
|
3588
|
+
Ka as setMarkdownRouter,
|
|
3589
|
+
cl as stringInput,
|
|
3590
|
+
Ge as translate,
|
|
3591
|
+
k as translateWithDefault,
|
|
3592
|
+
Kr as useAlertModal,
|
|
3593
|
+
Jr as useConfirmModal,
|
|
3594
|
+
xn as useErrorReportModal,
|
|
3595
|
+
rt as useEvent,
|
|
3596
|
+
at as useForm,
|
|
3597
|
+
lt as useInputAttrs,
|
|
3598
|
+
zn as useLoadingModal,
|
|
3599
|
+
Wn as usePromptModal,
|
|
3600
|
+
cr as validate,
|
|
3601
|
+
de as validators,
|
|
3602
|
+
st as variantClasses
|
|
3431
3603
|
};
|
|
3432
3604
|
//# sourceMappingURL=aerogel-core.js.map
|