@stonecrop/desktop 0.4.3 → 0.4.4
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/desktop.js +775 -773
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +10 -10
- package/dist/desktop.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as Q, ref as b, onMounted as ge, openBlock as x, createElementBlock as O, normalizeClass as de, createElementVNode as P, Fragment as fe, renderList as pe, toDisplayString as Z, createCommentVNode as ee, withDirectives as Ve, vShow as It, watch as D, computed as N, getCurrentScope as Re, onScopeDispose as Be, unref as k, toRef as ie, readonly as Sn, customRef as On, createBlock as ue, resolveDynamicComponent as Ct, mergeProps as Dt, effectScope as At, markRaw as F, inject as Tt, toRaw as $e, hasInjectionContext as Nn, getCurrentInstance as Ue, reactive as Pn, isRef as X, isReactive as Se, nextTick as he, toRefs as nt, useTemplateRef as We, normalizeStyle as G, renderSlot as re, createVNode as ot, withCtx as rt, createTextVNode as In, onBeforeUnmount as ko, resolveComponent as xo, withKeys as ze, vModelText as So } from "vue";
|
|
2
|
+
const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io = ["onClick"], Co = { class: "dropdown-container" }, Do = { class: "dropdown" }, Ao = ["onclick"], To = ["href"], Vo = { class: "dropdown-item" }, jo = /* @__PURE__ */ Q({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
5
5
|
elements: {}
|
|
@@ -27,12 +27,12 @@ const So = { class: "action-menu-icon" }, Oo = ["onclick"], No = { key: 1 }, Po
|
|
|
27
27
|
onMouseover: a,
|
|
28
28
|
onMouseleave: c
|
|
29
29
|
}, [
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
P("div", Oo, [
|
|
31
|
+
P("div", {
|
|
32
32
|
id: "chevron",
|
|
33
33
|
onClick: d[0] || (d[0] = (f) => s.value = !s.value)
|
|
34
34
|
}, d[1] || (d[1] = [
|
|
35
|
-
|
|
35
|
+
P("svg", {
|
|
36
36
|
class: "leftBar",
|
|
37
37
|
version: "1.1",
|
|
38
38
|
id: "Layer_1",
|
|
@@ -45,9 +45,9 @@ const So = { class: "action-menu-icon" }, Oo = ["onclick"], No = { key: 1 }, Po
|
|
|
45
45
|
width: "50",
|
|
46
46
|
height: "50"
|
|
47
47
|
}, [
|
|
48
|
-
|
|
48
|
+
P("polygon", { points: "54.2,33.4 29.2,58.8 25,54.6 50,29.2 " })
|
|
49
49
|
], -1),
|
|
50
|
-
|
|
50
|
+
P("svg", {
|
|
51
51
|
class: "rightBar",
|
|
52
52
|
version: "1.1",
|
|
53
53
|
id: "Layer_1",
|
|
@@ -60,11 +60,11 @@ const So = { class: "action-menu-icon" }, Oo = ["onclick"], No = { key: 1 }, Po
|
|
|
60
60
|
width: "50",
|
|
61
61
|
height: "50"
|
|
62
62
|
}, [
|
|
63
|
-
|
|
63
|
+
P("polygon", { points: "70.8,58.8 45.8,33.4 50,29.2 75,54.6 " })
|
|
64
64
|
], -1)
|
|
65
65
|
]))
|
|
66
66
|
]),
|
|
67
|
-
d[2] || (d[2] =
|
|
67
|
+
d[2] || (d[2] = P("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
68
68
|
(x(!0), O(fe, null, pe(t.value, (f, g) => (x(), O("div", {
|
|
69
69
|
class: "action-element",
|
|
70
70
|
key: f.label
|
|
@@ -73,52 +73,52 @@ const So = { class: "action-menu-icon" }, Oo = ["onclick"], No = { key: 1 }, Po
|
|
|
73
73
|
key: 0,
|
|
74
74
|
onclick: f.action,
|
|
75
75
|
class: "button-default"
|
|
76
|
-
},
|
|
77
|
-
f.type == "dropdown" ? (x(), O("div",
|
|
78
|
-
|
|
76
|
+
}, Z(f.label), 9, No)) : ee("", !0),
|
|
77
|
+
f.type == "dropdown" ? (x(), O("div", Po, [
|
|
78
|
+
P("button", {
|
|
79
79
|
class: "button-default",
|
|
80
|
-
onClick: (
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
(x(!0), O(fe, null, pe(f.actions, (
|
|
85
|
-
key:
|
|
80
|
+
onClick: (m) => l(g)
|
|
81
|
+
}, Z(f.label), 9, Io),
|
|
82
|
+
Ve(P("div", Co, [
|
|
83
|
+
P("div", Do, [
|
|
84
|
+
(x(!0), O(fe, null, pe(f.actions, (m) => (x(), O("div", {
|
|
85
|
+
key: m.label
|
|
86
86
|
}, [
|
|
87
|
-
|
|
87
|
+
m.action != null ? (x(), O("button", {
|
|
88
88
|
key: 0,
|
|
89
|
-
onclick:
|
|
89
|
+
onclick: m.action,
|
|
90
90
|
class: "dropdown-item"
|
|
91
|
-
},
|
|
91
|
+
}, Z(m.label), 9, Ao)) : m.link != null ? (x(), O("a", {
|
|
92
92
|
key: 1,
|
|
93
|
-
href:
|
|
93
|
+
href: m.link
|
|
94
94
|
}, [
|
|
95
|
-
|
|
96
|
-
], 8,
|
|
95
|
+
P("button", Vo, Z(m.label), 1)
|
|
96
|
+
], 8, To)) : ee("", !0)
|
|
97
97
|
]))), 128))
|
|
98
98
|
])
|
|
99
99
|
], 512), [
|
|
100
|
-
[
|
|
100
|
+
[It, f.show]
|
|
101
101
|
])
|
|
102
|
-
])) :
|
|
102
|
+
])) : ee("", !0)
|
|
103
103
|
]))), 128))
|
|
104
104
|
], 34));
|
|
105
105
|
}
|
|
106
|
-
}),
|
|
106
|
+
}), Vt = (e, t) => {
|
|
107
107
|
const n = e.__vccOpts || e;
|
|
108
108
|
for (const [o, r] of t)
|
|
109
109
|
n[o] = r;
|
|
110
110
|
return n;
|
|
111
|
-
},
|
|
112
|
-
function
|
|
111
|
+
}, Mo = /* @__PURE__ */ Vt(jo, [["__scopeId", "data-v-38e7af34"]]), Lo = {};
|
|
112
|
+
function Ro(e, t) {
|
|
113
113
|
return x(), O("dialog");
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const Bo = /* @__PURE__ */ Vt(Lo, [["render", Ro]]), Uo = (e, t) => {
|
|
116
116
|
const n = e.__vccOpts || e;
|
|
117
117
|
for (const [o, r] of t)
|
|
118
118
|
n[o] = r;
|
|
119
119
|
return n;
|
|
120
120
|
};
|
|
121
|
-
function
|
|
121
|
+
function Cn(e) {
|
|
122
122
|
return Re() ? (Be(e), !0) : !1;
|
|
123
123
|
}
|
|
124
124
|
function Ae(e) {
|
|
@@ -126,68 +126,68 @@ function Ae(e) {
|
|
|
126
126
|
}
|
|
127
127
|
const Dn = typeof window < "u" && typeof document < "u";
|
|
128
128
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
129
|
-
const
|
|
130
|
-
}, Kt = /* @__PURE__ */
|
|
131
|
-
function
|
|
129
|
+
const Wo = Object.prototype.toString, Ho = (e) => Wo.call(e) === "[object Object]", An = () => {
|
|
130
|
+
}, Kt = /* @__PURE__ */ Fo();
|
|
131
|
+
function Fo() {
|
|
132
132
|
var e, t;
|
|
133
133
|
return Dn && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function zo(...e) {
|
|
136
136
|
if (e.length !== 1)
|
|
137
|
-
return
|
|
137
|
+
return ie(...e);
|
|
138
138
|
const t = e[0];
|
|
139
139
|
return typeof t == "function" ? Sn(On(() => ({ get: t, set: An }))) : b(t);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
function
|
|
141
|
+
const Jo = Dn ? window : void 0;
|
|
142
|
+
function Go(e) {
|
|
143
143
|
var t;
|
|
144
144
|
const n = Ae(e);
|
|
145
145
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Yo(...e) {
|
|
148
148
|
let t, n, o, r;
|
|
149
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t =
|
|
149
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Jo) : [t, n, o, r] = e, !t)
|
|
150
150
|
return An;
|
|
151
151
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
152
152
|
const s = [], i = () => {
|
|
153
153
|
s.forEach((u) => u()), s.length = 0;
|
|
154
154
|
}, a = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
|
|
155
|
-
() => [
|
|
155
|
+
() => [Go(t), Ae(r)],
|
|
156
156
|
([u, d]) => {
|
|
157
157
|
if (i(), !u)
|
|
158
158
|
return;
|
|
159
|
-
const f =
|
|
159
|
+
const f = Ho(d) ? { ...d } : d;
|
|
160
160
|
s.push(
|
|
161
|
-
...n.flatMap((g) => o.map((
|
|
161
|
+
...n.flatMap((g) => o.map((m) => a(u, g, m, f)))
|
|
162
162
|
);
|
|
163
163
|
},
|
|
164
164
|
{ immediate: !0, flush: "post" }
|
|
165
165
|
), l = () => {
|
|
166
166
|
c(), i();
|
|
167
167
|
};
|
|
168
|
-
return
|
|
168
|
+
return Cn(l), l;
|
|
169
169
|
}
|
|
170
170
|
function dt(e) {
|
|
171
171
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Tn(e) {
|
|
174
174
|
const t = window.getComputedStyle(e);
|
|
175
175
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
|
|
176
176
|
return !0;
|
|
177
177
|
{
|
|
178
178
|
const n = e.parentNode;
|
|
179
|
-
return !n || n.tagName === "BODY" ? !1 :
|
|
179
|
+
return !n || n.tagName === "BODY" ? !1 : Tn(n);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Xo(e) {
|
|
183
183
|
const t = e || window.event, n = t.target;
|
|
184
|
-
return
|
|
184
|
+
return Tn(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
185
185
|
}
|
|
186
186
|
const ft = /* @__PURE__ */ new WeakMap();
|
|
187
|
-
function
|
|
187
|
+
function Qo(e, t = !1) {
|
|
188
188
|
const n = b(t);
|
|
189
189
|
let o = null, r = "";
|
|
190
|
-
D(
|
|
190
|
+
D(zo(e), (a) => {
|
|
191
191
|
const c = dt(Ae(a));
|
|
192
192
|
if (c) {
|
|
193
193
|
const l = c;
|
|
@@ -201,11 +201,11 @@ function Xo(e, t = !1) {
|
|
|
201
201
|
});
|
|
202
202
|
const s = () => {
|
|
203
203
|
const a = dt(Ae(e));
|
|
204
|
-
!a || n.value || (Kt && (o =
|
|
204
|
+
!a || n.value || (Kt && (o = Yo(
|
|
205
205
|
a,
|
|
206
206
|
"touchmove",
|
|
207
207
|
(c) => {
|
|
208
|
-
|
|
208
|
+
Xo(c);
|
|
209
209
|
},
|
|
210
210
|
{ passive: !1 }
|
|
211
211
|
)), a.style.overflow = "hidden", n.value = !0);
|
|
@@ -213,7 +213,7 @@ function Xo(e, t = !1) {
|
|
|
213
213
|
const a = dt(Ae(e));
|
|
214
214
|
!a || !n.value || (Kt && (o == null || o()), a.style.overflow = r, ft.delete(a), n.value = !1);
|
|
215
215
|
};
|
|
216
|
-
return
|
|
216
|
+
return Cn(i), N({
|
|
217
217
|
get() {
|
|
218
218
|
return n.value;
|
|
219
219
|
},
|
|
@@ -222,20 +222,20 @@ function Xo(e, t = !1) {
|
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function qo() {
|
|
226
226
|
let e = !1;
|
|
227
227
|
const t = b(!1);
|
|
228
228
|
return (n, o) => {
|
|
229
229
|
if (t.value = o.value, e)
|
|
230
230
|
return;
|
|
231
231
|
e = !0;
|
|
232
|
-
const r =
|
|
232
|
+
const r = Qo(n, o.value);
|
|
233
233
|
D(t, (s) => r.value = s);
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
qo();
|
|
237
237
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
238
|
-
const
|
|
238
|
+
const Ko = { class: "aform" }, Zo = /* @__PURE__ */ Q({
|
|
239
239
|
__name: "AForm",
|
|
240
240
|
props: {
|
|
241
241
|
modelValue: {},
|
|
@@ -249,8 +249,8 @@ const qo = { class: "aform" }, Ko = /* @__PURE__ */ Y({
|
|
|
249
249
|
for (const [c, l] of Object.entries(i))
|
|
250
250
|
["component", "fieldtype"].includes(c) || (a[c] = l), c === "rows" && l && l.length === 0 && (a.rows = o.value[i.fieldname]);
|
|
251
251
|
return a;
|
|
252
|
-
}, s =
|
|
253
|
-
get: () => e.modelValue.map((i, a) =>
|
|
252
|
+
}, s = N({
|
|
253
|
+
get: () => e.modelValue.map((i, a) => N({
|
|
254
254
|
get() {
|
|
255
255
|
return i.value;
|
|
256
256
|
},
|
|
@@ -261,8 +261,8 @@ const qo = { class: "aform" }, Ko = /* @__PURE__ */ Y({
|
|
|
261
261
|
set: () => {
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
return (i, a) => (x(), O("form",
|
|
265
|
-
(x(!0), O(fe, null, pe(i.modelValue, (c, l) => (x(), ue(
|
|
264
|
+
return (i, a) => (x(), O("form", Ko, [
|
|
265
|
+
(x(!0), O(fe, null, pe(i.modelValue, (c, l) => (x(), ue(Ct(c.component), Dt({
|
|
266
266
|
key: l,
|
|
267
267
|
schema: c,
|
|
268
268
|
modelValue: s.value[l].value,
|
|
@@ -273,8 +273,8 @@ const qo = { class: "aform" }, Ko = /* @__PURE__ */ Y({
|
|
|
273
273
|
}, r(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
|
|
274
274
|
]));
|
|
275
275
|
}
|
|
276
|
-
}),
|
|
277
|
-
var
|
|
276
|
+
}), er = /* @__PURE__ */ Uo(Zo, [["__scopeId", "data-v-68845234"]]);
|
|
277
|
+
var tr = Object.defineProperty, nr = (e, t, n) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, H = (e, t, n) => nr(e, typeof t != "symbol" ? t + "" : t, n);
|
|
278
278
|
function Et(e) {
|
|
279
279
|
this.message = e || "";
|
|
280
280
|
}
|
|
@@ -287,7 +287,7 @@ Et.prototype = Object.create(Error.prototype, {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
|
-
const
|
|
290
|
+
const Vn = class Xe {
|
|
291
291
|
/**
|
|
292
292
|
* @param registry - The immutable registry
|
|
293
293
|
* @param store - The mutable Pinia store
|
|
@@ -303,7 +303,7 @@ const Tn = class Xe {
|
|
|
303
303
|
* ```
|
|
304
304
|
*/
|
|
305
305
|
constructor(t, n, o, r, s) {
|
|
306
|
-
if (
|
|
306
|
+
if (H(this, "name", "Stonecrop"), H(this, "registry"), H(this, "store"), H(this, "schema"), H(this, "workflow"), H(this, "actions"), Xe._root)
|
|
307
307
|
return Xe._root;
|
|
308
308
|
Xe._root = this, this.registry = t, this.store = n, this.schema = o, this.workflow = r, this.actions = s;
|
|
309
309
|
}
|
|
@@ -433,8 +433,8 @@ const Tn = class Xe {
|
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
|
-
|
|
437
|
-
let
|
|
436
|
+
H(Vn, "_root");
|
|
437
|
+
let or = Vn;
|
|
438
438
|
var jn = !1;
|
|
439
439
|
function Je(e, t, n) {
|
|
440
440
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
@@ -446,22 +446,22 @@ function pt(e, t) {
|
|
|
446
446
|
}
|
|
447
447
|
delete e[t];
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function rr() {
|
|
450
450
|
return Mn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
451
451
|
}
|
|
452
452
|
function Mn() {
|
|
453
453
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
454
454
|
}
|
|
455
|
-
const
|
|
455
|
+
const sr = typeof Proxy == "function", ar = "devtools-plugin:setup", ir = "plugin:settings:set";
|
|
456
456
|
let Ne, $t;
|
|
457
|
-
function
|
|
457
|
+
function lr() {
|
|
458
458
|
var e;
|
|
459
459
|
return Ne !== void 0 || (typeof window < "u" && window.performance ? (Ne = !0, $t = window.performance) : typeof globalThis < "u" && !((e = globalThis.perf_hooks) === null || e === void 0) && e.performance ? (Ne = !0, $t = globalThis.perf_hooks.performance) : Ne = !1), Ne;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
return
|
|
461
|
+
function cr() {
|
|
462
|
+
return lr() ? $t.now() : Date.now();
|
|
463
463
|
}
|
|
464
|
-
class
|
|
464
|
+
class ur {
|
|
465
465
|
constructor(t, n) {
|
|
466
466
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
467
467
|
const o = {};
|
|
@@ -489,9 +489,9 @@ class cr {
|
|
|
489
489
|
s = i;
|
|
490
490
|
},
|
|
491
491
|
now() {
|
|
492
|
-
return
|
|
492
|
+
return cr();
|
|
493
493
|
}
|
|
494
|
-
}, n && n.on(
|
|
494
|
+
}, n && n.on(ir, (i, a) => {
|
|
495
495
|
i === this.plugin.id && this.fallbacks.setSettings(a);
|
|
496
496
|
}), this.proxiedOn = new Proxy({}, {
|
|
497
497
|
get: (i, a) => this.target ? this.target.on[a] : (...c) => {
|
|
@@ -524,11 +524,11 @@ class cr {
|
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
function Ln(e, t) {
|
|
527
|
-
const n = e, o = Mn(), r =
|
|
527
|
+
const n = e, o = Mn(), r = rr(), s = sr && n.enableEarlyProxy;
|
|
528
528
|
if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
529
|
-
r.emit(
|
|
529
|
+
r.emit(ar, e, t);
|
|
530
530
|
else {
|
|
531
|
-
const i = s ? new
|
|
531
|
+
const i = s ? new ur(n, r) : null;
|
|
532
532
|
(o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
533
533
|
pluginDescriptor: n,
|
|
534
534
|
setupFn: t,
|
|
@@ -549,12 +549,12 @@ const je = (e) => Pe = e, Rn = process.env.NODE_ENV !== "production" ? Symbol("p
|
|
|
549
549
|
function me(e) {
|
|
550
550
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Y;
|
|
553
553
|
(function(e) {
|
|
554
554
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
555
|
-
})(
|
|
556
|
-
const
|
|
557
|
-
function
|
|
555
|
+
})(Y || (Y = {}));
|
|
556
|
+
const se = typeof window < "u", Zt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
557
|
+
function dr(e, { autoBom: t = !1 } = {}) {
|
|
558
558
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
559
559
|
}
|
|
560
560
|
function jt(e, t, n) {
|
|
@@ -582,18 +582,18 @@ function Qe(e) {
|
|
|
582
582
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
const qe = typeof navigator == "object" ? navigator : { userAgent: "" }, Un = /Macintosh/.test(qe.userAgent) && /AppleWebKit/.test(qe.userAgent) && !/Safari/.test(qe.userAgent), Wn =
|
|
585
|
+
const qe = typeof navigator == "object" ? navigator : { userAgent: "" }, Un = /Macintosh/.test(qe.userAgent) && /AppleWebKit/.test(qe.userAgent) && !/Safari/.test(qe.userAgent), Wn = se ? (
|
|
586
586
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
587
|
-
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Un ?
|
|
587
|
+
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Un ? fr : (
|
|
588
588
|
// Use msSaveOrOpenBlob as a second approach
|
|
589
|
-
"msSaveOrOpenBlob" in qe ?
|
|
589
|
+
"msSaveOrOpenBlob" in qe ? pr : (
|
|
590
590
|
// Fallback to using FileReader and a popup
|
|
591
|
-
|
|
591
|
+
hr
|
|
592
592
|
)
|
|
593
593
|
)
|
|
594
594
|
) : () => {
|
|
595
595
|
};
|
|
596
|
-
function
|
|
596
|
+
function fr(e, t = "download", n) {
|
|
597
597
|
const o = document.createElement("a");
|
|
598
598
|
o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? Bn(o.href) ? jt(e, t, n) : (o.target = "_blank", Qe(o)) : Qe(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
|
|
599
599
|
URL.revokeObjectURL(o.href);
|
|
@@ -601,7 +601,7 @@ function dr(e, t = "download", n) {
|
|
|
601
601
|
Qe(o);
|
|
602
602
|
}, 0));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function pr(e, t = "download", n) {
|
|
605
605
|
if (typeof e == "string")
|
|
606
606
|
if (Bn(e))
|
|
607
607
|
jt(e, t, n);
|
|
@@ -612,9 +612,9 @@ function fr(e, t = "download", n) {
|
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
614
|
else
|
|
615
|
-
navigator.msSaveOrOpenBlob(
|
|
615
|
+
navigator.msSaveOrOpenBlob(dr(e, n), t);
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function hr(e, t, n, o) {
|
|
618
618
|
if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
|
|
619
619
|
return jt(e, t, n);
|
|
620
620
|
const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Zt.HTMLElement)) || "safari" in Zt, i = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
@@ -633,7 +633,7 @@ function pr(e, t, n, o) {
|
|
|
633
633
|
}, 4e4);
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function V(e, t) {
|
|
637
637
|
const n = "🍍 " + e;
|
|
638
638
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(n, t) : t === "error" ? console.error(n) : t === "warn" ? console.warn(n) : console.log(n);
|
|
639
639
|
}
|
|
@@ -642,65 +642,65 @@ function Mt(e) {
|
|
|
642
642
|
}
|
|
643
643
|
function Hn() {
|
|
644
644
|
if (!("clipboard" in navigator))
|
|
645
|
-
return
|
|
645
|
+
return V("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
646
646
|
}
|
|
647
647
|
function Fn(e) {
|
|
648
|
-
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (
|
|
648
|
+
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (V('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
649
649
|
}
|
|
650
|
-
async function
|
|
650
|
+
async function mr(e) {
|
|
651
651
|
if (!Hn())
|
|
652
652
|
try {
|
|
653
|
-
await navigator.clipboard.writeText(JSON.stringify(e.state.value)),
|
|
653
|
+
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), V("Global state copied to clipboard.");
|
|
654
654
|
} catch (t) {
|
|
655
655
|
if (Fn(t))
|
|
656
656
|
return;
|
|
657
|
-
|
|
657
|
+
V("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
async function
|
|
660
|
+
async function vr(e) {
|
|
661
661
|
if (!Hn())
|
|
662
662
|
try {
|
|
663
|
-
zn(e, JSON.parse(await navigator.clipboard.readText())),
|
|
663
|
+
zn(e, JSON.parse(await navigator.clipboard.readText())), V("Global state pasted from clipboard.");
|
|
664
664
|
} catch (t) {
|
|
665
665
|
if (Fn(t))
|
|
666
666
|
return;
|
|
667
|
-
|
|
667
|
+
V("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
async function
|
|
670
|
+
async function gr(e) {
|
|
671
671
|
try {
|
|
672
672
|
Wn(new Blob([JSON.stringify(e.state.value)], {
|
|
673
673
|
type: "text/plain;charset=utf-8"
|
|
674
674
|
}), "pinia-state.json");
|
|
675
675
|
} catch (t) {
|
|
676
|
-
|
|
676
|
+
V("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
|
-
let
|
|
680
|
-
function
|
|
681
|
-
|
|
679
|
+
let K;
|
|
680
|
+
function yr() {
|
|
681
|
+
K || (K = document.createElement("input"), K.type = "file", K.accept = ".json");
|
|
682
682
|
function e() {
|
|
683
683
|
return new Promise((t, n) => {
|
|
684
|
-
|
|
685
|
-
const o =
|
|
684
|
+
K.onchange = async () => {
|
|
685
|
+
const o = K.files;
|
|
686
686
|
if (!o)
|
|
687
687
|
return t(null);
|
|
688
688
|
const r = o.item(0);
|
|
689
689
|
return t(r ? { text: await r.text(), file: r } : null);
|
|
690
|
-
},
|
|
690
|
+
}, K.oncancel = () => t(null), K.onerror = n, K.click();
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
693
|
return e;
|
|
694
694
|
}
|
|
695
|
-
async function
|
|
695
|
+
async function wr(e) {
|
|
696
696
|
try {
|
|
697
|
-
const t = await
|
|
697
|
+
const t = await yr()();
|
|
698
698
|
if (!t)
|
|
699
699
|
return;
|
|
700
700
|
const { text: n, file: o } = t;
|
|
701
|
-
zn(e, JSON.parse(n)),
|
|
701
|
+
zn(e, JSON.parse(n)), V(`Global state imported from "${o.name}".`);
|
|
702
702
|
} catch (t) {
|
|
703
|
-
|
|
703
|
+
V("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
function zn(e, t) {
|
|
@@ -709,7 +709,7 @@ function zn(e, t) {
|
|
|
709
709
|
o ? Object.assign(o, t[n]) : e.state.value[n] = t[n];
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function J(e) {
|
|
713
713
|
return {
|
|
714
714
|
_custom: {
|
|
715
715
|
display: e
|
|
@@ -717,7 +717,7 @@ function F(e) {
|
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
719
|
const Jn = "🍍 Pinia (root)", Ke = "_root";
|
|
720
|
-
function
|
|
720
|
+
function br(e) {
|
|
721
721
|
return Mt(e) ? {
|
|
722
722
|
id: Ke,
|
|
723
723
|
label: Jn
|
|
@@ -726,7 +726,7 @@ function wr(e) {
|
|
|
726
726
|
label: e.$id
|
|
727
727
|
};
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function _r(e) {
|
|
730
730
|
if (Mt(e)) {
|
|
731
731
|
const n = Array.from(e._s.keys()), o = e._s;
|
|
732
732
|
return {
|
|
@@ -762,34 +762,34 @@ function br(e) {
|
|
|
762
762
|
value: e[n]
|
|
763
763
|
}))), t;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Er(e) {
|
|
766
766
|
return e ? Array.isArray(e) ? e.reduce((t, n) => (t.keys.push(n.key), t.operations.push(n.type), t.oldValue[n.key] = n.oldValue, t.newValue[n.key] = n.newValue, t), {
|
|
767
767
|
oldValue: {},
|
|
768
768
|
keys: [],
|
|
769
769
|
operations: [],
|
|
770
770
|
newValue: {}
|
|
771
771
|
}) : {
|
|
772
|
-
operation:
|
|
773
|
-
key:
|
|
772
|
+
operation: J(e.type),
|
|
773
|
+
key: J(e.key),
|
|
774
774
|
oldValue: e.oldValue,
|
|
775
775
|
newValue: e.newValue
|
|
776
776
|
} : {};
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function $r(e) {
|
|
779
779
|
switch (e) {
|
|
780
|
-
case
|
|
780
|
+
case Y.direct:
|
|
781
781
|
return "mutation";
|
|
782
|
-
case
|
|
782
|
+
case Y.patchFunction:
|
|
783
783
|
return "$patch";
|
|
784
|
-
case
|
|
784
|
+
case Y.patchObject:
|
|
785
785
|
return "$patch";
|
|
786
786
|
default:
|
|
787
787
|
return "unknown";
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
let be = !0;
|
|
791
|
-
const Ze = [], ce = "pinia:mutations",
|
|
792
|
-
function
|
|
791
|
+
const Ze = [], ce = "pinia:mutations", M = "pinia", { assign: kr } = Object, st = (e) => "🍍 " + e;
|
|
792
|
+
function xr(e, t) {
|
|
793
793
|
Ln({
|
|
794
794
|
id: "dev.esm.pinia",
|
|
795
795
|
label: "Pinia 🍍",
|
|
@@ -799,12 +799,12 @@ function kr(e, t) {
|
|
|
799
799
|
componentStateTypes: Ze,
|
|
800
800
|
app: e
|
|
801
801
|
}, (n) => {
|
|
802
|
-
typeof n.now != "function" &&
|
|
802
|
+
typeof n.now != "function" && V("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
|
|
803
803
|
id: ce,
|
|
804
804
|
label: "Pinia 🍍",
|
|
805
805
|
color: 15064968
|
|
806
806
|
}), n.addInspector({
|
|
807
|
-
id:
|
|
807
|
+
id: M,
|
|
808
808
|
label: "Pinia 🍍",
|
|
809
809
|
icon: "storage",
|
|
810
810
|
treeFilterPlaceholder: "Search stores",
|
|
@@ -812,28 +812,28 @@ function kr(e, t) {
|
|
|
812
812
|
{
|
|
813
813
|
icon: "content_copy",
|
|
814
814
|
action: () => {
|
|
815
|
-
|
|
815
|
+
mr(t);
|
|
816
816
|
},
|
|
817
817
|
tooltip: "Serialize and copy the state"
|
|
818
818
|
},
|
|
819
819
|
{
|
|
820
820
|
icon: "content_paste",
|
|
821
821
|
action: async () => {
|
|
822
|
-
await
|
|
822
|
+
await vr(t), n.sendInspectorTree(M), n.sendInspectorState(M);
|
|
823
823
|
},
|
|
824
824
|
tooltip: "Replace the state with the content of your clipboard"
|
|
825
825
|
},
|
|
826
826
|
{
|
|
827
827
|
icon: "save",
|
|
828
828
|
action: () => {
|
|
829
|
-
|
|
829
|
+
gr(t);
|
|
830
830
|
},
|
|
831
831
|
tooltip: "Save the state as a JSON file"
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
834
|
icon: "folder_open",
|
|
835
835
|
action: async () => {
|
|
836
|
-
await
|
|
836
|
+
await wr(t), n.sendInspectorTree(M), n.sendInspectorState(M);
|
|
837
837
|
},
|
|
838
838
|
tooltip: "Import the state from a JSON file"
|
|
839
839
|
}
|
|
@@ -844,7 +844,7 @@ function kr(e, t) {
|
|
|
844
844
|
tooltip: 'Reset the state (with "$reset")',
|
|
845
845
|
action: (o) => {
|
|
846
846
|
const r = t._s.get(o);
|
|
847
|
-
r ? typeof r.$reset != "function" ?
|
|
847
|
+
r ? typeof r.$reset != "function" ? V(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`, "warn") : (r.$reset(), V(`Store "${o}" reset.`)) : V(`Cannot reset "${o}" store because it wasn't found.`, "warn");
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
]
|
|
@@ -888,22 +888,22 @@ function kr(e, t) {
|
|
|
888
888
|
});
|
|
889
889
|
}
|
|
890
890
|
}), n.on.getInspectorTree((o) => {
|
|
891
|
-
if (o.app === e && o.inspectorId ===
|
|
891
|
+
if (o.app === e && o.inspectorId === M) {
|
|
892
892
|
let r = [t];
|
|
893
|
-
r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Jn.toLowerCase().includes(o.filter.toLowerCase())) : r).map(
|
|
893
|
+
r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Jn.toLowerCase().includes(o.filter.toLowerCase())) : r).map(br);
|
|
894
894
|
}
|
|
895
895
|
}), globalThis.$pinia = t, n.on.getInspectorState((o) => {
|
|
896
|
-
if (o.app === e && o.inspectorId ===
|
|
896
|
+
if (o.app === e && o.inspectorId === M) {
|
|
897
897
|
const r = o.nodeId === Ke ? t : t._s.get(o.nodeId);
|
|
898
898
|
if (!r)
|
|
899
899
|
return;
|
|
900
|
-
r && (o.nodeId !== Ke && (globalThis.$store = $e(r)), o.state =
|
|
900
|
+
r && (o.nodeId !== Ke && (globalThis.$store = $e(r)), o.state = _r(r));
|
|
901
901
|
}
|
|
902
902
|
}), n.on.editInspectorState((o, r) => {
|
|
903
|
-
if (o.app === e && o.inspectorId ===
|
|
903
|
+
if (o.app === e && o.inspectorId === M) {
|
|
904
904
|
const s = o.nodeId === Ke ? t : t._s.get(o.nodeId);
|
|
905
905
|
if (!s)
|
|
906
|
-
return
|
|
906
|
+
return V(`store "${o.nodeId}" not found`, "error");
|
|
907
907
|
const { path: i } = o;
|
|
908
908
|
Mt(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), be = !1, o.set(s, i, o.state.value), be = !0;
|
|
909
909
|
}
|
|
@@ -911,10 +911,10 @@ function kr(e, t) {
|
|
|
911
911
|
if (o.type.startsWith("🍍")) {
|
|
912
912
|
const r = o.type.replace(/^🍍\s*/, ""), s = t._s.get(r);
|
|
913
913
|
if (!s)
|
|
914
|
-
return
|
|
914
|
+
return V(`store "${r}" not found`, "error");
|
|
915
915
|
const { path: i } = o;
|
|
916
916
|
if (i[0] !== "state")
|
|
917
|
-
return
|
|
917
|
+
return V(`Invalid path for store "${r}":
|
|
918
918
|
${i}
|
|
919
919
|
Only state can be modified.`);
|
|
920
920
|
i[0] = "$state", be = !1, o.set(s, i, o.state.value), be = !0;
|
|
@@ -922,7 +922,7 @@ Only state can be modified.`);
|
|
|
922
922
|
});
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function Sr(e, t) {
|
|
926
926
|
Ze.includes(st(t.$id)) || Ze.push(st(t.$id)), Ln({
|
|
927
927
|
id: "dev.esm.pinia",
|
|
928
928
|
label: "Pinia 🍍",
|
|
@@ -954,22 +954,22 @@ function xr(e, t) {
|
|
|
954
954
|
title: "🛫 " + c,
|
|
955
955
|
subtitle: "start",
|
|
956
956
|
data: {
|
|
957
|
-
store:
|
|
958
|
-
action:
|
|
957
|
+
store: J(t.$id),
|
|
958
|
+
action: J(c),
|
|
959
959
|
args: l
|
|
960
960
|
},
|
|
961
961
|
groupId: u
|
|
962
962
|
}
|
|
963
963
|
}), i((d) => {
|
|
964
|
-
|
|
964
|
+
ae = void 0, n.addTimelineEvent({
|
|
965
965
|
layerId: ce,
|
|
966
966
|
event: {
|
|
967
967
|
time: o(),
|
|
968
968
|
title: "🛬 " + c,
|
|
969
969
|
subtitle: "end",
|
|
970
970
|
data: {
|
|
971
|
-
store:
|
|
972
|
-
action:
|
|
971
|
+
store: J(t.$id),
|
|
972
|
+
action: J(c),
|
|
973
973
|
args: l,
|
|
974
974
|
result: d
|
|
975
975
|
},
|
|
@@ -977,7 +977,7 @@ function xr(e, t) {
|
|
|
977
977
|
}
|
|
978
978
|
});
|
|
979
979
|
}), a((d) => {
|
|
980
|
-
|
|
980
|
+
ae = void 0, n.addTimelineEvent({
|
|
981
981
|
layerId: ce,
|
|
982
982
|
event: {
|
|
983
983
|
time: o(),
|
|
@@ -985,8 +985,8 @@ function xr(e, t) {
|
|
|
985
985
|
title: "💥 " + c,
|
|
986
986
|
subtitle: "end",
|
|
987
987
|
data: {
|
|
988
|
-
store:
|
|
989
|
-
action:
|
|
988
|
+
store: J(t.$id),
|
|
989
|
+
action: J(c),
|
|
990
990
|
args: l,
|
|
991
991
|
error: d
|
|
992
992
|
},
|
|
@@ -996,7 +996,7 @@ function xr(e, t) {
|
|
|
996
996
|
});
|
|
997
997
|
}, !0), t._customProperties.forEach((i) => {
|
|
998
998
|
D(() => k(t[i]), (a, c) => {
|
|
999
|
-
n.notifyComponentUpdate(), n.sendInspectorState(
|
|
999
|
+
n.notifyComponentUpdate(), n.sendInspectorState(M), be && n.addTimelineEvent({
|
|
1000
1000
|
layerId: ce,
|
|
1001
1001
|
event: {
|
|
1002
1002
|
time: o(),
|
|
@@ -1006,20 +1006,20 @@ function xr(e, t) {
|
|
|
1006
1006
|
newValue: a,
|
|
1007
1007
|
oldValue: c
|
|
1008
1008
|
},
|
|
1009
|
-
groupId:
|
|
1009
|
+
groupId: ae
|
|
1010
1010
|
}
|
|
1011
1011
|
});
|
|
1012
1012
|
}, { deep: !0 });
|
|
1013
1013
|
}), t.$subscribe(({ events: i, type: a }, c) => {
|
|
1014
|
-
if (n.notifyComponentUpdate(), n.sendInspectorState(
|
|
1014
|
+
if (n.notifyComponentUpdate(), n.sendInspectorState(M), !be)
|
|
1015
1015
|
return;
|
|
1016
1016
|
const l = {
|
|
1017
1017
|
time: o(),
|
|
1018
|
-
title:
|
|
1019
|
-
data:
|
|
1020
|
-
groupId:
|
|
1018
|
+
title: $r(a),
|
|
1019
|
+
data: kr({ store: J(t.$id) }, Er(i)),
|
|
1020
|
+
groupId: ae
|
|
1021
1021
|
};
|
|
1022
|
-
a ===
|
|
1022
|
+
a === Y.patchFunction ? l.subtitle = "⤵️" : a === Y.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
|
|
1023
1023
|
_custom: {
|
|
1024
1024
|
display: "DebuggerEvent",
|
|
1025
1025
|
type: "object",
|
|
@@ -1032,7 +1032,7 @@ function xr(e, t) {
|
|
|
1032
1032
|
});
|
|
1033
1033
|
}, { detached: !0, flush: "sync" });
|
|
1034
1034
|
const r = t._hotUpdate;
|
|
1035
|
-
t._hotUpdate =
|
|
1035
|
+
t._hotUpdate = F((i) => {
|
|
1036
1036
|
r(i), n.addTimelineEvent({
|
|
1037
1037
|
layerId: ce,
|
|
1038
1038
|
event: {
|
|
@@ -1040,37 +1040,37 @@ function xr(e, t) {
|
|
|
1040
1040
|
title: "🔥 " + t.$id,
|
|
1041
1041
|
subtitle: "HMR update",
|
|
1042
1042
|
data: {
|
|
1043
|
-
store:
|
|
1044
|
-
info:
|
|
1043
|
+
store: J(t.$id),
|
|
1044
|
+
info: J("HMR update")
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
}), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
1047
|
+
}), n.notifyComponentUpdate(), n.sendInspectorTree(M), n.sendInspectorState(M);
|
|
1048
1048
|
});
|
|
1049
1049
|
const { $dispose: s } = t;
|
|
1050
1050
|
t.$dispose = () => {
|
|
1051
|
-
s(), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
1052
|
-
}, n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
1051
|
+
s(), n.notifyComponentUpdate(), n.sendInspectorTree(M), n.sendInspectorState(M), n.getSettings().logStoreChanges && V(`Disposed "${t.$id}" store 🗑`);
|
|
1052
|
+
}, n.notifyComponentUpdate(), n.sendInspectorTree(M), n.sendInspectorState(M), n.getSettings().logStoreChanges && V(`"${t.$id}" store installed 🆕`);
|
|
1053
1053
|
});
|
|
1054
1054
|
}
|
|
1055
|
-
let Gn = 0,
|
|
1055
|
+
let Gn = 0, ae;
|
|
1056
1056
|
function en(e, t, n) {
|
|
1057
1057
|
const o = t.reduce((r, s) => (r[s] = $e(e)[s], r), {});
|
|
1058
1058
|
for (const r in o)
|
|
1059
1059
|
e[r] = function() {
|
|
1060
1060
|
const s = Gn, i = n ? new Proxy(e, {
|
|
1061
1061
|
get(...c) {
|
|
1062
|
-
return
|
|
1062
|
+
return ae = s, Reflect.get(...c);
|
|
1063
1063
|
},
|
|
1064
1064
|
set(...c) {
|
|
1065
|
-
return
|
|
1065
|
+
return ae = s, Reflect.set(...c);
|
|
1066
1066
|
}
|
|
1067
1067
|
}) : e;
|
|
1068
|
-
|
|
1068
|
+
ae = s;
|
|
1069
1069
|
const a = o[r].apply(i, arguments);
|
|
1070
|
-
return
|
|
1070
|
+
return ae = void 0, a;
|
|
1071
1071
|
};
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function Or({ app: e, store: t, options: n }) {
|
|
1074
1074
|
if (!t.$id.startsWith("__hot:")) {
|
|
1075
1075
|
if (t._isOptionsAPI = !!n.state, !t._p._testing) {
|
|
1076
1076
|
en(t, Object.keys(n.actions), t._isOptionsAPI);
|
|
@@ -1079,19 +1079,19 @@ function Sr({ app: e, store: t, options: n }) {
|
|
|
1079
1079
|
o.apply(this, arguments), en(t, Object.keys(r._hmrPayload.actions), !!t._isOptionsAPI);
|
|
1080
1080
|
};
|
|
1081
1081
|
}
|
|
1082
|
-
|
|
1082
|
+
Sr(
|
|
1083
1083
|
e,
|
|
1084
1084
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
1085
1085
|
t
|
|
1086
1086
|
);
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function Nr() {
|
|
1090
1090
|
const e = At(!0), t = e.run(() => b({}));
|
|
1091
1091
|
let n = [], o = [];
|
|
1092
|
-
const r =
|
|
1092
|
+
const r = F({
|
|
1093
1093
|
install(s) {
|
|
1094
|
-
je(r), r._a = s, s.provide(Rn, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
1094
|
+
je(r), r._a = s, s.provide(Rn, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se && xr(s, r), o.forEach((i) => n.push(i)), o = [];
|
|
1095
1095
|
},
|
|
1096
1096
|
use(s) {
|
|
1097
1097
|
return !this._a && !jn ? o.push(s) : n.push(s), this;
|
|
@@ -1104,7 +1104,7 @@ function Or() {
|
|
|
1104
1104
|
_s: /* @__PURE__ */ new Map(),
|
|
1105
1105
|
state: t
|
|
1106
1106
|
});
|
|
1107
|
-
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
1107
|
+
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se && typeof Proxy < "u" && r.use(Or), r;
|
|
1108
1108
|
}
|
|
1109
1109
|
function Yn(e, t) {
|
|
1110
1110
|
for (const n in t) {
|
|
@@ -1112,7 +1112,7 @@ function Yn(e, t) {
|
|
|
1112
1112
|
if (!(n in e))
|
|
1113
1113
|
continue;
|
|
1114
1114
|
const r = e[n];
|
|
1115
|
-
me(r) && me(o) && !
|
|
1115
|
+
me(r) && me(o) && !X(o) && !Se(o) ? e[n] = Yn(r, o) : e[n] = o;
|
|
1116
1116
|
}
|
|
1117
1117
|
return e;
|
|
1118
1118
|
}
|
|
@@ -1131,27 +1131,27 @@ function ye(e, ...t) {
|
|
|
1131
1131
|
n(...t);
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
|
-
const
|
|
1134
|
+
const Pr = (e) => e(), nn = Symbol(), ht = Symbol();
|
|
1135
1135
|
function kt(e, t) {
|
|
1136
1136
|
e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
1137
1137
|
for (const n in t) {
|
|
1138
1138
|
if (!t.hasOwnProperty(n))
|
|
1139
1139
|
continue;
|
|
1140
1140
|
const o = t[n], r = e[n];
|
|
1141
|
-
me(r) && me(o) && e.hasOwnProperty(n) && !
|
|
1141
|
+
me(r) && me(o) && e.hasOwnProperty(n) && !X(o) && !Se(o) ? e[n] = kt(r, o) : e[n] = o;
|
|
1142
1142
|
}
|
|
1143
1143
|
return e;
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1145
|
+
const Ir = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
1146
1146
|
/* istanbul ignore next */
|
|
1147
1147
|
Symbol()
|
|
1148
1148
|
);
|
|
1149
1149
|
function Cr(e) {
|
|
1150
|
-
return !me(e) || !e.hasOwnProperty(
|
|
1150
|
+
return !me(e) || !e.hasOwnProperty(Ir);
|
|
1151
1151
|
}
|
|
1152
|
-
const { assign:
|
|
1152
|
+
const { assign: U } = Object;
|
|
1153
1153
|
function on(e) {
|
|
1154
|
-
return !!(
|
|
1154
|
+
return !!(X(e) && e.effect);
|
|
1155
1155
|
}
|
|
1156
1156
|
function rn(e, t, n, o) {
|
|
1157
1157
|
const { state: r, actions: s, getters: i } = t, a = n.state.value[e];
|
|
@@ -1162,7 +1162,7 @@ function rn(e, t, n, o) {
|
|
|
1162
1162
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1163
1163
|
nt(b(r ? r() : {}).value)
|
|
1164
1164
|
) : nt(n.state.value[e]);
|
|
1165
|
-
return
|
|
1165
|
+
return U(u, s, Object.keys(i || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = F(N(() => {
|
|
1166
1166
|
je(n);
|
|
1167
1167
|
const g = n._s.get(e);
|
|
1168
1168
|
return i[f].call(g, g);
|
|
@@ -1172,26 +1172,26 @@ function rn(e, t, n, o) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
function xt(e, t, n = {}, o, r, s) {
|
|
1174
1174
|
let i;
|
|
1175
|
-
const a =
|
|
1175
|
+
const a = U({ actions: {} }, n);
|
|
1176
1176
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
1177
1177
|
throw new Error("Pinia destroyed");
|
|
1178
1178
|
const c = { deep: !0 };
|
|
1179
1179
|
process.env.NODE_ENV !== "production" && !jn && (c.onTrigger = (y) => {
|
|
1180
|
-
l ? g = y : l == !1 && !
|
|
1180
|
+
l ? g = y : l == !1 && !h._hotUpdating && (Array.isArray(g) ? g.push(y) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1181
1181
|
});
|
|
1182
1182
|
let l, u, d = [], f = [], g;
|
|
1183
|
-
const
|
|
1184
|
-
!s && !
|
|
1183
|
+
const m = o.state.value[e];
|
|
1184
|
+
!s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
1185
1185
|
const w = b({});
|
|
1186
1186
|
let _;
|
|
1187
|
-
function
|
|
1187
|
+
function I(y) {
|
|
1188
1188
|
let p;
|
|
1189
1189
|
l = u = !1, process.env.NODE_ENV !== "production" && (g = []), typeof y == "function" ? (y(o.state.value[e]), p = {
|
|
1190
|
-
type:
|
|
1190
|
+
type: Y.patchFunction,
|
|
1191
1191
|
storeId: e,
|
|
1192
1192
|
events: g
|
|
1193
1193
|
}) : (kt(o.state.value[e], y), p = {
|
|
1194
|
-
type:
|
|
1194
|
+
type: Y.patchObject,
|
|
1195
1195
|
payload: y,
|
|
1196
1196
|
storeId: e,
|
|
1197
1197
|
events: g
|
|
@@ -1201,10 +1201,10 @@ function xt(e, t, n = {}, o, r, s) {
|
|
|
1201
1201
|
_ === v && (l = !0);
|
|
1202
1202
|
}), u = !0, ye(d, p, o.state.value[e]);
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1204
|
+
const S = s ? function() {
|
|
1205
1205
|
const { state: y } = n, p = y ? y() : {};
|
|
1206
1206
|
this.$patch((v) => {
|
|
1207
|
-
|
|
1207
|
+
U(v, p);
|
|
1208
1208
|
});
|
|
1209
1209
|
} : (
|
|
1210
1210
|
/* istanbul ignore next */
|
|
@@ -1212,123 +1212,123 @@ function xt(e, t, n = {}, o, r, s) {
|
|
|
1212
1212
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
1213
1213
|
} : Xn
|
|
1214
1214
|
);
|
|
1215
|
-
function
|
|
1215
|
+
function j() {
|
|
1216
1216
|
i.stop(), d = [], f = [], o._s.delete(e);
|
|
1217
1217
|
}
|
|
1218
|
-
const
|
|
1218
|
+
const R = (y, p = "") => {
|
|
1219
1219
|
if (nn in y)
|
|
1220
1220
|
return y[ht] = p, y;
|
|
1221
1221
|
const v = function() {
|
|
1222
1222
|
je(o);
|
|
1223
|
-
const $ = Array.from(arguments), A = [],
|
|
1224
|
-
function Oe(
|
|
1225
|
-
A.push(
|
|
1223
|
+
const $ = Array.from(arguments), A = [], q = [];
|
|
1224
|
+
function Oe(T) {
|
|
1225
|
+
A.push(T);
|
|
1226
1226
|
}
|
|
1227
|
-
function ut(
|
|
1228
|
-
|
|
1227
|
+
function ut(T) {
|
|
1228
|
+
q.push(T);
|
|
1229
1229
|
}
|
|
1230
1230
|
ye(f, {
|
|
1231
1231
|
args: $,
|
|
1232
1232
|
name: v[ht],
|
|
1233
|
-
store:
|
|
1233
|
+
store: h,
|
|
1234
1234
|
after: Oe,
|
|
1235
1235
|
onError: ut
|
|
1236
1236
|
});
|
|
1237
1237
|
let le;
|
|
1238
1238
|
try {
|
|
1239
|
-
le = y.apply(this && this.$id === e ? this :
|
|
1240
|
-
} catch (
|
|
1241
|
-
throw ye(
|
|
1239
|
+
le = y.apply(this && this.$id === e ? this : h, $);
|
|
1240
|
+
} catch (T) {
|
|
1241
|
+
throw ye(q, T), T;
|
|
1242
1242
|
}
|
|
1243
|
-
return le instanceof Promise ? le.then((
|
|
1243
|
+
return le instanceof Promise ? le.then((T) => (ye(A, T), T)).catch((T) => (ye(q, T), Promise.reject(T))) : (ye(A, le), le);
|
|
1244
1244
|
};
|
|
1245
1245
|
return v[nn] = !0, v[ht] = p, v;
|
|
1246
|
-
},
|
|
1246
|
+
}, L = /* @__PURE__ */ F({
|
|
1247
1247
|
actions: {},
|
|
1248
1248
|
getters: {},
|
|
1249
1249
|
state: [],
|
|
1250
1250
|
hotState: w
|
|
1251
|
-
}),
|
|
1251
|
+
}), C = {
|
|
1252
1252
|
_p: o,
|
|
1253
1253
|
// _s: scope,
|
|
1254
1254
|
$id: e,
|
|
1255
1255
|
$onAction: tn.bind(null, f),
|
|
1256
|
-
$patch:
|
|
1257
|
-
$reset:
|
|
1256
|
+
$patch: I,
|
|
1257
|
+
$reset: S,
|
|
1258
1258
|
$subscribe(y, p = {}) {
|
|
1259
1259
|
const v = tn(d, y, p.detached, () => $()), $ = i.run(() => D(() => o.state.value[e], (A) => {
|
|
1260
1260
|
(p.flush === "sync" ? u : l) && y({
|
|
1261
1261
|
storeId: e,
|
|
1262
|
-
type:
|
|
1262
|
+
type: Y.direct,
|
|
1263
1263
|
events: g
|
|
1264
1264
|
}, A);
|
|
1265
|
-
},
|
|
1265
|
+
}, U({}, c, p)));
|
|
1266
1266
|
return v;
|
|
1267
1267
|
},
|
|
1268
|
-
$dispose:
|
|
1269
|
-
},
|
|
1268
|
+
$dispose: j
|
|
1269
|
+
}, h = Pn(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se ? U(
|
|
1270
1270
|
{
|
|
1271
|
-
_hmrPayload:
|
|
1272
|
-
_customProperties:
|
|
1271
|
+
_hmrPayload: L,
|
|
1272
|
+
_customProperties: F(/* @__PURE__ */ new Set())
|
|
1273
1273
|
// devtools custom properties
|
|
1274
1274
|
},
|
|
1275
|
-
|
|
1275
|
+
C
|
|
1276
1276
|
// must be added later
|
|
1277
1277
|
// setupStore
|
|
1278
|
-
) :
|
|
1279
|
-
o._s.set(e,
|
|
1280
|
-
const E = (o._a && o._a.runWithContext ||
|
|
1278
|
+
) : C);
|
|
1279
|
+
o._s.set(e, h);
|
|
1280
|
+
const E = (o._a && o._a.runWithContext || Pr)(() => o._e.run(() => (i = At()).run(() => t({ action: R }))));
|
|
1281
1281
|
for (const y in E) {
|
|
1282
1282
|
const p = E[y];
|
|
1283
|
-
if (
|
|
1284
|
-
process.env.NODE_ENV !== "production" && r ? Je(w.value, y,
|
|
1283
|
+
if (X(p) && !on(p) || Se(p))
|
|
1284
|
+
process.env.NODE_ENV !== "production" && r ? Je(w.value, y, ie(E, y)) : s || (m && Cr(p) && (X(p) ? p.value = m[y] : kt(p, m[y])), o.state.value[e][y] = p), process.env.NODE_ENV !== "production" && L.state.push(y);
|
|
1285
1285
|
else if (typeof p == "function") {
|
|
1286
|
-
const v = process.env.NODE_ENV !== "production" && r ? p :
|
|
1287
|
-
E[y] = v, process.env.NODE_ENV !== "production" && (
|
|
1288
|
-
} else process.env.NODE_ENV !== "production" && on(p) && (
|
|
1286
|
+
const v = process.env.NODE_ENV !== "production" && r ? p : R(p, y);
|
|
1287
|
+
E[y] = v, process.env.NODE_ENV !== "production" && (L.actions[y] = p), a.actions[y] = p;
|
|
1288
|
+
} else process.env.NODE_ENV !== "production" && on(p) && (L.getters[y] = s ? (
|
|
1289
1289
|
// @ts-expect-error
|
|
1290
1290
|
n.getters[y]
|
|
1291
|
-
) : p,
|
|
1292
|
-
(E._getters =
|
|
1291
|
+
) : p, se && (E._getters || // @ts-expect-error: same
|
|
1292
|
+
(E._getters = F([]))).push(y));
|
|
1293
1293
|
}
|
|
1294
|
-
if (
|
|
1294
|
+
if (U(h, E), U($e(h), E), Object.defineProperty(h, "$state", {
|
|
1295
1295
|
get: () => process.env.NODE_ENV !== "production" && r ? w.value : o.state.value[e],
|
|
1296
1296
|
set: (y) => {
|
|
1297
1297
|
if (process.env.NODE_ENV !== "production" && r)
|
|
1298
1298
|
throw new Error("cannot set hotState");
|
|
1299
|
-
|
|
1300
|
-
|
|
1299
|
+
I((p) => {
|
|
1300
|
+
U(p, y);
|
|
1301
1301
|
});
|
|
1302
1302
|
}
|
|
1303
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1304
|
-
|
|
1305
|
-
if (p in
|
|
1306
|
-
const v = y.$state[p], $ =
|
|
1303
|
+
}), process.env.NODE_ENV !== "production" && (h._hotUpdate = F((y) => {
|
|
1304
|
+
h._hotUpdating = !0, y._hmrPayload.state.forEach((p) => {
|
|
1305
|
+
if (p in h.$state) {
|
|
1306
|
+
const v = y.$state[p], $ = h.$state[p];
|
|
1307
1307
|
typeof v == "object" && me(v) && me($) ? Yn(v, $) : y.$state[p] = $;
|
|
1308
1308
|
}
|
|
1309
|
-
Je(
|
|
1310
|
-
}), Object.keys(
|
|
1311
|
-
p in y.$state || pt(
|
|
1312
|
-
}), l = !1, u = !1, o.state.value[e] =
|
|
1309
|
+
Je(h, p, ie(y.$state, p));
|
|
1310
|
+
}), Object.keys(h.$state).forEach((p) => {
|
|
1311
|
+
p in y.$state || pt(h, p);
|
|
1312
|
+
}), l = !1, u = !1, o.state.value[e] = ie(y._hmrPayload, "hotState"), u = !0, he().then(() => {
|
|
1313
1313
|
l = !0;
|
|
1314
1314
|
});
|
|
1315
1315
|
for (const p in y._hmrPayload.actions) {
|
|
1316
1316
|
const v = y[p];
|
|
1317
|
-
Je(
|
|
1317
|
+
Je(h, p, R(v, p));
|
|
1318
1318
|
}
|
|
1319
1319
|
for (const p in y._hmrPayload.getters) {
|
|
1320
1320
|
const v = y._hmrPayload.getters[p], $ = s ? (
|
|
1321
1321
|
// special handling of options api
|
|
1322
|
-
|
|
1322
|
+
N(() => (je(o), v.call(h, h)))
|
|
1323
1323
|
) : v;
|
|
1324
|
-
Je(
|
|
1324
|
+
Je(h, p, $);
|
|
1325
1325
|
}
|
|
1326
|
-
Object.keys(
|
|
1327
|
-
p in y._hmrPayload.getters || pt(
|
|
1328
|
-
}), Object.keys(
|
|
1329
|
-
p in y._hmrPayload.actions || pt(
|
|
1330
|
-
}),
|
|
1331
|
-
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
1326
|
+
Object.keys(h._hmrPayload.getters).forEach((p) => {
|
|
1327
|
+
p in y._hmrPayload.getters || pt(h, p);
|
|
1328
|
+
}), Object.keys(h._hmrPayload.actions).forEach((p) => {
|
|
1329
|
+
p in y._hmrPayload.actions || pt(h, p);
|
|
1330
|
+
}), h._hmrPayload = y._hmrPayload, h._getters = y._getters, h._hotUpdating = !1;
|
|
1331
|
+
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se) {
|
|
1332
1332
|
const y = {
|
|
1333
1333
|
writable: !0,
|
|
1334
1334
|
configurable: !0,
|
|
@@ -1336,32 +1336,32 @@ function xt(e, t, n = {}, o, r, s) {
|
|
|
1336
1336
|
enumerable: !1
|
|
1337
1337
|
};
|
|
1338
1338
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((p) => {
|
|
1339
|
-
Object.defineProperty(
|
|
1339
|
+
Object.defineProperty(h, p, U({ value: h[p] }, y));
|
|
1340
1340
|
});
|
|
1341
1341
|
}
|
|
1342
1342
|
return o._p.forEach((y) => {
|
|
1343
|
-
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
1343
|
+
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se) {
|
|
1344
1344
|
const p = i.run(() => y({
|
|
1345
|
-
store:
|
|
1345
|
+
store: h,
|
|
1346
1346
|
app: o._a,
|
|
1347
1347
|
pinia: o,
|
|
1348
1348
|
options: a
|
|
1349
1349
|
}));
|
|
1350
|
-
Object.keys(p || {}).forEach((v) =>
|
|
1350
|
+
Object.keys(p || {}).forEach((v) => h._customProperties.add(v)), U(h, p);
|
|
1351
1351
|
} else
|
|
1352
|
-
|
|
1353
|
-
store:
|
|
1352
|
+
U(h, i.run(() => y({
|
|
1353
|
+
store: h,
|
|
1354
1354
|
app: o._a,
|
|
1355
1355
|
pinia: o,
|
|
1356
1356
|
options: a
|
|
1357
1357
|
})));
|
|
1358
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1358
|
+
}), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1359
1359
|
state: () => new MyClass()
|
|
1360
|
-
Found in store "${
|
|
1360
|
+
Found in store "${h.$id}".`), m && s && n.hydrate && n.hydrate(h.$state, m), l = !0, u = !0, h;
|
|
1361
1361
|
}
|
|
1362
1362
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1363
1363
|
// @__NO_SIDE_EFFECTS__
|
|
1364
|
-
function
|
|
1364
|
+
function Dr(e, t, n) {
|
|
1365
1365
|
let o, r;
|
|
1366
1366
|
const s = typeof t == "function";
|
|
1367
1367
|
o = e, r = s ? n : t;
|
|
@@ -1369,17 +1369,17 @@ function Ir(e, t, n) {
|
|
|
1369
1369
|
const l = Nn();
|
|
1370
1370
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1371
1371
|
// pinia instance with getActivePinia()
|
|
1372
|
-
(process.env.NODE_ENV === "test" && Pe && Pe._testing ? null : a) || (l ?
|
|
1372
|
+
(process.env.NODE_ENV === "test" && Pe && Pe._testing ? null : a) || (l ? Tt(Rn, null) : null), a && je(a), process.env.NODE_ENV !== "production" && !Pe)
|
|
1373
1373
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1374
1374
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1375
1375
|
This will fail in production.`);
|
|
1376
1376
|
a = Pe, a._s.has(o) || (s ? xt(o, t, r, a) : rn(o, r, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
|
|
1377
1377
|
const u = a._s.get(o);
|
|
1378
1378
|
if (process.env.NODE_ENV !== "production" && c) {
|
|
1379
|
-
const d = "__hot:" + o, f = s ? xt(d, t, r, a, !0) : rn(d,
|
|
1379
|
+
const d = "__hot:" + o, f = s ? xt(d, t, r, a, !0) : rn(d, U({}, r), a, !0);
|
|
1380
1380
|
c._hotUpdate(f), delete a.state.value[d], a._s.delete(d);
|
|
1381
1381
|
}
|
|
1382
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1382
|
+
if (process.env.NODE_ENV !== "production" && se) {
|
|
1383
1383
|
const d = Ue();
|
|
1384
1384
|
if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1385
1385
|
!c) {
|
|
@@ -1391,7 +1391,7 @@ This will fail in production.`);
|
|
|
1391
1391
|
}
|
|
1392
1392
|
return i.$id = o, i;
|
|
1393
1393
|
}
|
|
1394
|
-
const
|
|
1394
|
+
const Ar = /* @__PURE__ */ Dr("data", () => {
|
|
1395
1395
|
const e = b([]), t = b({});
|
|
1396
1396
|
return { records: e, record: t };
|
|
1397
1397
|
});
|
|
@@ -1399,14 +1399,14 @@ function Qn(e) {
|
|
|
1399
1399
|
const t = b();
|
|
1400
1400
|
return ge(async () => {
|
|
1401
1401
|
var n, o, r;
|
|
1402
|
-
e || (e =
|
|
1402
|
+
e || (e = Tt("$registry"));
|
|
1403
1403
|
let s;
|
|
1404
1404
|
try {
|
|
1405
|
-
s =
|
|
1405
|
+
s = Ar();
|
|
1406
1406
|
} catch {
|
|
1407
1407
|
throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable");
|
|
1408
1408
|
}
|
|
1409
|
-
if (t.value = new
|
|
1409
|
+
if (t.value = new or(e, s), !e || !e.router) return;
|
|
1410
1410
|
const i = e.router.currentRoute.value, a = (n = i.params.records) == null ? void 0 : n.toString().toLowerCase(), c = (o = i.params.record) == null ? void 0 : o.toString().toLowerCase();
|
|
1411
1411
|
if (!a && !c)
|
|
1412
1412
|
return;
|
|
@@ -1414,9 +1414,9 @@ function Qn(e) {
|
|
|
1414
1414
|
l && (e.addDoctype(l), t.value.setup(l), a && (c ? await t.value.getRecord(l, c) : await t.value.getRecords(l)), t.value.runAction(l, "LOAD", c ? [c] : void 0));
|
|
1415
1415
|
}), { stonecrop: t };
|
|
1416
1416
|
}
|
|
1417
|
-
const
|
|
1417
|
+
const Tr = class et {
|
|
1418
1418
|
constructor(t, n) {
|
|
1419
|
-
if (
|
|
1419
|
+
if (H(this, "name"), H(this, "registry"), H(this, "router"), H(this, "getMeta"), et._root)
|
|
1420
1420
|
return et._root;
|
|
1421
1421
|
et._root = this, this.name = "Registry", this.registry = {}, this.router = t, this.getMeta = n;
|
|
1422
1422
|
}
|
|
@@ -1434,7 +1434,7 @@ const Ar = class et {
|
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
1436
|
};
|
|
1437
|
-
|
|
1437
|
+
H(Tr, "_root");
|
|
1438
1438
|
function Vr(e) {
|
|
1439
1439
|
return e && typeof e.then == "function";
|
|
1440
1440
|
}
|
|
@@ -1448,7 +1448,7 @@ function qn(e, t) {
|
|
|
1448
1448
|
}, e);
|
|
1449
1449
|
});
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function jr(e, t) {
|
|
1452
1452
|
return Math.floor(Math.random() * (t - e + 1) + e);
|
|
1453
1453
|
}
|
|
1454
1454
|
function Lt() {
|
|
@@ -1459,8 +1459,8 @@ function it() {
|
|
|
1459
1459
|
var e = (/* @__PURE__ */ new Date()).getTime();
|
|
1460
1460
|
return e === sn ? (mt++, e * 1e3 + mt) : (sn = e, mt = 0, e * 1e3);
|
|
1461
1461
|
}
|
|
1462
|
-
var
|
|
1463
|
-
function
|
|
1462
|
+
var Mr = it, Lr = "native";
|
|
1463
|
+
function Rr(e) {
|
|
1464
1464
|
var t = {
|
|
1465
1465
|
messagesCallback: null,
|
|
1466
1466
|
bc: new BroadcastChannel(e),
|
|
@@ -1471,20 +1471,20 @@ function Lr(e) {
|
|
|
1471
1471
|
t.messagesCallback && t.messagesCallback(n.data);
|
|
1472
1472
|
}, t;
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Br(e) {
|
|
1475
1475
|
e.bc.close(), e.subFns = [];
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function Ur(e, t) {
|
|
1478
1478
|
try {
|
|
1479
1479
|
return e.bc.postMessage(t, !1), ke;
|
|
1480
1480
|
} catch (n) {
|
|
1481
1481
|
return Promise.reject(n);
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function Wr(e, t) {
|
|
1485
1485
|
e.messagesCallback = t;
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function Hr() {
|
|
1488
1488
|
if (typeof window > "u")
|
|
1489
1489
|
return !1;
|
|
1490
1490
|
if (typeof BroadcastChannel == "function") {
|
|
@@ -1494,18 +1494,18 @@ function Wr() {
|
|
|
1494
1494
|
} else
|
|
1495
1495
|
return !1;
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function Fr() {
|
|
1498
1498
|
return 150;
|
|
1499
1499
|
}
|
|
1500
|
-
var
|
|
1501
|
-
create:
|
|
1502
|
-
close:
|
|
1503
|
-
onMessage:
|
|
1504
|
-
postMessage:
|
|
1505
|
-
canBeUsed:
|
|
1506
|
-
type:
|
|
1507
|
-
averageResponseTime:
|
|
1508
|
-
microSeconds:
|
|
1500
|
+
var zr = {
|
|
1501
|
+
create: Rr,
|
|
1502
|
+
close: Br,
|
|
1503
|
+
onMessage: Wr,
|
|
1504
|
+
postMessage: Ur,
|
|
1505
|
+
canBeUsed: Hr,
|
|
1506
|
+
type: Lr,
|
|
1507
|
+
averageResponseTime: Fr,
|
|
1508
|
+
microSeconds: Mr
|
|
1509
1509
|
}, Kn = (
|
|
1510
1510
|
/** @class */
|
|
1511
1511
|
function() {
|
|
@@ -1517,14 +1517,14 @@ var Fr = {
|
|
|
1517
1517
|
}, e.prototype.add = function(t) {
|
|
1518
1518
|
var n = this;
|
|
1519
1519
|
this.map.set(t, Zn()), this._to || (this._to = !0, setTimeout(function() {
|
|
1520
|
-
n._to = !1,
|
|
1520
|
+
n._to = !1, Jr(n);
|
|
1521
1521
|
}, 0));
|
|
1522
1522
|
}, e.prototype.clear = function() {
|
|
1523
1523
|
this.map.clear();
|
|
1524
1524
|
}, e;
|
|
1525
1525
|
}()
|
|
1526
1526
|
);
|
|
1527
|
-
function
|
|
1527
|
+
function Jr(e) {
|
|
1528
1528
|
for (var t = Zn() - e.ttl, n = e.map[Symbol.iterator](); ; ) {
|
|
1529
1529
|
var o = n.next().value;
|
|
1530
1530
|
if (!o)
|
|
@@ -1543,9 +1543,9 @@ function Rt() {
|
|
|
1543
1543
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = JSON.parse(JSON.stringify(e));
|
|
1544
1544
|
return typeof t.webWorkerSupport > "u" && (t.webWorkerSupport = !0), t.idb || (t.idb = {}), t.idb.ttl || (t.idb.ttl = 1e3 * 45), t.idb.fallbackInterval || (t.idb.fallbackInterval = 150), e.idb && typeof e.idb.onclose == "function" && (t.idb.onclose = e.idb.onclose), t.localstorage || (t.localstorage = {}), t.localstorage.removeTimeout || (t.localstorage.removeTimeout = 1e3 * 60), e.methods && (t.methods = e.methods), t.node || (t.node = {}), t.node.ttl || (t.node.ttl = 1e3 * 60 * 2), t.node.maxParallelWrites || (t.node.maxParallelWrites = 2048), typeof t.node.useFastPath > "u" && (t.node.useFastPath = !0), t;
|
|
1545
1545
|
}
|
|
1546
|
-
var
|
|
1546
|
+
var Gr = it, Yr = "pubkey.broadcast-channel-0-", te = "messages", lt = {
|
|
1547
1547
|
durability: "relaxed"
|
|
1548
|
-
},
|
|
1548
|
+
}, Xr = "idb";
|
|
1549
1549
|
function eo() {
|
|
1550
1550
|
if (typeof indexedDB < "u") return indexedDB;
|
|
1551
1551
|
if (typeof window < "u") {
|
|
@@ -1558,11 +1558,11 @@ function eo() {
|
|
|
1558
1558
|
function Bt(e) {
|
|
1559
1559
|
e.commit && e.commit();
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
var t = eo(), n =
|
|
1561
|
+
function Qr(e) {
|
|
1562
|
+
var t = eo(), n = Yr + e, o = t.open(n);
|
|
1563
1563
|
return o.onupgradeneeded = function(r) {
|
|
1564
1564
|
var s = r.target.result;
|
|
1565
|
-
s.createObjectStore(
|
|
1565
|
+
s.createObjectStore(te, {
|
|
1566
1566
|
keyPath: "id",
|
|
1567
1567
|
autoIncrement: !0
|
|
1568
1568
|
});
|
|
@@ -1574,24 +1574,24 @@ function Xr(e) {
|
|
|
1574
1574
|
};
|
|
1575
1575
|
});
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1577
|
+
function qr(e, t, n) {
|
|
1578
1578
|
var o = (/* @__PURE__ */ new Date()).getTime(), r = {
|
|
1579
1579
|
uuid: t,
|
|
1580
1580
|
time: o,
|
|
1581
1581
|
data: n
|
|
1582
|
-
}, s = e.transaction([
|
|
1582
|
+
}, s = e.transaction([te], "readwrite", lt);
|
|
1583
1583
|
return new Promise(function(i, a) {
|
|
1584
1584
|
s.oncomplete = function() {
|
|
1585
1585
|
return i();
|
|
1586
1586
|
}, s.onerror = function(l) {
|
|
1587
1587
|
return a(l);
|
|
1588
1588
|
};
|
|
1589
|
-
var c = s.objectStore(
|
|
1589
|
+
var c = s.objectStore(te);
|
|
1590
1590
|
c.add(r), Bt(s);
|
|
1591
1591
|
});
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1594
|
-
var n = e.transaction(
|
|
1593
|
+
function Kr(e, t) {
|
|
1594
|
+
var n = e.transaction(te, "readonly", lt), o = n.objectStore(te), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
|
|
1595
1595
|
if (o.getAll) {
|
|
1596
1596
|
var i = o.getAll(s);
|
|
1597
1597
|
return new Promise(function(c, l) {
|
|
@@ -1619,10 +1619,10 @@ function qr(e, t) {
|
|
|
1619
1619
|
};
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1622
|
+
function Zr(e, t) {
|
|
1623
1623
|
if (e.closed)
|
|
1624
1624
|
return Promise.resolve([]);
|
|
1625
|
-
var n = e.db.transaction(
|
|
1625
|
+
var n = e.db.transaction(te, "readwrite", lt), o = n.objectStore(te);
|
|
1626
1626
|
return Promise.all(t.map(function(r) {
|
|
1627
1627
|
var s = o.delete(r);
|
|
1628
1628
|
return new Promise(function(i) {
|
|
@@ -1632,8 +1632,8 @@ function Kr(e, t) {
|
|
|
1632
1632
|
});
|
|
1633
1633
|
}));
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1636
|
-
var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(
|
|
1635
|
+
function es(e, t) {
|
|
1636
|
+
var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(te, "readonly", lt), r = o.objectStore(te), s = [];
|
|
1637
1637
|
return new Promise(function(i) {
|
|
1638
1638
|
r.openCursor().onsuccess = function(a) {
|
|
1639
1639
|
var c = a.target.result;
|
|
@@ -1645,15 +1645,15 @@ function Zr(e, t) {
|
|
|
1645
1645
|
};
|
|
1646
1646
|
});
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1649
|
-
return
|
|
1650
|
-
return
|
|
1648
|
+
function ts(e) {
|
|
1649
|
+
return es(e.db, e.options.idb.ttl).then(function(t) {
|
|
1650
|
+
return Zr(e, t.map(function(n) {
|
|
1651
1651
|
return n.id;
|
|
1652
1652
|
}));
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1656
|
-
return t = Rt(t),
|
|
1655
|
+
function ns(e, t) {
|
|
1656
|
+
return t = Rt(t), Qr(e).then(function(n) {
|
|
1657
1657
|
var o = {
|
|
1658
1658
|
closed: !1,
|
|
1659
1659
|
lastCursorId: 0,
|
|
@@ -1684,17 +1684,17 @@ function to(e) {
|
|
|
1684
1684
|
return to(e);
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function os(e, t) {
|
|
1688
1688
|
return !(e.uuid === t.uuid || t.eMIs.has(e.id) || e.data.time < t.messagesCallbackTime);
|
|
1689
1689
|
}
|
|
1690
1690
|
function no(e) {
|
|
1691
|
-
return e.closed || !e.messagesCallback ? ke :
|
|
1691
|
+
return e.closed || !e.messagesCallback ? ke : Kr(e.db, e.lastCursorId).then(function(t) {
|
|
1692
1692
|
var n = t.filter(function(o) {
|
|
1693
1693
|
return !!o;
|
|
1694
1694
|
}).map(function(o) {
|
|
1695
1695
|
return o.id > e.lastCursorId && (e.lastCursorId = o.id), o;
|
|
1696
1696
|
}).filter(function(o) {
|
|
1697
|
-
return
|
|
1697
|
+
return os(o, e);
|
|
1698
1698
|
}).sort(function(o, r) {
|
|
1699
1699
|
return o.time - r.time;
|
|
1700
1700
|
});
|
|
@@ -1703,35 +1703,35 @@ function no(e) {
|
|
|
1703
1703
|
}), ke;
|
|
1704
1704
|
});
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function rs(e) {
|
|
1707
1707
|
e.closed = !0, e.db.close();
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function ss(e, t) {
|
|
1710
1710
|
return e.writeBlockPromise = e.writeBlockPromise.then(function() {
|
|
1711
|
-
return
|
|
1711
|
+
return qr(e.db, e.uuid, t);
|
|
1712
1712
|
}).then(function() {
|
|
1713
|
-
|
|
1713
|
+
jr(0, 10) === 0 && ts(e);
|
|
1714
1714
|
}), e.writeBlockPromise;
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function as(e, t, n) {
|
|
1717
1717
|
e.messagesCallbackTime = n, e.messagesCallback = t, no(e);
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function is() {
|
|
1720
1720
|
return !!eo();
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function ls(e) {
|
|
1723
1723
|
return e.idb.fallbackInterval * 2;
|
|
1724
1724
|
}
|
|
1725
|
-
var
|
|
1726
|
-
create:
|
|
1727
|
-
close:
|
|
1728
|
-
onMessage:
|
|
1729
|
-
postMessage:
|
|
1730
|
-
canBeUsed:
|
|
1731
|
-
type:
|
|
1732
|
-
averageResponseTime:
|
|
1733
|
-
microSeconds:
|
|
1734
|
-
},
|
|
1725
|
+
var cs = {
|
|
1726
|
+
create: ns,
|
|
1727
|
+
close: rs,
|
|
1728
|
+
onMessage: as,
|
|
1729
|
+
postMessage: ss,
|
|
1730
|
+
canBeUsed: is,
|
|
1731
|
+
type: Xr,
|
|
1732
|
+
averageResponseTime: ls,
|
|
1733
|
+
microSeconds: Gr
|
|
1734
|
+
}, us = it, ds = "pubkey.broadcastChannel-", fs = "localstorage";
|
|
1735
1735
|
function oo() {
|
|
1736
1736
|
var e;
|
|
1737
1737
|
if (typeof window > "u") return null;
|
|
@@ -1742,9 +1742,9 @@ function oo() {
|
|
|
1742
1742
|
return e;
|
|
1743
1743
|
}
|
|
1744
1744
|
function ro(e) {
|
|
1745
|
-
return
|
|
1745
|
+
return ds + e;
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function ps(e, t) {
|
|
1748
1748
|
return new Promise(function(n) {
|
|
1749
1749
|
qn().then(function() {
|
|
1750
1750
|
var o = ro(e.channelName), r = {
|
|
@@ -1759,16 +1759,16 @@ function fs(e, t) {
|
|
|
1759
1759
|
});
|
|
1760
1760
|
});
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function hs(e, t) {
|
|
1763
1763
|
var n = ro(e), o = function(r) {
|
|
1764
1764
|
r.key === n && t(JSON.parse(r.newValue));
|
|
1765
1765
|
};
|
|
1766
1766
|
return window.addEventListener("storage", o), o;
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function ms(e) {
|
|
1769
1769
|
window.removeEventListener("storage", e);
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function vs(e, t) {
|
|
1772
1772
|
if (t = Rt(t), !so())
|
|
1773
1773
|
throw new Error("BroadcastChannel: localstorage cannot be used");
|
|
1774
1774
|
var n = Lt(), o = new Kn(t.localstorage.removeTimeout), r = {
|
|
@@ -1777,14 +1777,14 @@ function ms(e, t) {
|
|
|
1777
1777
|
eMIs: o
|
|
1778
1778
|
// emittedMessagesIds
|
|
1779
1779
|
};
|
|
1780
|
-
return r.listener =
|
|
1780
|
+
return r.listener = hs(e, function(s) {
|
|
1781
1781
|
r.messagesCallback && s.uuid !== n && (!s.token || o.has(s.token) || s.data.time && s.data.time < r.messagesCallbackTime || (o.add(s.token), r.messagesCallback(s.data)));
|
|
1782
1782
|
}), r;
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1785
|
-
|
|
1784
|
+
function gs(e) {
|
|
1785
|
+
ms(e.listener);
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function ys(e, t, n) {
|
|
1788
1788
|
e.messagesCallbackTime = n, e.messagesCallback = t;
|
|
1789
1789
|
}
|
|
1790
1790
|
function so() {
|
|
@@ -1798,31 +1798,31 @@ function so() {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
return !0;
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function ws() {
|
|
1802
1802
|
var e = 120, t = navigator.userAgent.toLowerCase();
|
|
1803
1803
|
return t.includes("safari") && !t.includes("chrome") ? e * 2 : e;
|
|
1804
1804
|
}
|
|
1805
|
-
var
|
|
1806
|
-
create:
|
|
1807
|
-
close:
|
|
1808
|
-
onMessage:
|
|
1809
|
-
postMessage:
|
|
1805
|
+
var bs = {
|
|
1806
|
+
create: vs,
|
|
1807
|
+
close: gs,
|
|
1808
|
+
onMessage: ys,
|
|
1809
|
+
postMessage: ps,
|
|
1810
1810
|
canBeUsed: so,
|
|
1811
|
-
type:
|
|
1812
|
-
averageResponseTime:
|
|
1813
|
-
microSeconds:
|
|
1814
|
-
},
|
|
1815
|
-
function
|
|
1811
|
+
type: fs,
|
|
1812
|
+
averageResponseTime: ws,
|
|
1813
|
+
microSeconds: us
|
|
1814
|
+
}, _s = it, Es = "simulate", Ut = /* @__PURE__ */ new Set();
|
|
1815
|
+
function $s(e) {
|
|
1816
1816
|
var t = {
|
|
1817
1817
|
name: e,
|
|
1818
1818
|
messagesCallback: null
|
|
1819
1819
|
};
|
|
1820
1820
|
return Ut.add(t), t;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function ks(e) {
|
|
1823
1823
|
Ut.delete(e);
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function xs(e, t) {
|
|
1826
1826
|
return new Promise(function(n) {
|
|
1827
1827
|
return setTimeout(function() {
|
|
1828
1828
|
var o = Array.from(Ut);
|
|
@@ -1838,35 +1838,35 @@ function ks(e, t) {
|
|
|
1838
1838
|
}, 5);
|
|
1839
1839
|
});
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function Ss(e, t) {
|
|
1842
1842
|
e.messagesCallback = t;
|
|
1843
1843
|
}
|
|
1844
|
-
function
|
|
1844
|
+
function Os() {
|
|
1845
1845
|
return !0;
|
|
1846
1846
|
}
|
|
1847
|
-
function
|
|
1847
|
+
function Ns() {
|
|
1848
1848
|
return 5;
|
|
1849
1849
|
}
|
|
1850
|
-
var
|
|
1851
|
-
create:
|
|
1852
|
-
close:
|
|
1853
|
-
onMessage:
|
|
1854
|
-
postMessage:
|
|
1855
|
-
canBeUsed:
|
|
1856
|
-
type:
|
|
1857
|
-
averageResponseTime:
|
|
1858
|
-
microSeconds:
|
|
1850
|
+
var Ps = {
|
|
1851
|
+
create: $s,
|
|
1852
|
+
close: ks,
|
|
1853
|
+
onMessage: Ss,
|
|
1854
|
+
postMessage: xs,
|
|
1855
|
+
canBeUsed: Os,
|
|
1856
|
+
type: Es,
|
|
1857
|
+
averageResponseTime: Ns,
|
|
1858
|
+
microSeconds: _s
|
|
1859
1859
|
}, an = [
|
|
1860
|
-
|
|
1860
|
+
zr,
|
|
1861
1861
|
// fastest
|
|
1862
|
-
|
|
1863
|
-
|
|
1862
|
+
cs,
|
|
1863
|
+
bs
|
|
1864
1864
|
];
|
|
1865
|
-
function
|
|
1865
|
+
function Is(e) {
|
|
1866
1866
|
var t = [].concat(e.methods, an).filter(Boolean);
|
|
1867
1867
|
if (e.type) {
|
|
1868
1868
|
if (e.type === "simulate")
|
|
1869
|
-
return
|
|
1869
|
+
return Ps;
|
|
1870
1870
|
var n = t.find(function(r) {
|
|
1871
1871
|
return r.type === e.type;
|
|
1872
1872
|
});
|
|
@@ -1885,10 +1885,10 @@ function Ps(e) {
|
|
|
1885
1885
|
})));
|
|
1886
1886
|
}
|
|
1887
1887
|
var ao = /* @__PURE__ */ new Set(), Cs = 0, Wt = function(e, t) {
|
|
1888
|
-
this.id = Cs++, ao.add(this), this.name = e, this.options = Rt(t), this.method =
|
|
1888
|
+
this.id = Cs++, ao.add(this), this.name = e, this.options = Rt(t), this.method = Is(this.options), this._iL = !1, this._onML = null, this._addEL = {
|
|
1889
1889
|
message: [],
|
|
1890
1890
|
internal: []
|
|
1891
|
-
}, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null,
|
|
1891
|
+
}, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, Ds(this);
|
|
1892
1892
|
};
|
|
1893
1893
|
Wt._pubkey = !0;
|
|
1894
1894
|
Wt.prototype = {
|
|
@@ -1961,7 +1961,7 @@ function ln(e, t, n) {
|
|
|
1961
1961
|
}), i;
|
|
1962
1962
|
});
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function Ds(e) {
|
|
1965
1965
|
var t = e.method.create(e.name, e.options);
|
|
1966
1966
|
Vr(t) ? (e._prepP = t, t.then(function(n) {
|
|
1967
1967
|
e._state = n;
|
|
@@ -1971,14 +1971,14 @@ function io(e) {
|
|
|
1971
1971
|
return e._addEL.message.length > 0 || e._addEL.internal.length > 0;
|
|
1972
1972
|
}
|
|
1973
1973
|
function cn(e, t, n) {
|
|
1974
|
-
e._addEL[t].push(n),
|
|
1974
|
+
e._addEL[t].push(n), As(e);
|
|
1975
1975
|
}
|
|
1976
1976
|
function un(e, t, n) {
|
|
1977
1977
|
e._addEL[t] = e._addEL[t].filter(function(o) {
|
|
1978
1978
|
return o !== n;
|
|
1979
|
-
}),
|
|
1979
|
+
}), Ts(e);
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function As(e) {
|
|
1982
1982
|
if (!e._iL && io(e)) {
|
|
1983
1983
|
var t = function(o) {
|
|
1984
1984
|
e._addEL[o.type].forEach(function(r) {
|
|
@@ -1991,7 +1991,7 @@ function Ds(e) {
|
|
|
1991
1991
|
}) : (e._iL = !0, e.method.onMessage(e._state, t, n));
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function Ts(e) {
|
|
1995
1995
|
if (e._iL && !io(e)) {
|
|
1996
1996
|
e._iL = !1;
|
|
1997
1997
|
var t = e.method.microSeconds();
|
|
@@ -2013,14 +2013,14 @@ function dn(e) {
|
|
|
2013
2013
|
const Vs = /* @__PURE__ */ Object.getOwnPropertyNames(
|
|
2014
2014
|
Object.prototype
|
|
2015
2015
|
).sort().join("\0");
|
|
2016
|
-
function
|
|
2016
|
+
function js(e) {
|
|
2017
2017
|
const t = Object.getPrototypeOf(e);
|
|
2018
2018
|
return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === Vs;
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function Ms(e) {
|
|
2021
2021
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function Ls(e) {
|
|
2024
2024
|
switch (e) {
|
|
2025
2025
|
case '"':
|
|
2026
2026
|
return '\\"';
|
|
@@ -2051,16 +2051,16 @@ function _e(e) {
|
|
|
2051
2051
|
let t = "", n = 0;
|
|
2052
2052
|
const o = e.length;
|
|
2053
2053
|
for (let r = 0; r < o; r += 1) {
|
|
2054
|
-
const s = e[r], i =
|
|
2054
|
+
const s = e[r], i = Ls(s);
|
|
2055
2055
|
i && (t += e.slice(n, r) + i, n = r + 1);
|
|
2056
2056
|
}
|
|
2057
2057
|
return `"${n === 0 ? e : t + e.slice(n)}"`;
|
|
2058
2058
|
}
|
|
2059
2059
|
const Ht = -1, lo = -2, co = -3, uo = -4, fo = -5, Ft = -6;
|
|
2060
2060
|
function fn(e, t) {
|
|
2061
|
-
return
|
|
2061
|
+
return Rs(JSON.parse(e));
|
|
2062
2062
|
}
|
|
2063
|
-
function
|
|
2063
|
+
function Rs(e, t) {
|
|
2064
2064
|
if (typeof e == "number") return r(e, !0);
|
|
2065
2065
|
if (!Array.isArray(e) || e.length === 0)
|
|
2066
2066
|
throw new Error("Invalid input");
|
|
@@ -2154,15 +2154,15 @@ function pn(e, t) {
|
|
|
2154
2154
|
const u = i++;
|
|
2155
2155
|
o.set(l, u);
|
|
2156
2156
|
for (const { key: f, fn: g } of r) {
|
|
2157
|
-
const
|
|
2158
|
-
if (
|
|
2159
|
-
return n[u] = `["${f}",${a(
|
|
2157
|
+
const m = g(l);
|
|
2158
|
+
if (m)
|
|
2159
|
+
return n[u] = `["${f}",${a(m)}]`, u;
|
|
2160
2160
|
}
|
|
2161
2161
|
let d = "";
|
|
2162
2162
|
if (dn(l))
|
|
2163
2163
|
d = gt(l);
|
|
2164
2164
|
else
|
|
2165
|
-
switch (
|
|
2165
|
+
switch (Ms(l)) {
|
|
2166
2166
|
case "Number":
|
|
2167
2167
|
case "String":
|
|
2168
2168
|
case "Boolean":
|
|
@@ -2180,26 +2180,26 @@ function pn(e, t) {
|
|
|
2180
2180
|
break;
|
|
2181
2181
|
case "Array":
|
|
2182
2182
|
d = "[";
|
|
2183
|
-
for (let
|
|
2184
|
-
|
|
2183
|
+
for (let m = 0; m < l.length; m += 1)
|
|
2184
|
+
m > 0 && (d += ","), m in l ? (s.push(`[${m}]`), d += a(l[m]), s.pop()) : d += lo;
|
|
2185
2185
|
d += "]";
|
|
2186
2186
|
break;
|
|
2187
2187
|
case "Set":
|
|
2188
2188
|
d = '["Set"';
|
|
2189
|
-
for (const
|
|
2190
|
-
d += `,${a(
|
|
2189
|
+
for (const m of l)
|
|
2190
|
+
d += `,${a(m)}`;
|
|
2191
2191
|
d += "]";
|
|
2192
2192
|
break;
|
|
2193
2193
|
case "Map":
|
|
2194
2194
|
d = '["Map"';
|
|
2195
|
-
for (const [
|
|
2195
|
+
for (const [m, w] of l)
|
|
2196
2196
|
s.push(
|
|
2197
|
-
`.get(${dn(
|
|
2198
|
-
), d += `,${a(
|
|
2197
|
+
`.get(${dn(m) ? gt(m) : "..."})`
|
|
2198
|
+
), d += `,${a(m)},${a(w)}`, s.pop();
|
|
2199
2199
|
d += "]";
|
|
2200
2200
|
break;
|
|
2201
2201
|
default:
|
|
2202
|
-
if (!
|
|
2202
|
+
if (!js(l))
|
|
2203
2203
|
throw new vt(
|
|
2204
2204
|
"Cannot stringify arbitrary non-POJOs",
|
|
2205
2205
|
s
|
|
@@ -2211,14 +2211,14 @@ function pn(e, t) {
|
|
|
2211
2211
|
);
|
|
2212
2212
|
if (Object.getPrototypeOf(l) === null) {
|
|
2213
2213
|
d = '["null"';
|
|
2214
|
-
for (const
|
|
2215
|
-
s.push(`.${
|
|
2214
|
+
for (const m in l)
|
|
2215
|
+
s.push(`.${m}`), d += `,${_e(m)},${a(l[m])}`, s.pop();
|
|
2216
2216
|
d += "]";
|
|
2217
2217
|
} else {
|
|
2218
2218
|
d = "{";
|
|
2219
|
-
let
|
|
2219
|
+
let m = !1;
|
|
2220
2220
|
for (const w in l)
|
|
2221
|
-
|
|
2221
|
+
m && (d += ","), m = !0, s.push(`.${w}`), d += `${_e(w)}:${a(l[w])}`, s.pop();
|
|
2222
2222
|
d += "}";
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
@@ -2231,7 +2231,7 @@ function gt(e) {
|
|
|
2231
2231
|
const t = typeof e;
|
|
2232
2232
|
return t === "string" ? _e(e) : e instanceof String ? _e(e.toString()) : e === void 0 ? Ht.toString() : e === 0 && 1 / e < 0 ? Ft.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
|
|
2233
2233
|
}
|
|
2234
|
-
function
|
|
2234
|
+
function Bs(e, t, { initialize: n, type: o }) {
|
|
2235
2235
|
let r = `${t.$id}-${e.toString()}`, s = new Wt(r, { type: o }), i = !1, a = 0;
|
|
2236
2236
|
D(() => t[e], (u) => {
|
|
2237
2237
|
i || (a = Date.now(), s.postMessage({ timestamp: a, state: fn(pn(u)) })), i = !1;
|
|
@@ -2245,22 +2245,22 @@ function Rs(e, t, { initialize: n, type: o }) {
|
|
|
2245
2245
|
let c = () => s.postMessage(void 0), l = () => s.close();
|
|
2246
2246
|
return n && c(), { sync: c, unshare: l };
|
|
2247
2247
|
}
|
|
2248
|
-
var
|
|
2248
|
+
var Us = (e, t) => Object.keys(t).includes(e), Ws = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
|
|
2249
2249
|
var s, i;
|
|
2250
2250
|
let a = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, c = ((i = r == null ? void 0 : r.share) == null ? void 0 : i.omit) ?? [];
|
|
2251
2251
|
!a || Object.keys(o.$state).forEach((l) => {
|
|
2252
2252
|
var u;
|
|
2253
|
-
c.includes(l) || !
|
|
2253
|
+
c.includes(l) || !Us(l, o.$state) || Bs(l, o, { initialize: ((u = r == null ? void 0 : r.share) == null ? void 0 : u.initialize) ?? e, type: n });
|
|
2254
2254
|
});
|
|
2255
2255
|
};
|
|
2256
|
-
const
|
|
2257
|
-
|
|
2258
|
-
|
|
2256
|
+
const Hs = Nr();
|
|
2257
|
+
Hs.use(
|
|
2258
|
+
Ws({
|
|
2259
2259
|
enable: !0,
|
|
2260
2260
|
initialize: !0
|
|
2261
2261
|
})
|
|
2262
2262
|
);
|
|
2263
|
-
const
|
|
2263
|
+
const Fs = /* @__PURE__ */ Q({
|
|
2264
2264
|
__name: "Doctype",
|
|
2265
2265
|
setup(e) {
|
|
2266
2266
|
const { stonecrop: t, isReady: n } = Qn(), o = b([]);
|
|
@@ -2272,15 +2272,15 @@ const Hs = /* @__PURE__ */ Y({
|
|
|
2272
2272
|
r[i].value = c;
|
|
2273
2273
|
}), o.value = r;
|
|
2274
2274
|
}
|
|
2275
|
-
}), (r, s) => k(n) ? (x(), ue(k(
|
|
2275
|
+
}), (r, s) => k(n) ? (x(), ue(k(er), {
|
|
2276
2276
|
key: 0,
|
|
2277
2277
|
class: "aform-main",
|
|
2278
2278
|
modelValue: o.value,
|
|
2279
2279
|
"onUpdate:modelValue": s[0] || (s[0] = (i) => o.value = i)
|
|
2280
|
-
}, null, 8, ["modelValue"])) :
|
|
2280
|
+
}, null, 8, ["modelValue"])) : ee("", !0);
|
|
2281
2281
|
}
|
|
2282
2282
|
});
|
|
2283
|
-
var
|
|
2283
|
+
var zs = !1;
|
|
2284
2284
|
function Ge(e, t, n) {
|
|
2285
2285
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
2286
2286
|
}
|
|
@@ -2296,26 +2296,26 @@ function yt(e, t) {
|
|
|
2296
2296
|
* (c) 2024 Eduardo San Martin Morote
|
|
2297
2297
|
* @license MIT
|
|
2298
2298
|
*/
|
|
2299
|
-
let
|
|
2300
|
-
const at = (e) =>
|
|
2299
|
+
let Ie;
|
|
2300
|
+
const at = (e) => Ie = e, Js = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
2301
2301
|
/* istanbul ignore next */
|
|
2302
2302
|
Symbol()
|
|
2303
2303
|
);
|
|
2304
2304
|
function ve(e) {
|
|
2305
2305
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
2306
2306
|
}
|
|
2307
|
-
var
|
|
2307
|
+
var Te;
|
|
2308
2308
|
(function(e) {
|
|
2309
2309
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
2310
|
-
})(
|
|
2311
|
-
const
|
|
2310
|
+
})(Te || (Te = {}));
|
|
2311
|
+
const Ce = typeof window < "u";
|
|
2312
2312
|
function po(e, t) {
|
|
2313
2313
|
for (const n in t) {
|
|
2314
2314
|
const o = t[n];
|
|
2315
2315
|
if (!(n in e))
|
|
2316
2316
|
continue;
|
|
2317
2317
|
const r = e[n];
|
|
2318
|
-
ve(r) && ve(o) && !
|
|
2318
|
+
ve(r) && ve(o) && !X(o) && !Se(o) ? e[n] = po(r, o) : e[n] = o;
|
|
2319
2319
|
}
|
|
2320
2320
|
return e;
|
|
2321
2321
|
}
|
|
@@ -2334,27 +2334,27 @@ function we(e, ...t) {
|
|
|
2334
2334
|
n(...t);
|
|
2335
2335
|
});
|
|
2336
2336
|
}
|
|
2337
|
-
const
|
|
2337
|
+
const Gs = (e) => e(), mn = Symbol(), wt = Symbol();
|
|
2338
2338
|
function St(e, t) {
|
|
2339
2339
|
e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
2340
2340
|
for (const n in t) {
|
|
2341
2341
|
if (!t.hasOwnProperty(n))
|
|
2342
2342
|
continue;
|
|
2343
2343
|
const o = t[n], r = e[n];
|
|
2344
|
-
ve(r) && ve(o) && e.hasOwnProperty(n) && !
|
|
2344
|
+
ve(r) && ve(o) && e.hasOwnProperty(n) && !X(o) && !Se(o) ? e[n] = St(r, o) : e[n] = o;
|
|
2345
2345
|
}
|
|
2346
2346
|
return e;
|
|
2347
2347
|
}
|
|
2348
|
-
const
|
|
2348
|
+
const Ys = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
2349
2349
|
/* istanbul ignore next */
|
|
2350
2350
|
Symbol()
|
|
2351
2351
|
);
|
|
2352
|
-
function
|
|
2353
|
-
return !ve(e) || !e.hasOwnProperty(
|
|
2352
|
+
function Xs(e) {
|
|
2353
|
+
return !ve(e) || !e.hasOwnProperty(Ys);
|
|
2354
2354
|
}
|
|
2355
|
-
const { assign:
|
|
2355
|
+
const { assign: W } = Object;
|
|
2356
2356
|
function vn(e) {
|
|
2357
|
-
return !!(
|
|
2357
|
+
return !!(X(e) && e.effect);
|
|
2358
2358
|
}
|
|
2359
2359
|
function gn(e, t, n, o) {
|
|
2360
2360
|
const { state: r, actions: s, getters: i } = t, a = n.state.value[e];
|
|
@@ -2365,7 +2365,7 @@ function gn(e, t, n, o) {
|
|
|
2365
2365
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
2366
2366
|
nt(b(r ? r() : {}).value)
|
|
2367
2367
|
) : nt(n.state.value[e]);
|
|
2368
|
-
return
|
|
2368
|
+
return W(u, s, Object.keys(i || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = F(N(() => {
|
|
2369
2369
|
at(n);
|
|
2370
2370
|
const g = n._s.get(e);
|
|
2371
2371
|
return i[f].call(g, g);
|
|
@@ -2375,26 +2375,26 @@ function gn(e, t, n, o) {
|
|
|
2375
2375
|
}
|
|
2376
2376
|
function Ot(e, t, n = {}, o, r, s) {
|
|
2377
2377
|
let i;
|
|
2378
|
-
const a =
|
|
2378
|
+
const a = W({ actions: {} }, n);
|
|
2379
2379
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
2380
2380
|
throw new Error("Pinia destroyed");
|
|
2381
2381
|
const c = { deep: !0 };
|
|
2382
|
-
process.env.NODE_ENV !== "production" && !
|
|
2383
|
-
l ? g = p : l == !1 && !
|
|
2382
|
+
process.env.NODE_ENV !== "production" && !zs && (c.onTrigger = (p) => {
|
|
2383
|
+
l ? g = p : l == !1 && !h._hotUpdating && (Array.isArray(g) ? g.push(p) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
2384
2384
|
});
|
|
2385
2385
|
let l, u, d = [], f = [], g;
|
|
2386
|
-
const
|
|
2387
|
-
!s && !
|
|
2386
|
+
const m = o.state.value[e];
|
|
2387
|
+
!s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
2388
2388
|
const w = b({});
|
|
2389
2389
|
let _;
|
|
2390
|
-
function
|
|
2390
|
+
function I(p) {
|
|
2391
2391
|
let v;
|
|
2392
2392
|
l = u = !1, process.env.NODE_ENV !== "production" && (g = []), typeof p == "function" ? (p(o.state.value[e]), v = {
|
|
2393
|
-
type:
|
|
2393
|
+
type: Te.patchFunction,
|
|
2394
2394
|
storeId: e,
|
|
2395
2395
|
events: g
|
|
2396
2396
|
}) : (St(o.state.value[e], p), v = {
|
|
2397
|
-
type:
|
|
2397
|
+
type: Te.patchObject,
|
|
2398
2398
|
payload: p,
|
|
2399
2399
|
storeId: e,
|
|
2400
2400
|
events: g
|
|
@@ -2404,10 +2404,10 @@ function Ot(e, t, n = {}, o, r, s) {
|
|
|
2404
2404
|
_ === $ && (l = !0);
|
|
2405
2405
|
}), u = !0, we(d, v, o.state.value[e]);
|
|
2406
2406
|
}
|
|
2407
|
-
const
|
|
2407
|
+
const S = s ? function() {
|
|
2408
2408
|
const { state: v } = n, $ = v ? v() : {};
|
|
2409
2409
|
this.$patch((A) => {
|
|
2410
|
-
|
|
2410
|
+
W(A, $);
|
|
2411
2411
|
});
|
|
2412
2412
|
} : (
|
|
2413
2413
|
/* istanbul ignore next */
|
|
@@ -2415,123 +2415,123 @@ function Ot(e, t, n = {}, o, r, s) {
|
|
|
2415
2415
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
2416
2416
|
} : ho
|
|
2417
2417
|
);
|
|
2418
|
-
function
|
|
2418
|
+
function j() {
|
|
2419
2419
|
i.stop(), d = [], f = [], o._s.delete(e);
|
|
2420
2420
|
}
|
|
2421
|
-
const
|
|
2421
|
+
const R = (p, v = "") => {
|
|
2422
2422
|
if (mn in p)
|
|
2423
2423
|
return p[wt] = v, p;
|
|
2424
2424
|
const $ = function() {
|
|
2425
2425
|
at(o);
|
|
2426
|
-
const A = Array.from(arguments),
|
|
2427
|
-
function ut(
|
|
2428
|
-
|
|
2426
|
+
const A = Array.from(arguments), q = [], Oe = [];
|
|
2427
|
+
function ut(B) {
|
|
2428
|
+
q.push(B);
|
|
2429
2429
|
}
|
|
2430
|
-
function le(
|
|
2431
|
-
Oe.push(
|
|
2430
|
+
function le(B) {
|
|
2431
|
+
Oe.push(B);
|
|
2432
2432
|
}
|
|
2433
2433
|
we(f, {
|
|
2434
2434
|
args: A,
|
|
2435
2435
|
name: $[wt],
|
|
2436
|
-
store:
|
|
2436
|
+
store: h,
|
|
2437
2437
|
after: ut,
|
|
2438
2438
|
onError: le
|
|
2439
2439
|
});
|
|
2440
|
-
let
|
|
2440
|
+
let T;
|
|
2441
2441
|
try {
|
|
2442
|
-
|
|
2443
|
-
} catch (
|
|
2444
|
-
throw we(Oe,
|
|
2442
|
+
T = p.apply(this && this.$id === e ? this : h, A);
|
|
2443
|
+
} catch (B) {
|
|
2444
|
+
throw we(Oe, B), B;
|
|
2445
2445
|
}
|
|
2446
|
-
return
|
|
2446
|
+
return T instanceof Promise ? T.then((B) => (we(q, B), B)).catch((B) => (we(Oe, B), Promise.reject(B))) : (we(q, T), T);
|
|
2447
2447
|
};
|
|
2448
2448
|
return $[mn] = !0, $[wt] = v, $;
|
|
2449
|
-
},
|
|
2449
|
+
}, L = /* @__PURE__ */ F({
|
|
2450
2450
|
actions: {},
|
|
2451
2451
|
getters: {},
|
|
2452
2452
|
state: [],
|
|
2453
2453
|
hotState: w
|
|
2454
|
-
}),
|
|
2454
|
+
}), C = {
|
|
2455
2455
|
_p: o,
|
|
2456
2456
|
// _s: scope,
|
|
2457
2457
|
$id: e,
|
|
2458
2458
|
$onAction: hn.bind(null, f),
|
|
2459
|
-
$patch:
|
|
2460
|
-
$reset:
|
|
2459
|
+
$patch: I,
|
|
2460
|
+
$reset: S,
|
|
2461
2461
|
$subscribe(p, v = {}) {
|
|
2462
|
-
const $ = hn(d, p, v.detached, () => A()), A = i.run(() => D(() => o.state.value[e], (
|
|
2462
|
+
const $ = hn(d, p, v.detached, () => A()), A = i.run(() => D(() => o.state.value[e], (q) => {
|
|
2463
2463
|
(v.flush === "sync" ? u : l) && p({
|
|
2464
2464
|
storeId: e,
|
|
2465
|
-
type:
|
|
2465
|
+
type: Te.direct,
|
|
2466
2466
|
events: g
|
|
2467
|
-
},
|
|
2468
|
-
},
|
|
2467
|
+
}, q);
|
|
2468
|
+
}, W({}, c, v)));
|
|
2469
2469
|
return $;
|
|
2470
2470
|
},
|
|
2471
|
-
$dispose:
|
|
2472
|
-
},
|
|
2471
|
+
$dispose: j
|
|
2472
|
+
}, h = Pn(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ce ? W(
|
|
2473
2473
|
{
|
|
2474
|
-
_hmrPayload:
|
|
2475
|
-
_customProperties:
|
|
2474
|
+
_hmrPayload: L,
|
|
2475
|
+
_customProperties: F(/* @__PURE__ */ new Set())
|
|
2476
2476
|
// devtools custom properties
|
|
2477
2477
|
},
|
|
2478
|
-
|
|
2478
|
+
C
|
|
2479
2479
|
// must be added later
|
|
2480
2480
|
// setupStore
|
|
2481
|
-
) :
|
|
2482
|
-
o._s.set(e,
|
|
2483
|
-
const y = (o._a && o._a.runWithContext ||
|
|
2481
|
+
) : C);
|
|
2482
|
+
o._s.set(e, h);
|
|
2483
|
+
const y = (o._a && o._a.runWithContext || Gs)(() => o._e.run(() => (i = At()).run(() => t({ action: R }))));
|
|
2484
2484
|
for (const p in y) {
|
|
2485
2485
|
const v = y[p];
|
|
2486
|
-
if (
|
|
2487
|
-
process.env.NODE_ENV !== "production" && r ? Ge(w.value, p,
|
|
2486
|
+
if (X(v) && !vn(v) || Se(v))
|
|
2487
|
+
process.env.NODE_ENV !== "production" && r ? Ge(w.value, p, ie(y, p)) : s || (m && Xs(v) && (X(v) ? v.value = m[p] : St(v, m[p])), o.state.value[e][p] = v), process.env.NODE_ENV !== "production" && L.state.push(p);
|
|
2488
2488
|
else if (typeof v == "function") {
|
|
2489
|
-
const $ = process.env.NODE_ENV !== "production" && r ? v :
|
|
2490
|
-
y[p] = $, process.env.NODE_ENV !== "production" && (
|
|
2491
|
-
} else process.env.NODE_ENV !== "production" && vn(v) && (
|
|
2489
|
+
const $ = process.env.NODE_ENV !== "production" && r ? v : R(v, p);
|
|
2490
|
+
y[p] = $, process.env.NODE_ENV !== "production" && (L.actions[p] = v), a.actions[p] = v;
|
|
2491
|
+
} else process.env.NODE_ENV !== "production" && vn(v) && (L.getters[p] = s ? (
|
|
2492
2492
|
// @ts-expect-error
|
|
2493
2493
|
n.getters[p]
|
|
2494
|
-
) : v,
|
|
2495
|
-
(y._getters =
|
|
2494
|
+
) : v, Ce && (y._getters || // @ts-expect-error: same
|
|
2495
|
+
(y._getters = F([]))).push(p));
|
|
2496
2496
|
}
|
|
2497
|
-
if (
|
|
2497
|
+
if (W(h, y), W($e(h), y), Object.defineProperty(h, "$state", {
|
|
2498
2498
|
get: () => process.env.NODE_ENV !== "production" && r ? w.value : o.state.value[e],
|
|
2499
2499
|
set: (p) => {
|
|
2500
2500
|
if (process.env.NODE_ENV !== "production" && r)
|
|
2501
2501
|
throw new Error("cannot set hotState");
|
|
2502
|
-
|
|
2503
|
-
|
|
2502
|
+
I((v) => {
|
|
2503
|
+
W(v, p);
|
|
2504
2504
|
});
|
|
2505
2505
|
}
|
|
2506
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
2507
|
-
|
|
2508
|
-
if (v in
|
|
2509
|
-
const $ = p.$state[v], A =
|
|
2506
|
+
}), process.env.NODE_ENV !== "production" && (h._hotUpdate = F((p) => {
|
|
2507
|
+
h._hotUpdating = !0, p._hmrPayload.state.forEach((v) => {
|
|
2508
|
+
if (v in h.$state) {
|
|
2509
|
+
const $ = p.$state[v], A = h.$state[v];
|
|
2510
2510
|
typeof $ == "object" && ve($) && ve(A) ? po($, A) : p.$state[v] = A;
|
|
2511
2511
|
}
|
|
2512
|
-
Ge(
|
|
2513
|
-
}), Object.keys(
|
|
2514
|
-
v in p.$state || yt(
|
|
2515
|
-
}), l = !1, u = !1, o.state.value[e] =
|
|
2512
|
+
Ge(h, v, ie(p.$state, v));
|
|
2513
|
+
}), Object.keys(h.$state).forEach((v) => {
|
|
2514
|
+
v in p.$state || yt(h, v);
|
|
2515
|
+
}), l = !1, u = !1, o.state.value[e] = ie(p._hmrPayload, "hotState"), u = !0, he().then(() => {
|
|
2516
2516
|
l = !0;
|
|
2517
2517
|
});
|
|
2518
2518
|
for (const v in p._hmrPayload.actions) {
|
|
2519
2519
|
const $ = p[v];
|
|
2520
|
-
Ge(
|
|
2520
|
+
Ge(h, v, R($, v));
|
|
2521
2521
|
}
|
|
2522
2522
|
for (const v in p._hmrPayload.getters) {
|
|
2523
2523
|
const $ = p._hmrPayload.getters[v], A = s ? (
|
|
2524
2524
|
// special handling of options api
|
|
2525
|
-
|
|
2525
|
+
N(() => (at(o), $.call(h, h)))
|
|
2526
2526
|
) : $;
|
|
2527
|
-
Ge(
|
|
2527
|
+
Ge(h, v, A);
|
|
2528
2528
|
}
|
|
2529
|
-
Object.keys(
|
|
2530
|
-
v in p._hmrPayload.getters || yt(
|
|
2531
|
-
}), Object.keys(
|
|
2532
|
-
v in p._hmrPayload.actions || yt(
|
|
2533
|
-
}),
|
|
2534
|
-
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
2529
|
+
Object.keys(h._hmrPayload.getters).forEach((v) => {
|
|
2530
|
+
v in p._hmrPayload.getters || yt(h, v);
|
|
2531
|
+
}), Object.keys(h._hmrPayload.actions).forEach((v) => {
|
|
2532
|
+
v in p._hmrPayload.actions || yt(h, v);
|
|
2533
|
+
}), h._hmrPayload = p._hmrPayload, h._getters = p._getters, h._hotUpdating = !1;
|
|
2534
|
+
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ce) {
|
|
2535
2535
|
const p = {
|
|
2536
2536
|
writable: !0,
|
|
2537
2537
|
configurable: !0,
|
|
@@ -2539,32 +2539,32 @@ function Ot(e, t, n = {}, o, r, s) {
|
|
|
2539
2539
|
enumerable: !1
|
|
2540
2540
|
};
|
|
2541
2541
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((v) => {
|
|
2542
|
-
Object.defineProperty(
|
|
2542
|
+
Object.defineProperty(h, v, W({ value: h[v] }, p));
|
|
2543
2543
|
});
|
|
2544
2544
|
}
|
|
2545
2545
|
return o._p.forEach((p) => {
|
|
2546
|
-
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
2546
|
+
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ce) {
|
|
2547
2547
|
const v = i.run(() => p({
|
|
2548
|
-
store:
|
|
2548
|
+
store: h,
|
|
2549
2549
|
app: o._a,
|
|
2550
2550
|
pinia: o,
|
|
2551
2551
|
options: a
|
|
2552
2552
|
}));
|
|
2553
|
-
Object.keys(v || {}).forEach(($) =>
|
|
2553
|
+
Object.keys(v || {}).forEach(($) => h._customProperties.add($)), W(h, v);
|
|
2554
2554
|
} else
|
|
2555
|
-
|
|
2556
|
-
store:
|
|
2555
|
+
W(h, i.run(() => p({
|
|
2556
|
+
store: h,
|
|
2557
2557
|
app: o._a,
|
|
2558
2558
|
pinia: o,
|
|
2559
2559
|
options: a
|
|
2560
2560
|
})));
|
|
2561
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
2561
|
+
}), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
2562
2562
|
state: () => new MyClass()
|
|
2563
|
-
Found in store "${
|
|
2563
|
+
Found in store "${h.$id}".`), m && s && n.hydrate && n.hydrate(h.$state, m), l = !0, u = !0, h;
|
|
2564
2564
|
}
|
|
2565
2565
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
2566
2566
|
// @__NO_SIDE_EFFECTS__
|
|
2567
|
-
function
|
|
2567
|
+
function Qs(e, t, n) {
|
|
2568
2568
|
let o, r;
|
|
2569
2569
|
const s = typeof t == "function";
|
|
2570
2570
|
if (typeof e == "string")
|
|
@@ -2575,17 +2575,17 @@ function Xs(e, t, n) {
|
|
|
2575
2575
|
const l = Nn();
|
|
2576
2576
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
2577
2577
|
// pinia instance with getActivePinia()
|
|
2578
|
-
(process.env.NODE_ENV === "test" &&
|
|
2578
|
+
(process.env.NODE_ENV === "test" && Ie && Ie._testing ? null : a) || (l ? Tt(Js, null) : null), a && at(a), process.env.NODE_ENV !== "production" && !Ie)
|
|
2579
2579
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
2580
2580
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
2581
2581
|
This will fail in production.`);
|
|
2582
|
-
a =
|
|
2582
|
+
a = Ie, a._s.has(o) || (s ? Ot(o, t, r, a) : gn(o, r, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
|
|
2583
2583
|
const u = a._s.get(o);
|
|
2584
2584
|
if (process.env.NODE_ENV !== "production" && c) {
|
|
2585
|
-
const d = "__hot:" + o, f = s ? Ot(d, t, r, a, !0) : gn(d,
|
|
2585
|
+
const d = "__hot:" + o, f = s ? Ot(d, t, r, a, !0) : gn(d, W({}, r), a, !0);
|
|
2586
2586
|
c._hotUpdate(f), delete a.state.value[d], a._s.delete(d);
|
|
2587
2587
|
}
|
|
2588
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2588
|
+
if (process.env.NODE_ENV !== "production" && Ce) {
|
|
2589
2589
|
const d = Ue();
|
|
2590
2590
|
if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
|
|
2591
2591
|
!c) {
|
|
@@ -2603,10 +2603,10 @@ function mo(e) {
|
|
|
2603
2603
|
function zt(e) {
|
|
2604
2604
|
return typeof e == "function" ? e() : k(e);
|
|
2605
2605
|
}
|
|
2606
|
-
const
|
|
2606
|
+
const qs = typeof window < "u" && typeof document < "u";
|
|
2607
2607
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2608
|
-
const
|
|
2609
|
-
}, He =
|
|
2608
|
+
const Ks = (e) => e != null, Zs = Object.prototype.toString, ea = (e) => Zs.call(e) === "[object Object]", ta = () => {
|
|
2609
|
+
}, He = qs ? window : void 0;
|
|
2610
2610
|
function Me(e) {
|
|
2611
2611
|
var t;
|
|
2612
2612
|
const n = zt(e);
|
|
@@ -2615,7 +2615,7 @@ function Me(e) {
|
|
|
2615
2615
|
function Le(...e) {
|
|
2616
2616
|
let t, n, o, r;
|
|
2617
2617
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = He) : [t, n, o, r] = e, !t)
|
|
2618
|
-
return
|
|
2618
|
+
return ta;
|
|
2619
2619
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
2620
2620
|
const s = [], i = () => {
|
|
2621
2621
|
s.forEach((u) => u()), s.length = 0;
|
|
@@ -2624,9 +2624,9 @@ function Le(...e) {
|
|
|
2624
2624
|
([u, d]) => {
|
|
2625
2625
|
if (i(), !u)
|
|
2626
2626
|
return;
|
|
2627
|
-
const f =
|
|
2627
|
+
const f = ea(d) ? { ...d } : d;
|
|
2628
2628
|
s.push(
|
|
2629
|
-
...n.flatMap((g) => o.map((
|
|
2629
|
+
...n.flatMap((g) => o.map((m) => a(u, g, m, f)))
|
|
2630
2630
|
);
|
|
2631
2631
|
},
|
|
2632
2632
|
{ immediate: !0, flush: "post" }
|
|
@@ -2635,23 +2635,23 @@ function Le(...e) {
|
|
|
2635
2635
|
};
|
|
2636
2636
|
return mo(l), l;
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2638
|
+
function na() {
|
|
2639
2639
|
const e = b(!1), t = Ue();
|
|
2640
2640
|
return t && ge(() => {
|
|
2641
2641
|
e.value = !0;
|
|
2642
2642
|
}, t), e;
|
|
2643
2643
|
}
|
|
2644
|
-
function
|
|
2645
|
-
const t =
|
|
2646
|
-
return
|
|
2644
|
+
function oa(e) {
|
|
2645
|
+
const t = na();
|
|
2646
|
+
return N(() => (t.value, !!e()));
|
|
2647
2647
|
}
|
|
2648
|
-
function
|
|
2648
|
+
function ra(e, t, n = {}) {
|
|
2649
2649
|
const { window: o = He, ...r } = n;
|
|
2650
2650
|
let s;
|
|
2651
|
-
const i =
|
|
2651
|
+
const i = oa(() => o && "MutationObserver" in o), a = () => {
|
|
2652
2652
|
s && (s.disconnect(), s = void 0);
|
|
2653
|
-
}, c =
|
|
2654
|
-
const f = zt(e), g = (Array.isArray(f) ? f : [f]).map(Me).filter(
|
|
2653
|
+
}, c = N(() => {
|
|
2654
|
+
const f = zt(e), g = (Array.isArray(f) ? f : [f]).map(Me).filter(Ks);
|
|
2655
2655
|
return new Set(g);
|
|
2656
2656
|
}), l = D(
|
|
2657
2657
|
() => c.value,
|
|
@@ -2668,7 +2668,7 @@ function oa(e, t, n = {}) {
|
|
|
2668
2668
|
takeRecords: u
|
|
2669
2669
|
};
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function sa(e = {}) {
|
|
2672
2672
|
var t;
|
|
2673
2673
|
const {
|
|
2674
2674
|
window: n = He,
|
|
@@ -2686,7 +2686,7 @@ function ra(e = {}) {
|
|
|
2686
2686
|
};
|
|
2687
2687
|
return n && (Le(n, "blur", (l) => {
|
|
2688
2688
|
l.relatedTarget === null && c();
|
|
2689
|
-
}, !0), Le(n, "focus", c, !0)), r &&
|
|
2689
|
+
}, !0), Le(n, "focus", c, !0)), r && ra(s, (l) => {
|
|
2690
2690
|
l.filter((u) => u.removedNodes.length).map((u) => Array.from(u.removedNodes)).flat().forEach((u) => {
|
|
2691
2691
|
u === a.value && c();
|
|
2692
2692
|
});
|
|
@@ -2695,12 +2695,12 @@ function ra(e = {}) {
|
|
|
2695
2695
|
subtree: !0
|
|
2696
2696
|
}), c(), a;
|
|
2697
2697
|
}
|
|
2698
|
-
const
|
|
2699
|
-
function
|
|
2700
|
-
const { window: n = He } = t, o =
|
|
2701
|
-
return !n || !i.value ? { focused: s } : (Le(o,
|
|
2698
|
+
const aa = "focusin", ia = "focusout";
|
|
2699
|
+
function la(e, t = {}) {
|
|
2700
|
+
const { window: n = He } = t, o = N(() => Me(e)), r = b(!1), s = N(() => r.value), i = sa(t);
|
|
2701
|
+
return !n || !i.value ? { focused: s } : (Le(o, aa, () => r.value = !0), Le(o, ia, () => r.value = !1), { focused: s });
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function ca(e, { window: t = He, scrollTarget: n } = {}) {
|
|
2704
2704
|
const o = b(!1), r = () => {
|
|
2705
2705
|
if (!t) return;
|
|
2706
2706
|
const s = t.document, i = Me(e);
|
|
@@ -2720,10 +2720,10 @@ function la(e, { window: t = He, scrollTarget: n } = {}) {
|
|
|
2720
2720
|
passive: !0
|
|
2721
2721
|
}), o;
|
|
2722
2722
|
}
|
|
2723
|
-
const
|
|
2724
|
-
let t =
|
|
2723
|
+
const ne = (e) => {
|
|
2724
|
+
let t = ca(e).value;
|
|
2725
2725
|
return t = t && e.offsetHeight > 0, t;
|
|
2726
|
-
},
|
|
2726
|
+
}, oe = (e) => e.tabIndex >= 0, yn = (e) => {
|
|
2727
2727
|
const t = e.target;
|
|
2728
2728
|
return Jt(t);
|
|
2729
2729
|
}, Jt = (e) => {
|
|
@@ -2739,8 +2739,8 @@ const ee = (e) => {
|
|
|
2739
2739
|
const o = e.previousElementSibling;
|
|
2740
2740
|
o && (n = o);
|
|
2741
2741
|
}
|
|
2742
|
-
return n && (!
|
|
2743
|
-
},
|
|
2742
|
+
return n && (!oe(n) || !ne(n)) ? Jt(n) : n;
|
|
2743
|
+
}, ua = (e) => {
|
|
2744
2744
|
var t;
|
|
2745
2745
|
const n = e.target;
|
|
2746
2746
|
let o;
|
|
@@ -2757,7 +2757,7 @@ const ee = (e) => {
|
|
|
2757
2757
|
s && (o = s);
|
|
2758
2758
|
}
|
|
2759
2759
|
}
|
|
2760
|
-
return o && (!
|
|
2760
|
+
return o && (!oe(o) || !ne(o)) ? Gt(o) : o;
|
|
2761
2761
|
}, wn = (e) => {
|
|
2762
2762
|
const t = e.target;
|
|
2763
2763
|
return Gt(t);
|
|
@@ -2774,8 +2774,8 @@ const ee = (e) => {
|
|
|
2774
2774
|
const o = e.nextElementSibling;
|
|
2775
2775
|
o && (n = o);
|
|
2776
2776
|
}
|
|
2777
|
-
return n && (!
|
|
2778
|
-
},
|
|
2777
|
+
return n && (!oe(n) || !ne(n)) ? Gt(n) : n;
|
|
2778
|
+
}, da = (e) => {
|
|
2779
2779
|
var t;
|
|
2780
2780
|
const n = e.target;
|
|
2781
2781
|
let o;
|
|
@@ -2792,7 +2792,7 @@ const ee = (e) => {
|
|
|
2792
2792
|
s && (o = s);
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
|
-
return o && (!
|
|
2795
|
+
return o && (!oe(o) || !ne(o)) ? Jt(o) : o;
|
|
2796
2796
|
}, bn = (e) => {
|
|
2797
2797
|
const t = e.target;
|
|
2798
2798
|
return Yt(t);
|
|
@@ -2805,7 +2805,7 @@ const ee = (e) => {
|
|
|
2805
2805
|
const o = (t = e.parentElement) == null ? void 0 : t.previousElementSibling;
|
|
2806
2806
|
n = o == null ? void 0 : o.lastElementChild;
|
|
2807
2807
|
}
|
|
2808
|
-
return n && (!
|
|
2808
|
+
return n && (!oe(n) || !ne(n)) ? Yt(n) : n;
|
|
2809
2809
|
}, _n = (e) => {
|
|
2810
2810
|
const t = e.target;
|
|
2811
2811
|
return Xt(t);
|
|
@@ -2818,14 +2818,14 @@ const ee = (e) => {
|
|
|
2818
2818
|
const o = (t = e.parentElement) == null ? void 0 : t.nextElementSibling;
|
|
2819
2819
|
n = o == null ? void 0 : o.firstElementChild;
|
|
2820
2820
|
}
|
|
2821
|
-
return n && (!
|
|
2821
|
+
return n && (!oe(n) || !ne(n)) ? Xt(n) : n;
|
|
2822
2822
|
}, En = (e) => {
|
|
2823
2823
|
const t = e.target.parentElement, n = t == null ? void 0 : t.firstElementChild;
|
|
2824
|
-
return n && (!
|
|
2824
|
+
return n && (!oe(n) || !ne(n)) ? Xt(n) : n;
|
|
2825
2825
|
}, $n = (e) => {
|
|
2826
2826
|
const t = e.target.parentElement, n = t == null ? void 0 : t.lastElementChild;
|
|
2827
|
-
return n && (!
|
|
2828
|
-
}, Ye = ["alt", "control", "shift", "meta"],
|
|
2827
|
+
return n && (!oe(n) || !ne(n)) ? Yt(n) : n;
|
|
2828
|
+
}, Ye = ["alt", "control", "shift", "meta"], fa = {
|
|
2829
2829
|
ArrowUp: "up",
|
|
2830
2830
|
ArrowDown: "down",
|
|
2831
2831
|
ArrowLeft: "left",
|
|
@@ -2848,11 +2848,11 @@ const ee = (e) => {
|
|
|
2848
2848
|
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
2849
2849
|
},
|
|
2850
2850
|
"keydown.control.up": (e) => {
|
|
2851
|
-
const t =
|
|
2851
|
+
const t = ua(e);
|
|
2852
2852
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
2853
2853
|
},
|
|
2854
2854
|
"keydown.control.down": (e) => {
|
|
2855
|
-
const t =
|
|
2855
|
+
const t = da(e);
|
|
2856
2856
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
2857
2857
|
},
|
|
2858
2858
|
"keydown.control.left": (e) => {
|
|
@@ -2919,24 +2919,24 @@ function vo(e) {
|
|
|
2919
2919
|
}, o = (i) => {
|
|
2920
2920
|
const a = t(i);
|
|
2921
2921
|
let c = [];
|
|
2922
|
-
return i.selectors ? c = n(i) : a && (c = Array.from(a.children).filter((l) =>
|
|
2922
|
+
return i.selectors ? c = n(i) : a && (c = Array.from(a.children).filter((l) => oe(l) && ne(l))), c;
|
|
2923
2923
|
}, r = (i) => (a) => {
|
|
2924
|
-
const c =
|
|
2924
|
+
const c = fa[a.key] || a.key.toLowerCase();
|
|
2925
2925
|
if (Ye.includes(c)) return;
|
|
2926
2926
|
const l = i.handlers || Qt;
|
|
2927
2927
|
for (const u of Object.keys(l)) {
|
|
2928
2928
|
const [d, ...f] = u.split(".");
|
|
2929
2929
|
if (d === "keydown" && f.includes(c)) {
|
|
2930
|
-
const g = l[u],
|
|
2931
|
-
const
|
|
2932
|
-
return a.getModifierState(
|
|
2930
|
+
const g = l[u], m = f.filter((_) => Ye.includes(_)), w = Ye.some((_) => {
|
|
2931
|
+
const I = _.charAt(0).toUpperCase() + _.slice(1);
|
|
2932
|
+
return a.getModifierState(I);
|
|
2933
2933
|
});
|
|
2934
|
-
if (
|
|
2934
|
+
if (m.length > 0) {
|
|
2935
2935
|
if (w) {
|
|
2936
2936
|
for (const _ of Ye)
|
|
2937
2937
|
if (f.includes(_)) {
|
|
2938
|
-
const
|
|
2939
|
-
a.getModifierState(
|
|
2938
|
+
const I = _.charAt(0).toUpperCase() + _.slice(1);
|
|
2939
|
+
a.getModifierState(I) && g(a);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
2942
|
} else
|
|
@@ -2948,13 +2948,13 @@ function vo(e) {
|
|
|
2948
2948
|
for (const i of e) {
|
|
2949
2949
|
const a = t(i), c = o(i), l = r(i), u = a ? [a] : c;
|
|
2950
2950
|
for (const d of u) {
|
|
2951
|
-
const { focused: f } =
|
|
2952
|
-
|
|
2951
|
+
const { focused: f } = la(b(d)), g = D(f, (m) => {
|
|
2952
|
+
m ? d.addEventListener("keydown", l) : d.removeEventListener("keydown", l);
|
|
2953
2953
|
});
|
|
2954
2954
|
s.push(g);
|
|
2955
2955
|
}
|
|
2956
2956
|
}
|
|
2957
|
-
}),
|
|
2957
|
+
}), ko(() => {
|
|
2958
2958
|
for (const i of s)
|
|
2959
2959
|
i();
|
|
2960
2960
|
});
|
|
@@ -2962,33 +2962,33 @@ function vo(e) {
|
|
|
2962
2962
|
function Fe(e) {
|
|
2963
2963
|
return Re() ? (Be(e), !0) : !1;
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function z(e) {
|
|
2966
2966
|
return typeof e == "function" ? e() : k(e);
|
|
2967
2967
|
}
|
|
2968
2968
|
const qt = typeof window < "u" && typeof document < "u";
|
|
2969
2969
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2970
|
-
const
|
|
2971
|
-
}, Nt = /* @__PURE__ */
|
|
2972
|
-
function
|
|
2970
|
+
const pa = (e) => e != null, ha = Object.prototype.toString, go = (e) => ha.call(e) === "[object Object]", Ee = () => {
|
|
2971
|
+
}, Nt = /* @__PURE__ */ ma();
|
|
2972
|
+
function ma() {
|
|
2973
2973
|
var e, t;
|
|
2974
2974
|
return qt && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
2975
2975
|
}
|
|
2976
|
-
function
|
|
2976
|
+
function va(e) {
|
|
2977
2977
|
return Ue();
|
|
2978
2978
|
}
|
|
2979
|
-
function
|
|
2979
|
+
function ga(...e) {
|
|
2980
2980
|
if (e.length !== 1)
|
|
2981
|
-
return
|
|
2981
|
+
return ie(...e);
|
|
2982
2982
|
const t = e[0];
|
|
2983
2983
|
return typeof t == "function" ? Sn(On(() => ({ get: t, set: Ee }))) : b(t);
|
|
2984
2984
|
}
|
|
2985
|
-
function
|
|
2986
|
-
|
|
2985
|
+
function ya(e, t = !0, n) {
|
|
2986
|
+
va() ? ge(e, n) : t ? e() : he(e);
|
|
2987
2987
|
}
|
|
2988
2988
|
const ct = qt ? window : void 0;
|
|
2989
2989
|
function xe(e) {
|
|
2990
2990
|
var t;
|
|
2991
|
-
const n =
|
|
2991
|
+
const n = z(e);
|
|
2992
2992
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
2993
2993
|
}
|
|
2994
2994
|
function Pt(...e) {
|
|
@@ -2999,13 +2999,13 @@ function Pt(...e) {
|
|
|
2999
2999
|
const s = [], i = () => {
|
|
3000
3000
|
s.forEach((u) => u()), s.length = 0;
|
|
3001
3001
|
}, a = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
|
|
3002
|
-
() => [xe(t),
|
|
3002
|
+
() => [xe(t), z(r)],
|
|
3003
3003
|
([u, d]) => {
|
|
3004
3004
|
if (i(), !u)
|
|
3005
3005
|
return;
|
|
3006
3006
|
const f = go(d) ? { ...d } : d;
|
|
3007
3007
|
s.push(
|
|
3008
|
-
...n.flatMap((g) => o.map((
|
|
3008
|
+
...n.flatMap((g) => o.map((m) => a(u, g, m, f)))
|
|
3009
3009
|
);
|
|
3010
3010
|
},
|
|
3011
3011
|
{ immediate: !0, flush: "post" }
|
|
@@ -3014,23 +3014,23 @@ function Pt(...e) {
|
|
|
3014
3014
|
};
|
|
3015
3015
|
return Fe(l), l;
|
|
3016
3016
|
}
|
|
3017
|
-
function
|
|
3017
|
+
function wa() {
|
|
3018
3018
|
const e = b(!1), t = Ue();
|
|
3019
3019
|
return t && ge(() => {
|
|
3020
3020
|
e.value = !0;
|
|
3021
3021
|
}, t), e;
|
|
3022
3022
|
}
|
|
3023
3023
|
function yo(e) {
|
|
3024
|
-
const t =
|
|
3025
|
-
return
|
|
3024
|
+
const t = wa();
|
|
3025
|
+
return N(() => (t.value, !!e()));
|
|
3026
3026
|
}
|
|
3027
3027
|
function wo(e, t, n = {}) {
|
|
3028
3028
|
const { window: o = ct, ...r } = n;
|
|
3029
3029
|
let s;
|
|
3030
3030
|
const i = yo(() => o && "MutationObserver" in o), a = () => {
|
|
3031
3031
|
s && (s.disconnect(), s = void 0);
|
|
3032
|
-
}, c =
|
|
3033
|
-
const f =
|
|
3032
|
+
}, c = N(() => {
|
|
3033
|
+
const f = z(e), g = (Array.isArray(f) ? f : [f]).map(xe).filter(pa);
|
|
3034
3034
|
return new Set(g);
|
|
3035
3035
|
}), l = D(
|
|
3036
3036
|
() => c.value,
|
|
@@ -3047,13 +3047,13 @@ function wo(e, t, n = {}) {
|
|
|
3047
3047
|
takeRecords: u
|
|
3048
3048
|
};
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function ba(e, t, n = {}) {
|
|
3051
3051
|
const { window: o = ct, ...r } = n;
|
|
3052
3052
|
let s;
|
|
3053
3053
|
const i = yo(() => o && "ResizeObserver" in o), a = () => {
|
|
3054
3054
|
s && (s.disconnect(), s = void 0);
|
|
3055
|
-
}, c =
|
|
3056
|
-
const d =
|
|
3055
|
+
}, c = N(() => {
|
|
3056
|
+
const d = z(e);
|
|
3057
3057
|
return Array.isArray(d) ? d.map((f) => xe(f)) : [xe(d)];
|
|
3058
3058
|
}), l = D(
|
|
3059
3059
|
c,
|
|
@@ -3080,22 +3080,22 @@ function bo(e, t = {}) {
|
|
|
3080
3080
|
windowScroll: r = !0,
|
|
3081
3081
|
immediate: s = !0,
|
|
3082
3082
|
updateTiming: i = "sync"
|
|
3083
|
-
} = t, a = b(0), c = b(0), l = b(0), u = b(0), d = b(0), f = b(0), g = b(0),
|
|
3083
|
+
} = t, a = b(0), c = b(0), l = b(0), u = b(0), d = b(0), f = b(0), g = b(0), m = b(0);
|
|
3084
3084
|
function w() {
|
|
3085
|
-
const
|
|
3086
|
-
if (!
|
|
3087
|
-
n && (a.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, g.value = 0,
|
|
3085
|
+
const I = xe(e);
|
|
3086
|
+
if (!I) {
|
|
3087
|
+
n && (a.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, g.value = 0, m.value = 0);
|
|
3088
3088
|
return;
|
|
3089
3089
|
}
|
|
3090
|
-
const
|
|
3091
|
-
a.value =
|
|
3090
|
+
const S = I.getBoundingClientRect();
|
|
3091
|
+
a.value = S.height, c.value = S.bottom, l.value = S.left, u.value = S.right, d.value = S.top, f.value = S.width, g.value = S.x, m.value = S.y;
|
|
3092
3092
|
}
|
|
3093
3093
|
function _() {
|
|
3094
3094
|
i === "sync" ? w() : i === "next-frame" && requestAnimationFrame(() => w());
|
|
3095
3095
|
}
|
|
3096
|
-
return
|
|
3096
|
+
return ba(e, _), D(() => xe(e), (I) => !I && _()), wo(e, _, {
|
|
3097
3097
|
attributeFilter: ["style", "class"]
|
|
3098
|
-
}), r && Pt("scroll", _, { capture: !0, passive: !0 }), o && Pt("resize", _, { passive: !0 }),
|
|
3098
|
+
}), r && Pt("scroll", _, { capture: !0, passive: !0 }), o && Pt("resize", _, { passive: !0 }), ya(() => {
|
|
3099
3099
|
s && _();
|
|
3100
3100
|
}), {
|
|
3101
3101
|
height: a,
|
|
@@ -3105,25 +3105,25 @@ function bo(e, t = {}) {
|
|
|
3105
3105
|
top: d,
|
|
3106
3106
|
width: f,
|
|
3107
3107
|
x: g,
|
|
3108
|
-
y:
|
|
3108
|
+
y: m,
|
|
3109
3109
|
update: _
|
|
3110
3110
|
};
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3112
|
+
function _a(e = {}) {
|
|
3113
3113
|
const { window: t = ct, behavior: n = "auto" } = e;
|
|
3114
3114
|
if (!t)
|
|
3115
3115
|
return {
|
|
3116
3116
|
x: b(0),
|
|
3117
3117
|
y: b(0)
|
|
3118
3118
|
};
|
|
3119
|
-
const o = b(t.scrollX), r = b(t.scrollY), s =
|
|
3119
|
+
const o = b(t.scrollX), r = b(t.scrollY), s = N({
|
|
3120
3120
|
get() {
|
|
3121
3121
|
return o.value;
|
|
3122
3122
|
},
|
|
3123
3123
|
set(a) {
|
|
3124
3124
|
scrollTo({ left: a, behavior: n });
|
|
3125
3125
|
}
|
|
3126
|
-
}), i =
|
|
3126
|
+
}), i = N({
|
|
3127
3127
|
get() {
|
|
3128
3128
|
return r.value;
|
|
3129
3129
|
},
|
|
@@ -3143,10 +3143,10 @@ function ba(e = {}) {
|
|
|
3143
3143
|
}
|
|
3144
3144
|
), { x: s, y: i };
|
|
3145
3145
|
}
|
|
3146
|
-
const
|
|
3146
|
+
const Ea = (e) => {
|
|
3147
3147
|
const t = new DOMParser().parseFromString(e, "text/html");
|
|
3148
3148
|
return Array.from(t.body.childNodes).some((n) => n.nodeType === 1);
|
|
3149
|
-
},
|
|
3149
|
+
}, $a = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), ka = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], xa = ["innerHTML"], Sa = { key: 2 }, Oa = /* @__PURE__ */ Q({
|
|
3150
3150
|
__name: "ACell",
|
|
3151
3151
|
props: {
|
|
3152
3152
|
colIndex: {},
|
|
@@ -3154,33 +3154,35 @@ const _a = (e) => {
|
|
|
3154
3154
|
store: {},
|
|
3155
3155
|
addNavigation: { type: [Boolean, Object], default: !0 },
|
|
3156
3156
|
tabIndex: { default: 0 },
|
|
3157
|
-
pinned: { type: Boolean }
|
|
3157
|
+
pinned: { type: Boolean, default: !1 }
|
|
3158
3158
|
},
|
|
3159
3159
|
emits: ["cellInput"],
|
|
3160
3160
|
setup(e, { emit: t }) {
|
|
3161
|
-
const n = t, o = We("cell"), r = e.store.getCellData(e.colIndex, e.rowIndex), s = b(""), i = b(!1), a = e.store.columns[e.colIndex], c = e.store.rows[e.rowIndex], l = a.align || "center", u = a.width || "40ch", d =
|
|
3161
|
+
const n = t, o = We("cell"), r = e.store.getCellData(e.colIndex, e.rowIndex), s = b(""), i = b(!1), a = e.store.columns[e.colIndex], c = e.store.rows[e.rowIndex], l = a.align || "center", u = a.width || "40ch", d = N(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), f = N(() => typeof d.value == "string" ? Ea(d.value) : !1), g = N(() => {
|
|
3162
3162
|
var S;
|
|
3163
3163
|
return {
|
|
3164
3164
|
textAlign: l,
|
|
3165
3165
|
width: u,
|
|
3166
|
-
backgroundColor: i.value ? "var(--sc-cell-changed-color)" : "inherit",
|
|
3167
3166
|
fontWeight: i.value ? "bold" : "inherit",
|
|
3168
3167
|
paddingLeft: e.store.getIndent(e.colIndex, (S = e.store.display[e.rowIndex]) == null ? void 0 : S.indent)
|
|
3169
3168
|
};
|
|
3170
|
-
}),
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3169
|
+
}), m = N(() => ({
|
|
3170
|
+
"sticky-column": e.pinned,
|
|
3171
|
+
"cell-modified": i.value
|
|
3172
|
+
})), w = () => {
|
|
3173
|
+
const { left: S, bottom: j, width: R, height: L } = bo(o);
|
|
3174
|
+
a.mask, a.modalComponent && e.store.$patch((C) => {
|
|
3175
|
+
C.modal.visible = !0, C.modal.colIndex = e.colIndex, C.modal.rowIndex = e.rowIndex, C.modal.left = S, C.modal.bottom = j, C.modal.width = R, C.modal.height = L, typeof a.modalComponent == "function" ? C.modal.component = a.modalComponent({ table: C.table, row: c, column: a }) : C.modal.component = a.modalComponent, C.modal.componentProps = a.modalComponentExtraProps;
|
|
3174
3176
|
});
|
|
3175
3177
|
};
|
|
3176
3178
|
if (e.addNavigation) {
|
|
3177
3179
|
let S = {
|
|
3178
3180
|
...Qt,
|
|
3179
|
-
"keydown.f2":
|
|
3180
|
-
"keydown.alt.up":
|
|
3181
|
-
"keydown.alt.down":
|
|
3182
|
-
"keydown.alt.left":
|
|
3183
|
-
"keydown.alt.right":
|
|
3181
|
+
"keydown.f2": w,
|
|
3182
|
+
"keydown.alt.up": w,
|
|
3183
|
+
"keydown.alt.down": w,
|
|
3184
|
+
"keydown.alt.left": w,
|
|
3185
|
+
"keydown.alt.right": w
|
|
3184
3186
|
};
|
|
3185
3187
|
typeof e.addNavigation == "object" && (S = {
|
|
3186
3188
|
...S,
|
|
@@ -3192,13 +3194,13 @@ const _a = (e) => {
|
|
|
3192
3194
|
}
|
|
3193
3195
|
]);
|
|
3194
3196
|
}
|
|
3195
|
-
const
|
|
3197
|
+
const _ = () => {
|
|
3196
3198
|
o.value && (s.value = o.value.textContent);
|
|
3197
|
-
},
|
|
3198
|
-
const
|
|
3199
|
-
|
|
3199
|
+
}, I = (S) => {
|
|
3200
|
+
const j = S.target;
|
|
3201
|
+
j.textContent !== s.value && (n("cellInput", e.colIndex, e.rowIndex, j.textContent, s.value), s.value = j.textContent, a.format ? (i.value = j.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, r), e.store.setCellText(e.colIndex, e.rowIndex, j.textContent)) : (i.value = j.textContent !== r, e.store.setCellData(e.colIndex, e.rowIndex, j.textContent)));
|
|
3200
3202
|
};
|
|
3201
|
-
return (S,
|
|
3203
|
+
return (S, j) => (x(), O("td", {
|
|
3202
3204
|
ref: "cell",
|
|
3203
3205
|
"data-colindex": S.colIndex,
|
|
3204
3206
|
"data-rowindex": S.rowIndex,
|
|
@@ -3206,23 +3208,28 @@ const _a = (e) => {
|
|
|
3206
3208
|
contenteditable: k(a).edit,
|
|
3207
3209
|
tabindex: S.tabIndex,
|
|
3208
3210
|
spellcheck: !1,
|
|
3209
|
-
style:
|
|
3210
|
-
onFocus:
|
|
3211
|
-
onPaste:
|
|
3212
|
-
onInput:
|
|
3213
|
-
onClick:
|
|
3214
|
-
class: de(["atable-cell",
|
|
3211
|
+
style: G(g.value),
|
|
3212
|
+
onFocus: _,
|
|
3213
|
+
onPaste: I,
|
|
3214
|
+
onInput: I,
|
|
3215
|
+
onClick: w,
|
|
3216
|
+
class: de(["atable-cell", m.value])
|
|
3215
3217
|
}, [
|
|
3216
|
-
k(a).cellComponent ? (x(), ue(
|
|
3218
|
+
k(a).cellComponent ? (x(), ue(Ct(k(a).cellComponent), Dt({
|
|
3217
3219
|
key: 0,
|
|
3218
3220
|
value: d.value
|
|
3219
3221
|
}, k(a).cellComponentProps), null, 16, ["value"])) : f.value ? (x(), O("span", {
|
|
3220
3222
|
key: 1,
|
|
3221
3223
|
innerHTML: d.value
|
|
3222
|
-
}, null, 8,
|
|
3223
|
-
], 46,
|
|
3224
|
+
}, null, 8, xa)) : (x(), O("span", Sa, Z(d.value), 1))
|
|
3225
|
+
], 46, ka));
|
|
3224
3226
|
}
|
|
3225
|
-
}),
|
|
3227
|
+
}), _o = (e, t) => {
|
|
3228
|
+
const n = e.__vccOpts || e;
|
|
3229
|
+
for (const [o, r] of t)
|
|
3230
|
+
n[o] = r;
|
|
3231
|
+
return n;
|
|
3232
|
+
}, Na = ["tabindex"], Pa = /* @__PURE__ */ Q({
|
|
3226
3233
|
__name: "ARow",
|
|
3227
3234
|
props: {
|
|
3228
3235
|
rowIndex: {},
|
|
@@ -3231,7 +3238,7 @@ const _a = (e) => {
|
|
|
3231
3238
|
addNavigation: { type: [Boolean, Object], default: !1 }
|
|
3232
3239
|
},
|
|
3233
3240
|
setup(e) {
|
|
3234
|
-
const t = We("rowEl"), n =
|
|
3241
|
+
const t = We("rowEl"), n = N(() => e.store.isRowVisible(e.rowIndex)), o = N(() => e.store.getRowExpandSymbol(e.rowIndex));
|
|
3235
3242
|
if (e.addNavigation) {
|
|
3236
3243
|
let r = Qt;
|
|
3237
3244
|
typeof e.addNavigation == "object" && (r = {
|
|
@@ -3244,49 +3251,49 @@ const _a = (e) => {
|
|
|
3244
3251
|
}
|
|
3245
3252
|
]);
|
|
3246
3253
|
}
|
|
3247
|
-
return (r, s) =>
|
|
3254
|
+
return (r, s) => Ve((x(), O("tr", {
|
|
3248
3255
|
ref: "rowEl",
|
|
3249
3256
|
tabindex: r.tabIndex,
|
|
3250
|
-
class: "
|
|
3257
|
+
class: "atable-row"
|
|
3251
3258
|
}, [
|
|
3252
|
-
r.store.config.view !== "uncounted" ?
|
|
3259
|
+
r.store.config.view !== "uncounted" ? re(r.$slots, "index", { key: 0 }, () => [
|
|
3253
3260
|
r.store.config.view === "list" ? (x(), O("td", {
|
|
3254
3261
|
key: 0,
|
|
3255
3262
|
tabIndex: -1,
|
|
3256
3263
|
class: de(["list-index", r.store.hasPinnedColumns ? "sticky-index" : ""])
|
|
3257
|
-
},
|
|
3264
|
+
}, Z(r.rowIndex + 1), 3)) : r.store.config.view === "tree" ? (x(), O("td", {
|
|
3258
3265
|
key: 1,
|
|
3259
3266
|
tabIndex: -1,
|
|
3260
3267
|
class: de(["tree-index", r.store.hasPinnedColumns ? "sticky-index" : ""]),
|
|
3261
3268
|
onClick: s[0] || (s[0] = (i) => r.store.toggleRowExpand(r.rowIndex))
|
|
3262
|
-
},
|
|
3263
|
-
]) :
|
|
3264
|
-
|
|
3265
|
-
], 8,
|
|
3266
|
-
[
|
|
3269
|
+
}, Z(o.value), 3)) : ee("", !0)
|
|
3270
|
+
], !0) : ee("", !0),
|
|
3271
|
+
re(r.$slots, "default", {}, void 0, !0)
|
|
3272
|
+
], 8, Na)), [
|
|
3273
|
+
[It, n.value]
|
|
3267
3274
|
]);
|
|
3268
3275
|
}
|
|
3269
|
-
}), _o = qt ? window : void 0;
|
|
3276
|
+
}), Ia = /* @__PURE__ */ _o(Pa, [["__scopeId", "data-v-e02365ea"]]), Eo = qt ? window : void 0;
|
|
3270
3277
|
function De(e) {
|
|
3271
3278
|
var t;
|
|
3272
|
-
const n =
|
|
3279
|
+
const n = z(e);
|
|
3273
3280
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
3274
3281
|
}
|
|
3275
3282
|
function tt(...e) {
|
|
3276
3283
|
let t, n, o, r;
|
|
3277
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t =
|
|
3284
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Eo) : [t, n, o, r] = e, !t)
|
|
3278
3285
|
return Ee;
|
|
3279
3286
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
3280
3287
|
const s = [], i = () => {
|
|
3281
3288
|
s.forEach((u) => u()), s.length = 0;
|
|
3282
3289
|
}, a = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
|
|
3283
|
-
() => [De(t),
|
|
3290
|
+
() => [De(t), z(r)],
|
|
3284
3291
|
([u, d]) => {
|
|
3285
3292
|
if (i(), !u)
|
|
3286
3293
|
return;
|
|
3287
3294
|
const f = go(d) ? { ...d } : d;
|
|
3288
3295
|
s.push(
|
|
3289
|
-
...n.flatMap((g) => o.map((
|
|
3296
|
+
...n.flatMap((g) => o.map((m) => a(u, g, m, f)))
|
|
3290
3297
|
);
|
|
3291
3298
|
},
|
|
3292
3299
|
{ immediate: !0, flush: "post" }
|
|
@@ -3297,59 +3304,59 @@ function tt(...e) {
|
|
|
3297
3304
|
}
|
|
3298
3305
|
let kn = !1;
|
|
3299
3306
|
function xn(e, t, n = {}) {
|
|
3300
|
-
const { window: o =
|
|
3307
|
+
const { window: o = Eo, ignore: r = [], capture: s = !0, detectIframe: i = !1 } = n;
|
|
3301
3308
|
if (!o)
|
|
3302
3309
|
return Ee;
|
|
3303
|
-
Nt && !kn && (kn = !0, Array.from(o.document.body.children).forEach((
|
|
3310
|
+
Nt && !kn && (kn = !0, Array.from(o.document.body.children).forEach((m) => m.addEventListener("click", Ee)), o.document.documentElement.addEventListener("click", Ee));
|
|
3304
3311
|
let a = !0;
|
|
3305
|
-
const c = (
|
|
3312
|
+
const c = (m) => z(r).some((w) => {
|
|
3306
3313
|
if (typeof w == "string")
|
|
3307
|
-
return Array.from(o.document.querySelectorAll(w)).some((_) => _ ===
|
|
3314
|
+
return Array.from(o.document.querySelectorAll(w)).some((_) => _ === m.target || m.composedPath().includes(_));
|
|
3308
3315
|
{
|
|
3309
3316
|
const _ = De(w);
|
|
3310
|
-
return _ && (
|
|
3317
|
+
return _ && (m.target === _ || m.composedPath().includes(_));
|
|
3311
3318
|
}
|
|
3312
3319
|
});
|
|
3313
|
-
function l(
|
|
3314
|
-
const w =
|
|
3320
|
+
function l(m) {
|
|
3321
|
+
const w = z(m);
|
|
3315
3322
|
return w && w.$.subTree.shapeFlag === 16;
|
|
3316
3323
|
}
|
|
3317
|
-
function u(
|
|
3318
|
-
const _ =
|
|
3319
|
-
return
|
|
3324
|
+
function u(m, w) {
|
|
3325
|
+
const _ = z(m), I = _.$.subTree && _.$.subTree.children;
|
|
3326
|
+
return I == null || !Array.isArray(I) ? !1 : I.some((S) => S.el === w.target || w.composedPath().includes(S.el));
|
|
3320
3327
|
}
|
|
3321
|
-
const d = (
|
|
3328
|
+
const d = (m) => {
|
|
3322
3329
|
const w = De(e);
|
|
3323
|
-
if (
|
|
3324
|
-
if (
|
|
3330
|
+
if (m.target != null && !(!(w instanceof Element) && l(e) && u(e, m)) && !(!w || w === m.target || m.composedPath().includes(w))) {
|
|
3331
|
+
if (m.detail === 0 && (a = !c(m)), !a) {
|
|
3325
3332
|
a = !0;
|
|
3326
3333
|
return;
|
|
3327
3334
|
}
|
|
3328
|
-
t(
|
|
3335
|
+
t(m);
|
|
3329
3336
|
}
|
|
3330
3337
|
};
|
|
3331
3338
|
let f = !1;
|
|
3332
3339
|
const g = [
|
|
3333
|
-
tt(o, "click", (
|
|
3340
|
+
tt(o, "click", (m) => {
|
|
3334
3341
|
f || (f = !0, setTimeout(() => {
|
|
3335
3342
|
f = !1;
|
|
3336
|
-
}, 0), d(
|
|
3343
|
+
}, 0), d(m));
|
|
3337
3344
|
}, { passive: !0, capture: s }),
|
|
3338
|
-
tt(o, "pointerdown", (
|
|
3345
|
+
tt(o, "pointerdown", (m) => {
|
|
3339
3346
|
const w = De(e);
|
|
3340
|
-
a = !c(
|
|
3347
|
+
a = !c(m) && !!(w && !m.composedPath().includes(w));
|
|
3341
3348
|
}, { passive: !0 }),
|
|
3342
|
-
i && tt(o, "blur", (
|
|
3349
|
+
i && tt(o, "blur", (m) => {
|
|
3343
3350
|
setTimeout(() => {
|
|
3344
3351
|
var w;
|
|
3345
3352
|
const _ = De(e);
|
|
3346
|
-
((w = o.document.activeElement) == null ? void 0 : w.tagName) === "IFRAME" && !(_ != null && _.contains(o.document.activeElement)) && t(
|
|
3353
|
+
((w = o.document.activeElement) == null ? void 0 : w.tagName) === "IFRAME" && !(_ != null && _.contains(o.document.activeElement)) && t(m);
|
|
3347
3354
|
}, 0);
|
|
3348
3355
|
})
|
|
3349
3356
|
].filter(Boolean);
|
|
3350
|
-
return () => g.forEach((
|
|
3357
|
+
return () => g.forEach((m) => m());
|
|
3351
3358
|
}
|
|
3352
|
-
const
|
|
3359
|
+
const Ca = {
|
|
3353
3360
|
mounted(e, t) {
|
|
3354
3361
|
const n = !t.modifiers.bubble;
|
|
3355
3362
|
if (typeof t.value == "function")
|
|
@@ -3366,25 +3373,25 @@ const Pa = {
|
|
|
3366
3373
|
function bt(e) {
|
|
3367
3374
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
3368
3375
|
}
|
|
3369
|
-
function
|
|
3376
|
+
function $o(e) {
|
|
3370
3377
|
const t = window.getComputedStyle(e);
|
|
3371
3378
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
|
|
3372
3379
|
return !0;
|
|
3373
3380
|
{
|
|
3374
3381
|
const n = e.parentNode;
|
|
3375
|
-
return !n || n.tagName === "BODY" ? !1 :
|
|
3382
|
+
return !n || n.tagName === "BODY" ? !1 : $o(n);
|
|
3376
3383
|
}
|
|
3377
3384
|
}
|
|
3378
|
-
function
|
|
3385
|
+
function Da(e) {
|
|
3379
3386
|
const t = e || window.event, n = t.target;
|
|
3380
|
-
return
|
|
3387
|
+
return $o(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
3381
3388
|
}
|
|
3382
3389
|
const _t = /* @__PURE__ */ new WeakMap();
|
|
3383
|
-
function
|
|
3390
|
+
function Aa(e, t = !1) {
|
|
3384
3391
|
const n = b(t);
|
|
3385
3392
|
let o = null, r = "";
|
|
3386
|
-
D(
|
|
3387
|
-
const c = bt(
|
|
3393
|
+
D(ga(e), (a) => {
|
|
3394
|
+
const c = bt(z(a));
|
|
3388
3395
|
if (c) {
|
|
3389
3396
|
const l = c;
|
|
3390
3397
|
if (_t.get(l) || _t.set(l, l.style.overflow), l.style.overflow !== "hidden" && (r = l.style.overflow), l.style.overflow === "hidden")
|
|
@@ -3396,20 +3403,20 @@ function Ia(e, t = !1) {
|
|
|
3396
3403
|
immediate: !0
|
|
3397
3404
|
});
|
|
3398
3405
|
const s = () => {
|
|
3399
|
-
const a = bt(
|
|
3406
|
+
const a = bt(z(e));
|
|
3400
3407
|
!a || n.value || (Nt && (o = tt(
|
|
3401
3408
|
a,
|
|
3402
3409
|
"touchmove",
|
|
3403
3410
|
(c) => {
|
|
3404
|
-
|
|
3411
|
+
Da(c);
|
|
3405
3412
|
},
|
|
3406
3413
|
{ passive: !1 }
|
|
3407
3414
|
)), a.style.overflow = "hidden", n.value = !0);
|
|
3408
3415
|
}, i = () => {
|
|
3409
|
-
const a = bt(
|
|
3416
|
+
const a = bt(z(e));
|
|
3410
3417
|
!a || !n.value || (Nt && (o == null || o()), a.style.overflow = r, _t.delete(a), n.value = !1);
|
|
3411
3418
|
};
|
|
3412
|
-
return Fe(i),
|
|
3419
|
+
return Fe(i), N({
|
|
3413
3420
|
get() {
|
|
3414
3421
|
return n.value;
|
|
3415
3422
|
},
|
|
@@ -3418,33 +3425,33 @@ function Ia(e, t = !1) {
|
|
|
3418
3425
|
}
|
|
3419
3426
|
});
|
|
3420
3427
|
}
|
|
3421
|
-
function
|
|
3428
|
+
function Ta() {
|
|
3422
3429
|
let e = !1;
|
|
3423
3430
|
const t = b(!1);
|
|
3424
3431
|
return (n, o) => {
|
|
3425
3432
|
if (t.value = o.value, e)
|
|
3426
3433
|
return;
|
|
3427
3434
|
e = !0;
|
|
3428
|
-
const r =
|
|
3435
|
+
const r = Aa(n, o.value);
|
|
3429
3436
|
D(t, (s) => r.value = s);
|
|
3430
3437
|
};
|
|
3431
3438
|
}
|
|
3432
|
-
|
|
3433
|
-
const
|
|
3439
|
+
Ta();
|
|
3440
|
+
const Va = {
|
|
3434
3441
|
key: 0,
|
|
3435
3442
|
id: "resizable"
|
|
3436
|
-
},
|
|
3443
|
+
}, ja = {
|
|
3437
3444
|
class: "atable-header-row",
|
|
3438
3445
|
tabindex: "-1"
|
|
3439
|
-
},
|
|
3446
|
+
}, Ma = /* @__PURE__ */ Q({
|
|
3440
3447
|
__name: "ATableHeader",
|
|
3441
3448
|
props: {
|
|
3442
3449
|
columns: {},
|
|
3443
3450
|
store: {}
|
|
3444
3451
|
},
|
|
3445
3452
|
setup(e) {
|
|
3446
|
-
return (t, n) => t.columns.length ? (x(), O("thead",
|
|
3447
|
-
|
|
3453
|
+
return (t, n) => t.columns.length ? (x(), O("thead", Va, [
|
|
3454
|
+
P("tr", ja, [
|
|
3448
3455
|
t.store.zeroColumn ? (x(), O("th", {
|
|
3449
3456
|
key: 0,
|
|
3450
3457
|
id: "header-index",
|
|
@@ -3453,27 +3460,27 @@ const Aa = {
|
|
|
3453
3460
|
t.store.config.view === "tree" ? "tree-index" : "",
|
|
3454
3461
|
t.store.config.view === "list-expansion" ? "list-expansion-index" : ""
|
|
3455
3462
|
], "list-index"])
|
|
3456
|
-
}, null, 2)) :
|
|
3463
|
+
}, null, 2)) : ee("", !0),
|
|
3457
3464
|
(x(!0), O(fe, null, pe(t.columns, (o, r) => (x(), O("th", {
|
|
3458
3465
|
key: o.name,
|
|
3459
3466
|
tabindex: "-1",
|
|
3460
|
-
style:
|
|
3467
|
+
style: G(t.store.getHeaderCellStyle(o)),
|
|
3461
3468
|
class: de(o.pinned ? "sticky-column" : "")
|
|
3462
3469
|
}, [
|
|
3463
|
-
|
|
3464
|
-
|
|
3470
|
+
re(t.$slots, "default", {}, () => [
|
|
3471
|
+
In(Z(o.label || String.fromCharCode(r + 97).toUpperCase()), 1)
|
|
3465
3472
|
])
|
|
3466
3473
|
], 6))), 128))
|
|
3467
3474
|
])
|
|
3468
|
-
])) :
|
|
3475
|
+
])) : ee("", !0);
|
|
3469
3476
|
}
|
|
3470
|
-
}),
|
|
3477
|
+
}), La = /* @__PURE__ */ Q({
|
|
3471
3478
|
__name: "ATableModal",
|
|
3472
3479
|
props: {
|
|
3473
3480
|
store: {}
|
|
3474
3481
|
},
|
|
3475
3482
|
setup(e) {
|
|
3476
|
-
const t = We("amodal"), { width: n, height: o } = bo(t), { y: r } =
|
|
3483
|
+
const t = We("amodal"), { width: n, height: o } = bo(t), { y: r } = _a(), s = N(() => {
|
|
3477
3484
|
if (!(e.store.modal.height && e.store.modal.width && e.store.modal.left && e.store.modal.bottom)) return;
|
|
3478
3485
|
const a = document.body, c = document.documentElement, l = Math.max(
|
|
3479
3486
|
a.scrollHeight,
|
|
@@ -3495,24 +3502,24 @@ const Aa = {
|
|
|
3495
3502
|
tabindex: "-1",
|
|
3496
3503
|
onClick: i,
|
|
3497
3504
|
onInput: i,
|
|
3498
|
-
style:
|
|
3505
|
+
style: G(s.value)
|
|
3499
3506
|
}, [
|
|
3500
|
-
|
|
3507
|
+
re(a.$slots, "default")
|
|
3501
3508
|
], 36));
|
|
3502
3509
|
}
|
|
3503
|
-
}),
|
|
3504
|
-
const t = e.id ||
|
|
3505
|
-
return (/* @__PURE__ */
|
|
3510
|
+
}), Ra = (e) => {
|
|
3511
|
+
const t = e.id || $a();
|
|
3512
|
+
return (/* @__PURE__ */ Qs(`table-${t}`, () => {
|
|
3506
3513
|
const n = () => {
|
|
3507
|
-
const
|
|
3514
|
+
const h = {};
|
|
3508
3515
|
for (const [E, y] of r.value.entries())
|
|
3509
3516
|
for (const [p, v] of s.value.entries())
|
|
3510
|
-
|
|
3511
|
-
return
|
|
3512
|
-
}, o = (
|
|
3517
|
+
h[`${E}:${p}`] = v[y.name];
|
|
3518
|
+
return h;
|
|
3519
|
+
}, o = (h) => {
|
|
3513
3520
|
const E = [Object.assign({}, { rowModified: !1 })];
|
|
3514
|
-
if (
|
|
3515
|
-
return
|
|
3521
|
+
if (h && "0:0" in h)
|
|
3522
|
+
return h;
|
|
3516
3523
|
const y = /* @__PURE__ */ new Set();
|
|
3517
3524
|
for (let p = s.value.length - 1; p >= 0; p--) {
|
|
3518
3525
|
const v = s.value[p];
|
|
@@ -3528,29 +3535,29 @@ const Aa = {
|
|
|
3528
3535
|
};
|
|
3529
3536
|
}
|
|
3530
3537
|
return E;
|
|
3531
|
-
}, r = b(e.columns), s = b(e.rows), i = b(e.config || {}), a = b(e.table || n()), c = b(o(e.display)), l = b(e.modal || { visible: !1 }), u = b({}), d =
|
|
3538
|
+
}, r = b(e.columns), s = b(e.rows), i = b(e.config || {}), a = b(e.table || n()), c = b(o(e.display)), l = b(e.modal || { visible: !1 }), u = b({}), d = N(() => r.value.some((h) => h.pinned)), f = N(() => `${Math.ceil(s.value.length / 100 + 1)}ch`), g = N(
|
|
3532
3539
|
() => i.value.view ? ["list", "tree", "list-expansion"].includes(i.value.view) : !1
|
|
3533
|
-
),
|
|
3534
|
-
const p = `${
|
|
3540
|
+
), m = (h, E) => a.value[`${h}:${E}`], w = (h, E, y) => {
|
|
3541
|
+
const p = `${h}:${E}`, v = r.value[h];
|
|
3535
3542
|
a.value[p] !== y && (c.value[E].rowModified = !0), a.value[p] = y, s.value[E][v.name] = y;
|
|
3536
|
-
}, _ = (
|
|
3537
|
-
const p = `${
|
|
3543
|
+
}, _ = (h, E, y) => {
|
|
3544
|
+
const p = `${h}:${E}`;
|
|
3538
3545
|
a.value[p] !== y && (c.value[E].rowModified = !0, u.value[p] = y);
|
|
3539
|
-
},
|
|
3540
|
-
minWidth:
|
|
3541
|
-
textAlign:
|
|
3546
|
+
}, I = (h) => ({
|
|
3547
|
+
minWidth: h.width || "40ch",
|
|
3548
|
+
textAlign: h.align || "center",
|
|
3542
3549
|
width: i.value.fullWidth ? "auto" : void 0
|
|
3543
|
-
}),
|
|
3550
|
+
}), S = (h) => i.value.view !== "tree" || c.value[h].isRoot || c.value[h].open, j = (h) => i.value.view !== "tree" ? "" : c.value[h].isRoot || c.value[h].isParent ? c.value[h].childrenOpen ? "-" : "+" : "", R = (h) => {
|
|
3544
3551
|
if (i.value.view === "tree") {
|
|
3545
|
-
c.value[
|
|
3552
|
+
c.value[h].childrenOpen = !c.value[h].childrenOpen;
|
|
3546
3553
|
for (let E = s.value.length - 1; E >= 0; E--)
|
|
3547
|
-
c.value[E].parent ===
|
|
3548
|
-
} else i.value.view === "list-expansion" && (c.value[
|
|
3549
|
-
},
|
|
3550
|
-
const y = h
|
|
3551
|
-
return
|
|
3552
|
-
},
|
|
3553
|
-
const p = r.value[
|
|
3554
|
+
c.value[E].parent === h && (c.value[E].open = !c.value[E].open, c.value[E].childrenOpen && R(E));
|
|
3555
|
+
} else i.value.view === "list-expansion" && (c.value[h].expanded = !c.value[h].expanded);
|
|
3556
|
+
}, L = (h, E) => {
|
|
3557
|
+
const y = m(h, E);
|
|
3558
|
+
return C(h, E, y);
|
|
3559
|
+
}, C = (h, E, y) => {
|
|
3560
|
+
const p = r.value[h], v = s.value[E], $ = p.format;
|
|
3554
3561
|
return $ ? typeof $ == "function" ? $(y, { table: a.value, row: v, column: p }) : typeof $ == "string" ? Function(`"use strict";return (${$})`)()(y, { table: a.value, row: v, column: p }) : y : y;
|
|
3555
3562
|
};
|
|
3556
3563
|
return {
|
|
@@ -3567,23 +3574,23 @@ const Aa = {
|
|
|
3567
3574
|
numberedRowWidth: f,
|
|
3568
3575
|
zeroColumn: g,
|
|
3569
3576
|
// actions
|
|
3570
|
-
closeModal: (
|
|
3577
|
+
closeModal: (h) => {
|
|
3571
3578
|
var E;
|
|
3572
|
-
|
|
3579
|
+
h.target instanceof Node && (E = l.value.parent) != null && E.contains(h.target) || l.value.visible && (l.value.visible = !1);
|
|
3573
3580
|
},
|
|
3574
|
-
getCellData:
|
|
3575
|
-
getCellDisplayValue:
|
|
3576
|
-
getFormattedValue:
|
|
3577
|
-
getHeaderCellStyle:
|
|
3578
|
-
getIndent: (
|
|
3579
|
-
getRowExpandSymbol:
|
|
3580
|
-
isRowVisible:
|
|
3581
|
+
getCellData: m,
|
|
3582
|
+
getCellDisplayValue: L,
|
|
3583
|
+
getFormattedValue: C,
|
|
3584
|
+
getHeaderCellStyle: I,
|
|
3585
|
+
getIndent: (h, E) => E && h === 0 && E > 0 ? `${E}ch` : "inherit",
|
|
3586
|
+
getRowExpandSymbol: j,
|
|
3587
|
+
isRowVisible: S,
|
|
3581
3588
|
setCellData: w,
|
|
3582
3589
|
setCellText: _,
|
|
3583
|
-
toggleRowExpand:
|
|
3590
|
+
toggleRowExpand: R
|
|
3584
3591
|
};
|
|
3585
3592
|
}))();
|
|
3586
|
-
},
|
|
3593
|
+
}, Ba = /* @__PURE__ */ Q({
|
|
3587
3594
|
__name: "ATable",
|
|
3588
3595
|
props: {
|
|
3589
3596
|
id: {},
|
|
@@ -3594,12 +3601,12 @@ const Aa = {
|
|
|
3594
3601
|
},
|
|
3595
3602
|
emits: ["update:modelValue", "cellUpdate"],
|
|
3596
3603
|
setup(e, { expose: t, emit: n }) {
|
|
3597
|
-
const o = n, r = We("table"), s = e.modelValue ? e.modelValue : e.rows, i =
|
|
3604
|
+
const o = n, r = We("table"), s = e.modelValue ? e.modelValue : e.rows, i = Ra({ columns: e.columns, rows: s, id: e.id, config: e.config });
|
|
3598
3605
|
i.$onAction(({ name: l, store: u, args: d, after: f }) => {
|
|
3599
3606
|
if (l === "setCellData") {
|
|
3600
|
-
const [g,
|
|
3607
|
+
const [g, m, w] = d, _ = u.getCellData(g, m);
|
|
3601
3608
|
f(() => {
|
|
3602
|
-
o("cellUpdate", g,
|
|
3609
|
+
o("cellUpdate", g, m, w, _);
|
|
3603
3610
|
});
|
|
3604
3611
|
}
|
|
3605
3612
|
}), D(
|
|
@@ -3615,15 +3622,15 @@ const Aa = {
|
|
|
3615
3622
|
o("cellUpdate", l, u, d, f);
|
|
3616
3623
|
}, c = () => {
|
|
3617
3624
|
const l = r.value, u = l == null ? void 0 : l.rows[0], d = l == null ? void 0 : l.rows[1], f = u ? Array.from(u.cells) : [];
|
|
3618
|
-
for (const [g,
|
|
3625
|
+
for (const [g, m] of f.entries()) {
|
|
3619
3626
|
const w = d == null ? void 0 : d.cells[g];
|
|
3620
|
-
w && (
|
|
3627
|
+
w && (m.style.width = `${w.offsetWidth}px`);
|
|
3621
3628
|
}
|
|
3622
3629
|
for (const g of (l == null ? void 0 : l.rows) || []) {
|
|
3623
|
-
let
|
|
3630
|
+
let m = 0;
|
|
3624
3631
|
const w = [];
|
|
3625
3632
|
for (const _ of g.cells)
|
|
3626
|
-
(_.classList.contains("sticky-column") || _.classList.contains("sticky-index")) && (_.style.left = `${
|
|
3633
|
+
(_.classList.contains("sticky-column") || _.classList.contains("sticky-index")) && (_.style.left = `${m}px`, m += _.offsetWidth, w.push(_));
|
|
3627
3634
|
w.length > 0 && w[w.length - 1].classList.add("sticky-column-edge");
|
|
3628
3635
|
}
|
|
3629
3636
|
};
|
|
@@ -3635,36 +3642,36 @@ const Aa = {
|
|
|
3635
3642
|
u.focus();
|
|
3636
3643
|
});
|
|
3637
3644
|
}
|
|
3638
|
-
}), t({ store: i }), (l, u) =>
|
|
3645
|
+
}), t({ store: i }), (l, u) => Ve((x(), O("table", {
|
|
3639
3646
|
ref: "table",
|
|
3640
3647
|
class: "atable",
|
|
3641
|
-
style:
|
|
3648
|
+
style: G({ width: k(i).config.fullWidth ? "100%" : "auto" })
|
|
3642
3649
|
}, [
|
|
3643
|
-
|
|
3644
|
-
ot(
|
|
3650
|
+
re(l.$slots, "header", { data: k(i) }, () => [
|
|
3651
|
+
ot(Ma, {
|
|
3645
3652
|
columns: k(i).columns,
|
|
3646
3653
|
store: k(i)
|
|
3647
3654
|
}, null, 8, ["columns", "store"])
|
|
3648
3655
|
], !0),
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
(x(!0), O(fe, null, pe(k(i).rows, (d, f) => (x(), ue(
|
|
3656
|
+
P("tbody", null, [
|
|
3657
|
+
re(l.$slots, "body", { data: k(i) }, () => [
|
|
3658
|
+
(x(!0), O(fe, null, pe(k(i).rows, (d, f) => (x(), ue(Ia, {
|
|
3652
3659
|
key: d.id,
|
|
3653
3660
|
row: d,
|
|
3654
3661
|
rowIndex: f,
|
|
3655
3662
|
store: k(i)
|
|
3656
3663
|
}, {
|
|
3657
3664
|
default: rt(() => [
|
|
3658
|
-
(x(!0), O(fe, null, pe(k(i).columns, (g,
|
|
3665
|
+
(x(!0), O(fe, null, pe(k(i).columns, (g, m) => (x(), ue(Oa, {
|
|
3659
3666
|
key: g.name,
|
|
3660
3667
|
store: k(i),
|
|
3661
3668
|
col: g,
|
|
3662
3669
|
spellcheck: "false",
|
|
3663
3670
|
pinned: g.pinned,
|
|
3664
3671
|
rowIndex: f,
|
|
3665
|
-
colIndex:
|
|
3672
|
+
colIndex: m,
|
|
3666
3673
|
component: g.cellComponent,
|
|
3667
|
-
style:
|
|
3674
|
+
style: G({
|
|
3668
3675
|
textAlign: (g == null ? void 0 : g.align) || "center",
|
|
3669
3676
|
minWidth: (g == null ? void 0 : g.width) || "40ch",
|
|
3670
3677
|
width: k(i).config.fullWidth ? "auto" : null
|
|
@@ -3676,11 +3683,11 @@ const Aa = {
|
|
|
3676
3683
|
}, 1032, ["row", "rowIndex", "store"]))), 128))
|
|
3677
3684
|
], !0)
|
|
3678
3685
|
]),
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3686
|
+
re(l.$slots, "footer", { data: k(i) }, void 0, !0),
|
|
3687
|
+
re(l.$slots, "modal", { data: k(i) }, () => [
|
|
3688
|
+
Ve(ot(La, { store: k(i) }, {
|
|
3682
3689
|
default: rt(() => [
|
|
3683
|
-
(x(), ue(
|
|
3690
|
+
(x(), ue(Ct(k(i).modal.component), Dt({
|
|
3684
3691
|
key: `${k(i).modal.rowIndex}:${k(i).modal.colIndex}`,
|
|
3685
3692
|
colIndex: k(i).modal.colIndex,
|
|
3686
3693
|
rowIndex: k(i).modal.rowIndex,
|
|
@@ -3689,30 +3696,25 @@ const Aa = {
|
|
|
3689
3696
|
]),
|
|
3690
3697
|
_: 1
|
|
3691
3698
|
}, 8, ["store"]), [
|
|
3692
|
-
[
|
|
3699
|
+
[It, k(i).modal.visible]
|
|
3693
3700
|
])
|
|
3694
3701
|
], !0)
|
|
3695
3702
|
], 4)), [
|
|
3696
|
-
[k(
|
|
3703
|
+
[k(Ca), k(i).closeModal]
|
|
3697
3704
|
]);
|
|
3698
3705
|
}
|
|
3699
|
-
}),
|
|
3700
|
-
const n = e.__vccOpts || e;
|
|
3701
|
-
for (const [o, r] of t)
|
|
3702
|
-
n[o] = r;
|
|
3703
|
-
return n;
|
|
3704
|
-
}, Ba = /* @__PURE__ */ Ra(La, [["__scopeId", "data-v-bd5101d3"]]), Ua = /* @__PURE__ */ Y({
|
|
3706
|
+
}), Ua = /* @__PURE__ */ _o(Ba, [["__scopeId", "data-v-bd5101d3"]]), Wa = /* @__PURE__ */ Q({
|
|
3705
3707
|
__name: "Records",
|
|
3706
3708
|
setup(e) {
|
|
3707
3709
|
const { stonecrop: t, isReady: n } = Qn(), o = { view: "list" };
|
|
3708
|
-
return (r, s) => k(n) ? (x(), ue(k(
|
|
3710
|
+
return (r, s) => k(n) ? (x(), ue(k(Ua), {
|
|
3709
3711
|
key: 0,
|
|
3710
3712
|
columns: k(t).schema.schema.toArray(),
|
|
3711
3713
|
rows: k(t).store.records,
|
|
3712
3714
|
config: o
|
|
3713
|
-
}, null, 8, ["columns", "rows"])) :
|
|
3715
|
+
}, null, 8, ["columns", "rows"])) : ee("", !0);
|
|
3714
3716
|
}
|
|
3715
|
-
}),
|
|
3717
|
+
}), Ha = { class: "tabs" }, Fa = { tabindex: "0" }, za = {
|
|
3716
3718
|
version: "1.1",
|
|
3717
3719
|
id: "Capa_1",
|
|
3718
3720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3722,13 +3724,13 @@ const Aa = {
|
|
|
3722
3724
|
viewBox: "0 0 424.098 424.098",
|
|
3723
3725
|
style: { "enable-background": "new 0 0 424.098 424.098" },
|
|
3724
3726
|
"xml:space": "preserve"
|
|
3725
|
-
},
|
|
3727
|
+
}, Ja = { tabindex: "0" }, Ga = { style: { width: "11pt" } }, Ya = /* @__PURE__ */ Q({
|
|
3726
3728
|
__name: "SheetNav",
|
|
3727
3729
|
props: {
|
|
3728
3730
|
breadcrumbs: { default: () => [] }
|
|
3729
3731
|
},
|
|
3730
3732
|
setup(e) {
|
|
3731
|
-
const t = b(!0), n = b(!1), o = b(""), r = We("searchinput"), s =
|
|
3733
|
+
const t = b(!0), n = b(!1), o = b(""), r = We("searchinput"), s = N(() => t.value ? "unrotated" : "rotated"), i = () => {
|
|
3732
3734
|
t.value = !t.value;
|
|
3733
3735
|
}, a = async () => {
|
|
3734
3736
|
n.value = !n.value, await he(() => {
|
|
@@ -3741,34 +3743,34 @@ const Aa = {
|
|
|
3741
3743
|
}, u = () => {
|
|
3742
3744
|
};
|
|
3743
3745
|
return (d, f) => {
|
|
3744
|
-
const g =
|
|
3746
|
+
const g = xo("router-link");
|
|
3745
3747
|
return x(), O("footer", null, [
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
+
P("ul", Ha, [
|
|
3749
|
+
P("li", {
|
|
3748
3750
|
class: "hidebreadcrumbs",
|
|
3749
3751
|
onClick: i,
|
|
3750
3752
|
onKeydown: ze(i, ["enter"])
|
|
3751
3753
|
}, [
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
+
P("a", Fa, [
|
|
3755
|
+
P("div", {
|
|
3754
3756
|
class: de(s.value)
|
|
3755
3757
|
}, "×", 2)
|
|
3756
3758
|
])
|
|
3757
3759
|
], 32),
|
|
3758
|
-
|
|
3760
|
+
P("li", {
|
|
3759
3761
|
class: "hometab",
|
|
3760
3762
|
onClick: u,
|
|
3761
3763
|
onKeydown: ze(u, ["enter"]),
|
|
3762
|
-
style:
|
|
3764
|
+
style: G({ display: t.value ? "block" : "none" })
|
|
3763
3765
|
}, [
|
|
3764
3766
|
ot(g, {
|
|
3765
3767
|
to: "/home",
|
|
3766
3768
|
tabindex: "0"
|
|
3767
3769
|
}, {
|
|
3768
3770
|
default: rt(() => [
|
|
3769
|
-
(x(), O("svg",
|
|
3770
|
-
|
|
3771
|
-
|
|
3771
|
+
(x(), O("svg", za, f[5] || (f[5] = [
|
|
3772
|
+
P("g", null, [
|
|
3773
|
+
P("path", {
|
|
3772
3774
|
style: { fill: "#010002" },
|
|
3773
3775
|
d: `M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
|
|
3774
3776
|
c-3.284-0.008-6.243-1.992-7.495-5.023c-1.252-3.04-0.553-6.527,1.764-8.852L206.104,24.546c1.853-1.845,4.503-2.666,7.047-2.276
|
|
@@ -3786,19 +3788,19 @@ const Aa = {
|
|
|
3786
3788
|
_: 1
|
|
3787
3789
|
})
|
|
3788
3790
|
], 36),
|
|
3789
|
-
|
|
3791
|
+
P("li", {
|
|
3790
3792
|
class: "searchtab",
|
|
3791
3793
|
onClick: a,
|
|
3792
3794
|
onKeydown: ze(a, ["enter"]),
|
|
3793
|
-
style:
|
|
3795
|
+
style: G({ display: t.value ? "block" : "none" })
|
|
3794
3796
|
}, [
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
style:
|
|
3797
|
+
P("a", Ja, [
|
|
3798
|
+
P("span", {
|
|
3799
|
+
style: G({ display: n.value ? "none" : "block" })
|
|
3798
3800
|
}, [
|
|
3799
|
-
(x(), O("svg",
|
|
3800
|
-
|
|
3801
|
-
|
|
3801
|
+
(x(), O("svg", Ga, f[6] || (f[6] = [
|
|
3802
|
+
P("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
|
|
3803
|
+
P("path", {
|
|
3802
3804
|
d: "M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",
|
|
3803
3805
|
style: { fill: "#000000", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none" },
|
|
3804
3806
|
id: "path2"
|
|
@@ -3806,30 +3808,30 @@ const Aa = {
|
|
|
3806
3808
|
], -1)
|
|
3807
3809
|
])))
|
|
3808
3810
|
], 4),
|
|
3809
|
-
|
|
3810
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
3811
|
+
Ve(P("input", {
|
|
3812
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => o.value = m),
|
|
3811
3813
|
ref: "searchinput",
|
|
3812
|
-
style:
|
|
3813
|
-
onClick: f[1] || (f[1] = (
|
|
3814
|
-
onInput: f[2] || (f[2] = (
|
|
3815
|
-
onBlur: f[3] || (f[3] = (
|
|
3816
|
-
onKeydown: f[4] || (f[4] = ze((
|
|
3814
|
+
style: G({ display: n.value ? "block" : "none" }),
|
|
3815
|
+
onClick: f[1] || (f[1] = (m) => c(m)),
|
|
3816
|
+
onInput: f[2] || (f[2] = (m) => c(m)),
|
|
3817
|
+
onBlur: f[3] || (f[3] = (m) => l(m)),
|
|
3818
|
+
onKeydown: f[4] || (f[4] = ze((m) => l(m), ["enter"])),
|
|
3817
3819
|
type: "text"
|
|
3818
3820
|
}, null, 36), [
|
|
3819
|
-
[
|
|
3821
|
+
[So, o.value]
|
|
3820
3822
|
])
|
|
3821
3823
|
])
|
|
3822
3824
|
], 36),
|
|
3823
|
-
(x(!0), O(fe, null, pe(d.breadcrumbs, (
|
|
3824
|
-
key:
|
|
3825
|
-
style:
|
|
3825
|
+
(x(!0), O(fe, null, pe(d.breadcrumbs, (m) => (x(), O("li", {
|
|
3826
|
+
key: m.title,
|
|
3827
|
+
style: G({ display: t.value ? "block" : "none" })
|
|
3826
3828
|
}, [
|
|
3827
3829
|
ot(g, {
|
|
3828
3830
|
tabindex: "0",
|
|
3829
|
-
to:
|
|
3831
|
+
to: m.to
|
|
3830
3832
|
}, {
|
|
3831
3833
|
default: rt(() => [
|
|
3832
|
-
|
|
3834
|
+
In(Z(m.title), 1)
|
|
3833
3835
|
]),
|
|
3834
3836
|
_: 2
|
|
3835
3837
|
}, 1032, ["to"])
|
|
@@ -3838,17 +3840,17 @@ const Aa = {
|
|
|
3838
3840
|
]);
|
|
3839
3841
|
};
|
|
3840
3842
|
}
|
|
3841
|
-
}),
|
|
3843
|
+
}), Xa = /* @__PURE__ */ Vt(Ya, [["__scopeId", "data-v-a650f215"]]), Ka = {
|
|
3842
3844
|
install: (e) => {
|
|
3843
|
-
e.component("ActionSet",
|
|
3845
|
+
e.component("ActionSet", Mo), e.component("CommandPalette", Bo), e.component("Doctype", Fs), e.component("Records", Wa), e.component("SheetNav", Xa);
|
|
3844
3846
|
}
|
|
3845
3847
|
};
|
|
3846
3848
|
export {
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3849
|
+
Mo as ActionSet,
|
|
3850
|
+
Bo as CommandPalette,
|
|
3851
|
+
Fs as Doctype,
|
|
3852
|
+
Wa as Records,
|
|
3853
|
+
Xa as SheetNav,
|
|
3854
|
+
Ka as StonecropDesktop
|
|
3853
3855
|
};
|
|
3854
3856
|
//# sourceMappingURL=desktop.js.map
|