@propriety/court-calendar 1.0.20 → 1.0.21
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
|
@@ -165,20 +165,20 @@ function wo() {
|
|
|
165
165
|
wo.__r = 0;
|
|
166
166
|
}
|
|
167
167
|
function Cu(t, e, n, r, i, o, a, c, u, h) {
|
|
168
|
-
var f,
|
|
168
|
+
var f, y, b, m, A, S, D, R = r && r.__k || Eu, U = R.length;
|
|
169
169
|
for (n.__k = [], f = 0; f < e.length; f++) if ((m = n.__k[f] = (m = e[f]) == null || typeof m == "boolean" ? null : typeof m == "string" || typeof m == "number" || typeof m == "bigint" ? co(null, m, null, null, m) : Array.isArray(m) ? co(et, { children: m }, null, null, null) : m.__b > 0 ? co(m.type, m.props, m.key, m.ref ? m.ref : null, m.__v) : m) != null) {
|
|
170
170
|
if (m.__ = n, m.__b = n.__b + 1, (b = R[f]) === null || b && m.key == b.key && m.type === b.type) R[f] = void 0;
|
|
171
|
-
else for (
|
|
172
|
-
if ((b = R[
|
|
173
|
-
R[
|
|
171
|
+
else for (y = 0; y < U; y++) {
|
|
172
|
+
if ((b = R[y]) && m.key == b.key && m.type === b.type) {
|
|
173
|
+
R[y] = void 0;
|
|
174
174
|
break;
|
|
175
175
|
}
|
|
176
176
|
b = null;
|
|
177
177
|
}
|
|
178
|
-
ba(t, m, b = b || yo, i, o, a, c, u, h), A = m.__e, (
|
|
178
|
+
ba(t, m, b = b || yo, i, o, a, c, u, h), A = m.__e, (y = m.ref) && b.ref != y && (D || (D = []), b.ref && D.push(b.ref, null, m), D.push(y, m.__c || A, m)), A != null ? (S == null && (S = A), typeof m.type == "function" && m.__k === b.__k ? m.__d = u = Du(m, u, t) : u = _u(t, m, b, R, A, u), typeof n.type == "function" && (n.__d = u)) : u && b.__e == u && u.parentNode != t && (u = Si(b));
|
|
179
179
|
}
|
|
180
180
|
for (n.__e = S, f = U; f--; ) R[f] != null && (typeof n.type == "function" && R[f].__e != null && R[f].__e == n.__d && (n.__d = xu(r).nextSibling), ku(R[f], R[f]));
|
|
181
|
-
if (
|
|
181
|
+
if (D) for (f = 0; f < D.length; f++) Tu(D[f], D[++f], D[++f]);
|
|
182
182
|
}
|
|
183
183
|
function Du(t, e, n) {
|
|
184
184
|
for (var r, i = t.__k, o = 0; i && o < i.length; o++) (r = i[o]) && (r.__ = t, e = typeof r.type == "function" ? Du(r, e, n) : _u(n, r, r, i, r.__e, e));
|
|
@@ -208,31 +208,31 @@ function xu(t) {
|
|
|
208
208
|
return null;
|
|
209
209
|
}
|
|
210
210
|
function ba(t, e, n, r, i, o, a, c, u) {
|
|
211
|
-
var h, f,
|
|
211
|
+
var h, f, y, b, m, A, S, D, R, U, z, q, ie, te, de, ye = e.type;
|
|
212
212
|
if (e.constructor !== void 0) return null;
|
|
213
213
|
n.__h != null && (u = n.__h, c = e.__e = n.__e, e.__h = null, o = [c]), (h = xe.__b) && h(e);
|
|
214
214
|
try {
|
|
215
215
|
e: if (typeof ye == "function") {
|
|
216
|
-
if (
|
|
216
|
+
if (D = e.props, R = (h = ye.contextType) && r[h.__c], U = h ? R ? R.props.value : h.__ : r, n.__c ? S = (f = e.__c = n.__c).__ = f.__E : ("prototype" in ye && ye.prototype.render ? e.__c = f = new ye(D, U) : (e.__c = f = new Qt(D, U), f.constructor = ye, f.render = Ph), R && R.sub(f), f.props = D, f.state || (f.state = {}), f.context = U, f.__n = r, y = f.__d = !0, f.__h = [], f._sb = []), f.__s == null && (f.__s = f.state), ye.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = Jn({}, f.__s)), Jn(f.__s, ye.getDerivedStateFromProps(D, f.__s))), b = f.props, m = f.state, f.__v = e, y) ye.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), f.componentDidMount != null && f.__h.push(f.componentDidMount);
|
|
217
217
|
else {
|
|
218
|
-
if (ye.getDerivedStateFromProps == null &&
|
|
219
|
-
for (e.__v !== n.__v && (f.props =
|
|
218
|
+
if (ye.getDerivedStateFromProps == null && D !== b && f.componentWillReceiveProps != null && f.componentWillReceiveProps(D, U), !f.__e && f.shouldComponentUpdate != null && f.shouldComponentUpdate(D, f.__s, U) === !1 || e.__v === n.__v) {
|
|
219
|
+
for (e.__v !== n.__v && (f.props = D, f.state = f.__s, f.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(Q) {
|
|
220
220
|
Q && (Q.__ = e);
|
|
221
221
|
}), z = 0; z < f._sb.length; z++) f.__h.push(f._sb[z]);
|
|
222
222
|
f._sb = [], f.__h.length && a.push(f);
|
|
223
223
|
break e;
|
|
224
224
|
}
|
|
225
|
-
f.componentWillUpdate != null && f.componentWillUpdate(
|
|
225
|
+
f.componentWillUpdate != null && f.componentWillUpdate(D, f.__s, U), f.componentDidUpdate != null && f.__h.push(function() {
|
|
226
226
|
f.componentDidUpdate(b, m, A);
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
if (f.context = U, f.props =
|
|
229
|
+
if (f.context = U, f.props = D, f.__P = t, q = xe.__r, ie = 0, "prototype" in ye && ye.prototype.render) {
|
|
230
230
|
for (f.state = f.__s, f.__d = !1, q && q(e), h = f.render(f.props, f.state, f.context), te = 0; te < f._sb.length; te++) f.__h.push(f._sb[te]);
|
|
231
231
|
f._sb = [];
|
|
232
232
|
} else do
|
|
233
233
|
f.__d = !1, q && q(e), h = f.render(f.props, f.state, f.context), f.state = f.__s;
|
|
234
234
|
while (f.__d && ++ie < 25);
|
|
235
|
-
f.state = f.__s, f.getChildContext != null && (r = Jn(Jn({}, r), f.getChildContext())),
|
|
235
|
+
f.state = f.__s, f.getChildContext != null && (r = Jn(Jn({}, r), f.getChildContext())), y || f.getSnapshotBeforeUpdate == null || (A = f.getSnapshotBeforeUpdate(b, m)), de = h != null && h.type === et && h.key == null ? h.props.children : h, Cu(t, Array.isArray(de) ? de : [de], e, n, r, i, o, a, c, u), f.base = e.__e, e.__h = null, f.__h.length && a.push(f), S && (f.__E = f.__ = null), f.__e = !1;
|
|
236
236
|
} else o == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = Nh(n.__e, e, n, r, i, o, a, u);
|
|
237
237
|
(h = xe.diffed) && h(e);
|
|
238
238
|
} catch (Q) {
|
|
@@ -251,7 +251,7 @@ function Ru(t, e) {
|
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
function Nh(t, e, n, r, i, o, a, c) {
|
|
254
|
-
var u, h, f,
|
|
254
|
+
var u, h, f, y = n.props, b = e.props, m = e.type, A = 0;
|
|
255
255
|
if (m === "svg" && (i = !0), o != null) {
|
|
256
256
|
for (; A < o.length; A++) if ((u = o[A]) && "setAttribute" in u == !!m && (m ? u.localName === m : u.nodeType === 3)) {
|
|
257
257
|
t = u, o[A] = null;
|
|
@@ -262,15 +262,15 @@ function Nh(t, e, n, r, i, o, a, c) {
|
|
|
262
262
|
if (m === null) return document.createTextNode(b);
|
|
263
263
|
t = i ? document.createElementNS("http://www.w3.org/2000/svg", m) : document.createElement(m, b.is && b), o = null, c = !1;
|
|
264
264
|
}
|
|
265
|
-
if (m === null)
|
|
265
|
+
if (m === null) y === b || c && t.data === b || (t.data = b);
|
|
266
266
|
else {
|
|
267
|
-
if (o = o && jo.call(t.childNodes), h = (
|
|
268
|
-
if (o != null) for (
|
|
267
|
+
if (o = o && jo.call(t.childNodes), h = (y = n.props || yo).dangerouslySetInnerHTML, f = b.dangerouslySetInnerHTML, !c) {
|
|
268
|
+
if (o != null) for (y = {}, A = 0; A < t.attributes.length; A++) y[t.attributes[A].name] = t.attributes[A].value;
|
|
269
269
|
(f || h) && (f && (h && f.__html == h.__html || f.__html === t.innerHTML) || (t.innerHTML = f && f.__html || ""));
|
|
270
270
|
}
|
|
271
|
-
if (Oh(t, b,
|
|
271
|
+
if (Oh(t, b, y, i, c), f) e.__k = [];
|
|
272
272
|
else if (A = e.props.children, Cu(t, Array.isArray(A) ? A : [A], e, n, r, i && m !== "foreignObject", o, a, o ? o[0] : n.__k && Si(n, 0), c), o != null) for (A = o.length; A--; ) o[A] != null && Su(o[A]);
|
|
273
|
-
c || ("value" in b && (A = b.value) !== void 0 && (A !== t.value || m === "progress" && !A || m === "option" && A !==
|
|
273
|
+
c || ("value" in b && (A = b.value) !== void 0 && (A !== t.value || m === "progress" && !A || m === "option" && A !== y.value) && bo(t, "value", A, y.value, !1), "checked" in b && (A = b.checked) !== void 0 && A !== t.checked && bo(t, "checked", A, y.checked, !1));
|
|
274
274
|
}
|
|
275
275
|
return t;
|
|
276
276
|
}
|
|
@@ -1136,8 +1136,8 @@ class Wp {
|
|
|
1136
1136
|
let h = this.format(e, r), f = this.format(n, r);
|
|
1137
1137
|
if (h === f)
|
|
1138
1138
|
return h;
|
|
1139
|
-
let
|
|
1140
|
-
return S ? S.before + m +
|
|
1139
|
+
let y = Qp(o, u), b = dc(y, a, r), m = b(e), A = b(n), S = Zp(h, m, f, A), D = a.separator || i || r.defaultSeparator || "";
|
|
1140
|
+
return S ? S.before + m + D + A + S.after : h + D + f;
|
|
1141
1141
|
}
|
|
1142
1142
|
getSmallestUnit() {
|
|
1143
1143
|
switch (this.smallestUnitNum) {
|
|
@@ -1216,8 +1216,8 @@ function Zp(t, e, n, r) {
|
|
|
1216
1216
|
break;
|
|
1217
1217
|
let f = n.substr(0, h);
|
|
1218
1218
|
u = h + r.length;
|
|
1219
|
-
let
|
|
1220
|
-
if (a === f && c ===
|
|
1219
|
+
let y = n.substr(u);
|
|
1220
|
+
if (a === f && c === y)
|
|
1221
1221
|
return {
|
|
1222
1222
|
before: a,
|
|
1223
1223
|
after: c
|
|
@@ -1945,7 +1945,7 @@ class hg {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
1947
|
const $n = Gu({});
|
|
1948
|
-
function pg(t, e, n, r, i, o, a, c, u, h, f,
|
|
1948
|
+
function pg(t, e, n, r, i, o, a, c, u, h, f, y, b, m) {
|
|
1949
1949
|
return {
|
|
1950
1950
|
dateEnv: i,
|
|
1951
1951
|
nowManager: o,
|
|
@@ -1954,7 +1954,7 @@ function pg(t, e, n, r, i, o, a, c, u, h, f, v, b, m) {
|
|
|
1954
1954
|
emitter: f,
|
|
1955
1955
|
dispatch: u,
|
|
1956
1956
|
getCurrentData: h,
|
|
1957
|
-
calendarApi:
|
|
1957
|
+
calendarApi: y,
|
|
1958
1958
|
viewSpec: t,
|
|
1959
1959
|
viewApi: e,
|
|
1960
1960
|
dateProfileGenerator: r,
|
|
@@ -2023,18 +2023,18 @@ class Ta extends Qe {
|
|
|
2023
2023
|
}
|
|
2024
2024
|
render() {
|
|
2025
2025
|
const { props: e, context: n } = this, { options: r } = n, { customGenerator: i, defaultGenerator: o, renderProps: a } = e, c = Yu(e, [], this.handleEl);
|
|
2026
|
-
let u = !1, h, f = [],
|
|
2026
|
+
let u = !1, h, f = [], y;
|
|
2027
2027
|
if (i != null) {
|
|
2028
2028
|
const b = typeof i == "function" ? i(a, C) : i;
|
|
2029
2029
|
if (b === !0)
|
|
2030
2030
|
u = !0;
|
|
2031
2031
|
else {
|
|
2032
2032
|
const m = b && typeof b == "object";
|
|
2033
|
-
m && "html" in b ? c.dangerouslySetInnerHTML = { __html: b.html } : m && "domNodes" in b ? f = Array.prototype.slice.call(b.domNodes) : (m ? yu(b) : typeof b != "function") ? h = b :
|
|
2033
|
+
m && "html" in b ? c.dangerouslySetInnerHTML = { __html: b.html } : m && "domNodes" in b ? f = Array.prototype.slice.call(b.domNodes) : (m ? yu(b) : typeof b != "function") ? h = b : y = b;
|
|
2034
2034
|
}
|
|
2035
2035
|
} else
|
|
2036
2036
|
u = !Xs(e.generatorName, r);
|
|
2037
|
-
return u && o && (h = o(a)), this.queuedDomNodes = f, this.currentGeneratorMeta =
|
|
2037
|
+
return u && o && (h = o(a)), this.queuedDomNodes = f, this.currentGeneratorMeta = y, C(e.elTag, c, h);
|
|
2038
2038
|
}
|
|
2039
2039
|
componentDidMount() {
|
|
2040
2040
|
this.applyQueueudDomNodes(), this.triggerCustomRendering(!0);
|
|
@@ -2272,8 +2272,8 @@ class Xu {
|
|
|
2272
2272
|
buildRangeFromDuration(e, n, r, i) {
|
|
2273
2273
|
let { dateEnv: o, dateAlignment: a } = this.props, c, u, h;
|
|
2274
2274
|
if (!a) {
|
|
2275
|
-
let { dateIncrement:
|
|
2276
|
-
|
|
2275
|
+
let { dateIncrement: y } = this.props;
|
|
2276
|
+
y && dn(y) < dn(r) ? a = Zs(y).unit : a = i;
|
|
2277
2277
|
}
|
|
2278
2278
|
Vr(r) <= 1 && this.isHiddenDay(c) && (c = this.skipHiddenDays(c, n), c = nt(c));
|
|
2279
2279
|
function f() {
|
|
@@ -2380,8 +2380,8 @@ function _r(t, e, n) {
|
|
|
2380
2380
|
if (h.recurringDef) {
|
|
2381
2381
|
let { duration: f } = h.recurringDef;
|
|
2382
2382
|
f || (f = h.allDay ? o.defaultAllDayEventDuration : o.defaultTimedEventDuration);
|
|
2383
|
-
let
|
|
2384
|
-
for (let b of
|
|
2383
|
+
let y = _g(h, f, e, r, i.recurringTypes);
|
|
2384
|
+
for (let b of y) {
|
|
2385
2385
|
let m = Oa(u, {
|
|
2386
2386
|
start: b,
|
|
2387
2387
|
end: r.add(b, f)
|
|
@@ -2421,9 +2421,9 @@ function ed(t, e, n, r, i = Ma(n), o, a) {
|
|
|
2421
2421
|
duration: f.duration
|
|
2422
2422
|
}, { def: b, instance: null };
|
|
2423
2423
|
}
|
|
2424
|
-
let
|
|
2425
|
-
if (
|
|
2426
|
-
let b = Js(c, u, e ? e.sourceId : "",
|
|
2424
|
+
let y = Rg(c, h, n, r);
|
|
2425
|
+
if (y) {
|
|
2426
|
+
let b = Js(c, u, e ? e.sourceId : "", y.allDay, y.hasEnd, n, o), m = Oa(b.defId, y.range, y.forcedStartTzo, y.forcedEndTzo);
|
|
2427
2427
|
return a && b.publicId && a[b.publicId] && (m.instanceId = a[b.publicId]), { def: b, instance: m };
|
|
2428
2428
|
}
|
|
2429
2429
|
return null;
|
|
@@ -3104,22 +3104,22 @@ function Er(t, e, n) {
|
|
|
3104
3104
|
function ta(t, e, n, r) {
|
|
3105
3105
|
let i = {}, o = {}, a = {}, c = [], u = [], h = To(t.defs, e);
|
|
3106
3106
|
for (let f in t.defs) {
|
|
3107
|
-
let
|
|
3108
|
-
h[
|
|
3107
|
+
let y = t.defs[f];
|
|
3108
|
+
h[y.defId].display === "inverse-background" && (y.groupId ? (i[y.groupId] = [], a[y.groupId] || (a[y.groupId] = y)) : o[f] = []);
|
|
3109
3109
|
}
|
|
3110
3110
|
for (let f in t.instances) {
|
|
3111
|
-
let
|
|
3112
|
-
|
|
3111
|
+
let y = t.instances[f], b = t.defs[y.defId], m = h[b.defId], A = y.range, S = !b.allDay && r ? Ia(A, r) : A, D = ar(S, n);
|
|
3112
|
+
D && (m.display === "inverse-background" ? b.groupId ? i[b.groupId].push(D) : o[y.defId].push(D) : m.display !== "none" && (m.display === "background" ? c : u).push({
|
|
3113
3113
|
def: b,
|
|
3114
3114
|
ui: m,
|
|
3115
|
-
instance:
|
|
3116
|
-
range:
|
|
3117
|
-
isStart: S.start && S.start.valueOf() ===
|
|
3118
|
-
isEnd: S.end && S.end.valueOf() ===
|
|
3115
|
+
instance: y,
|
|
3116
|
+
range: D,
|
|
3117
|
+
isStart: S.start && S.start.valueOf() === D.start.valueOf(),
|
|
3118
|
+
isEnd: S.end && S.end.valueOf() === D.end.valueOf()
|
|
3119
3119
|
}));
|
|
3120
3120
|
}
|
|
3121
3121
|
for (let f in i) {
|
|
3122
|
-
let
|
|
3122
|
+
let y = i[f], b = mc(y, n);
|
|
3123
3123
|
for (let m of b) {
|
|
3124
3124
|
let A = a[f], S = h[A.defId];
|
|
3125
3125
|
c.push({
|
|
@@ -3133,7 +3133,7 @@ function ta(t, e, n, r) {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
}
|
|
3135
3135
|
for (let f in o) {
|
|
3136
|
-
let
|
|
3136
|
+
let y = o[f], b = mc(y, n);
|
|
3137
3137
|
for (let m of b)
|
|
3138
3138
|
c.push({
|
|
3139
3139
|
def: t.defs[f],
|
|
@@ -3191,10 +3191,10 @@ function tm(t, e) {
|
|
|
3191
3191
|
return t.isEnd && t.eventRange.ui.durationEditable;
|
|
3192
3192
|
}
|
|
3193
3193
|
function bi(t, e, n, r, i, o, a) {
|
|
3194
|
-
let { dateEnv: c, options: u } = n, { displayEventTime: h, displayEventEnd: f } = u,
|
|
3194
|
+
let { dateEnv: c, options: u } = n, { displayEventTime: h, displayEventEnd: f } = u, y = t.eventRange.def, b = t.eventRange.instance;
|
|
3195
3195
|
h == null && (h = r !== !1), f == null && (f = i !== !1);
|
|
3196
|
-
let m = b.range.start, A = b.range.end, S = o || t.start || t.eventRange.range.start,
|
|
3197
|
-
return h && !
|
|
3196
|
+
let m = b.range.start, A = b.range.end, S = o || t.start || t.eventRange.range.start, D = a || t.end || t.eventRange.range.end, R = nt(m).valueOf() === nt(S).valueOf(), U = nt(sr(A, -1)).valueOf() === nt(sr(D, -1)).valueOf();
|
|
3197
|
+
return h && !y.allDay && (R || U) ? (S = R ? m : S, D = U ? A : D, f && y.hasEnd ? c.formatRange(S, D, e, {
|
|
3198
3198
|
forcedStartTzo: o ? null : b.forcedStartTzo,
|
|
3199
3199
|
forcedEndTzo: a ? null : b.forcedEndTzo
|
|
3200
3200
|
}) : c.format(S, e, {
|
|
@@ -3767,14 +3767,14 @@ class Em {
|
|
|
3767
3767
|
}
|
|
3768
3768
|
splitProps(e) {
|
|
3769
3769
|
let n = this.getKeyInfo(e), r = this.getKeysForEventDefs(e.eventStore), i = this.splitDateSelection(e.dateSelection), o = this.splitIndividualUi(e.eventUiBases, r), a = this.splitEventStore(e.eventStore, r), c = this.splitEventDrag(e.eventDrag), u = this.splitEventResize(e.eventResize), h = {};
|
|
3770
|
-
this.eventUiBuilders = Vn(n, (f,
|
|
3770
|
+
this.eventUiBuilders = Vn(n, (f, y) => this.eventUiBuilders[y] || _e(Sm));
|
|
3771
3771
|
for (let f in n) {
|
|
3772
|
-
let
|
|
3772
|
+
let y = n[f], b = a[f] || Ps, m = this.eventUiBuilders[f];
|
|
3773
3773
|
h[f] = {
|
|
3774
|
-
businessHours:
|
|
3774
|
+
businessHours: y.businessHours || e.businessHours,
|
|
3775
3775
|
dateSelection: i[f] || null,
|
|
3776
3776
|
eventStore: b,
|
|
3777
|
-
eventUiBases: m(e.eventUiBases[""],
|
|
3777
|
+
eventUiBases: m(e.eventUiBases[""], y.ui, o[f]),
|
|
3778
3778
|
eventSelection: b.instances[e.eventSelection] ? e.eventSelection : "",
|
|
3779
3779
|
eventDrag: c[f] || null,
|
|
3780
3780
|
eventResize: u[f] || null
|
|
@@ -3864,8 +3864,8 @@ function Kr(t, e, n = "day", r = !0) {
|
|
|
3864
3864
|
if (o.navLinks) {
|
|
3865
3865
|
let u = i.toDate(e);
|
|
3866
3866
|
const h = (f) => {
|
|
3867
|
-
let
|
|
3868
|
-
typeof
|
|
3867
|
+
let y = n === "day" ? o.navLinkDayClick : n === "week" ? o.navLinkWeekClick : null;
|
|
3868
|
+
typeof y == "function" ? y.call(a, i.toDate(e), f) : (typeof y == "string" && (n = y), a.zoomTo(e, n));
|
|
3869
3869
|
};
|
|
3870
3870
|
return Object.assign({ title: vi(o.navLinkHint, [c, u], c), "data-navlink": "" }, r ? Fu(h) : { onClick: h });
|
|
3871
3871
|
}
|
|
@@ -4169,20 +4169,20 @@ class vd {
|
|
|
4169
4169
|
does not care about limits
|
|
4170
4170
|
*/
|
|
4171
4171
|
findInsertion(e) {
|
|
4172
|
-
let { levelCoords: n, entriesByLevel: r, strictOrder: i, stackCnts: o } = this, a = n.length, c = 0, u = -1, h = -1, f = null,
|
|
4172
|
+
let { levelCoords: n, entriesByLevel: r, strictOrder: i, stackCnts: o } = this, a = n.length, c = 0, u = -1, h = -1, f = null, y = 0;
|
|
4173
4173
|
for (let A = 0; A < a; A += 1) {
|
|
4174
4174
|
const S = n[A];
|
|
4175
4175
|
if (!i && S >= c + this.getEntryThickness(e))
|
|
4176
4176
|
break;
|
|
4177
|
-
let
|
|
4177
|
+
let D = r[A], R, U = ia(D, e.span.start, ra), z = U[0] + U[1];
|
|
4178
4178
|
for (
|
|
4179
4179
|
;
|
|
4180
4180
|
// loop through entries that horizontally intersect
|
|
4181
|
-
(R =
|
|
4181
|
+
(R = D[z]) && // but not past the whole entry list
|
|
4182
4182
|
R.span.start < e.span.end;
|
|
4183
4183
|
) {
|
|
4184
4184
|
let q = S + this.getEntryThickness(R);
|
|
4185
|
-
q > c && (c = q, f = R, u = A, h = z), q === c && (
|
|
4185
|
+
q > c && (c = q, f = R, u = A, h = z), q === c && (y = Math.max(y, o[Sr(R)] + 1)), z += 1;
|
|
4186
4186
|
}
|
|
4187
4187
|
}
|
|
4188
4188
|
let b = 0;
|
|
@@ -4194,7 +4194,7 @@ class vd {
|
|
|
4194
4194
|
touchingLevel: u,
|
|
4195
4195
|
touchingLateral: h,
|
|
4196
4196
|
touchingEntry: f,
|
|
4197
|
-
stackCnt:
|
|
4197
|
+
stackCnt: y,
|
|
4198
4198
|
levelCoord: c,
|
|
4199
4199
|
level: b,
|
|
4200
4200
|
lateral: m
|
|
@@ -4286,10 +4286,10 @@ function bd(t) {
|
|
|
4286
4286
|
}
|
|
4287
4287
|
class Hm extends Qe {
|
|
4288
4288
|
render() {
|
|
4289
|
-
let { dateEnv: e, options: n, theme: r, viewApi: i } = this.context, { props: o } = this, { date: a, dateProfile: c } = o, u = Fa(a, o.todayRange, null, c), h = [yd].concat(Wo(u, r)), f = e.format(a, o.dayHeaderFormat),
|
|
4289
|
+
let { dateEnv: e, options: n, theme: r, viewApi: i } = this.context, { props: o } = this, { date: a, dateProfile: c } = o, u = Fa(a, o.todayRange, null, c), h = [yd].concat(Wo(u, r)), f = e.format(a, o.dayHeaderFormat), y = !u.isDisabled && o.colCnt > 1 ? Kr(this.context, a) : {}, b = e.toDate(a);
|
|
4290
4290
|
e.namedTimeZoneImpl && (b = sr(b, 36e5));
|
|
4291
4291
|
let m = Object.assign(Object.assign(Object.assign({ date: b, view: i }, o.extraRenderProps), { text: f }), u);
|
|
4292
|
-
return C(Ut, { elTag: "th", elClasses: h, elAttrs: Object.assign({ role: "columnheader", colSpan: o.colSpan, "data-date": u.isDisabled ? void 0 : xi(a) }, o.extraDataAttrs), renderProps: m, generatorName: "dayHeaderContent", customGenerator: n.dayHeaderContent, defaultGenerator: bd, classNameGenerator: n.dayHeaderClassNames, didMount: n.dayHeaderDidMount, willUnmount: n.dayHeaderWillUnmount }, (A) => C("div", { className: "fc-scrollgrid-sync-inner" }, !u.isDisabled && C(A, { elTag: "a", elAttrs:
|
|
4292
|
+
return C(Ut, { elTag: "th", elClasses: h, elAttrs: Object.assign({ role: "columnheader", colSpan: o.colSpan, "data-date": u.isDisabled ? void 0 : xi(a) }, o.extraDataAttrs), renderProps: m, generatorName: "dayHeaderContent", customGenerator: n.dayHeaderContent, defaultGenerator: bd, classNameGenerator: n.dayHeaderClassNames, didMount: n.dayHeaderDidMount, willUnmount: n.dayHeaderWillUnmount }, (A) => C("div", { className: "fc-scrollgrid-sync-inner" }, !u.isDisabled && C(A, { elTag: "a", elAttrs: y, elClasses: [
|
|
4293
4293
|
"fc-col-header-cell-cushion",
|
|
4294
4294
|
o.isSticky && "fc-sticky"
|
|
4295
4295
|
] })));
|
|
@@ -4477,8 +4477,8 @@ class Ad {
|
|
|
4477
4477
|
if (u) {
|
|
4478
4478
|
e = Object.assign(Object.assign({}, e), { range: u });
|
|
4479
4479
|
let h = cm(e, i, o), f = this.sliceRange(e.range, ...a);
|
|
4480
|
-
for (let
|
|
4481
|
-
|
|
4480
|
+
for (let y of f)
|
|
4481
|
+
y.eventRange = h;
|
|
4482
4482
|
return f;
|
|
4483
4483
|
}
|
|
4484
4484
|
return [];
|
|
@@ -4535,16 +4535,16 @@ function Wm(t, e, n = {}, r) {
|
|
|
4535
4535
|
function Vm(t, e, n, r) {
|
|
4536
4536
|
let i = e.getCurrentData(), o = t.eventDrag, a = o.mutatedEvents, c = a.defs, u = a.instances, h = To(c, o.isEvent ? t.eventUiBases : { "": i.selectionConfig });
|
|
4537
4537
|
r && (h = Vn(h, r));
|
|
4538
|
-
let f = Fg(t.eventStore, o.affectedEvents.instances),
|
|
4538
|
+
let f = Fg(t.eventStore, o.affectedEvents.instances), y = f.defs, b = f.instances, m = To(y, t.eventUiBases);
|
|
4539
4539
|
for (let A in u) {
|
|
4540
|
-
let S = u[A],
|
|
4541
|
-
if (!_d(R.constraints,
|
|
4540
|
+
let S = u[A], D = S.range, R = h[S.defId], U = c[S.defId];
|
|
4541
|
+
if (!_d(R.constraints, D, f, t.businessHours, e))
|
|
4542
4542
|
return !1;
|
|
4543
4543
|
let { eventOverlap: z } = e.options, q = typeof z == "function" ? z : null;
|
|
4544
4544
|
for (let te in b) {
|
|
4545
4545
|
let de = b[te];
|
|
4546
|
-
if (ka(
|
|
4547
|
-
new ht(e,
|
|
4546
|
+
if (ka(D, de.range) && (m[de.defId].overlap === !1 && o.isEvent || R.overlap === !1 || q && !q(
|
|
4547
|
+
new ht(e, y[de.defId], de),
|
|
4548
4548
|
// still event
|
|
4549
4549
|
new ht(e, U, S)
|
|
4550
4550
|
)))
|
|
@@ -4563,10 +4563,10 @@ function $m(t, e, n, r) {
|
|
|
4563
4563
|
let i = t.eventStore, o = i.defs, a = i.instances, c = t.dateSelection, u = c.range, { selectionConfig: h } = e.getCurrentData();
|
|
4564
4564
|
if (r && (h = r(h)), !_d(h.constraints, u, i, t.businessHours, e))
|
|
4565
4565
|
return !1;
|
|
4566
|
-
let { selectOverlap: f } = e.options,
|
|
4566
|
+
let { selectOverlap: f } = e.options, y = typeof f == "function" ? f : null;
|
|
4567
4567
|
for (let b in a) {
|
|
4568
4568
|
let m = a[b];
|
|
4569
|
-
if (ka(u, m.range) && (h.overlap === !1 ||
|
|
4569
|
+
if (ka(u, m.range) && (h.overlap === !1 || y && !y(new ht(e, o[m.defId], m), null)))
|
|
4570
4570
|
return !1;
|
|
4571
4571
|
}
|
|
4572
4572
|
for (let b of h.allows) {
|
|
@@ -4765,9 +4765,9 @@ class qa extends Qe {
|
|
|
4765
4765
|
render() {
|
|
4766
4766
|
let { props: e, state: n, context: r } = this, i = e.sections || [], o = this.processCols(e.cols), a = this.renderMicroColGroup(o, n.shrinkWidth), c = tv(e.liquid, r);
|
|
4767
4767
|
e.collapsibleWidth && c.push("fc-scrollgrid-collapsible");
|
|
4768
|
-
let u = i.length, h = 0, f,
|
|
4768
|
+
let u = i.length, h = 0, f, y = [], b = [], m = [];
|
|
4769
4769
|
for (; h < u && (f = i[h]).type === "header"; )
|
|
4770
|
-
|
|
4770
|
+
y.push(this.renderSection(f, a, !0)), h += 1;
|
|
4771
4771
|
for (; h < u && (f = i[h]).type === "body"; )
|
|
4772
4772
|
b.push(this.renderSection(f, a, !1)), h += 1;
|
|
4773
4773
|
for (; h < u && (f = i[h]).type === "footer"; )
|
|
@@ -4778,7 +4778,7 @@ class qa extends Qe {
|
|
|
4778
4778
|
role: "grid",
|
|
4779
4779
|
className: c.join(" "),
|
|
4780
4780
|
style: { height: e.height }
|
|
4781
|
-
}, !!(!A &&
|
|
4781
|
+
}, !!(!A && y.length) && C("thead", S, ...y), !!(!A && b.length) && C("tbody", S, ...b), !!(!A && m.length) && C("tfoot", S, ...m), A && C("tbody", S, ...y, ...b, ...m));
|
|
4782
4782
|
}
|
|
4783
4783
|
renderSection(e, n, r) {
|
|
4784
4784
|
return "outerContent" in e ? C(et, { key: e.key }, e.outerContent) : C("tr", { key: e.key, role: "presentation", className: nv(e, this.props.liquid).join(" ") }, this.renderChunkTd(e, n, e.chunk, r));
|
|
@@ -4786,7 +4786,7 @@ class qa extends Qe {
|
|
|
4786
4786
|
renderChunkTd(e, n, r, i) {
|
|
4787
4787
|
if ("outerContent" in r)
|
|
4788
4788
|
return r.outerContent;
|
|
4789
|
-
let { props: o } = this, { forceYScrollbars: a, scrollerClientWidths: c, scrollerClientHeights: u } = this.state, h = Km(o, e), f = Rd(o, e),
|
|
4789
|
+
let { props: o } = this, { forceYScrollbars: a, scrollerClientWidths: c, scrollerClientHeights: u } = this.state, h = Km(o, e), f = Rd(o, e), y = o.liquid ? a ? "scroll" : h ? "auto" : "hidden" : "visible", b = e.key, m = Qm(e, r, {
|
|
4790
4790
|
tableColGroupNode: n,
|
|
4791
4791
|
tableMinWidth: "",
|
|
4792
4792
|
clientWidth: !o.collapsibleWidth && c[b] !== void 0 ? c[b] : null,
|
|
@@ -4803,7 +4803,7 @@ class qa extends Qe {
|
|
|
4803
4803
|
}, C(
|
|
4804
4804
|
"div",
|
|
4805
4805
|
{ className: `fc-scroller-harness${f ? " fc-scroller-harness-liquid" : ""}` },
|
|
4806
|
-
C(xd, { ref: this.scrollerRefs.createRef(b), elRef: this.scrollerElRefs.createRef(b), overflowY:
|
|
4806
|
+
C(xd, { ref: this.scrollerRefs.createRef(b), elRef: this.scrollerElRefs.createRef(b), overflowY: y, overflowX: o.liquid ? "hidden" : "visible", maxHeight: e.maxHeight, liquid: f, liquidIsAbsolute: !0 }, m)
|
|
4807
4807
|
));
|
|
4808
4808
|
}
|
|
4809
4809
|
_handleScrollerEl(e, n) {
|
|
@@ -5110,7 +5110,7 @@ class Md extends Qe {
|
|
|
5110
5110
|
render() {
|
|
5111
5111
|
let { props: e, state: n } = this;
|
|
5112
5112
|
return C($n.Consumer, null, (r) => {
|
|
5113
|
-
let { viewApi: i, options: o, calendarApi: a } = r, { moreLinkText: c } = o, { moreCnt: u } = e, h = Ac(e), f = typeof c == "function" ? c.call(a, u) : `+${u} ${c}`,
|
|
5113
|
+
let { viewApi: i, options: o, calendarApi: a } = r, { moreLinkText: c } = o, { moreCnt: u } = e, h = Ac(e), f = typeof c == "function" ? c.call(a, u) : `+${u} ${c}`, y = vi(o.moreLinkHint, [u], f), b = {
|
|
5114
5114
|
num: u,
|
|
5115
5115
|
shortText: `+${u}`,
|
|
5116
5116
|
text: f,
|
|
@@ -5122,7 +5122,7 @@ class Md extends Qe {
|
|
|
5122
5122
|
!!e.moreCnt && C(Ut, { elTag: e.elTag || "a", elRef: this.handleLinkEl, elClasses: [
|
|
5123
5123
|
...e.elClasses || [],
|
|
5124
5124
|
"fc-more-link"
|
|
5125
|
-
], elStyle: e.elStyle, elAttrs: Object.assign(Object.assign(Object.assign({}, e.elAttrs), Fu(this.handleClick)), { title:
|
|
5125
|
+
], elStyle: e.elStyle, elAttrs: Object.assign(Object.assign(Object.assign({}, e.elAttrs), Fu(this.handleClick)), { title: y, "aria-expanded": n.isPopoverOpen, "aria-controls": n.isPopoverOpen ? n.popoverId : "" }), renderProps: b, generatorName: "moreLinkContent", customGenerator: o.moreLinkContent, defaultGenerator: e.defaultGenerator || dv, classNameGenerator: o.moreLinkClassNames, didMount: o.moreLinkDidMount, willUnmount: o.moreLinkWillUnmount }, e.children),
|
|
5126
5126
|
n.isPopoverOpen && C(uv, { id: n.popoverId, startDate: h.start, endDate: h.end, dateProfile: e.dateProfile, todayRange: e.todayRange, extraDateSpan: e.extraDateSpan, parentEl: this.parentEl, alignmentEl: e.alignmentElRef ? e.alignmentElRef.current : this.linkEl, alignGridTop: e.alignGridTop, forceTimed: e.forceTimed, onClose: this.handlePopoverClose }, e.popoverContent())
|
|
5127
5127
|
);
|
|
5128
5128
|
});
|
|
@@ -5483,7 +5483,7 @@ function Tv(t, e, n, r, i) {
|
|
|
5483
5483
|
let f = (b) => {
|
|
5484
5484
|
let m = b.buttonText || {}, A = t.defaults.buttonTextKey;
|
|
5485
5485
|
return A != null && m[A] != null ? m[A] : m[t.type] != null ? m[t.type] : m[u] != null ? m[u] : null;
|
|
5486
|
-
},
|
|
5486
|
+
}, y = (b) => {
|
|
5487
5487
|
let m = b.buttonHints || {}, A = t.defaults.buttonTextKey;
|
|
5488
5488
|
return A != null && m[A] != null ? m[A] : m[t.type] != null ? m[t.type] : m[u] != null ? m[u] : null;
|
|
5489
5489
|
};
|
|
@@ -5499,8 +5499,8 @@ function Tv(t, e, n, r, i) {
|
|
|
5499
5499
|
t.overrides.buttonText,
|
|
5500
5500
|
buttonTextDefault: f(i) || t.defaults.buttonText || f(yi) || t.type,
|
|
5501
5501
|
// not DRY
|
|
5502
|
-
buttonTitleOverride:
|
|
5503
|
-
buttonTitleDefault:
|
|
5502
|
+
buttonTitleOverride: y(r) || y(n) || t.overrides.buttonHint,
|
|
5503
|
+
buttonTitleDefault: y(i) || t.defaults.buttonHint || y(yi)
|
|
5504
5504
|
// will eventually fall back to buttonText
|
|
5505
5505
|
};
|
|
5506
5506
|
}
|
|
@@ -5709,14 +5709,14 @@ function Yv(t, e, n, r, i) {
|
|
|
5709
5709
|
function xc(t, e, n, r, i, o) {
|
|
5710
5710
|
let a = {}, c = [], u = !1;
|
|
5711
5711
|
for (let h in t) {
|
|
5712
|
-
let f = t[h],
|
|
5713
|
-
a[h] =
|
|
5712
|
+
let f = t[h], y = Kv(f, e, n, r, i, o);
|
|
5713
|
+
a[h] = y.widgets, c.push(...y.viewsWithButtons), u = u || y.hasTitle;
|
|
5714
5714
|
}
|
|
5715
5715
|
return { sectionWidgets: a, viewsWithButtons: c, hasTitle: u };
|
|
5716
5716
|
}
|
|
5717
5717
|
function Kv(t, e, n, r, i, o) {
|
|
5718
|
-
let a = e.direction === "rtl", c = e.customButtons || {}, u = n.buttonText || {}, h = e.buttonText || {}, f = n.buttonHints || {},
|
|
5719
|
-
return { widgets: b.map((
|
|
5718
|
+
let a = e.direction === "rtl", c = e.customButtons || {}, u = n.buttonText || {}, h = e.buttonText || {}, f = n.buttonHints || {}, y = e.buttonHints || {}, b = t ? t.split(" ") : [], m = [], A = !1;
|
|
5719
|
+
return { widgets: b.map((D) => D.split(",").map((R) => {
|
|
5720
5720
|
if (R === "title")
|
|
5721
5721
|
return A = !0, { buttonName: R };
|
|
5722
5722
|
let U, z, q, ie, te, de;
|
|
@@ -5740,12 +5740,12 @@ function Kv(t, e, n, r, i, o) {
|
|
|
5740
5740
|
o[R]();
|
|
5741
5741
|
}, (te = u[R]) || (ie = r.getIconClass(R, a)) || (te = h[R]), R === "prevYear" || R === "nextYear") {
|
|
5742
5742
|
let ye = R === "prevYear" ? "prev" : "next";
|
|
5743
|
-
de = vi(f[ye] ||
|
|
5743
|
+
de = vi(f[ye] || y[ye], [
|
|
5744
5744
|
h.year || "year",
|
|
5745
5745
|
"year"
|
|
5746
5746
|
], h[R]);
|
|
5747
5747
|
} else
|
|
5748
|
-
de = (ye) => vi(f[R] ||
|
|
5748
|
+
de = (ye) => vi(f[R] || y[R], [
|
|
5749
5749
|
h[ye] || ye,
|
|
5750
5750
|
ye
|
|
5751
5751
|
], h[R]);
|
|
@@ -6047,9 +6047,9 @@ class my {
|
|
|
6047
6047
|
eventDrag: null,
|
|
6048
6048
|
eventResize: null,
|
|
6049
6049
|
selectionConfig: this.buildViewUiProps(a).selectionConfig
|
|
6050
|
-
},
|
|
6050
|
+
}, y = Object.assign(Object.assign({}, a), f);
|
|
6051
6051
|
for (let b of r.pluginHooks.reducers)
|
|
6052
|
-
Object.assign(f, b(null, null,
|
|
6052
|
+
Object.assign(f, b(null, null, y));
|
|
6053
6053
|
Fs(f, a) && this.emitter.trigger("loading", !0), this.state = f, this.updateData(), this.actionRunner.resume();
|
|
6054
6054
|
}
|
|
6055
6055
|
resetOptions(e, n) {
|
|
@@ -6070,15 +6070,15 @@ class my {
|
|
|
6070
6070
|
dispatch: this.dispatch,
|
|
6071
6071
|
emitter: i,
|
|
6072
6072
|
getCurrentData: this.getCurrentData
|
|
6073
|
-
}, { currentDate: f, dateProfile:
|
|
6074
|
-
this.data && this.data.dateProfileGenerator !== u.dateProfileGenerator && (
|
|
6073
|
+
}, { currentDate: f, dateProfile: y } = r;
|
|
6074
|
+
this.data && this.data.dateProfileGenerator !== u.dateProfileGenerator && (y = u.dateProfileGenerator.build(f)), f = Ov(f, e), y = Pv(y, e, f, u.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
|
|
6075
6075
|
e.type === "NEXT" || // "
|
|
6076
|
-
!Fn(
|
|
6077
|
-
let b = jv(r.eventSources, e,
|
|
6076
|
+
!Fn(y.currentRange, f)) && (f = y.currentRange.start);
|
|
6077
|
+
let b = jv(r.eventSources, e, y, h), m = jg(r.eventStore, e, b, y, h), S = Bd(b) && !u.options.progressiveEventRendering && r.renderableEventStore || m, { eventUiSingleBase: D, selectionConfig: R } = this.buildViewUiProps(h), U = this.buildEventUiBySource(b), z = this.buildEventUiBases(S.defs, D, U), q = {
|
|
6078
6078
|
dynamicOptionOverrides: o,
|
|
6079
6079
|
currentViewType: c,
|
|
6080
6080
|
currentDate: f,
|
|
6081
|
-
dateProfile:
|
|
6081
|
+
dateProfile: y,
|
|
6082
6082
|
eventSources: b,
|
|
6083
6083
|
eventStore: m,
|
|
6084
6084
|
renderableEventStore: S,
|
|
@@ -6109,13 +6109,13 @@ class my {
|
|
|
6109
6109
|
return this.stableCalendarOptionsData;
|
|
6110
6110
|
let { refinedOptions: i, pluginHooks: o, localeDefaults: a, availableLocaleData: c, extra: u } = this.processRawCalendarOptions(e, n);
|
|
6111
6111
|
kc(u);
|
|
6112
|
-
let h = this.buildDateEnv(i.timeZone, i.locale, i.weekNumberCalculation, i.firstDay, i.weekText, o, c, i.defaultRangeSeparator), f = this.buildViewSpecs(o.views, this.stableOptionOverrides, this.stableDynamicOptionOverrides, a),
|
|
6112
|
+
let h = this.buildDateEnv(i.timeZone, i.locale, i.weekNumberCalculation, i.firstDay, i.weekText, o, c, i.defaultRangeSeparator), f = this.buildViewSpecs(o.views, this.stableOptionOverrides, this.stableDynamicOptionOverrides, a), y = this.buildTheme(i, o), b = this.parseToolbars(i, this.stableOptionOverrides, y, f, r);
|
|
6113
6113
|
return this.stableCalendarOptionsData = {
|
|
6114
6114
|
calendarOptions: i,
|
|
6115
6115
|
pluginHooks: o,
|
|
6116
6116
|
dateEnv: h,
|
|
6117
6117
|
viewSpecs: f,
|
|
6118
|
-
theme:
|
|
6118
|
+
theme: y,
|
|
6119
6119
|
toolbarConfig: b,
|
|
6120
6120
|
localeDefaults: a,
|
|
6121
6121
|
availableRawLocales: c.map
|
|
@@ -6127,15 +6127,15 @@ class my {
|
|
|
6127
6127
|
yi,
|
|
6128
6128
|
e,
|
|
6129
6129
|
n
|
|
6130
|
-
]), o = this.organizeRawLocales(r), a = o.map, c = this.buildLocale(i || o.defaultCode, a).options, u = this.buildPluginHooks(e.plugins || [], fy), h = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, hc), pc), gc), u.listenerRefiners), u.optionRefiners), f = {},
|
|
6130
|
+
]), o = this.organizeRawLocales(r), a = o.map, c = this.buildLocale(i || o.defaultCode, a).options, u = this.buildPluginHooks(e.plugins || [], fy), h = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, hc), pc), gc), u.listenerRefiners), u.optionRefiners), f = {}, y = Os([
|
|
6131
6131
|
yi,
|
|
6132
6132
|
c,
|
|
6133
6133
|
e,
|
|
6134
6134
|
n
|
|
6135
6135
|
]), b = {}, m = this.currentCalendarOptionsInput, A = this.currentCalendarOptionsRefined, S = !1;
|
|
6136
|
-
for (let
|
|
6137
|
-
this.optionsForRefining.indexOf(
|
|
6138
|
-
return S && (this.currentCalendarOptionsInput =
|
|
6136
|
+
for (let D in y)
|
|
6137
|
+
this.optionsForRefining.indexOf(D) === -1 && (y[D] === m[D] || mr[D] && D in m && mr[D](m[D], y[D])) ? b[D] = A[D] : h[D] ? (b[D] = h[D](y[D]), S = !0) : f[D] = m[D];
|
|
6138
|
+
return S && (this.currentCalendarOptionsInput = y, this.currentCalendarOptionsRefined = b, this.stableOptionOverrides = e, this.stableDynamicOptionOverrides = n), this.optionsForHandling.push(...this.optionsForRefining), this.optionsForRefining = [], {
|
|
6139
6139
|
rawOptions: this.currentCalendarOptionsInput,
|
|
6140
6140
|
refinedOptions: this.currentCalendarOptionsRefined,
|
|
6141
6141
|
pluginHooks: u,
|
|
@@ -6180,10 +6180,10 @@ class my {
|
|
|
6180
6180
|
i,
|
|
6181
6181
|
e.optionOverrides,
|
|
6182
6182
|
o
|
|
6183
|
-
]), c = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, hc), pc), gc), eg), n.listenerRefiners), n.optionRefiners), u = {}, h = this.currentViewOptionsInput, f = this.currentViewOptionsRefined,
|
|
6183
|
+
]), c = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, hc), pc), gc), eg), n.listenerRefiners), n.optionRefiners), u = {}, h = this.currentViewOptionsInput, f = this.currentViewOptionsRefined, y = !1, b = {};
|
|
6184
6184
|
for (let m in a)
|
|
6185
|
-
a[m] === h[m] || mr[m] && mr[m](a[m], h[m]) ? u[m] = f[m] : (a[m] === this.currentCalendarOptionsInput[m] || mr[m] && mr[m](a[m], this.currentCalendarOptionsInput[m]) ? m in this.currentCalendarOptionsRefined && (u[m] = this.currentCalendarOptionsRefined[m]) : c[m] ? u[m] = c[m](a[m]) : b[m] = a[m],
|
|
6186
|
-
return
|
|
6185
|
+
a[m] === h[m] || mr[m] && mr[m](a[m], h[m]) ? u[m] = f[m] : (a[m] === this.currentCalendarOptionsInput[m] || mr[m] && mr[m](a[m], this.currentCalendarOptionsInput[m]) ? m in this.currentCalendarOptionsRefined && (u[m] = this.currentCalendarOptionsRefined[m]) : c[m] ? u[m] = c[m](a[m]) : b[m] = a[m], y = !0);
|
|
6186
|
+
return y && (this.currentViewOptionsInput = a, this.currentViewOptionsRefined = u), {
|
|
6187
6187
|
rawOptions: this.currentViewOptionsInput,
|
|
6188
6188
|
refinedOptions: this.currentViewOptionsRefined,
|
|
6189
6189
|
extra: b
|
|
@@ -6271,12 +6271,12 @@ class Dy extends Qe {
|
|
|
6271
6271
|
renderWidgetGroup(e) {
|
|
6272
6272
|
let { props: n } = this, { theme: r } = this.context, i = [], o = !0;
|
|
6273
6273
|
for (let a of e) {
|
|
6274
|
-
let { buttonName: c, buttonClick: u, buttonText: h, buttonIcon: f, buttonHint:
|
|
6274
|
+
let { buttonName: c, buttonClick: u, buttonText: h, buttonIcon: f, buttonHint: y } = a;
|
|
6275
6275
|
if (c === "title")
|
|
6276
6276
|
o = !1, i.push(C("h2", { className: "fc-toolbar-title", id: n.titleId }, n.title));
|
|
6277
6277
|
else {
|
|
6278
6278
|
let b = c === n.activeButton, m = !n.isTodayEnabled && c === "today" || !n.isPrevEnabled && c === "prev" || !n.isNextEnabled && c === "next", A = [`fc-${c}-button`, r.getClass("button")];
|
|
6279
|
-
b && A.push(r.getClass("buttonActive")), i.push(C("button", { type: "button", title: typeof
|
|
6279
|
+
b && A.push(r.getClass("buttonActive")), i.push(C("button", { type: "button", title: typeof y == "function" ? y(n.navUnit) : y, disabled: m, "aria-pressed": b, className: A.join(" "), onClick: u }, h || (f ? C("span", { className: f, role: "img" }) : "")));
|
|
6280
6280
|
}
|
|
6281
6281
|
}
|
|
6282
6282
|
if (i.length > 1) {
|
|
@@ -6792,11 +6792,11 @@ class Fy extends gn {
|
|
|
6792
6792
|
return C(Ka, { elTag: "td", elRef: this.handleRootEl, elClasses: [
|
|
6793
6793
|
"fc-daygrid-day",
|
|
6794
6794
|
...n.extraClassNames || []
|
|
6795
|
-
], elAttrs: Object.assign(Object.assign(Object.assign({}, n.extraDataAttrs), n.showDayNumber ? { "aria-labelledby": r.dayNumberId } : {}), { role: "gridcell" }), defaultGenerator: zy, date: c, dateProfile: u, todayRange: n.todayRange, showDayNumber: n.showDayNumber, isMonthStart: h, extraRenderProps: n.extraRenderProps }, (f,
|
|
6795
|
+
], elAttrs: Object.assign(Object.assign(Object.assign({}, n.extraDataAttrs), n.showDayNumber ? { "aria-labelledby": r.dayNumberId } : {}), { role: "gridcell" }), defaultGenerator: zy, date: c, dateProfile: u, todayRange: n.todayRange, showDayNumber: n.showDayNumber, isMonthStart: h, extraRenderProps: n.extraRenderProps }, (f, y) => C(
|
|
6796
6796
|
"div",
|
|
6797
6797
|
{ ref: n.innerElRef, className: "fc-daygrid-day-frame fc-scrollgrid-sync-inner", style: { minHeight: n.minHeight } },
|
|
6798
6798
|
n.showWeekNumber && C(Od, { elTag: "a", elClasses: ["fc-daygrid-week-number"], elAttrs: Kr(e, c, "week"), date: c, defaultFormat: Uy }),
|
|
6799
|
-
!
|
|
6799
|
+
!y.isDisabled && (n.showDayNumber || Qa(o) || n.forceDayTop) ? C(
|
|
6800
6800
|
"div",
|
|
6801
6801
|
{ className: "fc-daygrid-day-top" },
|
|
6802
6802
|
C(f, { elTag: "a", elClasses: [
|
|
@@ -6857,7 +6857,7 @@ function Vy(t, e, n, r, i, o, a) {
|
|
|
6857
6857
|
}
|
|
6858
6858
|
}) : h.push(U);
|
|
6859
6859
|
}
|
|
6860
|
-
let f = c.addSegs(u),
|
|
6860
|
+
let f = c.addSegs(u), y = c.toRects(), { singleColPlacements: b, multiColPlacements: m, leftoverMargins: A } = $y(y, t, a), S = [], D = [];
|
|
6861
6861
|
for (let R of h) {
|
|
6862
6862
|
m[R.firstCol].push({
|
|
6863
6863
|
seg: R,
|
|
@@ -6896,13 +6896,13 @@ function Vy(t, e, n, r, i, o, a) {
|
|
|
6896
6896
|
});
|
|
6897
6897
|
}
|
|
6898
6898
|
for (let R = 0; R < a.length; R += 1)
|
|
6899
|
-
|
|
6900
|
-
return { singleColPlacements: b, multiColPlacements: m, moreCnts: S, moreMarginTops:
|
|
6899
|
+
D.push(A[R]);
|
|
6900
|
+
return { singleColPlacements: b, multiColPlacements: m, moreCnts: S, moreMarginTops: D };
|
|
6901
6901
|
}
|
|
6902
6902
|
function $y(t, e, n) {
|
|
6903
6903
|
let r = qy(t, n.length), i = [], o = [], a = [];
|
|
6904
6904
|
for (let c = 0; c < n.length; c += 1) {
|
|
6905
|
-
let u = r[c], h = [], f = 0,
|
|
6905
|
+
let u = r[c], h = [], f = 0, y = 0;
|
|
6906
6906
|
for (let m of u) {
|
|
6907
6907
|
let A = e[m.index];
|
|
6908
6908
|
h.push({
|
|
@@ -6914,25 +6914,25 @@ function $y(t, e, n) {
|
|
|
6914
6914
|
}), f = m.levelCoord + m.thickness;
|
|
6915
6915
|
}
|
|
6916
6916
|
let b = [];
|
|
6917
|
-
f = 0,
|
|
6917
|
+
f = 0, y = 0;
|
|
6918
6918
|
for (let m of u) {
|
|
6919
|
-
let A = e[m.index], S = m.span.end - m.span.start > 1,
|
|
6920
|
-
|
|
6919
|
+
let A = e[m.index], S = m.span.end - m.span.start > 1, D = m.span.start === c;
|
|
6920
|
+
y += m.levelCoord - f, f = m.levelCoord + m.thickness, S ? (y += m.thickness, D && b.push({
|
|
6921
6921
|
seg: $r(A, m.span.start, m.span.end, n),
|
|
6922
6922
|
isVisible: !0,
|
|
6923
6923
|
isAbsolute: !0,
|
|
6924
6924
|
absoluteTop: m.levelCoord,
|
|
6925
6925
|
marginTop: 0
|
|
6926
|
-
})) :
|
|
6926
|
+
})) : D && (b.push({
|
|
6927
6927
|
seg: $r(A, m.span.start, m.span.end, n),
|
|
6928
6928
|
isVisible: !0,
|
|
6929
6929
|
isAbsolute: !1,
|
|
6930
6930
|
absoluteTop: m.levelCoord,
|
|
6931
|
-
marginTop:
|
|
6931
|
+
marginTop: y
|
|
6932
6932
|
// claim the margin
|
|
6933
|
-
}),
|
|
6933
|
+
}), y = 0);
|
|
6934
6934
|
}
|
|
6935
|
-
i.push(h), o.push(b), a.push(
|
|
6935
|
+
i.push(h), o.push(b), a.push(y);
|
|
6936
6936
|
}
|
|
6937
6937
|
return { singleColPlacements: i, multiColPlacements: o, leftoverMargins: a };
|
|
6938
6938
|
}
|
|
@@ -6975,8 +6975,8 @@ class Gy extends vd {
|
|
|
6975
6975
|
const h = Sr(a);
|
|
6976
6976
|
if (!o[h])
|
|
6977
6977
|
if (this.allowReslicing) {
|
|
6978
|
-
const f = Object.assign(Object.assign({}, a), { span: Va(a.span, n.span) }),
|
|
6979
|
-
o[
|
|
6978
|
+
const f = Object.assign(Object.assign({}, a), { span: Va(a.span, n.span) }), y = Sr(f);
|
|
6979
|
+
o[y] = !0, i[c][u] = f, r.push(f), this.splitEntry(a, n, r);
|
|
6980
6980
|
} else
|
|
6981
6981
|
o[h] = !0, r.push(a);
|
|
6982
6982
|
}
|
|
@@ -6994,7 +6994,7 @@ class Xd extends gn {
|
|
|
6994
6994
|
};
|
|
6995
6995
|
}
|
|
6996
6996
|
render() {
|
|
6997
|
-
let { props: e, state: n, context: r } = this, { options: i } = r, o = e.cells.length, a = so(e.businessHourSegs, o), c = so(e.bgEventSegs, o), u = so(this.getHighlightSegs(), o), h = so(this.getMirrorSegs(), o), { singleColPlacements: f, multiColPlacements:
|
|
6997
|
+
let { props: e, state: n, context: r } = this, { options: i } = r, o = e.cells.length, a = so(e.businessHourSegs, o), c = so(e.bgEventSegs, o), u = so(this.getHighlightSegs(), o), h = so(this.getMirrorSegs(), o), { singleColPlacements: f, multiColPlacements: y, moreCnts: b, moreMarginTops: m } = Vy(Ha(e.fgEventSegs, i.eventOrder), e.dayMaxEvents, e.dayMaxEventRows, i.eventOrderStrict, n.segHeights, n.maxContentHeight, e.cells), A = (
|
|
6998
6998
|
// TODO: messy way to compute this
|
|
6999
6999
|
e.eventDrag && e.eventDrag.affectedInstances || e.eventResize && e.eventResize.affectedInstances || {}
|
|
7000
7000
|
);
|
|
@@ -7002,9 +7002,9 @@ class Xd extends gn {
|
|
|
7002
7002
|
"tr",
|
|
7003
7003
|
{ ref: this.rootElRef, role: "row" },
|
|
7004
7004
|
e.renderIntro && e.renderIntro(),
|
|
7005
|
-
e.cells.map((S,
|
|
7006
|
-
let R = this.renderFgSegs(
|
|
7007
|
-
return C(Fy, { key: S.key, elRef: this.cellElRefs.createRef(S.key), innerElRef: this.frameElRefs.createRef(S.key), dateProfile: e.dateProfile, date: S.date, showDayNumber: e.showDayNumbers, showWeekNumber: e.showWeekNumbers &&
|
|
7005
|
+
e.cells.map((S, D) => {
|
|
7006
|
+
let R = this.renderFgSegs(D, e.forPrint ? f[D] : y[D], e.todayRange, A), U = this.renderFgSegs(D, Yy(h[D], y), e.todayRange, {}, !!e.eventDrag, !!e.eventResize, !1);
|
|
7007
|
+
return C(Fy, { key: S.key, elRef: this.cellElRefs.createRef(S.key), innerElRef: this.frameElRefs.createRef(S.key), dateProfile: e.dateProfile, date: S.date, showDayNumber: e.showDayNumbers, showWeekNumber: e.showWeekNumbers && D === 0, forceDayTop: e.showWeekNumbers, todayRange: e.todayRange, eventSelection: e.eventSelection, eventDrag: e.eventDrag, eventResize: e.eventResize, extraRenderProps: S.extraRenderProps, extraDataAttrs: S.extraDataAttrs, extraClassNames: S.extraClassNames, extraDateSpan: S.extraDateSpan, moreCnt: b[D], moreMarginTop: m[D], singlePlacements: f[D], fgContentElRef: this.fgElRefs.createRef(S.key), fgContent: (
|
|
7008
7008
|
// Fragment scopes the keys
|
|
7009
7009
|
C(
|
|
7010
7010
|
et,
|
|
@@ -7017,9 +7017,9 @@ class Xd extends gn {
|
|
|
7017
7017
|
C(
|
|
7018
7018
|
et,
|
|
7019
7019
|
null,
|
|
7020
|
-
this.renderFillSegs(u[
|
|
7021
|
-
this.renderFillSegs(a[
|
|
7022
|
-
this.renderFillSegs(c[
|
|
7020
|
+
this.renderFillSegs(u[D], "highlight"),
|
|
7021
|
+
this.renderFillSegs(a[D], "non-business"),
|
|
7022
|
+
this.renderFillSegs(c[D], "bg-event")
|
|
7023
7023
|
)
|
|
7024
7024
|
), minHeight: e.cellMinHeight });
|
|
7025
7025
|
})
|
|
@@ -7044,17 +7044,17 @@ class Xd extends gn {
|
|
|
7044
7044
|
return e.eventResize && e.eventResize.segs.length ? e.eventResize.segs : [];
|
|
7045
7045
|
}
|
|
7046
7046
|
renderFgSegs(e, n, r, i, o, a, c) {
|
|
7047
|
-
let { context: u } = this, { eventSelection: h } = this.props, { framePositions: f } = this.state,
|
|
7047
|
+
let { context: u } = this, { eventSelection: h } = this.props, { framePositions: f } = this.state, y = this.props.cells.length === 1, b = o || a || c, m = [];
|
|
7048
7048
|
if (f)
|
|
7049
7049
|
for (let A of n) {
|
|
7050
|
-
let { seg: S } = A, { instanceId:
|
|
7050
|
+
let { seg: S } = A, { instanceId: D } = S.eventRange.instance, R = A.isVisible && !i[D], U = A.isAbsolute, z = "", q = "";
|
|
7051
7051
|
U && (u.isRtl ? (q = 0, z = f.lefts[S.lastCol] - f.lefts[S.firstCol]) : (z = 0, q = f.rights[S.firstCol] - f.rights[S.lastCol])), m.push(C("div", { className: "fc-daygrid-event-harness" + (U ? " fc-daygrid-event-harness-abs" : ""), key: Qd(S), ref: b ? null : this.segHarnessRefs.createRef(Zd(S)), style: {
|
|
7052
7052
|
visibility: R ? "" : "hidden",
|
|
7053
7053
|
marginTop: U ? "" : A.marginTop,
|
|
7054
7054
|
top: U ? A.absoluteTop : "",
|
|
7055
7055
|
left: z,
|
|
7056
7056
|
right: q
|
|
7057
|
-
} }, Gd(S) ? C(Kd, Object.assign({ seg: S, isDragging: o, isSelected:
|
|
7057
|
+
} }, Gd(S) ? C(Kd, Object.assign({ seg: S, isDragging: o, isSelected: D === h, defaultDisplayEventEnd: y }, zn(S, r))) : C(Yd, Object.assign({ seg: S, isDragging: o, isResizing: a, isDateSelecting: c, isSelected: D === h, defaultDisplayEventEnd: y }, zn(S, r)))));
|
|
7058
7058
|
}
|
|
7059
7059
|
return m;
|
|
7060
7060
|
}
|
|
@@ -7152,7 +7152,7 @@ class Qy extends gn {
|
|
|
7152
7152
|
}
|
|
7153
7153
|
render() {
|
|
7154
7154
|
let { props: e, context: n } = this, r = e.cells.length, i = this.splitBusinessHourSegs(e.businessHourSegs, r), o = this.splitBgEventSegs(e.bgEventSegs, r), a = this.splitFgEventSegs(e.fgEventSegs, r), c = this.splitDateSelectionSegs(e.dateSelectionSegs, r), u = this.splitEventDrag(e.eventDrag, r), h = this.splitEventResize(e.eventResize, r), f = r >= 7 && e.clientWidth ? e.clientWidth / n.options.aspectRatio / 6 : null;
|
|
7155
|
-
return C(Or, { unit: "day" }, (
|
|
7155
|
+
return C(Or, { unit: "day" }, (y, b) => C(et, null, e.cells.map((m, A) => C(Xd, {
|
|
7156
7156
|
ref: this.rowRefs.createRef(A),
|
|
7157
7157
|
key: m.length ? m[0].date.toISOString() : A,
|
|
7158
7158
|
showDayNumbers: r > 1,
|
|
@@ -7560,11 +7560,11 @@ class pb extends gn {
|
|
|
7560
7560
|
let u = this.context.pluginHooks.scrollGridImpl;
|
|
7561
7561
|
if (!u)
|
|
7562
7562
|
throw new Error("No ScrollGrid implementation");
|
|
7563
|
-
let { context: h, props: f } = this,
|
|
7563
|
+
let { context: h, props: f } = this, y = !f.forPrint && ko(h.options), b = !f.forPrint && Td(h.options), m = [];
|
|
7564
7564
|
e && m.push({
|
|
7565
7565
|
type: "header",
|
|
7566
7566
|
key: "header",
|
|
7567
|
-
isSticky:
|
|
7567
|
+
isSticky: y,
|
|
7568
7568
|
syncRowHeights: !0,
|
|
7569
7569
|
chunks: [
|
|
7570
7570
|
{
|
|
@@ -7634,9 +7634,9 @@ class pb extends gn {
|
|
|
7634
7634
|
C(Or, {
|
|
7635
7635
|
unit: A ? "minute" : "day"
|
|
7636
7636
|
/* hacky */
|
|
7637
|
-
}, (
|
|
7638
|
-
let R = A && c && c.safeComputeTop(
|
|
7639
|
-
return typeof R == "number" ? C(Ya, { elClasses: ["fc-timegrid-now-indicator-arrow"], elStyle: { top: R }, isAxis: !0, date:
|
|
7637
|
+
}, (D) => {
|
|
7638
|
+
let R = A && c && c.safeComputeTop(D);
|
|
7639
|
+
return typeof R == "number" ? C(Ya, { elClasses: ["fc-timegrid-now-indicator-arrow"], elStyle: { top: R }, isAxis: !0, date: D }) : null;
|
|
7640
7640
|
})
|
|
7641
7641
|
)
|
|
7642
7642
|
)
|
|
@@ -7846,7 +7846,7 @@ function _b(t, e, n) {
|
|
|
7846
7846
|
for (; u < c && r[u] < a; u += 1)
|
|
7847
7847
|
;
|
|
7848
7848
|
for (; u < c; u += 1) {
|
|
7849
|
-
let h = i[u], f,
|
|
7849
|
+
let h = i[u], f, y = ia(h, o.span.start, ra), b = y[0] + y[1], m = b;
|
|
7850
7850
|
for (
|
|
7851
7851
|
;
|
|
7852
7852
|
// loop through entries that horizontally intersect
|
|
@@ -7861,20 +7861,20 @@ function _b(t, e, n) {
|
|
|
7861
7861
|
}
|
|
7862
7862
|
function xb(t, e) {
|
|
7863
7863
|
const n = Xa((r, i, o) => Sr(r), (r, i, o) => {
|
|
7864
|
-
let { nextLevelNodes: a, thickness: c } = r, u = c + o, h = c / u, f,
|
|
7864
|
+
let { nextLevelNodes: a, thickness: c } = r, u = c + o, h = c / u, f, y = [];
|
|
7865
7865
|
if (!a.length)
|
|
7866
7866
|
f = e;
|
|
7867
7867
|
else
|
|
7868
7868
|
for (let m of a)
|
|
7869
7869
|
if (f === void 0) {
|
|
7870
7870
|
let A = n(m, i, u);
|
|
7871
|
-
f = A[0],
|
|
7871
|
+
f = A[0], y.push(A[1]);
|
|
7872
7872
|
} else {
|
|
7873
7873
|
let A = n(m, f, 0);
|
|
7874
|
-
|
|
7874
|
+
y.push(A[1]);
|
|
7875
7875
|
}
|
|
7876
7876
|
let b = (f - i) * h;
|
|
7877
|
-
return [f - b, Object.assign(Object.assign({}, r), { thickness: b, nextLevelNodes:
|
|
7877
|
+
return [f - b, Object.assign(Object.assign({}, r), { thickness: b, nextLevelNodes: y })];
|
|
7878
7878
|
});
|
|
7879
7879
|
return t.map((r) => n(r, 0, 0)[1]);
|
|
7880
7880
|
}
|
|
@@ -7991,13 +7991,13 @@ class Ib extends Qe {
|
|
|
7991
7991
|
return c.forPrint ? nf(e, c) : this.renderPositionedFgSegs(e, n, r, i, o, a);
|
|
7992
7992
|
}
|
|
7993
7993
|
renderPositionedFgSegs(e, n, r, i, o, a) {
|
|
7994
|
-
let { eventMaxStack: c, eventShortHeight: u, eventOrderStrict: h, eventMinHeight: f } = this.context.options, { date:
|
|
7994
|
+
let { eventMaxStack: c, eventShortHeight: u, eventOrderStrict: h, eventMinHeight: f } = this.context.options, { date: y, slatCoords: b, eventSelection: m, todayRange: A, nowDate: S } = this.props, D = r || i || o, R = Pc(e, y, b, f), { segPlacements: U, hiddenGroups: z } = Tb(e, R, h, c);
|
|
7995
7995
|
return C(
|
|
7996
7996
|
et,
|
|
7997
7997
|
null,
|
|
7998
7998
|
this.renderHiddenGroups(z, e),
|
|
7999
7999
|
U.map((q) => {
|
|
8000
|
-
let { seg: ie, rect: te } = q, de = ie.eventRange.instance.instanceId, ye =
|
|
8000
|
+
let { seg: ie, rect: te } = q, de = ie.eventRange.instance.instanceId, ye = D || !!(!n[de] && te), Q = zs(te && te.span), be = !D && te ? this.computeSegHStyle(te) : { left: 0, right: 0 }, oe = !!te && te.stackForward > 0, Re = !!te && te.span.end - te.span.start < u;
|
|
8001
8001
|
return C(
|
|
8002
8002
|
"div",
|
|
8003
8003
|
{ className: "fc-timegrid-event-harness" + (oe ? " fc-timegrid-event-harness-inset" : ""), key: a || de, style: Object.assign(Object.assign({ visibility: ye ? "" : "hidden" }, Q), be) },
|
|
@@ -8010,8 +8010,8 @@ class Ib extends Qe {
|
|
|
8010
8010
|
renderHiddenGroups(e, n) {
|
|
8011
8011
|
let { extraDateSpan: r, dateProfile: i, todayRange: o, nowDate: a, eventSelection: c, eventDrag: u, eventResize: h } = this.props;
|
|
8012
8012
|
return C(et, null, e.map((f) => {
|
|
8013
|
-
let
|
|
8014
|
-
return C(wb, { key: Vu(Nd(b)), hiddenSegs: b, top:
|
|
8013
|
+
let y = zs(f.span), b = Ob(f.entries, n);
|
|
8014
|
+
return C(wb, { key: Vu(Nd(b)), hiddenSegs: b, top: y.top, bottom: y.bottom, extraDateSpan: r, dateProfile: i, todayRange: o, nowDate: a, eventSelection: c, eventDrag: u, eventResize: h });
|
|
8015
8015
|
}));
|
|
8016
8016
|
}
|
|
8017
8017
|
renderFillSegs(e, n) {
|
|
@@ -8073,7 +8073,7 @@ class Mb extends Qe {
|
|
|
8073
8073
|
super(...arguments), this.splitFgEventSegs = _e(fi), this.splitBgEventSegs = _e(fi), this.splitBusinessHourSegs = _e(fi), this.splitNowIndicatorSegs = _e(fi), this.splitDateSelectionSegs = _e(fi), this.splitEventDrag = _e(Mc), this.splitEventResize = _e(Mc), this.rootElRef = Wt(), this.cellElRefs = new Un();
|
|
8074
8074
|
}
|
|
8075
8075
|
render() {
|
|
8076
|
-
let { props: e, context: n } = this, r = n.options.nowIndicator && e.slatCoords && e.slatCoords.safeComputeTop(e.nowDate), i = e.cells.length, o = this.splitFgEventSegs(e.fgEventSegs, i), a = this.splitBgEventSegs(e.bgEventSegs, i), c = this.splitBusinessHourSegs(e.businessHourSegs, i), u = this.splitNowIndicatorSegs(e.nowIndicatorSegs, i), h = this.splitDateSelectionSegs(e.dateSelectionSegs, i), f = this.splitEventDrag(e.eventDrag, i),
|
|
8076
|
+
let { props: e, context: n } = this, r = n.options.nowIndicator && e.slatCoords && e.slatCoords.safeComputeTop(e.nowDate), i = e.cells.length, o = this.splitFgEventSegs(e.fgEventSegs, i), a = this.splitBgEventSegs(e.bgEventSegs, i), c = this.splitBusinessHourSegs(e.businessHourSegs, i), u = this.splitNowIndicatorSegs(e.nowIndicatorSegs, i), h = this.splitDateSelectionSegs(e.dateSelectionSegs, i), f = this.splitEventDrag(e.eventDrag, i), y = this.splitEventResize(e.eventResize, i);
|
|
8077
8077
|
return C(
|
|
8078
8078
|
"div",
|
|
8079
8079
|
{ className: "fc-timegrid-cols", ref: this.rootElRef },
|
|
@@ -8099,7 +8099,7 @@ class Mb extends Qe {
|
|
|
8099
8099
|
C("div", { className: "fc-timegrid-now-indicator-container" }, typeof r == "number" && C(Ya, { elClasses: ["fc-timegrid-now-indicator-arrow"], elStyle: { top: r }, isAxis: !0, date: e.nowDate }))
|
|
8100
8100
|
)
|
|
8101
8101
|
),
|
|
8102
|
-
e.cells.map((b, m) => C(Ib, { key: b.key, elRef: this.cellElRefs.createRef(b.key), dateProfile: e.dateProfile, date: b.date, nowDate: e.nowDate, todayRange: e.todayRange, extraRenderProps: b.extraRenderProps, extraDataAttrs: b.extraDataAttrs, extraClassNames: b.extraClassNames, extraDateSpan: b.extraDateSpan, fgEventSegs: o[m], bgEventSegs: a[m], businessHourSegs: c[m], nowIndicatorSegs: u[m], dateSelectionSegs: h[m], eventDrag: f[m], eventResize:
|
|
8102
|
+
e.cells.map((b, m) => C(Ib, { key: b.key, elRef: this.cellElRefs.createRef(b.key), dateProfile: e.dateProfile, date: b.date, nowDate: e.nowDate, todayRange: e.todayRange, extraRenderProps: b.extraRenderProps, extraDataAttrs: b.extraDataAttrs, extraClassNames: b.extraClassNames, extraDateSpan: b.extraDateSpan, fgEventSegs: o[m], bgEventSegs: a[m], businessHourSegs: c[m], nowIndicatorSegs: u[m], dateSelectionSegs: h[m], eventDrag: f[m], eventResize: y[m], slatCoords: e.slatCoords, eventSelection: e.eventSelection, forPrint: e.forPrint }))
|
|
8103
8103
|
)
|
|
8104
8104
|
)
|
|
8105
8105
|
)
|
|
@@ -8174,9 +8174,9 @@ class Pb extends gn {
|
|
|
8174
8174
|
this.scrollResponder.detach();
|
|
8175
8175
|
}
|
|
8176
8176
|
queryHit(e, n) {
|
|
8177
|
-
let { dateEnv: r, options: i } = this.context, { colCoords: o } = this, { dateProfile: a } = this.props, { slatCoords: c } = this.state, { snapDuration: u, snapsPerSlot: h } = this.processSlotOptions(this.props.slotDuration, i.snapDuration), f = o.leftToIndex(e),
|
|
8178
|
-
if (f != null &&
|
|
8179
|
-
let b = this.props.cells[f], m = c.positions.tops[
|
|
8177
|
+
let { dateEnv: r, options: i } = this.context, { colCoords: o } = this, { dateProfile: a } = this.props, { slatCoords: c } = this.state, { snapDuration: u, snapsPerSlot: h } = this.processSlotOptions(this.props.slotDuration, i.snapDuration), f = o.leftToIndex(e), y = c.positions.topToIndex(n);
|
|
8178
|
+
if (f != null && y != null) {
|
|
8179
|
+
let b = this.props.cells[f], m = c.positions.tops[y], A = c.positions.getHeight(y), S = (n - m) / A, D = Math.floor(S * h), R = y * h + D, U = this.props.cells[f].date, z = Qs(a.slotMinTime, Sp(u, R)), q = r.add(U, z), ie = r.add(q, u);
|
|
8180
8180
|
return {
|
|
8181
8181
|
dateProfile: a,
|
|
8182
8182
|
dateSpan: Object.assign({ range: { start: q, end: ie }, allDay: !1 }, b.extraDateSpan),
|
|
@@ -8241,13 +8241,13 @@ const Lc = [
|
|
|
8241
8241
|
function Ub(t, e, n, r, i) {
|
|
8242
8242
|
let o = /* @__PURE__ */ new Date(0), a = t, c = We(0), u = n || Fb(r), h = [];
|
|
8243
8243
|
for (; dn(a) < dn(e); ) {
|
|
8244
|
-
let f = i.add(o, a),
|
|
8244
|
+
let f = i.add(o, a), y = Ca(c, u) !== null;
|
|
8245
8245
|
h.push({
|
|
8246
8246
|
date: f,
|
|
8247
8247
|
time: a,
|
|
8248
8248
|
key: f.toISOString(),
|
|
8249
8249
|
isoTimeStr: Hp(f),
|
|
8250
|
-
isLabeled:
|
|
8250
|
+
isLabeled: y
|
|
8251
8251
|
}), a = Qs(a, r), c = Qs(c, r);
|
|
8252
8252
|
}
|
|
8253
8253
|
return h;
|
|
@@ -8264,8 +8264,8 @@ class zb extends pb {
|
|
|
8264
8264
|
super(...arguments), this.buildTimeColsModel = _e(Wb), this.buildSlatMetas = _e(Ub);
|
|
8265
8265
|
}
|
|
8266
8266
|
render() {
|
|
8267
|
-
let { options: e, dateEnv: n, dateProfileGenerator: r } = this.context, { props: i } = this, { dateProfile: o } = i, a = this.buildTimeColsModel(o, r), c = this.allDaySplitter.splitProps(i), u = this.buildSlatMetas(o.slotMinTime, o.slotMaxTime, e.slotLabelInterval, e.slotDuration, n), { dayMinWidth: h } = e, f = !h,
|
|
8268
|
-
return
|
|
8267
|
+
let { options: e, dateEnv: n, dateProfileGenerator: r } = this.context, { props: i } = this, { dateProfile: o } = i, a = this.buildTimeColsModel(o, r), c = this.allDaySplitter.splitProps(i), u = this.buildSlatMetas(o.slotMinTime, o.slotMaxTime, e.slotLabelInterval, e.slotDuration, n), { dayMinWidth: h } = e, f = !h, y = h, b = e.dayHeaders && C(wd, { dates: a.headerDates, dateProfile: o, datesRepDistinctDays: !0, renderIntro: f ? this.renderHeadAxis : null }), m = e.allDaySlot !== !1 && ((S) => C(Jd, Object.assign({}, c.allDay, { dateProfile: o, dayTableModel: a, nextDayThreshold: e.nextDayThreshold, tableMinWidth: S.tableMinWidth, colGroupNode: S.tableColGroupNode, renderRowIntro: f ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: S.clientWidth, clientHeight: S.clientHeight, forPrint: i.forPrint }, this.getAllDayMaxEventProps()))), A = (S) => C(Hb, Object.assign({}, c.timed, { dayTableModel: a, dateProfile: o, axis: f, slotDuration: e.slotDuration, slatMetas: u, forPrint: i.forPrint, tableColGroupNode: S.tableColGroupNode, tableMinWidth: S.tableMinWidth, clientWidth: S.clientWidth, clientHeight: S.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: S.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
|
|
8268
|
+
return y ? this.renderHScrollLayout(b, m, A, a.colCnt, h, u, this.state.slatCoords) : this.renderSimpleLayout(b, m, A);
|
|
8269
8269
|
}
|
|
8270
8270
|
}
|
|
8271
8271
|
function Wb(t, e) {
|
|
@@ -8604,8 +8604,8 @@ class Jb {
|
|
|
8604
8604
|
computeBestEdge(e, n) {
|
|
8605
8605
|
let { edgeThreshold: r } = this, i = null, o = this.scrollCaches || [];
|
|
8606
8606
|
for (let a of o) {
|
|
8607
|
-
let c = a.clientRect, u = e - c.left, h = c.right - e, f = n - c.top,
|
|
8608
|
-
u >= 0 && h >= 0 && f >= 0 &&
|
|
8607
|
+
let c = a.clientRect, u = e - c.left, h = c.right - e, f = n - c.top, y = c.bottom - n;
|
|
8608
|
+
u >= 0 && h >= 0 && f >= 0 && y >= 0 && (f <= r && this.everMovedUp && a.canScrollUp() && (!i || i.distance > f) && (i = { scrollCache: a, name: "top", distance: f }), y <= r && this.everMovedDown && a.canScrollDown() && (!i || i.distance > y) && (i = { scrollCache: a, name: "bottom", distance: y }), u <= r && this.everMovedLeft && a.canScrollLeft() && (!i || i.distance > u) && (i = { scrollCache: a, name: "left", distance: u }), h <= r && this.everMovedRight && a.canScrollRight() && (!i || i.distance > h) && (i = { scrollCache: a, name: "right", distance: h }));
|
|
8609
8609
|
}
|
|
8610
8610
|
return i;
|
|
8611
8611
|
}
|
|
@@ -8756,21 +8756,21 @@ class $o {
|
|
|
8756
8756
|
let c = r[a].component, u = i[a];
|
|
8757
8757
|
if (u && // wasn't destroyed mid-drag
|
|
8758
8758
|
u.isWithinClipping(e, n)) {
|
|
8759
|
-
let h = u.computeLeft(), f = u.computeTop(),
|
|
8759
|
+
let h = u.computeLeft(), f = u.computeTop(), y = e - h, b = n - f, { origRect: m } = u, A = m.right - m.left, S = m.bottom - m.top;
|
|
8760
8760
|
if (
|
|
8761
8761
|
// must be within the element's bounds
|
|
8762
|
-
|
|
8762
|
+
y >= 0 && y < A && b >= 0 && b < S
|
|
8763
8763
|
) {
|
|
8764
|
-
let
|
|
8765
|
-
|
|
8766
|
-
Uo(
|
|
8764
|
+
let D = c.queryHit(y, b, A, S);
|
|
8765
|
+
D && // make sure the hit is within activeRange, meaning it's not a dead cell
|
|
8766
|
+
Uo(D.dateProfile.activeRange, D.dateSpan.range) && // Ensure the component we are querying for the hit is accessibly my the pointer
|
|
8767
8767
|
// Prevents obscured calendars (ex: under a modal dialog) from accepting hit
|
|
8768
8768
|
// https://github.com/fullcalendar/fullcalendar/issues/5026
|
|
8769
8769
|
(this.disablePointCheck || u.el.contains(u.el.getRootNode().elementFromPoint(
|
|
8770
8770
|
// add-back origins to get coordinate relative to top-left of window viewport
|
|
8771
|
-
|
|
8771
|
+
y + h - window.scrollX,
|
|
8772
8772
|
b + f - window.scrollY
|
|
8773
|
-
))) && (!o ||
|
|
8773
|
+
))) && (!o || D.layer > o.layer) && (D.componentId = a, D.context = c.context, D.rect.left += h, D.rect.right += h, D.rect.top += f, D.rect.bottom += f, o = D);
|
|
8774
8774
|
}
|
|
8775
8775
|
}
|
|
8776
8776
|
}
|
|
@@ -8825,8 +8825,8 @@ class iw extends Jr {
|
|
|
8825
8825
|
}, this.handleHitUpdate = (a, c) => {
|
|
8826
8826
|
let { context: u } = this.component, h = null, f = !1;
|
|
8827
8827
|
if (a) {
|
|
8828
|
-
let
|
|
8829
|
-
a.componentId ===
|
|
8828
|
+
let y = this.hitDragging.initialHit;
|
|
8829
|
+
a.componentId === y.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(y, a) || (h = sw(y, a, u.pluginHooks.dateSelectionTransformers)), (!h || !zm(h, a.dateProfile, u)) && (f = !0, h = null);
|
|
8830
8830
|
}
|
|
8831
8831
|
h ? u.dispatch({ type: "SELECT_DATES", selection: h }) : c || u.dispatch({ type: "UNSELECT_DATES" }), f ? Sa() : Aa(), c || (this.dragSelection = h);
|
|
8832
8832
|
}, this.handlePointerUp = (a) => {
|
|
@@ -8865,13 +8865,13 @@ function sw(t, e, n) {
|
|
|
8865
8865
|
class ki extends Jr {
|
|
8866
8866
|
constructor(e) {
|
|
8867
8867
|
super(e), this.subjectEl = null, this.subjectSeg = null, this.isDragging = !1, this.eventRange = null, this.relevantEvents = null, this.receivingContext = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (a) => {
|
|
8868
|
-
let c = a.origEvent.target, { component: u, dragging: h } = this, { mirror: f } = h, { options:
|
|
8868
|
+
let c = a.origEvent.target, { component: u, dragging: h } = this, { mirror: f } = h, { options: y } = u.context, b = u.context;
|
|
8869
8869
|
this.subjectEl = a.subjectEl;
|
|
8870
8870
|
let m = this.subjectSeg = Yr(a.subjectEl), S = (this.eventRange = m.eventRange).instance.instanceId;
|
|
8871
|
-
this.relevantEvents = Na(b.getCurrentData().eventStore, S), h.minDistance = a.isTouch ? 0 :
|
|
8872
|
-
a.isTouch && S !== u.props.eventSelection ? lw(u) : null,
|
|
8873
|
-
let
|
|
8874
|
-
h.setIgnoreMove(!
|
|
8871
|
+
this.relevantEvents = Na(b.getCurrentData().eventStore, S), h.minDistance = a.isTouch ? 0 : y.eventDragMinDistance, h.delay = // only do a touch delay if touch and this event hasn't been selected yet
|
|
8872
|
+
a.isTouch && S !== u.props.eventSelection ? lw(u) : null, y.fixedMirrorParent ? f.parentNode = y.fixedMirrorParent : f.parentNode = jt(c, ".fc"), f.revertDuration = y.dragRevertDuration;
|
|
8873
|
+
let D = u.isValidSegDownEl(c) && !jt(c, ".fc-event-resizer");
|
|
8874
|
+
h.setIgnoreMove(!D), this.isDragging = D && a.subjectEl.classList.contains("fc-event-draggable");
|
|
8875
8875
|
}, this.handleDragStart = (a) => {
|
|
8876
8876
|
let c = this.component.context, u = this.eventRange, h = u.instance.instanceId;
|
|
8877
8877
|
a.isTouch ? h !== this.component.props.eventSelection && c.dispatch({ type: "SELECT_EVENT", eventInstanceId: h }) : c.dispatch({ type: "UNSELECT_EVENT" }), this.isDragging && (c.calendarApi.unselect(a), c.emitter.trigger("eventDragStart", {
|
|
@@ -8883,23 +8883,23 @@ class ki extends Jr {
|
|
|
8883
8883
|
}, this.handleHitUpdate = (a, c) => {
|
|
8884
8884
|
if (!this.isDragging)
|
|
8885
8885
|
return;
|
|
8886
|
-
let u = this.relevantEvents, h = this.hitDragging.initialHit, f = this.component.context,
|
|
8886
|
+
let u = this.relevantEvents, h = this.hitDragging.initialHit, f = this.component.context, y = null, b = null, m = null, A = !1, S = {
|
|
8887
8887
|
affectedEvents: u,
|
|
8888
8888
|
mutatedEvents: Zt(),
|
|
8889
8889
|
isEvent: !0
|
|
8890
8890
|
};
|
|
8891
8891
|
if (a) {
|
|
8892
|
-
|
|
8893
|
-
let
|
|
8894
|
-
f ===
|
|
8892
|
+
y = a.context;
|
|
8893
|
+
let D = y.options;
|
|
8894
|
+
f === y || D.editable && D.droppable ? (b = aw(h, a, this.eventRange.instance.range.start, y.getCurrentData().pluginHooks.eventDragMutationMassagers), b && (m = ja(u, y.getCurrentData().eventUiBases, b, y), S.mutatedEvents = m, Cd(S, a.dateProfile, y) || (A = !0, b = null, m = null, S.mutatedEvents = Zt()))) : y = null;
|
|
8895
8895
|
}
|
|
8896
|
-
this.displayDrag(
|
|
8897
|
-
qo(h, a) && (b = null), this.dragging.setMirrorNeedsRevert(!b), this.dragging.setMirrorIsVisible(!a || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext =
|
|
8896
|
+
this.displayDrag(y, S), A ? Sa() : Aa(), c || (f === y && // TODO: write test for this
|
|
8897
|
+
qo(h, a) && (b = null), this.dragging.setMirrorNeedsRevert(!b), this.dragging.setMirrorIsVisible(!a || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = y, this.validMutation = b, this.mutatedRelevantEvents = m);
|
|
8898
8898
|
}, this.handlePointerUp = () => {
|
|
8899
8899
|
this.isDragging || this.cleanup();
|
|
8900
8900
|
}, this.handleDragEnd = (a) => {
|
|
8901
8901
|
if (this.isDragging) {
|
|
8902
|
-
let c = this.component.context, u = c.viewApi, { receivingContext: h, validMutation: f } = this,
|
|
8902
|
+
let c = this.component.context, u = c.viewApi, { receivingContext: h, validMutation: f } = this, y = this.eventRange.def, b = this.eventRange.instance, m = new ht(c, y, b), A = this.relevantEvents, S = this.mutatedRelevantEvents, { finalHit: D } = this.hitDragging;
|
|
8903
8903
|
if (this.clearDrag(), c.emitter.trigger("eventDragStop", {
|
|
8904
8904
|
el: this.subjectEl,
|
|
8905
8905
|
event: m,
|
|
@@ -8907,7 +8907,7 @@ class ki extends Jr {
|
|
|
8907
8907
|
view: u
|
|
8908
8908
|
}), f) {
|
|
8909
8909
|
if (h === c) {
|
|
8910
|
-
let R = new ht(c, S.defs[
|
|
8910
|
+
let R = new ht(c, S.defs[y.defId], b ? S.instances[b.instanceId] : null);
|
|
8911
8911
|
c.dispatch({
|
|
8912
8912
|
type: "MERGE_EVENTS",
|
|
8913
8913
|
eventStore: S
|
|
@@ -8942,7 +8942,7 @@ class ki extends Jr {
|
|
|
8942
8942
|
type: "REMOVE_EVENTS",
|
|
8943
8943
|
eventStore: A
|
|
8944
8944
|
}), c.emitter.trigger("eventRemove", R);
|
|
8945
|
-
let U = S.defs[
|
|
8945
|
+
let U = S.defs[y.defId], z = S.instances[b.instanceId], q = new ht(h, U, z);
|
|
8946
8946
|
h.dispatch({
|
|
8947
8947
|
type: "MERGE_EVENTS",
|
|
8948
8948
|
eventStore: S
|
|
@@ -8960,7 +8960,7 @@ class ki extends Jr {
|
|
|
8960
8960
|
h.emitter.trigger("eventAdd", ie), a.isTouch && h.dispatch({
|
|
8961
8961
|
type: "SELECT_EVENT",
|
|
8962
8962
|
eventInstanceId: b.instanceId
|
|
8963
|
-
}), h.emitter.trigger("drop", Object.assign(Object.assign({}, lf(
|
|
8963
|
+
}), h.emitter.trigger("drop", Object.assign(Object.assign({}, lf(D.dateSpan, h)), { draggedEl: a.subjectEl, jsEvent: a.origEvent, view: D.context.viewApi })), h.emitter.trigger("eventReceive", Object.assign(Object.assign({}, ie), { draggedEl: a.subjectEl, view: D.context.viewApi }));
|
|
8964
8964
|
}
|
|
8965
8965
|
} else
|
|
8966
8966
|
c.emitter.trigger("_noEventDrop");
|
|
@@ -9005,8 +9005,8 @@ function aw(t, e, n, r) {
|
|
|
9005
9005
|
datesDelta: h,
|
|
9006
9006
|
standardProps: u
|
|
9007
9007
|
};
|
|
9008
|
-
for (let
|
|
9009
|
-
|
|
9008
|
+
for (let y of r)
|
|
9009
|
+
y(f, t, e);
|
|
9010
9010
|
return f;
|
|
9011
9011
|
}
|
|
9012
9012
|
function lw(t) {
|
|
@@ -9029,32 +9029,32 @@ class cw extends Jr {
|
|
|
9029
9029
|
view: a.viewApi
|
|
9030
9030
|
});
|
|
9031
9031
|
}, this.handleHitUpdate = (o, a, c) => {
|
|
9032
|
-
let { context: u } = this.component, h = this.relevantEvents, f = this.hitDragging.initialHit,
|
|
9032
|
+
let { context: u } = this.component, h = this.relevantEvents, f = this.hitDragging.initialHit, y = this.eventRange.instance, b = null, m = null, A = !1, S = {
|
|
9033
9033
|
affectedEvents: h,
|
|
9034
9034
|
mutatedEvents: Zt(),
|
|
9035
9035
|
isEvent: !0
|
|
9036
9036
|
};
|
|
9037
|
-
o && (o.componentId === f.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(f, o) || (b = uw(f, o, c.subjectEl.classList.contains("fc-event-resizer-start"),
|
|
9037
|
+
o && (o.componentId === f.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(f, o) || (b = uw(f, o, c.subjectEl.classList.contains("fc-event-resizer-start"), y.range))), b && (m = ja(h, u.getCurrentData().eventUiBases, b, u), S.mutatedEvents = m, Cd(S, o.dateProfile, u) || (A = !0, b = null, m = null, S.mutatedEvents = null)), m ? u.dispatch({
|
|
9038
9038
|
type: "SET_EVENT_RESIZE",
|
|
9039
9039
|
state: S
|
|
9040
9040
|
}) : u.dispatch({ type: "UNSET_EVENT_RESIZE" }), A ? Sa() : Aa(), a || (b && qo(f, o) && (b = null), this.validMutation = b, this.mutatedRelevantEvents = m);
|
|
9041
9041
|
}, this.handleDragEnd = (o) => {
|
|
9042
|
-
let { context: a } = this.component, c = this.eventRange.def, u = this.eventRange.instance, h = new ht(a, c, u), f = this.relevantEvents,
|
|
9042
|
+
let { context: a } = this.component, c = this.eventRange.def, u = this.eventRange.instance, h = new ht(a, c, u), f = this.relevantEvents, y = this.mutatedRelevantEvents;
|
|
9043
9043
|
if (a.emitter.trigger("eventResizeStop", {
|
|
9044
9044
|
el: this.draggingSegEl,
|
|
9045
9045
|
event: h,
|
|
9046
9046
|
jsEvent: o.origEvent,
|
|
9047
9047
|
view: a.viewApi
|
|
9048
9048
|
}), this.validMutation) {
|
|
9049
|
-
let b = new ht(a,
|
|
9049
|
+
let b = new ht(a, y.defs[c.defId], u ? y.instances[u.instanceId] : null);
|
|
9050
9050
|
a.dispatch({
|
|
9051
9051
|
type: "MERGE_EVENTS",
|
|
9052
|
-
eventStore:
|
|
9052
|
+
eventStore: y
|
|
9053
9053
|
});
|
|
9054
9054
|
let m = {
|
|
9055
9055
|
oldEvent: h,
|
|
9056
9056
|
event: b,
|
|
9057
|
-
relatedEvents: Er(
|
|
9057
|
+
relatedEvents: Er(y, a, u),
|
|
9058
9058
|
revert() {
|
|
9059
9059
|
a.dispatch({
|
|
9060
9060
|
type: "MERGE_EVENTS",
|
|
@@ -9146,12 +9146,12 @@ class gw extends Qe {
|
|
|
9146
9146
|
};
|
|
9147
9147
|
}
|
|
9148
9148
|
render() {
|
|
9149
|
-
let { theme: e, dateEnv: n, options: r, viewApi: i } = this.context, { cellId: o, dayDate: a, todayRange: c } = this.props, { textId: u } = this.state, h = Fa(a, c), f = r.listDayFormat ? n.format(a, r.listDayFormat) : "",
|
|
9149
|
+
let { theme: e, dateEnv: n, options: r, viewApi: i } = this.context, { cellId: o, dayDate: a, todayRange: c } = this.props, { textId: u } = this.state, h = Fa(a, c), f = r.listDayFormat ? n.format(a, r.listDayFormat) : "", y = r.listDaySideFormat ? n.format(a, r.listDaySideFormat) : "", b = Object.assign({
|
|
9150
9150
|
date: n.toDate(a),
|
|
9151
9151
|
view: i,
|
|
9152
9152
|
textId: u,
|
|
9153
9153
|
text: f,
|
|
9154
|
-
sideText:
|
|
9154
|
+
sideText: y,
|
|
9155
9155
|
navLinkAttrs: Kr(this.context, a),
|
|
9156
9156
|
sideNavLinkAttrs: Kr(this.context, a, "day", !1)
|
|
9157
9157
|
}, h);
|
|
@@ -9266,14 +9266,14 @@ class Sw extends gn {
|
|
|
9266
9266
|
renderSegList(e, n) {
|
|
9267
9267
|
let { theme: r, options: i } = this.context, { timeHeaderId: o, eventHeaderId: a, dateHeaderIdRoot: c } = this.state, u = Dw(e);
|
|
9268
9268
|
return C(Or, { unit: "day" }, (h, f) => {
|
|
9269
|
-
let
|
|
9269
|
+
let y = [];
|
|
9270
9270
|
for (let b = 0; b < u.length; b += 1) {
|
|
9271
9271
|
let m = u[b];
|
|
9272
9272
|
if (m) {
|
|
9273
9273
|
let A = xi(n[b]), S = c + "-" + A;
|
|
9274
|
-
|
|
9275
|
-
for (let
|
|
9276
|
-
|
|
9274
|
+
y.push(C(gw, { key: A, cellId: S, dayDate: n[b], todayRange: f })), m = Ha(m, i.eventOrder);
|
|
9275
|
+
for (let D of m)
|
|
9276
|
+
y.push(C(yw, Object.assign({ key: A + ":" + D.eventRange.instance.instanceId, seg: D, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, timeHeaderId: o, eventHeaderId: a, dateHeaderId: S }, zn(D, f, h))));
|
|
9277
9277
|
}
|
|
9278
9278
|
}
|
|
9279
9279
|
return C(
|
|
@@ -9290,7 +9290,7 @@ class Sw extends gn {
|
|
|
9290
9290
|
C("th", { scope: "col", id: a }, i.eventHint)
|
|
9291
9291
|
)
|
|
9292
9292
|
),
|
|
9293
|
-
C("tbody", null,
|
|
9293
|
+
C("tbody", null, y)
|
|
9294
9294
|
);
|
|
9295
9295
|
});
|
|
9296
9296
|
}
|
|
@@ -9531,37 +9531,37 @@ function Lw({
|
|
|
9531
9531
|
activeUser: e,
|
|
9532
9532
|
children: n
|
|
9533
9533
|
}) {
|
|
9534
|
-
const [r, i] = we({}), [o, a] = we({}), [c, u] = we({}), [h, f] = we(!0), [
|
|
9534
|
+
const [r, i] = we({}), [o, a] = we({}), [c, u] = we({}), [h, f] = we(!0), [y, b] = we(!1);
|
|
9535
9535
|
Ee(() => {
|
|
9536
|
-
let
|
|
9536
|
+
let D = !1;
|
|
9537
9537
|
return f(!0), Promise.all([Ow(t), Mw(t), Pw(t)]).then(
|
|
9538
9538
|
([R, U, z]) => {
|
|
9539
|
-
|
|
9539
|
+
D || (i(R), a(U), u(z), f(!1));
|
|
9540
9540
|
}
|
|
9541
9541
|
), () => {
|
|
9542
|
-
|
|
9542
|
+
D = !0;
|
|
9543
9543
|
};
|
|
9544
9544
|
}, [t]), Ee(() => {
|
|
9545
9545
|
if (!r || Object.keys(r).length === 0 || !e || e < 0) return;
|
|
9546
|
-
const
|
|
9546
|
+
const D = r[e];
|
|
9547
9547
|
async function R() {
|
|
9548
|
-
const U = await Nw(
|
|
9548
|
+
const U = await Nw(D, t);
|
|
9549
9549
|
b(U);
|
|
9550
9550
|
}
|
|
9551
9551
|
R();
|
|
9552
9552
|
}, [e, r, t]);
|
|
9553
9553
|
const m = Bn(
|
|
9554
|
-
(
|
|
9555
|
-
|
|
9556
|
-
const R = c[
|
|
9557
|
-
return R ?
|
|
9554
|
+
(D) => {
|
|
9555
|
+
D.length < 5 && (D = D + "00");
|
|
9556
|
+
const R = c[D];
|
|
9557
|
+
return R ? D.slice(-2) !== "00" ? R.Village : R.Township : D;
|
|
9558
9558
|
},
|
|
9559
9559
|
[c]
|
|
9560
9560
|
), A = Bn(
|
|
9561
|
-
(
|
|
9562
|
-
|
|
9563
|
-
const R = c[
|
|
9564
|
-
return R ? R.County :
|
|
9561
|
+
(D) => {
|
|
9562
|
+
D.length < 5 && (D = D + "00");
|
|
9563
|
+
const R = c[D];
|
|
9564
|
+
return R ? R.County : D;
|
|
9565
9565
|
},
|
|
9566
9566
|
[c]
|
|
9567
9567
|
), S = un(
|
|
@@ -9572,9 +9572,9 @@ function Lw({
|
|
|
9572
9572
|
getTownshipName: m,
|
|
9573
9573
|
getCountyName: A,
|
|
9574
9574
|
isLoading: h,
|
|
9575
|
-
isAdmin:
|
|
9575
|
+
isAdmin: y
|
|
9576
9576
|
}),
|
|
9577
|
-
[r, o, c, m, A, h,
|
|
9577
|
+
[r, o, c, m, A, h, y]
|
|
9578
9578
|
);
|
|
9579
9579
|
return /* @__PURE__ */ w(cf.Provider, { value: S, children: n });
|
|
9580
9580
|
}
|
|
@@ -9896,10 +9896,10 @@ function df({
|
|
|
9896
9896
|
const { allMuniNames: i } = mn(), [o, a] = we([]), [c, u] = we(null);
|
|
9897
9897
|
Ee(() => {
|
|
9898
9898
|
const f = [];
|
|
9899
|
-
Object.keys(i).forEach((
|
|
9900
|
-
const b =
|
|
9901
|
-
f.push(`(${b}) ${A}, ${i[
|
|
9902
|
-
}), a(f), u(t && f.find((
|
|
9899
|
+
Object.keys(i).forEach((y) => {
|
|
9900
|
+
const b = y.endsWith("00") ? y.slice(0, -2) : y, A = Ar(y) ? (i[y].Village || "").replace(/\s+$/, "") : (i[y].Township || "").replace(/\s+$/, "");
|
|
9901
|
+
f.push(`(${b}) ${A}, ${i[y].County}`);
|
|
9902
|
+
}), a(f), u(t && f.find((y) => y.includes(`(${t})`)) || null);
|
|
9903
9903
|
}, [i]), Ee(() => {
|
|
9904
9904
|
u(
|
|
9905
9905
|
t && o.find((f) => f.includes(`(${t})`)) || null
|
|
@@ -9907,8 +9907,8 @@ function df({
|
|
|
9907
9907
|
}, [t, o]);
|
|
9908
9908
|
function h(f) {
|
|
9909
9909
|
u(f), console.log("Selected Muni:", f);
|
|
9910
|
-
const
|
|
9911
|
-
console.log("Muni Code:",
|
|
9910
|
+
const y = f ? f.match(/\(([^)]+)\)/)?.[1] : "";
|
|
9911
|
+
console.log("Muni Code:", y), e(y || "");
|
|
9912
9912
|
}
|
|
9913
9913
|
return /* @__PURE__ */ w(
|
|
9914
9914
|
Lo,
|
|
@@ -9928,7 +9928,7 @@ function df({
|
|
|
9928
9928
|
}
|
|
9929
9929
|
}
|
|
9930
9930
|
),
|
|
9931
|
-
onChange: (f,
|
|
9931
|
+
onChange: (f, y) => h(y),
|
|
9932
9932
|
disableClearable: !n,
|
|
9933
9933
|
fullWidth: !0,
|
|
9934
9934
|
value: c || "",
|
|
@@ -9957,38 +9957,47 @@ function Vw({
|
|
|
9957
9957
|
handleCreateClick: r,
|
|
9958
9958
|
currentView: i,
|
|
9959
9959
|
setCurrentView: o,
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9960
|
+
currentDate: a,
|
|
9961
|
+
setCurrentDate: c,
|
|
9962
|
+
activeUser: u,
|
|
9963
|
+
isFetchingCases: h,
|
|
9964
|
+
isAdmin: f
|
|
9964
9965
|
}) {
|
|
9965
|
-
const [
|
|
9966
|
+
const [y, b] = we("");
|
|
9966
9967
|
Ee(() => {
|
|
9967
9968
|
if (t) {
|
|
9968
|
-
const
|
|
9969
|
-
|
|
9969
|
+
const D = () => {
|
|
9970
|
+
i !== "tableView" && b(t.getCurrentData().viewTitle);
|
|
9970
9971
|
};
|
|
9971
|
-
return t.on("datesSet",
|
|
9972
|
-
t.off("datesSet",
|
|
9972
|
+
return t.on("datesSet", D), () => {
|
|
9973
|
+
t.off("datesSet", D);
|
|
9973
9974
|
};
|
|
9974
9975
|
}
|
|
9975
|
-
}, [t]), Ee(() => {
|
|
9976
|
-
if (
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
return;
|
|
9980
|
-
}
|
|
9981
|
-
v(t.getCurrentData().viewTitle);
|
|
9976
|
+
}, [t, i]), Ee(() => {
|
|
9977
|
+
if (i === "tableView") {
|
|
9978
|
+
b(a.getFullYear().toString());
|
|
9979
|
+
return;
|
|
9982
9980
|
}
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
t && (t.today(), a(/* @__PURE__ */ new Date()), v(t.getCurrentData().viewTitle));
|
|
9986
|
-
}
|
|
9981
|
+
t && b(t.getCurrentData().viewTitle);
|
|
9982
|
+
}, [t, i, a]);
|
|
9987
9983
|
function m() {
|
|
9988
|
-
|
|
9984
|
+
c(/* @__PURE__ */ new Date()), i !== "tableView" && t && (t.today(), b(t.getCurrentData().viewTitle));
|
|
9989
9985
|
}
|
|
9990
9986
|
function A() {
|
|
9991
|
-
|
|
9987
|
+
if (i === "tableView") {
|
|
9988
|
+
const D = new Date(a);
|
|
9989
|
+
D.setFullYear(D.getFullYear() + 1), c(D);
|
|
9990
|
+
return;
|
|
9991
|
+
}
|
|
9992
|
+
t && (t.next(), c(t.getDate()), b(t.getCurrentData().viewTitle));
|
|
9993
|
+
}
|
|
9994
|
+
function S() {
|
|
9995
|
+
if (i === "tableView") {
|
|
9996
|
+
const D = new Date(a);
|
|
9997
|
+
D.setFullYear(D.getFullYear() - 1), c(D);
|
|
9998
|
+
return;
|
|
9999
|
+
}
|
|
10000
|
+
t && (t.prev(), c(t.getDate()), b(t.getCurrentData().viewTitle));
|
|
9992
10001
|
}
|
|
9993
10002
|
return /* @__PURE__ */ J(
|
|
9994
10003
|
Ze,
|
|
@@ -10006,23 +10015,23 @@ function Vw({
|
|
|
10006
10015
|
/* @__PURE__ */ w(Xn, { size: "small", children: /* @__PURE__ */ w(kw, { currentView: i, setCurrentView: o }) }),
|
|
10007
10016
|
/* @__PURE__ */ w(Xn, { size: "small", children: /* @__PURE__ */ w(Iw, { filterCtx: e, setFilterCtx: n }) }),
|
|
10008
10017
|
/* @__PURE__ */ w(Xn, { size: "small", children: /* @__PURE__ */ w(Tw, { filterCtx: e, setFilterCtx: n }) }),
|
|
10009
|
-
/* @__PURE__ */ w(Xn, { size: "small", children: /* @__PURE__ */ w(Hw, { filterCtx: e, setFilterCtx: n, isFetchingCases:
|
|
10018
|
+
/* @__PURE__ */ w(Xn, { size: "small", children: /* @__PURE__ */ w(Hw, { filterCtx: e, setFilterCtx: n, isFetchingCases: h }) })
|
|
10010
10019
|
] }),
|
|
10011
10020
|
/* @__PURE__ */ J(Je, { display: "flex", alignItems: "center", gap: 2, children: [
|
|
10012
10021
|
/* @__PURE__ */ w(Xn, { size: "small", children: /* @__PURE__ */ w(
|
|
10013
10022
|
uf,
|
|
10014
10023
|
{
|
|
10015
10024
|
searchTerm: e.searchTerm,
|
|
10016
|
-
setSearchTerm: (
|
|
10025
|
+
setSearchTerm: (D) => n({ ...e, searchTerm: D }),
|
|
10017
10026
|
width: 200
|
|
10018
10027
|
}
|
|
10019
10028
|
) }),
|
|
10020
|
-
/* @__PURE__ */ w(Xn, { size: "small", children: /* @__PURE__ */ w(jw, { filterCtx: e, setFilterCtx: n, activeUser:
|
|
10029
|
+
/* @__PURE__ */ w(Xn, { size: "small", children: /* @__PURE__ */ w(jw, { filterCtx: e, setFilterCtx: n, activeUser: u }) }),
|
|
10021
10030
|
/* @__PURE__ */ w(Xn, { size: "small", sx: { minWidth: 250, minHeight: 45 }, children: /* @__PURE__ */ w(
|
|
10022
10031
|
df,
|
|
10023
10032
|
{
|
|
10024
10033
|
selectedMuni: e.municode || "",
|
|
10025
|
-
setSelectedMuni: (
|
|
10034
|
+
setSelectedMuni: (D) => n({ ...e, municode: D }),
|
|
10026
10035
|
allowClear: !0,
|
|
10027
10036
|
size: "small"
|
|
10028
10037
|
}
|
|
@@ -10035,13 +10044,13 @@ function Vw({
|
|
|
10035
10044
|
variant: "h6",
|
|
10036
10045
|
component: "div",
|
|
10037
10046
|
sx: { flexGrow: 1, textAlign: "center", maxWidth: "200px", whiteSpace: "nowrap" },
|
|
10038
|
-
children:
|
|
10047
|
+
children: y
|
|
10039
10048
|
}
|
|
10040
10049
|
),
|
|
10041
|
-
/* @__PURE__ */ w(br, { size: "medium", onClick: r, disabled: !
|
|
10042
|
-
/* @__PURE__ */ w(br, { variant: "outlined", size: "medium", onClick:
|
|
10043
|
-
/* @__PURE__ */ w(br, { size: "medium", onClick:
|
|
10044
|
-
/* @__PURE__ */ w(br, { size: "medium", onClick:
|
|
10050
|
+
/* @__PURE__ */ w(br, { size: "medium", onClick: r, disabled: !f, children: /* @__PURE__ */ w(cu, { fontSize: "medium" }) }),
|
|
10051
|
+
/* @__PURE__ */ w(br, { variant: "outlined", size: "medium", onClick: m, children: "Today" }),
|
|
10052
|
+
/* @__PURE__ */ w(br, { size: "medium", onClick: S, children: /* @__PURE__ */ w(th, { fontSize: "medium" }) }),
|
|
10053
|
+
/* @__PURE__ */ w(br, { size: "medium", onClick: A, children: /* @__PURE__ */ w(eh, { fontSize: "medium" }) })
|
|
10045
10054
|
] })
|
|
10046
10055
|
]
|
|
10047
10056
|
}
|
|
@@ -10158,7 +10167,7 @@ function Fc(t, e, n) {
|
|
|
10158
10167
|
reference: r,
|
|
10159
10168
|
floating: i
|
|
10160
10169
|
} = t;
|
|
10161
|
-
const o = nr(e), a = el(e), c = Ja(a), u = xr(e), h = o === "y", f = r.x + r.width / 2 - i.width / 2,
|
|
10170
|
+
const o = nr(e), a = el(e), c = Ja(a), u = xr(e), h = o === "y", f = r.x + r.width / 2 - i.width / 2, y = r.y + r.height / 2 - i.height / 2, b = r[c] / 2 - i[c] / 2;
|
|
10162
10171
|
let m;
|
|
10163
10172
|
switch (u) {
|
|
10164
10173
|
case "top":
|
|
@@ -10176,13 +10185,13 @@ function Fc(t, e, n) {
|
|
|
10176
10185
|
case "right":
|
|
10177
10186
|
m = {
|
|
10178
10187
|
x: r.x + r.width,
|
|
10179
|
-
y
|
|
10188
|
+
y
|
|
10180
10189
|
};
|
|
10181
10190
|
break;
|
|
10182
10191
|
case "left":
|
|
10183
10192
|
m = {
|
|
10184
10193
|
x: r.x - i.width,
|
|
10185
|
-
y
|
|
10194
|
+
y
|
|
10186
10195
|
};
|
|
10187
10196
|
break;
|
|
10188
10197
|
default:
|
|
@@ -10214,11 +10223,11 @@ const tE = async (t, e, n) => {
|
|
|
10214
10223
|
strategy: i
|
|
10215
10224
|
}), {
|
|
10216
10225
|
x: f,
|
|
10217
|
-
y
|
|
10226
|
+
y
|
|
10218
10227
|
} = Fc(h, r, u), b = r, m = {}, A = 0;
|
|
10219
10228
|
for (let S = 0; S < c.length; S++) {
|
|
10220
10229
|
const {
|
|
10221
|
-
name:
|
|
10230
|
+
name: D,
|
|
10222
10231
|
fn: R
|
|
10223
10232
|
} = c[S], {
|
|
10224
10233
|
x: U,
|
|
@@ -10227,7 +10236,7 @@ const tE = async (t, e, n) => {
|
|
|
10227
10236
|
reset: ie
|
|
10228
10237
|
} = await R({
|
|
10229
10238
|
x: f,
|
|
10230
|
-
y
|
|
10239
|
+
y,
|
|
10231
10240
|
initialPlacement: r,
|
|
10232
10241
|
placement: b,
|
|
10233
10242
|
strategy: i,
|
|
@@ -10239,10 +10248,10 @@ const tE = async (t, e, n) => {
|
|
|
10239
10248
|
floating: e
|
|
10240
10249
|
}
|
|
10241
10250
|
});
|
|
10242
|
-
f = U ?? f,
|
|
10251
|
+
f = U ?? f, y = z ?? y, m = {
|
|
10243
10252
|
...m,
|
|
10244
|
-
[
|
|
10245
|
-
...m[
|
|
10253
|
+
[D]: {
|
|
10254
|
+
...m[D],
|
|
10246
10255
|
...q
|
|
10247
10256
|
}
|
|
10248
10257
|
}, ie && A <= 50 && (A++, typeof ie == "object" && (ie.placement && (b = ie.placement), ie.rects && (h = ie.rects === !0 ? await a.getElementRects({
|
|
@@ -10251,12 +10260,12 @@ const tE = async (t, e, n) => {
|
|
|
10251
10260
|
strategy: i
|
|
10252
10261
|
}) : ie.rects), {
|
|
10253
10262
|
x: f,
|
|
10254
|
-
y
|
|
10263
|
+
y
|
|
10255
10264
|
} = Fc(h, b, u)), S = -1);
|
|
10256
10265
|
}
|
|
10257
10266
|
return {
|
|
10258
10267
|
x: f,
|
|
10259
|
-
y
|
|
10268
|
+
y,
|
|
10260
10269
|
placement: b,
|
|
10261
10270
|
strategy: i,
|
|
10262
10271
|
middlewareData: m
|
|
@@ -10275,15 +10284,15 @@ async function pf(t, e) {
|
|
|
10275
10284
|
} = t, {
|
|
10276
10285
|
boundary: h = "clippingAncestors",
|
|
10277
10286
|
rootBoundary: f = "viewport",
|
|
10278
|
-
elementContext:
|
|
10287
|
+
elementContext: y = "floating",
|
|
10279
10288
|
altBoundary: b = !1,
|
|
10280
10289
|
padding: m = 0
|
|
10281
|
-
} = Ii(e, t), A = hf(m),
|
|
10282
|
-
element: (n = await (o.isElement == null ? void 0 : o.isElement(
|
|
10290
|
+
} = Ii(e, t), A = hf(m), D = c[b ? y === "floating" ? "reference" : "floating" : y], R = No(await o.getClippingRect({
|
|
10291
|
+
element: (n = await (o.isElement == null ? void 0 : o.isElement(D))) == null || n ? D : D.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(c.floating)),
|
|
10283
10292
|
boundary: h,
|
|
10284
10293
|
rootBoundary: f,
|
|
10285
10294
|
strategy: u
|
|
10286
|
-
})), U =
|
|
10295
|
+
})), U = y === "floating" ? {
|
|
10287
10296
|
x: r,
|
|
10288
10297
|
y: i,
|
|
10289
10298
|
width: a.floating.width,
|
|
@@ -10325,13 +10334,13 @@ const nE = (t) => ({
|
|
|
10325
10334
|
} = Ii(t, e) || {};
|
|
10326
10335
|
if (h == null)
|
|
10327
10336
|
return {};
|
|
10328
|
-
const
|
|
10337
|
+
const y = hf(f), b = {
|
|
10329
10338
|
x: n,
|
|
10330
10339
|
y: r
|
|
10331
|
-
}, m = el(i), A = Ja(m), S = await a.getDimensions(h),
|
|
10340
|
+
}, m = el(i), A = Ja(m), S = await a.getDimensions(h), D = m === "y", R = D ? "top" : "left", U = D ? "bottom" : "right", z = D ? "clientHeight" : "clientWidth", q = o.reference[A] + o.reference[m] - b[m] - o.floating[A], ie = b[m] - o.reference[m], te = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(h));
|
|
10332
10341
|
let de = te ? te[z] : 0;
|
|
10333
10342
|
(!de || !await (a.isElement == null ? void 0 : a.isElement(te))) && (de = c.floating[z] || o.floating[A]);
|
|
10334
|
-
const ye = q / 2 - ie / 2, Q = de / 2 - S[A] / 2 - 1, be = Zr(
|
|
10343
|
+
const ye = q / 2 - ie / 2, Q = de / 2 - S[A] / 2 - 1, be = Zr(y[R], Q), oe = Zr(y[U], Q), Re = be, Oe = de - S[A] - oe, le = de / 2 - S[A] / 2 + ye, Z = ua(Re, le, Oe), Y = !u.arrow && Oi(i) != null && le !== Z && o.reference[A] / 2 - (le < Re ? be : oe) - S[A] / 2 < 0, se = Y ? le < Re ? le - Re : le - Oe : 0;
|
|
10335
10344
|
return {
|
|
10336
10345
|
[m]: b[m] + se,
|
|
10337
10346
|
data: {
|
|
@@ -10359,20 +10368,20 @@ const nE = (t) => ({
|
|
|
10359
10368
|
elements: h
|
|
10360
10369
|
} = e, {
|
|
10361
10370
|
mainAxis: f = !0,
|
|
10362
|
-
crossAxis:
|
|
10371
|
+
crossAxis: y = !0,
|
|
10363
10372
|
fallbackPlacements: b,
|
|
10364
10373
|
fallbackStrategy: m = "bestFit",
|
|
10365
10374
|
fallbackAxisSideDirection: A = "none",
|
|
10366
10375
|
flipAlignment: S = !0,
|
|
10367
|
-
...
|
|
10376
|
+
...D
|
|
10368
10377
|
} = Ii(t, e);
|
|
10369
10378
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
10370
10379
|
return {};
|
|
10371
10380
|
const R = xr(i), U = nr(c), z = xr(c) === c, q = await (u.isRTL == null ? void 0 : u.isRTL(h.floating)), ie = b || (z || !S ? [Mo(c)] : Kw(c)), te = A !== "none";
|
|
10372
10381
|
!b && te && ie.push(...Jw(c, S, A, q));
|
|
10373
|
-
const de = [c, ...ie], ye = await pf(e,
|
|
10382
|
+
const de = [c, ...ie], ye = await pf(e, D), Q = [];
|
|
10374
10383
|
let be = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
10375
|
-
if (f && Q.push(ye[R]),
|
|
10384
|
+
if (f && Q.push(ye[R]), y) {
|
|
10376
10385
|
const le = Yw(i, a, q);
|
|
10377
10386
|
Q.push(ye[le[0]], ye[le[1]]);
|
|
10378
10387
|
}
|
|
@@ -10382,7 +10391,7 @@ const nE = (t) => ({
|
|
|
10382
10391
|
}], !Q.every((le) => le <= 0)) {
|
|
10383
10392
|
var oe, Re;
|
|
10384
10393
|
const le = (((oe = o.flip) == null ? void 0 : oe.index) || 0) + 1, Z = de[le];
|
|
10385
|
-
if (Z && (!(
|
|
10394
|
+
if (Z && (!(y === "alignment" ? U !== nr(Z) : !1) || // We leave the current main axis only if every placement on that axis
|
|
10386
10395
|
// overflows the main axis.
|
|
10387
10396
|
be.every(($) => nr($.placement) === U ? $.overflows[0] > 0 : !0)))
|
|
10388
10397
|
return {
|
|
@@ -10431,19 +10440,19 @@ async function oE(t, e) {
|
|
|
10431
10440
|
placement: n,
|
|
10432
10441
|
platform: r,
|
|
10433
10442
|
elements: i
|
|
10434
|
-
} = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), a = xr(n), c = Oi(n), u = nr(n) === "y", h = iE.has(a) ? -1 : 1, f = o && u ? -1 : 1,
|
|
10443
|
+
} = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), a = xr(n), c = Oi(n), u = nr(n) === "y", h = iE.has(a) ? -1 : 1, f = o && u ? -1 : 1, y = Ii(e, t);
|
|
10435
10444
|
let {
|
|
10436
10445
|
mainAxis: b,
|
|
10437
10446
|
crossAxis: m,
|
|
10438
10447
|
alignmentAxis: A
|
|
10439
|
-
} = typeof
|
|
10440
|
-
mainAxis:
|
|
10448
|
+
} = typeof y == "number" ? {
|
|
10449
|
+
mainAxis: y,
|
|
10441
10450
|
crossAxis: 0,
|
|
10442
10451
|
alignmentAxis: null
|
|
10443
10452
|
} : {
|
|
10444
|
-
mainAxis:
|
|
10445
|
-
crossAxis:
|
|
10446
|
-
alignmentAxis:
|
|
10453
|
+
mainAxis: y.mainAxis || 0,
|
|
10454
|
+
crossAxis: y.crossAxis || 0,
|
|
10455
|
+
alignmentAxis: y.alignmentAxis
|
|
10447
10456
|
};
|
|
10448
10457
|
return c && typeof A == "number" && (m = c === "end" ? A * -1 : A), u ? {
|
|
10449
10458
|
x: m * f,
|
|
@@ -10488,11 +10497,11 @@ const sE = function(t) {
|
|
|
10488
10497
|
mainAxis: o = !0,
|
|
10489
10498
|
crossAxis: a = !1,
|
|
10490
10499
|
limiter: c = {
|
|
10491
|
-
fn: (
|
|
10500
|
+
fn: (D) => {
|
|
10492
10501
|
let {
|
|
10493
10502
|
x: R,
|
|
10494
10503
|
y: U
|
|
10495
|
-
} =
|
|
10504
|
+
} = D;
|
|
10496
10505
|
return {
|
|
10497
10506
|
x: R,
|
|
10498
10507
|
y: U
|
|
@@ -10503,20 +10512,20 @@ const sE = function(t) {
|
|
|
10503
10512
|
} = Ii(t, e), h = {
|
|
10504
10513
|
x: n,
|
|
10505
10514
|
y: r
|
|
10506
|
-
}, f = await pf(e, u),
|
|
10507
|
-
let m = h[b], A = h[
|
|
10515
|
+
}, f = await pf(e, u), y = nr(xr(i)), b = ff(y);
|
|
10516
|
+
let m = h[b], A = h[y];
|
|
10508
10517
|
if (o) {
|
|
10509
|
-
const
|
|
10518
|
+
const D = b === "y" ? "top" : "left", R = b === "y" ? "bottom" : "right", U = m + f[D], z = m - f[R];
|
|
10510
10519
|
m = ua(U, m, z);
|
|
10511
10520
|
}
|
|
10512
10521
|
if (a) {
|
|
10513
|
-
const
|
|
10522
|
+
const D = y === "y" ? "top" : "left", R = y === "y" ? "bottom" : "right", U = A + f[D], z = A - f[R];
|
|
10514
10523
|
A = ua(U, A, z);
|
|
10515
10524
|
}
|
|
10516
10525
|
const S = c.fn({
|
|
10517
10526
|
...e,
|
|
10518
10527
|
[b]: m,
|
|
10519
|
-
[
|
|
10528
|
+
[y]: A
|
|
10520
10529
|
});
|
|
10521
10530
|
return {
|
|
10522
10531
|
...S,
|
|
@@ -10525,7 +10534,7 @@ const sE = function(t) {
|
|
|
10525
10534
|
y: S.y - r,
|
|
10526
10535
|
enabled: {
|
|
10527
10536
|
[b]: o,
|
|
10528
|
-
[
|
|
10537
|
+
[y]: a
|
|
10529
10538
|
}
|
|
10530
10539
|
}
|
|
10531
10540
|
};
|
|
@@ -10691,18 +10700,18 @@ function Rr(t, e, n, r) {
|
|
|
10691
10700
|
let a = kn(1);
|
|
10692
10701
|
e && (r ? hn(r) && (a = qr(r)) : a = qr(t));
|
|
10693
10702
|
const c = yE(o, n, r) ? yf(o) : kn(0);
|
|
10694
|
-
let u = (i.left + c.x) / a.x, h = (i.top + c.y) / a.y, f = i.width / a.x,
|
|
10703
|
+
let u = (i.left + c.x) / a.x, h = (i.top + c.y) / a.y, f = i.width / a.x, y = i.height / a.y;
|
|
10695
10704
|
if (o) {
|
|
10696
10705
|
const b = Xt(o), m = r && hn(r) ? Xt(r) : r;
|
|
10697
10706
|
let A = b, S = fa(A);
|
|
10698
10707
|
for (; S && r && m !== A; ) {
|
|
10699
|
-
const
|
|
10700
|
-
u *=
|
|
10708
|
+
const D = qr(S), R = S.getBoundingClientRect(), U = pn(S), z = R.left + (S.clientLeft + parseFloat(U.paddingLeft)) * D.x, q = R.top + (S.clientTop + parseFloat(U.paddingTop)) * D.y;
|
|
10709
|
+
u *= D.x, h *= D.y, f *= D.x, y *= D.y, u += z, h += q, A = Xt(S), S = fa(A);
|
|
10701
10710
|
}
|
|
10702
10711
|
}
|
|
10703
10712
|
return No({
|
|
10704
10713
|
width: f,
|
|
10705
|
-
height:
|
|
10714
|
+
height: y,
|
|
10706
10715
|
x: u,
|
|
10707
10716
|
y: h
|
|
10708
10717
|
});
|
|
@@ -10732,12 +10741,12 @@ function bE(t) {
|
|
|
10732
10741
|
scrollLeft: 0,
|
|
10733
10742
|
scrollTop: 0
|
|
10734
10743
|
}, h = kn(1);
|
|
10735
|
-
const f = kn(0),
|
|
10736
|
-
if ((
|
|
10744
|
+
const f = kn(0), y = On(r);
|
|
10745
|
+
if ((y || !y && !o) && ((ei(r) !== "body" || Mi(a)) && (u = Qo(r)), On(r))) {
|
|
10737
10746
|
const m = Rr(r);
|
|
10738
10747
|
h = qr(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
|
|
10739
10748
|
}
|
|
10740
|
-
const b = a && !
|
|
10749
|
+
const b = a && !y && !o ? bf(a, u) : kn(0);
|
|
10741
10750
|
return {
|
|
10742
10751
|
width: n.width * h.x,
|
|
10743
10752
|
height: n.height * h.y,
|
|
@@ -10770,7 +10779,7 @@ function SE(t, e) {
|
|
|
10770
10779
|
}
|
|
10771
10780
|
const h = Zo(r);
|
|
10772
10781
|
if (h <= 0) {
|
|
10773
|
-
const f = r.ownerDocument,
|
|
10782
|
+
const f = r.ownerDocument, y = f.body, b = getComputedStyle(y), m = f.compatMode === "CSS1Compat" && parseFloat(b.marginLeft) + parseFloat(b.marginRight) || 0, A = Math.abs(r.clientWidth - y.clientWidth - m);
|
|
10774
10783
|
A <= Wc && (o -= A);
|
|
10775
10784
|
} else h <= Wc && (o += h);
|
|
10776
10785
|
return {
|
|
@@ -10834,8 +10843,8 @@ function _E(t) {
|
|
|
10834
10843
|
strategy: i
|
|
10835
10844
|
} = t;
|
|
10836
10845
|
const a = [...n === "clippingAncestors" ? Ko(e) ? [] : DE(e, this._c) : [].concat(n), r], c = a[0], u = a.reduce((h, f) => {
|
|
10837
|
-
const
|
|
10838
|
-
return h.top = Cr(
|
|
10846
|
+
const y = Vc(e, f, i);
|
|
10847
|
+
return h.top = Cr(y.top, h.top), h.right = Zr(y.right, h.right), h.bottom = Zr(y.bottom, h.bottom), h.left = Cr(y.left, h.left), h;
|
|
10839
10848
|
}, Vc(e, c, i));
|
|
10840
10849
|
return {
|
|
10841
10850
|
width: u.right - u.left,
|
|
@@ -10870,9 +10879,9 @@ function RE(t, e, n) {
|
|
|
10870
10879
|
u.x = m.x + e.clientLeft, u.y = m.y + e.clientTop;
|
|
10871
10880
|
} else i && h();
|
|
10872
10881
|
o && !r && i && h();
|
|
10873
|
-
const f = i && !r && !o ? bf(i, c) : kn(0),
|
|
10882
|
+
const f = i && !r && !o ? bf(i, c) : kn(0), y = a.left + c.scrollLeft - u.x - f.x, b = a.top + c.scrollTop - u.y - f.y;
|
|
10874
10883
|
return {
|
|
10875
|
-
x:
|
|
10884
|
+
x: y,
|
|
10876
10885
|
y: b,
|
|
10877
10886
|
width: a.width,
|
|
10878
10887
|
height: a.height
|
|
@@ -10948,14 +10957,14 @@ function OE(t, e) {
|
|
|
10948
10957
|
c === void 0 && (c = !1), u === void 0 && (u = 1), o();
|
|
10949
10958
|
const h = t.getBoundingClientRect(), {
|
|
10950
10959
|
left: f,
|
|
10951
|
-
top:
|
|
10960
|
+
top: y,
|
|
10952
10961
|
width: b,
|
|
10953
10962
|
height: m
|
|
10954
10963
|
} = h;
|
|
10955
10964
|
if (c || e(), !b || !m)
|
|
10956
10965
|
return;
|
|
10957
|
-
const A = ao(
|
|
10958
|
-
rootMargin: -A + "px " + -S + "px " + -
|
|
10966
|
+
const A = ao(y), S = ao(i.clientWidth - (f + b)), D = ao(i.clientHeight - (y + m)), R = ao(f), z = {
|
|
10967
|
+
rootMargin: -A + "px " + -S + "px " + -D + "px " + -R + "px",
|
|
10959
10968
|
threshold: Cr(0, Zr(1, u)) || 1
|
|
10960
10969
|
};
|
|
10961
10970
|
let q = !0;
|
|
@@ -10997,7 +11006,7 @@ function ME(t, e, n, r) {
|
|
|
10997
11006
|
passive: !0
|
|
10998
11007
|
}), o && R.addEventListener("resize", n);
|
|
10999
11008
|
});
|
|
11000
|
-
const
|
|
11009
|
+
const y = h && c ? OE(h, n) : null;
|
|
11001
11010
|
let b = -1, m = null;
|
|
11002
11011
|
a && (m = new ResizeObserver((R) => {
|
|
11003
11012
|
let [U] = R;
|
|
@@ -11007,16 +11016,16 @@ function ME(t, e, n, r) {
|
|
|
11007
11016
|
})), n();
|
|
11008
11017
|
}), h && !u && m.observe(h), m.observe(e));
|
|
11009
11018
|
let A, S = u ? Rr(t) : null;
|
|
11010
|
-
u &&
|
|
11011
|
-
function
|
|
11019
|
+
u && D();
|
|
11020
|
+
function D() {
|
|
11012
11021
|
const R = Rr(t);
|
|
11013
|
-
S && !Sf(S, R) && n(), S = R, A = requestAnimationFrame(
|
|
11022
|
+
S && !Sf(S, R) && n(), S = R, A = requestAnimationFrame(D);
|
|
11014
11023
|
}
|
|
11015
11024
|
return n(), () => {
|
|
11016
11025
|
var R;
|
|
11017
11026
|
f.forEach((U) => {
|
|
11018
11027
|
i && U.removeEventListener("scroll", n), o && U.removeEventListener("resize", n);
|
|
11019
|
-
}),
|
|
11028
|
+
}), y?.(), (R = m) == null || R.disconnect(), m = null, u && cancelAnimationFrame(A);
|
|
11020
11029
|
};
|
|
11021
11030
|
}
|
|
11022
11031
|
const NE = sE, PE = aE, LE = rE, jE = nE, qc = (t, e, n) => {
|
|
@@ -11086,16 +11095,16 @@ const Qc = async ({ elementReference: t = null, tooltipReference: e = null, tool
|
|
|
11086
11095
|
if (!t) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r };
|
|
11087
11096
|
if (e === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r };
|
|
11088
11097
|
const h = a;
|
|
11089
|
-
return n ? (h.push(jE({ element: n, padding: 5 })), qc(t, e, { placement: r, strategy: o, middleware: h }).then((({ x: f, y
|
|
11098
|
+
return n ? (h.push(jE({ element: n, padding: 5 })), qc(t, e, { placement: r, strategy: o, middleware: h }).then((({ x: f, y, placement: b, middlewareData: m }) => {
|
|
11090
11099
|
var A, S;
|
|
11091
|
-
const
|
|
11100
|
+
const D = { left: `${f}px`, top: `${y}px`, border: c }, { x: R, y: U } = (A = m.arrow) !== null && A !== void 0 ? A : { x: 0, y: 0 }, z = (S = { top: "bottom", right: "left", bottom: "top", left: "right" }[b.split("-")[0]]) !== null && S !== void 0 ? S : "bottom", q = c && { borderBottom: c, borderRight: c };
|
|
11092
11101
|
let ie = 0;
|
|
11093
11102
|
if (c) {
|
|
11094
11103
|
const te = `${c}`.match(/(\d+)px/);
|
|
11095
11104
|
ie = te?.[1] ? Number(te[1]) : 1;
|
|
11096
11105
|
}
|
|
11097
|
-
return { tooltipStyles:
|
|
11098
|
-
}))) : qc(t, e, { placement: "bottom", strategy: o, middleware: h }).then((({ x: f, y
|
|
11106
|
+
return { tooltipStyles: D, tooltipArrowStyles: { left: R != null ? `${R}px` : "", top: U != null ? `${U}px` : "", right: "", bottom: "", ...q, [z]: `-${u / 2 + ie}px` }, place: b };
|
|
11107
|
+
}))) : qc(t, e, { placement: "bottom", strategy: o, middleware: h }).then((({ x: f, y, placement: b }) => ({ tooltipStyles: { left: `${f}px`, top: `${y}px` }, tooltipArrowStyles: {}, place: b })));
|
|
11099
11108
|
}, Zc = (t, e) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(t, e), Xc = (t, e, n) => {
|
|
11100
11109
|
let r = null;
|
|
11101
11110
|
const i = function(...o) {
|
|
@@ -11139,7 +11148,7 @@ function Af(t = $E) {
|
|
|
11139
11148
|
return lu(GE).getTooltipData(t);
|
|
11140
11149
|
}
|
|
11141
11150
|
var Ur = { 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" }, $s = { 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" };
|
|
11142
|
-
const YE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i = "dark", anchorId: o, anchorSelect: a, place: c = "top", offset: u = 10, events: h = ["hover"], openOnClick: f = !1, positionStrategy:
|
|
11151
|
+
const YE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i = "dark", anchorId: o, anchorSelect: a, place: c = "top", offset: u = 10, events: h = ["hover"], openOnClick: f = !1, positionStrategy: y = "absolute", middlewares: b, wrapper: m, delayShow: A = 0, delayHide: S = 0, float: D = !1, hidden: R = !1, noArrow: U = !1, clickable: z = !1, closeOnEsc: q = !1, closeOnScroll: ie = !1, closeOnResize: te = !1, openEvents: de, closeEvents: ye, globalCloseEvents: Q, imperativeModeOnly: be, style: oe, position: Re, afterShow: Oe, afterHide: le, disableTooltip: Z, content: Y, contentWrapperRef: se, isOpen: $, defaultIsOpen: ge = !1, setIsOpen: ve, previousActiveAnchor: je, activeAnchor: Ce, setActiveAnchor: Ve, border: tt, opacity: st, arrowColor: pt, arrowSize: Et = 8, role: qt = "tooltip" }) => {
|
|
11143
11152
|
var ue;
|
|
11144
11153
|
const $e = Tt(null), mt = Tt(null), Ie = Tt(null), yt = Tt(null), Mt = Tt(null), [Ct, vn] = we({ tooltipStyles: {}, tooltipArrowStyles: {}, place: c }), [St, Pn] = we(!1), [yn, H] = we(!1), [he, ke] = we(null), Be = Tt(!1), Fe = Tt(null), { anchorRefs: at, setActiveAnchor: Xe } = Af(e), ut = Tt(!1), [xt, lt] = we([]), qe = Tt(!1), bt = f || h.includes("click"), Jt = bt || de?.click || de?.dblclick || de?.mousedown, bn = de ? { ...de } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
11145
11154
|
!de && bt && Object.assign(bn, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
@@ -11217,7 +11226,7 @@ const YE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11217
11226
|
}, Ln = ({ x: G, y: pe }) => {
|
|
11218
11227
|
var Ae;
|
|
11219
11228
|
const Ge = { getBoundingClientRect: () => ({ x: G, y: pe, width: 0, height: 0, top: pe, left: G, right: G, bottom: pe }) };
|
|
11220
|
-
Qc({ place: (Ae = he?.place) !== null && Ae !== void 0 ? Ae : c, offset: u, elementReference: Ge, tooltipReference: $e.current, tooltipArrowReference: mt.current, strategy:
|
|
11229
|
+
Qc({ place: (Ae = he?.place) !== null && Ae !== void 0 ? Ae : c, offset: u, elementReference: Ge, tooltipReference: $e.current, tooltipArrowReference: mt.current, strategy: y, middlewares: b, border: tt, arrowSize: Et }).then(((gt) => {
|
|
11221
11230
|
an(gt);
|
|
11222
11231
|
}));
|
|
11223
11232
|
}, En = (G) => {
|
|
@@ -11236,10 +11245,10 @@ const YE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11236
11245
|
}, Pe = Bn((() => {
|
|
11237
11246
|
var G, pe;
|
|
11238
11247
|
const Ae = (G = he?.position) !== null && G !== void 0 ? G : Re;
|
|
11239
|
-
Ae ? Ln(Ae) :
|
|
11248
|
+
Ae ? Ln(Ae) : D ? Fe.current && Ln(Fe.current) : Ce?.isConnected && Qc({ place: (pe = he?.place) !== null && pe !== void 0 ? pe : c, offset: u, elementReference: Ce, tooltipReference: $e.current, tooltipArrowReference: mt.current, strategy: y, middlewares: b, border: tt, arrowSize: Et }).then(((Ge) => {
|
|
11240
11249
|
qe.current && an(Ge);
|
|
11241
11250
|
}));
|
|
11242
|
-
}), [St, Ce, Y, oe, c, he?.place, u,
|
|
11251
|
+
}), [St, Ce, Y, oe, c, he?.place, u, y, Re, he?.position, D, Et]);
|
|
11243
11252
|
Ee((() => {
|
|
11244
11253
|
var G, pe;
|
|
11245
11254
|
const Ae = new Set(at);
|
|
@@ -11267,7 +11276,7 @@ const YE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11267
11276
|
_t && (ti.includes(Ue) ? Ye.push({ event: Ue, listener: kt }) : An.includes(Ue) && Ye.push({ event: Ue, listener: Xo }));
|
|
11268
11277
|
})), Object.entries(sn).forEach((([Ue, _t]) => {
|
|
11269
11278
|
_t && (ti.includes(Ue) ? Ye.push({ event: Ue, listener: Se }) : An.includes(Ue) && Ye.push({ event: Ue, listener: Sn }));
|
|
11270
|
-
})),
|
|
11279
|
+
})), D && Ye.push({ event: "pointermove", listener: En });
|
|
11271
11280
|
const ni = () => {
|
|
11272
11281
|
ut.current = !0;
|
|
11273
11282
|
}, Mr = () => {
|
|
@@ -11355,11 +11364,11 @@ const YE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11355
11364
|
ke(G ?? null), G?.delay ? Gt(G.delay) : fe(!0);
|
|
11356
11365
|
}, close: (G) => {
|
|
11357
11366
|
G?.delay ? ln(G.delay) : fe(!1);
|
|
11358
|
-
}, activeAnchor: Ce, place: Ct.place, isOpen: !!(yn && !R && It && en) }))), yn && !R && It ? Tn.createElement(m, { id: e, role: qt, className: ha("react-tooltip", Ur.tooltip, $s.tooltip, $s[i], n, `react-tooltip__place-${Ct.place}`, Ur[en ? "show" : "closing"], en ? "react-tooltip__show" : "react-tooltip__closing",
|
|
11367
|
+
}, activeAnchor: Ce, place: Ct.place, isOpen: !!(yn && !R && It && en) }))), yn && !R && It ? Tn.createElement(m, { id: e, role: qt, className: ha("react-tooltip", Ur.tooltip, $s.tooltip, $s[i], n, `react-tooltip__place-${Ct.place}`, Ur[en ? "show" : "closing"], en ? "react-tooltip__show" : "react-tooltip__closing", y === "fixed" && Ur.fixed, z && Ur.clickable), onTransitionEnd: (G) => {
|
|
11359
11368
|
on(Mt), St || G.propertyName !== "opacity" || (H(!1), ke(null), le?.());
|
|
11360
11369
|
}, style: { ...oe, ...Ct.tooltipStyles, opacity: st !== void 0 && en ? st : void 0 }, ref: $e }, It, Tn.createElement(m, { className: ha("react-tooltip-arrow", Ur.arrow, $s.arrow, r, U && Ur.noArrow), style: { ...Ct.tooltipArrowStyles, background: pt ? `linear-gradient(to right bottom, transparent 50%, ${pt} 50%)` : void 0, "--rt-arrow-size": `${Et}px` }, ref: mt })) : null;
|
|
11361
|
-
}, KE = ({ content: t }) => Tn.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), QE = Tn.forwardRef((({ id: t, anchorId: e, anchorSelect: n, content: r, html: i, render: o, className: a, classNameArrow: c, variant: u = "dark", place: h = "top", offset: f = 10, wrapper:
|
|
11362
|
-
const [ue, $e] = we(r), [mt, Ie] = we(i), [yt, Mt] = we(h), [Ct, vn] = we(u), [St, Pn] = we(f), [yn, H] = we(R), [he, ke] = we(U), [Be, Fe] = we(z), [at, Xe] = we(q), [ut, xt] = we(
|
|
11370
|
+
}, KE = ({ content: t }) => Tn.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), QE = Tn.forwardRef((({ id: t, anchorId: e, anchorSelect: n, content: r, html: i, render: o, className: a, classNameArrow: c, variant: u = "dark", place: h = "top", offset: f = 10, wrapper: y = "div", children: b = null, events: m = ["hover"], openOnClick: A = !1, positionStrategy: S = "absolute", middlewares: D, delayShow: R = 0, delayHide: U = 0, float: z = !1, hidden: q = !1, noArrow: ie = !1, clickable: te = !1, closeOnEsc: de = !1, closeOnScroll: ye = !1, closeOnResize: Q = !1, openEvents: be, closeEvents: oe, globalCloseEvents: Re, imperativeModeOnly: Oe = !1, style: le, position: Z, isOpen: Y, defaultIsOpen: se = !1, disableStyleInjection: $ = !1, border: ge, opacity: ve, arrowColor: je, arrowSize: Ce, setIsOpen: Ve, afterShow: tt, afterHide: st, disableTooltip: pt, role: Et = "tooltip" }, qt) => {
|
|
11371
|
+
const [ue, $e] = we(r), [mt, Ie] = we(i), [yt, Mt] = we(h), [Ct, vn] = we(u), [St, Pn] = we(f), [yn, H] = we(R), [he, ke] = we(U), [Be, Fe] = we(z), [at, Xe] = we(q), [ut, xt] = we(y), [lt, qe] = we(m), [bt, Jt] = we(S), [bn, sn] = we(null), [rt, fe] = we(null), an = Tt(null), Gt = Tt($), { anchorRefs: ln, activeAnchor: re } = Af(t), wn = (vt) => vt?.getAttributeNames().reduce(((kt, Se) => {
|
|
11363
11372
|
var Pe;
|
|
11364
11373
|
return Se.startsWith("data-tooltip-") && (kt[Se.replace(/^data-tooltip-/, "")] = (Pe = vt?.getAttribute(Se)) !== null && Pe !== void 0 ? Pe : null), kt;
|
|
11365
11374
|
}), {}), Ln = (vt) => {
|
|
@@ -11377,7 +11386,7 @@ const YE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11377
11386
|
Pn(Se === null ? f : Number(Se));
|
|
11378
11387
|
}, wrapper: (Se) => {
|
|
11379
11388
|
var Pe;
|
|
11380
|
-
xt((Pe = Se) !== null && Pe !== void 0 ? Pe :
|
|
11389
|
+
xt((Pe = Se) !== null && Pe !== void 0 ? Pe : y);
|
|
11381
11390
|
}, events: (Se) => {
|
|
11382
11391
|
const Pe = Se?.split(" ");
|
|
11383
11392
|
qe(Pe ?? m);
|
|
@@ -11462,7 +11471,7 @@ const YE = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11462
11471
|
En = vt ? Tn.createElement("div", { ref: qn, className: "react-tooltip-content-wrapper" }, vt) : null;
|
|
11463
11472
|
} else ue && (En = ue);
|
|
11464
11473
|
mt && (En = Tn.createElement(KE, { content: mt }));
|
|
11465
|
-
const Gn = { forwardRef: qt, id: t, anchorId: e, anchorSelect: n, className: ha(a, bn), classNameArrow: c, content: En, contentWrapperRef: qn, place: yt, variant: Ct, offset: St, wrapper: ut, events: lt, openOnClick: A, positionStrategy: bt, middlewares:
|
|
11474
|
+
const Gn = { forwardRef: qt, id: t, anchorId: e, anchorSelect: n, className: ha(a, bn), classNameArrow: c, content: En, contentWrapperRef: qn, place: yt, variant: Ct, offset: St, wrapper: ut, events: lt, openOnClick: A, positionStrategy: bt, middlewares: D, delayShow: yn, delayHide: he, float: Be, hidden: at, noArrow: ie, clickable: te, closeOnEsc: de, closeOnScroll: ye, closeOnResize: Q, openEvents: be, closeEvents: oe, globalCloseEvents: Re, imperativeModeOnly: Oe, style: le, position: Z, isOpen: Y, defaultIsOpen: se, border: ge, opacity: ve, arrowColor: je, arrowSize: Ce, setIsOpen: Ve, afterShow: tt, afterHide: st, disableTooltip: pt, activeAnchor: rt, previousActiveAnchor: an.current, setActiveAnchor: (vt) => {
|
|
11466
11475
|
fe(((kt) => (vt?.isSameNode(kt) || (an.current = kt), vt)));
|
|
11467
11476
|
}, role: Et };
|
|
11468
11477
|
return Tn.createElement(YE, { ...Gn });
|
|
@@ -11644,8 +11653,8 @@ const nS = va(function({
|
|
|
11644
11653
|
] }) });
|
|
11645
11654
|
const A = (m.uploaded?.Evidence || m.Evidence).replace(/[[\]"]+/g, "");
|
|
11646
11655
|
if (m.uploaded && m.uploaded.Evidence) {
|
|
11647
|
-
const
|
|
11648
|
-
return /* @__PURE__ */ w(ot, { title: `Uploaded on ${
|
|
11656
|
+
const D = m.uploaded.UploadDate ? new Date(m.uploaded.UploadDate).toLocaleDateString() : "unknown date";
|
|
11657
|
+
return /* @__PURE__ */ w(ot, { title: `Uploaded on ${D}`, children: /* @__PURE__ */ J(Je, { display: "flex", alignItems: "center", gap: 0.5, width: "100%", mt: 1.7, children: [
|
|
11649
11658
|
/* @__PURE__ */ w(Ei, { sx: { color: "#4caf50", fontSize: 20 } }),
|
|
11650
11659
|
/* @__PURE__ */ w(De, { variant: "body2", children: A })
|
|
11651
11660
|
] }) });
|
|
@@ -11708,9 +11717,9 @@ const nS = va(function({
|
|
|
11708
11717
|
} else return b.SCARDeterminationAction;
|
|
11709
11718
|
return "";
|
|
11710
11719
|
}
|
|
11711
|
-
const [f,
|
|
11720
|
+
const [f, y] = we(!1);
|
|
11712
11721
|
return Ee(() => {
|
|
11713
|
-
|
|
11722
|
+
y(!n && e.length > 0);
|
|
11714
11723
|
}, [n, e.length]), /* @__PURE__ */ J(Je, { justifyContent: "center", width: "100%", mt: 2, children: [
|
|
11715
11724
|
e.length === 0 && !n && /* @__PURE__ */ w(De, { children: "No cases associated with this date." }),
|
|
11716
11725
|
n && /* @__PURE__ */ J(Je, { display: "flex", justifyContent: "center", alignItems: "center", children: [
|
|
@@ -11899,7 +11908,7 @@ function aS() {
|
|
|
11899
11908
|
(function(n, r) {
|
|
11900
11909
|
t.exports = r();
|
|
11901
11910
|
})(sS, (function() {
|
|
11902
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", a = "second", c = "minute", u = "hour", h = "day", f = "week",
|
|
11911
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", a = "second", c = "minute", u = "hour", h = "day", f = "week", y = "month", b = "quarter", m = "year", A = "date", S = "Invalid Date", D = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|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, U = { 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(le) {
|
|
11903
11912
|
var Z = ["th", "st", "nd", "rd"], Y = le % 100;
|
|
11904
11913
|
return "[" + le + (Z[(Y - 20) % 10] || Z[Y] || Z[0]) + "]";
|
|
11905
11914
|
} }, z = function(le, Z, Y) {
|
|
@@ -11910,12 +11919,12 @@ function aS() {
|
|
|
11910
11919
|
return (Z <= 0 ? "+" : "-") + z(se, 2, "0") + ":" + z($, 2, "0");
|
|
11911
11920
|
}, m: function le(Z, Y) {
|
|
11912
11921
|
if (Z.date() < Y.date()) return -le(Y, Z);
|
|
11913
|
-
var se = 12 * (Y.year() - Z.year()) + (Y.month() - Z.month()), $ = Z.clone().add(se,
|
|
11922
|
+
var se = 12 * (Y.year() - Z.year()) + (Y.month() - Z.month()), $ = Z.clone().add(se, y), ge = Y - $ < 0, ve = Z.clone().add(se + (ge ? -1 : 1), y);
|
|
11914
11923
|
return +(-(se + (Y - $) / (ge ? $ - ve : ve - $)) || 0);
|
|
11915
11924
|
}, a: function(le) {
|
|
11916
11925
|
return le < 0 ? Math.ceil(le) || 0 : Math.floor(le);
|
|
11917
11926
|
}, p: function(le) {
|
|
11918
|
-
return { M:
|
|
11927
|
+
return { M: y, y: m, w: f, d: h, D: A, h: u, m: c, s: a, ms: o, Q: b }[le] || String(le || "").toLowerCase().replace(/s$/, "");
|
|
11919
11928
|
}, u: function(le) {
|
|
11920
11929
|
return le === void 0;
|
|
11921
11930
|
} }, ie = "en", te = {};
|
|
@@ -11955,7 +11964,7 @@ function aS() {
|
|
|
11955
11964
|
if (oe.u($)) return /* @__PURE__ */ new Date();
|
|
11956
11965
|
if ($ instanceof Date) return new Date($);
|
|
11957
11966
|
if (typeof $ == "string" && !/Z$/i.test($)) {
|
|
11958
|
-
var ve = $.match(
|
|
11967
|
+
var ve = $.match(D);
|
|
11959
11968
|
if (ve) {
|
|
11960
11969
|
var je = ve[2] - 1 || 0, Ce = (ve[7] || "0").substring(0, 3);
|
|
11961
11970
|
return ge ? new Date(Date.UTC(ve[1], je, ve[3] || 1, ve[4] || 0, ve[5] || 0, ve[6] || 0, Ce)) : new Date(ve[1], je, ve[3] || 1, ve[4] || 0, ve[5] || 0, ve[6] || 0, Ce);
|
|
@@ -11993,7 +12002,7 @@ function aS() {
|
|
|
11993
12002
|
switch (ve) {
|
|
11994
12003
|
case m:
|
|
11995
12004
|
return ge ? je(1, 0) : je(31, 11);
|
|
11996
|
-
case
|
|
12005
|
+
case y:
|
|
11997
12006
|
return ge ? je(1, tt) : je(0, tt + 1);
|
|
11998
12007
|
case f:
|
|
11999
12008
|
var Et = this.$locale().weekStart || 0, qt = (Ve < Et ? Ve + 7 : Ve) - Et;
|
|
@@ -12013,8 +12022,8 @@ function aS() {
|
|
|
12013
12022
|
}, Z.endOf = function(Y) {
|
|
12014
12023
|
return this.startOf(Y, !1);
|
|
12015
12024
|
}, Z.$set = function(Y, se) {
|
|
12016
|
-
var $, ge = oe.p(Y), ve = "set" + (this.$u ? "UTC" : ""), je = ($ = {}, $[h] = ve + "Date", $[A] = ve + "Date", $[
|
|
12017
|
-
if (ge ===
|
|
12025
|
+
var $, ge = oe.p(Y), ve = "set" + (this.$u ? "UTC" : ""), je = ($ = {}, $[h] = ve + "Date", $[A] = ve + "Date", $[y] = ve + "Month", $[m] = ve + "FullYear", $[u] = ve + "Hours", $[c] = ve + "Minutes", $[a] = ve + "Seconds", $[o] = ve + "Milliseconds", $)[ge], Ce = ge === h ? this.$D + (se - this.$W) : se;
|
|
12026
|
+
if (ge === y || ge === m) {
|
|
12018
12027
|
var Ve = this.clone().set(A, 1);
|
|
12019
12028
|
Ve.$d[je](Ce), Ve.init(), this.$d = Ve.set(A, Math.min(this.$D, Ve.daysInMonth())).$d;
|
|
12020
12029
|
} else je && this.$d[je](Ce);
|
|
@@ -12030,7 +12039,7 @@ function aS() {
|
|
|
12030
12039
|
var st = be(ge);
|
|
12031
12040
|
return oe.w(st.date(st.date() + Math.round(tt * Y)), ge);
|
|
12032
12041
|
};
|
|
12033
|
-
if (ve ===
|
|
12042
|
+
if (ve === y) return this.set(y, this.$M + Y);
|
|
12034
12043
|
if (ve === m) return this.set(m, this.$y + Y);
|
|
12035
12044
|
if (ve === h) return je(1);
|
|
12036
12045
|
if (ve === f) return je(7);
|
|
@@ -12114,7 +12123,7 @@ function aS() {
|
|
|
12114
12123
|
case m:
|
|
12115
12124
|
ge = st() / 12;
|
|
12116
12125
|
break;
|
|
12117
|
-
case
|
|
12126
|
+
case y:
|
|
12118
12127
|
ge = st();
|
|
12119
12128
|
break;
|
|
12120
12129
|
case b:
|
|
@@ -12140,7 +12149,7 @@ function aS() {
|
|
|
12140
12149
|
}
|
|
12141
12150
|
return $ ? ge : oe.a(ge);
|
|
12142
12151
|
}, Z.daysInMonth = function() {
|
|
12143
|
-
return this.endOf(
|
|
12152
|
+
return this.endOf(y).$D;
|
|
12144
12153
|
}, Z.$locale = function() {
|
|
12145
12154
|
return te[this.$L];
|
|
12146
12155
|
}, Z.locale = function(Y, se) {
|
|
@@ -12159,7 +12168,7 @@ function aS() {
|
|
|
12159
12168
|
return this.$d.toUTCString();
|
|
12160
12169
|
}, le;
|
|
12161
12170
|
})(), Oe = Re.prototype;
|
|
12162
|
-
return be.prototype = Oe, [["$ms", o], ["$s", a], ["$m", c], ["$H", u], ["$W", h], ["$M",
|
|
12171
|
+
return be.prototype = Oe, [["$ms", o], ["$s", a], ["$m", c], ["$H", u], ["$W", h], ["$M", y], ["$y", m], ["$D", A]].forEach((function(le) {
|
|
12163
12172
|
Oe[le[1]] = function(Z) {
|
|
12164
12173
|
return this.$g(Z, le[0], le[1]);
|
|
12165
12174
|
};
|
|
@@ -12258,8 +12267,8 @@ function xf({
|
|
|
12258
12267
|
size: r = 30,
|
|
12259
12268
|
spacing: i = 1
|
|
12260
12269
|
}) {
|
|
12261
|
-
const { allUsers: o } = mn(), a = t ? o[t] : null, c = e ? o[e] : null, [u, h] = we(null), [f,
|
|
12262
|
-
(Q) => Q.UserLastName && !
|
|
12270
|
+
const { allUsers: o } = mn(), a = t ? o[t] : null, c = e ? o[e] : null, [u, h] = we(null), [f, y] = we(null), [b, m] = we(null), A = r, S = r, D = ["Import", "Memos", "Table", "Note", "Robot", "Ingestion"], R = Object.values(o).filter(
|
|
12271
|
+
(Q) => Q.UserLastName && !D.includes(Q.UserLastName)
|
|
12263
12272
|
), U = R.filter((Q) => ir.includes(Q.UserID)), z = R.filter((Q) => !ir.includes(Q.UserID));
|
|
12264
12273
|
function q(Q) {
|
|
12265
12274
|
let be = 0, oe;
|
|
@@ -12282,7 +12291,7 @@ function xf({
|
|
|
12282
12291
|
}
|
|
12283
12292
|
function te(Q, be) {
|
|
12284
12293
|
const oe = (Oe) => {
|
|
12285
|
-
n && (Oe.stopPropagation(), h(Oe.currentTarget),
|
|
12294
|
+
n && (Oe.stopPropagation(), h(Oe.currentTarget), y(be));
|
|
12286
12295
|
}, Re = Q ? `${Q.UserFirstName} ${Q.UserLastName}` : "Unassigned";
|
|
12287
12296
|
if (!Q)
|
|
12288
12297
|
return /* @__PURE__ */ w(ot, { title: Re, arrow: !0, children: /* @__PURE__ */ w(
|
|
@@ -12324,7 +12333,7 @@ function xf({
|
|
|
12324
12333
|
}
|
|
12325
12334
|
}
|
|
12326
12335
|
function de() {
|
|
12327
|
-
h(null),
|
|
12336
|
+
h(null), y(null), m(null);
|
|
12328
12337
|
}
|
|
12329
12338
|
function ye(Q) {
|
|
12330
12339
|
const be = f;
|
|
@@ -12463,13 +12472,13 @@ function dS({
|
|
|
12463
12472
|
onUpdateChair: i,
|
|
12464
12473
|
onUpdateAdjournment: o
|
|
12465
12474
|
}) {
|
|
12466
|
-
const { getTownshipName: a } = mn(), c = un(() => e.length === 0 ? !1 : e.every((
|
|
12467
|
-
function f(
|
|
12468
|
-
return
|
|
12475
|
+
const { getTownshipName: a } = mn(), c = un(() => e.length === 0 ? !1 : e.every((y) => y.DateCompleted !== null), [e]), u = un(() => !t || e.length === 0 ? !1 : e.every((y) => tS(y, n)), [t, e]), h = un(() => e.length === 0 ? !1 : e.every((y) => Ni(y, n)), [e, n]);
|
|
12476
|
+
function f(y) {
|
|
12477
|
+
return y ? new Intl.DateTimeFormat("en-US", {
|
|
12469
12478
|
year: "numeric",
|
|
12470
12479
|
month: "2-digit",
|
|
12471
12480
|
day: "2-digit"
|
|
12472
|
-
}).format(new Date(
|
|
12481
|
+
}).format(new Date(y)) : "-";
|
|
12473
12482
|
}
|
|
12474
12483
|
return /* @__PURE__ */ w(Je, { className: "themed", children: t && /* @__PURE__ */ J(Ze, { spacing: 0, direction: "column", children: [
|
|
12475
12484
|
/* @__PURE__ */ w(Je, { children: /* @__PURE__ */ w(De, { variant: "h6", align: "center", gutterBottom: !0, children: `${a(t.MuniCode) || "Unknown Municipality"} (${t.MuniCode}) ${t.FirstChair || t.SecondChair ? "" : "- Unassigned"}` }) }),
|
|
@@ -12511,7 +12520,7 @@ function dS({
|
|
|
12511
12520
|
}
|
|
12512
12521
|
) }),
|
|
12513
12522
|
/* @__PURE__ */ J(Ze, { mt: 2, spacing: 1, children: [
|
|
12514
|
-
/* @__PURE__ */ w(De, { variant: "body1", children: t.Notes && t.Notes.map((
|
|
12523
|
+
/* @__PURE__ */ w(De, { variant: "body1", children: t.Notes && t.Notes.map((y) => y.Message).join(`
|
|
12515
12524
|
`) || "No notes provided." }),
|
|
12516
12525
|
/* @__PURE__ */ J(De, { variant: "body2", sx: { opacity: 0.85 }, children: [
|
|
12517
12526
|
/* @__PURE__ */ w("span", { children: "The hearing is " }),
|
|
@@ -12552,7 +12561,7 @@ function fS({
|
|
|
12552
12561
|
}) {
|
|
12553
12562
|
const [a, c] = we(!1), u = Tt([]), h = () => {
|
|
12554
12563
|
const f = Date.now();
|
|
12555
|
-
u.current = u.current.filter((
|
|
12564
|
+
u.current = u.current.filter((y) => f - y < 600), u.current.push(f), u.current.length >= 3 && (c(!0), u.current = []);
|
|
12556
12565
|
};
|
|
12557
12566
|
return /* @__PURE__ */ w(Tr, { children: /* @__PURE__ */ J(
|
|
12558
12567
|
Ah,
|
|
@@ -12823,14 +12832,14 @@ function mS({
|
|
|
12823
12832
|
setToggleStates: a,
|
|
12824
12833
|
alternateFieldLabelPrefix: c
|
|
12825
12834
|
}) {
|
|
12826
|
-
const [u, h] = we(Math.max(t.length, 1)), [f,
|
|
12835
|
+
const [u, h] = we(Math.max(t.length, 1)), [f, y] = we(t), b = Tt(null);
|
|
12827
12836
|
Ee(() => {
|
|
12828
|
-
|
|
12837
|
+
y(t);
|
|
12829
12838
|
}, [t]), Ee(() => {
|
|
12830
12839
|
h(Math.max(t.length, 1));
|
|
12831
12840
|
}, [t.length]);
|
|
12832
12841
|
const m = Bn(() => {
|
|
12833
|
-
if (h((U) => U + 1),
|
|
12842
|
+
if (h((U) => U + 1), y((U) => [...U, ""]), a && o) {
|
|
12834
12843
|
const U = [...o, !1];
|
|
12835
12844
|
a(U);
|
|
12836
12845
|
}
|
|
@@ -12839,7 +12848,7 @@ function mS({
|
|
|
12839
12848
|
}, 0);
|
|
12840
12849
|
}, [a, o]), A = Bn(
|
|
12841
12850
|
(U, z) => {
|
|
12842
|
-
|
|
12851
|
+
y((q) => {
|
|
12843
12852
|
const ie = [...q];
|
|
12844
12853
|
return ie[U] = z, ie;
|
|
12845
12854
|
});
|
|
@@ -12848,12 +12857,12 @@ function mS({
|
|
|
12848
12857
|
), S = Bn(() => {
|
|
12849
12858
|
const U = o ? [...o] : [];
|
|
12850
12859
|
e(f, U);
|
|
12851
|
-
}, [f, o, e]),
|
|
12860
|
+
}, [f, o, e]), D = Bn(
|
|
12852
12861
|
(U) => {
|
|
12853
12862
|
const z = [...f];
|
|
12854
12863
|
z.splice(U, 1);
|
|
12855
12864
|
const q = o ? [...o] : [];
|
|
12856
|
-
o && q.splice(U, 1),
|
|
12865
|
+
o && q.splice(U, 1), y(z), e(z, q), h(Math.max(z.length, 1));
|
|
12857
12866
|
},
|
|
12858
12867
|
[f, o, e]
|
|
12859
12868
|
), R = Bn(
|
|
@@ -12903,7 +12912,7 @@ function mS({
|
|
|
12903
12912
|
color: "error",
|
|
12904
12913
|
size: "small",
|
|
12905
12914
|
disabled: i === Te.EDIT || u <= 1,
|
|
12906
|
-
onClick: () =>
|
|
12915
|
+
onClick: () => D(z),
|
|
12907
12916
|
style: {
|
|
12908
12917
|
minWidth: 40,
|
|
12909
12918
|
boxShadow: "1px 1px 3px rgba(0,0,0,0.2)"
|
|
@@ -12963,16 +12972,16 @@ const vS = va(function({
|
|
|
12963
12972
|
Lifecycle: m.Lifecycle !== $t.UPLOADED && m.FirstChair ? $t.ASSIGNED : $t.SCHEDULED
|
|
12964
12973
|
});
|
|
12965
12974
|
}
|
|
12966
|
-
const
|
|
12975
|
+
const y = un(
|
|
12967
12976
|
() => r.map((m, A) => u[A] ? m.ParcelID : m.SCARIndexNumber),
|
|
12968
12977
|
[r, u]
|
|
12969
12978
|
), b = Bn(
|
|
12970
12979
|
(m, A) => {
|
|
12971
|
-
const S = m.map((
|
|
12980
|
+
const S = m.map((D, R) => {
|
|
12972
12981
|
const U = A ? A[R] : u[R];
|
|
12973
12982
|
return {
|
|
12974
12983
|
...r[R],
|
|
12975
|
-
...U ? { ParcelID:
|
|
12984
|
+
...U ? { ParcelID: D } : { SCARIndexNumber: D }
|
|
12976
12985
|
};
|
|
12977
12986
|
});
|
|
12978
12987
|
i(S);
|
|
@@ -13142,7 +13151,7 @@ const vS = va(function({
|
|
|
13142
13151
|
mS,
|
|
13143
13152
|
{
|
|
13144
13153
|
label: "Case IDs",
|
|
13145
|
-
textFields:
|
|
13154
|
+
textFields: y,
|
|
13146
13155
|
setTextFields: b,
|
|
13147
13156
|
fieldLabelPrefix: "SCAR ID",
|
|
13148
13157
|
alternateFieldLabelPrefix: "Parcel ID",
|
|
@@ -13213,13 +13222,13 @@ function yS({ evidence: t }) {
|
|
|
13213
13222
|
} catch {
|
|
13214
13223
|
return m.toLowerCase().split(",").map((A) => A.trim());
|
|
13215
13224
|
}
|
|
13216
|
-
}, i = r(n ? t.uploaded.Evidence : t?.Evidence), o = i.some((m) => m.includes("sales") || m.includes("unequal")), a = i.some((m) => m.includes("excessive") || m.includes("equity")), c = o || a, u = t?.uploaded?.UploadDate ? new Date(t.uploaded.UploadDate).toLocaleDateString() : "", h = t?.CreatedDate ? new Date(t.CreatedDate).toLocaleDateString() : "", f = t?.User ? e[t?.User] : null,
|
|
13225
|
+
}, i = r(n ? t.uploaded.Evidence : t?.Evidence), o = i.some((m) => m.includes("sales") || m.includes("unequal")), a = i.some((m) => m.includes("excessive") || m.includes("equity")), c = o || a, u = t?.uploaded?.UploadDate ? new Date(t.uploaded.UploadDate).toLocaleDateString() : "", h = t?.CreatedDate ? new Date(t.CreatedDate).toLocaleDateString() : "", f = t?.User ? e[t?.User] : null, y = f ? `${f.UserFirstName} ${f.UserLastName}` : "", b = (m) => {
|
|
13217
13226
|
if (!t?.ParcelID || !t?.Year) return "";
|
|
13218
13227
|
const S = {
|
|
13219
13228
|
sales: "sales",
|
|
13220
13229
|
equity: "equity"
|
|
13221
|
-
}[m],
|
|
13222
|
-
return `${
|
|
13230
|
+
}[m], D = "https://aventine-court-docs.s3.amazonaws.com", R = `residential/evidence/${t.Year}/${t.ParcelID}/${S}_comps_fnma.pdf`;
|
|
13231
|
+
return `${D}/${R}`;
|
|
13223
13232
|
};
|
|
13224
13233
|
return /* @__PURE__ */ J(Ze, { spacing: 1, direction: "column", children: [
|
|
13225
13234
|
o && /* @__PURE__ */ w(
|
|
@@ -13227,7 +13236,7 @@ function yS({ evidence: t }) {
|
|
|
13227
13236
|
{
|
|
13228
13237
|
label: "Sales Records",
|
|
13229
13238
|
url: b("sales"),
|
|
13230
|
-
user:
|
|
13239
|
+
user: y,
|
|
13231
13240
|
uploadDate: u,
|
|
13232
13241
|
createdDate: h,
|
|
13233
13242
|
isUploaded: !!n
|
|
@@ -13238,7 +13247,7 @@ function yS({ evidence: t }) {
|
|
|
13238
13247
|
{
|
|
13239
13248
|
label: "Equity Records",
|
|
13240
13249
|
url: b("equity"),
|
|
13241
|
-
user:
|
|
13250
|
+
user: y,
|
|
13242
13251
|
uploadDate: u,
|
|
13243
13252
|
createdDate: h,
|
|
13244
13253
|
isUploaded: !!n
|
|
@@ -13260,12 +13269,12 @@ const bS = va(function({
|
|
|
13260
13269
|
Municipality: u,
|
|
13261
13270
|
Negotiator: h,
|
|
13262
13271
|
SCARIndexNumber: f,
|
|
13263
|
-
VillageSCARIndexNumber:
|
|
13272
|
+
VillageSCARIndexNumber: y,
|
|
13264
13273
|
SCARDeterminationAction: b,
|
|
13265
13274
|
VillageSCARDeterminationAction: m,
|
|
13266
13275
|
SCARSettleDate: A,
|
|
13267
13276
|
SCARFileDate: S,
|
|
13268
|
-
VillageSCARSettleDate:
|
|
13277
|
+
VillageSCARSettleDate: D,
|
|
13269
13278
|
VillageSCARFileDate: R,
|
|
13270
13279
|
property_data: U,
|
|
13271
13280
|
evidence: z
|
|
@@ -13456,7 +13465,7 @@ const bS = va(function({
|
|
|
13456
13465
|
children: "Village SCAR Index #"
|
|
13457
13466
|
}
|
|
13458
13467
|
),
|
|
13459
|
-
/* @__PURE__ */ w(De, { variant: "body1", fontWeight: 500, mt: 0.25, children:
|
|
13468
|
+
/* @__PURE__ */ w(De, { variant: "body1", fontWeight: 500, mt: 0.25, children: y || "—" })
|
|
13460
13469
|
] }) }) }),
|
|
13461
13470
|
!n && /* @__PURE__ */ w(Ot, { size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ w(_n, { elevation: 0, sx: { height: "100%" }, children: /* @__PURE__ */ J(xn, { sx: { py: 1, px: 1.5, "&:last-child": { pb: 1 } }, children: [
|
|
13462
13471
|
/* @__PURE__ */ w(
|
|
@@ -13536,7 +13545,7 @@ const bS = va(function({
|
|
|
13536
13545
|
children: "Village SCAR Settle Date"
|
|
13537
13546
|
}
|
|
13538
13547
|
),
|
|
13539
|
-
/* @__PURE__ */ w(De, { variant: "body1", fontWeight: 500, mt: 0.25, children:
|
|
13548
|
+
/* @__PURE__ */ w(De, { variant: "body1", fontWeight: 500, mt: 0.25, children: D ? new Date(D).toLocaleDateString() : "—" })
|
|
13540
13549
|
] }) }) })
|
|
13541
13550
|
] })
|
|
13542
13551
|
]
|
|
@@ -13592,12 +13601,12 @@ function wS({
|
|
|
13592
13601
|
selectedCases: u,
|
|
13593
13602
|
updateCases: h,
|
|
13594
13603
|
deleteCases: f,
|
|
13595
|
-
isFetchingCases:
|
|
13604
|
+
isFetchingCases: y,
|
|
13596
13605
|
apiKey: b,
|
|
13597
13606
|
activeUser: m,
|
|
13598
13607
|
isAdmin: A
|
|
13599
13608
|
}) {
|
|
13600
|
-
const [S,
|
|
13609
|
+
const [S, D] = we(void 0), [R, U] = we([]), [z, q] = we(null);
|
|
13601
13610
|
Ee(() => {
|
|
13602
13611
|
t || (n(Te.DETAILS), q(null));
|
|
13603
13612
|
}, [t]), Ee(() => {
|
|
@@ -13605,9 +13614,9 @@ function wS({
|
|
|
13605
13614
|
}, [z]), Ee(() => {
|
|
13606
13615
|
e === Te.DETAILS && q(null);
|
|
13607
13616
|
}, [e]), Ee(() => {
|
|
13608
|
-
e === Te.EDIT && i && (
|
|
13617
|
+
e === Te.EDIT && i && (D(i), U(u));
|
|
13609
13618
|
}, [e, i, u]), Ee(() => {
|
|
13610
|
-
e === Te.CREATE && (
|
|
13619
|
+
e === Te.CREATE && (D({
|
|
13611
13620
|
CourtDateID: 0,
|
|
13612
13621
|
CourtDate: i?.CourtDate ? new Date(i.CourtDate) : /* @__PURE__ */ new Date(),
|
|
13613
13622
|
MuniCode: "",
|
|
@@ -13701,7 +13710,7 @@ function wS({
|
|
|
13701
13710
|
);
|
|
13702
13711
|
if (Re) {
|
|
13703
13712
|
const Oe = { ...S, CourtDateID: Re };
|
|
13704
|
-
|
|
13713
|
+
D(Oe), await pi(Re, Oe, b), o(Oe), h({ [Re.toString()]: R });
|
|
13705
13714
|
}
|
|
13706
13715
|
r(!1);
|
|
13707
13716
|
}
|
|
@@ -13765,7 +13774,7 @@ function wS({
|
|
|
13765
13774
|
selectedCourtDate: i,
|
|
13766
13775
|
cases: u,
|
|
13767
13776
|
isVillage: Ar(i ? i.MuniCode : ""),
|
|
13768
|
-
isFetchingCases:
|
|
13777
|
+
isFetchingCases: y,
|
|
13769
13778
|
onUpdateChair: A ? ie : void 0,
|
|
13770
13779
|
onUpdateAdjournment: A ? te : void 0
|
|
13771
13780
|
}
|
|
@@ -13774,7 +13783,7 @@ function wS({
|
|
|
13774
13783
|
nS,
|
|
13775
13784
|
{
|
|
13776
13785
|
cases: u,
|
|
13777
|
-
isFetchingCases:
|
|
13786
|
+
isFetchingCases: y,
|
|
13778
13787
|
filterCtx: a,
|
|
13779
13788
|
setFilterCtx: c,
|
|
13780
13789
|
setClickedCase: q,
|
|
@@ -13800,7 +13809,7 @@ function wS({
|
|
|
13800
13809
|
vS,
|
|
13801
13810
|
{
|
|
13802
13811
|
edited: S,
|
|
13803
|
-
setEdited:
|
|
13812
|
+
setEdited: D,
|
|
13804
13813
|
editedCases: R,
|
|
13805
13814
|
setEditedCases: U,
|
|
13806
13815
|
modalMode: e,
|
|
@@ -13867,7 +13876,7 @@ function SS() {
|
|
|
13867
13876
|
}).apply(this, arguments);
|
|
13868
13877
|
};
|
|
13869
13878
|
function i(s, l, d) {
|
|
13870
|
-
for (var p, g = 0,
|
|
13879
|
+
for (var p, g = 0, v = l.length; g < v; g++) !p && g in l || ((p = p || Array.prototype.slice.call(l, 0, g))[g] = l[g]);
|
|
13871
13880
|
return s.concat(p || Array.prototype.slice.call(l));
|
|
13872
13881
|
}
|
|
13873
13882
|
var o = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : HE, a = Object.keys, c = Array.isArray;
|
|
@@ -13878,7 +13887,7 @@ function SS() {
|
|
|
13878
13887
|
}
|
|
13879
13888
|
typeof Promise > "u" || o.Promise || (o.Promise = Promise);
|
|
13880
13889
|
var h = Object.getPrototypeOf, f = {}.hasOwnProperty;
|
|
13881
|
-
function
|
|
13890
|
+
function y(s, l) {
|
|
13882
13891
|
return f.call(s, l);
|
|
13883
13892
|
}
|
|
13884
13893
|
function b(s, l) {
|
|
@@ -13888,14 +13897,14 @@ function SS() {
|
|
|
13888
13897
|
}
|
|
13889
13898
|
var m = Object.defineProperty;
|
|
13890
13899
|
function A(s, l, d, p) {
|
|
13891
|
-
m(s, l, u(d &&
|
|
13900
|
+
m(s, l, u(d && y(d, "get") && typeof d.get == "function" ? { get: d.get, set: d.set, configurable: !0 } : { value: d, configurable: !0, writable: !0 }, p));
|
|
13892
13901
|
}
|
|
13893
13902
|
function S(s) {
|
|
13894
13903
|
return { from: function(l) {
|
|
13895
13904
|
return s.prototype = Object.create(l.prototype), A(s.prototype, "constructor", s), { extend: b.bind(null, s.prototype) };
|
|
13896
13905
|
} };
|
|
13897
13906
|
}
|
|
13898
|
-
var
|
|
13907
|
+
var D = Object.getOwnPropertyDescriptor, R = [].slice;
|
|
13899
13908
|
function U(s, l, d) {
|
|
13900
13909
|
return R.call(s, l, d);
|
|
13901
13910
|
}
|
|
@@ -13909,19 +13918,19 @@ function SS() {
|
|
|
13909
13918
|
o.setImmediate ? setImmediate(s) : setTimeout(s, 0);
|
|
13910
13919
|
}
|
|
13911
13920
|
function te(s, l) {
|
|
13912
|
-
if (typeof l == "string" &&
|
|
13921
|
+
if (typeof l == "string" && y(s, l)) return s[l];
|
|
13913
13922
|
if (!l) return s;
|
|
13914
13923
|
if (typeof l != "string") {
|
|
13915
13924
|
for (var d = [], p = 0, g = l.length; p < g; ++p) {
|
|
13916
|
-
var
|
|
13917
|
-
d.push(
|
|
13925
|
+
var v = te(s, l[p]);
|
|
13926
|
+
d.push(v);
|
|
13918
13927
|
}
|
|
13919
13928
|
return d;
|
|
13920
13929
|
}
|
|
13921
13930
|
var E = l.indexOf(".");
|
|
13922
13931
|
if (E !== -1) {
|
|
13923
|
-
var
|
|
13924
|
-
return
|
|
13932
|
+
var _ = s[l.substr(0, E)];
|
|
13933
|
+
return _ == null ? void 0 : te(_, l.substr(E + 1));
|
|
13925
13934
|
}
|
|
13926
13935
|
}
|
|
13927
13936
|
function de(s, l, d) {
|
|
@@ -13929,13 +13938,13 @@ function SS() {
|
|
|
13929
13938
|
q(typeof d != "string" && "length" in d);
|
|
13930
13939
|
for (var p = 0, g = l.length; p < g; ++p) de(s, l[p], d[p]);
|
|
13931
13940
|
} else {
|
|
13932
|
-
var
|
|
13933
|
-
|
|
13941
|
+
var v, E, _ = l.indexOf(".");
|
|
13942
|
+
_ !== -1 ? (v = l.substr(0, _), (E = l.substr(_ + 1)) === "" ? d === void 0 ? c(s) && !isNaN(parseInt(v)) ? s.splice(v, 1) : delete s[v] : s[v] = d : de(_ = !(_ = s[v]) || !y(s, v) ? s[v] = {} : _, E, d)) : d === void 0 ? c(s) && !isNaN(parseInt(l)) ? s.splice(l, 1) : delete s[l] : s[l] = d;
|
|
13934
13943
|
}
|
|
13935
13944
|
}
|
|
13936
13945
|
function ye(s) {
|
|
13937
13946
|
var l, d = {};
|
|
13938
|
-
for (l in s)
|
|
13947
|
+
for (l in s) y(s, l) && (d[l] = s[l]);
|
|
13939
13948
|
return d;
|
|
13940
13949
|
}
|
|
13941
13950
|
var Q = [].concat;
|
|
@@ -13958,11 +13967,11 @@ function SS() {
|
|
|
13958
13967
|
if (p) return p;
|
|
13959
13968
|
if (c(d)) {
|
|
13960
13969
|
p = [], Re.set(d, p);
|
|
13961
|
-
for (var g = 0,
|
|
13970
|
+
for (var g = 0, v = d.length; g < v; ++g) p.push(l(d[g]));
|
|
13962
13971
|
} else if (oe.has(d.constructor)) p = d;
|
|
13963
13972
|
else {
|
|
13964
|
-
var E,
|
|
13965
|
-
for (E in p =
|
|
13973
|
+
var E, _ = h(d);
|
|
13974
|
+
for (E in p = _ === Object.prototype ? {} : Object.create(_), Re.set(d, p), d) y(d, E) && (p[E] = l(d[E]));
|
|
13966
13975
|
}
|
|
13967
13976
|
return p;
|
|
13968
13977
|
})(s), Re = null, s;
|
|
@@ -14029,9 +14038,9 @@ function SS() {
|
|
|
14029
14038
|
return s[l] = l + "Error", s;
|
|
14030
14039
|
}, {}), qt = Ve, ue = rn.reduce(function(s, l) {
|
|
14031
14040
|
var d = l + "Error";
|
|
14032
|
-
function p(g,
|
|
14033
|
-
this.name = d, g ? typeof g == "string" ? (this.message = "".concat(g).concat(
|
|
14034
|
-
` +
|
|
14041
|
+
function p(g, v) {
|
|
14042
|
+
this.name = d, g ? typeof g == "string" ? (this.message = "".concat(g).concat(v ? `
|
|
14043
|
+
` + v : ""), this.inner = v || null) : typeof g == "object" && (this.message = "".concat(g.name, " ").concat(g.message), this.inner = g) : (this.message = Ce[l] || d, this.inner = null);
|
|
14035
14044
|
}
|
|
14036
14045
|
return S(p).from(qt), s[l] = p, s;
|
|
14037
14046
|
}, {});
|
|
@@ -14062,8 +14071,8 @@ function SS() {
|
|
|
14062
14071
|
d !== void 0 && (arguments[0] = d);
|
|
14063
14072
|
var p = this.onsuccess, g = this.onerror;
|
|
14064
14073
|
this.onsuccess = null, this.onerror = null;
|
|
14065
|
-
var
|
|
14066
|
-
return p && (this.onsuccess = this.onsuccess ? Ct(p, this.onsuccess) : p), g && (this.onerror = this.onerror ? Ct(g, this.onerror) : g),
|
|
14074
|
+
var v = l.apply(this, arguments);
|
|
14075
|
+
return p && (this.onsuccess = this.onsuccess ? Ct(p, this.onsuccess) : p), g && (this.onerror = this.onerror ? Ct(g, this.onerror) : g), v !== void 0 ? v : d;
|
|
14067
14076
|
};
|
|
14068
14077
|
}
|
|
14069
14078
|
function St(s, l) {
|
|
@@ -14077,8 +14086,8 @@ function SS() {
|
|
|
14077
14086
|
return s === Ie ? l : function(d) {
|
|
14078
14087
|
var p = s.apply(this, arguments);
|
|
14079
14088
|
u(d, p);
|
|
14080
|
-
var g = this.onsuccess,
|
|
14081
|
-
return this.onsuccess = null, this.onerror = null, d = l.apply(this, arguments), g && (this.onsuccess = this.onsuccess ? Ct(g, this.onsuccess) : g),
|
|
14089
|
+
var g = this.onsuccess, v = this.onerror;
|
|
14090
|
+
return this.onsuccess = null, this.onerror = null, d = l.apply(this, arguments), g && (this.onsuccess = this.onsuccess ? Ct(g, this.onsuccess) : g), v && (this.onerror = this.onerror ? Ct(v, this.onerror) : v), p === void 0 ? d === void 0 ? void 0 : d : u(p, d);
|
|
14082
14091
|
};
|
|
14083
14092
|
}
|
|
14084
14093
|
function yn(s, l) {
|
|
@@ -14090,9 +14099,9 @@ function SS() {
|
|
|
14090
14099
|
return s === Ie ? l : function() {
|
|
14091
14100
|
var d = s.apply(this, arguments);
|
|
14092
14101
|
if (d && typeof d.then == "function") {
|
|
14093
|
-
for (var p = this, g = arguments.length,
|
|
14102
|
+
for (var p = this, g = arguments.length, v = new Array(g); g--; ) v[g] = arguments[g];
|
|
14094
14103
|
return d.then(function() {
|
|
14095
|
-
return l.apply(p,
|
|
14104
|
+
return l.apply(p, v);
|
|
14096
14105
|
});
|
|
14097
14106
|
}
|
|
14098
14107
|
return l.apply(this, arguments);
|
|
@@ -14121,25 +14130,25 @@ function SS() {
|
|
|
14121
14130
|
}
|
|
14122
14131
|
this._state = null, this._value = null, ++l.ref, (function d(p, g) {
|
|
14123
14132
|
try {
|
|
14124
|
-
g(function(
|
|
14133
|
+
g(function(v) {
|
|
14125
14134
|
if (p._state === null) {
|
|
14126
|
-
if (
|
|
14135
|
+
if (v === p) throw new TypeError("A promise cannot be resolved with itself.");
|
|
14127
14136
|
var E = p._lib && Se();
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
}) : (p._state = !0, p._value =
|
|
14137
|
+
v && typeof v.then == "function" ? d(p, function(_, T) {
|
|
14138
|
+
v instanceof re ? v._then(_, T) : v.then(_, T);
|
|
14139
|
+
}) : (p._state = !0, p._value = v, qn(p)), E && Pe();
|
|
14131
14140
|
}
|
|
14132
14141
|
}, En.bind(null, p));
|
|
14133
|
-
} catch (
|
|
14134
|
-
En(p,
|
|
14142
|
+
} catch (v) {
|
|
14143
|
+
En(p, v);
|
|
14135
14144
|
}
|
|
14136
14145
|
})(this, s);
|
|
14137
14146
|
}
|
|
14138
14147
|
var wn = { get: function() {
|
|
14139
14148
|
var s = fe, l = Ft;
|
|
14140
14149
|
function d(p, g) {
|
|
14141
|
-
var
|
|
14142
|
-
Gn(
|
|
14150
|
+
var v = this, E = !s.global && (s !== fe || l !== Ft), _ = E && !Ye(), T = new re(function(k, N) {
|
|
14151
|
+
Gn(v, new Ln(ni(p, s, E, _), ni(g, s, E, _), k, N, s));
|
|
14143
14152
|
});
|
|
14144
14153
|
return this._consoleTask && (T._consoleTask = this._consoleTask), T;
|
|
14145
14154
|
}
|
|
@@ -14179,11 +14188,11 @@ function SS() {
|
|
|
14179
14188
|
var p, g = l._value;
|
|
14180
14189
|
!l._state && bn.length && (bn = []), p = he && l._consoleTask ? l._consoleTask.run(function() {
|
|
14181
14190
|
return s(g);
|
|
14182
|
-
}) : s(g), l._state || bn.indexOf(g) !== -1 || (function(
|
|
14183
|
-
for (var E = Jt.length; E; ) if (Jt[--E]._value ===
|
|
14191
|
+
}) : s(g), l._state || bn.indexOf(g) !== -1 || (function(v) {
|
|
14192
|
+
for (var E = Jt.length; E; ) if (Jt[--E]._value === v._value) return Jt.splice(E, 1);
|
|
14184
14193
|
})(l), d.resolve(p);
|
|
14185
|
-
} catch (
|
|
14186
|
-
d.reject(
|
|
14194
|
+
} catch (v) {
|
|
14195
|
+
d.reject(v);
|
|
14187
14196
|
} finally {
|
|
14188
14197
|
--Gt == 0 && It(), --d.psd.ref || d.psd.finalize();
|
|
14189
14198
|
}
|
|
@@ -14223,8 +14232,8 @@ function SS() {
|
|
|
14223
14232
|
var p = Se(), g = fe;
|
|
14224
14233
|
try {
|
|
14225
14234
|
return Sn(d, !0), s.apply(this, arguments);
|
|
14226
|
-
} catch (
|
|
14227
|
-
l && l(
|
|
14235
|
+
} catch (v) {
|
|
14236
|
+
l && l(v);
|
|
14228
14237
|
} finally {
|
|
14229
14238
|
Sn(g, !1), p && Pe();
|
|
14230
14239
|
}
|
|
@@ -14253,19 +14262,19 @@ function SS() {
|
|
|
14253
14262
|
}, timeout: function(s, l) {
|
|
14254
14263
|
var d = this;
|
|
14255
14264
|
return s < 1 / 0 ? new re(function(p, g) {
|
|
14256
|
-
var
|
|
14265
|
+
var v = setTimeout(function() {
|
|
14257
14266
|
return g(new ue.Timeout(l));
|
|
14258
14267
|
}, s);
|
|
14259
|
-
d.then(p, g).finally(clearTimeout.bind(null,
|
|
14268
|
+
d.then(p, g).finally(clearTimeout.bind(null, v));
|
|
14260
14269
|
}) : this;
|
|
14261
14270
|
} }), typeof Symbol < "u" && Symbol.toStringTag && A(re.prototype, Symbol.toStringTag, "Dexie.Promise"), rt.env = ti(), b(re, { all: function() {
|
|
14262
14271
|
var s = ve.apply(null, arguments).map(cn);
|
|
14263
14272
|
return new re(function(l, d) {
|
|
14264
14273
|
s.length === 0 && l([]);
|
|
14265
14274
|
var p = s.length;
|
|
14266
|
-
s.forEach(function(g,
|
|
14275
|
+
s.forEach(function(g, v) {
|
|
14267
14276
|
return re.resolve(g).then(function(E) {
|
|
14268
|
-
s[
|
|
14277
|
+
s[v] = E, --p || l(s);
|
|
14269
14278
|
}, d);
|
|
14270
14279
|
});
|
|
14271
14280
|
});
|
|
@@ -14296,14 +14305,14 @@ function SS() {
|
|
|
14296
14305
|
sn = s;
|
|
14297
14306
|
} }, follow: function(s, l) {
|
|
14298
14307
|
return new re(function(d, p) {
|
|
14299
|
-
return dt(function(g,
|
|
14308
|
+
return dt(function(g, v) {
|
|
14300
14309
|
var E = fe;
|
|
14301
|
-
E.unhandleds = [], E.onunhandled =
|
|
14302
|
-
var
|
|
14303
|
-
|
|
14304
|
-
T.unhandleds.length === 0 ? g() :
|
|
14310
|
+
E.unhandleds = [], E.onunhandled = v, E.finalize = Ct(function() {
|
|
14311
|
+
var _, T = this;
|
|
14312
|
+
_ = function() {
|
|
14313
|
+
T.unhandleds.length === 0 ? g() : v(T.unhandleds[0]);
|
|
14305
14314
|
}, ln.push(function k() {
|
|
14306
|
-
|
|
14315
|
+
_(), ln.splice(ln.indexOf(k), 1);
|
|
14307
14316
|
}), ++Gt, lt(function() {
|
|
14308
14317
|
--Gt == 0 && It();
|
|
14309
14318
|
}, []);
|
|
@@ -14315,11 +14324,11 @@ function SS() {
|
|
|
14315
14324
|
return new re(function(l) {
|
|
14316
14325
|
s.length === 0 && l([]);
|
|
14317
14326
|
var d = s.length, p = new Array(d);
|
|
14318
|
-
s.forEach(function(g,
|
|
14327
|
+
s.forEach(function(g, v) {
|
|
14319
14328
|
return re.resolve(g).then(function(E) {
|
|
14320
|
-
return p[
|
|
14329
|
+
return p[v] = { status: "fulfilled", value: E };
|
|
14321
14330
|
}, function(E) {
|
|
14322
|
-
return p[
|
|
14331
|
+
return p[v] = { status: "rejected", reason: E };
|
|
14323
14332
|
}).then(function() {
|
|
14324
14333
|
return --d || l(p);
|
|
14325
14334
|
});
|
|
@@ -14330,21 +14339,21 @@ function SS() {
|
|
|
14330
14339
|
return new re(function(l, d) {
|
|
14331
14340
|
s.length === 0 && d(new AggregateError([]));
|
|
14332
14341
|
var p = s.length, g = new Array(p);
|
|
14333
|
-
s.forEach(function(
|
|
14334
|
-
return re.resolve(
|
|
14335
|
-
return l(
|
|
14336
|
-
}, function(
|
|
14337
|
-
g[E] =
|
|
14342
|
+
s.forEach(function(v, E) {
|
|
14343
|
+
return re.resolve(v).then(function(_) {
|
|
14344
|
+
return l(_);
|
|
14345
|
+
}, function(_) {
|
|
14346
|
+
g[E] = _, --p || d(new AggregateError(g));
|
|
14338
14347
|
});
|
|
14339
14348
|
});
|
|
14340
14349
|
});
|
|
14341
14350
|
}), ut.withResolvers && (re.withResolvers = ut.withResolvers));
|
|
14342
14351
|
var pe = { awaits: 0, echoes: 0, id: 0 }, Ae = 0, Ge = [], gt = 0, Ft = 0, tn = 0;
|
|
14343
14352
|
function dt(s, l, d, p) {
|
|
14344
|
-
var g = fe,
|
|
14345
|
-
return
|
|
14353
|
+
var g = fe, v = Object.create(g);
|
|
14354
|
+
return v.parent = g, v.ref = 0, v.global = !1, v.id = ++tn, rt.env, v.env = xt ? { Promise: re, PromiseProp: { value: re, configurable: !0, writable: !0 }, all: re.all, race: re.race, allSettled: re.allSettled, any: re.any, resolve: re.resolve, reject: re.reject } : {}, l && u(v, l), ++g.ref, v.finalize = function() {
|
|
14346
14355
|
--this.parent.ref || this.parent.finalize();
|
|
14347
|
-
}, p = An(
|
|
14356
|
+
}, p = An(v, s, d, p), v.ref === 0 && v.finalize(), p;
|
|
14348
14357
|
}
|
|
14349
14358
|
function Dt() {
|
|
14350
14359
|
return pe.id || (pe.id = ++Ae), ++pe.awaits, pe.echoes += Fe, pe.id;
|
|
@@ -14374,11 +14383,11 @@ function SS() {
|
|
|
14374
14383
|
return xt ? { Promise: s, PromiseProp: Object.getOwnPropertyDescriptor(o, "Promise"), all: s.all, race: s.race, allSettled: s.allSettled, any: s.any, resolve: s.resolve, reject: s.reject } : {};
|
|
14375
14384
|
}
|
|
14376
14385
|
function An(s, l, d, p, g) {
|
|
14377
|
-
var
|
|
14386
|
+
var v = fe;
|
|
14378
14387
|
try {
|
|
14379
14388
|
return Sn(s, !0), l(d, p, g);
|
|
14380
14389
|
} finally {
|
|
14381
|
-
Sn(
|
|
14390
|
+
Sn(v, !1);
|
|
14382
14391
|
}
|
|
14383
14392
|
}
|
|
14384
14393
|
function ni(s, l, d, p) {
|
|
@@ -14423,17 +14432,17 @@ function SS() {
|
|
|
14423
14432
|
case "string":
|
|
14424
14433
|
return l < s ? 1 : s < l ? -1 : 0;
|
|
14425
14434
|
case "binary":
|
|
14426
|
-
return (function(g,
|
|
14427
|
-
for (var E = g.length,
|
|
14428
|
-
return E ===
|
|
14435
|
+
return (function(g, v) {
|
|
14436
|
+
for (var E = g.length, _ = v.length, T = E < _ ? E : _, k = 0; k < T; ++k) if (g[k] !== v[k]) return g[k] < v[k] ? -1 : 1;
|
|
14437
|
+
return E === _ ? 0 : E < _ ? -1 : 1;
|
|
14429
14438
|
})(ll(s), ll(l));
|
|
14430
14439
|
case "Array":
|
|
14431
|
-
return (function(g,
|
|
14432
|
-
for (var E = g.length,
|
|
14433
|
-
var N = ze(g[k],
|
|
14440
|
+
return (function(g, v) {
|
|
14441
|
+
for (var E = g.length, _ = v.length, T = E < _ ? E : _, k = 0; k < T; ++k) {
|
|
14442
|
+
var N = ze(g[k], v[k]);
|
|
14434
14443
|
if (N !== 0) return N;
|
|
14435
14444
|
}
|
|
14436
|
-
return E ===
|
|
14445
|
+
return E === _ ? 0 : E < _ ? -1 : 1;
|
|
14437
14446
|
})(s, l);
|
|
14438
14447
|
}
|
|
14439
14448
|
} catch {
|
|
@@ -14449,8 +14458,8 @@ function SS() {
|
|
|
14449
14458
|
}
|
|
14450
14459
|
function ji(s, l, d) {
|
|
14451
14460
|
var p = s.schema.yProps;
|
|
14452
|
-
return p ? (l && 0 < d.numFailures && (l = l.filter(function(g,
|
|
14453
|
-
return !d.failures[
|
|
14461
|
+
return p ? (l && 0 < d.numFailures && (l = l.filter(function(g, v) {
|
|
14462
|
+
return !d.failures[v];
|
|
14454
14463
|
})), Promise.all(p.map(function(g) {
|
|
14455
14464
|
return g = g.updatesTable, l ? s.db.table(g).where("k").anyOf(l).delete() : s.db.table(g).clear();
|
|
14456
14465
|
})).then(function() {
|
|
@@ -14489,19 +14498,19 @@ function SS() {
|
|
|
14489
14498
|
this["@@propmod"] = s;
|
|
14490
14499
|
}
|
|
14491
14500
|
function ul(s, l) {
|
|
14492
|
-
for (var d = a(l), p = d.length, g = !1,
|
|
14493
|
-
var E = d[
|
|
14494
|
-
|
|
14501
|
+
for (var d = a(l), p = d.length, g = !1, v = 0; v < p; ++v) {
|
|
14502
|
+
var E = d[v], _ = l[E], T = te(s, E);
|
|
14503
|
+
_ instanceof ri ? (de(s, E, _.execute(T)), g = !0) : T !== _ && (de(s, E, _), g = !0);
|
|
14495
14504
|
}
|
|
14496
14505
|
return g;
|
|
14497
14506
|
}
|
|
14498
14507
|
var dl = (it.prototype._trans = function(s, l, d) {
|
|
14499
|
-
var p = this._tx || fe.trans, g = this.name,
|
|
14508
|
+
var p = this._tx || fe.trans, g = this.name, v = he && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(s === "readonly" ? "read" : "write", " ").concat(this.name));
|
|
14500
14509
|
function E(k, N, x) {
|
|
14501
14510
|
if (!x.schema[g]) throw new ue.NotFound("Table " + g + " not part of transaction");
|
|
14502
14511
|
return l(x.idbtrans, x);
|
|
14503
14512
|
}
|
|
14504
|
-
var
|
|
14513
|
+
var _ = Se();
|
|
14505
14514
|
try {
|
|
14506
14515
|
var T = p && p.db._novip === this.db._novip ? p === fe.trans ? p._promise(s, E, d) : dt(function() {
|
|
14507
14516
|
return p._promise(s, E, d);
|
|
@@ -14538,11 +14547,11 @@ function SS() {
|
|
|
14538
14547
|
return k(N, x, L, I);
|
|
14539
14548
|
});
|
|
14540
14549
|
})(this.db, s, [this.name], E);
|
|
14541
|
-
return
|
|
14550
|
+
return v && (T._consoleTask = v, T = T.catch(function(k) {
|
|
14542
14551
|
return console.trace(k), ft(k);
|
|
14543
14552
|
})), T;
|
|
14544
14553
|
} finally {
|
|
14545
|
-
|
|
14554
|
+
_ && Pe();
|
|
14546
14555
|
}
|
|
14547
14556
|
}, it.prototype.get = function(s, l) {
|
|
14548
14557
|
var d = this;
|
|
@@ -14556,27 +14565,27 @@ function SS() {
|
|
|
14556
14565
|
if (c(s)) return new this.db.WhereClause(this, "[".concat(s.join("+"), "]"));
|
|
14557
14566
|
var l = a(s);
|
|
14558
14567
|
if (l.length === 1) return this.where(l[0]).equals(s[l[0]]);
|
|
14559
|
-
var d = this.schema.indexes.concat(this.schema.primKey).filter(function(
|
|
14560
|
-
if (
|
|
14561
|
-
return 0 <=
|
|
14568
|
+
var d = this.schema.indexes.concat(this.schema.primKey).filter(function(_) {
|
|
14569
|
+
if (_.compound && l.every(function(k) {
|
|
14570
|
+
return 0 <= _.keyPath.indexOf(k);
|
|
14562
14571
|
})) {
|
|
14563
|
-
for (var T = 0; T < l.length; ++T) if (l.indexOf(
|
|
14572
|
+
for (var T = 0; T < l.length; ++T) if (l.indexOf(_.keyPath[T]) === -1) return !1;
|
|
14564
14573
|
return !0;
|
|
14565
14574
|
}
|
|
14566
14575
|
return !1;
|
|
14567
|
-
}).sort(function(
|
|
14568
|
-
return
|
|
14576
|
+
}).sort(function(_, T) {
|
|
14577
|
+
return _.keyPath.length - T.keyPath.length;
|
|
14569
14578
|
})[0];
|
|
14570
14579
|
if (d && this.db._maxKey !== Ue) {
|
|
14571
|
-
var
|
|
14572
|
-
return this.where(
|
|
14580
|
+
var v = d.keyPath.slice(0, l.length);
|
|
14581
|
+
return this.where(v).equals(v.map(function(T) {
|
|
14573
14582
|
return s[T];
|
|
14574
14583
|
}));
|
|
14575
14584
|
}
|
|
14576
14585
|
!d && he && console.warn("The query ".concat(JSON.stringify(s), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(l.join("+"), "]"));
|
|
14577
14586
|
var p = this.schema.idxByName;
|
|
14578
|
-
function g(
|
|
14579
|
-
return ze(
|
|
14587
|
+
function g(_, T) {
|
|
14588
|
+
return ze(_, T) === 0;
|
|
14580
14589
|
}
|
|
14581
14590
|
var E = l.reduce(function(x, T) {
|
|
14582
14591
|
var k = x[0], N = x[1], x = p[T], L = s[T];
|
|
@@ -14587,8 +14596,8 @@ function SS() {
|
|
|
14587
14596
|
} : function(I) {
|
|
14588
14597
|
return g(L, te(I, T));
|
|
14589
14598
|
}) : N];
|
|
14590
|
-
}, [null, null]),
|
|
14591
|
-
return
|
|
14599
|
+
}, [null, null]), v = E[0], E = E[1];
|
|
14600
|
+
return v ? this.where(v.name).equals(s[v.keyPath]).filter(E) : d ? this.filter(E) : this.where(l).equals("");
|
|
14592
14601
|
}, it.prototype.filter = function(s) {
|
|
14593
14602
|
return this.toCollection().and(s);
|
|
14594
14603
|
}, it.prototype.count = function(s) {
|
|
@@ -14623,60 +14632,60 @@ function SS() {
|
|
|
14623
14632
|
}, enumerable: !1, configurable: !0 }), g.prototype.table = function() {
|
|
14624
14633
|
return p;
|
|
14625
14634
|
}, s = g);
|
|
14626
|
-
for (var
|
|
14627
|
-
return
|
|
14635
|
+
for (var v = /* @__PURE__ */ new Set(), E = s.prototype; E; E = h(E)) Object.getOwnPropertyNames(E).forEach(function(T) {
|
|
14636
|
+
return v.add(T);
|
|
14628
14637
|
});
|
|
14629
|
-
function
|
|
14638
|
+
function _(T) {
|
|
14630
14639
|
if (!T) return T;
|
|
14631
14640
|
var k, N = Object.create(s.prototype);
|
|
14632
|
-
for (k in T) if (!
|
|
14641
|
+
for (k in T) if (!v.has(k)) try {
|
|
14633
14642
|
N[k] = T[k];
|
|
14634
14643
|
} catch {
|
|
14635
14644
|
}
|
|
14636
14645
|
return N;
|
|
14637
14646
|
}
|
|
14638
|
-
return this.schema.readHook && this.hook.reading.unsubscribe(this.schema.readHook), this.schema.readHook =
|
|
14647
|
+
return this.schema.readHook && this.hook.reading.unsubscribe(this.schema.readHook), this.schema.readHook = _, this.hook("reading", _), s;
|
|
14639
14648
|
}, it.prototype.defineClass = function() {
|
|
14640
14649
|
return this.mapToClass(function(s) {
|
|
14641
14650
|
u(this, s);
|
|
14642
14651
|
});
|
|
14643
14652
|
}, it.prototype.add = function(s, l) {
|
|
14644
|
-
var d = this, p = this.schema.primKey, g = p.auto,
|
|
14645
|
-
return
|
|
14646
|
-
return d.core.mutate({ trans:
|
|
14647
|
-
}).then(function(
|
|
14648
|
-
return
|
|
14649
|
-
}).then(function(
|
|
14650
|
-
if (
|
|
14651
|
-
de(s,
|
|
14653
|
+
var d = this, p = this.schema.primKey, g = p.auto, v = p.keyPath, E = s;
|
|
14654
|
+
return v && g && (E = Li(v)(s)), this._trans("readwrite", function(_) {
|
|
14655
|
+
return d.core.mutate({ trans: _, type: "add", keys: l != null ? [l] : null, values: [E] });
|
|
14656
|
+
}).then(function(_) {
|
|
14657
|
+
return _.numFailures ? re.reject(_.failures[0]) : _.lastResult;
|
|
14658
|
+
}).then(function(_) {
|
|
14659
|
+
if (v) try {
|
|
14660
|
+
de(s, v, _);
|
|
14652
14661
|
} catch {
|
|
14653
14662
|
}
|
|
14654
|
-
return
|
|
14663
|
+
return _;
|
|
14655
14664
|
});
|
|
14656
14665
|
}, it.prototype.upsert = function(s, l) {
|
|
14657
14666
|
var d = this, p = this.schema.primKey.keyPath;
|
|
14658
14667
|
return this._trans("readwrite", function(g) {
|
|
14659
|
-
return d.core.get({ trans: g, key: s }).then(function(
|
|
14660
|
-
var E =
|
|
14661
|
-
return ul(E, l), p && de(E, p, s), d.core.mutate({ trans: g, type: "put", values: [E], keys: [s], upsert: !0, updates: { keys: [s], changeSpecs: [l] } }).then(function(
|
|
14662
|
-
return
|
|
14668
|
+
return d.core.get({ trans: g, key: s }).then(function(v) {
|
|
14669
|
+
var E = v ?? {};
|
|
14670
|
+
return ul(E, l), p && de(E, p, s), d.core.mutate({ trans: g, type: "put", values: [E], keys: [s], upsert: !0, updates: { keys: [s], changeSpecs: [l] } }).then(function(_) {
|
|
14671
|
+
return _.numFailures ? re.reject(_.failures[0]) : !!v;
|
|
14663
14672
|
});
|
|
14664
14673
|
});
|
|
14665
14674
|
});
|
|
14666
14675
|
}, it.prototype.update = function(s, l) {
|
|
14667
14676
|
return typeof s != "object" || c(s) ? this.where(":id").equals(s).modify(l) : (s = te(s, this.schema.primKey.keyPath), s === void 0 ? ft(new ue.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(s).modify(l));
|
|
14668
14677
|
}, it.prototype.put = function(s, l) {
|
|
14669
|
-
var d = this, p = this.schema.primKey, g = p.auto,
|
|
14670
|
-
return
|
|
14671
|
-
return d.core.mutate({ trans:
|
|
14672
|
-
}).then(function(
|
|
14673
|
-
return
|
|
14674
|
-
}).then(function(
|
|
14675
|
-
if (
|
|
14676
|
-
de(s,
|
|
14678
|
+
var d = this, p = this.schema.primKey, g = p.auto, v = p.keyPath, E = s;
|
|
14679
|
+
return v && g && (E = Li(v)(s)), this._trans("readwrite", function(_) {
|
|
14680
|
+
return d.core.mutate({ trans: _, type: "put", values: [E], keys: l != null ? [l] : null });
|
|
14681
|
+
}).then(function(_) {
|
|
14682
|
+
return _.numFailures ? re.reject(_.failures[0]) : _.lastResult;
|
|
14683
|
+
}).then(function(_) {
|
|
14684
|
+
if (v) try {
|
|
14685
|
+
de(s, v, _);
|
|
14677
14686
|
} catch {
|
|
14678
14687
|
}
|
|
14679
|
-
return
|
|
14688
|
+
return _;
|
|
14680
14689
|
});
|
|
14681
14690
|
}, it.prototype.delete = function(s) {
|
|
14682
14691
|
var l = this;
|
|
@@ -14706,28 +14715,28 @@ function SS() {
|
|
|
14706
14715
|
});
|
|
14707
14716
|
});
|
|
14708
14717
|
}, it.prototype.bulkAdd = function(s, l, d) {
|
|
14709
|
-
var p = this, g = Array.isArray(l) ? l : void 0,
|
|
14718
|
+
var p = this, g = Array.isArray(l) ? l : void 0, v = (d = d || (g ? void 0 : l)) ? d.allKeys : void 0;
|
|
14710
14719
|
return this._trans("readwrite", function(E) {
|
|
14711
|
-
var k = p.schema.primKey,
|
|
14720
|
+
var k = p.schema.primKey, _ = k.auto, k = k.keyPath;
|
|
14712
14721
|
if (k && g) throw new ue.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
|
|
14713
14722
|
if (g && g.length !== s.length) throw new ue.InvalidArgument("Arguments objects and keys must have the same length");
|
|
14714
|
-
var T = s.length, k = k &&
|
|
14715
|
-
return p.core.mutate({ trans: E, type: "add", keys: g, values: k, wantResults:
|
|
14723
|
+
var T = s.length, k = k && _ ? s.map(Li(k)) : s;
|
|
14724
|
+
return p.core.mutate({ trans: E, type: "add", keys: g, values: k, wantResults: v }).then(function(O) {
|
|
14716
14725
|
var x = O.numFailures, L = O.results, I = O.lastResult, O = O.failures;
|
|
14717
|
-
if (x === 0) return
|
|
14726
|
+
if (x === 0) return v ? L : I;
|
|
14718
14727
|
throw new pt("".concat(p.name, ".bulkAdd(): ").concat(x, " of ").concat(T, " operations failed"), O);
|
|
14719
14728
|
});
|
|
14720
14729
|
});
|
|
14721
14730
|
}, it.prototype.bulkPut = function(s, l, d) {
|
|
14722
|
-
var p = this, g = Array.isArray(l) ? l : void 0,
|
|
14731
|
+
var p = this, g = Array.isArray(l) ? l : void 0, v = (d = d || (g ? void 0 : l)) ? d.allKeys : void 0;
|
|
14723
14732
|
return this._trans("readwrite", function(E) {
|
|
14724
|
-
var k = p.schema.primKey,
|
|
14733
|
+
var k = p.schema.primKey, _ = k.auto, k = k.keyPath;
|
|
14725
14734
|
if (k && g) throw new ue.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
|
|
14726
14735
|
if (g && g.length !== s.length) throw new ue.InvalidArgument("Arguments objects and keys must have the same length");
|
|
14727
|
-
var T = s.length, k = k &&
|
|
14728
|
-
return p.core.mutate({ trans: E, type: "put", keys: g, values: k, wantResults:
|
|
14736
|
+
var T = s.length, k = k && _ ? s.map(Li(k)) : s;
|
|
14737
|
+
return p.core.mutate({ trans: E, type: "put", keys: g, values: k, wantResults: v }).then(function(O) {
|
|
14729
14738
|
var x = O.numFailures, L = O.results, I = O.lastResult, O = O.failures;
|
|
14730
|
-
if (x === 0) return
|
|
14739
|
+
if (x === 0) return v ? L : I;
|
|
14731
14740
|
throw new pt("".concat(p.name, ".bulkPut(): ").concat(x, " of ").concat(T, " operations failed"), O);
|
|
14732
14741
|
});
|
|
14733
14742
|
});
|
|
@@ -14736,12 +14745,12 @@ function SS() {
|
|
|
14736
14745
|
return E.key;
|
|
14737
14746
|
}), g = s.map(function(E) {
|
|
14738
14747
|
return E.changes;
|
|
14739
|
-
}),
|
|
14748
|
+
}), v = [];
|
|
14740
14749
|
return this._trans("readwrite", function(E) {
|
|
14741
|
-
return d.getMany({ trans: E, keys: p, cache: "clone" }).then(function(
|
|
14750
|
+
return d.getMany({ trans: E, keys: p, cache: "clone" }).then(function(_) {
|
|
14742
14751
|
var T = [], k = [];
|
|
14743
14752
|
s.forEach(function(x, L) {
|
|
14744
|
-
var I = x.key, O = x.changes, M =
|
|
14753
|
+
var I = x.key, O = x.changes, M = _[L];
|
|
14745
14754
|
if (M) {
|
|
14746
14755
|
for (var P = 0, j = Object.keys(O); P < j.length; P++) {
|
|
14747
14756
|
var B = j[P], W = O[B];
|
|
@@ -14749,7 +14758,7 @@ function SS() {
|
|
|
14749
14758
|
if (ze(W, I) !== 0) throw new ue.Constraint("Cannot update primary key in bulkUpdate()");
|
|
14750
14759
|
} else de(M, B, W);
|
|
14751
14760
|
}
|
|
14752
|
-
|
|
14761
|
+
v.push(L), T.push(I), k.push(M);
|
|
14753
14762
|
}
|
|
14754
14763
|
});
|
|
14755
14764
|
var N = T.length;
|
|
@@ -14757,7 +14766,7 @@ function SS() {
|
|
|
14757
14766
|
var L = x.numFailures, I = x.failures;
|
|
14758
14767
|
if (L === 0) return N;
|
|
14759
14768
|
for (var O = 0, M = Object.keys(I); O < M.length; O++) {
|
|
14760
|
-
var P, j = M[O], B =
|
|
14769
|
+
var P, j = M[O], B = v[Number(j)];
|
|
14761
14770
|
B != null && (P = I[j], delete I[j], I[B] = P);
|
|
14762
14771
|
}
|
|
14763
14772
|
throw new pt("".concat(l.name, ".bulkUpdate(): ").concat(L, " of ").concat(N, " operations failed"), I);
|
|
@@ -14771,44 +14780,44 @@ function SS() {
|
|
|
14771
14780
|
return ji(l, s, g);
|
|
14772
14781
|
});
|
|
14773
14782
|
}).then(function(E) {
|
|
14774
|
-
var g = E.numFailures,
|
|
14775
|
-
if (g === 0) return
|
|
14783
|
+
var g = E.numFailures, v = E.lastResult, E = E.failures;
|
|
14784
|
+
if (g === 0) return v;
|
|
14776
14785
|
throw new pt("".concat(l.name, ".bulkDelete(): ").concat(g, " of ").concat(d, " operations failed"), E);
|
|
14777
14786
|
});
|
|
14778
14787
|
}, it);
|
|
14779
14788
|
function it() {
|
|
14780
14789
|
}
|
|
14781
14790
|
function ii(s) {
|
|
14782
|
-
function l(E,
|
|
14783
|
-
if (
|
|
14791
|
+
function l(E, _) {
|
|
14792
|
+
if (_) {
|
|
14784
14793
|
for (var T = arguments.length, k = new Array(T - 1); --T; ) k[T - 1] = arguments[T];
|
|
14785
14794
|
return d[E].subscribe.apply(null, k), s;
|
|
14786
14795
|
}
|
|
14787
14796
|
if (typeof E == "string") return d[E];
|
|
14788
14797
|
}
|
|
14789
14798
|
var d = {};
|
|
14790
|
-
l.addEventType =
|
|
14791
|
-
for (var p = 1, g = arguments.length; p < g; ++p)
|
|
14799
|
+
l.addEventType = v;
|
|
14800
|
+
for (var p = 1, g = arguments.length; p < g; ++p) v(arguments[p]);
|
|
14792
14801
|
return l;
|
|
14793
|
-
function
|
|
14802
|
+
function v(E, _, T) {
|
|
14794
14803
|
if (typeof E != "object") {
|
|
14795
14804
|
var k;
|
|
14796
|
-
|
|
14805
|
+
_ = _ || yn;
|
|
14797
14806
|
var N = { subscribers: [], fire: T = T || Ie, subscribe: function(x) {
|
|
14798
|
-
N.subscribers.indexOf(x) === -1 && (N.subscribers.push(x), N.fire =
|
|
14807
|
+
N.subscribers.indexOf(x) === -1 && (N.subscribers.push(x), N.fire = _(N.fire, x));
|
|
14799
14808
|
}, unsubscribe: function(x) {
|
|
14800
14809
|
N.subscribers = N.subscribers.filter(function(L) {
|
|
14801
14810
|
return L !== x;
|
|
14802
|
-
}), N.fire = N.subscribers.reduce(
|
|
14811
|
+
}), N.fire = N.subscribers.reduce(_, T);
|
|
14803
14812
|
} };
|
|
14804
14813
|
return d[E] = l[E] = N;
|
|
14805
14814
|
}
|
|
14806
14815
|
a(k = E).forEach(function(x) {
|
|
14807
14816
|
var L = k[x];
|
|
14808
|
-
if (c(L))
|
|
14817
|
+
if (c(L)) v(x, k[x][0], k[x][1]);
|
|
14809
14818
|
else {
|
|
14810
14819
|
if (L !== "asap") throw new ue.InvalidArgument("Invalid event config");
|
|
14811
|
-
var I =
|
|
14820
|
+
var I = v(x, yt, function() {
|
|
14812
14821
|
for (var O = arguments.length, M = new Array(O); O--; ) M[O] = arguments[O];
|
|
14813
14822
|
I.subscribers.forEach(function(P) {
|
|
14814
14823
|
ie(function() {
|
|
@@ -14848,35 +14857,35 @@ function SS() {
|
|
|
14848
14857
|
function Bi(s, l, d, p) {
|
|
14849
14858
|
var g = s.replayFilter ? fr(s.filter, s.replayFilter()) : s.filter;
|
|
14850
14859
|
if (s.or) {
|
|
14851
|
-
var
|
|
14860
|
+
var v = {}, E = function(_, T, k) {
|
|
14852
14861
|
var N, x;
|
|
14853
14862
|
g && !g(T, k, function(L) {
|
|
14854
14863
|
return T.stop(L);
|
|
14855
14864
|
}, function(L) {
|
|
14856
14865
|
return T.fail(L);
|
|
14857
|
-
}) || ((x = "" + (N = T.primaryKey)) == "[object ArrayBuffer]" && (x = "" + new Uint8Array(N)), v
|
|
14866
|
+
}) || ((x = "" + (N = T.primaryKey)) == "[object ArrayBuffer]" && (x = "" + new Uint8Array(N)), y(v, x) || (v[x] = !0, l(_, T, k)));
|
|
14858
14867
|
};
|
|
14859
14868
|
return Promise.all([s.or._iterate(E, d), hl(fl(s, p, d), s.algorithm, E, !s.keysOnly && s.valueMapper)]);
|
|
14860
14869
|
}
|
|
14861
14870
|
return hl(fl(s, p, d), fr(s.algorithm, g), l, !s.keysOnly && s.valueMapper);
|
|
14862
14871
|
}
|
|
14863
14872
|
function hl(s, l, d, p) {
|
|
14864
|
-
var g = G(p ? function(
|
|
14865
|
-
return d(p(
|
|
14873
|
+
var g = G(p ? function(v, E, _) {
|
|
14874
|
+
return d(p(v), E, _);
|
|
14866
14875
|
} : d);
|
|
14867
|
-
return s.then(function(
|
|
14868
|
-
if (
|
|
14876
|
+
return s.then(function(v) {
|
|
14877
|
+
if (v) return v.start(function() {
|
|
14869
14878
|
var E = function() {
|
|
14870
|
-
return
|
|
14879
|
+
return v.continue();
|
|
14871
14880
|
};
|
|
14872
|
-
l && !l(
|
|
14873
|
-
return E =
|
|
14874
|
-
}, function(
|
|
14875
|
-
|
|
14876
|
-
}, function(
|
|
14877
|
-
|
|
14878
|
-
}) || g(
|
|
14879
|
-
return E =
|
|
14881
|
+
l && !l(v, function(_) {
|
|
14882
|
+
return E = _;
|
|
14883
|
+
}, function(_) {
|
|
14884
|
+
v.stop(_), E = Ie;
|
|
14885
|
+
}, function(_) {
|
|
14886
|
+
v.fail(_), E = Ie;
|
|
14887
|
+
}) || g(v.value, v, function(_) {
|
|
14888
|
+
return E = _;
|
|
14880
14889
|
}), E();
|
|
14881
14890
|
});
|
|
14882
14891
|
});
|
|
@@ -14909,38 +14918,38 @@ function SS() {
|
|
|
14909
14918
|
if (Lr(p, !0)) return g.count({ trans: d, query: { index: Hi(p, g.schema), range: p.range } }).then(function(E) {
|
|
14910
14919
|
return Math.min(E, p.limit);
|
|
14911
14920
|
});
|
|
14912
|
-
var
|
|
14921
|
+
var v = 0;
|
|
14913
14922
|
return Bi(p, function() {
|
|
14914
|
-
return ++
|
|
14923
|
+
return ++v, !1;
|
|
14915
14924
|
}, d, g).then(function() {
|
|
14916
|
-
return
|
|
14925
|
+
return v;
|
|
14917
14926
|
});
|
|
14918
14927
|
}).then(s);
|
|
14919
14928
|
}, Ke.prototype.sortBy = function(s, l) {
|
|
14920
14929
|
var d = s.split(".").reverse(), p = d[0], g = d.length - 1;
|
|
14921
|
-
function
|
|
14922
|
-
return k ?
|
|
14930
|
+
function v(T, k) {
|
|
14931
|
+
return k ? v(T[d[k]], k - 1) : T[p];
|
|
14923
14932
|
}
|
|
14924
14933
|
var E = this._ctx.dir === "next" ? 1 : -1;
|
|
14925
|
-
function
|
|
14926
|
-
return ze(
|
|
14934
|
+
function _(T, k) {
|
|
14935
|
+
return ze(v(T, g), v(k, g)) * E;
|
|
14927
14936
|
}
|
|
14928
14937
|
return this.toArray(function(T) {
|
|
14929
|
-
return T.sort(
|
|
14938
|
+
return T.sort(_);
|
|
14930
14939
|
}).then(l);
|
|
14931
14940
|
}, Ke.prototype.toArray = function(s) {
|
|
14932
14941
|
var l = this;
|
|
14933
14942
|
return this._read(function(d) {
|
|
14934
14943
|
var p = l._ctx;
|
|
14935
14944
|
if (p.dir === "next" && Lr(p, !0) && 0 < p.limit) {
|
|
14936
|
-
var g = p.valueMapper,
|
|
14937
|
-
return p.table.core.query({ trans: d, limit: p.limit, values: !0, query: { index:
|
|
14938
|
-
return
|
|
14945
|
+
var g = p.valueMapper, v = Hi(p, p.table.core.schema);
|
|
14946
|
+
return p.table.core.query({ trans: d, limit: p.limit, values: !0, query: { index: v, range: p.range } }).then(function(_) {
|
|
14947
|
+
return _ = _.result, g ? _.map(g) : _;
|
|
14939
14948
|
});
|
|
14940
14949
|
}
|
|
14941
14950
|
var E = [];
|
|
14942
|
-
return Bi(p, function(
|
|
14943
|
-
return E.push(
|
|
14951
|
+
return Bi(p, function(_) {
|
|
14952
|
+
return E.push(_);
|
|
14944
14953
|
}, d, p.table.core).then(function() {
|
|
14945
14954
|
return E;
|
|
14946
14955
|
});
|
|
@@ -15039,7 +15048,7 @@ function SS() {
|
|
|
15039
15048
|
if (!s || !s.multi) return this;
|
|
15040
15049
|
var l = {};
|
|
15041
15050
|
return es(this._ctx, function(g) {
|
|
15042
|
-
var p = g.primaryKey.toString(), g =
|
|
15051
|
+
var p = g.primaryKey.toString(), g = y(l, p);
|
|
15043
15052
|
return l[p] = !0, !g;
|
|
15044
15053
|
}), this;
|
|
15045
15054
|
}, Ke.prototype.modify = function(s) {
|
|
@@ -15047,8 +15056,8 @@ function SS() {
|
|
|
15047
15056
|
return this._write(function(p) {
|
|
15048
15057
|
var g = typeof s == "function" ? s : function(M) {
|
|
15049
15058
|
return ul(M, s);
|
|
15050
|
-
},
|
|
15051
|
-
k && (T = typeof k == "object" ? k[
|
|
15059
|
+
}, v = d.table.core, k = v.schema.primaryKey, E = k.outbound, _ = k.extractKey, T = 200, k = l.db._options.modifyChunkSize;
|
|
15060
|
+
k && (T = typeof k == "object" ? k[v.name] || k["*"] || 200 : k);
|
|
15052
15061
|
function N(M, B) {
|
|
15053
15062
|
var j = B.failures, B = B.numFailures;
|
|
15054
15063
|
L += M - B;
|
|
@@ -15061,21 +15070,21 @@ function SS() {
|
|
|
15061
15070
|
return l.clone().primaryKeys().then(function(M) {
|
|
15062
15071
|
function P(B) {
|
|
15063
15072
|
var W = Math.min(T, M.length - B), V = M.slice(B, B + W);
|
|
15064
|
-
return (O ? Promise.resolve([]) :
|
|
15073
|
+
return (O ? Promise.resolve([]) : v.getMany({ trans: p, keys: V, cache: "immutable" })).then(function(X) {
|
|
15065
15074
|
var ae = [], K = [], ee = E ? [] : null, ce = O ? V : [];
|
|
15066
15075
|
if (!O) for (var ne = 0; ne < W; ++ne) {
|
|
15067
15076
|
var me = X[ne], Ne = { value: Oe(me), primKey: M[B + ne] };
|
|
15068
|
-
g.call(Ne, Ne.value, Ne) !== !1 && (Ne.value == null ? ce.push(M[B + ne]) : E || ze(
|
|
15077
|
+
g.call(Ne, Ne.value, Ne) !== !1 && (Ne.value == null ? ce.push(M[B + ne]) : E || ze(_(me), _(Ne.value)) === 0 ? (K.push(Ne.value), E && ee.push(M[B + ne])) : (ce.push(M[B + ne]), ae.push(Ne.value)));
|
|
15069
15078
|
}
|
|
15070
|
-
return Promise.resolve(0 < ae.length &&
|
|
15079
|
+
return Promise.resolve(0 < ae.length && v.mutate({ trans: p, type: "add", values: ae }).then(function(Le) {
|
|
15071
15080
|
for (var He in Le.failures) ce.splice(parseInt(He), 1);
|
|
15072
15081
|
N(ae.length, Le);
|
|
15073
15082
|
})).then(function() {
|
|
15074
|
-
return (0 < K.length || j && typeof s == "object") &&
|
|
15083
|
+
return (0 < K.length || j && typeof s == "object") && v.mutate({ trans: p, type: "put", keys: ee, values: K, criteria: j, changeSpec: typeof s != "function" && s, isAdditionalChunk: 0 < B }).then(function(Le) {
|
|
15075
15084
|
return N(K.length, Le);
|
|
15076
15085
|
});
|
|
15077
15086
|
}).then(function() {
|
|
15078
|
-
return (0 < ce.length || j && O) &&
|
|
15087
|
+
return (0 < ce.length || j && O) && v.mutate({ trans: p, type: "delete", keys: ce, criteria: j, isAdditionalChunk: 0 < B }).then(function(Le) {
|
|
15079
15088
|
return ji(d.table, ce, Le);
|
|
15080
15089
|
}).then(function(Le) {
|
|
15081
15090
|
return N(ce.length, Le);
|
|
@@ -15096,13 +15105,13 @@ function SS() {
|
|
|
15096
15105
|
var s = this._ctx, l = s.range;
|
|
15097
15106
|
return !Lr(s) || s.table.schema.yProps || !s.isPrimKey && l.type !== 3 ? this.modify(pl) : this._write(function(d) {
|
|
15098
15107
|
var p = s.table.core.schema.primaryKey, g = l;
|
|
15099
|
-
return s.table.core.count({ trans: d, query: { index: p, range: g } }).then(function(
|
|
15108
|
+
return s.table.core.count({ trans: d, query: { index: p, range: g } }).then(function(v) {
|
|
15100
15109
|
return s.table.core.mutate({ trans: d, type: "deleteRange", range: g }).then(function(T) {
|
|
15101
|
-
var
|
|
15102
|
-
if (T) throw new st("Could not delete some values", Object.keys(
|
|
15103
|
-
return
|
|
15104
|
-
}),
|
|
15105
|
-
return
|
|
15110
|
+
var _ = T.failures, T = T.numFailures;
|
|
15111
|
+
if (T) throw new st("Could not delete some values", Object.keys(_).map(function(k) {
|
|
15112
|
+
return _[k];
|
|
15113
|
+
}), v - T);
|
|
15114
|
+
return v - T;
|
|
15106
15115
|
});
|
|
15107
15116
|
});
|
|
15108
15117
|
});
|
|
@@ -15127,7 +15136,7 @@ function SS() {
|
|
|
15127
15136
|
}).limit(0);
|
|
15128
15137
|
}
|
|
15129
15138
|
function Ui(s, l, d, p) {
|
|
15130
|
-
var g,
|
|
15139
|
+
var g, v, E, _, T, k, N, x = d.length;
|
|
15131
15140
|
if (!d.every(function(O) {
|
|
15132
15141
|
return typeof O == "string";
|
|
15133
15142
|
})) return Yt(s, Nr);
|
|
@@ -15136,24 +15145,24 @@ function SS() {
|
|
|
15136
15145
|
return P.toUpperCase();
|
|
15137
15146
|
} : function(P) {
|
|
15138
15147
|
return P.toLowerCase();
|
|
15139
|
-
},
|
|
15148
|
+
}, v = O === "next" ? function(P) {
|
|
15140
15149
|
return P.toLowerCase();
|
|
15141
15150
|
} : function(P) {
|
|
15142
15151
|
return P.toUpperCase();
|
|
15143
15152
|
}, E = O === "next" ? Tf : kf;
|
|
15144
15153
|
var M = d.map(function(P) {
|
|
15145
|
-
return { lower:
|
|
15154
|
+
return { lower: v(P), upper: g(P) };
|
|
15146
15155
|
}).sort(function(P, j) {
|
|
15147
15156
|
return E(P.lower, j.lower);
|
|
15148
15157
|
});
|
|
15149
|
-
|
|
15158
|
+
_ = M.map(function(P) {
|
|
15150
15159
|
return P.upper;
|
|
15151
15160
|
}), T = M.map(function(P) {
|
|
15152
15161
|
return P.lower;
|
|
15153
15162
|
}), N = (k = O) === "next" ? "" : p;
|
|
15154
15163
|
}
|
|
15155
15164
|
L("next"), s = new s.Collection(s, function() {
|
|
15156
|
-
return Yn(
|
|
15165
|
+
return Yn(_[0], T[x - 1] + p);
|
|
15157
15166
|
}), s._ondirectionchange = function(O) {
|
|
15158
15167
|
L(O);
|
|
15159
15168
|
};
|
|
@@ -15161,7 +15170,7 @@ function SS() {
|
|
|
15161
15170
|
return s._addAlgorithm(function(O, M, P) {
|
|
15162
15171
|
var j = O.key;
|
|
15163
15172
|
if (typeof j != "string") return !1;
|
|
15164
|
-
var B =
|
|
15173
|
+
var B = v(j);
|
|
15165
15174
|
if (l(B, T, I)) return !0;
|
|
15166
15175
|
for (var W = null, V = I; V < x; ++V) {
|
|
15167
15176
|
var X = (function(ae, K, ee, ce, ne, me) {
|
|
@@ -15171,7 +15180,7 @@ function SS() {
|
|
|
15171
15180
|
ne(ae[He], Kt) < 0 && (Le = He);
|
|
15172
15181
|
}
|
|
15173
15182
|
return Ne < ce.length && me === "next" ? ae + ee.substr(ae.length) : Ne < ae.length && me === "prev" ? ae.substr(0, ee.length) : Le < 0 ? null : ae.substr(0, Le) + ce[Le] + ee.substr(Le + 1);
|
|
15174
|
-
})(j, B,
|
|
15183
|
+
})(j, B, _[V], T[V], E, k);
|
|
15175
15184
|
X === null && W === null ? I = V + 1 : (W === null || 0 < E(W, X)) && (W = X);
|
|
15176
15185
|
}
|
|
15177
15186
|
return M(W !== null ? function() {
|
|
@@ -15249,14 +15258,14 @@ function SS() {
|
|
|
15249
15258
|
var p = new this.Collection(this, function() {
|
|
15250
15259
|
return Yn(l[0], l[l.length - 1]);
|
|
15251
15260
|
});
|
|
15252
|
-
p._ondirectionchange = function(
|
|
15253
|
-
d =
|
|
15261
|
+
p._ondirectionchange = function(v) {
|
|
15262
|
+
d = v === "next" ? s._ascending : s._descending, l.sort(d);
|
|
15254
15263
|
};
|
|
15255
15264
|
var g = 0;
|
|
15256
|
-
return p._addAlgorithm(function(
|
|
15257
|
-
for (var T =
|
|
15265
|
+
return p._addAlgorithm(function(v, E, _) {
|
|
15266
|
+
for (var T = v.key; 0 < d(T, l[g]); ) if (++g === l.length) return E(_), !1;
|
|
15258
15267
|
return d(T, l[g]) === 0 || (E(function() {
|
|
15259
|
-
|
|
15268
|
+
v.continue(l[g]);
|
|
15260
15269
|
}), !1);
|
|
15261
15270
|
}), p;
|
|
15262
15271
|
}, Rt.prototype.notEqual = function(s) {
|
|
@@ -15274,7 +15283,7 @@ function SS() {
|
|
|
15274
15283
|
}, null);
|
|
15275
15284
|
return l.push([s[s.length - 1], this.db._maxKey]), this.inAnyRange(l, { includeLowers: !1, includeUppers: !1 });
|
|
15276
15285
|
}, Rt.prototype.inAnyRange = function(j, l) {
|
|
15277
|
-
var d = this, p = this._cmp, g = this._ascending,
|
|
15286
|
+
var d = this, p = this._cmp, g = this._ascending, v = this._descending, E = this._min, _ = this._max;
|
|
15278
15287
|
if (j.length === 0) return jr(this);
|
|
15279
15288
|
if (!j.every(function(B) {
|
|
15280
15289
|
return B[0] !== void 0 && B[1] !== void 0 && g(B[0], B[1]) <= 0;
|
|
@@ -15288,7 +15297,7 @@ function SS() {
|
|
|
15288
15297
|
for (var V = 0, X = B.length; V < X; ++V) {
|
|
15289
15298
|
var ae = B[V];
|
|
15290
15299
|
if (p(W[0], ae[1]) < 0 && 0 < p(W[1], ae[0])) {
|
|
15291
|
-
ae[0] = E(ae[0], W[0]), ae[1] =
|
|
15300
|
+
ae[0] = E(ae[0], W[0]), ae[1] = _(ae[1], W[1]);
|
|
15292
15301
|
break;
|
|
15293
15302
|
}
|
|
15294
15303
|
}
|
|
@@ -15302,14 +15311,14 @@ function SS() {
|
|
|
15302
15311
|
} : function(B) {
|
|
15303
15312
|
return 0 <= g(B, N[I][1]);
|
|
15304
15313
|
}, M = T ? function(B) {
|
|
15305
|
-
return 0 <
|
|
15314
|
+
return 0 < v(B, N[I][0]);
|
|
15306
15315
|
} : function(B) {
|
|
15307
|
-
return 0 <=
|
|
15316
|
+
return 0 <= v(B, N[I][0]);
|
|
15308
15317
|
}, P = O, j = new this.Collection(this, function() {
|
|
15309
15318
|
return Yn(N[0][0], N[N.length - 1][1], !T, !k);
|
|
15310
15319
|
});
|
|
15311
15320
|
return j._ondirectionchange = function(B) {
|
|
15312
|
-
x = B === "next" ? (P = O, g) : (P = M,
|
|
15321
|
+
x = B === "next" ? (P = O, g) : (P = M, v), N.sort(L);
|
|
15313
15322
|
}, j._addAlgorithm(function(B, W, V) {
|
|
15314
15323
|
for (var X, ae = B.key; P(ae); ) if (++I === N.length) return W(V), !1;
|
|
15315
15324
|
return !O(X = ae) && !M(X) || (d._cmp(ae, N[I][1]) === 0 || d._cmp(ae, N[I][0]) === 0 || W(function() {
|
|
@@ -15371,24 +15380,24 @@ function SS() {
|
|
|
15371
15380
|
var p = this;
|
|
15372
15381
|
if (s === "readwrite" && this.mode !== "readwrite") return ft(new ue.ReadOnly("Transaction is readonly"));
|
|
15373
15382
|
if (!this.active) return ft(new ue.TransactionInactive());
|
|
15374
|
-
if (this._locked()) return new re(function(
|
|
15383
|
+
if (this._locked()) return new re(function(v, E) {
|
|
15375
15384
|
p._blockedFuncs.push([function() {
|
|
15376
|
-
p._promise(s, l, d).then(
|
|
15385
|
+
p._promise(s, l, d).then(v, E);
|
|
15377
15386
|
}, fe]);
|
|
15378
15387
|
});
|
|
15379
15388
|
if (d) return dt(function() {
|
|
15380
|
-
var
|
|
15389
|
+
var v = new re(function(E, _) {
|
|
15381
15390
|
p._lock();
|
|
15382
|
-
var T = l(E,
|
|
15383
|
-
T && T.then && T.then(E,
|
|
15391
|
+
var T = l(E, _, p);
|
|
15392
|
+
T && T.then && T.then(E, _);
|
|
15384
15393
|
});
|
|
15385
|
-
return
|
|
15394
|
+
return v.finally(function() {
|
|
15386
15395
|
return p._unlock();
|
|
15387
|
-
}),
|
|
15396
|
+
}), v._lib = !0, v;
|
|
15388
15397
|
});
|
|
15389
|
-
var g = new re(function(
|
|
15390
|
-
var
|
|
15391
|
-
|
|
15398
|
+
var g = new re(function(v, E) {
|
|
15399
|
+
var _ = l(v, E, p);
|
|
15400
|
+
_ && _.then && _.then(v, E);
|
|
15392
15401
|
});
|
|
15393
15402
|
return g._lib = !0, g;
|
|
15394
15403
|
}, Dn.prototype._root = function() {
|
|
@@ -15397,16 +15406,16 @@ function SS() {
|
|
|
15397
15406
|
var l, d = this._root(), p = re.resolve(s);
|
|
15398
15407
|
d._waitingFor ? d._waitingFor = d._waitingFor.then(function() {
|
|
15399
15408
|
return p;
|
|
15400
|
-
}) : (d._waitingFor = p, d._waitingQueue = [], l = d.idbtrans.objectStore(d.storeNames[0]), (function
|
|
15409
|
+
}) : (d._waitingFor = p, d._waitingQueue = [], l = d.idbtrans.objectStore(d.storeNames[0]), (function v() {
|
|
15401
15410
|
for (++d._spinCount; d._waitingQueue.length; ) d._waitingQueue.shift()();
|
|
15402
|
-
d._waitingFor && (l.get(-1 / 0).onsuccess =
|
|
15411
|
+
d._waitingFor && (l.get(-1 / 0).onsuccess = v);
|
|
15403
15412
|
})());
|
|
15404
15413
|
var g = d._waitingFor;
|
|
15405
|
-
return new re(function(
|
|
15406
|
-
p.then(function(
|
|
15407
|
-
return d._waitingQueue.push(G(
|
|
15408
|
-
}, function(
|
|
15409
|
-
return d._waitingQueue.push(G(E.bind(null,
|
|
15414
|
+
return new re(function(v, E) {
|
|
15415
|
+
p.then(function(_) {
|
|
15416
|
+
return d._waitingQueue.push(G(v.bind(null, _)));
|
|
15417
|
+
}, function(_) {
|
|
15418
|
+
return d._waitingQueue.push(G(E.bind(null, _)));
|
|
15410
15419
|
}).finally(function() {
|
|
15411
15420
|
d._waitingFor === g && (d._waitingFor = null);
|
|
15412
15421
|
});
|
|
@@ -15415,15 +15424,15 @@ function SS() {
|
|
|
15415
15424
|
this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new ue.Abort()));
|
|
15416
15425
|
}, Dn.prototype.table = function(s) {
|
|
15417
15426
|
var l = this._memoizedTables || (this._memoizedTables = {});
|
|
15418
|
-
if (
|
|
15427
|
+
if (y(l, s)) return l[s];
|
|
15419
15428
|
var d = this.schema[s];
|
|
15420
15429
|
if (!d) throw new ue.NotFound("Table " + s + " not part of transaction");
|
|
15421
15430
|
return d = new this.db.Table(s, d, this), d.core = this.db.core.table(s), l[s] = d;
|
|
15422
15431
|
}, Dn);
|
|
15423
15432
|
function Dn() {
|
|
15424
15433
|
}
|
|
15425
|
-
function rs(s, l, d, p, g,
|
|
15426
|
-
return { name: s, keyPath: l, unique: d, multi: p, auto: g, compound:
|
|
15434
|
+
function rs(s, l, d, p, g, v, E, _) {
|
|
15435
|
+
return { name: s, keyPath: l, unique: d, multi: p, auto: g, compound: v, src: (d && !E ? "&" : "") + (p ? "*" : "") + (g ? "++" : "") + vl(l), type: _ };
|
|
15427
15436
|
}
|
|
15428
15437
|
function vl(s) {
|
|
15429
15438
|
return typeof s == "string" ? s : s ? "[" + [].join.call(s, "+") + "]" : "";
|
|
@@ -15431,8 +15440,8 @@ function SS() {
|
|
|
15431
15440
|
function is(s, l, d) {
|
|
15432
15441
|
return { name: s, primKey: l, indexes: d, mappedClass: null, idxByName: (p = function(g) {
|
|
15433
15442
|
return [g.name, g];
|
|
15434
|
-
}, d.reduce(function(g,
|
|
15435
|
-
return E = p(
|
|
15443
|
+
}, d.reduce(function(g, v, E) {
|
|
15444
|
+
return E = p(v, E), E && (g[E[0]] = E[1]), g;
|
|
15436
15445
|
}, {})) };
|
|
15437
15446
|
var p;
|
|
15438
15447
|
}
|
|
@@ -15586,7 +15595,7 @@ function SS() {
|
|
|
15586
15595
|
});
|
|
15587
15596
|
} };
|
|
15588
15597
|
}
|
|
15589
|
-
var
|
|
15598
|
+
var v, E, _, N = (E = T, _ = yl((v = s).objectStoreNames), { schema: { name: v.name, tables: _.map(function(L) {
|
|
15590
15599
|
return E.objectStore(L);
|
|
15591
15600
|
}).map(function(L) {
|
|
15592
15601
|
var I = L.keyPath, P = L.autoIncrement, O = c(I), M = {}, P = { name: L.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: I == null, compound: O, keyPath: I, autoIncrement: P, unique: !0, extractKey: os(I) }, indexes: yl(L.indexNames).map(function(j) {
|
|
@@ -15598,7 +15607,7 @@ function SS() {
|
|
|
15598
15607
|
return M[ci(j)];
|
|
15599
15608
|
} };
|
|
15600
15609
|
return M[":id"] = P.primaryKey, I != null && (M[ci(I)] = P.primaryKey), P;
|
|
15601
|
-
}) }, hasGetAll: 0 <
|
|
15610
|
+
}) }, hasGetAll: 0 < _.length && "getAll" in E.objectStore(_[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), T = N.schema, k = N.hasGetAll, N = T.tables.map(g), x = {};
|
|
15602
15611
|
return N.forEach(function(L) {
|
|
15603
15612
|
return x[L.name] = L;
|
|
15604
15613
|
}), { stack: "dbcore", transaction: s.transaction.bind(s), table: function(L) {
|
|
@@ -15608,31 +15617,31 @@ function SS() {
|
|
|
15608
15617
|
}
|
|
15609
15618
|
function Nf(s, l, d, p) {
|
|
15610
15619
|
var g = d.IDBKeyRange;
|
|
15611
|
-
return d.indexedDB, { dbcore: (p = Mf(l, g, p), s.dbcore.reduce(function(
|
|
15612
|
-
return E = E.create, r(r({},
|
|
15620
|
+
return d.indexedDB, { dbcore: (p = Mf(l, g, p), s.dbcore.reduce(function(v, E) {
|
|
15621
|
+
return E = E.create, r(r({}, v), E(v));
|
|
15613
15622
|
}, p)) };
|
|
15614
15623
|
}
|
|
15615
15624
|
function Fi(s, p) {
|
|
15616
15625
|
var d = p.db, p = Nf(s._middlewares, d, s._deps, p);
|
|
15617
15626
|
s.core = p.dbcore, s.tables.forEach(function(g) {
|
|
15618
|
-
var
|
|
15627
|
+
var v = g.name;
|
|
15619
15628
|
s.core.schema.tables.some(function(E) {
|
|
15620
|
-
return E.name ===
|
|
15621
|
-
}) && (g.core = s.core.table(
|
|
15629
|
+
return E.name === v;
|
|
15630
|
+
}) && (g.core = s.core.table(v), s[v] instanceof s.Table && (s[v].core = g.core));
|
|
15622
15631
|
});
|
|
15623
15632
|
}
|
|
15624
15633
|
function zi(s, l, d, p) {
|
|
15625
15634
|
d.forEach(function(g) {
|
|
15626
|
-
var
|
|
15635
|
+
var v = p[g];
|
|
15627
15636
|
l.forEach(function(E) {
|
|
15628
|
-
var
|
|
15629
|
-
return
|
|
15637
|
+
var _ = (function T(k, N) {
|
|
15638
|
+
return D(k, N) || (k = h(k)) && T(k, N);
|
|
15630
15639
|
})(E, g);
|
|
15631
|
-
(!
|
|
15640
|
+
(!_ || "value" in _ && _.value === void 0) && (E === s.Transaction.prototype || E instanceof s.Transaction ? A(E, g, { get: function() {
|
|
15632
15641
|
return this.table(g);
|
|
15633
15642
|
}, set: function(T) {
|
|
15634
15643
|
m(this, g, { value: T, writable: !0, configurable: !0, enumerable: !0 });
|
|
15635
|
-
} }) : E[g] = new s.Table(g,
|
|
15644
|
+
} }) : E[g] = new s.Table(g, v));
|
|
15636
15645
|
});
|
|
15637
15646
|
});
|
|
15638
15647
|
}
|
|
@@ -15647,14 +15656,14 @@ function SS() {
|
|
|
15647
15656
|
function Lf(s, l, d, p) {
|
|
15648
15657
|
var g = s._dbSchema;
|
|
15649
15658
|
d.objectStoreNames.contains("$meta") && !g.$meta && (g.$meta = is("$meta", wl("")[0], []), s._storeNames.push("$meta"));
|
|
15650
|
-
var
|
|
15651
|
-
|
|
15652
|
-
var E =
|
|
15659
|
+
var v = s._createTransaction("readwrite", s._storeNames, g);
|
|
15660
|
+
v.create(d), v._completion.catch(p);
|
|
15661
|
+
var E = v._reject.bind(v), _ = fe.transless || fe;
|
|
15653
15662
|
dt(function() {
|
|
15654
|
-
return fe.trans =
|
|
15663
|
+
return fe.trans = v, fe.transless = _, l !== 0 ? (Fi(s, d), k = l, ((T = v).storeNames.includes("$meta") ? T.table("$meta").get("version").then(function(N) {
|
|
15655
15664
|
return N ?? k;
|
|
15656
15665
|
}) : re.resolve(k)).then(function(N) {
|
|
15657
|
-
return L = N, I =
|
|
15666
|
+
return L = N, I = v, O = d, M = [], N = (x = s)._versions, P = x._dbSchema = Vi(0, x.idbdb, O), (N = N.filter(function(j) {
|
|
15658
15667
|
return j._cfg.version >= L;
|
|
15659
15668
|
})).length !== 0 ? (N.forEach(function(j) {
|
|
15660
15669
|
M.push(function() {
|
|
@@ -15708,7 +15717,7 @@ function SS() {
|
|
|
15708
15717
|
}).catch(E)) : (a(g).forEach(function(N) {
|
|
15709
15718
|
ls(d, N, g[N].primKey, g[N].indexes);
|
|
15710
15719
|
}), Fi(s, d), void re.follow(function() {
|
|
15711
|
-
return s.on.populate.fire(
|
|
15720
|
+
return s.on.populate.fire(v);
|
|
15712
15721
|
}).catch(E));
|
|
15713
15722
|
var T, k;
|
|
15714
15723
|
});
|
|
@@ -15718,41 +15727,41 @@ function SS() {
|
|
|
15718
15727
|
var d = Vi(0, s.idbdb, l);
|
|
15719
15728
|
$i(s, s._dbSchema, l);
|
|
15720
15729
|
for (var p = 0, g = as(d, s._dbSchema).change; p < g.length; p++) {
|
|
15721
|
-
var
|
|
15730
|
+
var v = (function(E) {
|
|
15722
15731
|
if (E.change.length || E.recreate) return console.warn("Unable to patch indexes of table ".concat(E.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
|
|
15723
|
-
var
|
|
15732
|
+
var _ = l.objectStore(E.name);
|
|
15724
15733
|
E.add.forEach(function(T) {
|
|
15725
|
-
he && console.debug("Dexie upgrade patch: Creating missing index ".concat(E.name, ".").concat(T.src)), Wi(
|
|
15734
|
+
he && console.debug("Dexie upgrade patch: Creating missing index ".concat(E.name, ".").concat(T.src)), Wi(_, T);
|
|
15726
15735
|
});
|
|
15727
15736
|
})(g[p]);
|
|
15728
|
-
if (typeof
|
|
15737
|
+
if (typeof v == "object") return v.value;
|
|
15729
15738
|
}
|
|
15730
15739
|
}
|
|
15731
15740
|
function as(s, l) {
|
|
15732
15741
|
var d, p = { del: [], add: [], change: [] };
|
|
15733
15742
|
for (d in s) l[d] || p.del.push(d);
|
|
15734
15743
|
for (d in l) {
|
|
15735
|
-
var g = s[d],
|
|
15744
|
+
var g = s[d], v = l[d];
|
|
15736
15745
|
if (g) {
|
|
15737
|
-
var E = { name: d, def:
|
|
15738
|
-
if ("" + (g.primKey.keyPath || "") != "" + (
|
|
15746
|
+
var E = { name: d, def: v, recreate: !1, del: [], add: [], change: [] };
|
|
15747
|
+
if ("" + (g.primKey.keyPath || "") != "" + (v.primKey.keyPath || "") || g.primKey.auto !== v.primKey.auto) E.recreate = !0, p.change.push(E);
|
|
15739
15748
|
else {
|
|
15740
|
-
var
|
|
15741
|
-
for (k in
|
|
15749
|
+
var _ = g.idxByName, T = v.idxByName, k = void 0;
|
|
15750
|
+
for (k in _) T[k] || E.del.push(k);
|
|
15742
15751
|
for (k in T) {
|
|
15743
|
-
var N =
|
|
15752
|
+
var N = _[k], x = T[k];
|
|
15744
15753
|
N ? N.src !== x.src && E.change.push(x) : E.add.push(x);
|
|
15745
15754
|
}
|
|
15746
15755
|
(0 < E.del.length || 0 < E.add.length || 0 < E.change.length) && p.change.push(E);
|
|
15747
15756
|
}
|
|
15748
|
-
} else p.add.push([d,
|
|
15757
|
+
} else p.add.push([d, v]);
|
|
15749
15758
|
}
|
|
15750
15759
|
return p;
|
|
15751
15760
|
}
|
|
15752
15761
|
function ls(s, l, d, p) {
|
|
15753
15762
|
var g = s.db.createObjectStore(l, d.keyPath ? { keyPath: d.keyPath, autoIncrement: d.auto } : { autoIncrement: d.auto });
|
|
15754
|
-
return p.forEach(function(
|
|
15755
|
-
return Wi(g,
|
|
15763
|
+
return p.forEach(function(v) {
|
|
15764
|
+
return Wi(g, v);
|
|
15756
15765
|
}), g;
|
|
15757
15766
|
}
|
|
15758
15767
|
function bl(s, l) {
|
|
@@ -15766,49 +15775,49 @@ function SS() {
|
|
|
15766
15775
|
function Vi(s, l, d) {
|
|
15767
15776
|
var p = {};
|
|
15768
15777
|
return U(l.objectStoreNames, 0).forEach(function(g) {
|
|
15769
|
-
for (var
|
|
15770
|
-
var N =
|
|
15771
|
-
|
|
15778
|
+
for (var v = d.objectStore(g), E = rs(vl(k = v.keyPath), k || "", !0, !1, !!v.autoIncrement, k && typeof k != "string", !0), _ = [], T = 0; T < v.indexNames.length; ++T) {
|
|
15779
|
+
var N = v.index(v.indexNames[T]), k = N.keyPath, N = rs(N.name, k, !!N.unique, !!N.multiEntry, !1, k && typeof k != "string", !1);
|
|
15780
|
+
_.push(N);
|
|
15772
15781
|
}
|
|
15773
|
-
p[g] = is(g, E,
|
|
15782
|
+
p[g] = is(g, E, _);
|
|
15774
15783
|
}), p;
|
|
15775
15784
|
}
|
|
15776
15785
|
function $i(s, l, d) {
|
|
15777
15786
|
for (var p = d.db.objectStoreNames, g = 0; g < p.length; ++g) {
|
|
15778
|
-
var
|
|
15787
|
+
var v = p[g], E = d.objectStore(v);
|
|
15779
15788
|
s._hasGetAll = "getAll" in E;
|
|
15780
|
-
for (var
|
|
15781
|
-
var T = E.indexNames[
|
|
15782
|
-
!l[
|
|
15789
|
+
for (var _ = 0; _ < E.indexNames.length; ++_) {
|
|
15790
|
+
var T = E.indexNames[_], k = E.index(T).keyPath, N = typeof k == "string" ? k : "[" + U(k).join("+") + "]";
|
|
15791
|
+
!l[v] || (k = l[v].idxByName[N]) && (k.name = T, delete l[v].idxByName[N], l[v].idxByName[T] = k);
|
|
15783
15792
|
}
|
|
15784
15793
|
}
|
|
15785
15794
|
typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && o.WorkerGlobalScope && o instanceof o.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (s._hasGetAll = !1);
|
|
15786
15795
|
}
|
|
15787
15796
|
function wl(s) {
|
|
15788
15797
|
return s.split(",").map(function(l, d) {
|
|
15789
|
-
var
|
|
15790
|
-
return rs(g,
|
|
15798
|
+
var v = l.split(":"), p = (g = v[1]) === null || g === void 0 ? void 0 : g.trim(), g = (l = v[0].trim()).replace(/([&*]|\+\+)/g, ""), v = /^\[/.test(g) ? g.match(/^\[(.*)\]$/)[1].split("+") : g;
|
|
15799
|
+
return rs(g, v || null, /\&/.test(l), /\*/.test(l), /\+\+/.test(l), c(v), d === 0, p);
|
|
15791
15800
|
});
|
|
15792
15801
|
}
|
|
15793
15802
|
var Hf = (Hr.prototype._createTableSchema = is, Hr.prototype._parseIndexSyntax = wl, Hr.prototype._parseStoresSpec = function(s, l) {
|
|
15794
15803
|
var d = this;
|
|
15795
15804
|
a(s).forEach(function(p) {
|
|
15796
15805
|
if (s[p] !== null) {
|
|
15797
|
-
var g = d._parseIndexSyntax(s[p]),
|
|
15798
|
-
if (!
|
|
15799
|
-
if (
|
|
15806
|
+
var g = d._parseIndexSyntax(s[p]), v = g.shift();
|
|
15807
|
+
if (!v) throw new ue.Schema("Invalid schema for table " + p + ": " + s[p]);
|
|
15808
|
+
if (v.unique = !0, v.multi) throw new ue.Schema("Primary key cannot be multiEntry*");
|
|
15800
15809
|
g.forEach(function(E) {
|
|
15801
15810
|
if (E.auto) throw new ue.Schema("Only primary key can be marked as autoIncrement (++)");
|
|
15802
15811
|
if (!E.keyPath) throw new ue.Schema("Index must have a name and cannot be an empty string");
|
|
15803
|
-
}), g = d._createTableSchema(p,
|
|
15812
|
+
}), g = d._createTableSchema(p, v, g), l[p] = g;
|
|
15804
15813
|
}
|
|
15805
15814
|
});
|
|
15806
15815
|
}, Hr.prototype.stores = function(d) {
|
|
15807
15816
|
var l = this.db;
|
|
15808
15817
|
this._cfg.storesSource = this._cfg.storesSource ? u(this._cfg.storesSource, d) : d;
|
|
15809
15818
|
var d = l._versions, p = {}, g = {};
|
|
15810
|
-
return d.forEach(function(
|
|
15811
|
-
u(p,
|
|
15819
|
+
return d.forEach(function(v) {
|
|
15820
|
+
u(p, v._cfg.storesSource), g = v._cfg.dbschema = {}, v._parseStoresSpec(p, g);
|
|
15812
15821
|
}), l._dbSchema = g, ss(l, [l._allTables, l, l.Transaction.prototype]), zi(l, [l._allTables, l, l.Transaction.prototype, this._cfg.tables], a(g), g), l._storeNames = a(g), this;
|
|
15813
15822
|
}, Hr.prototype.upgrade = function(s) {
|
|
15814
15823
|
return this._cfg.contentUpgrade = H(this._cfg.contentUpgrade || Ie, s), this;
|
|
@@ -15850,16 +15859,16 @@ function SS() {
|
|
|
15850
15859
|
}
|
|
15851
15860
|
function di(s, l) {
|
|
15852
15861
|
fs(l) || (function d(p, T) {
|
|
15853
|
-
var
|
|
15854
|
-
ui(p,
|
|
15862
|
+
var v = T.from, E = T.to, _ = T.l, T = T.r;
|
|
15863
|
+
ui(p, v, E), _ && d(p, _), T && d(p, T);
|
|
15855
15864
|
})(s, l);
|
|
15856
15865
|
}
|
|
15857
15866
|
function El(s, l) {
|
|
15858
15867
|
var d = qi(l), p = d.next();
|
|
15859
15868
|
if (p.done) return !1;
|
|
15860
|
-
for (var g = p.value,
|
|
15861
|
-
if (ze(
|
|
15862
|
-
ze(g.from,
|
|
15869
|
+
for (var g = p.value, v = qi(s), E = v.next(g.from), _ = E.value; !p.done && !E.done; ) {
|
|
15870
|
+
if (ze(_.from, g.to) <= 0 && 0 <= ze(_.to, g.from)) return !0;
|
|
15871
|
+
ze(g.from, _.from) < 0 ? g = (p = d.next(_.from)).value : _ = (E = v.next(g.from)).value;
|
|
15863
15872
|
}
|
|
15864
15873
|
return !1;
|
|
15865
15874
|
}
|
|
@@ -15894,9 +15903,9 @@ function SS() {
|
|
|
15894
15903
|
function Gi(s, l) {
|
|
15895
15904
|
return a(l).forEach(function(d) {
|
|
15896
15905
|
s[d] ? di(s[d], l[d]) : s[d] = (function p(g) {
|
|
15897
|
-
var
|
|
15898
|
-
for (
|
|
15899
|
-
return
|
|
15906
|
+
var v, E, _ = {};
|
|
15907
|
+
for (v in g) y(g, v) && (E = g[v], _[v] = !E || typeof E != "object" || oe.has(E.constructor) ? E : p(E));
|
|
15908
|
+
return _;
|
|
15900
15909
|
})(l[d]);
|
|
15901
15910
|
}), s;
|
|
15902
15911
|
}
|
|
@@ -15930,17 +15939,17 @@ function SS() {
|
|
|
15930
15939
|
l === void 0 && (l = !1);
|
|
15931
15940
|
var d = /* @__PURE__ */ new Set();
|
|
15932
15941
|
if (s.all) for (var p = 0, g = Object.values(hr); p < g.length; p++) Cl(E = g[p], s, d, l);
|
|
15933
|
-
else for (var
|
|
15934
|
-
var E,
|
|
15935
|
-
|
|
15942
|
+
else for (var v in s) {
|
|
15943
|
+
var E, _ = /^idb\:\/\/(.*)\/(.*)\//.exec(v);
|
|
15944
|
+
_ && (v = _[1], _ = _[2], (E = hr["idb://".concat(v, "/").concat(_)]) && Cl(E, s, d, l));
|
|
15936
15945
|
}
|
|
15937
15946
|
d.forEach(function(T) {
|
|
15938
15947
|
return T();
|
|
15939
15948
|
});
|
|
15940
15949
|
}
|
|
15941
15950
|
function Cl(s, l, d, p) {
|
|
15942
|
-
for (var g = [],
|
|
15943
|
-
for (var
|
|
15951
|
+
for (var g = [], v = 0, E = Object.entries(s.queries.query); v < E.length; v++) {
|
|
15952
|
+
for (var _ = E[v], T = _[0], k = [], N = 0, x = _[1]; N < x.length; N++) {
|
|
15944
15953
|
var L = x[N];
|
|
15945
15954
|
hs(l, L.obsSet) ? L.subscribers.forEach(function(P) {
|
|
15946
15955
|
return d.add(P);
|
|
@@ -15959,11 +15968,11 @@ function SS() {
|
|
|
15959
15968
|
return l.dbOpenError ? ft(l.dbOpenError) : s;
|
|
15960
15969
|
});
|
|
15961
15970
|
l.isBeingOpened = !0, l.dbOpenError = null, l.openComplete = !1;
|
|
15962
|
-
var p = l.openCanceller, g = Math.round(10 * s.verno),
|
|
15971
|
+
var p = l.openCanceller, g = Math.round(10 * s.verno), v = !1;
|
|
15963
15972
|
function E() {
|
|
15964
15973
|
if (l.openCanceller !== p) throw new ue.DatabaseClosed("db.open() was cancelled");
|
|
15965
15974
|
}
|
|
15966
|
-
function
|
|
15975
|
+
function _() {
|
|
15967
15976
|
return new re(function(L, I) {
|
|
15968
15977
|
if (E(), !d) throw new ue.MissingAPI();
|
|
15969
15978
|
var O = s.name, M = l.autoSchema || !g ? d.open(O) : d.open(O, g);
|
|
@@ -15972,7 +15981,7 @@ function SS() {
|
|
|
15972
15981
|
var j;
|
|
15973
15982
|
N = M.transaction, l.autoSchema && !s._options.allowEmptyDB ? (M.onerror = si, N.abort(), M.result.close(), (j = d.deleteDatabase(O)).onsuccess = j.onerror = G(function() {
|
|
15974
15983
|
I(new ue.NoSuchDatabase("Database ".concat(O, " doesnt exist")));
|
|
15975
|
-
})) : (N.onerror = Cn(I), P = P.oldVersion > Math.pow(2, 62) ? 0 : P.oldVersion, x = P < 1, s.idbdb = M.result,
|
|
15984
|
+
})) : (N.onerror = Cn(I), P = P.oldVersion > Math.pow(2, 62) ? 0 : P.oldVersion, x = P < 1, s.idbdb = M.result, v && jf(s, N), Lf(s, P / 10, N, I));
|
|
15976
15985
|
}, I), M.onsuccess = G(function() {
|
|
15977
15986
|
N = null;
|
|
15978
15987
|
var P, j, B, W, V, X = s.idbdb = M.result, ae = U(X.objectStoreNames);
|
|
@@ -15981,7 +15990,7 @@ function SS() {
|
|
|
15981
15990
|
if (l.autoSchema) j = X, B = K, (P = s).verno = j.version / 10, B = P._dbSchema = Vi(0, j, B), P._storeNames = U(j.objectStoreNames, 0), zi(P, [P._allTables], a(B), B);
|
|
15982
15991
|
else if ($i(s, s._dbSchema, K), ((V = as(Vi(0, (V = s).idbdb, K), V._dbSchema)).add.length || V.change.some(function(ee) {
|
|
15983
15992
|
return ee.add.length || ee.change.length;
|
|
15984
|
-
})) && !
|
|
15993
|
+
})) && !v) 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."), X.close(), g = X.version + 1, v = !0, L(_());
|
|
15985
15994
|
Fi(s, K);
|
|
15986
15995
|
} catch {
|
|
15987
15996
|
}
|
|
@@ -15994,10 +16003,10 @@ function SS() {
|
|
|
15994
16003
|
}).catch(function(L) {
|
|
15995
16004
|
switch (L?.name) {
|
|
15996
16005
|
case "UnknownError":
|
|
15997
|
-
if (0 < l.PR1398_maxLoop) return l.PR1398_maxLoop--, console.warn("Dexie: Workaround for Chrome UnknownError on open()"),
|
|
16006
|
+
if (0 < l.PR1398_maxLoop) return l.PR1398_maxLoop--, console.warn("Dexie: Workaround for Chrome UnknownError on open()"), _();
|
|
15998
16007
|
break;
|
|
15999
16008
|
case "VersionError":
|
|
16000
|
-
if (0 < g) return g = 0,
|
|
16009
|
+
if (0 < g) return g = 0, _();
|
|
16001
16010
|
}
|
|
16002
16011
|
return re.reject(L);
|
|
16003
16012
|
});
|
|
@@ -16010,7 +16019,7 @@ function SS() {
|
|
|
16010
16019
|
T = setInterval(I, 100), I();
|
|
16011
16020
|
}).finally(function() {
|
|
16012
16021
|
return clearInterval(T);
|
|
16013
|
-
}) : Promise.resolve()).then(
|
|
16022
|
+
}) : Promise.resolve()).then(_)]).then(function() {
|
|
16014
16023
|
return E(), l.onReadyBeingFired = [], re.resolve(ds(function() {
|
|
16015
16024
|
return s.on.ready.fire(s.vip);
|
|
16016
16025
|
})).then(function L() {
|
|
@@ -16042,16 +16051,16 @@ function SS() {
|
|
|
16042
16051
|
});
|
|
16043
16052
|
}
|
|
16044
16053
|
function vs(s) {
|
|
16045
|
-
function l(
|
|
16046
|
-
return s.next(
|
|
16054
|
+
function l(v) {
|
|
16055
|
+
return s.next(v);
|
|
16047
16056
|
}
|
|
16048
|
-
var d = g(l), p = g(function(
|
|
16049
|
-
return s.throw(
|
|
16057
|
+
var d = g(l), p = g(function(v) {
|
|
16058
|
+
return s.throw(v);
|
|
16050
16059
|
});
|
|
16051
|
-
function g(
|
|
16060
|
+
function g(v) {
|
|
16052
16061
|
return function(T) {
|
|
16053
|
-
var
|
|
16054
|
-
return
|
|
16062
|
+
var _ = v(T), T = _.value;
|
|
16063
|
+
return _.done ? T : T && typeof T.then == "function" ? T.then(d, p) : c(T) ? Promise.all(T).then(d, p) : d(T);
|
|
16055
16064
|
};
|
|
16056
16065
|
}
|
|
16057
16066
|
return g(l)();
|
|
@@ -16062,23 +16071,23 @@ function SS() {
|
|
|
16062
16071
|
}
|
|
16063
16072
|
var Uf = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(s) {
|
|
16064
16073
|
return r(r({}, s), { table: function(l) {
|
|
16065
|
-
var d = s.table(l), p = d.schema, g = {},
|
|
16074
|
+
var d = s.table(l), p = d.schema, g = {}, v = [];
|
|
16066
16075
|
function E(x, L, I) {
|
|
16067
16076
|
var O = ci(x), M = g[O] = g[O] || [], P = x == null ? 0 : typeof x == "string" ? 1 : x.length, j = 0 < L, j = r(r({}, I), { name: j ? "".concat(O, "(virtual-from:").concat(I.name, ")") : I.name, lowLevelIndex: I, isVirtual: j, keyTail: L, keyLength: P, extractKey: os(x), unique: !j && I.unique });
|
|
16068
|
-
return M.push(j), j.isPrimaryKey ||
|
|
16077
|
+
return M.push(j), j.isPrimaryKey || v.push(j), 1 < P && E(P === 2 ? x[0] : x.slice(0, P - 1), L + 1, I), M.sort(function(B, W) {
|
|
16069
16078
|
return B.keyTail - W.keyTail;
|
|
16070
16079
|
}), j;
|
|
16071
16080
|
}
|
|
16072
16081
|
l = E(p.primaryKey.keyPath, 0, p.primaryKey), g[":id"] = [l];
|
|
16073
|
-
for (var
|
|
16074
|
-
var k = T[
|
|
16082
|
+
for (var _ = 0, T = p.indexes; _ < T.length; _++) {
|
|
16083
|
+
var k = T[_];
|
|
16075
16084
|
E(k.keyPath, 0, k);
|
|
16076
16085
|
}
|
|
16077
16086
|
function N(x) {
|
|
16078
16087
|
var L, I = x.query.index;
|
|
16079
16088
|
return I.isVirtual ? r(r({}, x), { query: { index: I.lowLevelIndex, range: (L = x.query.range, I = I.keyTail, { type: L.type === 1 ? 2 : L.type, lower: Ki(L.lower, L.lowerOpen ? s.MAX_KEY : s.MIN_KEY, I), lowerOpen: !0, upper: Ki(L.upper, L.upperOpen ? s.MIN_KEY : s.MAX_KEY, I), upperOpen: !0 }) } }) : x;
|
|
16080
16089
|
}
|
|
16081
|
-
return r(r({}, d), { schema: r(r({}, p), { primaryKey: l, indexes:
|
|
16090
|
+
return r(r({}, d), { schema: r(r({}, p), { primaryKey: l, indexes: v, getIndexByKeyPath: function(x) {
|
|
16082
16091
|
return (x = g[ci(x)]) && x[0];
|
|
16083
16092
|
} }), count: function(x) {
|
|
16084
16093
|
return d.count(N(x));
|
|
@@ -16108,10 +16117,10 @@ function SS() {
|
|
|
16108
16117
|
} };
|
|
16109
16118
|
function ys(s, l, d, p) {
|
|
16110
16119
|
return d = d || {}, p = p || "", a(s).forEach(function(g) {
|
|
16111
|
-
var
|
|
16112
|
-
|
|
16120
|
+
var v, E, _;
|
|
16121
|
+
y(l, g) ? (v = s[g], E = l[g], typeof v == "object" && typeof E == "object" && v && E ? (_ = Z(v)) !== Z(E) ? d[p + g] = l[g] : _ === "Object" ? ys(v, E, d, p + g + ".") : v !== E && (d[p + g] = l[g]) : v !== E && (d[p + g] = l[g])) : d[p + g] = void 0;
|
|
16113
16122
|
}), a(l).forEach(function(g) {
|
|
16114
|
-
|
|
16123
|
+
y(s, g) || (d[p + g] = l[g]);
|
|
16115
16124
|
}), d;
|
|
16116
16125
|
}
|
|
16117
16126
|
function bs(s, l) {
|
|
@@ -16121,26 +16130,26 @@ function SS() {
|
|
|
16121
16130
|
return r(r({}, s), { table: function(l) {
|
|
16122
16131
|
var d = s.table(l), p = d.schema.primaryKey;
|
|
16123
16132
|
return r(r({}, d), { mutate: function(g) {
|
|
16124
|
-
var
|
|
16133
|
+
var v = fe.trans, E = v.table(l).hook, _ = E.deleting, T = E.creating, k = E.updating;
|
|
16125
16134
|
switch (g.type) {
|
|
16126
16135
|
case "add":
|
|
16127
16136
|
if (T.fire === Ie) break;
|
|
16128
|
-
return
|
|
16137
|
+
return v._promise("readwrite", function() {
|
|
16129
16138
|
return N(g);
|
|
16130
16139
|
}, !0);
|
|
16131
16140
|
case "put":
|
|
16132
16141
|
if (T.fire === Ie && k.fire === Ie) break;
|
|
16133
|
-
return
|
|
16142
|
+
return v._promise("readwrite", function() {
|
|
16134
16143
|
return N(g);
|
|
16135
16144
|
}, !0);
|
|
16136
16145
|
case "delete":
|
|
16137
|
-
if (
|
|
16138
|
-
return
|
|
16146
|
+
if (_.fire === Ie) break;
|
|
16147
|
+
return v._promise("readwrite", function() {
|
|
16139
16148
|
return N(g);
|
|
16140
16149
|
}, !0);
|
|
16141
16150
|
case "deleteRange":
|
|
16142
|
-
if (
|
|
16143
|
-
return
|
|
16151
|
+
if (_.fire === Ie) break;
|
|
16152
|
+
return v._promise("readwrite", function() {
|
|
16144
16153
|
return (function x(L, I, O) {
|
|
16145
16154
|
return d.query({ trans: L, values: !1, query: { index: p, range: I }, limit: O }).then(function(M) {
|
|
16146
16155
|
var P = M.result;
|
|
@@ -16158,8 +16167,8 @@ function SS() {
|
|
|
16158
16167
|
return (x = x.type === "add" || x.type === "put" ? r(r({}, x), { keys: P }) : r({}, x)).type !== "delete" && (x.values = i([], x.values)), x.keys && (x.keys = i([], x.keys)), L = d, O = P, ((I = x).type === "add" ? Promise.resolve([]) : L.getMany({ trans: I.trans, keys: O, cache: "immutable" })).then(function(j) {
|
|
16159
16168
|
var B = P.map(function(W, V) {
|
|
16160
16169
|
var X, ae, K, ee = j[V], ce = { onerror: null, onsuccess: null };
|
|
16161
|
-
return x.type === "delete" ?
|
|
16162
|
-
|
|
16170
|
+
return x.type === "delete" ? _.fire.call(ce, W, ee, M) : x.type === "add" || ee === void 0 ? (X = T.fire.call(ce, W, x.values[V], M), W == null && X != null && (x.keys[V] = W = X, p.outbound || de(x.values[V], p.keyPath, W))) : (X = ys(ee, x.values[V]), (ae = k.fire.call(ce, X, W, ee, M)) && (K = x.values[V], Object.keys(ae).forEach(function(ne) {
|
|
16171
|
+
y(K, ne) ? K[ne] = ae[ne] : de(K, ne, ae[ne]);
|
|
16163
16172
|
}))), ce;
|
|
16164
16173
|
});
|
|
16165
16174
|
return d.mutate(x).then(function(W) {
|
|
@@ -16181,7 +16190,7 @@ function SS() {
|
|
|
16181
16190
|
function Dl(s, l, d) {
|
|
16182
16191
|
try {
|
|
16183
16192
|
if (!l || l.keys.length < s.length) return null;
|
|
16184
|
-
for (var p = [], g = 0,
|
|
16193
|
+
for (var p = [], g = 0, v = 0; g < l.keys.length && v < s.length; ++g) ze(l.keys[g], s[v]) === 0 && (p.push(d ? Oe(l.values[g]) : l.values[g]), ++v);
|
|
16185
16194
|
return p.length === s.length ? p : null;
|
|
16186
16195
|
} catch {
|
|
16187
16196
|
return null;
|
|
@@ -16193,8 +16202,8 @@ function SS() {
|
|
|
16193
16202
|
return r(r({}, d), { getMany: function(p) {
|
|
16194
16203
|
if (!p.cache) return d.getMany(p);
|
|
16195
16204
|
var g = Dl(p.keys, p.trans._cache, p.cache === "clone");
|
|
16196
|
-
return g ? re.resolve(g) : d.getMany(p).then(function(
|
|
16197
|
-
return p.trans._cache = { keys: p.keys, values: p.cache === "clone" ? Oe(
|
|
16205
|
+
return g ? re.resolve(g) : d.getMany(p).then(function(v) {
|
|
16206
|
+
return p.trans._cache = { keys: p.keys, values: p.cache === "clone" ? Oe(v) : v }, v;
|
|
16198
16207
|
});
|
|
16199
16208
|
}, mutate: function(p) {
|
|
16200
16209
|
return p.type !== "add" && (p.trans._cache = null), d.mutate(p);
|
|
@@ -16217,11 +16226,11 @@ function SS() {
|
|
|
16217
16226
|
}
|
|
16218
16227
|
var Wf = { stack: "dbcore", level: 0, name: "Observability", create: function(s) {
|
|
16219
16228
|
var l = s.schema.name, d = new Nt(s.MIN_KEY, s.MAX_KEY);
|
|
16220
|
-
return r(r({}, s), { transaction: function(p, g,
|
|
16229
|
+
return r(r({}, s), { transaction: function(p, g, v) {
|
|
16221
16230
|
if (fe.subscr && g !== "readonly") throw new ue.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(fe.querier));
|
|
16222
|
-
return s.transaction(p, g,
|
|
16231
|
+
return s.transaction(p, g, v);
|
|
16223
16232
|
}, table: function(p) {
|
|
16224
|
-
var g = s.table(p),
|
|
16233
|
+
var g = s.table(p), v = g.schema, E = v.primaryKey, x = v.indexes, _ = E.extractKey, T = E.outbound, k = E.autoIncrement && x.filter(function(I) {
|
|
16225
16234
|
return I.compound && I.keyPath.includes(E.keyPath);
|
|
16226
16235
|
}), N = r(r({}, g), { mutate: function(I) {
|
|
16227
16236
|
function O(ne) {
|
|
@@ -16230,7 +16239,7 @@ function SS() {
|
|
|
16230
16239
|
var M, P, j, B = I.trans, W = I.mutatedParts || (I.mutatedParts = {}), V = O(""), X = O(":dels"), ae = I.type, ce = I.type === "deleteRange" ? [I.range] : I.type === "delete" ? [I.keys] : I.values.length < 50 ? [bs(E, I).filter(function(ne) {
|
|
16231
16240
|
return ne;
|
|
16232
16241
|
}), I.values] : [], K = ce[0], ee = ce[1], ce = I.trans._cache;
|
|
16233
|
-
return c(K) ? (V.addKeys(K), (ce = ae === "delete" || K.length === ee.length ? Dl(K, ce) : null) || X.addKeys(K), (ce || ee) && (M = O, P = ce, j = ee,
|
|
16242
|
+
return c(K) ? (V.addKeys(K), (ce = ae === "delete" || K.length === ee.length ? Dl(K, ce) : null) || X.addKeys(K), (ce || ee) && (M = O, P = ce, j = ee, v.indexes.forEach(function(ne) {
|
|
16234
16243
|
var me = M(ne.name || "");
|
|
16235
16244
|
function Ne(He) {
|
|
16236
16245
|
return He != null ? ne.extractKey(He) : null;
|
|
@@ -16244,7 +16253,7 @@ function SS() {
|
|
|
16244
16253
|
var Me = P && Ne(P[Pt]), Pt = j && Ne(j[Pt]);
|
|
16245
16254
|
ze(Me, Pt) !== 0 && (Me != null && Le(Me), Pt != null && Le(Pt));
|
|
16246
16255
|
});
|
|
16247
|
-
}))) : K ? (ee = { from: (ee = K.lower) !== null && ee !== void 0 ? ee : s.MIN_KEY, to: (ee = K.upper) !== null && ee !== void 0 ? ee : s.MAX_KEY }, X.add(ee), V.add(ee)) : (V.add(d), X.add(d),
|
|
16256
|
+
}))) : K ? (ee = { from: (ee = K.lower) !== null && ee !== void 0 ? ee : s.MIN_KEY, to: (ee = K.upper) !== null && ee !== void 0 ? ee : s.MAX_KEY }, X.add(ee), V.add(ee)) : (V.add(d), X.add(d), v.indexes.forEach(function(ne) {
|
|
16248
16257
|
return O(ne.name).add(d);
|
|
16249
16258
|
})), g.mutate(I).then(function(ne) {
|
|
16250
16259
|
return !K || I.type !== "add" && I.type !== "put" || (V.addKeys(ne.results), k && k.forEach(function(me) {
|
|
@@ -16279,7 +16288,7 @@ function SS() {
|
|
|
16279
16288
|
if (T && O.values) return X.then(function(Ne) {
|
|
16280
16289
|
return Ne = Ne.result, W.addKeys(Ne), ee;
|
|
16281
16290
|
});
|
|
16282
|
-
var ce = O.values ? ee.result.map(
|
|
16291
|
+
var ce = O.values ? ee.result.map(_) : ee.result;
|
|
16283
16292
|
(O.values ? W : V).addKeys(ce);
|
|
16284
16293
|
} else if (I === "openCursor") {
|
|
16285
16294
|
var ne = ee, me = O.values;
|
|
@@ -16307,23 +16316,23 @@ function SS() {
|
|
|
16307
16316
|
if (d.numFailures === 0) return l;
|
|
16308
16317
|
if (l.type === "deleteRange") return null;
|
|
16309
16318
|
var p = l.keys ? l.keys.length : "values" in l && l.values ? l.values.length : 1;
|
|
16310
|
-
return d.numFailures === p ? null : (l = r({}, l), c(l.keys) && (l.keys = l.keys.filter(function(g,
|
|
16311
|
-
return !(
|
|
16312
|
-
})), "values" in l && c(l.values) && (l.values = l.values.filter(function(g,
|
|
16313
|
-
return !(
|
|
16319
|
+
return d.numFailures === p ? null : (l = r({}, l), c(l.keys) && (l.keys = l.keys.filter(function(g, v) {
|
|
16320
|
+
return !(v in d.failures);
|
|
16321
|
+
})), "values" in l && c(l.values) && (l.values = l.values.filter(function(g, v) {
|
|
16322
|
+
return !(v in d.failures);
|
|
16314
16323
|
})), l);
|
|
16315
16324
|
}
|
|
16316
16325
|
function ws(s, l) {
|
|
16317
16326
|
return d = s, ((p = l).lower === void 0 || (p.lowerOpen ? 0 < ze(d, p.lower) : 0 <= ze(d, p.lower))) && (s = s, (l = l).upper === void 0 || (l.upperOpen ? ze(s, l.upper) < 0 : ze(s, l.upper) <= 0));
|
|
16318
16327
|
var d, p;
|
|
16319
16328
|
}
|
|
16320
|
-
function Tl(s, l, L, p, g,
|
|
16329
|
+
function Tl(s, l, L, p, g, v) {
|
|
16321
16330
|
if (!L || L.length === 0) return s;
|
|
16322
|
-
var E = l.query.index,
|
|
16331
|
+
var E = l.query.index, _ = E.multiEntry, T = l.query.range, k = p.schema.primaryKey.extractKey, N = E.extractKey, x = (E.lowLevelIndex || E).extractKey, L = L.reduce(function(I, O) {
|
|
16323
16332
|
var M = I, P = [];
|
|
16324
16333
|
if (O.type === "add" || O.type === "put") for (var j = new Nt(), B = O.values.length - 1; 0 <= B; --B) {
|
|
16325
16334
|
var W, V = O.values[B], X = k(V);
|
|
16326
|
-
j.hasKey(X) || (W = N(V), (
|
|
16335
|
+
j.hasKey(X) || (W = N(V), (_ && c(W) ? W.some(function(ne) {
|
|
16327
16336
|
return ws(ne, T);
|
|
16328
16337
|
}) : ws(W, T)) && (j.addKey(X), P.push(V)));
|
|
16329
16338
|
}
|
|
@@ -16365,61 +16374,61 @@ function SS() {
|
|
|
16365
16374
|
}, s);
|
|
16366
16375
|
return L === s ? s : (L.sort(function(I, O) {
|
|
16367
16376
|
return ze(x(I), x(O)) || ze(k(I), k(O));
|
|
16368
|
-
}), l.limit && l.limit < 1 / 0 && (L.length > l.limit ? L.length = l.limit : s.length === l.limit && L.length < l.limit && (g.dirty = !0)),
|
|
16377
|
+
}), l.limit && l.limit < 1 / 0 && (L.length > l.limit ? L.length = l.limit : s.length === l.limit && L.length < l.limit && (g.dirty = !0)), v ? Object.freeze(L) : L);
|
|
16369
16378
|
}
|
|
16370
16379
|
function kl(s, l) {
|
|
16371
16380
|
return ze(s.lower, l.lower) === 0 && ze(s.upper, l.upper) === 0 && !!s.lowerOpen == !!l.lowerOpen && !!s.upperOpen == !!l.upperOpen;
|
|
16372
16381
|
}
|
|
16373
16382
|
function Vf(s, l) {
|
|
16374
|
-
return (function(d, p, g,
|
|
16383
|
+
return (function(d, p, g, v) {
|
|
16375
16384
|
if (d === void 0) return p !== void 0 ? -1 : 0;
|
|
16376
16385
|
if (p === void 0) return 1;
|
|
16377
16386
|
if ((p = ze(d, p)) === 0) {
|
|
16378
|
-
if (g &&
|
|
16387
|
+
if (g && v) return 0;
|
|
16379
16388
|
if (g) return 1;
|
|
16380
|
-
if (
|
|
16389
|
+
if (v) return -1;
|
|
16381
16390
|
}
|
|
16382
16391
|
return p;
|
|
16383
|
-
})(s.lower, l.lower, s.lowerOpen, l.lowerOpen) <= 0 && 0 <= (function(d, p, g,
|
|
16392
|
+
})(s.lower, l.lower, s.lowerOpen, l.lowerOpen) <= 0 && 0 <= (function(d, p, g, v) {
|
|
16384
16393
|
if (d === void 0) return p !== void 0 ? 1 : 0;
|
|
16385
16394
|
if (p === void 0) return -1;
|
|
16386
16395
|
if ((p = ze(d, p)) === 0) {
|
|
16387
|
-
if (g &&
|
|
16396
|
+
if (g && v) return 0;
|
|
16388
16397
|
if (g) return -1;
|
|
16389
|
-
if (
|
|
16398
|
+
if (v) return 1;
|
|
16390
16399
|
}
|
|
16391
16400
|
return p;
|
|
16392
16401
|
})(s.upper, l.upper, s.upperOpen, l.upperOpen);
|
|
16393
16402
|
}
|
|
16394
16403
|
function $f(s, l, d, p) {
|
|
16395
16404
|
s.subscribers.add(d), p.addEventListener("abort", function() {
|
|
16396
|
-
var g,
|
|
16397
|
-
s.subscribers.delete(d), s.subscribers.size === 0 && (g = s,
|
|
16398
|
-
g.subscribers.size === 0 && $(
|
|
16405
|
+
var g, v;
|
|
16406
|
+
s.subscribers.delete(d), s.subscribers.size === 0 && (g = s, v = l, setTimeout(function() {
|
|
16407
|
+
g.subscribers.size === 0 && $(v, g);
|
|
16399
16408
|
}, 3e3));
|
|
16400
16409
|
});
|
|
16401
16410
|
}
|
|
16402
16411
|
var qf = { stack: "dbcore", level: 0, name: "Cache", create: function(s) {
|
|
16403
16412
|
var l = s.schema.name;
|
|
16404
16413
|
return r(r({}, s), { transaction: function(d, p, g) {
|
|
16405
|
-
var
|
|
16406
|
-
return p === "readwrite" && (E = (
|
|
16414
|
+
var v, E, _ = s.transaction(d, p, g);
|
|
16415
|
+
return p === "readwrite" && (E = (v = new AbortController()).signal, g = function(T) {
|
|
16407
16416
|
return function() {
|
|
16408
|
-
if (
|
|
16417
|
+
if (v.abort(), p === "readwrite") {
|
|
16409
16418
|
for (var k = /* @__PURE__ */ new Set(), N = 0, x = d; N < x.length; N++) {
|
|
16410
16419
|
var L = x[N], I = hr["idb://".concat(l, "/").concat(L)];
|
|
16411
16420
|
if (I) {
|
|
16412
16421
|
var O = s.table(L), M = I.optimisticOps.filter(function(me) {
|
|
16413
|
-
return me.trans ===
|
|
16422
|
+
return me.trans === _;
|
|
16414
16423
|
});
|
|
16415
|
-
if (
|
|
16424
|
+
if (_._explicit && T && _.mutatedParts) for (var P = 0, j = Object.values(I.queries.query); P < j.length; P++) for (var B = 0, W = (ae = j[P]).slice(); B < W.length; B++) hs((K = W[B]).obsSet, _.mutatedParts) && ($(ae, K), K.subscribers.forEach(function(me) {
|
|
16416
16425
|
return k.add(me);
|
|
16417
16426
|
}));
|
|
16418
16427
|
else if (0 < M.length) {
|
|
16419
16428
|
I.optimisticOps = I.optimisticOps.filter(function(me) {
|
|
16420
|
-
return me.trans !==
|
|
16429
|
+
return me.trans !== _;
|
|
16421
16430
|
});
|
|
16422
|
-
for (var V = 0, X = Object.values(I.queries.query); V < X.length; V++) for (var ae, K, ee, ce = 0, ne = (ae = X[V]).slice(); ce < ne.length; ce++) (K = ne[ce]).res != null &&
|
|
16431
|
+
for (var V = 0, X = Object.values(I.queries.query); V < X.length; V++) for (var ae, K, ee, ce = 0, ne = (ae = X[V]).slice(); ce < ne.length; ce++) (K = ne[ce]).res != null && _.mutatedParts && (T && !K.dirty ? (ee = Object.isFrozen(K.res), ee = Tl(K.res, K.req, M, O, K, ee), K.dirty ? ($(ae, K), K.subscribers.forEach(function(me) {
|
|
16423
16432
|
return k.add(me);
|
|
16424
16433
|
})) : ee !== K.res && (K.res = ee, K.promise = re.resolve({ result: ee }))) : (K.dirty && $(ae, K), K.subscribers.forEach(function(me) {
|
|
16425
16434
|
return k.add(me);
|
|
@@ -16432,31 +16441,31 @@ function SS() {
|
|
|
16432
16441
|
});
|
|
16433
16442
|
}
|
|
16434
16443
|
};
|
|
16435
|
-
},
|
|
16444
|
+
}, _.addEventListener("abort", g(!1), { signal: E }), _.addEventListener("error", g(!1), { signal: E }), _.addEventListener("complete", g(!0), { signal: E })), _;
|
|
16436
16445
|
}, table: function(d) {
|
|
16437
16446
|
var p = s.table(d), g = p.schema.primaryKey;
|
|
16438
|
-
return r(r({}, p), { mutate: function(
|
|
16447
|
+
return r(r({}, p), { mutate: function(v) {
|
|
16439
16448
|
var E = fe.trans;
|
|
16440
|
-
if (g.outbound || E.db._options.cache === "disabled" || E.explicit || E.idbtrans.mode !== "readwrite") return p.mutate(
|
|
16441
|
-
var
|
|
16442
|
-
return
|
|
16449
|
+
if (g.outbound || E.db._options.cache === "disabled" || E.explicit || E.idbtrans.mode !== "readwrite") return p.mutate(v);
|
|
16450
|
+
var _ = hr["idb://".concat(l, "/").concat(d)];
|
|
16451
|
+
return _ ? (E = p.mutate(v), v.type !== "add" && v.type !== "put" || !(50 <= v.values.length || bs(g, v).some(function(T) {
|
|
16443
16452
|
return T == null;
|
|
16444
|
-
})) ? (
|
|
16445
|
-
0 < T.numFailures && ($(
|
|
16453
|
+
})) ? (_.optimisticOps.push(v), v.mutatedParts && Yi(v.mutatedParts), E.then(function(T) {
|
|
16454
|
+
0 < T.numFailures && ($(_.optimisticOps, v), (T = Rl(0, v, T)) && _.optimisticOps.push(T), v.mutatedParts && Yi(v.mutatedParts));
|
|
16446
16455
|
}), E.catch(function() {
|
|
16447
|
-
$(
|
|
16456
|
+
$(_.optimisticOps, v), v.mutatedParts && Yi(v.mutatedParts);
|
|
16448
16457
|
})) : E.then(function(T) {
|
|
16449
|
-
var k = Rl(0, r(r({},
|
|
16458
|
+
var k = Rl(0, r(r({}, v), { values: v.values.map(function(N, x) {
|
|
16450
16459
|
var L;
|
|
16451
16460
|
return T.failures[x] ? N : (N = (L = g.keyPath) !== null && L !== void 0 && L.includes(".") ? Oe(N) : r({}, N), de(N, g.keyPath, T.results[x]), N);
|
|
16452
16461
|
}) }), T);
|
|
16453
|
-
|
|
16454
|
-
return
|
|
16462
|
+
_.optimisticOps.push(k), queueMicrotask(function() {
|
|
16463
|
+
return v.mutatedParts && Yi(v.mutatedParts);
|
|
16455
16464
|
});
|
|
16456
|
-
}), E) : p.mutate(
|
|
16457
|
-
}, query: function(
|
|
16458
|
-
if (!_l(fe, p) || !xl("query",
|
|
16459
|
-
var E = ((k = fe.trans) === null || k === void 0 ? void 0 : k.db._options.cache) === "immutable", x = fe,
|
|
16465
|
+
}), E) : p.mutate(v);
|
|
16466
|
+
}, query: function(v) {
|
|
16467
|
+
if (!_l(fe, p) || !xl("query", v)) return p.query(v);
|
|
16468
|
+
var E = ((k = fe.trans) === null || k === void 0 ? void 0 : k.db._options.cache) === "immutable", x = fe, _ = x.requery, T = x.signal, k = (function(O, M, P, j) {
|
|
16460
16469
|
var B = hr["idb://".concat(O, "/").concat(M)];
|
|
16461
16470
|
if (!B) return [];
|
|
16462
16471
|
if (!(M = B.queries[P])) return [null, !1, B, null];
|
|
@@ -16475,8 +16484,8 @@ function SS() {
|
|
|
16475
16484
|
return kl(X.req.query.range, j.query.range);
|
|
16476
16485
|
}), [V, !!V, B, W];
|
|
16477
16486
|
}
|
|
16478
|
-
})(l, d, "query",
|
|
16479
|
-
return N && x ? N.obsSet =
|
|
16487
|
+
})(l, d, "query", v), N = k[0], x = k[1], L = k[2], I = k[3];
|
|
16488
|
+
return N && x ? N.obsSet = v.obsSet : (x = p.query(v).then(function(O) {
|
|
16480
16489
|
var M = O.result;
|
|
16481
16490
|
if (N && (N.res = M), E) {
|
|
16482
16491
|
for (var P = 0, j = M.length; P < j; ++P) Object.freeze(M[P]);
|
|
@@ -16485,8 +16494,8 @@ function SS() {
|
|
|
16485
16494
|
return O;
|
|
16486
16495
|
}).catch(function(O) {
|
|
16487
16496
|
return I && N && $(I, N), Promise.reject(O);
|
|
16488
|
-
}), N = { obsSet:
|
|
16489
|
-
return { result: Tl(O.result,
|
|
16497
|
+
}), N = { obsSet: v.obsSet, promise: x, subscribers: /* @__PURE__ */ new Set(), type: "query", req: v, dirty: !1 }, I ? I.push(N) : (I = [N], (L = L || (hr["idb://".concat(l, "/").concat(d)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[v.query.index.name || ""] = I)), $f(N, I, _, T), N.promise.then(function(O) {
|
|
16498
|
+
return { result: Tl(O.result, v, L?.optimisticOps, p, N, E) };
|
|
16490
16499
|
});
|
|
16491
16500
|
} });
|
|
16492
16501
|
} });
|
|
@@ -16516,8 +16525,8 @@ function SS() {
|
|
|
16516
16525
|
}).then(s);
|
|
16517
16526
|
}, wt.prototype.use = function(s) {
|
|
16518
16527
|
var l = s.stack, d = s.create, p = s.level, g = s.name;
|
|
16519
|
-
return g && this.unuse({ stack: l, name: g }), s = this._middlewares[l] || (this._middlewares[l] = []), s.push({ stack: l, create: d, level: p ?? 10, name: g }), s.sort(function(
|
|
16520
|
-
return
|
|
16528
|
+
return g && this.unuse({ stack: l, name: g }), s = this._middlewares[l] || (this._middlewares[l] = []), s.push({ stack: l, create: d, level: p ?? 10, name: g }), s.sort(function(v, E) {
|
|
16529
|
+
return v.level - E.level;
|
|
16521
16530
|
}), this;
|
|
16522
16531
|
}, wt.prototype.unuse = function(s) {
|
|
16523
16532
|
var l = s.stack, d = s.name, p = s.create;
|
|
@@ -16551,14 +16560,14 @@ function SS() {
|
|
|
16551
16560
|
var l = this;
|
|
16552
16561
|
s === void 0 && (s = { disableAutoOpen: !0 });
|
|
16553
16562
|
var d = 0 < arguments.length && typeof arguments[0] != "object", p = this._state;
|
|
16554
|
-
return new re(function(g,
|
|
16563
|
+
return new re(function(g, v) {
|
|
16555
16564
|
function E() {
|
|
16556
16565
|
l.close(s);
|
|
16557
|
-
var
|
|
16558
|
-
|
|
16566
|
+
var _ = l._deps.indexedDB.deleteDatabase(l.name);
|
|
16567
|
+
_.onsuccess = G(function() {
|
|
16559
16568
|
var T, k, N;
|
|
16560
16569
|
T = l._deps, k = l.name, N = T.indexedDB, T = T.IDBKeyRange, us(N) || k === Pr || cs(N, T).delete(k).catch(Ie), g();
|
|
16561
|
-
}),
|
|
16570
|
+
}), _.onerror = Cn(v), _.onblocked = l._fireOnBlocked;
|
|
16562
16571
|
}
|
|
16563
16572
|
if (d) throw new ue.InvalidArgument("Invalid closeOptions argument to db.delete()");
|
|
16564
16573
|
p.isBeingOpened ? p.dbReadyPromise.then(E) : E();
|
|
@@ -16583,35 +16592,35 @@ function SS() {
|
|
|
16583
16592
|
var s = (function(l, d, p) {
|
|
16584
16593
|
var g = arguments.length;
|
|
16585
16594
|
if (g < 2) throw new ue.InvalidArgument("Too few arguments");
|
|
16586
|
-
for (var
|
|
16587
|
-
return p =
|
|
16595
|
+
for (var v = new Array(g - 1); --g; ) v[g - 1] = arguments[g];
|
|
16596
|
+
return p = v.pop(), [l, be(v), p];
|
|
16588
16597
|
}).apply(this, arguments);
|
|
16589
16598
|
return this._transaction.apply(this, s);
|
|
16590
16599
|
}, wt.prototype._transaction = function(s, l, d) {
|
|
16591
16600
|
var p = this, g = fe.trans;
|
|
16592
16601
|
g && g.db === this && s.indexOf("!") === -1 || (g = null);
|
|
16593
|
-
var
|
|
16602
|
+
var v, E, _ = s.indexOf("?") !== -1;
|
|
16594
16603
|
s = s.replace("!", "").replace("?", "");
|
|
16595
16604
|
try {
|
|
16596
16605
|
if (E = l.map(function(k) {
|
|
16597
16606
|
if (k = k instanceof p.Table ? k.name : k, typeof k != "string") throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
|
|
16598
16607
|
return k;
|
|
16599
|
-
}), s == "r" || s === dr)
|
|
16608
|
+
}), s == "r" || s === dr) v = dr;
|
|
16600
16609
|
else {
|
|
16601
16610
|
if (s != "rw" && s != Jo) throw new ue.InvalidArgument("Invalid transaction mode: " + s);
|
|
16602
|
-
|
|
16611
|
+
v = Jo;
|
|
16603
16612
|
}
|
|
16604
16613
|
if (g) {
|
|
16605
|
-
if (g.mode === dr &&
|
|
16606
|
-
if (!
|
|
16614
|
+
if (g.mode === dr && v === Jo) {
|
|
16615
|
+
if (!_) throw new ue.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
|
|
16607
16616
|
g = null;
|
|
16608
16617
|
}
|
|
16609
16618
|
g && E.forEach(function(k) {
|
|
16610
16619
|
if (g && g.storeNames.indexOf(k) === -1) {
|
|
16611
|
-
if (!
|
|
16620
|
+
if (!_) throw new ue.SubTransaction("Table " + k + " not included in parent transaction.");
|
|
16612
16621
|
g = null;
|
|
16613
16622
|
}
|
|
16614
|
-
}),
|
|
16623
|
+
}), _ && g && !g.active && (g = null);
|
|
16615
16624
|
}
|
|
16616
16625
|
} catch (k) {
|
|
16617
16626
|
return g ? g._promise(null, function(N, x) {
|
|
@@ -16645,12 +16654,12 @@ function SS() {
|
|
|
16645
16654
|
return P._reject(W), ft(W);
|
|
16646
16655
|
});
|
|
16647
16656
|
});
|
|
16648
|
-
}).bind(null, this,
|
|
16649
|
-
return g ? g._promise(
|
|
16657
|
+
}).bind(null, this, v, E, g, d);
|
|
16658
|
+
return g ? g._promise(v, T, "lock") : fe.trans ? An(fe.transless, function() {
|
|
16650
16659
|
return p._whenReady(T);
|
|
16651
16660
|
}) : this._whenReady(T);
|
|
16652
16661
|
}, wt.prototype.table = function(s) {
|
|
16653
|
-
if (!
|
|
16662
|
+
if (!y(this._allTables, s)) throw new ue.InvalidTable("Table ".concat(s, " does not exist"));
|
|
16654
16663
|
return this._allTables[s];
|
|
16655
16664
|
}, wt);
|
|
16656
16665
|
function wt(s, l) {
|
|
@@ -16658,7 +16667,7 @@ function SS() {
|
|
|
16658
16667
|
this._middlewares = {}, this.verno = 0;
|
|
16659
16668
|
var p = wt.dependencies;
|
|
16660
16669
|
this._options = l = r({ addons: wt.addons, autoOpen: !0, indexedDB: p.indexedDB, IDBKeyRange: p.IDBKeyRange, cache: "cloned" }, l), this._deps = { indexedDB: l.indexedDB, IDBKeyRange: l.IDBKeyRange }, p = l.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
|
|
16661
|
-
var g,
|
|
16670
|
+
var g, v, E, _, T, k = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: Ie, dbReadyPromise: null, cancelOpen: Ie, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: l.autoOpen };
|
|
16662
16671
|
k.dbReadyPromise = new re(function(x) {
|
|
16663
16672
|
k.dbReadyResolve = x;
|
|
16664
16673
|
}), k.openCanceller = new re(function(x, L) {
|
|
@@ -16688,8 +16697,8 @@ function SS() {
|
|
|
16688
16697
|
}
|
|
16689
16698
|
var M = j._ctx, P = M.table, j = P.hook.reading.fire;
|
|
16690
16699
|
this._ctx = { table: P, index: M.index, isPrimKey: !M.index || P.schema.primKey.keyPath && M.index === P.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: O, or: M.or, valueMapper: j !== yt ? j : null };
|
|
16691
|
-
})), this.Table = (
|
|
16692
|
-
this.db =
|
|
16700
|
+
})), this.Table = (v = this, oi(dl.prototype, function(x, L, I) {
|
|
16701
|
+
this.db = v, this._tx = I, this.name = x, this.schema = L, this.hook = v._allTables[x] ? v._allTables[x].hook : ii(null, { creating: [vn, Ie], reading: [Mt, yt], updating: [Pn, Ie], deleting: [St, Ie] });
|
|
16693
16702
|
})), this.Transaction = (E = this, oi(If.prototype, function(x, L, I, O, M) {
|
|
16694
16703
|
var P = this;
|
|
16695
16704
|
x !== "readonly" && L.forEach(function(j) {
|
|
@@ -16704,8 +16713,8 @@ function SS() {
|
|
|
16704
16713
|
var B = P.active;
|
|
16705
16714
|
return P.active = !1, P.on.error.fire(j), P.parent ? P.parent._reject(j) : B && P.idbtrans && P.idbtrans.abort(), ft(j);
|
|
16706
16715
|
});
|
|
16707
|
-
})), this.Version = (
|
|
16708
|
-
this.db =
|
|
16716
|
+
})), this.Version = (_ = this, oi(Hf.prototype, function(x) {
|
|
16717
|
+
this.db = _, this._cfg = { version: x, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
|
|
16709
16718
|
})), this.WhereClause = (T = this, oi(ml.prototype, function(x, L, I) {
|
|
16710
16719
|
if (this.db = T, this._ctx = { table: x, index: L === ":id" ? null : L, or: I }, this._cmp = this._ascending = ze, this._descending = function(O, M) {
|
|
16711
16720
|
return ze(M, O);
|
|
@@ -16758,10 +16767,10 @@ function SS() {
|
|
|
16758
16767
|
}
|
|
16759
16768
|
function Il(s) {
|
|
16760
16769
|
var l, d = !1, p = new Gf(function(g) {
|
|
16761
|
-
var
|
|
16762
|
-
return
|
|
16770
|
+
var v = je(s), E, _ = !1, T = {}, k = {}, N = { get closed() {
|
|
16771
|
+
return _;
|
|
16763
16772
|
}, unsubscribe: function() {
|
|
16764
|
-
|
|
16773
|
+
_ || (_ = !0, E && E.abort(), x && Kn.storagemutated.unsubscribe(I));
|
|
16765
16774
|
} };
|
|
16766
16775
|
g.start && g.start(N);
|
|
16767
16776
|
var x = !1, L = function() {
|
|
@@ -16770,25 +16779,25 @@ function SS() {
|
|
|
16770
16779
|
Gi(T, M), hs(k, T) && L();
|
|
16771
16780
|
}, O = function() {
|
|
16772
16781
|
var M, P, j;
|
|
16773
|
-
!
|
|
16782
|
+
!_ && Zi.indexedDB && (T = {}, M = {}, E && E.abort(), E = new AbortController(), j = (function(B) {
|
|
16774
16783
|
var W = Se();
|
|
16775
16784
|
try {
|
|
16776
|
-
|
|
16785
|
+
v && Dt();
|
|
16777
16786
|
var V = dt(s, B);
|
|
16778
|
-
return V =
|
|
16787
|
+
return V = v ? V.finally(Ye) : V;
|
|
16779
16788
|
} finally {
|
|
16780
16789
|
W && Pe();
|
|
16781
16790
|
}
|
|
16782
16791
|
})(P = { subscr: M, signal: E.signal, requery: L, querier: s, trans: null }), Promise.resolve(j).then(function(B) {
|
|
16783
|
-
d = !0, l = B,
|
|
16784
|
-
for (var V in W) if (
|
|
16792
|
+
d = !0, l = B, _ || P.signal.aborted || (T = {}, (function(W) {
|
|
16793
|
+
for (var V in W) if (y(W, V)) return;
|
|
16785
16794
|
return 1;
|
|
16786
16795
|
})(k = M) || x || (Kn(ai, I), x = !0), Mr(function() {
|
|
16787
|
-
return !
|
|
16796
|
+
return !_ && g.next && g.next(B);
|
|
16788
16797
|
}));
|
|
16789
16798
|
}, function(B) {
|
|
16790
|
-
d = !1, ["DatabaseClosedError", "AbortError"].includes(B?.name) ||
|
|
16791
|
-
|
|
16799
|
+
d = !1, ["DatabaseClosedError", "AbortError"].includes(B?.name) || _ || Mr(function() {
|
|
16800
|
+
_ || g.error && g.error(B);
|
|
16792
16801
|
});
|
|
16793
16802
|
}));
|
|
16794
16803
|
};
|
|
@@ -16996,12 +17005,12 @@ function IS({
|
|
|
16996
17005
|
// isCaseSettled true
|
|
16997
17006
|
};
|
|
16998
17007
|
function f(S) {
|
|
16999
|
-
let
|
|
17008
|
+
let D = !0, R = !0;
|
|
17000
17009
|
for (const U of i[S.CourtDateID] || [])
|
|
17001
|
-
|
|
17002
|
-
return R ?
|
|
17010
|
+
D && !Ni(U, Ar(S.MuniCode)) && (D = !1), R && U.DateCompleted === null && (R = !1);
|
|
17011
|
+
return R ? D ? "Settled/Decision" : S.Lifecycle === $t.UPLOADED ? "NYSCEF Uploaded" : S.Lifecycle === $t.ADJOURNED ? "Adjourned" : S.Lifecycle === $t.SCHEDULED || S.Lifecycle === $t.ASSIGNED ? "Scheduled" : "Blank" : "Reviewing";
|
|
17003
17012
|
}
|
|
17004
|
-
function
|
|
17013
|
+
function y(S) {
|
|
17005
17014
|
return S.Type === Bt.IN_PERSON ? "In Person" : S.Type === Bt.UNKNOWN ? "Unknown" : "Virtual";
|
|
17006
17015
|
}
|
|
17007
17016
|
const b = {
|
|
@@ -17021,7 +17030,7 @@ function IS({
|
|
|
17021
17030
|
width: 125,
|
|
17022
17031
|
disableColumnMenu: !0,
|
|
17023
17032
|
renderCell: (S) => {
|
|
17024
|
-
const
|
|
17033
|
+
const D = S.value, R = c[D] || "#c4c4c4";
|
|
17025
17034
|
return /* @__PURE__ */ w(
|
|
17026
17035
|
"span",
|
|
17027
17036
|
{
|
|
@@ -17033,7 +17042,7 @@ function IS({
|
|
|
17033
17042
|
fontWeight: "bold",
|
|
17034
17043
|
border: "1px solid"
|
|
17035
17044
|
},
|
|
17036
|
-
children:
|
|
17045
|
+
children: D
|
|
17037
17046
|
}
|
|
17038
17047
|
);
|
|
17039
17048
|
}
|
|
@@ -17044,7 +17053,7 @@ function IS({
|
|
|
17044
17053
|
width: 125,
|
|
17045
17054
|
disableColumnMenu: !0,
|
|
17046
17055
|
renderCell: (S) => {
|
|
17047
|
-
const
|
|
17056
|
+
const D = S.value, R = u[D] || "#c4c4c4";
|
|
17048
17057
|
return /* @__PURE__ */ w(
|
|
17049
17058
|
"span",
|
|
17050
17059
|
{
|
|
@@ -17056,7 +17065,7 @@ function IS({
|
|
|
17056
17065
|
fontWeight: "bold",
|
|
17057
17066
|
border: "1px solid"
|
|
17058
17067
|
},
|
|
17059
|
-
children:
|
|
17068
|
+
children: D
|
|
17060
17069
|
}
|
|
17061
17070
|
);
|
|
17062
17071
|
}
|
|
@@ -17086,7 +17095,7 @@ function IS({
|
|
|
17086
17095
|
width: 150,
|
|
17087
17096
|
disableColumnMenu: !0,
|
|
17088
17097
|
renderCell: (S) => {
|
|
17089
|
-
const
|
|
17098
|
+
const D = S.value, R = h[D] || "#c4c4c4";
|
|
17090
17099
|
return /* @__PURE__ */ w(
|
|
17091
17100
|
"span",
|
|
17092
17101
|
{
|
|
@@ -17098,7 +17107,7 @@ function IS({
|
|
|
17098
17107
|
fontWeight: "bold",
|
|
17099
17108
|
border: "1px solid"
|
|
17100
17109
|
},
|
|
17101
|
-
children:
|
|
17110
|
+
children: D
|
|
17102
17111
|
}
|
|
17103
17112
|
);
|
|
17104
17113
|
}
|
|
@@ -17109,13 +17118,13 @@ function IS({
|
|
|
17109
17118
|
width: 125,
|
|
17110
17119
|
disableColumnMenu: !0,
|
|
17111
17120
|
renderCell: (S) => {
|
|
17112
|
-
const
|
|
17121
|
+
const D = S.value;
|
|
17113
17122
|
return /* @__PURE__ */ w(
|
|
17114
17123
|
xf,
|
|
17115
17124
|
{
|
|
17116
|
-
user1ID:
|
|
17117
|
-
user2ID:
|
|
17118
|
-
onUpdateChair: r ? (R, U) => r(
|
|
17125
|
+
user1ID: D.user1ID,
|
|
17126
|
+
user2ID: D.user2ID,
|
|
17127
|
+
onUpdateChair: r ? (R, U) => r(D.courtDateId, R, U) : void 0
|
|
17119
17128
|
}
|
|
17120
17129
|
);
|
|
17121
17130
|
}
|
|
@@ -17133,7 +17142,7 @@ function IS({
|
|
|
17133
17142
|
width: 125,
|
|
17134
17143
|
disableColumnMenu: !0,
|
|
17135
17144
|
renderCell: (S) => {
|
|
17136
|
-
const
|
|
17145
|
+
const D = S.value, R = b[D] || "#c4c4c4";
|
|
17137
17146
|
return /* @__PURE__ */ w(
|
|
17138
17147
|
"span",
|
|
17139
17148
|
{
|
|
@@ -17145,16 +17154,12 @@ function IS({
|
|
|
17145
17154
|
fontWeight: "bold",
|
|
17146
17155
|
border: "1px solid"
|
|
17147
17156
|
},
|
|
17148
|
-
children:
|
|
17157
|
+
children: D
|
|
17149
17158
|
}
|
|
17150
17159
|
);
|
|
17151
17160
|
}
|
|
17152
17161
|
}
|
|
17153
|
-
], A = t.filter((S) => {
|
|
17154
|
-
if (!S.CourtDate) return !1;
|
|
17155
|
-
const _ = new Date(S.CourtDate);
|
|
17156
|
-
return _.getMonth() === n.getMonth() && _.getFullYear() === n.getFullYear();
|
|
17157
|
-
}).map((S) => ({
|
|
17162
|
+
], A = t.filter((S) => S.CourtDate ? new Date(S.CourtDate).getFullYear() === n.getFullYear() : !1).map((S) => ({
|
|
17158
17163
|
id: S.CourtDateID,
|
|
17159
17164
|
township: o(S.MuniCode),
|
|
17160
17165
|
county: a(S.MuniCode),
|
|
@@ -17166,7 +17171,7 @@ function IS({
|
|
|
17166
17171
|
status: f(S),
|
|
17167
17172
|
assigned: { user1ID: S.FirstChair, user2ID: S.SecondChair, courtDateId: S.CourtDateID },
|
|
17168
17173
|
uploadDeadline: S.UploadDeadline,
|
|
17169
|
-
location:
|
|
17174
|
+
location: y(S)
|
|
17170
17175
|
}));
|
|
17171
17176
|
return /* @__PURE__ */ w("div", { style: { height: 600, width: "100%" }, children: /* @__PURE__ */ w(
|
|
17172
17177
|
hu,
|
|
@@ -17180,8 +17185,8 @@ function IS({
|
|
|
17180
17185
|
}
|
|
17181
17186
|
},
|
|
17182
17187
|
onRowClick: (S) => {
|
|
17183
|
-
const
|
|
17184
|
-
|
|
17188
|
+
const D = t.find((R) => R.CourtDateID === S.id);
|
|
17189
|
+
D && e(D);
|
|
17185
17190
|
},
|
|
17186
17191
|
getRowClassName: () => "ccalendar-list-row"
|
|
17187
17192
|
}
|
|
@@ -17191,7 +17196,7 @@ function rC({ apiKey: t, activeUser: e }) {
|
|
|
17191
17196
|
return /* @__PURE__ */ w(Lw, { apiKey: t, activeUser: e, children: /* @__PURE__ */ w(OS, { apiKey: t, activeUser: e }) });
|
|
17192
17197
|
}
|
|
17193
17198
|
function OS({ apiKey: t, activeUser: e }) {
|
|
17194
|
-
const { getTownshipName: n, isAdmin: r } = mn(), [i, o] = we(null), [a, c] = we([]), [u, h] = we([]), [f,
|
|
17199
|
+
const { getTownshipName: n, isAdmin: r } = mn(), [i, o] = we(null), [a, c] = we([]), [u, h] = we([]), [f, y] = we(""), [b, m] = we(!1), [A, S] = we(null), D = Tt(null), [R, U] = we({
|
|
17195
17200
|
showInPerson: !0,
|
|
17196
17201
|
showVirtual: !0,
|
|
17197
17202
|
showUnknown: !0,
|
|
@@ -17431,10 +17436,10 @@ function OS({ apiKey: t, activeUser: e }) {
|
|
|
17431
17436
|
]
|
|
17432
17437
|
})) : [], [Mt, R]);
|
|
17433
17438
|
Ee(() => {
|
|
17434
|
-
b || (h([...Ct, ...vn, ...St]),
|
|
17439
|
+
b || (h([...Ct, ...vn, ...St]), y(JSON.stringify([...Ct, ...vn, ...St])));
|
|
17435
17440
|
}, [Ct, vn, St, b]);
|
|
17436
17441
|
const Pn = (H) => {
|
|
17437
|
-
H && (
|
|
17442
|
+
H && (D.current = H, o(H.getApi()));
|
|
17438
17443
|
};
|
|
17439
17444
|
Ee(() => {
|
|
17440
17445
|
if (z === "tableView") {
|