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