@stonecrop/desktop 0.16.0 → 0.16.2
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 +221 -219
- package/dist/desktop.js.map +1 -1
- package/package.json +6 -6
package/dist/desktop.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as mn, ref as R, onMounted as Hn, openBlock as P, createElementBlock as U, normalizeClass as ke, createElementVNode as C, Fragment as $e, renderList as on, toDisplayString as Vt, createCommentVNode as ve, withDirectives as Pn, vShow as $r, useTemplateRef as Oi, computed as x, watch as dt, nextTick as Gn, createBlock as Mn, Teleport as da, createVNode as Ie, Transition as pa, withCtx as sn, withModifiers as $i, vModelText as Ei, renderSlot as lr, createTextVNode as Fn, inject as $o, provide as Qe, reactive as ha, shallowRef as
|
|
1
|
+
import { defineComponent as mn, ref as R, onMounted as Hn, openBlock as P, createElementBlock as U, normalizeClass as ke, createElementVNode as C, Fragment as $e, renderList as on, toDisplayString as Vt, createCommentVNode as ve, withDirectives as Pn, vShow as $r, useTemplateRef as Oi, computed as x, watch as dt, nextTick as Gn, createBlock as Mn, Teleport as da, createVNode as Ie, Transition as pa, withCtx as sn, withModifiers as $i, vModelText as Ei, renderSlot as lr, createTextVNode as Fn, inject as $o, provide as Qe, reactive as ha, shallowRef as _n, toValue as Nt, readonly as Yn, getCurrentInstance as va, toRef as qr, customRef as Vr, unref as Nn, useModel as ya, watchEffect as ma, resolveDynamicComponent as Eo, mergeProps as _a, mergeModels as Ao, getCurrentScope as Ai, onScopeDispose as xi, resolveComponent as ga, withKeys as We, normalizeStyle as fr, onUnmounted as wa } from "vue";
|
|
2
2
|
import { storeToRefs as ba, defineStore as Ti } from "pinia";
|
|
3
3
|
const Sa = { class: "action-menu-icon" }, za = { class: "action-element-header" }, ka = ["disabled", "onClick"], Ia = { key: 0 }, Oa = { class: "dropdown-header" }, $a = ["onClick"], Ea = ["onClick"], Aa = { class: "dropdown-container" }, xa = { class: "dropdown" }, Ta = ["onClick"], Da = ["href"], ja = { class: "dropdown-item" }, Ra = /* @__PURE__ */ mn({
|
|
4
4
|
__name: "ActionSet",
|
|
@@ -63,7 +63,7 @@ const Sa = { class: "action-menu-icon" }, za = { class: "action-element-header"
|
|
|
63
63
|
h.action != null ? (P(), U("button", {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "dropdown-item",
|
|
66
|
-
onClick: (
|
|
66
|
+
onClick: (_) => c(h.action, h.label)
|
|
67
67
|
}, Vt(h.label), 9, Ta)) : h.link != null ? (P(), U("a", {
|
|
68
68
|
key: 1,
|
|
69
69
|
href: h.link
|
|
@@ -336,19 +336,19 @@ function uu(t, e, n, r = {}) {
|
|
|
336
336
|
var o;
|
|
337
337
|
const { flush: i = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = Zn, eventFilter: d, onError: p = (A) => {
|
|
338
338
|
console.error(A);
|
|
339
|
-
}, initOnMounted: h } = r,
|
|
339
|
+
}, initOnMounted: h } = r, _ = (l ? _n : R)(e), g = x(() => Nt(t));
|
|
340
340
|
if (!n) try {
|
|
341
341
|
n = iu("getDefaultStorage", () => Zn?.localStorage)();
|
|
342
342
|
} catch (A) {
|
|
343
343
|
p(A);
|
|
344
344
|
}
|
|
345
|
-
if (!n) return
|
|
346
|
-
const j = Nt(e), J = su(j), L = (o = r.serializer) !== null && o !== void 0 ? o : au[J], { pause: it, resume: Ut } = Qa(
|
|
345
|
+
if (!n) return _;
|
|
346
|
+
const j = Nt(e), J = su(j), L = (o = r.serializer) !== null && o !== void 0 ? o : au[J], { pause: it, resume: Ut } = Qa(_, (A) => Qt(A), {
|
|
347
347
|
flush: i,
|
|
348
348
|
deep: s,
|
|
349
349
|
eventFilter: d
|
|
350
350
|
});
|
|
351
|
-
dt(
|
|
351
|
+
dt(g, () => bt(), { flush: i });
|
|
352
352
|
let Ht = !1;
|
|
353
353
|
const nt = (A) => {
|
|
354
354
|
h && !Ht || bt(A);
|
|
@@ -361,7 +361,7 @@ function uu(t, e, n, r = {}) {
|
|
|
361
361
|
function wt(A, Q) {
|
|
362
362
|
if (f) {
|
|
363
363
|
const ut = {
|
|
364
|
-
key:
|
|
364
|
+
key: g.value,
|
|
365
365
|
oldValue: A,
|
|
366
366
|
newValue: Q,
|
|
367
367
|
storageArea: n
|
|
@@ -371,21 +371,21 @@ function uu(t, e, n, r = {}) {
|
|
|
371
371
|
}
|
|
372
372
|
function Qt(A) {
|
|
373
373
|
try {
|
|
374
|
-
const Q = n.getItem(
|
|
374
|
+
const Q = n.getItem(g.value);
|
|
375
375
|
if (A == null)
|
|
376
|
-
wt(Q, null), n.removeItem(
|
|
376
|
+
wt(Q, null), n.removeItem(g.value);
|
|
377
377
|
else {
|
|
378
378
|
const ut = L.write(A);
|
|
379
|
-
Q !== ut && (n.setItem(
|
|
379
|
+
Q !== ut && (n.setItem(g.value, ut), wt(Q, ut));
|
|
380
380
|
}
|
|
381
381
|
} catch (Q) {
|
|
382
382
|
p(Q);
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
function te(A) {
|
|
386
|
-
const Q = A ? A.newValue : n.getItem(
|
|
386
|
+
const Q = A ? A.newValue : n.getItem(g.value);
|
|
387
387
|
if (Q == null)
|
|
388
|
-
return u && j != null && n.setItem(
|
|
388
|
+
return u && j != null && n.setItem(g.value, L.write(j)), j;
|
|
389
389
|
if (!A && c) {
|
|
390
390
|
const ut = L.read(Q);
|
|
391
391
|
return typeof c == "function" ? c(ut, j) : J === "object" && !Array.isArray(ut) ? {
|
|
@@ -397,14 +397,14 @@ function uu(t, e, n, r = {}) {
|
|
|
397
397
|
function bt(A) {
|
|
398
398
|
if (!(A && A.storageArea !== n)) {
|
|
399
399
|
if (A && A.key == null) {
|
|
400
|
-
|
|
400
|
+
_.value = j;
|
|
401
401
|
return;
|
|
402
402
|
}
|
|
403
|
-
if (!(A && A.key !==
|
|
403
|
+
if (!(A && A.key !== g.value)) {
|
|
404
404
|
it();
|
|
405
405
|
try {
|
|
406
|
-
const Q = L.write(
|
|
407
|
-
(A === void 0 || A?.newValue !== Q) && (
|
|
406
|
+
const Q = L.write(_.value);
|
|
407
|
+
(A === void 0 || A?.newValue !== Q) && (_.value = te(A));
|
|
408
408
|
} catch (Q) {
|
|
409
409
|
p(Q);
|
|
410
410
|
} finally {
|
|
@@ -416,7 +416,7 @@ function uu(t, e, n, r = {}) {
|
|
|
416
416
|
function Gt(A) {
|
|
417
417
|
bt(A.detail);
|
|
418
418
|
}
|
|
419
|
-
return
|
|
419
|
+
return _;
|
|
420
420
|
}
|
|
421
421
|
function cu(t, e, n = {}) {
|
|
422
422
|
const { window: r = Zn } = n;
|
|
@@ -530,10 +530,10 @@ const Ci = Ti("hst-operation-log", () => {
|
|
|
530
530
|
Ft.ancestorOperationId = tt;
|
|
531
531
|
}), i.value.length > 0 ? i.value[i.value.length - 1].operations.push(Dt) : (e.value.push(...w, Dt), n.value = e.value.length - 1), t.value.enableCrossTabSync && Qt(w, Dt), i.value.length === 0 && (o.value = !1), tt;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function _() {
|
|
534
534
|
i.value = [], o.value = !1;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function g(b) {
|
|
537
537
|
if (!s.value) return !1;
|
|
538
538
|
const S = e.value[n.value];
|
|
539
539
|
if (!S.reversible)
|
|
@@ -722,8 +722,8 @@ const Ci = Ti("hst-operation-log", () => {
|
|
|
722
722
|
addOperation: d,
|
|
723
723
|
startBatch: p,
|
|
724
724
|
commitBatch: h,
|
|
725
|
-
cancelBatch:
|
|
726
|
-
undo:
|
|
725
|
+
cancelBatch: _,
|
|
726
|
+
undo: g,
|
|
727
727
|
redo: j,
|
|
728
728
|
clear: L,
|
|
729
729
|
getOperationsFor: it,
|
|
@@ -854,19 +854,19 @@ class tn {
|
|
|
854
854
|
let u = !1, c = !1, l;
|
|
855
855
|
const f = this.getFieldRollback(r, o), d = n.enableRollback ?? f ?? this.options.enableRollback;
|
|
856
856
|
d && e.store && (l = this.captureSnapshot(e));
|
|
857
|
-
for (const
|
|
857
|
+
for (const _ of i)
|
|
858
858
|
try {
|
|
859
|
-
const
|
|
860
|
-
if (a.push(
|
|
859
|
+
const g = await this.executeAction(_, e, n.timeout);
|
|
860
|
+
if (a.push(g), !g.success) {
|
|
861
861
|
u = !0;
|
|
862
862
|
break;
|
|
863
863
|
}
|
|
864
|
-
} catch (
|
|
864
|
+
} catch (g) {
|
|
865
865
|
const j = {
|
|
866
866
|
success: !1,
|
|
867
|
-
error:
|
|
867
|
+
error: g instanceof Error ? g : new Error(String(g)),
|
|
868
868
|
executionTime: 0,
|
|
869
|
-
action:
|
|
869
|
+
action: _
|
|
870
870
|
};
|
|
871
871
|
a.push(j), u = !0;
|
|
872
872
|
break;
|
|
@@ -874,22 +874,22 @@ class tn {
|
|
|
874
874
|
if (d && u && l && e.store)
|
|
875
875
|
try {
|
|
876
876
|
this.restoreSnapshot(e, l), c = !0;
|
|
877
|
-
} catch (
|
|
878
|
-
console.error("[FieldTriggers] Rollback failed:",
|
|
877
|
+
} catch (_) {
|
|
878
|
+
console.error("[FieldTriggers] Rollback failed:", _);
|
|
879
879
|
}
|
|
880
|
-
const p = performance.now() - s, h = a.filter((
|
|
880
|
+
const p = performance.now() - s, h = a.filter((_) => !_.success && _.error != null);
|
|
881
881
|
if (h.length > 0 && this.options.errorHandler)
|
|
882
|
-
for (const
|
|
882
|
+
for (const _ of h)
|
|
883
883
|
try {
|
|
884
|
-
|
|
885
|
-
} catch (
|
|
886
|
-
console.error("[FieldTriggers] Error in global error handler:",
|
|
884
|
+
_.error && this.options.errorHandler(_.error, e, _.action);
|
|
885
|
+
} catch (g) {
|
|
886
|
+
console.error("[FieldTriggers] Error in global error handler:", g);
|
|
887
887
|
}
|
|
888
888
|
return {
|
|
889
889
|
path: e.path,
|
|
890
890
|
actionResults: a,
|
|
891
891
|
totalExecutionTime: p,
|
|
892
|
-
allSucceeded: a.every((
|
|
892
|
+
allSucceeded: a.every((_) => _.success),
|
|
893
893
|
stoppedOnError: u,
|
|
894
894
|
rolledBack: c,
|
|
895
895
|
snapshot: this.options.debug && d ? l : void 0
|
|
@@ -1771,7 +1771,7 @@ function du(t) {
|
|
|
1771
1771
|
t || (t = {});
|
|
1772
1772
|
const e = t.registry || $o("$registry"), n = $o("$stonecrop"), r = R(), o = R(), i = R({}), s = R(), a = R(), u = R([]), c = R(!1), l = R(null), f = R(), d = x(() => !r.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : r.value.isWorkflowReady(f.value, t.recordId).ready), p = x(() => !r.value || !f.value || !t.recordId || t.recordId === "new" ? [] : r.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), h = n || en._root;
|
|
1773
1773
|
h && (r.value = h), t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
|
|
1774
|
-
const
|
|
1774
|
+
const _ = R([]), g = R(-1), j = x(() => r.value?.getOperationLogStore().canUndo ?? !1), J = x(() => r.value?.getOperationLogStore().canRedo ?? !1), L = x(() => r.value?.getOperationLogStore().undoCount ?? 0), it = x(() => r.value?.getOperationLogStore().redoCount ?? 0), Ut = x(
|
|
1775
1775
|
() => r.value?.getOperationLogStore().undoRedoState ?? {
|
|
1776
1776
|
canUndo: !1,
|
|
1777
1777
|
canRedo: !1,
|
|
@@ -1799,15 +1799,15 @@ function du(t) {
|
|
|
1799
1799
|
if (e && r.value)
|
|
1800
1800
|
try {
|
|
1801
1801
|
const I = r.value.getOperationLogStore(), E = ba(I);
|
|
1802
|
-
|
|
1802
|
+
_.value = E.operations.value, g.value = E.currentIndex.value, dt(
|
|
1803
1803
|
() => E.operations.value,
|
|
1804
1804
|
(k) => {
|
|
1805
|
-
|
|
1805
|
+
_.value = k;
|
|
1806
1806
|
}
|
|
1807
1807
|
), dt(
|
|
1808
1808
|
() => E.currentIndex.value,
|
|
1809
1809
|
(k) => {
|
|
1810
|
-
|
|
1810
|
+
g.value = k;
|
|
1811
1811
|
}
|
|
1812
1812
|
);
|
|
1813
1813
|
} catch {
|
|
@@ -1945,8 +1945,8 @@ function du(t) {
|
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
1947
|
}), Ft = {
|
|
1948
|
-
operations:
|
|
1949
|
-
currentIndex:
|
|
1948
|
+
operations: _,
|
|
1949
|
+
currentIndex: g,
|
|
1950
1950
|
undoRedoState: Ut,
|
|
1951
1951
|
canUndo: j,
|
|
1952
1952
|
canRedo: J,
|
|
@@ -2062,11 +2062,11 @@ function y(t, e, n) {
|
|
|
2062
2062
|
value: (a) => n?.Parent && a instanceof n.Parent ? !0 : a?._zod?.traits?.has(t)
|
|
2063
2063
|
}), Object.defineProperty(s, "name", { value: t }), s;
|
|
2064
2064
|
}
|
|
2065
|
-
|
|
2065
|
+
let Oe = class extends Error {
|
|
2066
2066
|
constructor() {
|
|
2067
2067
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
2068
2068
|
}
|
|
2069
|
-
}
|
|
2069
|
+
};
|
|
2070
2070
|
class Pi extends Error {
|
|
2071
2071
|
constructor(e) {
|
|
2072
2072
|
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
@@ -2197,10 +2197,10 @@ function z(t) {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
return delete e.message, typeof e.error == "string" ? { ...e, error: () => e.error } : e;
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2200
|
+
function _u(t) {
|
|
2201
2201
|
return Object.keys(t).filter((e) => t[e]._zod.optin === "optional" && t[e]._zod.optout === "optional");
|
|
2202
2202
|
}
|
|
2203
|
-
const
|
|
2203
|
+
const gu = {
|
|
2204
2204
|
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
2205
2205
|
int32: [-2147483648, 2147483647],
|
|
2206
2206
|
uint32: [0, 4294967295],
|
|
@@ -2538,7 +2538,7 @@ const ic = (t) => {
|
|
|
2538
2538
|
};
|
|
2539
2539
|
}), fc = /* @__PURE__ */ y("$ZodCheckNumberFormat", (t, e) => {
|
|
2540
2540
|
kt.init(t, e), e.format = e.format || "float64";
|
|
2541
|
-
const n = e.format?.includes("int"), r = n ? "int" : "number", [o, i] =
|
|
2541
|
+
const n = e.format?.includes("int"), r = n ? "int" : "number", [o, i] = gu[e.format];
|
|
2542
2542
|
t._zod.onattach.push((s) => {
|
|
2543
2543
|
const a = s._zod.bag;
|
|
2544
2544
|
a.format = e.format, a.minimum = o, a.maximum = i, n && (a.pattern = sc);
|
|
@@ -2699,7 +2699,7 @@ const ic = (t) => {
|
|
|
2699
2699
|
e.pattern ?? (e.pattern = uc), er.init(t, e);
|
|
2700
2700
|
}), mc = /* @__PURE__ */ y("$ZodCheckUpperCase", (t, e) => {
|
|
2701
2701
|
e.pattern ?? (e.pattern = cc), er.init(t, e);
|
|
2702
|
-
}),
|
|
2702
|
+
}), _c = /* @__PURE__ */ y("$ZodCheckIncludes", (t, e) => {
|
|
2703
2703
|
kt.init(t, e);
|
|
2704
2704
|
const n = Ae(e.includes), r = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${n}` : n);
|
|
2705
2705
|
e.pattern = r, t._zod.onattach.push((o) => {
|
|
@@ -2716,7 +2716,7 @@ const ic = (t) => {
|
|
|
2716
2716
|
continue: !e.abort
|
|
2717
2717
|
});
|
|
2718
2718
|
};
|
|
2719
|
-
}),
|
|
2719
|
+
}), gc = /* @__PURE__ */ y("$ZodCheckStartsWith", (t, e) => {
|
|
2720
2720
|
kt.init(t, e);
|
|
2721
2721
|
const n = new RegExp(`^${Ae(e.prefix)}.*`);
|
|
2722
2722
|
e.pattern ?? (e.pattern = n), t._zod.onattach.push((r) => {
|
|
@@ -3141,7 +3141,7 @@ function ts(t) {
|
|
|
3141
3141
|
for (const r of e)
|
|
3142
3142
|
if (!t.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
3143
3143
|
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
3144
|
-
const n =
|
|
3144
|
+
const n = _u(t.shape);
|
|
3145
3145
|
return {
|
|
3146
3146
|
...t,
|
|
3147
3147
|
keys: e,
|
|
@@ -3210,7 +3210,7 @@ const tl = /* @__PURE__ */ y("$ZodObject", (t, e) => {
|
|
|
3210
3210
|
const c = [], l = i.shape;
|
|
3211
3211
|
for (const f of i.keys) {
|
|
3212
3212
|
const d = l[f], p = d._zod.optout === "optional", h = d._zod.run({ value: u[f], issues: [] }, a);
|
|
3213
|
-
h instanceof Promise ? c.push(h.then((
|
|
3213
|
+
h instanceof Promise ? c.push(h.then((_) => Un(_, s, f, u, p))) : Un(h, s, f, u, p);
|
|
3214
3214
|
}
|
|
3215
3215
|
return o ? es(c, u, s, a, n.value, t) : c.length ? Promise.all(c).then(() => s) : s;
|
|
3216
3216
|
};
|
|
@@ -3222,13 +3222,13 @@ const tl = /* @__PURE__ */ y("$ZodObject", (t, e) => {
|
|
|
3222
3222
|
return `shape[${L}]._zod.run({ value: input[${L}], issues: [] }, ctx)`;
|
|
3223
3223
|
};
|
|
3224
3224
|
d.write("const input = payload.value;");
|
|
3225
|
-
const
|
|
3226
|
-
let
|
|
3225
|
+
const _ = /* @__PURE__ */ Object.create(null);
|
|
3226
|
+
let g = 0;
|
|
3227
3227
|
for (const J of p.keys)
|
|
3228
|
-
|
|
3228
|
+
_[J] = `key_${g++}`;
|
|
3229
3229
|
d.write("const newResult = {};");
|
|
3230
3230
|
for (const J of p.keys) {
|
|
3231
|
-
const L =
|
|
3231
|
+
const L = _[J], it = Po(J), Ut = f[J]?._zod?.optout === "optional";
|
|
3232
3232
|
d.write(`const ${L} = ${h(J)};`), Ut ? d.write(`
|
|
3233
3233
|
if (${L}.issues.length) {
|
|
3234
3234
|
if (${it} in input) {
|
|
@@ -3665,7 +3665,7 @@ function Bo(t, e, n, r) {
|
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
3667
|
var Wo;
|
|
3668
|
-
class
|
|
3668
|
+
class _l {
|
|
3669
3669
|
constructor() {
|
|
3670
3670
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
3671
3671
|
}
|
|
@@ -3694,10 +3694,10 @@ class gl {
|
|
|
3694
3694
|
return this._map.has(e);
|
|
3695
3695
|
}
|
|
3696
3696
|
}
|
|
3697
|
-
function
|
|
3698
|
-
return new
|
|
3697
|
+
function gl() {
|
|
3698
|
+
return new _l();
|
|
3699
3699
|
}
|
|
3700
|
-
(Wo = globalThis).__zod_globalRegistry ?? (Wo.__zod_globalRegistry =
|
|
3700
|
+
(Wo = globalThis).__zod_globalRegistry ?? (Wo.__zod_globalRegistry = gl());
|
|
3701
3701
|
const He = globalThis.__zod_globalRegistry;
|
|
3702
3702
|
// @__NO_SIDE_EFFECTS__
|
|
3703
3703
|
function wl(t, e) {
|
|
@@ -4102,7 +4102,7 @@ function Ql(t) {
|
|
|
4102
4102
|
}
|
|
4103
4103
|
// @__NO_SIDE_EFFECTS__
|
|
4104
4104
|
function tf(t, e) {
|
|
4105
|
-
return new
|
|
4105
|
+
return new _c({
|
|
4106
4106
|
check: "string_format",
|
|
4107
4107
|
format: "includes",
|
|
4108
4108
|
...z(e),
|
|
@@ -4111,7 +4111,7 @@ function tf(t, e) {
|
|
|
4111
4111
|
}
|
|
4112
4112
|
// @__NO_SIDE_EFFECTS__
|
|
4113
4113
|
function ef(t, e) {
|
|
4114
|
-
return new
|
|
4114
|
+
return new gc({
|
|
4115
4115
|
check: "string_format",
|
|
4116
4116
|
format: "starts_with",
|
|
4117
4117
|
...z(e),
|
|
@@ -4452,9 +4452,9 @@ const pf = (t, e = {}) => (n) => {
|
|
|
4452
4452
|
typeof a == "string" && a.includes("int") ? o.type = "integer" : o.type = "number", typeof l == "number" && (e.target === "draft-04" || e.target === "openapi-3.0" ? (o.minimum = l, o.exclusiveMinimum = !0) : o.exclusiveMinimum = l), typeof i == "number" && (o.minimum = i, typeof l == "number" && e.target !== "draft-04" && (l >= i ? delete o.minimum : delete o.exclusiveMinimum)), typeof c == "number" && (e.target === "draft-04" || e.target === "openapi-3.0" ? (o.maximum = c, o.exclusiveMaximum = !0) : o.exclusiveMaximum = c), typeof s == "number" && (o.maximum = s, typeof c == "number" && e.target !== "draft-04" && (c <= s ? delete o.maximum : delete o.exclusiveMaximum)), typeof u == "number" && (o.multipleOf = u);
|
|
4453
4453
|
}, mf = (t, e, n, r) => {
|
|
4454
4454
|
n.type = "boolean";
|
|
4455
|
-
}, gf = (t, e, n, r) => {
|
|
4456
|
-
n.not = {};
|
|
4457
4455
|
}, _f = (t, e, n, r) => {
|
|
4456
|
+
n.not = {};
|
|
4457
|
+
}, gf = (t, e, n, r) => {
|
|
4458
4458
|
}, wf = (t, e, n, r) => {
|
|
4459
4459
|
const o = t._zod.def, i = Fi(o.entries);
|
|
4460
4460
|
i.every((s) => typeof s == "number") && (n.type = "number"), i.every((s) => typeof s == "string") && (n.type = "string"), n.enum = i;
|
|
@@ -4679,7 +4679,7 @@ const Jf = (t, e) => {
|
|
|
4679
4679
|
const n = t._zod.bag;
|
|
4680
4680
|
t.format = n.format ?? null, t.minLength = n.minimum ?? null, t.maxLength = n.maximum ?? null, t.regex = (...r) => t.check(/* @__PURE__ */ Yl(...r)), t.includes = (...r) => t.check(/* @__PURE__ */ tf(...r)), t.startsWith = (...r) => t.check(/* @__PURE__ */ ef(...r)), t.endsWith = (...r) => t.check(/* @__PURE__ */ nf(...r)), t.min = (...r) => t.check(/* @__PURE__ */ qn(...r)), t.max = (...r) => t.check(/* @__PURE__ */ os(...r)), t.length = (...r) => t.check(/* @__PURE__ */ is(...r)), t.nonempty = (...r) => t.check(/* @__PURE__ */ qn(1, ...r)), t.lowercase = (r) => t.check(/* @__PURE__ */ Xl(r)), t.uppercase = (r) => t.check(/* @__PURE__ */ Ql(r)), t.trim = () => t.check(/* @__PURE__ */ of()), t.normalize = (...r) => t.check(/* @__PURE__ */ rf(...r)), t.toLowerCase = () => t.check(/* @__PURE__ */ sf()), t.toUpperCase = () => t.check(/* @__PURE__ */ af()), t.slugify = () => t.check(/* @__PURE__ */ uf());
|
|
4681
4681
|
}), od = /* @__PURE__ */ y("ZodString", (t, e) => {
|
|
4682
|
-
Gr.init(t, e), ls.init(t, e), t.email = (n) => t.check(/* @__PURE__ */ bl(id, n)), t.url = (n) => t.check(/* @__PURE__ */ Ol(sd, n)), t.jwt = (n) => t.check(/* @__PURE__ */ Ll(bd, n)), t.emoji = (n) => t.check(/* @__PURE__ */ $l(ad, n)), t.guid = (n) => t.check(/* @__PURE__ */ Ko(Xo, n)), t.uuid = (n) => t.check(/* @__PURE__ */ Sl(xn, n)), t.uuidv4 = (n) => t.check(/* @__PURE__ */ zl(xn, n)), t.uuidv6 = (n) => t.check(/* @__PURE__ */ kl(xn, n)), t.uuidv7 = (n) => t.check(/* @__PURE__ */ Il(xn, n)), t.nanoid = (n) => t.check(/* @__PURE__ */ El(ud, n)), t.guid = (n) => t.check(/* @__PURE__ */ Ko(Xo, n)), t.cuid = (n) => t.check(/* @__PURE__ */ Al(cd, n)), t.cuid2 = (n) => t.check(/* @__PURE__ */ xl(ld, n)), t.ulid = (n) => t.check(/* @__PURE__ */ Tl(fd, n)), t.base64 = (n) => t.check(/* @__PURE__ */ Ml(
|
|
4682
|
+
Gr.init(t, e), ls.init(t, e), t.email = (n) => t.check(/* @__PURE__ */ bl(id, n)), t.url = (n) => t.check(/* @__PURE__ */ Ol(sd, n)), t.jwt = (n) => t.check(/* @__PURE__ */ Ll(bd, n)), t.emoji = (n) => t.check(/* @__PURE__ */ $l(ad, n)), t.guid = (n) => t.check(/* @__PURE__ */ Ko(Xo, n)), t.uuid = (n) => t.check(/* @__PURE__ */ Sl(xn, n)), t.uuidv4 = (n) => t.check(/* @__PURE__ */ zl(xn, n)), t.uuidv6 = (n) => t.check(/* @__PURE__ */ kl(xn, n)), t.uuidv7 = (n) => t.check(/* @__PURE__ */ Il(xn, n)), t.nanoid = (n) => t.check(/* @__PURE__ */ El(ud, n)), t.guid = (n) => t.check(/* @__PURE__ */ Ko(Xo, n)), t.cuid = (n) => t.check(/* @__PURE__ */ Al(cd, n)), t.cuid2 = (n) => t.check(/* @__PURE__ */ xl(ld, n)), t.ulid = (n) => t.check(/* @__PURE__ */ Tl(fd, n)), t.base64 = (n) => t.check(/* @__PURE__ */ Ml(_d, n)), t.base64url = (n) => t.check(/* @__PURE__ */ Fl(gd, n)), t.xid = (n) => t.check(/* @__PURE__ */ Dl(dd, n)), t.ksuid = (n) => t.check(/* @__PURE__ */ jl(pd, n)), t.ipv4 = (n) => t.check(/* @__PURE__ */ Rl(hd, n)), t.ipv6 = (n) => t.check(/* @__PURE__ */ Nl(vd, n)), t.cidrv4 = (n) => t.check(/* @__PURE__ */ Cl(yd, n)), t.cidrv6 = (n) => t.check(/* @__PURE__ */ Pl(md, n)), t.e164 = (n) => t.check(/* @__PURE__ */ Zl(wd, n)), t.datetime = (n) => t.check(Mf(n)), t.date = (n) => t.check(Zf(n)), t.time = (n) => t.check(Uf(n)), t.duration = (n) => t.check(Vf(n));
|
|
4683
4683
|
});
|
|
4684
4684
|
function $(t) {
|
|
4685
4685
|
return /* @__PURE__ */ wl(od, t);
|
|
@@ -4716,9 +4716,9 @@ const et = /* @__PURE__ */ y("ZodStringFormat", (t, e) => {
|
|
|
4716
4716
|
Lc.init(t, e), et.init(t, e);
|
|
4717
4717
|
}), md = /* @__PURE__ */ y("ZodCIDRv6", (t, e) => {
|
|
4718
4718
|
Uc.init(t, e), et.init(t, e);
|
|
4719
|
-
}),
|
|
4719
|
+
}), _d = /* @__PURE__ */ y("ZodBase64", (t, e) => {
|
|
4720
4720
|
qc.init(t, e), et.init(t, e);
|
|
4721
|
-
}),
|
|
4721
|
+
}), gd = /* @__PURE__ */ y("ZodBase64URL", (t, e) => {
|
|
4722
4722
|
Jc.init(t, e), et.init(t, e);
|
|
4723
4723
|
}), wd = /* @__PURE__ */ y("ZodE164", (t, e) => {
|
|
4724
4724
|
Bc.init(t, e), et.init(t, e);
|
|
@@ -4745,13 +4745,13 @@ function jt(t) {
|
|
|
4745
4745
|
return /* @__PURE__ */ Kl(zd, t);
|
|
4746
4746
|
}
|
|
4747
4747
|
const kd = /* @__PURE__ */ y("ZodUnknown", (t, e) => {
|
|
4748
|
-
Yc.init(t, e), X.init(t, e), t._zod.processJSONSchema = (n, r, o) =>
|
|
4748
|
+
Yc.init(t, e), X.init(t, e), t._zod.processJSONSchema = (n, r, o) => gf();
|
|
4749
4749
|
});
|
|
4750
4750
|
function cn() {
|
|
4751
4751
|
return /* @__PURE__ */ Hl(kd);
|
|
4752
4752
|
}
|
|
4753
4753
|
const Id = /* @__PURE__ */ y("ZodNever", (t, e) => {
|
|
4754
|
-
Xc.init(t, e), X.init(t, e), t._zod.processJSONSchema = (n, r, o) =>
|
|
4754
|
+
Xc.init(t, e), X.init(t, e), t._zod.processJSONSchema = (n, r, o) => _f(t, n, r);
|
|
4755
4755
|
});
|
|
4756
4756
|
function ds(t) {
|
|
4757
4757
|
return /* @__PURE__ */ Gl(Id, t);
|
|
@@ -4763,7 +4763,7 @@ function ie(t, e) {
|
|
|
4763
4763
|
return /* @__PURE__ */ cf(Od, t, e);
|
|
4764
4764
|
}
|
|
4765
4765
|
const ps = /* @__PURE__ */ y("ZodObject", (t, e) => {
|
|
4766
|
-
el.init(t, e), X.init(t, e), t._zod.processJSONSchema = (n, r, o) => If(t, n, r, o), T(t, "shape", () => e.shape), t.keyof = () => Zt(Object.keys(t._zod.def.shape)), t.catchall = (n) => t.clone({ ...t._zod.def, catchall: n }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: cn() }), t.loose = () => t.clone({ ...t._zod.def, catchall: cn() }), t.strict = () => t.clone({ ...t._zod.def, catchall: ds() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (n) => Su(t, n), t.safeExtend = (n) => zu(t, n), t.merge = (n) => ku(t, n), t.pick = (n) => wu(t, n), t.omit = (n) => bu(t, n), t.partial = (...n) => Iu(
|
|
4766
|
+
el.init(t, e), X.init(t, e), t._zod.processJSONSchema = (n, r, o) => If(t, n, r, o), T(t, "shape", () => e.shape), t.keyof = () => Zt(Object.keys(t._zod.def.shape)), t.catchall = (n) => t.clone({ ...t._zod.def, catchall: n }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: cn() }), t.loose = () => t.clone({ ...t._zod.def, catchall: cn() }), t.strict = () => t.clone({ ...t._zod.def, catchall: ds() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (n) => Su(t, n), t.safeExtend = (n) => zu(t, n), t.merge = (n) => ku(t, n), t.pick = (n) => wu(t, n), t.omit = (n) => bu(t, n), t.partial = (...n) => Iu(_s, t, n[0]), t.required = (...n) => Ou(gs, t, n[0]);
|
|
4767
4767
|
});
|
|
4768
4768
|
function yt(t, e) {
|
|
4769
4769
|
const n = {
|
|
@@ -4900,11 +4900,11 @@ function ms(t) {
|
|
|
4900
4900
|
transform: t
|
|
4901
4901
|
});
|
|
4902
4902
|
}
|
|
4903
|
-
const
|
|
4903
|
+
const _s = /* @__PURE__ */ y("ZodOptional", (t, e) => {
|
|
4904
4904
|
rs.init(t, e), X.init(t, e), t._zod.processJSONSchema = (n, r, o) => cs(t, n, r, o), t.unwrap = () => t._zod.def.innerType;
|
|
4905
4905
|
});
|
|
4906
4906
|
function ti(t) {
|
|
4907
|
-
return new
|
|
4907
|
+
return new _s({
|
|
4908
4908
|
type: "optional",
|
|
4909
4909
|
innerType: t
|
|
4910
4910
|
});
|
|
@@ -4951,11 +4951,11 @@ function Zd(t, e) {
|
|
|
4951
4951
|
}
|
|
4952
4952
|
});
|
|
4953
4953
|
}
|
|
4954
|
-
const
|
|
4954
|
+
const gs = /* @__PURE__ */ y("ZodNonOptional", (t, e) => {
|
|
4955
4955
|
dl.init(t, e), X.init(t, e), t._zod.processJSONSchema = (n, r, o) => xf(t, n, r, o), t.unwrap = () => t._zod.def.innerType;
|
|
4956
4956
|
});
|
|
4957
4957
|
function Ld(t, e) {
|
|
4958
|
-
return new
|
|
4958
|
+
return new gs({
|
|
4959
4959
|
type: "nonoptional",
|
|
4960
4960
|
innerType: t,
|
|
4961
4961
|
...z(e)
|
|
@@ -5213,7 +5213,7 @@ yt({
|
|
|
5213
5213
|
});
|
|
5214
5214
|
const yp = {
|
|
5215
5215
|
ATextInput: "text",
|
|
5216
|
-
|
|
5216
|
+
ATextboxInput: "text",
|
|
5217
5217
|
ANumericInput: "number",
|
|
5218
5218
|
ACheckbox: "boolean",
|
|
5219
5219
|
ADate: "date",
|
|
@@ -5225,7 +5225,8 @@ const yp = {
|
|
|
5225
5225
|
ADropdown: "select",
|
|
5226
5226
|
ACodeEditor: "code",
|
|
5227
5227
|
AFormLink: "link",
|
|
5228
|
-
AFileAttach: "attach"
|
|
5228
|
+
AFileAttach: "attach",
|
|
5229
|
+
AQuantityInput: "quantity"
|
|
5229
5230
|
}, mp = {
|
|
5230
5231
|
AFormLink: "inline",
|
|
5231
5232
|
AForm: "expand",
|
|
@@ -5296,7 +5297,7 @@ function H(t, e, n, r) {
|
|
|
5296
5297
|
done: !1
|
|
5297
5298
|
}, r;
|
|
5298
5299
|
}
|
|
5299
|
-
function
|
|
5300
|
+
function _t() {
|
|
5300
5301
|
return { value: void 0, done: !0 };
|
|
5301
5302
|
}
|
|
5302
5303
|
function Ss(t) {
|
|
@@ -5317,15 +5318,15 @@ function rr(t) {
|
|
|
5317
5318
|
if (typeof e == "function")
|
|
5318
5319
|
return e;
|
|
5319
5320
|
}
|
|
5320
|
-
function
|
|
5321
|
+
function _p(t) {
|
|
5321
5322
|
var e = rr(t);
|
|
5322
5323
|
return e && e === t.entries;
|
|
5323
5324
|
}
|
|
5324
|
-
function
|
|
5325
|
+
function gp(t) {
|
|
5325
5326
|
var e = rr(t);
|
|
5326
5327
|
return e && e === t.keys;
|
|
5327
5328
|
}
|
|
5328
|
-
var
|
|
5329
|
+
var gn = "delete", Z = 5, $t = 1 << Z, mt = $t - 1, D = {};
|
|
5329
5330
|
function Cr() {
|
|
5330
5331
|
return { value: !1 };
|
|
5331
5332
|
}
|
|
@@ -5365,12 +5366,12 @@ function Is(t) {
|
|
|
5365
5366
|
return t < 0 || t === 0 && 1 / t === -1 / 0;
|
|
5366
5367
|
}
|
|
5367
5368
|
var Os = "@@__IMMUTABLE_RECORD__@@";
|
|
5368
|
-
function
|
|
5369
|
+
function _e(t) {
|
|
5369
5370
|
return !!(t && // @ts-expect-error: maybeRecord is typed as `{}`, need to change in 6.0 to `maybeRecord && typeof maybeRecord === 'object' && IS_RECORD_SYMBOL in maybeRecord`
|
|
5370
5371
|
t[Os]);
|
|
5371
5372
|
}
|
|
5372
5373
|
function Wt(t) {
|
|
5373
|
-
return At(t) ||
|
|
5374
|
+
return At(t) || _e(t);
|
|
5374
5375
|
}
|
|
5375
5376
|
var ae = "@@__IMMUTABLE_ORDERED__@@";
|
|
5376
5377
|
function Bt(t) {
|
|
@@ -5424,7 +5425,7 @@ var zt = /* @__PURE__ */ (function(t) {
|
|
|
5424
5425
|
var i = o.length, s = 0;
|
|
5425
5426
|
return new N(function() {
|
|
5426
5427
|
if (s === i)
|
|
5427
|
-
return
|
|
5428
|
+
return _t();
|
|
5428
5429
|
var a = o[r ? i - ++s : s++];
|
|
5429
5430
|
return H(n, a[0], a[1]);
|
|
5430
5431
|
});
|
|
@@ -5433,14 +5434,14 @@ var zt = /* @__PURE__ */ (function(t) {
|
|
|
5433
5434
|
}, e;
|
|
5434
5435
|
})(ft), fe = /* @__PURE__ */ (function(t) {
|
|
5435
5436
|
function e(n) {
|
|
5436
|
-
return n == null ? eo().toKeyedSeq() : At(n) ? K(n) ? n.toSeq() : n.fromEntrySeq() :
|
|
5437
|
+
return n == null ? eo().toKeyedSeq() : At(n) ? K(n) ? n.toSeq() : n.fromEntrySeq() : _e(n) ? n.toSeq() : no(n);
|
|
5437
5438
|
}
|
|
5438
5439
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toKeyedSeq = function() {
|
|
5439
5440
|
return this;
|
|
5440
5441
|
}, e;
|
|
5441
5442
|
})(zt), Lt = /* @__PURE__ */ (function(t) {
|
|
5442
5443
|
function e(n) {
|
|
5443
|
-
return n == null ? eo() : At(n) ? K(n) ? n.entrySeq() : n.toIndexedSeq() :
|
|
5444
|
+
return n == null ? eo() : At(n) ? K(n) ? n.entrySeq() : n.toIndexedSeq() : _e(n) ? n.toSeq().entrySeq() : As(n);
|
|
5444
5445
|
}
|
|
5445
5446
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
|
|
5446
5447
|
return e(arguments);
|
|
@@ -5481,7 +5482,7 @@ var Te = /* @__PURE__ */ (function(t) {
|
|
|
5481
5482
|
var o = this._array, i = o.length, s = 0;
|
|
5482
5483
|
return new N(function() {
|
|
5483
5484
|
if (s === i)
|
|
5484
|
-
return
|
|
5485
|
+
return _t();
|
|
5485
5486
|
var a = r ? i - ++s : s++;
|
|
5486
5487
|
return H(n, a, o[a]);
|
|
5487
5488
|
});
|
|
@@ -5508,7 +5509,7 @@ var Te = /* @__PURE__ */ (function(t) {
|
|
|
5508
5509
|
var o = this._object, i = this._keys, s = i.length, a = 0;
|
|
5509
5510
|
return new N(function() {
|
|
5510
5511
|
if (a === s)
|
|
5511
|
-
return
|
|
5512
|
+
return _t();
|
|
5512
5513
|
var u = i[r ? s - ++a : a++];
|
|
5513
5514
|
return H(n, u, o[u]);
|
|
5514
5515
|
});
|
|
@@ -5532,7 +5533,7 @@ var wp = /* @__PURE__ */ (function(t) {
|
|
|
5532
5533
|
return this.cacheResult().__iterator(n, r);
|
|
5533
5534
|
var o = this._collection, i = Nr(o);
|
|
5534
5535
|
if (!ni(i))
|
|
5535
|
-
return new N(
|
|
5536
|
+
return new N(_t);
|
|
5536
5537
|
var s = 0;
|
|
5537
5538
|
return new N(function() {
|
|
5538
5539
|
var a = i.next();
|
|
@@ -5564,7 +5565,7 @@ function As(t) {
|
|
|
5564
5565
|
function bp(t) {
|
|
5565
5566
|
var e = ro(t);
|
|
5566
5567
|
if (e)
|
|
5567
|
-
return
|
|
5568
|
+
return _p(t) ? e.fromEntrySeq() : gp(t) ? e.toSetSeq() : e;
|
|
5568
5569
|
if (typeof t == "object")
|
|
5569
5570
|
return new to(t);
|
|
5570
5571
|
throw new TypeError(
|
|
@@ -5630,8 +5631,8 @@ function zp(t) {
|
|
|
5630
5631
|
return sr(e);
|
|
5631
5632
|
}
|
|
5632
5633
|
function kp(t) {
|
|
5633
|
-
var e =
|
|
5634
|
-
return e === void 0 && (e = Pr(t),
|
|
5634
|
+
var e = gr[t];
|
|
5635
|
+
return e === void 0 && (e = Pr(t), _r === xp && (_r = 0, gr = {}), _r++, gr[t] = e), e;
|
|
5635
5636
|
}
|
|
5636
5637
|
function Pr(t) {
|
|
5637
5638
|
for (var e = 0, n = 0; n < t.length; n++)
|
|
@@ -5703,7 +5704,7 @@ var Mr = typeof WeakMap == "function", Fr;
|
|
|
5703
5704
|
Mr && (Fr = /* @__PURE__ */ new WeakMap());
|
|
5704
5705
|
var ai = /* @__PURE__ */ Object.create(null), mr = 0, pe = "__immutablehash__";
|
|
5705
5706
|
typeof Symbol == "function" && (pe = Symbol(pe));
|
|
5706
|
-
var Ap = 16, xp = 255,
|
|
5707
|
+
var Ap = 16, xp = 255, _r = 0, gr = {}, ar = /* @__PURE__ */ (function(t) {
|
|
5707
5708
|
function e(n, r) {
|
|
5708
5709
|
this._iter = n, this._useKeys = r, this.size = n.size;
|
|
5709
5710
|
}
|
|
@@ -6007,24 +6008,24 @@ function io(t, e, n, r) {
|
|
|
6007
6008
|
return 0;
|
|
6008
6009
|
if (f)
|
|
6009
6010
|
return this.cacheResult().__iterate(l, f);
|
|
6010
|
-
var p = 0, h = !0,
|
|
6011
|
-
return t.__iterate(function(
|
|
6011
|
+
var p = 0, h = !0, _ = 0;
|
|
6012
|
+
return t.__iterate(function(g, j) {
|
|
6012
6013
|
if (!(h && (h = p++ < i)))
|
|
6013
|
-
return
|
|
6014
|
-
}),
|
|
6014
|
+
return _++, l(g, r ? j : _ - 1, d) !== !1 && _ !== u;
|
|
6015
|
+
}), _;
|
|
6015
6016
|
}, c.__iteratorUncached = function(l, f) {
|
|
6016
6017
|
if (u !== 0 && f)
|
|
6017
6018
|
return this.cacheResult().__iterator(l, f);
|
|
6018
6019
|
if (u === 0)
|
|
6019
|
-
return new N(
|
|
6020
|
+
return new N(_t);
|
|
6020
6021
|
var d = t.__iterator(l, f), p = 0, h = 0;
|
|
6021
6022
|
return new N(function() {
|
|
6022
6023
|
for (; p++ < i; )
|
|
6023
6024
|
d.next();
|
|
6024
6025
|
if (++h > u)
|
|
6025
|
-
return
|
|
6026
|
-
var
|
|
6027
|
-
return r || l === xt ||
|
|
6026
|
+
return _t();
|
|
6027
|
+
var _ = d.next();
|
|
6028
|
+
return r || l === xt || _.done ? _ : l === Ze ? H(l, h - 1, void 0, _) : H(l, h - 1, _.value[1], _);
|
|
6028
6029
|
});
|
|
6029
6030
|
}, c;
|
|
6030
6031
|
}
|
|
@@ -6047,12 +6048,12 @@ function Rp(t, e, n) {
|
|
|
6047
6048
|
var a = t.__iterator(Tt, i), u = !0;
|
|
6048
6049
|
return new N(function() {
|
|
6049
6050
|
if (!u)
|
|
6050
|
-
return
|
|
6051
|
+
return _t();
|
|
6051
6052
|
var c = a.next();
|
|
6052
6053
|
if (c.done)
|
|
6053
6054
|
return c;
|
|
6054
6055
|
var l = c.value, f = l[0], d = l[1];
|
|
6055
|
-
return e.call(n, d, f, s) ? o === Tt ? c : H(o, f, d, c) : (u = !1,
|
|
6056
|
+
return e.call(n, d, f, s) ? o === Tt ? c : H(o, f, d, c) : (u = !1, _t());
|
|
6056
6057
|
});
|
|
6057
6058
|
}, r;
|
|
6058
6059
|
}
|
|
@@ -6120,7 +6121,7 @@ var Np = /* @__PURE__ */ (function(t) {
|
|
|
6120
6121
|
}, e.prototype.__iteratorUncached = function(n, r) {
|
|
6121
6122
|
var o = this;
|
|
6122
6123
|
if (this._wrappedIterables.length === 0)
|
|
6123
|
-
return new N(
|
|
6124
|
+
return new N(_t);
|
|
6124
6125
|
if (r)
|
|
6125
6126
|
return this.cacheResult().__iterator(n, r);
|
|
6126
6127
|
var i = 0, s = this._wrappedIterables[i].__iterator(
|
|
@@ -6184,7 +6185,7 @@ function Ms(t, e, n) {
|
|
|
6184
6185
|
else
|
|
6185
6186
|
return n ? c : H(o, u++, l, c);
|
|
6186
6187
|
}
|
|
6187
|
-
return
|
|
6188
|
+
return _t();
|
|
6188
6189
|
});
|
|
6189
6190
|
}, r;
|
|
6190
6191
|
}
|
|
@@ -6265,7 +6266,7 @@ function Dn(t, e, n, r) {
|
|
|
6265
6266
|
return d.done;
|
|
6266
6267
|
}) : f.some(function(d) {
|
|
6267
6268
|
return d.done;
|
|
6268
|
-
})), l ?
|
|
6269
|
+
})), l ? _t() : H(
|
|
6269
6270
|
s,
|
|
6270
6271
|
c++,
|
|
6271
6272
|
e.apply(
|
|
@@ -6341,7 +6342,7 @@ function qs(t, e, n) {
|
|
|
6341
6342
|
var i = Mt(e[o]);
|
|
6342
6343
|
i.size !== 0 && r.push(i);
|
|
6343
6344
|
}
|
|
6344
|
-
return r.length === 0 ? t : t.toSeq().size === 0 && !t.__ownerID && r.length === 1 ?
|
|
6345
|
+
return r.length === 0 ? t : t.toSeq().size === 0 && !t.__ownerID && r.length === 1 ? _e(t) ? t : t.constructor(r[0]) : t.withMutations(function(s) {
|
|
6345
6346
|
for (var a = n ? function(c, l) {
|
|
6346
6347
|
Zs(
|
|
6347
6348
|
s,
|
|
@@ -6517,13 +6518,13 @@ var qe = /* @__PURE__ */ (function(t) {
|
|
|
6517
6518
|
return i++, n(s[1], s[0], o);
|
|
6518
6519
|
}, r), i;
|
|
6519
6520
|
}, e.prototype.__ensureOwner = function(n) {
|
|
6520
|
-
return n === this.__ownerID ? this : n ?
|
|
6521
|
+
return n === this.__ownerID ? this : n ? _o(this.size, this._root, n, this.__hash) : this.size === 0 ? Jt() : (this.__ownerID = n, this.__altered = !1, this);
|
|
6521
6522
|
}, e;
|
|
6522
6523
|
})(Mt);
|
|
6523
6524
|
qe.isMap = mo;
|
|
6524
6525
|
var V = qe.prototype;
|
|
6525
6526
|
V[Bs] = !0;
|
|
6526
|
-
V[
|
|
6527
|
+
V[gn] = V.remove;
|
|
6527
6528
|
V.removeAll = V.deleteAll;
|
|
6528
6529
|
V.setIn = po;
|
|
6529
6530
|
V.removeIn = V.deleteIn = bo;
|
|
@@ -6585,7 +6586,7 @@ je.prototype.update = function(t, e, n, r, o, i, s) {
|
|
|
6585
6586
|
var a = (e === 0 ? n : n >>> e) & mt, u = 1 << a, c = this.bitmap, l = (c & u) !== 0;
|
|
6586
6587
|
if (!l && o === D)
|
|
6587
6588
|
return this;
|
|
6588
|
-
var f = Ws(c & u - 1), d = this.nodes, p = l ? d[f] : void 0, h =
|
|
6589
|
+
var f = Ws(c & u - 1), d = this.nodes, p = l ? d[f] : void 0, h = go(
|
|
6589
6590
|
p,
|
|
6590
6591
|
t,
|
|
6591
6592
|
e + Z,
|
|
@@ -6603,8 +6604,8 @@ je.prototype.update = function(t, e, n, r, o, i, s) {
|
|
|
6603
6604
|
return d[f ^ 1];
|
|
6604
6605
|
if (l && h && d.length === 1 && hi(h))
|
|
6605
6606
|
return h;
|
|
6606
|
-
var
|
|
6607
|
-
return
|
|
6607
|
+
var _ = t && t === this.ownerID, g = l ? h ? c : c ^ u : c | u, j = l ? h ? Ks(d, f, h, _) : Hp(d, f, _) : Kp(d, f, h, _);
|
|
6608
|
+
return _ ? (this.bitmap = g, this.nodes = j, this) : new je(t, g, j);
|
|
6608
6609
|
};
|
|
6609
6610
|
var dn = function(t, e, n) {
|
|
6610
6611
|
this.ownerID = t, this.count = e, this.nodes = n;
|
|
@@ -6619,7 +6620,7 @@ dn.prototype.update = function(t, e, n, r, o, i, s) {
|
|
|
6619
6620
|
var a = (e === 0 ? n : n >>> e) & mt, u = o === D, c = this.nodes, l = c[a];
|
|
6620
6621
|
if (u && !l)
|
|
6621
6622
|
return this;
|
|
6622
|
-
var f =
|
|
6623
|
+
var f = go(
|
|
6623
6624
|
l,
|
|
6624
6625
|
t,
|
|
6625
6626
|
e + Z,
|
|
@@ -6721,7 +6722,7 @@ var Vp = /* @__PURE__ */ (function(t) {
|
|
|
6721
6722
|
}
|
|
6722
6723
|
r = this._stack = this._stack.__prev;
|
|
6723
6724
|
}
|
|
6724
|
-
return
|
|
6725
|
+
return _t();
|
|
6725
6726
|
}, e;
|
|
6726
6727
|
})(N);
|
|
6727
6728
|
function wr(t, e) {
|
|
@@ -6734,19 +6735,19 @@ function fi(t, e) {
|
|
|
6734
6735
|
__prev: e
|
|
6735
6736
|
};
|
|
6736
6737
|
}
|
|
6737
|
-
function
|
|
6738
|
+
function _o(t, e, n, r) {
|
|
6738
6739
|
var o = Object.create(V);
|
|
6739
6740
|
return o.size = t, o._root = e, o.__ownerID = n, o.__hash = r, o.__altered = !1, o;
|
|
6740
6741
|
}
|
|
6741
6742
|
var di;
|
|
6742
6743
|
function Jt() {
|
|
6743
|
-
return di || (di =
|
|
6744
|
+
return di || (di = _o(0));
|
|
6744
6745
|
}
|
|
6745
6746
|
function pi(t, e, n) {
|
|
6746
6747
|
var r, o;
|
|
6747
6748
|
if (t._root) {
|
|
6748
6749
|
var i = Cr(), s = Cr();
|
|
6749
|
-
if (r =
|
|
6750
|
+
if (r = go(
|
|
6750
6751
|
t._root,
|
|
6751
6752
|
t.__ownerID,
|
|
6752
6753
|
0,
|
|
@@ -6763,9 +6764,9 @@ function pi(t, e, n) {
|
|
|
6763
6764
|
return t;
|
|
6764
6765
|
o = 1, r = new fn(t.__ownerID, [[e, n]]);
|
|
6765
6766
|
}
|
|
6766
|
-
return t.__ownerID ? (t.size = o, t._root = r, t.__hash = void 0, t.__altered = !0, t) : r ?
|
|
6767
|
+
return t.__ownerID ? (t.size = o, t._root = r, t.__hash = void 0, t.__altered = !0, t) : r ? _o(o, r) : Jt();
|
|
6767
6768
|
}
|
|
6768
|
-
function
|
|
6769
|
+
function go(t, e, n, r, o, i, s, a) {
|
|
6769
6770
|
return t ? t.update(
|
|
6770
6771
|
e,
|
|
6771
6772
|
n,
|
|
@@ -7024,7 +7025,7 @@ var ur = /* @__PURE__ */ (function(t) {
|
|
|
7024
7025
|
var o = r ? this.size : 0, i = vi(this, r);
|
|
7025
7026
|
return new N(function() {
|
|
7026
7027
|
var s = i();
|
|
7027
|
-
return s === rn ?
|
|
7028
|
+
return s === rn ? _t() : H(n, r ? --o : o++, s);
|
|
7028
7029
|
});
|
|
7029
7030
|
}, e.prototype.__iterate = function(n, r) {
|
|
7030
7031
|
for (var o = r ? this.size : 0, i = vi(this, r), s; (s = i()) !== rn && n(s, r ? --o : o++, this) !== !1; )
|
|
@@ -7045,7 +7046,7 @@ var ur = /* @__PURE__ */ (function(t) {
|
|
|
7045
7046
|
ur.isList = Qs;
|
|
7046
7047
|
var ot = ur.prototype;
|
|
7047
7048
|
ot[Xs] = !0;
|
|
7048
|
-
ot[
|
|
7049
|
+
ot[gn] = ot.remove;
|
|
7049
7050
|
ot.merge = ot.concat;
|
|
7050
7051
|
ot.setIn = po;
|
|
7051
7052
|
ot.deleteIn = ot.removeIn = bo;
|
|
@@ -7118,18 +7119,18 @@ function vi(t, e) {
|
|
|
7118
7119
|
};
|
|
7119
7120
|
}
|
|
7120
7121
|
function u(c, l, f) {
|
|
7121
|
-
var d, p = c && c.array, h = f > n ? 0 : n - f >> l,
|
|
7122
|
-
return
|
|
7122
|
+
var d, p = c && c.array, h = f > n ? 0 : n - f >> l, _ = (r - f >> l) + 1;
|
|
7123
|
+
return _ > $t && (_ = $t), function() {
|
|
7123
7124
|
for (; ; ) {
|
|
7124
7125
|
if (d) {
|
|
7125
|
-
var
|
|
7126
|
-
if (
|
|
7127
|
-
return
|
|
7126
|
+
var g = d();
|
|
7127
|
+
if (g !== rn)
|
|
7128
|
+
return g;
|
|
7128
7129
|
d = null;
|
|
7129
7130
|
}
|
|
7130
|
-
if (h ===
|
|
7131
|
+
if (h === _)
|
|
7131
7132
|
return rn;
|
|
7132
|
-
var j = e ? --
|
|
7133
|
+
var j = e ? --_ : h++;
|
|
7133
7134
|
d = s(
|
|
7134
7135
|
p && p[j],
|
|
7135
7136
|
l - Z,
|
|
@@ -7215,11 +7216,11 @@ function ee(t, e, n) {
|
|
|
7215
7216
|
var p = t._tail, h = d < f ? ta(t, a - 1) : d > f ? new ne([], r) : p;
|
|
7216
7217
|
if (p && d > f && s < i && p.array.length) {
|
|
7217
7218
|
c = Ne(c, r);
|
|
7218
|
-
for (var
|
|
7219
|
-
var j = f >>>
|
|
7220
|
-
|
|
7219
|
+
for (var _ = c, g = u; g > Z; g -= Z) {
|
|
7220
|
+
var j = f >>> g & mt;
|
|
7221
|
+
_ = _.array[j] = Ne(_.array[j], r);
|
|
7221
7222
|
}
|
|
7222
|
-
|
|
7223
|
+
_.array[f >>> Z & mt] = p;
|
|
7223
7224
|
}
|
|
7224
7225
|
if (a < i && (h = h && h.removeAfter(r, 0, a)), s >= d)
|
|
7225
7226
|
s -= d, a -= d, u = Z, c = null, h = h && h.removeBefore(r, 0, s);
|
|
@@ -7285,7 +7286,7 @@ var Xt = /* @__PURE__ */ (function(t) {
|
|
|
7285
7286
|
})(qe);
|
|
7286
7287
|
Xt.isOrderedMap = ea;
|
|
7287
7288
|
Xt.prototype[ae] = !0;
|
|
7288
|
-
Xt.prototype[
|
|
7289
|
+
Xt.prototype[gn] = Xt.prototype.remove;
|
|
7289
7290
|
function So(t, e, n, r) {
|
|
7290
7291
|
var o = Object.create(Xt.prototype);
|
|
7291
7292
|
return o.size = t ? t.size : 0, o._map = t, o._list = e, o.__ownerID = n, o.__hash = r, o.__altered = !1, o;
|
|
@@ -7395,35 +7396,35 @@ var zo = /* @__PURE__ */ (function(t) {
|
|
|
7395
7396
|
var s = i.value;
|
|
7396
7397
|
return i = i.next, H(n, o++, s);
|
|
7397
7398
|
}
|
|
7398
|
-
return
|
|
7399
|
+
return _t();
|
|
7399
7400
|
});
|
|
7400
7401
|
}, e;
|
|
7401
7402
|
})(me);
|
|
7402
7403
|
zo.isStack = Lr;
|
|
7403
|
-
var
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7404
|
+
var gt = zo.prototype;
|
|
7405
|
+
gt[na] = !0;
|
|
7406
|
+
gt.shift = gt.pop;
|
|
7407
|
+
gt.unshift = gt.push;
|
|
7408
|
+
gt.unshiftAll = gt.pushAll;
|
|
7409
|
+
gt.withMutations = zn;
|
|
7410
|
+
gt.wasAltered = yo;
|
|
7411
|
+
gt.asImmutable = bn;
|
|
7412
|
+
gt["@@transducer/init"] = gt.asMutable = Sn;
|
|
7413
|
+
gt["@@transducer/step"] = function(t, e) {
|
|
7413
7414
|
return t.unshift(e);
|
|
7414
7415
|
};
|
|
7415
|
-
|
|
7416
|
+
gt["@@transducer/result"] = function(t) {
|
|
7416
7417
|
return t.asImmutable();
|
|
7417
7418
|
};
|
|
7418
7419
|
function Ye(t, e, n, r) {
|
|
7419
|
-
var o = Object.create(
|
|
7420
|
+
var o = Object.create(gt);
|
|
7420
7421
|
return o.size = t, o._head = e, o.__ownerID = n, o.__hash = r, o.__altered = !1, o;
|
|
7421
7422
|
}
|
|
7422
|
-
var
|
|
7423
|
+
var _i;
|
|
7423
7424
|
function jn() {
|
|
7424
|
-
return
|
|
7425
|
+
return _i || (_i = Ye(0));
|
|
7425
7426
|
}
|
|
7426
|
-
function
|
|
7427
|
+
function gi(t, e, n, r, o, i) {
|
|
7427
7428
|
return Ot(t.size), t.__iterate(function(s, a, u) {
|
|
7428
7429
|
o ? (o = !1, n = s) : n = e.call(r, n, s, a, u);
|
|
7429
7430
|
}, i), n;
|
|
@@ -7544,7 +7545,7 @@ var sh = /* @__PURE__ */ (function(t) {
|
|
|
7544
7545
|
var o = this.size, i = this._step, s = r ? this._start + (o - 1) * i : this._start, a = 0;
|
|
7545
7546
|
return new N(function() {
|
|
7546
7547
|
if (a === o)
|
|
7547
|
-
return
|
|
7548
|
+
return _t();
|
|
7548
7549
|
var u = s;
|
|
7549
7550
|
return s += r ? -i : i, H(n, r ? o - ++a : a++, u);
|
|
7550
7551
|
});
|
|
@@ -7659,7 +7660,7 @@ var cr = /* @__PURE__ */ (function(t) {
|
|
|
7659
7660
|
cr.isSet = ko;
|
|
7660
7661
|
var ct = cr.prototype;
|
|
7661
7662
|
ct[oa] = !0;
|
|
7662
|
-
ct[
|
|
7663
|
+
ct[gn] = ct.remove;
|
|
7663
7664
|
ct.merge = ct.concat = ct.union;
|
|
7664
7665
|
ct.withMutations = zn;
|
|
7665
7666
|
ct.asImmutable = bn;
|
|
@@ -7744,14 +7745,14 @@ function lh(t, e) {
|
|
|
7744
7745
|
function zi(t, e) {
|
|
7745
7746
|
return t ^ e + 2654435769 + (t << 6) + (t >> 2) | 0;
|
|
7746
7747
|
}
|
|
7747
|
-
function
|
|
7748
|
+
function ge(t, e) {
|
|
7748
7749
|
var n = function(r) {
|
|
7749
7750
|
t.prototype[r] = e[r];
|
|
7750
7751
|
};
|
|
7751
7752
|
return Object.keys(e).forEach(n), Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(e).forEach(n), t;
|
|
7752
7753
|
}
|
|
7753
7754
|
ft.Iterator = N;
|
|
7754
|
-
|
|
7755
|
+
ge(ft, {
|
|
7755
7756
|
// ### Conversion to other types
|
|
7756
7757
|
toArray: function() {
|
|
7757
7758
|
Ot(this.size);
|
|
@@ -7849,7 +7850,7 @@ _e(ft, {
|
|
|
7849
7850
|
return F(this, Ns(this, t, e));
|
|
7850
7851
|
},
|
|
7851
7852
|
reduce: function(t, e, n) {
|
|
7852
|
-
return
|
|
7853
|
+
return gi(
|
|
7853
7854
|
this,
|
|
7854
7855
|
t,
|
|
7855
7856
|
e,
|
|
@@ -7859,7 +7860,7 @@ _e(ft, {
|
|
|
7859
7860
|
);
|
|
7860
7861
|
},
|
|
7861
7862
|
reduceRight: function(t, e, n) {
|
|
7862
|
-
return
|
|
7863
|
+
return gi(
|
|
7863
7864
|
this,
|
|
7864
7865
|
t,
|
|
7865
7866
|
e,
|
|
@@ -8060,7 +8061,7 @@ pt.inspect = pt.toSource = function() {
|
|
|
8060
8061
|
};
|
|
8061
8062
|
pt.chain = pt.flatMap;
|
|
8062
8063
|
pt.contains = pt.includes;
|
|
8063
|
-
|
|
8064
|
+
ge(Mt, {
|
|
8064
8065
|
// ### More sequential methods
|
|
8065
8066
|
flip: function() {
|
|
8066
8067
|
return F(this, Rs(this));
|
|
@@ -8091,7 +8092,7 @@ kn.toJSON = ua;
|
|
|
8091
8092
|
kn.__toStringMapper = function(t, e) {
|
|
8092
8093
|
return pn(e) + ": " + pn(t);
|
|
8093
8094
|
};
|
|
8094
|
-
|
|
8095
|
+
ge(me, {
|
|
8095
8096
|
// ### Conversion to other types
|
|
8096
8097
|
toKeyedSeq: function() {
|
|
8097
8098
|
return new ar(this, !1);
|
|
@@ -8180,7 +8181,7 @@ _e(me, {
|
|
|
8180
8181
|
var Je = me.prototype;
|
|
8181
8182
|
Je[Jn] = !0;
|
|
8182
8183
|
Je[ae] = !0;
|
|
8183
|
-
|
|
8184
|
+
ge(Fe, {
|
|
8184
8185
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
8185
8186
|
get: function(t, e) {
|
|
8186
8187
|
return this.has(t) ? t : e;
|
|
@@ -8197,9 +8198,9 @@ var Ce = Fe.prototype;
|
|
|
8197
8198
|
Ce.has = pt.includes;
|
|
8198
8199
|
Ce.contains = Ce.includes;
|
|
8199
8200
|
Ce.keys = Ce.values;
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8201
|
+
ge(fe, kn);
|
|
8202
|
+
ge(Lt, Je);
|
|
8203
|
+
ge(Ue, Ce);
|
|
8203
8204
|
function ki() {
|
|
8204
8205
|
return qt(arguments);
|
|
8205
8206
|
}
|
|
@@ -8240,7 +8241,7 @@ function Ur() {
|
|
|
8240
8241
|
return Ii || (Ii = la(Ge()));
|
|
8241
8242
|
}
|
|
8242
8243
|
function fh(t) {
|
|
8243
|
-
if (
|
|
8244
|
+
if (_e(t))
|
|
8244
8245
|
throw new Error(
|
|
8245
8246
|
"Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
|
|
8246
8247
|
);
|
|
@@ -8287,7 +8288,7 @@ at.prototype.toString = function() {
|
|
|
8287
8288
|
return t + " }";
|
|
8288
8289
|
};
|
|
8289
8290
|
at.prototype.equals = function(t) {
|
|
8290
|
-
return this === t ||
|
|
8291
|
+
return this === t || _e(t) && Pe(this).equals(Pe(t));
|
|
8291
8292
|
};
|
|
8292
8293
|
at.prototype.hashCode = function() {
|
|
8293
8294
|
return Pe(this).hashCode();
|
|
@@ -8343,11 +8344,11 @@ at.prototype.__ensureOwner = function(t) {
|
|
|
8343
8344
|
var e = this._values.__ensureOwner(t);
|
|
8344
8345
|
return t ? Io(this, e, t) : (this.__ownerID = t, this._values = e, this);
|
|
8345
8346
|
};
|
|
8346
|
-
at.isRecord =
|
|
8347
|
+
at.isRecord = _e;
|
|
8347
8348
|
at.getDescriptiveName = Oo;
|
|
8348
8349
|
var q = at.prototype;
|
|
8349
8350
|
q[Os] = !0;
|
|
8350
|
-
q[
|
|
8351
|
+
q[gn] = q.remove;
|
|
8351
8352
|
q.deleteIn = q.removeIn = bo;
|
|
8352
8353
|
q.getIn = aa;
|
|
8353
8354
|
q.hasIn = pt.hasIn;
|
|
@@ -8414,20 +8415,20 @@ const ph = Ti("stonecrop-validation", () => {
|
|
|
8414
8415
|
}
|
|
8415
8416
|
async function a(l, f, d, p) {
|
|
8416
8417
|
i(l);
|
|
8417
|
-
const h = Object.freeze({ ...d }),
|
|
8418
|
+
const h = Object.freeze({ ...d }), _ = (g, j) => o(l, g, j);
|
|
8418
8419
|
try {
|
|
8419
|
-
await qa(f.clientHandler, { record: h, value: p, setError:
|
|
8420
|
-
} catch (
|
|
8420
|
+
await qa(f.clientHandler, { record: h, value: p, setError: _ });
|
|
8421
|
+
} catch (g) {
|
|
8421
8422
|
typeof console < "u" && console.error(
|
|
8422
8423
|
`Validation trigger "${l}" threw and was ignored (advisory — save is not blocked). Fix its clientHandler:`,
|
|
8423
|
-
|
|
8424
|
+
g
|
|
8424
8425
|
);
|
|
8425
8426
|
}
|
|
8426
8427
|
}
|
|
8427
8428
|
async function u(l, f, d) {
|
|
8428
8429
|
const p = [];
|
|
8429
|
-
for (const [h,
|
|
8430
|
-
|
|
8430
|
+
for (const [h, _] of Object.entries(l))
|
|
8431
|
+
_.on.includes(f) && p.push(a(h, _, d, d[f]));
|
|
8431
8432
|
await Promise.all(p);
|
|
8432
8433
|
}
|
|
8433
8434
|
async function c(l, f) {
|
|
@@ -8465,7 +8466,7 @@ function zr(t) {
|
|
|
8465
8466
|
}
|
|
8466
8467
|
const kr = /* @__PURE__ */ new WeakMap();
|
|
8467
8468
|
function mh(t, e = !1) {
|
|
8468
|
-
const n =
|
|
8469
|
+
const n = _n(e);
|
|
8469
8470
|
let r = "";
|
|
8470
8471
|
dt(yh(t), (s) => {
|
|
8471
8472
|
const a = zr(Nt(s));
|
|
@@ -8491,9 +8492,9 @@ function mh(t, e = !1) {
|
|
|
8491
8492
|
}
|
|
8492
8493
|
});
|
|
8493
8494
|
}
|
|
8494
|
-
const
|
|
8495
|
+
const _h = {
|
|
8495
8496
|
ATextInput: "text",
|
|
8496
|
-
|
|
8497
|
+
ATextboxInput: "text",
|
|
8497
8498
|
ANumericInput: "number",
|
|
8498
8499
|
ACheckbox: "boolean",
|
|
8499
8500
|
ADate: "date",
|
|
@@ -8505,18 +8506,19 @@ const gh = {
|
|
|
8505
8506
|
ADropdown: "select",
|
|
8506
8507
|
ACodeEditor: "code",
|
|
8507
8508
|
AFormLink: "link",
|
|
8508
|
-
AFileAttach: "attach"
|
|
8509
|
-
|
|
8509
|
+
AFileAttach: "attach",
|
|
8510
|
+
AQuantityInput: "quantity"
|
|
8511
|
+
}, gh = {
|
|
8510
8512
|
AFormLink: "inline",
|
|
8511
8513
|
AForm: "expand",
|
|
8512
8514
|
ATable: "expand"
|
|
8513
8515
|
};
|
|
8514
8516
|
[
|
|
8515
|
-
.../* @__PURE__ */ new Set([...Object.keys(
|
|
8517
|
+
.../* @__PURE__ */ new Set([...Object.keys(_h), ...Object.keys(gh)])
|
|
8516
8518
|
].toSorted();
|
|
8517
8519
|
function wh() {
|
|
8518
8520
|
let t = !1;
|
|
8519
|
-
const e =
|
|
8521
|
+
const e = _n(!1);
|
|
8520
8522
|
return (n, r) => {
|
|
8521
8523
|
if (e.value = r.value, t) return;
|
|
8522
8524
|
t = !0;
|
|
@@ -8550,7 +8552,7 @@ function Ir(t) {
|
|
|
8550
8552
|
}
|
|
8551
8553
|
const Or = /* @__PURE__ */ new WeakMap();
|
|
8552
8554
|
function Ih(t, e = !1) {
|
|
8553
|
-
const n =
|
|
8555
|
+
const n = _n(e);
|
|
8554
8556
|
let r = "";
|
|
8555
8557
|
dt(kh(t), (s) => {
|
|
8556
8558
|
const a = Ir(Nt(s));
|
|
@@ -8578,7 +8580,7 @@ function Ih(t, e = !1) {
|
|
|
8578
8580
|
}
|
|
8579
8581
|
function Oh() {
|
|
8580
8582
|
let t = !1;
|
|
8581
|
-
const e =
|
|
8583
|
+
const e = _n(!1);
|
|
8582
8584
|
return (n, r) => {
|
|
8583
8585
|
if (e.value = r.value, t) return;
|
|
8584
8586
|
t = !0;
|
|
@@ -8619,8 +8621,8 @@ const $h = { class: "aform" }, Eh = {
|
|
|
8619
8621
|
i.value[p] = h, r.value && (r.value[p] = h, n("update:data", { ...r.value }));
|
|
8620
8622
|
}, a = (p) => {
|
|
8621
8623
|
const h = {};
|
|
8622
|
-
for (const [
|
|
8623
|
-
["component", "primaryKey", "computed", "language", "hidden", "mode", "width"].includes(
|
|
8624
|
+
for (const [_, g] of Object.entries(p))
|
|
8625
|
+
["component", "primaryKey", "computed", "language", "hidden", "mode", "width"].includes(_) || (h[_] = g);
|
|
8624
8626
|
return p.kind === "table" && (h.rows = r.value[p.fieldname] || []), h;
|
|
8625
8627
|
}, u = (p) => {
|
|
8626
8628
|
if (p.kind !== "field") return {};
|
|
@@ -8636,40 +8638,40 @@ const $h = { class: "aform" }, Eh = {
|
|
|
8636
8638
|
get() {
|
|
8637
8639
|
return r.value?.[t.schema[h].fieldname];
|
|
8638
8640
|
},
|
|
8639
|
-
set: (
|
|
8640
|
-
const
|
|
8641
|
-
|
|
8641
|
+
set: (_) => {
|
|
8642
|
+
const g = t.schema[h].fieldname;
|
|
8643
|
+
g && r.value && (r.value[g] = _, n("update:data", { ...r.value })), n("update:schema", t.schema);
|
|
8642
8644
|
}
|
|
8643
8645
|
})));
|
|
8644
8646
|
});
|
|
8645
8647
|
const d = x(() => f.value);
|
|
8646
8648
|
return (p, h) => (P(), U("form", $h, [
|
|
8647
|
-
(P(!0), U($e, null, on(t.schema, (
|
|
8648
|
-
o(
|
|
8649
|
-
|
|
8650
|
-
(P(), Mn(Eo(
|
|
8651
|
-
data: i.value[
|
|
8652
|
-
mode: l(
|
|
8653
|
-
schema:
|
|
8654
|
-
label:
|
|
8655
|
-
collapsible:
|
|
8649
|
+
(P(!0), U($e, null, on(t.schema, (_, g) => (P(), U($e, { key: g }, [
|
|
8650
|
+
o(_) ? (P(), U("div", Eh, [
|
|
8651
|
+
_.label && _.kind !== "fieldset" ? (P(), U("h4", Ah, Vt(_.label), 1)) : ve("", !0),
|
|
8652
|
+
(P(), Mn(Eo(_.component ?? "AForm"), {
|
|
8653
|
+
data: i.value[_.fieldname],
|
|
8654
|
+
mode: l(_),
|
|
8655
|
+
schema: _.schema,
|
|
8656
|
+
label: _.label,
|
|
8657
|
+
collapsible: _.kind === "fieldset" ? _.collapsible : void 0,
|
|
8656
8658
|
errors: t.errors,
|
|
8657
|
-
"onUpdate:data": (j) => s(
|
|
8659
|
+
"onUpdate:data": (j) => s(_.fieldname, j)
|
|
8658
8660
|
}, null, 40, ["data", "mode", "schema", "label", "collapsible", "errors", "onUpdate:data"]))
|
|
8659
|
-
])) :
|
|
8661
|
+
])) : _.hidden ? ve("", !0) : (P(), Mn(Eo(_.component), _a({
|
|
8660
8662
|
key: 1,
|
|
8661
|
-
modelValue: d.value[
|
|
8662
|
-
"onUpdate:modelValue": (j) => d.value[
|
|
8663
|
-
style: u(
|
|
8664
|
-
schema:
|
|
8665
|
-
data: r.value[
|
|
8666
|
-
mode: l(
|
|
8667
|
-
errors: t.errors?.[
|
|
8668
|
-
}, { ref_for: !0 }, a(
|
|
8663
|
+
modelValue: d.value[g].value,
|
|
8664
|
+
"onUpdate:modelValue": (j) => d.value[g].value = j,
|
|
8665
|
+
style: u(_),
|
|
8666
|
+
schema: _,
|
|
8667
|
+
data: r.value[_.fieldname],
|
|
8668
|
+
mode: l(_),
|
|
8669
|
+
errors: t.errors?.[_.fieldname]
|
|
8670
|
+
}, { ref_for: !0 }, a(_)), null, 16, ["modelValue", "onUpdate:modelValue", "style", "schema", "data", "mode", "errors"]))
|
|
8669
8671
|
], 64))), 128))
|
|
8670
8672
|
]));
|
|
8671
8673
|
}
|
|
8672
|
-
}), Th = /* @__PURE__ */ bh(xh, [["__scopeId", "data-v-
|
|
8674
|
+
}), Th = /* @__PURE__ */ bh(xh, [["__scopeId", "data-v-bb17171c"]]), Dh = { class: "tabs" }, jh = { tabindex: "0" }, Rh = { tabindex: "0" }, Nh = /* @__PURE__ */ mn({
|
|
8673
8675
|
__name: "SheetNav",
|
|
8674
8676
|
props: {
|
|
8675
8677
|
breadcrumbs: { default: () => [] }
|
|
@@ -8688,7 +8690,7 @@ const $h = { class: "aform" }, Eh = {
|
|
|
8688
8690
|
}, l = () => {
|
|
8689
8691
|
};
|
|
8690
8692
|
return (f, d) => {
|
|
8691
|
-
const p =
|
|
8693
|
+
const p = ga("router-link");
|
|
8692
8694
|
return P(), U("footer", null, [
|
|
8693
8695
|
C("ul", Dh, [
|
|
8694
8696
|
C("li", {
|
|
@@ -8814,10 +8816,10 @@ const $h = { class: "aform" }, Eh = {
|
|
|
8814
8816
|
o = null;
|
|
8815
8817
|
}
|
|
8816
8818
|
const i = x(
|
|
8817
|
-
() =>
|
|
8819
|
+
() => g.value === "record" ? o?.errorsByField ?? {} : {}
|
|
8818
8820
|
), s = R(!1), a = R(!1), u = x({
|
|
8819
8821
|
get() {
|
|
8820
|
-
if (
|
|
8822
|
+
if (g.value === "doctypes")
|
|
8821
8823
|
return {
|
|
8822
8824
|
doctypes_table: t.availableDoctypes?.map((v) => ({
|
|
8823
8825
|
id: v,
|
|
@@ -8827,7 +8829,7 @@ const $h = { class: "aform" }, Eh = {
|
|
|
8827
8829
|
actions: "View Records"
|
|
8828
8830
|
})) ?? []
|
|
8829
8831
|
};
|
|
8830
|
-
if (
|
|
8832
|
+
if (g.value === "records") {
|
|
8831
8833
|
const v = t.recordIdField || "id";
|
|
8832
8834
|
return {
|
|
8833
8835
|
records_table: b().map(
|
|
@@ -8857,7 +8859,7 @@ const $h = { class: "aform" }, Eh = {
|
|
|
8857
8859
|
}
|
|
8858
8860
|
},
|
|
8859
8861
|
set(v) {
|
|
8860
|
-
if (
|
|
8862
|
+
if (g.value === "record" && !(!r.value || !d.value || !h.value))
|
|
8861
8863
|
try {
|
|
8862
8864
|
const m = r.value.registry.registry[d.value], O = /* @__PURE__ */ new Set();
|
|
8863
8865
|
if (m)
|
|
@@ -8913,7 +8915,7 @@ const $h = { class: "aform" }, Eh = {
|
|
|
8913
8915
|
return l.value.params.recordId.toString();
|
|
8914
8916
|
const v = l.value.params.pathMatch;
|
|
8915
8917
|
return v && v.length > 1 ? v[1] : "";
|
|
8916
|
-
}),
|
|
8918
|
+
}), _ = x(() => h.value?.startsWith("new-")), g = x(() => {
|
|
8917
8919
|
if (t.routeAdapter) return t.routeAdapter.getCurrentView();
|
|
8918
8920
|
if (!l.value || l.value.name === "home" || l.value.path === "/")
|
|
8919
8921
|
return "doctypes";
|
|
@@ -8972,7 +8974,7 @@ const $h = { class: "aform" }, Eh = {
|
|
|
8972
8974
|
}
|
|
8973
8975
|
}, L = x(() => {
|
|
8974
8976
|
const v = [];
|
|
8975
|
-
switch (
|
|
8977
|
+
switch (g.value) {
|
|
8976
8978
|
case "records":
|
|
8977
8979
|
v.push({
|
|
8978
8980
|
type: "button",
|
|
@@ -8995,17 +8997,17 @@ const $h = { class: "aform" }, Eh = {
|
|
|
8995
8997
|
return v;
|
|
8996
8998
|
}), it = x(() => {
|
|
8997
8999
|
const v = [];
|
|
8998
|
-
if (
|
|
9000
|
+
if (g.value === "records" && p.value)
|
|
8999
9001
|
v.push(
|
|
9000
9002
|
{ title: "Home", to: "/" },
|
|
9001
9003
|
{ title: nt(p.value), to: `/${p.value}` }
|
|
9002
9004
|
);
|
|
9003
|
-
else if (
|
|
9005
|
+
else if (g.value === "record" && p.value) {
|
|
9004
9006
|
const m = h.value ? `/${p.value}/${h.value}` : l.value?.fullPath ?? "";
|
|
9005
9007
|
v.push(
|
|
9006
9008
|
{ title: "Home", to: "/" },
|
|
9007
9009
|
{ title: nt(p.value), to: `/${p.value}` },
|
|
9008
|
-
{ title:
|
|
9010
|
+
{ title: _.value ? "New Record" : "Edit Record", to: m }
|
|
9009
9011
|
);
|
|
9010
9012
|
}
|
|
9011
9013
|
return v;
|
|
@@ -9139,7 +9141,7 @@ const $h = { class: "aform" }, Eh = {
|
|
|
9139
9141
|
const m = r.value.records(d.value)?.get("");
|
|
9140
9142
|
return m && typeof m == "object" && !Array.isArray(m) ? Object.values(m) : [];
|
|
9141
9143
|
}, S = x(() => {
|
|
9142
|
-
switch (
|
|
9144
|
+
switch (g.value) {
|
|
9143
9145
|
case "doctypes":
|
|
9144
9146
|
return A();
|
|
9145
9147
|
case "records":
|
|
@@ -9192,7 +9194,7 @@ const $h = { class: "aform" }, Eh = {
|
|
|
9192
9194
|
}
|
|
9193
9195
|
}
|
|
9194
9196
|
}, Ft = async () => {
|
|
9195
|
-
if (!(!r.value || !d.value ||
|
|
9197
|
+
if (!(!r.value || !d.value || _.value) && !r.value.getRecordById(d.value, h.value) && r.value.getClient()) {
|
|
9196
9198
|
s.value = !0;
|
|
9197
9199
|
try {
|
|
9198
9200
|
await r.value.getRecord(d.value, h.value);
|
|
@@ -9204,9 +9206,9 @@ const $h = { class: "aform" }, Eh = {
|
|
|
9204
9206
|
}
|
|
9205
9207
|
};
|
|
9206
9208
|
dt(
|
|
9207
|
-
[
|
|
9209
|
+
[g, d, h],
|
|
9208
9210
|
() => {
|
|
9209
|
-
|
|
9211
|
+
g.value === "records" && d.value ? n("load-records", { doctype: d.value }) : g.value === "record" && d.value && h.value && (n("load-record", { doctype: d.value, recordId: h.value }), Ft());
|
|
9210
9212
|
},
|
|
9211
9213
|
{ immediate: !0 }
|
|
9212
9214
|
), dt([d, h], () => {
|
|
@@ -9272,7 +9274,7 @@ const $h = { class: "aform" }, Eh = {
|
|
|
9272
9274
|
schema: S.value,
|
|
9273
9275
|
errors: i.value
|
|
9274
9276
|
}, null, 8, ["data", "schema", "errors"])) : Nn(r) ? (P(), U("div", Ph, [
|
|
9275
|
-
C("p", null, "Loading " + Vt(
|
|
9277
|
+
C("p", null, "Loading " + Vt(g.value) + " data...", 1)
|
|
9276
9278
|
])) : (P(), U("div", Ch, [...m[2] || (m[2] = [
|
|
9277
9279
|
C("p", null, "Initializing Stonecrop...", -1)
|
|
9278
9280
|
])])),
|
|
@@ -9294,7 +9296,7 @@ const $h = { class: "aform" }, Eh = {
|
|
|
9294
9296
|
}, 8, ["is-open"])
|
|
9295
9297
|
]));
|
|
9296
9298
|
}
|
|
9297
|
-
}),
|
|
9299
|
+
}), qh = {
|
|
9298
9300
|
install: (t) => {
|
|
9299
9301
|
t.component("ActionSet", ji), t.component("CommandPalette", Ri), t.component("Desktop", Mh), t.component("SheetNav", fa);
|
|
9300
9302
|
}
|
|
@@ -9304,6 +9306,6 @@ export {
|
|
|
9304
9306
|
Ri as CommandPalette,
|
|
9305
9307
|
Mh as Desktop,
|
|
9306
9308
|
fa as SheetNav,
|
|
9307
|
-
|
|
9309
|
+
qh as StonecropDesktop
|
|
9308
9310
|
};
|
|
9309
9311
|
//# sourceMappingURL=desktop.js.map
|