@propriety/court-calendar 1.0.50 → 1.0.51
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 +952 -954
- package/package.json +1 -1
- package/src/_components/Modal/DateDetails/CaseViewer.tsx +8 -10
package/dist/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ import xn from "@mui/material/CardContent";
|
|
|
74
74
|
import Jh from "@mui/icons-material/Info";
|
|
75
75
|
import ep from "@mui/icons-material/Home";
|
|
76
76
|
import tp from "@mui/icons-material/OpenInNew";
|
|
77
|
-
var qo,
|
|
77
|
+
var qo, _e, Mu, Ou, ei, Ar, Zl, Nu, Pu, Co = {}, Lu = [], np = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
78
78
|
function ir(t, e) {
|
|
79
79
|
for (var n in e) t[n] = e[n];
|
|
80
80
|
return t;
|
|
@@ -91,7 +91,7 @@ function C(t, e, n) {
|
|
|
91
91
|
}
|
|
92
92
|
function ho(t, e, n, r, i) {
|
|
93
93
|
var o = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: i ?? ++Mu };
|
|
94
|
-
return i == null &&
|
|
94
|
+
return i == null && _e.vnode != null && _e.vnode(o), o;
|
|
95
95
|
}
|
|
96
96
|
function Mt() {
|
|
97
97
|
return { current: null };
|
|
@@ -128,7 +128,7 @@ function Ao(t, e, n, r, i) {
|
|
|
128
128
|
function Jl(t) {
|
|
129
129
|
ei = !0;
|
|
130
130
|
try {
|
|
131
|
-
return this.l[t.type + !1](
|
|
131
|
+
return this.l[t.type + !1](_e.event ? _e.event(t) : t);
|
|
132
132
|
} finally {
|
|
133
133
|
ei = !1;
|
|
134
134
|
}
|
|
@@ -136,7 +136,7 @@ function Jl(t) {
|
|
|
136
136
|
function ec(t) {
|
|
137
137
|
ei = !0;
|
|
138
138
|
try {
|
|
139
|
-
return this.l[t.type + !0](
|
|
139
|
+
return this.l[t.type + !0](_e.event ? _e.event(t) : t);
|
|
140
140
|
} finally {
|
|
141
141
|
ei = !1;
|
|
142
142
|
}
|
|
@@ -163,7 +163,7 @@ function ip(t) {
|
|
|
163
163
|
ei ? setTimeout(t) : Nu(t);
|
|
164
164
|
}
|
|
165
165
|
function ra(t) {
|
|
166
|
-
(!t.__d && (t.__d = !0) && Ar.push(t) && !_o.__r++ || Zl !==
|
|
166
|
+
(!t.__d && (t.__d = !0) && Ar.push(t) && !_o.__r++ || Zl !== _e.debounceRendering) && ((Zl = _e.debounceRendering) || ip)(_o);
|
|
167
167
|
}
|
|
168
168
|
function _o() {
|
|
169
169
|
var t, e, n, r, i, o, s, c;
|
|
@@ -218,16 +218,16 @@ function zu(t) {
|
|
|
218
218
|
return null;
|
|
219
219
|
}
|
|
220
220
|
function Ia(t, e, n, r, i, o, s, c, u) {
|
|
221
|
-
var f, h, g, y, v, E, D, _, R, x, j, L,
|
|
221
|
+
var f, h, g, y, v, E, D, _, R, x, j, L, I, F, Q, $ = e.type;
|
|
222
222
|
if (e.constructor !== void 0) return null;
|
|
223
|
-
n.__h != null && (u = n.__h, c = e.__e = n.__e, e.__h = null, o = [c]), (f =
|
|
223
|
+
n.__h != null && (u = n.__h, c = e.__e = n.__e, e.__h = null, o = [c]), (f = _e.__b) && f(e);
|
|
224
224
|
try {
|
|
225
225
|
e: if (typeof $ == "function") {
|
|
226
226
|
if (_ = e.props, R = (f = $.contextType) && r[f.__c], x = f ? R ? R.props.value : f.__ : r, n.__c ? D = (h = e.__c = n.__c).__ = h.__E : ("prototype" in $ && $.prototype.render ? e.__c = h = new $(_, x) : (e.__c = h = new Vt(_, x), h.constructor = $, h.render = sp), R && R.sub(h), h.props = _, h.state || (h.state = {}), h.context = x, h.__n = r, g = h.__d = !0, h.__h = [], h._sb = []), h.__s == null && (h.__s = h.state), $.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = ir({}, h.__s)), ir(h.__s, $.getDerivedStateFromProps(_, h.__s))), y = h.props, v = h.state, h.__v = e, g) $.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), h.componentDidMount != null && h.__h.push(h.componentDidMount);
|
|
227
227
|
else {
|
|
228
228
|
if ($.getDerivedStateFromProps == null && _ !== y && h.componentWillReceiveProps != null && h.componentWillReceiveProps(_, x), !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(_, h.__s, x) === !1 || e.__v === n.__v) {
|
|
229
|
-
for (e.__v !== n.__v && (h.props = _, h.state = h.__s, h.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(
|
|
230
|
-
|
|
229
|
+
for (e.__v !== n.__v && (h.props = _, h.state = h.__s, h.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(ne) {
|
|
230
|
+
ne && (ne.__ = e);
|
|
231
231
|
}), j = 0; j < h._sb.length; j++) h.__h.push(h._sb[j]);
|
|
232
232
|
h._sb = [], h.__h.length && s.push(h);
|
|
233
233
|
break e;
|
|
@@ -236,27 +236,27 @@ function Ia(t, e, n, r, i, o, s, c, u) {
|
|
|
236
236
|
h.componentDidUpdate(y, v, E);
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
|
-
if (h.context = x, h.props = _, h.__P = t, L =
|
|
239
|
+
if (h.context = x, h.props = _, h.__P = t, L = _e.__r, I = 0, "prototype" in $ && $.prototype.render) {
|
|
240
240
|
for (h.state = h.__s, h.__d = !1, L && L(e), f = h.render(h.props, h.state, h.context), F = 0; F < h._sb.length; F++) h.__h.push(h._sb[F]);
|
|
241
241
|
h._sb = [];
|
|
242
242
|
} else do
|
|
243
243
|
h.__d = !1, L && L(e), f = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
244
|
-
while (h.__d && ++
|
|
244
|
+
while (h.__d && ++I < 25);
|
|
245
245
|
h.state = h.__s, h.getChildContext != null && (r = ir(ir({}, r), h.getChildContext())), g || h.getSnapshotBeforeUpdate == null || (E = h.getSnapshotBeforeUpdate(y, v)), Q = f != null && f.type === Qe && f.key == null ? f.props.children : f, Uu(t, Array.isArray(Q) ? Q : [Q], e, n, r, i, o, s, c, u), h.base = e.__e, e.__h = null, h.__h.length && s.push(h), D && (h.__E = h.__ = null), h.__e = !1;
|
|
246
246
|
} else o == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = op(n.__e, e, n, r, i, o, s, u);
|
|
247
|
-
(f =
|
|
248
|
-
} catch (
|
|
249
|
-
e.__v = null, (u || o != null) && (e.__e = c, e.__h = !!u, o[o.indexOf(c)] = null),
|
|
247
|
+
(f = _e.diffed) && f(e);
|
|
248
|
+
} catch (ne) {
|
|
249
|
+
e.__v = null, (u || o != null) && (e.__e = c, e.__h = !!u, o[o.indexOf(c)] = null), _e.__e(ne, e, n);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
function $u(t, e) {
|
|
253
|
-
|
|
253
|
+
_e.__c && _e.__c(e, t), t.some(function(n) {
|
|
254
254
|
try {
|
|
255
255
|
t = n.__h, n.__h = [], t.some(function(r) {
|
|
256
256
|
r.call(n);
|
|
257
257
|
});
|
|
258
258
|
} catch (r) {
|
|
259
|
-
|
|
259
|
+
_e.__e(r, n.__v);
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
}
|
|
@@ -288,16 +288,16 @@ function Wu(t, e, n) {
|
|
|
288
288
|
try {
|
|
289
289
|
typeof t == "function" ? t(e) : t.current = e;
|
|
290
290
|
} catch (r) {
|
|
291
|
-
|
|
291
|
+
_e.__e(r, n);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
function Vu(t, e, n) {
|
|
295
295
|
var r, i;
|
|
296
|
-
if (
|
|
296
|
+
if (_e.unmount && _e.unmount(t), (r = t.ref) && (r.current && r.current !== t.__e || Wu(r, null, e)), (r = t.__c) != null) {
|
|
297
297
|
if (r.componentWillUnmount) try {
|
|
298
298
|
r.componentWillUnmount();
|
|
299
299
|
} catch (o) {
|
|
300
|
-
|
|
300
|
+
_e.__e(o, e);
|
|
301
301
|
}
|
|
302
302
|
r.base = r.__P = null, t.__c = void 0;
|
|
303
303
|
}
|
|
@@ -309,7 +309,7 @@ function sp(t, e, n) {
|
|
|
309
309
|
}
|
|
310
310
|
function _i(t, e, n) {
|
|
311
311
|
var r, i, o;
|
|
312
|
-
|
|
312
|
+
_e.__ && _e.__(t, e), i = (r = !1) ? null : e.__k, o = [], Ia(e, t = e.__k = C(Qe, null, [t]), i || Co, Co, e.ownerSVGElement !== void 0, i ? null : e.firstChild ? qo.call(e.childNodes) : null, o, i ? i.__e : e.firstChild, r), $u(o, t);
|
|
313
313
|
}
|
|
314
314
|
function ap(t, e) {
|
|
315
315
|
var n = { __c: e = "__cC" + Pu++, __: t, Consumer: function(r, i) {
|
|
@@ -332,7 +332,7 @@ function ap(t, e) {
|
|
|
332
332
|
} };
|
|
333
333
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
334
334
|
}
|
|
335
|
-
qo = Lu.slice,
|
|
335
|
+
qo = Lu.slice, _e = { __e: function(t, e, n, r) {
|
|
336
336
|
for (var i, o, s; e = e.__; ) if ((i = e.__c) && !i.__) try {
|
|
337
337
|
if ((o = i.constructor) && o.getDerivedStateFromError != null && (i.setState(o.getDerivedStateFromError(t)), s = i.__d), i.componentDidCatch != null && (i.componentDidCatch(t, r || {}), s = i.__d), s) return i.__E = i;
|
|
338
338
|
} catch (c) {
|
|
@@ -347,29 +347,29 @@ qo = Lu.slice, Ae = { __e: function(t, e, n, r) {
|
|
|
347
347
|
}, Vt.prototype.forceUpdate = function(t) {
|
|
348
348
|
this.__v && (this.__e = !0, t && this.__h.push(t), ra(this));
|
|
349
349
|
}, Vt.prototype.render = Qe, Ar = [], Nu = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, _o.__r = 0, Pu = 0;
|
|
350
|
-
var kn, Ns, tc, qu = [], Ps = [], nc =
|
|
350
|
+
var kn, Ns, tc, qu = [], Ps = [], nc = _e.__b, rc = _e.__r, ic = _e.diffed, oc = _e.__c, sc = _e.unmount;
|
|
351
351
|
function lp() {
|
|
352
352
|
for (var t; t = qu.shift(); ) if (t.__P && t.__H) try {
|
|
353
353
|
t.__H.__h.forEach(po), t.__H.__h.forEach(ia), t.__H.__h = [];
|
|
354
354
|
} catch (e) {
|
|
355
|
-
t.__H.__h = [],
|
|
355
|
+
t.__H.__h = [], _e.__e(e, t.__v);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
|
|
358
|
+
_e.__b = function(t) {
|
|
359
359
|
kn = null, nc && nc(t);
|
|
360
|
-
},
|
|
360
|
+
}, _e.__r = function(t) {
|
|
361
361
|
rc && rc(t);
|
|
362
362
|
var e = (kn = t.__c).__H;
|
|
363
363
|
e && (Ns === kn ? (e.__h = [], kn.__h = [], e.__.forEach(function(n) {
|
|
364
364
|
n.__N && (n.__ = n.__N), n.__V = Ps, n.__N = n.i = void 0;
|
|
365
365
|
})) : (e.__h.forEach(po), e.__h.forEach(ia), e.__h = [])), Ns = kn;
|
|
366
|
-
},
|
|
366
|
+
}, _e.diffed = function(t) {
|
|
367
367
|
ic && ic(t);
|
|
368
368
|
var e = t.__c;
|
|
369
|
-
e && e.__H && (e.__H.__h.length && (qu.push(e) !== 1 && tc ===
|
|
369
|
+
e && e.__H && (e.__H.__h.length && (qu.push(e) !== 1 && tc === _e.requestAnimationFrame || ((tc = _e.requestAnimationFrame) || cp)(lp)), e.__H.__.forEach(function(n) {
|
|
370
370
|
n.i && (n.__H = n.i), n.__V !== Ps && (n.__ = n.__V), n.i = void 0, n.__V = Ps;
|
|
371
371
|
})), Ns = kn = null;
|
|
372
|
-
},
|
|
372
|
+
}, _e.__c = function(t, e) {
|
|
373
373
|
e.some(function(n) {
|
|
374
374
|
try {
|
|
375
375
|
n.__h.forEach(po), n.__h = n.__h.filter(function(r) {
|
|
@@ -378,10 +378,10 @@ Ae.__b = function(t) {
|
|
|
378
378
|
} catch (r) {
|
|
379
379
|
e.some(function(i) {
|
|
380
380
|
i.__h && (i.__h = []);
|
|
381
|
-
}), e = [],
|
|
381
|
+
}), e = [], _e.__e(r, n.__v);
|
|
382
382
|
}
|
|
383
383
|
}), oc && oc(t, e);
|
|
384
|
-
},
|
|
384
|
+
}, _e.unmount = function(t) {
|
|
385
385
|
sc && sc(t);
|
|
386
386
|
var e, n = t.__c;
|
|
387
387
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
@@ -390,7 +390,7 @@ Ae.__b = function(t) {
|
|
|
390
390
|
} catch (i) {
|
|
391
391
|
e = i;
|
|
392
392
|
}
|
|
393
|
-
}), n.__H = void 0, e &&
|
|
393
|
+
}), n.__H = void 0, e && _e.__e(e, n.__v));
|
|
394
394
|
};
|
|
395
395
|
var ac = typeof requestAnimationFrame == "function";
|
|
396
396
|
function cp(t) {
|
|
@@ -422,18 +422,18 @@ function cc(t) {
|
|
|
422
422
|
(cc.prototype = new Vt()).isPureReactComponent = !0, cc.prototype.shouldComponentUpdate = function(t, e) {
|
|
423
423
|
return lc(this.props, t) || lc(this.state, e);
|
|
424
424
|
};
|
|
425
|
-
var uc =
|
|
426
|
-
|
|
425
|
+
var uc = _e.__b;
|
|
426
|
+
_e.__b = function(t) {
|
|
427
427
|
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), uc && uc(t);
|
|
428
428
|
};
|
|
429
|
-
var dp =
|
|
430
|
-
|
|
429
|
+
var dp = _e.__e;
|
|
430
|
+
_e.__e = function(t, e, n, r) {
|
|
431
431
|
if (t.then) {
|
|
432
432
|
for (var i, o = e; o = o.__; ) if ((i = o.__c) && i.__c) return e.__e == null && (e.__e = n.__e, e.__k = n.__k), i.__c(t, e);
|
|
433
433
|
}
|
|
434
434
|
dp(t, e, n, r);
|
|
435
435
|
};
|
|
436
|
-
var dc =
|
|
436
|
+
var dc = _e.unmount;
|
|
437
437
|
function Gu(t, e, n) {
|
|
438
438
|
return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(r) {
|
|
439
439
|
typeof r.__c == "function" && r.__c();
|
|
@@ -456,7 +456,7 @@ function Ku(t) {
|
|
|
456
456
|
function ro() {
|
|
457
457
|
this.u = null, this.o = null;
|
|
458
458
|
}
|
|
459
|
-
|
|
459
|
+
_e.unmount = function(t) {
|
|
460
460
|
var e = t.__c;
|
|
461
461
|
e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), dc && dc(t);
|
|
462
462
|
}, (Ls.prototype = new Vt()).__c = function(t, e) {
|
|
@@ -548,7 +548,7 @@ Vt.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
548
548
|
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
|
|
549
549
|
} });
|
|
550
550
|
});
|
|
551
|
-
var hc =
|
|
551
|
+
var hc = _e.event;
|
|
552
552
|
function bp() {
|
|
553
553
|
}
|
|
554
554
|
function wp() {
|
|
@@ -557,13 +557,13 @@ function wp() {
|
|
|
557
557
|
function Sp() {
|
|
558
558
|
return this.defaultPrevented;
|
|
559
559
|
}
|
|
560
|
-
|
|
560
|
+
_e.event = function(t) {
|
|
561
561
|
return hc && (t = hc(t)), t.persist = bp, t.isPropagationStopped = wp, t.isDefaultPrevented = Sp, t.nativeEvent = t;
|
|
562
562
|
};
|
|
563
563
|
var pc = { configurable: !0, get: function() {
|
|
564
564
|
return this.class;
|
|
565
|
-
} }, gc =
|
|
566
|
-
|
|
565
|
+
} }, gc = _e.vnode;
|
|
566
|
+
_e.vnode = function(t) {
|
|
567
567
|
var e = t.type, n = t.props, r = n;
|
|
568
568
|
if (typeof e == "string") {
|
|
569
569
|
var i = e.indexOf("-") === -1;
|
|
@@ -579,8 +579,8 @@ Ae.vnode = function(t) {
|
|
|
579
579
|
}
|
|
580
580
|
t.$$typeof = gp, gc && gc(t);
|
|
581
581
|
};
|
|
582
|
-
var mc =
|
|
583
|
-
|
|
582
|
+
var mc = _e.__r;
|
|
583
|
+
_e.__r = function(t) {
|
|
584
584
|
mc && mc(t), t.__c;
|
|
585
585
|
};
|
|
586
586
|
const Qu = [], oa = /* @__PURE__ */ new Map();
|
|
@@ -831,7 +831,7 @@ function zp(t) {
|
|
|
831
831
|
n.getBoundingClientRect().width;
|
|
832
832
|
}
|
|
833
833
|
const wc = ["years", "months", "days", "milliseconds"], $p = /^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;
|
|
834
|
-
function
|
|
834
|
+
function je(t, e) {
|
|
835
835
|
return typeof t == "string" ? Wp(t) : typeof t == "object" && t ? Sc(t) : typeof t == "number" ? Sc({ [e || "milliseconds"]: t }) : null;
|
|
836
836
|
}
|
|
837
837
|
function Wp(t) {
|
|
@@ -1093,7 +1093,7 @@ function Ha(t, e = !1) {
|
|
|
1093
1093
|
let n = t < 0 ? "-" : "+", r = Math.abs(t), i = Math.floor(r / 60), o = Math.round(r % 60);
|
|
1094
1094
|
return e ? `${n + Qr(i, 2)}:${Qr(o, 2)}` : `GMT${n}${i}${o ? `:${Qr(o, 2)}` : ""}`;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function Ae(t, e, n) {
|
|
1097
1097
|
let r, i;
|
|
1098
1098
|
return function(...o) {
|
|
1099
1099
|
if (!r)
|
|
@@ -1131,7 +1131,7 @@ class pg {
|
|
|
1131
1131
|
let n = {}, r = {}, i = 9;
|
|
1132
1132
|
for (let o in e)
|
|
1133
1133
|
o in Us ? (r[o] = e[o], Us[o] < 9 && (i = Math.min(Us[o], i))) : (n[o] = e[o], o in To && (i = Math.min(To[o], i)));
|
|
1134
|
-
this.standardDateProps = n, this.extendedSettings = r, this.smallestUnitNum = i, this.buildFormattingFunc =
|
|
1134
|
+
this.standardDateProps = n, this.extendedSettings = r, this.smallestUnitNum = i, this.buildFormattingFunc = Ae(Ac);
|
|
1135
1135
|
}
|
|
1136
1136
|
format(e, n) {
|
|
1137
1137
|
return this.buildFormattingFunc(this.standardDateProps, this.extendedSettings, n)(e);
|
|
@@ -1290,20 +1290,20 @@ function et(t) {
|
|
|
1290
1290
|
const xc = {
|
|
1291
1291
|
navLinkDayClick: V,
|
|
1292
1292
|
navLinkWeekClick: V,
|
|
1293
|
-
duration:
|
|
1293
|
+
duration: je,
|
|
1294
1294
|
bootstrapFontAwesome: V,
|
|
1295
1295
|
buttonIcons: V,
|
|
1296
1296
|
customButtons: V,
|
|
1297
|
-
defaultAllDayEventDuration:
|
|
1298
|
-
defaultTimedEventDuration:
|
|
1299
|
-
nextDayThreshold:
|
|
1300
|
-
scrollTime:
|
|
1297
|
+
defaultAllDayEventDuration: je,
|
|
1298
|
+
defaultTimedEventDuration: je,
|
|
1299
|
+
nextDayThreshold: je,
|
|
1300
|
+
scrollTime: je,
|
|
1301
1301
|
scrollTimeReset: Boolean,
|
|
1302
|
-
slotMinTime:
|
|
1303
|
-
slotMaxTime:
|
|
1302
|
+
slotMinTime: je,
|
|
1303
|
+
slotMaxTime: je,
|
|
1304
1304
|
dayPopoverFormat: et,
|
|
1305
|
-
slotDuration:
|
|
1306
|
-
snapDuration:
|
|
1305
|
+
slotDuration: je,
|
|
1306
|
+
snapDuration: je,
|
|
1307
1307
|
headerToolbar: V,
|
|
1308
1308
|
footerToolbar: V,
|
|
1309
1309
|
defaultRangeSeparator: String,
|
|
@@ -1410,7 +1410,7 @@ const xc = {
|
|
|
1410
1410
|
dayMaxEvents: V,
|
|
1411
1411
|
dayMaxEventRows: V,
|
|
1412
1412
|
dayMinWidth: Number,
|
|
1413
|
-
slotLabelInterval:
|
|
1413
|
+
slotLabelInterval: je,
|
|
1414
1414
|
allDayText: String,
|
|
1415
1415
|
allDayClassNames: V,
|
|
1416
1416
|
allDayContent: V,
|
|
@@ -1436,7 +1436,7 @@ const xc = {
|
|
|
1436
1436
|
firstDay: Number,
|
|
1437
1437
|
dayCount: Number,
|
|
1438
1438
|
dateAlignment: String,
|
|
1439
|
-
dateIncrement:
|
|
1439
|
+
dateIncrement: je,
|
|
1440
1440
|
hiddenDays: V,
|
|
1441
1441
|
fixedWeekCount: Boolean,
|
|
1442
1442
|
validRange: V,
|
|
@@ -1896,13 +1896,13 @@ Ii.prototype.baseIconClass = "";
|
|
|
1896
1896
|
Ii.prototype.iconOverridePrefix = "";
|
|
1897
1897
|
function Mo(t) {
|
|
1898
1898
|
t();
|
|
1899
|
-
let e =
|
|
1899
|
+
let e = _e.debounceRendering, n = [];
|
|
1900
1900
|
function r(i) {
|
|
1901
1901
|
n.push(i);
|
|
1902
1902
|
}
|
|
1903
|
-
for (
|
|
1903
|
+
for (_e.debounceRendering = r, _i(C(Hg, {}), document.createElement("div")); n.length; )
|
|
1904
1904
|
n.shift()();
|
|
1905
|
-
|
|
1905
|
+
_e.debounceRendering = e;
|
|
1906
1906
|
}
|
|
1907
1907
|
class Hg extends Vt {
|
|
1908
1908
|
render() {
|
|
@@ -1977,7 +1977,7 @@ function Ug(t, e, n, r, i, o, s, c, u, f, h, g, y, v) {
|
|
|
1977
1977
|
h.off("_resize", E);
|
|
1978
1978
|
},
|
|
1979
1979
|
createScrollResponder(E) {
|
|
1980
|
-
return new jg(E, h,
|
|
1980
|
+
return new jg(E, h, je(n.scrollTime), n.scrollTimeReset);
|
|
1981
1981
|
},
|
|
1982
1982
|
registerInteractiveComponent: y,
|
|
1983
1983
|
unregisterInteractiveComponent: v
|
|
@@ -2181,7 +2181,7 @@ function fd(t) {
|
|
|
2181
2181
|
let e = Math.floor(gr(t.start, t.end)) || 1, n = Ze(t.start), r = ft(n, e);
|
|
2182
2182
|
return { start: n, end: r };
|
|
2183
2183
|
}
|
|
2184
|
-
function $a(t, e =
|
|
2184
|
+
function $a(t, e = je(0)) {
|
|
2185
2185
|
let n = null, r = null;
|
|
2186
2186
|
if (t.end) {
|
|
2187
2187
|
r = Ze(t.end);
|
|
@@ -2195,7 +2195,7 @@ function Kg(t) {
|
|
|
2195
2195
|
return gr(e.start, e.end) > 1;
|
|
2196
2196
|
}
|
|
2197
2197
|
function Yr(t, e, n, r) {
|
|
2198
|
-
return r === "year" ?
|
|
2198
|
+
return r === "year" ? je(n.diffWholeYears(t, e), "year") : r === "month" ? je(n.diffWholeMonths(t, e), "month") : tg(t, e);
|
|
2199
2199
|
}
|
|
2200
2200
|
class hd {
|
|
2201
2201
|
constructor(e) {
|
|
@@ -2269,7 +2269,7 @@ class hd {
|
|
|
2269
2269
|
return r.duration ? (i = r.duration, o = r.durationUnit, s = this.buildRangeFromDuration(e, n, i, o)) : (c = this.props.dayCount) ? (o = "day", s = this.buildRangeFromDayCount(e, n, c)) : (s = this.buildCustomVisibleRange(e)) ? o = r.dateEnv.greatestWholeUnit(s.start, s.end).unit : (i = this.getFallbackDuration(), o = aa(i).unit, s = this.buildRangeFromDuration(e, n, i, o)), { duration: i, unit: o, range: s };
|
|
2270
2270
|
}
|
|
2271
2271
|
getFallbackDuration() {
|
|
2272
|
-
return
|
|
2272
|
+
return je({ day: 1 });
|
|
2273
2273
|
}
|
|
2274
2274
|
// Returns a new activeRange to have time values (un-ambiguate)
|
|
2275
2275
|
// slotMinTime or slotMaxTime causes the range to expand.
|
|
@@ -2316,7 +2316,7 @@ class hd {
|
|
|
2316
2316
|
// when a prev/next operation happens.
|
|
2317
2317
|
buildDateIncrement(e) {
|
|
2318
2318
|
let { dateIncrement: n } = this.props, r;
|
|
2319
|
-
return n || ((r = this.props.dateAlignment) ?
|
|
2319
|
+
return n || ((r = this.props.dateAlignment) ? je(1, r) : e || je({ days: 1 }));
|
|
2320
2320
|
}
|
|
2321
2321
|
refineRange(e) {
|
|
2322
2322
|
if (e) {
|
|
@@ -2934,15 +2934,15 @@ class it {
|
|
|
2934
2934
|
}
|
|
2935
2935
|
}
|
|
2936
2936
|
moveStart(e) {
|
|
2937
|
-
let n =
|
|
2937
|
+
let n = je(e);
|
|
2938
2938
|
n && this.mutate({ startDelta: n });
|
|
2939
2939
|
}
|
|
2940
2940
|
moveEnd(e) {
|
|
2941
|
-
let n =
|
|
2941
|
+
let n = je(e);
|
|
2942
2942
|
n && this.mutate({ endDelta: n });
|
|
2943
2943
|
}
|
|
2944
2944
|
moveDates(e) {
|
|
2945
|
-
let n =
|
|
2945
|
+
let n = je(e);
|
|
2946
2946
|
n && this.mutate({ datesDelta: n });
|
|
2947
2947
|
}
|
|
2948
2948
|
setAllDay(e, n = {}) {
|
|
@@ -3431,7 +3431,7 @@ class Lr extends Vt {
|
|
|
3431
3431
|
/year|month|week|day/.test(e.unit) || // if slotDuration 30 mins for example, would NOT appear to snap (legacy behavior)
|
|
3432
3432
|
(e.unitValue || 1) === 1);
|
|
3433
3433
|
let o, s;
|
|
3434
|
-
return i ? (o = n.dateEnv.startOf(r, e.unit), s = n.dateEnv.add(o,
|
|
3434
|
+
return i ? (o = n.dateEnv.startOf(r, e.unit), s = n.dateEnv.add(o, je(1, e.unit)).valueOf() - r.valueOf()) : (o = r, s = 1e3 * 60), s = Math.min(1e3 * 60 * 60 * 24, s), {
|
|
3435
3435
|
state: { nowDate: o, todayRange: Bm(o) },
|
|
3436
3436
|
waitMs: s
|
|
3437
3437
|
};
|
|
@@ -3588,7 +3588,7 @@ class Fm {
|
|
|
3588
3588
|
});
|
|
3589
3589
|
}
|
|
3590
3590
|
incrementDate(e) {
|
|
3591
|
-
let n = this.getCurrentData(), r =
|
|
3591
|
+
let n = this.getCurrentData(), r = je(e);
|
|
3592
3592
|
r && (this.unselect(), this.dispatch({
|
|
3593
3593
|
type: "CHANGE_DATE",
|
|
3594
3594
|
dateMarker: n.dateEnv.add(n.currentDate, r)
|
|
@@ -3624,7 +3624,7 @@ class Fm {
|
|
|
3624
3624
|
start: e,
|
|
3625
3625
|
end: n
|
|
3626
3626
|
};
|
|
3627
|
-
let i = this.getCurrentData(), o = Tm(r, i.dateEnv,
|
|
3627
|
+
let i = this.getCurrentData(), o = Tm(r, i.dateEnv, je({ days: 1 }));
|
|
3628
3628
|
o && (this.dispatch({ type: "SELECT_DATES", selection: o }), Ed(o, null, i));
|
|
3629
3629
|
}
|
|
3630
3630
|
unselect(e) {
|
|
@@ -3736,7 +3736,7 @@ class Fm {
|
|
|
3736
3736
|
// Scroll
|
|
3737
3737
|
// -----------------------------------------------------------------------------------------------------------------
|
|
3738
3738
|
scrollToTime(e) {
|
|
3739
|
-
let n =
|
|
3739
|
+
let n = je(e);
|
|
3740
3740
|
n && this.trigger("_scrollRequest", { time: n });
|
|
3741
3741
|
}
|
|
3742
3742
|
}
|
|
@@ -3773,11 +3773,11 @@ function Vm(t, e) {
|
|
|
3773
3773
|
const $s = qt();
|
|
3774
3774
|
class qm {
|
|
3775
3775
|
constructor() {
|
|
3776
|
-
this.getKeysForEventDefs =
|
|
3776
|
+
this.getKeysForEventDefs = Ae(this._getKeysForEventDefs), this.splitDateSelection = Ae(this._splitDateSpan), this.splitEventStore = Ae(this._splitEventStore), this.splitIndividualUi = Ae(this._splitIndividualUi), this.splitEventDrag = Ae(this._splitInteraction), this.splitEventResize = Ae(this._splitInteraction), this.eventUiBuilders = {};
|
|
3777
3777
|
}
|
|
3778
3778
|
splitProps(e) {
|
|
3779
3779
|
let n = this.getKeyInfo(e), r = this.getKeysForEventDefs(e.eventStore), i = this.splitDateSelection(e.dateSelection), o = this.splitIndividualUi(e.eventUiBases, r), s = this.splitEventStore(e.eventStore, r), c = this.splitEventDrag(e.eventDrag), u = this.splitEventResize(e.eventResize), f = {};
|
|
3780
|
-
this.eventUiBuilders = qn(n, (h, g) => this.eventUiBuilders[g] ||
|
|
3780
|
+
this.eventUiBuilders = qn(n, (h, g) => this.eventUiBuilders[g] || Ae(Gm));
|
|
3781
3781
|
for (let h in n) {
|
|
3782
3782
|
let g = n[h], y = s[h] || $s, v = this.eventUiBuilders[h];
|
|
3783
3783
|
f[h] = {
|
|
@@ -4337,7 +4337,7 @@ class dv extends Ge {
|
|
|
4337
4337
|
}
|
|
4338
4338
|
class Pd extends Ge {
|
|
4339
4339
|
constructor() {
|
|
4340
|
-
super(...arguments), this.createDayHeaderFormatter =
|
|
4340
|
+
super(...arguments), this.createDayHeaderFormatter = Ae(fv);
|
|
4341
4341
|
}
|
|
4342
4342
|
render() {
|
|
4343
4343
|
let { context: e } = this, { dates: n, dateProfile: r, datesRepDistinctDays: i, renderIntro: o } = this.props, s = this.createDayHeaderFormatter(e.options.dayHeaderFormat, i, n.length);
|
|
@@ -4432,7 +4432,7 @@ class Hd {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
class jd {
|
|
4434
4434
|
constructor() {
|
|
4435
|
-
this.sliceBusinessHours =
|
|
4435
|
+
this.sliceBusinessHours = Ae(this._sliceBusinessHours), this.sliceDateSelection = Ae(this._sliceDateSpan), this.sliceEventStore = Ae(this._sliceEventStore), this.sliceEventDrag = Ae(this._sliceInteraction), this.sliceEventResize = Ae(this._sliceInteraction), this.forceDayIfListItem = !1;
|
|
4436
4436
|
}
|
|
4437
4437
|
sliceProps(e, n, r, i, ...o) {
|
|
4438
4438
|
let { eventUiBases: s } = e, c = this.sliceEventStore(e.eventStore, s, n, r, ...o);
|
|
@@ -4560,10 +4560,10 @@ function gv(t, e, n, r) {
|
|
|
4560
4560
|
)))
|
|
4561
4561
|
return !1;
|
|
4562
4562
|
}
|
|
4563
|
-
let
|
|
4563
|
+
let I = i.eventStore;
|
|
4564
4564
|
for (let F of R.allows) {
|
|
4565
|
-
let Q = Object.assign(Object.assign({}, n), { range: D.range, allDay: x.allDay }), $ =
|
|
4566
|
-
if ($ ?
|
|
4565
|
+
let Q = Object.assign(Object.assign({}, n), { range: D.range, allDay: x.allDay }), $ = I.defs[x.defId], ne = I.instances[E], K;
|
|
4566
|
+
if ($ ? K = new it(e, $, ne) : K = new it(e, x), !F(Ya(Q, e), K))
|
|
4567
4567
|
return !1;
|
|
4568
4568
|
}
|
|
4569
4569
|
}
|
|
@@ -4763,7 +4763,7 @@ function Wd(t) {
|
|
|
4763
4763
|
}
|
|
4764
4764
|
class il extends Ge {
|
|
4765
4765
|
constructor() {
|
|
4766
|
-
super(...arguments), this.processCols =
|
|
4766
|
+
super(...arguments), this.processCols = Ae((e) => e, Ev), this.renderMicroColGroup = Ae(Dv), this.scrollerRefs = new $n(), this.scrollerElRefs = new $n(this._handleScrollerEl.bind(this)), this.state = {
|
|
4767
4767
|
shrinkWidth: null,
|
|
4768
4768
|
forceYScrollbars: !1,
|
|
4769
4769
|
scrollerClientWidths: {},
|
|
@@ -4863,7 +4863,7 @@ function Rv(t, e) {
|
|
|
4863
4863
|
}
|
|
4864
4864
|
class Jo extends Ge {
|
|
4865
4865
|
constructor() {
|
|
4866
|
-
super(...arguments), this.buildPublicEvent =
|
|
4866
|
+
super(...arguments), this.buildPublicEvent = Ae((e, n, r) => new it(e, n, r)), this.handleEl = (e) => {
|
|
4867
4867
|
this.el = e, Pn(this.props.elRef, e), e && Pc(e, this.props.seg);
|
|
4868
4868
|
};
|
|
4869
4869
|
}
|
|
@@ -5517,7 +5517,7 @@ function ey(t, e, n, r, i) {
|
|
|
5517
5517
|
let Bc = {};
|
|
5518
5518
|
function ty(t) {
|
|
5519
5519
|
let e = JSON.stringify(t), n = Bc[e];
|
|
5520
|
-
return n === void 0 && (n =
|
|
5520
|
+
return n === void 0 && (n = je(t), Bc[e] = n), n;
|
|
5521
5521
|
}
|
|
5522
5522
|
function ny(t, e) {
|
|
5523
5523
|
return e.type === "CHANGE_VIEW_TYPE" && (t = e.viewType), t;
|
|
@@ -5729,15 +5729,15 @@ function wy(t, e, n, r, i, o) {
|
|
|
5729
5729
|
return { widgets: y.map((_) => _.split(",").map((R) => {
|
|
5730
5730
|
if (R === "title")
|
|
5731
5731
|
return E = !0, { buttonName: R };
|
|
5732
|
-
let x, j, L,
|
|
5732
|
+
let x, j, L, I, F, Q;
|
|
5733
5733
|
if (x = c[R])
|
|
5734
5734
|
L = ($) => {
|
|
5735
5735
|
x.click && x.click.call($.target, $, $.target);
|
|
5736
|
-
}, (
|
|
5736
|
+
}, (I = r.getCustomButtonIconClass(x)) || (I = r.getIconClass(R, s)) || (F = x.text), Q = x.hint || x.text;
|
|
5737
5737
|
else if (j = i[R]) {
|
|
5738
5738
|
v.push(R), L = () => {
|
|
5739
5739
|
o.changeView(R);
|
|
5740
|
-
}, (F = j.buttonTextOverride) || (
|
|
5740
|
+
}, (F = j.buttonTextOverride) || (I = r.getIconClass(R, s)) || (F = j.buttonTextDefault);
|
|
5741
5741
|
let $ = j.buttonTextOverride || j.buttonTextDefault;
|
|
5742
5742
|
Q = Ei(
|
|
5743
5743
|
j.buttonTitleOverride || j.buttonTitleDefault || e.viewHint,
|
|
@@ -5748,7 +5748,7 @@ function wy(t, e, n, r, i, o) {
|
|
|
5748
5748
|
} else if (o[R])
|
|
5749
5749
|
if (L = () => {
|
|
5750
5750
|
o[R]();
|
|
5751
|
-
}, (F = u[R]) || (
|
|
5751
|
+
}, (F = u[R]) || (I = r.getIconClass(R, s)) || (F = f[R]), R === "prevYear" || R === "nextYear") {
|
|
5752
5752
|
let $ = R === "prevYear" ? "prev" : "next";
|
|
5753
5753
|
Q = Ei(h[$] || g[$], [
|
|
5754
5754
|
f.year || "year",
|
|
@@ -5759,7 +5759,7 @@ function wy(t, e, n, r, i, o) {
|
|
|
5759
5759
|
f[$] || $,
|
|
5760
5760
|
$
|
|
5761
5761
|
], f[R]);
|
|
5762
|
-
return { buttonName: R, buttonClick: L, buttonIcon:
|
|
5762
|
+
return { buttonName: R, buttonClick: L, buttonIcon: I, buttonText: F, buttonHint: Q };
|
|
5763
5763
|
})), viewsWithButtons: v, hasTitle: E };
|
|
5764
5764
|
}
|
|
5765
5765
|
class Sy {
|
|
@@ -5852,9 +5852,9 @@ function Ty(t, e, n) {
|
|
|
5852
5852
|
}
|
|
5853
5853
|
const ky = {
|
|
5854
5854
|
daysOfWeek: V,
|
|
5855
|
-
startTime:
|
|
5856
|
-
endTime:
|
|
5857
|
-
duration:
|
|
5855
|
+
startTime: je,
|
|
5856
|
+
endTime: je,
|
|
5857
|
+
duration: je,
|
|
5858
5858
|
startRecur: V,
|
|
5859
5859
|
endRecur: V
|
|
5860
5860
|
};
|
|
@@ -6024,7 +6024,7 @@ class $c {
|
|
|
6024
6024
|
}
|
|
6025
6025
|
class Fy {
|
|
6026
6026
|
constructor(e) {
|
|
6027
|
-
this.computeCurrentViewData =
|
|
6027
|
+
this.computeCurrentViewData = Ae(this._computeCurrentViewData), this.organizeRawLocales = Ae($v), this.buildLocale = Ae(Xd), this.buildPluginHooks = Gv(), this.buildDateEnv = Ae(zy), this.buildTheme = Ae($y), this.parseToolbars = Ae(by), this.buildViewSpecs = Ae(Jv), this.buildDateProfileGenerator = mo(Wy), this.buildViewApi = Ae(Vy), this.buildViewUiProps = mo(Yy), this.buildEventUiBySource = Ae(qy, hn), this.buildEventUiBases = Ae(Gy), this.parseContextBusinessHours = mo(Ky), this.buildTitle = Ae(Uy), this.nowManager = new $c(), this.emitter = new Zo(), this.actionRunner = new jy(this._handleAction.bind(this), this.updateData.bind(this)), this.currentCalendarOptionsInput = {}, this.currentCalendarOptionsRefined = {}, this.currentViewOptionsInput = {}, this.currentViewOptionsRefined = {}, this.currentCalendarOptionsRefiners = {}, this.optionsForRefining = [], this.optionsForHandling = [], this.getCurrentData = () => this.data, this.dispatch = (y) => {
|
|
6028
6028
|
this.actionRunner.request(y);
|
|
6029
6029
|
}, this.props = e, this.actionRunner.pause(), this.nowManager = new $c();
|
|
6030
6030
|
let n = {}, r = this.computeOptionsData(e.optionOverrides, n, e.calendarApi), i = r.calendarOptions.initialView || r.pluginHooks.initialView, o = this.computeCurrentViewData(i, r, e.optionOverrides, n);
|
|
@@ -6099,9 +6099,9 @@ class Fy {
|
|
|
6099
6099
|
eventSelection: my(r.eventSelection, e),
|
|
6100
6100
|
eventDrag: vy(r.eventDrag, e),
|
|
6101
6101
|
eventResize: yy(r.eventResize, e)
|
|
6102
|
-
},
|
|
6102
|
+
}, I = Object.assign(Object.assign({}, f), L);
|
|
6103
6103
|
for (let $ of s.pluginHooks.reducers)
|
|
6104
|
-
Object.assign(L, $(r, e,
|
|
6104
|
+
Object.assign(L, $(r, e, I));
|
|
6105
6105
|
let F = Ks(r, f), Q = Ks(L, f);
|
|
6106
6106
|
!F && Q ? i.trigger("loading", !0) : F && !Q && i.trigger("loading", !1), this.state = L, n.onAction && n.onAction(e);
|
|
6107
6107
|
}
|
|
@@ -6399,7 +6399,7 @@ class Jy extends si {
|
|
|
6399
6399
|
}
|
|
6400
6400
|
class eb extends Pr {
|
|
6401
6401
|
constructor() {
|
|
6402
|
-
super(...arguments), this.buildViewContext =
|
|
6402
|
+
super(...arguments), this.buildViewContext = Ae(Ug), this.buildViewPropTransformers = Ae(nb), this.buildToolbarProps = Ae(tb), this.headerRef = Mt(), this.footerRef = Mt(), this.interactionsStore = {}, this.state = {
|
|
6403
6403
|
viewLabelId: lr()
|
|
6404
6404
|
}, this.registerInteractiveComponent = (e, n) => {
|
|
6405
6405
|
let r = Um(e, n), s = [
|
|
@@ -6766,7 +6766,7 @@ function lb(t) {
|
|
|
6766
6766
|
}
|
|
6767
6767
|
class cb extends Ge {
|
|
6768
6768
|
constructor() {
|
|
6769
|
-
super(...arguments), this.compileSegs =
|
|
6769
|
+
super(...arguments), this.compileSegs = Ae(ub);
|
|
6770
6770
|
}
|
|
6771
6771
|
render() {
|
|
6772
6772
|
let { props: e } = this, { allSegs: n, invisibleSegs: r } = this.compileSegs(e.singlePlacements);
|
|
@@ -7158,7 +7158,7 @@ function wb(t) {
|
|
|
7158
7158
|
}
|
|
7159
7159
|
class Sb extends mn {
|
|
7160
7160
|
constructor() {
|
|
7161
|
-
super(...arguments), this.splitBusinessHourSegs =
|
|
7161
|
+
super(...arguments), this.splitBusinessHourSegs = Ae(yo), this.splitBgEventSegs = Ae(Eb), this.splitFgEventSegs = Ae(yo), this.splitDateSelectionSegs = Ae(yo), this.splitEventDrag = Ae(qc), this.splitEventResize = Ae(qc), this.rowRefs = new $n();
|
|
7162
7162
|
}
|
|
7163
7163
|
render() {
|
|
7164
7164
|
let { props: e, context: n } = this, r = e.cells.length, i = this.splitBusinessHourSegs(e.businessHourSegs, r), o = this.splitBgEventSegs(e.bgEventSegs, r), s = this.splitFgEventSegs(e.fgEventSegs, r), c = this.splitDateSelectionSegs(e.dateSelectionSegs, r), u = this.splitEventDrag(e.eventDrag, r), f = this.splitEventResize(e.eventResize, r), h = r >= 7 && e.clientWidth ? e.clientWidth / n.options.aspectRatio / 6 : null;
|
|
@@ -7335,7 +7335,7 @@ class gf extends mn {
|
|
|
7335
7335
|
}
|
|
7336
7336
|
class xb extends ab {
|
|
7337
7337
|
constructor() {
|
|
7338
|
-
super(...arguments), this.buildDayTableModel =
|
|
7338
|
+
super(...arguments), this.buildDayTableModel = Ae(Rb), this.headerRef = Mt(), this.tableRef = Mt();
|
|
7339
7339
|
}
|
|
7340
7340
|
render() {
|
|
7341
7341
|
let { options: e, dateProfileGenerator: n } = this.context, { props: r } = this, i = this.buildDayTableModel(r.dateProfile, n), o = e.dayHeaders && C(Pd, { ref: this.headerRef, dateProfile: r.dateProfile, dates: i.headerDates, datesRepDistinctDays: i.rowCnt === 1 }), s = (c) => C(gf, { ref: this.tableRef, dateProfile: r.dateProfile, dayTableModel: i, businessHours: r.businessHours, dateSelection: r.dateSelection, eventStore: r.eventStore, eventUiBases: r.eventUiBases, eventSelection: r.eventSelection, eventDrag: r.eventDrag, eventResize: r.eventResize, nextDayThreshold: e.nextDayThreshold, colGroupNode: c.tableColGroupNode, tableMinWidth: c.tableMinWidth, dayMaxEvents: e.dayMaxEvents, dayMaxEventRows: e.dayMaxEventRows, showWeekNumbers: e.weekNumbers, expandRows: !r.isHeightAuto, headerAlignElRef: this.headerElRef, clientWidth: c.clientWidth, clientHeight: c.clientHeight, forPrint: r.forPrint });
|
|
@@ -7700,14 +7700,14 @@ class Fb {
|
|
|
7700
7700
|
if (Wn(n.currentRange, e)) {
|
|
7701
7701
|
let r = Ze(e), i = e.valueOf() - r.valueOf();
|
|
7702
7702
|
if (i >= fn(n.slotMinTime) && i < fn(n.slotMaxTime))
|
|
7703
|
-
return this.computeTimeTop(
|
|
7703
|
+
return this.computeTimeTop(je(i));
|
|
7704
7704
|
}
|
|
7705
7705
|
return null;
|
|
7706
7706
|
}
|
|
7707
7707
|
// Computes the top coordinate, relative to the bounds of the grid, of the given date.
|
|
7708
7708
|
// A `startOfDayDate` must be given for avoiding ambiguity over how to treat midnight.
|
|
7709
7709
|
computeDateTop(e, n) {
|
|
7710
|
-
return n || (n = Ze(e)), this.computeTimeTop(
|
|
7710
|
+
return n || (n = Ze(e)), this.computeTimeTop(je(e.valueOf() - n.valueOf()));
|
|
7711
7711
|
}
|
|
7712
7712
|
// Computes the top coordinate, relative to the bounds of the grid, of the given time (a Duration).
|
|
7713
7713
|
// This is a makeshify way to compute the time-top. Assumes all slatMetas dates are uniform.
|
|
@@ -7966,7 +7966,7 @@ class vf extends Ge {
|
|
|
7966
7966
|
}
|
|
7967
7967
|
class nw extends Ge {
|
|
7968
7968
|
constructor() {
|
|
7969
|
-
super(...arguments), this.sortEventSegs =
|
|
7969
|
+
super(...arguments), this.sortEventSegs = Ae(Qa);
|
|
7970
7970
|
}
|
|
7971
7971
|
// TODO: memoize event-placement?
|
|
7972
7972
|
render() {
|
|
@@ -8007,11 +8007,11 @@ class nw extends Ge {
|
|
|
8007
8007
|
null,
|
|
8008
8008
|
this.renderHiddenGroups(j, e),
|
|
8009
8009
|
x.map((L) => {
|
|
8010
|
-
let { seg:
|
|
8010
|
+
let { seg: I, rect: F } = L, Q = I.eventRange.instance.instanceId, $ = _ || !!(!n[Q] && F), ne = Qs(F && F.span), K = !_ && F ? this.computeSegHStyle(F) : { left: 0, right: 0 }, G = !!F && F.stackForward > 0, Se = !!F && F.span.end - F.span.start < u;
|
|
8011
8011
|
return C(
|
|
8012
8012
|
"div",
|
|
8013
|
-
{ className: "fc-timegrid-event-harness" + (
|
|
8014
|
-
C(vf, Object.assign({ seg:
|
|
8013
|
+
{ className: "fc-timegrid-event-harness" + (G ? " fc-timegrid-event-harness-inset" : ""), key: s || Q, style: Object.assign(Object.assign({ visibility: $ ? "" : "hidden" }, ne), K) },
|
|
8014
|
+
C(vf, Object.assign({ seg: I, isDragging: r, isResizing: i, isDateSelecting: o, isSelected: Q === v, isShort: Se }, Vn(I, E, D)))
|
|
8015
8015
|
);
|
|
8016
8016
|
})
|
|
8017
8017
|
);
|
|
@@ -8080,7 +8080,7 @@ function rw(t, e) {
|
|
|
8080
8080
|
}
|
|
8081
8081
|
class iw extends Ge {
|
|
8082
8082
|
constructor() {
|
|
8083
|
-
super(...arguments), this.splitFgEventSegs =
|
|
8083
|
+
super(...arguments), this.splitFgEventSegs = Ae(bi), this.splitBgEventSegs = Ae(bi), this.splitBusinessHourSegs = Ae(bi), this.splitNowIndicatorSegs = Ae(bi), this.splitDateSelectionSegs = Ae(bi), this.splitEventDrag = Ae(Gc), this.splitEventResize = Ae(Gc), this.rootElRef = Mt(), this.cellElRefs = new $n();
|
|
8084
8084
|
}
|
|
8085
8085
|
render() {
|
|
8086
8086
|
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), s = this.splitBgEventSegs(e.bgEventSegs, i), c = this.splitBusinessHourSegs(e.businessHourSegs, i), u = this.splitNowIndicatorSegs(e.nowIndicatorSegs, i), f = this.splitDateSelectionSegs(e.dateSelectionSegs, i), h = this.splitEventDrag(e.eventDrag, i), g = this.splitEventResize(e.eventResize, i);
|
|
@@ -8137,7 +8137,7 @@ function ow(t, e) {
|
|
|
8137
8137
|
}
|
|
8138
8138
|
class sw extends mn {
|
|
8139
8139
|
constructor() {
|
|
8140
|
-
super(...arguments), this.processSlotOptions =
|
|
8140
|
+
super(...arguments), this.processSlotOptions = Ae(aw), this.state = {
|
|
8141
8141
|
slatCoords: null
|
|
8142
8142
|
}, this.handleRootEl = (e) => {
|
|
8143
8143
|
e ? this.context.registerInteractiveComponent(this, {
|
|
@@ -8186,10 +8186,10 @@ class sw extends mn {
|
|
|
8186
8186
|
queryHit(e, n) {
|
|
8187
8187
|
let { dateEnv: r, options: i } = this.context, { colCoords: o } = this, { dateProfile: s } = this.props, { slatCoords: c } = this.state, { snapDuration: u, snapsPerSlot: f } = this.processSlotOptions(this.props.slotDuration, i.snapDuration), h = o.leftToIndex(e), g = c.positions.topToIndex(n);
|
|
8188
8188
|
if (h != null && g != null) {
|
|
8189
|
-
let y = this.props.cells[h], v = c.positions.tops[g], E = c.positions.getHeight(g), D = (n - v) / E, _ = Math.floor(D * f), R = g * f + _, x = this.props.cells[h].date, j = sa(s.slotMinTime, Gp(u, R)), L = r.add(x, j),
|
|
8189
|
+
let y = this.props.cells[h], v = c.positions.tops[g], E = c.positions.getHeight(g), D = (n - v) / E, _ = Math.floor(D * f), R = g * f + _, x = this.props.cells[h].date, j = sa(s.slotMinTime, Gp(u, R)), L = r.add(x, j), I = r.add(L, u);
|
|
8190
8190
|
return {
|
|
8191
8191
|
dateProfile: s,
|
|
8192
|
-
dateSpan: Object.assign({ range: { start: L, end:
|
|
8192
|
+
dateSpan: Object.assign({ range: { start: L, end: I }, allDay: !1 }, y.extraDateSpan),
|
|
8193
8193
|
dayEl: o.els[h],
|
|
8194
8194
|
rect: {
|
|
8195
8195
|
left: o.lefts[h],
|
|
@@ -8225,7 +8225,7 @@ class lw extends jd {
|
|
|
8225
8225
|
}
|
|
8226
8226
|
class cw extends mn {
|
|
8227
8227
|
constructor() {
|
|
8228
|
-
super(...arguments), this.buildDayRanges =
|
|
8228
|
+
super(...arguments), this.buildDayRanges = Ae(uw), this.slicer = new lw(), this.timeColsRef = Mt();
|
|
8229
8229
|
}
|
|
8230
8230
|
render() {
|
|
8231
8231
|
let { props: e, context: n } = this, { dateProfile: r, dayTableModel: i } = e, { nowIndicator: o, nextDayThreshold: s } = n.options, c = this.buildDayRanges(i, r, n.dateEnv);
|
|
@@ -8249,7 +8249,7 @@ const Qc = [
|
|
|
8249
8249
|
{ seconds: 15 }
|
|
8250
8250
|
];
|
|
8251
8251
|
function dw(t, e, n, r, i) {
|
|
8252
|
-
let o = /* @__PURE__ */ new Date(0), s = t, c =
|
|
8252
|
+
let o = /* @__PURE__ */ new Date(0), s = t, c = je(0), u = n || fw(r), f = [];
|
|
8253
8253
|
for (; fn(s) < fn(e); ) {
|
|
8254
8254
|
let h = i.add(o, s), g = La(c, u) !== null;
|
|
8255
8255
|
f.push({
|
|
@@ -8265,13 +8265,13 @@ function dw(t, e, n, r, i) {
|
|
|
8265
8265
|
function fw(t) {
|
|
8266
8266
|
let e, n, r;
|
|
8267
8267
|
for (e = Qc.length - 1; e >= 0; e -= 1)
|
|
8268
|
-
if (n =
|
|
8268
|
+
if (n = je(Qc[e]), r = La(n, t), r !== null && r > 1)
|
|
8269
8269
|
return n;
|
|
8270
8270
|
return t;
|
|
8271
8271
|
}
|
|
8272
8272
|
class hw extends Ub {
|
|
8273
8273
|
constructor() {
|
|
8274
|
-
super(...arguments), this.buildTimeColsModel =
|
|
8274
|
+
super(...arguments), this.buildTimeColsModel = Ae(pw), this.buildSlatMetas = Ae(dw);
|
|
8275
8275
|
}
|
|
8276
8276
|
render() {
|
|
8277
8277
|
let { options: e, dateEnv: n, dateProfileGenerator: r } = this.context, { props: i } = this, { dateProfile: o } = i, s = this.buildTimeColsModel(o, r), c = this.allDaySplitter.splitProps(i), u = this.buildSlatMetas(o.slotMinTime, o.slotMaxTime, e.slotLabelInterval, e.slotDuration, n), { dayMinWidth: f } = e, h = !f, g = f, y = e.dayHeaders && C(Pd, { dates: s.headerDates, dateProfile: o, datesRepDistinctDays: !0, renderIntro: h ? this.renderHeadAxis : null }), v = e.allDaySlot !== !1 && ((D) => C(gf, Object.assign({}, c.allDay, { dateProfile: o, dayTableModel: s, nextDayThreshold: e.nextDayThreshold, tableMinWidth: D.tableMinWidth, colGroupNode: D.tableColGroupNode, renderRowIntro: h ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: D.clientWidth, clientHeight: D.clientHeight, forPrint: i.forPrint }, this.getAllDayMaxEventProps()))), E = (D) => C(cw, Object.assign({}, c.timed, { dayTableModel: s, dateProfile: o, axis: h, slotDuration: e.slotDuration, slatMetas: u, forPrint: i.forPrint, tableColGroupNode: D.tableColGroupNode, tableMinWidth: D.tableMinWidth, clientWidth: D.clientWidth, clientHeight: D.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: D.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
|
|
@@ -8957,7 +8957,7 @@ class Oi extends si {
|
|
|
8957
8957
|
type: "MERGE_EVENTS",
|
|
8958
8958
|
eventStore: D
|
|
8959
8959
|
});
|
|
8960
|
-
let
|
|
8960
|
+
let I = {
|
|
8961
8961
|
event: L,
|
|
8962
8962
|
relatedEvents: _r(D, f, j),
|
|
8963
8963
|
revert() {
|
|
@@ -8967,10 +8967,10 @@ class Oi extends si {
|
|
|
8967
8967
|
});
|
|
8968
8968
|
}
|
|
8969
8969
|
};
|
|
8970
|
-
f.emitter.trigger("eventAdd",
|
|
8970
|
+
f.emitter.trigger("eventAdd", I), s.isTouch && f.dispatch({
|
|
8971
8971
|
type: "SELECT_EVENT",
|
|
8972
8972
|
eventInstanceId: y.instanceId
|
|
8973
|
-
}), f.emitter.trigger("drop", Object.assign(Object.assign({}, Df(_.dateSpan, f)), { draggedEl: s.subjectEl, jsEvent: s.origEvent, view: _.context.viewApi })), f.emitter.trigger("eventReceive", Object.assign(Object.assign({},
|
|
8973
|
+
}), f.emitter.trigger("drop", Object.assign(Object.assign({}, Df(_.dateSpan, f)), { draggedEl: s.subjectEl, jsEvent: s.origEvent, view: _.context.viewApi })), f.emitter.trigger("eventReceive", Object.assign(Object.assign({}, I), { draggedEl: s.subjectEl, view: _.context.viewApi }));
|
|
8974
8974
|
}
|
|
8975
8975
|
} else
|
|
8976
8976
|
c.emitter.trigger("_noEventDrop");
|
|
@@ -9073,7 +9073,7 @@ class Nw extends si {
|
|
|
9073
9073
|
});
|
|
9074
9074
|
}
|
|
9075
9075
|
};
|
|
9076
|
-
s.emitter.trigger("eventResize", Object.assign(Object.assign({}, v), { el: this.draggingSegEl, startDelta: this.validMutation.startDelta ||
|
|
9076
|
+
s.emitter.trigger("eventResize", Object.assign(Object.assign({}, v), { el: this.draggingSegEl, startDelta: this.validMutation.startDelta || je(0), endDelta: this.validMutation.endDelta || je(0), jsEvent: o.origEvent, view: s.viewApi })), s.emitter.trigger("eventChange", v);
|
|
9077
9077
|
} else
|
|
9078
9078
|
s.emitter.trigger("_noEventResize");
|
|
9079
9079
|
this.draggingSeg = null, this.relevantEvents = null, this.validMutation = null;
|
|
@@ -9244,7 +9244,7 @@ function qw(t) {
|
|
|
9244
9244
|
}
|
|
9245
9245
|
class Gw extends mn {
|
|
9246
9246
|
constructor() {
|
|
9247
|
-
super(...arguments), this.computeDateVars =
|
|
9247
|
+
super(...arguments), this.computeDateVars = Ae(Kw), this.eventStoreToSegs = Ae(this._eventStoreToSegs), this.state = {
|
|
9248
9248
|
timeHeaderId: lr(),
|
|
9249
9249
|
eventHeaderId: lr(),
|
|
9250
9250
|
dateHeaderIdRoot: lr()
|
|
@@ -10232,7 +10232,7 @@ const OS = async (t, e, n) => {
|
|
|
10232
10232
|
x,
|
|
10233
10233
|
y: j,
|
|
10234
10234
|
data: L,
|
|
10235
|
-
reset:
|
|
10235
|
+
reset: I
|
|
10236
10236
|
} = await R({
|
|
10237
10237
|
x: h,
|
|
10238
10238
|
y: g,
|
|
@@ -10253,11 +10253,11 @@ const OS = async (t, e, n) => {
|
|
|
10253
10253
|
...v[_],
|
|
10254
10254
|
...L
|
|
10255
10255
|
}
|
|
10256
|
-
},
|
|
10256
|
+
}, I && E <= 50 && (E++, typeof I == "object" && (I.placement && (y = I.placement), I.rects && (f = I.rects === !0 ? await s.getElementRects({
|
|
10257
10257
|
reference: t,
|
|
10258
10258
|
floating: e,
|
|
10259
10259
|
strategy: i
|
|
10260
|
-
}) :
|
|
10260
|
+
}) : I.rects), {
|
|
10261
10261
|
x: h,
|
|
10262
10262
|
y: g
|
|
10263
10263
|
} = tu(f, y, u)), D = -1);
|
|
@@ -10302,17 +10302,17 @@ async function If(t, e) {
|
|
|
10302
10302
|
} : {
|
|
10303
10303
|
x: 1,
|
|
10304
10304
|
y: 1
|
|
10305
|
-
},
|
|
10305
|
+
}, I = Bo(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
10306
10306
|
elements: c,
|
|
10307
10307
|
rect: x,
|
|
10308
10308
|
offsetParent: j,
|
|
10309
10309
|
strategy: u
|
|
10310
10310
|
}) : x);
|
|
10311
10311
|
return {
|
|
10312
|
-
top: (R.top -
|
|
10313
|
-
bottom: (
|
|
10314
|
-
left: (R.left -
|
|
10315
|
-
right: (
|
|
10312
|
+
top: (R.top - I.top + E.top) / L.y,
|
|
10313
|
+
bottom: (I.bottom - R.bottom + E.bottom) / L.y,
|
|
10314
|
+
left: (R.left - I.left + E.left) / L.x,
|
|
10315
|
+
right: (I.right - R.right + E.right) / L.x
|
|
10316
10316
|
};
|
|
10317
10317
|
}
|
|
10318
10318
|
const NS = (t) => ({
|
|
@@ -10336,17 +10336,17 @@ const NS = (t) => ({
|
|
|
10336
10336
|
const g = kf(h), y = {
|
|
10337
10337
|
x: n,
|
|
10338
10338
|
y: r
|
|
10339
|
-
}, v = pl(i), E = hl(v), D = await s.getDimensions(f), _ = v === "y", R = _ ? "top" : "left", x = _ ? "bottom" : "right", j = _ ? "clientHeight" : "clientWidth", L = o.reference[E] + o.reference[v] - y[v] - o.floating[E],
|
|
10339
|
+
}, v = pl(i), E = hl(v), D = await s.getDimensions(f), _ = v === "y", R = _ ? "top" : "left", x = _ ? "bottom" : "right", j = _ ? "clientHeight" : "clientWidth", L = o.reference[E] + o.reference[v] - y[v] - o.floating[E], I = y[v] - o.reference[v], F = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
|
|
10340
10340
|
let Q = F ? F[j] : 0;
|
|
10341
10341
|
(!Q || !await (s.isElement == null ? void 0 : s.isElement(F))) && (Q = c.floating[j] || o.floating[E]);
|
|
10342
|
-
const $ = L / 2 -
|
|
10342
|
+
const $ = L / 2 - I / 2, ne = Q / 2 - D[E] / 2 - 1, K = ii(g[R], ne), G = ii(g[x], ne), Se = K, Ue = Q - D[E] - G, oe = Q / 2 - D[E] / 2 + $, re = ba(Se, oe, Ue), X = !u.arrow && Li(i) != null && oe !== re && o.reference[E] / 2 - (oe < Se ? K : G) - D[E] / 2 < 0, se = X ? oe < Se ? oe - Se : oe - Ue : 0;
|
|
10343
10343
|
return {
|
|
10344
|
-
[v]: y[v] +
|
|
10344
|
+
[v]: y[v] + se,
|
|
10345
10345
|
data: {
|
|
10346
|
-
[v]:
|
|
10347
|
-
centerOffset:
|
|
10346
|
+
[v]: re,
|
|
10347
|
+
centerOffset: oe - re - se,
|
|
10348
10348
|
...X && {
|
|
10349
|
-
alignmentOffset:
|
|
10349
|
+
alignmentOffset: se
|
|
10350
10350
|
}
|
|
10351
10351
|
},
|
|
10352
10352
|
reset: X
|
|
@@ -10376,38 +10376,38 @@ const NS = (t) => ({
|
|
|
10376
10376
|
} = Pi(t, e);
|
|
10377
10377
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
10378
10378
|
return {};
|
|
10379
|
-
const R = Ir(i), x = ar(c), j = Ir(c) === c, L = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)),
|
|
10380
|
-
!y && F &&
|
|
10381
|
-
const Q = [c, ...
|
|
10382
|
-
let
|
|
10383
|
-
if (h &&
|
|
10384
|
-
const
|
|
10385
|
-
|
|
10379
|
+
const R = Ir(i), x = ar(c), j = Ir(c) === c, L = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), I = y || (j || !D ? [Uo(c)] : xS(c)), F = E !== "none";
|
|
10380
|
+
!y && F && I.push(...IS(c, D, E, L));
|
|
10381
|
+
const Q = [c, ...I], $ = await If(e, _), ne = [];
|
|
10382
|
+
let K = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
10383
|
+
if (h && ne.push($[R]), g) {
|
|
10384
|
+
const oe = _S(i, s, L);
|
|
10385
|
+
ne.push($[oe[0]], $[oe[1]]);
|
|
10386
10386
|
}
|
|
10387
|
-
if (
|
|
10387
|
+
if (K = [...K, {
|
|
10388
10388
|
placement: i,
|
|
10389
|
-
overflows:
|
|
10390
|
-
}], !
|
|
10391
|
-
var
|
|
10392
|
-
const
|
|
10393
|
-
if (
|
|
10389
|
+
overflows: ne
|
|
10390
|
+
}], !ne.every((oe) => oe <= 0)) {
|
|
10391
|
+
var G, Se;
|
|
10392
|
+
const oe = (((G = o.flip) == null ? void 0 : G.index) || 0) + 1, re = Q[oe];
|
|
10393
|
+
if (re && (!(g === "alignment" ? x !== ar(re) : !1) || // We leave the current main axis only if every placement on that axis
|
|
10394
10394
|
// overflows the main axis.
|
|
10395
|
-
|
|
10395
|
+
K.every((Z) => ar(Z.placement) === x ? Z.overflows[0] > 0 : !0)))
|
|
10396
10396
|
return {
|
|
10397
10397
|
data: {
|
|
10398
|
-
index:
|
|
10399
|
-
overflows:
|
|
10398
|
+
index: oe,
|
|
10399
|
+
overflows: K
|
|
10400
10400
|
},
|
|
10401
10401
|
reset: {
|
|
10402
|
-
placement:
|
|
10402
|
+
placement: re
|
|
10403
10403
|
}
|
|
10404
10404
|
};
|
|
10405
|
-
let X = (
|
|
10405
|
+
let X = (Se = K.filter((se) => se.overflows[0] <= 0).sort((se, Z) => se.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : Se.placement;
|
|
10406
10406
|
if (!X)
|
|
10407
10407
|
switch (v) {
|
|
10408
10408
|
case "bestFit": {
|
|
10409
|
-
var
|
|
10410
|
-
const
|
|
10409
|
+
var Ue;
|
|
10410
|
+
const se = (Ue = K.filter((Z) => {
|
|
10411
10411
|
if (F) {
|
|
10412
10412
|
const he = ar(Z.placement);
|
|
10413
10413
|
return he === x || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -10415,8 +10415,8 @@ const NS = (t) => ({
|
|
|
10415
10415
|
he === "y";
|
|
10416
10416
|
}
|
|
10417
10417
|
return !0;
|
|
10418
|
-
}).map((Z) => [Z.placement, Z.overflows.filter((he) => he > 0).reduce((he, ve) => he + ve, 0)]).sort((Z, he) => Z[1] - he[1])[0]) == null ? void 0 :
|
|
10419
|
-
|
|
10418
|
+
}).map((Z) => [Z.placement, Z.overflows.filter((he) => he > 0).reduce((he, ve) => he + ve, 0)]).sort((Z, he) => Z[1] - he[1])[0]) == null ? void 0 : Ue[0];
|
|
10419
|
+
se && (X = se);
|
|
10420
10420
|
break;
|
|
10421
10421
|
}
|
|
10422
10422
|
case "initialPlacement":
|
|
@@ -10967,7 +10967,7 @@ function uE(t, e) {
|
|
|
10967
10967
|
threshold: Rr(0, ii(1, u)) || 1
|
|
10968
10968
|
};
|
|
10969
10969
|
let L = !0;
|
|
10970
|
-
function
|
|
10970
|
+
function I(F) {
|
|
10971
10971
|
const Q = F[0].intersectionRatio;
|
|
10972
10972
|
if (Q !== u) {
|
|
10973
10973
|
if (!L)
|
|
@@ -10979,13 +10979,13 @@ function uE(t, e) {
|
|
|
10979
10979
|
Q === 1 && !Uf(f, t.getBoundingClientRect()) && s(), L = !1;
|
|
10980
10980
|
}
|
|
10981
10981
|
try {
|
|
10982
|
-
n = new IntersectionObserver(
|
|
10982
|
+
n = new IntersectionObserver(I, {
|
|
10983
10983
|
...j,
|
|
10984
10984
|
// Handle <iframe>s
|
|
10985
10985
|
root: i.ownerDocument
|
|
10986
10986
|
});
|
|
10987
10987
|
} catch {
|
|
10988
|
-
n = new IntersectionObserver(
|
|
10988
|
+
n = new IntersectionObserver(I, j);
|
|
10989
10989
|
}
|
|
10990
10990
|
n.observe(t);
|
|
10991
10991
|
}
|
|
@@ -11097,12 +11097,12 @@ const uu = async ({ elementReference: t = null, tooltipReference: e = null, tool
|
|
|
11097
11097
|
return n ? (f.push(gE({ element: n, padding: 5 })), su(t, e, { placement: r, strategy: o, middleware: f }).then((({ x: h, y: g, placement: y, middlewareData: v }) => {
|
|
11098
11098
|
var E, D;
|
|
11099
11099
|
const _ = { left: `${h}px`, top: `${g}px`, border: c }, { x: R, y: x } = (E = v.arrow) !== null && E !== void 0 ? E : { x: 0, y: 0 }, j = (D = { top: "bottom", right: "left", bottom: "top", left: "right" }[y.split("-")[0]]) !== null && D !== void 0 ? D : "bottom", L = c && { borderBottom: c, borderRight: c };
|
|
11100
|
-
let
|
|
11100
|
+
let I = 0;
|
|
11101
11101
|
if (c) {
|
|
11102
11102
|
const F = `${c}`.match(/(\d+)px/);
|
|
11103
|
-
|
|
11103
|
+
I = F?.[1] ? Number(F[1]) : 1;
|
|
11104
11104
|
}
|
|
11105
|
-
return { tooltipStyles: _, tooltipArrowStyles: { left: R != null ? `${R}px` : "", top: x != null ? `${x}px` : "", right: "", bottom: "", ...L, [j]: `-${u / 2 +
|
|
11105
|
+
return { tooltipStyles: _, tooltipArrowStyles: { left: R != null ? `${R}px` : "", top: x != null ? `${x}px` : "", right: "", bottom: "", ...L, [j]: `-${u / 2 + I}px` }, place: y };
|
|
11106
11106
|
}))) : su(t, e, { placement: "bottom", strategy: o, middleware: f }).then((({ x: h, y: g, placement: y }) => ({ tooltipStyles: { left: `${h}px`, top: `${g}px` }, tooltipArrowStyles: {}, place: y })));
|
|
11107
11107
|
}, du = (t, e) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(t, e), fu = (t, e, n) => {
|
|
11108
11108
|
let r = null;
|
|
@@ -11147,14 +11147,14 @@ function Bf(t = DE) {
|
|
|
11147
11147
|
return $o(AE).getTooltipData(t);
|
|
11148
11148
|
}
|
|
11149
11149
|
var qr = { 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" }, Js = { 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" };
|
|
11150
|
-
const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i = "dark", anchorId: o, anchorSelect: s, place: c = "top", offset: u = 10, events: f = ["hover"], openOnClick: h = !1, positionStrategy: g = "absolute", middlewares: y, wrapper: v, delayShow: E = 0, delayHide: D = 0, float: _ = !1, hidden: R = !1, noArrow: x = !1, clickable: j = !1, closeOnEsc: L = !1, closeOnScroll:
|
|
11150
|
+
const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i = "dark", anchorId: o, anchorSelect: s, place: c = "top", offset: u = 10, events: f = ["hover"], openOnClick: h = !1, positionStrategy: g = "absolute", middlewares: y, wrapper: v, delayShow: E = 0, delayHide: D = 0, float: _ = !1, hidden: R = !1, noArrow: x = !1, clickable: j = !1, closeOnEsc: L = !1, closeOnScroll: I = !1, closeOnResize: F = !1, openEvents: Q, closeEvents: $, globalCloseEvents: ne, imperativeModeOnly: K, style: G, position: Se, afterShow: Ue, afterHide: oe, disableTooltip: re, content: X, contentWrapperRef: se, isOpen: Z, defaultIsOpen: he = !1, setIsOpen: ve, previousActiveAnchor: Te, activeAnchor: Ce, setActiveAnchor: Me, border: We, opacity: tt, arrowColor: ct, arrowSize: ut = 8, role: Pt = "tooltip" }) => {
|
|
11151
11151
|
var te;
|
|
11152
11152
|
const Ve = vt(null), dt = vt(null), xe = vt(null), gt = vt(null), Kn = vt(null), [Tt, jr] = me({ tooltipStyles: {}, tooltipArrowStyles: {}, place: c }), [Et, vr] = me(!1), [Qn, Kt] = me(!1), [Fe, Un] = me(null), vn = vt(!1), Bn = vt(null), { anchorRefs: yn, setActiveAnchor: Lt } = Bf(e), Ht = vt(!1), [Qt, rn] = me([]), on = vt(!1), sn = h || f.includes("click"), Zt = sn || Q?.click || Q?.dblclick || Q?.mousedown, bn = Q ? { ...Q } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
11153
11153
|
!Q && sn && Object.assign(bn, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
11154
11154
|
const an = $ ? { ...$ } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
|
|
11155
11155
|
!$ && sn && Object.assign(an, { mouseleave: !1, blur: !1, mouseout: !1 });
|
|
11156
|
-
const Xe =
|
|
11157
|
-
|
|
11156
|
+
const Xe = ne ? { ...ne } : { escape: L || !1, scroll: I || !1, resize: F || !1, clickOutsideAnchor: Zt || !1 };
|
|
11157
|
+
K && (Object.assign(bn, { mouseover: !1, focus: !1, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(an, { mouseout: !1, blur: !1, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(Xe, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), EE((() => (on.current = !0, () => {
|
|
11158
11158
|
on.current = !1;
|
|
11159
11159
|
})), []);
|
|
11160
11160
|
const pe = (J) => {
|
|
@@ -11166,22 +11166,22 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11166
11166
|
if (e) {
|
|
11167
11167
|
if (Et) {
|
|
11168
11168
|
ge(Te);
|
|
11169
|
-
const
|
|
11170
|
-
|
|
11171
|
-
} else ge(
|
|
11169
|
+
const De = J(Ce), ze = [.../* @__PURE__ */ new Set([...De, e])].filter(Boolean).join(" ");
|
|
11170
|
+
Ce?.setAttribute("aria-describedby", ze);
|
|
11171
|
+
} else ge(Ce);
|
|
11172
11172
|
return () => {
|
|
11173
|
-
ge(
|
|
11173
|
+
ge(Ce), ge(Te);
|
|
11174
11174
|
};
|
|
11175
11175
|
}
|
|
11176
|
-
function J(
|
|
11176
|
+
function J(De) {
|
|
11177
11177
|
var ze;
|
|
11178
|
-
return ((ze =
|
|
11178
|
+
return ((ze = De?.getAttribute("aria-describedby")) === null || ze === void 0 ? void 0 : ze.split(" ")) || [];
|
|
11179
11179
|
}
|
|
11180
|
-
function ge(
|
|
11181
|
-
const ze = J(
|
|
11182
|
-
ze.length ?
|
|
11180
|
+
function ge(De) {
|
|
11181
|
+
const ze = J(De).filter(((ot) => ot !== e));
|
|
11182
|
+
ze.length ? De?.setAttribute("aria-describedby", ze.join(" ")) : De?.removeAttribute("aria-describedby");
|
|
11183
11183
|
}
|
|
11184
|
-
}), [
|
|
11184
|
+
}), [Ce, Et, e, Te]), we((() => {
|
|
11185
11185
|
if (Z === void 0) return () => null;
|
|
11186
11186
|
Z && Kt(!0);
|
|
11187
11187
|
const J = setTimeout((() => {
|
|
@@ -11191,16 +11191,16 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11191
11191
|
clearTimeout(J);
|
|
11192
11192
|
};
|
|
11193
11193
|
}), [Z]), we((() => {
|
|
11194
|
-
if (Et !== vn.current) if (nn(Kn), vn.current = Et, Et)
|
|
11194
|
+
if (Et !== vn.current) if (nn(Kn), vn.current = Et, Et) Ue?.();
|
|
11195
11195
|
else {
|
|
11196
11196
|
const J = ((ge) => {
|
|
11197
|
-
const
|
|
11198
|
-
if (!
|
|
11199
|
-
const [, ze, ot] =
|
|
11197
|
+
const De = ge.match(/^([\d.]+)(ms|s)$/);
|
|
11198
|
+
if (!De) return 0;
|
|
11199
|
+
const [, ze, ot] = De;
|
|
11200
11200
|
return Number(ze) * (ot === "ms" ? 1 : 1e3);
|
|
11201
11201
|
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
11202
11202
|
Kn.current = setTimeout((() => {
|
|
11203
|
-
Kt(!1), Un(null),
|
|
11203
|
+
Kt(!1), Un(null), oe?.();
|
|
11204
11204
|
}), J + 25);
|
|
11205
11205
|
}
|
|
11206
11206
|
}), [Et]);
|
|
@@ -11217,56 +11217,56 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11217
11217
|
}, ue = (J) => {
|
|
11218
11218
|
var ge;
|
|
11219
11219
|
if (!J) return;
|
|
11220
|
-
const
|
|
11221
|
-
if (!
|
|
11222
|
-
E ? jt() : pe(!0), Me(
|
|
11220
|
+
const De = (ge = J.currentTarget) !== null && ge !== void 0 ? ge : J.target;
|
|
11221
|
+
if (!De?.isConnected) return Me(null), void Lt({ current: null });
|
|
11222
|
+
E ? jt() : pe(!0), Me(De), Lt({ current: De }), nn(gt);
|
|
11223
11223
|
}, wn = () => {
|
|
11224
11224
|
j ? cn(D || 100) : D ? cn() : pe(!1), nn(xe);
|
|
11225
11225
|
}, Fn = ({ x: J, y: ge }) => {
|
|
11226
|
-
var
|
|
11226
|
+
var De;
|
|
11227
11227
|
const ze = { getBoundingClientRect: () => ({ x: J, y: ge, width: 0, height: 0, top: ge, left: J, right: J, bottom: ge }) };
|
|
11228
|
-
uu({ place: (
|
|
11228
|
+
uu({ place: (De = Fe?.place) !== null && De !== void 0 ? De : c, offset: u, elementReference: ze, tooltipReference: Ve.current, tooltipArrowReference: dt.current, strategy: g, middlewares: y, border: We, arrowSize: ut }).then(((ot) => {
|
|
11229
11229
|
ln(ot);
|
|
11230
11230
|
}));
|
|
11231
11231
|
}, Sn = (J) => {
|
|
11232
11232
|
if (!J) return;
|
|
11233
|
-
const ge = J,
|
|
11234
|
-
Fn(
|
|
11233
|
+
const ge = J, De = { x: ge.clientX, y: ge.clientY };
|
|
11234
|
+
Fn(De), Bn.current = De;
|
|
11235
11235
|
}, Zn = (J) => {
|
|
11236
11236
|
var ge;
|
|
11237
11237
|
if (!Et) return;
|
|
11238
|
-
const
|
|
11239
|
-
|
|
11238
|
+
const De = J.target;
|
|
11239
|
+
De.isConnected && (!((ge = Ve.current) === null || ge === void 0) && ge.contains(De) || [document.querySelector(`[id='${o}']`), ...Qt].some(((ze) => ze?.contains(De))) || (pe(!1), nn(xe)));
|
|
11240
11240
|
}, Xn = fu(ue, 50), st = fu(wn, 50), yt = (J) => {
|
|
11241
11241
|
st.cancel(), Xn(J);
|
|
11242
|
-
},
|
|
11242
|
+
}, Ee = () => {
|
|
11243
11243
|
Xn.cancel(), st();
|
|
11244
11244
|
}, Ie = Tn((() => {
|
|
11245
11245
|
var J, ge;
|
|
11246
|
-
const
|
|
11247
|
-
|
|
11246
|
+
const De = (J = Fe?.position) !== null && J !== void 0 ? J : Se;
|
|
11247
|
+
De ? Fn(De) : _ ? Bn.current && Fn(Bn.current) : Ce?.isConnected && uu({ place: (ge = Fe?.place) !== null && ge !== void 0 ? ge : c, offset: u, elementReference: Ce, tooltipReference: Ve.current, tooltipArrowReference: dt.current, strategy: g, middlewares: y, border: We, arrowSize: ut }).then(((ze) => {
|
|
11248
11248
|
on.current && ln(ze);
|
|
11249
11249
|
}));
|
|
11250
|
-
}), [Et,
|
|
11250
|
+
}), [Et, Ce, X, G, c, Fe?.place, u, g, Se, Fe?.position, _, ut]);
|
|
11251
11251
|
we((() => {
|
|
11252
11252
|
var J, ge;
|
|
11253
|
-
const
|
|
11253
|
+
const De = new Set(yn);
|
|
11254
11254
|
Qt.forEach(((Pe) => {
|
|
11255
|
-
|
|
11255
|
+
re?.(Pe) || De.add({ current: Pe });
|
|
11256
11256
|
}));
|
|
11257
11257
|
const ze = document.querySelector(`[id='${o}']`);
|
|
11258
|
-
ze && !
|
|
11258
|
+
ze && !re?.(ze) && De.add({ current: ze });
|
|
11259
11259
|
const ot = () => {
|
|
11260
11260
|
pe(!1);
|
|
11261
|
-
}, kt = pu(
|
|
11261
|
+
}, kt = pu(Ce), Jt = pu(Ve.current);
|
|
11262
11262
|
Xe.scroll && (window.addEventListener("scroll", ot), kt?.addEventListener("scroll", ot), Jt?.addEventListener("scroll", ot));
|
|
11263
11263
|
let nt = null;
|
|
11264
|
-
Xe.resize ? window.addEventListener("resize", ot) :
|
|
11264
|
+
Xe.resize ? window.addEventListener("resize", ot) : Ce && Ve.current && (nt = dE(Ce, Ve.current, Ie, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
|
|
11265
11265
|
const ht = (Pe) => {
|
|
11266
11266
|
Pe.key === "Escape" && pe(!1);
|
|
11267
11267
|
};
|
|
11268
11268
|
Xe.escape && window.addEventListener("keydown", ht), Xe.clickOutsideAnchor && window.addEventListener("click", Zn);
|
|
11269
|
-
const $e = [], un = (Pe) => !!(Pe?.target &&
|
|
11269
|
+
const $e = [], un = (Pe) => !!(Pe?.target && Ce?.contains(Pe.target)), ss = (Pe) => {
|
|
11270
11270
|
Et && un(Pe) || ue(Pe);
|
|
11271
11271
|
}, En = (Pe) => {
|
|
11272
11272
|
Et && un(Pe) && wn();
|
|
@@ -11274,7 +11274,7 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11274
11274
|
Object.entries(bn).forEach((([Pe, pt]) => {
|
|
11275
11275
|
pt && (li.includes(Pe) ? $e.push({ event: Pe, listener: yt }) : Dn.includes(Pe) && $e.push({ event: Pe, listener: ss }));
|
|
11276
11276
|
})), Object.entries(an).forEach((([Pe, pt]) => {
|
|
11277
|
-
pt && (li.includes(Pe) ? $e.push({ event: Pe, listener:
|
|
11277
|
+
pt && (li.includes(Pe) ? $e.push({ event: Pe, listener: Ee }) : Dn.includes(Pe) && $e.push({ event: Pe, listener: En }));
|
|
11278
11278
|
})), _ && $e.push({ event: "pointermove", listener: Sn });
|
|
11279
11279
|
const ci = () => {
|
|
11280
11280
|
Ht.current = !0;
|
|
@@ -11282,41 +11282,41 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11282
11282
|
Ht.current = !1, wn();
|
|
11283
11283
|
}, rt = j && (an.mouseout || an.mouseleave);
|
|
11284
11284
|
return rt && ((J = Ve.current) === null || J === void 0 || J.addEventListener("mouseover", ci), (ge = Ve.current) === null || ge === void 0 || ge.addEventListener("mouseout", Ur)), $e.forEach((({ event: Pe, listener: pt }) => {
|
|
11285
|
-
|
|
11285
|
+
De.forEach(((Br) => {
|
|
11286
11286
|
var en;
|
|
11287
11287
|
(en = Br.current) === null || en === void 0 || en.addEventListener(Pe, pt);
|
|
11288
11288
|
}));
|
|
11289
11289
|
})), () => {
|
|
11290
11290
|
var Pe, pt;
|
|
11291
11291
|
Xe.scroll && (window.removeEventListener("scroll", ot), kt?.removeEventListener("scroll", ot), Jt?.removeEventListener("scroll", ot)), Xe.resize ? window.removeEventListener("resize", ot) : nt?.(), Xe.clickOutsideAnchor && window.removeEventListener("click", Zn), Xe.escape && window.removeEventListener("keydown", ht), rt && ((Pe = Ve.current) === null || Pe === void 0 || Pe.removeEventListener("mouseover", ci), (pt = Ve.current) === null || pt === void 0 || pt.removeEventListener("mouseout", Ur)), $e.forEach((({ event: Br, listener: en }) => {
|
|
11292
|
-
|
|
11292
|
+
De.forEach(((Fr) => {
|
|
11293
11293
|
var yr;
|
|
11294
11294
|
(yr = Fr.current) === null || yr === void 0 || yr.removeEventListener(Br, en);
|
|
11295
11295
|
}));
|
|
11296
11296
|
}));
|
|
11297
11297
|
};
|
|
11298
|
-
}), [
|
|
11298
|
+
}), [Ce, Ie, Qn, yn, Qt, Q, $, ne, sn, E, D]), we((() => {
|
|
11299
11299
|
var J, ge;
|
|
11300
|
-
let
|
|
11301
|
-
!
|
|
11300
|
+
let De = (ge = (J = Fe?.anchorSelect) !== null && J !== void 0 ? J : s) !== null && ge !== void 0 ? ge : "";
|
|
11301
|
+
!De && e && (De = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`);
|
|
11302
11302
|
const ze = new MutationObserver(((ot) => {
|
|
11303
11303
|
const kt = [], Jt = [];
|
|
11304
11304
|
ot.forEach(((nt) => {
|
|
11305
11305
|
if (nt.type === "attributes" && nt.attributeName === "data-tooltip-id" && (nt.target.getAttribute("data-tooltip-id") === e ? kt.push(nt.target) : nt.oldValue === e && Jt.push(nt.target)), nt.type === "childList") {
|
|
11306
|
-
if (
|
|
11306
|
+
if (Ce) {
|
|
11307
11307
|
const ht = [...nt.removedNodes].filter((($e) => $e.nodeType === 1));
|
|
11308
|
-
if (
|
|
11309
|
-
Jt.push(...ht.filter((($e) => $e.matches(
|
|
11308
|
+
if (De) try {
|
|
11309
|
+
Jt.push(...ht.filter((($e) => $e.matches(De)))), Jt.push(...ht.flatMap((($e) => [...$e.querySelectorAll(De)])));
|
|
11310
11310
|
} catch {
|
|
11311
11311
|
}
|
|
11312
11312
|
ht.some((($e) => {
|
|
11313
11313
|
var un;
|
|
11314
|
-
return !!(!((un = $e?.contains) === null || un === void 0) && un.call($e,
|
|
11314
|
+
return !!(!((un = $e?.contains) === null || un === void 0) && un.call($e, Ce)) && (Kt(!1), pe(!1), Me(null), nn(xe), nn(gt), !0);
|
|
11315
11315
|
}));
|
|
11316
11316
|
}
|
|
11317
|
-
if (
|
|
11317
|
+
if (De) try {
|
|
11318
11318
|
const ht = [...nt.addedNodes].filter((($e) => $e.nodeType === 1));
|
|
11319
|
-
kt.push(...ht.filter((($e) => $e.matches(
|
|
11319
|
+
kt.push(...ht.filter((($e) => $e.matches(De)))), kt.push(...ht.flatMap((($e) => [...$e.querySelectorAll(De)])));
|
|
11320
11320
|
} catch {
|
|
11321
11321
|
}
|
|
11322
11322
|
}
|
|
@@ -11325,28 +11325,28 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11325
11325
|
return ze.observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-tooltip-id"], attributeOldValue: !0 }), () => {
|
|
11326
11326
|
ze.disconnect();
|
|
11327
11327
|
};
|
|
11328
|
-
}), [e, s, Fe?.anchorSelect,
|
|
11328
|
+
}), [e, s, Fe?.anchorSelect, Ce]), we((() => {
|
|
11329
11329
|
Ie();
|
|
11330
11330
|
}), [Ie]), we((() => {
|
|
11331
|
-
if (!
|
|
11331
|
+
if (!se?.current) return () => null;
|
|
11332
11332
|
const J = new ResizeObserver((() => {
|
|
11333
11333
|
setTimeout((() => Ie()));
|
|
11334
11334
|
}));
|
|
11335
|
-
return J.observe(
|
|
11335
|
+
return J.observe(se.current), () => {
|
|
11336
11336
|
J.disconnect();
|
|
11337
11337
|
};
|
|
11338
|
-
}), [X,
|
|
11338
|
+
}), [X, se?.current]), we((() => {
|
|
11339
11339
|
var J;
|
|
11340
|
-
const ge = document.querySelector(`[id='${o}']`),
|
|
11341
|
-
|
|
11342
|
-
}), [o, Qt,
|
|
11340
|
+
const ge = document.querySelector(`[id='${o}']`), De = [...Qt, ge];
|
|
11341
|
+
Ce && De.includes(Ce) || Me((J = Qt[0]) !== null && J !== void 0 ? J : ge);
|
|
11342
|
+
}), [o, Qt, Ce]), we((() => (he && pe(!0), () => {
|
|
11343
11343
|
nn(xe), nn(gt);
|
|
11344
11344
|
})), []), we((() => {
|
|
11345
11345
|
var J;
|
|
11346
11346
|
let ge = (J = Fe?.anchorSelect) !== null && J !== void 0 ? J : s;
|
|
11347
11347
|
if (!ge && e && (ge = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`), ge) try {
|
|
11348
|
-
const
|
|
11349
|
-
rn(
|
|
11348
|
+
const De = Array.from(document.querySelectorAll(ge));
|
|
11349
|
+
rn(De);
|
|
11350
11350
|
} catch {
|
|
11351
11351
|
rn([]);
|
|
11352
11352
|
}
|
|
@@ -11363,49 +11363,49 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11363
11363
|
Un(J ?? null), J?.delay ? jt(J.delay) : pe(!0);
|
|
11364
11364
|
}, close: (J) => {
|
|
11365
11365
|
J?.delay ? cn(J.delay) : pe(!1);
|
|
11366
|
-
}, activeAnchor:
|
|
11367
|
-
nn(Kn), Et || J.propertyName !== "opacity" || (Kt(!1), Un(null),
|
|
11368
|
-
}, style: { ...
|
|
11369
|
-
}, xE = ({ content: t }) => Mn.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), RE = Mn.forwardRef((({ id: t, anchorId: e, anchorSelect: n, content: r, html: i, render: o, className: s, classNameArrow: c, variant: u = "dark", place: f = "top", offset: h = 10, wrapper: g = "div", children: y = null, events: v = ["hover"], openOnClick: E = !1, positionStrategy: D = "absolute", middlewares: _, delayShow: R = 0, delayHide: x = 0, float: j = !1, hidden: L = !1, noArrow:
|
|
11370
|
-
const [te, Ve] = me(r), [dt, xe] = me(i), [gt, Kn] = me(f), [Tt, jr] = me(u), [Et, vr] = me(h), [Qn, Kt] = me(R), [Fe, Un] = me(x), [vn, Bn] = me(j), [yn, Lt] = me(L), [Ht, Qt] = me(g), [rn, on] = me(v), [sn, Zt] = me(D), [bn, an] = me(null), [Xe, pe] = me(null), ln = vt(null), jt = vt(Z), { anchorRefs: cn, activeAnchor: ue } = Bf(t), wn = (st) => st?.getAttributeNames().reduce(((yt,
|
|
11366
|
+
}, activeAnchor: Ce, place: Tt.place, isOpen: !!(Qn && !R && bt && Xt) }))), Qn && !R && bt ? Mn.createElement(v, { id: e, role: Pt, className: Ea("react-tooltip", qr.tooltip, Js.tooltip, Js[i], n, `react-tooltip__place-${Tt.place}`, qr[Xt ? "show" : "closing"], Xt ? "react-tooltip__show" : "react-tooltip__closing", g === "fixed" && qr.fixed, j && qr.clickable), onTransitionEnd: (J) => {
|
|
11367
|
+
nn(Kn), Et || J.propertyName !== "opacity" || (Kt(!1), Un(null), oe?.());
|
|
11368
|
+
}, style: { ...G, ...Tt.tooltipStyles, opacity: tt !== void 0 && Xt ? tt : void 0 }, ref: Ve }, bt, Mn.createElement(v, { className: Ea("react-tooltip-arrow", qr.arrow, Js.arrow, r, x && qr.noArrow), style: { ...Tt.tooltipArrowStyles, background: ct ? `linear-gradient(to right bottom, transparent 50%, ${ct} 50%)` : void 0, "--rt-arrow-size": `${ut}px` }, ref: dt })) : null;
|
|
11369
|
+
}, xE = ({ content: t }) => Mn.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), RE = Mn.forwardRef((({ id: t, anchorId: e, anchorSelect: n, content: r, html: i, render: o, className: s, classNameArrow: c, variant: u = "dark", place: f = "top", offset: h = 10, wrapper: g = "div", children: y = null, events: v = ["hover"], openOnClick: E = !1, positionStrategy: D = "absolute", middlewares: _, delayShow: R = 0, delayHide: x = 0, float: j = !1, hidden: L = !1, noArrow: I = !1, clickable: F = !1, closeOnEsc: Q = !1, closeOnScroll: $ = !1, closeOnResize: ne = !1, openEvents: K, closeEvents: G, globalCloseEvents: Se, imperativeModeOnly: Ue = !1, style: oe, position: re, isOpen: X, defaultIsOpen: se = !1, disableStyleInjection: Z = !1, border: he, opacity: ve, arrowColor: Te, arrowSize: Ce, setIsOpen: Me, afterShow: We, afterHide: tt, disableTooltip: ct, role: ut = "tooltip" }, Pt) => {
|
|
11370
|
+
const [te, Ve] = me(r), [dt, xe] = me(i), [gt, Kn] = me(f), [Tt, jr] = me(u), [Et, vr] = me(h), [Qn, Kt] = me(R), [Fe, Un] = me(x), [vn, Bn] = me(j), [yn, Lt] = me(L), [Ht, Qt] = me(g), [rn, on] = me(v), [sn, Zt] = me(D), [bn, an] = me(null), [Xe, pe] = me(null), ln = vt(null), jt = vt(Z), { anchorRefs: cn, activeAnchor: ue } = Bf(t), wn = (st) => st?.getAttributeNames().reduce(((yt, Ee) => {
|
|
11371
11371
|
var Ie;
|
|
11372
|
-
return
|
|
11372
|
+
return Ee.startsWith("data-tooltip-") && (yt[Ee.replace(/^data-tooltip-/, "")] = (Ie = st?.getAttribute(Ee)) !== null && Ie !== void 0 ? Ie : null), yt;
|
|
11373
11373
|
}), {}), Fn = (st) => {
|
|
11374
|
-
const yt = { place: (
|
|
11374
|
+
const yt = { place: (Ee) => {
|
|
11375
11375
|
var Ie;
|
|
11376
|
-
Kn((Ie =
|
|
11377
|
-
}, content: (
|
|
11378
|
-
Ve(
|
|
11379
|
-
}, html: (
|
|
11380
|
-
xe(
|
|
11381
|
-
}, variant: (
|
|
11376
|
+
Kn((Ie = Ee) !== null && Ie !== void 0 ? Ie : f);
|
|
11377
|
+
}, content: (Ee) => {
|
|
11378
|
+
Ve(Ee ?? r);
|
|
11379
|
+
}, html: (Ee) => {
|
|
11380
|
+
xe(Ee ?? i);
|
|
11381
|
+
}, variant: (Ee) => {
|
|
11382
11382
|
var Ie;
|
|
11383
|
-
jr((Ie =
|
|
11384
|
-
}, offset: (
|
|
11385
|
-
vr(
|
|
11386
|
-
}, wrapper: (
|
|
11383
|
+
jr((Ie = Ee) !== null && Ie !== void 0 ? Ie : u);
|
|
11384
|
+
}, offset: (Ee) => {
|
|
11385
|
+
vr(Ee === null ? h : Number(Ee));
|
|
11386
|
+
}, wrapper: (Ee) => {
|
|
11387
11387
|
var Ie;
|
|
11388
|
-
Qt((Ie =
|
|
11389
|
-
}, events: (
|
|
11390
|
-
const Ie =
|
|
11388
|
+
Qt((Ie = Ee) !== null && Ie !== void 0 ? Ie : g);
|
|
11389
|
+
}, events: (Ee) => {
|
|
11390
|
+
const Ie = Ee?.split(" ");
|
|
11391
11391
|
on(Ie ?? v);
|
|
11392
|
-
}, "position-strategy": (
|
|
11392
|
+
}, "position-strategy": (Ee) => {
|
|
11393
11393
|
var Ie;
|
|
11394
|
-
Zt((Ie =
|
|
11395
|
-
}, "delay-show": (
|
|
11396
|
-
Kt(
|
|
11397
|
-
}, "delay-hide": (
|
|
11398
|
-
Un(
|
|
11399
|
-
}, float: (
|
|
11400
|
-
Bn(
|
|
11401
|
-
}, hidden: (
|
|
11402
|
-
Lt(
|
|
11403
|
-
}, "class-name": (
|
|
11404
|
-
an(
|
|
11394
|
+
Zt((Ie = Ee) !== null && Ie !== void 0 ? Ie : D);
|
|
11395
|
+
}, "delay-show": (Ee) => {
|
|
11396
|
+
Kt(Ee === null ? R : Number(Ee));
|
|
11397
|
+
}, "delay-hide": (Ee) => {
|
|
11398
|
+
Un(Ee === null ? x : Number(Ee));
|
|
11399
|
+
}, float: (Ee) => {
|
|
11400
|
+
Bn(Ee === null ? j : Ee === "true");
|
|
11401
|
+
}, hidden: (Ee) => {
|
|
11402
|
+
Lt(Ee === null ? L : Ee === "true");
|
|
11403
|
+
}, "class-name": (Ee) => {
|
|
11404
|
+
an(Ee);
|
|
11405
11405
|
} };
|
|
11406
|
-
Object.values(yt).forEach(((
|
|
11406
|
+
Object.values(yt).forEach(((Ee) => Ee(null))), Object.entries(st).forEach((([Ee, Ie]) => {
|
|
11407
11407
|
var bt;
|
|
11408
|
-
(bt = yt[
|
|
11408
|
+
(bt = yt[Ee]) === null || bt === void 0 || bt.call(yt, Ie);
|
|
11409
11409
|
}));
|
|
11410
11410
|
};
|
|
11411
11411
|
we((() => {
|
|
@@ -11435,20 +11435,20 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11435
11435
|
}), []), we((() => {
|
|
11436
11436
|
var st;
|
|
11437
11437
|
const yt = new Set(cn);
|
|
11438
|
-
let
|
|
11439
|
-
if (!
|
|
11440
|
-
document.querySelectorAll(
|
|
11438
|
+
let Ee = n;
|
|
11439
|
+
if (!Ee && t && (Ee = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), Ee) try {
|
|
11440
|
+
document.querySelectorAll(Ee).forEach(((ge) => {
|
|
11441
11441
|
yt.add({ current: ge });
|
|
11442
11442
|
}));
|
|
11443
11443
|
} catch {
|
|
11444
|
-
console.warn(`[react-tooltip] "${
|
|
11444
|
+
console.warn(`[react-tooltip] "${Ee}" is not a valid CSS selector`);
|
|
11445
11445
|
}
|
|
11446
11446
|
const Ie = document.querySelector(`[id='${e}']`);
|
|
11447
11447
|
if (Ie && yt.add({ current: Ie }), !yt.size) return () => null;
|
|
11448
11448
|
const bt = (st = Xe ?? Ie) !== null && st !== void 0 ? st : ue.current, Xt = new MutationObserver(((ge) => {
|
|
11449
|
-
ge.forEach(((
|
|
11449
|
+
ge.forEach(((De) => {
|
|
11450
11450
|
var ze;
|
|
11451
|
-
if (!bt ||
|
|
11451
|
+
if (!bt || De.type !== "attributes" || !(!((ze = De.attributeName) === null || ze === void 0) && ze.startsWith("data-tooltip-"))) return;
|
|
11452
11452
|
const ot = wn(bt);
|
|
11453
11453
|
Fn(ot);
|
|
11454
11454
|
}));
|
|
@@ -11461,7 +11461,7 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11461
11461
|
Xt.disconnect();
|
|
11462
11462
|
};
|
|
11463
11463
|
}), [cn, ue, Xe, e, n]), we((() => {
|
|
11464
|
-
|
|
11464
|
+
oe?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), he && !du("border", `${he}`) && console.warn(`[react-tooltip] "${he}" is not a valid \`border\`.`), oe?.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), ve && !du("opacity", `${ve}`) && console.warn(`[react-tooltip] "${ve}" is not a valid \`opacity\`.`);
|
|
11465
11465
|
}), []);
|
|
11466
11466
|
let Sn = y;
|
|
11467
11467
|
const Zn = vt(null);
|
|
@@ -11470,7 +11470,7 @@ const _E = ({ forwardRef: t, id: e, className: n, classNameArrow: r, variant: i
|
|
|
11470
11470
|
Sn = st ? Mn.createElement("div", { ref: Zn, className: "react-tooltip-content-wrapper" }, st) : null;
|
|
11471
11471
|
} else te && (Sn = te);
|
|
11472
11472
|
dt && (Sn = Mn.createElement(xE, { content: dt }));
|
|
11473
|
-
const Xn = { forwardRef: Pt, id: t, anchorId: e, anchorSelect: n, className: Ea(s, bn), classNameArrow: c, content: Sn, contentWrapperRef: Zn, place: gt, variant: Tt, offset: Et, wrapper: Ht, events: rn, openOnClick: E, positionStrategy: sn, middlewares: _, delayShow: Qn, delayHide: Fe, float: vn, hidden: yn, noArrow:
|
|
11473
|
+
const Xn = { forwardRef: Pt, id: t, anchorId: e, anchorSelect: n, className: Ea(s, bn), classNameArrow: c, content: Sn, contentWrapperRef: Zn, place: gt, variant: Tt, offset: Et, wrapper: Ht, events: rn, openOnClick: E, positionStrategy: sn, middlewares: _, delayShow: Qn, delayHide: Fe, float: vn, hidden: yn, noArrow: I, clickable: F, closeOnEsc: Q, closeOnScroll: $, closeOnResize: ne, openEvents: K, closeEvents: G, globalCloseEvents: Se, imperativeModeOnly: Ue, style: oe, position: re, isOpen: X, defaultIsOpen: se, border: he, opacity: ve, arrowColor: Te, arrowSize: Ce, setIsOpen: Me, afterShow: We, afterHide: tt, disableTooltip: ct, activeAnchor: Xe, previousActiveAnchor: ln.current, setActiveAnchor: (st) => {
|
|
11474
11474
|
pe(((yt) => (st?.isSameNode(yt) || (ln.current = yt), st)));
|
|
11475
11475
|
}, role: ut };
|
|
11476
11476
|
return Mn.createElement(_E, { ...Xn });
|
|
@@ -11760,15 +11760,15 @@ function Ff({
|
|
|
11760
11760
|
($) => $.UserLastName && !fl.includes($.UserLastName)
|
|
11761
11761
|
), R = _.filter(($) => cr.includes($.UserID)), x = _.filter(($) => !cr.includes($.UserID));
|
|
11762
11762
|
function j($) {
|
|
11763
|
-
let
|
|
11764
|
-
for (
|
|
11765
|
-
|
|
11766
|
-
let
|
|
11767
|
-
for (
|
|
11768
|
-
const
|
|
11769
|
-
|
|
11763
|
+
let ne = 0, K;
|
|
11764
|
+
for (K = 0; K < $.length; K += 1)
|
|
11765
|
+
ne = $.charCodeAt(K) + ((ne << 5) - ne);
|
|
11766
|
+
let G = "#";
|
|
11767
|
+
for (K = 0; K < 3; K += 1) {
|
|
11768
|
+
const Se = ne >> K * 8 & 255;
|
|
11769
|
+
G += `00${Se.toString(16)}`.slice(-2);
|
|
11770
11770
|
}
|
|
11771
|
-
return
|
|
11771
|
+
return G;
|
|
11772
11772
|
}
|
|
11773
11773
|
function L($) {
|
|
11774
11774
|
return {
|
|
@@ -11778,45 +11778,45 @@ function Ff({
|
|
|
11778
11778
|
children: `${$.split(" ")[0][0]}${$.split(" ")[1][0]}`
|
|
11779
11779
|
};
|
|
11780
11780
|
}
|
|
11781
|
-
function
|
|
11782
|
-
const
|
|
11783
|
-
n && (
|
|
11784
|
-
},
|
|
11781
|
+
function I($, ne) {
|
|
11782
|
+
const K = (Se) => {
|
|
11783
|
+
n && (Se.stopPropagation(), f(Se.currentTarget), g(ne));
|
|
11784
|
+
}, G = $ ? `${$.UserFirstName} ${$.UserLastName}` : "Unassigned";
|
|
11785
11785
|
if (!$)
|
|
11786
|
-
return /* @__PURE__ */ w(Ke, { title:
|
|
11786
|
+
return /* @__PURE__ */ w(Ke, { title: G, arrow: !0, children: /* @__PURE__ */ w(
|
|
11787
11787
|
nr,
|
|
11788
11788
|
{
|
|
11789
11789
|
sx: { width: D, height: E, cursor: n ? "pointer" : "default" },
|
|
11790
|
-
onClick:
|
|
11790
|
+
onClick: K,
|
|
11791
11791
|
className: "CCAvatarIcon",
|
|
11792
11792
|
children: "?"
|
|
11793
11793
|
}
|
|
11794
11794
|
) });
|
|
11795
11795
|
if ($.Picture)
|
|
11796
|
-
return /* @__PURE__ */ w(Ke, { title:
|
|
11796
|
+
return /* @__PURE__ */ w(Ke, { title: G, arrow: !0, children: /* @__PURE__ */ w(
|
|
11797
11797
|
nr,
|
|
11798
11798
|
{
|
|
11799
11799
|
alt: `${$.UserFirstName} ${$.UserLastName}`,
|
|
11800
11800
|
src: $.Picture,
|
|
11801
11801
|
sx: { width: D, height: E, cursor: n ? "pointer" : "default" },
|
|
11802
|
-
onClick:
|
|
11802
|
+
onClick: K,
|
|
11803
11803
|
className: "CCAvatarIcon"
|
|
11804
11804
|
}
|
|
11805
11805
|
) });
|
|
11806
11806
|
{
|
|
11807
|
-
const
|
|
11808
|
-
return /* @__PURE__ */ w(Ke, { title:
|
|
11807
|
+
const Se = L(`${$.UserFirstName} ${$.UserLastName}`);
|
|
11808
|
+
return /* @__PURE__ */ w(Ke, { title: G, arrow: !0, placement: "top", children: /* @__PURE__ */ w(
|
|
11809
11809
|
nr,
|
|
11810
11810
|
{
|
|
11811
11811
|
sx: {
|
|
11812
|
-
...
|
|
11812
|
+
...Se.sx,
|
|
11813
11813
|
width: D,
|
|
11814
11814
|
height: E,
|
|
11815
11815
|
cursor: n ? "pointer" : "default"
|
|
11816
11816
|
},
|
|
11817
|
-
onClick:
|
|
11817
|
+
onClick: K,
|
|
11818
11818
|
className: "CCAvatarIcon",
|
|
11819
|
-
children:
|
|
11819
|
+
children: Se.children
|
|
11820
11820
|
}
|
|
11821
11821
|
) });
|
|
11822
11822
|
}
|
|
@@ -11825,8 +11825,8 @@ function Ff({
|
|
|
11825
11825
|
f(null), g(null), v(null);
|
|
11826
11826
|
}
|
|
11827
11827
|
function Q($) {
|
|
11828
|
-
const
|
|
11829
|
-
F(), n &&
|
|
11828
|
+
const ne = h;
|
|
11829
|
+
F(), n && ne && setTimeout(() => n(ne, $), 0);
|
|
11830
11830
|
}
|
|
11831
11831
|
return /* @__PURE__ */ ee(Or, { children: [
|
|
11832
11832
|
/* @__PURE__ */ ee(
|
|
@@ -11840,8 +11840,8 @@ function Ff({
|
|
|
11840
11840
|
className: "iconHolder",
|
|
11841
11841
|
onClick: n ? ($) => $.stopPropagation() : void 0,
|
|
11842
11842
|
children: [
|
|
11843
|
-
|
|
11844
|
-
|
|
11843
|
+
I(s, "first"),
|
|
11844
|
+
I(c, "second")
|
|
11845
11845
|
]
|
|
11846
11846
|
}
|
|
11847
11847
|
),
|
|
@@ -11868,8 +11868,8 @@ function Ff({
|
|
|
11868
11868
|
sx: { width: 24, height: 24 }
|
|
11869
11869
|
}
|
|
11870
11870
|
) : (() => {
|
|
11871
|
-
const
|
|
11872
|
-
return /* @__PURE__ */ w(nr, { sx: { ...
|
|
11871
|
+
const ne = L(`${$.UserFirstName} ${$.UserLastName}`);
|
|
11872
|
+
return /* @__PURE__ */ w(nr, { sx: { ...ne.sx, width: 24, height: 24, fontSize: 11 }, children: ne.children });
|
|
11873
11873
|
})() }),
|
|
11874
11874
|
/* @__PURE__ */ w(no, { primary: `${$.UserFirstName} ${$.UserLastName}` })
|
|
11875
11875
|
] }, $.UserID)),
|
|
@@ -11912,8 +11912,8 @@ function Ff({
|
|
|
11912
11912
|
sx: { width: 24, height: 24 }
|
|
11913
11913
|
}
|
|
11914
11914
|
) : (() => {
|
|
11915
|
-
const
|
|
11916
|
-
return /* @__PURE__ */ w(nr, { sx: { ...
|
|
11915
|
+
const ne = L(`${$.UserFirstName} ${$.UserLastName}`);
|
|
11916
|
+
return /* @__PURE__ */ w(nr, { sx: { ...ne.sx, width: 24, height: 24, fontSize: 11 }, children: ne.children });
|
|
11917
11917
|
})() }),
|
|
11918
11918
|
/* @__PURE__ */ w(no, { primary: `${$.UserFirstName} ${$.UserLastName}` })
|
|
11919
11919
|
] }, $.UserID))
|
|
@@ -12135,96 +12135,96 @@ function jE() {
|
|
|
12135
12135
|
(function(n, r) {
|
|
12136
12136
|
t.exports = r();
|
|
12137
12137
|
})(HE, (function() {
|
|
12138
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour", f = "day", h = "week", g = "month", y = "quarter", v = "year", E = "date", D = "Invalid Date", _ = /^(\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, x = { 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(
|
|
12139
|
-
var
|
|
12140
|
-
return "[" +
|
|
12141
|
-
} }, j = function(
|
|
12142
|
-
var
|
|
12143
|
-
return !
|
|
12144
|
-
}, L = { s: j, z: function(
|
|
12145
|
-
var
|
|
12146
|
-
return (
|
|
12147
|
-
}, m: function
|
|
12148
|
-
if (
|
|
12149
|
-
var
|
|
12150
|
-
return +(-(
|
|
12151
|
-
}, a: function(
|
|
12152
|
-
return
|
|
12153
|
-
}, p: function(
|
|
12154
|
-
return { M: g, y: v, w: h, d: f, D: E, h: u, m: c, s, ms: o, Q: y }[
|
|
12155
|
-
}, u: function(
|
|
12156
|
-
return
|
|
12157
|
-
} },
|
|
12158
|
-
F[
|
|
12159
|
-
var Q = "$isDayjsObject", $ = function(
|
|
12160
|
-
return
|
|
12161
|
-
},
|
|
12138
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour", f = "day", h = "week", g = "month", y = "quarter", v = "year", E = "date", D = "Invalid Date", _ = /^(\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, x = { 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(oe) {
|
|
12139
|
+
var re = ["th", "st", "nd", "rd"], X = oe % 100;
|
|
12140
|
+
return "[" + oe + (re[(X - 20) % 10] || re[X] || re[0]) + "]";
|
|
12141
|
+
} }, j = function(oe, re, X) {
|
|
12142
|
+
var se = String(oe);
|
|
12143
|
+
return !se || se.length >= re ? oe : "" + Array(re + 1 - se.length).join(X) + oe;
|
|
12144
|
+
}, L = { s: j, z: function(oe) {
|
|
12145
|
+
var re = -oe.utcOffset(), X = Math.abs(re), se = Math.floor(X / 60), Z = X % 60;
|
|
12146
|
+
return (re <= 0 ? "+" : "-") + j(se, 2, "0") + ":" + j(Z, 2, "0");
|
|
12147
|
+
}, m: function oe(re, X) {
|
|
12148
|
+
if (re.date() < X.date()) return -oe(X, re);
|
|
12149
|
+
var se = 12 * (X.year() - re.year()) + (X.month() - re.month()), Z = re.clone().add(se, g), he = X - Z < 0, ve = re.clone().add(se + (he ? -1 : 1), g);
|
|
12150
|
+
return +(-(se + (X - Z) / (he ? Z - ve : ve - Z)) || 0);
|
|
12151
|
+
}, a: function(oe) {
|
|
12152
|
+
return oe < 0 ? Math.ceil(oe) || 0 : Math.floor(oe);
|
|
12153
|
+
}, p: function(oe) {
|
|
12154
|
+
return { M: g, y: v, w: h, d: f, D: E, h: u, m: c, s, ms: o, Q: y }[oe] || String(oe || "").toLowerCase().replace(/s$/, "");
|
|
12155
|
+
}, u: function(oe) {
|
|
12156
|
+
return oe === void 0;
|
|
12157
|
+
} }, I = "en", F = {};
|
|
12158
|
+
F[I] = x;
|
|
12159
|
+
var Q = "$isDayjsObject", $ = function(oe) {
|
|
12160
|
+
return oe instanceof Se || !(!oe || !oe[Q]);
|
|
12161
|
+
}, ne = function oe(re, X, se) {
|
|
12162
12162
|
var Z;
|
|
12163
|
-
if (!
|
|
12164
|
-
if (typeof
|
|
12165
|
-
var he =
|
|
12163
|
+
if (!re) return I;
|
|
12164
|
+
if (typeof re == "string") {
|
|
12165
|
+
var he = re.toLowerCase();
|
|
12166
12166
|
F[he] && (Z = he), X && (F[he] = X, Z = he);
|
|
12167
|
-
var ve =
|
|
12168
|
-
if (!Z && ve.length > 1) return
|
|
12167
|
+
var ve = re.split("-");
|
|
12168
|
+
if (!Z && ve.length > 1) return oe(ve[0]);
|
|
12169
12169
|
} else {
|
|
12170
|
-
var Te =
|
|
12171
|
-
F[Te] =
|
|
12170
|
+
var Te = re.name;
|
|
12171
|
+
F[Te] = re, Z = Te;
|
|
12172
12172
|
}
|
|
12173
|
-
return !
|
|
12174
|
-
},
|
|
12175
|
-
if ($(
|
|
12176
|
-
var X = typeof
|
|
12177
|
-
return X.date =
|
|
12178
|
-
},
|
|
12179
|
-
|
|
12180
|
-
return
|
|
12173
|
+
return !se && Z && (I = Z), Z || !se && I;
|
|
12174
|
+
}, K = function(oe, re) {
|
|
12175
|
+
if ($(oe)) return oe.clone();
|
|
12176
|
+
var X = typeof re == "object" ? re : {};
|
|
12177
|
+
return X.date = oe, X.args = arguments, new Se(X);
|
|
12178
|
+
}, G = L;
|
|
12179
|
+
G.l = ne, G.i = $, G.w = function(oe, re) {
|
|
12180
|
+
return K(oe, { locale: re.$L, utc: re.$u, x: re.$x, $offset: re.$offset });
|
|
12181
12181
|
};
|
|
12182
|
-
var
|
|
12183
|
-
function
|
|
12184
|
-
this.$L =
|
|
12182
|
+
var Se = (function() {
|
|
12183
|
+
function oe(X) {
|
|
12184
|
+
this.$L = ne(X.locale, null, !0), this.parse(X), this.$x = this.$x || X.x || {}, this[Q] = !0;
|
|
12185
12185
|
}
|
|
12186
|
-
var
|
|
12187
|
-
return
|
|
12188
|
-
this.$d = (function(
|
|
12189
|
-
var Z =
|
|
12186
|
+
var re = oe.prototype;
|
|
12187
|
+
return re.parse = function(X) {
|
|
12188
|
+
this.$d = (function(se) {
|
|
12189
|
+
var Z = se.date, he = se.utc;
|
|
12190
12190
|
if (Z === null) return /* @__PURE__ */ new Date(NaN);
|
|
12191
|
-
if (
|
|
12191
|
+
if (G.u(Z)) return /* @__PURE__ */ new Date();
|
|
12192
12192
|
if (Z instanceof Date) return new Date(Z);
|
|
12193
12193
|
if (typeof Z == "string" && !/Z$/i.test(Z)) {
|
|
12194
12194
|
var ve = Z.match(_);
|
|
12195
12195
|
if (ve) {
|
|
12196
|
-
var Te = ve[2] - 1 || 0,
|
|
12197
|
-
return he ? new Date(Date.UTC(ve[1], Te, ve[3] || 1, ve[4] || 0, ve[5] || 0, ve[6] || 0,
|
|
12196
|
+
var Te = ve[2] - 1 || 0, Ce = (ve[7] || "0").substring(0, 3);
|
|
12197
|
+
return he ? new Date(Date.UTC(ve[1], Te, ve[3] || 1, ve[4] || 0, ve[5] || 0, ve[6] || 0, Ce)) : new Date(ve[1], Te, ve[3] || 1, ve[4] || 0, ve[5] || 0, ve[6] || 0, Ce);
|
|
12198
12198
|
}
|
|
12199
12199
|
}
|
|
12200
12200
|
return new Date(Z);
|
|
12201
12201
|
})(X), this.init();
|
|
12202
|
-
},
|
|
12202
|
+
}, re.init = function() {
|
|
12203
12203
|
var X = this.$d;
|
|
12204
12204
|
this.$y = X.getFullYear(), this.$M = X.getMonth(), this.$D = X.getDate(), this.$W = X.getDay(), this.$H = X.getHours(), this.$m = X.getMinutes(), this.$s = X.getSeconds(), this.$ms = X.getMilliseconds();
|
|
12205
|
-
},
|
|
12206
|
-
return
|
|
12207
|
-
},
|
|
12205
|
+
}, re.$utils = function() {
|
|
12206
|
+
return G;
|
|
12207
|
+
}, re.isValid = function() {
|
|
12208
12208
|
return this.$d.toString() !== D;
|
|
12209
|
-
},
|
|
12210
|
-
var Z =
|
|
12211
|
-
return this.startOf(
|
|
12212
|
-
},
|
|
12213
|
-
return
|
|
12214
|
-
},
|
|
12215
|
-
return this.endOf(
|
|
12216
|
-
},
|
|
12217
|
-
return
|
|
12218
|
-
},
|
|
12209
|
+
}, re.isSame = function(X, se) {
|
|
12210
|
+
var Z = K(X);
|
|
12211
|
+
return this.startOf(se) <= Z && Z <= this.endOf(se);
|
|
12212
|
+
}, re.isAfter = function(X, se) {
|
|
12213
|
+
return K(X) < this.startOf(se);
|
|
12214
|
+
}, re.isBefore = function(X, se) {
|
|
12215
|
+
return this.endOf(se) < K(X);
|
|
12216
|
+
}, re.$g = function(X, se, Z) {
|
|
12217
|
+
return G.u(X) ? this[se] : this.set(Z, X);
|
|
12218
|
+
}, re.unix = function() {
|
|
12219
12219
|
return Math.floor(this.valueOf() / 1e3);
|
|
12220
|
-
},
|
|
12220
|
+
}, re.valueOf = function() {
|
|
12221
12221
|
return this.$d.getTime();
|
|
12222
|
-
},
|
|
12223
|
-
var Z = this, he = !!
|
|
12224
|
-
var dt =
|
|
12222
|
+
}, re.startOf = function(X, se) {
|
|
12223
|
+
var Z = this, he = !!G.u(se) || se, ve = G.p(X), Te = function(te, Ve) {
|
|
12224
|
+
var dt = G.w(Z.$u ? Date.UTC(Z.$y, Ve, te) : new Date(Z.$y, Ve, te), Z);
|
|
12225
12225
|
return he ? dt : dt.endOf(f);
|
|
12226
|
-
},
|
|
12227
|
-
return
|
|
12226
|
+
}, Ce = function(te, Ve) {
|
|
12227
|
+
return G.w(Z.toDate()[te].apply(Z.toDate("s"), (he ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ve)), Z);
|
|
12228
12228
|
}, Me = this.$W, We = this.$M, tt = this.$D, ct = "set" + (this.$u ? "UTC" : "");
|
|
12229
12229
|
switch (ve) {
|
|
12230
12230
|
case v:
|
|
@@ -12236,51 +12236,51 @@ function jE() {
|
|
|
12236
12236
|
return Te(he ? tt - Pt : tt + (6 - Pt), We);
|
|
12237
12237
|
case f:
|
|
12238
12238
|
case E:
|
|
12239
|
-
return
|
|
12239
|
+
return Ce(ct + "Hours", 0);
|
|
12240
12240
|
case u:
|
|
12241
|
-
return
|
|
12241
|
+
return Ce(ct + "Minutes", 1);
|
|
12242
12242
|
case c:
|
|
12243
|
-
return
|
|
12243
|
+
return Ce(ct + "Seconds", 2);
|
|
12244
12244
|
case s:
|
|
12245
|
-
return
|
|
12245
|
+
return Ce(ct + "Milliseconds", 3);
|
|
12246
12246
|
default:
|
|
12247
12247
|
return this.clone();
|
|
12248
12248
|
}
|
|
12249
|
-
},
|
|
12249
|
+
}, re.endOf = function(X) {
|
|
12250
12250
|
return this.startOf(X, !1);
|
|
12251
|
-
},
|
|
12252
|
-
var Z, he =
|
|
12251
|
+
}, re.$set = function(X, se) {
|
|
12252
|
+
var Z, he = G.p(X), ve = "set" + (this.$u ? "UTC" : ""), Te = (Z = {}, Z[f] = ve + "Date", Z[E] = ve + "Date", Z[g] = ve + "Month", Z[v] = ve + "FullYear", Z[u] = ve + "Hours", Z[c] = ve + "Minutes", Z[s] = ve + "Seconds", Z[o] = ve + "Milliseconds", Z)[he], Ce = he === f ? this.$D + (se - this.$W) : se;
|
|
12253
12253
|
if (he === g || he === v) {
|
|
12254
12254
|
var Me = this.clone().set(E, 1);
|
|
12255
|
-
Me.$d[Te](
|
|
12256
|
-
} else Te && this.$d[Te](
|
|
12255
|
+
Me.$d[Te](Ce), Me.init(), this.$d = Me.set(E, Math.min(this.$D, Me.daysInMonth())).$d;
|
|
12256
|
+
} else Te && this.$d[Te](Ce);
|
|
12257
12257
|
return this.init(), this;
|
|
12258
|
-
},
|
|
12259
|
-
return this.clone().$set(X,
|
|
12260
|
-
},
|
|
12261
|
-
return this[
|
|
12262
|
-
},
|
|
12258
|
+
}, re.set = function(X, se) {
|
|
12259
|
+
return this.clone().$set(X, se);
|
|
12260
|
+
}, re.get = function(X) {
|
|
12261
|
+
return this[G.p(X)]();
|
|
12262
|
+
}, re.add = function(X, se) {
|
|
12263
12263
|
var Z, he = this;
|
|
12264
12264
|
X = Number(X);
|
|
12265
|
-
var ve =
|
|
12266
|
-
var tt =
|
|
12267
|
-
return
|
|
12265
|
+
var ve = G.p(se), Te = function(We) {
|
|
12266
|
+
var tt = K(he);
|
|
12267
|
+
return G.w(tt.date(tt.date() + Math.round(We * X)), he);
|
|
12268
12268
|
};
|
|
12269
12269
|
if (ve === g) return this.set(g, this.$M + X);
|
|
12270
12270
|
if (ve === v) return this.set(v, this.$y + X);
|
|
12271
12271
|
if (ve === f) return Te(1);
|
|
12272
12272
|
if (ve === h) return Te(7);
|
|
12273
|
-
var
|
|
12274
|
-
return
|
|
12275
|
-
},
|
|
12276
|
-
return this.add(-1 * X,
|
|
12277
|
-
},
|
|
12278
|
-
var
|
|
12273
|
+
var Ce = (Z = {}, Z[c] = r, Z[u] = i, Z[s] = n, Z)[ve] || 1, Me = this.$d.getTime() + X * Ce;
|
|
12274
|
+
return G.w(Me, this);
|
|
12275
|
+
}, re.subtract = function(X, se) {
|
|
12276
|
+
return this.add(-1 * X, se);
|
|
12277
|
+
}, re.format = function(X) {
|
|
12278
|
+
var se = this, Z = this.$locale();
|
|
12279
12279
|
if (!this.isValid()) return Z.invalidDate || D;
|
|
12280
|
-
var he = X || "YYYY-MM-DDTHH:mm:ssZ", ve =
|
|
12281
|
-
return Ve && (Ve[dt] || Ve(
|
|
12280
|
+
var he = X || "YYYY-MM-DDTHH:mm:ssZ", ve = G.z(this), Te = this.$H, Ce = this.$m, Me = this.$M, We = Z.weekdays, tt = Z.months, ct = Z.meridiem, ut = function(Ve, dt, xe, gt) {
|
|
12281
|
+
return Ve && (Ve[dt] || Ve(se, he)) || xe[dt].slice(0, gt);
|
|
12282
12282
|
}, Pt = function(Ve) {
|
|
12283
|
-
return
|
|
12283
|
+
return G.s(Te % 12 || 12, Ve, "0");
|
|
12284
12284
|
}, te = ct || function(Ve, dt, xe) {
|
|
12285
12285
|
var gt = Ve < 12 ? "AM" : "PM";
|
|
12286
12286
|
return xe ? gt.toLowerCase() : gt;
|
|
@@ -12289,62 +12289,62 @@ function jE() {
|
|
|
12289
12289
|
return dt || (function(xe) {
|
|
12290
12290
|
switch (xe) {
|
|
12291
12291
|
case "YY":
|
|
12292
|
-
return String(
|
|
12292
|
+
return String(se.$y).slice(-2);
|
|
12293
12293
|
case "YYYY":
|
|
12294
|
-
return
|
|
12294
|
+
return G.s(se.$y, 4, "0");
|
|
12295
12295
|
case "M":
|
|
12296
12296
|
return Me + 1;
|
|
12297
12297
|
case "MM":
|
|
12298
|
-
return
|
|
12298
|
+
return G.s(Me + 1, 2, "0");
|
|
12299
12299
|
case "MMM":
|
|
12300
12300
|
return ut(Z.monthsShort, Me, tt, 3);
|
|
12301
12301
|
case "MMMM":
|
|
12302
12302
|
return ut(tt, Me);
|
|
12303
12303
|
case "D":
|
|
12304
|
-
return
|
|
12304
|
+
return se.$D;
|
|
12305
12305
|
case "DD":
|
|
12306
|
-
return
|
|
12306
|
+
return G.s(se.$D, 2, "0");
|
|
12307
12307
|
case "d":
|
|
12308
|
-
return String(
|
|
12308
|
+
return String(se.$W);
|
|
12309
12309
|
case "dd":
|
|
12310
|
-
return ut(Z.weekdaysMin,
|
|
12310
|
+
return ut(Z.weekdaysMin, se.$W, We, 2);
|
|
12311
12311
|
case "ddd":
|
|
12312
|
-
return ut(Z.weekdaysShort,
|
|
12312
|
+
return ut(Z.weekdaysShort, se.$W, We, 3);
|
|
12313
12313
|
case "dddd":
|
|
12314
|
-
return We[
|
|
12314
|
+
return We[se.$W];
|
|
12315
12315
|
case "H":
|
|
12316
12316
|
return String(Te);
|
|
12317
12317
|
case "HH":
|
|
12318
|
-
return
|
|
12318
|
+
return G.s(Te, 2, "0");
|
|
12319
12319
|
case "h":
|
|
12320
12320
|
return Pt(1);
|
|
12321
12321
|
case "hh":
|
|
12322
12322
|
return Pt(2);
|
|
12323
12323
|
case "a":
|
|
12324
|
-
return te(Te,
|
|
12324
|
+
return te(Te, Ce, !0);
|
|
12325
12325
|
case "A":
|
|
12326
|
-
return te(Te,
|
|
12326
|
+
return te(Te, Ce, !1);
|
|
12327
12327
|
case "m":
|
|
12328
|
-
return String(
|
|
12328
|
+
return String(Ce);
|
|
12329
12329
|
case "mm":
|
|
12330
|
-
return
|
|
12330
|
+
return G.s(Ce, 2, "0");
|
|
12331
12331
|
case "s":
|
|
12332
|
-
return String(
|
|
12332
|
+
return String(se.$s);
|
|
12333
12333
|
case "ss":
|
|
12334
|
-
return
|
|
12334
|
+
return G.s(se.$s, 2, "0");
|
|
12335
12335
|
case "SSS":
|
|
12336
|
-
return
|
|
12336
|
+
return G.s(se.$ms, 3, "0");
|
|
12337
12337
|
case "Z":
|
|
12338
12338
|
return ve;
|
|
12339
12339
|
}
|
|
12340
12340
|
return null;
|
|
12341
12341
|
})(Ve) || ve.replace(":", "");
|
|
12342
12342
|
}));
|
|
12343
|
-
},
|
|
12343
|
+
}, re.utcOffset = function() {
|
|
12344
12344
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
12345
|
-
},
|
|
12346
|
-
var he, ve = this, Te =
|
|
12347
|
-
return
|
|
12345
|
+
}, re.diff = function(X, se, Z) {
|
|
12346
|
+
var he, ve = this, Te = G.p(se), Ce = K(X), Me = (Ce.utcOffset() - this.utcOffset()) * r, We = this - Ce, tt = function() {
|
|
12347
|
+
return G.m(ve, Ce);
|
|
12348
12348
|
};
|
|
12349
12349
|
switch (Te) {
|
|
12350
12350
|
case v:
|
|
@@ -12374,36 +12374,36 @@ function jE() {
|
|
|
12374
12374
|
default:
|
|
12375
12375
|
he = We;
|
|
12376
12376
|
}
|
|
12377
|
-
return Z ? he :
|
|
12378
|
-
},
|
|
12377
|
+
return Z ? he : G.a(he);
|
|
12378
|
+
}, re.daysInMonth = function() {
|
|
12379
12379
|
return this.endOf(g).$D;
|
|
12380
|
-
},
|
|
12380
|
+
}, re.$locale = function() {
|
|
12381
12381
|
return F[this.$L];
|
|
12382
|
-
},
|
|
12382
|
+
}, re.locale = function(X, se) {
|
|
12383
12383
|
if (!X) return this.$L;
|
|
12384
|
-
var Z = this.clone(), he =
|
|
12384
|
+
var Z = this.clone(), he = ne(X, se, !0);
|
|
12385
12385
|
return he && (Z.$L = he), Z;
|
|
12386
|
-
},
|
|
12387
|
-
return
|
|
12388
|
-
},
|
|
12386
|
+
}, re.clone = function() {
|
|
12387
|
+
return G.w(this.$d, this);
|
|
12388
|
+
}, re.toDate = function() {
|
|
12389
12389
|
return new Date(this.valueOf());
|
|
12390
|
-
},
|
|
12390
|
+
}, re.toJSON = function() {
|
|
12391
12391
|
return this.isValid() ? this.toISOString() : null;
|
|
12392
|
-
},
|
|
12392
|
+
}, re.toISOString = function() {
|
|
12393
12393
|
return this.$d.toISOString();
|
|
12394
|
-
},
|
|
12394
|
+
}, re.toString = function() {
|
|
12395
12395
|
return this.$d.toUTCString();
|
|
12396
|
-
},
|
|
12397
|
-
})(),
|
|
12398
|
-
return
|
|
12399
|
-
|
|
12400
|
-
return this.$g(
|
|
12396
|
+
}, oe;
|
|
12397
|
+
})(), Ue = Se.prototype;
|
|
12398
|
+
return K.prototype = Ue, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", f], ["$M", g], ["$y", v], ["$D", E]].forEach((function(oe) {
|
|
12399
|
+
Ue[oe[1]] = function(re) {
|
|
12400
|
+
return this.$g(re, oe[0], oe[1]);
|
|
12401
12401
|
};
|
|
12402
|
-
})),
|
|
12403
|
-
return
|
|
12404
|
-
},
|
|
12405
|
-
return
|
|
12406
|
-
},
|
|
12402
|
+
})), K.extend = function(oe, re) {
|
|
12403
|
+
return oe.$i || (oe(re, Se, K), oe.$i = !0), K;
|
|
12404
|
+
}, K.locale = ne, K.isDayjs = $, K.unix = function(oe) {
|
|
12405
|
+
return K(1e3 * oe);
|
|
12406
|
+
}, K.en = F[I], K.Ls = F, K.p = {}, K;
|
|
12407
12407
|
}));
|
|
12408
12408
|
})(bo)), bo.exports;
|
|
12409
12409
|
}
|
|
@@ -12430,23 +12430,23 @@ const Aa = /* @__PURE__ */ yl(UE), BE = xa(function({
|
|
|
12430
12430
|
headerName: "Owner",
|
|
12431
12431
|
width: 200,
|
|
12432
12432
|
disableColumnMenu: !0,
|
|
12433
|
-
renderCell: (
|
|
12433
|
+
renderCell: (K) => K.value === "Loading..." ? /* @__PURE__ */ w(Kr, { size: 18, sx: { color: "var(--text)" } }) : K.value
|
|
12434
12434
|
},
|
|
12435
12435
|
{
|
|
12436
12436
|
field: "address",
|
|
12437
12437
|
headerName: "Address",
|
|
12438
12438
|
width: 175,
|
|
12439
12439
|
disableColumnMenu: !0,
|
|
12440
|
-
renderCell: (
|
|
12440
|
+
renderCell: (K) => K.value === "Loading..." ? /* @__PURE__ */ w(Kr, { size: 18, sx: { color: "var(--text)" } }) : K.value
|
|
12441
12441
|
},
|
|
12442
12442
|
{
|
|
12443
12443
|
field: "reviewed",
|
|
12444
12444
|
headerName: "Reviewed",
|
|
12445
12445
|
width: 100,
|
|
12446
12446
|
disableColumnMenu: !0,
|
|
12447
|
-
renderCell: (
|
|
12448
|
-
const
|
|
12449
|
-
return /* @__PURE__ */ w(Le, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", mt: 1.7, children:
|
|
12447
|
+
renderCell: (K) => {
|
|
12448
|
+
const G = K.value === "Yes";
|
|
12449
|
+
return /* @__PURE__ */ w(Le, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", mt: 1.7, children: G ? /* @__PURE__ */ w(Do, { sx: { color: "#4caf50", fontSize: 24 } }) : /* @__PURE__ */ w(Eo, { sx: { color: "#f44336", fontSize: 24 } }) });
|
|
12450
12450
|
}
|
|
12451
12451
|
},
|
|
12452
12452
|
{
|
|
@@ -12454,24 +12454,24 @@ const Aa = /* @__PURE__ */ yl(UE), BE = xa(function({
|
|
|
12454
12454
|
headerName: "Evidence",
|
|
12455
12455
|
width: 150,
|
|
12456
12456
|
disableColumnMenu: !0,
|
|
12457
|
-
renderCell: (
|
|
12458
|
-
const
|
|
12459
|
-
if (!
|
|
12457
|
+
renderCell: (K) => {
|
|
12458
|
+
const G = K.row._case.evidence;
|
|
12459
|
+
if (!G || !G.Evidence)
|
|
12460
12460
|
return /* @__PURE__ */ w(Ke, { title: "No evidence", children: /* @__PURE__ */ ee(Le, { display: "flex", alignItems: "center", gap: 0.5, width: "100%", mt: 1.7, children: [
|
|
12461
12461
|
/* @__PURE__ */ w(Eo, { sx: { color: "#f44336", fontSize: 20 } }),
|
|
12462
12462
|
/* @__PURE__ */ w(be, { variant: "body2", children: "None" })
|
|
12463
12463
|
] }) });
|
|
12464
|
-
const
|
|
12465
|
-
if (
|
|
12466
|
-
const
|
|
12467
|
-
return /* @__PURE__ */ w(Ke, { title: `Uploaded on ${
|
|
12464
|
+
const Se = (G.uploaded?.Evidence || G.Evidence).replace(/[[\]"]+/g, "");
|
|
12465
|
+
if (G.uploaded && G.uploaded.Evidence) {
|
|
12466
|
+
const oe = G.uploaded.UploadDate ? new Date(G.uploaded.UploadDate).toLocaleDateString() : "unknown date";
|
|
12467
|
+
return /* @__PURE__ */ w(Ke, { title: `Uploaded on ${oe}`, children: /* @__PURE__ */ ee(Le, { display: "flex", alignItems: "center", gap: 0.5, width: "100%", mt: 1.7, children: [
|
|
12468
12468
|
/* @__PURE__ */ w(Do, { sx: { color: "#4caf50", fontSize: 20 } }),
|
|
12469
|
-
/* @__PURE__ */ w(be, { variant: "body2", children:
|
|
12469
|
+
/* @__PURE__ */ w(be, { variant: "body2", children: Se })
|
|
12470
12470
|
] }) });
|
|
12471
12471
|
}
|
|
12472
12472
|
return /* @__PURE__ */ w(Ke, { title: "Created, not yet uploaded", children: /* @__PURE__ */ ee(Le, { display: "flex", alignItems: "center", gap: 0.5, width: "100%", mt: 1.7, children: [
|
|
12473
12473
|
/* @__PURE__ */ w(Fh, { sx: { color: "#ff9800", fontSize: 20 } }),
|
|
12474
|
-
/* @__PURE__ */ w(be, { variant: "body2", children:
|
|
12474
|
+
/* @__PURE__ */ w(be, { variant: "body2", children: Se })
|
|
12475
12475
|
] }) });
|
|
12476
12476
|
}
|
|
12477
12477
|
},
|
|
@@ -12487,14 +12487,14 @@ const Aa = /* @__PURE__ */ yl(UE), BE = xa(function({
|
|
|
12487
12487
|
width: 110,
|
|
12488
12488
|
disableColumnMenu: !0,
|
|
12489
12489
|
sortable: !1,
|
|
12490
|
-
renderCell: (
|
|
12491
|
-
const
|
|
12490
|
+
renderCell: (K) => {
|
|
12491
|
+
const G = K.row._case.AdjournedDate ? new Date(K.row._case.AdjournedDate) : null;
|
|
12492
12492
|
return /* @__PURE__ */ w(Le, { display: "flex", alignItems: "center", height: "100%", width: "100%", children: /* @__PURE__ */ w(
|
|
12493
12493
|
be,
|
|
12494
12494
|
{
|
|
12495
12495
|
variant: "body2",
|
|
12496
|
-
sx: { color:
|
|
12497
|
-
children:
|
|
12496
|
+
sx: { color: G ? "warning.main" : "text.disabled", fontSize: 13 },
|
|
12497
|
+
children: G ? G.toLocaleDateString() : "—"
|
|
12498
12498
|
}
|
|
12499
12499
|
) });
|
|
12500
12500
|
}
|
|
@@ -12506,52 +12506,50 @@ const Aa = /* @__PURE__ */ yl(UE), BE = xa(function({
|
|
|
12506
12506
|
disableColumnMenu: !0,
|
|
12507
12507
|
sortable: !1,
|
|
12508
12508
|
filterable: !1,
|
|
12509
|
-
renderCell: (
|
|
12510
|
-
const
|
|
12509
|
+
renderCell: (K) => {
|
|
12510
|
+
const G = K.row.pid;
|
|
12511
12511
|
return /* @__PURE__ */ w("div", { style: { width: "100%", height: "100%", display: "flex", alignItems: "center" }, children: /* @__PURE__ */ w(Ke, { title: "Click to copy PID", placement: "top", arrow: !0, children: /* @__PURE__ */ w(
|
|
12512
12512
|
be,
|
|
12513
12513
|
{
|
|
12514
12514
|
variant: "body2",
|
|
12515
|
-
onClick: (
|
|
12516
|
-
|
|
12515
|
+
onClick: (Se) => {
|
|
12516
|
+
Se.stopPropagation(), navigator?.clipboard && navigator.clipboard.writeText(G);
|
|
12517
12517
|
},
|
|
12518
12518
|
sx: { cursor: "pointer", fontSize: 13 },
|
|
12519
|
-
children:
|
|
12519
|
+
children: G
|
|
12520
12520
|
}
|
|
12521
12521
|
) }) });
|
|
12522
12522
|
}
|
|
12523
12523
|
}
|
|
12524
|
-
], x = zt(() => e.length <= 0 ? [] : Ca(e, f, o, i).map((
|
|
12525
|
-
id:
|
|
12526
|
-
scarIndexNumber: o ?
|
|
12527
|
-
owner:
|
|
12528
|
-
reviewed:
|
|
12529
|
-
address:
|
|
12530
|
-
evidence:
|
|
12531
|
-
determination: j(
|
|
12532
|
-
pid:
|
|
12533
|
-
adjournedDate:
|
|
12534
|
-
_case:
|
|
12524
|
+
], x = zt(() => e.length <= 0 ? [] : Ca(e, f, o, i).map((G, Se) => ({
|
|
12525
|
+
id: Se,
|
|
12526
|
+
scarIndexNumber: o ? G.VillageSCARIndexNumber : G.SCARIndexNumber,
|
|
12527
|
+
owner: G.property_data?.PropertyOwnerFull || "Loading...",
|
|
12528
|
+
reviewed: G.DateCompleted ? "Yes" : "No",
|
|
12529
|
+
address: G.property_data?.Address || "Loading...",
|
|
12530
|
+
evidence: G.evidence,
|
|
12531
|
+
determination: j(G),
|
|
12532
|
+
pid: G.ParcelID || "N/A",
|
|
12533
|
+
adjournedDate: G.AdjournedDate ? new Date(G.AdjournedDate).toLocaleDateString() : "",
|
|
12534
|
+
_case: G
|
|
12535
12535
|
})), [e, f, i]);
|
|
12536
|
-
function j(
|
|
12536
|
+
function j(K) {
|
|
12537
12537
|
if (o) {
|
|
12538
12538
|
if (o)
|
|
12539
|
-
return
|
|
12540
|
-
} else return
|
|
12539
|
+
return K.VillageSCARDeterminationAction;
|
|
12540
|
+
} else return K.SCARDeterminationAction;
|
|
12541
12541
|
return "";
|
|
12542
12542
|
}
|
|
12543
|
-
const L = Uh(),
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
[x, g]
|
|
12548
|
-
);
|
|
12543
|
+
const L = Uh(), I = g.ids instanceof Set ? g.ids : /* @__PURE__ */ new Set(), F = g.type === "exclude" ? x.length - I.size : I.size, Q = zt(() => {
|
|
12544
|
+
const K = g.ids instanceof Set ? g.ids : /* @__PURE__ */ new Set();
|
|
12545
|
+
return x.filter((G) => g.type === "exclude" ? !K.has(G.id) : K.has(G.id)).map((G) => G._case);
|
|
12546
|
+
}, [x, g]);
|
|
12549
12547
|
we(() => {
|
|
12550
12548
|
y({ type: "include", ids: /* @__PURE__ */ new Set() });
|
|
12551
12549
|
}, [e]);
|
|
12552
|
-
const [
|
|
12550
|
+
const [$, ne] = me(!1);
|
|
12553
12551
|
return we(() => {
|
|
12554
|
-
|
|
12552
|
+
ne(!n && e.length > 0);
|
|
12555
12553
|
}, [n, e.length]), /* @__PURE__ */ ee(Le, { justifyContent: "center", width: "100%", mt: 0, children: [
|
|
12556
12554
|
e.length === 0 && !n && /* @__PURE__ */ w(be, { children: "No cases associated with this date." }),
|
|
12557
12555
|
n && /* @__PURE__ */ ee(Le, { display: "flex", justifyContent: "center", alignItems: "center", children: [
|
|
@@ -12563,8 +12561,8 @@ const Aa = /* @__PURE__ */ yl(UE), BE = xa(function({
|
|
|
12563
12561
|
{
|
|
12564
12562
|
className: "case-table-anim",
|
|
12565
12563
|
style: {
|
|
12566
|
-
maxHeight:
|
|
12567
|
-
overflow:
|
|
12564
|
+
maxHeight: $ ? 5e3 : 0,
|
|
12565
|
+
overflow: $ ? "visible" : "hidden",
|
|
12568
12566
|
transition: "max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"
|
|
12569
12567
|
},
|
|
12570
12568
|
children: !n && e.length > 0 && /* @__PURE__ */ ee(Or, { children: [
|
|
@@ -12596,7 +12594,7 @@ const Aa = /* @__PURE__ */ yl(UE), BE = xa(function({
|
|
|
12596
12594
|
disableRowSelectionOnClick: !0,
|
|
12597
12595
|
rowSelectionModel: g,
|
|
12598
12596
|
onRowSelectionModelChange: y,
|
|
12599
|
-
onRowClick: (
|
|
12597
|
+
onRowClick: (K) => r(K.row._case),
|
|
12600
12598
|
sx: {
|
|
12601
12599
|
"& .MuiDataGrid-row": {
|
|
12602
12600
|
cursor: "pointer",
|
|
@@ -12624,13 +12622,13 @@ const Aa = /* @__PURE__ */ yl(UE), BE = xa(function({
|
|
|
12624
12622
|
backgroundColor: "transparent !important"
|
|
12625
12623
|
},
|
|
12626
12624
|
className: "fab-bar",
|
|
12627
|
-
children: /* @__PURE__ */ w(qh, { in: c &&
|
|
12625
|
+
children: /* @__PURE__ */ w(qh, { in: c && F > 0, unmountOnExit: !0, children: /* @__PURE__ */ w(Ke, { title: `Adjourn ${F} selected case${F !== 1 ? "s" : ""}`, children: /* @__PURE__ */ w(
|
|
12628
12626
|
na,
|
|
12629
12627
|
{
|
|
12630
12628
|
size: "medium",
|
|
12631
|
-
onClick: (
|
|
12629
|
+
onClick: (K) => E(K.currentTarget),
|
|
12632
12630
|
sx: { pointerEvents: "auto" },
|
|
12633
|
-
children: /* @__PURE__ */ w(Vh, { badgeContent:
|
|
12631
|
+
children: /* @__PURE__ */ w(Vh, { badgeContent: F, color: "primary", children: /* @__PURE__ */ w(zh, {}) })
|
|
12634
12632
|
}
|
|
12635
12633
|
) }) })
|
|
12636
12634
|
}
|
|
@@ -12649,9 +12647,9 @@ const Aa = /* @__PURE__ */ yl(UE), BE = xa(function({
|
|
|
12649
12647
|
children: /* @__PURE__ */ ee(Be, { spacing: 1.5, p: 2, minWidth: 220, children: [
|
|
12650
12648
|
/* @__PURE__ */ ee(be, { variant: "body2", sx: { color: "var(--text)", opacity: 0.7 }, children: [
|
|
12651
12649
|
"Adjourn ",
|
|
12652
|
-
|
|
12650
|
+
F,
|
|
12653
12651
|
" case",
|
|
12654
|
-
|
|
12652
|
+
F !== 1 ? "s" : "",
|
|
12655
12653
|
" to:"
|
|
12656
12654
|
] }),
|
|
12657
12655
|
/* @__PURE__ */ w(
|
|
@@ -12672,12 +12670,12 @@ const Aa = /* @__PURE__ */ yl(UE), BE = xa(function({
|
|
|
12672
12670
|
variant: "contained",
|
|
12673
12671
|
size: "small",
|
|
12674
12672
|
onClick: () => {
|
|
12675
|
-
const
|
|
12673
|
+
const K = D ? D.toDate().toLocaleDateString() : "no specific date";
|
|
12676
12674
|
window.confirm(
|
|
12677
|
-
`Adjourn ${
|
|
12675
|
+
`Adjourn ${F} case${F !== 1 ? "s" : ""} to ${K}?
|
|
12678
12676
|
|
|
12679
12677
|
Note: The determination for each selected case will be changed to OA.`
|
|
12680
|
-
) && (u?.(
|
|
12678
|
+
) && (u?.(Q, D?.toDate() ?? null), E(null), _(null));
|
|
12681
12679
|
},
|
|
12682
12680
|
children: "Apply"
|
|
12683
12681
|
}
|
|
@@ -13308,8 +13306,8 @@ function JE({
|
|
|
13308
13306
|
}, [o, i]), v = Tn(
|
|
13309
13307
|
(x, j) => {
|
|
13310
13308
|
h((L) => {
|
|
13311
|
-
const
|
|
13312
|
-
return
|
|
13309
|
+
const I = [...L];
|
|
13310
|
+
return I[x] = j, I;
|
|
13313
13311
|
});
|
|
13314
13312
|
},
|
|
13315
13313
|
[]
|
|
@@ -13336,8 +13334,8 @@ function JE({
|
|
|
13336
13334
|
const L = j.clipboardData.getData("text").split(/\r?\n/).map((Q) => Q.trim()).filter(Boolean);
|
|
13337
13335
|
if (L.length <= 1) return;
|
|
13338
13336
|
j.preventDefault();
|
|
13339
|
-
const
|
|
13340
|
-
h(
|
|
13337
|
+
const I = [...f.slice(0, x), ...L, ...f.slice(x + 1)], F = i ? [...i.slice(0, x), ...L.map(() => !1), ...i.slice(x + 1)] : void 0;
|
|
13338
|
+
h(I), u(I.length), e(I, F ?? []), o && F && o(F), setTimeout(() => {
|
|
13341
13339
|
g.current && (g.current.scrollTop = g.current.scrollHeight);
|
|
13342
13340
|
}, 0);
|
|
13343
13341
|
},
|
|
@@ -13374,7 +13372,7 @@ function JE({
|
|
|
13374
13372
|
},
|
|
13375
13373
|
ref: g,
|
|
13376
13374
|
children: /* @__PURE__ */ w(Be, { spacing: 2, children: Array.from({ length: c }).map((x, j) => {
|
|
13377
|
-
const L = i && i[j],
|
|
13375
|
+
const L = i && i[j], I = L ? s : r;
|
|
13378
13376
|
return /* @__PURE__ */ ee(Be, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
13379
13377
|
/* @__PURE__ */ w(
|
|
13380
13378
|
na,
|
|
@@ -13406,7 +13404,7 @@ function JE({
|
|
|
13406
13404
|
) : /* @__PURE__ */ w(
|
|
13407
13405
|
Gn,
|
|
13408
13406
|
{
|
|
13409
|
-
label: `${
|
|
13407
|
+
label: `${I} ${j + 1}`,
|
|
13410
13408
|
value: f[j] || "",
|
|
13411
13409
|
onChange: (F) => v(j, F.target.value),
|
|
13412
13410
|
onBlur: E,
|
|
@@ -13462,7 +13460,7 @@ const tD = xa(function({
|
|
|
13462
13460
|
const { allUsers: c, isAdmin: u } = Ot(), { filterCtx: f } = Ni(), h = f.dateTypeFilter === "negotiations" ? St.NEGOTIATIONS : St.SCAR, [g, y] = me(r.map(() => !1)), [v, E] = me(0), D = v >= 5, _ = c[s]?.UserFirstName || "Unknown";
|
|
13463
13461
|
we(() => {
|
|
13464
13462
|
if (g.length !== r.length) {
|
|
13465
|
-
const L = r.map((
|
|
13463
|
+
const L = r.map((I, F) => g[F] || !1);
|
|
13466
13464
|
y(L);
|
|
13467
13465
|
}
|
|
13468
13466
|
}, [r.length]);
|
|
@@ -13475,15 +13473,15 @@ const tD = xa(function({
|
|
|
13475
13473
|
});
|
|
13476
13474
|
}
|
|
13477
13475
|
const x = zt(
|
|
13478
|
-
() => r.map((L,
|
|
13476
|
+
() => r.map((L, I) => g[I] ? L.ParcelID : L.SCARIndexNumber),
|
|
13479
13477
|
[r, g]
|
|
13480
13478
|
), j = Tn(
|
|
13481
|
-
(L,
|
|
13479
|
+
(L, I) => {
|
|
13482
13480
|
const F = L.map((Q, $) => {
|
|
13483
|
-
const
|
|
13481
|
+
const ne = I ? I[$] : g[$];
|
|
13484
13482
|
return {
|
|
13485
13483
|
...r[$],
|
|
13486
|
-
...
|
|
13484
|
+
...ne ? { ParcelID: Q } : { SCARIndexNumber: Q }
|
|
13487
13485
|
};
|
|
13488
13486
|
});
|
|
13489
13487
|
i(F);
|
|
@@ -13603,15 +13601,15 @@ const tD = xa(function({
|
|
|
13603
13601
|
children: "+ Add Date"
|
|
13604
13602
|
}
|
|
13605
13603
|
),
|
|
13606
|
-
/* @__PURE__ */ w(Be, { direction: "row", flexWrap: "wrap", gap: 1, children: (e.MultipleDates || []).map((L,
|
|
13604
|
+
/* @__PURE__ */ w(Be, { direction: "row", flexWrap: "wrap", gap: 1, children: (e.MultipleDates || []).map((L, I) => /* @__PURE__ */ ee(Be, { direction: "row", alignItems: "center", spacing: 0.5, children: [
|
|
13607
13605
|
/* @__PURE__ */ w(
|
|
13608
13606
|
Iu,
|
|
13609
13607
|
{
|
|
13610
|
-
label: `Day ${
|
|
13608
|
+
label: `Day ${I + 2}`,
|
|
13611
13609
|
value: Aa(L),
|
|
13612
13610
|
onChange: (F) => {
|
|
13613
13611
|
const Q = [...e.MultipleDates || []];
|
|
13614
|
-
Q[
|
|
13612
|
+
Q[I] = F.toDate(), R({ ...e, MultipleDates: Q });
|
|
13615
13613
|
},
|
|
13616
13614
|
reduceAnimations: !0,
|
|
13617
13615
|
sx: { width: 180 },
|
|
@@ -13623,7 +13621,7 @@ const tD = xa(function({
|
|
|
13623
13621
|
{
|
|
13624
13622
|
size: "small",
|
|
13625
13623
|
onClick: () => {
|
|
13626
|
-
const F = (e.MultipleDates || []).filter((Q, $) => $ !==
|
|
13624
|
+
const F = (e.MultipleDates || []).filter((Q, $) => $ !== I);
|
|
13627
13625
|
R({
|
|
13628
13626
|
...e,
|
|
13629
13627
|
MultipleDates: F.length ? F : null
|
|
@@ -13632,7 +13630,7 @@ const tD = xa(function({
|
|
|
13632
13630
|
children: /* @__PURE__ */ w(ku, { fontSize: "small" })
|
|
13633
13631
|
}
|
|
13634
13632
|
)
|
|
13635
|
-
] },
|
|
13633
|
+
] }, I)) })
|
|
13636
13634
|
] })
|
|
13637
13635
|
}
|
|
13638
13636
|
)
|
|
@@ -13834,7 +13832,7 @@ const rD = xa(function({
|
|
|
13834
13832
|
} catch (F) {
|
|
13835
13833
|
console.error("Failed to copy:", F);
|
|
13836
13834
|
}
|
|
13837
|
-
},
|
|
13835
|
+
}, I = () => e.DateCompleted !== null;
|
|
13838
13836
|
return /* @__PURE__ */ ee(Be, { spacing: 4, mt: 1, children: [
|
|
13839
13837
|
/* @__PURE__ */ ee(
|
|
13840
13838
|
Le,
|
|
@@ -13917,12 +13915,12 @@ const rD = xa(function({
|
|
|
13917
13915
|
/* @__PURE__ */ w(
|
|
13918
13916
|
fo,
|
|
13919
13917
|
{
|
|
13920
|
-
label: `${
|
|
13918
|
+
label: `${I() ? "Reviewed" : "Unreviewed"}`,
|
|
13921
13919
|
size: "medium",
|
|
13922
13920
|
variant: "outlined",
|
|
13923
13921
|
sx: {
|
|
13924
13922
|
"&.MuiChip-outlined": {
|
|
13925
|
-
borderColor:
|
|
13923
|
+
borderColor: I() ? "green !important" : "red !important"
|
|
13926
13924
|
}
|
|
13927
13925
|
}
|
|
13928
13926
|
}
|
|
@@ -14224,15 +14222,15 @@ function cD({
|
|
|
14224
14222
|
}
|
|
14225
14223
|
function v(x, j) {
|
|
14226
14224
|
if (!e) return;
|
|
14227
|
-
const L = x === "first" ? { FirstChair: j } : { SecondChair: j },
|
|
14228
|
-
f(
|
|
14225
|
+
const L = x === "first" ? { FirstChair: j } : { SecondChair: j }, I = { ...e, ...L };
|
|
14226
|
+
f(I), wo(e.CourtDateID, L, c, void 0, u, e.DateType ?? void 0).then((F) => {
|
|
14229
14227
|
F || (f(e), console.error("Failed to update chair assignment, reverted"));
|
|
14230
14228
|
});
|
|
14231
14229
|
}
|
|
14232
14230
|
async function E(x, j) {
|
|
14233
14231
|
if (!e) return;
|
|
14234
|
-
const L = Wt(e),
|
|
14235
|
-
($) =>
|
|
14232
|
+
const L = Wt(e), I = new Set(x.map(($) => $.SCARIndexNumber)), F = n.map(
|
|
14233
|
+
($) => I.has($.SCARIndexNumber) ? { ...$, AdjournedDate: j } : $
|
|
14236
14234
|
);
|
|
14237
14235
|
h({ [L]: F }), await sD(
|
|
14238
14236
|
x.map(($) => ({ indexNumber: $.SCARIndexNumber, year: $.Year })),
|
|
@@ -14304,7 +14302,7 @@ function uD({
|
|
|
14304
14302
|
setModalMode: n,
|
|
14305
14303
|
selectedCourtDate: i,
|
|
14306
14304
|
selectedCases: s
|
|
14307
|
-
}), R = i ? `${u(i.MuniCode)}_${new Date(i.CourtDate).toLocaleDateString("en-CA")}` : "cases", { handleSave: x, handleDelete: j, handleViewUpdateChair: L, handleSelectedCasesAdjournmentChange:
|
|
14305
|
+
}), R = i ? `${u(i.MuniCode)}_${new Date(i.CourtDate).toLocaleDateString("en-CA")}` : "cases", { handleSave: x, handleDelete: j, handleViewUpdateChair: L, handleSelectedCasesAdjournmentChange: I } = cD({
|
|
14308
14306
|
modalMode: e,
|
|
14309
14307
|
selectedCourtDate: i,
|
|
14310
14308
|
selectedCases: s,
|
|
@@ -14367,7 +14365,7 @@ function uD({
|
|
|
14367
14365
|
csvFileName: R,
|
|
14368
14366
|
isAdmin: f,
|
|
14369
14367
|
selectedCourtDate: i,
|
|
14370
|
-
onSelectedCasesAdjournmentChange: f ?
|
|
14368
|
+
onSelectedCasesAdjournmentChange: f ? I : void 0
|
|
14371
14369
|
}
|
|
14372
14370
|
)
|
|
14373
14371
|
] }),
|
|
@@ -14447,17 +14445,17 @@ function dD({
|
|
|
14447
14445
|
// isCaseSettled true
|
|
14448
14446
|
};
|
|
14449
14447
|
function y(x) {
|
|
14450
|
-
const j = ur(x.MuniCode), L = (
|
|
14448
|
+
const j = ur(x.MuniCode), L = (I) => (I || "").toLowerCase() === "oa";
|
|
14451
14449
|
return (i[Wt(x)] || []).some(
|
|
14452
|
-
(
|
|
14450
|
+
(I) => L(j ? I.VillageSCARDeterminationAction : I.SCARDeterminationAction)
|
|
14453
14451
|
);
|
|
14454
14452
|
}
|
|
14455
14453
|
function v(x) {
|
|
14456
14454
|
const j = i[Wt(x)] || [];
|
|
14457
|
-
let L = !0,
|
|
14455
|
+
let L = !0, I = !0;
|
|
14458
14456
|
for (const F of j)
|
|
14459
|
-
L && !ji(F, ur(x.MuniCode)) && (L = !1),
|
|
14460
|
-
return
|
|
14457
|
+
L && !ji(F, ur(x.MuniCode)) && (L = !1), I && F.DateCompleted === null && (I = !1);
|
|
14458
|
+
return I ? j.length > 0 && L ? "Settled/Decision" : x.Lifecycle === $t.UPLOADED ? "NYSCEF Uploaded" : y(x) ? "Adjourned (No Date)" : x.Lifecycle === $t.ADJOURNED ? "Adjourned" : x.Lifecycle === $t.SCHEDULED || x.Lifecycle === $t.ASSIGNED ? "Scheduled" : "Blank" : "Reviewing";
|
|
14461
14459
|
}
|
|
14462
14460
|
function E(x) {
|
|
14463
14461
|
return x.Type === lt.IN_PERSON ? "In Person" : x.Type === lt.UNKNOWN ? "Unknown" : "Virtual";
|
|
@@ -14574,7 +14572,7 @@ function dD({
|
|
|
14574
14572
|
{
|
|
14575
14573
|
user1ID: j.user1ID,
|
|
14576
14574
|
user2ID: j.user2ID,
|
|
14577
|
-
onUpdateChair: r ? (L,
|
|
14575
|
+
onUpdateChair: r ? (L, I) => r(j.courtDateId, L, I) : void 0
|
|
14578
14576
|
}
|
|
14579
14577
|
);
|
|
14580
14578
|
}
|
|
@@ -14622,34 +14620,34 @@ function dD({
|
|
|
14622
14620
|
assigned: { user1ID: x.FirstChair, user2ID: x.SecondChair, courtDateId: x.CourtDateID },
|
|
14623
14621
|
uploadDeadline: x.UploadDeadline,
|
|
14624
14622
|
location: E(x)
|
|
14625
|
-
},
|
|
14623
|
+
}, I = [];
|
|
14626
14624
|
if (u.showAdjournmentDates) {
|
|
14627
14625
|
const Q = /* @__PURE__ */ new Map();
|
|
14628
14626
|
for (const $ of i[Wt(x)] || []) {
|
|
14629
14627
|
if (!$.AdjournedDate) continue;
|
|
14630
|
-
const
|
|
14631
|
-
Q.set(
|
|
14628
|
+
const ne = new Date($.AdjournedDate), K = `${ne.getFullYear()}-${String(ne.getMonth() + 1).padStart(2, "0")}-${String(ne.getDate()).padStart(2, "0")}`;
|
|
14629
|
+
Q.set(K, [...Q.get(K) || [], $]);
|
|
14632
14630
|
}
|
|
14633
|
-
for (const [$,
|
|
14634
|
-
const [
|
|
14635
|
-
|
|
14631
|
+
for (const [$, ne] of Q) {
|
|
14632
|
+
const [K, G, Se] = $.split("-").map(Number);
|
|
14633
|
+
I.push({
|
|
14636
14634
|
...L,
|
|
14637
14635
|
id: `${x.CourtDateID}-adj-${$}`,
|
|
14638
14636
|
township: `${s(x.MuniCode)} (${x.MuniCode}) - Adjournment`,
|
|
14639
|
-
numCases:
|
|
14640
|
-
courtDate: new Date(
|
|
14637
|
+
numCases: ne.length,
|
|
14638
|
+
courtDate: new Date(K, G - 1, Se),
|
|
14641
14639
|
status: "Adjourned"
|
|
14642
14640
|
});
|
|
14643
14641
|
}
|
|
14644
14642
|
}
|
|
14645
|
-
if (!j) return [L, ...
|
|
14643
|
+
if (!j) return [L, ...I];
|
|
14646
14644
|
const F = x.MultipleDates.filter(Boolean).map((Q, $) => ({
|
|
14647
14645
|
...L,
|
|
14648
14646
|
id: `${x.CourtDateID}-extra-${$}`,
|
|
14649
14647
|
township: `${s(x.MuniCode)} (day ${$ + 2})`,
|
|
14650
14648
|
courtDate: Q
|
|
14651
14649
|
}));
|
|
14652
|
-
return [L, ...
|
|
14650
|
+
return [L, ...I, ...F];
|
|
14653
14651
|
});
|
|
14654
14652
|
return /* @__PURE__ */ w("div", { style: { height: o ? "auto" : 600, width: "100%" }, children: /* @__PURE__ */ w(
|
|
14655
14653
|
ka,
|
|
@@ -14665,7 +14663,7 @@ function dD({
|
|
|
14665
14663
|
}
|
|
14666
14664
|
},
|
|
14667
14665
|
onRowClick: (x) => {
|
|
14668
|
-
const j = parseInt(x.id.toString().split("-")[0], 10), L = t.find((
|
|
14666
|
+
const j = parseInt(x.id.toString().split("-")[0], 10), L = t.find((I) => I.CourtDateID === j);
|
|
14669
14667
|
L && e(L);
|
|
14670
14668
|
},
|
|
14671
14669
|
getRowClassName: () => "ccalendar-list-row"
|
|
@@ -14729,7 +14727,7 @@ function hD() {
|
|
|
14729
14727
|
function L(a) {
|
|
14730
14728
|
if (!a) throw new Error("Assertion Failed");
|
|
14731
14729
|
}
|
|
14732
|
-
function
|
|
14730
|
+
function I(a) {
|
|
14733
14731
|
o.setImmediate ? setImmediate(a) : setTimeout(a, 0);
|
|
14734
14732
|
}
|
|
14735
14733
|
function F(a, l) {
|
|
@@ -14762,40 +14760,40 @@ function hD() {
|
|
|
14762
14760
|
for (l in a) g(a, l) && (d[l] = a[l]);
|
|
14763
14761
|
return d;
|
|
14764
14762
|
}
|
|
14765
|
-
var
|
|
14766
|
-
function
|
|
14767
|
-
return
|
|
14763
|
+
var ne = [].concat;
|
|
14764
|
+
function K(a) {
|
|
14765
|
+
return ne.apply([], a);
|
|
14768
14766
|
}
|
|
14769
|
-
var Lt = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(
|
|
14767
|
+
var Lt = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(K([8, 16, 32, 64].map(function(a) {
|
|
14770
14768
|
return ["Int", "Uint", "Float"].map(function(l) {
|
|
14771
14769
|
return l + a + "Array";
|
|
14772
14770
|
});
|
|
14773
14771
|
}))).filter(function(a) {
|
|
14774
14772
|
return o[a];
|
|
14775
|
-
}),
|
|
14773
|
+
}), G = new Set(Lt.map(function(a) {
|
|
14776
14774
|
return o[a];
|
|
14777
|
-
})),
|
|
14778
|
-
function
|
|
14779
|
-
return
|
|
14775
|
+
})), Se = null;
|
|
14776
|
+
function Ue(a) {
|
|
14777
|
+
return Se = /* @__PURE__ */ new WeakMap(), a = (function l(d) {
|
|
14780
14778
|
if (!d || typeof d != "object") return d;
|
|
14781
|
-
var p =
|
|
14779
|
+
var p = Se.get(d);
|
|
14782
14780
|
if (p) return p;
|
|
14783
14781
|
if (c(d)) {
|
|
14784
|
-
p = [],
|
|
14782
|
+
p = [], Se.set(d, p);
|
|
14785
14783
|
for (var m = 0, b = d.length; m < b; ++m) p.push(l(d[m]));
|
|
14786
|
-
} else if (
|
|
14784
|
+
} else if (G.has(d.constructor)) p = d;
|
|
14787
14785
|
else {
|
|
14788
14786
|
var S, A = f(d);
|
|
14789
|
-
for (S in p = A === Object.prototype ? {} : Object.create(A),
|
|
14787
|
+
for (S in p = A === Object.prototype ? {} : Object.create(A), Se.set(d, p), d) g(d, S) && (p[S] = l(d[S]));
|
|
14790
14788
|
}
|
|
14791
14789
|
return p;
|
|
14792
|
-
})(a),
|
|
14790
|
+
})(a), Se = null, a;
|
|
14793
14791
|
}
|
|
14794
|
-
var
|
|
14795
|
-
function
|
|
14796
|
-
return
|
|
14792
|
+
var oe = {}.toString;
|
|
14793
|
+
function re(a) {
|
|
14794
|
+
return oe.call(a).slice(8, -1);
|
|
14797
14795
|
}
|
|
14798
|
-
var X = typeof Symbol < "u" ? Symbol.iterator : "@@iterator",
|
|
14796
|
+
var X = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", se = typeof X == "symbol" ? function(a) {
|
|
14799
14797
|
var l;
|
|
14800
14798
|
return a != null && (l = a[X]) && l.apply(a);
|
|
14801
14799
|
} : function() {
|
|
@@ -14810,7 +14808,7 @@ function hD() {
|
|
|
14810
14808
|
if (arguments.length === 1) {
|
|
14811
14809
|
if (c(a)) return a.slice();
|
|
14812
14810
|
if (this === he && typeof a == "string") return [a];
|
|
14813
|
-
if (m =
|
|
14811
|
+
if (m = se(a)) {
|
|
14814
14812
|
for (d = []; !(p = m.next()).done; ) d.push(p.value);
|
|
14815
14813
|
return d;
|
|
14816
14814
|
}
|
|
@@ -14826,7 +14824,7 @@ function hD() {
|
|
|
14826
14824
|
return a[Symbol.toStringTag] === "AsyncFunction";
|
|
14827
14825
|
} : function() {
|
|
14828
14826
|
return !1;
|
|
14829
|
-
}, yn = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], tn = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(yn),
|
|
14827
|
+
}, yn = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], tn = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(yn), Ce = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
|
|
14830
14828
|
function Me(a, l) {
|
|
14831
14829
|
this.name = a, this.message = l;
|
|
14832
14830
|
}
|
|
@@ -14855,7 +14853,7 @@ function hD() {
|
|
|
14855
14853
|
var d = l + "Error";
|
|
14856
14854
|
function p(m, b) {
|
|
14857
14855
|
this.name = d, m ? typeof m == "string" ? (this.message = "".concat(m).concat(b ? `
|
|
14858
|
-
` + b : ""), this.inner = b || null) : typeof m == "object" && (this.message = "".concat(m.name, " ").concat(m.message), this.inner = m) : (this.message =
|
|
14856
|
+
` + b : ""), this.inner = b || null) : typeof m == "object" && (this.message = "".concat(m.name, " ").concat(m.message), this.inner = m) : (this.message = Ce[l] || d, this.inner = null);
|
|
14859
14857
|
}
|
|
14860
14858
|
return D(p).from(Pt), a[l] = p, a;
|
|
14861
14859
|
}, {});
|
|
@@ -14948,9 +14946,9 @@ function hD() {
|
|
|
14948
14946
|
m(function(b) {
|
|
14949
14947
|
if (p._state === null) {
|
|
14950
14948
|
if (b === p) throw new TypeError("A promise cannot be resolved with itself.");
|
|
14951
|
-
var S = p._lib &&
|
|
14952
|
-
b && typeof b.then == "function" ? d(p, function(A,
|
|
14953
|
-
b instanceof ue ? b._then(A,
|
|
14949
|
+
var S = p._lib && Ee();
|
|
14950
|
+
b && typeof b.then == "function" ? d(p, function(A, k) {
|
|
14951
|
+
b instanceof ue ? b._then(A, k) : b.then(A, k);
|
|
14954
14952
|
}) : (p._state = !0, p._value = b, Zn(p)), S && Ie();
|
|
14955
14953
|
}
|
|
14956
14954
|
}, Sn.bind(null, p));
|
|
@@ -14962,10 +14960,10 @@ function hD() {
|
|
|
14962
14960
|
var wn = { get: function() {
|
|
14963
14961
|
var a = pe, l = kt;
|
|
14964
14962
|
function d(p, m) {
|
|
14965
|
-
var b = this, S = !a.global && (a !== pe || l !== kt), A = S && !$e(),
|
|
14963
|
+
var b = this, S = !a.global && (a !== pe || l !== kt), A = S && !$e(), k = new ue(function(M, H) {
|
|
14966
14964
|
Xn(b, new Fn(ci(p, a, S, A), ci(m, a, S, A), M, H, a));
|
|
14967
14965
|
});
|
|
14968
|
-
return this._consoleTask && (
|
|
14966
|
+
return this._consoleTask && (k._consoleTask = this._consoleTask), k;
|
|
14969
14967
|
}
|
|
14970
14968
|
return d.prototype = vn, d;
|
|
14971
14969
|
}, set: function(a) {
|
|
@@ -14978,7 +14976,7 @@ function hD() {
|
|
|
14978
14976
|
}
|
|
14979
14977
|
function Sn(a, l) {
|
|
14980
14978
|
var d, p;
|
|
14981
|
-
bn.push(l), a._state === null && (d = a._lib &&
|
|
14979
|
+
bn.push(l), a._state === null && (d = a._lib && Ee(), l = an(l), a._state = !1, a._value = l, p = a, Zt.some(function(m) {
|
|
14982
14980
|
return m._value === p._value;
|
|
14983
14981
|
}) || Zt.push(p), Zn(a), d && Ie());
|
|
14984
14982
|
}
|
|
@@ -15014,10 +15012,10 @@ function hD() {
|
|
|
15014
15012
|
}
|
|
15015
15013
|
function yt() {
|
|
15016
15014
|
Dn(Xe, function() {
|
|
15017
|
-
|
|
15015
|
+
Ee() && Ie();
|
|
15018
15016
|
});
|
|
15019
15017
|
}
|
|
15020
|
-
function
|
|
15018
|
+
function Ee() {
|
|
15021
15019
|
var a = on;
|
|
15022
15020
|
return sn = on = !1, a;
|
|
15023
15021
|
}
|
|
@@ -15044,7 +15042,7 @@ function hD() {
|
|
|
15044
15042
|
function J(a, l) {
|
|
15045
15043
|
var d = pe;
|
|
15046
15044
|
return function() {
|
|
15047
|
-
var p =
|
|
15045
|
+
var p = Ee(), m = pe;
|
|
15048
15046
|
try {
|
|
15049
15047
|
return En(d, !0), a.apply(this, arguments);
|
|
15050
15048
|
} catch (b) {
|
|
@@ -15123,9 +15121,9 @@ function hD() {
|
|
|
15123
15121
|
return nt(function(m, b) {
|
|
15124
15122
|
var S = pe;
|
|
15125
15123
|
S.unhandleds = [], S.onunhandled = b, S.finalize = Tt(function() {
|
|
15126
|
-
var A,
|
|
15124
|
+
var A, k = this;
|
|
15127
15125
|
A = function() {
|
|
15128
|
-
|
|
15126
|
+
k.unhandleds.length === 0 ? m() : b(k.unhandleds[0]);
|
|
15129
15127
|
}, cn.push(function M() {
|
|
15130
15128
|
A(), cn.splice(cn.indexOf(M), 1);
|
|
15131
15129
|
}), ++jt, rn(function() {
|
|
@@ -15163,7 +15161,7 @@ function hD() {
|
|
|
15163
15161
|
});
|
|
15164
15162
|
});
|
|
15165
15163
|
}), Ht.withResolvers && (ue.withResolvers = Ht.withResolvers));
|
|
15166
|
-
var ge = { awaits: 0, echoes: 0, id: 0 },
|
|
15164
|
+
var ge = { awaits: 0, echoes: 0, id: 0 }, De = 0, ze = [], ot = 0, kt = 0, Jt = 0;
|
|
15167
15165
|
function nt(a, l, d, p) {
|
|
15168
15166
|
var m = pe, b = Object.create(m);
|
|
15169
15167
|
return b.parent = m, b.ref = 0, b.global = !1, b.id = ++Jt, Xe.env, b.env = Qt ? { Promise: ue, PromiseProp: { value: ue, configurable: !0, writable: !0 }, all: ue.all, race: ue.race, allSettled: ue.allSettled, any: ue.any, resolve: ue.resolve, reject: ue.reject } : {}, l && u(b, l), ++m.ref, b.finalize = function() {
|
|
@@ -15171,7 +15169,7 @@ function hD() {
|
|
|
15171
15169
|
}, p = Dn(b, a, d, p), b.ref === 0 && b.finalize(), p;
|
|
15172
15170
|
}
|
|
15173
15171
|
function ht() {
|
|
15174
|
-
return ge.id || (ge.id = ++
|
|
15172
|
+
return ge.id || (ge.id = ++De), ++ge.awaits, ge.echoes += Bn, ge.id;
|
|
15175
15173
|
}
|
|
15176
15174
|
function $e() {
|
|
15177
15175
|
return !!ge.awaits && (--ge.awaits == 0 && (ge.id = 0), ge.echoes = ge.awaits * Bn, !0);
|
|
@@ -15231,13 +15229,13 @@ function hD() {
|
|
|
15231
15229
|
return typeof a != "string" || /\./.test(a) ? function(l) {
|
|
15232
15230
|
return l;
|
|
15233
15231
|
} : function(l) {
|
|
15234
|
-
return l[a] === void 0 && a in l && delete (l =
|
|
15232
|
+
return l[a] === void 0 && a in l && delete (l = Ue(l))[a], l;
|
|
15235
15233
|
};
|
|
15236
15234
|
}
|
|
15237
15235
|
function wl() {
|
|
15238
15236
|
throw te.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.");
|
|
15239
15237
|
}
|
|
15240
|
-
function
|
|
15238
|
+
function He(a, l) {
|
|
15241
15239
|
try {
|
|
15242
15240
|
var d = Sl(a), p = Sl(l);
|
|
15243
15241
|
if (d !== p) return d === "Array" ? 1 : p === "Array" ? -1 : d === "binary" ? 1 : p === "binary" ? -1 : d === "string" ? 1 : p === "string" ? -1 : d === "Date" ? 1 : p !== "Date" ? NaN : -1;
|
|
@@ -15248,13 +15246,13 @@ function hD() {
|
|
|
15248
15246
|
return l < a ? 1 : a < l ? -1 : 0;
|
|
15249
15247
|
case "binary":
|
|
15250
15248
|
return (function(m, b) {
|
|
15251
|
-
for (var S = m.length, A = b.length,
|
|
15249
|
+
for (var S = m.length, A = b.length, k = S < A ? S : A, M = 0; M < k; ++M) if (m[M] !== b[M]) return m[M] < b[M] ? -1 : 1;
|
|
15252
15250
|
return S === A ? 0 : S < A ? -1 : 1;
|
|
15253
15251
|
})(El(a), El(l));
|
|
15254
15252
|
case "Array":
|
|
15255
15253
|
return (function(m, b) {
|
|
15256
|
-
for (var S = m.length, A = b.length,
|
|
15257
|
-
var H =
|
|
15254
|
+
for (var S = m.length, A = b.length, k = S < A ? S : A, M = 0; M < k; ++M) {
|
|
15255
|
+
var H = He(m[M], b[M]);
|
|
15258
15256
|
if (H !== 0) return H;
|
|
15259
15257
|
}
|
|
15260
15258
|
return S === A ? 0 : S < A ? -1 : 1;
|
|
@@ -15266,7 +15264,7 @@ function hD() {
|
|
|
15266
15264
|
}
|
|
15267
15265
|
function Sl(a) {
|
|
15268
15266
|
var l = typeof a;
|
|
15269
|
-
return l != "object" ? l : ArrayBuffer.isView(a) ? "binary" : (a =
|
|
15267
|
+
return l != "object" ? l : ArrayBuffer.isView(a) ? "binary" : (a = re(a), a === "ArrayBuffer" ? "binary" : a);
|
|
15270
15268
|
}
|
|
15271
15269
|
function El(a) {
|
|
15272
15270
|
return a instanceof Uint8Array ? a : ArrayBuffer.isView(a) ? new Uint8Array(a.buffer, a.byteOffset, a.byteLength) : new Uint8Array(a);
|
|
@@ -15314,8 +15312,8 @@ function hD() {
|
|
|
15314
15312
|
}
|
|
15315
15313
|
function Cl(a, l) {
|
|
15316
15314
|
for (var d = s(l), p = d.length, m = !1, b = 0; b < p; ++b) {
|
|
15317
|
-
var S = d[b], A = l[S],
|
|
15318
|
-
A instanceof ui ? (Q(a, S, A.execute(
|
|
15315
|
+
var S = d[b], A = l[S], k = F(a, S);
|
|
15316
|
+
A instanceof ui ? (Q(a, S, A.execute(k)), m = !0) : k !== A && (Q(a, S, A), m = !0);
|
|
15319
15317
|
}
|
|
15320
15318
|
return m;
|
|
15321
15319
|
}
|
|
@@ -15325,9 +15323,9 @@ function hD() {
|
|
|
15325
15323
|
if (!T.schema[m]) throw new te.NotFound("Table " + m + " not part of transaction");
|
|
15326
15324
|
return l(T.idbtrans, T);
|
|
15327
15325
|
}
|
|
15328
|
-
var A =
|
|
15326
|
+
var A = Ee();
|
|
15329
15327
|
try {
|
|
15330
|
-
var
|
|
15328
|
+
var k = p && p.db._novip === this.db._novip ? p === pe.trans ? p._promise(a, S, d) : nt(function() {
|
|
15331
15329
|
return p._promise(a, S, d);
|
|
15332
15330
|
}, { trans: p, transless: pe.transless || pe }) : (function M(H, T, B, O) {
|
|
15333
15331
|
if (H.idbdb && (H._state.openComplete || pe.letThrough || H._vip)) {
|
|
@@ -15362,9 +15360,9 @@ function hD() {
|
|
|
15362
15360
|
return M(H, T, B, O);
|
|
15363
15361
|
});
|
|
15364
15362
|
})(this.db, a, [this.name], S);
|
|
15365
|
-
return b && (
|
|
15363
|
+
return b && (k._consoleTask = b, k = k.catch(function(M) {
|
|
15366
15364
|
return console.trace(M), rt(M);
|
|
15367
|
-
})),
|
|
15365
|
+
})), k;
|
|
15368
15366
|
} finally {
|
|
15369
15367
|
A && Ie();
|
|
15370
15368
|
}
|
|
@@ -15384,32 +15382,32 @@ function hD() {
|
|
|
15384
15382
|
if (A.compound && l.every(function(M) {
|
|
15385
15383
|
return 0 <= A.keyPath.indexOf(M);
|
|
15386
15384
|
})) {
|
|
15387
|
-
for (var
|
|
15385
|
+
for (var k = 0; k < l.length; ++k) if (l.indexOf(A.keyPath[k]) === -1) return !1;
|
|
15388
15386
|
return !0;
|
|
15389
15387
|
}
|
|
15390
15388
|
return !1;
|
|
15391
|
-
}).sort(function(A,
|
|
15392
|
-
return A.keyPath.length -
|
|
15389
|
+
}).sort(function(A, k) {
|
|
15390
|
+
return A.keyPath.length - k.keyPath.length;
|
|
15393
15391
|
})[0];
|
|
15394
15392
|
if (d && this.db._maxKey !== Pe) {
|
|
15395
15393
|
var b = d.keyPath.slice(0, l.length);
|
|
15396
|
-
return this.where(b).equals(b.map(function(
|
|
15397
|
-
return a[
|
|
15394
|
+
return this.where(b).equals(b.map(function(k) {
|
|
15395
|
+
return a[k];
|
|
15398
15396
|
}));
|
|
15399
15397
|
}
|
|
15400
15398
|
!d && Fe && console.warn("The query ".concat(JSON.stringify(a), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(l.join("+"), "]"));
|
|
15401
15399
|
var p = this.schema.idxByName;
|
|
15402
|
-
function m(A,
|
|
15403
|
-
return
|
|
15400
|
+
function m(A, k) {
|
|
15401
|
+
return He(A, k) === 0;
|
|
15404
15402
|
}
|
|
15405
|
-
var S = l.reduce(function(T,
|
|
15406
|
-
var M = T[0], H = T[1], T = p[
|
|
15403
|
+
var S = l.reduce(function(T, k) {
|
|
15404
|
+
var M = T[0], H = T[1], T = p[k], B = a[k];
|
|
15407
15405
|
return [M || T, M || !T ? br(H, T && T.multi ? function(O) {
|
|
15408
|
-
return O = F(O,
|
|
15406
|
+
return O = F(O, k), c(O) && O.some(function(N) {
|
|
15409
15407
|
return m(B, N);
|
|
15410
15408
|
});
|
|
15411
15409
|
} : function(O) {
|
|
15412
|
-
return m(B, F(O,
|
|
15410
|
+
return m(B, F(O, k));
|
|
15413
15411
|
}) : H];
|
|
15414
15412
|
}, [null, null]), b = S[0], S = S[1];
|
|
15415
15413
|
return b ? this.where(b.name).equals(a[b.keyPath]).filter(S) : d ? this.filter(S) : this.where(l).equals("");
|
|
@@ -15436,25 +15434,25 @@ function hD() {
|
|
|
15436
15434
|
function m() {
|
|
15437
15435
|
return l !== null && l.apply(this, arguments) || this;
|
|
15438
15436
|
}
|
|
15439
|
-
(this.schema.mappedClass = a).prototype instanceof wl && ((function(
|
|
15437
|
+
(this.schema.mappedClass = a).prototype instanceof wl && ((function(k, M) {
|
|
15440
15438
|
if (typeof M != "function" && M !== null) throw new TypeError("Class extends value " + String(M) + " is not a constructor or null");
|
|
15441
15439
|
function H() {
|
|
15442
|
-
this.constructor =
|
|
15440
|
+
this.constructor = k;
|
|
15443
15441
|
}
|
|
15444
|
-
n(
|
|
15442
|
+
n(k, M), k.prototype = M === null ? Object.create(M) : (H.prototype = M.prototype, new H());
|
|
15445
15443
|
})(m, l = a), Object.defineProperty(m.prototype, "db", { get: function() {
|
|
15446
15444
|
return d;
|
|
15447
15445
|
}, enumerable: !1, configurable: !0 }), m.prototype.table = function() {
|
|
15448
15446
|
return p;
|
|
15449
15447
|
}, a = m);
|
|
15450
|
-
for (var b = /* @__PURE__ */ new Set(), S = a.prototype; S; S = f(S)) Object.getOwnPropertyNames(S).forEach(function(
|
|
15451
|
-
return b.add(
|
|
15448
|
+
for (var b = /* @__PURE__ */ new Set(), S = a.prototype; S; S = f(S)) Object.getOwnPropertyNames(S).forEach(function(k) {
|
|
15449
|
+
return b.add(k);
|
|
15452
15450
|
});
|
|
15453
|
-
function A(
|
|
15454
|
-
if (!
|
|
15451
|
+
function A(k) {
|
|
15452
|
+
if (!k) return k;
|
|
15455
15453
|
var M, H = Object.create(a.prototype);
|
|
15456
|
-
for (M in
|
|
15457
|
-
H[M] =
|
|
15454
|
+
for (M in k) if (!b.has(M)) try {
|
|
15455
|
+
H[M] = k[M];
|
|
15458
15456
|
} catch {
|
|
15459
15457
|
}
|
|
15460
15458
|
return H;
|
|
@@ -15535,11 +15533,11 @@ function hD() {
|
|
|
15535
15533
|
var M = p.schema.primKey, A = M.auto, M = M.keyPath;
|
|
15536
15534
|
if (M && m) throw new te.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
|
|
15537
15535
|
if (m && m.length !== a.length) throw new te.InvalidArgument("Arguments objects and keys must have the same length");
|
|
15538
|
-
var
|
|
15536
|
+
var k = a.length, M = M && A ? a.map(Ui(M)) : a;
|
|
15539
15537
|
return p.core.mutate({ trans: S, type: "add", keys: m, values: M, wantResults: b }).then(function(N) {
|
|
15540
15538
|
var T = N.numFailures, B = N.results, O = N.lastResult, N = N.failures;
|
|
15541
15539
|
if (T === 0) return b ? B : O;
|
|
15542
|
-
throw new ct("".concat(p.name, ".bulkAdd(): ").concat(T, " of ").concat(
|
|
15540
|
+
throw new ct("".concat(p.name, ".bulkAdd(): ").concat(T, " of ").concat(k, " operations failed"), N);
|
|
15543
15541
|
});
|
|
15544
15542
|
});
|
|
15545
15543
|
}, Je.prototype.bulkPut = function(a, l, d) {
|
|
@@ -15548,11 +15546,11 @@ function hD() {
|
|
|
15548
15546
|
var M = p.schema.primKey, A = M.auto, M = M.keyPath;
|
|
15549
15547
|
if (M && m) throw new te.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
|
|
15550
15548
|
if (m && m.length !== a.length) throw new te.InvalidArgument("Arguments objects and keys must have the same length");
|
|
15551
|
-
var
|
|
15549
|
+
var k = a.length, M = M && A ? a.map(Ui(M)) : a;
|
|
15552
15550
|
return p.core.mutate({ trans: S, type: "put", keys: m, values: M, wantResults: b }).then(function(N) {
|
|
15553
15551
|
var T = N.numFailures, B = N.results, O = N.lastResult, N = N.failures;
|
|
15554
15552
|
if (T === 0) return b ? B : O;
|
|
15555
|
-
throw new ct("".concat(p.name, ".bulkPut(): ").concat(T, " of ").concat(
|
|
15553
|
+
throw new ct("".concat(p.name, ".bulkPut(): ").concat(T, " of ").concat(k, " operations failed"), N);
|
|
15556
15554
|
});
|
|
15557
15555
|
});
|
|
15558
15556
|
}, Je.prototype.bulkUpdate = function(a) {
|
|
@@ -15563,21 +15561,21 @@ function hD() {
|
|
|
15563
15561
|
}), b = [];
|
|
15564
15562
|
return this._trans("readwrite", function(S) {
|
|
15565
15563
|
return d.getMany({ trans: S, keys: p, cache: "clone" }).then(function(A) {
|
|
15566
|
-
var
|
|
15564
|
+
var k = [], M = [];
|
|
15567
15565
|
a.forEach(function(T, B) {
|
|
15568
15566
|
var O = T.key, N = T.changes, P = A[B];
|
|
15569
15567
|
if (P) {
|
|
15570
15568
|
for (var U = 0, z = Object.keys(N); U < z.length; U++) {
|
|
15571
15569
|
var W = z[U], q = N[W];
|
|
15572
15570
|
if (W === l.schema.primKey.keyPath) {
|
|
15573
|
-
if (
|
|
15571
|
+
if (He(q, O) !== 0) throw new te.Constraint("Cannot update primary key in bulkUpdate()");
|
|
15574
15572
|
} else Q(P, W, q);
|
|
15575
15573
|
}
|
|
15576
|
-
b.push(B),
|
|
15574
|
+
b.push(B), k.push(O), M.push(P);
|
|
15577
15575
|
}
|
|
15578
15576
|
});
|
|
15579
|
-
var H =
|
|
15580
|
-
return d.mutate({ trans: S, type: "put", keys:
|
|
15577
|
+
var H = k.length;
|
|
15578
|
+
return d.mutate({ trans: S, type: "put", keys: k, values: M, updates: { keys: p, changeSpecs: m } }).then(function(T) {
|
|
15581
15579
|
var B = T.numFailures, O = T.failures;
|
|
15582
15580
|
if (B === 0) return H;
|
|
15583
15581
|
for (var N = 0, P = Object.keys(O); N < P.length; N++) {
|
|
@@ -15605,7 +15603,7 @@ function hD() {
|
|
|
15605
15603
|
function di(a) {
|
|
15606
15604
|
function l(S, A) {
|
|
15607
15605
|
if (A) {
|
|
15608
|
-
for (var
|
|
15606
|
+
for (var k = arguments.length, M = new Array(k - 1); --k; ) M[k - 1] = arguments[k];
|
|
15609
15607
|
return d[S].subscribe.apply(null, M), a;
|
|
15610
15608
|
}
|
|
15611
15609
|
if (typeof S == "string") return d[S];
|
|
@@ -15614,16 +15612,16 @@ function hD() {
|
|
|
15614
15612
|
l.addEventType = b;
|
|
15615
15613
|
for (var p = 1, m = arguments.length; p < m; ++p) b(arguments[p]);
|
|
15616
15614
|
return l;
|
|
15617
|
-
function b(S, A,
|
|
15615
|
+
function b(S, A, k) {
|
|
15618
15616
|
if (typeof S != "object") {
|
|
15619
15617
|
var M;
|
|
15620
15618
|
A = A || Qn;
|
|
15621
|
-
var H = { subscribers: [], fire:
|
|
15619
|
+
var H = { subscribers: [], fire: k = k || xe, subscribe: function(T) {
|
|
15622
15620
|
H.subscribers.indexOf(T) === -1 && (H.subscribers.push(T), H.fire = A(H.fire, T));
|
|
15623
15621
|
}, unsubscribe: function(T) {
|
|
15624
15622
|
H.subscribers = H.subscribers.filter(function(B) {
|
|
15625
15623
|
return B !== T;
|
|
15626
|
-
}), H.fire = H.subscribers.reduce(A,
|
|
15624
|
+
}), H.fire = H.subscribers.reduce(A, k);
|
|
15627
15625
|
} };
|
|
15628
15626
|
return d[S] = l[S] = H;
|
|
15629
15627
|
}
|
|
@@ -15635,7 +15633,7 @@ function hD() {
|
|
|
15635
15633
|
var O = b(T, gt, function() {
|
|
15636
15634
|
for (var N = arguments.length, P = new Array(N); N--; ) P[N] = arguments[N];
|
|
15637
15635
|
O.subscribers.forEach(function(U) {
|
|
15638
|
-
|
|
15636
|
+
I(function() {
|
|
15639
15637
|
U.apply(null, P);
|
|
15640
15638
|
});
|
|
15641
15639
|
});
|
|
@@ -15672,13 +15670,13 @@ function hD() {
|
|
|
15672
15670
|
function zi(a, l, d, p) {
|
|
15673
15671
|
var m = a.replayFilter ? br(a.filter, a.replayFilter()) : a.filter;
|
|
15674
15672
|
if (a.or) {
|
|
15675
|
-
var b = {}, S = function(A,
|
|
15673
|
+
var b = {}, S = function(A, k, M) {
|
|
15676
15674
|
var H, T;
|
|
15677
|
-
m && !m(
|
|
15678
|
-
return
|
|
15675
|
+
m && !m(k, M, function(B) {
|
|
15676
|
+
return k.stop(B);
|
|
15679
15677
|
}, function(B) {
|
|
15680
|
-
return
|
|
15681
|
-
}) || ((T = "" + (H =
|
|
15678
|
+
return k.fail(B);
|
|
15679
|
+
}) || ((T = "" + (H = k.primaryKey)) == "[object ArrayBuffer]" && (T = "" + new Uint8Array(H)), g(b, T) || (b[T] = !0, l(A, k, M)));
|
|
15682
15680
|
};
|
|
15683
15681
|
return Promise.all([a.or._iterate(S, d), xl(_l(a, p, d), a.algorithm, S, !a.keysOnly && a.valueMapper)]);
|
|
15684
15682
|
}
|
|
@@ -15742,15 +15740,15 @@ function hD() {
|
|
|
15742
15740
|
}).then(a);
|
|
15743
15741
|
}, qe.prototype.sortBy = function(a, l) {
|
|
15744
15742
|
var d = a.split(".").reverse(), p = d[0], m = d.length - 1;
|
|
15745
|
-
function b(
|
|
15746
|
-
return M ? b(
|
|
15743
|
+
function b(k, M) {
|
|
15744
|
+
return M ? b(k[d[M]], M - 1) : k[p];
|
|
15747
15745
|
}
|
|
15748
15746
|
var S = this._ctx.dir === "next" ? 1 : -1;
|
|
15749
|
-
function A(
|
|
15750
|
-
return
|
|
15747
|
+
function A(k, M) {
|
|
15748
|
+
return He(b(k, m), b(M, m)) * S;
|
|
15751
15749
|
}
|
|
15752
|
-
return this.toArray(function(
|
|
15753
|
-
return
|
|
15750
|
+
return this.toArray(function(k) {
|
|
15751
|
+
return k.sort(A);
|
|
15754
15752
|
}).then(l);
|
|
15755
15753
|
}, qe.prototype.toArray = function(a) {
|
|
15756
15754
|
var l = this;
|
|
@@ -15871,32 +15869,32 @@ function hD() {
|
|
|
15871
15869
|
return this._write(function(p) {
|
|
15872
15870
|
var m = typeof a == "function" ? a : function(P) {
|
|
15873
15871
|
return Cl(P, a);
|
|
15874
|
-
}, b = d.table.core, M = b.schema.primaryKey, S = M.outbound, A = M.extractKey,
|
|
15875
|
-
M && (
|
|
15872
|
+
}, b = d.table.core, M = b.schema.primaryKey, S = M.outbound, A = M.extractKey, k = 200, M = l.db._options.modifyChunkSize;
|
|
15873
|
+
M && (k = typeof M == "object" ? M[b.name] || M["*"] || 200 : M);
|
|
15876
15874
|
function H(P, W) {
|
|
15877
15875
|
var z = W.failures, W = W.numFailures;
|
|
15878
15876
|
B += P - W;
|
|
15879
|
-
for (var q = 0,
|
|
15880
|
-
var
|
|
15881
|
-
T.push(z[
|
|
15877
|
+
for (var q = 0, Y = s(z); q < Y.length; q++) {
|
|
15878
|
+
var ae = Y[q];
|
|
15879
|
+
T.push(z[ae]);
|
|
15882
15880
|
}
|
|
15883
15881
|
}
|
|
15884
15882
|
var T = [], B = 0, O = [], N = a === Rl;
|
|
15885
15883
|
return l.clone().primaryKeys().then(function(P) {
|
|
15886
15884
|
function U(W) {
|
|
15887
|
-
var q = Math.min(
|
|
15888
|
-
return (N ? Promise.resolve([]) : b.getMany({ trans: p, keys:
|
|
15889
|
-
var de = [],
|
|
15885
|
+
var q = Math.min(k, P.length - W), Y = P.slice(W, W + q);
|
|
15886
|
+
return (N ? Promise.resolve([]) : b.getMany({ trans: p, keys: Y, cache: "immutable" })).then(function(ae) {
|
|
15887
|
+
var de = [], ie = [], le = S ? [] : null, fe = N ? Y : [];
|
|
15890
15888
|
if (!N) for (var ce = 0; ce < q; ++ce) {
|
|
15891
|
-
var ye =
|
|
15892
|
-
m.call(ke, ke.value, ke) !== !1 && (ke.value == null ? fe.push(P[W + ce]) : S ||
|
|
15889
|
+
var ye = ae[ce], ke = { value: Ue(ye), primKey: P[W + ce] };
|
|
15890
|
+
m.call(ke, ke.value, ke) !== !1 && (ke.value == null ? fe.push(P[W + ce]) : S || He(A(ye), A(ke.value)) === 0 ? (ie.push(ke.value), S && le.push(P[W + ce])) : (fe.push(P[W + ce]), de.push(ke.value)));
|
|
15893
15891
|
}
|
|
15894
15892
|
return Promise.resolve(0 < de.length && b.mutate({ trans: p, type: "add", values: de }).then(function(Oe) {
|
|
15895
15893
|
for (var Ne in Oe.failures) fe.splice(parseInt(Ne), 1);
|
|
15896
15894
|
H(de.length, Oe);
|
|
15897
15895
|
})).then(function() {
|
|
15898
|
-
return (0 <
|
|
15899
|
-
return H(
|
|
15896
|
+
return (0 < ie.length || z && typeof a == "object") && b.mutate({ trans: p, type: "put", keys: le, values: ie, criteria: z, changeSpec: typeof a != "function" && a, isAdditionalChunk: 0 < W }).then(function(Oe) {
|
|
15897
|
+
return H(ie.length, Oe);
|
|
15900
15898
|
});
|
|
15901
15899
|
}).then(function() {
|
|
15902
15900
|
return (0 < fe.length || z && N) && b.mutate({ trans: p, type: "delete", keys: fe, criteria: z, isAdditionalChunk: 0 < W }).then(function(Oe) {
|
|
@@ -15905,7 +15903,7 @@ function hD() {
|
|
|
15905
15903
|
return H(fe.length, Oe);
|
|
15906
15904
|
});
|
|
15907
15905
|
}).then(function() {
|
|
15908
|
-
return P.length > W + q && U(W +
|
|
15906
|
+
return P.length > W + q && U(W + k);
|
|
15909
15907
|
});
|
|
15910
15908
|
});
|
|
15911
15909
|
}
|
|
@@ -15921,12 +15919,12 @@ function hD() {
|
|
|
15921
15919
|
return !zr(a) || a.table.schema.yProps || !a.isPrimKey && l.type !== 3 ? this.modify(Rl) : this._write(function(d) {
|
|
15922
15920
|
var p = a.table.core.schema.primaryKey, m = l;
|
|
15923
15921
|
return a.table.core.count({ trans: d, query: { index: p, range: m } }).then(function(b) {
|
|
15924
|
-
return a.table.core.mutate({ trans: d, type: "deleteRange", range: m }).then(function(
|
|
15925
|
-
var A =
|
|
15926
|
-
if (
|
|
15922
|
+
return a.table.core.mutate({ trans: d, type: "deleteRange", range: m }).then(function(k) {
|
|
15923
|
+
var A = k.failures, k = k.numFailures;
|
|
15924
|
+
if (k) throw new tt("Could not delete some values", Object.keys(A).map(function(M) {
|
|
15927
15925
|
return A[M];
|
|
15928
|
-
}), b -
|
|
15929
|
-
return b -
|
|
15926
|
+
}), b - k);
|
|
15927
|
+
return b - k;
|
|
15930
15928
|
});
|
|
15931
15929
|
});
|
|
15932
15930
|
});
|
|
@@ -15951,7 +15949,7 @@ function hD() {
|
|
|
15951
15949
|
}).limit(0);
|
|
15952
15950
|
}
|
|
15953
15951
|
function $i(a, l, d, p) {
|
|
15954
|
-
var m, b, S, A,
|
|
15952
|
+
var m, b, S, A, k, M, H, T = d.length;
|
|
15955
15953
|
if (!d.every(function(N) {
|
|
15956
15954
|
return typeof N == "string";
|
|
15957
15955
|
})) return Ut(a, Br);
|
|
@@ -15972,12 +15970,12 @@ function hD() {
|
|
|
15972
15970
|
});
|
|
15973
15971
|
A = P.map(function(U) {
|
|
15974
15972
|
return U.upper;
|
|
15975
|
-
}),
|
|
15973
|
+
}), k = P.map(function(U) {
|
|
15976
15974
|
return U.lower;
|
|
15977
15975
|
}), H = (M = N) === "next" ? "" : p;
|
|
15978
15976
|
}
|
|
15979
15977
|
B("next"), a = new a.Collection(a, function() {
|
|
15980
|
-
return Jn(A[0],
|
|
15978
|
+
return Jn(A[0], k[T - 1] + p);
|
|
15981
15979
|
}), a._ondirectionchange = function(N) {
|
|
15982
15980
|
B(N);
|
|
15983
15981
|
};
|
|
@@ -15986,17 +15984,17 @@ function hD() {
|
|
|
15986
15984
|
var z = N.key;
|
|
15987
15985
|
if (typeof z != "string") return !1;
|
|
15988
15986
|
var W = b(z);
|
|
15989
|
-
if (l(W,
|
|
15990
|
-
for (var q = null,
|
|
15991
|
-
var
|
|
15987
|
+
if (l(W, k, O)) return !0;
|
|
15988
|
+
for (var q = null, Y = O; Y < T; ++Y) {
|
|
15989
|
+
var ae = (function(de, ie, le, fe, ce, ye) {
|
|
15992
15990
|
for (var ke = Math.min(de.length, fe.length), Oe = -1, Ne = 0; Ne < ke; ++Ne) {
|
|
15993
|
-
var Bt =
|
|
15994
|
-
if (Bt !== fe[Ne]) return ce(de[Ne], le[Ne]) < 0 ? de.substr(0, Ne) + le[Ne] + le.substr(Ne + 1) : ce(de[Ne], fe[Ne]) < 0 ? de.substr(0, Ne) + fe[Ne] + le.substr(Ne + 1) : 0 <= Oe ? de.substr(0, Oe) +
|
|
15991
|
+
var Bt = ie[Ne];
|
|
15992
|
+
if (Bt !== fe[Ne]) return ce(de[Ne], le[Ne]) < 0 ? de.substr(0, Ne) + le[Ne] + le.substr(Ne + 1) : ce(de[Ne], fe[Ne]) < 0 ? de.substr(0, Ne) + fe[Ne] + le.substr(Ne + 1) : 0 <= Oe ? de.substr(0, Oe) + ie[Oe] + le.substr(Oe + 1) : null;
|
|
15995
15993
|
ce(de[Ne], Bt) < 0 && (Oe = Ne);
|
|
15996
15994
|
}
|
|
15997
15995
|
return ke < fe.length && ye === "next" ? de + le.substr(de.length) : ke < de.length && ye === "prev" ? de.substr(0, le.length) : Oe < 0 ? null : de.substr(0, Oe) + fe[Oe] + le.substr(Oe + 1);
|
|
15998
|
-
})(z, W, A[
|
|
15999
|
-
|
|
15996
|
+
})(z, W, A[Y], k[Y], S, M);
|
|
15997
|
+
ae === null && q === null ? O = Y + 1 : (q === null || 0 < S(q, ae)) && (q = ae);
|
|
16000
15998
|
}
|
|
16001
15999
|
return P(q !== null ? function() {
|
|
16002
16000
|
N.continue(q + H);
|
|
@@ -16078,8 +16076,8 @@ function hD() {
|
|
|
16078
16076
|
};
|
|
16079
16077
|
var m = 0;
|
|
16080
16078
|
return p._addAlgorithm(function(b, S, A) {
|
|
16081
|
-
for (var
|
|
16082
|
-
return d(
|
|
16079
|
+
for (var k = b.key; 0 < d(k, l[m]); ) if (++m === l.length) return S(A), !1;
|
|
16080
|
+
return d(k, l[m]) === 0 || (S(function() {
|
|
16083
16081
|
b.continue(l[m]);
|
|
16084
16082
|
}), !1);
|
|
16085
16083
|
}), p;
|
|
@@ -16103,20 +16101,20 @@ function hD() {
|
|
|
16103
16101
|
if (!z.every(function(W) {
|
|
16104
16102
|
return W[0] !== void 0 && W[1] !== void 0 && m(W[0], W[1]) <= 0;
|
|
16105
16103
|
})) return Ut(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", te.InvalidArgument);
|
|
16106
|
-
var
|
|
16104
|
+
var k = !l || l.includeLowers !== !1, M = l && l.includeUppers === !0, H, T = m;
|
|
16107
16105
|
function B(W, q) {
|
|
16108
16106
|
return T(W[0], q[0]);
|
|
16109
16107
|
}
|
|
16110
16108
|
try {
|
|
16111
16109
|
(H = z.reduce(function(W, q) {
|
|
16112
|
-
for (var
|
|
16113
|
-
var de = W[
|
|
16110
|
+
for (var Y = 0, ae = W.length; Y < ae; ++Y) {
|
|
16111
|
+
var de = W[Y];
|
|
16114
16112
|
if (p(q[0], de[1]) < 0 && 0 < p(q[1], de[0])) {
|
|
16115
16113
|
de[0] = S(de[0], q[0]), de[1] = A(de[1], q[1]);
|
|
16116
16114
|
break;
|
|
16117
16115
|
}
|
|
16118
16116
|
}
|
|
16119
|
-
return
|
|
16117
|
+
return Y === ae && W.push(q), W;
|
|
16120
16118
|
}, [])).sort(B);
|
|
16121
16119
|
} catch {
|
|
16122
16120
|
return Ut(this, pt);
|
|
@@ -16125,18 +16123,18 @@ function hD() {
|
|
|
16125
16123
|
return 0 < m(W, H[O][1]);
|
|
16126
16124
|
} : function(W) {
|
|
16127
16125
|
return 0 <= m(W, H[O][1]);
|
|
16128
|
-
}, P =
|
|
16126
|
+
}, P = k ? function(W) {
|
|
16129
16127
|
return 0 < b(W, H[O][0]);
|
|
16130
16128
|
} : function(W) {
|
|
16131
16129
|
return 0 <= b(W, H[O][0]);
|
|
16132
16130
|
}, U = N, z = new this.Collection(this, function() {
|
|
16133
|
-
return Jn(H[0][0], H[H.length - 1][1], !
|
|
16131
|
+
return Jn(H[0][0], H[H.length - 1][1], !k, !M);
|
|
16134
16132
|
});
|
|
16135
16133
|
return z._ondirectionchange = function(W) {
|
|
16136
16134
|
T = W === "next" ? (U = N, m) : (U = P, b), H.sort(B);
|
|
16137
|
-
}, z._addAlgorithm(function(W, q,
|
|
16138
|
-
for (var
|
|
16139
|
-
return !N(
|
|
16135
|
+
}, z._addAlgorithm(function(W, q, Y) {
|
|
16136
|
+
for (var ae, de = W.key; U(de); ) if (++O === H.length) return q(Y), !1;
|
|
16137
|
+
return !N(ae = de) && !P(ae) || (d._cmp(de, H[O][1]) === 0 || d._cmp(de, H[O][0]) === 0 || q(function() {
|
|
16140
16138
|
T === m ? W.continue(H[O][0]) : W.continue(H[O][1]);
|
|
16141
16139
|
}), !1);
|
|
16142
16140
|
}), z;
|
|
@@ -16203,8 +16201,8 @@ function hD() {
|
|
|
16203
16201
|
if (d) return nt(function() {
|
|
16204
16202
|
var b = new ue(function(S, A) {
|
|
16205
16203
|
p._lock();
|
|
16206
|
-
var
|
|
16207
|
-
|
|
16204
|
+
var k = l(S, A, p);
|
|
16205
|
+
k && k.then && k.then(S, A);
|
|
16208
16206
|
});
|
|
16209
16207
|
return b.finally(function() {
|
|
16210
16208
|
return p._unlock();
|
|
@@ -16289,7 +16287,7 @@ function hD() {
|
|
|
16289
16287
|
function mi(a) {
|
|
16290
16288
|
return a == null ? ":id" : typeof a == "string" ? a : "[".concat(a.join("+"), "]");
|
|
16291
16289
|
}
|
|
16292
|
-
function Qf(a, l,
|
|
16290
|
+
function Qf(a, l, k) {
|
|
16293
16291
|
function p(U) {
|
|
16294
16292
|
if (U.type === 3) return null;
|
|
16295
16293
|
if (U.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
|
|
@@ -16299,30 +16297,30 @@ function hD() {
|
|
|
16299
16297
|
function m(B) {
|
|
16300
16298
|
var O, N = B.name;
|
|
16301
16299
|
return { name: N, schema: B, mutate: function(P) {
|
|
16302
|
-
var U = P.trans, z = P.type, W = P.keys, q = P.values,
|
|
16303
|
-
return new Promise(function(
|
|
16304
|
-
|
|
16305
|
-
var
|
|
16300
|
+
var U = P.trans, z = P.type, W = P.keys, q = P.values, Y = P.range;
|
|
16301
|
+
return new Promise(function(ae, de) {
|
|
16302
|
+
ae = J(ae);
|
|
16303
|
+
var ie = U.objectStore(N), le = ie.keyPath == null, fe = z === "put" || z === "add";
|
|
16306
16304
|
if (!fe && z !== "delete" && z !== "deleteRange") throw new Error("Invalid operation type: " + z);
|
|
16307
16305
|
var ce, ye = (W || q || { length: 1 }).length;
|
|
16308
16306
|
if (W && q && W.length !== q.length) throw new Error("Given keys array must have same length as given values array.");
|
|
16309
|
-
if (ye === 0) return
|
|
16307
|
+
if (ye === 0) return ae({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
|
|
16310
16308
|
function ke(It) {
|
|
16311
16309
|
++Bt, hi(It);
|
|
16312
16310
|
}
|
|
16313
16311
|
var Oe = [], Ne = [], Bt = 0;
|
|
16314
16312
|
if (z === "deleteRange") {
|
|
16315
|
-
if (
|
|
16316
|
-
|
|
16313
|
+
if (Y.type === 4) return ae({ numFailures: Bt, failures: Ne, results: [], lastResult: void 0 });
|
|
16314
|
+
Y.type === 3 ? Oe.push(ce = ie.clear()) : Oe.push(ce = ie.delete(p(Y)));
|
|
16317
16315
|
} else {
|
|
16318
16316
|
var le = fe ? le ? [q, W] : [q, null] : [W, null], Re = le[0], Ct = le[1];
|
|
16319
|
-
if (fe) for (var At = 0; At < ye; ++At) Oe.push(ce = Ct && Ct[At] !== void 0 ?
|
|
16320
|
-
else for (At = 0; At < ye; ++At) Oe.push(ce =
|
|
16317
|
+
if (fe) for (var At = 0; At < ye; ++At) Oe.push(ce = Ct && Ct[At] !== void 0 ? ie[z](Re[At], Ct[At]) : ie[z](Re[At])), ce.onerror = ke;
|
|
16318
|
+
else for (At = 0; At < ye; ++At) Oe.push(ce = ie[z](Re[At])), ce.onerror = ke;
|
|
16321
16319
|
}
|
|
16322
16320
|
function to(It) {
|
|
16323
16321
|
It = It.target.result, Oe.forEach(function(Er, Is) {
|
|
16324
16322
|
return Er.error != null && (Ne[Is] = Er.error);
|
|
16325
|
-
}),
|
|
16323
|
+
}), ae({ numFailures: Bt, failures: Ne, results: z === "delete" ? W : Oe.map(function(Er) {
|
|
16326
16324
|
return Er.result;
|
|
16327
16325
|
}), lastResult: It });
|
|
16328
16326
|
}
|
|
@@ -16334,37 +16332,37 @@ function hD() {
|
|
|
16334
16332
|
var U = P.trans, z = P.keys;
|
|
16335
16333
|
return new Promise(function(W, q) {
|
|
16336
16334
|
W = J(W);
|
|
16337
|
-
for (var
|
|
16338
|
-
Oe = Oe.target,
|
|
16339
|
-
}, ye = Cn(q), ke = 0; ke < de; ++ke) z[ke] != null && ((
|
|
16340
|
-
le === 0 && W(
|
|
16335
|
+
for (var Y, ae = U.objectStore(N), de = z.length, ie = new Array(de), le = 0, fe = 0, ce = function(Oe) {
|
|
16336
|
+
Oe = Oe.target, ie[Oe._pos] = Oe.result, ++fe === le && W(ie);
|
|
16337
|
+
}, ye = Cn(q), ke = 0; ke < de; ++ke) z[ke] != null && ((Y = ae.get(z[ke]))._pos = ke, Y.onsuccess = ce, Y.onerror = ye, ++le);
|
|
16338
|
+
le === 0 && W(ie);
|
|
16341
16339
|
});
|
|
16342
16340
|
}, get: function(P) {
|
|
16343
16341
|
var U = P.trans, z = P.key;
|
|
16344
16342
|
return new Promise(function(W, q) {
|
|
16345
16343
|
W = J(W);
|
|
16346
|
-
var
|
|
16347
|
-
|
|
16348
|
-
return W(
|
|
16349
|
-
},
|
|
16344
|
+
var Y = U.objectStore(N).get(z);
|
|
16345
|
+
Y.onsuccess = function(ae) {
|
|
16346
|
+
return W(ae.target.result);
|
|
16347
|
+
}, Y.onerror = Cn(q);
|
|
16350
16348
|
});
|
|
16351
16349
|
}, query: (O = M, function(P) {
|
|
16352
16350
|
return new Promise(function(U, z) {
|
|
16353
16351
|
U = J(U);
|
|
16354
|
-
var W, q,
|
|
16352
|
+
var W, q, Y, le = P.trans, ae = P.values, de = P.limit, ce = P.query, ie = de === 1 / 0 ? void 0 : de, fe = ce.index, ce = ce.range, le = le.objectStore(N), fe = fe.isPrimaryKey ? le : le.index(fe.name), ce = p(ce);
|
|
16355
16353
|
if (de === 0) return U({ result: [] });
|
|
16356
|
-
O ? ((
|
|
16354
|
+
O ? ((ie = ae ? fe.getAll(ce, ie) : fe.getAllKeys(ce, ie)).onsuccess = function(ye) {
|
|
16357
16355
|
return U({ result: ye.target.result });
|
|
16358
|
-
},
|
|
16356
|
+
}, ie.onerror = Cn(z)) : (W = 0, q = !ae && "openKeyCursor" in fe ? fe.openKeyCursor(ce) : fe.openCursor(ce), Y = [], q.onsuccess = function(ye) {
|
|
16359
16357
|
var ke = q.result;
|
|
16360
|
-
return ke ? (
|
|
16358
|
+
return ke ? (Y.push(ae ? ke.value : ke.primaryKey), ++W === de ? U({ result: Y }) : void ke.continue()) : U({ result: Y });
|
|
16361
16359
|
}, q.onerror = Cn(z));
|
|
16362
16360
|
});
|
|
16363
16361
|
}), openCursor: function(P) {
|
|
16364
|
-
var U = P.trans, z = P.values, W = P.query, q = P.reverse,
|
|
16365
|
-
return new Promise(function(
|
|
16366
|
-
|
|
16367
|
-
var fe = W.index,
|
|
16362
|
+
var U = P.trans, z = P.values, W = P.query, q = P.reverse, Y = P.unique;
|
|
16363
|
+
return new Promise(function(ae, de) {
|
|
16364
|
+
ae = J(ae);
|
|
16365
|
+
var fe = W.index, ie = W.range, le = U.objectStore(N), le = fe.isPrimaryKey ? le : le.index(fe.name), fe = q ? Y ? "prevunique" : "prev" : Y ? "nextunique" : "next", ce = !z && "openKeyCursor" in le ? le.openKeyCursor(p(ie), fe) : le.openCursor(p(ie), fe);
|
|
16368
16366
|
ce.onerror = Cn(de), ce.onsuccess = J(function(ye) {
|
|
16369
16367
|
var ke, Oe, Ne, Bt, Re = ce.result;
|
|
16370
16368
|
Re ? (Re.___id = ++Kf, Re.done = !1, ke = Re.continue.bind(Re), Oe = (Oe = Re.continuePrimaryKey) && Oe.bind(Re), Ne = Re.advance.bind(Re), Bt = function() {
|
|
@@ -16397,38 +16395,38 @@ function hD() {
|
|
|
16397
16395
|
return ce.onsuccess = J(function(It) {
|
|
16398
16396
|
ce.onsuccess = At, At();
|
|
16399
16397
|
}), Re.continue = ke, Re.continuePrimaryKey = Oe, Re.advance = Ne, At(), to;
|
|
16400
|
-
},
|
|
16398
|
+
}, ae(Re)) : ae(null);
|
|
16401
16399
|
}, de);
|
|
16402
16400
|
});
|
|
16403
16401
|
}, count: function(P) {
|
|
16404
16402
|
var U = P.query, z = P.trans, W = U.index, q = U.range;
|
|
16405
|
-
return new Promise(function(
|
|
16406
|
-
var de = z.objectStore(N),
|
|
16407
|
-
|
|
16408
|
-
return
|
|
16409
|
-
}),
|
|
16403
|
+
return new Promise(function(Y, ae) {
|
|
16404
|
+
var de = z.objectStore(N), ie = W.isPrimaryKey ? de : de.index(W.name), de = p(q), ie = de ? ie.count(de) : ie.count();
|
|
16405
|
+
ie.onsuccess = J(function(le) {
|
|
16406
|
+
return Y(le.target.result);
|
|
16407
|
+
}), ie.onerror = Cn(ae);
|
|
16410
16408
|
});
|
|
16411
16409
|
} };
|
|
16412
16410
|
}
|
|
16413
|
-
var b, S, A, H = (S =
|
|
16411
|
+
var b, S, A, H = (S = k, A = Ml((b = a).objectStoreNames), { schema: { name: b.name, tables: A.map(function(B) {
|
|
16414
16412
|
return S.objectStore(B);
|
|
16415
16413
|
}).map(function(B) {
|
|
16416
16414
|
var O = B.keyPath, U = B.autoIncrement, N = c(O), P = {}, U = { name: B.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: O == null, compound: N, keyPath: O, autoIncrement: U, unique: !0, extractKey: hs(O) }, indexes: Ml(B.indexNames).map(function(z) {
|
|
16417
16415
|
return B.index(z);
|
|
16418
|
-
}).map(function(
|
|
16419
|
-
var W =
|
|
16420
|
-
return P[mi(
|
|
16416
|
+
}).map(function(Y) {
|
|
16417
|
+
var W = Y.name, q = Y.unique, ae = Y.multiEntry, Y = Y.keyPath, ae = { name: W, compound: c(Y), keyPath: Y, unique: q, multiEntry: ae, extractKey: hs(Y) };
|
|
16418
|
+
return P[mi(Y)] = ae;
|
|
16421
16419
|
}), getIndexByKeyPath: function(z) {
|
|
16422
16420
|
return P[mi(z)];
|
|
16423
16421
|
} };
|
|
16424
16422
|
return P[":id"] = U.primaryKey, O != null && (P[mi(O)] = U.primaryKey), U;
|
|
16425
|
-
}) }, hasGetAll: 0 < A.length && "getAll" in S.objectStore(A[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }),
|
|
16423
|
+
}) }, hasGetAll: 0 < A.length && "getAll" in S.objectStore(A[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), k = H.schema, M = H.hasGetAll, H = k.tables.map(m), T = {};
|
|
16426
16424
|
return H.forEach(function(B) {
|
|
16427
16425
|
return T[B.name] = B;
|
|
16428
16426
|
}), { stack: "dbcore", transaction: a.transaction.bind(a), table: function(B) {
|
|
16429
16427
|
if (!T[B]) throw new Error("Table '".concat(B, "' not found"));
|
|
16430
16428
|
return T[B];
|
|
16431
|
-
}, MIN_KEY: -1 / 0, MAX_KEY: gi(l), schema:
|
|
16429
|
+
}, MIN_KEY: -1 / 0, MAX_KEY: gi(l), schema: k };
|
|
16432
16430
|
}
|
|
16433
16431
|
function Zf(a, l, d, p) {
|
|
16434
16432
|
var m = d.IDBKeyRange;
|
|
@@ -16449,13 +16447,13 @@ function hD() {
|
|
|
16449
16447
|
d.forEach(function(m) {
|
|
16450
16448
|
var b = p[m];
|
|
16451
16449
|
l.forEach(function(S) {
|
|
16452
|
-
var A = (function
|
|
16453
|
-
return _(M, H) || (M = f(M)) &&
|
|
16450
|
+
var A = (function k(M, H) {
|
|
16451
|
+
return _(M, H) || (M = f(M)) && k(M, H);
|
|
16454
16452
|
})(S, m);
|
|
16455
16453
|
(!A || "value" in A && A.value === void 0) && (S === a.Transaction.prototype || S instanceof a.Transaction ? E(S, m, { get: function() {
|
|
16456
16454
|
return this.table(m);
|
|
16457
|
-
}, set: function(
|
|
16458
|
-
v(this, m, { value:
|
|
16455
|
+
}, set: function(k) {
|
|
16456
|
+
v(this, m, { value: k, writable: !0, configurable: !0, enumerable: !0 });
|
|
16459
16457
|
} }) : S[m] = new a.Table(m, b));
|
|
16460
16458
|
});
|
|
16461
16459
|
});
|
|
@@ -16475,7 +16473,7 @@ function hD() {
|
|
|
16475
16473
|
b.create(d), b._completion.catch(p);
|
|
16476
16474
|
var S = b._reject.bind(b), A = pe.transless || pe;
|
|
16477
16475
|
nt(function() {
|
|
16478
|
-
return pe.trans = b, pe.transless = A, l !== 0 ? (Wi(a, d), M = l, ((
|
|
16476
|
+
return pe.trans = b, pe.transless = A, l !== 0 ? (Wi(a, d), M = l, ((k = b).storeNames.includes("$meta") ? k.table("$meta").get("version").then(function(H) {
|
|
16479
16477
|
return H ?? M;
|
|
16480
16478
|
}) : ue.resolve(M)).then(function(H) {
|
|
16481
16479
|
return B = H, O = b, N = d, P = [], H = (T = a)._versions, U = T._dbSchema = Gi(0, T.idbdb, N), (H = H.filter(function(z) {
|
|
@@ -16484,10 +16482,10 @@ function hD() {
|
|
|
16484
16482
|
P.push(function() {
|
|
16485
16483
|
var W = U, q = z._cfg.dbschema;
|
|
16486
16484
|
Yi(T, W, N), Yi(T, q, N), U = T._dbSchema = q;
|
|
16487
|
-
var
|
|
16488
|
-
|
|
16485
|
+
var Y = gs(W, q);
|
|
16486
|
+
Y.add.forEach(function(fe) {
|
|
16489
16487
|
ms(N, fe[0], fe[1].primKey, fe[1].indexes);
|
|
16490
|
-
}),
|
|
16488
|
+
}), Y.change.forEach(function(fe) {
|
|
16491
16489
|
if (fe.recreate) throw new te.Upgrade("Not yet support for changing primary key");
|
|
16492
16490
|
var ce = N.objectStore(fe.name);
|
|
16493
16491
|
fe.add.forEach(function(ye) {
|
|
@@ -16498,25 +16496,25 @@ function hD() {
|
|
|
16498
16496
|
return ce.deleteIndex(ye);
|
|
16499
16497
|
});
|
|
16500
16498
|
});
|
|
16501
|
-
var
|
|
16502
|
-
if (
|
|
16499
|
+
var ae = z._cfg.contentUpgrade;
|
|
16500
|
+
if (ae && z._cfg.version > B) {
|
|
16503
16501
|
Wi(T, N), O._memoizedTables = {};
|
|
16504
16502
|
var de = $(q);
|
|
16505
|
-
|
|
16503
|
+
Y.del.forEach(function(fe) {
|
|
16506
16504
|
de[fe] = W[fe];
|
|
16507
16505
|
}), ps(T, [T.Transaction.prototype]), Vi(T, [T.Transaction.prototype], s(de), de), O.schema = de;
|
|
16508
|
-
var
|
|
16509
|
-
return le && ht(),
|
|
16506
|
+
var ie, le = Te(ae);
|
|
16507
|
+
return le && ht(), Y = ue.follow(function() {
|
|
16510
16508
|
var fe;
|
|
16511
|
-
(
|
|
16512
|
-
}),
|
|
16513
|
-
return
|
|
16509
|
+
(ie = ae(O)) && le && (fe = $e.bind(null, null), ie.then(fe, fe));
|
|
16510
|
+
}), ie && typeof ie.then == "function" ? ue.resolve(ie) : Y.then(function() {
|
|
16511
|
+
return ie;
|
|
16514
16512
|
});
|
|
16515
16513
|
}
|
|
16516
16514
|
}), P.push(function(W) {
|
|
16517
|
-
var q,
|
|
16518
|
-
q =
|
|
16519
|
-
return q[de] == null &&
|
|
16515
|
+
var q, Y, ae = z._cfg.dbschema;
|
|
16516
|
+
q = ae, Y = W, [].slice.call(Y.db.objectStoreNames).forEach(function(de) {
|
|
16517
|
+
return q[de] == null && Y.db.deleteObjectStore(de);
|
|
16520
16518
|
}), ps(T, [T.Transaction.prototype]), Vi(T, [T.Transaction.prototype], T._storeNames, T._dbSchema), O.schema = T._dbSchema;
|
|
16521
16519
|
}), P.push(function(W) {
|
|
16522
16520
|
T.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(T.idbdb.version / 10) === z._cfg.version ? (T.idbdb.deleteObjectStore("$meta"), delete T._dbSchema.$meta, T._storeNames = T._storeNames.filter(function(q) {
|
|
@@ -16534,7 +16532,7 @@ function hD() {
|
|
|
16534
16532
|
}), Wi(a, d), void ue.follow(function() {
|
|
16535
16533
|
return a.on.populate.fire(b);
|
|
16536
16534
|
}).catch(S));
|
|
16537
|
-
var
|
|
16535
|
+
var k, M;
|
|
16538
16536
|
});
|
|
16539
16537
|
}
|
|
16540
16538
|
function eh(a, l) {
|
|
@@ -16545,8 +16543,8 @@ function hD() {
|
|
|
16545
16543
|
var b = (function(S) {
|
|
16546
16544
|
if (S.change.length || S.recreate) return console.warn("Unable to patch indexes of table ".concat(S.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
|
|
16547
16545
|
var A = l.objectStore(S.name);
|
|
16548
|
-
S.add.forEach(function(
|
|
16549
|
-
Fe && console.debug("Dexie upgrade patch: Creating missing index ".concat(S.name, ".").concat(
|
|
16546
|
+
S.add.forEach(function(k) {
|
|
16547
|
+
Fe && console.debug("Dexie upgrade patch: Creating missing index ".concat(S.name, ".").concat(k.src)), qi(A, k);
|
|
16550
16548
|
});
|
|
16551
16549
|
})(m[p]);
|
|
16552
16550
|
if (typeof b == "object") return b.value;
|
|
@@ -16561,10 +16559,10 @@ function hD() {
|
|
|
16561
16559
|
var S = { name: d, def: b, recreate: !1, del: [], add: [], change: [] };
|
|
16562
16560
|
if ("" + (m.primKey.keyPath || "") != "" + (b.primKey.keyPath || "") || m.primKey.auto !== b.primKey.auto) S.recreate = !0, p.change.push(S);
|
|
16563
16561
|
else {
|
|
16564
|
-
var A = m.idxByName,
|
|
16565
|
-
for (M in A)
|
|
16566
|
-
for (M in
|
|
16567
|
-
var H = A[M], T =
|
|
16562
|
+
var A = m.idxByName, k = b.idxByName, M = void 0;
|
|
16563
|
+
for (M in A) k[M] || S.del.push(M);
|
|
16564
|
+
for (M in k) {
|
|
16565
|
+
var H = A[M], T = k[M];
|
|
16568
16566
|
H ? H.src !== T.src && S.change.push(T) : S.add.push(T);
|
|
16569
16567
|
}
|
|
16570
16568
|
(0 < S.del.length || 0 < S.add.length || 0 < S.change.length) && p.change.push(S);
|
|
@@ -16590,8 +16588,8 @@ function hD() {
|
|
|
16590
16588
|
function Gi(a, l, d) {
|
|
16591
16589
|
var p = {};
|
|
16592
16590
|
return x(l.objectStoreNames, 0).forEach(function(m) {
|
|
16593
|
-
for (var b = d.objectStore(m), S = ds(Il(M = b.keyPath), M || "", !0, !1, !!b.autoIncrement, M && typeof M != "string", !0), A = [],
|
|
16594
|
-
var H = b.index(b.indexNames[
|
|
16591
|
+
for (var b = d.objectStore(m), S = ds(Il(M = b.keyPath), M || "", !0, !1, !!b.autoIncrement, M && typeof M != "string", !0), A = [], k = 0; k < b.indexNames.length; ++k) {
|
|
16592
|
+
var H = b.index(b.indexNames[k]), M = H.keyPath, H = ds(H.name, M, !!H.unique, !!H.multiEntry, !1, M && typeof M != "string", !1);
|
|
16595
16593
|
A.push(H);
|
|
16596
16594
|
}
|
|
16597
16595
|
p[m] = fs(m, S, A);
|
|
@@ -16602,8 +16600,8 @@ function hD() {
|
|
|
16602
16600
|
var b = p[m], S = d.objectStore(b);
|
|
16603
16601
|
a._hasGetAll = "getAll" in S;
|
|
16604
16602
|
for (var A = 0; A < S.indexNames.length; ++A) {
|
|
16605
|
-
var
|
|
16606
|
-
!l[b] || (M = l[b].idxByName[H]) && (M.name =
|
|
16603
|
+
var k = S.indexNames[A], M = S.index(k).keyPath, H = typeof M == "string" ? M : "[" + x(M).join("+") + "]";
|
|
16604
|
+
!l[b] || (M = l[b].idxByName[H]) && (M.name = k, delete l[b].idxByName[H], l[b].idxByName[k] = M);
|
|
16607
16605
|
}
|
|
16608
16606
|
}
|
|
16609
16607
|
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 && (a._hasGetAll = !1);
|
|
@@ -16662,28 +16660,28 @@ function hD() {
|
|
|
16662
16660
|
u(this, arguments.length ? { d: 1, from: a, to: 1 < arguments.length ? l : a } : { d: 0 });
|
|
16663
16661
|
};
|
|
16664
16662
|
function vi(a, l, d) {
|
|
16665
|
-
var p =
|
|
16663
|
+
var p = He(l, d);
|
|
16666
16664
|
if (!isNaN(p)) {
|
|
16667
16665
|
if (0 < p) throw RangeError();
|
|
16668
16666
|
if (ws(a)) return u(a, { from: l, to: d, d: 1 });
|
|
16669
16667
|
var m = a.l, p = a.r;
|
|
16670
|
-
if (
|
|
16671
|
-
if (0 <
|
|
16672
|
-
|
|
16668
|
+
if (He(d, a.from) < 0) return m ? vi(m, l, d) : a.l = { from: l, to: d, d: 1, l: null, r: null }, Ll(a);
|
|
16669
|
+
if (0 < He(l, a.to)) return p ? vi(p, l, d) : a.r = { from: l, to: d, d: 1, l: null, r: null }, Ll(a);
|
|
16670
|
+
He(l, a.from) < 0 && (a.from = l, a.l = null, a.d = p ? p.d + 1 : 1), 0 < He(d, a.to) && (a.to = d, a.r = null, a.d = a.l ? a.l.d + 1 : 1), d = !a.r, m && !a.l && yi(a, m), p && d && yi(a, p);
|
|
16673
16671
|
}
|
|
16674
16672
|
}
|
|
16675
16673
|
function yi(a, l) {
|
|
16676
|
-
ws(l) || (function d(p,
|
|
16677
|
-
var b =
|
|
16678
|
-
vi(p, b, S), A && d(p, A),
|
|
16674
|
+
ws(l) || (function d(p, k) {
|
|
16675
|
+
var b = k.from, S = k.to, A = k.l, k = k.r;
|
|
16676
|
+
vi(p, b, S), A && d(p, A), k && d(p, k);
|
|
16679
16677
|
})(a, l);
|
|
16680
16678
|
}
|
|
16681
16679
|
function Pl(a, l) {
|
|
16682
16680
|
var d = Ki(l), p = d.next();
|
|
16683
16681
|
if (p.done) return !1;
|
|
16684
16682
|
for (var m = p.value, b = Ki(a), S = b.next(m.from), A = S.value; !p.done && !S.done; ) {
|
|
16685
|
-
if (
|
|
16686
|
-
|
|
16683
|
+
if (He(A.from, m.to) <= 0 && 0 <= He(A.to, m.from)) return !0;
|
|
16684
|
+
He(m.from, A.from) < 0 ? m = (p = d.next(A.from)).value : A = (S = b.next(m.from)).value;
|
|
16687
16685
|
}
|
|
16688
16686
|
return !1;
|
|
16689
16687
|
}
|
|
@@ -16692,10 +16690,10 @@ function hD() {
|
|
|
16692
16690
|
return { next: function(d) {
|
|
16693
16691
|
for (var p = 0 < arguments.length; l; ) switch (l.s) {
|
|
16694
16692
|
case 0:
|
|
16695
|
-
if (l.s = 1, p) for (; l.n.l &&
|
|
16693
|
+
if (l.s = 1, p) for (; l.n.l && He(d, l.n.from) < 0; ) l = { up: l, n: l.n.l, s: 1 };
|
|
16696
16694
|
else for (; l.n.l; ) l = { up: l, n: l.n.l, s: 1 };
|
|
16697
16695
|
case 1:
|
|
16698
|
-
if (l.s = 2, !p ||
|
|
16696
|
+
if (l.s = 2, !p || He(d, l.n.to) <= 0) return { value: l.n, done: !1 };
|
|
16699
16697
|
case 2:
|
|
16700
16698
|
if (l.n.r) {
|
|
16701
16699
|
l.s = 3, l = { up: l, n: l.n.r, s: 0 };
|
|
@@ -16719,7 +16717,7 @@ function hD() {
|
|
|
16719
16717
|
return s(l).forEach(function(d) {
|
|
16720
16718
|
a[d] ? yi(a[d], l[d]) : a[d] = (function p(m) {
|
|
16721
16719
|
var b, S, A = {};
|
|
16722
|
-
for (b in m) g(m, b) && (S = m[b], A[b] = !S || typeof S != "object" ||
|
|
16720
|
+
for (b in m) g(m, b) && (S = m[b], A[b] = !S || typeof S != "object" || G.has(S.constructor) ? S : p(S));
|
|
16723
16721
|
return A;
|
|
16724
16722
|
})(l[d]);
|
|
16725
16723
|
}), a;
|
|
@@ -16740,7 +16738,7 @@ function hD() {
|
|
|
16740
16738
|
}), this;
|
|
16741
16739
|
}, hasKey: function(a) {
|
|
16742
16740
|
var l = Ki(this).next(a).value;
|
|
16743
|
-
return l &&
|
|
16741
|
+
return l && He(l.from, a) <= 0 && 0 <= He(l.to, a);
|
|
16744
16742
|
} })[X] = function() {
|
|
16745
16743
|
return Ki(this);
|
|
16746
16744
|
}, tn));
|
|
@@ -16758,23 +16756,23 @@ function hD() {
|
|
|
16758
16756
|
var S, A = /^idb\:\/\/(.*)\/(.*)\//.exec(b);
|
|
16759
16757
|
A && (b = A[1], A = A[2], (S = wr["idb://".concat(b, "/").concat(A)]) && jl(S, a, d, l));
|
|
16760
16758
|
}
|
|
16761
|
-
d.forEach(function(
|
|
16762
|
-
return
|
|
16759
|
+
d.forEach(function(k) {
|
|
16760
|
+
return k();
|
|
16763
16761
|
});
|
|
16764
16762
|
}
|
|
16765
16763
|
function jl(a, l, d, p) {
|
|
16766
16764
|
for (var m = [], b = 0, S = Object.entries(a.queries.query); b < S.length; b++) {
|
|
16767
|
-
for (var A = S[b],
|
|
16765
|
+
for (var A = S[b], k = A[0], M = [], H = 0, T = A[1]; H < T.length; H++) {
|
|
16768
16766
|
var B = T[H];
|
|
16769
16767
|
Ss(l, B.obsSet) ? B.subscribers.forEach(function(U) {
|
|
16770
16768
|
return d.add(U);
|
|
16771
16769
|
}) : p && M.push(B);
|
|
16772
16770
|
}
|
|
16773
|
-
p && m.push([
|
|
16771
|
+
p && m.push([k, M]);
|
|
16774
16772
|
}
|
|
16775
16773
|
if (p) for (var O = 0, N = m; O < N.length; O++) {
|
|
16776
|
-
var P = N[O],
|
|
16777
|
-
a.queries.query[
|
|
16774
|
+
var P = N[O], k = P[0], M = P[1];
|
|
16775
|
+
a.queries.query[k] = M;
|
|
16778
16776
|
}
|
|
16779
16777
|
}
|
|
16780
16778
|
function nh(a) {
|
|
@@ -16799,21 +16797,21 @@ function hD() {
|
|
|
16799
16797
|
})) : (H.onerror = Cn(O), U = U.oldVersion > Math.pow(2, 62) ? 0 : U.oldVersion, T = U < 1, a.idbdb = P.result, b && eh(a, H), Jf(a, U / 10, H, O));
|
|
16800
16798
|
}, O), P.onsuccess = J(function() {
|
|
16801
16799
|
H = null;
|
|
16802
|
-
var U, z, W, q,
|
|
16800
|
+
var U, z, W, q, Y, ae = a.idbdb = P.result, de = x(ae.objectStoreNames);
|
|
16803
16801
|
if (0 < de.length) try {
|
|
16804
|
-
var
|
|
16805
|
-
if (l.autoSchema) z =
|
|
16806
|
-
else if (Yi(a, a._dbSchema,
|
|
16802
|
+
var ie = ae.transaction((q = de).length === 1 ? q[0] : q, "readonly");
|
|
16803
|
+
if (l.autoSchema) z = ae, W = ie, (U = a).verno = z.version / 10, W = U._dbSchema = Gi(0, z, W), U._storeNames = x(z.objectStoreNames, 0), Vi(U, [U._allTables], s(W), W);
|
|
16804
|
+
else if (Yi(a, a._dbSchema, ie), ((Y = gs(Gi(0, (Y = a).idbdb, ie), Y._dbSchema)).add.length || Y.change.some(function(le) {
|
|
16807
16805
|
return le.add.length || le.change.length;
|
|
16808
|
-
})) && !b) 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."),
|
|
16809
|
-
Wi(a,
|
|
16806
|
+
})) && !b) 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."), ae.close(), m = ae.version + 1, b = !0, B(A());
|
|
16807
|
+
Wi(a, ie);
|
|
16810
16808
|
} catch {
|
|
16811
16809
|
}
|
|
16812
|
-
en.push(a),
|
|
16810
|
+
en.push(a), ae.onversionchange = J(function(le) {
|
|
16813
16811
|
l.vcFired = !0, a.on("versionchange").fire(le);
|
|
16814
|
-
}),
|
|
16812
|
+
}), ae.onclose = J(function() {
|
|
16815
16813
|
a.close({ disableAutoOpen: !1 });
|
|
16816
|
-
}), T && (
|
|
16814
|
+
}), T && (Y = a._deps, ie = N, ae = Y.indexedDB, Y = Y.IDBKeyRange, ys(ae) || ie === Fr || vs(ae, Y).put({ name: ie }).catch(xe)), B();
|
|
16817
16815
|
}, O);
|
|
16818
16816
|
}).catch(function(B) {
|
|
16819
16817
|
switch (B?.name) {
|
|
@@ -16826,14 +16824,14 @@ function hD() {
|
|
|
16826
16824
|
return ue.reject(B);
|
|
16827
16825
|
});
|
|
16828
16826
|
}
|
|
16829
|
-
var
|
|
16827
|
+
var k, M = l.dbReadyResolve, H = null, T = !1;
|
|
16830
16828
|
return ue.race([p, (typeof navigator > "u" ? ue.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(B) {
|
|
16831
16829
|
function O() {
|
|
16832
16830
|
return indexedDB.databases().finally(B);
|
|
16833
16831
|
}
|
|
16834
|
-
|
|
16832
|
+
k = setInterval(O, 100), O();
|
|
16835
16833
|
}).finally(function() {
|
|
16836
|
-
return clearInterval(
|
|
16834
|
+
return clearInterval(k);
|
|
16837
16835
|
}) : Promise.resolve()).then(A)]).then(function() {
|
|
16838
16836
|
return S(), l.onReadyBeingFired = [], ue.resolve(bs(function() {
|
|
16839
16837
|
return a.on.ready.fire(a.vip);
|
|
@@ -16873,9 +16871,9 @@ function hD() {
|
|
|
16873
16871
|
return a.throw(b);
|
|
16874
16872
|
});
|
|
16875
16873
|
function m(b) {
|
|
16876
|
-
return function(
|
|
16877
|
-
var A = b(
|
|
16878
|
-
return A.done ?
|
|
16874
|
+
return function(k) {
|
|
16875
|
+
var A = b(k), k = A.value;
|
|
16876
|
+
return A.done ? k : k && typeof k.then == "function" ? k.then(d, p) : c(k) ? Promise.all(k).then(d, p) : d(k);
|
|
16879
16877
|
};
|
|
16880
16878
|
}
|
|
16881
16879
|
return m(l)();
|
|
@@ -16894,8 +16892,8 @@ function hD() {
|
|
|
16894
16892
|
}), z;
|
|
16895
16893
|
}
|
|
16896
16894
|
l = S(p.primaryKey.keyPath, 0, p.primaryKey), m[":id"] = [l];
|
|
16897
|
-
for (var A = 0,
|
|
16898
|
-
var M =
|
|
16895
|
+
for (var A = 0, k = p.indexes; A < k.length; A++) {
|
|
16896
|
+
var M = k[A];
|
|
16899
16897
|
S(M.keyPath, 0, M);
|
|
16900
16898
|
}
|
|
16901
16899
|
function H(T) {
|
|
@@ -16933,7 +16931,7 @@ function hD() {
|
|
|
16933
16931
|
function _s(a, l, d, p) {
|
|
16934
16932
|
return d = d || {}, p = p || "", s(a).forEach(function(m) {
|
|
16935
16933
|
var b, S, A;
|
|
16936
|
-
g(l, m) ? (b = a[m], S = l[m], typeof b == "object" && typeof S == "object" && b && S ? (A =
|
|
16934
|
+
g(l, m) ? (b = a[m], S = l[m], typeof b == "object" && typeof S == "object" && b && S ? (A = re(b)) !== re(S) ? d[p + m] = l[m] : A === "Object" ? _s(b, S, d, p + m + ".") : b !== S && (d[p + m] = l[m]) : b !== S && (d[p + m] = l[m])) : d[p + m] = void 0;
|
|
16937
16935
|
}), s(l).forEach(function(m) {
|
|
16938
16936
|
g(a, m) || (d[p + m] = l[m]);
|
|
16939
16937
|
}), d;
|
|
@@ -16945,15 +16943,15 @@ function hD() {
|
|
|
16945
16943
|
return r(r({}, a), { table: function(l) {
|
|
16946
16944
|
var d = a.table(l), p = d.schema.primaryKey;
|
|
16947
16945
|
return r(r({}, d), { mutate: function(m) {
|
|
16948
|
-
var b = pe.trans, S = b.table(l).hook, A = S.deleting,
|
|
16946
|
+
var b = pe.trans, S = b.table(l).hook, A = S.deleting, k = S.creating, M = S.updating;
|
|
16949
16947
|
switch (m.type) {
|
|
16950
16948
|
case "add":
|
|
16951
|
-
if (
|
|
16949
|
+
if (k.fire === xe) break;
|
|
16952
16950
|
return b._promise("readwrite", function() {
|
|
16953
16951
|
return H(m);
|
|
16954
16952
|
}, !0);
|
|
16955
16953
|
case "put":
|
|
16956
|
-
if (
|
|
16954
|
+
if (k.fire === xe && M.fire === xe) break;
|
|
16957
16955
|
return b._promise("readwrite", function() {
|
|
16958
16956
|
return H(m);
|
|
16959
16957
|
}, !0);
|
|
@@ -16980,21 +16978,21 @@ function hD() {
|
|
|
16980
16978
|
var B, O, N, P = pe.trans, U = T.keys || xs(p, T);
|
|
16981
16979
|
if (!U) throw new Error("Keys missing");
|
|
16982
16980
|
return (T = T.type === "add" || T.type === "put" ? r(r({}, T), { keys: U }) : r({}, T)).type !== "delete" && (T.values = i([], T.values)), T.keys && (T.keys = i([], T.keys)), B = d, N = U, ((O = T).type === "add" ? Promise.resolve([]) : B.getMany({ trans: O.trans, keys: N, cache: "immutable" })).then(function(z) {
|
|
16983
|
-
var W = U.map(function(q,
|
|
16984
|
-
var
|
|
16985
|
-
return T.type === "delete" ? A.fire.call(fe, q, le, P) : T.type === "add" || le === void 0 ? (
|
|
16986
|
-
g(
|
|
16981
|
+
var W = U.map(function(q, Y) {
|
|
16982
|
+
var ae, de, ie, le = z[Y], fe = { onerror: null, onsuccess: null };
|
|
16983
|
+
return T.type === "delete" ? A.fire.call(fe, q, le, P) : T.type === "add" || le === void 0 ? (ae = k.fire.call(fe, q, T.values[Y], P), q == null && ae != null && (T.keys[Y] = q = ae, p.outbound || Q(T.values[Y], p.keyPath, q))) : (ae = _s(le, T.values[Y]), (de = M.fire.call(fe, ae, q, le, P)) && (ie = T.values[Y], Object.keys(de).forEach(function(ce) {
|
|
16984
|
+
g(ie, ce) ? ie[ce] = de[ce] : Q(ie, ce, de[ce]);
|
|
16987
16985
|
}))), fe;
|
|
16988
16986
|
});
|
|
16989
16987
|
return d.mutate(T).then(function(q) {
|
|
16990
|
-
for (var
|
|
16991
|
-
var le = (
|
|
16992
|
-
le == null ? fe.onerror && fe.onerror(
|
|
16988
|
+
for (var Y = q.failures, ae = q.results, de = q.numFailures, q = q.lastResult, ie = 0; ie < U.length; ++ie) {
|
|
16989
|
+
var le = (ae || U)[ie], fe = W[ie];
|
|
16990
|
+
le == null ? fe.onerror && fe.onerror(Y[ie]) : fe.onsuccess && fe.onsuccess(T.type === "put" && z[ie] ? T.values[ie] : le);
|
|
16993
16991
|
}
|
|
16994
|
-
return { failures:
|
|
16992
|
+
return { failures: Y, results: ae, numFailures: de, lastResult: q };
|
|
16995
16993
|
}).catch(function(q) {
|
|
16996
|
-
return W.forEach(function(
|
|
16997
|
-
return
|
|
16994
|
+
return W.forEach(function(Y) {
|
|
16995
|
+
return Y.onerror && Y.onerror(q);
|
|
16998
16996
|
}), Promise.reject(q);
|
|
16999
16997
|
});
|
|
17000
16998
|
});
|
|
@@ -17005,7 +17003,7 @@ function hD() {
|
|
|
17005
17003
|
function Ul(a, l, d) {
|
|
17006
17004
|
try {
|
|
17007
17005
|
if (!l || l.keys.length < a.length) return null;
|
|
17008
|
-
for (var p = [], m = 0, b = 0; m < l.keys.length && b < a.length; ++m)
|
|
17006
|
+
for (var p = [], m = 0, b = 0; m < l.keys.length && b < a.length; ++m) He(l.keys[m], a[b]) === 0 && (p.push(d ? Ue(l.values[m]) : l.values[m]), ++b);
|
|
17009
17007
|
return p.length === a.length ? p : null;
|
|
17010
17008
|
} catch {
|
|
17011
17009
|
return null;
|
|
@@ -17018,7 +17016,7 @@ function hD() {
|
|
|
17018
17016
|
if (!p.cache) return d.getMany(p);
|
|
17019
17017
|
var m = Ul(p.keys, p.trans._cache, p.cache === "clone");
|
|
17020
17018
|
return m ? ue.resolve(m) : d.getMany(p).then(function(b) {
|
|
17021
|
-
return p.trans._cache = { keys: p.keys, values: p.cache === "clone" ?
|
|
17019
|
+
return p.trans._cache = { keys: p.keys, values: p.cache === "clone" ? Ue(b) : b }, b;
|
|
17022
17020
|
});
|
|
17023
17021
|
}, mutate: function(p) {
|
|
17024
17022
|
return p.type !== "add" && (p.trans._cache = null), d.mutate(p);
|
|
@@ -17045,16 +17043,16 @@ function hD() {
|
|
|
17045
17043
|
if (pe.subscr && m !== "readonly") throw new te.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(pe.querier));
|
|
17046
17044
|
return a.transaction(p, m, b);
|
|
17047
17045
|
}, table: function(p) {
|
|
17048
|
-
var m = a.table(p), b = m.schema, S = b.primaryKey, T = b.indexes, A = S.extractKey,
|
|
17046
|
+
var m = a.table(p), b = m.schema, S = b.primaryKey, T = b.indexes, A = S.extractKey, k = S.outbound, M = S.autoIncrement && T.filter(function(O) {
|
|
17049
17047
|
return O.compound && O.keyPath.includes(S.keyPath);
|
|
17050
17048
|
}), H = r(r({}, m), { mutate: function(O) {
|
|
17051
17049
|
function N(ce) {
|
|
17052
17050
|
return ce = "idb://".concat(l, "/").concat(p, "/").concat(ce), q[ce] || (q[ce] = new Dt());
|
|
17053
17051
|
}
|
|
17054
|
-
var P, U, z, W = O.trans, q = O.mutatedParts || (O.mutatedParts = {}),
|
|
17052
|
+
var P, U, z, W = O.trans, q = O.mutatedParts || (O.mutatedParts = {}), Y = N(""), ae = N(":dels"), de = O.type, fe = O.type === "deleteRange" ? [O.range] : O.type === "delete" ? [O.keys] : O.values.length < 50 ? [xs(S, O).filter(function(ce) {
|
|
17055
17053
|
return ce;
|
|
17056
|
-
}), O.values] : [],
|
|
17057
|
-
return c(
|
|
17054
|
+
}), O.values] : [], ie = fe[0], le = fe[1], fe = O.trans._cache;
|
|
17055
|
+
return c(ie) ? (Y.addKeys(ie), (fe = de === "delete" || ie.length === le.length ? Ul(ie, fe) : null) || ae.addKeys(ie), (fe || le) && (P = N, U = fe, z = le, b.indexes.forEach(function(ce) {
|
|
17058
17056
|
var ye = P(ce.name || "");
|
|
17059
17057
|
function ke(Ne) {
|
|
17060
17058
|
return Ne != null ? ce.extractKey(Ne) : null;
|
|
@@ -17066,12 +17064,12 @@ function hD() {
|
|
|
17066
17064
|
}
|
|
17067
17065
|
(U || z).forEach(function(Ne, Ct) {
|
|
17068
17066
|
var Re = U && ke(U[Ct]), Ct = z && ke(z[Ct]);
|
|
17069
|
-
|
|
17067
|
+
He(Re, Ct) !== 0 && (Re != null && Oe(Re), Ct != null && Oe(Ct));
|
|
17070
17068
|
});
|
|
17071
|
-
}))) :
|
|
17069
|
+
}))) : ie ? (le = { from: (le = ie.lower) !== null && le !== void 0 ? le : a.MIN_KEY, to: (le = ie.upper) !== null && le !== void 0 ? le : a.MAX_KEY }, ae.add(le), Y.add(le)) : (Y.add(d), ae.add(d), b.indexes.forEach(function(ce) {
|
|
17072
17070
|
return N(ce.name).add(d);
|
|
17073
17071
|
})), m.mutate(O).then(function(ce) {
|
|
17074
|
-
return !
|
|
17072
|
+
return !ie || O.type !== "add" && O.type !== "put" || (Y.addKeys(ce.results), M && M.forEach(function(ye) {
|
|
17075
17073
|
for (var ke = O.values.map(function(Re) {
|
|
17076
17074
|
return ye.extractKey(Re);
|
|
17077
17075
|
}), Oe = ye.keyPath.findIndex(function(Re) {
|
|
@@ -17094,24 +17092,24 @@ function hD() {
|
|
|
17094
17092
|
if (U) {
|
|
17095
17093
|
var W = function(le) {
|
|
17096
17094
|
return le = "idb://".concat(l, "/").concat(p, "/").concat(le), z[le] || (z[le] = new Dt());
|
|
17097
|
-
}, q = W(""),
|
|
17098
|
-
if ((O === "query" && U.isPrimaryKey && !N.values ?
|
|
17095
|
+
}, q = W(""), Y = W(":dels"), P = B[O](N), U = P[0], P = P[1];
|
|
17096
|
+
if ((O === "query" && U.isPrimaryKey && !N.values ? Y : W(U.name || "")).add(P), !U.isPrimaryKey) {
|
|
17099
17097
|
if (O !== "count") {
|
|
17100
|
-
var
|
|
17098
|
+
var ae = O === "query" && k && N.values && m.query(r(r({}, N), { values: !1 }));
|
|
17101
17099
|
return m[O].apply(this, arguments).then(function(le) {
|
|
17102
17100
|
if (O === "query") {
|
|
17103
|
-
if (
|
|
17101
|
+
if (k && N.values) return ae.then(function(ke) {
|
|
17104
17102
|
return ke = ke.result, q.addKeys(ke), le;
|
|
17105
17103
|
});
|
|
17106
17104
|
var fe = N.values ? le.result.map(A) : le.result;
|
|
17107
|
-
(N.values ? q :
|
|
17105
|
+
(N.values ? q : Y).addKeys(fe);
|
|
17108
17106
|
} else if (O === "openCursor") {
|
|
17109
17107
|
var ce = le, ye = N.values;
|
|
17110
17108
|
return ce && Object.create(ce, { key: { get: function() {
|
|
17111
|
-
return
|
|
17109
|
+
return Y.addKey(ce.primaryKey), ce.key;
|
|
17112
17110
|
} }, primaryKey: { get: function() {
|
|
17113
17111
|
var ke = ce.primaryKey;
|
|
17114
|
-
return
|
|
17112
|
+
return Y.addKey(ke), ke;
|
|
17115
17113
|
} }, value: { get: function() {
|
|
17116
17114
|
return ye && q.addKey(ce.primaryKey), ce.value;
|
|
17117
17115
|
} } });
|
|
@@ -17119,7 +17117,7 @@ function hD() {
|
|
|
17119
17117
|
return le;
|
|
17120
17118
|
});
|
|
17121
17119
|
}
|
|
17122
|
-
|
|
17120
|
+
Y.add(d);
|
|
17123
17121
|
}
|
|
17124
17122
|
}
|
|
17125
17123
|
return m[O].apply(this, arguments);
|
|
@@ -17138,18 +17136,18 @@ function hD() {
|
|
|
17138
17136
|
})), l);
|
|
17139
17137
|
}
|
|
17140
17138
|
function Rs(a, l) {
|
|
17141
|
-
return d = a, ((p = l).lower === void 0 || (p.lowerOpen ? 0 <
|
|
17139
|
+
return d = a, ((p = l).lower === void 0 || (p.lowerOpen ? 0 < He(d, p.lower) : 0 <= He(d, p.lower))) && (a = a, (l = l).upper === void 0 || (l.upperOpen ? He(a, l.upper) < 0 : He(a, l.upper) <= 0));
|
|
17142
17140
|
var d, p;
|
|
17143
17141
|
}
|
|
17144
17142
|
function $l(a, l, B, p, m, b) {
|
|
17145
17143
|
if (!B || B.length === 0) return a;
|
|
17146
|
-
var S = l.query.index, A = S.multiEntry,
|
|
17144
|
+
var S = l.query.index, A = S.multiEntry, k = l.query.range, M = p.schema.primaryKey.extractKey, H = S.extractKey, T = (S.lowLevelIndex || S).extractKey, B = B.reduce(function(O, N) {
|
|
17147
17145
|
var P = O, U = [];
|
|
17148
17146
|
if (N.type === "add" || N.type === "put") for (var z = new Dt(), W = N.values.length - 1; 0 <= W; --W) {
|
|
17149
|
-
var q,
|
|
17150
|
-
z.hasKey(
|
|
17151
|
-
return Rs(ce,
|
|
17152
|
-
}) : Rs(q,
|
|
17147
|
+
var q, Y = N.values[W], ae = M(Y);
|
|
17148
|
+
z.hasKey(ae) || (q = H(Y), (A && c(q) ? q.some(function(ce) {
|
|
17149
|
+
return Rs(ce, k);
|
|
17150
|
+
}) : Rs(q, k)) && (z.addKey(ae), U.push(Y)));
|
|
17153
17151
|
}
|
|
17154
17152
|
switch (N.type) {
|
|
17155
17153
|
case "add":
|
|
@@ -17164,11 +17162,11 @@ function hD() {
|
|
|
17164
17162
|
}));
|
|
17165
17163
|
break;
|
|
17166
17164
|
case "put":
|
|
17167
|
-
var
|
|
17165
|
+
var ie = new Dt().addKeys(N.values.map(function(ye) {
|
|
17168
17166
|
return M(ye);
|
|
17169
17167
|
}));
|
|
17170
17168
|
P = O.filter(function(ye) {
|
|
17171
|
-
return !
|
|
17169
|
+
return !ie.hasKey(l.values ? M(ye) : ye);
|
|
17172
17170
|
}).concat(l.values ? U : U.map(function(ye) {
|
|
17173
17171
|
return M(ye);
|
|
17174
17172
|
}));
|
|
@@ -17188,17 +17186,17 @@ function hD() {
|
|
|
17188
17186
|
return P;
|
|
17189
17187
|
}, a);
|
|
17190
17188
|
return B === a ? a : (B.sort(function(O, N) {
|
|
17191
|
-
return
|
|
17189
|
+
return He(T(O), T(N)) || He(M(O), M(N));
|
|
17192
17190
|
}), l.limit && l.limit < 1 / 0 && (B.length > l.limit ? B.length = l.limit : a.length === l.limit && B.length < l.limit && (m.dirty = !0)), b ? Object.freeze(B) : B);
|
|
17193
17191
|
}
|
|
17194
17192
|
function Wl(a, l) {
|
|
17195
|
-
return
|
|
17193
|
+
return He(a.lower, l.lower) === 0 && He(a.upper, l.upper) === 0 && !!a.lowerOpen == !!l.lowerOpen && !!a.upperOpen == !!l.upperOpen;
|
|
17196
17194
|
}
|
|
17197
17195
|
function ah(a, l) {
|
|
17198
17196
|
return (function(d, p, m, b) {
|
|
17199
17197
|
if (d === void 0) return p !== void 0 ? -1 : 0;
|
|
17200
17198
|
if (p === void 0) return 1;
|
|
17201
|
-
if ((p =
|
|
17199
|
+
if ((p = He(d, p)) === 0) {
|
|
17202
17200
|
if (m && b) return 0;
|
|
17203
17201
|
if (m) return 1;
|
|
17204
17202
|
if (b) return -1;
|
|
@@ -17207,7 +17205,7 @@ function hD() {
|
|
|
17207
17205
|
})(a.lower, l.lower, a.lowerOpen, l.lowerOpen) <= 0 && 0 <= (function(d, p, m, b) {
|
|
17208
17206
|
if (d === void 0) return p !== void 0 ? 1 : 0;
|
|
17209
17207
|
if (p === void 0) return -1;
|
|
17210
|
-
if ((p =
|
|
17208
|
+
if ((p = He(d, p)) === 0) {
|
|
17211
17209
|
if (m && b) return 0;
|
|
17212
17210
|
if (m) return -1;
|
|
17213
17211
|
if (b) return 1;
|
|
@@ -17227,7 +17225,7 @@ function hD() {
|
|
|
17227
17225
|
var l = a.schema.name;
|
|
17228
17226
|
return r(r({}, a), { transaction: function(d, p, m) {
|
|
17229
17227
|
var b, S, A = a.transaction(d, p, m);
|
|
17230
|
-
return p === "readwrite" && (S = (b = new AbortController()).signal, m = function(
|
|
17228
|
+
return p === "readwrite" && (S = (b = new AbortController()).signal, m = function(k) {
|
|
17231
17229
|
return function() {
|
|
17232
17230
|
if (b.abort(), p === "readwrite") {
|
|
17233
17231
|
for (var M = /* @__PURE__ */ new Set(), H = 0, T = d; H < T.length; H++) {
|
|
@@ -17236,16 +17234,16 @@ function hD() {
|
|
|
17236
17234
|
var N = a.table(B), P = O.optimisticOps.filter(function(ye) {
|
|
17237
17235
|
return ye.trans === A;
|
|
17238
17236
|
});
|
|
17239
|
-
if (A._explicit &&
|
|
17237
|
+
if (A._explicit && k && A.mutatedParts) for (var U = 0, z = Object.values(O.queries.query); U < z.length; U++) for (var W = 0, q = (de = z[U]).slice(); W < q.length; W++) Ss((ie = q[W]).obsSet, A.mutatedParts) && (Z(de, ie), ie.subscribers.forEach(function(ye) {
|
|
17240
17238
|
return M.add(ye);
|
|
17241
17239
|
}));
|
|
17242
17240
|
else if (0 < P.length) {
|
|
17243
17241
|
O.optimisticOps = O.optimisticOps.filter(function(ye) {
|
|
17244
17242
|
return ye.trans !== A;
|
|
17245
17243
|
});
|
|
17246
|
-
for (var
|
|
17244
|
+
for (var Y = 0, ae = Object.values(O.queries.query); Y < ae.length; Y++) for (var de, ie, le, fe = 0, ce = (de = ae[Y]).slice(); fe < ce.length; fe++) (ie = ce[fe]).res != null && A.mutatedParts && (k && !ie.dirty ? (le = Object.isFrozen(ie.res), le = $l(ie.res, ie.req, P, N, ie, le), ie.dirty ? (Z(de, ie), ie.subscribers.forEach(function(ye) {
|
|
17247
17245
|
return M.add(ye);
|
|
17248
|
-
})) : le !==
|
|
17246
|
+
})) : le !== ie.res && (ie.res = le, ie.promise = ue.resolve({ result: le }))) : (ie.dirty && Z(de, ie), ie.subscribers.forEach(function(ye) {
|
|
17249
17247
|
return M.add(ye);
|
|
17250
17248
|
})));
|
|
17251
17249
|
}
|
|
@@ -17263,24 +17261,24 @@ function hD() {
|
|
|
17263
17261
|
var S = pe.trans;
|
|
17264
17262
|
if (m.outbound || S.db._options.cache === "disabled" || S.explicit || S.idbtrans.mode !== "readwrite") return p.mutate(b);
|
|
17265
17263
|
var A = wr["idb://".concat(l, "/").concat(d)];
|
|
17266
|
-
return A ? (S = p.mutate(b), b.type !== "add" && b.type !== "put" || !(50 <= b.values.length || xs(m, b).some(function(
|
|
17267
|
-
return
|
|
17268
|
-
})) ? (A.optimisticOps.push(b), b.mutatedParts && Zi(b.mutatedParts), S.then(function(
|
|
17269
|
-
0 <
|
|
17264
|
+
return A ? (S = p.mutate(b), b.type !== "add" && b.type !== "put" || !(50 <= b.values.length || xs(m, b).some(function(k) {
|
|
17265
|
+
return k == null;
|
|
17266
|
+
})) ? (A.optimisticOps.push(b), b.mutatedParts && Zi(b.mutatedParts), S.then(function(k) {
|
|
17267
|
+
0 < k.numFailures && (Z(A.optimisticOps, b), (k = zl(0, b, k)) && A.optimisticOps.push(k), b.mutatedParts && Zi(b.mutatedParts));
|
|
17270
17268
|
}), S.catch(function() {
|
|
17271
17269
|
Z(A.optimisticOps, b), b.mutatedParts && Zi(b.mutatedParts);
|
|
17272
|
-
})) : S.then(function(
|
|
17270
|
+
})) : S.then(function(k) {
|
|
17273
17271
|
var M = zl(0, r(r({}, b), { values: b.values.map(function(H, T) {
|
|
17274
17272
|
var B;
|
|
17275
|
-
return
|
|
17276
|
-
}) }),
|
|
17273
|
+
return k.failures[T] ? H : (H = (B = m.keyPath) !== null && B !== void 0 && B.includes(".") ? Ue(H) : r({}, H), Q(H, m.keyPath, k.results[T]), H);
|
|
17274
|
+
}) }), k);
|
|
17277
17275
|
A.optimisticOps.push(M), queueMicrotask(function() {
|
|
17278
17276
|
return b.mutatedParts && Zi(b.mutatedParts);
|
|
17279
17277
|
});
|
|
17280
17278
|
}), S) : p.mutate(b);
|
|
17281
17279
|
}, query: function(b) {
|
|
17282
17280
|
if (!Bl(pe, p) || !Fl("query", b)) return p.query(b);
|
|
17283
|
-
var S = ((M = pe.trans) === null || M === void 0 ? void 0 : M.db._options.cache) === "immutable", T = pe, A = T.requery,
|
|
17281
|
+
var S = ((M = pe.trans) === null || M === void 0 ? void 0 : M.db._options.cache) === "immutable", T = pe, A = T.requery, k = T.signal, M = (function(N, P, U, z) {
|
|
17284
17282
|
var W = wr["idb://".concat(N, "/").concat(P)];
|
|
17285
17283
|
if (!W) return [];
|
|
17286
17284
|
if (!(P = W.queries[U])) return [null, !1, W, null];
|
|
@@ -17288,16 +17286,16 @@ function hD() {
|
|
|
17288
17286
|
if (!q) return [null, !1, W, null];
|
|
17289
17287
|
switch (U) {
|
|
17290
17288
|
case "query":
|
|
17291
|
-
var
|
|
17292
|
-
return
|
|
17289
|
+
var Y = q.find(function(ae) {
|
|
17290
|
+
return ae.req.limit === z.limit && ae.req.values === z.values && Wl(ae.req.query.range, z.query.range);
|
|
17293
17291
|
});
|
|
17294
|
-
return
|
|
17295
|
-
return ("limit" in
|
|
17292
|
+
return Y ? [Y, !0, W, q] : [q.find(function(ae) {
|
|
17293
|
+
return ("limit" in ae.req ? ae.req.limit : 1 / 0) >= z.limit && (!z.values || ae.req.values) && ah(ae.req.query.range, z.query.range);
|
|
17296
17294
|
}), !1, W, q];
|
|
17297
17295
|
case "count":
|
|
17298
|
-
return
|
|
17299
|
-
return Wl(
|
|
17300
|
-
}), [
|
|
17296
|
+
return Y = q.find(function(ae) {
|
|
17297
|
+
return Wl(ae.req.query.range, z.query.range);
|
|
17298
|
+
}), [Y, !!Y, W, q];
|
|
17301
17299
|
}
|
|
17302
17300
|
})(l, d, "query", b), H = M[0], T = M[1], B = M[2], O = M[3];
|
|
17303
17301
|
return H && T ? H.obsSet = b.obsSet : (T = p.query(b).then(function(N) {
|
|
@@ -17305,11 +17303,11 @@ function hD() {
|
|
|
17305
17303
|
if (H && (H.res = P), S) {
|
|
17306
17304
|
for (var U = 0, z = P.length; U < z; ++U) Object.freeze(P[U]);
|
|
17307
17305
|
Object.freeze(P);
|
|
17308
|
-
} else N.result =
|
|
17306
|
+
} else N.result = Ue(P);
|
|
17309
17307
|
return N;
|
|
17310
17308
|
}).catch(function(N) {
|
|
17311
17309
|
return O && H && Z(O, H), Promise.reject(N);
|
|
17312
|
-
}), H = { obsSet: b.obsSet, promise: T, subscribers: /* @__PURE__ */ new Set(), type: "query", req: b, dirty: !1 }, O ? O.push(H) : (O = [H], (B = B || (wr["idb://".concat(l, "/").concat(d)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[b.query.index.name || ""] = O)), lh(H, O, A,
|
|
17310
|
+
}), H = { obsSet: b.obsSet, promise: T, subscribers: /* @__PURE__ */ new Set(), type: "query", req: b, dirty: !1 }, O ? O.push(H) : (O = [H], (B = B || (wr["idb://".concat(l, "/").concat(d)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[b.query.index.name || ""] = O)), lh(H, O, A, k), H.promise.then(function(N) {
|
|
17313
17311
|
return { result: $l(N.result, b, B?.optimisticOps, p, H, S) };
|
|
17314
17312
|
});
|
|
17315
17313
|
} });
|
|
@@ -17380,8 +17378,8 @@ function hD() {
|
|
|
17380
17378
|
l.close(a);
|
|
17381
17379
|
var A = l._deps.indexedDB.deleteDatabase(l.name);
|
|
17382
17380
|
A.onsuccess = J(function() {
|
|
17383
|
-
var
|
|
17384
|
-
|
|
17381
|
+
var k, M, H;
|
|
17382
|
+
k = l._deps, M = l.name, H = k.indexedDB, k = k.IDBKeyRange, ys(H) || M === Fr || vs(H, k).delete(M).catch(xe), m();
|
|
17385
17383
|
}), A.onerror = Cn(b), A.onblocked = l._fireOnBlocked;
|
|
17386
17384
|
}
|
|
17387
17385
|
if (d) throw new te.InvalidArgument("Invalid closeOptions argument to db.delete()");
|
|
@@ -17408,7 +17406,7 @@ function hD() {
|
|
|
17408
17406
|
var m = arguments.length;
|
|
17409
17407
|
if (m < 2) throw new te.InvalidArgument("Too few arguments");
|
|
17410
17408
|
for (var b = new Array(m - 1); --m; ) b[m - 1] = arguments[m];
|
|
17411
|
-
return p = b.pop(), [l,
|
|
17409
|
+
return p = b.pop(), [l, K(b), p];
|
|
17412
17410
|
}).apply(this, arguments);
|
|
17413
17411
|
return this._transaction.apply(this, a);
|
|
17414
17412
|
}, at.prototype._transaction = function(a, l, d) {
|
|
@@ -17442,7 +17440,7 @@ function hD() {
|
|
|
17442
17440
|
T(M);
|
|
17443
17441
|
}) : rt(M);
|
|
17444
17442
|
}
|
|
17445
|
-
var
|
|
17443
|
+
var k = (function M(H, T, B, O, N) {
|
|
17446
17444
|
return ue.resolve().then(function() {
|
|
17447
17445
|
var P = pe.transless || pe, U = H._createTransaction(T, B, H._dbSchema, O);
|
|
17448
17446
|
if (U.explicit = !0, P = { trans: U, transless: P }, O) U.idbtrans = O.idbtrans;
|
|
@@ -17470,9 +17468,9 @@ function hD() {
|
|
|
17470
17468
|
});
|
|
17471
17469
|
});
|
|
17472
17470
|
}).bind(null, this, b, S, m, d);
|
|
17473
|
-
return m ? m._promise(b,
|
|
17474
|
-
return p._whenReady(
|
|
17475
|
-
}) : this._whenReady(
|
|
17471
|
+
return m ? m._promise(b, k, "lock") : pe.trans ? Dn(pe.transless, function() {
|
|
17472
|
+
return p._whenReady(k);
|
|
17473
|
+
}) : this._whenReady(k);
|
|
17476
17474
|
}, at.prototype.table = function(a) {
|
|
17477
17475
|
if (!g(this._allTables, a)) throw new te.InvalidTable("Table ".concat(a, " does not exist"));
|
|
17478
17476
|
return this._allTables[a];
|
|
@@ -17482,7 +17480,7 @@ function hD() {
|
|
|
17482
17480
|
this._middlewares = {}, this.verno = 0;
|
|
17483
17481
|
var p = at.dependencies;
|
|
17484
17482
|
this._options = l = r({ addons: at.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;
|
|
17485
|
-
var m, b, S, A,
|
|
17483
|
+
var m, b, S, A, k, M = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: xe, dbReadyPromise: null, cancelOpen: xe, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: l.autoOpen };
|
|
17486
17484
|
M.dbReadyPromise = new ue(function(T) {
|
|
17487
17485
|
M.dbReadyResolve = T;
|
|
17488
17486
|
}), M.openCanceller = new ue(function(T, B) {
|
|
@@ -17530,14 +17528,14 @@ function hD() {
|
|
|
17530
17528
|
});
|
|
17531
17529
|
})), this.Version = (A = this, fi(th.prototype, function(T) {
|
|
17532
17530
|
this.db = A, this._cfg = { version: T, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
|
|
17533
|
-
})), this.WhereClause = (
|
|
17534
|
-
if (this.db =
|
|
17535
|
-
return
|
|
17531
|
+
})), this.WhereClause = (k = this, fi(kl.prototype, function(T, B, O) {
|
|
17532
|
+
if (this.db = k, this._ctx = { table: T, index: B === ":id" ? null : B, or: O }, this._cmp = this._ascending = He, this._descending = function(N, P) {
|
|
17533
|
+
return He(P, N);
|
|
17536
17534
|
}, this._max = function(N, P) {
|
|
17537
|
-
return 0 <
|
|
17535
|
+
return 0 < He(N, P) ? N : P;
|
|
17538
17536
|
}, this._min = function(N, P) {
|
|
17539
|
-
return
|
|
17540
|
-
}, this._IDBKeyRange =
|
|
17537
|
+
return He(N, P) < 0 ? N : P;
|
|
17538
|
+
}, this._IDBKeyRange = k._deps.IDBKeyRange, !this._IDBKeyRange) throw new te.MissingAPI();
|
|
17541
17539
|
})), this.on("versionchange", function(T) {
|
|
17542
17540
|
0 < T.newVersion ? console.warn("Another connection wants to upgrade database '".concat(d.name, "'. Closing db now to resume the upgrade.")) : console.warn("Another connection wants to delete database '".concat(d.name, "'. Closing db now to resume the delete request.")), d.close({ disableAutoOpen: !1 });
|
|
17543
17541
|
}), this.on("blocked", function(T) {
|
|
@@ -17582,7 +17580,7 @@ function hD() {
|
|
|
17582
17580
|
}
|
|
17583
17581
|
function Vl(a) {
|
|
17584
17582
|
var l, d = !1, p = new uh(function(m) {
|
|
17585
|
-
var b = Te(a), S, A = !1,
|
|
17583
|
+
var b = Te(a), S, A = !1, k = {}, M = {}, H = { get closed() {
|
|
17586
17584
|
return A;
|
|
17587
17585
|
}, unsubscribe: function() {
|
|
17588
17586
|
A || (A = !0, S && S.abort(), T && er.storagemutated.unsubscribe(O));
|
|
@@ -17591,21 +17589,21 @@ function hD() {
|
|
|
17591
17589
|
var T = !1, B = function() {
|
|
17592
17590
|
return Ur(N);
|
|
17593
17591
|
}, O = function(P) {
|
|
17594
|
-
Qi(
|
|
17592
|
+
Qi(k, P), Ss(M, k) && B();
|
|
17595
17593
|
}, N = function() {
|
|
17596
17594
|
var P, U, z;
|
|
17597
|
-
!A && eo.indexedDB && (
|
|
17598
|
-
var q =
|
|
17595
|
+
!A && eo.indexedDB && (k = {}, P = {}, S && S.abort(), S = new AbortController(), z = (function(W) {
|
|
17596
|
+
var q = Ee();
|
|
17599
17597
|
try {
|
|
17600
17598
|
b && ht();
|
|
17601
|
-
var
|
|
17602
|
-
return
|
|
17599
|
+
var Y = nt(a, W);
|
|
17600
|
+
return Y = b ? Y.finally($e) : Y;
|
|
17603
17601
|
} finally {
|
|
17604
17602
|
q && Ie();
|
|
17605
17603
|
}
|
|
17606
17604
|
})(U = { subscr: P, signal: S.signal, requery: B, querier: a, trans: null }), Promise.resolve(z).then(function(W) {
|
|
17607
|
-
d = !0, l = W, A || U.signal.aborted || (
|
|
17608
|
-
for (var
|
|
17605
|
+
d = !0, l = W, A || U.signal.aborted || (k = {}, (function(q) {
|
|
17606
|
+
for (var Y in q) if (g(q, Y)) return;
|
|
17609
17607
|
return 1;
|
|
17610
17608
|
})(M = P) || T || (er(pi, O), T = !0), Ur(function() {
|
|
17611
17609
|
return !A && m.next && m.next(W);
|
|
@@ -17688,7 +17686,7 @@ function hD() {
|
|
|
17688
17686
|
typeof l == "string" ? Q(a, l, void 0) : "length" in l && [].map.call(l, function(d) {
|
|
17689
17687
|
Q(a, d, void 0);
|
|
17690
17688
|
});
|
|
17691
|
-
}, shallowClone: $, deepClone:
|
|
17689
|
+
}, shallowClone: $, deepClone: Ue, getObjectDiff: _s, cmp: He, asap: I, minKey: -1 / 0, addons: [], connections: en, errnames: ut, dependencies: eo, cache: wr, semVer: "4.2.1", version: "4.2.1".split(".").map(function(a) {
|
|
17692
17690
|
return parseInt(a);
|
|
17693
17691
|
}).reduce(function(a, l, d) {
|
|
17694
17692
|
return a + l / Math.pow(10, 2 * d);
|
|
@@ -17716,7 +17714,7 @@ function hD() {
|
|
|
17716
17714
|
return !a || a instanceof Me || a instanceof TypeError || a instanceof SyntaxError || !a.name || !Ve[a.name] ? a : (l = new Ve[a.name](l || a.message, a), "stack" in a && E(l, "stack", { get: function() {
|
|
17717
17715
|
return this.inner.stack;
|
|
17718
17716
|
} }), l);
|
|
17719
|
-
}, Un(Fe), r(zn, Object.freeze({ __proto__: null, Dexie: zn, liveQuery: Vl, Entity: wl, cmp:
|
|
17717
|
+
}, Un(Fe), r(zn, Object.freeze({ __proto__: null, Dexie: zn, liveQuery: Vl, Entity: wl, cmp: He, PropModification: ui, replacePrefix: function(a, l) {
|
|
17720
17718
|
return new ui({ replacePrefix: [a, l] });
|
|
17721
17719
|
}, add: function(a) {
|
|
17722
17720
|
return new ui({ add: a });
|
|
@@ -17805,32 +17803,32 @@ function SD({
|
|
|
17805
17803
|
const [r, i] = me({}), [o, s] = me([]), [c, u] = me(!1);
|
|
17806
17804
|
async function f(E, D, _) {
|
|
17807
17805
|
console.log(`Looking for ${E.length} court dates' cases...`), u(!0);
|
|
17808
|
-
const R = new Map(E.map((
|
|
17809
|
-
for (const
|
|
17810
|
-
!D && r[
|
|
17806
|
+
const R = new Map(E.map((ne) => [Wt(ne), ne])), x = {}, j = [], L = {}, I = [], F = {};
|
|
17807
|
+
for (const ne of R.keys())
|
|
17808
|
+
!D && r[ne] ? x[ne] = r[ne] : j.push(ne);
|
|
17811
17809
|
console.log(`Found ${j.length} missing from memory, checking cache...`);
|
|
17812
|
-
for (const
|
|
17813
|
-
const
|
|
17814
|
-
|
|
17810
|
+
for (const ne of j) {
|
|
17811
|
+
const K = _ ? null : await mD(ne);
|
|
17812
|
+
K ? L[ne] = K : I.push(ne);
|
|
17815
17813
|
}
|
|
17816
|
-
await h(L, !0), console.log(`Found ${
|
|
17817
|
-
const Q =
|
|
17814
|
+
await h(L, !0), console.log(`Found ${I.length} missing from cache, fetching from API...`);
|
|
17815
|
+
const Q = I.filter((ne) => !ne.startsWith("neg_")), $ = I.filter((ne) => ne.startsWith("neg_"));
|
|
17818
17816
|
if (Q.length > 10)
|
|
17819
|
-
for await (const
|
|
17820
|
-
Object.entries(
|
|
17821
|
-
Q.includes(
|
|
17817
|
+
for await (const ne of oD(t))
|
|
17818
|
+
Object.entries(ne).forEach(([K, G]) => {
|
|
17819
|
+
Q.includes(K) && (F[K] = G);
|
|
17822
17820
|
}), await h(F, !1);
|
|
17823
17821
|
else
|
|
17824
17822
|
await Promise.all(
|
|
17825
|
-
Q.map(async (
|
|
17826
|
-
const
|
|
17827
|
-
F[
|
|
17823
|
+
Q.map(async (ne) => {
|
|
17824
|
+
const K = R.get(ne), G = await wu(K.CourtDateID.toString(), t);
|
|
17825
|
+
F[ne] = G ?? [], await h(F, !1);
|
|
17828
17826
|
})
|
|
17829
17827
|
);
|
|
17830
17828
|
return await Promise.all(
|
|
17831
|
-
$.map(async (
|
|
17832
|
-
const
|
|
17833
|
-
F[
|
|
17829
|
+
$.map(async (ne) => {
|
|
17830
|
+
const K = R.get(ne), G = await wu(K.CourtDateID.toString(), t, St.NEGOTIATIONS);
|
|
17831
|
+
F[ne] = G ?? [], await h(F, !1);
|
|
17834
17832
|
})
|
|
17835
17833
|
), u(!1), console.log(
|
|
17836
17834
|
`Cases fetched - Memory: ${Object.keys(x).length}, Cache: ${Object.keys(L).length}, Fetched: ${Object.keys(F).length}`
|
|
@@ -17882,30 +17880,30 @@ function ED({
|
|
|
17882
17880
|
const { getTownshipName: o, activeUser: s, allUsers: c } = Ot(), [u, f] = me([]), [h, g] = me(""), [y, v] = me([]), E = vt(/* @__PURE__ */ new Set());
|
|
17883
17881
|
we(() => {
|
|
17884
17882
|
v([]), i.searchTerm.trim() !== "" && (async () => {
|
|
17885
|
-
for await (const
|
|
17886
|
-
v((F) => [...F, ...
|
|
17883
|
+
for await (const I of iD(i.searchTerm, n))
|
|
17884
|
+
v((F) => [...F, ...I]);
|
|
17887
17885
|
})();
|
|
17888
17886
|
}, [i.searchTerm]);
|
|
17889
|
-
function D(
|
|
17890
|
-
const Q = ur(F), $ =
|
|
17891
|
-
return { filtered:
|
|
17887
|
+
function D(I, F) {
|
|
17888
|
+
const Q = ur(F), $ = I.length, ne = Ca(I, i, Q).length, K = I.filter((G) => !ji(G, Q)).length;
|
|
17889
|
+
return { filtered: ne, total: $, unsettled: K };
|
|
17892
17890
|
}
|
|
17893
|
-
const _ = zt(() => t.filter((
|
|
17891
|
+
const _ = zt(() => t.filter((I) => I.CourtDateID == null ? (console.warn(
|
|
17894
17892
|
"[UseCalendarEvents] Skipping date with missing CourtDateID — check API response field names:",
|
|
17895
|
-
|
|
17896
|
-
), !1) : !0).filter((
|
|
17893
|
+
I
|
|
17894
|
+
), !1) : !0).filter((I) => y.length === 0 || i.searchTerm.trim() === "" ? !0 : y.includes(I.CourtDateID)).filter((I) => i.showInPerson ? !0 : I.Type !== lt.IN_PERSON).filter((I) => i.showVirtual ? !0 : I.Type !== lt.VIRTUAL).filter((I) => i.showUnknown ? !0 : I.Type !== lt.UNKNOWN && I.Type !== null).filter((I) => i.showOnlyAssignedToUser !== null ? i.showOnlyAssignedToUser === -1 ? I.FirstChair === null && I.SecondChair === null : I.FirstChair === i.showOnlyAssignedToUser || I.SecondChair === i.showOnlyAssignedToUser : !0).filter((I) => i.municode ? I.MuniCode === i.municode : !0).filter((I) => {
|
|
17897
17895
|
if (i.showOnlyUnsettled || i.showOnlyWithoutEvidence || i.showOnlyUnreviewed) {
|
|
17898
|
-
const F = e[Wt(
|
|
17899
|
-
return F === void 0 || F.length === 0 ? !1 : Ca(F, i, ur(
|
|
17896
|
+
const F = e[Wt(I)];
|
|
17897
|
+
return F === void 0 || F.length === 0 ? !1 : Ca(F, i, ur(I.MuniCode)).length > 0;
|
|
17900
17898
|
}
|
|
17901
17899
|
return !0;
|
|
17902
|
-
}).filter((
|
|
17903
|
-
const
|
|
17900
|
+
}).filter((I) => i.dateTypeFilter === "negotiations" ? I.DateType === St.NEGOTIATIONS : i.dateTypeFilter === "scar" ? I.DateType !== St.NEGOTIATIONS : !0), [t, i, s, e, y]), R = zt(() => {
|
|
17901
|
+
const I = [];
|
|
17904
17902
|
for (const F of _) {
|
|
17905
17903
|
if (!F.CourtDate) continue;
|
|
17906
17904
|
const Q = e[Wt(F)] || [], $ = Array.isArray(F.MultipleDates) && F.MultipleDates.length > 0;
|
|
17907
17905
|
if (Q.length === 0) {
|
|
17908
|
-
|
|
17906
|
+
I.push({
|
|
17909
17907
|
id: F.CourtDateID.toString(),
|
|
17910
17908
|
title: `${o(F.MuniCode)} (${F.MuniCode}) x0 (0)${$ ? " (day 1)" : ""}`,
|
|
17911
17909
|
start: F.CourtDate,
|
|
@@ -17925,49 +17923,49 @@ function ED({
|
|
|
17925
17923
|
});
|
|
17926
17924
|
continue;
|
|
17927
17925
|
}
|
|
17928
|
-
const
|
|
17929
|
-
for (const
|
|
17930
|
-
let
|
|
17931
|
-
if (
|
|
17932
|
-
const
|
|
17933
|
-
|
|
17926
|
+
const ne = /* @__PURE__ */ new Map();
|
|
17927
|
+
for (const G of Q) {
|
|
17928
|
+
let Se = "original";
|
|
17929
|
+
if (G.AdjournedDate) {
|
|
17930
|
+
const oe = new Date(G.AdjournedDate);
|
|
17931
|
+
Se = `${oe.getFullYear()}-${String(oe.getMonth() + 1).padStart(2, "0")}-${String(oe.getDate()).padStart(2, "0")}`;
|
|
17934
17932
|
}
|
|
17935
|
-
const
|
|
17936
|
-
|
|
17933
|
+
const Ue = ne.get(Se) || [];
|
|
17934
|
+
ne.set(Se, [...Ue, G]);
|
|
17937
17935
|
}
|
|
17938
|
-
const
|
|
17939
|
-
if (
|
|
17940
|
-
const { filtered:
|
|
17941
|
-
(
|
|
17936
|
+
const K = ne.get("original") || [];
|
|
17937
|
+
if (K.length > 0) {
|
|
17938
|
+
const { filtered: G, total: Se, unsettled: Ue } = D(K, F.MuniCode), oe = (se) => (se || "").toLowerCase() === "oa", re = K.some(
|
|
17939
|
+
(se) => oe(se.SCARDeterminationAction) || oe(se.VillageSCARDeterminationAction)
|
|
17942
17940
|
), X = [
|
|
17943
17941
|
"courtdate-event",
|
|
17944
17942
|
F.Type?.toString().toLowerCase() || "unknown",
|
|
17945
17943
|
...F.DateType ? [F.DateType.toString().toLowerCase()] : []
|
|
17946
17944
|
];
|
|
17947
|
-
|
|
17945
|
+
re && X.push("adjourned-no-date"), I.push({
|
|
17948
17946
|
id: F.CourtDateID.toString(),
|
|
17949
|
-
title: `${o(F.MuniCode)} (${F.MuniCode}) x${
|
|
17947
|
+
title: `${o(F.MuniCode)} (${F.MuniCode}) x${G} (${Se})${$ ? " (day 1)" : ""}`,
|
|
17950
17948
|
start: F.CourtDate,
|
|
17951
17949
|
allDay: !1,
|
|
17952
17950
|
extendedProps: {
|
|
17953
17951
|
...F,
|
|
17954
17952
|
_bucketKey: "original",
|
|
17955
|
-
_bucketFiltered:
|
|
17956
|
-
_bucketTotal:
|
|
17957
|
-
_bucketUnsettled:
|
|
17953
|
+
_bucketFiltered: G,
|
|
17954
|
+
_bucketTotal: Se,
|
|
17955
|
+
_bucketUnsettled: Ue
|
|
17958
17956
|
},
|
|
17959
17957
|
classNames: X
|
|
17960
17958
|
});
|
|
17961
17959
|
}
|
|
17962
17960
|
if (i.showAdjournmentDates)
|
|
17963
|
-
for (const [
|
|
17964
|
-
if (
|
|
17965
|
-
const { filtered:
|
|
17966
|
-
|
|
17967
|
-
id: `adjournment-${F.CourtDateID}-${
|
|
17968
|
-
title: `Adjournment - ${o(F.MuniCode)} (${F.MuniCode}) x${
|
|
17961
|
+
for (const [G, Se] of ne) {
|
|
17962
|
+
if (G === "original") continue;
|
|
17963
|
+
const { filtered: Ue, total: oe, unsettled: re } = D(Se, F.MuniCode);
|
|
17964
|
+
I.push({
|
|
17965
|
+
id: `adjournment-${F.CourtDateID}-${G}`,
|
|
17966
|
+
title: `Adjournment - ${o(F.MuniCode)} (${F.MuniCode}) x${Ue} (${oe})`,
|
|
17969
17967
|
start: (() => {
|
|
17970
|
-
const [X,
|
|
17968
|
+
const [X, se, Z] = G.split("-").map(Number), he = new Date(X, se - 1, Z);
|
|
17971
17969
|
if (F.HearingTime) {
|
|
17972
17970
|
const [ve, Te] = F.HearingTime.split(":").map(Number);
|
|
17973
17971
|
he.setHours(ve, Te, 0, 0);
|
|
@@ -17977,10 +17975,10 @@ function ED({
|
|
|
17977
17975
|
allDay: !1,
|
|
17978
17976
|
extendedProps: {
|
|
17979
17977
|
...F,
|
|
17980
|
-
_bucketKey:
|
|
17981
|
-
_bucketFiltered:
|
|
17982
|
-
_bucketTotal:
|
|
17983
|
-
_bucketUnsettled:
|
|
17978
|
+
_bucketKey: G,
|
|
17979
|
+
_bucketFiltered: Ue,
|
|
17980
|
+
_bucketTotal: oe,
|
|
17981
|
+
_bucketUnsettled: re
|
|
17984
17982
|
},
|
|
17985
17983
|
classNames: [
|
|
17986
17984
|
"adjournment-event",
|
|
@@ -17990,81 +17988,81 @@ function ED({
|
|
|
17990
17988
|
});
|
|
17991
17989
|
}
|
|
17992
17990
|
}
|
|
17993
|
-
return
|
|
17994
|
-
}, [_, i, o, e]), x = zt(() => _.flatMap((
|
|
17991
|
+
return I;
|
|
17992
|
+
}, [_, i, o, e]), x = zt(() => _.flatMap((I) => !Array.isArray(I.MultipleDates) || I.MultipleDates.length === 0 ? [] : I.MultipleDates.filter(Boolean).map((F, Q) => {
|
|
17995
17993
|
const $ = new Date(F);
|
|
17996
|
-
if (
|
|
17997
|
-
const [
|
|
17998
|
-
$.setHours(
|
|
17994
|
+
if (I.HearingTime) {
|
|
17995
|
+
const [ne, K] = I.HearingTime.split(":").map(Number);
|
|
17996
|
+
$.setHours(ne, K, 0, 0);
|
|
17999
17997
|
}
|
|
18000
17998
|
return {
|
|
18001
|
-
id: `multipledate-${
|
|
18002
|
-
title: `${o(
|
|
17999
|
+
id: `multipledate-${I.CourtDateID}-${Q}`,
|
|
18000
|
+
title: `${o(I.MuniCode)} (${I.MuniCode}) (day ${Q + 2})`,
|
|
18003
18001
|
start: $,
|
|
18004
18002
|
allDay: !1,
|
|
18005
|
-
extendedProps:
|
|
18003
|
+
extendedProps: I,
|
|
18006
18004
|
classNames: [
|
|
18007
18005
|
"multipledate-event",
|
|
18008
|
-
|
|
18009
|
-
...
|
|
18006
|
+
I.Type?.toString().toLowerCase() || "unknown",
|
|
18007
|
+
...I.DateType ? [I.DateType.toString().toLowerCase()] : []
|
|
18010
18008
|
]
|
|
18011
18009
|
};
|
|
18012
|
-
})), [_, o]), j = zt(() => i.showUploadDeadlines ? _.filter((
|
|
18013
|
-
id: `deadline-${
|
|
18014
|
-
title: `Upload ${o(
|
|
18015
|
-
start:
|
|
18010
|
+
})), [_, o]), j = zt(() => i.showUploadDeadlines ? _.filter((I) => I.UploadDeadline !== null).map((I) => ({
|
|
18011
|
+
id: `deadline-${I.CourtDateID}`,
|
|
18012
|
+
title: `Upload ${o(I.MuniCode)} (${I.MuniCode})`,
|
|
18013
|
+
start: I.UploadDeadline,
|
|
18016
18014
|
allDay: !0,
|
|
18017
|
-
extendedProps:
|
|
18015
|
+
extendedProps: I,
|
|
18018
18016
|
classNames: [
|
|
18019
18017
|
"deadline-event",
|
|
18020
|
-
|
|
18021
|
-
...
|
|
18022
|
-
|
|
18018
|
+
I.Type?.toString().toLowerCase() || "unknown",
|
|
18019
|
+
...I.DateType ? [I.DateType.toString().toLowerCase()] : [],
|
|
18020
|
+
I.Lifecycle === $t.UPLOADED ? "status-uploaded" : I.Lifecycle === $t.ASSIGNED ? "status-assigned" : "status-unknown"
|
|
18023
18021
|
]
|
|
18024
18022
|
})) : [], [_, i, o]);
|
|
18025
18023
|
we(() => {
|
|
18026
18024
|
r || (f([...R, ...j, ...x]), g(JSON.stringify([...R, ...j, ...x])));
|
|
18027
18025
|
}, [R, j, x, r]), we(() => {
|
|
18028
18026
|
if (Array.isArray(u)) {
|
|
18029
|
-
const
|
|
18030
|
-
E.current =
|
|
18027
|
+
const I = new Set(u.map((Q) => Q.id?.toString()).filter(Boolean)), F = setTimeout(() => {
|
|
18028
|
+
E.current = I;
|
|
18031
18029
|
}, 0);
|
|
18032
18030
|
return () => clearTimeout(F);
|
|
18033
18031
|
}
|
|
18034
18032
|
}, [u, h]);
|
|
18035
|
-
function L(
|
|
18036
|
-
let Q = [], $ = 0,
|
|
18037
|
-
F && (
|
|
18038
|
-
function
|
|
18039
|
-
if (!
|
|
18033
|
+
function L(I, F) {
|
|
18034
|
+
let Q = [], $ = 0, ne = null, K = null;
|
|
18035
|
+
F && (ne = F.view.activeStart, K = F.view.activeEnd);
|
|
18036
|
+
function G(Me) {
|
|
18037
|
+
if (!ne || !K) return !0;
|
|
18040
18038
|
const We = new Date(Me.start);
|
|
18041
|
-
return We >=
|
|
18039
|
+
return We >= ne && We < K;
|
|
18042
18040
|
}
|
|
18043
|
-
Array.isArray(u) && (Q = u.filter(
|
|
18041
|
+
Array.isArray(u) && (Q = u.filter(G).filter((Me) => {
|
|
18044
18042
|
const We = Me.id?.toString();
|
|
18045
18043
|
return We && !E.current.has(We);
|
|
18046
|
-
}), $ = Q.findIndex((Me) => Me.id ===
|
|
18047
|
-
const
|
|
18048
|
-
|
|
18049
|
-
const
|
|
18044
|
+
}), $ = Q.findIndex((Me) => Me.id === I.event.id));
|
|
18045
|
+
const Se = I.event.id?.toString();
|
|
18046
|
+
Se && !E.current.has(Se) ? (I.el.classList.add("pop-in-ccalendar-event"), I.el.style.animationDelay = `${30 * ($ >= 0 ? $ : 0)}ms`) : (I.el.classList.remove("pop-in-ccalendar-event"), I.el.style.animationDelay = "0ms");
|
|
18047
|
+
const Ue = I.event.extendedProps._bucketUnsettled ?? 0, oe = I.event.extendedProps._bucketTotal ?? 0, re = I.event.extendedProps._bucketKey !== "original" && I.event.extendedProps._bucketKey !== void 0, X = I.event.extendedProps.MuniCode, se = `${o(X)} (${X})`, Z = I.event.extendedProps.FirstChair, he = Z != null ? c[Z] : null, ve = he ? `${he.UserFirstName} ${he.UserLastName}` : "Unassigned", Te = I.event.start?.toLocaleString("en-US", {
|
|
18050
18048
|
month: "2-digit",
|
|
18051
18049
|
day: "2-digit",
|
|
18052
18050
|
year: "2-digit",
|
|
18053
18051
|
hour: "numeric",
|
|
18054
18052
|
minute: "2-digit",
|
|
18055
18053
|
hour12: !0
|
|
18056
|
-
}),
|
|
18057
|
-
<div><strong>${
|
|
18054
|
+
}), Ce = `
|
|
18055
|
+
<div><strong>${se}</strong><br/>
|
|
18058
18056
|
<em>Date:</em> ${Te}<br/>
|
|
18059
|
-
${
|
|
18060
|
-
<em>Upload Deadline:</em> ${
|
|
18061
|
-
<em>Cases:</em> ${
|
|
18062
|
-
<em>Status:</em> ${
|
|
18057
|
+
${re ? `<strong>Adjournment event for ${I.event.extendedProps._bucketKey}</strong><br/>` : ""}
|
|
18058
|
+
<em>Upload Deadline:</em> ${I.event.extendedProps.UploadDeadline}<br/>
|
|
18059
|
+
<em>Cases:</em> ${Ue} Open (${oe} Total)<br/>
|
|
18060
|
+
<em>Status:</em> ${I.event.extendedProps.Lifecycle}<br />
|
|
18063
18061
|
<em>First Chair:</em> ${ve}<br/>
|
|
18064
18062
|
<em>Click for more details</em>
|
|
18065
18063
|
</div>
|
|
18066
18064
|
`;
|
|
18067
|
-
|
|
18065
|
+
I.el.setAttribute("data-tooltip-id", "event-tooltip"), I.el.setAttribute("data-tooltip-html", Ce);
|
|
18068
18066
|
}
|
|
18069
18067
|
return { events: u, filteredDates: _, eventHash: h, handleEventMount: L };
|
|
18070
18068
|
}
|
|
@@ -18208,16 +18206,16 @@ function cA({ apiKey: t, activeUser: e, showLegend: n = !0 }) {
|
|
|
18208
18206
|
return /* @__PURE__ */ w(bS, { apiKey: t, activeUser: e, children: /* @__PURE__ */ w(RD, { apiKey: t, activeUser: e, showLegend: n }) });
|
|
18209
18207
|
}
|
|
18210
18208
|
function RD({ apiKey: t, activeUser: e, showLegend: n }) {
|
|
18211
|
-
const { isAdmin: r } = Ot(), [i, o] = me(null), s = vt(null), [c, u] = me({ ...hS }), [f, h] = me("dayGridMonth"), [g, y] = me(/* @__PURE__ */ new Date()), [v, E] = me(!1), D = vt(f), { modalIsOpen: _, setIsOpen: R, selectedCourtDate: x, setSelectedCourtDate: j, modalMode: L, setModalMode:
|
|
18209
|
+
const { isAdmin: r } = Ot(), [i, o] = me(null), s = vt(null), [c, u] = me({ ...hS }), [f, h] = me("dayGridMonth"), [g, y] = me(/* @__PURE__ */ new Date()), [v, E] = me(!1), D = vt(f), { modalIsOpen: _, setIsOpen: R, selectedCourtDate: x, setSelectedCourtDate: j, modalMode: L, setModalMode: I, selectedDate: F, openCreateModal: Q, openDetailsModal: $, handleEventClick: ne } = DD(), { scrollbarClicked: K, clearScrollbarClick: G } = CD(), { courtDates: Se, negotiations: Ue, updateCourtDateInMemory: oe, handleUpdateChair: re } = AD({ apiKey: t, activeUser: e, setSelectedCourtDate: j }), X = zt(() => [...Se, ...Ue], [Se, Ue]), { allCases: se, selectedCases: Z, isFetchingCases: he, addPartialCasesToMemoryAndCache: ve, deleteCaseMemoryAndCache: Te } = SD({ apiKey: t, courtDates: X, selectedCourtDate: x }), { events: Ce, filteredDates: Me, eventHash: We, handleEventMount: tt } = ED({
|
|
18212
18210
|
courtDates: X,
|
|
18213
|
-
allCases:
|
|
18211
|
+
allCases: se,
|
|
18214
18212
|
apiKey: t,
|
|
18215
18213
|
modalIsOpen: _,
|
|
18216
18214
|
filterCtx: c
|
|
18217
18215
|
});
|
|
18218
18216
|
function ct(te) {
|
|
18219
|
-
if (
|
|
18220
|
-
|
|
18217
|
+
if (K) {
|
|
18218
|
+
G();
|
|
18221
18219
|
return;
|
|
18222
18220
|
}
|
|
18223
18221
|
console.log("Date clicked:", te.dateStr), h("listDay"), y(te.date), i && i.gotoDate(te.date);
|
|
@@ -18245,7 +18243,7 @@ function RD({ apiKey: t, activeUser: e, showLegend: n }) {
|
|
|
18245
18243
|
aD,
|
|
18246
18244
|
{
|
|
18247
18245
|
value: {
|
|
18248
|
-
updateCourtDateInMemory:
|
|
18246
|
+
updateCourtDateInMemory: oe,
|
|
18249
18247
|
updateCases: (te) => ve(te, !1),
|
|
18250
18248
|
deleteCases: Te
|
|
18251
18249
|
},
|
|
@@ -18265,7 +18263,7 @@ function RD({ apiKey: t, activeUser: e, showLegend: n }) {
|
|
|
18265
18263
|
isAdmin: r
|
|
18266
18264
|
}
|
|
18267
18265
|
),
|
|
18268
|
-
f === "listDay" && /* @__PURE__ */ w(Be, { spacing: 2, direction: "column", px: 1, mb: 1, children: Object.values(
|
|
18266
|
+
f === "listDay" && /* @__PURE__ */ w(Be, { spacing: 2, direction: "column", px: 1, mb: 1, children: Object.values(Ce).filter((te) => new Date(te.start).toDateString() === g.toDateString()).filter((te) => te.extendedProps.Notes && te.extendedProps.Notes !== "").map((te) => /* @__PURE__ */ w(
|
|
18269
18267
|
be,
|
|
18270
18268
|
{
|
|
18271
18269
|
children: `${te.title} - ${te.extendedProps.Notes}`
|
|
@@ -18286,8 +18284,8 @@ function RD({ apiKey: t, activeUser: e, showLegend: n }) {
|
|
|
18286
18284
|
eventClassNames: ["court-event"],
|
|
18287
18285
|
headerToolbar: !1,
|
|
18288
18286
|
ref: ut,
|
|
18289
|
-
events:
|
|
18290
|
-
eventClick:
|
|
18287
|
+
events: Ce,
|
|
18288
|
+
eventClick: ne,
|
|
18291
18289
|
dateClick: ct,
|
|
18292
18290
|
datesSet: (te) => y(te.start),
|
|
18293
18291
|
eventDidMount: (te) => tt(te, i)
|
|
@@ -18300,8 +18298,8 @@ function RD({ apiKey: t, activeUser: e, showLegend: n }) {
|
|
|
18300
18298
|
filteredDates: Me,
|
|
18301
18299
|
setSelectedDate: $,
|
|
18302
18300
|
currentDate: g,
|
|
18303
|
-
onUpdateChair:
|
|
18304
|
-
allCases:
|
|
18301
|
+
onUpdateChair: re,
|
|
18302
|
+
allCases: se,
|
|
18305
18303
|
isPrinting: v
|
|
18306
18304
|
}
|
|
18307
18305
|
),
|
|
@@ -18310,7 +18308,7 @@ function RD({ apiKey: t, activeUser: e, showLegend: n }) {
|
|
|
18310
18308
|
{
|
|
18311
18309
|
modalIsOpen: _,
|
|
18312
18310
|
modalMode: L,
|
|
18313
|
-
setModalMode:
|
|
18311
|
+
setModalMode: I,
|
|
18314
18312
|
setIsOpen: R,
|
|
18315
18313
|
selectedCourtDate: x,
|
|
18316
18314
|
selectedDate: F,
|