@stonecrop/desktop 0.11.9 → 0.11.10
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.css +1 -1
- package/dist/desktop.js +213 -213
- package/dist/desktop.js.map +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as Le, ref as C, onMounted as yr, openBlock as M, createElementBlock as U, normalizeClass as
|
|
2
|
-
const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header" }, Pi = ["disabled", "onClick"], qi = { key: 0 }, Vi = { class: "dropdown-header" }, Li = ["onClick"], Ui = ["onClick"], Fi = { class: "dropdown-container" },
|
|
1
|
+
import { defineComponent as Le, ref as C, onMounted as yr, openBlock as M, createElementBlock as U, normalizeClass as ee, createElementVNode as $, Fragment as ne, renderList as Ne, toDisplayString as At, createCommentVNode as Wt, withDirectives as sr, vShow as Wr, useTemplateRef as So, computed as N, watch as ot, nextTick as oe, createBlock as ar, Teleport as zi, createVNode as re, Transition as Ri, withCtx as je, withModifiers as Io, vModelText as Eo, renderSlot as zr, createTextVNode as ur, toRaw as Oo, isRef as ie, isReactive as _r, toRef as Kt, hasInjectionContext as Kr, inject as xe, getCurrentInstance as ko, reactive as Do, markRaw as Ie, effectScope as Ci, getCurrentScope as un, onScopeDispose as cn, toRefs as Vn, provide as Hr, shallowRef as Ue, toValue as St, readonly as gr, customRef as ln, unref as or, useModel as Ni, watchEffect as ji, resolveDynamicComponent as Ln, mergeProps as xi, mergeModels as Un, resolveComponent as $i, withKeys as be, normalizeStyle as Rr } from "vue";
|
|
2
|
+
const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header" }, Pi = ["disabled", "onClick"], qi = { key: 0 }, Vi = { class: "dropdown-header" }, Li = ["onClick"], Ui = ["onClick"], Fi = { class: "dropdown-container" }, Bi = { class: "dropdown" }, Wi = ["onClick"], Ki = ["href"], Hi = { class: "dropdown-item" }, Ji = /* @__PURE__ */ Le({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
5
5
|
elements: { default: () => [] }
|
|
@@ -21,13 +21,13 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
21
21
|
r("actionClick", f, l);
|
|
22
22
|
};
|
|
23
23
|
return (l, f) => (M(), U("div", {
|
|
24
|
-
class:
|
|
24
|
+
class: ee([{ collapsed: !o.value }, "action-set"])
|
|
25
25
|
}, [
|
|
26
26
|
$("div", Mi, [
|
|
27
27
|
$("div", {
|
|
28
28
|
id: "cross",
|
|
29
29
|
onClick: a,
|
|
30
|
-
class:
|
|
30
|
+
class: ee({ rotated: o.value })
|
|
31
31
|
}, "×", 2)
|
|
32
32
|
]),
|
|
33
33
|
f[0] || (f[0] = $("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
@@ -41,13 +41,13 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
41
41
|
disabled: h.disabled,
|
|
42
42
|
class: "button-default",
|
|
43
43
|
onClick: (y) => c(h.action, h.label)
|
|
44
|
-
}, At(h.label), 9, Pi)) :
|
|
44
|
+
}, At(h.label), 9, Pi)) : Wt("", !0)
|
|
45
45
|
]),
|
|
46
46
|
h.type == "dropdown" ? (M(), U("div", qi, [
|
|
47
47
|
$("div", Vi, [
|
|
48
48
|
$("div", {
|
|
49
49
|
onClick: (y) => u(d),
|
|
50
|
-
class:
|
|
50
|
+
class: ee(["cross", { rotated: i.value[d] }])
|
|
51
51
|
}, "×", 10, Li),
|
|
52
52
|
$("button", {
|
|
53
53
|
class: "button-default dropdown-title",
|
|
@@ -55,7 +55,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
55
55
|
}, At(h.label), 9, Ui)
|
|
56
56
|
]),
|
|
57
57
|
sr($("div", Fi, [
|
|
58
|
-
$("div",
|
|
58
|
+
$("div", Bi, [
|
|
59
59
|
(M(!0), U(ne, null, Ne(h.actions, (y) => (M(), U("div", {
|
|
60
60
|
key: y.label
|
|
61
61
|
}, [
|
|
@@ -63,18 +63,18 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "dropdown-item",
|
|
65
65
|
onClick: (m) => c(y.action, y.label)
|
|
66
|
-
}, At(y.label), 9,
|
|
66
|
+
}, At(y.label), 9, Wi)) : y.link != null ? (M(), U("a", {
|
|
67
67
|
key: 1,
|
|
68
68
|
href: y.link
|
|
69
69
|
}, [
|
|
70
70
|
$("button", Hi, At(y.label), 1)
|
|
71
|
-
], 8, Ki)) :
|
|
71
|
+
], 8, Ki)) : Wt("", !0)
|
|
72
72
|
]))), 128))
|
|
73
73
|
])
|
|
74
74
|
], 512), [
|
|
75
|
-
[
|
|
75
|
+
[Wr, n.value[d]]
|
|
76
76
|
])
|
|
77
|
-
])) :
|
|
77
|
+
])) : Wt("", !0)
|
|
78
78
|
]))), 128))
|
|
79
79
|
], 2));
|
|
80
80
|
}
|
|
@@ -86,7 +86,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
86
86
|
}, zo = /* @__PURE__ */ Ao(Ji, [["__scopeId", "data-v-3d76328a"]]), Gi = { class: "command-palette-header" }, Qi = ["placeholder"], Yi = {
|
|
87
87
|
key: 0,
|
|
88
88
|
class: "command-palette-results"
|
|
89
|
-
},
|
|
89
|
+
}, Zi = ["onClick", "onMouseover"], Xi = { class: "result-title" }, ts = { class: "result-content" }, es = {
|
|
90
90
|
key: 1,
|
|
91
91
|
class: "command-palette-no-results"
|
|
92
92
|
}, Ro = /* @__PURE__ */ Le({
|
|
@@ -157,24 +157,24 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
157
157
|
s.value.length ? (M(), U("div", Yi, [
|
|
158
158
|
(M(!0), U(ne, null, Ne(s.value, (h, d) => (M(), U("div", {
|
|
159
159
|
key: d,
|
|
160
|
-
class:
|
|
160
|
+
class: ee(["command-palette-result", { selected: d === o.value }]),
|
|
161
161
|
onClick: (y) => c(h),
|
|
162
162
|
onMouseover: (y) => o.value = d
|
|
163
163
|
}, [
|
|
164
|
-
$("div",
|
|
164
|
+
$("div", Xi, [
|
|
165
165
|
zr(l.$slots, "title", { result: h })
|
|
166
166
|
]),
|
|
167
167
|
$("div", ts, [
|
|
168
168
|
zr(l.$slots, "content", { result: h })
|
|
169
169
|
])
|
|
170
|
-
], 42,
|
|
170
|
+
], 42, Zi))), 128))
|
|
171
171
|
])) : n.value && !s.value.length ? (M(), U("div", es, [
|
|
172
172
|
zr(l.$slots, "empty", {}, () => [
|
|
173
173
|
ur(' No results found for "' + At(n.value) + '" ', 1)
|
|
174
174
|
])
|
|
175
|
-
])) :
|
|
175
|
+
])) : Wt("", !0)
|
|
176
176
|
])
|
|
177
|
-
])) :
|
|
177
|
+
])) : Wt("", !0)
|
|
178
178
|
]),
|
|
179
179
|
_: 3
|
|
180
180
|
})
|
|
@@ -182,14 +182,14 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
const Xt = typeof window < "u";
|
|
185
|
-
let
|
|
186
|
-
const cr = (t) =>
|
|
185
|
+
let Bt;
|
|
186
|
+
const cr = (t) => Bt = t;
|
|
187
187
|
process.env.NODE_ENV;
|
|
188
188
|
const Jr = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia") : (
|
|
189
189
|
/* istanbul ignore next */
|
|
190
190
|
/* @__PURE__ */ Symbol()
|
|
191
191
|
);
|
|
192
|
-
function
|
|
192
|
+
function Ht(t) {
|
|
193
193
|
return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
|
|
194
194
|
}
|
|
195
195
|
var De;
|
|
@@ -202,7 +202,7 @@ function Co(t, e) {
|
|
|
202
202
|
if (!(r in t))
|
|
203
203
|
continue;
|
|
204
204
|
const o = t[r];
|
|
205
|
-
|
|
205
|
+
Ht(o) && Ht(n) && !ie(n) && !_r(n) ? t[r] = Co(o, n) : t[r] = n;
|
|
206
206
|
}
|
|
207
207
|
return t;
|
|
208
208
|
}
|
|
@@ -215,19 +215,19 @@ function Fn(t, e, r, n = No) {
|
|
|
215
215
|
};
|
|
216
216
|
return !r && un() && cn(o), o;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Zt(t, ...e) {
|
|
219
219
|
t.forEach((r) => {
|
|
220
220
|
r(...e);
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
const rs = (t) => t(),
|
|
223
|
+
const rs = (t) => t(), Bn = /* @__PURE__ */ Symbol(), Cr = /* @__PURE__ */ Symbol();
|
|
224
224
|
function Gr(t, e) {
|
|
225
225
|
t instanceof Map && e instanceof Map ? e.forEach((r, n) => t.set(n, r)) : t instanceof Set && e instanceof Set && e.forEach(t.add, t);
|
|
226
226
|
for (const r in e) {
|
|
227
227
|
if (!e.hasOwnProperty(r))
|
|
228
228
|
continue;
|
|
229
229
|
const n = e[r], o = t[r];
|
|
230
|
-
|
|
230
|
+
Ht(o) && Ht(n) && t.hasOwnProperty(r) && !ie(n) && !_r(n) ? t[r] = Gr(o, n) : t[r] = n;
|
|
231
231
|
}
|
|
232
232
|
return t;
|
|
233
233
|
}
|
|
@@ -236,10 +236,10 @@ const ns = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia
|
|
|
236
236
|
/* @__PURE__ */ Symbol()
|
|
237
237
|
);
|
|
238
238
|
function os(t) {
|
|
239
|
-
return !
|
|
239
|
+
return !Ht(t) || !Object.prototype.hasOwnProperty.call(t, ns);
|
|
240
240
|
}
|
|
241
241
|
const { assign: wt } = Object;
|
|
242
|
-
function
|
|
242
|
+
function Wn(t) {
|
|
243
243
|
return !!(ie(t) && t.effect);
|
|
244
244
|
}
|
|
245
245
|
function Kn(t, e, r, n) {
|
|
@@ -288,7 +288,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
288
288
|
const z = A = /* @__PURE__ */ Symbol();
|
|
289
289
|
oe().then(() => {
|
|
290
290
|
A === z && (c = !0);
|
|
291
|
-
}), l = !0,
|
|
291
|
+
}), l = !0, Zt(f, b, n.state.value[t]);
|
|
292
292
|
}
|
|
293
293
|
const rt = i ? function() {
|
|
294
294
|
const { state: b } = r, z = b ? b() : {};
|
|
@@ -305,7 +305,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
305
305
|
s.stop(), f.clear(), h.clear(), n._s.delete(t);
|
|
306
306
|
}
|
|
307
307
|
const Ot = (S, b = "") => {
|
|
308
|
-
if (
|
|
308
|
+
if (Bn in S)
|
|
309
309
|
return S[Cr] = b, S;
|
|
310
310
|
const z = function() {
|
|
311
311
|
cr(n);
|
|
@@ -316,7 +316,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
316
316
|
function xt(_) {
|
|
317
317
|
P.add(_);
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
Zt(h, {
|
|
320
320
|
args: J,
|
|
321
321
|
name: z[Cr],
|
|
322
322
|
store: O,
|
|
@@ -327,12 +327,12 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
327
327
|
try {
|
|
328
328
|
st = S.apply(this && this.$id === t ? this : O, J);
|
|
329
329
|
} catch (_) {
|
|
330
|
-
throw
|
|
330
|
+
throw Zt(P, _), _;
|
|
331
331
|
}
|
|
332
|
-
return st instanceof Promise ? st.then((_) => (
|
|
332
|
+
return st instanceof Promise ? st.then((_) => (Zt(k, _), _)).catch((_) => (Zt(P, _), Promise.reject(_))) : (Zt(k, st), st);
|
|
333
333
|
};
|
|
334
|
-
return z[
|
|
335
|
-
},
|
|
334
|
+
return z[Bn] = !0, z[Cr] = b, z;
|
|
335
|
+
}, Z = /* @__PURE__ */ Ie({
|
|
336
336
|
actions: {},
|
|
337
337
|
getters: {},
|
|
338
338
|
state: [],
|
|
@@ -357,7 +357,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
357
357
|
$dispose: lt
|
|
358
358
|
}, O = Do(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Xt ? wt(
|
|
359
359
|
{
|
|
360
|
-
_hmrPayload:
|
|
360
|
+
_hmrPayload: Z,
|
|
361
361
|
_customProperties: Ie(/* @__PURE__ */ new Set())
|
|
362
362
|
// devtools custom properties
|
|
363
363
|
},
|
|
@@ -369,12 +369,12 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
369
369
|
const q = (n._a && n._a.runWithContext || rs)(() => n._e.run(() => (s = Ci()).run(() => e({ action: Ot }))));
|
|
370
370
|
for (const S in q) {
|
|
371
371
|
const b = q[S];
|
|
372
|
-
if (ie(b) && !
|
|
373
|
-
process.env.NODE_ENV !== "production" && o ? m.value[S] =
|
|
372
|
+
if (ie(b) && !Wn(b) || _r(b))
|
|
373
|
+
process.env.NODE_ENV !== "production" && o ? m.value[S] = Kt(q, S) : i || (y && os(b) && (ie(b) ? b.value = y[S] : Gr(b, y[S])), n.state.value[t][S] = b), process.env.NODE_ENV !== "production" && Z.state.push(S);
|
|
374
374
|
else if (typeof b == "function") {
|
|
375
375
|
const z = process.env.NODE_ENV !== "production" && o ? b : Ot(b, S);
|
|
376
|
-
q[S] = z, process.env.NODE_ENV !== "production" && (
|
|
377
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
376
|
+
q[S] = z, process.env.NODE_ENV !== "production" && (Z.actions[S] = b), a.actions[S] = b;
|
|
377
|
+
} else process.env.NODE_ENV !== "production" && Wn(b) && (Z.getters[S] = i ? (
|
|
378
378
|
// @ts-expect-error
|
|
379
379
|
r.getters[S]
|
|
380
380
|
) : b, Xt && (q._getters || // @ts-expect-error: same
|
|
@@ -393,12 +393,12 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
393
393
|
O._hotUpdating = !0, S._hmrPayload.state.forEach((b) => {
|
|
394
394
|
if (b in O.$state) {
|
|
395
395
|
const z = S.$state[b], J = O.$state[b];
|
|
396
|
-
typeof z == "object" &&
|
|
396
|
+
typeof z == "object" && Ht(z) && Ht(J) ? Co(z, J) : S.$state[b] = J;
|
|
397
397
|
}
|
|
398
|
-
O[b] =
|
|
398
|
+
O[b] = Kt(S.$state, b);
|
|
399
399
|
}), Object.keys(O.$state).forEach((b) => {
|
|
400
400
|
b in S.$state || delete O[b];
|
|
401
|
-
}), c = !1, l = !1, n.state.value[t] =
|
|
401
|
+
}), c = !1, l = !1, n.state.value[t] = Kt(S._hmrPayload, "hotState"), l = !0, oe().then(() => {
|
|
402
402
|
c = !0;
|
|
403
403
|
});
|
|
404
404
|
for (const b in S._hmrPayload.actions) {
|
|
@@ -459,11 +459,11 @@ function is(t, e, r) {
|
|
|
459
459
|
const u = Kr();
|
|
460
460
|
if (s = // in test mode, ignore the argument provided as we can always retrieve a
|
|
461
461
|
// pinia instance with getActivePinia()
|
|
462
|
-
(process.env.NODE_ENV === "test" &&
|
|
462
|
+
(process.env.NODE_ENV === "test" && Bt && Bt._testing ? null : s) || (u ? xe(Jr, null) : null), s && cr(s), process.env.NODE_ENV !== "production" && !Bt)
|
|
463
463
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
464
464
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
465
465
|
This will fail in production.`);
|
|
466
|
-
s =
|
|
466
|
+
s = Bt, s._s.has(t) || (o ? Qr(t, e, n, s) : Kn(t, n, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
|
|
467
467
|
const c = s._s.get(t);
|
|
468
468
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
469
469
|
const l = "__hot:" + t, f = o ? Qr(l, e, n, s, !0) : Kn(l, wt({}, n), s, !0);
|
|
@@ -492,7 +492,7 @@ function ss(t) {
|
|
|
492
492
|
t[n] = i;
|
|
493
493
|
}
|
|
494
494
|
}) : (ie(o) || _r(o)) && (r[n] = // ---
|
|
495
|
-
|
|
495
|
+
Kt(t, n));
|
|
496
496
|
}
|
|
497
497
|
return r;
|
|
498
498
|
}
|
|
@@ -501,7 +501,7 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
501
501
|
const us = Object.prototype.toString, cs = (t) => us.call(t) === "[object Object]", ls = () => {
|
|
502
502
|
};
|
|
503
503
|
function fs(...t) {
|
|
504
|
-
if (t.length !== 1) return
|
|
504
|
+
if (t.length !== 1) return Kt(...t);
|
|
505
505
|
const e = t[0];
|
|
506
506
|
return typeof e == "function" ? gr(ln(() => ({
|
|
507
507
|
get: e,
|
|
@@ -597,9 +597,9 @@ function Hn(...t) {
|
|
|
597
597
|
});
|
|
598
598
|
}, { flush: "post" });
|
|
599
599
|
}
|
|
600
|
-
const Ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {},
|
|
600
|
+
const Ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ze = "__vueuse_ssr_handlers__", ws = /* @__PURE__ */ bs();
|
|
601
601
|
function bs() {
|
|
602
|
-
return
|
|
602
|
+
return Ze in Ye || (Ye[Ze] = Ye[Ze] || {}), Ye[Ze];
|
|
603
603
|
}
|
|
604
604
|
function Ss(t, e) {
|
|
605
605
|
return ws[t] || e;
|
|
@@ -652,7 +652,7 @@ function Os(t, e, r, n = {}) {
|
|
|
652
652
|
d(k);
|
|
653
653
|
}
|
|
654
654
|
if (!r) return m;
|
|
655
|
-
const T = St(e), rt = Is(T), lt = (o = n.serializer) !== null && o !== void 0 ? o : Es[rt], { pause: Ot, resume:
|
|
655
|
+
const T = St(e), rt = Is(T), lt = (o = n.serializer) !== null && o !== void 0 ? o : Es[rt], { pause: Ot, resume: Z } = ys(m, (k) => S(k), {
|
|
656
656
|
flush: i,
|
|
657
657
|
deep: s,
|
|
658
658
|
eventFilter: h
|
|
@@ -717,7 +717,7 @@ function Os(t, e, r, n = {}) {
|
|
|
717
717
|
} catch (P) {
|
|
718
718
|
d(P);
|
|
719
719
|
} finally {
|
|
720
|
-
k ? oe(
|
|
720
|
+
k ? oe(Z) : Z();
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
@@ -734,7 +734,7 @@ function ks(t, e, r = {}) {
|
|
|
734
734
|
function jr() {
|
|
735
735
|
return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Xe(t) {
|
|
738
738
|
const e = {
|
|
739
739
|
type: t.type,
|
|
740
740
|
clientId: t.clientId,
|
|
@@ -891,7 +891,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
891
891
|
newestOperation: I.length > 0 ? new Date(Math.max(...I.map((E) => E.getTime()))) : void 0
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Z() {
|
|
895
895
|
e.value = [], r.value = -1;
|
|
896
896
|
}
|
|
897
897
|
function mt(_, I) {
|
|
@@ -936,7 +936,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
936
936
|
clientId: n.value,
|
|
937
937
|
timestamp: /* @__PURE__ */ new Date()
|
|
938
938
|
};
|
|
939
|
-
q.postMessage(
|
|
939
|
+
q.postMessage(Xe(I));
|
|
940
940
|
}
|
|
941
941
|
function z(_, I) {
|
|
942
942
|
if (!q) return;
|
|
@@ -946,7 +946,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
946
946
|
clientId: n.value,
|
|
947
947
|
timestamp: /* @__PURE__ */ new Date()
|
|
948
948
|
};
|
|
949
|
-
q.postMessage(
|
|
949
|
+
q.postMessage(Xe(E));
|
|
950
950
|
}
|
|
951
951
|
function J(_) {
|
|
952
952
|
if (!q) return;
|
|
@@ -956,7 +956,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
956
956
|
clientId: n.value,
|
|
957
957
|
timestamp: /* @__PURE__ */ new Date()
|
|
958
958
|
};
|
|
959
|
-
q.postMessage(
|
|
959
|
+
q.postMessage(Xe(I));
|
|
960
960
|
}
|
|
961
961
|
function k(_) {
|
|
962
962
|
if (!q) return;
|
|
@@ -966,7 +966,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
966
966
|
clientId: n.value,
|
|
967
967
|
timestamp: /* @__PURE__ */ new Date()
|
|
968
968
|
};
|
|
969
|
-
q.postMessage(
|
|
969
|
+
q.postMessage(Xe(I));
|
|
970
970
|
}
|
|
971
971
|
const P = ks("stonecrop-operations", null, {
|
|
972
972
|
serializer: {
|
|
@@ -1035,7 +1035,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
1035
1035
|
cancelBatch: m,
|
|
1036
1036
|
undo: A,
|
|
1037
1037
|
redo: T,
|
|
1038
|
-
clear:
|
|
1038
|
+
clear: Z,
|
|
1039
1039
|
getOperationsFor: mt,
|
|
1040
1040
|
getSnapshot: Ot,
|
|
1041
1041
|
markIrreversible: O,
|
|
@@ -1396,14 +1396,14 @@ function Gn() {
|
|
|
1396
1396
|
return null;
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
|
-
class
|
|
1399
|
+
class te {
|
|
1400
1400
|
static instance;
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Gets the singleton instance of HST
|
|
1403
1403
|
* @returns The HST singleton instance
|
|
1404
1404
|
*/
|
|
1405
1405
|
static getInstance() {
|
|
1406
|
-
return
|
|
1406
|
+
return te.instance || (te.instance = new te()), te.instance;
|
|
1407
1407
|
}
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Gets the global registry instance
|
|
@@ -1444,7 +1444,7 @@ class fr {
|
|
|
1444
1444
|
doctype;
|
|
1445
1445
|
hst;
|
|
1446
1446
|
constructor(e, r, n = "", o = null) {
|
|
1447
|
-
return this.target = e, this.ancestorPath = n, this.rootNode = o || this, this.doctype = r, this.hst =
|
|
1447
|
+
return this.target = e, this.ancestorPath = n, this.rootNode = o || this, this.doctype = r, this.hst = te.getInstance(), new Proxy(this, {
|
|
1448
1448
|
get(i, s) {
|
|
1449
1449
|
if (s in i) return Reflect.get(i, s);
|
|
1450
1450
|
const a = String(s);
|
|
@@ -2084,7 +2084,7 @@ function zs(t) {
|
|
|
2084
2084
|
t || (t = {});
|
|
2085
2085
|
const e = t.registry || xe("$registry"), r = xe("$stonecrop"), n = C(), o = C(), i = C({}), s = C(), a = C(), u = C([]), c = C(!1), l = C(null), f = C(), h = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : n.value.isWorkflowReady(f.value, t.recordId).ready), d = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? [] : n.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), y = r || ze._root;
|
|
2086
2086
|
y && (n.value = y), t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
|
|
2087
|
-
const m = C([]), A = C(-1), T = N(() => n.value?.getOperationLogStore().canUndo ?? !1), rt = N(() => n.value?.getOperationLogStore().canRedo ?? !1), lt = N(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = N(() => n.value?.getOperationLogStore().redoCount ?? 0),
|
|
2087
|
+
const m = C([]), A = C(-1), T = N(() => n.value?.getOperationLogStore().canUndo ?? !1), rt = N(() => n.value?.getOperationLogStore().canRedo ?? !1), lt = N(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = N(() => n.value?.getOperationLogStore().redoCount ?? 0), Z = N(
|
|
2088
2088
|
() => n.value?.getOperationLogStore().undoRedoState ?? {
|
|
2089
2089
|
canUndo: !1,
|
|
2090
2090
|
canRedo: !1,
|
|
@@ -2138,9 +2138,9 @@ function zs(t) {
|
|
|
2138
2138
|
}, R = await e.getMeta?.(D);
|
|
2139
2139
|
if (R) {
|
|
2140
2140
|
if (e.addDoctype(R), n.value.setup(R), s.value = R, a.value = g, o.value = n.value.getStore(), e && (u.value = e.resolveSchema(R)), g && g !== "new") {
|
|
2141
|
-
const
|
|
2142
|
-
if (
|
|
2143
|
-
i.value =
|
|
2141
|
+
const X = n.value.getRecordById(R, g);
|
|
2142
|
+
if (X)
|
|
2143
|
+
i.value = X.get("") || {};
|
|
2144
2144
|
else
|
|
2145
2145
|
try {
|
|
2146
2146
|
await n.value.getRecord(R, g);
|
|
@@ -2218,9 +2218,9 @@ function zs(t) {
|
|
|
2218
2218
|
try {
|
|
2219
2219
|
const g = p.path.split(".");
|
|
2220
2220
|
if (g.length >= 2) {
|
|
2221
|
-
const
|
|
2222
|
-
if (o.value.has(`${
|
|
2223
|
-
const Ge = `${
|
|
2221
|
+
const X = g[0], Y = g[1];
|
|
2222
|
+
if (o.value.has(`${X}.${Y}`) || n.value.addRecord(w, Y, { ...i.value }), g.length > 3) {
|
|
2223
|
+
const Ge = `${X}.${Y}`, Dr = g.slice(2);
|
|
2224
2224
|
let Ar = Ge;
|
|
2225
2225
|
for (let Qe = 0; Qe < Dr.length - 1; Qe++)
|
|
2226
2226
|
if (Ar += `.${Dr[Qe]}`, !o.value.has(Ar)) {
|
|
@@ -2260,7 +2260,7 @@ function zs(t) {
|
|
|
2260
2260
|
}), v = {
|
|
2261
2261
|
operations: m,
|
|
2262
2262
|
currentIndex: A,
|
|
2263
|
-
undoRedoState:
|
|
2263
|
+
undoRedoState: Z,
|
|
2264
2264
|
canUndo: T,
|
|
2265
2265
|
canRedo: rt,
|
|
2266
2266
|
undoCount: lt,
|
|
@@ -2347,12 +2347,12 @@ function It(t) {
|
|
|
2347
2347
|
t[hr]);
|
|
2348
2348
|
}
|
|
2349
2349
|
var pr = "@@__IMMUTABLE_KEYED__@@";
|
|
2350
|
-
function
|
|
2350
|
+
function W(t) {
|
|
2351
2351
|
return !!(t && // @ts-expect-error: maybeKeyed is typed as `{}`, need to change in 6.0 to `maybeKeyed && typeof maybeKeyed === 'object' && IS_KEYED_SYMBOL in maybeKeyed`
|
|
2352
2352
|
t[pr]);
|
|
2353
2353
|
}
|
|
2354
2354
|
function fn(t) {
|
|
2355
|
-
return
|
|
2355
|
+
return W(t) || It(t);
|
|
2356
2356
|
}
|
|
2357
2357
|
var $o = "@@__IMMUTABLE_ITERABLE__@@";
|
|
2358
2358
|
function yt(t) {
|
|
@@ -2363,10 +2363,10 @@ var nt = function(t) {
|
|
|
2363
2363
|
return yt(t) ? t : ft(t);
|
|
2364
2364
|
}, Et = /* @__PURE__ */ (function(t) {
|
|
2365
2365
|
function e(r) {
|
|
2366
|
-
return
|
|
2366
|
+
return W(r) ? r : Ut(r);
|
|
2367
2367
|
}
|
|
2368
2368
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
|
|
2369
|
-
})(nt),
|
|
2369
|
+
})(nt), Jt = /* @__PURE__ */ (function(t) {
|
|
2370
2370
|
function e(r) {
|
|
2371
2371
|
return It(r) ? r : kt(r);
|
|
2372
2372
|
}
|
|
@@ -2378,9 +2378,9 @@ var nt = function(t) {
|
|
|
2378
2378
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
|
|
2379
2379
|
})(nt);
|
|
2380
2380
|
nt.Keyed = Et;
|
|
2381
|
-
nt.Indexed =
|
|
2381
|
+
nt.Indexed = Jt;
|
|
2382
2382
|
nt.Set = de;
|
|
2383
|
-
var ve = 0, _t = 1, gt = 2,
|
|
2383
|
+
var ve = 0, _t = 1, gt = 2, Zr = typeof Symbol == "function" && Symbol.iterator, Mo = "@@iterator", mr = Zr || Mo, x = function(t) {
|
|
2384
2384
|
this.next = t;
|
|
2385
2385
|
};
|
|
2386
2386
|
x.prototype.toString = function() {
|
|
@@ -2413,13 +2413,13 @@ function Yn(t) {
|
|
|
2413
2413
|
return !!(t && // @ts-expect-error: maybeIterator is typed as `{}`
|
|
2414
2414
|
typeof t.next == "function");
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function Xr(t) {
|
|
2417
2417
|
var e = wr(t);
|
|
2418
2418
|
return e && e.call(t);
|
|
2419
2419
|
}
|
|
2420
2420
|
function wr(t) {
|
|
2421
2421
|
var e = t && // @ts-expect-error: maybeIterator is typed as `{}`
|
|
2422
|
-
(
|
|
2422
|
+
(Zr && t[Zr] || // @ts-expect-error: maybeIterator is typed as `{}`
|
|
2423
2423
|
t[Mo]);
|
|
2424
2424
|
if (typeof e == "function")
|
|
2425
2425
|
return e;
|
|
@@ -2459,7 +2459,7 @@ function Po() {
|
|
|
2459
2459
|
function br(t, e, r) {
|
|
2460
2460
|
return (t === 0 && !Vo(t) || r !== void 0 && t <= -r) && (e === void 0 || r !== void 0 && e >= r);
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2462
|
+
function Be(t, e) {
|
|
2463
2463
|
return qo(t, e, 0);
|
|
2464
2464
|
}
|
|
2465
2465
|
function Sr(t, e) {
|
|
@@ -2472,12 +2472,12 @@ function Vo(t) {
|
|
|
2472
2472
|
return t < 0 || t === 0 && 1 / t === -1 / 0;
|
|
2473
2473
|
}
|
|
2474
2474
|
var Lo = "@@__IMMUTABLE_RECORD__@@";
|
|
2475
|
-
function
|
|
2475
|
+
function Gt(t) {
|
|
2476
2476
|
return !!(t && // @ts-expect-error: maybeRecord is typed as `{}`, need to change in 6.0 to `maybeRecord && typeof maybeRecord === 'object' && IS_RECORD_SYMBOL in maybeRecord`
|
|
2477
2477
|
t[Lo]);
|
|
2478
2478
|
}
|
|
2479
2479
|
function Ct(t) {
|
|
2480
|
-
return yt(t) ||
|
|
2480
|
+
return yt(t) || Gt(t);
|
|
2481
2481
|
}
|
|
2482
2482
|
var Vt = "@@__IMMUTABLE_ORDERED__@@";
|
|
2483
2483
|
function Rt(t) {
|
|
@@ -2540,14 +2540,14 @@ var ft = /* @__PURE__ */ (function(t) {
|
|
|
2540
2540
|
}, e;
|
|
2541
2541
|
})(nt), Ut = /* @__PURE__ */ (function(t) {
|
|
2542
2542
|
function e(r) {
|
|
2543
|
-
return r == null ? vn().toKeyedSeq() : yt(r) ?
|
|
2543
|
+
return r == null ? vn().toKeyedSeq() : yt(r) ? W(r) ? r.toSeq() : r.fromEntrySeq() : Gt(r) ? r.toSeq() : yn(r);
|
|
2544
2544
|
}
|
|
2545
2545
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toKeyedSeq = function() {
|
|
2546
2546
|
return this;
|
|
2547
2547
|
}, e;
|
|
2548
2548
|
})(ft), kt = /* @__PURE__ */ (function(t) {
|
|
2549
2549
|
function e(r) {
|
|
2550
|
-
return r == null ? vn() : yt(r) ?
|
|
2550
|
+
return r == null ? vn() : yt(r) ? W(r) ? r.entrySeq() : r.toIndexedSeq() : Gt(r) ? r.toSeq().entrySeq() : Bo(r);
|
|
2551
2551
|
}
|
|
2552
2552
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
|
|
2553
2553
|
return e(arguments);
|
|
@@ -2629,7 +2629,7 @@ var js = /* @__PURE__ */ (function(t) {
|
|
|
2629
2629
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.__iterateUncached = function(r, n) {
|
|
2630
2630
|
if (n)
|
|
2631
2631
|
return this.cacheResult().__iterate(r, n);
|
|
2632
|
-
var o = this._collection, i =
|
|
2632
|
+
var o = this._collection, i = Xr(o), s = 0;
|
|
2633
2633
|
if (Yn(i))
|
|
2634
2634
|
for (var a; !(a = i.next()).done && r(a.value, s++, this) !== !1; )
|
|
2635
2635
|
;
|
|
@@ -2637,7 +2637,7 @@ var js = /* @__PURE__ */ (function(t) {
|
|
|
2637
2637
|
}, e.prototype.__iteratorUncached = function(r, n) {
|
|
2638
2638
|
if (n)
|
|
2639
2639
|
return this.cacheResult().__iterator(r, n);
|
|
2640
|
-
var o = this._collection, i =
|
|
2640
|
+
var o = this._collection, i = Xr(o);
|
|
2641
2641
|
if (!Yn(i))
|
|
2642
2642
|
return new x(ut);
|
|
2643
2643
|
var s = 0;
|
|
@@ -2646,9 +2646,9 @@ var js = /* @__PURE__ */ (function(t) {
|
|
|
2646
2646
|
return a.done ? a : K(r, s++, a.value);
|
|
2647
2647
|
});
|
|
2648
2648
|
}, e;
|
|
2649
|
-
})(kt),
|
|
2649
|
+
})(kt), Zn;
|
|
2650
2650
|
function vn() {
|
|
2651
|
-
return
|
|
2651
|
+
return Zn || (Zn = new ae([]));
|
|
2652
2652
|
}
|
|
2653
2653
|
function yn(t) {
|
|
2654
2654
|
var e = _n(t);
|
|
@@ -2660,7 +2660,7 @@ function yn(t) {
|
|
|
2660
2660
|
"Expected Array or collection object of [k, v] entries, or keyed object: " + t
|
|
2661
2661
|
);
|
|
2662
2662
|
}
|
|
2663
|
-
function
|
|
2663
|
+
function Bo(t) {
|
|
2664
2664
|
var e = _n(t);
|
|
2665
2665
|
if (e)
|
|
2666
2666
|
return e;
|
|
@@ -2681,7 +2681,7 @@ function xs(t) {
|
|
|
2681
2681
|
function _n(t) {
|
|
2682
2682
|
return Fo(t) ? new ae(t) : To(t) ? new js(t) : void 0;
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function We() {
|
|
2685
2685
|
return this.__ensureOwner();
|
|
2686
2686
|
}
|
|
2687
2687
|
function Ke() {
|
|
@@ -2698,12 +2698,12 @@ function Ir(t) {
|
|
|
2698
2698
|
var $s = Object.prototype.valueOf;
|
|
2699
2699
|
function ht(t) {
|
|
2700
2700
|
if (t == null)
|
|
2701
|
-
return
|
|
2701
|
+
return Xn(t);
|
|
2702
2702
|
if (typeof t.hashCode == "function")
|
|
2703
2703
|
return Ir(t.hashCode(t));
|
|
2704
2704
|
var e = Ls(t);
|
|
2705
2705
|
if (e == null)
|
|
2706
|
-
return
|
|
2706
|
+
return Xn(e);
|
|
2707
2707
|
switch (typeof e) {
|
|
2708
2708
|
case "boolean":
|
|
2709
2709
|
return e ? 1108378657 : 1108378656;
|
|
@@ -2722,7 +2722,7 @@ function ht(t) {
|
|
|
2722
2722
|
throw new Error("Value type " + typeof e + " cannot be hashed.");
|
|
2723
2723
|
}
|
|
2724
2724
|
}
|
|
2725
|
-
function
|
|
2725
|
+
function Xn(t) {
|
|
2726
2726
|
return t === null ? 1108378658 : (
|
|
2727
2727
|
/* undefined */
|
|
2728
2728
|
1108378659
|
|
@@ -2747,13 +2747,13 @@ function en(t) {
|
|
|
2747
2747
|
}
|
|
2748
2748
|
function Ps(t) {
|
|
2749
2749
|
var e = ro[t];
|
|
2750
|
-
return e !== void 0 || (e =
|
|
2750
|
+
return e !== void 0 || (e = Wo(), ro[t] = e), e;
|
|
2751
2751
|
}
|
|
2752
2752
|
function qs(t) {
|
|
2753
2753
|
var e;
|
|
2754
2754
|
if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e = Vs(t), e !== void 0)))
|
|
2755
2755
|
return e;
|
|
2756
|
-
if (e =
|
|
2756
|
+
if (e = Wo(), rn)
|
|
2757
2757
|
nn.set(t, e);
|
|
2758
2758
|
else {
|
|
2759
2759
|
if (to !== void 0 && to(t) === !1)
|
|
@@ -2802,7 +2802,7 @@ function Ls(t) {
|
|
|
2802
2802
|
t.valueOf(t)
|
|
2803
2803
|
) : t;
|
|
2804
2804
|
}
|
|
2805
|
-
function
|
|
2805
|
+
function Wo() {
|
|
2806
2806
|
var t = ++$r;
|
|
2807
2807
|
return $r & 1073741824 && ($r = 0), t;
|
|
2808
2808
|
}
|
|
@@ -3062,7 +3062,7 @@ function Yo(t, e, r, n) {
|
|
|
3062
3062
|
});
|
|
3063
3063
|
}, o;
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function Bs(t, e, r) {
|
|
3066
3066
|
var n = ge().asMutable();
|
|
3067
3067
|
return t.__iterate(function(o, i) {
|
|
3068
3068
|
n.update(e.call(r, o, i, t), 0, function(s) {
|
|
@@ -3070,8 +3070,8 @@ function Ws(t, e, r) {
|
|
|
3070
3070
|
});
|
|
3071
3071
|
}), n.asImmutable();
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3074
|
-
var n =
|
|
3073
|
+
function Ws(t, e, r) {
|
|
3074
|
+
var n = W(t), o = (Rt(t) ? Mt() : ge()).asMutable();
|
|
3075
3075
|
t.__iterate(function(s, a) {
|
|
3076
3076
|
o.update(
|
|
3077
3077
|
e.call(r, s, a, t),
|
|
@@ -3086,7 +3086,7 @@ function Bs(t, e, r) {
|
|
|
3086
3086
|
}).asImmutable();
|
|
3087
3087
|
}
|
|
3088
3088
|
function Ks(t, e, r) {
|
|
3089
|
-
var n =
|
|
3089
|
+
var n = W(t), o = [[], []];
|
|
3090
3090
|
t.__iterate(function(s, a) {
|
|
3091
3091
|
o[e.call(r, s, a, t) ? 1 : 0].push(
|
|
3092
3092
|
n ? [a, s] : s
|
|
@@ -3103,7 +3103,7 @@ function mn(t, e, r, n) {
|
|
|
3103
3103
|
return t;
|
|
3104
3104
|
if (typeof o > "u" && (e < 0 || r < 0))
|
|
3105
3105
|
return mn(t.toSeq().cacheResult(), e, r, n);
|
|
3106
|
-
var i =
|
|
3106
|
+
var i = Be(e, o), s = Sr(r, o), a = s - i, u;
|
|
3107
3107
|
a === a && (u = a < 0 ? 0 : a);
|
|
3108
3108
|
var c = Nt(t);
|
|
3109
3109
|
return c.size = u === 0 ? u : t.size && u || void 0, !n && pn(t) && u >= 0 && (c.get = function(l, f) {
|
|
@@ -3163,7 +3163,7 @@ function Hs(t, e, r) {
|
|
|
3163
3163
|
});
|
|
3164
3164
|
}, n;
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function Zo(t, e, r, n) {
|
|
3167
3167
|
var o = Nt(t);
|
|
3168
3168
|
return o.__iterateUncached = function(i, s) {
|
|
3169
3169
|
var a = this;
|
|
@@ -3207,7 +3207,7 @@ var Js = /* @__PURE__ */ (function(t) {
|
|
|
3207
3207
|
if (this._wrappedIterables.length !== 0) {
|
|
3208
3208
|
if (n)
|
|
3209
3209
|
return this.cacheResult().__iterate(r, n);
|
|
3210
|
-
for (var o = 0, i =
|
|
3210
|
+
for (var o = 0, i = W(this), s = i ? gt : _t, a = this._wrappedIterables[o].__iterator(
|
|
3211
3211
|
s,
|
|
3212
3212
|
n
|
|
3213
3213
|
), u = !0, c = 0; u; ) {
|
|
@@ -3248,8 +3248,8 @@ var Js = /* @__PURE__ */ (function(t) {
|
|
|
3248
3248
|
}, e;
|
|
3249
3249
|
})(ft);
|
|
3250
3250
|
function Gs(t, e) {
|
|
3251
|
-
var r =
|
|
3252
|
-
return yt(i) ? r && (i = Et(i)) : i = r ? yn(i) :
|
|
3251
|
+
var r = W(t), n = [t].concat(e).map(function(i) {
|
|
3252
|
+
return yt(i) ? r && (i = Et(i)) : i = r ? yn(i) : Bo(Array.isArray(i) ? i : [i]), i;
|
|
3253
3253
|
}).filter(function(i) {
|
|
3254
3254
|
return i.size !== 0;
|
|
3255
3255
|
});
|
|
@@ -3257,12 +3257,12 @@ function Gs(t, e) {
|
|
|
3257
3257
|
return t;
|
|
3258
3258
|
if (n.length === 1) {
|
|
3259
3259
|
var o = n[0];
|
|
3260
|
-
if (o === t || r &&
|
|
3260
|
+
if (o === t || r && W(o) || It(t) && It(o))
|
|
3261
3261
|
return o;
|
|
3262
3262
|
}
|
|
3263
3263
|
return new Js(n);
|
|
3264
3264
|
}
|
|
3265
|
-
function
|
|
3265
|
+
function Xo(t, e, r) {
|
|
3266
3266
|
var n = Nt(t);
|
|
3267
3267
|
return n.__iterateUncached = function(o, i) {
|
|
3268
3268
|
if (i)
|
|
@@ -3320,7 +3320,7 @@ function Ys(t, e) {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
function ue(t, e, r) {
|
|
3322
3322
|
e || (e = ti);
|
|
3323
|
-
var n =
|
|
3323
|
+
var n = W(t), o = 0, i = t.toSeq().map(function(s, a) {
|
|
3324
3324
|
return [a, s, o++, r ? r(s, a, t) : s];
|
|
3325
3325
|
}).valueSeq().toArray();
|
|
3326
3326
|
return i.sort(function(s, a) {
|
|
@@ -3361,7 +3361,7 @@ function er(t, e, r, n) {
|
|
|
3361
3361
|
}, o.__iteratorUncached = function(s, a) {
|
|
3362
3362
|
var u = r.map(
|
|
3363
3363
|
function(f) {
|
|
3364
|
-
return f = nt(f),
|
|
3364
|
+
return f = nt(f), Xr(a ? f.reverse() : f);
|
|
3365
3365
|
}
|
|
3366
3366
|
), c = 0, l = !1;
|
|
3367
3367
|
return new x(function() {
|
|
@@ -3393,11 +3393,11 @@ function oo(t) {
|
|
|
3393
3393
|
throw new TypeError("Expected [K, V] tuple: " + t);
|
|
3394
3394
|
}
|
|
3395
3395
|
function wn(t) {
|
|
3396
|
-
return
|
|
3396
|
+
return W(t) ? Et : It(t) ? Jt : de;
|
|
3397
3397
|
}
|
|
3398
3398
|
function Nt(t) {
|
|
3399
3399
|
return Object.create(
|
|
3400
|
-
(
|
|
3400
|
+
(W(t) ? Ut : It(t) ? kt : _e).prototype
|
|
3401
3401
|
);
|
|
3402
3402
|
}
|
|
3403
3403
|
function bn() {
|
|
@@ -3448,7 +3448,7 @@ function oi(t, e, r) {
|
|
|
3448
3448
|
var i = Et(e[o]);
|
|
3449
3449
|
i.size !== 0 && n.push(i);
|
|
3450
3450
|
}
|
|
3451
|
-
return n.length === 0 ? t : t.toSeq().size === 0 && !t.__ownerID && n.length === 1 ?
|
|
3451
|
+
return n.length === 0 ? t : t.toSeq().size === 0 && !t.__ownerID && n.length === 1 ? Gt(t) ? t : t.constructor(n[0]) : t.withMutations(function(s) {
|
|
3452
3452
|
for (var a = r ? function(c, l) {
|
|
3453
3453
|
ei(
|
|
3454
3454
|
s,
|
|
@@ -3464,9 +3464,9 @@ function oi(t, e, r) {
|
|
|
3464
3464
|
n[u].forEach(a);
|
|
3465
3465
|
});
|
|
3466
3466
|
}
|
|
3467
|
-
var
|
|
3468
|
-
function
|
|
3469
|
-
if (!t || typeof t != "object" ||
|
|
3467
|
+
var Zs = Object.prototype.toString;
|
|
3468
|
+
function Xs(t) {
|
|
3469
|
+
if (!t || typeof t != "object" || Zs.call(t) !== "[object Object]")
|
|
3470
3470
|
return !1;
|
|
3471
3471
|
var e = Object.getPrototypeOf(t);
|
|
3472
3472
|
if (e === null)
|
|
@@ -3476,7 +3476,7 @@ function Zs(t) {
|
|
|
3476
3476
|
return r === e;
|
|
3477
3477
|
}
|
|
3478
3478
|
function Lt(t) {
|
|
3479
|
-
return typeof t == "object" && (Ct(t) || Array.isArray(t) ||
|
|
3479
|
+
return typeof t == "object" && (Ct(t) || Array.isArray(t) || Xs(t));
|
|
3480
3480
|
}
|
|
3481
3481
|
function Dt(t, e) {
|
|
3482
3482
|
e = e || 0;
|
|
@@ -3502,7 +3502,7 @@ function In(t, e, r) {
|
|
|
3502
3502
|
);
|
|
3503
3503
|
if (Ct(t))
|
|
3504
3504
|
return typeof r == "function" && t.mergeWith ? t.mergeWith.apply(t, [r].concat(e)) : t.merge ? t.merge.apply(t, e) : t.concat.apply(t, e);
|
|
3505
|
-
for (var n = Array.isArray(t), o = t, i = n ?
|
|
3505
|
+
for (var n = Array.isArray(t), o = t, i = n ? Jt : Et, s = n ? function(u) {
|
|
3506
3506
|
o === t && (o = dr(o)), o.push(u);
|
|
3507
3507
|
} : function(u, c) {
|
|
3508
3508
|
var l = ye.call(o, c), f = l && r ? r(o[c], u, c) : u;
|
|
@@ -3519,7 +3519,7 @@ function ta(t) {
|
|
|
3519
3519
|
}
|
|
3520
3520
|
function ea(t, e) {
|
|
3521
3521
|
var r = ft(t), n = ft(e);
|
|
3522
|
-
return It(r) === It(n) &&
|
|
3522
|
+
return It(r) === It(n) && W(r) === W(n);
|
|
3523
3523
|
}
|
|
3524
3524
|
function ii() {
|
|
3525
3525
|
for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
|
|
@@ -3628,28 +3628,28 @@ var ge = /* @__PURE__ */ (function(t) {
|
|
|
3628
3628
|
}, e;
|
|
3629
3629
|
})(Et);
|
|
3630
3630
|
ge.isMap = Rn;
|
|
3631
|
-
var
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3631
|
+
var B = ge.prototype;
|
|
3632
|
+
B[ai] = !0;
|
|
3633
|
+
B[Fe] = B.remove;
|
|
3634
|
+
B.removeAll = B.deleteAll;
|
|
3635
|
+
B.setIn = kn;
|
|
3636
|
+
B.removeIn = B.deleteIn = xn;
|
|
3637
|
+
B.update = Dn;
|
|
3638
|
+
B.updateIn = An;
|
|
3639
|
+
B.merge = B.concat = ri;
|
|
3640
|
+
B.mergeWith = ni;
|
|
3641
|
+
B.mergeDeep = ii;
|
|
3642
|
+
B.mergeDeepWith = si;
|
|
3643
|
+
B.mergeIn = On;
|
|
3644
|
+
B.mergeDeepIn = En;
|
|
3645
|
+
B.withMutations = He;
|
|
3646
|
+
B.wasAltered = zn;
|
|
3647
|
+
B.asImmutable = We;
|
|
3648
|
+
B["@@transducer/init"] = B.asMutable = Ke;
|
|
3649
|
+
B["@@transducer/step"] = function(t, e) {
|
|
3650
3650
|
return t.set(e[0], e[1]);
|
|
3651
3651
|
};
|
|
3652
|
-
|
|
3652
|
+
B["@@transducer/result"] = function(t) {
|
|
3653
3653
|
return t.asImmutable();
|
|
3654
3654
|
};
|
|
3655
3655
|
var $e = function(t, e) {
|
|
@@ -3842,7 +3842,7 @@ function so(t, e) {
|
|
|
3842
3842
|
};
|
|
3843
3843
|
}
|
|
3844
3844
|
function Cn(t, e, r, n) {
|
|
3845
|
-
var o = Object.create(
|
|
3845
|
+
var o = Object.create(B);
|
|
3846
3846
|
return o.size = t, o._root = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
|
|
3847
3847
|
}
|
|
3848
3848
|
var ao;
|
|
@@ -4124,7 +4124,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4124
4124
|
var o = this.size;
|
|
4125
4125
|
return br(r, n, o) ? this : Tt(
|
|
4126
4126
|
this,
|
|
4127
|
-
|
|
4127
|
+
Be(r, o),
|
|
4128
4128
|
Sr(n, o)
|
|
4129
4129
|
);
|
|
4130
4130
|
}, e.prototype.__iterator = function(r, n) {
|
|
@@ -4148,7 +4148,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4148
4148
|
this.__hash
|
|
4149
4149
|
) : this.size === 0 ? ir() : (this.__ownerID = r, this.__altered = !1, this);
|
|
4150
4150
|
}, e;
|
|
4151
|
-
})(
|
|
4151
|
+
})(Jt);
|
|
4152
4152
|
Or.isList = di;
|
|
4153
4153
|
var Q = Or.prototype;
|
|
4154
4154
|
Q[pi] = !0;
|
|
@@ -4162,7 +4162,7 @@ Q.mergeIn = On;
|
|
|
4162
4162
|
Q.mergeDeepIn = En;
|
|
4163
4163
|
Q.withMutations = He;
|
|
4164
4164
|
Q.wasAltered = zn;
|
|
4165
|
-
Q.asImmutable =
|
|
4165
|
+
Q.asImmutable = We;
|
|
4166
4166
|
Q["@@transducer/init"] = Q.asMutable = Ke;
|
|
4167
4167
|
Q["@@transducer/step"] = function(t, e) {
|
|
4168
4168
|
return t.push(e);
|
|
@@ -4473,7 +4473,7 @@ var Mn = /* @__PURE__ */ (function(t) {
|
|
|
4473
4473
|
}, e.prototype.slice = function(r, n) {
|
|
4474
4474
|
if (br(r, n, this.size))
|
|
4475
4475
|
return this;
|
|
4476
|
-
var o =
|
|
4476
|
+
var o = Be(r, this.size), i = Sr(n, this.size);
|
|
4477
4477
|
if (i !== this.size)
|
|
4478
4478
|
return t.prototype.slice.call(this, r, n);
|
|
4479
4479
|
for (var s = this.size - o, a = this._head; o--; )
|
|
@@ -4505,7 +4505,7 @@ var Mn = /* @__PURE__ */ (function(t) {
|
|
|
4505
4505
|
return ut();
|
|
4506
4506
|
});
|
|
4507
4507
|
}, e;
|
|
4508
|
-
})(
|
|
4508
|
+
})(Jt);
|
|
4509
4509
|
Mn.isStack = sn;
|
|
4510
4510
|
var ct = Mn.prototype;
|
|
4511
4511
|
ct[_i] = !0;
|
|
@@ -4514,7 +4514,7 @@ ct.unshift = ct.push;
|
|
|
4514
4514
|
ct.unshiftAll = ct.pushAll;
|
|
4515
4515
|
ct.withMutations = He;
|
|
4516
4516
|
ct.wasAltered = zn;
|
|
4517
|
-
ct.asImmutable =
|
|
4517
|
+
ct.asImmutable = We;
|
|
4518
4518
|
ct["@@transducer/init"] = ct.asMutable = Ke;
|
|
4519
4519
|
ct["@@transducer/step"] = function(t, e) {
|
|
4520
4520
|
return t.unshift(e);
|
|
@@ -4563,7 +4563,7 @@ function gi(t, e) {
|
|
|
4563
4563
|
t.size !== void 0 && e.size !== void 0 && t.size !== e.size || // @ts-expect-error __hash exists on Collection
|
|
4564
4564
|
t.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
|
|
4565
4565
|
e.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
|
|
4566
|
-
t.__hash !== e.__hash ||
|
|
4566
|
+
t.__hash !== e.__hash || W(t) !== W(e) || It(t) !== It(e) || // @ts-expect-error Range extends Collection, which implements [Symbol.iterator], so it is valid
|
|
4567
4567
|
Rt(t) !== Rt(e))
|
|
4568
4568
|
return !1;
|
|
4569
4569
|
if (t.size === 0 && e.size === 0)
|
|
@@ -4628,7 +4628,7 @@ var ma = /* @__PURE__ */ (function(t) {
|
|
|
4628
4628
|
var n = (r - this._start) / this._step;
|
|
4629
4629
|
return n >= 0 && n < this.size && n === Math.floor(n);
|
|
4630
4630
|
}, e.prototype.slice = function(r, n) {
|
|
4631
|
-
return br(r, n, this.size) ? this : (r =
|
|
4631
|
+
return br(r, n, this.size) ? this : (r = Be(r, this.size), n = Sr(n, this.size), n <= r ? new e(0, 0) : new e(
|
|
4632
4632
|
this.get(r, this._end),
|
|
4633
4633
|
this.get(n, this._end),
|
|
4634
4634
|
this._step
|
|
@@ -4769,7 +4769,7 @@ et[mi] = !0;
|
|
|
4769
4769
|
et[Fe] = et.remove;
|
|
4770
4770
|
et.merge = et.concat = et.union;
|
|
4771
4771
|
et.withMutations = He;
|
|
4772
|
-
et.asImmutable =
|
|
4772
|
+
et.asImmutable = We;
|
|
4773
4773
|
et["@@transducer/init"] = et.asMutable = Ke;
|
|
4774
4774
|
et["@@transducer/step"] = function(t, e) {
|
|
4775
4775
|
return t.add(e);
|
|
@@ -4820,7 +4820,7 @@ function vr(t) {
|
|
|
4820
4820
|
return t;
|
|
4821
4821
|
t = ft(t);
|
|
4822
4822
|
}
|
|
4823
|
-
if (
|
|
4823
|
+
if (W(t)) {
|
|
4824
4824
|
var e = {};
|
|
4825
4825
|
return t.__iterate(function(n, o) {
|
|
4826
4826
|
e[o] = vr(n);
|
|
@@ -4834,7 +4834,7 @@ function vr(t) {
|
|
|
4834
4834
|
function Sa(t) {
|
|
4835
4835
|
if (t.size === 1 / 0)
|
|
4836
4836
|
return 0;
|
|
4837
|
-
var e = Rt(t), r =
|
|
4837
|
+
var e = Rt(t), r = W(t), n = e ? 1 : 0;
|
|
4838
4838
|
return t.__iterate(r ? e ? function(o, i) {
|
|
4839
4839
|
n = 31 * n + mo(ht(o), ht(i)) | 0;
|
|
4840
4840
|
} : function(o, i) {
|
|
@@ -4851,18 +4851,18 @@ function Ia(t, e) {
|
|
|
4851
4851
|
function mo(t, e) {
|
|
4852
4852
|
return t ^ e + 2654435769 + (t << 6) + (t >> 2) | 0;
|
|
4853
4853
|
}
|
|
4854
|
-
function
|
|
4854
|
+
function Qt(t, e) {
|
|
4855
4855
|
var r = function(n) {
|
|
4856
4856
|
t.prototype[n] = e[n];
|
|
4857
4857
|
};
|
|
4858
4858
|
return Object.keys(e).forEach(r), Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(e).forEach(r), t;
|
|
4859
4859
|
}
|
|
4860
4860
|
nt.Iterator = x;
|
|
4861
|
-
|
|
4861
|
+
Qt(nt, {
|
|
4862
4862
|
// ### Conversion to other types
|
|
4863
4863
|
toArray: function() {
|
|
4864
4864
|
pt(this.size);
|
|
4865
|
-
var t = new Array(this.size || 0), e =
|
|
4865
|
+
var t = new Array(this.size || 0), e = W(this), r = 0;
|
|
4866
4866
|
return this.__iterate(function(n, o) {
|
|
4867
4867
|
t[r++] = e ? [o, n] : n;
|
|
4868
4868
|
}), t;
|
|
@@ -4884,22 +4884,22 @@ Gt(nt, {
|
|
|
4884
4884
|
return Mt(this.toKeyedSeq());
|
|
4885
4885
|
},
|
|
4886
4886
|
toOrderedSet: function() {
|
|
4887
|
-
return Ve(
|
|
4887
|
+
return Ve(W(this) ? this.valueSeq() : this);
|
|
4888
4888
|
},
|
|
4889
4889
|
toSet: function() {
|
|
4890
|
-
return kr(
|
|
4890
|
+
return kr(W(this) ? this.valueSeq() : this);
|
|
4891
4891
|
},
|
|
4892
4892
|
toSetSeq: function() {
|
|
4893
4893
|
return new Ho(this);
|
|
4894
4894
|
},
|
|
4895
4895
|
toSeq: function() {
|
|
4896
|
-
return It(this) ? this.toIndexedSeq() :
|
|
4896
|
+
return It(this) ? this.toIndexedSeq() : W(this) ? this.toKeyedSeq() : this.toSetSeq();
|
|
4897
4897
|
},
|
|
4898
4898
|
toStack: function() {
|
|
4899
|
-
return Mn(
|
|
4899
|
+
return Mn(W(this) ? this.valueSeq() : this);
|
|
4900
4900
|
},
|
|
4901
4901
|
toList: function() {
|
|
4902
|
-
return Or(
|
|
4902
|
+
return Or(W(this) ? this.valueSeq() : this);
|
|
4903
4903
|
},
|
|
4904
4904
|
// ### Common JavaScript methods and properties
|
|
4905
4905
|
toString: function() {
|
|
@@ -5010,7 +5010,7 @@ Gt(nt, {
|
|
|
5010
5010
|
);
|
|
5011
5011
|
},
|
|
5012
5012
|
countBy: function(t, e) {
|
|
5013
|
-
return
|
|
5013
|
+
return Bs(this, t, e);
|
|
5014
5014
|
},
|
|
5015
5015
|
equals: function(t) {
|
|
5016
5016
|
return gi(this, t);
|
|
@@ -5054,7 +5054,7 @@ Gt(nt, {
|
|
|
5054
5054
|
return V(this, Qs(this, t, e));
|
|
5055
5055
|
},
|
|
5056
5056
|
flatten: function(t) {
|
|
5057
|
-
return V(this,
|
|
5057
|
+
return V(this, Xo(this, t, !0));
|
|
5058
5058
|
},
|
|
5059
5059
|
fromEntrySeq: function() {
|
|
5060
5060
|
return new Jo(this);
|
|
@@ -5066,7 +5066,7 @@ Gt(nt, {
|
|
|
5066
5066
|
},
|
|
5067
5067
|
getIn: Si,
|
|
5068
5068
|
groupBy: function(t, e) {
|
|
5069
|
-
return
|
|
5069
|
+
return Ws(this, t, e);
|
|
5070
5070
|
},
|
|
5071
5071
|
has: function(t) {
|
|
5072
5072
|
return this.get(t, j) !== j;
|
|
@@ -5123,7 +5123,7 @@ Gt(nt, {
|
|
|
5123
5123
|
return t === 0 ? this : this.slice(0, -Math.max(0, t));
|
|
5124
5124
|
},
|
|
5125
5125
|
skipWhile: function(t, e) {
|
|
5126
|
-
return V(this,
|
|
5126
|
+
return V(this, Zo(this, t, e, !0));
|
|
5127
5127
|
},
|
|
5128
5128
|
skipUntil: function(t, e) {
|
|
5129
5129
|
return this.skipWhile(qr(t), e);
|
|
@@ -5167,7 +5167,7 @@ it.inspect = it.toSource = function() {
|
|
|
5167
5167
|
};
|
|
5168
5168
|
it.chain = it.flatMap;
|
|
5169
5169
|
it.contains = it.includes;
|
|
5170
|
-
|
|
5170
|
+
Qt(Et, {
|
|
5171
5171
|
// ### More sequential methods
|
|
5172
5172
|
flip: function() {
|
|
5173
5173
|
return V(this, Go(this));
|
|
@@ -5198,7 +5198,7 @@ Je.toJSON = Ii;
|
|
|
5198
5198
|
Je.__toStringMapper = function(t, e) {
|
|
5199
5199
|
return Te(e) + ": " + Te(t);
|
|
5200
5200
|
};
|
|
5201
|
-
|
|
5201
|
+
Qt(Jt, {
|
|
5202
5202
|
// ### Conversion to other types
|
|
5203
5203
|
toKeyedSeq: function() {
|
|
5204
5204
|
return new Er(this, !1);
|
|
@@ -5229,7 +5229,7 @@ Gt(Ht, {
|
|
|
5229
5229
|
var r = arguments.length;
|
|
5230
5230
|
if (e = Math.max(e || 0, 0), r === 0 || r === 2 && !e)
|
|
5231
5231
|
return this;
|
|
5232
|
-
t =
|
|
5232
|
+
t = Be(t, t < 0 ? this.count() : this.size);
|
|
5233
5233
|
var n = this.slice(0, t);
|
|
5234
5234
|
return V(
|
|
5235
5235
|
this,
|
|
@@ -5245,7 +5245,7 @@ Gt(Ht, {
|
|
|
5245
5245
|
return this.get(0, t);
|
|
5246
5246
|
},
|
|
5247
5247
|
flatten: function(t) {
|
|
5248
|
-
return V(this,
|
|
5248
|
+
return V(this, Xo(this, t, !1));
|
|
5249
5249
|
},
|
|
5250
5250
|
get: function(t, e) {
|
|
5251
5251
|
return t = qt(this, t), t < 0 || this.size === 1 / 0 || this.size !== void 0 && t > this.size ? e : this.find(function(r, n) {
|
|
@@ -5269,7 +5269,7 @@ Gt(Ht, {
|
|
|
5269
5269
|
return this.get(-1, t);
|
|
5270
5270
|
},
|
|
5271
5271
|
skipWhile: function(t, e) {
|
|
5272
|
-
return V(this,
|
|
5272
|
+
return V(this, Zo(this, t, e, !1));
|
|
5273
5273
|
},
|
|
5274
5274
|
zip: function() {
|
|
5275
5275
|
var t = [this].concat(Dt(arguments));
|
|
@@ -5284,10 +5284,10 @@ Gt(Ht, {
|
|
|
5284
5284
|
return e[0] = this, V(this, er(this, t, e));
|
|
5285
5285
|
}
|
|
5286
5286
|
});
|
|
5287
|
-
var we =
|
|
5287
|
+
var we = Jt.prototype;
|
|
5288
5288
|
we[hr] = !0;
|
|
5289
5289
|
we[Vt] = !0;
|
|
5290
|
-
|
|
5290
|
+
Qt(de, {
|
|
5291
5291
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
5292
5292
|
get: function(t, e) {
|
|
5293
5293
|
return this.has(t) ? t : e;
|
|
@@ -5304,9 +5304,9 @@ var he = de.prototype;
|
|
|
5304
5304
|
he.has = it.includes;
|
|
5305
5305
|
he.contains = he.includes;
|
|
5306
5306
|
he.keys = he.values;
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5307
|
+
Qt(Ut, Je);
|
|
5308
|
+
Qt(kt, we);
|
|
5309
|
+
Qt(_e, he);
|
|
5310
5310
|
function wo() {
|
|
5311
5311
|
return Dt(arguments);
|
|
5312
5312
|
}
|
|
@@ -5331,15 +5331,15 @@ var Ve = /* @__PURE__ */ (function(t) {
|
|
|
5331
5331
|
}, e;
|
|
5332
5332
|
})(kr);
|
|
5333
5333
|
Ve.isOrderedSet = Ei;
|
|
5334
|
-
var
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5334
|
+
var Yt = Ve.prototype;
|
|
5335
|
+
Yt[Vt] = !0;
|
|
5336
|
+
Yt.zip = we.zip;
|
|
5337
|
+
Yt.zipWith = we.zipWith;
|
|
5338
|
+
Yt.zipAll = we.zipAll;
|
|
5339
|
+
Yt.__empty = an;
|
|
5340
|
+
Yt.__make = Oi;
|
|
5341
5341
|
function Oi(t, e) {
|
|
5342
|
-
var r = Object.create(
|
|
5342
|
+
var r = Object.create(Yt);
|
|
5343
5343
|
return r.size = t ? t.size : 0, r._map = t, r.__ownerID = e, r;
|
|
5344
5344
|
}
|
|
5345
5345
|
var bo;
|
|
@@ -5347,7 +5347,7 @@ function an() {
|
|
|
5347
5347
|
return bo || (bo = Oi(Ee()));
|
|
5348
5348
|
}
|
|
5349
5349
|
function Ea(t) {
|
|
5350
|
-
if (
|
|
5350
|
+
if (Gt(t))
|
|
5351
5351
|
throw new Error(
|
|
5352
5352
|
"Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
|
|
5353
5353
|
);
|
|
@@ -5394,7 +5394,7 @@ tt.prototype.toString = function() {
|
|
|
5394
5394
|
return t + " }";
|
|
5395
5395
|
};
|
|
5396
5396
|
tt.prototype.equals = function(t) {
|
|
5397
|
-
return this === t ||
|
|
5397
|
+
return this === t || Gt(t) && pe(this).equals(pe(t));
|
|
5398
5398
|
};
|
|
5399
5399
|
tt.prototype.hashCode = function() {
|
|
5400
5400
|
return pe(this).hashCode();
|
|
@@ -5450,7 +5450,7 @@ tt.prototype.__ensureOwner = function(t) {
|
|
|
5450
5450
|
var e = this._values.__ensureOwner(t);
|
|
5451
5451
|
return t ? Pn(this, e, t) : (this.__ownerID = t, this._values = e, this);
|
|
5452
5452
|
};
|
|
5453
|
-
tt.isRecord =
|
|
5453
|
+
tt.isRecord = Gt;
|
|
5454
5454
|
tt.getDescriptiveName = qn;
|
|
5455
5455
|
var F = tt.prototype;
|
|
5456
5456
|
F[Lo] = !0;
|
|
@@ -5469,7 +5469,7 @@ F.update = Dn;
|
|
|
5469
5469
|
F.updateIn = An;
|
|
5470
5470
|
F.withMutations = He;
|
|
5471
5471
|
F.asMutable = Ke;
|
|
5472
|
-
F.asImmutable =
|
|
5472
|
+
F.asImmutable = We;
|
|
5473
5473
|
F[mr] = F.entries;
|
|
5474
5474
|
F.toJSON = F.toObject = it.toObject;
|
|
5475
5475
|
F.inspect = F.toSource = function() {
|
|
@@ -5508,7 +5508,7 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
5508
5508
|
const Da = () => {
|
|
5509
5509
|
};
|
|
5510
5510
|
function Aa(...t) {
|
|
5511
|
-
if (t.length !== 1) return
|
|
5511
|
+
if (t.length !== 1) return Kt(...t);
|
|
5512
5512
|
const e = t[0];
|
|
5513
5513
|
return typeof e == "function" ? gr(ln(() => ({
|
|
5514
5514
|
get: e,
|
|
@@ -5570,7 +5570,7 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
5570
5570
|
const ja = () => {
|
|
5571
5571
|
};
|
|
5572
5572
|
function xa(...t) {
|
|
5573
|
-
if (t.length !== 1) return
|
|
5573
|
+
if (t.length !== 1) return Kt(...t);
|
|
5574
5574
|
const e = t[0];
|
|
5575
5575
|
return typeof e == "function" ? gr(ln(() => ({
|
|
5576
5576
|
get: e,
|
|
@@ -5580,7 +5580,7 @@ function xa(...t) {
|
|
|
5580
5580
|
function Fr(t) {
|
|
5581
5581
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
5582
5582
|
}
|
|
5583
|
-
const
|
|
5583
|
+
const Br = /* @__PURE__ */ new WeakMap();
|
|
5584
5584
|
function $a(t, e = !1) {
|
|
5585
5585
|
const r = Ue(e);
|
|
5586
5586
|
let n = "";
|
|
@@ -5588,7 +5588,7 @@ function $a(t, e = !1) {
|
|
|
5588
5588
|
const a = Fr(St(s));
|
|
5589
5589
|
if (a) {
|
|
5590
5590
|
const u = a;
|
|
5591
|
-
if (
|
|
5591
|
+
if (Br.get(u) || Br.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
|
|
5592
5592
|
if (r.value) return u.style.overflow = "hidden";
|
|
5593
5593
|
}
|
|
5594
5594
|
}, { immediate: !0 });
|
|
@@ -5597,7 +5597,7 @@ function $a(t, e = !1) {
|
|
|
5597
5597
|
!s || r.value || (s.style.overflow = "hidden", r.value = !0);
|
|
5598
5598
|
}, i = () => {
|
|
5599
5599
|
const s = Fr(St(t));
|
|
5600
|
-
!s || !r.value || (s.style.overflow = n,
|
|
5600
|
+
!s || !r.value || (s.style.overflow = n, Br.delete(s), r.value = !1);
|
|
5601
5601
|
};
|
|
5602
5602
|
return Na(i), N({
|
|
5603
5603
|
get() {
|
|
@@ -5652,7 +5652,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5652
5652
|
}, s = (f) => {
|
|
5653
5653
|
const h = {};
|
|
5654
5654
|
for (const [d, y] of Object.entries(f))
|
|
5655
|
-
["component", "fieldtype", "mode"].includes(d) || (h[d] = y);
|
|
5655
|
+
["component", "fieldtype", "hidden", "mode"].includes(d) || (h[d] = y);
|
|
5656
5656
|
if ("columns" in f) {
|
|
5657
5657
|
const d = f.rows;
|
|
5658
5658
|
(!d || Array.isArray(d) && d.length === 0) && (h.rows = n.value[f.fieldname] || []);
|
|
@@ -5678,7 +5678,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5678
5678
|
return (f, h) => (M(), U("form", Ta, [
|
|
5679
5679
|
(M(!0), U(ne, null, Ne(t.schema, (d, y) => (M(), U(ne, { key: y }, [
|
|
5680
5680
|
"schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (M(), U("div", Pa, [
|
|
5681
|
-
d.label && !("collapsible" in d) ? (M(), U("h4", qa, At(d.label), 1)) :
|
|
5681
|
+
d.label && !("collapsible" in d) ? (M(), U("h4", qa, At(d.label), 1)) : Wt("", !0),
|
|
5682
5682
|
(M(), ar(Ln(d.component ?? "AForm"), {
|
|
5683
5683
|
data: o.value[d.fieldname],
|
|
5684
5684
|
mode: u(d),
|
|
@@ -5687,7 +5687,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5687
5687
|
collapsible: d.collapsible,
|
|
5688
5688
|
"onUpdate:data": (m) => i(d.fieldname, m)
|
|
5689
5689
|
}, null, 40, ["data", "mode", "schema", "label", "collapsible", "onUpdate:data"]))
|
|
5690
|
-
])) : (M(), ar(Ln(d.component), xi({
|
|
5690
|
+
])) : d.hidden ? Wt("", !0) : (M(), ar(Ln(d.component), xi({
|
|
5691
5691
|
key: 1,
|
|
5692
5692
|
modelValue: l.value[y].value,
|
|
5693
5693
|
"onUpdate:modelValue": (m) => l.value[y].value = m,
|
|
@@ -5698,7 +5698,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5698
5698
|
], 64))), 128))
|
|
5699
5699
|
]));
|
|
5700
5700
|
}
|
|
5701
|
-
}), La = /* @__PURE__ */ Ca(Va, [["__scopeId", "data-v-
|
|
5701
|
+
}), La = /* @__PURE__ */ Ca(Va, [["__scopeId", "data-v-121930fc"]]), Ua = { class: "tabs" }, Fa = { tabindex: "0" }, Ba = { tabindex: "0" }, Wa = /* @__PURE__ */ Le({
|
|
5702
5702
|
__name: "SheetNav",
|
|
5703
5703
|
props: {
|
|
5704
5704
|
breadcrumbs: { default: () => [] }
|
|
@@ -5727,7 +5727,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5727
5727
|
}, [
|
|
5728
5728
|
$("a", Fa, [
|
|
5729
5729
|
$("div", {
|
|
5730
|
-
class:
|
|
5730
|
+
class: ee(i.value)
|
|
5731
5731
|
}, "×", 2)
|
|
5732
5732
|
])
|
|
5733
5733
|
], 32),
|
|
@@ -5758,10 +5758,10 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5758
5758
|
})
|
|
5759
5759
|
], 36),
|
|
5760
5760
|
$("li", {
|
|
5761
|
-
class:
|
|
5761
|
+
class: ee(["searchtab", { "search-active": r.value }]),
|
|
5762
5762
|
style: Rr({ display: e.value ? "block" : "none" })
|
|
5763
5763
|
}, [
|
|
5764
|
-
$("a",
|
|
5764
|
+
$("a", Ba, [
|
|
5765
5765
|
sr((M(), U("svg", {
|
|
5766
5766
|
class: "icon search-icon",
|
|
5767
5767
|
role: "button",
|
|
@@ -5780,7 +5780,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5780
5780
|
}, null, -1),
|
|
5781
5781
|
$("path", { d: "M21 21l-4.35-4.35" }, null, -1)
|
|
5782
5782
|
])], 544)), [
|
|
5783
|
-
[
|
|
5783
|
+
[Wr, !r.value]
|
|
5784
5784
|
]),
|
|
5785
5785
|
sr($("input", {
|
|
5786
5786
|
ref: "searchinput",
|
|
@@ -5796,7 +5796,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5796
5796
|
be(a, ["escape"])
|
|
5797
5797
|
]
|
|
5798
5798
|
}, null, 544), [
|
|
5799
|
-
[
|
|
5799
|
+
[Wr, r.value],
|
|
5800
5800
|
[Eo, n.value]
|
|
5801
5801
|
])
|
|
5802
5802
|
])
|
|
@@ -5819,7 +5819,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5819
5819
|
]);
|
|
5820
5820
|
};
|
|
5821
5821
|
}
|
|
5822
|
-
}), ki = /* @__PURE__ */ Ao(
|
|
5822
|
+
}), ki = /* @__PURE__ */ Ao(Wa, [["__scopeId", "data-v-eb5bcbb6"]]), Ka = {
|
|
5823
5823
|
key: 1,
|
|
5824
5824
|
class: "loading"
|
|
5825
5825
|
}, Ha = {
|
|
@@ -5944,13 +5944,13 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5944
5944
|
if (m.value === "records" && h.value)
|
|
5945
5945
|
v.push(
|
|
5946
5946
|
{ title: "Home", to: "/" },
|
|
5947
|
-
{ title:
|
|
5947
|
+
{ title: Z(h.value), to: `/${h.value}` }
|
|
5948
5948
|
);
|
|
5949
5949
|
else if (m.value === "record" && h.value) {
|
|
5950
5950
|
const p = d.value ? `/${h.value}/${d.value}` : c.value?.fullPath ?? "";
|
|
5951
5951
|
v.push(
|
|
5952
5952
|
{ title: "Home", to: "/" },
|
|
5953
|
-
{ title:
|
|
5953
|
+
{ title: Z(h.value), to: `/${h.value}` },
|
|
5954
5954
|
{ title: y.value ? "New Record" : "Edit Record", to: p }
|
|
5955
5955
|
);
|
|
5956
5956
|
}
|
|
@@ -5971,20 +5971,20 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5971
5971
|
}
|
|
5972
5972
|
];
|
|
5973
5973
|
return h.value && (p.push({
|
|
5974
|
-
title: `View ${
|
|
5974
|
+
title: `View ${Z(h.value)} Records`,
|
|
5975
5975
|
description: `Navigate to ${h.value} list`,
|
|
5976
5976
|
action: () => {
|
|
5977
5977
|
O({ view: "records", doctype: h.value });
|
|
5978
5978
|
}
|
|
5979
5979
|
}), p.push({
|
|
5980
|
-
title: `Create New ${
|
|
5980
|
+
title: `Create New ${Z(h.value)}`,
|
|
5981
5981
|
description: `Create a new ${h.value} record`,
|
|
5982
5982
|
action: () => {
|
|
5983
5983
|
S();
|
|
5984
5984
|
}
|
|
5985
5985
|
})), o.forEach((w) => {
|
|
5986
5986
|
p.push({
|
|
5987
|
-
title: `View ${
|
|
5987
|
+
title: `View ${Z(w)}`,
|
|
5988
5988
|
description: `Navigate to ${w} list`,
|
|
5989
5989
|
action: () => {
|
|
5990
5990
|
O({ view: "records", doctype: w });
|
|
@@ -5995,7 +5995,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
5995
5995
|
) : p;
|
|
5996
5996
|
}, Ot = (v) => {
|
|
5997
5997
|
v.action(), a.value = !1;
|
|
5998
|
-
},
|
|
5998
|
+
}, Z = (v) => v.split("-").map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" "), mt = (v) => i.value ? i.value.getRecordIds(v).length : 0, O = async (v) => {
|
|
5999
5999
|
n("navigate", v), r.routeAdapter ? await r.routeAdapter.navigate(v) : v.view === "doctypes" ? await l.value?.push("/") : v.view === "records" && v.doctype ? await l.value?.push(`/${v.doctype}`) : v.view === "record" && v.doctype && v.recordId && await l.value?.push(`/${v.doctype}/${v.recordId}`);
|
|
6000
6000
|
}, jt = async (v) => {
|
|
6001
6001
|
await O({ view: "records", doctype: v });
|
|
@@ -6010,7 +6010,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
6010
6010
|
const v = o.map((p) => ({
|
|
6011
6011
|
id: p,
|
|
6012
6012
|
doctype: p,
|
|
6013
|
-
display_name:
|
|
6013
|
+
display_name: Z(p),
|
|
6014
6014
|
record_count: mt(p),
|
|
6015
6015
|
actions: "View Records"
|
|
6016
6016
|
}));
|
|
@@ -6065,7 +6065,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
6065
6065
|
const v = k(), p = P(), w = r.recordIdField || "id";
|
|
6066
6066
|
if (p.length === 0)
|
|
6067
6067
|
return [];
|
|
6068
|
-
const g = p.find((Y) => Y.fieldname === w), D = p.filter((Y) => Y.fieldname !== w), R = g ? [g, ...D] : p,
|
|
6068
|
+
const g = p.find((Y) => Y.fieldname === w), D = p.filter((Y) => Y.fieldname !== w), R = g ? [g, ...D] : p, X = v.map((Y) => ({
|
|
6069
6069
|
...Y,
|
|
6070
6070
|
// Use the canonical ID field for navigation
|
|
6071
6071
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
@@ -6098,7 +6098,7 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
6098
6098
|
view: "list",
|
|
6099
6099
|
fullWidth: !0
|
|
6100
6100
|
},
|
|
6101
|
-
rows:
|
|
6101
|
+
rows: X
|
|
6102
6102
|
}
|
|
6103
6103
|
];
|
|
6104
6104
|
}, J = () => {
|
|
@@ -6159,8 +6159,8 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
6159
6159
|
if (isNaN(g)) return null;
|
|
6160
6160
|
const R = k()[g];
|
|
6161
6161
|
if (!R) return null;
|
|
6162
|
-
const
|
|
6163
|
-
return R[
|
|
6162
|
+
const X = r.recordIdField || "id";
|
|
6163
|
+
return R[X] || R.id || null;
|
|
6164
6164
|
}, I = async (v) => {
|
|
6165
6165
|
const p = v.target;
|
|
6166
6166
|
p.getAttribute("data-action") === "create" && await S();
|
|
@@ -6168,17 +6168,17 @@ const Ta = { class: "aform" }, Pa = {
|
|
|
6168
6168
|
if (g) {
|
|
6169
6169
|
const D = g.textContent?.trim(), R = g.closest("tr");
|
|
6170
6170
|
if (D === "View Records" && R) {
|
|
6171
|
-
const
|
|
6172
|
-
if (
|
|
6173
|
-
const Ge =
|
|
6171
|
+
const X = R.querySelectorAll("td");
|
|
6172
|
+
if (X.length > 0) {
|
|
6173
|
+
const Ge = X[1].textContent?.trim();
|
|
6174
6174
|
Ge && await jt(Ge);
|
|
6175
6175
|
}
|
|
6176
6176
|
} else if (D?.includes("Edit") && R) {
|
|
6177
|
-
const
|
|
6178
|
-
|
|
6177
|
+
const X = _(R);
|
|
6178
|
+
X && await q(X);
|
|
6179
6179
|
} else if (D?.includes("Delete") && R) {
|
|
6180
|
-
const
|
|
6181
|
-
|
|
6180
|
+
const X = _(R);
|
|
6181
|
+
X && await st(X);
|
|
6182
6182
|
}
|
|
6183
6183
|
}
|
|
6184
6184
|
}, E = () => {
|