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