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