@propriety/court-calendar 1.0.119 → 1.0.121
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/index.mjs
CHANGED
|
@@ -199,7 +199,7 @@ function hd() {
|
|
|
199
199
|
hd.__r = 0;
|
|
200
200
|
}
|
|
201
201
|
function Fo(t, e, n, r, f, u, d, l, i, o) {
|
|
202
|
-
var v, y, H, z, j, p,
|
|
202
|
+
var v, y, H, z, j, p, O, m = r && r.__k || Go, L = m.length;
|
|
203
203
|
for (n.__k = [], v = 0; v < e.length; v++) if ((z = n.__k[v] = (z = e[v]) == null || typeof z == "boolean" ? null : typeof z == "string" || typeof z == "number" || typeof z == "bigint" ? id(null, z, null, null, z) : Array.isArray(z) ? id(at, { children: z }, null, null, null) : z.__b > 0 ? id(z.type, z.props, z.key, z.ref ? z.ref : null, z.__v) : z) != null) {
|
|
204
204
|
if (z.__ = n, z.__b = n.__b + 1, (H = m[v]) === null || H && z.key == H.key && z.type === H.type) m[v] = void 0;
|
|
205
205
|
else for (y = 0; y < L; y++) {
|
|
@@ -209,10 +209,10 @@ function Fo(t, e, n, r, f, u, d, l, i, o) {
|
|
|
209
209
|
}
|
|
210
210
|
H = null;
|
|
211
211
|
}
|
|
212
|
-
Al(t, z, H = H || pd, f, u, d, l, i, o), j = z.__e, (y = z.ref) && H.ref != y && (
|
|
212
|
+
Al(t, z, H = H || pd, f, u, d, l, i, o), j = z.__e, (y = z.ref) && H.ref != y && (O || (O = []), H.ref && O.push(H.ref, null, z), O.push(y, z.__c || j, z)), j != null ? (p == null && (p = j), typeof z.type == "function" && z.__k === H.__k ? z.__d = i = Yo(z, i, t) : i = Co(t, z, H, m, j, i), typeof n.type == "function" && (n.__d = i)) : i && H.__e == i && i.parentNode != t && (i = ou(H));
|
|
213
213
|
}
|
|
214
214
|
for (n.__e = p, v = L; v--; ) m[v] != null && (typeof n.type == "function" && m[v].__e != null && m[v].__e == n.__d && (n.__d = Ko(r).nextSibling), Ao(m[v], m[v]));
|
|
215
|
-
if (
|
|
215
|
+
if (O) for (v = 0; v < O.length; v++) Bo(O[v], O[++v], O[++v]);
|
|
216
216
|
}
|
|
217
217
|
function Yo(t, e, n) {
|
|
218
218
|
for (var r, f = t.__k, u = 0; f && u < f.length; u++) (r = f[u]) && (r.__ = t, e = typeof r.type == "function" ? Yo(r, e, n) : Co(n, r, r, f, r.__e, e));
|
|
@@ -242,25 +242,25 @@ function Ko(t) {
|
|
|
242
242
|
return null;
|
|
243
243
|
}
|
|
244
244
|
function Al(t, e, n, r, f, u, d, l, i) {
|
|
245
|
-
var o, v, y, H, z, j, p,
|
|
245
|
+
var o, v, y, H, z, j, p, O, m, L, q, w, k, J, B, M = e.type;
|
|
246
246
|
if (e.constructor !== void 0) return null;
|
|
247
247
|
n.__h != null && (i = n.__h, l = e.__e = n.__e, e.__h = null, u = [l]), (o = Me.__b) && o(e);
|
|
248
248
|
try {
|
|
249
249
|
e: if (typeof M == "function") {
|
|
250
|
-
if (
|
|
250
|
+
if (O = e.props, m = (o = M.contextType) && r[o.__c], L = o ? m ? m.props.value : o.__ : r, n.__c ? p = (v = e.__c = n.__c).__ = v.__E : ("prototype" in M && M.prototype.render ? e.__c = v = new M(O, L) : (e.__c = v = new Xn(O, L), v.constructor = M, v.render = I9), m && m.sub(v), v.props = O, v.state || (v.state = {}), v.context = L, v.__n = r, y = v.__d = !0, v.__h = [], v._sb = []), v.__s == null && (v.__s = v.state), M.getDerivedStateFromProps != null && (v.__s == v.state && (v.__s = mr({}, v.__s)), mr(v.__s, M.getDerivedStateFromProps(O, v.__s))), H = v.props, z = v.state, v.__v = e, y) M.getDerivedStateFromProps == null && v.componentWillMount != null && v.componentWillMount(), v.componentDidMount != null && v.__h.push(v.componentDidMount);
|
|
251
251
|
else {
|
|
252
|
-
if (M.getDerivedStateFromProps == null &&
|
|
253
|
-
for (e.__v !== n.__v && (v.props =
|
|
252
|
+
if (M.getDerivedStateFromProps == null && O !== H && v.componentWillReceiveProps != null && v.componentWillReceiveProps(O, L), !v.__e && v.shouldComponentUpdate != null && v.shouldComponentUpdate(O, v.__s, L) === !1 || e.__v === n.__v) {
|
|
253
|
+
for (e.__v !== n.__v && (v.props = O, v.state = v.__s, v.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(ae) {
|
|
254
254
|
ae && (ae.__ = e);
|
|
255
255
|
}), q = 0; q < v._sb.length; q++) v.__h.push(v._sb[q]);
|
|
256
256
|
v._sb = [], v.__h.length && d.push(v);
|
|
257
257
|
break e;
|
|
258
258
|
}
|
|
259
|
-
v.componentWillUpdate != null && v.componentWillUpdate(
|
|
259
|
+
v.componentWillUpdate != null && v.componentWillUpdate(O, v.__s, L), v.componentDidUpdate != null && v.__h.push(function() {
|
|
260
260
|
v.componentDidUpdate(H, z, j);
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
|
-
if (v.context = L, v.props =
|
|
263
|
+
if (v.context = L, v.props = O, v.__P = t, w = Me.__r, k = 0, "prototype" in M && M.prototype.render) {
|
|
264
264
|
for (v.state = v.__s, v.__d = !1, w && w(e), o = v.render(v.props, v.state, v.context), J = 0; J < v._sb.length; J++) v.__h.push(v._sb[J]);
|
|
265
265
|
v._sb = [];
|
|
266
266
|
} else do
|
|
@@ -1170,8 +1170,8 @@ class QP {
|
|
|
1170
1170
|
let o = this.format(e, r), v = this.format(n, r);
|
|
1171
1171
|
if (o === v)
|
|
1172
1172
|
return o;
|
|
1173
|
-
let y = n5(u, i), H = Yi(y, d, r), z = H(e), j = H(n), p = r5(o, z, v, j),
|
|
1174
|
-
return p ? p.before + z +
|
|
1173
|
+
let y = n5(u, i), H = Yi(y, d, r), z = H(e), j = H(n), p = r5(o, z, v, j), O = d.separator || f || r.defaultSeparator || "";
|
|
1174
|
+
return p ? p.before + z + O + j + p.after : o + O + v;
|
|
1175
1175
|
}
|
|
1176
1176
|
getSmallestUnit() {
|
|
1177
1177
|
switch (this.smallestUnitNum) {
|
|
@@ -3142,14 +3142,14 @@ function wl(t, e, n, r) {
|
|
|
3142
3142
|
o[y.defId].display === "inverse-background" && (y.groupId ? (f[y.groupId] = [], d[y.groupId] || (d[y.groupId] = y)) : u[v] = []);
|
|
3143
3143
|
}
|
|
3144
3144
|
for (let v in t.instances) {
|
|
3145
|
-
let y = t.instances[v], H = t.defs[y.defId], z = o[H.defId], j = y.range, p = !H.allDay && r ? cc(j, r) : j,
|
|
3146
|
-
|
|
3145
|
+
let y = t.instances[v], H = t.defs[y.defId], z = o[H.defId], j = y.range, p = !H.allDay && r ? cc(j, r) : j, O = Wr(p, n);
|
|
3146
|
+
O && (z.display === "inverse-background" ? H.groupId ? f[H.groupId].push(O) : u[y.defId].push(O) : z.display !== "none" && (z.display === "background" ? l : i).push({
|
|
3147
3147
|
def: H,
|
|
3148
3148
|
ui: z,
|
|
3149
3149
|
instance: y,
|
|
3150
|
-
range:
|
|
3151
|
-
isStart: p.start && p.start.valueOf() ===
|
|
3152
|
-
isEnd: p.end && p.end.valueOf() ===
|
|
3150
|
+
range: O,
|
|
3151
|
+
isStart: p.start && p.start.valueOf() === O.start.valueOf(),
|
|
3152
|
+
isEnd: p.end && p.end.valueOf() === O.end.valueOf()
|
|
3153
3153
|
}));
|
|
3154
3154
|
}
|
|
3155
3155
|
for (let v in f) {
|
|
@@ -3227,8 +3227,8 @@ function s8(t, e) {
|
|
|
3227
3227
|
function lu(t, e, n, r, f, u, d) {
|
|
3228
3228
|
let { dateEnv: l, options: i } = n, { displayEventTime: o, displayEventEnd: v } = i, y = t.eventRange.def, H = t.eventRange.instance;
|
|
3229
3229
|
o == null && (o = r !== !1), v == null && (v = f !== !1);
|
|
3230
|
-
let z = H.range.start, j = H.range.end, p = u || t.start || t.eventRange.range.start,
|
|
3231
|
-
return o && !y.allDay && (m || L) ? (p = m ? z : p,
|
|
3230
|
+
let z = H.range.start, j = H.range.end, p = u || t.start || t.eventRange.range.start, O = d || t.end || t.eventRange.range.end, m = ot(z).valueOf() === ot(p).valueOf(), L = ot(Rr(j, -1)).valueOf() === ot(Rr(O, -1)).valueOf();
|
|
3231
|
+
return o && !y.allDay && (m || L) ? (p = m ? z : p, O = L ? j : O, v && y.hasEnd ? l.formatRange(p, O, e, {
|
|
3232
3232
|
forcedStartTzo: u ? null : H.forcedStartTzo,
|
|
3233
3233
|
forcedEndTzo: d ? null : H.forcedEndTzo
|
|
3234
3234
|
}) : l.format(p, e, {
|
|
@@ -4208,11 +4208,11 @@ class Mv {
|
|
|
4208
4208
|
const p = n[j];
|
|
4209
4209
|
if (!f && p >= l + this.getEntryThickness(e))
|
|
4210
4210
|
break;
|
|
4211
|
-
let
|
|
4211
|
+
let O = r[j], m, L = Rl(O, e.span.start, kl), q = L[0] + L[1];
|
|
4212
4212
|
for (
|
|
4213
4213
|
;
|
|
4214
4214
|
// loop through entries that horizontally intersect
|
|
4215
|
-
(m =
|
|
4215
|
+
(m = O[q]) && // but not past the whole entry list
|
|
4216
4216
|
m.span.start < e.span.end;
|
|
4217
4217
|
) {
|
|
4218
4218
|
let w = p + this.getEntryThickness(m);
|
|
@@ -4571,13 +4571,13 @@ function B8(t, e, n, r) {
|
|
|
4571
4571
|
r && (o = Pr(o, r));
|
|
4572
4572
|
let v = C5(t.eventStore, u.affectedEvents.instances), y = v.defs, H = v.instances, z = Dd(y, t.eventUiBases);
|
|
4573
4573
|
for (let j in i) {
|
|
4574
|
-
let p = i[j],
|
|
4575
|
-
if (!Cv(m.constraints,
|
|
4574
|
+
let p = i[j], O = p.range, m = o[p.defId], L = l[p.defId];
|
|
4575
|
+
if (!Cv(m.constraints, O, v, t.businessHours, e))
|
|
4576
4576
|
return !1;
|
|
4577
4577
|
let { eventOverlap: q } = e.options, w = typeof q == "function" ? q : null;
|
|
4578
4578
|
for (let J in H) {
|
|
4579
4579
|
let B = H[J];
|
|
4580
|
-
if (lc(
|
|
4580
|
+
if (lc(O, B.range) && (z[B.defId].overlap === !1 && u.isEvent || m.overlap === !1 || w && !w(
|
|
4581
4581
|
new pt(e, y[B.defId], B),
|
|
4582
4582
|
// still event
|
|
4583
4583
|
new pt(e, L, p)
|
|
@@ -5750,7 +5750,7 @@ function la(t, e, n, r, f, u) {
|
|
|
5750
5750
|
}
|
|
5751
5751
|
function t6(t, e, n, r, f, u) {
|
|
5752
5752
|
let d = e.direction === "rtl", l = e.customButtons || {}, i = n.buttonText || {}, o = e.buttonText || {}, v = n.buttonHints || {}, y = e.buttonHints || {}, H = t ? t.split(" ") : [], z = [], j = !1;
|
|
5753
|
-
return { widgets: H.map((
|
|
5753
|
+
return { widgets: H.map((O) => O.split(",").map((m) => {
|
|
5754
5754
|
if (m === "title")
|
|
5755
5755
|
return j = !0, { buttonName: m };
|
|
5756
5756
|
let L, q, w, k, J, B;
|
|
@@ -6108,7 +6108,7 @@ class h6 {
|
|
|
6108
6108
|
this.data && this.data.dateProfileGenerator !== i.dateProfileGenerator && (y = i.dateProfileGenerator.build(v)), v = Mz(v, e), y = Iz(y, e, v, i.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
|
|
6109
6109
|
e.type === "NEXT" || // "
|
|
6110
6110
|
!or(y.currentRange, v)) && (v = y.currentRange.start);
|
|
6111
|
-
let H = Ez(r.eventSources, e, y, o), z = E5(r.eventStore, e, H, y, o), p = d7(H) && !i.options.progressiveEventRendering && r.renderableEventStore || z, { eventUiSingleBase:
|
|
6111
|
+
let H = Ez(r.eventSources, e, y, o), z = E5(r.eventStore, e, H, y, o), p = d7(H) && !i.options.progressiveEventRendering && r.renderableEventStore || z, { eventUiSingleBase: O, selectionConfig: m } = this.buildViewUiProps(o), L = this.buildEventUiBySource(H), q = this.buildEventUiBases(p.defs, O, L), w = {
|
|
6112
6112
|
dynamicOptionOverrides: u,
|
|
6113
6113
|
currentViewType: l,
|
|
6114
6114
|
currentDate: v,
|
|
@@ -6167,8 +6167,8 @@ class h6 {
|
|
|
6167
6167
|
e,
|
|
6168
6168
|
n
|
|
6169
6169
|
]), H = {}, z = this.currentCalendarOptionsInput, j = this.currentCalendarOptionsRefined, p = !1;
|
|
6170
|
-
for (let
|
|
6171
|
-
this.optionsForRefining.indexOf(
|
|
6170
|
+
for (let O in y)
|
|
6171
|
+
this.optionsForRefining.indexOf(O) === -1 && (y[O] === z[O] || Ur[O] && O in z && Ur[O](z[O], y[O])) ? H[O] = j[O] : o[O] ? (H[O] = o[O](y[O]), p = !0) : v[O] = z[O];
|
|
6172
6172
|
return p && (this.currentCalendarOptionsInput = y, this.currentCalendarOptionsRefined = H, this.stableOptionOverrides = e, this.stableDynamicOptionOverrides = n), this.optionsForHandling.push(...this.optionsForRefining), this.optionsForRefining = [], {
|
|
6173
6173
|
rawOptions: this.currentCalendarOptionsInput,
|
|
6174
6174
|
refinedOptions: this.currentCalendarOptionsRefined,
|
|
@@ -6891,7 +6891,7 @@ function B6(t, e, n, r, f, u, d) {
|
|
|
6891
6891
|
}
|
|
6892
6892
|
}) : o.push(L);
|
|
6893
6893
|
}
|
|
6894
|
-
let v = l.addSegs(i), y = l.toRects(), { singleColPlacements: H, multiColPlacements: z, leftoverMargins: j } = A6(y, t, d), p = [],
|
|
6894
|
+
let v = l.addSegs(i), y = l.toRects(), { singleColPlacements: H, multiColPlacements: z, leftoverMargins: j } = A6(y, t, d), p = [], O = [];
|
|
6895
6895
|
for (let m of o) {
|
|
6896
6896
|
z[m.firstCol].push({
|
|
6897
6897
|
seg: m,
|
|
@@ -6930,8 +6930,8 @@ function B6(t, e, n, r, f, u, d) {
|
|
|
6930
6930
|
});
|
|
6931
6931
|
}
|
|
6932
6932
|
for (let m = 0; m < d.length; m += 1)
|
|
6933
|
-
|
|
6934
|
-
return { singleColPlacements: H, multiColPlacements: z, moreCnts: p, moreMarginTops:
|
|
6933
|
+
O.push(j[m]);
|
|
6934
|
+
return { singleColPlacements: H, multiColPlacements: z, moreCnts: p, moreMarginTops: O };
|
|
6935
6935
|
}
|
|
6936
6936
|
function A6(t, e, n) {
|
|
6937
6937
|
let r = _6(t, n.length), f = [], u = [], d = [];
|
|
@@ -6950,14 +6950,14 @@ function A6(t, e, n) {
|
|
|
6950
6950
|
let H = [];
|
|
6951
6951
|
v = 0, y = 0;
|
|
6952
6952
|
for (let z of i) {
|
|
6953
|
-
let j = e[z.index], p = z.span.end - z.span.start > 1,
|
|
6954
|
-
y += z.levelCoord - v, v = z.levelCoord + z.thickness, p ? (y += z.thickness,
|
|
6953
|
+
let j = e[z.index], p = z.span.end - z.span.start > 1, O = z.span.start === l;
|
|
6954
|
+
y += z.levelCoord - v, v = z.levelCoord + z.thickness, p ? (y += z.thickness, O && H.push({
|
|
6955
6955
|
seg: Nf(j, z.span.start, z.span.end, n),
|
|
6956
6956
|
isVisible: !0,
|
|
6957
6957
|
isAbsolute: !0,
|
|
6958
6958
|
absoluteTop: z.levelCoord,
|
|
6959
6959
|
marginTop: 0
|
|
6960
|
-
})) :
|
|
6960
|
+
})) : O && (H.push({
|
|
6961
6961
|
seg: Nf(j, z.span.start, z.span.end, n),
|
|
6962
6962
|
isVisible: !0,
|
|
6963
6963
|
isAbsolute: !1,
|
|
@@ -7036,9 +7036,9 @@ class H7 extends Un {
|
|
|
7036
7036
|
"tr",
|
|
7037
7037
|
{ ref: this.rootElRef, role: "row" },
|
|
7038
7038
|
e.renderIntro && e.renderIntro(),
|
|
7039
|
-
e.cells.map((p,
|
|
7040
|
-
let m = this.renderFgSegs(
|
|
7041
|
-
return N(C6, { key: p.key, elRef: this.cellElRefs.createRef(p.key), innerElRef: this.frameElRefs.createRef(p.key), dateProfile: e.dateProfile, date: p.date, showDayNumber: e.showDayNumbers, showWeekNumber: e.showWeekNumbers &&
|
|
7039
|
+
e.cells.map((p, O) => {
|
|
7040
|
+
let m = this.renderFgSegs(O, e.forPrint ? v[O] : y[O], e.todayRange, j), L = this.renderFgSegs(O, eb(o[O], y), e.todayRange, {}, !!e.eventDrag, !!e.eventResize, !1);
|
|
7041
|
+
return N(C6, { key: p.key, elRef: this.cellElRefs.createRef(p.key), innerElRef: this.frameElRefs.createRef(p.key), dateProfile: e.dateProfile, date: p.date, showDayNumber: e.showDayNumbers, showWeekNumber: e.showWeekNumbers && O === 0, forceDayTop: e.showWeekNumbers, todayRange: e.todayRange, eventSelection: e.eventSelection, eventDrag: e.eventDrag, eventResize: e.eventResize, extraRenderProps: p.extraRenderProps, extraDataAttrs: p.extraDataAttrs, extraClassNames: p.extraClassNames, extraDateSpan: p.extraDateSpan, moreCnt: H[O], moreMarginTop: z[O], singlePlacements: v[O], fgContentElRef: this.fgElRefs.createRef(p.key), fgContent: (
|
|
7042
7042
|
// Fragment scopes the keys
|
|
7043
7043
|
N(
|
|
7044
7044
|
at,
|
|
@@ -7051,9 +7051,9 @@ class H7 extends Un {
|
|
|
7051
7051
|
N(
|
|
7052
7052
|
at,
|
|
7053
7053
|
null,
|
|
7054
|
-
this.renderFillSegs(i[
|
|
7055
|
-
this.renderFillSegs(d[
|
|
7056
|
-
this.renderFillSegs(l[
|
|
7054
|
+
this.renderFillSegs(i[O], "highlight"),
|
|
7055
|
+
this.renderFillSegs(d[O], "non-business"),
|
|
7056
|
+
this.renderFillSegs(l[O], "bg-event")
|
|
7057
7057
|
)
|
|
7058
7058
|
), minHeight: e.cellMinHeight });
|
|
7059
7059
|
})
|
|
@@ -7081,14 +7081,14 @@ class H7 extends Un {
|
|
|
7081
7081
|
let { context: i } = this, { eventSelection: o } = this.props, { framePositions: v } = this.state, y = this.props.cells.length === 1, H = u || d || l, z = [];
|
|
7082
7082
|
if (v)
|
|
7083
7083
|
for (let j of n) {
|
|
7084
|
-
let { seg: p } = j, { instanceId:
|
|
7084
|
+
let { seg: p } = j, { instanceId: O } = p.eventRange.instance, m = j.isVisible && !f[O], L = j.isAbsolute, q = "", w = "";
|
|
7085
7085
|
L && (i.isRtl ? (w = 0, q = v.lefts[p.lastCol] - v.lefts[p.firstCol]) : (q = 0, w = v.rights[p.firstCol] - v.rights[p.lastCol])), z.push(N("div", { className: "fc-daygrid-event-harness" + (L ? " fc-daygrid-event-harness-abs" : ""), key: y7(p), ref: H ? null : this.segHarnessRefs.createRef(X7(p)), style: {
|
|
7086
7086
|
visibility: m ? "" : "hidden",
|
|
7087
7087
|
marginTop: L ? "" : j.marginTop,
|
|
7088
7088
|
top: L ? j.absoluteTop : "",
|
|
7089
7089
|
left: q,
|
|
7090
7090
|
right: w
|
|
7091
|
-
} }, P7(p) ? N(b7, Object.assign({ seg: p, isDragging: u, isSelected:
|
|
7091
|
+
} }, P7(p) ? N(b7, Object.assign({ seg: p, isDragging: u, isSelected: O === o, defaultDisplayEventEnd: y }, vr(p, r))) : N(z7, Object.assign({ seg: p, isDragging: u, isResizing: d, isDateSelecting: l, isSelected: O === o, defaultDisplayEventEnd: y }, vr(p, r)))));
|
|
7092
7092
|
}
|
|
7093
7093
|
return z;
|
|
7094
7094
|
}
|
|
@@ -7668,9 +7668,9 @@ class pb extends Un {
|
|
|
7668
7668
|
N(sf, {
|
|
7669
7669
|
unit: j ? "minute" : "day"
|
|
7670
7670
|
/* hacky */
|
|
7671
|
-
}, (
|
|
7672
|
-
let m = j && l && l.safeComputeTop(
|
|
7673
|
-
return typeof m == "number" ? N(Tc, { elClasses: ["fc-timegrid-now-indicator-arrow"], elStyle: { top: m }, isAxis: !0, date:
|
|
7671
|
+
}, (O) => {
|
|
7672
|
+
let m = j && l && l.safeComputeTop(O);
|
|
7673
|
+
return typeof m == "number" ? N(Tc, { elClasses: ["fc-timegrid-now-indicator-arrow"], elStyle: { top: m }, isAxis: !0, date: O }) : null;
|
|
7674
7674
|
})
|
|
7675
7675
|
)
|
|
7676
7676
|
)
|
|
@@ -8025,13 +8025,13 @@ class Sb extends st {
|
|
|
8025
8025
|
return l.forPrint ? j7(e, l) : this.renderPositionedFgSegs(e, n, r, f, u, d);
|
|
8026
8026
|
}
|
|
8027
8027
|
renderPositionedFgSegs(e, n, r, f, u, d) {
|
|
8028
|
-
let { eventMaxStack: l, eventShortHeight: i, eventOrderStrict: o, eventMinHeight: v } = this.context.options, { date: y, slatCoords: H, eventSelection: z, todayRange: j, nowDate: p } = this.props,
|
|
8028
|
+
let { eventMaxStack: l, eventShortHeight: i, eventOrderStrict: o, eventMinHeight: v } = this.context.options, { date: y, slatCoords: H, eventSelection: z, todayRange: j, nowDate: p } = this.props, O = r || f || u, m = ba(e, y, H, v), { segPlacements: L, hiddenGroups: q } = qb(e, m, o, l);
|
|
8029
8029
|
return N(
|
|
8030
8030
|
at,
|
|
8031
8031
|
null,
|
|
8032
8032
|
this.renderHiddenGroups(q, e),
|
|
8033
8033
|
L.map((w) => {
|
|
8034
|
-
let { seg: k, rect: J } = w, B = k.eventRange.instance.instanceId, M =
|
|
8034
|
+
let { seg: k, rect: J } = w, B = k.eventRange.instance.instanceId, M = O || !!(!n[B] && J), ae = _s(J && J.span), se = !O && J ? this.computeSegHStyle(J) : { left: 0, right: 0 }, oe = !!J && J.stackForward > 0, ze = !!J && J.span.end - J.span.start < i;
|
|
8035
8035
|
return N(
|
|
8036
8036
|
"div",
|
|
8037
8037
|
{ className: "fc-timegrid-event-harness" + (oe ? " fc-timegrid-event-harness-inset" : ""), key: d || B, style: Object.assign(Object.assign({ visibility: M ? "" : "hidden" }, ae), se) },
|
|
@@ -8210,7 +8210,7 @@ class Ib extends Un {
|
|
|
8210
8210
|
queryHit(e, n) {
|
|
8211
8211
|
let { dateEnv: r, options: f } = this.context, { colCoords: u } = this, { dateProfile: d } = this.props, { slatCoords: l } = this.state, { snapDuration: i, snapsPerSlot: o } = this.processSlotOptions(this.props.slotDuration, f.snapDuration), v = u.leftToIndex(e), y = l.positions.topToIndex(n);
|
|
8212
8212
|
if (v != null && y != null) {
|
|
8213
|
-
let H = this.props.cells[v], z = l.positions.tops[y], j = l.positions.getHeight(y), p = (n - z) / j,
|
|
8213
|
+
let H = this.props.cells[v], z = l.positions.tops[y], j = l.positions.getHeight(y), p = (n - z) / j, O = Math.floor(p * o), m = y * o + O, L = this.props.cells[v].date, q = xl(d.slotMinTime, ZP(i, m)), w = r.add(L, q), k = r.add(w, i);
|
|
8214
8214
|
return {
|
|
8215
8215
|
dateProfile: d,
|
|
8216
8216
|
dateSpan: Object.assign({ range: { start: w, end: k }, allDay: !1 }, H.extraDateSpan),
|
|
@@ -8795,16 +8795,16 @@ class _d {
|
|
|
8795
8795
|
// must be within the element's bounds
|
|
8796
8796
|
y >= 0 && y < j && H >= 0 && H < p
|
|
8797
8797
|
) {
|
|
8798
|
-
let
|
|
8799
|
-
|
|
8800
|
-
Cd(
|
|
8798
|
+
let O = l.queryHit(y, H, j, p);
|
|
8799
|
+
O && // make sure the hit is within activeRange, meaning it's not a dead cell
|
|
8800
|
+
Cd(O.dateProfile.activeRange, O.dateSpan.range) && // Ensure the component we are querying for the hit is accessibly my the pointer
|
|
8801
8801
|
// Prevents obscured calendars (ex: under a modal dialog) from accepting hit
|
|
8802
8802
|
// https://github.com/fullcalendar/fullcalendar/issues/5026
|
|
8803
8803
|
(this.disablePointCheck || i.el.contains(i.el.getRootNode().elementFromPoint(
|
|
8804
8804
|
// add-back origins to get coordinate relative to top-left of window viewport
|
|
8805
8805
|
y + o - window.scrollX,
|
|
8806
8806
|
H + v - window.scrollY
|
|
8807
|
-
))) && (!u ||
|
|
8807
|
+
))) && (!u || O.layer > u.layer) && (O.componentId = d, O.context = l.context, O.rect.left += o, O.rect.right += o, O.rect.top += v, O.rect.bottom += v, u = O);
|
|
8808
8808
|
}
|
|
8809
8809
|
}
|
|
8810
8810
|
}
|
|
@@ -8904,8 +8904,8 @@ class ju extends Jf {
|
|
|
8904
8904
|
let z = this.subjectSeg = Wf(d.subjectEl), p = (this.eventRange = z.eventRange).instance.instanceId;
|
|
8905
8905
|
this.relevantEvents = oc(H.getCurrentData().eventStore, p), o.minDistance = d.isTouch ? 0 : y.eventDragMinDistance, o.delay = // only do a touch delay if touch and this event hasn't been selected yet
|
|
8906
8906
|
d.isTouch && p !== i.props.eventSelection ? Py(i) : null, y.fixedMirrorParent ? v.parentNode = y.fixedMirrorParent : v.parentNode = Kt(l, ".fc"), v.revertDuration = y.dragRevertDuration;
|
|
8907
|
-
let
|
|
8908
|
-
o.setIgnoreMove(!
|
|
8907
|
+
let O = i.isValidSegDownEl(l) && !Kt(l, ".fc-event-resizer");
|
|
8908
|
+
o.setIgnoreMove(!O), this.isDragging = O && d.subjectEl.classList.contains("fc-event-draggable");
|
|
8909
8909
|
}, this.handleDragStart = (d) => {
|
|
8910
8910
|
let l = this.component.context, i = this.eventRange, o = i.instance.instanceId;
|
|
8911
8911
|
d.isTouch ? o !== this.component.props.eventSelection && l.dispatch({ type: "SELECT_EVENT", eventInstanceId: o }) : l.dispatch({ type: "UNSELECT_EVENT" }), this.isDragging && (l.calendarApi.unselect(d), l.emitter.trigger("eventDragStart", {
|
|
@@ -8924,8 +8924,8 @@ class ju extends Jf {
|
|
|
8924
8924
|
};
|
|
8925
8925
|
if (d) {
|
|
8926
8926
|
y = d.context;
|
|
8927
|
-
let
|
|
8928
|
-
v === y ||
|
|
8927
|
+
let O = y.options;
|
|
8928
|
+
v === y || O.editable && O.droppable ? (H = vy(o, d, this.eventRange.instance.range.start, y.getCurrentData().pluginHooks.eventDragMutationMassagers), H && (z = zc(i, y.getCurrentData().eventUiBases, H, y), p.mutatedEvents = z, Fv(p, d.dateProfile, y) || (j = !0, H = null, z = null, p.mutatedEvents = Hn()))) : y = null;
|
|
8929
8929
|
}
|
|
8930
8930
|
this.displayDrag(y, p), j ? ec() : tc(), l || (v === y && // TODO: write test for this
|
|
8931
8931
|
$d(o, d) && (H = null), this.dragging.setMirrorNeedsRevert(!H), this.dragging.setMirrorIsVisible(!d || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = y, this.validMutation = H, this.mutatedRelevantEvents = z);
|
|
@@ -8933,7 +8933,7 @@ class ju extends Jf {
|
|
|
8933
8933
|
this.isDragging || this.cleanup();
|
|
8934
8934
|
}, this.handleDragEnd = (d) => {
|
|
8935
8935
|
if (this.isDragging) {
|
|
8936
|
-
let l = this.component.context, i = l.viewApi, { receivingContext: o, validMutation: v } = this, y = this.eventRange.def, H = this.eventRange.instance, z = new pt(l, y, H), j = this.relevantEvents, p = this.mutatedRelevantEvents, { finalHit:
|
|
8936
|
+
let l = this.component.context, i = l.viewApi, { receivingContext: o, validMutation: v } = this, y = this.eventRange.def, H = this.eventRange.instance, z = new pt(l, y, H), j = this.relevantEvents, p = this.mutatedRelevantEvents, { finalHit: O } = this.hitDragging;
|
|
8937
8937
|
if (this.clearDrag(), l.emitter.trigger("eventDragStop", {
|
|
8938
8938
|
el: this.subjectEl,
|
|
8939
8939
|
event: z,
|
|
@@ -8994,7 +8994,7 @@ class ju extends Jf {
|
|
|
8994
8994
|
o.emitter.trigger("eventAdd", k), d.isTouch && o.dispatch({
|
|
8995
8995
|
type: "SELECT_EVENT",
|
|
8996
8996
|
eventInstanceId: H.instanceId
|
|
8997
|
-
}), o.emitter.trigger("drop", Object.assign(Object.assign({}, Z7(
|
|
8997
|
+
}), o.emitter.trigger("drop", Object.assign(Object.assign({}, Z7(O.dateSpan, o)), { draggedEl: d.subjectEl, jsEvent: d.origEvent, view: O.context.viewApi })), o.emitter.trigger("eventReceive", Object.assign(Object.assign({}, k), { draggedEl: d.subjectEl, view: O.context.viewApi }));
|
|
8998
8998
|
}
|
|
8999
8999
|
} else
|
|
9000
9000
|
l.emitter.trigger("_noEventDrop");
|
|
@@ -9306,8 +9306,8 @@ class Zy extends Un {
|
|
|
9306
9306
|
if (z) {
|
|
9307
9307
|
let j = pu(n[H]), p = l + "-" + j;
|
|
9308
9308
|
y.push(N(Oy, { key: j, cellId: p, dayDate: n[H], todayRange: v })), z = bc(z, f.eventOrder);
|
|
9309
|
-
for (let
|
|
9310
|
-
y.push(N(my, Object.assign({ key: j + ":" +
|
|
9309
|
+
for (let O of z)
|
|
9310
|
+
y.push(N(my, Object.assign({ key: j + ":" + O.eventRange.instance.instanceId, seg: O, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, timeHeaderId: u, eventHeaderId: d, dateHeaderId: p }, vr(O, v, o))));
|
|
9311
9311
|
}
|
|
9312
9312
|
}
|
|
9313
9313
|
return N(
|
|
@@ -9915,35 +9915,35 @@ function tX({
|
|
|
9915
9915
|
}) {
|
|
9916
9916
|
const [r, f] = ie({}), [u, d] = ie({}), [l, i] = ie({}), [o, v] = ie(!0), [y, H] = ie(!1);
|
|
9917
9917
|
He(() => {
|
|
9918
|
-
let
|
|
9918
|
+
let O = !1;
|
|
9919
9919
|
return v(!0), Promise.all([Ay(t), _y(t), eX(t)]).then(
|
|
9920
9920
|
([m, L, q]) => {
|
|
9921
|
-
|
|
9921
|
+
O || (f(m), d(L), i(q), v(!1));
|
|
9922
9922
|
}
|
|
9923
9923
|
), () => {
|
|
9924
|
-
|
|
9924
|
+
O = !0;
|
|
9925
9925
|
};
|
|
9926
9926
|
}, [t]), He(() => {
|
|
9927
9927
|
if (!r || Object.keys(r).length === 0 || !e || e < 0) return;
|
|
9928
|
-
const
|
|
9928
|
+
const O = r[e];
|
|
9929
9929
|
async function m() {
|
|
9930
|
-
const L = await $y(
|
|
9930
|
+
const L = await $y(O, t);
|
|
9931
9931
|
H(L);
|
|
9932
9932
|
}
|
|
9933
9933
|
m();
|
|
9934
9934
|
}, [e, r, t]);
|
|
9935
9935
|
const z = Gt(
|
|
9936
|
-
(
|
|
9937
|
-
|
|
9938
|
-
const m = l[
|
|
9939
|
-
return m ?
|
|
9936
|
+
(O) => {
|
|
9937
|
+
O.length < 5 && (O = O + "00");
|
|
9938
|
+
const m = l[O];
|
|
9939
|
+
return m ? O.slice(-2) !== "00" ? m.Village : m.Township : O;
|
|
9940
9940
|
},
|
|
9941
9941
|
[l]
|
|
9942
9942
|
), j = Gt(
|
|
9943
|
-
(
|
|
9944
|
-
|
|
9945
|
-
const m = l[
|
|
9946
|
-
return m ? m.County :
|
|
9943
|
+
(O) => {
|
|
9944
|
+
O.length < 5 && (O = O + "00");
|
|
9945
|
+
const m = l[O];
|
|
9946
|
+
return m ? m.County : O;
|
|
9947
9947
|
},
|
|
9948
9948
|
[l]
|
|
9949
9949
|
), p = xt(
|
|
@@ -9994,18 +9994,18 @@ function fX({
|
|
|
9994
9994
|
const [r, f] = ie(!1), [u, d] = ie(!1), { allUsers: l } = Ut();
|
|
9995
9995
|
function i() {
|
|
9996
9996
|
if (n) {
|
|
9997
|
-
const
|
|
9997
|
+
const O = l[Number(n)] ?? null;
|
|
9998
9998
|
e({
|
|
9999
9999
|
...t,
|
|
10000
10000
|
showOnlyAssignedToUser: Number(n),
|
|
10001
|
-
user:
|
|
10001
|
+
user: O
|
|
10002
10002
|
});
|
|
10003
10003
|
}
|
|
10004
10004
|
}
|
|
10005
|
-
const o = { UserID: -1, UserFirstName: "Unassigned", UserLastName: "" }, v = Object.values(l).filter((
|
|
10005
|
+
const o = { UserID: -1, UserFirstName: "Unassigned", UserLastName: "" }, v = Object.values(l).filter((O) => O.UserLastName && !kc.includes(O.UserLastName)).sort((O, m) => O.UserLastName.localeCompare(m.UserLastName) || O.UserFirstName.localeCompare(m.UserFirstName)), y = [
|
|
10006
10006
|
o,
|
|
10007
|
-
...v.filter((
|
|
10008
|
-
...v.filter((
|
|
10007
|
+
...v.filter((O) => wr.includes(O.UserID)),
|
|
10008
|
+
...v.filter((O) => !wr.includes(O.UserID))
|
|
10009
10009
|
], H = t.showOnlyAssignedToUser, z = H && H !== -1 ? l[H] ?? null : null;
|
|
10010
10010
|
function j() {
|
|
10011
10011
|
if (!z)
|
|
@@ -10027,10 +10027,10 @@ function fX({
|
|
|
10027
10027
|
children: /* @__PURE__ */ a(Pi, { fontSize: "small", sx: { color: "text.disabled" } })
|
|
10028
10028
|
}
|
|
10029
10029
|
);
|
|
10030
|
-
const
|
|
10030
|
+
const O = `${z.UserFirstName} ${z.UserLastName}`;
|
|
10031
10031
|
if (z.Picture)
|
|
10032
|
-
return /* @__PURE__ */ a(An, { src: z.Picture, alt:
|
|
10033
|
-
const { sx: m, children: L } = rX(
|
|
10032
|
+
return /* @__PURE__ */ a(An, { src: z.Picture, alt: O, sx: { width: 36, height: 36, cursor: "default" } });
|
|
10033
|
+
const { sx: m, children: L } = rX(O);
|
|
10034
10034
|
return /* @__PURE__ */ a(An, { sx: { ...m, width: 36, height: 36, fontSize: "0.8rem", cursor: "default" }, children: L });
|
|
10035
10035
|
}
|
|
10036
10036
|
const p = z ? `${z.UserFirstName} ${z.UserLastName}` : "Assigned to";
|
|
@@ -10109,10 +10109,10 @@ function fX({
|
|
|
10109
10109
|
{
|
|
10110
10110
|
size: "small",
|
|
10111
10111
|
options: y,
|
|
10112
|
-
groupBy: (
|
|
10113
|
-
getOptionLabel: (
|
|
10114
|
-
value: y.find((
|
|
10115
|
-
onChange: (
|
|
10112
|
+
groupBy: (O) => O.UserID === -1 ? "" : wr.includes(O.UserID) ? "Negotiators" : "Other",
|
|
10113
|
+
getOptionLabel: (O) => O.UserID === -1 ? "Unassigned" : `${O.UserFirstName} ${O.UserLastName}`,
|
|
10114
|
+
value: y.find((O) => O.UserID === t.showOnlyAssignedToUser) || null,
|
|
10115
|
+
onChange: (O, m) => e({
|
|
10116
10116
|
...t,
|
|
10117
10117
|
showOnlyAssignedToUser: m ? m.UserID : null,
|
|
10118
10118
|
user: m && m.UserID !== -1 ? m : null
|
|
@@ -10121,15 +10121,15 @@ function fX({
|
|
|
10121
10121
|
onClose: () => {
|
|
10122
10122
|
d(!1), f(!1);
|
|
10123
10123
|
},
|
|
10124
|
-
renderInput: (
|
|
10124
|
+
renderInput: (O) => /* @__PURE__ */ a(
|
|
10125
10125
|
zr,
|
|
10126
10126
|
{
|
|
10127
|
-
...
|
|
10127
|
+
...O,
|
|
10128
10128
|
label: "Assigned to",
|
|
10129
10129
|
fullWidth: !0,
|
|
10130
10130
|
slotProps: {
|
|
10131
10131
|
input: {
|
|
10132
|
-
...
|
|
10132
|
+
...O.InputProps,
|
|
10133
10133
|
sx: {
|
|
10134
10134
|
"& .MuiOutlinedInput-notchedOutline": { border: "none" },
|
|
10135
10135
|
"&:hover": { backgroundColor: "var(--fc-today-bg-color) !important" },
|
|
@@ -10283,8 +10283,8 @@ function V7({
|
|
|
10283
10283
|
He(() => {
|
|
10284
10284
|
const H = [];
|
|
10285
10285
|
Object.keys(d).forEach((z) => {
|
|
10286
|
-
const j = z.endsWith("00") ? z.slice(0, -2) : z,
|
|
10287
|
-
H.push(`(${j}) ${
|
|
10286
|
+
const j = z.endsWith("00") ? z.slice(0, -2) : z, O = Rn(z) ? (d[z].Village || "").replace(/\s+$/, "") : (d[z].Township || "").replace(/\s+$/, "");
|
|
10287
|
+
H.push(`(${j}) ${O}, ${d[z].County}`);
|
|
10288
10288
|
}), i(H), v(t && H.find((z) => z.includes(`(${t})`)) || null);
|
|
10289
10289
|
}, [d]), He(() => {
|
|
10290
10290
|
v(
|
|
@@ -10505,7 +10505,7 @@ function lX({
|
|
|
10505
10505
|
lastFetchedAt: v,
|
|
10506
10506
|
isAdmin: y
|
|
10507
10507
|
}) {
|
|
10508
|
-
const [H, z] = ie(""), [j, p] = ie(""), [
|
|
10508
|
+
const [H, z] = ie(""), [j, p] = ie(""), [O, m] = ie(!1), L = Fe(null);
|
|
10509
10509
|
He(() => {
|
|
10510
10510
|
function J() {
|
|
10511
10511
|
if (!v) {
|
|
@@ -10596,7 +10596,7 @@ function lX({
|
|
|
10596
10596
|
component: "div",
|
|
10597
10597
|
sx: {
|
|
10598
10598
|
whiteSpace: "nowrap",
|
|
10599
|
-
transform:
|
|
10599
|
+
transform: O ? "translateY(-6px)" : "translateY(0)",
|
|
10600
10600
|
transition: "transform 0.15s"
|
|
10601
10601
|
},
|
|
10602
10602
|
children: H
|
|
@@ -10611,8 +10611,8 @@ function lX({
|
|
|
10611
10611
|
bottom: 6,
|
|
10612
10612
|
fontSize: "0.6rem",
|
|
10613
10613
|
lineHeight: 1,
|
|
10614
|
-
opacity:
|
|
10615
|
-
transform:
|
|
10614
|
+
opacity: O ? 0.45 : 0,
|
|
10615
|
+
transform: O ? "translateY(0)" : "translateY(4px)",
|
|
10616
10616
|
transition: "opacity 0.15s, transform 0.15s"
|
|
10617
10617
|
},
|
|
10618
10618
|
children: "go to today"
|
|
@@ -10821,7 +10821,7 @@ const HX = async (t, e, n) => {
|
|
|
10821
10821
|
} = ja(o, r, i), H = r, z = {}, j = 0;
|
|
10822
10822
|
for (let p = 0; p < l.length; p++) {
|
|
10823
10823
|
const {
|
|
10824
|
-
name:
|
|
10824
|
+
name: O,
|
|
10825
10825
|
fn: m
|
|
10826
10826
|
} = l[p], {
|
|
10827
10827
|
x: L,
|
|
@@ -10844,8 +10844,8 @@ const HX = async (t, e, n) => {
|
|
|
10844
10844
|
});
|
|
10845
10845
|
v = L ?? v, y = q ?? y, z = {
|
|
10846
10846
|
...z,
|
|
10847
|
-
[
|
|
10848
|
-
...z[
|
|
10847
|
+
[O]: {
|
|
10848
|
+
...z[O],
|
|
10849
10849
|
...w
|
|
10850
10850
|
}
|
|
10851
10851
|
}, k && j <= 50 && (j++, typeof k == "object" && (k.placement && (H = k.placement), k.rects && (o = k.rects === !0 ? await d.getElementRects({
|
|
@@ -10881,8 +10881,8 @@ async function J7(t, e) {
|
|
|
10881
10881
|
elementContext: y = "floating",
|
|
10882
10882
|
altBoundary: H = !1,
|
|
10883
10883
|
padding: z = 0
|
|
10884
|
-
} = mu(e, t), j = M7(z),
|
|
10885
|
-
element: (n = await (u.isElement == null ? void 0 : u.isElement(
|
|
10884
|
+
} = mu(e, t), j = M7(z), O = l[H ? y === "floating" ? "reference" : "floating" : y], m = Sd(await u.getClippingRect({
|
|
10885
|
+
element: (n = await (u.isElement == null ? void 0 : u.isElement(O))) == null || n ? O : O.contextElement || await (u.getDocumentElement == null ? void 0 : u.getDocumentElement(l.floating)),
|
|
10886
10886
|
boundary: o,
|
|
10887
10887
|
rootBoundary: v,
|
|
10888
10888
|
strategy: i
|
|
@@ -10931,7 +10931,7 @@ const pX = (t) => ({
|
|
|
10931
10931
|
const y = M7(v), H = {
|
|
10932
10932
|
x: n,
|
|
10933
10933
|
y: r
|
|
10934
|
-
}, z = Wc(f), j = Rc(z), p = await d.getDimensions(o),
|
|
10934
|
+
}, z = Wc(f), j = Rc(z), p = await d.getDimensions(o), O = z === "y", m = O ? "top" : "left", L = O ? "bottom" : "right", q = O ? "clientHeight" : "clientWidth", w = u.reference[j] + u.reference[z] - H[z] - u.floating[j], k = H[z] - u.reference[z], J = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(o));
|
|
10935
10935
|
let B = J ? J[q] : 0;
|
|
10936
10936
|
(!B || !await (d.isElement == null ? void 0 : d.isElement(J))) && (B = l.floating[q] || u.floating[j]);
|
|
10937
10937
|
const M = w / 2 - k / 2, ae = B / 2 - p[j] / 2 - 1, se = Sf(y[m], ae), oe = Sf(y[L], ae), ze = se, Xe = B - p[j] - oe, fe = B / 2 - p[j] / 2 + M, ne = Ml(ze, fe, Xe), K = !i.arrow && xu(f) != null && fe !== ne && u.reference[j] / 2 - (fe < ze ? se : oe) - p[j] / 2 < 0, W = K ? fe < ze ? fe - ze : fe - Xe : 0;
|
|
@@ -10967,13 +10967,13 @@ const pX = (t) => ({
|
|
|
10967
10967
|
fallbackStrategy: z = "bestFit",
|
|
10968
10968
|
fallbackAxisSideDirection: j = "none",
|
|
10969
10969
|
flipAlignment: p = !0,
|
|
10970
|
-
...
|
|
10970
|
+
...O
|
|
10971
10971
|
} = mu(t, e);
|
|
10972
10972
|
if ((n = u.arrow) != null && n.alignmentOffset)
|
|
10973
10973
|
return {};
|
|
10974
10974
|
const m = rf(f), L = Lr(l), q = rf(l) === l, w = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), k = H || (q || !p ? [Vd(l)] : vX(l)), J = j !== "none";
|
|
10975
10975
|
!H && J && k.push(...yX(l, p, j, w));
|
|
10976
|
-
const B = [l, ...k], M = await J7(e,
|
|
10976
|
+
const B = [l, ...k], M = await J7(e, O), ae = [];
|
|
10977
10977
|
let se = ((r = u.flip) == null ? void 0 : r.overflows) || [];
|
|
10978
10978
|
if (v && ae.push(M[m]), y) {
|
|
10979
10979
|
const fe = oX(f, d, w);
|
|
@@ -11091,11 +11091,11 @@ const mX = function(t) {
|
|
|
11091
11091
|
mainAxis: u = !0,
|
|
11092
11092
|
crossAxis: d = !1,
|
|
11093
11093
|
limiter: l = {
|
|
11094
|
-
fn: (
|
|
11094
|
+
fn: (O) => {
|
|
11095
11095
|
let {
|
|
11096
11096
|
x: m,
|
|
11097
11097
|
y: L
|
|
11098
|
-
} =
|
|
11098
|
+
} = O;
|
|
11099
11099
|
return {
|
|
11100
11100
|
x: m,
|
|
11101
11101
|
y: L
|
|
@@ -11109,11 +11109,11 @@ const mX = function(t) {
|
|
|
11109
11109
|
}, v = await J7(e, i), y = Lr(rf(f)), H = S7(y);
|
|
11110
11110
|
let z = o[H], j = o[y];
|
|
11111
11111
|
if (u) {
|
|
11112
|
-
const
|
|
11112
|
+
const O = H === "y" ? "top" : "left", m = H === "y" ? "bottom" : "right", L = z + v[O], q = z - v[m];
|
|
11113
11113
|
z = Ml(L, z, q);
|
|
11114
11114
|
}
|
|
11115
11115
|
if (d) {
|
|
11116
|
-
const
|
|
11116
|
+
const O = y === "y" ? "top" : "left", m = y === "y" ? "bottom" : "right", L = j + v[O], q = j - v[m];
|
|
11117
11117
|
j = Ml(L, j, q);
|
|
11118
11118
|
}
|
|
11119
11119
|
const p = l.fn({
|
|
@@ -11299,8 +11299,8 @@ function ff(t, e, n, r) {
|
|
|
11299
11299
|
const H = pn(u), z = r && Gn(r) ? pn(r) : r;
|
|
11300
11300
|
let j = H, p = gl(j);
|
|
11301
11301
|
for (; p && r && z !== j; ) {
|
|
11302
|
-
const
|
|
11303
|
-
i *=
|
|
11302
|
+
const O = wf(p), m = p.getBoundingClientRect(), L = En(p), q = m.left + (p.clientLeft + parseFloat(L.paddingLeft)) * O.x, w = m.top + (p.clientTop + parseFloat(L.paddingTop)) * O.y;
|
|
11303
|
+
i *= O.x, o *= O.y, v *= O.x, y *= O.y, i += q, o += w, j = pn(p), p = gl(j);
|
|
11304
11304
|
}
|
|
11305
11305
|
}
|
|
11306
11306
|
return Sd({
|
|
@@ -11557,8 +11557,8 @@ function BX(t, e) {
|
|
|
11557
11557
|
} = o;
|
|
11558
11558
|
if (l || e(), !H || !z)
|
|
11559
11559
|
return;
|
|
11560
|
-
const j = td(y), p = td(f.clientWidth - (v + H)),
|
|
11561
|
-
rootMargin: -j + "px " + -p + "px " + -
|
|
11560
|
+
const j = td(y), p = td(f.clientWidth - (v + H)), O = td(f.clientHeight - (y + z)), m = td(v), q = {
|
|
11561
|
+
rootMargin: -j + "px " + -p + "px " + -O + "px " + -m + "px",
|
|
11562
11562
|
threshold: ef(0, Sf(1, i)) || 1
|
|
11563
11563
|
};
|
|
11564
11564
|
let w = !0;
|
|
@@ -11610,10 +11610,10 @@ function AX(t, e, n, r) {
|
|
|
11610
11610
|
})), n();
|
|
11611
11611
|
}), o && !i && z.observe(o), z.observe(e));
|
|
11612
11612
|
let j, p = i ? ff(t) : null;
|
|
11613
|
-
i &&
|
|
11614
|
-
function
|
|
11613
|
+
i && O();
|
|
11614
|
+
function O() {
|
|
11615
11615
|
const m = ff(t);
|
|
11616
|
-
p && !C7(p, m) && n(), p = m, j = requestAnimationFrame(
|
|
11616
|
+
p && !C7(p, m) && n(), p = m, j = requestAnimationFrame(O);
|
|
11617
11617
|
}
|
|
11618
11618
|
return n(), () => {
|
|
11619
11619
|
var m;
|
|
@@ -11691,13 +11691,13 @@ const ka = async ({ elementReference: t = null, tooltipReference: e = null, tool
|
|
|
11691
11691
|
const o = d;
|
|
11692
11692
|
return n ? (o.push(tH({ element: n, padding: 5 })), Za(t, e, { placement: r, strategy: u, middleware: o }).then((({ x: v, y, placement: H, middlewareData: z }) => {
|
|
11693
11693
|
var j, p;
|
|
11694
|
-
const
|
|
11694
|
+
const O = { left: `${v}px`, top: `${y}px`, border: l }, { x: m, y: L } = (j = z.arrow) !== null && j !== void 0 ? j : { x: 0, y: 0 }, q = (p = { top: "bottom", right: "left", bottom: "top", left: "right" }[H.split("-")[0]]) !== null && p !== void 0 ? p : "bottom", w = l && { borderBottom: l, borderRight: l };
|
|
11695
11695
|
let k = 0;
|
|
11696
11696
|
if (l) {
|
|
11697
11697
|
const J = `${l}`.match(/(\d+)px/);
|
|
11698
11698
|
k = J?.[1] ? Number(J[1]) : 1;
|
|
11699
11699
|
}
|
|
11700
|
-
return { tooltipStyles:
|
|
11700
|
+
return { tooltipStyles: O, tooltipArrowStyles: { left: m != null ? `${m}px` : "", top: L != null ? `${L}px` : "", right: "", bottom: "", ...w, [q]: `-${i / 2 + k}px` }, place: H };
|
|
11701
11701
|
}))) : Za(t, e, { placement: "bottom", strategy: u, middleware: o }).then((({ x: v, y, placement: H }) => ({ tooltipStyles: { left: `${v}px`, top: `${y}px` }, tooltipArrowStyles: {}, place: H })));
|
|
11702
11702
|
}, Ra = (t, e) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(t, e), Wa = (t, e, n) => {
|
|
11703
11703
|
let r = null;
|
|
@@ -11742,7 +11742,7 @@ function K7(t = cH) {
|
|
|
11742
11742
|
return Id(aH).getTooltipData(t);
|
|
11743
11743
|
}
|
|
11744
11744
|
var yf = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, nl = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
11745
|
-
const oH = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: f = "dark", anchorId: u, anchorSelect: d, place: l = "top", offset: i = 10, events: o = ["hover"], openOnClick: v = !1, positionStrategy: y = "absolute", middlewares: H, wrapper: z, delayShow: j = 0, delayHide: p = 0, float:
|
|
11745
|
+
const oH = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: f = "dark", anchorId: u, anchorSelect: d, place: l = "top", offset: i = 10, events: o = ["hover"], openOnClick: v = !1, positionStrategy: y = "absolute", middlewares: H, wrapper: z, delayShow: j = 0, delayHide: p = 0, float: O = !1, hidden: m = !1, noArrow: L = !1, clickable: q = !1, closeOnEsc: w = !1, closeOnScroll: k = !1, closeOnResize: J = !1, openEvents: B, closeEvents: M, globalCloseEvents: ae, imperativeModeOnly: se, style: oe, position: ze, afterShow: Xe, afterHide: fe, disableTooltip: ne, content: K, contentWrapperRef: W, isOpen: T, defaultIsOpen: ee = !1, setIsOpen: Z, previousActiveAnchor: $, activeAnchor: ue, setActiveAnchor: be, border: Oe, opacity: Ze, arrowColor: De, arrowSize: We = 8, role: Je = "tooltip" }) => {
|
|
11746
11746
|
var ve;
|
|
11747
11747
|
const ke = Fe(null), Ye = Fe(null), de = Fe(null), Be = Fe(null), Rt = Fe(null), [zt, On] = ie({ tooltipStyles: {}, tooltipArrowStyles: {}, place: l }), [Tt, hn] = ie(!1), [jn, Ot] = ie(!1), [Ue, At] = ie(null), gt = Fe(!1), Wn = Fe(null), { anchorRefs: mn, setActiveAnchor: _t } = K7(e), $t = Fe(!1), [un, on] = ie([]), vn = Fe(!1), dn = v || o.includes("click"), en = dn || B?.click || B?.dblclick || B?.mousedown, xn = B ? { ...B } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
11748
11748
|
!B && dn && Object.assign(xn, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
@@ -11839,10 +11839,10 @@ const oH = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: f
|
|
|
11839
11839
|
}, he = Gt((() => {
|
|
11840
11840
|
var Pe, we;
|
|
11841
11841
|
const Ve = (Pe = Ue?.position) !== null && Pe !== void 0 ? Pe : ze;
|
|
11842
|
-
Ve ? qn(Ve) :
|
|
11842
|
+
Ve ? qn(Ve) : O ? Wn.current && qn(Wn.current) : ue?.isConnected && ka({ place: (we = Ue?.place) !== null && we !== void 0 ? we : l, offset: i, elementReference: ue, tooltipReference: ke.current, tooltipArrowReference: Ye.current, strategy: y, middlewares: H, border: Oe, arrowSize: We }).then(((rt) => {
|
|
11843
11843
|
vn.current && Pn(rt);
|
|
11844
11844
|
}));
|
|
11845
|
-
}), [Tt, ue, K, oe, l, Ue?.place, i, y, ze, Ue?.position,
|
|
11845
|
+
}), [Tt, ue, K, oe, l, Ue?.place, i, y, ze, Ue?.position, O, We]);
|
|
11846
11846
|
He((() => {
|
|
11847
11847
|
var Pe, we;
|
|
11848
11848
|
const Ve = new Set(mn);
|
|
@@ -11870,7 +11870,7 @@ const oH = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: f
|
|
|
11870
11870
|
Vt && (Ef.includes(Qe) ? ft.push({ event: Qe, listener: Wt }) : Cn.includes(Qe) && ft.push({ event: Qe, listener: ls }));
|
|
11871
11871
|
})), Object.entries(sn).forEach((([Qe, Vt]) => {
|
|
11872
11872
|
Vt && (Ef.includes(Qe) ? ft.push({ event: Qe, listener: qe }) : Cn.includes(Qe) && ft.push({ event: Qe, listener: Yn }));
|
|
11873
|
-
})),
|
|
11873
|
+
})), O && ft.push({ event: "pointermove", listener: zn });
|
|
11874
11874
|
const Uf = () => {
|
|
11875
11875
|
$t.current = !0;
|
|
11876
11876
|
}, cf = () => {
|
|
@@ -11961,7 +11961,7 @@ const oH = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: f
|
|
|
11961
11961
|
}, activeAnchor: ue, place: zt.place, isOpen: !!(jn && !m && _e && yt) }))), jn && !m && _e ? Qt.createElement(z, { id: e, role: Je, className: Il("react-tooltip", yf.tooltip, nl.tooltip, nl[f], n, `react-tooltip__place-${zt.place}`, yf[yt ? "show" : "closing"], yt ? "react-tooltip__show" : "react-tooltip__closing", y === "fixed" && yf.fixed, q && yf.clickable), onTransitionEnd: (Pe) => {
|
|
11962
11962
|
wn(Rt), Tt || Pe.propertyName !== "opacity" || (Ot(!1), At(null), fe?.());
|
|
11963
11963
|
}, style: { ...oe, ...zt.tooltipStyles, opacity: Ze !== void 0 && yt ? Ze : void 0 }, ref: ke }, _e, Qt.createElement(z, { className: Il("react-tooltip-arrow", yf.arrow, nl.arrow, r, L && yf.noArrow), style: { ...zt.tooltipArrowStyles, background: De ? `linear-gradient(to right bottom, transparent 50%, ${De} 50%)` : void 0, "--rt-arrow-size": `${We}px` }, ref: Ye })) : null;
|
|
11964
|
-
}, vH = ({ content: t }) => Qt.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), PH = Qt.forwardRef((({ id: t, anchorId: e, anchorSelect: n, content: r, html: f, render: u, className: d, classNameArrow: l, variant: i = "dark", place: o = "top", offset: v = 10, wrapper: y = "div", children: H = null, events: z = ["hover"], openOnClick: j = !1, positionStrategy: p = "absolute", middlewares:
|
|
11964
|
+
}, vH = ({ content: t }) => Qt.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), PH = Qt.forwardRef((({ id: t, anchorId: e, anchorSelect: n, content: r, html: f, render: u, className: d, classNameArrow: l, variant: i = "dark", place: o = "top", offset: v = 10, wrapper: y = "div", children: H = null, events: z = ["hover"], openOnClick: j = !1, positionStrategy: p = "absolute", middlewares: O, delayShow: m = 0, delayHide: L = 0, float: q = !1, hidden: w = !1, noArrow: k = !1, clickable: J = !1, closeOnEsc: B = !1, closeOnScroll: M = !1, closeOnResize: ae = !1, openEvents: se, closeEvents: oe, globalCloseEvents: ze, imperativeModeOnly: Xe = !1, style: fe, position: ne, isOpen: K, defaultIsOpen: W = !1, disableStyleInjection: T = !1, border: ee, opacity: Z, arrowColor: $, arrowSize: ue, setIsOpen: be, afterShow: Oe, afterHide: Ze, disableTooltip: De, role: We = "tooltip" }, Je) => {
|
|
11965
11965
|
const [ve, ke] = ie(r), [Ye, de] = ie(f), [Be, Rt] = ie(o), [zt, On] = ie(i), [Tt, hn] = ie(v), [jn, Ot] = ie(m), [Ue, At] = ie(L), [gt, Wn] = ie(q), [mn, _t] = ie(w), [$t, un] = ie(y), [on, vn] = ie(z), [dn, en] = ie(p), [xn, sn] = ie(null), [ut, Ne] = ie(null), Pn = Fe(null), It = Fe(T), { anchorRefs: ln, activeAnchor: me } = K7(t), Tn = (bt) => bt?.getAttributeNames().reduce(((Wt, qe) => {
|
|
11966
11966
|
var he;
|
|
11967
11967
|
return qe.startsWith("data-tooltip-") && (Wt[qe.replace(/^data-tooltip-/, "")] = (he = bt?.getAttribute(qe)) !== null && he !== void 0 ? he : null), Wt;
|
|
@@ -12065,7 +12065,7 @@ const oH = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: f
|
|
|
12065
12065
|
zn = bt ? Qt.createElement("div", { ref: Vn, className: "react-tooltip-content-wrapper" }, bt) : null;
|
|
12066
12066
|
} else ve && (zn = ve);
|
|
12067
12067
|
Ye && (zn = Qt.createElement(vH, { content: Ye }));
|
|
12068
|
-
const Fn = { forwardRef: Je, id: t, anchorId: e, anchorSelect: n, className: Il(d, xn), classNameArrow: l, content: zn, contentWrapperRef: Vn, place: Be, variant: zt, offset: Tt, wrapper: $t, events: on, openOnClick: j, positionStrategy: dn, middlewares:
|
|
12068
|
+
const Fn = { forwardRef: Je, id: t, anchorId: e, anchorSelect: n, className: Il(d, xn), classNameArrow: l, content: zn, contentWrapperRef: Vn, place: Be, variant: zt, offset: Tt, wrapper: $t, events: on, openOnClick: j, positionStrategy: dn, middlewares: O, delayShow: jn, delayHide: Ue, float: gt, hidden: mn, noArrow: k, clickable: J, closeOnEsc: B, closeOnScroll: M, closeOnResize: ae, openEvents: se, closeEvents: oe, globalCloseEvents: ze, imperativeModeOnly: Xe, style: fe, position: ne, isOpen: K, defaultIsOpen: W, border: ee, opacity: Z, arrowColor: $, arrowSize: ue, setIsOpen: be, afterShow: Oe, afterHide: Ze, disableTooltip: De, activeAnchor: ut, previousActiveAnchor: Pn.current, setActiveAnchor: (bt) => {
|
|
12069
12069
|
Ne(((Wt) => (bt?.isSameNode(Wt) || (Pn.current = Wt), bt)));
|
|
12070
12070
|
}, role: We };
|
|
12071
12071
|
return Qt.createElement(oH, { ...Fn });
|
|
@@ -12096,7 +12096,7 @@ var Sa;
|
|
|
12096
12096
|
function yH() {
|
|
12097
12097
|
if (Sa) return lt;
|
|
12098
12098
|
Sa = 1;
|
|
12099
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, d = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, i = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, v = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, H = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, z = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, j = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121,
|
|
12099
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, d = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, i = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, v = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, H = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, z = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, j = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, O = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, m = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, L = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
12100
12100
|
function q(k) {
|
|
12101
12101
|
if (typeof k == "object" && k !== null) {
|
|
12102
12102
|
var J = k.$$typeof;
|
|
@@ -12155,17 +12155,17 @@ function yH() {
|
|
|
12155
12155
|
}, lt.isSuspense = function(k) {
|
|
12156
12156
|
return q(k) === y;
|
|
12157
12157
|
}, lt.isValidElementType = function(k) {
|
|
12158
|
-
return typeof k == "string" || typeof k == "function" || k === r || k === o || k === u || k === f || k === y || k === H || typeof k == "object" && k !== null && (k.$$typeof === j || k.$$typeof === z || k.$$typeof === d || k.$$typeof === l || k.$$typeof === v || k.$$typeof ===
|
|
12158
|
+
return typeof k == "string" || typeof k == "function" || k === r || k === o || k === u || k === f || k === y || k === H || typeof k == "object" && k !== null && (k.$$typeof === j || k.$$typeof === z || k.$$typeof === d || k.$$typeof === l || k.$$typeof === v || k.$$typeof === O || k.$$typeof === m || k.$$typeof === L || k.$$typeof === p);
|
|
12159
12159
|
}, lt.typeOf = q, lt;
|
|
12160
12160
|
}
|
|
12161
12161
|
var ct = {};
|
|
12162
12162
|
var Ma;
|
|
12163
12163
|
function XH() {
|
|
12164
12164
|
return Ma || (Ma = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
12165
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, d = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, i = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, v = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, H = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, z = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, j = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121,
|
|
12165
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, d = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, i = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, v = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, H = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, z = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, j = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, p = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, O = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, m = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, L = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
12166
12166
|
function q(de) {
|
|
12167
12167
|
return typeof de == "string" || typeof de == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
12168
|
-
de === r || de === o || de === u || de === f || de === y || de === H || typeof de == "object" && de !== null && (de.$$typeof === j || de.$$typeof === z || de.$$typeof === d || de.$$typeof === l || de.$$typeof === v || de.$$typeof ===
|
|
12168
|
+
de === r || de === o || de === u || de === f || de === y || de === H || typeof de == "object" && de !== null && (de.$$typeof === j || de.$$typeof === z || de.$$typeof === d || de.$$typeof === l || de.$$typeof === v || de.$$typeof === O || de.$$typeof === m || de.$$typeof === L || de.$$typeof === p);
|
|
12169
12169
|
}
|
|
12170
12170
|
function w(de) {
|
|
12171
12171
|
if (typeof de == "object" && de !== null) {
|
|
@@ -12404,7 +12404,7 @@ function OH() {
|
|
|
12404
12404
|
this.message = Z, this.data = $ && typeof $ == "object" ? $ : {}, this.stack = "";
|
|
12405
12405
|
}
|
|
12406
12406
|
p.prototype = Error.prototype;
|
|
12407
|
-
function
|
|
12407
|
+
function O(Z) {
|
|
12408
12408
|
if (process.env.NODE_ENV !== "production")
|
|
12409
12409
|
var $ = {}, ue = 0;
|
|
12410
12410
|
function be(Ze, De, We, Je, ve, ke, Ye) {
|
|
@@ -12439,10 +12439,10 @@ function OH() {
|
|
|
12439
12439
|
}
|
|
12440
12440
|
return null;
|
|
12441
12441
|
}
|
|
12442
|
-
return
|
|
12442
|
+
return O($);
|
|
12443
12443
|
}
|
|
12444
12444
|
function L() {
|
|
12445
|
-
return
|
|
12445
|
+
return O(d);
|
|
12446
12446
|
}
|
|
12447
12447
|
function q(Z) {
|
|
12448
12448
|
function $(ue, be, Oe, Ze, De) {
|
|
@@ -12460,7 +12460,7 @@ function OH() {
|
|
|
12460
12460
|
}
|
|
12461
12461
|
return null;
|
|
12462
12462
|
}
|
|
12463
|
-
return
|
|
12463
|
+
return O($);
|
|
12464
12464
|
}
|
|
12465
12465
|
function w() {
|
|
12466
12466
|
function Z($, ue, be, Oe, Ze) {
|
|
@@ -12471,7 +12471,7 @@ function OH() {
|
|
|
12471
12471
|
}
|
|
12472
12472
|
return null;
|
|
12473
12473
|
}
|
|
12474
|
-
return
|
|
12474
|
+
return O(Z);
|
|
12475
12475
|
}
|
|
12476
12476
|
function k() {
|
|
12477
12477
|
function Z($, ue, be, Oe, Ze) {
|
|
@@ -12482,7 +12482,7 @@ function OH() {
|
|
|
12482
12482
|
}
|
|
12483
12483
|
return null;
|
|
12484
12484
|
}
|
|
12485
|
-
return
|
|
12485
|
+
return O(Z);
|
|
12486
12486
|
}
|
|
12487
12487
|
function J(Z) {
|
|
12488
12488
|
function $(ue, be, Oe, Ze, De) {
|
|
@@ -12492,7 +12492,7 @@ function OH() {
|
|
|
12492
12492
|
}
|
|
12493
12493
|
return null;
|
|
12494
12494
|
}
|
|
12495
|
-
return
|
|
12495
|
+
return O($);
|
|
12496
12496
|
}
|
|
12497
12497
|
function B(Z) {
|
|
12498
12498
|
if (!Array.isArray(Z))
|
|
@@ -12509,7 +12509,7 @@ function OH() {
|
|
|
12509
12509
|
});
|
|
12510
12510
|
return new p("Invalid " + Ze + " `" + De + "` of value `" + String(We) + "` " + ("supplied to `" + Oe + "`, expected one of " + ve + "."));
|
|
12511
12511
|
}
|
|
12512
|
-
return
|
|
12512
|
+
return O($);
|
|
12513
12513
|
}
|
|
12514
12514
|
function M(Z) {
|
|
12515
12515
|
function $(ue, be, Oe, Ze, De) {
|
|
@@ -12526,7 +12526,7 @@ function OH() {
|
|
|
12526
12526
|
}
|
|
12527
12527
|
return null;
|
|
12528
12528
|
}
|
|
12529
|
-
return
|
|
12529
|
+
return O($);
|
|
12530
12530
|
}
|
|
12531
12531
|
function ae(Z) {
|
|
12532
12532
|
if (!Array.isArray(Z))
|
|
@@ -12548,13 +12548,13 @@ function OH() {
|
|
|
12548
12548
|
var Be = ve.length > 0 ? ", expected one of type [" + ve.join(", ") + "]" : "";
|
|
12549
12549
|
return new p("Invalid " + We + " `" + Je + "` supplied to " + ("`" + De + "`" + Be + "."));
|
|
12550
12550
|
}
|
|
12551
|
-
return
|
|
12551
|
+
return O(be);
|
|
12552
12552
|
}
|
|
12553
12553
|
function se() {
|
|
12554
12554
|
function Z($, ue, be, Oe, Ze) {
|
|
12555
12555
|
return fe($[ue]) ? null : new p("Invalid " + Oe + " `" + Ze + "` supplied to " + ("`" + be + "`, expected a ReactNode."));
|
|
12556
12556
|
}
|
|
12557
|
-
return
|
|
12557
|
+
return O(Z);
|
|
12558
12558
|
}
|
|
12559
12559
|
function oe(Z, $, ue, be, Oe) {
|
|
12560
12560
|
return new p(
|
|
@@ -12576,7 +12576,7 @@ function OH() {
|
|
|
12576
12576
|
}
|
|
12577
12577
|
return null;
|
|
12578
12578
|
}
|
|
12579
|
-
return
|
|
12579
|
+
return O($);
|
|
12580
12580
|
}
|
|
12581
12581
|
function Xe(Z) {
|
|
12582
12582
|
function $(ue, be, Oe, Ze, De) {
|
|
@@ -12599,7 +12599,7 @@ Valid keys: ` + JSON.stringify(Object.keys(Z), null, " ")
|
|
|
12599
12599
|
}
|
|
12600
12600
|
return null;
|
|
12601
12601
|
}
|
|
12602
|
-
return
|
|
12602
|
+
return O($);
|
|
12603
12603
|
}
|
|
12604
12604
|
function fe(Z) {
|
|
12605
12605
|
switch (typeof Z) {
|
|
@@ -13265,16 +13265,16 @@ function DH({
|
|
|
13265
13265
|
settledDate: j,
|
|
13266
13266
|
loading: p
|
|
13267
13267
|
}) {
|
|
13268
|
-
function
|
|
13268
|
+
function O(k, J, B, M, ae) {
|
|
13269
13269
|
const se = wH(B, M, ae);
|
|
13270
13270
|
return { label: k, color: J, status: p ? "loading" : B, sublabel: se?.text, isDate: se?.isDate ?? !1 };
|
|
13271
13271
|
}
|
|
13272
13272
|
const m = [
|
|
13273
|
-
|
|
13274
|
-
|
|
13275
|
-
|
|
13276
|
-
|
|
13277
|
-
|
|
13273
|
+
O("Reviewed", "#4caf50", t, e, n),
|
|
13274
|
+
O("Sent Offers", "#4caf50", o, v, y),
|
|
13275
|
+
O("Uploaded", "#4caf50", d, l, i),
|
|
13276
|
+
O("Settled", "#ff9800", H, z, j),
|
|
13277
|
+
O("Stipulation", "#ff9800", r, f, u)
|
|
13278
13278
|
], L = yo();
|
|
13279
13279
|
function q(k) {
|
|
13280
13280
|
return m[k].status === "active" || m[k].status === "incomplete" ? !1 : m.slice(k + 1, m.length - 1).some(
|
|
@@ -13366,7 +13366,7 @@ function $7({
|
|
|
13366
13366
|
size: r = 30,
|
|
13367
13367
|
spacing: f = 1
|
|
13368
13368
|
}) {
|
|
13369
|
-
const { allUsers: u } = Ut(), d = t ? u[t] : null, l = e ? u[e] : null, [i, o] = ie(null), [v, y] = ie(null), [H, z] = ie(null), j = r, p = r,
|
|
13369
|
+
const { allUsers: u } = Ut(), d = t ? u[t] : null, l = e ? u[e] : null, [i, o] = ie(null), [v, y] = ie(null), [H, z] = ie(null), j = r, p = r, O = Object.values(u).filter((M) => M.UserLastName && !kc.includes(M.UserLastName)).sort((M, ae) => M.UserLastName.localeCompare(ae.UserLastName) || M.UserFirstName.localeCompare(ae.UserFirstName)), m = O.filter((M) => wr.includes(M.UserID)), L = O.filter((M) => !wr.includes(M.UserID));
|
|
13370
13370
|
function q(M) {
|
|
13371
13371
|
let ae = 0, se;
|
|
13372
13372
|
for (se = 0; se < M.length; se += 1)
|
|
@@ -13585,7 +13585,7 @@ function RH({
|
|
|
13585
13585
|
const j = e.filter((p) => _7(p, n));
|
|
13586
13586
|
if (j.length === e.length) {
|
|
13587
13587
|
const p = j.map(
|
|
13588
|
-
(
|
|
13588
|
+
(O) => O.evidence?.uploaded?.UploadDate ?? (n ? O.VillageSCARSettleDate : O.SCARSettleDate)
|
|
13589
13589
|
);
|
|
13590
13590
|
return { status: Zt.Active, date: tu(p) };
|
|
13591
13591
|
}
|
|
@@ -13596,8 +13596,12 @@ function RH({
|
|
|
13596
13596
|
return j.length === 0 ? { status: Zt.Inactive } : j.length === e.length ? { status: Zt.Active, date: tu(j.map((p) => p.stipTracking?.LastUpdateDate)) } : { status: Zt.Incomplete, count: { done: j.length, total: e.length } };
|
|
13597
13597
|
}, [e]), y = xt(() => {
|
|
13598
13598
|
if (e.length === 0) return { status: Zt.Inactive };
|
|
13599
|
-
const j = e.map((
|
|
13600
|
-
|
|
13599
|
+
const j = e.map((O) => (O.negotiations ?? []).filter((m) => m.OfferedBy === "Aventine")), p = j.filter((O) => O.length > 0).length;
|
|
13600
|
+
if (p === e.length) {
|
|
13601
|
+
const O = j.flat(), m = O.filter((L) => L.OfferedBy === "Aventine" && L.Response !== "Accept");
|
|
13602
|
+
return { status: Zt.Active, date: tu((m.length > 0 ? m : O).map((L) => L.OfferDate)) };
|
|
13603
|
+
}
|
|
13604
|
+
return p > 0 ? { status: Zt.Incomplete, count: { done: p, total: e.length } } : { status: Zt.Inactive };
|
|
13601
13605
|
}, [e]), H = xt(() => {
|
|
13602
13606
|
if (e.length === 0) return { status: Zt.Inactive };
|
|
13603
13607
|
const j = e.filter((p) => lr(p, n));
|
|
@@ -13607,8 +13611,8 @@ function RH({
|
|
|
13607
13611
|
if (!j) return "-";
|
|
13608
13612
|
let p;
|
|
13609
13613
|
if (typeof j == "string") {
|
|
13610
|
-
const
|
|
13611
|
-
p =
|
|
13614
|
+
const O = /^(\d{4})-(\d{2})-(\d{2})/.exec(j);
|
|
13615
|
+
p = O ? new Date(Number(O[1]), Number(O[2]) - 1, Number(O[3])) : new Date(j);
|
|
13612
13616
|
} else
|
|
13613
13617
|
p = j;
|
|
13614
13618
|
return new Intl.DateTimeFormat("en-US", {
|
|
@@ -13725,7 +13729,7 @@ function RH({
|
|
|
13725
13729
|
}
|
|
13726
13730
|
) }),
|
|
13727
13731
|
!!t.SkipMotion && /* @__PURE__ */ a(Ar, { label: "Skip Motion", size: "small", sx: { alignSelf: "flex-start" } }),
|
|
13728
|
-
t.Notes && t.Notes.length > 0 && /* @__PURE__ */ a(nt, { spacing: 1, children: t.Notes.filter((j, p,
|
|
13732
|
+
t.Notes && t.Notes.length > 0 && /* @__PURE__ */ a(nt, { spacing: 1, children: t.Notes.filter((j, p, O) => O.findIndex((m) => m.Message === j.Message) === p).map((j, p) => /* @__PURE__ */ V(u9, { variant: "outlined", sx: { p: 1.5, borderRadius: 2 }, children: [
|
|
13729
13733
|
/* @__PURE__ */ V(le, { variant: "caption", sx: { opacity: 0.6 }, children: [
|
|
13730
13734
|
j.User,
|
|
13731
13735
|
j.NoteDate && /* @__PURE__ */ V(kt, { children: [
|
|
@@ -13802,7 +13806,7 @@ function VH() {
|
|
|
13802
13806
|
(function(n, r) {
|
|
13803
13807
|
t.exports = r();
|
|
13804
13808
|
})(qH, (function() {
|
|
13805
|
-
var n = 1e3, r = 6e4, f = 36e5, u = "millisecond", d = "second", l = "minute", i = "hour", o = "day", v = "week", y = "month", H = "quarter", z = "year", j = "date", p = "Invalid Date",
|
|
13809
|
+
var n = 1e3, r = 6e4, f = 36e5, u = "millisecond", d = "second", l = "minute", i = "hour", o = "day", v = "week", y = "month", H = "quarter", z = "year", j = "date", p = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, L = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(fe) {
|
|
13806
13810
|
var ne = ["th", "st", "nd", "rd"], K = fe % 100;
|
|
13807
13811
|
return "[" + fe + (ne[(K - 20) % 10] || ne[K] || ne[0]) + "]";
|
|
13808
13812
|
} }, q = function(fe, ne, K) {
|
|
@@ -13858,7 +13862,7 @@ function VH() {
|
|
|
13858
13862
|
if (oe.u(T)) return /* @__PURE__ */ new Date();
|
|
13859
13863
|
if (T instanceof Date) return new Date(T);
|
|
13860
13864
|
if (typeof T == "string" && !/Z$/i.test(T)) {
|
|
13861
|
-
var Z = T.match(
|
|
13865
|
+
var Z = T.match(O);
|
|
13862
13866
|
if (Z) {
|
|
13863
13867
|
var $ = Z[2] - 1 || 0, ue = (Z[7] || "0").substring(0, 3);
|
|
13864
13868
|
return ee ? new Date(Date.UTC(Z[1], $, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, ue)) : new Date(Z[1], $, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, ue);
|
|
@@ -14228,7 +14232,7 @@ const EH = Bl(function({
|
|
|
14228
14232
|
onSelectedCasesAdjournmentChange: i,
|
|
14229
14233
|
firstChair: o
|
|
14230
14234
|
}) {
|
|
14231
|
-
const { filterCtx: v, setFilterCtx: y } = es(), { apiKey: H } = Ut(), [z, j] = ie({ type: "include", ids: /* @__PURE__ */ new Set() }), [p,
|
|
14235
|
+
const { filterCtx: v, setFilterCtx: y } = es(), { apiKey: H } = Ut(), [z, j] = ie({ type: "include", ids: /* @__PURE__ */ new Set() }), [p, O] = ie(null), [m, L] = ie(null), [q, w] = ie(!1), [k, J] = ie(null), B = [
|
|
14232
14236
|
{
|
|
14233
14237
|
field: "rowIndex",
|
|
14234
14238
|
headerName: "#",
|
|
@@ -14566,7 +14570,7 @@ Proceed?`
|
|
|
14566
14570
|
in: !!l && ze > 0,
|
|
14567
14571
|
tooltip: `Adjourn ${ze} selected case${ze !== 1 ? "s" : ""}`,
|
|
14568
14572
|
icon: /* @__PURE__ */ a(a9, {}),
|
|
14569
|
-
onClick: (W) =>
|
|
14573
|
+
onClick: (W) => O(W.currentTarget),
|
|
14570
14574
|
badgeContent: ze,
|
|
14571
14575
|
right: 32
|
|
14572
14576
|
}
|
|
@@ -14588,7 +14592,7 @@ Proceed?`
|
|
|
14588
14592
|
open: !!p,
|
|
14589
14593
|
anchorEl: p,
|
|
14590
14594
|
onClose: () => {
|
|
14591
|
-
|
|
14595
|
+
O(null), L(null);
|
|
14592
14596
|
},
|
|
14593
14597
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
14594
14598
|
transformOrigin: { vertical: "bottom", horizontal: "center" },
|
|
@@ -14622,7 +14626,7 @@ Proceed?`
|
|
|
14622
14626
|
`Adjourn ${ze} case${ze !== 1 ? "s" : ""} to ${W}?
|
|
14623
14627
|
|
|
14624
14628
|
Note: The determination for each selected case will be changed to OA.`
|
|
14625
|
-
) && (i?.(Xe, m?.toDate() ?? null), J(`${ze} case${ze !== 1 ? "s" : ""} adjourned.`),
|
|
14629
|
+
) && (i?.(Xe, m?.toDate() ?? null), J(`${ze} case${ze !== 1 ? "s" : ""} adjourned.`), O(null), L(null));
|
|
14626
14630
|
},
|
|
14627
14631
|
children: "Apply"
|
|
14628
14632
|
}
|
|
@@ -15427,7 +15431,7 @@ function f1({
|
|
|
15427
15431
|
f && w.splice(L, 1), v(q), e(q, w), i(Math.max(q.length, 1));
|
|
15428
15432
|
},
|
|
15429
15433
|
[o, f, e]
|
|
15430
|
-
),
|
|
15434
|
+
), O = Gt(
|
|
15431
15435
|
(L, q) => {
|
|
15432
15436
|
if (!u || !f) return;
|
|
15433
15437
|
const w = [...f];
|
|
@@ -15502,7 +15506,7 @@ function f1({
|
|
|
15502
15506
|
onBlur: j,
|
|
15503
15507
|
onPaste: (J) => m(q, J),
|
|
15504
15508
|
isToggled: w || !1,
|
|
15505
|
-
onToggleChange: (J) =>
|
|
15509
|
+
onToggleChange: (J) => O(q, J),
|
|
15506
15510
|
fieldLabelPrefix: r,
|
|
15507
15511
|
alternateFieldLabelPrefix: d
|
|
15508
15512
|
}
|
|
@@ -15574,7 +15578,7 @@ const d1 = Bl(function({
|
|
|
15574
15578
|
modalMode: u,
|
|
15575
15579
|
activeUser: d
|
|
15576
15580
|
}) {
|
|
15577
|
-
const { allUsers: l, isAdmin: i } = Ut(), { filterCtx: o } = es(), v = o.dateTypeFilter === "negotiations" ? mt.NEGOTIATIONS : mt.SCAR, [y, H] = ie(r.map(() => !1)), [z, j] = ie(0), p = z >= 5,
|
|
15581
|
+
const { allUsers: l, isAdmin: i } = Ut(), { filterCtx: o } = es(), v = o.dateTypeFilter === "negotiations" ? mt.NEGOTIATIONS : mt.SCAR, [y, H] = ie(r.map(() => !1)), [z, j] = ie(0), p = z >= 5, O = l[d]?.UserFirstName || "Unknown";
|
|
15578
15582
|
He(() => {
|
|
15579
15583
|
if (y.length !== r.length) {
|
|
15580
15584
|
const w = r.map((k, J) => y[J] || !1);
|
|
@@ -15663,7 +15667,7 @@ const d1 = Bl(function({
|
|
|
15663
15667
|
u1,
|
|
15664
15668
|
{
|
|
15665
15669
|
notes: e.Notes,
|
|
15666
|
-
currentUserName:
|
|
15670
|
+
currentUserName: O,
|
|
15667
15671
|
onChange: (w) => m({ ...e, Notes: w })
|
|
15668
15672
|
}
|
|
15669
15673
|
) })
|
|
@@ -15998,17 +16002,21 @@ function c1({ evidence: t, isVillage: e }) {
|
|
|
15998
16002
|
const { allUsers: n } = Ut(), r = !!t?.uploaded?.Evidence, f = (p) => {
|
|
15999
16003
|
if (!p) return [];
|
|
16000
16004
|
try {
|
|
16001
|
-
const
|
|
16002
|
-
return Array.isArray(
|
|
16005
|
+
const O = JSON.parse(p);
|
|
16006
|
+
return Array.isArray(O) ? O.map((m) => m.toLowerCase()) : [];
|
|
16003
16007
|
} catch {
|
|
16004
|
-
return p.toLowerCase().split(",").map((
|
|
16008
|
+
return p.toLowerCase().split(",").map((O) => O.trim());
|
|
16005
16009
|
}
|
|
16006
16010
|
}, u = f(r ? t?.uploaded?.Evidence ?? void 0 : t?.Evidence), d = u.find((p) => p.includes("sales") || p.includes("unequal")), l = u.find((p) => p.includes("excessive") || p.includes("equity")), i = {
|
|
16007
16011
|
sales: "sales",
|
|
16008
16012
|
unequal: e ? "village" : "sales",
|
|
16009
16013
|
excessive: "equity",
|
|
16010
16014
|
equity: "equity"
|
|
16011
|
-
}, o = t?.uploaded?.UploadDate ? new Date(t.uploaded.UploadDate).toLocaleDateString() : "", v = t?.CreatedDate ? new Date(t.CreatedDate).toLocaleDateString() : "", y = t?.User ? n[t.User] : null, H = y ? `${y.UserFirstName} ${y.UserLastName}` : "", z = (p) =>
|
|
16015
|
+
}, o = t?.uploaded?.UploadDate ? new Date(t.uploaded.UploadDate).toLocaleDateString() : "", v = t?.CreatedDate ? new Date(t.CreatedDate).toLocaleDateString() : "", y = t?.User ? n[t.User] : null, H = y ? `${y.UserFirstName} ${y.UserLastName}` : "", z = (p) => {
|
|
16016
|
+
if (!t?.ParcelID || !t?.Year) return "";
|
|
16017
|
+
const O = i[p] ?? p, m = O === "equity" ? "" : "_fnma";
|
|
16018
|
+
return `${Ey}/residential/evidence/${t.Year}/${t.ParcelID}/${O}_comps${m}.pdf`;
|
|
16019
|
+
}, j = (p) => /* @__PURE__ */ V(kt, { children: [
|
|
16012
16020
|
/* @__PURE__ */ V(nt, { direction: "row", alignItems: "center", gap: 0.5, flexWrap: "wrap", children: [
|
|
16013
16021
|
/* @__PURE__ */ a(le, { variant: "caption", fontWeight: 600, children: p }),
|
|
16014
16022
|
r ? /* @__PURE__ */ a(
|
|
@@ -16145,7 +16153,7 @@ const a1 = Bl(function({
|
|
|
16145
16153
|
VillageSCARDeterminationAction: z,
|
|
16146
16154
|
SCARSettleDate: j,
|
|
16147
16155
|
SCARFileDate: p,
|
|
16148
|
-
VillageSCARSettleDate:
|
|
16156
|
+
VillageSCARSettleDate: O,
|
|
16149
16157
|
VillageSCARFileDate: m,
|
|
16150
16158
|
property_data: L,
|
|
16151
16159
|
evidence: q,
|
|
@@ -16250,7 +16258,7 @@ const a1 = Bl(function({
|
|
|
16250
16258
|
Nt,
|
|
16251
16259
|
{
|
|
16252
16260
|
label: "Village SCAR Settle Date",
|
|
16253
|
-
value:
|
|
16261
|
+
value: O ? new Date(O).toLocaleDateString() : "—"
|
|
16254
16262
|
}
|
|
16255
16263
|
)
|
|
16256
16264
|
] }) : /* @__PURE__ */ V(kt, { children: [
|
|
@@ -16447,7 +16455,7 @@ function P1({
|
|
|
16447
16455
|
}
|
|
16448
16456
|
return d(!1), !0;
|
|
16449
16457
|
}
|
|
16450
|
-
async function
|
|
16458
|
+
async function O() {
|
|
16451
16459
|
if (!r) return !1;
|
|
16452
16460
|
const L = H();
|
|
16453
16461
|
return L.valid ? t === tt.CREATE ? await p() : (await yd(
|
|
@@ -16463,7 +16471,7 @@ function P1({
|
|
|
16463
16471
|
if (!window.confirm("Are you sure you want to delete this court date?")) return;
|
|
16464
16472
|
await FH(e.CourtDateID, l, e.DateType ?? void 0), o(e, !0), e.CourtDateID && y(kn(e)), d(!1);
|
|
16465
16473
|
}
|
|
16466
|
-
return { handleSave:
|
|
16474
|
+
return { handleSave: O, handleDelete: m, handleViewUpdateChair: z, handleSelectedCasesAdjournmentChange: j };
|
|
16467
16475
|
}
|
|
16468
16476
|
const ol = 320, vl = 200, z1 = V3(function(e, n) {
|
|
16469
16477
|
const { children: r, in: f = !1, appear: u, onEnter: d, onEntering: l, onEntered: i, onExit: o, onExiting: v, onExited: y } = e, H = Fe(null);
|
|
@@ -16509,7 +16517,7 @@ function b1({
|
|
|
16509
16517
|
clickedCase: z,
|
|
16510
16518
|
setClickedCase: j
|
|
16511
16519
|
}) {
|
|
16512
|
-
const { getTownshipName: p, isAdmin:
|
|
16520
|
+
const { getTownshipName: p, isAdmin: O, activeUser: m } = Ut(), [L, q] = ie(!1);
|
|
16513
16521
|
He(() => {
|
|
16514
16522
|
if (!t) return;
|
|
16515
16523
|
function se(oe) {
|
|
@@ -16576,7 +16584,7 @@ function b1({
|
|
|
16576
16584
|
cases: d?.cases ?? l,
|
|
16577
16585
|
isVillage: Rn(f ? f.MuniCode : ""),
|
|
16578
16586
|
isFetchingCases: i,
|
|
16579
|
-
onUpdateChair:
|
|
16587
|
+
onUpdateChair: O ? B : void 0
|
|
16580
16588
|
}
|
|
16581
16589
|
),
|
|
16582
16590
|
/* @__PURE__ */ a(
|
|
@@ -16588,9 +16596,9 @@ function b1({
|
|
|
16588
16596
|
selectedDate: u || new Date(f?.CourtDate || /* @__PURE__ */ new Date()),
|
|
16589
16597
|
isVillage: Rn(f ? f.MuniCode : ""),
|
|
16590
16598
|
csvFileName: w,
|
|
16591
|
-
isAdmin:
|
|
16599
|
+
isAdmin: O,
|
|
16592
16600
|
selectedCourtDate: f,
|
|
16593
|
-
onSelectedCasesAdjournmentChange:
|
|
16601
|
+
onSelectedCasesAdjournmentChange: O ? M : void 0
|
|
16594
16602
|
}
|
|
16595
16603
|
)
|
|
16596
16604
|
] }),
|
|
@@ -16621,7 +16629,7 @@ function b1({
|
|
|
16621
16629
|
onSave: ae,
|
|
16622
16630
|
setModalMode: n,
|
|
16623
16631
|
setIsOpen: r,
|
|
16624
|
-
isAdmin:
|
|
16632
|
+
isAdmin: O
|
|
16625
16633
|
}
|
|
16626
16634
|
)
|
|
16627
16635
|
]
|
|
@@ -16674,11 +16682,11 @@ function y1({
|
|
|
16674
16682
|
};
|
|
16675
16683
|
function v(p) {
|
|
16676
16684
|
if (p.isAdjourned) return "Adjourned";
|
|
16677
|
-
const
|
|
16685
|
+
const O = p.cases, m = Rn(p.muniCode);
|
|
16678
16686
|
let L = !0, q = !0;
|
|
16679
|
-
for (const w of
|
|
16687
|
+
for (const w of O)
|
|
16680
16688
|
L && !lr(w, m) && (L = !1), q && w.DateCompleted === null && (q = !1);
|
|
16681
|
-
return
|
|
16689
|
+
return O.length > 0 && L ? "Settled/Decision" : q ? p.lifecycle === Et.UPLOADED ? "NYSCEF Uploaded" : p.hasAdjournedNoDate ? "Adjourned (No Date)" : p.lifecycle === Et.ADJOURNED ? "Adjourned" : p.lifecycle === Et.SCHEDULED || p.lifecycle === Et.ASSIGNED ? "Scheduled" : "Blank" : "Reviewing";
|
|
16682
16690
|
}
|
|
16683
16691
|
function y(p) {
|
|
16684
16692
|
return p.hearingType === jt.IN_PERSON ? "In Person" : p.hearingType === jt.UNKNOWN ? "Unknown" : "Virtual";
|
|
@@ -16700,7 +16708,7 @@ function y1({
|
|
|
16700
16708
|
width: 125,
|
|
16701
16709
|
disableColumnMenu: !0,
|
|
16702
16710
|
renderCell: (p) => {
|
|
16703
|
-
const
|
|
16711
|
+
const O = p.value, m = l[O] || "#c4c4c4";
|
|
16704
16712
|
return /* @__PURE__ */ a(
|
|
16705
16713
|
"span",
|
|
16706
16714
|
{
|
|
@@ -16712,7 +16720,7 @@ function y1({
|
|
|
16712
16720
|
fontWeight: "bold",
|
|
16713
16721
|
border: "1px solid var(--fc-border-color)"
|
|
16714
16722
|
},
|
|
16715
|
-
children:
|
|
16723
|
+
children: O
|
|
16716
16724
|
}
|
|
16717
16725
|
);
|
|
16718
16726
|
}
|
|
@@ -16723,7 +16731,7 @@ function y1({
|
|
|
16723
16731
|
width: 125,
|
|
16724
16732
|
disableColumnMenu: !0,
|
|
16725
16733
|
renderCell: (p) => {
|
|
16726
|
-
const
|
|
16734
|
+
const O = p.value, m = i[O] || "#c4c4c4";
|
|
16727
16735
|
return /* @__PURE__ */ a(
|
|
16728
16736
|
"span",
|
|
16729
16737
|
{
|
|
@@ -16735,7 +16743,7 @@ function y1({
|
|
|
16735
16743
|
fontWeight: "bold",
|
|
16736
16744
|
border: "1px solid var(--fc-border-color)"
|
|
16737
16745
|
},
|
|
16738
|
-
children:
|
|
16746
|
+
children: O
|
|
16739
16747
|
}
|
|
16740
16748
|
);
|
|
16741
16749
|
}
|
|
@@ -16758,7 +16766,7 @@ function y1({
|
|
|
16758
16766
|
width: 125,
|
|
16759
16767
|
disableColumnMenu: !0,
|
|
16760
16768
|
valueFormatter: (p) => p ? new Date(p).toLocaleDateString() : "—",
|
|
16761
|
-
sortComparator: (p,
|
|
16769
|
+
sortComparator: (p, O) => new Date(p).getTime() - new Date(O).getTime()
|
|
16762
16770
|
},
|
|
16763
16771
|
{
|
|
16764
16772
|
field: "status",
|
|
@@ -16766,7 +16774,7 @@ function y1({
|
|
|
16766
16774
|
width: 150,
|
|
16767
16775
|
disableColumnMenu: !0,
|
|
16768
16776
|
renderCell: (p) => {
|
|
16769
|
-
const
|
|
16777
|
+
const O = p.value, m = o[O] || "#c4c4c4";
|
|
16770
16778
|
return /* @__PURE__ */ a(
|
|
16771
16779
|
"span",
|
|
16772
16780
|
{
|
|
@@ -16778,7 +16786,7 @@ function y1({
|
|
|
16778
16786
|
fontWeight: "bold",
|
|
16779
16787
|
border: "1px solid var(--fc-border-color)"
|
|
16780
16788
|
},
|
|
16781
|
-
children:
|
|
16789
|
+
children: O
|
|
16782
16790
|
}
|
|
16783
16791
|
);
|
|
16784
16792
|
}
|
|
@@ -16789,14 +16797,14 @@ function y1({
|
|
|
16789
16797
|
width: 125,
|
|
16790
16798
|
disableColumnMenu: !0,
|
|
16791
16799
|
renderCell: (p) => {
|
|
16792
|
-
const
|
|
16800
|
+
const O = p.value;
|
|
16793
16801
|
return /* @__PURE__ */ a(
|
|
16794
16802
|
$7,
|
|
16795
16803
|
{
|
|
16796
|
-
user1ID:
|
|
16797
|
-
user2ID:
|
|
16804
|
+
user1ID: O.user1ID,
|
|
16805
|
+
user2ID: O.user2ID,
|
|
16798
16806
|
onUpdateChair: r ? (m, L) => r(
|
|
16799
|
-
|
|
16807
|
+
O.courtDateId,
|
|
16800
16808
|
m,
|
|
16801
16809
|
L
|
|
16802
16810
|
) : void 0
|
|
@@ -16817,7 +16825,7 @@ function y1({
|
|
|
16817
16825
|
width: 125,
|
|
16818
16826
|
disableColumnMenu: !0,
|
|
16819
16827
|
renderCell: (p) => {
|
|
16820
|
-
const
|
|
16828
|
+
const O = p.value, m = H[O] || "#c4c4c4";
|
|
16821
16829
|
return /* @__PURE__ */ a(
|
|
16822
16830
|
"span",
|
|
16823
16831
|
{
|
|
@@ -16829,16 +16837,16 @@ function y1({
|
|
|
16829
16837
|
fontWeight: "bold",
|
|
16830
16838
|
border: "1px solid var(--fc-border-color)"
|
|
16831
16839
|
},
|
|
16832
|
-
children:
|
|
16840
|
+
children: O
|
|
16833
16841
|
}
|
|
16834
16842
|
);
|
|
16835
16843
|
}
|
|
16836
16844
|
}
|
|
16837
16845
|
], j = t.filter((p) => new Date(p.activeDate).getFullYear() === n.getFullYear()).map((p) => {
|
|
16838
|
-
let
|
|
16839
|
-
return p.isAdjourned ?
|
|
16846
|
+
let O;
|
|
16847
|
+
return p.isAdjourned ? O = `${u(p.muniCode)} (${p.muniCode}) - Adjournment` : p.isExtraDay ? O = `${u(p.muniCode)} (day ${(p.extraDayIndex ?? 0) + 2})` : O = `${u(p.muniCode)}${p.isMultiDay ? " (day 1)" : ""}`, {
|
|
16840
16848
|
id: p.id,
|
|
16841
|
-
township:
|
|
16849
|
+
township: O,
|
|
16842
16850
|
county: d(p.muniCode),
|
|
16843
16851
|
type: p.dateType === mt.NEGOTIATIONS ? "Negotiations" : "Court Dates",
|
|
16844
16852
|
district: p.muniCode,
|
|
@@ -16867,8 +16875,8 @@ function y1({
|
|
|
16867
16875
|
}
|
|
16868
16876
|
},
|
|
16869
16877
|
onRowClick: (p) => {
|
|
16870
|
-
const
|
|
16871
|
-
|
|
16878
|
+
const O = t.find((m) => m.id === p.id.toString());
|
|
16879
|
+
O && e(O);
|
|
16872
16880
|
},
|
|
16873
16881
|
getRowClassName: () => "ccalendar-list-row"
|
|
16874
16882
|
}
|
|
@@ -16893,7 +16901,7 @@ function H1() {
|
|
|
16893
16901
|
}).apply(this, arguments);
|
|
16894
16902
|
};
|
|
16895
16903
|
function f(s, c, P) {
|
|
16896
|
-
for (var b, X = 0,
|
|
16904
|
+
for (var b, X = 0, h = c.length; X < h; X++) !b && X in c || ((b = b || Array.prototype.slice.call(c, 0, X))[X] = c[X]);
|
|
16897
16905
|
return s.concat(b || Array.prototype.slice.call(c));
|
|
16898
16906
|
}
|
|
16899
16907
|
var u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : nH, d = Object.keys, l = Array.isArray;
|
|
@@ -16921,7 +16929,7 @@ function H1() {
|
|
|
16921
16929
|
return s.prototype = Object.create(c.prototype), j(s.prototype, "constructor", s), { extend: H.bind(null, s.prototype) };
|
|
16922
16930
|
} };
|
|
16923
16931
|
}
|
|
16924
|
-
var
|
|
16932
|
+
var O = Object.getOwnPropertyDescriptor, m = [].slice;
|
|
16925
16933
|
function L(s, c, P) {
|
|
16926
16934
|
return m.call(s, c, P);
|
|
16927
16935
|
}
|
|
@@ -16939,8 +16947,8 @@ function H1() {
|
|
|
16939
16947
|
if (!c) return s;
|
|
16940
16948
|
if (typeof c != "string") {
|
|
16941
16949
|
for (var P = [], b = 0, X = c.length; b < X; ++b) {
|
|
16942
|
-
var
|
|
16943
|
-
P.push(
|
|
16950
|
+
var h = J(s, c[b]);
|
|
16951
|
+
P.push(h);
|
|
16944
16952
|
}
|
|
16945
16953
|
return P;
|
|
16946
16954
|
}
|
|
@@ -16955,8 +16963,8 @@ function H1() {
|
|
|
16955
16963
|
w(typeof P != "string" && "length" in P);
|
|
16956
16964
|
for (var b = 0, X = c.length; b < X; ++b) B(s, c[b], P[b]);
|
|
16957
16965
|
} else {
|
|
16958
|
-
var
|
|
16959
|
-
D !== -1 ? (
|
|
16966
|
+
var h, x, D = c.indexOf(".");
|
|
16967
|
+
D !== -1 ? (h = c.substr(0, D), (x = c.substr(D + 1)) === "" ? P === void 0 ? l(s) && !isNaN(parseInt(h)) ? s.splice(h, 1) : delete s[h] : s[h] = P : B(D = !(D = s[h]) || !y(s, h) ? s[h] = {} : D, x, P)) : P === void 0 ? l(s) && !isNaN(parseInt(c)) ? s.splice(c, 1) : delete s[c] : s[c] = P;
|
|
16960
16968
|
}
|
|
16961
16969
|
}
|
|
16962
16970
|
function M(s) {
|
|
@@ -16984,7 +16992,7 @@ function H1() {
|
|
|
16984
16992
|
if (b) return b;
|
|
16985
16993
|
if (l(P)) {
|
|
16986
16994
|
b = [], ze.set(P, b);
|
|
16987
|
-
for (var X = 0,
|
|
16995
|
+
for (var X = 0, h = P.length; X < h; ++X) b.push(c(P[X]));
|
|
16988
16996
|
} else if (oe.has(P.constructor)) b = P;
|
|
16989
16997
|
else {
|
|
16990
16998
|
var x, D = o(P);
|
|
@@ -17055,9 +17063,9 @@ function H1() {
|
|
|
17055
17063
|
return s[c] = c + "Error", s;
|
|
17056
17064
|
}, {}), Je = be, ve = Nn.reduce(function(s, c) {
|
|
17057
17065
|
var P = c + "Error";
|
|
17058
|
-
function b(X,
|
|
17059
|
-
this.name = P, X ? typeof X == "string" ? (this.message = "".concat(X).concat(
|
|
17060
|
-
` +
|
|
17066
|
+
function b(X, h) {
|
|
17067
|
+
this.name = P, X ? typeof X == "string" ? (this.message = "".concat(X).concat(h ? `
|
|
17068
|
+
` + h : ""), this.inner = h || null) : typeof X == "object" && (this.message = "".concat(X.name, " ").concat(X.message), this.inner = X) : (this.message = ue[c] || P, this.inner = null);
|
|
17061
17069
|
}
|
|
17062
17070
|
return p(b).from(Je), s[c] = b, s;
|
|
17063
17071
|
}, {});
|
|
@@ -17088,8 +17096,8 @@ function H1() {
|
|
|
17088
17096
|
P !== void 0 && (arguments[0] = P);
|
|
17089
17097
|
var b = this.onsuccess, X = this.onerror;
|
|
17090
17098
|
this.onsuccess = null, this.onerror = null;
|
|
17091
|
-
var
|
|
17092
|
-
return b && (this.onsuccess = this.onsuccess ? zt(b, this.onsuccess) : b), X && (this.onerror = this.onerror ? zt(X, this.onerror) : X),
|
|
17099
|
+
var h = c.apply(this, arguments);
|
|
17100
|
+
return b && (this.onsuccess = this.onsuccess ? zt(b, this.onsuccess) : b), X && (this.onerror = this.onerror ? zt(X, this.onerror) : X), h !== void 0 ? h : P;
|
|
17093
17101
|
};
|
|
17094
17102
|
}
|
|
17095
17103
|
function Tt(s, c) {
|
|
@@ -17103,8 +17111,8 @@ function H1() {
|
|
|
17103
17111
|
return s === de ? c : function(P) {
|
|
17104
17112
|
var b = s.apply(this, arguments);
|
|
17105
17113
|
i(P, b);
|
|
17106
|
-
var X = this.onsuccess,
|
|
17107
|
-
return this.onsuccess = null, this.onerror = null, P = c.apply(this, arguments), X && (this.onsuccess = this.onsuccess ? zt(X, this.onsuccess) : X),
|
|
17114
|
+
var X = this.onsuccess, h = this.onerror;
|
|
17115
|
+
return this.onsuccess = null, this.onerror = null, P = c.apply(this, arguments), X && (this.onsuccess = this.onsuccess ? zt(X, this.onsuccess) : X), h && (this.onerror = this.onerror ? zt(h, this.onerror) : h), b === void 0 ? P === void 0 ? void 0 : P : i(b, P);
|
|
17108
17116
|
};
|
|
17109
17117
|
}
|
|
17110
17118
|
function jn(s, c) {
|
|
@@ -17116,9 +17124,9 @@ function H1() {
|
|
|
17116
17124
|
return s === de ? c : function() {
|
|
17117
17125
|
var P = s.apply(this, arguments);
|
|
17118
17126
|
if (P && typeof P.then == "function") {
|
|
17119
|
-
for (var b = this, X = arguments.length,
|
|
17127
|
+
for (var b = this, X = arguments.length, h = new Array(X); X--; ) h[X] = arguments[X];
|
|
17120
17128
|
return P.then(function() {
|
|
17121
|
-
return c.apply(b,
|
|
17129
|
+
return c.apply(b, h);
|
|
17122
17130
|
});
|
|
17123
17131
|
}
|
|
17124
17132
|
return c.apply(this, arguments);
|
|
@@ -17147,25 +17155,25 @@ function H1() {
|
|
|
17147
17155
|
}
|
|
17148
17156
|
this._state = null, this._value = null, ++c.ref, (function P(b, X) {
|
|
17149
17157
|
try {
|
|
17150
|
-
X(function(
|
|
17158
|
+
X(function(h) {
|
|
17151
17159
|
if (b._state === null) {
|
|
17152
|
-
if (
|
|
17160
|
+
if (h === b) throw new TypeError("A promise cannot be resolved with itself.");
|
|
17153
17161
|
var x = b._lib && qe();
|
|
17154
|
-
|
|
17155
|
-
|
|
17156
|
-
}) : (b._state = !0, b._value =
|
|
17162
|
+
h && typeof h.then == "function" ? P(b, function(D, S) {
|
|
17163
|
+
h instanceof me ? h._then(D, S) : h.then(D, S);
|
|
17164
|
+
}) : (b._state = !0, b._value = h, Vn(b)), x && he();
|
|
17157
17165
|
}
|
|
17158
17166
|
}, zn.bind(null, b));
|
|
17159
|
-
} catch (
|
|
17160
|
-
zn(b,
|
|
17167
|
+
} catch (h) {
|
|
17168
|
+
zn(b, h);
|
|
17161
17169
|
}
|
|
17162
17170
|
})(this, s);
|
|
17163
17171
|
}
|
|
17164
17172
|
var Tn = { get: function() {
|
|
17165
17173
|
var s = Ne, c = tn;
|
|
17166
17174
|
function P(b, X) {
|
|
17167
|
-
var
|
|
17168
|
-
Fn(
|
|
17175
|
+
var h = this, x = !s.global && (s !== Ne || c !== tn), D = x && !ft(), S = new me(function(g, F) {
|
|
17176
|
+
Fn(h, new qn(Uf(b, s, x, D), Uf(X, s, x, D), g, F, s));
|
|
17169
17177
|
});
|
|
17170
17178
|
return this._consoleTask && (S._consoleTask = this._consoleTask), S;
|
|
17171
17179
|
}
|
|
@@ -17205,11 +17213,11 @@ function H1() {
|
|
|
17205
17213
|
var b, X = c._value;
|
|
17206
17214
|
!c._state && xn.length && (xn = []), b = Ue && c._consoleTask ? c._consoleTask.run(function() {
|
|
17207
17215
|
return s(X);
|
|
17208
|
-
}) : s(X), c._state || xn.indexOf(X) !== -1 || (function(
|
|
17209
|
-
for (var x = en.length; x; ) if (en[--x]._value ===
|
|
17216
|
+
}) : s(X), c._state || xn.indexOf(X) !== -1 || (function(h) {
|
|
17217
|
+
for (var x = en.length; x; ) if (en[--x]._value === h._value) return en.splice(x, 1);
|
|
17210
17218
|
})(c), P.resolve(b);
|
|
17211
|
-
} catch (
|
|
17212
|
-
P.reject(
|
|
17219
|
+
} catch (h) {
|
|
17220
|
+
P.reject(h);
|
|
17213
17221
|
} finally {
|
|
17214
17222
|
--It == 0 && _e(), --P.psd.ref || P.psd.finalize();
|
|
17215
17223
|
}
|
|
@@ -17249,8 +17257,8 @@ function H1() {
|
|
|
17249
17257
|
var b = qe(), X = Ne;
|
|
17250
17258
|
try {
|
|
17251
17259
|
return Yn(P, !0), s.apply(this, arguments);
|
|
17252
|
-
} catch (
|
|
17253
|
-
c && c(
|
|
17260
|
+
} catch (h) {
|
|
17261
|
+
c && c(h);
|
|
17254
17262
|
} finally {
|
|
17255
17263
|
Yn(X, !1), b && he();
|
|
17256
17264
|
}
|
|
@@ -17279,19 +17287,19 @@ function H1() {
|
|
|
17279
17287
|
}, timeout: function(s, c) {
|
|
17280
17288
|
var P = this;
|
|
17281
17289
|
return s < 1 / 0 ? new me(function(b, X) {
|
|
17282
|
-
var
|
|
17290
|
+
var h = setTimeout(function() {
|
|
17283
17291
|
return X(new ve.Timeout(c));
|
|
17284
17292
|
}, s);
|
|
17285
|
-
P.then(b, X).finally(clearTimeout.bind(null,
|
|
17293
|
+
P.then(b, X).finally(clearTimeout.bind(null, h));
|
|
17286
17294
|
}) : this;
|
|
17287
17295
|
} }), typeof Symbol < "u" && Symbol.toStringTag && j(me.prototype, Symbol.toStringTag, "Dexie.Promise"), ut.env = Ef(), H(me, { all: function() {
|
|
17288
17296
|
var s = Z.apply(null, arguments).map(Sn);
|
|
17289
17297
|
return new me(function(c, P) {
|
|
17290
17298
|
s.length === 0 && c([]);
|
|
17291
17299
|
var b = s.length;
|
|
17292
|
-
s.forEach(function(X,
|
|
17300
|
+
s.forEach(function(X, h) {
|
|
17293
17301
|
return me.resolve(X).then(function(x) {
|
|
17294
|
-
s[
|
|
17302
|
+
s[h] = x, --b || c(s);
|
|
17295
17303
|
}, P);
|
|
17296
17304
|
});
|
|
17297
17305
|
});
|
|
@@ -17322,12 +17330,12 @@ function H1() {
|
|
|
17322
17330
|
sn = s;
|
|
17323
17331
|
} }, follow: function(s, c) {
|
|
17324
17332
|
return new me(function(P, b) {
|
|
17325
|
-
return Xt(function(X,
|
|
17333
|
+
return Xt(function(X, h) {
|
|
17326
17334
|
var x = Ne;
|
|
17327
|
-
x.unhandleds = [], x.onunhandled =
|
|
17335
|
+
x.unhandleds = [], x.onunhandled = h, x.finalize = zt(function() {
|
|
17328
17336
|
var D, S = this;
|
|
17329
17337
|
D = function() {
|
|
17330
|
-
S.unhandleds.length === 0 ? X() :
|
|
17338
|
+
S.unhandleds.length === 0 ? X() : h(S.unhandleds[0]);
|
|
17331
17339
|
}, ln.push(function g() {
|
|
17332
17340
|
D(), ln.splice(ln.indexOf(g), 1);
|
|
17333
17341
|
}), ++It, on(function() {
|
|
@@ -17341,11 +17349,11 @@ function H1() {
|
|
|
17341
17349
|
return new me(function(c) {
|
|
17342
17350
|
s.length === 0 && c([]);
|
|
17343
17351
|
var P = s.length, b = new Array(P);
|
|
17344
|
-
s.forEach(function(X,
|
|
17352
|
+
s.forEach(function(X, h) {
|
|
17345
17353
|
return me.resolve(X).then(function(x) {
|
|
17346
|
-
return b[
|
|
17354
|
+
return b[h] = { status: "fulfilled", value: x };
|
|
17347
17355
|
}, function(x) {
|
|
17348
|
-
return b[
|
|
17356
|
+
return b[h] = { status: "rejected", reason: x };
|
|
17349
17357
|
}).then(function() {
|
|
17350
17358
|
return --P || c(b);
|
|
17351
17359
|
});
|
|
@@ -17356,8 +17364,8 @@ function H1() {
|
|
|
17356
17364
|
return new me(function(c, P) {
|
|
17357
17365
|
s.length === 0 && P(new AggregateError([]));
|
|
17358
17366
|
var b = s.length, X = new Array(b);
|
|
17359
|
-
s.forEach(function(
|
|
17360
|
-
return me.resolve(
|
|
17367
|
+
s.forEach(function(h, x) {
|
|
17368
|
+
return me.resolve(h).then(function(D) {
|
|
17361
17369
|
return c(D);
|
|
17362
17370
|
}, function(D) {
|
|
17363
17371
|
X[x] = D, --b || P(new AggregateError(X));
|
|
@@ -17367,10 +17375,10 @@ function H1() {
|
|
|
17367
17375
|
}), $t.withResolvers && (me.withResolvers = $t.withResolvers));
|
|
17368
17376
|
var we = { awaits: 0, echoes: 0, id: 0 }, Ve = 0, rt = [], ht = 0, tn = 0, Ln = 0;
|
|
17369
17377
|
function Xt(s, c, P, b) {
|
|
17370
|
-
var X = Ne,
|
|
17371
|
-
return
|
|
17378
|
+
var X = Ne, h = Object.create(X);
|
|
17379
|
+
return h.parent = X, h.ref = 0, h.global = !1, h.id = ++Ln, ut.env, h.env = un ? { Promise: me, PromiseProp: { value: me, configurable: !0, writable: !0 }, all: me.all, race: me.race, allSettled: me.allSettled, any: me.any, resolve: me.resolve, reject: me.reject } : {}, c && i(h, c), ++X.ref, h.finalize = function() {
|
|
17372
17380
|
--this.parent.ref || this.parent.finalize();
|
|
17373
|
-
}, b = Cn(
|
|
17381
|
+
}, b = Cn(h, s, P, b), h.ref === 0 && h.finalize(), b;
|
|
17374
17382
|
}
|
|
17375
17383
|
function qt() {
|
|
17376
17384
|
return we.id || (we.id = ++Ve), ++we.awaits, we.echoes += Wn, we.id;
|
|
@@ -17400,11 +17408,11 @@ function H1() {
|
|
|
17400
17408
|
return un ? { Promise: s, PromiseProp: Object.getOwnPropertyDescriptor(u, "Promise"), all: s.all, race: s.race, allSettled: s.allSettled, any: s.any, resolve: s.resolve, reject: s.reject } : {};
|
|
17401
17409
|
}
|
|
17402
17410
|
function Cn(s, c, P, b, X) {
|
|
17403
|
-
var
|
|
17411
|
+
var h = Ne;
|
|
17404
17412
|
try {
|
|
17405
17413
|
return Yn(s, !0), c(P, b, X);
|
|
17406
17414
|
} finally {
|
|
17407
|
-
Yn(
|
|
17415
|
+
Yn(h, !1);
|
|
17408
17416
|
}
|
|
17409
17417
|
}
|
|
17410
17418
|
function Uf(s, c, P, b) {
|
|
@@ -17449,14 +17457,14 @@ function H1() {
|
|
|
17449
17457
|
case "string":
|
|
17450
17458
|
return c < s ? 1 : s < c ? -1 : 0;
|
|
17451
17459
|
case "binary":
|
|
17452
|
-
return (function(X,
|
|
17453
|
-
for (var x = X.length, D =
|
|
17460
|
+
return (function(X, h) {
|
|
17461
|
+
for (var x = X.length, D = h.length, S = x < D ? x : D, g = 0; g < S; ++g) if (X[g] !== h[g]) return X[g] < h[g] ? -1 : 1;
|
|
17454
17462
|
return x === D ? 0 : x < D ? -1 : 1;
|
|
17455
17463
|
})(Gc(s), Gc(c));
|
|
17456
17464
|
case "Array":
|
|
17457
|
-
return (function(X,
|
|
17458
|
-
for (var x = X.length, D =
|
|
17459
|
-
var F = $e(X[g],
|
|
17465
|
+
return (function(X, h) {
|
|
17466
|
+
for (var x = X.length, D = h.length, S = x < D ? x : D, g = 0; g < S; ++g) {
|
|
17467
|
+
var F = $e(X[g], h[g]);
|
|
17460
17468
|
if (F !== 0) return F;
|
|
17461
17469
|
}
|
|
17462
17470
|
return x === D ? 0 : x < D ? -1 : 1;
|
|
@@ -17475,8 +17483,8 @@ function H1() {
|
|
|
17475
17483
|
}
|
|
17476
17484
|
function Nu(s, c, P) {
|
|
17477
17485
|
var b = s.schema.yProps;
|
|
17478
|
-
return b ? (c && 0 < P.numFailures && (c = c.filter(function(X,
|
|
17479
|
-
return !P.failures[
|
|
17486
|
+
return b ? (c && 0 < P.numFailures && (c = c.filter(function(X, h) {
|
|
17487
|
+
return !P.failures[h];
|
|
17480
17488
|
})), Promise.all(b.map(function(X) {
|
|
17481
17489
|
return X = X.updatesTable, c ? s.db.table(X).where("k").anyOf(c).delete() : s.db.table(X).clear();
|
|
17482
17490
|
})).then(function() {
|
|
@@ -17515,14 +17523,14 @@ function H1() {
|
|
|
17515
17523
|
this["@@propmod"] = s;
|
|
17516
17524
|
}
|
|
17517
17525
|
function Uc(s, c) {
|
|
17518
|
-
for (var P = d(c), b = P.length, X = !1,
|
|
17519
|
-
var x = P[
|
|
17526
|
+
for (var P = d(c), b = P.length, X = !1, h = 0; h < b; ++h) {
|
|
17527
|
+
var x = P[h], D = c[x], S = J(s, x);
|
|
17520
17528
|
D instanceof Ff ? (B(s, x, D.execute(S)), X = !0) : S !== D && (B(s, x, D), X = !0);
|
|
17521
17529
|
}
|
|
17522
17530
|
return X;
|
|
17523
17531
|
}
|
|
17524
17532
|
var Fc = (vt.prototype._trans = function(s, c, P) {
|
|
17525
|
-
var b = this._tx || Ne.trans, X = this.name,
|
|
17533
|
+
var b = this._tx || Ne.trans, X = this.name, h = Ue && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(s === "readonly" ? "read" : "write", " ").concat(this.name));
|
|
17526
17534
|
function x(g, F, R) {
|
|
17527
17535
|
if (!R.schema[X]) throw new ve.NotFound("Table " + X + " not part of transaction");
|
|
17528
17536
|
return c(R.idbtrans, R);
|
|
@@ -17564,7 +17572,7 @@ function H1() {
|
|
|
17564
17572
|
return g(F, R, C, I);
|
|
17565
17573
|
});
|
|
17566
17574
|
})(this.db, s, [this.name], x);
|
|
17567
|
-
return
|
|
17575
|
+
return h && (S._consoleTask = h, S = S.catch(function(g) {
|
|
17568
17576
|
return console.trace(g), Ht(g);
|
|
17569
17577
|
})), S;
|
|
17570
17578
|
} finally {
|
|
@@ -17594,8 +17602,8 @@ function H1() {
|
|
|
17594
17602
|
return D.keyPath.length - S.keyPath.length;
|
|
17595
17603
|
})[0];
|
|
17596
17604
|
if (P && this.db._maxKey !== Qe) {
|
|
17597
|
-
var
|
|
17598
|
-
return this.where(
|
|
17605
|
+
var h = P.keyPath.slice(0, c.length);
|
|
17606
|
+
return this.where(h).equals(h.map(function(S) {
|
|
17599
17607
|
return s[S];
|
|
17600
17608
|
}));
|
|
17601
17609
|
}
|
|
@@ -17613,8 +17621,8 @@ function H1() {
|
|
|
17613
17621
|
} : function(I) {
|
|
17614
17622
|
return X(C, J(I, S));
|
|
17615
17623
|
}) : F];
|
|
17616
|
-
}, [null, null]),
|
|
17617
|
-
return
|
|
17624
|
+
}, [null, null]), h = x[0], x = x[1];
|
|
17625
|
+
return h ? this.where(h.name).equals(s[h.keyPath]).filter(x) : P ? this.filter(x) : this.where(c).equals("");
|
|
17618
17626
|
}, vt.prototype.filter = function(s) {
|
|
17619
17627
|
return this.toCollection().and(s);
|
|
17620
17628
|
}, vt.prototype.count = function(s) {
|
|
@@ -17649,13 +17657,13 @@ function H1() {
|
|
|
17649
17657
|
}, enumerable: !1, configurable: !0 }), X.prototype.table = function() {
|
|
17650
17658
|
return b;
|
|
17651
17659
|
}, s = X);
|
|
17652
|
-
for (var
|
|
17653
|
-
return
|
|
17660
|
+
for (var h = /* @__PURE__ */ new Set(), x = s.prototype; x; x = o(x)) Object.getOwnPropertyNames(x).forEach(function(S) {
|
|
17661
|
+
return h.add(S);
|
|
17654
17662
|
});
|
|
17655
17663
|
function D(S) {
|
|
17656
17664
|
if (!S) return S;
|
|
17657
17665
|
var g, F = Object.create(s.prototype);
|
|
17658
|
-
for (g in S) if (!
|
|
17666
|
+
for (g in S) if (!h.has(g)) try {
|
|
17659
17667
|
F[g] = S[g];
|
|
17660
17668
|
} catch {
|
|
17661
17669
|
}
|
|
@@ -17667,14 +17675,14 @@ function H1() {
|
|
|
17667
17675
|
i(this, s);
|
|
17668
17676
|
});
|
|
17669
17677
|
}, vt.prototype.add = function(s, c) {
|
|
17670
|
-
var P = this, b = this.schema.primKey, X = b.auto,
|
|
17671
|
-
return
|
|
17678
|
+
var P = this, b = this.schema.primKey, X = b.auto, h = b.keyPath, x = s;
|
|
17679
|
+
return h && X && (x = Zu(h)(s)), this._trans("readwrite", function(D) {
|
|
17672
17680
|
return P.core.mutate({ trans: D, type: "add", keys: c != null ? [c] : null, values: [x] });
|
|
17673
17681
|
}).then(function(D) {
|
|
17674
17682
|
return D.numFailures ? me.reject(D.failures[0]) : D.lastResult;
|
|
17675
17683
|
}).then(function(D) {
|
|
17676
|
-
if (
|
|
17677
|
-
B(s,
|
|
17684
|
+
if (h) try {
|
|
17685
|
+
B(s, h, D);
|
|
17678
17686
|
} catch {
|
|
17679
17687
|
}
|
|
17680
17688
|
return D;
|
|
@@ -17682,24 +17690,24 @@ function H1() {
|
|
|
17682
17690
|
}, vt.prototype.upsert = function(s, c) {
|
|
17683
17691
|
var P = this, b = this.schema.primKey.keyPath;
|
|
17684
17692
|
return this._trans("readwrite", function(X) {
|
|
17685
|
-
return P.core.get({ trans: X, key: s }).then(function(
|
|
17686
|
-
var x =
|
|
17693
|
+
return P.core.get({ trans: X, key: s }).then(function(h) {
|
|
17694
|
+
var x = h ?? {};
|
|
17687
17695
|
return Uc(x, c), b && B(x, b, s), P.core.mutate({ trans: X, type: "put", values: [x], keys: [s], upsert: !0, updates: { keys: [s], changeSpecs: [c] } }).then(function(D) {
|
|
17688
|
-
return D.numFailures ? me.reject(D.failures[0]) : !!
|
|
17696
|
+
return D.numFailures ? me.reject(D.failures[0]) : !!h;
|
|
17689
17697
|
});
|
|
17690
17698
|
});
|
|
17691
17699
|
});
|
|
17692
17700
|
}, vt.prototype.update = function(s, c) {
|
|
17693
17701
|
return typeof s != "object" || l(s) ? this.where(":id").equals(s).modify(c) : (s = J(s, this.schema.primKey.keyPath), s === void 0 ? Ht(new ve.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(s).modify(c));
|
|
17694
17702
|
}, vt.prototype.put = function(s, c) {
|
|
17695
|
-
var P = this, b = this.schema.primKey, X = b.auto,
|
|
17696
|
-
return
|
|
17703
|
+
var P = this, b = this.schema.primKey, X = b.auto, h = b.keyPath, x = s;
|
|
17704
|
+
return h && X && (x = Zu(h)(s)), this._trans("readwrite", function(D) {
|
|
17697
17705
|
return P.core.mutate({ trans: D, type: "put", values: [x], keys: c != null ? [c] : null });
|
|
17698
17706
|
}).then(function(D) {
|
|
17699
17707
|
return D.numFailures ? me.reject(D.failures[0]) : D.lastResult;
|
|
17700
17708
|
}).then(function(D) {
|
|
17701
|
-
if (
|
|
17702
|
-
B(s,
|
|
17709
|
+
if (h) try {
|
|
17710
|
+
B(s, h, D);
|
|
17703
17711
|
} catch {
|
|
17704
17712
|
}
|
|
17705
17713
|
return D;
|
|
@@ -17732,28 +17740,28 @@ function H1() {
|
|
|
17732
17740
|
});
|
|
17733
17741
|
});
|
|
17734
17742
|
}, vt.prototype.bulkAdd = function(s, c, P) {
|
|
17735
|
-
var b = this, X = Array.isArray(c) ? c : void 0,
|
|
17743
|
+
var b = this, X = Array.isArray(c) ? c : void 0, h = (P = P || (X ? void 0 : c)) ? P.allKeys : void 0;
|
|
17736
17744
|
return this._trans("readwrite", function(x) {
|
|
17737
17745
|
var g = b.schema.primKey, D = g.auto, g = g.keyPath;
|
|
17738
17746
|
if (g && X) throw new ve.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
|
|
17739
17747
|
if (X && X.length !== s.length) throw new ve.InvalidArgument("Arguments objects and keys must have the same length");
|
|
17740
17748
|
var S = s.length, g = g && D ? s.map(Zu(g)) : s;
|
|
17741
|
-
return b.core.mutate({ trans: x, type: "add", keys: X, values: g, wantResults:
|
|
17749
|
+
return b.core.mutate({ trans: x, type: "add", keys: X, values: g, wantResults: h }).then(function(E) {
|
|
17742
17750
|
var R = E.numFailures, C = E.results, I = E.lastResult, E = E.failures;
|
|
17743
|
-
if (R === 0) return
|
|
17751
|
+
if (R === 0) return h ? C : I;
|
|
17744
17752
|
throw new De("".concat(b.name, ".bulkAdd(): ").concat(R, " of ").concat(S, " operations failed"), E);
|
|
17745
17753
|
});
|
|
17746
17754
|
});
|
|
17747
17755
|
}, vt.prototype.bulkPut = function(s, c, P) {
|
|
17748
|
-
var b = this, X = Array.isArray(c) ? c : void 0,
|
|
17756
|
+
var b = this, X = Array.isArray(c) ? c : void 0, h = (P = P || (X ? void 0 : c)) ? P.allKeys : void 0;
|
|
17749
17757
|
return this._trans("readwrite", function(x) {
|
|
17750
17758
|
var g = b.schema.primKey, D = g.auto, g = g.keyPath;
|
|
17751
17759
|
if (g && X) throw new ve.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
|
|
17752
17760
|
if (X && X.length !== s.length) throw new ve.InvalidArgument("Arguments objects and keys must have the same length");
|
|
17753
17761
|
var S = s.length, g = g && D ? s.map(Zu(g)) : s;
|
|
17754
|
-
return b.core.mutate({ trans: x, type: "put", keys: X, values: g, wantResults:
|
|
17762
|
+
return b.core.mutate({ trans: x, type: "put", keys: X, values: g, wantResults: h }).then(function(E) {
|
|
17755
17763
|
var R = E.numFailures, C = E.results, I = E.lastResult, E = E.failures;
|
|
17756
|
-
if (R === 0) return
|
|
17764
|
+
if (R === 0) return h ? C : I;
|
|
17757
17765
|
throw new De("".concat(b.name, ".bulkPut(): ").concat(R, " of ").concat(S, " operations failed"), E);
|
|
17758
17766
|
});
|
|
17759
17767
|
});
|
|
@@ -17762,7 +17770,7 @@ function H1() {
|
|
|
17762
17770
|
return x.key;
|
|
17763
17771
|
}), X = s.map(function(x) {
|
|
17764
17772
|
return x.changes;
|
|
17765
|
-
}),
|
|
17773
|
+
}), h = [];
|
|
17766
17774
|
return this._trans("readwrite", function(x) {
|
|
17767
17775
|
return P.getMany({ trans: x, keys: b, cache: "clone" }).then(function(D) {
|
|
17768
17776
|
var S = [], g = [];
|
|
@@ -17775,7 +17783,7 @@ function H1() {
|
|
|
17775
17783
|
if ($e(re, I) !== 0) throw new ve.Constraint("Cannot update primary key in bulkUpdate()");
|
|
17776
17784
|
} else B(U, A, re);
|
|
17777
17785
|
}
|
|
17778
|
-
|
|
17786
|
+
h.push(C), S.push(I), g.push(U);
|
|
17779
17787
|
}
|
|
17780
17788
|
});
|
|
17781
17789
|
var F = S.length;
|
|
@@ -17783,7 +17791,7 @@ function H1() {
|
|
|
17783
17791
|
var C = R.numFailures, I = R.failures;
|
|
17784
17792
|
if (C === 0) return F;
|
|
17785
17793
|
for (var E = 0, U = Object.keys(I); E < U.length; E++) {
|
|
17786
|
-
var Y, Q = U[E], A =
|
|
17794
|
+
var Y, Q = U[E], A = h[Number(Q)];
|
|
17787
17795
|
A != null && (Y = I[Q], delete I[Q], I[A] = Y);
|
|
17788
17796
|
}
|
|
17789
17797
|
throw new De("".concat(c.name, ".bulkUpdate(): ").concat(C, " of ").concat(F, " operations failed"), I);
|
|
@@ -17797,8 +17805,8 @@ function H1() {
|
|
|
17797
17805
|
return Nu(c, s, X);
|
|
17798
17806
|
});
|
|
17799
17807
|
}).then(function(x) {
|
|
17800
|
-
var X = x.numFailures,
|
|
17801
|
-
if (X === 0) return
|
|
17808
|
+
var X = x.numFailures, h = x.lastResult, x = x.failures;
|
|
17809
|
+
if (X === 0) return h;
|
|
17802
17810
|
throw new De("".concat(c.name, ".bulkDelete(): ").concat(X, " of ").concat(P, " operations failed"), x);
|
|
17803
17811
|
});
|
|
17804
17812
|
}, vt);
|
|
@@ -17813,10 +17821,10 @@ function H1() {
|
|
|
17813
17821
|
if (typeof x == "string") return P[x];
|
|
17814
17822
|
}
|
|
17815
17823
|
var P = {};
|
|
17816
|
-
c.addEventType =
|
|
17817
|
-
for (var b = 1, X = arguments.length; b < X; ++b)
|
|
17824
|
+
c.addEventType = h;
|
|
17825
|
+
for (var b = 1, X = arguments.length; b < X; ++b) h(arguments[b]);
|
|
17818
17826
|
return c;
|
|
17819
|
-
function
|
|
17827
|
+
function h(x, D, S) {
|
|
17820
17828
|
if (typeof x != "object") {
|
|
17821
17829
|
var g;
|
|
17822
17830
|
D = D || jn;
|
|
@@ -17831,10 +17839,10 @@ function H1() {
|
|
|
17831
17839
|
}
|
|
17832
17840
|
d(g = x).forEach(function(R) {
|
|
17833
17841
|
var C = g[R];
|
|
17834
|
-
if (l(C))
|
|
17842
|
+
if (l(C)) h(R, g[R][0], g[R][1]);
|
|
17835
17843
|
else {
|
|
17836
17844
|
if (C !== "asap") throw new ve.InvalidArgument("Invalid event config");
|
|
17837
|
-
var I =
|
|
17845
|
+
var I = h(R, Be, function() {
|
|
17838
17846
|
for (var E = arguments.length, U = new Array(E); E--; ) U[E] = arguments[E];
|
|
17839
17847
|
I.subscribers.forEach(function(Y) {
|
|
17840
17848
|
k(function() {
|
|
@@ -17874,34 +17882,34 @@ function H1() {
|
|
|
17874
17882
|
function Du(s, c, P, b) {
|
|
17875
17883
|
var X = s.replayFilter ? Jr(s.filter, s.replayFilter()) : s.filter;
|
|
17876
17884
|
if (s.or) {
|
|
17877
|
-
var
|
|
17885
|
+
var h = {}, x = function(D, S, g) {
|
|
17878
17886
|
var F, R;
|
|
17879
17887
|
X && !X(S, g, function(C) {
|
|
17880
17888
|
return S.stop(C);
|
|
17881
17889
|
}, function(C) {
|
|
17882
17890
|
return S.fail(C);
|
|
17883
|
-
}) || ((R = "" + (F = S.primaryKey)) == "[object ArrayBuffer]" && (R = "" + new Uint8Array(F)), y(
|
|
17891
|
+
}) || ((R = "" + (F = S.primaryKey)) == "[object ArrayBuffer]" && (R = "" + new Uint8Array(F)), y(h, R) || (h[R] = !0, c(D, S, g)));
|
|
17884
17892
|
};
|
|
17885
17893
|
return Promise.all([s.or._iterate(x, P), Cc(Yc(s, b, P), s.algorithm, x, !s.keysOnly && s.valueMapper)]);
|
|
17886
17894
|
}
|
|
17887
17895
|
return Cc(Yc(s, b, P), Jr(s.algorithm, X), c, !s.keysOnly && s.valueMapper);
|
|
17888
17896
|
}
|
|
17889
17897
|
function Cc(s, c, P, b) {
|
|
17890
|
-
var X = Pe(b ? function(
|
|
17891
|
-
return P(b(
|
|
17898
|
+
var X = Pe(b ? function(h, x, D) {
|
|
17899
|
+
return P(b(h), x, D);
|
|
17892
17900
|
} : P);
|
|
17893
|
-
return s.then(function(
|
|
17894
|
-
if (
|
|
17901
|
+
return s.then(function(h) {
|
|
17902
|
+
if (h) return h.start(function() {
|
|
17895
17903
|
var x = function() {
|
|
17896
|
-
return
|
|
17904
|
+
return h.continue();
|
|
17897
17905
|
};
|
|
17898
|
-
c && !c(
|
|
17906
|
+
c && !c(h, function(D) {
|
|
17899
17907
|
return x = D;
|
|
17900
17908
|
}, function(D) {
|
|
17901
|
-
|
|
17909
|
+
h.stop(D), x = de;
|
|
17902
17910
|
}, function(D) {
|
|
17903
|
-
|
|
17904
|
-
}) || X(
|
|
17911
|
+
h.fail(D), x = de;
|
|
17912
|
+
}) || X(h.value, h, function(D) {
|
|
17905
17913
|
return x = D;
|
|
17906
17914
|
}), x();
|
|
17907
17915
|
});
|
|
@@ -17935,21 +17943,21 @@ function H1() {
|
|
|
17935
17943
|
if (vf(b, !0)) return X.count({ trans: P, query: { index: wu(b, X.schema), range: b.range } }).then(function(x) {
|
|
17936
17944
|
return Math.min(x, b.limit);
|
|
17937
17945
|
});
|
|
17938
|
-
var
|
|
17946
|
+
var h = 0;
|
|
17939
17947
|
return Du(b, function() {
|
|
17940
|
-
return ++
|
|
17948
|
+
return ++h, !1;
|
|
17941
17949
|
}, P, X).then(function() {
|
|
17942
|
-
return
|
|
17950
|
+
return h;
|
|
17943
17951
|
});
|
|
17944
17952
|
}).then(s);
|
|
17945
17953
|
}, dt.prototype.sortBy = function(s, c) {
|
|
17946
17954
|
var P = s.split(".").reverse(), b = P[0], X = P.length - 1;
|
|
17947
|
-
function
|
|
17948
|
-
return g ?
|
|
17955
|
+
function h(S, g) {
|
|
17956
|
+
return g ? h(S[P[g]], g - 1) : S[b];
|
|
17949
17957
|
}
|
|
17950
17958
|
var x = this._ctx.dir === "next" ? 1 : -1;
|
|
17951
17959
|
function D(S, g) {
|
|
17952
|
-
return $e(
|
|
17960
|
+
return $e(h(S, X), h(g, X)) * x;
|
|
17953
17961
|
}
|
|
17954
17962
|
return this.toArray(function(S) {
|
|
17955
17963
|
return S.sort(D);
|
|
@@ -17959,8 +17967,8 @@ function H1() {
|
|
|
17959
17967
|
return this._read(function(P) {
|
|
17960
17968
|
var b = c._ctx;
|
|
17961
17969
|
if (b.dir === "next" && vf(b, !0) && 0 < b.limit) {
|
|
17962
|
-
var X = b.valueMapper,
|
|
17963
|
-
return b.table.core.query({ trans: P, limit: b.limit, values: !0, query: { index:
|
|
17970
|
+
var X = b.valueMapper, h = wu(b, b.table.core.schema);
|
|
17971
|
+
return b.table.core.query({ trans: P, limit: b.limit, values: !0, query: { index: h, range: b.range } }).then(function(D) {
|
|
17964
17972
|
return D = D.result, X ? D.map(X) : D;
|
|
17965
17973
|
});
|
|
17966
17974
|
}
|
|
@@ -18073,8 +18081,8 @@ function H1() {
|
|
|
18073
18081
|
return this._write(function(b) {
|
|
18074
18082
|
var X = typeof s == "function" ? s : function(U) {
|
|
18075
18083
|
return Uc(U, s);
|
|
18076
|
-
},
|
|
18077
|
-
g && (S = typeof g == "object" ? g[
|
|
18084
|
+
}, h = P.table.core, g = h.schema.primaryKey, x = g.outbound, D = g.extractKey, S = 200, g = c.db._options.modifyChunkSize;
|
|
18085
|
+
g && (S = typeof g == "object" ? g[h.name] || g["*"] || 200 : g);
|
|
18078
18086
|
function F(U, A) {
|
|
18079
18087
|
var Q = A.failures, A = A.numFailures;
|
|
18080
18088
|
C += U - A;
|
|
@@ -18087,21 +18095,21 @@ function H1() {
|
|
|
18087
18095
|
return c.clone().primaryKeys().then(function(U) {
|
|
18088
18096
|
function Y(A) {
|
|
18089
18097
|
var re = Math.min(S, U.length - A), ce = U.slice(A, A + re);
|
|
18090
|
-
return (E ? Promise.resolve([]) :
|
|
18098
|
+
return (E ? Promise.resolve([]) : h.getMany({ trans: b, keys: ce, cache: "immutable" })).then(function(pe) {
|
|
18091
18099
|
var Te = [], ye = [], je = x ? [] : null, Le = E ? ce : [];
|
|
18092
18100
|
if (!E) for (var xe = 0; xe < re; ++xe) {
|
|
18093
18101
|
var Re = pe[xe], Ie = { value: Xe(Re), primKey: U[A + xe] };
|
|
18094
18102
|
X.call(Ie, Ie.value, Ie) !== !1 && (Ie.value == null ? Le.push(U[A + xe]) : x || $e(D(Re), D(Ie.value)) === 0 ? (ye.push(Ie.value), x && je.push(U[A + xe])) : (Le.push(U[A + xe]), Te.push(Ie.value)));
|
|
18095
18103
|
}
|
|
18096
|
-
return Promise.resolve(0 < Te.length &&
|
|
18104
|
+
return Promise.resolve(0 < Te.length && h.mutate({ trans: b, type: "add", values: Te }).then(function(Ee) {
|
|
18097
18105
|
for (var Ce in Ee.failures) Le.splice(parseInt(Ce), 1);
|
|
18098
18106
|
F(Te.length, Ee);
|
|
18099
18107
|
})).then(function() {
|
|
18100
|
-
return (0 < ye.length || Q && typeof s == "object") &&
|
|
18108
|
+
return (0 < ye.length || Q && typeof s == "object") && h.mutate({ trans: b, type: "put", keys: je, values: ye, criteria: Q, changeSpec: typeof s != "function" && s, isAdditionalChunk: 0 < A }).then(function(Ee) {
|
|
18101
18109
|
return F(ye.length, Ee);
|
|
18102
18110
|
});
|
|
18103
18111
|
}).then(function() {
|
|
18104
|
-
return (0 < Le.length || Q && E) &&
|
|
18112
|
+
return (0 < Le.length || Q && E) && h.mutate({ trans: b, type: "delete", keys: Le, criteria: Q, isAdditionalChunk: 0 < A }).then(function(Ee) {
|
|
18105
18113
|
return Nu(P.table, Le, Ee);
|
|
18106
18114
|
}).then(function(Ee) {
|
|
18107
18115
|
return F(Le.length, Ee);
|
|
@@ -18122,13 +18130,13 @@ function H1() {
|
|
|
18122
18130
|
var s = this._ctx, c = s.range;
|
|
18123
18131
|
return !vf(s) || s.table.schema.yProps || !s.isPrimKey && c.type !== 3 ? this.modify(Kc) : this._write(function(P) {
|
|
18124
18132
|
var b = s.table.core.schema.primaryKey, X = c;
|
|
18125
|
-
return s.table.core.count({ trans: P, query: { index: b, range: X } }).then(function(
|
|
18133
|
+
return s.table.core.count({ trans: P, query: { index: b, range: X } }).then(function(h) {
|
|
18126
18134
|
return s.table.core.mutate({ trans: P, type: "deleteRange", range: X }).then(function(S) {
|
|
18127
18135
|
var D = S.failures, S = S.numFailures;
|
|
18128
18136
|
if (S) throw new Ze("Could not delete some values", Object.keys(D).map(function(g) {
|
|
18129
18137
|
return D[g];
|
|
18130
|
-
}),
|
|
18131
|
-
return
|
|
18138
|
+
}), h - S);
|
|
18139
|
+
return h - S;
|
|
18132
18140
|
});
|
|
18133
18141
|
});
|
|
18134
18142
|
});
|
|
@@ -18153,7 +18161,7 @@ function H1() {
|
|
|
18153
18161
|
}).limit(0);
|
|
18154
18162
|
}
|
|
18155
18163
|
function ku(s, c, P, b) {
|
|
18156
|
-
var X,
|
|
18164
|
+
var X, h, x, D, S, g, F, R = P.length;
|
|
18157
18165
|
if (!P.every(function(E) {
|
|
18158
18166
|
return typeof E == "string";
|
|
18159
18167
|
})) return bn(s, af);
|
|
@@ -18162,13 +18170,13 @@ function H1() {
|
|
|
18162
18170
|
return Y.toUpperCase();
|
|
18163
18171
|
} : function(Y) {
|
|
18164
18172
|
return Y.toLowerCase();
|
|
18165
|
-
},
|
|
18173
|
+
}, h = E === "next" ? function(Y) {
|
|
18166
18174
|
return Y.toLowerCase();
|
|
18167
18175
|
} : function(Y) {
|
|
18168
18176
|
return Y.toUpperCase();
|
|
18169
18177
|
}, x = E === "next" ? o3 : v3;
|
|
18170
18178
|
var U = P.map(function(Y) {
|
|
18171
|
-
return { lower:
|
|
18179
|
+
return { lower: h(Y), upper: X(Y) };
|
|
18172
18180
|
}).sort(function(Y, Q) {
|
|
18173
18181
|
return x(Y.lower, Q.lower);
|
|
18174
18182
|
});
|
|
@@ -18187,7 +18195,7 @@ function H1() {
|
|
|
18187
18195
|
return s._addAlgorithm(function(E, U, Y) {
|
|
18188
18196
|
var Q = E.key;
|
|
18189
18197
|
if (typeof Q != "string") return !1;
|
|
18190
|
-
var A =
|
|
18198
|
+
var A = h(Q);
|
|
18191
18199
|
if (c(A, S, I)) return !0;
|
|
18192
18200
|
for (var re = null, ce = I; ce < R; ++ce) {
|
|
18193
18201
|
var pe = (function(Te, ye, je, Le, xe, Re) {
|
|
@@ -18275,14 +18283,14 @@ function H1() {
|
|
|
18275
18283
|
var b = new this.Collection(this, function() {
|
|
18276
18284
|
return Xr(c[0], c[c.length - 1]);
|
|
18277
18285
|
});
|
|
18278
|
-
b._ondirectionchange = function(
|
|
18279
|
-
P =
|
|
18286
|
+
b._ondirectionchange = function(h) {
|
|
18287
|
+
P = h === "next" ? s._ascending : s._descending, c.sort(P);
|
|
18280
18288
|
};
|
|
18281
18289
|
var X = 0;
|
|
18282
|
-
return b._addAlgorithm(function(
|
|
18283
|
-
for (var S =
|
|
18290
|
+
return b._addAlgorithm(function(h, x, D) {
|
|
18291
|
+
for (var S = h.key; 0 < P(S, c[X]); ) if (++X === c.length) return x(D), !1;
|
|
18284
18292
|
return P(S, c[X]) === 0 || (x(function() {
|
|
18285
|
-
|
|
18293
|
+
h.continue(c[X]);
|
|
18286
18294
|
}), !1);
|
|
18287
18295
|
}), b;
|
|
18288
18296
|
}, Mt.prototype.notEqual = function(s) {
|
|
@@ -18300,7 +18308,7 @@ function H1() {
|
|
|
18300
18308
|
}, null);
|
|
18301
18309
|
return c.push([s[s.length - 1], this.db._maxKey]), this.inAnyRange(c, { includeLowers: !1, includeUppers: !1 });
|
|
18302
18310
|
}, Mt.prototype.inAnyRange = function(Q, c) {
|
|
18303
|
-
var P = this, b = this._cmp, X = this._ascending,
|
|
18311
|
+
var P = this, b = this._cmp, X = this._ascending, h = this._descending, x = this._min, D = this._max;
|
|
18304
18312
|
if (Q.length === 0) return Pf(this);
|
|
18305
18313
|
if (!Q.every(function(A) {
|
|
18306
18314
|
return A[0] !== void 0 && A[1] !== void 0 && X(A[0], A[1]) <= 0;
|
|
@@ -18328,14 +18336,14 @@ function H1() {
|
|
|
18328
18336
|
} : function(A) {
|
|
18329
18337
|
return 0 <= X(A, F[I][1]);
|
|
18330
18338
|
}, U = S ? function(A) {
|
|
18331
|
-
return 0 <
|
|
18339
|
+
return 0 < h(A, F[I][0]);
|
|
18332
18340
|
} : function(A) {
|
|
18333
|
-
return 0 <=
|
|
18341
|
+
return 0 <= h(A, F[I][0]);
|
|
18334
18342
|
}, Y = E, Q = new this.Collection(this, function() {
|
|
18335
18343
|
return Xr(F[0][0], F[F.length - 1][1], !S, !g);
|
|
18336
18344
|
});
|
|
18337
18345
|
return Q._ondirectionchange = function(A) {
|
|
18338
|
-
R = A === "next" ? (Y = E, X) : (Y = U,
|
|
18346
|
+
R = A === "next" ? (Y = E, X) : (Y = U, h), F.sort(C);
|
|
18339
18347
|
}, Q._addAlgorithm(function(A, re, ce) {
|
|
18340
18348
|
for (var pe, Te = A.key; Y(Te); ) if (++I === F.length) return re(ce), !1;
|
|
18341
18349
|
return !E(pe = Te) && !U(pe) || (P._cmp(Te, F[I][1]) === 0 || P._cmp(Te, F[I][0]) === 0 || re(function() {
|
|
@@ -18397,24 +18405,24 @@ function H1() {
|
|
|
18397
18405
|
var b = this;
|
|
18398
18406
|
if (s === "readwrite" && this.mode !== "readwrite") return Ht(new ve.ReadOnly("Transaction is readonly"));
|
|
18399
18407
|
if (!this.active) return Ht(new ve.TransactionInactive());
|
|
18400
|
-
if (this._locked()) return new me(function(
|
|
18408
|
+
if (this._locked()) return new me(function(h, x) {
|
|
18401
18409
|
b._blockedFuncs.push([function() {
|
|
18402
|
-
b._promise(s, c, P).then(
|
|
18410
|
+
b._promise(s, c, P).then(h, x);
|
|
18403
18411
|
}, Ne]);
|
|
18404
18412
|
});
|
|
18405
18413
|
if (P) return Xt(function() {
|
|
18406
|
-
var
|
|
18414
|
+
var h = new me(function(x, D) {
|
|
18407
18415
|
b._lock();
|
|
18408
18416
|
var S = c(x, D, b);
|
|
18409
18417
|
S && S.then && S.then(x, D);
|
|
18410
18418
|
});
|
|
18411
|
-
return
|
|
18419
|
+
return h.finally(function() {
|
|
18412
18420
|
return b._unlock();
|
|
18413
|
-
}),
|
|
18421
|
+
}), h._lib = !0, h;
|
|
18414
18422
|
});
|
|
18415
|
-
var X = new me(function(
|
|
18416
|
-
var D = c(
|
|
18417
|
-
D && D.then && D.then(
|
|
18423
|
+
var X = new me(function(h, x) {
|
|
18424
|
+
var D = c(h, x, b);
|
|
18425
|
+
D && D.then && D.then(h, x);
|
|
18418
18426
|
});
|
|
18419
18427
|
return X._lib = !0, X;
|
|
18420
18428
|
}, Qn.prototype._root = function() {
|
|
@@ -18423,14 +18431,14 @@ function H1() {
|
|
|
18423
18431
|
var c, P = this._root(), b = me.resolve(s);
|
|
18424
18432
|
P._waitingFor ? P._waitingFor = P._waitingFor.then(function() {
|
|
18425
18433
|
return b;
|
|
18426
|
-
}) : (P._waitingFor = b, P._waitingQueue = [], c = P.idbtrans.objectStore(P.storeNames[0]), (function
|
|
18434
|
+
}) : (P._waitingFor = b, P._waitingQueue = [], c = P.idbtrans.objectStore(P.storeNames[0]), (function h() {
|
|
18427
18435
|
for (++P._spinCount; P._waitingQueue.length; ) P._waitingQueue.shift()();
|
|
18428
|
-
P._waitingFor && (c.get(-1 / 0).onsuccess =
|
|
18436
|
+
P._waitingFor && (c.get(-1 / 0).onsuccess = h);
|
|
18429
18437
|
})());
|
|
18430
18438
|
var X = P._waitingFor;
|
|
18431
|
-
return new me(function(
|
|
18439
|
+
return new me(function(h, x) {
|
|
18432
18440
|
b.then(function(D) {
|
|
18433
|
-
return P._waitingQueue.push(Pe(
|
|
18441
|
+
return P._waitingQueue.push(Pe(h.bind(null, D)));
|
|
18434
18442
|
}, function(D) {
|
|
18435
18443
|
return P._waitingQueue.push(Pe(x.bind(null, D)));
|
|
18436
18444
|
}).finally(function() {
|
|
@@ -18448,8 +18456,8 @@ function H1() {
|
|
|
18448
18456
|
}, Qn);
|
|
18449
18457
|
function Qn() {
|
|
18450
18458
|
}
|
|
18451
|
-
function vs(s, c, P, b, X,
|
|
18452
|
-
return { name: s, keyPath: c, unique: P, multi: b, auto: X, compound:
|
|
18459
|
+
function vs(s, c, P, b, X, h, x, D) {
|
|
18460
|
+
return { name: s, keyPath: c, unique: P, multi: b, auto: X, compound: h, src: (P && !x ? "&" : "") + (b ? "*" : "") + (X ? "++" : "") + Ac(c), type: D };
|
|
18453
18461
|
}
|
|
18454
18462
|
function Ac(s) {
|
|
18455
18463
|
return typeof s == "string" ? s : s ? "[" + [].join.call(s, "+") + "]" : "";
|
|
@@ -18457,8 +18465,8 @@ function H1() {
|
|
|
18457
18465
|
function Ps(s, c, P) {
|
|
18458
18466
|
return { name: s, primKey: c, indexes: P, mappedClass: null, idxByName: (b = function(X) {
|
|
18459
18467
|
return [X.name, X];
|
|
18460
|
-
}, P.reduce(function(X,
|
|
18461
|
-
return x = b(
|
|
18468
|
+
}, P.reduce(function(X, h, x) {
|
|
18469
|
+
return x = b(h, x), x && (X[x[0]] = x[1]), X;
|
|
18462
18470
|
}, {})) };
|
|
18463
18471
|
var b;
|
|
18464
18472
|
}
|
|
@@ -18612,7 +18620,7 @@ function H1() {
|
|
|
18612
18620
|
});
|
|
18613
18621
|
} };
|
|
18614
18622
|
}
|
|
18615
|
-
var
|
|
18623
|
+
var h, x, D, F = (x = S, D = _c((h = s).objectStoreNames), { schema: { name: h.name, tables: D.map(function(C) {
|
|
18616
18624
|
return x.objectStore(C);
|
|
18617
18625
|
}).map(function(C) {
|
|
18618
18626
|
var I = C.keyPath, Y = C.autoIncrement, E = l(I), U = {}, Y = { name: C.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: I == null, compound: E, keyPath: I, autoIncrement: Y, unique: !0, extractKey: zs(I) }, indexes: _c(C.indexNames).map(function(Q) {
|
|
@@ -18634,31 +18642,31 @@ function H1() {
|
|
|
18634
18642
|
}
|
|
18635
18643
|
function y3(s, c, P, b) {
|
|
18636
18644
|
var X = P.IDBKeyRange;
|
|
18637
|
-
return P.indexedDB, { dbcore: (b = b3(c, X, b), s.dbcore.reduce(function(
|
|
18638
|
-
return x = x.create, r(r({},
|
|
18645
|
+
return P.indexedDB, { dbcore: (b = b3(c, X, b), s.dbcore.reduce(function(h, x) {
|
|
18646
|
+
return x = x.create, r(r({}, h), x(h));
|
|
18639
18647
|
}, b)) };
|
|
18640
18648
|
}
|
|
18641
18649
|
function Ru(s, b) {
|
|
18642
18650
|
var P = b.db, b = y3(s._middlewares, P, s._deps, b);
|
|
18643
18651
|
s.core = b.dbcore, s.tables.forEach(function(X) {
|
|
18644
|
-
var
|
|
18652
|
+
var h = X.name;
|
|
18645
18653
|
s.core.schema.tables.some(function(x) {
|
|
18646
|
-
return x.name ===
|
|
18647
|
-
}) && (X.core = s.core.table(
|
|
18654
|
+
return x.name === h;
|
|
18655
|
+
}) && (X.core = s.core.table(h), s[h] instanceof s.Table && (s[h].core = X.core));
|
|
18648
18656
|
});
|
|
18649
18657
|
}
|
|
18650
18658
|
function Wu(s, c, P, b) {
|
|
18651
18659
|
P.forEach(function(X) {
|
|
18652
|
-
var
|
|
18660
|
+
var h = b[X];
|
|
18653
18661
|
c.forEach(function(x) {
|
|
18654
18662
|
var D = (function S(g, F) {
|
|
18655
|
-
return
|
|
18663
|
+
return O(g, F) || (g = o(g)) && S(g, F);
|
|
18656
18664
|
})(x, X);
|
|
18657
18665
|
(!D || "value" in D && D.value === void 0) && (x === s.Transaction.prototype || x instanceof s.Transaction ? j(x, X, { get: function() {
|
|
18658
18666
|
return this.table(X);
|
|
18659
18667
|
}, set: function(S) {
|
|
18660
18668
|
z(this, X, { value: S, writable: !0, configurable: !0, enumerable: !0 });
|
|
18661
|
-
} }) : x[X] = new s.Table(X,
|
|
18669
|
+
} }) : x[X] = new s.Table(X, h));
|
|
18662
18670
|
});
|
|
18663
18671
|
});
|
|
18664
18672
|
}
|
|
@@ -18673,14 +18681,14 @@ function H1() {
|
|
|
18673
18681
|
function H3(s, c, P, b) {
|
|
18674
18682
|
var X = s._dbSchema;
|
|
18675
18683
|
P.objectStoreNames.contains("$meta") && !X.$meta && (X.$meta = Ps("$meta", ei("")[0], []), s._storeNames.push("$meta"));
|
|
18676
|
-
var
|
|
18677
|
-
|
|
18678
|
-
var x =
|
|
18684
|
+
var h = s._createTransaction("readwrite", s._storeNames, X);
|
|
18685
|
+
h.create(P), h._completion.catch(b);
|
|
18686
|
+
var x = h._reject.bind(h), D = Ne.transless || Ne;
|
|
18679
18687
|
Xt(function() {
|
|
18680
|
-
return Ne.trans =
|
|
18688
|
+
return Ne.trans = h, Ne.transless = D, c !== 0 ? (Ru(s, P), g = c, ((S = h).storeNames.includes("$meta") ? S.table("$meta").get("version").then(function(F) {
|
|
18681
18689
|
return F ?? g;
|
|
18682
18690
|
}) : me.resolve(g)).then(function(F) {
|
|
18683
|
-
return C = F, I =
|
|
18691
|
+
return C = F, I = h, E = P, U = [], F = (R = s)._versions, Y = R._dbSchema = Vu(0, R.idbdb, E), (F = F.filter(function(Q) {
|
|
18684
18692
|
return Q._cfg.version >= C;
|
|
18685
18693
|
})).length !== 0 ? (F.forEach(function(Q) {
|
|
18686
18694
|
U.push(function() {
|
|
@@ -18734,7 +18742,7 @@ function H1() {
|
|
|
18734
18742
|
}).catch(x)) : (d(X).forEach(function(F) {
|
|
18735
18743
|
Xs(P, F, X[F].primKey, X[F].indexes);
|
|
18736
18744
|
}), Ru(s, P), void me.follow(function() {
|
|
18737
|
-
return s.on.populate.fire(
|
|
18745
|
+
return s.on.populate.fire(h);
|
|
18738
18746
|
}).catch(x));
|
|
18739
18747
|
var S, g;
|
|
18740
18748
|
});
|
|
@@ -18744,26 +18752,26 @@ function H1() {
|
|
|
18744
18752
|
var P = Vu(0, s.idbdb, c);
|
|
18745
18753
|
Su(s, s._dbSchema, c);
|
|
18746
18754
|
for (var b = 0, X = ys(P, s._dbSchema).change; b < X.length; b++) {
|
|
18747
|
-
var
|
|
18755
|
+
var h = (function(x) {
|
|
18748
18756
|
if (x.change.length || x.recreate) return console.warn("Unable to patch indexes of table ".concat(x.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
|
|
18749
18757
|
var D = c.objectStore(x.name);
|
|
18750
18758
|
x.add.forEach(function(S) {
|
|
18751
18759
|
Ue && console.debug("Dexie upgrade patch: Creating missing index ".concat(x.name, ".").concat(S.src)), qu(D, S);
|
|
18752
18760
|
});
|
|
18753
18761
|
})(X[b]);
|
|
18754
|
-
if (typeof
|
|
18762
|
+
if (typeof h == "object") return h.value;
|
|
18755
18763
|
}
|
|
18756
18764
|
}
|
|
18757
18765
|
function ys(s, c) {
|
|
18758
18766
|
var P, b = { del: [], add: [], change: [] };
|
|
18759
18767
|
for (P in s) c[P] || b.del.push(P);
|
|
18760
18768
|
for (P in c) {
|
|
18761
|
-
var X = s[P],
|
|
18769
|
+
var X = s[P], h = c[P];
|
|
18762
18770
|
if (X) {
|
|
18763
|
-
var x = { name: P, def:
|
|
18764
|
-
if ("" + (X.primKey.keyPath || "") != "" + (
|
|
18771
|
+
var x = { name: P, def: h, recreate: !1, del: [], add: [], change: [] };
|
|
18772
|
+
if ("" + (X.primKey.keyPath || "") != "" + (h.primKey.keyPath || "") || X.primKey.auto !== h.primKey.auto) x.recreate = !0, b.change.push(x);
|
|
18765
18773
|
else {
|
|
18766
|
-
var D = X.idxByName, S =
|
|
18774
|
+
var D = X.idxByName, S = h.idxByName, g = void 0;
|
|
18767
18775
|
for (g in D) S[g] || x.del.push(g);
|
|
18768
18776
|
for (g in S) {
|
|
18769
18777
|
var F = D[g], R = S[g];
|
|
@@ -18771,14 +18779,14 @@ function H1() {
|
|
|
18771
18779
|
}
|
|
18772
18780
|
(0 < x.del.length || 0 < x.add.length || 0 < x.change.length) && b.change.push(x);
|
|
18773
18781
|
}
|
|
18774
|
-
} else b.add.push([P,
|
|
18782
|
+
} else b.add.push([P, h]);
|
|
18775
18783
|
}
|
|
18776
18784
|
return b;
|
|
18777
18785
|
}
|
|
18778
18786
|
function Xs(s, c, P, b) {
|
|
18779
18787
|
var X = s.db.createObjectStore(c, P.keyPath ? { keyPath: P.keyPath, autoIncrement: P.auto } : { autoIncrement: P.auto });
|
|
18780
|
-
return b.forEach(function(
|
|
18781
|
-
return qu(X,
|
|
18788
|
+
return b.forEach(function(h) {
|
|
18789
|
+
return qu(X, h);
|
|
18782
18790
|
}), X;
|
|
18783
18791
|
}
|
|
18784
18792
|
function $c(s, c) {
|
|
@@ -18792,8 +18800,8 @@ function H1() {
|
|
|
18792
18800
|
function Vu(s, c, P) {
|
|
18793
18801
|
var b = {};
|
|
18794
18802
|
return L(c.objectStoreNames, 0).forEach(function(X) {
|
|
18795
|
-
for (var
|
|
18796
|
-
var F =
|
|
18803
|
+
for (var h = P.objectStore(X), x = vs(Ac(g = h.keyPath), g || "", !0, !1, !!h.autoIncrement, g && typeof g != "string", !0), D = [], S = 0; S < h.indexNames.length; ++S) {
|
|
18804
|
+
var F = h.index(h.indexNames[S]), g = F.keyPath, F = vs(F.name, g, !!F.unique, !!F.multiEntry, !1, g && typeof g != "string", !1);
|
|
18797
18805
|
D.push(F);
|
|
18798
18806
|
}
|
|
18799
18807
|
b[X] = Ps(X, x, D);
|
|
@@ -18801,40 +18809,40 @@ function H1() {
|
|
|
18801
18809
|
}
|
|
18802
18810
|
function Su(s, c, P) {
|
|
18803
18811
|
for (var b = P.db.objectStoreNames, X = 0; X < b.length; ++X) {
|
|
18804
|
-
var
|
|
18812
|
+
var h = b[X], x = P.objectStore(h);
|
|
18805
18813
|
s._hasGetAll = "getAll" in x;
|
|
18806
18814
|
for (var D = 0; D < x.indexNames.length; ++D) {
|
|
18807
18815
|
var S = x.indexNames[D], g = x.index(S).keyPath, F = typeof g == "string" ? g : "[" + L(g).join("+") + "]";
|
|
18808
|
-
!c[
|
|
18816
|
+
!c[h] || (g = c[h].idxByName[F]) && (g.name = S, delete c[h].idxByName[F], c[h].idxByName[S] = g);
|
|
18809
18817
|
}
|
|
18810
18818
|
}
|
|
18811
18819
|
typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && u.WorkerGlobalScope && u instanceof u.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (s._hasGetAll = !1);
|
|
18812
18820
|
}
|
|
18813
18821
|
function ei(s) {
|
|
18814
18822
|
return s.split(",").map(function(c, P) {
|
|
18815
|
-
var
|
|
18816
|
-
return vs(X,
|
|
18823
|
+
var h = c.split(":"), b = (X = h[1]) === null || X === void 0 ? void 0 : X.trim(), X = (c = h[0].trim()).replace(/([&*]|\+\+)/g, ""), h = /^\[/.test(X) ? X.match(/^\[(.*)\]$/)[1].split("+") : X;
|
|
18824
|
+
return vs(X, h || null, /\&/.test(c), /\*/.test(c), /\+\+/.test(c), l(h), P === 0, b);
|
|
18817
18825
|
});
|
|
18818
18826
|
}
|
|
18819
18827
|
var O3 = (zf.prototype._createTableSchema = Ps, zf.prototype._parseIndexSyntax = ei, zf.prototype._parseStoresSpec = function(s, c) {
|
|
18820
18828
|
var P = this;
|
|
18821
18829
|
d(s).forEach(function(b) {
|
|
18822
18830
|
if (s[b] !== null) {
|
|
18823
|
-
var X = P._parseIndexSyntax(s[b]),
|
|
18824
|
-
if (!
|
|
18825
|
-
if (
|
|
18831
|
+
var X = P._parseIndexSyntax(s[b]), h = X.shift();
|
|
18832
|
+
if (!h) throw new ve.Schema("Invalid schema for table " + b + ": " + s[b]);
|
|
18833
|
+
if (h.unique = !0, h.multi) throw new ve.Schema("Primary key cannot be multiEntry*");
|
|
18826
18834
|
X.forEach(function(x) {
|
|
18827
18835
|
if (x.auto) throw new ve.Schema("Only primary key can be marked as autoIncrement (++)");
|
|
18828
18836
|
if (!x.keyPath) throw new ve.Schema("Index must have a name and cannot be an empty string");
|
|
18829
|
-
}), X = P._createTableSchema(b,
|
|
18837
|
+
}), X = P._createTableSchema(b, h, X), c[b] = X;
|
|
18830
18838
|
}
|
|
18831
18839
|
});
|
|
18832
18840
|
}, zf.prototype.stores = function(P) {
|
|
18833
18841
|
var c = this.db;
|
|
18834
18842
|
this._cfg.storesSource = this._cfg.storesSource ? i(this._cfg.storesSource, P) : P;
|
|
18835
18843
|
var P = c._versions, b = {}, X = {};
|
|
18836
|
-
return P.forEach(function(
|
|
18837
|
-
i(b,
|
|
18844
|
+
return P.forEach(function(h) {
|
|
18845
|
+
i(b, h._cfg.storesSource), X = h._cfg.dbschema = {}, h._parseStoresSpec(b, X);
|
|
18838
18846
|
}), c._dbSchema = X, bs(c, [c._allTables, c, c.Transaction.prototype]), Wu(c, [c._allTables, c, c.Transaction.prototype, this._cfg.tables], d(X), X), c._storeNames = d(X), this;
|
|
18839
18847
|
}, zf.prototype.upgrade = function(s) {
|
|
18840
18848
|
return this._cfg.contentUpgrade = Ot(this._cfg.contentUpgrade || de, s), this;
|
|
@@ -18876,16 +18884,16 @@ function H1() {
|
|
|
18876
18884
|
}
|
|
18877
18885
|
function $f(s, c) {
|
|
18878
18886
|
hs(c) || (function P(b, S) {
|
|
18879
|
-
var
|
|
18880
|
-
_f(b,
|
|
18887
|
+
var h = S.from, x = S.to, D = S.l, S = S.r;
|
|
18888
|
+
_f(b, h, x), D && P(b, D), S && P(b, S);
|
|
18881
18889
|
})(s, c);
|
|
18882
18890
|
}
|
|
18883
18891
|
function ti(s, c) {
|
|
18884
18892
|
var P = Mu(c), b = P.next();
|
|
18885
18893
|
if (b.done) return !1;
|
|
18886
|
-
for (var X = b.value,
|
|
18894
|
+
for (var X = b.value, h = Mu(s), x = h.next(X.from), D = x.value; !b.done && !x.done; ) {
|
|
18887
18895
|
if ($e(D.from, X.to) <= 0 && 0 <= $e(D.to, X.from)) return !0;
|
|
18888
|
-
$e(X.from, D.from) < 0 ? X = (b = P.next(D.from)).value : D = (x =
|
|
18896
|
+
$e(X.from, D.from) < 0 ? X = (b = P.next(D.from)).value : D = (x = h.next(X.from)).value;
|
|
18889
18897
|
}
|
|
18890
18898
|
return !1;
|
|
18891
18899
|
}
|
|
@@ -18920,8 +18928,8 @@ function H1() {
|
|
|
18920
18928
|
function Ju(s, c) {
|
|
18921
18929
|
return d(c).forEach(function(P) {
|
|
18922
18930
|
s[P] ? $f(s[P], c[P]) : s[P] = (function b(X) {
|
|
18923
|
-
var
|
|
18924
|
-
for (
|
|
18931
|
+
var h, x, D = {};
|
|
18932
|
+
for (h in X) y(X, h) && (x = X[h], D[h] = !x || typeof x != "object" || oe.has(x.constructor) ? x : b(x));
|
|
18925
18933
|
return D;
|
|
18926
18934
|
})(c[P]);
|
|
18927
18935
|
}), s;
|
|
@@ -18956,17 +18964,17 @@ function H1() {
|
|
|
18956
18964
|
c === void 0 && (c = !1);
|
|
18957
18965
|
var P = /* @__PURE__ */ new Set();
|
|
18958
18966
|
if (s.all) for (var b = 0, X = Object.values(gr); b < X.length; b++) fi(x = X[b], s, P, c);
|
|
18959
|
-
else for (var
|
|
18960
|
-
var x, D = /^idb\:\/\/(.*)\/(.*)\//.exec(
|
|
18961
|
-
D && (
|
|
18967
|
+
else for (var h in s) {
|
|
18968
|
+
var x, D = /^idb\:\/\/(.*)\/(.*)\//.exec(h);
|
|
18969
|
+
D && (h = D[1], D = D[2], (x = gr["idb://".concat(h, "/").concat(D)]) && fi(x, s, P, c));
|
|
18962
18970
|
}
|
|
18963
18971
|
P.forEach(function(S) {
|
|
18964
18972
|
return S();
|
|
18965
18973
|
});
|
|
18966
18974
|
}
|
|
18967
18975
|
function fi(s, c, P, b) {
|
|
18968
|
-
for (var X = [],
|
|
18969
|
-
for (var D = x[
|
|
18976
|
+
for (var X = [], h = 0, x = Object.entries(s.queries.query); h < x.length; h++) {
|
|
18977
|
+
for (var D = x[h], S = D[0], g = [], F = 0, R = D[1]; F < R.length; F++) {
|
|
18970
18978
|
var C = R[F];
|
|
18971
18979
|
js(c, C.obsSet) ? C.subscribers.forEach(function(Y) {
|
|
18972
18980
|
return P.add(Y);
|
|
@@ -18985,7 +18993,7 @@ function H1() {
|
|
|
18985
18993
|
return c.dbOpenError ? Ht(c.dbOpenError) : s;
|
|
18986
18994
|
});
|
|
18987
18995
|
c.isBeingOpened = !0, c.dbOpenError = null, c.openComplete = !1;
|
|
18988
|
-
var b = c.openCanceller, X = Math.round(10 * s.verno),
|
|
18996
|
+
var b = c.openCanceller, X = Math.round(10 * s.verno), h = !1;
|
|
18989
18997
|
function x() {
|
|
18990
18998
|
if (c.openCanceller !== b) throw new ve.DatabaseClosed("db.open() was cancelled");
|
|
18991
18999
|
}
|
|
@@ -18998,7 +19006,7 @@ function H1() {
|
|
|
18998
19006
|
var Q;
|
|
18999
19007
|
F = U.transaction, c.autoSchema && !s._options.allowEmptyDB ? (U.onerror = Kf, F.abort(), U.result.close(), (Q = P.deleteDatabase(E)).onsuccess = Q.onerror = Pe(function() {
|
|
19000
19008
|
I(new ve.NoSuchDatabase("Database ".concat(E, " doesnt exist")));
|
|
19001
|
-
})) : (F.onerror = Kn(I), Y = Y.oldVersion > Math.pow(2, 62) ? 0 : Y.oldVersion, R = Y < 1, s.idbdb = U.result,
|
|
19009
|
+
})) : (F.onerror = Kn(I), Y = Y.oldVersion > Math.pow(2, 62) ? 0 : Y.oldVersion, R = Y < 1, s.idbdb = U.result, h && p3(s, F), H3(s, Y / 10, F, I));
|
|
19002
19010
|
}, I), U.onsuccess = Pe(function() {
|
|
19003
19011
|
F = null;
|
|
19004
19012
|
var Y, Q, A, re, ce, pe = s.idbdb = U.result, Te = L(pe.objectStoreNames);
|
|
@@ -19007,7 +19015,7 @@ function H1() {
|
|
|
19007
19015
|
if (c.autoSchema) Q = pe, A = ye, (Y = s).verno = Q.version / 10, A = Y._dbSchema = Vu(0, Q, A), Y._storeNames = L(Q.objectStoreNames, 0), Wu(Y, [Y._allTables], d(A), A);
|
|
19008
19016
|
else if (Su(s, s._dbSchema, ye), ((ce = ys(Vu(0, (ce = s).idbdb, ye), ce._dbSchema)).add.length || ce.change.some(function(je) {
|
|
19009
19017
|
return je.add.length || je.change.length;
|
|
19010
|
-
})) && !
|
|
19018
|
+
})) && !h) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), pe.close(), X = pe.version + 1, h = !0, C(D());
|
|
19011
19019
|
Ru(s, ye);
|
|
19012
19020
|
} catch {
|
|
19013
19021
|
}
|
|
@@ -19068,15 +19076,15 @@ function H1() {
|
|
|
19068
19076
|
});
|
|
19069
19077
|
}
|
|
19070
19078
|
function Ls(s) {
|
|
19071
|
-
function c(
|
|
19072
|
-
return s.next(
|
|
19079
|
+
function c(h) {
|
|
19080
|
+
return s.next(h);
|
|
19073
19081
|
}
|
|
19074
|
-
var P = X(c), b = X(function(
|
|
19075
|
-
return s.throw(
|
|
19082
|
+
var P = X(c), b = X(function(h) {
|
|
19083
|
+
return s.throw(h);
|
|
19076
19084
|
});
|
|
19077
|
-
function X(
|
|
19085
|
+
function X(h) {
|
|
19078
19086
|
return function(S) {
|
|
19079
|
-
var D =
|
|
19087
|
+
var D = h(S), S = D.value;
|
|
19080
19088
|
return D.done ? S : S && typeof S.then == "function" ? S.then(P, b) : l(S) ? Promise.all(S).then(P, b) : P(S);
|
|
19081
19089
|
};
|
|
19082
19090
|
}
|
|
@@ -19088,10 +19096,10 @@ function H1() {
|
|
|
19088
19096
|
}
|
|
19089
19097
|
var j3 = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(s) {
|
|
19090
19098
|
return r(r({}, s), { table: function(c) {
|
|
19091
|
-
var P = s.table(c), b = P.schema, X = {},
|
|
19099
|
+
var P = s.table(c), b = P.schema, X = {}, h = [];
|
|
19092
19100
|
function x(R, C, I) {
|
|
19093
19101
|
var E = Af(R), U = X[E] = X[E] || [], Y = R == null ? 0 : typeof R == "string" ? 1 : R.length, Q = 0 < C, Q = r(r({}, I), { name: Q ? "".concat(E, "(virtual-from:").concat(I.name, ")") : I.name, lowLevelIndex: I, isVirtual: Q, keyTail: C, keyLength: Y, extractKey: zs(R), unique: !Q && I.unique });
|
|
19094
|
-
return U.push(Q), Q.isPrimaryKey ||
|
|
19102
|
+
return U.push(Q), Q.isPrimaryKey || h.push(Q), 1 < Y && x(Y === 2 ? R[0] : R.slice(0, Y - 1), C + 1, I), U.sort(function(A, re) {
|
|
19095
19103
|
return A.keyTail - re.keyTail;
|
|
19096
19104
|
}), Q;
|
|
19097
19105
|
}
|
|
@@ -19104,7 +19112,7 @@ function H1() {
|
|
|
19104
19112
|
var C, I = R.query.index;
|
|
19105
19113
|
return I.isVirtual ? r(r({}, R), { query: { index: I.lowLevelIndex, range: (C = R.query.range, I = I.keyTail, { type: C.type === 1 ? 2 : C.type, lower: Iu(C.lower, C.lowerOpen ? s.MAX_KEY : s.MIN_KEY, I), lowerOpen: !0, upper: Iu(C.upper, C.upperOpen ? s.MIN_KEY : s.MAX_KEY, I), upperOpen: !0 }) } }) : R;
|
|
19106
19114
|
}
|
|
19107
|
-
return r(r({}, P), { schema: r(r({}, b), { primaryKey: c, indexes:
|
|
19115
|
+
return r(r({}, P), { schema: r(r({}, b), { primaryKey: c, indexes: h, getIndexByKeyPath: function(R) {
|
|
19108
19116
|
return (R = X[Af(R)]) && R[0];
|
|
19109
19117
|
} }), count: function(R) {
|
|
19110
19118
|
return P.count(F(R));
|
|
@@ -19134,8 +19142,8 @@ function H1() {
|
|
|
19134
19142
|
} };
|
|
19135
19143
|
function Zs(s, c, P, b) {
|
|
19136
19144
|
return P = P || {}, b = b || "", d(s).forEach(function(X) {
|
|
19137
|
-
var
|
|
19138
|
-
y(c, X) ? (
|
|
19145
|
+
var h, x, D;
|
|
19146
|
+
y(c, X) ? (h = s[X], x = c[X], typeof h == "object" && typeof x == "object" && h && x ? (D = ne(h)) !== ne(x) ? P[b + X] = c[X] : D === "Object" ? Zs(h, x, P, b + X + ".") : h !== x && (P[b + X] = c[X]) : h !== x && (P[b + X] = c[X])) : P[b + X] = void 0;
|
|
19139
19147
|
}), d(c).forEach(function(X) {
|
|
19140
19148
|
y(s, X) || (P[b + X] = c[X]);
|
|
19141
19149
|
}), P;
|
|
@@ -19147,26 +19155,26 @@ function H1() {
|
|
|
19147
19155
|
return r(r({}, s), { table: function(c) {
|
|
19148
19156
|
var P = s.table(c), b = P.schema.primaryKey;
|
|
19149
19157
|
return r(r({}, P), { mutate: function(X) {
|
|
19150
|
-
var
|
|
19158
|
+
var h = Ne.trans, x = h.table(c).hook, D = x.deleting, S = x.creating, g = x.updating;
|
|
19151
19159
|
switch (X.type) {
|
|
19152
19160
|
case "add":
|
|
19153
19161
|
if (S.fire === de) break;
|
|
19154
|
-
return
|
|
19162
|
+
return h._promise("readwrite", function() {
|
|
19155
19163
|
return F(X);
|
|
19156
19164
|
}, !0);
|
|
19157
19165
|
case "put":
|
|
19158
19166
|
if (S.fire === de && g.fire === de) break;
|
|
19159
|
-
return
|
|
19167
|
+
return h._promise("readwrite", function() {
|
|
19160
19168
|
return F(X);
|
|
19161
19169
|
}, !0);
|
|
19162
19170
|
case "delete":
|
|
19163
19171
|
if (D.fire === de) break;
|
|
19164
|
-
return
|
|
19172
|
+
return h._promise("readwrite", function() {
|
|
19165
19173
|
return F(X);
|
|
19166
19174
|
}, !0);
|
|
19167
19175
|
case "deleteRange":
|
|
19168
19176
|
if (D.fire === de) break;
|
|
19169
|
-
return
|
|
19177
|
+
return h._promise("readwrite", function() {
|
|
19170
19178
|
return (function R(C, I, E) {
|
|
19171
19179
|
return P.query({ trans: C, values: !1, query: { index: b, range: I }, limit: E }).then(function(U) {
|
|
19172
19180
|
var Y = U.result;
|
|
@@ -19207,7 +19215,7 @@ function H1() {
|
|
|
19207
19215
|
function ui(s, c, P) {
|
|
19208
19216
|
try {
|
|
19209
19217
|
if (!c || c.keys.length < s.length) return null;
|
|
19210
|
-
for (var b = [], X = 0,
|
|
19218
|
+
for (var b = [], X = 0, h = 0; X < c.keys.length && h < s.length; ++X) $e(c.keys[X], s[h]) === 0 && (b.push(P ? Xe(c.values[X]) : c.values[X]), ++h);
|
|
19211
19219
|
return b.length === s.length ? b : null;
|
|
19212
19220
|
} catch {
|
|
19213
19221
|
return null;
|
|
@@ -19219,8 +19227,8 @@ function H1() {
|
|
|
19219
19227
|
return r(r({}, P), { getMany: function(b) {
|
|
19220
19228
|
if (!b.cache) return P.getMany(b);
|
|
19221
19229
|
var X = ui(b.keys, b.trans._cache, b.cache === "clone");
|
|
19222
|
-
return X ? me.resolve(X) : P.getMany(b).then(function(
|
|
19223
|
-
return b.trans._cache = { keys: b.keys, values: b.cache === "clone" ? Xe(
|
|
19230
|
+
return X ? me.resolve(X) : P.getMany(b).then(function(h) {
|
|
19231
|
+
return b.trans._cache = { keys: b.keys, values: b.cache === "clone" ? Xe(h) : h }, h;
|
|
19224
19232
|
});
|
|
19225
19233
|
}, mutate: function(b) {
|
|
19226
19234
|
return b.type !== "add" && (b.trans._cache = null), P.mutate(b);
|
|
@@ -19243,11 +19251,11 @@ function H1() {
|
|
|
19243
19251
|
}
|
|
19244
19252
|
var T3 = { stack: "dbcore", level: 0, name: "Observability", create: function(s) {
|
|
19245
19253
|
var c = s.schema.name, P = new Ft(s.MIN_KEY, s.MAX_KEY);
|
|
19246
|
-
return r(r({}, s), { transaction: function(b, X,
|
|
19254
|
+
return r(r({}, s), { transaction: function(b, X, h) {
|
|
19247
19255
|
if (Ne.subscr && X !== "readonly") throw new ve.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Ne.querier));
|
|
19248
|
-
return s.transaction(b, X,
|
|
19256
|
+
return s.transaction(b, X, h);
|
|
19249
19257
|
}, table: function(b) {
|
|
19250
|
-
var X = s.table(b),
|
|
19258
|
+
var X = s.table(b), h = X.schema, x = h.primaryKey, R = h.indexes, D = x.extractKey, S = x.outbound, g = x.autoIncrement && R.filter(function(I) {
|
|
19251
19259
|
return I.compound && I.keyPath.includes(x.keyPath);
|
|
19252
19260
|
}), F = r(r({}, X), { mutate: function(I) {
|
|
19253
19261
|
function E(xe) {
|
|
@@ -19256,7 +19264,7 @@ function H1() {
|
|
|
19256
19264
|
var U, Y, Q, A = I.trans, re = I.mutatedParts || (I.mutatedParts = {}), ce = E(""), pe = E(":dels"), Te = I.type, Le = I.type === "deleteRange" ? [I.range] : I.type === "delete" ? [I.keys] : I.values.length < 50 ? [Ns(x, I).filter(function(xe) {
|
|
19257
19265
|
return xe;
|
|
19258
19266
|
}), I.values] : [], ye = Le[0], je = Le[1], Le = I.trans._cache;
|
|
19259
|
-
return l(ye) ? (ce.addKeys(ye), (Le = Te === "delete" || ye.length === je.length ? ui(ye, Le) : null) || pe.addKeys(ye), (Le || je) && (U = E, Y = Le, Q = je,
|
|
19267
|
+
return l(ye) ? (ce.addKeys(ye), (Le = Te === "delete" || ye.length === je.length ? ui(ye, Le) : null) || pe.addKeys(ye), (Le || je) && (U = E, Y = Le, Q = je, h.indexes.forEach(function(xe) {
|
|
19260
19268
|
var Re = U(xe.name || "");
|
|
19261
19269
|
function Ie(Ce) {
|
|
19262
19270
|
return Ce != null ? xe.extractKey(Ce) : null;
|
|
@@ -19270,7 +19278,7 @@ function H1() {
|
|
|
19270
19278
|
var ge = Y && Ie(Y[Yt]), Yt = Q && Ie(Q[Yt]);
|
|
19271
19279
|
$e(ge, Yt) !== 0 && (ge != null && Ee(ge), Yt != null && Ee(Yt));
|
|
19272
19280
|
});
|
|
19273
|
-
}))) : ye ? (je = { from: (je = ye.lower) !== null && je !== void 0 ? je : s.MIN_KEY, to: (je = ye.upper) !== null && je !== void 0 ? je : s.MAX_KEY }, pe.add(je), ce.add(je)) : (ce.add(P), pe.add(P),
|
|
19281
|
+
}))) : ye ? (je = { from: (je = ye.lower) !== null && je !== void 0 ? je : s.MIN_KEY, to: (je = ye.upper) !== null && je !== void 0 ? je : s.MAX_KEY }, pe.add(je), ce.add(je)) : (ce.add(P), pe.add(P), h.indexes.forEach(function(xe) {
|
|
19274
19282
|
return E(xe.name).add(P);
|
|
19275
19283
|
})), X.mutate(I).then(function(xe) {
|
|
19276
19284
|
return !ye || I.type !== "add" && I.type !== "put" || (ce.addKeys(xe.results), g && g.forEach(function(Re) {
|
|
@@ -19333,17 +19341,17 @@ function H1() {
|
|
|
19333
19341
|
if (P.numFailures === 0) return c;
|
|
19334
19342
|
if (c.type === "deleteRange") return null;
|
|
19335
19343
|
var b = c.keys ? c.keys.length : "values" in c && c.values ? c.values.length : 1;
|
|
19336
|
-
return P.numFailures === b ? null : (c = r({}, c), l(c.keys) && (c.keys = c.keys.filter(function(X,
|
|
19337
|
-
return !(
|
|
19338
|
-
})), "values" in c && l(c.values) && (c.values = c.values.filter(function(X,
|
|
19339
|
-
return !(
|
|
19344
|
+
return P.numFailures === b ? null : (c = r({}, c), l(c.keys) && (c.keys = c.keys.filter(function(X, h) {
|
|
19345
|
+
return !(h in P.failures);
|
|
19346
|
+
})), "values" in c && l(c.values) && (c.values = c.values.filter(function(X, h) {
|
|
19347
|
+
return !(h in P.failures);
|
|
19340
19348
|
})), c);
|
|
19341
19349
|
}
|
|
19342
19350
|
function ws(s, c) {
|
|
19343
19351
|
return P = s, ((b = c).lower === void 0 || (b.lowerOpen ? 0 < $e(P, b.lower) : 0 <= $e(P, b.lower))) && (s = s, (c = c).upper === void 0 || (c.upperOpen ? $e(s, c.upper) < 0 : $e(s, c.upper) <= 0));
|
|
19344
19352
|
var P, b;
|
|
19345
19353
|
}
|
|
19346
|
-
function ci(s, c, C, b, X,
|
|
19354
|
+
function ci(s, c, C, b, X, h) {
|
|
19347
19355
|
if (!C || C.length === 0) return s;
|
|
19348
19356
|
var x = c.query.index, D = x.multiEntry, S = c.query.range, g = b.schema.primaryKey.extractKey, F = x.extractKey, R = (x.lowLevelIndex || x).extractKey, C = C.reduce(function(I, E) {
|
|
19349
19357
|
var U = I, Y = [];
|
|
@@ -19391,47 +19399,47 @@ function H1() {
|
|
|
19391
19399
|
}, s);
|
|
19392
19400
|
return C === s ? s : (C.sort(function(I, E) {
|
|
19393
19401
|
return $e(R(I), R(E)) || $e(g(I), g(E));
|
|
19394
|
-
}), c.limit && c.limit < 1 / 0 && (C.length > c.limit ? C.length = c.limit : s.length === c.limit && C.length < c.limit && (X.dirty = !0)),
|
|
19402
|
+
}), c.limit && c.limit < 1 / 0 && (C.length > c.limit ? C.length = c.limit : s.length === c.limit && C.length < c.limit && (X.dirty = !0)), h ? Object.freeze(C) : C);
|
|
19395
19403
|
}
|
|
19396
19404
|
function ii(s, c) {
|
|
19397
19405
|
return $e(s.lower, c.lower) === 0 && $e(s.upper, c.upper) === 0 && !!s.lowerOpen == !!c.lowerOpen && !!s.upperOpen == !!c.upperOpen;
|
|
19398
19406
|
}
|
|
19399
19407
|
function L3(s, c) {
|
|
19400
|
-
return (function(P, b, X,
|
|
19408
|
+
return (function(P, b, X, h) {
|
|
19401
19409
|
if (P === void 0) return b !== void 0 ? -1 : 0;
|
|
19402
19410
|
if (b === void 0) return 1;
|
|
19403
19411
|
if ((b = $e(P, b)) === 0) {
|
|
19404
|
-
if (X &&
|
|
19412
|
+
if (X && h) return 0;
|
|
19405
19413
|
if (X) return 1;
|
|
19406
|
-
if (
|
|
19414
|
+
if (h) return -1;
|
|
19407
19415
|
}
|
|
19408
19416
|
return b;
|
|
19409
|
-
})(s.lower, c.lower, s.lowerOpen, c.lowerOpen) <= 0 && 0 <= (function(P, b, X,
|
|
19417
|
+
})(s.lower, c.lower, s.lowerOpen, c.lowerOpen) <= 0 && 0 <= (function(P, b, X, h) {
|
|
19410
19418
|
if (P === void 0) return b !== void 0 ? 1 : 0;
|
|
19411
19419
|
if (b === void 0) return -1;
|
|
19412
19420
|
if ((b = $e(P, b)) === 0) {
|
|
19413
|
-
if (X &&
|
|
19421
|
+
if (X && h) return 0;
|
|
19414
19422
|
if (X) return -1;
|
|
19415
|
-
if (
|
|
19423
|
+
if (h) return 1;
|
|
19416
19424
|
}
|
|
19417
19425
|
return b;
|
|
19418
19426
|
})(s.upper, c.upper, s.upperOpen, c.upperOpen);
|
|
19419
19427
|
}
|
|
19420
19428
|
function Z3(s, c, P, b) {
|
|
19421
19429
|
s.subscribers.add(P), b.addEventListener("abort", function() {
|
|
19422
|
-
var X,
|
|
19423
|
-
s.subscribers.delete(P), s.subscribers.size === 0 && (X = s,
|
|
19424
|
-
X.subscribers.size === 0 && T(
|
|
19430
|
+
var X, h;
|
|
19431
|
+
s.subscribers.delete(P), s.subscribers.size === 0 && (X = s, h = c, setTimeout(function() {
|
|
19432
|
+
X.subscribers.size === 0 && T(h, X);
|
|
19425
19433
|
}, 3e3));
|
|
19426
19434
|
});
|
|
19427
19435
|
}
|
|
19428
19436
|
var N3 = { stack: "dbcore", level: 0, name: "Cache", create: function(s) {
|
|
19429
19437
|
var c = s.schema.name;
|
|
19430
19438
|
return r(r({}, s), { transaction: function(P, b, X) {
|
|
19431
|
-
var
|
|
19432
|
-
return b === "readwrite" && (x = (
|
|
19439
|
+
var h, x, D = s.transaction(P, b, X);
|
|
19440
|
+
return b === "readwrite" && (x = (h = new AbortController()).signal, X = function(S) {
|
|
19433
19441
|
return function() {
|
|
19434
|
-
if (
|
|
19442
|
+
if (h.abort(), b === "readwrite") {
|
|
19435
19443
|
for (var g = /* @__PURE__ */ new Set(), F = 0, R = P; F < R.length; F++) {
|
|
19436
19444
|
var C = R[F], I = gr["idb://".concat(c, "/").concat(C)];
|
|
19437
19445
|
if (I) {
|
|
@@ -19461,27 +19469,27 @@ function H1() {
|
|
|
19461
19469
|
}, D.addEventListener("abort", X(!1), { signal: x }), D.addEventListener("error", X(!1), { signal: x }), D.addEventListener("complete", X(!0), { signal: x })), D;
|
|
19462
19470
|
}, table: function(P) {
|
|
19463
19471
|
var b = s.table(P), X = b.schema.primaryKey;
|
|
19464
|
-
return r(r({}, b), { mutate: function(
|
|
19472
|
+
return r(r({}, b), { mutate: function(h) {
|
|
19465
19473
|
var x = Ne.trans;
|
|
19466
|
-
if (X.outbound || x.db._options.cache === "disabled" || x.explicit || x.idbtrans.mode !== "readwrite") return b.mutate(
|
|
19474
|
+
if (X.outbound || x.db._options.cache === "disabled" || x.explicit || x.idbtrans.mode !== "readwrite") return b.mutate(h);
|
|
19467
19475
|
var D = gr["idb://".concat(c, "/").concat(P)];
|
|
19468
|
-
return D ? (x = b.mutate(
|
|
19476
|
+
return D ? (x = b.mutate(h), h.type !== "add" && h.type !== "put" || !(50 <= h.values.length || Ns(X, h).some(function(S) {
|
|
19469
19477
|
return S == null;
|
|
19470
|
-
})) ? (D.optimisticOps.push(
|
|
19471
|
-
0 < S.numFailures && (T(D.optimisticOps,
|
|
19478
|
+
})) ? (D.optimisticOps.push(h), h.mutatedParts && gu(h.mutatedParts), x.then(function(S) {
|
|
19479
|
+
0 < S.numFailures && (T(D.optimisticOps, h), (S = li(0, h, S)) && D.optimisticOps.push(S), h.mutatedParts && gu(h.mutatedParts));
|
|
19472
19480
|
}), x.catch(function() {
|
|
19473
|
-
T(D.optimisticOps,
|
|
19481
|
+
T(D.optimisticOps, h), h.mutatedParts && gu(h.mutatedParts);
|
|
19474
19482
|
})) : x.then(function(S) {
|
|
19475
|
-
var g = li(0, r(r({},
|
|
19483
|
+
var g = li(0, r(r({}, h), { values: h.values.map(function(F, R) {
|
|
19476
19484
|
var C;
|
|
19477
19485
|
return S.failures[R] ? F : (F = (C = X.keyPath) !== null && C !== void 0 && C.includes(".") ? Xe(F) : r({}, F), B(F, X.keyPath, S.results[R]), F);
|
|
19478
19486
|
}) }), S);
|
|
19479
19487
|
D.optimisticOps.push(g), queueMicrotask(function() {
|
|
19480
|
-
return
|
|
19488
|
+
return h.mutatedParts && gu(h.mutatedParts);
|
|
19481
19489
|
});
|
|
19482
|
-
}), x) : b.mutate(
|
|
19483
|
-
}, query: function(
|
|
19484
|
-
if (!di(Ne, b) || !si("query",
|
|
19490
|
+
}), x) : b.mutate(h);
|
|
19491
|
+
}, query: function(h) {
|
|
19492
|
+
if (!di(Ne, b) || !si("query", h)) return b.query(h);
|
|
19485
19493
|
var x = ((g = Ne.trans) === null || g === void 0 ? void 0 : g.db._options.cache) === "immutable", R = Ne, D = R.requery, S = R.signal, g = (function(E, U, Y, Q) {
|
|
19486
19494
|
var A = gr["idb://".concat(E, "/").concat(U)];
|
|
19487
19495
|
if (!A) return [];
|
|
@@ -19501,8 +19509,8 @@ function H1() {
|
|
|
19501
19509
|
return ii(pe.req.query.range, Q.query.range);
|
|
19502
19510
|
}), [ce, !!ce, A, re];
|
|
19503
19511
|
}
|
|
19504
|
-
})(c, P, "query",
|
|
19505
|
-
return F && R ? F.obsSet =
|
|
19512
|
+
})(c, P, "query", h), F = g[0], R = g[1], C = g[2], I = g[3];
|
|
19513
|
+
return F && R ? F.obsSet = h.obsSet : (R = b.query(h).then(function(E) {
|
|
19506
19514
|
var U = E.result;
|
|
19507
19515
|
if (F && (F.res = U), x) {
|
|
19508
19516
|
for (var Y = 0, Q = U.length; Y < Q; ++Y) Object.freeze(U[Y]);
|
|
@@ -19511,8 +19519,8 @@ function H1() {
|
|
|
19511
19519
|
return E;
|
|
19512
19520
|
}).catch(function(E) {
|
|
19513
19521
|
return I && F && T(I, F), Promise.reject(E);
|
|
19514
|
-
}), F = { obsSet:
|
|
19515
|
-
return { result: ci(E.result,
|
|
19522
|
+
}), F = { obsSet: h.obsSet, promise: R, subscribers: /* @__PURE__ */ new Set(), type: "query", req: h, dirty: !1 }, I ? I.push(F) : (I = [F], (C = C || (gr["idb://".concat(c, "/").concat(P)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[h.query.index.name || ""] = I)), Z3(F, I, D, S), F.promise.then(function(E) {
|
|
19523
|
+
return { result: ci(E.result, h, C?.optimisticOps, b, F, x) };
|
|
19516
19524
|
});
|
|
19517
19525
|
} });
|
|
19518
19526
|
} });
|
|
@@ -19542,8 +19550,8 @@ function H1() {
|
|
|
19542
19550
|
}).then(s);
|
|
19543
19551
|
}, Lt.prototype.use = function(s) {
|
|
19544
19552
|
var c = s.stack, P = s.create, b = s.level, X = s.name;
|
|
19545
|
-
return X && this.unuse({ stack: c, name: X }), s = this._middlewares[c] || (this._middlewares[c] = []), s.push({ stack: c, create: P, level: b ?? 10, name: X }), s.sort(function(
|
|
19546
|
-
return
|
|
19553
|
+
return X && this.unuse({ stack: c, name: X }), s = this._middlewares[c] || (this._middlewares[c] = []), s.push({ stack: c, create: P, level: b ?? 10, name: X }), s.sort(function(h, x) {
|
|
19554
|
+
return h.level - x.level;
|
|
19547
19555
|
}), this;
|
|
19548
19556
|
}, Lt.prototype.unuse = function(s) {
|
|
19549
19557
|
var c = s.stack, P = s.name, b = s.create;
|
|
@@ -19577,14 +19585,14 @@ function H1() {
|
|
|
19577
19585
|
var c = this;
|
|
19578
19586
|
s === void 0 && (s = { disableAutoOpen: !0 });
|
|
19579
19587
|
var P = 0 < arguments.length && typeof arguments[0] != "object", b = this._state;
|
|
19580
|
-
return new me(function(X,
|
|
19588
|
+
return new me(function(X, h) {
|
|
19581
19589
|
function x() {
|
|
19582
19590
|
c.close(s);
|
|
19583
19591
|
var D = c._deps.indexedDB.deleteDatabase(c.name);
|
|
19584
19592
|
D.onsuccess = Pe(function() {
|
|
19585
19593
|
var S, g, F;
|
|
19586
19594
|
S = c._deps, g = c.name, F = S.indexedDB, S = S.IDBKeyRange, ps(F) || g === of || Hs(F, S).delete(g).catch(de), X();
|
|
19587
|
-
}), D.onerror = Kn(
|
|
19595
|
+
}), D.onerror = Kn(h), D.onblocked = c._fireOnBlocked;
|
|
19588
19596
|
}
|
|
19589
19597
|
if (P) throw new ve.InvalidArgument("Invalid closeOptions argument to db.delete()");
|
|
19590
19598
|
b.isBeingOpened ? b.dbReadyPromise.then(x) : x();
|
|
@@ -19609,26 +19617,26 @@ function H1() {
|
|
|
19609
19617
|
var s = (function(c, P, b) {
|
|
19610
19618
|
var X = arguments.length;
|
|
19611
19619
|
if (X < 2) throw new ve.InvalidArgument("Too few arguments");
|
|
19612
|
-
for (var
|
|
19613
|
-
return b =
|
|
19620
|
+
for (var h = new Array(X - 1); --X; ) h[X - 1] = arguments[X];
|
|
19621
|
+
return b = h.pop(), [c, se(h), b];
|
|
19614
19622
|
}).apply(this, arguments);
|
|
19615
19623
|
return this._transaction.apply(this, s);
|
|
19616
19624
|
}, Lt.prototype._transaction = function(s, c, P) {
|
|
19617
19625
|
var b = this, X = Ne.trans;
|
|
19618
19626
|
X && X.db === this && s.indexOf("!") === -1 || (X = null);
|
|
19619
|
-
var
|
|
19627
|
+
var h, x, D = s.indexOf("?") !== -1;
|
|
19620
19628
|
s = s.replace("!", "").replace("?", "");
|
|
19621
19629
|
try {
|
|
19622
19630
|
if (x = c.map(function(g) {
|
|
19623
19631
|
if (g = g instanceof b.Table ? g.name : g, typeof g != "string") throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
|
|
19624
19632
|
return g;
|
|
19625
|
-
}), s == "r" || s === Mr)
|
|
19633
|
+
}), s == "r" || s === Mr) h = Mr;
|
|
19626
19634
|
else {
|
|
19627
19635
|
if (s != "rw" && s != cs) throw new ve.InvalidArgument("Invalid transaction mode: " + s);
|
|
19628
|
-
|
|
19636
|
+
h = cs;
|
|
19629
19637
|
}
|
|
19630
19638
|
if (X) {
|
|
19631
|
-
if (X.mode === Mr &&
|
|
19639
|
+
if (X.mode === Mr && h === cs) {
|
|
19632
19640
|
if (!D) throw new ve.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
|
|
19633
19641
|
X = null;
|
|
19634
19642
|
}
|
|
@@ -19671,8 +19679,8 @@ function H1() {
|
|
|
19671
19679
|
return Y._reject(re), Ht(re);
|
|
19672
19680
|
});
|
|
19673
19681
|
});
|
|
19674
|
-
}).bind(null, this,
|
|
19675
|
-
return X ? X._promise(
|
|
19682
|
+
}).bind(null, this, h, x, X, P);
|
|
19683
|
+
return X ? X._promise(h, S, "lock") : Ne.trans ? Cn(Ne.transless, function() {
|
|
19676
19684
|
return b._whenReady(S);
|
|
19677
19685
|
}) : this._whenReady(S);
|
|
19678
19686
|
}, Lt.prototype.table = function(s) {
|
|
@@ -19684,7 +19692,7 @@ function H1() {
|
|
|
19684
19692
|
this._middlewares = {}, this.verno = 0;
|
|
19685
19693
|
var b = Lt.dependencies;
|
|
19686
19694
|
this._options = c = r({ addons: Lt.addons, autoOpen: !0, indexedDB: b.indexedDB, IDBKeyRange: b.IDBKeyRange, cache: "cloned" }, c), this._deps = { indexedDB: c.indexedDB, IDBKeyRange: c.IDBKeyRange }, b = c.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
|
|
19687
|
-
var X,
|
|
19695
|
+
var X, h, x, D, S, g = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: de, dbReadyPromise: null, cancelOpen: de, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: c.autoOpen };
|
|
19688
19696
|
g.dbReadyPromise = new me(function(R) {
|
|
19689
19697
|
g.dbReadyResolve = R;
|
|
19690
19698
|
}), g.openCanceller = new me(function(R, C) {
|
|
@@ -19714,8 +19722,8 @@ function H1() {
|
|
|
19714
19722
|
}
|
|
19715
19723
|
var U = Q._ctx, Y = U.table, Q = Y.hook.reading.fire;
|
|
19716
19724
|
this._ctx = { table: Y, index: U.index, isPrimKey: !U.index || Y.schema.primKey.keyPath && U.index === Y.schema.primKey.name, range: I, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: E, or: U.or, valueMapper: Q !== Be ? Q : null };
|
|
19717
|
-
})), this.Table = (
|
|
19718
|
-
this.db =
|
|
19725
|
+
})), this.Table = (h = this, Cf(Fc.prototype, function(R, C, I) {
|
|
19726
|
+
this.db = h, this._tx = I, this.name = R, this.schema = C, this.hook = h._allTables[R] ? h._allTables[R].hook : Yf(null, { creating: [On, de], reading: [Rt, Be], updating: [hn, de], deleting: [Tt, de] });
|
|
19719
19727
|
})), this.Transaction = (x = this, Cf(P3.prototype, function(R, C, I, E, U) {
|
|
19720
19728
|
var Y = this;
|
|
19721
19729
|
R !== "readonly" && C.forEach(function(Q) {
|
|
@@ -19784,7 +19792,7 @@ function H1() {
|
|
|
19784
19792
|
}
|
|
19785
19793
|
function ai(s) {
|
|
19786
19794
|
var c, P = !1, b = new w3(function(X) {
|
|
19787
|
-
var
|
|
19795
|
+
var h = $(s), x, D = !1, S = {}, g = {}, F = { get closed() {
|
|
19788
19796
|
return D;
|
|
19789
19797
|
}, unsubscribe: function() {
|
|
19790
19798
|
D || (D = !0, x && x.abort(), R && Hr.storagemutated.unsubscribe(I));
|
|
@@ -19799,9 +19807,9 @@ function H1() {
|
|
|
19799
19807
|
!D && Eu.indexedDB && (S = {}, U = {}, x && x.abort(), x = new AbortController(), Q = (function(A) {
|
|
19800
19808
|
var re = qe();
|
|
19801
19809
|
try {
|
|
19802
|
-
|
|
19810
|
+
h && qt();
|
|
19803
19811
|
var ce = Xt(s, A);
|
|
19804
|
-
return ce =
|
|
19812
|
+
return ce = h ? ce.finally(ft) : ce;
|
|
19805
19813
|
} finally {
|
|
19806
19814
|
re && he();
|
|
19807
19815
|
}
|
|
@@ -20088,10 +20096,10 @@ function L1({
|
|
|
20088
20096
|
function p() {
|
|
20089
20097
|
j((L) => L + 1);
|
|
20090
20098
|
}
|
|
20091
|
-
const
|
|
20099
|
+
const O = n?.CourtDateID ?? null, m = Fe(r);
|
|
20092
20100
|
return m.current = r, He(() => {
|
|
20093
|
-
if (!n || !
|
|
20094
|
-
|
|
20101
|
+
if (!n || !O || O < 0) {
|
|
20102
|
+
O !== null && d([]);
|
|
20095
20103
|
return;
|
|
20096
20104
|
}
|
|
20097
20105
|
const L = kn(n);
|
|
@@ -20103,7 +20111,7 @@ function L1({
|
|
|
20103
20111
|
})(), () => {
|
|
20104
20112
|
q = !0;
|
|
20105
20113
|
};
|
|
20106
|
-
}, [
|
|
20114
|
+
}, [O]), { allCases: r, selectedCases: u, isFetchingCases: l, forceRefreshCases: p, addPartialCasesToMemoryAndCache: v, deleteCaseMemoryAndCache: y };
|
|
20107
20115
|
}
|
|
20108
20116
|
function ro(t) {
|
|
20109
20117
|
return String(t).padStart(2, "0");
|
|
@@ -20176,7 +20184,7 @@ function Z1(t, e) {
|
|
|
20176
20184
|
});
|
|
20177
20185
|
}
|
|
20178
20186
|
for (const [z, j] of d) {
|
|
20179
|
-
const [p,
|
|
20187
|
+
const [p, O, m] = z.split("-").map(Number), L = new Date(p, O - 1, m);
|
|
20180
20188
|
r.HearingTime && fo(L, r.HearingTime), n.push({
|
|
20181
20189
|
...H,
|
|
20182
20190
|
id: `${r.DateType}-${r.CourtDateID}-adj-${z}`,
|
|
@@ -20225,7 +20233,7 @@ function k1({
|
|
|
20225
20233
|
modalIsOpen: r,
|
|
20226
20234
|
filterCtx: f
|
|
20227
20235
|
}) {
|
|
20228
|
-
const { getTownshipName: u, allUsers: d } = Ut(), [l, i] = ie([]), [o, v] = ie(null), [y, H] = ie(null), [z, j] = ie(!1), [p,
|
|
20236
|
+
const { getTownshipName: u, allUsers: d } = Ut(), [l, i] = ie([]), [o, v] = ie(null), [y, H] = ie(null), [z, j] = ie(!1), [p, O] = S3(), m = Fe(/* @__PURE__ */ new Set()), L = M3(f);
|
|
20229
20237
|
He(() => {
|
|
20230
20238
|
if (v(null), H(null), f.searchTerm.trim() === "" || f.searchTerm.toLowerCase() === "secret") return;
|
|
20231
20239
|
let W = !1;
|
|
@@ -20398,7 +20406,7 @@ function k1({
|
|
|
20398
20406
|
});
|
|
20399
20407
|
}, [J, L, u]);
|
|
20400
20408
|
He(() => {
|
|
20401
|
-
r ||
|
|
20409
|
+
r || O(() => {
|
|
20402
20410
|
i([...se, ...oe, ...ze]);
|
|
20403
20411
|
});
|
|
20404
20412
|
}, [se, oe, ze, r]), He(() => {
|
|
@@ -20531,7 +20539,7 @@ function q1({
|
|
|
20531
20539
|
MultipleDates: Array.isArray(B.MultipleDates) ? B.MultipleDates.map((M) => M instanceof Date ? M : new Date(M)) : null
|
|
20532
20540
|
})), []), p = Gt(() => {
|
|
20533
20541
|
z.current += 1, o(!0);
|
|
20534
|
-
}, []),
|
|
20542
|
+
}, []), O = Gt(() => {
|
|
20535
20543
|
z.current = Math.max(0, z.current - 1), z.current === 0 && (o(!1), y(/* @__PURE__ */ new Date()));
|
|
20536
20544
|
}, []), m = Gt(async (J = !1) => {
|
|
20537
20545
|
const B = J ? null : await x1();
|
|
@@ -20539,15 +20547,15 @@ function q1({
|
|
|
20539
20547
|
u(M), await to(M), console.log("%c📅 CourtDates", "font-weight:bold", `🌐 ${M.length} from API`);
|
|
20540
20548
|
}).catch((M) => {
|
|
20541
20549
|
console.error("❌ CourtDates fetch failed:", M);
|
|
20542
|
-
}).finally(
|
|
20543
|
-
}, [t, j, p,
|
|
20550
|
+
}).finally(O));
|
|
20551
|
+
}, [t, j, p, O]), L = Gt(async (J = !1) => {
|
|
20544
20552
|
const B = J ? null : await T1();
|
|
20545
20553
|
B && B.length > 0 ? (l(j(B)), console.log("%c🤝 Negotiations", "font-weight:bold", `💾 ${B.length} from cache`)) : (p(), Ba(t, mt.NEGOTIATIONS).then(async (M) => {
|
|
20546
20554
|
l(M), await no(M), console.log("%c🤝 Negotiations", "font-weight:bold", `🌐 ${M.length} from API`);
|
|
20547
20555
|
}).catch((M) => {
|
|
20548
20556
|
console.error("❌ Negotiations fetch failed:", M);
|
|
20549
|
-
}).finally(
|
|
20550
|
-
}, [t, j, p,
|
|
20557
|
+
}).finally(O));
|
|
20558
|
+
}, [t, j, p, O]);
|
|
20551
20559
|
He(() => {
|
|
20552
20560
|
m(), L();
|
|
20553
20561
|
}, [m, L]), He(() => {
|
|
@@ -20710,7 +20718,7 @@ function U1({
|
|
|
20710
20718
|
allUsers: z,
|
|
20711
20719
|
setCurrentView: j,
|
|
20712
20720
|
setCurrentDate: p,
|
|
20713
|
-
setFilterCtx:
|
|
20721
|
+
setFilterCtx: O,
|
|
20714
20722
|
openDetailsModal: m,
|
|
20715
20723
|
setClickedCase: L,
|
|
20716
20724
|
routeParams: q,
|
|
@@ -20739,7 +20747,7 @@ function U1({
|
|
|
20739
20747
|
isNaN(T.getTime()) || p(T);
|
|
20740
20748
|
}
|
|
20741
20749
|
const W = E1(K);
|
|
20742
|
-
Object.keys(W).length > 0 &&
|
|
20750
|
+
Object.keys(W).length > 0 && O({ ...k7, ...W }), K.courtDateId != null && (ze.current = K.courtDateId, oe.current = !0, K.caseIdx && (Xe.current = K.caseIdx));
|
|
20743
20751
|
}, []);
|
|
20744
20752
|
const ne = Fe(ae.current.showOnlyAssignedToUser ?? null);
|
|
20745
20753
|
return He(() => {
|
|
@@ -20751,8 +20759,8 @@ function U1({
|
|
|
20751
20759
|
}
|
|
20752
20760
|
if (Object.keys(z).length === 0) return;
|
|
20753
20761
|
const W = z[K];
|
|
20754
|
-
W && (ne.current = null,
|
|
20755
|
-
}, [z,
|
|
20762
|
+
W && (ne.current = null, O({ ...M.current, user: W }));
|
|
20763
|
+
}, [z, O]), He(() => {
|
|
20756
20764
|
if (!oe.current || v || l.length === 0 && H === null) return;
|
|
20757
20765
|
const K = ze.current;
|
|
20758
20766
|
if (K == null) return;
|
|
@@ -20988,7 +20996,7 @@ function ao({ counts: t, label: e }) {
|
|
|
20988
20996
|
] });
|
|
20989
20997
|
}
|
|
20990
20998
|
function C1({ courtDate: t, memoryCases: e, apiCases: n, isVillage: r, loading: f }) {
|
|
20991
|
-
const u = t.UploadDeadline ? new Date(t.UploadDeadline) : null, d = u ? Math.ceil((u.getTime() - Date.now()) / (1e3 * 60 * 60 * 24)) : null, l = u == null ? G.label : d < 0 ? G.red : d <= 3 ? G.orange : G.green, i = t.MotionDate ? new Date(t.MotionDate) : null, o = i ? Math.ceil((i.getTime() - Date.now()) / (1e3 * 60 * 60 * 24)) : null, v = i == null ? G.label : o < 0 ? G.red : o <= 3 ? G.orange : G.green, y = Jd(e, r), H = n ? Jd(n, r) : null, z = Df(e), j = n ? Df(n) : null, p = Array.from(/* @__PURE__ */ new Set([...e.map((
|
|
20999
|
+
const u = t.UploadDeadline ? new Date(t.UploadDeadline) : null, d = u ? Math.ceil((u.getTime() - Date.now()) / (1e3 * 60 * 60 * 24)) : null, l = u == null ? G.label : d < 0 ? G.red : d <= 3 ? G.orange : G.green, i = t.MotionDate ? new Date(t.MotionDate) : null, o = i ? Math.ceil((i.getTime() - Date.now()) / (1e3 * 60 * 60 * 24)) : null, v = i == null ? G.label : o < 0 ? G.red : o <= 3 ? G.orange : G.green, y = Jd(e, r), H = n ? Jd(n, r) : null, z = Df(e), j = n ? Df(n) : null, p = Array.from(/* @__PURE__ */ new Set([...e.map((O) => O.SCARIndexNumber), ...(n ?? []).map((O) => O.SCARIndexNumber)])).sort();
|
|
20992
21000
|
return /* @__PURE__ */ V(te, { children: [
|
|
20993
21001
|
/* @__PURE__ */ V(te, { sx: { display: "flex", flexWrap: "wrap", mb: 1.5 }, children: [
|
|
20994
21002
|
/* @__PURE__ */ a(wt, { label: "UploadDeadline", value: u ? u.toLocaleDateString() : "—", color: l }),
|
|
@@ -21002,18 +21010,18 @@ function C1({ courtDate: t, memoryCases: e, apiCases: n, isVillage: r, loading:
|
|
|
21002
21010
|
H && /* @__PURE__ */ a(ao, { counts: H, label: "LIVE API" }),
|
|
21003
21011
|
/* @__PURE__ */ a(le, { variant: "caption", sx: { color: G.label, fontSize: 10, display: "block", mt: 1, mb: 0.5 }, children: "PER-CASE UPLOAD STATUS" }),
|
|
21004
21012
|
/* @__PURE__ */ a(te, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ V("table", { style: lf, children: [
|
|
21005
|
-
/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ a("tr", { style: If, children: ["Index #", "Mem status", "Mem upload date", ...j ? ["API status", "API upload date"] : []].map((
|
|
21006
|
-
/* @__PURE__ */ a("tbody", { children: p.map((
|
|
21007
|
-
const m = z.get(
|
|
21013
|
+
/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ a("tr", { style: If, children: ["Index #", "Mem status", "Mem upload date", ...j ? ["API status", "API upload date"] : []].map((O) => /* @__PURE__ */ a("th", { style: cn, children: O }, O)) }) }),
|
|
21014
|
+
/* @__PURE__ */ a("tbody", { children: p.map((O) => {
|
|
21015
|
+
const m = z.get(O), L = j?.get(O), q = co(m, r), w = L ? co(L, r) : null, k = w && q.label !== w.label;
|
|
21008
21016
|
return /* @__PURE__ */ V("tr", { style: { ...Gf, background: k ? "rgba(255,80,80,0.06)" : void 0 }, children: [
|
|
21009
|
-
/* @__PURE__ */ a("td", { style: { ...Ge, color: G.dim }, children:
|
|
21017
|
+
/* @__PURE__ */ a("td", { style: { ...Ge, color: G.dim }, children: O }),
|
|
21010
21018
|
/* @__PURE__ */ a("td", { style: { ...Ge, color: q.color }, children: m ? q.label : /* @__PURE__ */ a("span", { style: { color: G.muted }, children: "missing" }) }),
|
|
21011
21019
|
/* @__PURE__ */ a("td", { style: { ...Ge, color: G.dim }, children: io(m) }),
|
|
21012
21020
|
j && /* @__PURE__ */ V(kt, { children: [
|
|
21013
21021
|
/* @__PURE__ */ a("td", { style: { ...Ge, color: w?.color ?? G.muted }, children: L ? w.label : /* @__PURE__ */ a("span", { style: { color: G.muted }, children: "missing" }) }),
|
|
21014
21022
|
/* @__PURE__ */ a("td", { style: { ...Ge, color: G.dim }, children: io(L) })
|
|
21015
21023
|
] })
|
|
21016
|
-
] },
|
|
21024
|
+
] }, O);
|
|
21017
21025
|
}) })
|
|
21018
21026
|
] }) })
|
|
21019
21027
|
] });
|
|
@@ -21053,7 +21061,7 @@ function Q1({
|
|
|
21053
21061
|
isVillage: u,
|
|
21054
21062
|
calEvent: d
|
|
21055
21063
|
}) {
|
|
21056
|
-
const l = f.filter((w) => w.level === "error").length, i = f.filter((w) => w.level === "warn").length, o = Jd(e, u), v = n ? Jd(n, u) : o, y = n !== null && e.length !== n.length, z = y ? G.red : n !== null && !y ? G.green : G.text, j = r ? "…" : n !== null ? y ? `${e.length}/${n.length}` : String(n.length) : String(e.length), p = (n ?? []).reduce((w, k) => w + (k.negotiations?.length ?? 0), 0),
|
|
21064
|
+
const l = f.filter((w) => w.level === "error").length, i = f.filter((w) => w.level === "warn").length, o = Jd(e, u), v = n ? Jd(n, u) : o, y = n !== null && e.length !== n.length, z = y ? G.red : n !== null && !y ? G.green : G.text, j = r ? "…" : n !== null ? y ? `${e.length}/${n.length}` : String(n.length) : String(e.length), p = (n ?? []).reduce((w, k) => w + (k.negotiations?.length ?? 0), 0), O = (n ?? []).filter((w) => !!w.stipTracking).length, m = l > 0 ? G.red : i > 0 ? G.orange : r ? G.statDim : G.green, L = r ? "…" : l > 0 ? `${l}E ${i}W` : i > 0 ? `${i}W` : "✓", q = t.Lifecycle === Et.UPLOADED ? G.green : t.Lifecycle ? G.orange : G.label;
|
|
21057
21065
|
return /* @__PURE__ */ V(te, { sx: { px: 2, py: 1.5, background: G.dashBg, borderBottom: "2px solid #222" }, children: [
|
|
21058
21066
|
/* @__PURE__ */ V(te, { sx: { display: "flex", alignItems: "center", gap: 0.75, mb: 1.5, flexWrap: "wrap" }, children: [
|
|
21059
21067
|
/* @__PURE__ */ a(hr, { label: t.MuniCode, color: G.text, bg: "#252525" }),
|
|
@@ -21072,7 +21080,7 @@ function Q1({
|
|
|
21072
21080
|
r ? /* @__PURE__ */ a(le, { sx: { color: G.statDim, fontSize: 10, fontFamily: "monospace" }, children: "…" }) : /* @__PURE__ */ a(K1, { uploaded: v.uploaded, pending: v.hasEvidenceNotUploaded, noEvidence: v.noEvidence, settled: v.settled, total: v.total })
|
|
21073
21081
|
] }),
|
|
21074
21082
|
/* @__PURE__ */ a(ud, { label: "NEG LOGS", value: r ? "…" : p, color: p > 0 ? G.text : G.statDim }),
|
|
21075
|
-
/* @__PURE__ */ a(ud, { label: "STIPS", value: r ? "…" :
|
|
21083
|
+
/* @__PURE__ */ a(ud, { label: "STIPS", value: r ? "…" : O, color: O > 0 ? G.blue : G.statDim }),
|
|
21076
21084
|
/* @__PURE__ */ a(ud, { label: "WARNINGS", value: L, color: m })
|
|
21077
21085
|
] })
|
|
21078
21086
|
] });
|
|
@@ -21121,8 +21129,8 @@ function B1({
|
|
|
21121
21129
|
return q !== w;
|
|
21122
21130
|
});
|
|
21123
21131
|
j.length > 0 && u.push({ level: "warn", message: `Upload status differs for ${j.length} case(s) between memory and API` });
|
|
21124
|
-
const p = u.some((m) => m.level === "error"),
|
|
21125
|
-
!p && !
|
|
21132
|
+
const p = u.some((m) => m.level === "error"), O = u.some((m) => m.level === "warn");
|
|
21133
|
+
!p && !O && u.push({ level: "ok", message: "Memory matches API" });
|
|
21126
21134
|
}
|
|
21127
21135
|
return u;
|
|
21128
21136
|
}
|
|
@@ -21448,7 +21456,7 @@ function a2({ courtDate: t, calEvent: e, memCases: n, apiCases: r, loading: f })
|
|
|
21448
21456
|
return j.length === 0 ? null : /* @__PURE__ */ V(te, { sx: { display: "flex", alignItems: "center", flexWrap: "wrap", gap: 0.5 }, children: [
|
|
21449
21457
|
/* @__PURE__ */ a(le, { variant: "caption", sx: { fontSize: 9, color: G.label, letterSpacing: "0.08em", mr: 0.5 }, children: v[z] }),
|
|
21450
21458
|
j.map((p) => {
|
|
21451
|
-
const
|
|
21459
|
+
const O = l === p.id;
|
|
21452
21460
|
return /* @__PURE__ */ a(
|
|
21453
21461
|
te,
|
|
21454
21462
|
{
|
|
@@ -21459,10 +21467,10 @@ function a2({ courtDate: t, calEvent: e, memCases: n, apiCases: r, loading: f })
|
|
|
21459
21467
|
cursor: "pointer",
|
|
21460
21468
|
borderRadius: "3px",
|
|
21461
21469
|
border: "1px solid",
|
|
21462
|
-
borderColor:
|
|
21463
|
-
background:
|
|
21470
|
+
borderColor: O ? G.blue : G.border,
|
|
21471
|
+
background: O ? "#111a2e" : "transparent"
|
|
21464
21472
|
},
|
|
21465
|
-
children: /* @__PURE__ */ a(le, { variant: "caption", sx: { fontFamily: "monospace", fontSize: 10, color:
|
|
21473
|
+
children: /* @__PURE__ */ a(le, { variant: "caption", sx: { fontFamily: "monospace", fontSize: 10, color: O ? G.blue : G.dim }, children: p.label })
|
|
21466
21474
|
},
|
|
21467
21475
|
p.id
|
|
21468
21476
|
);
|
|
@@ -21613,7 +21621,7 @@ function H2({ open: t, onClose: e, courtDate: n, memoryCases: r, calEvent: f, al
|
|
|
21613
21621
|
i(se ?? []), v(oe ?? "none");
|
|
21614
21622
|
});
|
|
21615
21623
|
}, [t, n?.CourtDateID]), !n) return null;
|
|
21616
|
-
const z = Rn(n.MuniCode), j = o === "none" ? null : o, p = Df(y),
|
|
21624
|
+
const z = Rn(n.MuniCode), j = o === "none" ? null : o, p = Df(y), O = Df(j ?? []), m = Df(l ?? []), L = Array.from(/* @__PURE__ */ new Set([...p.keys(), ...O.keys(), ...m.keys()])).sort(), q = l === null || o === null, w = B1({ calEvent: f, memoryCases: y, apiCases: l, allDates: u, isVillage: z }), k = q ? [] : L.filter((ae) => Ql.some((se) => d3(p.get(ae), m.get(ae), se))), J = n.CourtDate ? new Date(n.CourtDate).toLocaleDateString() : "—", B = (l ?? []).reduce((ae, se) => ae + (se.negotiations?.length ?? 0), 0), M = (l ?? []).filter((ae) => !!ae.stipTracking).length;
|
|
21617
21625
|
return /* @__PURE__ */ V(Lo, { open: t, onClose: e, maxWidth: "xl", fullWidth: !0, PaperProps: { sx: { background: "#1a1a1a !important", maxHeight: "92vh" } }, children: [
|
|
21618
21626
|
/* @__PURE__ */ V(Zo, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", py: 1 }, children: [
|
|
21619
21627
|
/* @__PURE__ */ V(le, { variant: "body2", sx: { fontFamily: "monospace", fontSize: 13 }, children: [
|
|
@@ -21639,7 +21647,7 @@ function H2({ open: t, onClose: e, courtDate: n, memoryCases: r, calEvent: f, al
|
|
|
21639
21647
|
/* @__PURE__ */ a(Bn, { title: "CASE BUCKET ANALYSIS", children: /* @__PURE__ */ a(f2, { memoryCases: y, calEvent: f, isVillage: z, allDates: u }) }),
|
|
21640
21648
|
/* @__PURE__ */ a(Bn, { title: "UNMAPPED API FIELDS", children: /* @__PURE__ */ a(X2, { courtDate: n, apiCases: l, loading: q }) }),
|
|
21641
21649
|
/* @__PURE__ */ a(Bn, { title: "OBJECT EXPLORER", children: /* @__PURE__ */ a(a2, { courtDate: n, calEvent: f, memCases: y, apiCases: l, loading: q }) }),
|
|
21642
|
-
/* @__PURE__ */ a(Bn, { title: `MEMORY / CACHE / API COMPARISON — ${L.length} unique cases`, children: /* @__PURE__ */ a(d2, { allIndexNumbers: L, memById: p, cacheById:
|
|
21650
|
+
/* @__PURE__ */ a(Bn, { title: `MEMORY / CACHE / API COMPARISON — ${L.length} unique cases`, children: /* @__PURE__ */ a(d2, { allIndexNumbers: L, memById: p, cacheById: O, apiById: m, resolvedCache: j, loading: q }) }),
|
|
21643
21651
|
!q && k.length > 0 && /* @__PURE__ */ a(Bn, { title: `RAW DIFF — ${k.length} case(s) where memory ≠ API`, accent: "#ff6b6b", children: /* @__PURE__ */ a(s2, { diffCases: k, memById: p, apiById: m }) })
|
|
21644
21652
|
] })
|
|
21645
21653
|
] });
|
|
@@ -21958,15 +21966,15 @@ function D2() {
|
|
|
21958
21966
|
const r = [t[2], t[3]], f = [t[4], t[5]];
|
|
21959
21967
|
let u = 5, d = !0, l = !1;
|
|
21960
21968
|
function i(p) {
|
|
21961
|
-
return Object.values(ru[p]).filter((
|
|
21969
|
+
return Object.values(ru[p]).filter((O) => O !== void 0);
|
|
21962
21970
|
}
|
|
21963
21971
|
function o() {
|
|
21964
|
-
const p = [],
|
|
21965
|
-
return
|
|
21972
|
+
const p = [], O = i(e);
|
|
21973
|
+
return O.includes(n) && p.push(St(jr(x2))), O.some((m) => r.includes(m)) && p.push(St(jr(T2))), O.some((m) => f.includes(m)) && p.push(St(jr(L2))), p;
|
|
21966
21974
|
}
|
|
21967
21975
|
function v() {
|
|
21968
21976
|
const p = ru[e];
|
|
21969
|
-
return ["n", "s", "e", "w"].filter((
|
|
21977
|
+
return ["n", "s", "e", "w"].filter((O) => p[O] !== void 0).map((O) => St(` ${bl[O].padEnd(5)} → ${zl[p[O]]}`));
|
|
21970
21978
|
}
|
|
21971
21979
|
function y() {
|
|
21972
21980
|
return [
|
|
@@ -21986,7 +21994,7 @@ function D2() {
|
|
|
21986
21994
|
function z(p) {
|
|
21987
21995
|
if (!d || l)
|
|
21988
21996
|
return { lines: [St('The hunt is over. Type "humphrey" to play again.')], done: !0 };
|
|
21989
|
-
const
|
|
21997
|
+
const O = p.trim().toLowerCase().split(/\s+/), m = O[0], L = O.slice(1);
|
|
21990
21998
|
if (m === "help" || m === "?")
|
|
21991
21999
|
return {
|
|
21992
22000
|
lines: [
|
|
@@ -22106,7 +22114,7 @@ function D2() {
|
|
|
22106
22114
|
}
|
|
22107
22115
|
return { intro: [
|
|
22108
22116
|
...i3.map(
|
|
22109
|
-
(p,
|
|
22117
|
+
(p, O) => ss("system", p.padEnd(N2) + " " + (w2[O] ?? ""))
|
|
22110
22118
|
),
|
|
22111
22119
|
it(""),
|
|
22112
22120
|
...y()
|
|
@@ -22226,7 +22234,7 @@ function J2(t) {
|
|
|
22226
22234
|
] }, r));
|
|
22227
22235
|
}
|
|
22228
22236
|
function g2() {
|
|
22229
|
-
const [t, e] = ie([]), [n, r] = ie(""), [f, u] = ie([]), [d, l] = ie(-1), [i, o] = ie(1), [v, y] = ie(null), [H, z] = ie(0), [j, p] = ie(!0), [
|
|
22237
|
+
const [t, e] = ie([]), [n, r] = ie(""), [f, u] = ie([]), [d, l] = ie(-1), [i, o] = ie(1), [v, y] = ie(null), [H, z] = ie(0), [j, p] = ie(!0), [O, m] = ie(0), [L, q] = ie(0), w = Fe(null), [k, J] = ie(!1), [B, M] = ie([]), ae = Fe(null), se = Fe(null);
|
|
22230
22238
|
He(() => {
|
|
22231
22239
|
se.current?.focus();
|
|
22232
22240
|
}, []), He(() => {
|
|
@@ -22369,9 +22377,9 @@ function g2() {
|
|
|
22369
22377
|
["output", " /_/ \\_\\ court calendar suite · v2.1"],
|
|
22370
22378
|
["system", ""],
|
|
22371
22379
|
["system", ""],
|
|
22372
|
-
["output", " " + M2(
|
|
22380
|
+
["output", " " + M2(O)],
|
|
22373
22381
|
["system", ""],
|
|
22374
|
-
["output", " [" + S2(
|
|
22382
|
+
["output", " [" + S2(O) + "] " + String(O).padStart(3) + "%"],
|
|
22375
22383
|
["system", ""]
|
|
22376
22384
|
].map(([Xe, fe], ne) => /* @__PURE__ */ a("div", { style: { color: Hl[Xe], textShadow: hf[Xe], whiteSpace: "pre" }, children: fe }, ne)) }) }) : k ? B.map((Xe, fe) => /* @__PURE__ */ a(
|
|
22377
22385
|
"div",
|
|
@@ -22481,8 +22489,8 @@ function I2({
|
|
|
22481
22489
|
}) {
|
|
22482
22490
|
const { isAdmin: d, allUsers: l } = Ut(), [i, o] = ie(null), v = Fe(null), [y, H] = ie({
|
|
22483
22491
|
...k7
|
|
22484
|
-
}), [z, j] = ie("dayGridMonth"), [p,
|
|
22485
|
-
|
|
22492
|
+
}), [z, j] = ie("dayGridMonth"), [p, O] = ie(/* @__PURE__ */ new Date()), [m, L] = ie(!1), [q, w] = ie(!1), [k, J] = ie(null), [B, M] = ie([]), [ae, se] = ie(null), [oe, ze] = ie("hidden"), [Xe, fe] = ie(!1), ne = Fe(z), K = Fe(null), W = Fe([]), T = Fe(!1), ee = Gt((he) => {
|
|
22493
|
+
O(he), K.current = he;
|
|
22486
22494
|
}, []), {
|
|
22487
22495
|
modalIsOpen: Z,
|
|
22488
22496
|
setIsOpen: $,
|
|
@@ -22533,7 +22541,7 @@ function I2({
|
|
|
22533
22541
|
const he = W.current.find((yt) => yt.CourtDateID === It);
|
|
22534
22542
|
if (!he) return;
|
|
22535
22543
|
const _e = new Date(he.CourtDate);
|
|
22536
|
-
|
|
22544
|
+
O(_e), i.gotoDate(_e);
|
|
22537
22545
|
}, [It, i]), He(() => {
|
|
22538
22546
|
ln && fe(!0);
|
|
22539
22547
|
}, [ln]);
|
|
@@ -22576,7 +22584,7 @@ function I2({
|
|
|
22576
22584
|
de();
|
|
22577
22585
|
return;
|
|
22578
22586
|
}
|
|
22579
|
-
j("listDay"),
|
|
22587
|
+
j("listDay"), O(he.date), i && i.gotoDate(he.date);
|
|
22580
22588
|
}
|
|
22581
22589
|
const Wt = (he) => {
|
|
22582
22590
|
he && (v.current = he, o(he.getApi()));
|
|
@@ -22586,7 +22594,7 @@ function I2({
|
|
|
22586
22594
|
i && i.changeView("dayGridMonth"), ne.current = z;
|
|
22587
22595
|
return;
|
|
22588
22596
|
}
|
|
22589
|
-
i && i.changeView(z), z === "dayGridMonth" && ne.current !== "dayGridMonth" ? (
|
|
22597
|
+
i && i.changeView(z), z === "dayGridMonth" && ne.current !== "dayGridMonth" ? (O(/* @__PURE__ */ new Date()), i && i.gotoDate(/* @__PURE__ */ new Date())) : i && K.current && (i.gotoDate(K.current), K.current = null), ne.current = z;
|
|
22590
22598
|
}, [z, i]);
|
|
22591
22599
|
function qe() {
|
|
22592
22600
|
L(!0);
|
|
@@ -22625,7 +22633,7 @@ function I2({
|
|
|
22625
22633
|
currentView: z,
|
|
22626
22634
|
setCurrentView: j,
|
|
22627
22635
|
currentDate: p,
|
|
22628
|
-
setCurrentDate:
|
|
22636
|
+
setCurrentDate: O,
|
|
22629
22637
|
isFetchingDates: zt,
|
|
22630
22638
|
isFetchingCases: gt,
|
|
22631
22639
|
lastFetchedAt: On,
|
|
@@ -22741,7 +22749,7 @@ function I2({
|
|
|
22741
22749
|
events: sn,
|
|
22742
22750
|
eventClick: Fn,
|
|
22743
22751
|
dateClick: bt,
|
|
22744
|
-
datesSet: (he) =>
|
|
22752
|
+
datesSet: (he) => O(he.view.currentStart),
|
|
22745
22753
|
eventDidMount: (he) => Ne(he, i)
|
|
22746
22754
|
}
|
|
22747
22755
|
),
|