@stonecrop/desktop 0.11.3 → 0.11.5
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 +422 -416
- 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
|
|
2
|
-
const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { key: 1 }, qi = ["onClick"], Li = { class: "dropdown-container" }, Vi = { class: "dropdown" }, Ui = ["onClick"], Bi = ["href"], Fi = { class: "dropdown-item" }, Wi = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as qe, ref as x, onMounted as yr, openBlock as T, createElementBlock as U, normalizeClass as ir, createElementVNode as M, Fragment as re, renderList as xe, toDisplayString as At, createCommentVNode as te, withDirectives as sr, vShow as Wr, useTemplateRef as So, computed as C, watch as ot, nextTick as ne, createBlock as ar, Teleport as zi, createVNode as ee, Transition as xi, withCtx as Re, withModifiers as Io, vModelText as Eo, renderSlot as zr, createTextVNode as ur, toRaw as Oo, isRef as oe, isReactive as _r, toRef as Wt, hasInjectionContext as Hr, inject as Ne, getCurrentInstance as ko, reactive as Do, markRaw as Se, effectScope as Ri, getCurrentScope as un, onScopeDispose as cn, toRefs as Ln, provide as Kr, shallowRef as Le, toValue as St, readonly as gr, customRef as ln, unref as rr, useModel as Ni, watchEffect as Ci, resolveDynamicComponent as Vn, mergeProps as ji, mergeModels as Un, resolveComponent as $i, withKeys as we, normalizeStyle as xr } from "vue";
|
|
2
|
+
const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { key: 1 }, qi = ["onClick"], Li = { class: "dropdown-container" }, Vi = { class: "dropdown" }, Ui = ["onClick"], Bi = ["href"], Fi = { class: "dropdown-item" }, Wi = /* @__PURE__ */ qe({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
5
5
|
elements: { default: () => [] }
|
|
@@ -19,12 +19,12 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
|
|
|
19
19
|
}, l = () => {
|
|
20
20
|
s.value = !1, a.value = !1, clearTimeout(i.value), o.value = !1;
|
|
21
21
|
}, f = (d) => {
|
|
22
|
-
const
|
|
23
|
-
u(),
|
|
24
|
-
}, h = (d,
|
|
25
|
-
r("actionClick",
|
|
22
|
+
const y = !n.value[d];
|
|
23
|
+
u(), y && (n.value[d] = !0);
|
|
24
|
+
}, h = (d, y) => {
|
|
25
|
+
r("actionClick", y, d);
|
|
26
26
|
};
|
|
27
|
-
return (d,
|
|
27
|
+
return (d, y) => (T(), U("div", {
|
|
28
28
|
class: ir([{ "open-set": o.value, "hovered-and-closed": a.value }, "action-set collapse"]),
|
|
29
29
|
onMouseover: c,
|
|
30
30
|
onMouseleave: l
|
|
@@ -32,8 +32,8 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
|
|
|
32
32
|
M("div", Mi, [
|
|
33
33
|
M("div", {
|
|
34
34
|
id: "chevron",
|
|
35
|
-
onClick:
|
|
36
|
-
}, [...
|
|
35
|
+
onClick: y[0] || (y[0] = (g) => a.value = !a.value)
|
|
36
|
+
}, [...y[1] || (y[1] = [
|
|
37
37
|
M("svg", {
|
|
38
38
|
id: "Layer_1",
|
|
39
39
|
class: "leftBar",
|
|
@@ -62,8 +62,8 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
|
|
|
62
62
|
], -1)
|
|
63
63
|
])])
|
|
64
64
|
]),
|
|
65
|
-
|
|
66
|
-
(T(!0), U(re, null,
|
|
65
|
+
y[2] || (y[2] = M("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
66
|
+
(T(!0), U(re, null, xe(t.elements, (g, D) => (T(), U("div", {
|
|
67
67
|
key: g.label,
|
|
68
68
|
class: "action-element"
|
|
69
69
|
}, [
|
|
@@ -80,7 +80,7 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
|
|
|
80
80
|
}, At(g.label), 9, qi),
|
|
81
81
|
sr(M("div", Li, [
|
|
82
82
|
M("div", Vi, [
|
|
83
|
-
(T(!0), U(re, null,
|
|
83
|
+
(T(!0), U(re, null, xe(g.actions, (z, et) => (T(), U("div", {
|
|
84
84
|
key: z.label
|
|
85
85
|
}, [
|
|
86
86
|
z.action != null ? (T(), U("button", {
|
|
@@ -113,7 +113,7 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
|
|
|
113
113
|
}, Gi = ["onClick", "onMouseover"], Qi = { class: "result-title" }, Yi = { class: "result-content" }, Xi = {
|
|
114
114
|
key: 1,
|
|
115
115
|
class: "command-palette-no-results"
|
|
116
|
-
}, xo = /* @__PURE__ */
|
|
116
|
+
}, xo = /* @__PURE__ */ qe({
|
|
117
117
|
__name: "CommandPalette",
|
|
118
118
|
props: {
|
|
119
119
|
search: { type: Function },
|
|
@@ -154,7 +154,7 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
|
|
|
154
154
|
};
|
|
155
155
|
return (l, f) => (T(), ar(zi, { to: "body" }, [
|
|
156
156
|
ee(xi, { name: "fade" }, {
|
|
157
|
-
default:
|
|
157
|
+
default: Re(() => [
|
|
158
158
|
t.isOpen ? (T(), U("div", {
|
|
159
159
|
key: 0,
|
|
160
160
|
class: "command-palette-overlay",
|
|
@@ -179,11 +179,11 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
|
|
|
179
179
|
])
|
|
180
180
|
]),
|
|
181
181
|
s.value.length ? (T(), U("div", Ji, [
|
|
182
|
-
(T(!0), U(re, null,
|
|
182
|
+
(T(!0), U(re, null, xe(s.value, (h, d) => (T(), U("div", {
|
|
183
183
|
key: d,
|
|
184
184
|
class: ir(["command-palette-result", { selected: d === o.value }]),
|
|
185
|
-
onClick: (
|
|
186
|
-
onMouseover: (
|
|
185
|
+
onClick: (y) => c(h),
|
|
186
|
+
onMouseover: (y) => o.value = d
|
|
187
187
|
}, [
|
|
188
188
|
M("div", Qi, [
|
|
189
189
|
zr(l.$slots, "title", { result: h })
|
|
@@ -293,8 +293,8 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
293
293
|
c ? d = S : c == !1 && !O._hotUpdating && (Array.isArray(d) ? d.push(S) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
294
294
|
});
|
|
295
295
|
let c, l, f = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), d;
|
|
296
|
-
const
|
|
297
|
-
!i && !
|
|
296
|
+
const y = n.state.value[t];
|
|
297
|
+
!i && !y && (process.env.NODE_ENV === "production" || !o) && (n.state.value[t] = {});
|
|
298
298
|
const g = x({});
|
|
299
299
|
let D;
|
|
300
300
|
function z(S) {
|
|
@@ -394,7 +394,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
394
394
|
for (const S in q) {
|
|
395
395
|
const b = q[S];
|
|
396
396
|
if (oe(b) && !Wn(b) || _r(b))
|
|
397
|
-
process.env.NODE_ENV !== "production" && o ? g.value[S] = Wt(q, S) : i || (
|
|
397
|
+
process.env.NODE_ENV !== "production" && o ? g.value[S] = Wt(q, S) : i || (y && es(b) && (oe(b) ? b.value = y[S] : Gr(b, y[S])), n.state.value[t][S] = b), process.env.NODE_ENV !== "production" && X.state.push(S);
|
|
398
398
|
else if (typeof b == "function") {
|
|
399
399
|
const R = process.env.NODE_ENV !== "production" && o ? b : Ot(b, S);
|
|
400
400
|
q[S] = R, process.env.NODE_ENV !== "production" && (X.actions[S] = b), a.actions[S] = b;
|
|
@@ -472,7 +472,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
472
472
|
})));
|
|
473
473
|
}), process.env.NODE_ENV !== "production" && O.$state && typeof O.$state == "object" && typeof O.$state.constructor == "function" && !O.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
474
474
|
state: () => new MyClass()
|
|
475
|
-
Found in store "${O.$id}".`),
|
|
475
|
+
Found in store "${O.$id}".`), y && i && r.hydrate && r.hydrate(O.$state, y), c = !0, l = !0, O;
|
|
476
476
|
}
|
|
477
477
|
// @__NO_SIDE_EFFECTS__
|
|
478
478
|
function rs(t, e, r) {
|
|
@@ -483,7 +483,7 @@ function rs(t, e, r) {
|
|
|
483
483
|
const u = Hr();
|
|
484
484
|
if (s = // in test mode, ignore the argument provided as we can always retrieve a
|
|
485
485
|
// pinia instance with getActivePinia()
|
|
486
|
-
(process.env.NODE_ENV === "test" && Ft && Ft._testing ? null : s) || (u ?
|
|
486
|
+
(process.env.NODE_ENV === "test" && Ft && Ft._testing ? null : s) || (u ? Ne(Jr, null) : null), s && cr(s), process.env.NODE_ENV !== "production" && !Ft)
|
|
487
487
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
488
488
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
489
489
|
This will fail in production.`);
|
|
@@ -610,7 +610,7 @@ function Kn(...t) {
|
|
|
610
610
|
return [
|
|
611
611
|
(n = (o = r.value) === null || o === void 0 ? void 0 : o.map((i) => ys(i))) !== null && n !== void 0 ? n : [lr].filter((i) => i != null),
|
|
612
612
|
Nr(St(r.value ? t[1] : t[0])),
|
|
613
|
-
Nr(
|
|
613
|
+
Nr(rr(r.value ? t[2] : t[1])),
|
|
614
614
|
St(r.value ? t[3] : t[2])
|
|
615
615
|
];
|
|
616
616
|
}, ([n, o, i, s], a, u) => {
|
|
@@ -621,9 +621,9 @@ function Kn(...t) {
|
|
|
621
621
|
});
|
|
622
622
|
}, { flush: "post" });
|
|
623
623
|
}
|
|
624
|
-
const
|
|
624
|
+
const Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Qe = "__vueuse_ssr_handlers__", _s = /* @__PURE__ */ gs();
|
|
625
625
|
function gs() {
|
|
626
|
-
return
|
|
626
|
+
return Qe in Ge || (Ge[Qe] = Ge[Qe] || {}), Ge[Qe];
|
|
627
627
|
}
|
|
628
628
|
function ms(t, e) {
|
|
629
629
|
return _s[t] || e;
|
|
@@ -669,7 +669,7 @@ function Ss(t, e, r, n = {}) {
|
|
|
669
669
|
var o;
|
|
670
670
|
const { flush: i = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = lr, eventFilter: h, onError: d = (k) => {
|
|
671
671
|
console.error(k);
|
|
672
|
-
}, initOnMounted:
|
|
672
|
+
}, initOnMounted: y } = n, g = (l ? Le : x)(e), D = C(() => St(t));
|
|
673
673
|
if (!r) try {
|
|
674
674
|
r = ms("getDefaultStorage", () => lr?.localStorage)();
|
|
675
675
|
} catch (k) {
|
|
@@ -684,11 +684,11 @@ function Ss(t, e, r, n = {}) {
|
|
|
684
684
|
ot(D, () => R(), { flush: i });
|
|
685
685
|
let mt = !1;
|
|
686
686
|
const O = (k) => {
|
|
687
|
-
|
|
687
|
+
y && !mt || R(k);
|
|
688
688
|
}, Ct = (k) => {
|
|
689
|
-
|
|
689
|
+
y && !mt || J(k);
|
|
690
690
|
};
|
|
691
|
-
f && a && (r instanceof Storage ? Kn(f, "storage", O, { passive: !0 }) : Kn(f, Jn, Ct)),
|
|
691
|
+
f && a && (r instanceof Storage ? Kn(f, "storage", O, { passive: !0 }) : Kn(f, Jn, Ct)), y ? ds(() => {
|
|
692
692
|
mt = !0, R();
|
|
693
693
|
}) : R();
|
|
694
694
|
function q(k, P) {
|
|
@@ -758,7 +758,7 @@ function Is(t, e, r = {}) {
|
|
|
758
758
|
function Cr() {
|
|
759
759
|
return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function Ye(t) {
|
|
762
762
|
const e = {
|
|
763
763
|
type: t.type,
|
|
764
764
|
clientId: t.clientId,
|
|
@@ -832,13 +832,13 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
832
832
|
operations: []
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function y(_) {
|
|
836
836
|
if (!o.value || i.value.length === 0)
|
|
837
837
|
return null;
|
|
838
838
|
const I = i.value.pop(), E = I.operations;
|
|
839
839
|
if (E.length === 0)
|
|
840
840
|
return i.value.length === 0 && (o.value = !1), null;
|
|
841
|
-
const K = I.id,
|
|
841
|
+
const K = I.id, v = E.every((w) => w.reversible), p = {
|
|
842
842
|
id: K,
|
|
843
843
|
type: "batch",
|
|
844
844
|
path: "",
|
|
@@ -849,8 +849,8 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
849
849
|
doctype: E[0]?.doctype || "",
|
|
850
850
|
timestamp: /* @__PURE__ */ new Date(),
|
|
851
851
|
source: "user",
|
|
852
|
-
reversible:
|
|
853
|
-
irreversibleReason:
|
|
852
|
+
reversible: v,
|
|
853
|
+
irreversibleReason: v ? void 0 : "Contains irreversible operations",
|
|
854
854
|
descendantOperationIds: E.map((w) => w.id),
|
|
855
855
|
metadata: { description: _ }
|
|
856
856
|
};
|
|
@@ -869,8 +869,8 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
869
869
|
try {
|
|
870
870
|
if (I.type === "batch" && I.descendantOperationIds)
|
|
871
871
|
for (let E = I.descendantOperationIds.length - 1; E >= 0; E--) {
|
|
872
|
-
const K = I.descendantOperationIds[E],
|
|
873
|
-
|
|
872
|
+
const K = I.descendantOperationIds[E], v = e.value.find((p) => p.id === K);
|
|
873
|
+
v && et(v, _);
|
|
874
874
|
}
|
|
875
875
|
else
|
|
876
876
|
et(I, _);
|
|
@@ -885,7 +885,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
885
885
|
try {
|
|
886
886
|
if (I.type === "batch" && I.descendantOperationIds)
|
|
887
887
|
for (const E of I.descendantOperationIds) {
|
|
888
|
-
const K = e.value.find((
|
|
888
|
+
const K = e.value.find((v) => v.id === E);
|
|
889
889
|
K && st(K, _);
|
|
890
890
|
}
|
|
891
891
|
else
|
|
@@ -923,7 +923,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
923
923
|
const E = e.value.find((K) => K.id === _);
|
|
924
924
|
E && (E.reversible = !1, E.irreversibleReason = I);
|
|
925
925
|
}
|
|
926
|
-
function Ct(_, I, E, K = "success",
|
|
926
|
+
function Ct(_, I, E, K = "success", v) {
|
|
927
927
|
const p = {
|
|
928
928
|
type: "action",
|
|
929
929
|
path: E && E.length > 0 ? `${_}.${E[0]}` : _,
|
|
@@ -937,7 +937,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
937
937
|
actionName: I,
|
|
938
938
|
actionRecordIds: E,
|
|
939
939
|
actionResult: K,
|
|
940
|
-
actionError:
|
|
940
|
+
actionError: v
|
|
941
941
|
};
|
|
942
942
|
return h(p);
|
|
943
943
|
}
|
|
@@ -958,7 +958,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
958
958
|
clientId: n.value,
|
|
959
959
|
timestamp: /* @__PURE__ */ new Date()
|
|
960
960
|
};
|
|
961
|
-
q.postMessage(
|
|
961
|
+
q.postMessage(Ye(I));
|
|
962
962
|
}
|
|
963
963
|
function R(_, I) {
|
|
964
964
|
if (!q) return;
|
|
@@ -968,7 +968,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
968
968
|
clientId: n.value,
|
|
969
969
|
timestamp: /* @__PURE__ */ new Date()
|
|
970
970
|
};
|
|
971
|
-
q.postMessage(
|
|
971
|
+
q.postMessage(Ye(E));
|
|
972
972
|
}
|
|
973
973
|
function J(_) {
|
|
974
974
|
if (!q) return;
|
|
@@ -978,7 +978,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
978
978
|
clientId: n.value,
|
|
979
979
|
timestamp: /* @__PURE__ */ new Date()
|
|
980
980
|
};
|
|
981
|
-
q.postMessage(
|
|
981
|
+
q.postMessage(Ye(I));
|
|
982
982
|
}
|
|
983
983
|
function k(_) {
|
|
984
984
|
if (!q) return;
|
|
@@ -988,7 +988,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
988
988
|
clientId: n.value,
|
|
989
989
|
timestamp: /* @__PURE__ */ new Date()
|
|
990
990
|
};
|
|
991
|
-
q.postMessage(
|
|
991
|
+
q.postMessage(Ye(I));
|
|
992
992
|
}
|
|
993
993
|
const P = Is("stonecrop-operations", null, {
|
|
994
994
|
serializer: {
|
|
@@ -1053,7 +1053,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
1053
1053
|
configure: f,
|
|
1054
1054
|
addOperation: h,
|
|
1055
1055
|
startBatch: d,
|
|
1056
|
-
commitBatch:
|
|
1056
|
+
commitBatch: y,
|
|
1057
1057
|
cancelBatch: g,
|
|
1058
1058
|
undo: D,
|
|
1059
1059
|
redo: z,
|
|
@@ -1064,7 +1064,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
|
|
|
1064
1064
|
logAction: Ct
|
|
1065
1065
|
};
|
|
1066
1066
|
});
|
|
1067
|
-
class
|
|
1067
|
+
let Os = class nr {
|
|
1068
1068
|
/**
|
|
1069
1069
|
* The root FieldTriggerEngine instance
|
|
1070
1070
|
*/
|
|
@@ -1085,9 +1085,9 @@ class De {
|
|
|
1085
1085
|
* @param options - Configuration options for the field trigger engine
|
|
1086
1086
|
*/
|
|
1087
1087
|
constructor(e = {}) {
|
|
1088
|
-
if (
|
|
1089
|
-
return
|
|
1090
|
-
|
|
1088
|
+
if (nr._root)
|
|
1089
|
+
return nr._root;
|
|
1090
|
+
nr._root = this, this.options = {
|
|
1091
1091
|
defaultTimeout: e.defaultTimeout ?? 5e3,
|
|
1092
1092
|
debug: e.debug ?? !1,
|
|
1093
1093
|
enableRollback: e.enableRollback ?? !0,
|
|
@@ -1211,9 +1211,9 @@ class De {
|
|
|
1211
1211
|
} catch (g) {
|
|
1212
1212
|
console.error("[FieldTriggers] Rollback failed:", g);
|
|
1213
1213
|
}
|
|
1214
|
-
const d = performance.now() - s,
|
|
1215
|
-
if (
|
|
1216
|
-
for (const g of
|
|
1214
|
+
const d = performance.now() - s, y = a.filter((g) => !g.success && g.error != null);
|
|
1215
|
+
if (y.length > 0 && this.options.errorHandler)
|
|
1216
|
+
for (const g of y)
|
|
1217
1217
|
try {
|
|
1218
1218
|
g.error && this.options.errorHandler(g.error, e, g.action);
|
|
1219
1219
|
} catch (D) {
|
|
@@ -1407,9 +1407,9 @@ class De {
|
|
|
1407
1407
|
throw console.error("[FieldTriggers] Failed to restore snapshot:", n), n;
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
|
-
}
|
|
1410
|
+
};
|
|
1411
1411
|
function Yr(t) {
|
|
1412
|
-
return new
|
|
1412
|
+
return new Os(t);
|
|
1413
1413
|
}
|
|
1414
1414
|
function Gn() {
|
|
1415
1415
|
try {
|
|
@@ -1699,10 +1699,10 @@ class fr {
|
|
|
1699
1699
|
return e ? e.replace(/\[(\d+)\]/g, ".$1").split(".").filter((r) => r.length > 0) : [];
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function ks(t, e) {
|
|
1703
1703
|
return new fr(t, e, "", null);
|
|
1704
1704
|
}
|
|
1705
|
-
class
|
|
1705
|
+
class De {
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Singleton instance of Stonecrop. Only one Stonecrop instance can exist
|
|
1708
1708
|
* per application, ensuring consistent HST state and registry access.
|
|
@@ -1724,9 +1724,9 @@ class Ae {
|
|
|
1724
1724
|
* @param options - Options including the data client (can be set later via setClient)
|
|
1725
1725
|
*/
|
|
1726
1726
|
constructor(e, r, n) {
|
|
1727
|
-
if (
|
|
1728
|
-
return
|
|
1729
|
-
|
|
1727
|
+
if (De._root)
|
|
1728
|
+
return De._root;
|
|
1729
|
+
De._root = this, this.registry = e, this._operationLogConfig = r, this._client = n?.client, this.initializeHSTStore(), this.setupRegistrySync();
|
|
1730
1730
|
}
|
|
1731
1731
|
/**
|
|
1732
1732
|
* Set the data client for fetching doctype metadata and records.
|
|
@@ -1765,7 +1765,7 @@ class Ae {
|
|
|
1765
1765
|
const e = {};
|
|
1766
1766
|
Object.keys(this.registry.registry).forEach((r) => {
|
|
1767
1767
|
e[r] = {};
|
|
1768
|
-
}), this.hstStore =
|
|
1768
|
+
}), this.hstStore = ks(Do(e), "StonecropStore");
|
|
1769
1769
|
}
|
|
1770
1770
|
/**
|
|
1771
1771
|
* Setup automatic sync with Registry when doctypes are added
|
|
@@ -1869,7 +1869,7 @@ class Ae {
|
|
|
1869
1869
|
try {
|
|
1870
1870
|
const d = f.getAction(h);
|
|
1871
1871
|
if (!d) throw new Error(`Action "${h}" is not registered in FieldTriggerEngine`);
|
|
1872
|
-
const
|
|
1872
|
+
const y = {
|
|
1873
1873
|
path: `${e.slug}.${i?.[0] ?? ""}`,
|
|
1874
1874
|
fieldname: r,
|
|
1875
1875
|
beforeValue: void 0,
|
|
@@ -1879,7 +1879,7 @@ class Ae {
|
|
|
1879
1879
|
recordId: s,
|
|
1880
1880
|
timestamp: /* @__PURE__ */ new Date()
|
|
1881
1881
|
};
|
|
1882
|
-
d(
|
|
1882
|
+
d(y);
|
|
1883
1883
|
} catch (d) {
|
|
1884
1884
|
throw c = "failure", l = d instanceof Error ? d.message : "Unknown error", d;
|
|
1885
1885
|
}
|
|
@@ -2102,10 +2102,10 @@ function Qn(t, e) {
|
|
|
2102
2102
|
const r = new Error(t);
|
|
2103
2103
|
return r.code = e, r;
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2105
|
+
function Ds(t) {
|
|
2106
2106
|
t || (t = {});
|
|
2107
|
-
const e = t.registry ||
|
|
2108
|
-
|
|
2107
|
+
const e = t.registry || Ne("$registry"), r = Ne("$stonecrop"), n = x(), o = x(), i = x({}), s = x(), a = x(), u = x([]), c = x(!1), l = x(null), f = x(), h = C(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : n.value.isWorkflowReady(f.value, t.recordId).ready), d = C(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? [] : n.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), y = r || De._root;
|
|
2108
|
+
y && (n.value = y), t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
|
|
2109
2109
|
const g = x([]), D = x(-1), z = C(() => n.value?.getOperationLogStore().canUndo ?? !1), et = C(() => n.value?.getOperationLogStore().canRedo ?? !1), st = C(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = C(() => n.value?.getOperationLogStore().redoCount ?? 0), X = C(
|
|
2110
2110
|
() => n.value?.getOperationLogStore().undoRedoState ?? {
|
|
2111
2111
|
canUndo: !1,
|
|
@@ -2242,18 +2242,18 @@ function ks(t) {
|
|
|
2242
2242
|
if (m.length >= 2) {
|
|
2243
2243
|
const Z = m[0], Y = m[1];
|
|
2244
2244
|
if (o.value.has(`${Z}.${Y}`) || n.value.addRecord(w, Y, { ...i.value }), m.length > 3) {
|
|
2245
|
-
const
|
|
2246
|
-
let Ar =
|
|
2247
|
-
for (let
|
|
2248
|
-
if (Ar += `.${Dr[
|
|
2249
|
-
const Di = Dr[
|
|
2245
|
+
const Ke = `${Z}.${Y}`, Dr = m.slice(2);
|
|
2246
|
+
let Ar = Ke;
|
|
2247
|
+
for (let Je = 0; Je < Dr.length - 1; Je++)
|
|
2248
|
+
if (Ar += `.${Dr[Je]}`, !o.value.has(Ar)) {
|
|
2249
|
+
const Di = Dr[Je + 1], Ai = !isNaN(Number(Di));
|
|
2250
2250
|
o.value.set(Ar, Ai ? [] : {});
|
|
2251
2251
|
}
|
|
2252
2252
|
}
|
|
2253
2253
|
}
|
|
2254
2254
|
o.value.set(p.path, p.value);
|
|
2255
2255
|
const A = p.fieldname.split("."), N = { ...i.value };
|
|
2256
|
-
A.length === 1 ? N[A[0]] = p.value :
|
|
2256
|
+
A.length === 1 ? N[A[0]] = p.value : As(N, A, p.value), i.value = N;
|
|
2257
2257
|
} catch {
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
@@ -2279,7 +2279,7 @@ function ks(t) {
|
|
|
2279
2279
|
path: A
|
|
2280
2280
|
});
|
|
2281
2281
|
}
|
|
2282
|
-
}),
|
|
2282
|
+
}), v = {
|
|
2283
2283
|
operations: g,
|
|
2284
2284
|
currentIndex: D,
|
|
2285
2285
|
undoRedoState: X,
|
|
@@ -2301,7 +2301,7 @@ function ks(t) {
|
|
|
2301
2301
|
};
|
|
2302
2302
|
return t.doctype ? {
|
|
2303
2303
|
stonecrop: n,
|
|
2304
|
-
operationLog:
|
|
2304
|
+
operationLog: v,
|
|
2305
2305
|
provideHSTPath: jt,
|
|
2306
2306
|
handleHSTChange: at,
|
|
2307
2307
|
hstStore: o,
|
|
@@ -2318,7 +2318,7 @@ function ks(t) {
|
|
|
2318
2318
|
blockedLinks: d
|
|
2319
2319
|
} : !t.doctype && e?.router ? {
|
|
2320
2320
|
stonecrop: n,
|
|
2321
|
-
operationLog:
|
|
2321
|
+
operationLog: v,
|
|
2322
2322
|
provideHSTPath: jt,
|
|
2323
2323
|
handleHSTChange: at,
|
|
2324
2324
|
hstStore: o,
|
|
@@ -2335,7 +2335,7 @@ function ks(t) {
|
|
|
2335
2335
|
blockedLinks: d
|
|
2336
2336
|
} : {
|
|
2337
2337
|
stonecrop: n,
|
|
2338
|
-
operationLog:
|
|
2338
|
+
operationLog: v
|
|
2339
2339
|
};
|
|
2340
2340
|
}
|
|
2341
2341
|
function jr(t, e, r, n) {
|
|
@@ -2354,7 +2354,7 @@ function jr(t, e, r, n) {
|
|
|
2354
2354
|
{ deep: !0 }
|
|
2355
2355
|
);
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function As(t, e, r) {
|
|
2358
2358
|
let n = t;
|
|
2359
2359
|
for (let i = 0; i < e.length - 1; i++) {
|
|
2360
2360
|
const s = e[i];
|
|
@@ -2446,15 +2446,15 @@ function wr(t) {
|
|
|
2446
2446
|
if (typeof e == "function")
|
|
2447
2447
|
return e;
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function zs(t) {
|
|
2450
2450
|
var e = wr(t);
|
|
2451
2451
|
return e && e === t.entries;
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function xs(t) {
|
|
2454
2454
|
var e = wr(t);
|
|
2455
2455
|
return e && e === t.keys;
|
|
2456
2456
|
}
|
|
2457
|
-
var
|
|
2457
|
+
var Ve = "delete", V = 5, dt = 1 << V, ut = dt - 1, j = {};
|
|
2458
2458
|
function tn() {
|
|
2459
2459
|
return { value: !1 };
|
|
2460
2460
|
}
|
|
@@ -2481,7 +2481,7 @@ function Po() {
|
|
|
2481
2481
|
function br(t, e, r) {
|
|
2482
2482
|
return (t === 0 && !Lo(t) || r !== void 0 && t <= -r) && (e === void 0 || r !== void 0 && e >= r);
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2484
|
+
function Ue(t, e) {
|
|
2485
2485
|
return qo(t, e, 0);
|
|
2486
2486
|
}
|
|
2487
2487
|
function Sr(t, e) {
|
|
@@ -2528,7 +2528,7 @@ function Bo(t) {
|
|
|
2528
2528
|
}
|
|
2529
2529
|
var ft = /* @__PURE__ */ (function(t) {
|
|
2530
2530
|
function e(r) {
|
|
2531
|
-
return r == null ? vn() : Rt(r) ? r.toSeq() :
|
|
2531
|
+
return r == null ? vn() : Rt(r) ? r.toSeq() : Ns(r);
|
|
2532
2532
|
}
|
|
2533
2533
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toSeq = function() {
|
|
2534
2534
|
return this;
|
|
@@ -2644,7 +2644,7 @@ var se = /* @__PURE__ */ (function(t) {
|
|
|
2644
2644
|
}, e;
|
|
2645
2645
|
})(Ut);
|
|
2646
2646
|
dn.prototype[Lt] = !0;
|
|
2647
|
-
var
|
|
2647
|
+
var Rs = /* @__PURE__ */ (function(t) {
|
|
2648
2648
|
function e(r) {
|
|
2649
2649
|
this._collection = r, this.size = r.length || r.size;
|
|
2650
2650
|
}
|
|
@@ -2690,10 +2690,10 @@ function Fo(t) {
|
|
|
2690
2690
|
"Expected Array or collection object of values: " + t
|
|
2691
2691
|
);
|
|
2692
2692
|
}
|
|
2693
|
-
function
|
|
2693
|
+
function Ns(t) {
|
|
2694
2694
|
var e = _n(t);
|
|
2695
2695
|
if (e)
|
|
2696
|
-
return
|
|
2696
|
+
return zs(t) ? e.fromEntrySeq() : xs(t) ? e.toSetSeq() : e;
|
|
2697
2697
|
if (typeof t == "object")
|
|
2698
2698
|
return new dn(t);
|
|
2699
2699
|
throw new TypeError(
|
|
@@ -2701,12 +2701,12 @@ function Rs(t) {
|
|
|
2701
2701
|
);
|
|
2702
2702
|
}
|
|
2703
2703
|
function _n(t) {
|
|
2704
|
-
return Bo(t) ? new se(t) : To(t) ? new
|
|
2704
|
+
return Bo(t) ? new se(t) : To(t) ? new Rs(t) : void 0;
|
|
2705
2705
|
}
|
|
2706
|
-
function
|
|
2706
|
+
function Be() {
|
|
2707
2707
|
return this.__ensureOwner();
|
|
2708
2708
|
}
|
|
2709
|
-
function
|
|
2709
|
+
function Fe() {
|
|
2710
2710
|
return this.__ownerID ? this : this.__ensureOwner(new hn());
|
|
2711
2711
|
}
|
|
2712
2712
|
var be = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Math.imul : function(t, e) {
|
|
@@ -2717,27 +2717,27 @@ var be = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Mat
|
|
|
2717
2717
|
function Ir(t) {
|
|
2718
2718
|
return t >>> 1 & 1073741824 | t & 3221225471;
|
|
2719
2719
|
}
|
|
2720
|
-
var
|
|
2720
|
+
var Cs = Object.prototype.valueOf;
|
|
2721
2721
|
function ht(t) {
|
|
2722
2722
|
if (t == null)
|
|
2723
2723
|
return Zn(t);
|
|
2724
2724
|
if (typeof t.hashCode == "function")
|
|
2725
2725
|
return Ir(t.hashCode(t));
|
|
2726
|
-
var e =
|
|
2726
|
+
var e = qs(t);
|
|
2727
2727
|
if (e == null)
|
|
2728
2728
|
return Zn(e);
|
|
2729
2729
|
switch (typeof e) {
|
|
2730
2730
|
case "boolean":
|
|
2731
2731
|
return e ? 1108378657 : 1108378656;
|
|
2732
2732
|
case "number":
|
|
2733
|
-
return
|
|
2733
|
+
return js(e);
|
|
2734
2734
|
case "string":
|
|
2735
|
-
return e.length >
|
|
2735
|
+
return e.length > Ls ? $s(e) : en(e);
|
|
2736
2736
|
case "object":
|
|
2737
2737
|
case "function":
|
|
2738
|
-
return
|
|
2738
|
+
return Ts(e);
|
|
2739
2739
|
case "symbol":
|
|
2740
|
-
return
|
|
2740
|
+
return Ms(e);
|
|
2741
2741
|
default:
|
|
2742
2742
|
if (typeof e.toString == "function")
|
|
2743
2743
|
return en(e.toString());
|
|
@@ -2750,7 +2750,7 @@ function Zn(t) {
|
|
|
2750
2750
|
1108378659
|
|
2751
2751
|
);
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2753
|
+
function js(t) {
|
|
2754
2754
|
if (t !== t || t === 1 / 0)
|
|
2755
2755
|
return 0;
|
|
2756
2756
|
var e = t | 0;
|
|
@@ -2758,22 +2758,22 @@ function Cs(t) {
|
|
|
2758
2758
|
t /= 4294967295, e ^= t;
|
|
2759
2759
|
return Ir(e);
|
|
2760
2760
|
}
|
|
2761
|
-
function
|
|
2761
|
+
function $s(t) {
|
|
2762
2762
|
var e = Tr[t];
|
|
2763
|
-
return e === void 0 && (e = en(t), Mr ===
|
|
2763
|
+
return e === void 0 && (e = en(t), Mr === Vs && (Mr = 0, Tr = {}), Mr++, Tr[t] = e), e;
|
|
2764
2764
|
}
|
|
2765
2765
|
function en(t) {
|
|
2766
2766
|
for (var e = 0, r = 0; r < t.length; r++)
|
|
2767
2767
|
e = 31 * e + t.charCodeAt(r) | 0;
|
|
2768
2768
|
return Ir(e);
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function Ms(t) {
|
|
2771
2771
|
var e = ro[t];
|
|
2772
2772
|
return e !== void 0 || (e = Wo(), ro[t] = e), e;
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function Ts(t) {
|
|
2775
2775
|
var e;
|
|
2776
|
-
if (rn && (e = nn.get(t), e !== void 0) || (e = t[Bt], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Bt], e !== void 0 || (e =
|
|
2776
|
+
if (rn && (e = nn.get(t), e !== void 0) || (e = t[Bt], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Bt], e !== void 0 || (e = Ps(t), e !== void 0)))
|
|
2777
2777
|
return e;
|
|
2778
2778
|
if (e = Wo(), rn)
|
|
2779
2779
|
nn.set(t, e);
|
|
@@ -2809,7 +2809,7 @@ var to = Object.isExtensible, eo = (function() {
|
|
|
2809
2809
|
return !1;
|
|
2810
2810
|
}
|
|
2811
2811
|
})();
|
|
2812
|
-
function
|
|
2812
|
+
function Ps(t) {
|
|
2813
2813
|
if (t && t.nodeType > 0)
|
|
2814
2814
|
switch (t.nodeType) {
|
|
2815
2815
|
case 1:
|
|
@@ -2818,8 +2818,8 @@ function Ts(t) {
|
|
|
2818
2818
|
return t.documentElement && t.documentElement.uniqueID;
|
|
2819
2819
|
}
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2822
|
-
return t.valueOf !==
|
|
2821
|
+
function qs(t) {
|
|
2822
|
+
return t.valueOf !== Cs && typeof t.valueOf == "function" ? (
|
|
2823
2823
|
// @ts-expect-error weird the "obj" parameter as `valueOf` should not have a parameter
|
|
2824
2824
|
t.valueOf(t)
|
|
2825
2825
|
) : t;
|
|
@@ -2832,7 +2832,7 @@ var rn = typeof WeakMap == "function", nn;
|
|
|
2832
2832
|
rn && (nn = /* @__PURE__ */ new WeakMap());
|
|
2833
2833
|
var ro = /* @__PURE__ */ Object.create(null), $r = 0, Bt = "__immutablehash__";
|
|
2834
2834
|
typeof Symbol == "function" && (Bt = Symbol(Bt));
|
|
2835
|
-
var
|
|
2835
|
+
var Ls = 16, Vs = 255, Mr = 0, Tr = {}, Er = /* @__PURE__ */ (function(t) {
|
|
2836
2836
|
function e(r, n) {
|
|
2837
2837
|
this._iter = r, this._useKeys = n, this.size = r.size;
|
|
2838
2838
|
}
|
|
@@ -3084,7 +3084,7 @@ function Yo(t, e, r, n) {
|
|
|
3084
3084
|
});
|
|
3085
3085
|
}, o;
|
|
3086
3086
|
}
|
|
3087
|
-
function
|
|
3087
|
+
function Us(t, e, r) {
|
|
3088
3088
|
var n = _e().asMutable();
|
|
3089
3089
|
return t.__iterate(function(o, i) {
|
|
3090
3090
|
n.update(e.call(r, o, i, t), 0, function(s) {
|
|
@@ -3092,7 +3092,7 @@ function Vs(t, e, r) {
|
|
|
3092
3092
|
});
|
|
3093
3093
|
}), n.asImmutable();
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3095
|
+
function Bs(t, e, r) {
|
|
3096
3096
|
var n = W(t), o = (xt(t) ? Mt() : _e()).asMutable();
|
|
3097
3097
|
t.__iterate(function(s, a) {
|
|
3098
3098
|
o.update(
|
|
@@ -3107,7 +3107,7 @@ function Us(t, e, r) {
|
|
|
3107
3107
|
return L(t, i(s));
|
|
3108
3108
|
}).asImmutable();
|
|
3109
3109
|
}
|
|
3110
|
-
function
|
|
3110
|
+
function Fs(t, e, r) {
|
|
3111
3111
|
var n = W(t), o = [[], []];
|
|
3112
3112
|
t.__iterate(function(s, a) {
|
|
3113
3113
|
o[e.call(r, s, a, t) ? 1 : 0].push(
|
|
@@ -3125,7 +3125,7 @@ function mn(t, e, r, n) {
|
|
|
3125
3125
|
return t;
|
|
3126
3126
|
if (typeof o > "u" && (e < 0 || r < 0))
|
|
3127
3127
|
return mn(t.toSeq().cacheResult(), e, r, n);
|
|
3128
|
-
var i =
|
|
3128
|
+
var i = Ue(e, o), s = Sr(r, o), a = s - i, u;
|
|
3129
3129
|
a === a && (u = a < 0 ? 0 : a);
|
|
3130
3130
|
var c = Nt(t);
|
|
3131
3131
|
return c.size = u === 0 ? u : t.size && u || void 0, !n && pn(t) && u >= 0 && (c.get = function(l, f) {
|
|
@@ -3136,9 +3136,9 @@ function mn(t, e, r, n) {
|
|
|
3136
3136
|
return 0;
|
|
3137
3137
|
if (f)
|
|
3138
3138
|
return this.cacheResult().__iterate(l, f);
|
|
3139
|
-
var d = 0,
|
|
3139
|
+
var d = 0, y = !0, g = 0;
|
|
3140
3140
|
return t.__iterate(function(D, z) {
|
|
3141
|
-
if (!(
|
|
3141
|
+
if (!(y && (y = d++ < i)))
|
|
3142
3142
|
return g++, l(D, n ? z : g - 1, h) !== !1 && g !== u;
|
|
3143
3143
|
}), g;
|
|
3144
3144
|
}, c.__iteratorUncached = function(l, f) {
|
|
@@ -3146,18 +3146,18 @@ function mn(t, e, r, n) {
|
|
|
3146
3146
|
return this.cacheResult().__iterator(l, f);
|
|
3147
3147
|
if (u === 0)
|
|
3148
3148
|
return new $(ct);
|
|
3149
|
-
var h = t.__iterator(l, f), d = 0,
|
|
3149
|
+
var h = t.__iterator(l, f), d = 0, y = 0;
|
|
3150
3150
|
return new $(function() {
|
|
3151
3151
|
for (; d++ < i; )
|
|
3152
3152
|
h.next();
|
|
3153
|
-
if (++
|
|
3153
|
+
if (++y > u)
|
|
3154
3154
|
return ct();
|
|
3155
3155
|
var g = h.next();
|
|
3156
|
-
return n || l === _t || g.done ? g : l === de ? H(l,
|
|
3156
|
+
return n || l === _t || g.done ? g : l === de ? H(l, y - 1, void 0, g) : H(l, y - 1, g.value[1], g);
|
|
3157
3157
|
});
|
|
3158
3158
|
}, c;
|
|
3159
3159
|
}
|
|
3160
|
-
function
|
|
3160
|
+
function Ws(t, e, r) {
|
|
3161
3161
|
var n = Nt(t);
|
|
3162
3162
|
return n.__iterateUncached = function(o, i) {
|
|
3163
3163
|
var s = this;
|
|
@@ -3206,14 +3206,14 @@ function Xo(t, e, r, n) {
|
|
|
3206
3206
|
do {
|
|
3207
3207
|
if (f = u.next(), f.done)
|
|
3208
3208
|
return n || i === _t ? f : i === de ? H(i, l++, void 0, f) : H(i, l++, f.value[1], f);
|
|
3209
|
-
var
|
|
3210
|
-
h =
|
|
3209
|
+
var y = f.value;
|
|
3210
|
+
h = y[0], d = y[1], c && (c = e.call(r, d, h, a));
|
|
3211
3211
|
} while (c);
|
|
3212
3212
|
return i === gt ? f : H(i, h, d, f);
|
|
3213
3213
|
});
|
|
3214
3214
|
}, o;
|
|
3215
3215
|
}
|
|
3216
|
-
var
|
|
3216
|
+
var Hs = /* @__PURE__ */ (function(t) {
|
|
3217
3217
|
function e(r) {
|
|
3218
3218
|
this._wrappedIterables = r.flatMap(function(n) {
|
|
3219
3219
|
return n._wrappedIterables ? n._wrappedIterables : [n];
|
|
@@ -3269,7 +3269,7 @@ var Ws = /* @__PURE__ */ (function(t) {
|
|
|
3269
3269
|
});
|
|
3270
3270
|
}, e;
|
|
3271
3271
|
})(ft);
|
|
3272
|
-
function
|
|
3272
|
+
function Ks(t, e) {
|
|
3273
3273
|
var r = W(t), n = [t].concat(e).map(function(i) {
|
|
3274
3274
|
return yt(i) ? r && (i = Et(i)) : i = r ? yn(i) : Fo(Array.isArray(i) ? i : [i]), i;
|
|
3275
3275
|
}).filter(function(i) {
|
|
@@ -3282,7 +3282,7 @@ function Hs(t, e) {
|
|
|
3282
3282
|
if (o === t || r && W(o) || It(t) && It(o))
|
|
3283
3283
|
return o;
|
|
3284
3284
|
}
|
|
3285
|
-
return new
|
|
3285
|
+
return new Hs(n);
|
|
3286
3286
|
}
|
|
3287
3287
|
function Zo(t, e, r) {
|
|
3288
3288
|
var n = Nt(t);
|
|
@@ -3317,13 +3317,13 @@ function Zo(t, e, r) {
|
|
|
3317
3317
|
});
|
|
3318
3318
|
}, n;
|
|
3319
3319
|
}
|
|
3320
|
-
function
|
|
3320
|
+
function Js(t, e, r) {
|
|
3321
3321
|
var n = wn(t);
|
|
3322
3322
|
return t.toSeq().map(function(o, i) {
|
|
3323
3323
|
return n(e.call(r, o, i, t));
|
|
3324
3324
|
}).flatten(!0);
|
|
3325
3325
|
}
|
|
3326
|
-
function
|
|
3326
|
+
function Gs(t, e) {
|
|
3327
3327
|
var r = Nt(t);
|
|
3328
3328
|
return r.size = t.size && t.size * 2 - 1, r.__iterateUncached = function(n, o) {
|
|
3329
3329
|
var i = this, s = 0;
|
|
@@ -3355,7 +3355,7 @@ function ae(t, e, r) {
|
|
|
3355
3355
|
}
|
|
3356
3356
|
), n ? Ut(i) : It(t) ? kt(i) : ye(i);
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function Xe(t, e, r) {
|
|
3359
3359
|
if (e || (e = ti), r) {
|
|
3360
3360
|
var n = t.toSeq().map(function(o, i) {
|
|
3361
3361
|
return [o, r(o, i, t)];
|
|
@@ -3372,7 +3372,7 @@ function no(t, e, r) {
|
|
|
3372
3372
|
var n = t(r, e);
|
|
3373
3373
|
return n === 0 && r !== e && (r == null || r !== r) || n > 0;
|
|
3374
3374
|
}
|
|
3375
|
-
function
|
|
3375
|
+
function Ze(t, e, r, n) {
|
|
3376
3376
|
var o = Nt(t), i = new se(r).map(function(s) {
|
|
3377
3377
|
return s.size;
|
|
3378
3378
|
});
|
|
@@ -3486,9 +3486,9 @@ function oi(t, e, r) {
|
|
|
3486
3486
|
n[u].forEach(a);
|
|
3487
3487
|
});
|
|
3488
3488
|
}
|
|
3489
|
-
var
|
|
3490
|
-
function
|
|
3491
|
-
if (!t || typeof t != "object" ||
|
|
3489
|
+
var Qs = Object.prototype.toString;
|
|
3490
|
+
function Ys(t) {
|
|
3491
|
+
if (!t || typeof t != "object" || Qs.call(t) !== "[object Object]")
|
|
3492
3492
|
return !1;
|
|
3493
3493
|
var e = Object.getPrototypeOf(t);
|
|
3494
3494
|
if (e === null)
|
|
@@ -3498,7 +3498,7 @@ function Qs(t) {
|
|
|
3498
3498
|
return r === e;
|
|
3499
3499
|
}
|
|
3500
3500
|
function Vt(t) {
|
|
3501
|
-
return typeof t == "object" && (Rt(t) || Array.isArray(t) ||
|
|
3501
|
+
return typeof t == "object" && (Rt(t) || Array.isArray(t) || Ys(t));
|
|
3502
3502
|
}
|
|
3503
3503
|
function Dt(t, e) {
|
|
3504
3504
|
e = e || 0;
|
|
@@ -3515,7 +3515,7 @@ function dr(t) {
|
|
|
3515
3515
|
return e;
|
|
3516
3516
|
}
|
|
3517
3517
|
function Sn(t, e, r) {
|
|
3518
|
-
return In(t, e,
|
|
3518
|
+
return In(t, e, Xs(r));
|
|
3519
3519
|
}
|
|
3520
3520
|
function In(t, e, r) {
|
|
3521
3521
|
if (!Vt(t))
|
|
@@ -3533,13 +3533,13 @@ function In(t, e, r) {
|
|
|
3533
3533
|
i(e[a]).forEach(s);
|
|
3534
3534
|
return o;
|
|
3535
3535
|
}
|
|
3536
|
-
function
|
|
3536
|
+
function Xs(t) {
|
|
3537
3537
|
function e(r, n, o) {
|
|
3538
|
-
return Vt(r) && Vt(n) &&
|
|
3538
|
+
return Vt(r) && Vt(n) && Zs(r, n) ? In(r, [n], e) : t ? t(r, n, o) : n;
|
|
3539
3539
|
}
|
|
3540
3540
|
return e;
|
|
3541
3541
|
}
|
|
3542
|
-
function
|
|
3542
|
+
function Zs(t, e) {
|
|
3543
3543
|
var r = ft(t), n = ft(e);
|
|
3544
3544
|
return It(r) === It(n) && W(r) === W(n);
|
|
3545
3545
|
}
|
|
@@ -3568,13 +3568,13 @@ function On(t) {
|
|
|
3568
3568
|
return In(n, e);
|
|
3569
3569
|
});
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3571
|
+
function ta(t, e, r) {
|
|
3572
3572
|
return ge(t, e, j, function() {
|
|
3573
3573
|
return r;
|
|
3574
3574
|
});
|
|
3575
3575
|
}
|
|
3576
3576
|
function kn(t, e) {
|
|
3577
|
-
return
|
|
3577
|
+
return ta(this, t, e);
|
|
3578
3578
|
}
|
|
3579
3579
|
function Dn(t, e, r) {
|
|
3580
3580
|
return arguments.length === 1 ? t(this) : ei(this, t, e, r);
|
|
@@ -3585,7 +3585,7 @@ function An(t, e, r) {
|
|
|
3585
3585
|
function zn() {
|
|
3586
3586
|
return this.__altered;
|
|
3587
3587
|
}
|
|
3588
|
-
function
|
|
3588
|
+
function We(t) {
|
|
3589
3589
|
var e = this.asMutable();
|
|
3590
3590
|
return t(e), e.wasAltered() ? e.__ensureOwner(this.__ownerID) : this;
|
|
3591
3591
|
}
|
|
@@ -3594,12 +3594,12 @@ function xn(t) {
|
|
|
3594
3594
|
return !!(t && // @ts-expect-error: maybeMap is typed as `{}`, need to change in 6.0 to `maybeMap && typeof maybeMap === 'object' && IS_MAP_SYMBOL in maybeMap`
|
|
3595
3595
|
t[ai]);
|
|
3596
3596
|
}
|
|
3597
|
-
function
|
|
3597
|
+
function Ae(t, e) {
|
|
3598
3598
|
if (!t)
|
|
3599
3599
|
throw new Error(e);
|
|
3600
3600
|
}
|
|
3601
3601
|
function pt(t) {
|
|
3602
|
-
|
|
3602
|
+
Ae(t !== 1 / 0, "Cannot perform this action with an infinite size.");
|
|
3603
3603
|
}
|
|
3604
3604
|
var _e = /* @__PURE__ */ (function(t) {
|
|
3605
3605
|
function e(r) {
|
|
@@ -3639,7 +3639,7 @@ var _e = /* @__PURE__ */ (function(t) {
|
|
|
3639
3639
|
});
|
|
3640
3640
|
});
|
|
3641
3641
|
}, e.prototype.__iterator = function(r, n) {
|
|
3642
|
-
return new
|
|
3642
|
+
return new ea(this, r, n);
|
|
3643
3643
|
}, e.prototype.__iterate = function(r, n) {
|
|
3644
3644
|
var o = this, i = 0;
|
|
3645
3645
|
return this._root && this._root.iterate(function(s) {
|
|
@@ -3652,7 +3652,7 @@ var _e = /* @__PURE__ */ (function(t) {
|
|
|
3652
3652
|
_e.isMap = xn;
|
|
3653
3653
|
var F = _e.prototype;
|
|
3654
3654
|
F[ai] = !0;
|
|
3655
|
-
F[
|
|
3655
|
+
F[Ve] = F.remove;
|
|
3656
3656
|
F.removeAll = F.deleteAll;
|
|
3657
3657
|
F.setIn = kn;
|
|
3658
3658
|
F.removeIn = F.deleteIn = jn;
|
|
@@ -3664,36 +3664,36 @@ F.mergeDeep = ii;
|
|
|
3664
3664
|
F.mergeDeepWith = si;
|
|
3665
3665
|
F.mergeIn = On;
|
|
3666
3666
|
F.mergeDeepIn = En;
|
|
3667
|
-
F.withMutations =
|
|
3667
|
+
F.withMutations = We;
|
|
3668
3668
|
F.wasAltered = zn;
|
|
3669
|
-
F.asImmutable =
|
|
3670
|
-
F["@@transducer/init"] = F.asMutable =
|
|
3669
|
+
F.asImmutable = Be;
|
|
3670
|
+
F["@@transducer/init"] = F.asMutable = Fe;
|
|
3671
3671
|
F["@@transducer/step"] = function(t, e) {
|
|
3672
3672
|
return t.set(e[0], e[1]);
|
|
3673
3673
|
};
|
|
3674
3674
|
F["@@transducer/result"] = function(t) {
|
|
3675
3675
|
return t.asImmutable();
|
|
3676
3676
|
};
|
|
3677
|
-
var
|
|
3677
|
+
var Ce = function(t, e) {
|
|
3678
3678
|
this.ownerID = t, this.entries = e;
|
|
3679
3679
|
};
|
|
3680
|
-
|
|
3680
|
+
Ce.prototype.get = function(t, e, r, n) {
|
|
3681
3681
|
for (var o = this.entries, i = 0, s = o.length; i < s; i++)
|
|
3682
3682
|
if (vt(r, o[i][0]))
|
|
3683
3683
|
return o[i][1];
|
|
3684
3684
|
return n;
|
|
3685
3685
|
};
|
|
3686
|
-
|
|
3686
|
+
Ce.prototype.update = function(t, e, r, n, o, i, s) {
|
|
3687
3687
|
for (var a = o === j, u = this.entries, c = 0, l = u.length; c < l && !vt(n, u[c][0]); c++)
|
|
3688
3688
|
;
|
|
3689
3689
|
var f = c < l;
|
|
3690
3690
|
if (f ? u[c][1] === o : a)
|
|
3691
3691
|
return this;
|
|
3692
3692
|
if (bt(s), (a || !f) && bt(i), !(a && u.length === 1)) {
|
|
3693
|
-
if (!f && !a && u.length >=
|
|
3694
|
-
return
|
|
3693
|
+
if (!f && !a && u.length >= aa)
|
|
3694
|
+
return ra(t, u, n, o);
|
|
3695
3695
|
var h = t && t === this.ownerID, d = h ? u : Dt(u);
|
|
3696
|
-
return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new
|
|
3696
|
+
return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new Ce(t, d);
|
|
3697
3697
|
}
|
|
3698
3698
|
};
|
|
3699
3699
|
var ue = function(t, e, r) {
|
|
@@ -3714,7 +3714,7 @@ ue.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3714
3714
|
var a = (e === 0 ? r : r >>> e) & ut, u = 1 << a, c = this.bitmap, l = (c & u) !== 0;
|
|
3715
3715
|
if (!l && o === j)
|
|
3716
3716
|
return this;
|
|
3717
|
-
var f = ui(c & u - 1), h = this.nodes, d = l ? h[f] : void 0,
|
|
3717
|
+
var f = ui(c & u - 1), h = this.nodes, d = l ? h[f] : void 0, y = Nn(
|
|
3718
3718
|
d,
|
|
3719
3719
|
t,
|
|
3720
3720
|
e + V,
|
|
@@ -3724,26 +3724,26 @@ ue.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3724
3724
|
i,
|
|
3725
3725
|
s
|
|
3726
3726
|
);
|
|
3727
|
-
if (
|
|
3727
|
+
if (y === d)
|
|
3728
3728
|
return this;
|
|
3729
|
-
if (!l &&
|
|
3730
|
-
return
|
|
3731
|
-
if (l && !
|
|
3729
|
+
if (!l && y && h.length >= ua)
|
|
3730
|
+
return oa(t, h, c, a, y);
|
|
3731
|
+
if (l && !y && h.length === 2 && co(h[f ^ 1]))
|
|
3732
3732
|
return h[f ^ 1];
|
|
3733
|
-
if (l &&
|
|
3734
|
-
return
|
|
3735
|
-
var g = t && t === this.ownerID, D = l ?
|
|
3733
|
+
if (l && y && h.length === 1 && co(y))
|
|
3734
|
+
return y;
|
|
3735
|
+
var g = t && t === this.ownerID, D = l ? y ? c : c ^ u : c | u, z = l ? y ? ci(h, f, y, g) : sa(h, f, g) : ia(h, f, y, g);
|
|
3736
3736
|
return g ? (this.bitmap = D, this.nodes = z, this) : new ue(t, D, z);
|
|
3737
3737
|
};
|
|
3738
|
-
var
|
|
3738
|
+
var je = function(t, e, r) {
|
|
3739
3739
|
this.ownerID = t, this.count = e, this.nodes = r;
|
|
3740
3740
|
};
|
|
3741
|
-
|
|
3741
|
+
je.prototype.get = function(t, e, r, n) {
|
|
3742
3742
|
e === void 0 && (e = ht(r));
|
|
3743
3743
|
var o = (t === 0 ? e : e >>> t) & ut, i = this.nodes[o];
|
|
3744
3744
|
return i ? i.get(t + V, e, r, n) : n;
|
|
3745
3745
|
};
|
|
3746
|
-
|
|
3746
|
+
je.prototype.update = function(t, e, r, n, o, i, s) {
|
|
3747
3747
|
r === void 0 && (r = ht(n));
|
|
3748
3748
|
var a = (e === 0 ? r : r >>> e) & ut, u = o === j, c = this.nodes, l = c[a];
|
|
3749
3749
|
if (u && !l)
|
|
@@ -3763,10 +3763,10 @@ $e.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3763
3763
|
var h = this.count;
|
|
3764
3764
|
if (!l)
|
|
3765
3765
|
h++;
|
|
3766
|
-
else if (!f && (h--, h <
|
|
3767
|
-
return
|
|
3768
|
-
var d = t && t === this.ownerID,
|
|
3769
|
-
return d ? (this.count = h, this.nodes =
|
|
3766
|
+
else if (!f && (h--, h < ca))
|
|
3767
|
+
return na(t, c, h, a);
|
|
3768
|
+
var d = t && t === this.ownerID, y = ci(c, a, f, d);
|
|
3769
|
+
return d ? (this.count = h, this.nodes = y, this) : new je(t, h, y);
|
|
3770
3770
|
};
|
|
3771
3771
|
var ce = function(t, e, r) {
|
|
3772
3772
|
this.ownerID = t, this.keyHash = e, this.entries = r;
|
|
@@ -3808,12 +3808,12 @@ $t.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3808
3808
|
}
|
|
3809
3809
|
return u ? t && t === this.ownerID ? (this.entry[1] = o, this) : new $t(t, this.keyHash, [n, o]) : (bt(i), Cn(this, t, e, ht(n), [n, o]));
|
|
3810
3810
|
};
|
|
3811
|
-
|
|
3811
|
+
Ce.prototype.iterate = ce.prototype.iterate = function(t, e) {
|
|
3812
3812
|
for (var r = this.entries, n = 0, o = r.length - 1; n <= o; n++)
|
|
3813
3813
|
if (t(r[e ? o - n : n]) === !1)
|
|
3814
3814
|
return !1;
|
|
3815
3815
|
};
|
|
3816
|
-
ue.prototype.iterate =
|
|
3816
|
+
ue.prototype.iterate = je.prototype.iterate = function(t, e) {
|
|
3817
3817
|
for (var r = this.nodes, n = 0, o = r.length - 1; n <= o; n++) {
|
|
3818
3818
|
var i = r[e ? o - n : n];
|
|
3819
3819
|
if (i && i.iterate(t, e) === !1)
|
|
@@ -3823,7 +3823,7 @@ ue.prototype.iterate = $e.prototype.iterate = function(t, e) {
|
|
|
3823
3823
|
$t.prototype.iterate = function(t, e) {
|
|
3824
3824
|
return t(this.entry);
|
|
3825
3825
|
};
|
|
3826
|
-
var
|
|
3826
|
+
var ea = /* @__PURE__ */ (function(t) {
|
|
3827
3827
|
function e(r, n, o) {
|
|
3828
3828
|
this._type = n, this._reverse = o, this._stack = r._root && so(r._root);
|
|
3829
3829
|
}
|
|
@@ -3890,7 +3890,7 @@ function uo(t, e, r) {
|
|
|
3890
3890
|
} else {
|
|
3891
3891
|
if (r === j)
|
|
3892
3892
|
return t;
|
|
3893
|
-
o = 1, n = new
|
|
3893
|
+
o = 1, n = new Ce(t.__ownerID, [[e, r]]);
|
|
3894
3894
|
}
|
|
3895
3895
|
return t.__ownerID ? (t.size = o, t._root = n, t.__hash = void 0, t.__altered = !0, t) : n ? Rn(o, n) : zt();
|
|
3896
3896
|
}
|
|
@@ -3914,7 +3914,7 @@ function Cn(t, e, r, n, o) {
|
|
|
3914
3914
|
var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & ut, s = (r === 0 ? n : n >>> r) & ut, a, u = i === s ? [Cn(t, e, r + V, n, o)] : (a = new $t(e, n, o), i < s ? [t, a] : [a, t]);
|
|
3915
3915
|
return new ue(e, 1 << i | 1 << s, u);
|
|
3916
3916
|
}
|
|
3917
|
-
function
|
|
3917
|
+
function ra(t, e, r, n) {
|
|
3918
3918
|
t || (t = new hn());
|
|
3919
3919
|
for (var o = new $t(t, ht(r), [r, n]), i = 0; i < e.length; i++) {
|
|
3920
3920
|
var s = e[i];
|
|
@@ -3922,17 +3922,17 @@ function ea(t, e, r, n) {
|
|
|
3922
3922
|
}
|
|
3923
3923
|
return o;
|
|
3924
3924
|
}
|
|
3925
|
-
function
|
|
3925
|
+
function na(t, e, r, n) {
|
|
3926
3926
|
for (var o = 0, i = 0, s = new Array(r), a = 0, u = 1, c = e.length; a < c; a++, u <<= 1) {
|
|
3927
3927
|
var l = e[a];
|
|
3928
3928
|
l !== void 0 && a !== n && (o |= u, s[i++] = l);
|
|
3929
3929
|
}
|
|
3930
3930
|
return new ue(t, o, s);
|
|
3931
3931
|
}
|
|
3932
|
-
function
|
|
3932
|
+
function oa(t, e, r, n, o) {
|
|
3933
3933
|
for (var i = 0, s = new Array(dt), a = 0; r !== 0; a++, r >>>= 1)
|
|
3934
3934
|
s[a] = r & 1 ? e[i++] : void 0;
|
|
3935
|
-
return s[n] = o, new
|
|
3935
|
+
return s[n] = o, new je(t, i + 1, s);
|
|
3936
3936
|
}
|
|
3937
3937
|
function ui(t) {
|
|
3938
3938
|
return t -= t >> 1 & 1431655765, t = (t & 858993459) + (t >> 2 & 858993459), t = t + (t >> 4) & 252645135, t += t >> 8, t += t >> 16, t & 127;
|
|
@@ -3941,7 +3941,7 @@ function ci(t, e, r, n) {
|
|
|
3941
3941
|
var o = n ? t : Dt(t);
|
|
3942
3942
|
return o[e] = r, o;
|
|
3943
3943
|
}
|
|
3944
|
-
function
|
|
3944
|
+
function ia(t, e, r, n) {
|
|
3945
3945
|
var o = t.length + 1;
|
|
3946
3946
|
if (n && e + 1 === o)
|
|
3947
3947
|
return t[e] = r, t;
|
|
@@ -3949,7 +3949,7 @@ function oa(t, e, r, n) {
|
|
|
3949
3949
|
a === e ? (i[a] = r, s = -1) : i[a] = t[a + s];
|
|
3950
3950
|
return i;
|
|
3951
3951
|
}
|
|
3952
|
-
function
|
|
3952
|
+
function sa(t, e, r) {
|
|
3953
3953
|
var n = t.length - 1;
|
|
3954
3954
|
if (r && e === n)
|
|
3955
3955
|
return t.pop(), t;
|
|
@@ -3957,7 +3957,7 @@ function ia(t, e, r) {
|
|
|
3957
3957
|
s === e && (i = 1), o[s] = t[s + i];
|
|
3958
3958
|
return o;
|
|
3959
3959
|
}
|
|
3960
|
-
var
|
|
3960
|
+
var aa = dt / 4, ua = dt / 2, ca = dt / 4;
|
|
3961
3961
|
function li(t) {
|
|
3962
3962
|
if (Bo(t) && typeof t != "string")
|
|
3963
3963
|
return t;
|
|
@@ -3965,14 +3965,14 @@ function li(t) {
|
|
|
3965
3965
|
return t.toArray();
|
|
3966
3966
|
throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: " + t);
|
|
3967
3967
|
}
|
|
3968
|
-
function
|
|
3968
|
+
function $e(t) {
|
|
3969
3969
|
try {
|
|
3970
3970
|
return typeof t == "string" ? JSON.stringify(t) : String(t);
|
|
3971
3971
|
} catch {
|
|
3972
3972
|
return JSON.stringify(t);
|
|
3973
3973
|
}
|
|
3974
3974
|
}
|
|
3975
|
-
function
|
|
3975
|
+
function la(t, e) {
|
|
3976
3976
|
return Rt(t) ? (
|
|
3977
3977
|
// @ts-expect-error key might be a number or symbol, which is not handled be Record key type
|
|
3978
3978
|
t.has(e)
|
|
@@ -3982,7 +3982,7 @@ function ca(t, e) {
|
|
|
3982
3982
|
);
|
|
3983
3983
|
}
|
|
3984
3984
|
function fi(t, e, r) {
|
|
3985
|
-
return Rt(t) ? t.get(e, r) :
|
|
3985
|
+
return Rt(t) ? t.get(e, r) : la(t, e) ? (
|
|
3986
3986
|
// @ts-expect-error weird "get" here,
|
|
3987
3987
|
typeof t.get == "function" ? (
|
|
3988
3988
|
// @ts-expect-error weird "get" here,
|
|
@@ -3993,7 +3993,7 @@ function fi(t, e, r) {
|
|
|
3993
3993
|
)
|
|
3994
3994
|
) : r;
|
|
3995
3995
|
}
|
|
3996
|
-
function
|
|
3996
|
+
function fa(t, e) {
|
|
3997
3997
|
if (!Vt(t))
|
|
3998
3998
|
throw new TypeError("Cannot update non-data-structure value: " + t);
|
|
3999
3999
|
if (Rt(t)) {
|
|
@@ -4006,7 +4006,7 @@ function la(t, e) {
|
|
|
4006
4006
|
var r = dr(t);
|
|
4007
4007
|
return Array.isArray(r) ? r.splice(e, 1) : delete r[e], r;
|
|
4008
4008
|
}
|
|
4009
|
-
function
|
|
4009
|
+
function ha(t, e, r) {
|
|
4010
4010
|
if (!Vt(t))
|
|
4011
4011
|
throw new TypeError("Cannot update non-data-structure value: " + t);
|
|
4012
4012
|
if (Rt(t)) {
|
|
@@ -4039,7 +4039,7 @@ function hi(t, e, r, n, o, i) {
|
|
|
4039
4039
|
return u === a ? e : u;
|
|
4040
4040
|
}
|
|
4041
4041
|
if (!s && !Vt(e))
|
|
4042
|
-
throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(
|
|
4042
|
+
throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map($e) + "]: " + e);
|
|
4043
4043
|
var c = r[n], l = s ? j : fi(e, c, j), f = hi(
|
|
4044
4044
|
l === j ? t : Rt(l),
|
|
4045
4045
|
// @ts-expect-error mixed type
|
|
@@ -4049,15 +4049,15 @@ function hi(t, e, r, n, o, i) {
|
|
|
4049
4049
|
o,
|
|
4050
4050
|
i
|
|
4051
4051
|
);
|
|
4052
|
-
return f === l ? e : f === j ?
|
|
4052
|
+
return f === l ? e : f === j ? fa(e, c) : ha(s ? t ? zt() : {} : e, c, f);
|
|
4053
4053
|
}
|
|
4054
|
-
function
|
|
4054
|
+
function pa(t, e) {
|
|
4055
4055
|
return ge(t, e, function() {
|
|
4056
4056
|
return j;
|
|
4057
4057
|
});
|
|
4058
4058
|
}
|
|
4059
4059
|
function jn(t) {
|
|
4060
|
-
return
|
|
4060
|
+
return pa(this, t);
|
|
4061
4061
|
}
|
|
4062
4062
|
var pi = "@@__IMMUTABLE_LIST__@@";
|
|
4063
4063
|
function di(t) {
|
|
@@ -4072,7 +4072,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4072
4072
|
if (di(r))
|
|
4073
4073
|
return r;
|
|
4074
4074
|
var o = t(r), i = o.size;
|
|
4075
|
-
return i === 0 ? n : (pt(i), i > 0 && i < dt ?
|
|
4075
|
+
return i === 0 ? n : (pt(i), i > 0 && i < dt ? Me(0, i, V, null, new Pt(o.toArray())) : n.withMutations(function(s) {
|
|
4076
4076
|
s.setSize(i), o.forEach(function(a, u) {
|
|
4077
4077
|
return s.set(u, a);
|
|
4078
4078
|
});
|
|
@@ -4090,7 +4090,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4090
4090
|
}
|
|
4091
4091
|
return n;
|
|
4092
4092
|
}, e.prototype.set = function(r, n) {
|
|
4093
|
-
return
|
|
4093
|
+
return da(this, r, n);
|
|
4094
4094
|
}, e.prototype.remove = function(r) {
|
|
4095
4095
|
return this.has(r) ? r === 0 ? this.shift() : r === this.size - 1 ? this.pop() : this.splice(r, 1) : this;
|
|
4096
4096
|
}, e.prototype.insert = function(r, n) {
|
|
@@ -4146,21 +4146,21 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4146
4146
|
var o = this.size;
|
|
4147
4147
|
return br(r, n, o) ? this : Tt(
|
|
4148
4148
|
this,
|
|
4149
|
-
|
|
4149
|
+
Ue(r, o),
|
|
4150
4150
|
Sr(n, o)
|
|
4151
4151
|
);
|
|
4152
4152
|
}, e.prototype.__iterator = function(r, n) {
|
|
4153
4153
|
var o = n ? this.size : 0, i = lo(this, n);
|
|
4154
4154
|
return new $(function() {
|
|
4155
4155
|
var s = i();
|
|
4156
|
-
return s ===
|
|
4156
|
+
return s === ze ? ct() : H(r, n ? --o : o++, s);
|
|
4157
4157
|
});
|
|
4158
4158
|
}, e.prototype.__iterate = function(r, n) {
|
|
4159
|
-
for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !==
|
|
4159
|
+
for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !== ze && r(s, n ? --o : o++, this) !== !1; )
|
|
4160
4160
|
;
|
|
4161
4161
|
return o;
|
|
4162
4162
|
}, e.prototype.__ensureOwner = function(r) {
|
|
4163
|
-
return r === this.__ownerID ? this : r ?
|
|
4163
|
+
return r === this.__ownerID ? this : r ? Me(
|
|
4164
4164
|
this._origin,
|
|
4165
4165
|
this._capacity,
|
|
4166
4166
|
this._level,
|
|
@@ -4174,7 +4174,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4174
4174
|
Or.isList = di;
|
|
4175
4175
|
var Q = Or.prototype;
|
|
4176
4176
|
Q[pi] = !0;
|
|
4177
|
-
Q[
|
|
4177
|
+
Q[Ve] = Q.remove;
|
|
4178
4178
|
Q.merge = Q.concat;
|
|
4179
4179
|
Q.setIn = kn;
|
|
4180
4180
|
Q.deleteIn = Q.removeIn = jn;
|
|
@@ -4182,10 +4182,10 @@ Q.update = Dn;
|
|
|
4182
4182
|
Q.updateIn = An;
|
|
4183
4183
|
Q.mergeIn = On;
|
|
4184
4184
|
Q.mergeDeepIn = En;
|
|
4185
|
-
Q.withMutations =
|
|
4185
|
+
Q.withMutations = We;
|
|
4186
4186
|
Q.wasAltered = zn;
|
|
4187
|
-
Q.asImmutable =
|
|
4188
|
-
Q["@@transducer/init"] = Q.asMutable =
|
|
4187
|
+
Q.asImmutable = Be;
|
|
4188
|
+
Q["@@transducer/init"] = Q.asMutable = Fe;
|
|
4189
4189
|
Q["@@transducer/step"] = function(t, e) {
|
|
4190
4190
|
return t.push(e);
|
|
4191
4191
|
};
|
|
@@ -4230,9 +4230,9 @@ Pt.prototype.removeAfter = function(t, e, r) {
|
|
|
4230
4230
|
var s = le(this, t);
|
|
4231
4231
|
return s.array.splice(n + 1), o && (s.array[n] = o), s;
|
|
4232
4232
|
};
|
|
4233
|
-
var
|
|
4233
|
+
var ze = {};
|
|
4234
4234
|
function lo(t, e) {
|
|
4235
|
-
var r = t._origin, n = t._capacity, o =
|
|
4235
|
+
var r = t._origin, n = t._capacity, o = Te(n), i = t._tail;
|
|
4236
4236
|
return s(t._root, t._level, 0);
|
|
4237
4237
|
function s(c, l, f) {
|
|
4238
4238
|
return l === 0 ? a(c, f) : u(c, l, f);
|
|
@@ -4241,24 +4241,24 @@ function lo(t, e) {
|
|
|
4241
4241
|
var f = l === o ? i && i.array : c && c.array, h = l > r ? 0 : r - l, d = n - l;
|
|
4242
4242
|
return d > dt && (d = dt), function() {
|
|
4243
4243
|
if (h === d)
|
|
4244
|
-
return
|
|
4245
|
-
var
|
|
4246
|
-
return f && f[
|
|
4244
|
+
return ze;
|
|
4245
|
+
var y = e ? --d : h++;
|
|
4246
|
+
return f && f[y];
|
|
4247
4247
|
};
|
|
4248
4248
|
}
|
|
4249
4249
|
function u(c, l, f) {
|
|
4250
|
-
var h, d = c && c.array,
|
|
4250
|
+
var h, d = c && c.array, y = f > r ? 0 : r - f >> l, g = (n - f >> l) + 1;
|
|
4251
4251
|
return g > dt && (g = dt), function() {
|
|
4252
4252
|
for (; ; ) {
|
|
4253
4253
|
if (h) {
|
|
4254
4254
|
var D = h();
|
|
4255
|
-
if (D !==
|
|
4255
|
+
if (D !== ze)
|
|
4256
4256
|
return D;
|
|
4257
4257
|
h = null;
|
|
4258
4258
|
}
|
|
4259
|
-
if (
|
|
4260
|
-
return
|
|
4261
|
-
var z = e ? --g :
|
|
4259
|
+
if (y === g)
|
|
4260
|
+
return ze;
|
|
4261
|
+
var z = e ? --g : y++;
|
|
4262
4262
|
h = s(
|
|
4263
4263
|
d && d[z],
|
|
4264
4264
|
l - V,
|
|
@@ -4268,14 +4268,14 @@ function lo(t, e) {
|
|
|
4268
4268
|
};
|
|
4269
4269
|
}
|
|
4270
4270
|
}
|
|
4271
|
-
function
|
|
4271
|
+
function Me(t, e, r, n, o, i, s) {
|
|
4272
4272
|
var a = Object.create(Q);
|
|
4273
4273
|
return a.size = e - t, a._origin = t, a._capacity = e, a._level = r, a._root = n, a._tail = o, a.__ownerID = i, a.__hash = s, a.__altered = !1, a;
|
|
4274
4274
|
}
|
|
4275
4275
|
function or() {
|
|
4276
|
-
return
|
|
4276
|
+
return Me(0, 0, V);
|
|
4277
4277
|
}
|
|
4278
|
-
function
|
|
4278
|
+
function da(t, e, r) {
|
|
4279
4279
|
if (e = qt(t, e), e !== e)
|
|
4280
4280
|
return t;
|
|
4281
4281
|
if (e >= t.size || e < 0)
|
|
@@ -4284,14 +4284,14 @@ function pa(t, e, r) {
|
|
|
4284
4284
|
});
|
|
4285
4285
|
e += t._origin;
|
|
4286
4286
|
var n = t._tail, o = t._root, i = tn();
|
|
4287
|
-
return e >=
|
|
4287
|
+
return e >= Te(t._capacity) ? n = on(n, t.__ownerID, 0, e, r, i) : o = on(
|
|
4288
4288
|
o,
|
|
4289
4289
|
t.__ownerID,
|
|
4290
4290
|
t._level,
|
|
4291
4291
|
e,
|
|
4292
4292
|
r,
|
|
4293
4293
|
i
|
|
4294
|
-
), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) :
|
|
4294
|
+
), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) : Me(t._origin, t._capacity, t._level, o, n) : t;
|
|
4295
4295
|
}
|
|
4296
4296
|
function on(t, e, r, n, o, i) {
|
|
4297
4297
|
var s = n >>> r & ut, a = t && s < t.array.length;
|
|
@@ -4315,7 +4315,7 @@ function le(t, e) {
|
|
|
4315
4315
|
return e && t && e === t.ownerID ? t : new Pt(t ? t.array.slice() : [], e);
|
|
4316
4316
|
}
|
|
4317
4317
|
function vi(t, e) {
|
|
4318
|
-
if (e >=
|
|
4318
|
+
if (e >= Te(t._capacity))
|
|
4319
4319
|
return t._tail;
|
|
4320
4320
|
if (e < 1 << t._level + V) {
|
|
4321
4321
|
for (var r = t._root, n = t._level; r && n > 0; )
|
|
@@ -4336,12 +4336,12 @@ function Tt(t, e, r) {
|
|
|
4336
4336
|
n
|
|
4337
4337
|
), u += V, l += 1 << u;
|
|
4338
4338
|
l && (s += l, o += l, a += l, i += l);
|
|
4339
|
-
for (var f =
|
|
4339
|
+
for (var f = Te(i), h = Te(a); h >= 1 << u + V; )
|
|
4340
4340
|
c = new Pt(
|
|
4341
4341
|
c && c.array.length ? [c] : [],
|
|
4342
4342
|
n
|
|
4343
4343
|
), u += V;
|
|
4344
|
-
var d = t._tail,
|
|
4344
|
+
var d = t._tail, y = h < f ? vi(t, a - 1) : h > f ? new Pt([], n) : d;
|
|
4345
4345
|
if (d && h > f && s < i && d.array.length) {
|
|
4346
4346
|
c = le(c, n);
|
|
4347
4347
|
for (var g = c, D = u; D > V; D -= V) {
|
|
@@ -4350,8 +4350,8 @@ function Tt(t, e, r) {
|
|
|
4350
4350
|
}
|
|
4351
4351
|
g.array[f >>> V & ut] = d;
|
|
4352
4352
|
}
|
|
4353
|
-
if (a < i && (
|
|
4354
|
-
s -= h, a -= h, u = V, c = null,
|
|
4353
|
+
if (a < i && (y = y && y.removeAfter(n, 0, a)), s >= h)
|
|
4354
|
+
s -= h, a -= h, u = V, c = null, y = y && y.removeBefore(n, 0, s);
|
|
4355
4355
|
else if (s > o || h < f) {
|
|
4356
4356
|
for (l = 0; c; ) {
|
|
4357
4357
|
var et = s >>> u & ut;
|
|
@@ -4365,9 +4365,9 @@ function Tt(t, e, r) {
|
|
|
4365
4365
|
h - l
|
|
4366
4366
|
)), l && (s -= l, a -= l);
|
|
4367
4367
|
}
|
|
4368
|
-
return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail =
|
|
4368
|
+
return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) : Me(s, a, u, c, y);
|
|
4369
4369
|
}
|
|
4370
|
-
function
|
|
4370
|
+
function Te(t) {
|
|
4371
4371
|
return t < dt ? 0 : t - 1 >>> V << V;
|
|
4372
4372
|
}
|
|
4373
4373
|
function yi(t) {
|
|
@@ -4414,7 +4414,7 @@ var Mt = /* @__PURE__ */ (function(t) {
|
|
|
4414
4414
|
})(_e);
|
|
4415
4415
|
Mt.isOrderedMap = yi;
|
|
4416
4416
|
Mt.prototype[Lt] = !0;
|
|
4417
|
-
Mt.prototype[
|
|
4417
|
+
Mt.prototype[Ve] = Mt.prototype.remove;
|
|
4418
4418
|
function $n(t, e, r, n) {
|
|
4419
4419
|
var o = Object.create(Mt.prototype);
|
|
4420
4420
|
return o.size = t ? t.size : 0, o._map = t, o._list = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
|
|
@@ -4448,7 +4448,7 @@ function sn(t) {
|
|
|
4448
4448
|
}
|
|
4449
4449
|
var Mn = /* @__PURE__ */ (function(t) {
|
|
4450
4450
|
function e(r) {
|
|
4451
|
-
return r == null ?
|
|
4451
|
+
return r == null ? tr() : sn(r) ? r : tr().pushAll(r);
|
|
4452
4452
|
}
|
|
4453
4453
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
|
|
4454
4454
|
return this(arguments);
|
|
@@ -4491,18 +4491,18 @@ var Mn = /* @__PURE__ */ (function(t) {
|
|
|
4491
4491
|
}, e.prototype.pop = function() {
|
|
4492
4492
|
return this.slice(1);
|
|
4493
4493
|
}, e.prototype.clear = function() {
|
|
4494
|
-
return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) :
|
|
4494
|
+
return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : tr();
|
|
4495
4495
|
}, e.prototype.slice = function(r, n) {
|
|
4496
4496
|
if (br(r, n, this.size))
|
|
4497
4497
|
return this;
|
|
4498
|
-
var o =
|
|
4498
|
+
var o = Ue(r, this.size), i = Sr(n, this.size);
|
|
4499
4499
|
if (i !== this.size)
|
|
4500
4500
|
return t.prototype.slice.call(this, r, n);
|
|
4501
4501
|
for (var s = this.size - o, a = this._head; o--; )
|
|
4502
4502
|
a = a.next;
|
|
4503
4503
|
return this.__ownerID ? (this.size = s, this._head = a, this.__hash = void 0, this.__altered = !0, this) : Ee(s, a);
|
|
4504
4504
|
}, e.prototype.__ensureOwner = function(r) {
|
|
4505
|
-
return r === this.__ownerID ? this : r ? Ee(this.size, this._head, r, this.__hash) : this.size === 0 ?
|
|
4505
|
+
return r === this.__ownerID ? this : r ? Ee(this.size, this._head, r, this.__hash) : this.size === 0 ? tr() : (this.__ownerID = r, this.__altered = !1, this);
|
|
4506
4506
|
}, e.prototype.__iterate = function(r, n) {
|
|
4507
4507
|
var o = this;
|
|
4508
4508
|
if (n)
|
|
@@ -4534,10 +4534,10 @@ lt[_i] = !0;
|
|
|
4534
4534
|
lt.shift = lt.pop;
|
|
4535
4535
|
lt.unshift = lt.push;
|
|
4536
4536
|
lt.unshiftAll = lt.pushAll;
|
|
4537
|
-
lt.withMutations =
|
|
4537
|
+
lt.withMutations = We;
|
|
4538
4538
|
lt.wasAltered = zn;
|
|
4539
|
-
lt.asImmutable =
|
|
4540
|
-
lt["@@transducer/init"] = lt.asMutable =
|
|
4539
|
+
lt.asImmutable = Be;
|
|
4540
|
+
lt["@@transducer/init"] = lt.asMutable = Fe;
|
|
4541
4541
|
lt["@@transducer/step"] = function(t, e) {
|
|
4542
4542
|
return t.unshift(e);
|
|
4543
4543
|
};
|
|
@@ -4549,7 +4549,7 @@ function Ee(t, e, r, n) {
|
|
|
4549
4549
|
return o.size = t, o._head = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
|
|
4550
4550
|
}
|
|
4551
4551
|
var po;
|
|
4552
|
-
function
|
|
4552
|
+
function tr() {
|
|
4553
4553
|
return po || (po = Ee(0));
|
|
4554
4554
|
}
|
|
4555
4555
|
function vo(t, e, r, n, o, i) {
|
|
@@ -4557,10 +4557,10 @@ function vo(t, e, r, n, o, i) {
|
|
|
4557
4557
|
o ? (o = !1, r = s) : r = e.call(n, r, s, a, u);
|
|
4558
4558
|
}, i), r;
|
|
4559
4559
|
}
|
|
4560
|
-
function
|
|
4560
|
+
function va(t, e) {
|
|
4561
4561
|
return e;
|
|
4562
4562
|
}
|
|
4563
|
-
function
|
|
4563
|
+
function ya(t, e) {
|
|
4564
4564
|
return [e, t];
|
|
4565
4565
|
}
|
|
4566
4566
|
function qr(t) {
|
|
@@ -4626,14 +4626,14 @@ function gi(t, e) {
|
|
|
4626
4626
|
return s && // @ts-expect-error size should exists on Collection
|
|
4627
4627
|
t.size === a;
|
|
4628
4628
|
}
|
|
4629
|
-
var
|
|
4629
|
+
var _a = /* @__PURE__ */ (function(t) {
|
|
4630
4630
|
function e(r, n, o) {
|
|
4631
4631
|
if (o === void 0 && (o = 1), !(this instanceof e))
|
|
4632
4632
|
return new e(r, n, o);
|
|
4633
|
-
if (
|
|
4633
|
+
if (Ae(o !== 0, "Cannot step a Range by 0"), Ae(
|
|
4634
4634
|
r !== void 0,
|
|
4635
4635
|
"You must define a start value when using Range"
|
|
4636
|
-
),
|
|
4636
|
+
), Ae(
|
|
4637
4637
|
n !== void 0,
|
|
4638
4638
|
"You must define an end value when using Range"
|
|
4639
4639
|
), o = Math.abs(o), n < r && (o = -o), this._start = r, this._end = n, this._step = o, this.size = Math.max(0, Math.ceil((n - r) / o - 1) + 1), this.size === 0) {
|
|
@@ -4650,7 +4650,7 @@ var ya = /* @__PURE__ */ (function(t) {
|
|
|
4650
4650
|
var n = (r - this._start) / this._step;
|
|
4651
4651
|
return n >= 0 && n < this.size && n === Math.floor(n);
|
|
4652
4652
|
}, e.prototype.slice = function(r, n) {
|
|
4653
|
-
return br(r, n, this.size) ? this : (r =
|
|
4653
|
+
return br(r, n, this.size) ? this : (r = Ue(r, this.size), n = Sr(n, this.size), n <= r ? new e(0, 0) : new e(
|
|
4654
4654
|
this.get(r, this._end),
|
|
4655
4655
|
this.get(n, this._end),
|
|
4656
4656
|
this._step
|
|
@@ -4707,13 +4707,13 @@ var kr = /* @__PURE__ */ (function(t) {
|
|
|
4707
4707
|
}, e.prototype.has = function(r) {
|
|
4708
4708
|
return this._map.has(r);
|
|
4709
4709
|
}, e.prototype.add = function(r) {
|
|
4710
|
-
return
|
|
4710
|
+
return er(this, this._map.set(r, r));
|
|
4711
4711
|
}, e.prototype.remove = function(r) {
|
|
4712
|
-
return
|
|
4712
|
+
return er(this, this._map.remove(r));
|
|
4713
4713
|
}, e.prototype.clear = function() {
|
|
4714
|
-
return
|
|
4714
|
+
return er(this, this._map.clear());
|
|
4715
4715
|
}, e.prototype.map = function(r, n) {
|
|
4716
|
-
var o = this, i = !1, s =
|
|
4716
|
+
var o = this, i = !1, s = er(
|
|
4717
4717
|
this,
|
|
4718
4718
|
this._map.mapEntries(function(a) {
|
|
4719
4719
|
var u = a[1], c = r.call(n, u, u, o);
|
|
@@ -4766,9 +4766,9 @@ var kr = /* @__PURE__ */ (function(t) {
|
|
|
4766
4766
|
});
|
|
4767
4767
|
});
|
|
4768
4768
|
}, e.prototype.sort = function(r) {
|
|
4769
|
-
return
|
|
4769
|
+
return Pe(ae(this, r));
|
|
4770
4770
|
}, e.prototype.sortBy = function(r, n) {
|
|
4771
|
-
return
|
|
4771
|
+
return Pe(ae(this, n, r));
|
|
4772
4772
|
}, e.prototype.wasAltered = function() {
|
|
4773
4773
|
return this._map.wasAltered();
|
|
4774
4774
|
}, e.prototype.__iterate = function(r, n) {
|
|
@@ -4788,11 +4788,11 @@ var kr = /* @__PURE__ */ (function(t) {
|
|
|
4788
4788
|
kr.isSet = Tn;
|
|
4789
4789
|
var rt = kr.prototype;
|
|
4790
4790
|
rt[mi] = !0;
|
|
4791
|
-
rt[
|
|
4791
|
+
rt[Ve] = rt.remove;
|
|
4792
4792
|
rt.merge = rt.concat = rt.union;
|
|
4793
|
-
rt.withMutations =
|
|
4794
|
-
rt.asImmutable =
|
|
4795
|
-
rt["@@transducer/init"] = rt.asMutable =
|
|
4793
|
+
rt.withMutations = We;
|
|
4794
|
+
rt.asImmutable = Be;
|
|
4795
|
+
rt["@@transducer/init"] = rt.asMutable = Fe;
|
|
4796
4796
|
rt["@@transducer/step"] = function(t, e) {
|
|
4797
4797
|
return t.add(e);
|
|
4798
4798
|
};
|
|
@@ -4801,7 +4801,7 @@ rt["@@transducer/result"] = function(t) {
|
|
|
4801
4801
|
};
|
|
4802
4802
|
rt.__empty = Oe;
|
|
4803
4803
|
rt.__make = wi;
|
|
4804
|
-
function
|
|
4804
|
+
function er(t, e) {
|
|
4805
4805
|
return t.__ownerID ? (t.size = e.size, t._map = e, t) : e === t._map ? t : e.size === 0 ? t.__empty() : t.__make(e);
|
|
4806
4806
|
}
|
|
4807
4807
|
function wi(t, e) {
|
|
@@ -4821,11 +4821,11 @@ function bi(t, e, r) {
|
|
|
4821
4821
|
function Si(t, e) {
|
|
4822
4822
|
return bi(this, t, e);
|
|
4823
4823
|
}
|
|
4824
|
-
function
|
|
4824
|
+
function ga(t, e) {
|
|
4825
4825
|
return bi(t, e, j) !== j;
|
|
4826
4826
|
}
|
|
4827
|
-
function
|
|
4828
|
-
return
|
|
4827
|
+
function ma(t) {
|
|
4828
|
+
return ga(this, t);
|
|
4829
4829
|
}
|
|
4830
4830
|
function Ii() {
|
|
4831
4831
|
pt(this.size);
|
|
@@ -4853,7 +4853,7 @@ function vr(t) {
|
|
|
4853
4853
|
r.push(vr(n));
|
|
4854
4854
|
}), r;
|
|
4855
4855
|
}
|
|
4856
|
-
function
|
|
4856
|
+
function wa(t) {
|
|
4857
4857
|
if (t.size === 1 / 0)
|
|
4858
4858
|
return 0;
|
|
4859
4859
|
var e = xt(t), r = W(t), n = e ? 1 : 0;
|
|
@@ -4865,9 +4865,9 @@ function ma(t) {
|
|
|
4865
4865
|
n = 31 * n + ht(o) | 0;
|
|
4866
4866
|
} : function(o) {
|
|
4867
4867
|
n = n + ht(o) | 0;
|
|
4868
|
-
}),
|
|
4868
|
+
}), ba(t.size, n);
|
|
4869
4869
|
}
|
|
4870
|
-
function
|
|
4870
|
+
function ba(t, e) {
|
|
4871
4871
|
return e = be(e, 3432918353), e = be(e << 15 | e >>> -15, 461845907), e = be(e << 13 | e >>> -13, 5), e = (e + 3864292196 | 0) ^ t, e = be(e ^ e >>> 16, 2246822507), e = be(e ^ e >>> 13, 3266489909), e = Ir(e ^ e >>> 16), e;
|
|
4872
4872
|
}
|
|
4873
4873
|
function mo(t, e) {
|
|
@@ -4906,7 +4906,7 @@ Gt(nt, {
|
|
|
4906
4906
|
return Mt(this.toKeyedSeq());
|
|
4907
4907
|
},
|
|
4908
4908
|
toOrderedSet: function() {
|
|
4909
|
-
return
|
|
4909
|
+
return Pe(W(this) ? this.valueSeq() : this);
|
|
4910
4910
|
},
|
|
4911
4911
|
toSet: function() {
|
|
4912
4912
|
return kr(W(this) ? this.valueSeq() : this);
|
|
@@ -4933,7 +4933,7 @@ Gt(nt, {
|
|
|
4933
4933
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
4934
4934
|
concat: function() {
|
|
4935
4935
|
for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
|
|
4936
|
-
return L(this,
|
|
4936
|
+
return L(this, Ks(this, t));
|
|
4937
4937
|
},
|
|
4938
4938
|
includes: function(t) {
|
|
4939
4939
|
return this.some(function(e) {
|
|
@@ -4955,7 +4955,7 @@ Gt(nt, {
|
|
|
4955
4955
|
return L(this, Yo(this, t, e, !0));
|
|
4956
4956
|
},
|
|
4957
4957
|
partition: function(t, e) {
|
|
4958
|
-
return
|
|
4958
|
+
return Fs(this, t, e);
|
|
4959
4959
|
},
|
|
4960
4960
|
find: function(t, e, r) {
|
|
4961
4961
|
var n = this.findEntry(t, e);
|
|
@@ -5032,7 +5032,7 @@ Gt(nt, {
|
|
|
5032
5032
|
);
|
|
5033
5033
|
},
|
|
5034
5034
|
countBy: function(t, e) {
|
|
5035
|
-
return
|
|
5035
|
+
return Us(this, t, e);
|
|
5036
5036
|
},
|
|
5037
5037
|
equals: function(t) {
|
|
5038
5038
|
return gi(this, t);
|
|
@@ -5041,7 +5041,7 @@ Gt(nt, {
|
|
|
5041
5041
|
var t = this;
|
|
5042
5042
|
if (t._cache)
|
|
5043
5043
|
return new se(t._cache);
|
|
5044
|
-
var e = t.toSeq().map(
|
|
5044
|
+
var e = t.toSeq().map(ya).toIndexedSeq();
|
|
5045
5045
|
return e.fromEntrySeq = function() {
|
|
5046
5046
|
return t.toSeq();
|
|
5047
5047
|
}, e;
|
|
@@ -5073,7 +5073,7 @@ Gt(nt, {
|
|
|
5073
5073
|
return this.find(Po, null, t);
|
|
5074
5074
|
},
|
|
5075
5075
|
flatMap: function(t, e) {
|
|
5076
|
-
return L(this,
|
|
5076
|
+
return L(this, Js(this, t, e));
|
|
5077
5077
|
},
|
|
5078
5078
|
flatten: function(t) {
|
|
5079
5079
|
return L(this, Zo(this, t, !0));
|
|
@@ -5088,12 +5088,12 @@ Gt(nt, {
|
|
|
5088
5088
|
},
|
|
5089
5089
|
getIn: Si,
|
|
5090
5090
|
groupBy: function(t, e) {
|
|
5091
|
-
return
|
|
5091
|
+
return Bs(this, t, e);
|
|
5092
5092
|
},
|
|
5093
5093
|
has: function(t) {
|
|
5094
5094
|
return this.get(t, j) !== j;
|
|
5095
5095
|
},
|
|
5096
|
-
hasIn:
|
|
5096
|
+
hasIn: ma,
|
|
5097
5097
|
isSubset: function(t) {
|
|
5098
5098
|
return t = typeof t.includes == "function" ? t : nt(t), this.every(function(e) {
|
|
5099
5099
|
return t.includes(e);
|
|
@@ -5108,7 +5108,7 @@ Gt(nt, {
|
|
|
5108
5108
|
});
|
|
5109
5109
|
},
|
|
5110
5110
|
keySeq: function() {
|
|
5111
|
-
return this.toSeq().map(
|
|
5111
|
+
return this.toSeq().map(va).toIndexedSeq();
|
|
5112
5112
|
},
|
|
5113
5113
|
last: function(t) {
|
|
5114
5114
|
return this.toSeq().reverse().first(t);
|
|
@@ -5117,19 +5117,19 @@ Gt(nt, {
|
|
|
5117
5117
|
return this.toKeyedSeq().reverse().keyOf(t);
|
|
5118
5118
|
},
|
|
5119
5119
|
max: function(t) {
|
|
5120
|
-
return
|
|
5120
|
+
return Xe(this, t);
|
|
5121
5121
|
},
|
|
5122
5122
|
maxBy: function(t, e) {
|
|
5123
|
-
return
|
|
5123
|
+
return Xe(this, e, t);
|
|
5124
5124
|
},
|
|
5125
5125
|
min: function(t) {
|
|
5126
|
-
return
|
|
5126
|
+
return Xe(
|
|
5127
5127
|
this,
|
|
5128
5128
|
t ? yo(t) : _o
|
|
5129
5129
|
);
|
|
5130
5130
|
},
|
|
5131
5131
|
minBy: function(t, e) {
|
|
5132
|
-
return
|
|
5132
|
+
return Xe(
|
|
5133
5133
|
this,
|
|
5134
5134
|
e ? yo(e) : _o,
|
|
5135
5135
|
t
|
|
@@ -5160,7 +5160,7 @@ Gt(nt, {
|
|
|
5160
5160
|
return this.slice(-Math.max(0, t));
|
|
5161
5161
|
},
|
|
5162
5162
|
takeWhile: function(t, e) {
|
|
5163
|
-
return L(this,
|
|
5163
|
+
return L(this, Ws(this, t, e));
|
|
5164
5164
|
},
|
|
5165
5165
|
takeUntil: function(t, e) {
|
|
5166
5166
|
return this.takeWhile(qr(t), e);
|
|
@@ -5173,7 +5173,7 @@ Gt(nt, {
|
|
|
5173
5173
|
},
|
|
5174
5174
|
// ### Hashable Object
|
|
5175
5175
|
hashCode: function() {
|
|
5176
|
-
return this.__hash || (this.__hash =
|
|
5176
|
+
return this.__hash || (this.__hash = wa(this));
|
|
5177
5177
|
}
|
|
5178
5178
|
// ### Internal
|
|
5179
5179
|
// abstract __iterate(fn, reverse)
|
|
@@ -5183,7 +5183,7 @@ var it = nt.prototype;
|
|
|
5183
5183
|
it[$o] = !0;
|
|
5184
5184
|
it[mr] = it.values;
|
|
5185
5185
|
it.toJSON = it.toArray;
|
|
5186
|
-
it.__toStringMapper =
|
|
5186
|
+
it.__toStringMapper = $e;
|
|
5187
5187
|
it.inspect = it.toSource = function() {
|
|
5188
5188
|
return this.toString();
|
|
5189
5189
|
};
|
|
@@ -5213,12 +5213,12 @@ Gt(Et, {
|
|
|
5213
5213
|
);
|
|
5214
5214
|
}
|
|
5215
5215
|
});
|
|
5216
|
-
var
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
return
|
|
5216
|
+
var He = Et.prototype;
|
|
5217
|
+
He[pr] = !0;
|
|
5218
|
+
He[mr] = it.entries;
|
|
5219
|
+
He.toJSON = Ii;
|
|
5220
|
+
He.__toStringMapper = function(t, e) {
|
|
5221
|
+
return $e(e) + ": " + $e(t);
|
|
5222
5222
|
};
|
|
5223
5223
|
Gt(Kt, {
|
|
5224
5224
|
// ### Conversion to other types
|
|
@@ -5251,7 +5251,7 @@ Gt(Kt, {
|
|
|
5251
5251
|
var r = arguments.length;
|
|
5252
5252
|
if (e = Math.max(e || 0, 0), r === 0 || r === 2 && !e)
|
|
5253
5253
|
return this;
|
|
5254
|
-
t =
|
|
5254
|
+
t = Ue(t, t < 0 ? this.count() : this.size);
|
|
5255
5255
|
var n = this.slice(0, t);
|
|
5256
5256
|
return L(
|
|
5257
5257
|
this,
|
|
@@ -5278,14 +5278,14 @@ Gt(Kt, {
|
|
|
5278
5278
|
return t = qt(this, t), t >= 0 && (this.size !== void 0 ? this.size === 1 / 0 || t < this.size : this.indexOf(t) !== -1);
|
|
5279
5279
|
},
|
|
5280
5280
|
interpose: function(t) {
|
|
5281
|
-
return L(this,
|
|
5281
|
+
return L(this, Gs(this, t));
|
|
5282
5282
|
},
|
|
5283
5283
|
interleave: function() {
|
|
5284
|
-
var t = [this].concat(Dt(arguments)), e =
|
|
5284
|
+
var t = [this].concat(Dt(arguments)), e = Ze(this.toSeq(), kt.of, t), r = e.flatten(!0);
|
|
5285
5285
|
return e.size && (r.size = e.size * t.length), L(this, r);
|
|
5286
5286
|
},
|
|
5287
5287
|
keySeq: function() {
|
|
5288
|
-
return
|
|
5288
|
+
return _a(0, this.size);
|
|
5289
5289
|
},
|
|
5290
5290
|
last: function(t) {
|
|
5291
5291
|
return this.get(-1, t);
|
|
@@ -5295,15 +5295,15 @@ Gt(Kt, {
|
|
|
5295
5295
|
},
|
|
5296
5296
|
zip: function() {
|
|
5297
5297
|
var t = [this].concat(Dt(arguments));
|
|
5298
|
-
return L(this,
|
|
5298
|
+
return L(this, Ze(this, wo, t));
|
|
5299
5299
|
},
|
|
5300
5300
|
zipAll: function() {
|
|
5301
5301
|
var t = [this].concat(Dt(arguments));
|
|
5302
|
-
return L(this,
|
|
5302
|
+
return L(this, Ze(this, wo, t, !0));
|
|
5303
5303
|
},
|
|
5304
5304
|
zipWith: function(t) {
|
|
5305
5305
|
var e = Dt(arguments);
|
|
5306
|
-
return e[0] = this, L(this,
|
|
5306
|
+
return e[0] = this, L(this, Ze(this, t, e));
|
|
5307
5307
|
}
|
|
5308
5308
|
});
|
|
5309
5309
|
var me = Kt.prototype;
|
|
@@ -5326,7 +5326,7 @@ var fe = pe.prototype;
|
|
|
5326
5326
|
fe.has = it.includes;
|
|
5327
5327
|
fe.contains = fe.includes;
|
|
5328
5328
|
fe.keys = fe.values;
|
|
5329
|
-
Gt(Ut,
|
|
5329
|
+
Gt(Ut, He);
|
|
5330
5330
|
Gt(kt, me);
|
|
5331
5331
|
Gt(ye, fe);
|
|
5332
5332
|
function wo() {
|
|
@@ -5335,7 +5335,7 @@ function wo() {
|
|
|
5335
5335
|
function Ei(t) {
|
|
5336
5336
|
return Tn(t) && xt(t);
|
|
5337
5337
|
}
|
|
5338
|
-
var
|
|
5338
|
+
var Pe = /* @__PURE__ */ (function(t) {
|
|
5339
5339
|
function e(r) {
|
|
5340
5340
|
return r == null ? an() : Ei(r) ? r : an().withMutations(function(n) {
|
|
5341
5341
|
var o = pe(r);
|
|
@@ -5352,8 +5352,8 @@ var qe = /* @__PURE__ */ (function(t) {
|
|
|
5352
5352
|
return this.__toString("OrderedSet {", "}");
|
|
5353
5353
|
}, e;
|
|
5354
5354
|
})(kr);
|
|
5355
|
-
|
|
5356
|
-
var Qt =
|
|
5355
|
+
Pe.isOrderedSet = Ei;
|
|
5356
|
+
var Qt = Pe.prototype;
|
|
5357
5357
|
Qt[Lt] = !0;
|
|
5358
5358
|
Qt.zip = me.zip;
|
|
5359
5359
|
Qt.zipWith = me.zipWith;
|
|
@@ -5368,7 +5368,7 @@ var bo;
|
|
|
5368
5368
|
function an() {
|
|
5369
5369
|
return bo || (bo = Oi(Ie()));
|
|
5370
5370
|
}
|
|
5371
|
-
function
|
|
5371
|
+
function Sa(t) {
|
|
5372
5372
|
if (Jt(t))
|
|
5373
5373
|
throw new Error(
|
|
5374
5374
|
"Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
|
|
@@ -5384,7 +5384,7 @@ function ba(t) {
|
|
|
5384
5384
|
}
|
|
5385
5385
|
var tt = function(t, e) {
|
|
5386
5386
|
var r;
|
|
5387
|
-
|
|
5387
|
+
Sa(t);
|
|
5388
5388
|
var n = function(i) {
|
|
5389
5389
|
var s = this;
|
|
5390
5390
|
if (i instanceof n)
|
|
@@ -5399,7 +5399,7 @@ var tt = function(t, e) {
|
|
|
5399
5399
|
var l = a[c];
|
|
5400
5400
|
u[l] = c, o[l] ? typeof console == "object" && console.warn && console.warn(
|
|
5401
5401
|
"Cannot define " + qn(this) + ' with property "' + l + '" since that property name is part of the Record API.'
|
|
5402
|
-
) :
|
|
5402
|
+
) : Ia(o, l);
|
|
5403
5403
|
}
|
|
5404
5404
|
}
|
|
5405
5405
|
return this.__ownerID = void 0, this._values = Or().withMutations(function(f) {
|
|
@@ -5412,7 +5412,7 @@ var tt = function(t, e) {
|
|
|
5412
5412
|
};
|
|
5413
5413
|
tt.prototype.toString = function() {
|
|
5414
5414
|
for (var t = qn(this) + " { ", e = this._keys, r, n = 0, o = e.length; n !== o; n++)
|
|
5415
|
-
r = e[n], t += (n ? ", " : "") + r + ": " +
|
|
5415
|
+
r = e[n], t += (n ? ", " : "") + r + ": " + $e(this.get(r));
|
|
5416
5416
|
return t + " }";
|
|
5417
5417
|
};
|
|
5418
5418
|
tt.prototype.equals = function(t) {
|
|
@@ -5476,7 +5476,7 @@ tt.isRecord = Jt;
|
|
|
5476
5476
|
tt.getDescriptiveName = qn;
|
|
5477
5477
|
var B = tt.prototype;
|
|
5478
5478
|
B[Vo] = !0;
|
|
5479
|
-
B[
|
|
5479
|
+
B[Ve] = B.remove;
|
|
5480
5480
|
B.deleteIn = B.removeIn = jn;
|
|
5481
5481
|
B.getIn = Si;
|
|
5482
5482
|
B.hasIn = it.hasIn;
|
|
@@ -5489,9 +5489,9 @@ B.mergeDeepIn = En;
|
|
|
5489
5489
|
B.setIn = kn;
|
|
5490
5490
|
B.update = Dn;
|
|
5491
5491
|
B.updateIn = An;
|
|
5492
|
-
B.withMutations =
|
|
5493
|
-
B.asMutable =
|
|
5494
|
-
B.asImmutable =
|
|
5492
|
+
B.withMutations = We;
|
|
5493
|
+
B.asMutable = Fe;
|
|
5494
|
+
B.asImmutable = Be;
|
|
5495
5495
|
B[mr] = B.entries;
|
|
5496
5496
|
B.toJSON = B.toObject = it.toObject;
|
|
5497
5497
|
B.inspect = B.toSource = function() {
|
|
@@ -5509,42 +5509,42 @@ function he(t) {
|
|
|
5509
5509
|
return [e, t.get(e)];
|
|
5510
5510
|
}));
|
|
5511
5511
|
}
|
|
5512
|
-
function
|
|
5512
|
+
function Ia(t, e) {
|
|
5513
5513
|
try {
|
|
5514
5514
|
Object.defineProperty(t, e, {
|
|
5515
5515
|
get: function() {
|
|
5516
5516
|
return this.get(e);
|
|
5517
5517
|
},
|
|
5518
5518
|
set: function(r) {
|
|
5519
|
-
|
|
5519
|
+
Ae(this.__ownerID, "Cannot set on an immutable record."), this.set(e, r);
|
|
5520
5520
|
}
|
|
5521
5521
|
});
|
|
5522
5522
|
} catch {
|
|
5523
5523
|
}
|
|
5524
5524
|
}
|
|
5525
5525
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5526
|
-
function
|
|
5526
|
+
function Ea(t, e) {
|
|
5527
5527
|
return un() ? (cn(t, e), !0) : !1;
|
|
5528
5528
|
}
|
|
5529
5529
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5530
|
-
const
|
|
5530
|
+
const Oa = () => {
|
|
5531
5531
|
};
|
|
5532
|
-
function
|
|
5532
|
+
function ka(...t) {
|
|
5533
5533
|
if (t.length !== 1) return Wt(...t);
|
|
5534
5534
|
const e = t[0];
|
|
5535
5535
|
return typeof e == "function" ? gr(ln(() => ({
|
|
5536
5536
|
get: e,
|
|
5537
|
-
set:
|
|
5537
|
+
set: Oa
|
|
5538
5538
|
}))) : x(e);
|
|
5539
5539
|
}
|
|
5540
5540
|
function Vr(t) {
|
|
5541
5541
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
5542
5542
|
}
|
|
5543
5543
|
const Ur = /* @__PURE__ */ new WeakMap();
|
|
5544
|
-
function
|
|
5545
|
-
const r =
|
|
5544
|
+
function Da(t, e = !1) {
|
|
5545
|
+
const r = Le(e);
|
|
5546
5546
|
let n = "";
|
|
5547
|
-
ot(
|
|
5547
|
+
ot(ka(t), (s) => {
|
|
5548
5548
|
const a = Vr(St(s));
|
|
5549
5549
|
if (a) {
|
|
5550
5550
|
const u = a;
|
|
@@ -5559,7 +5559,7 @@ function ka(t, e = !1) {
|
|
|
5559
5559
|
const s = Vr(St(t));
|
|
5560
5560
|
!s || !r.value || (s.style.overflow = n, Ur.delete(s), r.value = !1);
|
|
5561
5561
|
};
|
|
5562
|
-
return
|
|
5562
|
+
return Ea(i), C({
|
|
5563
5563
|
get() {
|
|
5564
5564
|
return r.value;
|
|
5565
5565
|
},
|
|
@@ -5568,45 +5568,45 @@ function ka(t, e = !1) {
|
|
|
5568
5568
|
}
|
|
5569
5569
|
});
|
|
5570
5570
|
}
|
|
5571
|
-
function
|
|
5571
|
+
function Aa() {
|
|
5572
5572
|
let t = !1;
|
|
5573
|
-
const e =
|
|
5573
|
+
const e = Le(!1);
|
|
5574
5574
|
return (r, n) => {
|
|
5575
5575
|
if (e.value = n.value, t) return;
|
|
5576
5576
|
t = !0;
|
|
5577
|
-
const o =
|
|
5577
|
+
const o = Da(r, n.value);
|
|
5578
5578
|
ot(e, (i) => o.value = i);
|
|
5579
5579
|
};
|
|
5580
5580
|
}
|
|
5581
|
-
|
|
5582
|
-
const
|
|
5581
|
+
Aa();
|
|
5582
|
+
const za = (t, e) => {
|
|
5583
5583
|
const r = t.__vccOpts || t;
|
|
5584
5584
|
for (const [n, o] of e)
|
|
5585
5585
|
r[n] = o;
|
|
5586
5586
|
return r;
|
|
5587
5587
|
};
|
|
5588
|
-
function
|
|
5588
|
+
function xa(t, e) {
|
|
5589
5589
|
return un() ? (cn(t, e), !0) : !1;
|
|
5590
5590
|
}
|
|
5591
5591
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5592
|
-
const
|
|
5592
|
+
const Ra = () => {
|
|
5593
5593
|
};
|
|
5594
|
-
function
|
|
5594
|
+
function Na(...t) {
|
|
5595
5595
|
if (t.length !== 1) return Wt(...t);
|
|
5596
5596
|
const e = t[0];
|
|
5597
5597
|
return typeof e == "function" ? gr(ln(() => ({
|
|
5598
5598
|
get: e,
|
|
5599
|
-
set:
|
|
5599
|
+
set: Ra
|
|
5600
5600
|
}))) : x(e);
|
|
5601
5601
|
}
|
|
5602
5602
|
function Br(t) {
|
|
5603
5603
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
5604
5604
|
}
|
|
5605
5605
|
const Fr = /* @__PURE__ */ new WeakMap();
|
|
5606
|
-
function
|
|
5607
|
-
const r =
|
|
5606
|
+
function Ca(t, e = !1) {
|
|
5607
|
+
const r = Le(e);
|
|
5608
5608
|
let n = "";
|
|
5609
|
-
ot(
|
|
5609
|
+
ot(Na(t), (s) => {
|
|
5610
5610
|
const a = Br(St(s));
|
|
5611
5611
|
if (a) {
|
|
5612
5612
|
const u = a;
|
|
@@ -5621,7 +5621,7 @@ function Na(t, e = !1) {
|
|
|
5621
5621
|
const s = Br(St(t));
|
|
5622
5622
|
!s || !r.value || (s.style.overflow = n, Fr.delete(s), r.value = !1);
|
|
5623
5623
|
};
|
|
5624
|
-
return
|
|
5624
|
+
return xa(i), C({
|
|
5625
5625
|
get() {
|
|
5626
5626
|
return r.value;
|
|
5627
5627
|
},
|
|
@@ -5630,25 +5630,25 @@ function Na(t, e = !1) {
|
|
|
5630
5630
|
}
|
|
5631
5631
|
});
|
|
5632
5632
|
}
|
|
5633
|
-
function
|
|
5633
|
+
function ja() {
|
|
5634
5634
|
let t = !1;
|
|
5635
|
-
const e =
|
|
5635
|
+
const e = Le(!1);
|
|
5636
5636
|
return (r, n) => {
|
|
5637
5637
|
if (e.value = n.value, t) return;
|
|
5638
5638
|
t = !0;
|
|
5639
|
-
const o =
|
|
5639
|
+
const o = Ca(r, n.value);
|
|
5640
5640
|
ot(e, (i) => o.value = i);
|
|
5641
5641
|
};
|
|
5642
5642
|
}
|
|
5643
|
-
|
|
5643
|
+
ja();
|
|
5644
5644
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5645
|
-
const
|
|
5645
|
+
const $a = { class: "aform" }, Ma = {
|
|
5646
5646
|
key: 0,
|
|
5647
5647
|
class: "aform-nested-section"
|
|
5648
|
-
},
|
|
5648
|
+
}, Ta = {
|
|
5649
5649
|
key: 0,
|
|
5650
5650
|
class: "aform-nested-label"
|
|
5651
|
-
},
|
|
5651
|
+
}, Pa = /* @__PURE__ */ qe({
|
|
5652
5652
|
__name: "AForm",
|
|
5653
5653
|
props: /* @__PURE__ */ Un({
|
|
5654
5654
|
schema: {},
|
|
@@ -5673,8 +5673,12 @@ const ja = { class: "aform" }, $a = {
|
|
|
5673
5673
|
o.value[f] = h, n.value && (n.value[f] = h, r("update:data", { ...n.value }));
|
|
5674
5674
|
}, s = (f) => {
|
|
5675
5675
|
const h = {};
|
|
5676
|
-
for (const [d,
|
|
5677
|
-
["component", "fieldtype", "mode"].includes(d) || (h[d] =
|
|
5676
|
+
for (const [d, y] of Object.entries(f))
|
|
5677
|
+
["component", "fieldtype", "mode"].includes(d) || (h[d] = y);
|
|
5678
|
+
if ("columns" in f) {
|
|
5679
|
+
const d = f.rows;
|
|
5680
|
+
(!d || Array.isArray(d) && d.length === 0) && (h.rows = n.value[f.fieldname] || []);
|
|
5681
|
+
}
|
|
5678
5682
|
return h;
|
|
5679
5683
|
}, a = C(() => t.mode ?? "edit");
|
|
5680
5684
|
function u(f) {
|
|
@@ -5687,26 +5691,28 @@ const ja = { class: "aform" }, $a = {
|
|
|
5687
5691
|
return n.value?.[t.schema[h].fieldname];
|
|
5688
5692
|
},
|
|
5689
5693
|
set: (d) => {
|
|
5690
|
-
const
|
|
5691
|
-
|
|
5694
|
+
const y = t.schema[h].fieldname;
|
|
5695
|
+
y && n.value && (n.value[y] = d, r("update:data", { ...n.value })), r("update:schema", t.schema);
|
|
5692
5696
|
}
|
|
5693
5697
|
})));
|
|
5694
5698
|
});
|
|
5695
5699
|
const l = C(() => c.value);
|
|
5696
|
-
return (f, h) => (T(), U("form",
|
|
5697
|
-
(T(!0), U(re, null,
|
|
5698
|
-
"schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (T(), U("div",
|
|
5699
|
-
d.label ? (T(), U("h4",
|
|
5700
|
+
return (f, h) => (T(), U("form", $a, [
|
|
5701
|
+
(T(!0), U(re, null, xe(t.schema, (d, y) => (T(), U(re, { key: y }, [
|
|
5702
|
+
"schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (T(), U("div", Ma, [
|
|
5703
|
+
d.label && !("collapsible" in d) ? (T(), U("h4", Ta, At(d.label), 1)) : te("", !0),
|
|
5700
5704
|
(T(), ar(Vn(d.component ?? "AForm"), {
|
|
5701
5705
|
data: o.value[d.fieldname],
|
|
5702
5706
|
mode: u(d),
|
|
5703
5707
|
schema: d.schema,
|
|
5708
|
+
label: d.label,
|
|
5709
|
+
collapsible: d.collapsible,
|
|
5704
5710
|
"onUpdate:data": (g) => i(d.fieldname, g)
|
|
5705
|
-
}, null, 40, ["data", "mode", "schema", "onUpdate:data"]))
|
|
5711
|
+
}, null, 40, ["data", "mode", "schema", "label", "collapsible", "onUpdate:data"]))
|
|
5706
5712
|
])) : (T(), ar(Vn(d.component), ji({
|
|
5707
5713
|
key: 1,
|
|
5708
|
-
modelValue: l.value[
|
|
5709
|
-
"onUpdate:modelValue": (g) => l.value[
|
|
5714
|
+
modelValue: l.value[y].value,
|
|
5715
|
+
"onUpdate:modelValue": (g) => l.value[y].value = g,
|
|
5710
5716
|
schema: d,
|
|
5711
5717
|
data: n.value[d.fieldname],
|
|
5712
5718
|
mode: u(d)
|
|
@@ -5714,7 +5720,7 @@ const ja = { class: "aform" }, $a = {
|
|
|
5714
5720
|
], 64))), 128))
|
|
5715
5721
|
]));
|
|
5716
5722
|
}
|
|
5717
|
-
}),
|
|
5723
|
+
}), qa = /* @__PURE__ */ za(Pa, [["__scopeId", "data-v-976e189b"]]), La = { class: "tabs" }, Va = { tabindex: "0" }, Ua = { tabindex: "0" }, Ba = /* @__PURE__ */ qe({
|
|
5718
5724
|
__name: "SheetNav",
|
|
5719
5725
|
props: {
|
|
5720
5726
|
breadcrumbs: { default: () => [] }
|
|
@@ -5735,13 +5741,13 @@ const ja = { class: "aform" }, $a = {
|
|
|
5735
5741
|
return (f, h) => {
|
|
5736
5742
|
const d = $i("router-link");
|
|
5737
5743
|
return T(), U("footer", null, [
|
|
5738
|
-
M("ul",
|
|
5744
|
+
M("ul", La, [
|
|
5739
5745
|
M("li", {
|
|
5740
5746
|
class: "hidebreadcrumbs",
|
|
5741
5747
|
onClick: s,
|
|
5742
5748
|
onKeydown: we(s, ["enter"])
|
|
5743
5749
|
}, [
|
|
5744
|
-
M("a",
|
|
5750
|
+
M("a", Va, [
|
|
5745
5751
|
M("div", {
|
|
5746
5752
|
class: ir(i.value)
|
|
5747
5753
|
}, "×", 2)
|
|
@@ -5757,7 +5763,7 @@ const ja = { class: "aform" }, $a = {
|
|
|
5757
5763
|
to: "/",
|
|
5758
5764
|
tabindex: "0"
|
|
5759
5765
|
}, {
|
|
5760
|
-
default:
|
|
5766
|
+
default: Re(() => [...h[5] || (h[5] = [
|
|
5761
5767
|
M("svg", {
|
|
5762
5768
|
class: "icon",
|
|
5763
5769
|
"aria-label": "Home",
|
|
@@ -5777,7 +5783,7 @@ const ja = { class: "aform" }, $a = {
|
|
|
5777
5783
|
class: ir(["searchtab", { "search-active": r.value }]),
|
|
5778
5784
|
style: xr({ display: e.value ? "block" : "none" })
|
|
5779
5785
|
}, [
|
|
5780
|
-
M("a",
|
|
5786
|
+
M("a", Ua, [
|
|
5781
5787
|
sr((T(), U("svg", {
|
|
5782
5788
|
class: "icon search-icon",
|
|
5783
5789
|
role: "button",
|
|
@@ -5800,15 +5806,15 @@ const ja = { class: "aform" }, $a = {
|
|
|
5800
5806
|
]),
|
|
5801
5807
|
sr(M("input", {
|
|
5802
5808
|
ref: "searchinput",
|
|
5803
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
5809
|
+
"onUpdate:modelValue": h[0] || (h[0] = (y) => n.value = y),
|
|
5804
5810
|
type: "text",
|
|
5805
5811
|
placeholder: "Search...",
|
|
5806
5812
|
onClick: h[1] || (h[1] = Io(() => {
|
|
5807
5813
|
}, ["stop"])),
|
|
5808
|
-
onInput: h[2] || (h[2] = (
|
|
5809
|
-
onBlur: h[3] || (h[3] = (
|
|
5814
|
+
onInput: h[2] || (h[2] = (y) => u(y)),
|
|
5815
|
+
onBlur: h[3] || (h[3] = (y) => c(y)),
|
|
5810
5816
|
onKeydown: [
|
|
5811
|
-
h[4] || (h[4] = we((
|
|
5817
|
+
h[4] || (h[4] = we((y) => c(y), ["enter"])),
|
|
5812
5818
|
we(a, ["escape"])
|
|
5813
5819
|
]
|
|
5814
5820
|
}, null, 544), [
|
|
@@ -5817,16 +5823,16 @@ const ja = { class: "aform" }, $a = {
|
|
|
5817
5823
|
])
|
|
5818
5824
|
])
|
|
5819
5825
|
], 6),
|
|
5820
|
-
(T(!0), U(re, null,
|
|
5821
|
-
key:
|
|
5826
|
+
(T(!0), U(re, null, xe(t.breadcrumbs, (y) => (T(), U("li", {
|
|
5827
|
+
key: y.title,
|
|
5822
5828
|
style: xr({ display: e.value ? "block" : "none" })
|
|
5823
5829
|
}, [
|
|
5824
5830
|
ee(d, {
|
|
5825
5831
|
tabindex: "0",
|
|
5826
|
-
to:
|
|
5832
|
+
to: y.to
|
|
5827
5833
|
}, {
|
|
5828
|
-
default:
|
|
5829
|
-
ur(At(
|
|
5834
|
+
default: Re(() => [
|
|
5835
|
+
ur(At(y.title), 1)
|
|
5830
5836
|
]),
|
|
5831
5837
|
_: 2
|
|
5832
5838
|
}, 1032, ["to"])
|
|
@@ -5835,13 +5841,13 @@ const ja = { class: "aform" }, $a = {
|
|
|
5835
5841
|
]);
|
|
5836
5842
|
};
|
|
5837
5843
|
}
|
|
5838
|
-
}), ki = /* @__PURE__ */ Ao(
|
|
5844
|
+
}), ki = /* @__PURE__ */ Ao(Ba, [["__scopeId", "data-v-eb5bcbb6"]]), Fa = {
|
|
5839
5845
|
key: 1,
|
|
5840
5846
|
class: "loading"
|
|
5841
|
-
},
|
|
5847
|
+
}, Wa = {
|
|
5842
5848
|
key: 2,
|
|
5843
5849
|
class: "loading"
|
|
5844
|
-
},
|
|
5850
|
+
}, Ha = /* @__PURE__ */ qe({
|
|
5845
5851
|
__name: "Desktop",
|
|
5846
5852
|
props: {
|
|
5847
5853
|
availableDoctypes: {},
|
|
@@ -5851,7 +5857,7 @@ const ja = { class: "aform" }, $a = {
|
|
|
5851
5857
|
},
|
|
5852
5858
|
emits: ["action", "navigate", "record:open", "load-records", "load-record"],
|
|
5853
5859
|
setup(t, { emit: e }) {
|
|
5854
|
-
const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } =
|
|
5860
|
+
const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } = Ds(), s = x(!1), a = x(!1), u = C({
|
|
5855
5861
|
get() {
|
|
5856
5862
|
if (!i.value || !f.value || !d.value)
|
|
5857
5863
|
return {};
|
|
@@ -5861,11 +5867,11 @@ const ja = { class: "aform" }, $a = {
|
|
|
5861
5867
|
return {};
|
|
5862
5868
|
}
|
|
5863
5869
|
},
|
|
5864
|
-
set(
|
|
5870
|
+
set(v) {
|
|
5865
5871
|
if (!(!i.value || !f.value || !d.value))
|
|
5866
5872
|
try {
|
|
5867
5873
|
const p = i.value.getStore();
|
|
5868
|
-
for (const [w, m] of Object.entries(
|
|
5874
|
+
for (const [w, m] of Object.entries(v)) {
|
|
5869
5875
|
const A = `${f.value}.${d.value}.${w}`;
|
|
5870
5876
|
(p.has(A) ? p.get(A) : void 0) !== m && p.set(A, m);
|
|
5871
5877
|
}
|
|
@@ -5873,15 +5879,15 @@ const ja = { class: "aform" }, $a = {
|
|
|
5873
5879
|
console.warn("HST update failed:", p);
|
|
5874
5880
|
}
|
|
5875
5881
|
}
|
|
5876
|
-
}), c = C(() => r.routeAdapter ? null :
|
|
5882
|
+
}), c = C(() => r.routeAdapter ? null : rr(i.value?.registry.router?.currentRoute)), l = C(() => r.routeAdapter ? null : i.value?.registry.router), f = C(() => {
|
|
5877
5883
|
if (r.routeAdapter) return r.routeAdapter.getCurrentDoctype();
|
|
5878
5884
|
if (!c.value) return "";
|
|
5879
5885
|
if (c.value.meta?.actualDoctype)
|
|
5880
5886
|
return c.value.meta.actualDoctype;
|
|
5881
5887
|
if (c.value.params.doctype)
|
|
5882
5888
|
return c.value.params.doctype;
|
|
5883
|
-
const
|
|
5884
|
-
return
|
|
5889
|
+
const v = c.value.params.pathMatch;
|
|
5890
|
+
return v && v.length > 0 ? v[0] : "";
|
|
5885
5891
|
}), h = C(() => {
|
|
5886
5892
|
if (r.routeAdapter) return r.routeAdapter.getCurrentDoctype();
|
|
5887
5893
|
if (!c.value) return "";
|
|
@@ -5889,16 +5895,16 @@ const ja = { class: "aform" }, $a = {
|
|
|
5889
5895
|
return c.value.meta.doctype;
|
|
5890
5896
|
if (c.value.params.doctype)
|
|
5891
5897
|
return c.value.params.doctype;
|
|
5892
|
-
const
|
|
5893
|
-
return
|
|
5898
|
+
const v = c.value.params.pathMatch;
|
|
5899
|
+
return v && v.length > 0 ? v[0] : "";
|
|
5894
5900
|
}), d = C(() => {
|
|
5895
5901
|
if (r.routeAdapter) return r.routeAdapter.getCurrentRecordId();
|
|
5896
5902
|
if (!c.value) return "";
|
|
5897
5903
|
if (c.value.params.recordId)
|
|
5898
5904
|
return c.value.params.recordId;
|
|
5899
|
-
const
|
|
5900
|
-
return
|
|
5901
|
-
}),
|
|
5905
|
+
const v = c.value.params.pathMatch;
|
|
5906
|
+
return v && v.length > 1 ? v[1] : "";
|
|
5907
|
+
}), y = C(() => d.value?.startsWith("new-")), g = C(() => {
|
|
5902
5908
|
if (r.routeAdapter) return r.routeAdapter.getCurrentView();
|
|
5903
5909
|
if (!c.value || c.value.name === "home" || c.value.path === "/")
|
|
5904
5910
|
return "doctypes";
|
|
@@ -5909,15 +5915,15 @@ const ja = { class: "aform" }, $a = {
|
|
|
5909
5915
|
if (p.includes("list") || c.value.params.doctype)
|
|
5910
5916
|
return "records";
|
|
5911
5917
|
}
|
|
5912
|
-
const
|
|
5913
|
-
return
|
|
5918
|
+
const v = c.value.params.pathMatch;
|
|
5919
|
+
return v && v.length > 0 ? v.length === 1 ? "records" : "record" : "doctypes";
|
|
5914
5920
|
}), D = () => {
|
|
5915
5921
|
if (!i.value || !f.value || !d.value)
|
|
5916
5922
|
return [];
|
|
5917
5923
|
try {
|
|
5918
|
-
const
|
|
5919
|
-
if (!
|
|
5920
|
-
const p = i.value.getRecordState(f.value, d.value), w =
|
|
5924
|
+
const v = i.value.registry.getDoctype(f.value);
|
|
5925
|
+
if (!v?.workflow) return [];
|
|
5926
|
+
const p = i.value.getRecordState(f.value, d.value), w = v.getAvailableTransitions(p), m = u.value || {};
|
|
5921
5927
|
return w.map(({ name: A, targetState: N }) => ({
|
|
5922
5928
|
label: `${A} (→ ${N})`,
|
|
5923
5929
|
action: () => {
|
|
@@ -5929,14 +5935,14 @@ const ja = { class: "aform" }, $a = {
|
|
|
5929
5935
|
});
|
|
5930
5936
|
}
|
|
5931
5937
|
}));
|
|
5932
|
-
} catch (
|
|
5933
|
-
return console.warn("Error getting available transitions:",
|
|
5938
|
+
} catch (v) {
|
|
5939
|
+
return console.warn("Error getting available transitions:", v), [];
|
|
5934
5940
|
}
|
|
5935
5941
|
}, z = C(() => {
|
|
5936
|
-
const
|
|
5942
|
+
const v = [];
|
|
5937
5943
|
switch (g.value) {
|
|
5938
5944
|
case "records":
|
|
5939
|
-
|
|
5945
|
+
v.push({
|
|
5940
5946
|
type: "button",
|
|
5941
5947
|
label: "New Record",
|
|
5942
5948
|
action: () => {
|
|
@@ -5946,7 +5952,7 @@ const ja = { class: "aform" }, $a = {
|
|
|
5946
5952
|
break;
|
|
5947
5953
|
case "record": {
|
|
5948
5954
|
const p = D();
|
|
5949
|
-
p.length > 0 &&
|
|
5955
|
+
p.length > 0 && v.push({
|
|
5950
5956
|
type: "dropdown",
|
|
5951
5957
|
label: "Actions",
|
|
5952
5958
|
actions: p
|
|
@@ -5954,24 +5960,24 @@ const ja = { class: "aform" }, $a = {
|
|
|
5954
5960
|
break;
|
|
5955
5961
|
}
|
|
5956
5962
|
}
|
|
5957
|
-
return
|
|
5963
|
+
return v;
|
|
5958
5964
|
}), et = C(() => {
|
|
5959
|
-
const
|
|
5965
|
+
const v = [];
|
|
5960
5966
|
if (g.value === "records" && h.value)
|
|
5961
|
-
|
|
5967
|
+
v.push(
|
|
5962
5968
|
{ title: "Home", to: "/" },
|
|
5963
5969
|
{ title: X(h.value), to: `/${h.value}` }
|
|
5964
5970
|
);
|
|
5965
5971
|
else if (g.value === "record" && h.value) {
|
|
5966
5972
|
const p = d.value ? `/${h.value}/${d.value}` : c.value?.fullPath ?? "";
|
|
5967
|
-
|
|
5973
|
+
v.push(
|
|
5968
5974
|
{ title: "Home", to: "/" },
|
|
5969
5975
|
{ title: X(h.value), to: `/${h.value}` },
|
|
5970
|
-
{ title:
|
|
5976
|
+
{ title: y.value ? "New Record" : "Edit Record", to: p }
|
|
5971
5977
|
);
|
|
5972
5978
|
}
|
|
5973
|
-
return
|
|
5974
|
-
}), st = (
|
|
5979
|
+
return v;
|
|
5980
|
+
}), st = (v) => {
|
|
5975
5981
|
const p = [
|
|
5976
5982
|
{
|
|
5977
5983
|
title: "Go Home",
|
|
@@ -6006,24 +6012,24 @@ const ja = { class: "aform" }, $a = {
|
|
|
6006
6012
|
O({ view: "records", doctype: w });
|
|
6007
6013
|
}
|
|
6008
6014
|
});
|
|
6009
|
-
}),
|
|
6010
|
-
(w) => w.title.toLowerCase().includes(
|
|
6015
|
+
}), v ? p.filter(
|
|
6016
|
+
(w) => w.title.toLowerCase().includes(v.toLowerCase()) || w.description.toLowerCase().includes(v.toLowerCase())
|
|
6011
6017
|
) : p;
|
|
6012
|
-
}, Ot = (
|
|
6013
|
-
|
|
6014
|
-
}, X = (
|
|
6015
|
-
n("navigate",
|
|
6016
|
-
}, Ct = async (
|
|
6017
|
-
await O({ view: "records", doctype:
|
|
6018
|
-
}, q = async (
|
|
6018
|
+
}, Ot = (v) => {
|
|
6019
|
+
v.action(), a.value = !1;
|
|
6020
|
+
}, X = (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) => {
|
|
6021
|
+
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}`);
|
|
6022
|
+
}, Ct = async (v) => {
|
|
6023
|
+
await O({ view: "records", doctype: v });
|
|
6024
|
+
}, q = async (v) => {
|
|
6019
6025
|
const p = h.value;
|
|
6020
|
-
n("record:open", { doctype: p, recordId:
|
|
6026
|
+
n("record:open", { doctype: p, recordId: v }), await O({ view: "record", doctype: p, recordId: v });
|
|
6021
6027
|
}, S = async () => {
|
|
6022
|
-
const
|
|
6023
|
-
await O({ view: "record", doctype: h.value, recordId:
|
|
6028
|
+
const v = `new-${Date.now()}`;
|
|
6029
|
+
await O({ view: "record", doctype: h.value, recordId: v });
|
|
6024
6030
|
}, b = () => {
|
|
6025
6031
|
if (!o.length) return [];
|
|
6026
|
-
const
|
|
6032
|
+
const v = o.map((p) => ({
|
|
6027
6033
|
id: p,
|
|
6028
6034
|
doctype: p,
|
|
6029
6035
|
display_name: X(p),
|
|
@@ -6072,16 +6078,16 @@ const ja = { class: "aform" }, $a = {
|
|
|
6072
6078
|
view: "list",
|
|
6073
6079
|
fullWidth: !0
|
|
6074
6080
|
},
|
|
6075
|
-
rows:
|
|
6081
|
+
rows: v
|
|
6076
6082
|
}
|
|
6077
6083
|
];
|
|
6078
6084
|
}, R = () => {
|
|
6079
6085
|
if (!f.value) return [];
|
|
6080
6086
|
if (!i.value) return [];
|
|
6081
|
-
const
|
|
6087
|
+
const v = k(), p = P(), w = r.recordIdField || "id";
|
|
6082
6088
|
if (p.length === 0)
|
|
6083
6089
|
return [];
|
|
6084
|
-
const m = p.find((Y) => Y.fieldname === w), A = p.filter((Y) => Y.fieldname !== w), N = m ? [m, ...A] : p, Z =
|
|
6090
|
+
const m = p.find((Y) => Y.fieldname === w), A = p.filter((Y) => Y.fieldname !== w), N = m ? [m, ...A] : p, Z = v.map((Y) => ({
|
|
6085
6091
|
...Y,
|
|
6086
6092
|
// Use the canonical ID field for navigation
|
|
6087
6093
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
@@ -6121,8 +6127,8 @@ const ja = { class: "aform" }, $a = {
|
|
|
6121
6127
|
if (!f.value) return [];
|
|
6122
6128
|
if (!i.value) return [];
|
|
6123
6129
|
try {
|
|
6124
|
-
const
|
|
6125
|
-
return p?.schema ?
|
|
6130
|
+
const v = i.value?.registry, p = v?.registry[f.value];
|
|
6131
|
+
return p?.schema ? v.resolveSchema(p) : [];
|
|
6126
6132
|
} catch {
|
|
6127
6133
|
return [];
|
|
6128
6134
|
}
|
|
@@ -6155,10 +6161,10 @@ const ja = { class: "aform" }, $a = {
|
|
|
6155
6161
|
default:
|
|
6156
6162
|
return [];
|
|
6157
6163
|
}
|
|
6158
|
-
}), jt = (
|
|
6164
|
+
}), jt = (v, p) => {
|
|
6159
6165
|
p && p();
|
|
6160
|
-
}, at = async (
|
|
6161
|
-
const p =
|
|
6166
|
+
}, at = async (v) => {
|
|
6167
|
+
const p = v || d.value;
|
|
6162
6168
|
if (!p) return;
|
|
6163
6169
|
(r.confirmFn ? await r.confirmFn("Are you sure you want to delete this record?") : confirm("Are you sure you want to delete this record?")) && n("action", {
|
|
6164
6170
|
name: "DELETE",
|
|
@@ -6166,8 +6172,8 @@ const ja = { class: "aform" }, $a = {
|
|
|
6166
6172
|
recordId: p,
|
|
6167
6173
|
data: u.value || {}
|
|
6168
6174
|
});
|
|
6169
|
-
}, _ = (
|
|
6170
|
-
const p =
|
|
6175
|
+
}, _ = (v) => {
|
|
6176
|
+
const p = v.querySelector("td[data-rowindex]");
|
|
6171
6177
|
if (!p) return null;
|
|
6172
6178
|
const w = p.getAttribute("data-rowindex");
|
|
6173
6179
|
if (w === null) return null;
|
|
@@ -6177,8 +6183,8 @@ const ja = { class: "aform" }, $a = {
|
|
|
6177
6183
|
if (!N) return null;
|
|
6178
6184
|
const Z = r.recordIdField || "id";
|
|
6179
6185
|
return N[Z] || N.id || null;
|
|
6180
|
-
}, I = async (
|
|
6181
|
-
const p =
|
|
6186
|
+
}, I = async (v) => {
|
|
6187
|
+
const p = v.target;
|
|
6182
6188
|
p.getAttribute("data-action") === "create" && await S();
|
|
6183
6189
|
const m = p.closest("td, th");
|
|
6184
6190
|
if (m) {
|
|
@@ -6186,8 +6192,8 @@ const ja = { class: "aform" }, $a = {
|
|
|
6186
6192
|
if (A === "View Records" && N) {
|
|
6187
6193
|
const Z = N.querySelectorAll("td");
|
|
6188
6194
|
if (Z.length > 0) {
|
|
6189
|
-
const
|
|
6190
|
-
|
|
6195
|
+
const Ke = Z[1].textContent?.trim();
|
|
6196
|
+
Ke && await Ct(Ke);
|
|
6191
6197
|
}
|
|
6192
6198
|
} else if (A?.includes("Edit") && N) {
|
|
6193
6199
|
const Z = _(N);
|
|
@@ -6201,9 +6207,9 @@ const ja = { class: "aform" }, $a = {
|
|
|
6201
6207
|
if (!(!i.value || !f.value)) {
|
|
6202
6208
|
s.value = !0;
|
|
6203
6209
|
try {
|
|
6204
|
-
|
|
6205
|
-
} catch (
|
|
6206
|
-
console.warn("Error loading record data:",
|
|
6210
|
+
y.value || i.value.getRecordById(f.value, d.value);
|
|
6211
|
+
} catch (v) {
|
|
6212
|
+
console.warn("Error loading record data:", v);
|
|
6207
6213
|
} finally {
|
|
6208
6214
|
s.value = !1;
|
|
6209
6215
|
}
|
|
@@ -6224,22 +6230,22 @@ const ja = { class: "aform" }, $a = {
|
|
|
6224
6230
|
* Convenience wrapper so child components (e.g. slot content) can emit
|
|
6225
6231
|
* an action event without needing a direct reference to the emit function.
|
|
6226
6232
|
*/
|
|
6227
|
-
emitAction: (
|
|
6233
|
+
emitAction: (v, p) => {
|
|
6228
6234
|
n("action", {
|
|
6229
|
-
name:
|
|
6235
|
+
name: v,
|
|
6230
6236
|
doctype: f.value,
|
|
6231
6237
|
recordId: d.value,
|
|
6232
6238
|
data: p ?? u.value ?? {}
|
|
6233
6239
|
});
|
|
6234
6240
|
}
|
|
6235
6241
|
}), yr(() => {
|
|
6236
|
-
const
|
|
6242
|
+
const v = (p) => {
|
|
6237
6243
|
(p.ctrlKey || p.metaKey) && p.key === "k" && (p.preventDefault(), a.value = !0), p.key === "Escape" && a.value && (a.value = !1);
|
|
6238
6244
|
};
|
|
6239
|
-
return document.addEventListener("keydown",
|
|
6240
|
-
document.removeEventListener("keydown",
|
|
6245
|
+
return document.addEventListener("keydown", v), () => {
|
|
6246
|
+
document.removeEventListener("keydown", v);
|
|
6241
6247
|
};
|
|
6242
|
-
}), (
|
|
6248
|
+
}), (v, p) => (T(), U("div", {
|
|
6243
6249
|
class: "desktop",
|
|
6244
6250
|
onClick: I
|
|
6245
6251
|
}, [
|
|
@@ -6247,14 +6253,14 @@ const ja = { class: "aform" }, $a = {
|
|
|
6247
6253
|
elements: z.value,
|
|
6248
6254
|
onActionClick: jt
|
|
6249
6255
|
}, null, 8, ["elements"]),
|
|
6250
|
-
G.value.length > 0 ? (T(), ar(
|
|
6256
|
+
G.value.length > 0 ? (T(), ar(rr(qa), {
|
|
6251
6257
|
key: 0,
|
|
6252
6258
|
data: u.value,
|
|
6253
6259
|
"onUpdate:data": p[0] || (p[0] = (w) => u.value = w),
|
|
6254
6260
|
schema: G.value
|
|
6255
|
-
}, null, 8, ["data", "schema"])) :
|
|
6261
|
+
}, null, 8, ["data", "schema"])) : rr(i) ? (T(), U("div", Wa, [
|
|
6256
6262
|
M("p", null, "Loading " + At(g.value) + " data...", 1)
|
|
6257
|
-
])) : (T(), U("div",
|
|
6263
|
+
])) : (T(), U("div", Fa, [...p[2] || (p[2] = [
|
|
6258
6264
|
M("p", null, "Initializing Stonecrop...", -1)
|
|
6259
6265
|
])])),
|
|
6260
6266
|
ee(ki, { breadcrumbs: et.value }, null, 8, ["breadcrumbs"]),
|
|
@@ -6265,26 +6271,26 @@ const ja = { class: "aform" }, $a = {
|
|
|
6265
6271
|
onSelect: Ot,
|
|
6266
6272
|
onClose: p[1] || (p[1] = (w) => a.value = !1)
|
|
6267
6273
|
}, {
|
|
6268
|
-
title:
|
|
6274
|
+
title: Re(({ result: w }) => [
|
|
6269
6275
|
ur(At(w.title), 1)
|
|
6270
6276
|
]),
|
|
6271
|
-
content:
|
|
6277
|
+
content: Re(({ result: w }) => [
|
|
6272
6278
|
ur(At(w.description), 1)
|
|
6273
6279
|
]),
|
|
6274
6280
|
_: 1
|
|
6275
6281
|
}, 8, ["is-open"])
|
|
6276
6282
|
]));
|
|
6277
6283
|
}
|
|
6278
|
-
}),
|
|
6284
|
+
}), Ja = {
|
|
6279
6285
|
install: (t) => {
|
|
6280
|
-
t.component("ActionSet", zo), t.component("CommandPalette", xo), t.component("Desktop",
|
|
6286
|
+
t.component("ActionSet", zo), t.component("CommandPalette", xo), t.component("Desktop", Ha), t.component("SheetNav", ki);
|
|
6281
6287
|
}
|
|
6282
6288
|
};
|
|
6283
6289
|
export {
|
|
6284
6290
|
zo as ActionSet,
|
|
6285
6291
|
xo as CommandPalette,
|
|
6286
|
-
|
|
6292
|
+
Ha as Desktop,
|
|
6287
6293
|
ki as SheetNav,
|
|
6288
|
-
|
|
6294
|
+
Ja as StonecropDesktop
|
|
6289
6295
|
};
|
|
6290
6296
|
//# sourceMappingURL=desktop.js.map
|