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