@uxland/primary-shell 7.48.0 → 7.49.0
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/component-DZoGhnlq.js +68 -0
- package/dist/component-DZoGhnlq.js.map +1 -0
- package/dist/{index-Pwqfd9a_.js → index-hcyyv0bc.js} +6 -5
- package/dist/index-hcyyv0bc.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.umd.cjs +17 -4
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{plugin-GzwtrpSe.js → plugin-CEAhs2O3.js} +1035 -1035
- package/dist/plugin-CEAhs2O3.js.map +1 -0
- package/dist/primary/shell/src/locales.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/import-data-manager/component/styles.css +22 -24
- package/src/api/import-data-manager/component/template.ts +15 -0
- package/src/locales.ts +1 -0
- package/dist/component-DvhXFXbi.js +0 -53
- package/dist/component-DvhXFXbi.js.map +0 -1
- package/dist/index-Pwqfd9a_.js.map +0 -1
- package/dist/plugin-GzwtrpSe.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as ye, i as
|
|
1
|
+
import { d as ye, i as et, a as Ue, n as K, C as Er, g as Fr, D as M, k as h, r as q, b as L, h as W, t as j, Q as oe, c as kt, e as ie, f as Or, j as Mr, l as Pr, m as kr, o as Xs, p as Jt, q as Ar, P as Hr } from "./index-hcyyv0bc.js";
|
|
2
2
|
import "react";
|
|
3
|
-
const
|
|
3
|
+
const Rr = ({ primaryApi: e, store: t }) => {
|
|
4
4
|
class s {
|
|
5
5
|
constructor(o) {
|
|
6
6
|
this.api = o;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
ye(
|
|
9
|
+
ye(et(), s), ye(Ue(e), s, 0);
|
|
10
10
|
class i {
|
|
11
11
|
constructor(o) {
|
|
12
12
|
this.store = o;
|
|
@@ -17,18 +17,18 @@ const Ar = ({ primaryApi: e, store: t }) => {
|
|
|
17
17
|
this.store = o, this.api = a;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
return t && (ye(
|
|
21
|
-
},
|
|
22
|
-
t.bind(i).to(i).inTransientScope(),
|
|
20
|
+
return t && (ye(et(), i), ye(Ue(t), i, 0), ye(et(), r), ye(Ue(t), r, 0), ye(Ue(e), r, 1)), { ApiBaseHandler: s, BaseHandler: r, StoreBaseHandler: i };
|
|
21
|
+
}, zr = (e, t) => (s, i) => {
|
|
22
|
+
t.bind(i).to(i).inTransientScope(), et()(i);
|
|
23
23
|
const r = e.broker.registerRequest(s, (n) => t.get(i).handle(n));
|
|
24
24
|
return {
|
|
25
25
|
dispose: () => {
|
|
26
26
|
t.isBound(i) && t.unbind(i), r.dispose();
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
},
|
|
30
|
-
registerRequest:
|
|
31
|
-
}),
|
|
29
|
+
}, Gr = (e, t) => ({
|
|
30
|
+
registerRequest: zr(e, t)
|
|
31
|
+
}), Vr = () => {
|
|
32
32
|
try {
|
|
33
33
|
if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
|
|
34
34
|
return crypto.randomUUID();
|
|
@@ -40,7 +40,7 @@ const Ar = ({ primaryApi: e, store: t }) => {
|
|
|
40
40
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
function
|
|
43
|
+
function Nr(e) {
|
|
44
44
|
return function(s) {
|
|
45
45
|
return (i, r) => {
|
|
46
46
|
Object.defineProperty(i, r, {
|
|
@@ -65,15 +65,15 @@ function Gr(e) {
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Br(e) {
|
|
69
69
|
return (t, s = {}) => {
|
|
70
|
-
const i =
|
|
70
|
+
const i = Nr(e);
|
|
71
71
|
return (r, n) => {
|
|
72
72
|
K(s)(r, n), i(t)(r, n);
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const qr = {
|
|
77
77
|
reports: "INFC",
|
|
78
78
|
results: "RES",
|
|
79
79
|
laboratory: "LAB",
|
|
@@ -88,11 +88,11 @@ const V = {
|
|
|
88
88
|
function R(e) {
|
|
89
89
|
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
90
90
|
}
|
|
91
|
-
var
|
|
91
|
+
var Lr = typeof Symbol == "function" && Symbol.observable || "@@observable", ws = Lr, Et = () => Math.random().toString(36).substring(7).split("").join("."), Wr = {
|
|
92
92
|
INIT: `@@redux/INIT${/* @__PURE__ */ Et()}`,
|
|
93
93
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Et()}`,
|
|
94
94
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Et()}`
|
|
95
|
-
},
|
|
95
|
+
}, it = Wr;
|
|
96
96
|
function Zt(e) {
|
|
97
97
|
if (typeof e != "object" || e === null)
|
|
98
98
|
return !1;
|
|
@@ -160,7 +160,7 @@ function Ks(e, t, s) {
|
|
|
160
160
|
if (typeof p != "function")
|
|
161
161
|
throw new Error(R(10));
|
|
162
162
|
i = p, y({
|
|
163
|
-
type:
|
|
163
|
+
type: it.REPLACE
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
function m() {
|
|
@@ -191,7 +191,7 @@ function Ks(e, t, s) {
|
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
return y({
|
|
194
|
-
type:
|
|
194
|
+
type: it.INIT
|
|
195
195
|
}), {
|
|
196
196
|
dispatch: y,
|
|
197
197
|
subscribe: u,
|
|
@@ -200,20 +200,20 @@ function Ks(e, t, s) {
|
|
|
200
200
|
[ws]: m
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function jr(e) {
|
|
204
204
|
Object.keys(e).forEach((t) => {
|
|
205
205
|
const s = e[t];
|
|
206
206
|
if (typeof s(void 0, {
|
|
207
|
-
type:
|
|
207
|
+
type: it.INIT
|
|
208
208
|
}) > "u")
|
|
209
209
|
throw new Error(R(12));
|
|
210
210
|
if (typeof s(void 0, {
|
|
211
|
-
type:
|
|
211
|
+
type: it.PROBE_UNKNOWN_ACTION()
|
|
212
212
|
}) > "u")
|
|
213
213
|
throw new Error(R(13));
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Js(e) {
|
|
217
217
|
const t = Object.keys(e), s = {};
|
|
218
218
|
for (let n = 0; n < t.length; n++) {
|
|
219
219
|
const o = t[n];
|
|
@@ -222,7 +222,7 @@ function Wr(e) {
|
|
|
222
222
|
const i = Object.keys(s);
|
|
223
223
|
let r;
|
|
224
224
|
try {
|
|
225
|
-
|
|
225
|
+
jr(s);
|
|
226
226
|
} catch (n) {
|
|
227
227
|
r = n;
|
|
228
228
|
}
|
|
@@ -240,10 +240,10 @@ function Wr(e) {
|
|
|
240
240
|
return l = l || i.length !== Object.keys(o).length, l ? d : o;
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function rt(...e) {
|
|
244
244
|
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, s) => (...i) => t(s(...i)));
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Yr(...e) {
|
|
247
247
|
return (t) => (s, i) => {
|
|
248
248
|
const r = t(s, i);
|
|
249
249
|
let n = () => {
|
|
@@ -253,16 +253,16 @@ function jr(...e) {
|
|
|
253
253
|
getState: r.getState,
|
|
254
254
|
dispatch: (l, ...d) => n(l, ...d)
|
|
255
255
|
}, a = e.map((l) => l(o));
|
|
256
|
-
return n =
|
|
256
|
+
return n = rt(...a)(r.dispatch), {
|
|
257
257
|
...r,
|
|
258
258
|
dispatch: n
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Qr(e) {
|
|
263
263
|
return Zt(e) && "type" in e && typeof e.type == "string";
|
|
264
264
|
}
|
|
265
|
-
var
|
|
265
|
+
var Zs = Symbol.for("immer-nothing"), xs = Symbol.for("immer-draftable"), N = Symbol.for("immer-state");
|
|
266
266
|
function X(e, ...t) {
|
|
267
267
|
throw new Error(
|
|
268
268
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
@@ -270,60 +270,60 @@ function X(e, ...t) {
|
|
|
270
270
|
}
|
|
271
271
|
var Me = Object.getPrototypeOf;
|
|
272
272
|
function xe(e) {
|
|
273
|
-
return !!e && !!e[
|
|
273
|
+
return !!e && !!e[N];
|
|
274
274
|
}
|
|
275
275
|
function le(e) {
|
|
276
|
-
return e ?
|
|
276
|
+
return e ? ei(e) || Array.isArray(e) || !!e[xs] || !!e.constructor?.[xs] || gt(e) || yt(e) : !1;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
278
|
+
var Ur = Object.prototype.constructor.toString();
|
|
279
|
+
function ei(e) {
|
|
280
280
|
if (!e || typeof e != "object")
|
|
281
281
|
return !1;
|
|
282
282
|
const t = Me(e);
|
|
283
283
|
if (t === null)
|
|
284
284
|
return !0;
|
|
285
285
|
const s = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
286
|
-
return s === Object ? !0 : typeof s == "function" && Function.toString.call(s) ===
|
|
286
|
+
return s === Object ? !0 : typeof s == "function" && Function.toString.call(s) === Ur;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
|
|
288
|
+
function nt(e, t) {
|
|
289
|
+
mt(e) === 0 ? Reflect.ownKeys(e).forEach((s) => {
|
|
290
290
|
t(s, e[s], e);
|
|
291
291
|
}) : e.forEach((s, i) => t(i, s, e));
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
const t = e[
|
|
295
|
-
return t ? t.type_ : Array.isArray(e) ? 1 :
|
|
293
|
+
function mt(e) {
|
|
294
|
+
const t = e[N];
|
|
295
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : gt(e) ? 2 : yt(e) ? 3 : 0;
|
|
296
296
|
}
|
|
297
297
|
function At(e, t) {
|
|
298
|
-
return
|
|
298
|
+
return mt(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
const i =
|
|
300
|
+
function ti(e, t, s) {
|
|
301
|
+
const i = mt(e);
|
|
302
302
|
i === 2 ? e.set(t, s) : i === 3 ? e.add(s) : e[t] = s;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Xr(e, t) {
|
|
305
305
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function gt(e) {
|
|
308
308
|
return e instanceof Map;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function yt(e) {
|
|
311
311
|
return e instanceof Set;
|
|
312
312
|
}
|
|
313
313
|
function be(e) {
|
|
314
314
|
return e.copy_ || e.base_;
|
|
315
315
|
}
|
|
316
316
|
function Ht(e, t) {
|
|
317
|
-
if (mt(e))
|
|
318
|
-
return new Map(e);
|
|
319
317
|
if (gt(e))
|
|
318
|
+
return new Map(e);
|
|
319
|
+
if (yt(e))
|
|
320
320
|
return new Set(e);
|
|
321
321
|
if (Array.isArray(e))
|
|
322
322
|
return Array.prototype.slice.call(e);
|
|
323
|
-
const s =
|
|
323
|
+
const s = ei(e);
|
|
324
324
|
if (t === !0 || t === "class_only" && !s) {
|
|
325
325
|
const i = Object.getOwnPropertyDescriptors(e);
|
|
326
|
-
delete i[
|
|
326
|
+
delete i[N];
|
|
327
327
|
let r = Reflect.ownKeys(i);
|
|
328
328
|
for (let n = 0; n < r.length; n++) {
|
|
329
329
|
const o = r[n], a = i[o];
|
|
@@ -345,24 +345,24 @@ function Ht(e, t) {
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
function es(e, t = !1) {
|
|
348
|
-
return
|
|
348
|
+
return vt(e) || xe(e) || !le(e) || (mt(e) > 1 && (e.set = e.add = e.clear = e.delete = Kr), Object.freeze(e), t && Object.entries(e).forEach(([s, i]) => es(i, !0))), e;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Kr() {
|
|
351
351
|
X(2);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function vt(e) {
|
|
354
354
|
return Object.isFrozen(e);
|
|
355
355
|
}
|
|
356
|
-
var
|
|
356
|
+
var Jr = {};
|
|
357
357
|
function _e(e) {
|
|
358
|
-
const t =
|
|
358
|
+
const t = Jr[e];
|
|
359
359
|
return t || X(0, e), t;
|
|
360
360
|
}
|
|
361
361
|
var We;
|
|
362
|
-
function
|
|
362
|
+
function si() {
|
|
363
363
|
return We;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Zr(e, t) {
|
|
366
366
|
return {
|
|
367
367
|
drafts_: [],
|
|
368
368
|
parent_: e,
|
|
@@ -377,49 +377,49 @@ function _s(e, t) {
|
|
|
377
377
|
t && (_e("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
378
378
|
}
|
|
379
379
|
function Rt(e) {
|
|
380
|
-
zt(e), e.drafts_.forEach(
|
|
380
|
+
zt(e), e.drafts_.forEach(en), e.drafts_ = null;
|
|
381
381
|
}
|
|
382
382
|
function zt(e) {
|
|
383
383
|
e === We && (We = e.parent_);
|
|
384
384
|
}
|
|
385
385
|
function Ss(e) {
|
|
386
|
-
return We =
|
|
386
|
+
return We = Zr(We, e);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
const t = e[
|
|
388
|
+
function en(e) {
|
|
389
|
+
const t = e[N];
|
|
390
390
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
391
391
|
}
|
|
392
392
|
function Cs(e, t) {
|
|
393
393
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
394
394
|
const s = t.drafts_[0];
|
|
395
|
-
return e !== void 0 && e !== s ? (s[
|
|
396
|
-
s[
|
|
395
|
+
return e !== void 0 && e !== s ? (s[N].modified_ && (Rt(t), X(4)), le(e) && (e = ot(t, e), t.parent_ || at(t, e)), t.patches_ && _e("Patches").generateReplacementPatches_(
|
|
396
|
+
s[N].base_,
|
|
397
397
|
e,
|
|
398
398
|
t.patches_,
|
|
399
399
|
t.inversePatches_
|
|
400
|
-
)) : e =
|
|
400
|
+
)) : e = ot(t, s, []), Rt(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Zs ? e : void 0;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
if (
|
|
402
|
+
function ot(e, t, s) {
|
|
403
|
+
if (vt(t))
|
|
404
404
|
return t;
|
|
405
|
-
const i = t[
|
|
405
|
+
const i = t[N];
|
|
406
406
|
if (!i)
|
|
407
|
-
return
|
|
407
|
+
return nt(
|
|
408
408
|
t,
|
|
409
409
|
(r, n) => Ds(e, i, t, r, n, s)
|
|
410
410
|
), t;
|
|
411
411
|
if (i.scope_ !== e)
|
|
412
412
|
return t;
|
|
413
413
|
if (!i.modified_)
|
|
414
|
-
return
|
|
414
|
+
return at(e, i.base_, !0), i.base_;
|
|
415
415
|
if (!i.finalized_) {
|
|
416
416
|
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
|
|
417
417
|
const r = i.copy_;
|
|
418
418
|
let n = r, o = !1;
|
|
419
|
-
i.type_ === 3 && (n = new Set(r), r.clear(), o = !0),
|
|
419
|
+
i.type_ === 3 && (n = new Set(r), r.clear(), o = !0), nt(
|
|
420
420
|
n,
|
|
421
421
|
(a, l) => Ds(e, i, r, a, l, s, o)
|
|
422
|
-
),
|
|
422
|
+
), at(e, r, !1), s && e.patches_ && _e("Patches").generatePatches_(
|
|
423
423
|
i,
|
|
424
424
|
s,
|
|
425
425
|
e.patches_,
|
|
@@ -431,26 +431,26 @@ function nt(e, t, s) {
|
|
|
431
431
|
function Ds(e, t, s, i, r, n, o) {
|
|
432
432
|
if (xe(r)) {
|
|
433
433
|
const a = n && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
434
|
-
!At(t.assigned_, i) ? n.concat(i) : void 0, l =
|
|
435
|
-
if (
|
|
434
|
+
!At(t.assigned_, i) ? n.concat(i) : void 0, l = ot(e, r, a);
|
|
435
|
+
if (ti(s, i, l), xe(l))
|
|
436
436
|
e.canAutoFreeze_ = !1;
|
|
437
437
|
else
|
|
438
438
|
return;
|
|
439
439
|
} else o && s.add(r);
|
|
440
|
-
if (le(r) && !
|
|
440
|
+
if (le(r) && !vt(r)) {
|
|
441
441
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
442
442
|
return;
|
|
443
|
-
|
|
443
|
+
ot(e, r), (!t || !t.scope_.parent_) && typeof i != "symbol" && Object.prototype.propertyIsEnumerable.call(s, i) && at(e, r);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function at(e, t, s = !1) {
|
|
447
447
|
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && es(t, s);
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function tn(e, t) {
|
|
450
450
|
const s = Array.isArray(e), i = {
|
|
451
451
|
type_: s ? 1 : 0,
|
|
452
452
|
// Track which produce call this is associated with.
|
|
453
|
-
scope_: t ? t.scope_ :
|
|
453
|
+
scope_: t ? t.scope_ : si(),
|
|
454
454
|
// True for both shallow and deep changes.
|
|
455
455
|
modified_: !1,
|
|
456
456
|
// Used during finalization.
|
|
@@ -477,11 +477,11 @@ function en(e, t) {
|
|
|
477
477
|
}
|
|
478
478
|
var ts = {
|
|
479
479
|
get(e, t) {
|
|
480
|
-
if (t ===
|
|
480
|
+
if (t === N)
|
|
481
481
|
return e;
|
|
482
482
|
const s = be(e);
|
|
483
483
|
if (!At(s, t))
|
|
484
|
-
return
|
|
484
|
+
return sn(e, s, t);
|
|
485
485
|
const i = s[t];
|
|
486
486
|
return e.finalized_ || !le(i) ? i : i === Ft(e.base_, t) ? (Ot(e), e.copy_[t] = Vt(i, e)) : i;
|
|
487
487
|
},
|
|
@@ -492,14 +492,14 @@ var ts = {
|
|
|
492
492
|
return Reflect.ownKeys(be(e));
|
|
493
493
|
},
|
|
494
494
|
set(e, t, s) {
|
|
495
|
-
const i =
|
|
495
|
+
const i = ii(be(e), t);
|
|
496
496
|
if (i?.set)
|
|
497
497
|
return i.set.call(e.draft_, s), !0;
|
|
498
498
|
if (!e.modified_) {
|
|
499
|
-
const r = Ft(be(e), t), n = r?.[
|
|
499
|
+
const r = Ft(be(e), t), n = r?.[N];
|
|
500
500
|
if (n && n.base_ === s)
|
|
501
501
|
return e.copy_[t] = s, e.assigned_[t] = !1, !0;
|
|
502
|
-
if (
|
|
502
|
+
if (Xr(s, r) && (s !== void 0 || At(e.base_, t)))
|
|
503
503
|
return !0;
|
|
504
504
|
Ot(e), Gt(e);
|
|
505
505
|
}
|
|
@@ -531,7 +531,7 @@ var ts = {
|
|
|
531
531
|
X(12);
|
|
532
532
|
}
|
|
533
533
|
}, je = {};
|
|
534
|
-
|
|
534
|
+
nt(ts, (e, t) => {
|
|
535
535
|
je[e] = function() {
|
|
536
536
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
537
537
|
};
|
|
@@ -543,18 +543,18 @@ je.set = function(e, t, s) {
|
|
|
543
543
|
return ts.set.call(this, e[0], t, s, e[0]);
|
|
544
544
|
};
|
|
545
545
|
function Ft(e, t) {
|
|
546
|
-
const s = e[
|
|
546
|
+
const s = e[N];
|
|
547
547
|
return (s ? be(s) : e)[t];
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
const i =
|
|
549
|
+
function sn(e, t, s) {
|
|
550
|
+
const i = ii(t, s);
|
|
551
551
|
return i ? "value" in i ? i.value : (
|
|
552
552
|
// This is a very special case, if the prop is a getter defined by the
|
|
553
553
|
// prototype, we should invoke it with the draft as context!
|
|
554
554
|
i.get?.call(e.draft_)
|
|
555
555
|
) : void 0;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function ii(e, t) {
|
|
558
558
|
if (!(t in e))
|
|
559
559
|
return;
|
|
560
560
|
let s = Me(e);
|
|
@@ -574,7 +574,7 @@ function Ot(e) {
|
|
|
574
574
|
e.scope_.immer_.useStrictShallowCopy_
|
|
575
575
|
));
|
|
576
576
|
}
|
|
577
|
-
var
|
|
577
|
+
var rn = class {
|
|
578
578
|
constructor(e) {
|
|
579
579
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, s, i) => {
|
|
580
580
|
if (typeof t == "function" && typeof s != "function") {
|
|
@@ -597,7 +597,7 @@ var sn = class {
|
|
|
597
597
|
}
|
|
598
598
|
return _s(n, i), Cs(r, n);
|
|
599
599
|
} else if (!t || typeof t != "object") {
|
|
600
|
-
if (r = s(t), r === void 0 && (r = t), r ===
|
|
600
|
+
if (r = s(t), r === void 0 && (r = t), r === Zs && (r = void 0), this.autoFreeze_ && es(r, !0), i) {
|
|
601
601
|
const n = [], o = [];
|
|
602
602
|
_e("Patches").generateReplacementPatches_(t, r, n, o), i(n, o);
|
|
603
603
|
}
|
|
@@ -614,12 +614,12 @@ var sn = class {
|
|
|
614
614
|
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
615
615
|
}
|
|
616
616
|
createDraft(e) {
|
|
617
|
-
le(e) || X(8), xe(e) && (e =
|
|
617
|
+
le(e) || X(8), xe(e) && (e = nn(e));
|
|
618
618
|
const t = Ss(this), s = Vt(e, void 0);
|
|
619
|
-
return s[
|
|
619
|
+
return s[N].isManual_ = !0, zt(t), s;
|
|
620
620
|
}
|
|
621
621
|
finishDraft(e, t) {
|
|
622
|
-
const s = e && e[
|
|
622
|
+
const s = e && e[N];
|
|
623
623
|
(!s || !s.isManual_) && X(9);
|
|
624
624
|
const { scope_: i } = s;
|
|
625
625
|
return _s(i, t), Cs(void 0, i);
|
|
@@ -658,16 +658,16 @@ var sn = class {
|
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
660
|
function Vt(e, t) {
|
|
661
|
-
const s =
|
|
662
|
-
return (t ? t.scope_ :
|
|
661
|
+
const s = gt(e) ? _e("MapSet").proxyMap_(e, t) : yt(e) ? _e("MapSet").proxySet_(e, t) : tn(e, t);
|
|
662
|
+
return (t ? t.scope_ : si()).drafts_.push(s), s;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
return xe(e) || X(10, e),
|
|
664
|
+
function nn(e) {
|
|
665
|
+
return xe(e) || X(10, e), ri(e);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
if (!le(e) ||
|
|
667
|
+
function ri(e) {
|
|
668
|
+
if (!le(e) || vt(e))
|
|
669
669
|
return e;
|
|
670
|
-
const t = e[
|
|
670
|
+
const t = e[N];
|
|
671
671
|
let s;
|
|
672
672
|
if (t) {
|
|
673
673
|
if (!t.modified_)
|
|
@@ -675,28 +675,28 @@ function ii(e) {
|
|
|
675
675
|
t.finalized_ = !0, s = Ht(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
676
676
|
} else
|
|
677
677
|
s = Ht(e, !0);
|
|
678
|
-
return
|
|
679
|
-
|
|
678
|
+
return nt(s, (i, r) => {
|
|
679
|
+
ti(s, i, ri(r));
|
|
680
680
|
}), t && (t.finalized_ = !1), s;
|
|
681
681
|
}
|
|
682
|
-
var
|
|
683
|
-
|
|
684
|
-
|
|
682
|
+
var B = new rn(), ni = B.produce;
|
|
683
|
+
B.produceWithPatches.bind(
|
|
684
|
+
B
|
|
685
685
|
);
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
function
|
|
686
|
+
B.setAutoFreeze.bind(B);
|
|
687
|
+
B.setUseStrictShallowCopy.bind(B);
|
|
688
|
+
B.applyPatches.bind(B);
|
|
689
|
+
B.createDraft.bind(B);
|
|
690
|
+
B.finishDraft.bind(B);
|
|
691
|
+
function on(e, t = `expected a function, instead received ${typeof e}`) {
|
|
692
692
|
if (typeof e != "function")
|
|
693
693
|
throw new TypeError(t);
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function an(e, t = `expected an object, instead received ${typeof e}`) {
|
|
696
696
|
if (typeof e != "object")
|
|
697
697
|
throw new TypeError(t);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function ln(e, t = "expected all items to be functions, instead received the following types: ") {
|
|
700
700
|
if (!e.every((s) => typeof s == "function")) {
|
|
701
701
|
const s = e.map(
|
|
702
702
|
(i) => typeof i == "function" ? `function ${i.name || "unnamed"}()` : typeof i
|
|
@@ -705,37 +705,37 @@ function an(e, t = "expected all items to be functions, instead received the fol
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
var Ts = (e) => Array.isArray(e) ? e : [e];
|
|
708
|
-
function
|
|
708
|
+
function cn(e) {
|
|
709
709
|
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
710
|
-
return
|
|
710
|
+
return ln(
|
|
711
711
|
t,
|
|
712
712
|
"createSelector expects all input-selectors to be functions, but received the following types: "
|
|
713
713
|
), t;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function dn(e, t) {
|
|
716
716
|
const s = [], { length: i } = e;
|
|
717
717
|
for (let r = 0; r < i; r++)
|
|
718
718
|
s.push(e[r].apply(null, t));
|
|
719
719
|
return s;
|
|
720
720
|
}
|
|
721
|
-
var
|
|
721
|
+
var un = class {
|
|
722
722
|
constructor(e) {
|
|
723
723
|
this.value = e;
|
|
724
724
|
}
|
|
725
725
|
deref() {
|
|
726
726
|
return this.value;
|
|
727
727
|
}
|
|
728
|
-
},
|
|
729
|
-
function
|
|
728
|
+
}, hn = typeof WeakRef < "u" ? WeakRef : un, fn = 0, $s = 1;
|
|
729
|
+
function Xe() {
|
|
730
730
|
return {
|
|
731
|
-
s:
|
|
731
|
+
s: fn,
|
|
732
732
|
v: void 0,
|
|
733
733
|
o: null,
|
|
734
734
|
p: null
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
function
|
|
738
|
-
let s =
|
|
737
|
+
function oi(e, t = {}) {
|
|
738
|
+
let s = Xe();
|
|
739
739
|
const { resultEqualityCheck: i } = t;
|
|
740
740
|
let r, n = 0;
|
|
741
741
|
function o() {
|
|
@@ -747,12 +747,12 @@ function ni(e, t = {}) {
|
|
|
747
747
|
let m = a.o;
|
|
748
748
|
m === null && (a.o = m = /* @__PURE__ */ new WeakMap());
|
|
749
749
|
const D = m.get(f);
|
|
750
|
-
D === void 0 ? (a =
|
|
750
|
+
D === void 0 ? (a = Xe(), m.set(f, a)) : a = D;
|
|
751
751
|
} else {
|
|
752
752
|
let m = a.p;
|
|
753
753
|
m === null && (a.p = m = /* @__PURE__ */ new Map());
|
|
754
754
|
const D = m.get(f);
|
|
755
|
-
D === void 0 ? (a =
|
|
755
|
+
D === void 0 ? (a = Xe(), m.set(f, a)) : a = D;
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
const d = a;
|
|
@@ -761,23 +761,23 @@ function ni(e, t = {}) {
|
|
|
761
761
|
c = a.v;
|
|
762
762
|
else if (c = e.apply(null, arguments), n++, i) {
|
|
763
763
|
const u = r?.deref?.() ?? r;
|
|
764
|
-
u != null && i(u, c) && (c = u, n !== 0 && n--), r = typeof c == "object" && c !== null || typeof c == "function" ? new
|
|
764
|
+
u != null && i(u, c) && (c = u, n !== 0 && n--), r = typeof c == "object" && c !== null || typeof c == "function" ? new hn(c) : c;
|
|
765
765
|
}
|
|
766
766
|
return d.s = $s, d.v = c, c;
|
|
767
767
|
}
|
|
768
768
|
return o.clearCache = () => {
|
|
769
|
-
s =
|
|
769
|
+
s = Xe(), o.resetResultsCount();
|
|
770
770
|
}, o.resultsCount = () => n, o.resetResultsCount = () => {
|
|
771
771
|
n = 0;
|
|
772
772
|
}, o;
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function pn(e, ...t) {
|
|
775
775
|
const s = typeof e == "function" ? {
|
|
776
776
|
memoize: e,
|
|
777
777
|
memoizeOptions: t
|
|
778
778
|
} : e, i = (...r) => {
|
|
779
779
|
let n = 0, o = 0, a, l = {}, d = r.pop();
|
|
780
|
-
typeof d == "object" && (l = d, d = r.pop()),
|
|
780
|
+
typeof d == "object" && (l = d, d = r.pop()), on(
|
|
781
781
|
d,
|
|
782
782
|
`createSelector expects an output function after the inputs, but received: [${typeof d}]`
|
|
783
783
|
);
|
|
@@ -787,16 +787,16 @@ function fn(e, ...t) {
|
|
|
787
787
|
}, {
|
|
788
788
|
memoize: u,
|
|
789
789
|
memoizeOptions: y = [],
|
|
790
|
-
argsMemoize: f =
|
|
790
|
+
argsMemoize: f = oi,
|
|
791
791
|
argsMemoizeOptions: m = []
|
|
792
|
-
} = c, D = Ts(y), p = Ts(m), b =
|
|
792
|
+
} = c, D = Ts(y), p = Ts(m), b = cn(r), g = u(function() {
|
|
793
793
|
return n++, d.apply(
|
|
794
794
|
null,
|
|
795
795
|
arguments
|
|
796
796
|
);
|
|
797
797
|
}, ...D), w = f(function() {
|
|
798
798
|
o++;
|
|
799
|
-
const k =
|
|
799
|
+
const k = dn(
|
|
800
800
|
b,
|
|
801
801
|
arguments
|
|
802
802
|
);
|
|
@@ -823,9 +823,9 @@ function fn(e, ...t) {
|
|
|
823
823
|
withTypes: () => i
|
|
824
824
|
}), i;
|
|
825
825
|
}
|
|
826
|
-
var $ = /* @__PURE__ */
|
|
826
|
+
var $ = /* @__PURE__ */ pn(oi), mn = Object.assign(
|
|
827
827
|
(e, t = $) => {
|
|
828
|
-
|
|
828
|
+
an(
|
|
829
829
|
e,
|
|
830
830
|
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
|
|
831
831
|
);
|
|
@@ -837,14 +837,14 @@ var $ = /* @__PURE__ */ fn(ni), pn = Object.assign(
|
|
|
837
837
|
(...n) => n.reduce((o, a, l) => (o[s[l]] = a, o), {})
|
|
838
838
|
);
|
|
839
839
|
},
|
|
840
|
-
{ withTypes: () =>
|
|
840
|
+
{ withTypes: () => mn }
|
|
841
841
|
);
|
|
842
|
-
function
|
|
842
|
+
function ai(e) {
|
|
843
843
|
return ({ dispatch: s, getState: i }) => (r) => (n) => typeof n == "function" ? n(s, i, e) : r(n);
|
|
844
844
|
}
|
|
845
|
-
var
|
|
845
|
+
var gn = ai(), yn = ai, vn = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
846
846
|
if (arguments.length !== 0)
|
|
847
|
-
return typeof arguments[0] == "object" ?
|
|
847
|
+
return typeof arguments[0] == "object" ? rt : rt.apply(null, arguments);
|
|
848
848
|
};
|
|
849
849
|
function Is(e, t) {
|
|
850
850
|
function s(...i) {
|
|
@@ -868,9 +868,9 @@ function Is(e, t) {
|
|
|
868
868
|
payload: i[0]
|
|
869
869
|
};
|
|
870
870
|
}
|
|
871
|
-
return s.toString = () => `${e}`, s.type = e, s.match = (i) =>
|
|
871
|
+
return s.toString = () => `${e}`, s.type = e, s.match = (i) => Qr(i) && i.type === e, s;
|
|
872
872
|
}
|
|
873
|
-
var
|
|
873
|
+
var li = class qe extends Array {
|
|
874
874
|
constructor(...t) {
|
|
875
875
|
super(...t), Object.setPrototypeOf(this, qe.prototype);
|
|
876
876
|
}
|
|
@@ -885,27 +885,27 @@ var ai = class qe extends Array {
|
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
887
|
function Es(e) {
|
|
888
|
-
return le(e) ?
|
|
888
|
+
return le(e) ? ni(e, () => {
|
|
889
889
|
}) : e;
|
|
890
890
|
}
|
|
891
891
|
function Fs(e, t, s) {
|
|
892
892
|
return e.has(t) ? e.get(t) : e.set(t, s(t)).get(t);
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function bn(e) {
|
|
895
895
|
return typeof e == "boolean";
|
|
896
896
|
}
|
|
897
|
-
var
|
|
897
|
+
var wn = () => function(t) {
|
|
898
898
|
const {
|
|
899
899
|
thunk: s = !0,
|
|
900
900
|
immutableCheck: i = !0,
|
|
901
901
|
serializableCheck: r = !0,
|
|
902
902
|
actionCreatorCheck: n = !0
|
|
903
903
|
} = t ?? {};
|
|
904
|
-
let o = new
|
|
905
|
-
return s && (
|
|
906
|
-
},
|
|
904
|
+
let o = new li();
|
|
905
|
+
return s && (bn(s) ? o.push(gn) : o.push(yn(s.extraArgument))), o;
|
|
906
|
+
}, xn = "RTK_autoBatch", Os = (e) => (t) => {
|
|
907
907
|
setTimeout(t, e);
|
|
908
|
-
},
|
|
908
|
+
}, _n = (e = {
|
|
909
909
|
type: "raf"
|
|
910
910
|
}) => (t) => (...s) => {
|
|
911
911
|
const i = t(...s);
|
|
@@ -929,21 +929,21 @@ var bn = () => function(t) {
|
|
|
929
929
|
// for the `shouldAutoBatch` flag and determine if batching is active
|
|
930
930
|
dispatch(c) {
|
|
931
931
|
try {
|
|
932
|
-
return r = !c?.meta?.[
|
|
932
|
+
return r = !c?.meta?.[xn], n = !r, n && (o || (o = !0, l(d))), i.dispatch(c);
|
|
933
933
|
} finally {
|
|
934
934
|
r = !0;
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
937
|
});
|
|
938
|
-
},
|
|
938
|
+
}, Sn = (e) => function(s) {
|
|
939
939
|
const {
|
|
940
940
|
autoBatch: i = !0
|
|
941
941
|
} = s ?? {};
|
|
942
|
-
let r = new
|
|
943
|
-
return i && r.push(
|
|
942
|
+
let r = new li(e);
|
|
943
|
+
return i && r.push(_n(typeof i == "object" ? i : void 0)), r;
|
|
944
944
|
};
|
|
945
|
-
function
|
|
946
|
-
const t =
|
|
945
|
+
function Cn(e) {
|
|
946
|
+
const t = wn(), {
|
|
947
947
|
reducer: s = void 0,
|
|
948
948
|
middleware: i,
|
|
949
949
|
devTools: r = !0,
|
|
@@ -954,23 +954,23 @@ function Sn(e) {
|
|
|
954
954
|
if (typeof s == "function")
|
|
955
955
|
a = s;
|
|
956
956
|
else if (Zt(s))
|
|
957
|
-
a =
|
|
957
|
+
a = Js(s);
|
|
958
958
|
else
|
|
959
959
|
throw new Error(ae(1));
|
|
960
960
|
let l;
|
|
961
961
|
typeof i == "function" ? l = i(t) : l = t();
|
|
962
|
-
let d =
|
|
963
|
-
r && (d =
|
|
962
|
+
let d = rt;
|
|
963
|
+
r && (d = vn({
|
|
964
964
|
// Enable capture of stack traces for dispatched Redux actions
|
|
965
965
|
trace: !1,
|
|
966
966
|
...typeof r == "object" && r
|
|
967
967
|
}));
|
|
968
|
-
const c =
|
|
968
|
+
const c = Yr(...l), u = Sn(c);
|
|
969
969
|
let y = typeof o == "function" ? o(u) : u();
|
|
970
970
|
const f = d(...y);
|
|
971
971
|
return Ks(a, n, f);
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function ci(e) {
|
|
974
974
|
const t = {}, s = [];
|
|
975
975
|
let i;
|
|
976
976
|
const r = {
|
|
@@ -994,12 +994,12 @@ function li(e) {
|
|
|
994
994
|
};
|
|
995
995
|
return e(r), [t, s, i];
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function Dn(e) {
|
|
998
998
|
return typeof e == "function";
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1001
|
-
let [s, i, r] =
|
|
1002
|
-
if (
|
|
1000
|
+
function Tn(e, t) {
|
|
1001
|
+
let [s, i, r] = ci(t), n;
|
|
1002
|
+
if (Dn(e))
|
|
1003
1003
|
n = () => Es(e());
|
|
1004
1004
|
else {
|
|
1005
1005
|
const a = Es(e);
|
|
@@ -1018,7 +1018,7 @@ function Dn(e, t) {
|
|
|
1018
1018
|
return f === void 0 ? c : f;
|
|
1019
1019
|
} else {
|
|
1020
1020
|
if (le(c))
|
|
1021
|
-
return
|
|
1021
|
+
return ni(c, (y) => u(y, l));
|
|
1022
1022
|
{
|
|
1023
1023
|
const y = u(c, l);
|
|
1024
1024
|
if (y === void 0) {
|
|
@@ -1034,14 +1034,14 @@ function Dn(e, t) {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
return o.getInitialState = n, o;
|
|
1036
1036
|
}
|
|
1037
|
-
var
|
|
1038
|
-
function
|
|
1037
|
+
var $n = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
1038
|
+
function In(e, t) {
|
|
1039
1039
|
return `${e}/${t}`;
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function En({
|
|
1042
1042
|
creators: e
|
|
1043
1043
|
} = {}) {
|
|
1044
|
-
const t = e?.asyncThunk?.[
|
|
1044
|
+
const t = e?.asyncThunk?.[$n];
|
|
1045
1045
|
return function(i) {
|
|
1046
1046
|
const {
|
|
1047
1047
|
name: r,
|
|
@@ -1049,7 +1049,7 @@ function In({
|
|
|
1049
1049
|
} = i;
|
|
1050
1050
|
if (!r)
|
|
1051
1051
|
throw new Error(ae(11));
|
|
1052
|
-
const o = (typeof i.reducers == "function" ? i.reducers(
|
|
1052
|
+
const o = (typeof i.reducers == "function" ? i.reducers(On()) : i.reducers) || {}, a = Object.keys(o), l = {
|
|
1053
1053
|
sliceCaseReducersByName: {},
|
|
1054
1054
|
sliceCaseReducersByType: {},
|
|
1055
1055
|
actionCreators: {},
|
|
@@ -1079,17 +1079,17 @@ function In({
|
|
|
1079
1079
|
a.forEach((g) => {
|
|
1080
1080
|
const w = o[g], C = {
|
|
1081
1081
|
reducerName: g,
|
|
1082
|
-
type:
|
|
1082
|
+
type: In(r, g),
|
|
1083
1083
|
createNotation: typeof i.reducers == "function"
|
|
1084
1084
|
};
|
|
1085
|
-
|
|
1085
|
+
Pn(w) ? An(C, w, d, t) : Mn(C, w, d);
|
|
1086
1086
|
});
|
|
1087
1087
|
function c() {
|
|
1088
|
-
const [g = {}, w = [], C = void 0] = typeof i.extraReducers == "function" ?
|
|
1088
|
+
const [g = {}, w = [], C = void 0] = typeof i.extraReducers == "function" ? ci(i.extraReducers) : [i.extraReducers], k = {
|
|
1089
1089
|
...g,
|
|
1090
1090
|
...l.sliceCaseReducersByType
|
|
1091
1091
|
};
|
|
1092
|
-
return
|
|
1092
|
+
return Tn(i.initialState, (O) => {
|
|
1093
1093
|
for (let H in k)
|
|
1094
1094
|
O.addCase(H, k[H]);
|
|
1095
1095
|
for (let H of l.sliceMatchers)
|
|
@@ -1116,8 +1116,8 @@ function In({
|
|
|
1116
1116
|
const H = Fs(y, w, () => /* @__PURE__ */ new WeakMap());
|
|
1117
1117
|
return Fs(H, O, () => {
|
|
1118
1118
|
const bs = {};
|
|
1119
|
-
for (const [
|
|
1120
|
-
bs[
|
|
1119
|
+
for (const [$r, Ir] of Object.entries(i.selectors ?? {}))
|
|
1120
|
+
bs[$r] = Fn(Ir, O, D, w);
|
|
1121
1121
|
return bs;
|
|
1122
1122
|
});
|
|
1123
1123
|
}
|
|
@@ -1154,15 +1154,15 @@ function In({
|
|
|
1154
1154
|
return b;
|
|
1155
1155
|
};
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function Fn(e, t, s, i) {
|
|
1158
1158
|
function r(n, ...o) {
|
|
1159
1159
|
let a = t(n);
|
|
1160
1160
|
return typeof a > "u" && i && (a = s()), e(a, ...o);
|
|
1161
1161
|
}
|
|
1162
1162
|
return r.unwrapped = e, r;
|
|
1163
1163
|
}
|
|
1164
|
-
var
|
|
1165
|
-
function
|
|
1164
|
+
var di = /* @__PURE__ */ En();
|
|
1165
|
+
function On() {
|
|
1166
1166
|
function e(t, s) {
|
|
1167
1167
|
return {
|
|
1168
1168
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -1193,27 +1193,27 @@ function Fn() {
|
|
|
1193
1193
|
asyncThunk: e
|
|
1194
1194
|
};
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Mn({
|
|
1197
1197
|
type: e,
|
|
1198
1198
|
reducerName: t,
|
|
1199
1199
|
createNotation: s
|
|
1200
1200
|
}, i, r) {
|
|
1201
1201
|
let n, o;
|
|
1202
1202
|
if ("reducer" in i) {
|
|
1203
|
-
if (s && !
|
|
1203
|
+
if (s && !kn(i))
|
|
1204
1204
|
throw new Error(ae(17));
|
|
1205
1205
|
n = i.reducer, o = i.prepare;
|
|
1206
1206
|
} else
|
|
1207
1207
|
n = i;
|
|
1208
1208
|
r.addCase(e, n).exposeCaseReducer(t, n).exposeAction(t, o ? Is(e, o) : Is(e));
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function Pn(e) {
|
|
1211
1211
|
return e._reducerDefinitionType === "asyncThunk";
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function kn(e) {
|
|
1214
1214
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function An({
|
|
1217
1217
|
type: e,
|
|
1218
1218
|
reducerName: t
|
|
1219
1219
|
}, s, i, r) {
|
|
@@ -1228,56 +1228,56 @@ function kn({
|
|
|
1228
1228
|
options: c
|
|
1229
1229
|
} = s, u = r(e, n, c);
|
|
1230
1230
|
i.exposeAction(t, u), o && i.addCase(u.fulfilled, o), a && i.addCase(u.pending, a), l && i.addCase(u.rejected, l), d && i.addMatcher(u.settled, d), i.exposeCaseReducer(t, {
|
|
1231
|
-
fulfilled: o ||
|
|
1232
|
-
pending: a ||
|
|
1233
|
-
rejected: l ||
|
|
1234
|
-
settled: d ||
|
|
1231
|
+
fulfilled: o || Ke,
|
|
1232
|
+
pending: a || Ke,
|
|
1233
|
+
rejected: l || Ke,
|
|
1234
|
+
settled: d || Ke
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Ke() {
|
|
1238
1238
|
}
|
|
1239
1239
|
function ae(e) {
|
|
1240
1240
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
1241
1241
|
}
|
|
1242
|
-
const
|
|
1242
|
+
const ui = (e, t, s, i, r, n) => e[t] ? {
|
|
1243
1243
|
...e,
|
|
1244
1244
|
[t]: {
|
|
1245
1245
|
...e[t],
|
|
1246
1246
|
items: [...e[t]?.items || [], ...s],
|
|
1247
1247
|
historyDataImporterRules: n ?? e[t]?.historyDataImporterRules
|
|
1248
1248
|
}
|
|
1249
|
-
} : { ...e, [t]: { id: t, items: s, componentFactory: i, searchPredicate: r, historyDataImporterRules: n } },
|
|
1250
|
-
function
|
|
1249
|
+
} : { ...e, [t]: { id: t, items: s, componentFactory: i, searchPredicate: r, historyDataImporterRules: n } }, Hn = (e, t, s, i) => ui(e, t, [s], i);
|
|
1250
|
+
function Rn(e, t) {
|
|
1251
1251
|
const { id: s, item: i, componentFactory: r } = t.payload;
|
|
1252
|
-
e.collections =
|
|
1252
|
+
e.collections = Hn(e.collections, s, i, r);
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function zn(e, t) {
|
|
1255
1255
|
const { id: s, items: i, componentFactory: r, searchPredicate: n, historyDataImporterRules: o } = t.payload;
|
|
1256
1256
|
return {
|
|
1257
1257
|
...e,
|
|
1258
|
-
collections:
|
|
1258
|
+
collections: ui(e.collections, s, i, r, n, o)
|
|
1259
1259
|
};
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function Gn(e, t) {
|
|
1262
1262
|
e.busy.push(t.payload);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Vn(e, t) {
|
|
1265
1265
|
e.busy = e.busy.filter((s) => s !== t.payload);
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Nn(e, t) {
|
|
1268
1268
|
e.error.push(t.payload);
|
|
1269
1269
|
}
|
|
1270
1270
|
function Bn(e, t) {
|
|
1271
1271
|
e.error = e.error.filter((s) => s.entityId !== t.payload);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function qn(e) {
|
|
1274
1274
|
return {
|
|
1275
1275
|
...e,
|
|
1276
1276
|
collections: {},
|
|
1277
1277
|
error: []
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
const
|
|
1280
|
+
const Ln = (e, t, s) => {
|
|
1281
1281
|
if (!e[t]?.items) return e;
|
|
1282
1282
|
const i = e[t]?.items ?? [];
|
|
1283
1283
|
return {
|
|
@@ -1288,11 +1288,11 @@ const qn = (e, t, s) => {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
};
|
|
1290
1290
|
};
|
|
1291
|
-
function
|
|
1291
|
+
function Wn(e, t) {
|
|
1292
1292
|
const { id: s, itemId: i } = t.payload;
|
|
1293
|
-
e.collections =
|
|
1293
|
+
e.collections = Ln(e.collections, s, i);
|
|
1294
1294
|
}
|
|
1295
|
-
const
|
|
1295
|
+
const jn = (e, t, s) => {
|
|
1296
1296
|
if (!e[t]?.items) return e;
|
|
1297
1297
|
const i = e[t]?.items ?? [];
|
|
1298
1298
|
return {
|
|
@@ -1303,11 +1303,11 @@ const Wn = (e, t, s) => {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
1305
|
};
|
|
1306
|
-
function
|
|
1306
|
+
function Yn(e, t) {
|
|
1307
1307
|
const { id: s, item: i } = t.payload;
|
|
1308
|
-
e.collections =
|
|
1308
|
+
e.collections = jn(e.collections, s, i);
|
|
1309
1309
|
}
|
|
1310
|
-
const pe =
|
|
1310
|
+
const pe = di({
|
|
1311
1311
|
name: "activity-history-collections",
|
|
1312
1312
|
initialState: {
|
|
1313
1313
|
busy: [],
|
|
@@ -1315,34 +1315,34 @@ const pe = ci({
|
|
|
1315
1315
|
collections: {}
|
|
1316
1316
|
},
|
|
1317
1317
|
reducers: {
|
|
1318
|
-
addBusyHistoryItem:
|
|
1319
|
-
removeBusyHistoryItem:
|
|
1320
|
-
addActivityHistoryItem:
|
|
1321
|
-
updateActivityHistoryItem:
|
|
1322
|
-
addActivityHistoryItems:
|
|
1323
|
-
clearActivityHistoryCollections:
|
|
1324
|
-
addErrorHistoryItem:
|
|
1318
|
+
addBusyHistoryItem: Gn,
|
|
1319
|
+
removeBusyHistoryItem: Vn,
|
|
1320
|
+
addActivityHistoryItem: Rn,
|
|
1321
|
+
updateActivityHistoryItem: Yn,
|
|
1322
|
+
addActivityHistoryItems: zn,
|
|
1323
|
+
clearActivityHistoryCollections: qn,
|
|
1324
|
+
addErrorHistoryItem: Nn,
|
|
1325
1325
|
removeErrorHistoryItem: Bn,
|
|
1326
|
-
removeActivityHistoryItem:
|
|
1326
|
+
removeActivityHistoryItem: Wn
|
|
1327
1327
|
}
|
|
1328
1328
|
});
|
|
1329
|
-
function
|
|
1329
|
+
function Qn(e, t) {
|
|
1330
1330
|
e.searchString = t.payload;
|
|
1331
1331
|
}
|
|
1332
|
-
const Ce = (e) => e.type === Oe.Switch,
|
|
1332
|
+
const Ce = (e) => e.type === Oe.Switch, hi = (e) => Ce(e) ? !!e.enabled : !!e.enabledValues?.length, bt = (e) => e.filters.some(hi), ss = (e) => e.kind === "common", Pe = (e) => e.kind === "diagnostics", is = (e) => e.kind === "custom", Un = "history-diagnostics", fi = "history-relevant", pi = "history-own", wt = "history-deleted", mi = [
|
|
1333
1333
|
{
|
|
1334
1334
|
kind: "common",
|
|
1335
1335
|
id: "common",
|
|
1336
1336
|
title: "Comuns",
|
|
1337
1337
|
filters: [
|
|
1338
1338
|
{
|
|
1339
|
-
id:
|
|
1339
|
+
id: fi,
|
|
1340
1340
|
title: "Només rellevants",
|
|
1341
1341
|
enabled: !1,
|
|
1342
1342
|
type: Oe.Switch
|
|
1343
1343
|
},
|
|
1344
1344
|
{
|
|
1345
|
-
id:
|
|
1345
|
+
id: pi,
|
|
1346
1346
|
title: "Només els meus",
|
|
1347
1347
|
enabled: !1,
|
|
1348
1348
|
type: Oe.Switch
|
|
@@ -1351,7 +1351,7 @@ const Ce = (e) => e.type === Oe.Switch, ui = (e) => Ce(e) ? !!e.enabled : !!e.en
|
|
|
1351
1351
|
// Filtre global: substitueix els "Veure eliminats" que cada plugin
|
|
1352
1352
|
// injectava dins del seu grup. Es pinta al final de la barra de
|
|
1353
1353
|
// filtres, no amb la resta de comuns.
|
|
1354
|
-
id:
|
|
1354
|
+
id: wt,
|
|
1355
1355
|
title: "Veure eliminats",
|
|
1356
1356
|
enabled: !1,
|
|
1357
1357
|
type: Oe.Switch,
|
|
@@ -1360,7 +1360,7 @@ const Ce = (e) => e.type === Oe.Switch, ui = (e) => Ce(e) ? !!e.enabled : !!e.en
|
|
|
1360
1360
|
]
|
|
1361
1361
|
}
|
|
1362
1362
|
];
|
|
1363
|
-
function
|
|
1363
|
+
function Xn(e, t) {
|
|
1364
1364
|
e.filters = e.filters.map((s) => ss(s) ? {
|
|
1365
1365
|
...s,
|
|
1366
1366
|
filters: s.filters.map(
|
|
@@ -1368,30 +1368,30 @@ function Un(e, t) {
|
|
|
1368
1368
|
)
|
|
1369
1369
|
} : s);
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function Kn(e, t) {
|
|
1372
1372
|
if (!e.filters.some((i) => i.id === t.payload.id)) {
|
|
1373
1373
|
const i = { ...t.payload, kind: "custom" };
|
|
1374
1374
|
e.filters = [...e.filters, i];
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function Jn(e) {
|
|
1378
1378
|
e.filters = e.filters.filter((t) => !is(t));
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function Zn(e, t) {
|
|
1381
1381
|
e.filters = e.filters.map((s) => !is(s) || s.id !== t.payload.filterGroupId ? s : {
|
|
1382
1382
|
...s,
|
|
1383
1383
|
filters: s.filters.map(
|
|
1384
|
-
(i) => i.id === t.payload.filterId ? Ce(i) ? { ...i, enabled: t.payload.enabled } :
|
|
1384
|
+
(i) => i.id === t.payload.filterId ? Ce(i) ? { ...i, enabled: t.payload.enabled } : eo(i, t.payload) : i
|
|
1385
1385
|
)
|
|
1386
1386
|
});
|
|
1387
1387
|
}
|
|
1388
|
-
const
|
|
1388
|
+
const eo = (e, { optionId: t, enabled: s }) => {
|
|
1389
1389
|
if (t == null)
|
|
1390
1390
|
return { ...e, enabledValues: [] };
|
|
1391
1391
|
const i = e.enabledValues ?? [];
|
|
1392
1392
|
return s ? i.includes(t) ? e : { ...e, enabledValues: [...i, t] } : { ...e, enabledValues: i.filter((r) => r !== t) };
|
|
1393
1393
|
};
|
|
1394
|
-
function
|
|
1394
|
+
function to(e, t) {
|
|
1395
1395
|
e.filters.some(Pe) && (e.filters = [...e.filters].map((i) => {
|
|
1396
1396
|
if (Pe(i)) {
|
|
1397
1397
|
const r = i.enabledValues.filter((n) => {
|
|
@@ -1409,13 +1409,13 @@ function eo(e, t) {
|
|
|
1409
1409
|
return i;
|
|
1410
1410
|
}));
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function so(e, t) {
|
|
1413
1413
|
if (e.filters.some(Pe))
|
|
1414
1414
|
e.filters = [...e.filters].map((i) => Pe(i) ? { ...i, enabledValues: t.payload } : i);
|
|
1415
1415
|
else {
|
|
1416
1416
|
const i = {
|
|
1417
1417
|
kind: "diagnostics",
|
|
1418
|
-
id:
|
|
1418
|
+
id: Un,
|
|
1419
1419
|
title: "Diagnòstics",
|
|
1420
1420
|
values: [],
|
|
1421
1421
|
enabledValues: t.payload
|
|
@@ -1423,14 +1423,14 @@ function to(e, t) {
|
|
|
1423
1423
|
e.filters = [...e.filters, i];
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function io(e, t) {
|
|
1427
1427
|
e.globalFilterSelection = {
|
|
1428
1428
|
...e.globalFilterSelection,
|
|
1429
1429
|
[t.payload.id]: t.payload.values
|
|
1430
1430
|
};
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1433
|
-
e.globalFilterSelection = {}, e.filters = e.filters.map((t) => ss(t) ?
|
|
1432
|
+
function ro(e) {
|
|
1433
|
+
e.globalFilterSelection = {}, e.filters = e.filters.map((t) => ss(t) ? mi[0] : Pe(t) ? {
|
|
1434
1434
|
...t,
|
|
1435
1435
|
enabledValues: []
|
|
1436
1436
|
} : {
|
|
@@ -1438,31 +1438,31 @@ function io(e) {
|
|
|
1438
1438
|
filters: t.filters.map((s) => Ce(s) ? { ...s, enabled: !1 } : { ...s, enabledValues: [] })
|
|
1439
1439
|
});
|
|
1440
1440
|
}
|
|
1441
|
-
const re =
|
|
1441
|
+
const re = di({
|
|
1442
1442
|
name: "activity-history-filters",
|
|
1443
1443
|
initialState: {
|
|
1444
1444
|
searchString: "",
|
|
1445
|
-
filters: [...
|
|
1445
|
+
filters: [...mi],
|
|
1446
1446
|
/** Valors triats a cada filtre global. Les seves opcions no viuen a
|
|
1447
1447
|
* l'estat: es deriven dels ítems injectats (veure `global-filters`). */
|
|
1448
1448
|
globalFilterSelection: {}
|
|
1449
1449
|
},
|
|
1450
1450
|
reducers: {
|
|
1451
|
-
setSearchString:
|
|
1452
|
-
setCommonFilterValue:
|
|
1453
|
-
addCustomFilters:
|
|
1454
|
-
clearCustomFilters:
|
|
1455
|
-
setCustomFilterValue:
|
|
1456
|
-
setDiagnosticFilterValues:
|
|
1457
|
-
deleteDiagnosticFilterValue:
|
|
1458
|
-
setGlobalFilterValues:
|
|
1459
|
-
resetFilters:
|
|
1460
|
-
}
|
|
1461
|
-
}),
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1451
|
+
setSearchString: Qn,
|
|
1452
|
+
setCommonFilterValue: Xn,
|
|
1453
|
+
addCustomFilters: Kn,
|
|
1454
|
+
clearCustomFilters: Jn,
|
|
1455
|
+
setCustomFilterValue: Zn,
|
|
1456
|
+
setDiagnosticFilterValues: so,
|
|
1457
|
+
deleteDiagnosticFilterValue: to,
|
|
1458
|
+
setGlobalFilterValues: io,
|
|
1459
|
+
resetFilters: ro
|
|
1460
|
+
}
|
|
1461
|
+
}), gi = "store/reset", no = Js({
|
|
1462
|
+
activityHistoryCollections: pe.reducer,
|
|
1463
|
+
activityHistoryFilters: re.reducer
|
|
1464
|
+
}), oo = (e, t) => no(t.type === gi ? void 0 : e, t), Qe = Cn({
|
|
1465
|
+
reducer: oo,
|
|
1466
1466
|
devTools: {
|
|
1467
1467
|
name: "activity-history"
|
|
1468
1468
|
},
|
|
@@ -1471,13 +1471,13 @@ const re = ci({
|
|
|
1471
1471
|
// Disable serializable state invariant middleware
|
|
1472
1472
|
})
|
|
1473
1473
|
});
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
const Se = new
|
|
1477
|
-
Se.bind(V.primaryApi).toConstantValue(e), Se.bind(V.store).toConstantValue(
|
|
1478
|
-
},
|
|
1474
|
+
Qe.dispatch;
|
|
1475
|
+
Qe.getState;
|
|
1476
|
+
const ao = () => Qe.dispatch({ type: gi }), Se = new Er(), { lazyInject: De } = Fr(Se), lo = (e) => {
|
|
1477
|
+
Se.bind(V.primaryApi).toConstantValue(e), Se.bind(V.store).toConstantValue(Qe);
|
|
1478
|
+
}, co = () => {
|
|
1479
1479
|
Se.unbind(V.primaryApi), Se.unbind(V.store);
|
|
1480
|
-
}, { ApiBaseHandler:
|
|
1480
|
+
}, { ApiBaseHandler: uo, BaseHandler: me, StoreBaseHandler: Te } = Rr(V), { addBusyHistoryItem: ho, removeBusyHistoryItem: fo } = pe.actions, { addErrorHistoryItem: po, removeErrorHistoryItem: mo } = pe.actions, go = (e, t) => {
|
|
1481
1481
|
if (e.filters) {
|
|
1482
1482
|
if (e.entityId !== e.filters.id) throw new Error("entityId and filters.id must be the same");
|
|
1483
1483
|
if (!e.filters.title) throw new Error("filters.title is required");
|
|
@@ -1488,12 +1488,12 @@ const Se = new $r(), { lazyInject: De } = Ir(Se), ro = (e) => {
|
|
|
1488
1488
|
if (t == null) throw new Error("items is required");
|
|
1489
1489
|
if (!Array.isArray(t)) throw new Error("items must be an array");
|
|
1490
1490
|
};
|
|
1491
|
-
class
|
|
1491
|
+
class yo extends me {
|
|
1492
1492
|
async handle(t) {
|
|
1493
|
-
this.store.dispatch(
|
|
1493
|
+
this.store.dispatch(ho(t.entityId));
|
|
1494
1494
|
try {
|
|
1495
1495
|
const s = await t.asyncDataProvider();
|
|
1496
|
-
|
|
1496
|
+
go(t, s), this.api.broker.send(this.api.broker.events.activityHistory.addHistoryItemsRequest, {
|
|
1497
1497
|
entityId: t.entityId,
|
|
1498
1498
|
entityDescription: t.entityDescription,
|
|
1499
1499
|
items: s,
|
|
@@ -1504,30 +1504,30 @@ class fo extends me {
|
|
|
1504
1504
|
});
|
|
1505
1505
|
} catch (s) {
|
|
1506
1506
|
console.error(s.message), this.store.dispatch(
|
|
1507
|
-
|
|
1507
|
+
po({
|
|
1508
1508
|
entityId: t.entityId,
|
|
1509
1509
|
message: t.errorMessage || s.message,
|
|
1510
1510
|
entityDescription: t.entityDescription
|
|
1511
1511
|
})
|
|
1512
1512
|
);
|
|
1513
1513
|
} finally {
|
|
1514
|
-
this.store.dispatch(
|
|
1514
|
+
this.store.dispatch(fo(t.entityId));
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
|
-
let
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1518
|
+
let yi;
|
|
1519
|
+
const vo = (e, t) => {
|
|
1520
|
+
yi = e.registerRequest(
|
|
1521
1521
|
t.broker.events.activityHistory.injectAsyncHistoryItemsRequest,
|
|
1522
|
-
|
|
1522
|
+
yo
|
|
1523
1523
|
);
|
|
1524
|
-
},
|
|
1525
|
-
|
|
1524
|
+
}, bo = () => {
|
|
1525
|
+
yi?.dispose();
|
|
1526
1526
|
};
|
|
1527
|
-
let
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1530
|
-
}, v = (e) =>
|
|
1527
|
+
let Nt;
|
|
1528
|
+
const wo = async (e) => {
|
|
1529
|
+
Nt = await e.createLocaleManager(xo);
|
|
1530
|
+
}, v = (e) => Nt ? Nt.translate(e) : e, xo = {
|
|
1531
1531
|
ca: {
|
|
1532
1532
|
"activity-history": {
|
|
1533
1533
|
activityHistory: "Històric d’activitat",
|
|
@@ -1624,35 +1624,35 @@ const go = async (e) => {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
|
-
},
|
|
1627
|
+
}, vi = (e, t, s) => {
|
|
1628
1628
|
const i = e?.[t];
|
|
1629
1629
|
return i?.items ? i.items.some((r) => r.id === s) : !1;
|
|
1630
|
-
},
|
|
1630
|
+
}, _o = (e) => typeof e == "string" && e.trim() !== "", So = (e) => {
|
|
1631
1631
|
if (typeof e != "string" || e.trim() === "") return !1;
|
|
1632
1632
|
const t = new Date(e);
|
|
1633
1633
|
return t instanceof Date && !Number.isNaN(t.getTime());
|
|
1634
|
-
},
|
|
1635
|
-
|
|
1636
|
-
if (!e.every(
|
|
1634
|
+
}, bi = (e) => e && _o(e.id) && // Verifica que "id" esté informado
|
|
1635
|
+
So(e.date), wi = (e) => {
|
|
1636
|
+
if (!e.every(bi))
|
|
1637
1637
|
throw console.error("Invalid activity history items", e), new Error("Invalid activity history items");
|
|
1638
1638
|
return e;
|
|
1639
|
-
},
|
|
1639
|
+
}, Co = (e) => {
|
|
1640
1640
|
console.error("Invalid history item", e);
|
|
1641
|
-
},
|
|
1641
|
+
}, Do = (e) => {
|
|
1642
1642
|
const t = [];
|
|
1643
1643
|
for (const s of e)
|
|
1644
|
-
|
|
1644
|
+
bi(s) ? t.push(s) : Co(s);
|
|
1645
1645
|
return t;
|
|
1646
|
-
}, { addActivityHistoryItem:
|
|
1647
|
-
class
|
|
1646
|
+
}, { addActivityHistoryItem: To } = pe.actions;
|
|
1647
|
+
class $o extends me {
|
|
1648
1648
|
async handle(t) {
|
|
1649
1649
|
try {
|
|
1650
|
-
|
|
1650
|
+
wi([t.item]);
|
|
1651
1651
|
const s = this.store.getState();
|
|
1652
|
-
if (
|
|
1652
|
+
if (vi(s.activityHistoryCollections?.collections, t.entityId, t.item.id))
|
|
1653
1653
|
throw new Error(v("error.itemAlreadyExists"));
|
|
1654
1654
|
this.store.dispatch(
|
|
1655
|
-
|
|
1655
|
+
To({
|
|
1656
1656
|
id: t.entityId,
|
|
1657
1657
|
item: t.item,
|
|
1658
1658
|
componentFactory: t.componentFactory
|
|
@@ -1663,31 +1663,31 @@ class So extends me {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
1666
|
-
let
|
|
1667
|
-
const
|
|
1668
|
-
|
|
1669
|
-
},
|
|
1670
|
-
|
|
1666
|
+
let xi;
|
|
1667
|
+
const Io = (e, t) => {
|
|
1668
|
+
xi = e.registerRequest(t.broker.events.activityHistory.addHistoryItemRequest, $o);
|
|
1669
|
+
}, Eo = () => {
|
|
1670
|
+
xi?.dispose();
|
|
1671
1671
|
};
|
|
1672
|
-
class
|
|
1672
|
+
class _i {
|
|
1673
1673
|
constructor(t) {
|
|
1674
1674
|
this.payload = t;
|
|
1675
1675
|
}
|
|
1676
1676
|
}
|
|
1677
|
-
const { addActivityHistoryItems:
|
|
1678
|
-
class
|
|
1677
|
+
const { addActivityHistoryItems: Fo } = pe.actions;
|
|
1678
|
+
class Oo extends me {
|
|
1679
1679
|
async handle(t) {
|
|
1680
1680
|
try {
|
|
1681
|
-
const s =
|
|
1681
|
+
const s = Do(t.items), i = this.filterDuplicateItems(s, t.entityId);
|
|
1682
1682
|
this.store.dispatch(
|
|
1683
|
-
|
|
1683
|
+
Fo({
|
|
1684
1684
|
id: t.entityId,
|
|
1685
1685
|
items: i,
|
|
1686
1686
|
componentFactory: t.componentFactory,
|
|
1687
1687
|
searchPredicate: t.searchPredicate,
|
|
1688
1688
|
historyDataImporterRules: t.historyDataImporterRules
|
|
1689
1689
|
})
|
|
1690
|
-
), t.filters && this.api.broker.send(new
|
|
1690
|
+
), t.filters && this.api.broker.send(new _i(t.filters));
|
|
1691
1691
|
} catch (s) {
|
|
1692
1692
|
this.api.notificationService.error(s.message);
|
|
1693
1693
|
}
|
|
@@ -1696,44 +1696,44 @@ class $o extends me {
|
|
|
1696
1696
|
if (t.length === 0)
|
|
1697
1697
|
return [];
|
|
1698
1698
|
const i = this.store.getState(), r = t.filter(
|
|
1699
|
-
(n) => !
|
|
1699
|
+
(n) => !vi(i.activityHistoryCollections?.collections, s, n.id)
|
|
1700
1700
|
);
|
|
1701
1701
|
if (r.length === 0 && t.length > 0)
|
|
1702
1702
|
throw new Error(v("error.allItemsAlreadyExist"));
|
|
1703
1703
|
return r.length < t.length && this.api.notificationService.warning(v("warning.someItemsAlreadyExist")), r;
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
-
let
|
|
1707
|
-
const
|
|
1708
|
-
|
|
1709
|
-
},
|
|
1710
|
-
|
|
1706
|
+
let Si;
|
|
1707
|
+
const Mo = (e, t) => {
|
|
1708
|
+
Si = e.registerRequest(t.broker.events.activityHistory.addHistoryItemsRequest, Oo);
|
|
1709
|
+
}, Po = () => {
|
|
1710
|
+
Si?.dispose();
|
|
1711
1711
|
};
|
|
1712
1712
|
function S(e, t = {}) {
|
|
1713
|
-
return
|
|
1713
|
+
return Br(Qe)(e, t);
|
|
1714
1714
|
}
|
|
1715
|
-
const xt = (e) => e.activityHistoryCollections.busy.length > 0, _t = (e) => Object.values(e.activityHistoryCollections.collections) && xt(e),
|
|
1716
|
-
var
|
|
1717
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1715
|
+
const xt = (e) => e.activityHistoryCollections.busy.length > 0, _t = (e) => Object.values(e.activityHistoryCollections.collections) && xt(e), ko = (e) => !Object.values(e.activityHistoryCollections.collections)?.length && xt(e), Ao = ".spinner-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}.skeleton-container{padding:20px;height:100%}", Ho = (e) => e.isEmptyDataAndOtherLoading ? h`<div class="skeleton-container">${e.skeletons}</div>` : e.isSomeCollectionLoadedAndOtherLoading ? h`<div class="spinner-container"><dss-spinner size="sm"></dss-spinner><div class="busy-description">${v("busyEntriesLoading")}</div></div>` : M;
|
|
1716
|
+
var Ro = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, rs = (e, t, s, i) => {
|
|
1717
|
+
for (var r = i > 1 ? void 0 : i ? zo(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
1718
1718
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
1719
|
-
return i && r &&
|
|
1719
|
+
return i && r && Ro(t, s, r), r;
|
|
1720
1720
|
};
|
|
1721
1721
|
let Ye = class extends W {
|
|
1722
1722
|
render() {
|
|
1723
|
-
return h`${
|
|
1723
|
+
return h`${Ho(this)}`;
|
|
1724
1724
|
}
|
|
1725
1725
|
get skeletons() {
|
|
1726
1726
|
return Array.from({ length: 12 }, () => h`<dss-skeleton width="100" height="10"></dss-skeleton>`);
|
|
1727
1727
|
}
|
|
1728
1728
|
};
|
|
1729
1729
|
Ye.styles = L`
|
|
1730
|
-
${q(
|
|
1730
|
+
${q(Ao)}
|
|
1731
1731
|
`;
|
|
1732
1732
|
rs([
|
|
1733
1733
|
S(_t)
|
|
1734
1734
|
], Ye.prototype, "isSomeCollectionLoadedAndOtherLoading", 2);
|
|
1735
1735
|
rs([
|
|
1736
|
-
S(
|
|
1736
|
+
S(ko)
|
|
1737
1737
|
], Ye.prototype, "isEmptyDataAndOtherLoading", 2);
|
|
1738
1738
|
Ye = rs([
|
|
1739
1739
|
j("activity-history-busy")
|
|
@@ -1743,7 +1743,7 @@ class ns {
|
|
|
1743
1743
|
this.entities = t;
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
|
-
class
|
|
1746
|
+
class Go extends me {
|
|
1747
1747
|
async handle(t) {
|
|
1748
1748
|
try {
|
|
1749
1749
|
const s = t.entities.map((i) => i.entityId);
|
|
@@ -1754,15 +1754,15 @@ class Ao extends me {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
async dispatchRemoveErrorItems(t) {
|
|
1756
1756
|
for (const s of t)
|
|
1757
|
-
this.store.dispatch(
|
|
1757
|
+
this.store.dispatch(mo(s));
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
let
|
|
1761
|
-
const
|
|
1762
|
-
|
|
1763
|
-
},
|
|
1764
|
-
|
|
1765
|
-
},
|
|
1760
|
+
let Ci;
|
|
1761
|
+
const Vo = (e) => {
|
|
1762
|
+
Di(), Ci = e.registerRequest(ns, Go);
|
|
1763
|
+
}, Di = () => {
|
|
1764
|
+
Ci?.dispose();
|
|
1765
|
+
}, No = ".wrapper{display:flex;flex-direction:column;align-items:center;gap:24px;width:484px;height:auto}.wrapper .content-options{display:flex;flex-direction:column;align-items:center;gap:16px}.wrapper .selector-options{display:flex;flex-direction:row;gap:16px}.wrapper .content-date{display:flex;flex-direction:column;align-items:center;gap:16px;height:124px}.wrapper .datepicker-canvas{display:flex;flex-direction:row;justify-content:center;align-content:center;gap:16px}.wrapper .actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px}dss-datepicker{width:234px;height:48px;border-radius:var(--dss-radius-sm);border:var(--dss-border-width-sm);padding:var(--dss-spacing-sm);gap:var(--dss-spacing-xs);color:var(--color-neutral-100)}", Bo = (e) => {
|
|
1766
1766
|
const { arrayElements: t, text: s } = e;
|
|
1767
1767
|
return h`
|
|
1768
1768
|
<div class="wrapper">
|
|
@@ -1804,10 +1804,10 @@ const Ho = (e) => {
|
|
|
1804
1804
|
</div>` : M}
|
|
1805
1805
|
</div>`;
|
|
1806
1806
|
};
|
|
1807
|
-
var
|
|
1808
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1807
|
+
var qo = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Re = (e, t, s, i) => {
|
|
1808
|
+
for (var r = i > 1 ? void 0 : i ? Lo(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
1809
1809
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
1810
|
-
return i && r &&
|
|
1810
|
+
return i && r && qo(t, s, r), r;
|
|
1811
1811
|
};
|
|
1812
1812
|
let de = class extends W {
|
|
1813
1813
|
constructor() {
|
|
@@ -1820,12 +1820,12 @@ let de = class extends W {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
render() {
|
|
1822
1822
|
return h`
|
|
1823
|
-
${
|
|
1823
|
+
${Bo(this)}
|
|
1824
1824
|
`;
|
|
1825
1825
|
}
|
|
1826
1826
|
static get styles() {
|
|
1827
1827
|
return L`
|
|
1828
|
-
${q(
|
|
1828
|
+
${q(No)}
|
|
1829
1829
|
`;
|
|
1830
1830
|
}
|
|
1831
1831
|
handleTest() {
|
|
@@ -1853,7 +1853,7 @@ Re([
|
|
|
1853
1853
|
de = Re([
|
|
1854
1854
|
j("export-pdf-modal")
|
|
1855
1855
|
], de);
|
|
1856
|
-
class
|
|
1856
|
+
class Wo extends uo {
|
|
1857
1857
|
async handle() {
|
|
1858
1858
|
try {
|
|
1859
1859
|
this.api.interactionService.confirm(void 0, { component: de }, {
|
|
@@ -1873,13 +1873,13 @@ class Bo extends oo {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
class os {
|
|
1875
1875
|
}
|
|
1876
|
-
let
|
|
1877
|
-
const
|
|
1878
|
-
|
|
1879
|
-
},
|
|
1880
|
-
|
|
1876
|
+
let Ti;
|
|
1877
|
+
const jo = (e) => {
|
|
1878
|
+
Ti = e.registerRequest(os, Wo);
|
|
1879
|
+
}, Yo = () => {
|
|
1880
|
+
Ti?.dispose();
|
|
1881
1881
|
};
|
|
1882
|
-
function
|
|
1882
|
+
function Qo(e, t, s, i) {
|
|
1883
1883
|
const r = `Sense ${i.toLocaleLowerCase()}`, n = /* @__PURE__ */ new Map();
|
|
1884
1884
|
let o = !1;
|
|
1885
1885
|
for (const l of e) {
|
|
@@ -1893,16 +1893,16 @@ function Lo(e, t, s, i) {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
class G {
|
|
1895
1895
|
and(t) {
|
|
1896
|
-
return new
|
|
1896
|
+
return new Uo(this, t);
|
|
1897
1897
|
}
|
|
1898
1898
|
or(t) {
|
|
1899
|
-
return new
|
|
1899
|
+
return new Xo(this, t);
|
|
1900
1900
|
}
|
|
1901
1901
|
not() {
|
|
1902
|
-
return new
|
|
1902
|
+
return new Ko(this);
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
|
-
class
|
|
1905
|
+
class Uo extends G {
|
|
1906
1906
|
constructor(t, s) {
|
|
1907
1907
|
super(), this.left = t, this.right = s;
|
|
1908
1908
|
}
|
|
@@ -1910,7 +1910,7 @@ class Wo extends G {
|
|
|
1910
1910
|
return this.left.isSatisfiedBy(t) && this.right.isSatisfiedBy(t);
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
|
-
class
|
|
1913
|
+
class Xo extends G {
|
|
1914
1914
|
constructor(t, s) {
|
|
1915
1915
|
super(), this.left = t, this.right = s;
|
|
1916
1916
|
}
|
|
@@ -1918,7 +1918,7 @@ class jo extends G {
|
|
|
1918
1918
|
return this.left.isSatisfiedBy(t) || this.right.isSatisfiedBy(t);
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
|
-
class
|
|
1921
|
+
class Ko extends G {
|
|
1922
1922
|
constructor(t) {
|
|
1923
1923
|
super(), this.spec = t;
|
|
1924
1924
|
}
|
|
@@ -1926,54 +1926,54 @@ class Yo extends G {
|
|
|
1926
1926
|
return !this.spec.isSatisfiedBy(t);
|
|
1927
1927
|
}
|
|
1928
1928
|
}
|
|
1929
|
-
class
|
|
1929
|
+
class Jo extends G {
|
|
1930
1930
|
isSatisfiedBy(t) {
|
|
1931
1931
|
return !t?.deleted;
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
let
|
|
1935
|
-
const
|
|
1936
|
-
|
|
1934
|
+
let Bt = null;
|
|
1935
|
+
const $i = (e) => {
|
|
1936
|
+
Bt = e;
|
|
1937
1937
|
};
|
|
1938
|
-
class
|
|
1938
|
+
class Zo extends G {
|
|
1939
1939
|
isSatisfiedBy(t) {
|
|
1940
|
-
if (!
|
|
1940
|
+
if (!Bt)
|
|
1941
1941
|
return !1;
|
|
1942
1942
|
try {
|
|
1943
|
-
const s =
|
|
1943
|
+
const s = Bt.globalStateManager.getData("userInfo");
|
|
1944
1944
|
return t?.professional?.id === s?.userId;
|
|
1945
1945
|
} catch {
|
|
1946
1946
|
return !1;
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
|
-
class
|
|
1950
|
+
class ea extends G {
|
|
1951
1951
|
isSatisfiedBy(t) {
|
|
1952
1952
|
return t?.relevant ?? !1;
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
|
-
const
|
|
1956
|
-
[
|
|
1957
|
-
[
|
|
1958
|
-
[
|
|
1955
|
+
const ta = {
|
|
1956
|
+
[fi]: ea,
|
|
1957
|
+
[pi]: Zo,
|
|
1958
|
+
[wt]: Jo
|
|
1959
1959
|
};
|
|
1960
|
-
class
|
|
1960
|
+
class sa extends G {
|
|
1961
1961
|
isSatisfiedBy() {
|
|
1962
1962
|
return !0;
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
|
-
class
|
|
1965
|
+
class ia extends G {
|
|
1966
1966
|
constructor(t) {
|
|
1967
1967
|
super(), this.commonFilters = t;
|
|
1968
1968
|
}
|
|
1969
1969
|
isSatisfiedBy(t) {
|
|
1970
1970
|
return this.commonFilters.filter((r) => r.inverted ? !r.enabled : r.enabled).reduce((r, n) => {
|
|
1971
|
-
const o =
|
|
1971
|
+
const o = ta[n.id];
|
|
1972
1972
|
return o ? r.and(new o()) : r;
|
|
1973
|
-
}, new
|
|
1973
|
+
}, new sa()).isSatisfiedBy(t);
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
|
-
class
|
|
1976
|
+
class ra extends G {
|
|
1977
1977
|
isSatisfiedBy() {
|
|
1978
1978
|
return !1;
|
|
1979
1979
|
}
|
|
@@ -1986,21 +1986,21 @@ class Ms extends G {
|
|
|
1986
1986
|
return this.propPath.reduce((i, r) => i?.[r], t) === this.value;
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
|
-
class
|
|
1989
|
+
class na extends G {
|
|
1990
1990
|
constructor(t) {
|
|
1991
1991
|
super(), this.group = t;
|
|
1992
1992
|
}
|
|
1993
1993
|
isSatisfiedBy(t) {
|
|
1994
|
-
return t.type !== this.group.id ? !1 : this.group.filters.filter(
|
|
1994
|
+
return t.type !== this.group.id ? !1 : this.group.filters.filter(hi).every((s) => this.satisfies(t, s));
|
|
1995
1995
|
}
|
|
1996
1996
|
satisfies(t, s) {
|
|
1997
1997
|
return Ce(s) ? new Ms(s.propPathValue, !0).isSatisfiedBy(t) : (s.enabledValues ?? []).reduce(
|
|
1998
1998
|
(r, n) => r.or(new Ms(s.propPathValue, n)),
|
|
1999
|
-
new
|
|
1999
|
+
new ra()
|
|
2000
2000
|
).isSatisfiedBy(t);
|
|
2001
2001
|
}
|
|
2002
2002
|
}
|
|
2003
|
-
class
|
|
2003
|
+
class oa extends G {
|
|
2004
2004
|
constructor(t) {
|
|
2005
2005
|
super(), this.diagnosticCodes = this.extractAllCodes(t);
|
|
2006
2006
|
}
|
|
@@ -2020,33 +2020,33 @@ class sa extends G {
|
|
|
2020
2020
|
return this.diagnosticCodes?.length ? (t.diagnostics ?? []).some((i) => this.diagnosticCodes.includes(i.codi)) : !0;
|
|
2021
2021
|
}
|
|
2022
2022
|
}
|
|
2023
|
-
const
|
|
2023
|
+
const aa = "history-up", la = "history-professional-role", ca = "history-speciality", da = "history-professional", ua = "history-service", as = "history-note-type", Ii = [
|
|
2024
2024
|
{
|
|
2025
|
-
id:
|
|
2025
|
+
id: aa,
|
|
2026
2026
|
title: "UP",
|
|
2027
2027
|
valuePath: ["up", "id"],
|
|
2028
2028
|
descriptionPath: ["up", "description"]
|
|
2029
2029
|
},
|
|
2030
2030
|
{
|
|
2031
|
-
id:
|
|
2031
|
+
id: la,
|
|
2032
2032
|
title: "Tipus de professional",
|
|
2033
2033
|
valuePath: ["professional", "role", "id"],
|
|
2034
2034
|
descriptionPath: ["professional", "role", "description"]
|
|
2035
2035
|
},
|
|
2036
2036
|
{
|
|
2037
|
-
id:
|
|
2037
|
+
id: ca,
|
|
2038
2038
|
title: "Especialitat",
|
|
2039
2039
|
valuePath: ["professional", "speciality", "id"],
|
|
2040
2040
|
descriptionPath: ["professional", "speciality", "description"]
|
|
2041
2041
|
},
|
|
2042
2042
|
{
|
|
2043
|
-
id:
|
|
2043
|
+
id: da,
|
|
2044
2044
|
title: "Professional",
|
|
2045
2045
|
valuePath: ["professional", "id"],
|
|
2046
2046
|
descriptionPath: ["professional", "name"]
|
|
2047
2047
|
},
|
|
2048
2048
|
{
|
|
2049
|
-
id:
|
|
2049
|
+
id: ua,
|
|
2050
2050
|
title: "Servei",
|
|
2051
2051
|
valuePath: ["service", "id"],
|
|
2052
2052
|
descriptionPath: ["service", "description"]
|
|
@@ -2060,24 +2060,24 @@ const ia = "history-up", ra = "history-professional-role", na = "history-special
|
|
|
2060
2060
|
descriptionPath: ["noteType", "description"],
|
|
2061
2061
|
optionGroup: {
|
|
2062
2062
|
title: "Curs clínic i activitats",
|
|
2063
|
-
excludedValues: Object.values(
|
|
2063
|
+
excludedValues: Object.values(qr)
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
2066
|
];
|
|
2067
|
-
class
|
|
2067
|
+
class ha extends G {
|
|
2068
2068
|
constructor(t) {
|
|
2069
2069
|
super(), this.filters = t;
|
|
2070
2070
|
}
|
|
2071
2071
|
isSatisfiedBy(t) {
|
|
2072
2072
|
return (this.filters ?? []).filter((i) => i.enabledValues?.length).every((i) => {
|
|
2073
|
-
const r =
|
|
2073
|
+
const r = Ii.find((o) => o.id === i.id);
|
|
2074
2074
|
if (!r) return !0;
|
|
2075
2075
|
const n = r.valuePath.reduce((o, a) => o?.[a], t);
|
|
2076
2076
|
return i.enabledValues.includes(n);
|
|
2077
2077
|
});
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
|
-
class
|
|
2080
|
+
class fa extends G {
|
|
2081
2081
|
constructor(t) {
|
|
2082
2082
|
super(), this.noteTypeIds = t;
|
|
2083
2083
|
}
|
|
@@ -2085,7 +2085,7 @@ class ca extends G {
|
|
|
2085
2085
|
return this.noteTypeIds.includes(t.noteType?.id ?? "");
|
|
2086
2086
|
}
|
|
2087
2087
|
}
|
|
2088
|
-
class
|
|
2088
|
+
class pa extends G {
|
|
2089
2089
|
constructor(t, s) {
|
|
2090
2090
|
super(), this.clauses = t, this.showDeleted = s;
|
|
2091
2091
|
}
|
|
@@ -2096,20 +2096,20 @@ class da extends G {
|
|
|
2096
2096
|
const Ps = (e) => e == null ? "" : String(e).normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase(), ve = (e, t) => {
|
|
2097
2097
|
const s = Ps(e), i = Ps(t);
|
|
2098
2098
|
return s.toString().toLowerCase().indexOf(i) !== -1 || s.toString().indexOf(i) !== -1;
|
|
2099
|
-
},
|
|
2099
|
+
}, ma = (e, t) => {
|
|
2100
2100
|
const s = e.professional?.name && ve(e.professional?.name, t), i = e.center?.description && ve(e.center.description, t), r = e.professional?.speciality?.description && ve(e.professional?.speciality.description, t), n = e.professional?.role?.description && ve(e.professional?.role.description, t), o = e.service?.description && ve(e.service.description, t), a = e.up?.description && ve(e.up.description, t), l = e.diagnostics?.some(
|
|
2101
2101
|
(d) => ve(d.descripcio, t)
|
|
2102
2102
|
);
|
|
2103
2103
|
return s || i || r || n || o || a || l;
|
|
2104
2104
|
};
|
|
2105
|
-
class
|
|
2105
|
+
class ga extends G {
|
|
2106
2106
|
constructor(t, s) {
|
|
2107
2107
|
super(), this.searchString = t, this.searchPredicate = s;
|
|
2108
2108
|
}
|
|
2109
2109
|
isSatisfiedBy(t) {
|
|
2110
2110
|
if (!this.searchString?.trim())
|
|
2111
2111
|
return !0;
|
|
2112
|
-
const s =
|
|
2112
|
+
const s = ma(t, this.searchString);
|
|
2113
2113
|
let i = !1;
|
|
2114
2114
|
if (this.searchPredicate)
|
|
2115
2115
|
try {
|
|
@@ -2122,47 +2122,47 @@ class ha extends G {
|
|
|
2122
2122
|
const ls = (e) => e.activityHistoryFilters.filters, St = $(
|
|
2123
2123
|
ls,
|
|
2124
2124
|
(e) => e.find(ss)?.filters || []
|
|
2125
|
-
),
|
|
2125
|
+
), Ei = $(
|
|
2126
2126
|
St,
|
|
2127
|
-
(e) => e.find((t) => t.id ===
|
|
2128
|
-
),
|
|
2127
|
+
(e) => e.find((t) => t.id === wt)
|
|
2128
|
+
), ya = $(Ei, (e) => !!e?.enabled), va = $(
|
|
2129
2129
|
St,
|
|
2130
|
-
(e) => e.filter((t) => t.id !==
|
|
2131
|
-
),
|
|
2130
|
+
(e) => e.filter((t) => t.id !== wt)
|
|
2131
|
+
), Fi = $(
|
|
2132
2132
|
St,
|
|
2133
2133
|
(e) => e.filter((t) => t.enabled)
|
|
2134
|
-
),
|
|
2134
|
+
), ba = $(Fi, (e) => !!e.length), Ct = $(
|
|
2135
2135
|
ls,
|
|
2136
|
-
(e) => e.filter(is).sort(
|
|
2137
|
-
),
|
|
2136
|
+
(e) => e.filter(is).sort(wa)
|
|
2137
|
+
), wa = (e, t) => Number(e.sort) - Number(t.sort), xa = $(
|
|
2138
2138
|
Ct,
|
|
2139
|
-
(e) => e.some(
|
|
2140
|
-
),
|
|
2139
|
+
(e) => e.some(bt)
|
|
2140
|
+
), Oi = $(
|
|
2141
2141
|
ls,
|
|
2142
2142
|
(e) => e.find(Pe)
|
|
2143
2143
|
), cs = $(
|
|
2144
|
-
|
|
2144
|
+
Oi,
|
|
2145
2145
|
(e) => e?.enabledValues || []
|
|
2146
|
-
),
|
|
2146
|
+
), _a = $(
|
|
2147
2147
|
cs,
|
|
2148
2148
|
(e) => !!e.length
|
|
2149
|
-
), ks = (e, t) => t.reduce((s, i) => s?.[i], e),
|
|
2149
|
+
), ks = (e, t) => t.reduce((s, i) => s?.[i], e), Sa = (e, t) => {
|
|
2150
2150
|
const s = ks(e, t.valuePath);
|
|
2151
2151
|
if (typeof s != "string" || !s.trim()) return;
|
|
2152
2152
|
const i = ks(e, t.descriptionPath);
|
|
2153
2153
|
return { value: s, label: typeof i == "string" && i.trim() ? i : s };
|
|
2154
|
-
},
|
|
2154
|
+
}, Ca = (e, t) => e.label.localeCompare(t.label, "ca", { sensitivity: "base" }), Da = (e, t) => {
|
|
2155
2155
|
const s = /* @__PURE__ */ new Map();
|
|
2156
2156
|
for (const i of e) {
|
|
2157
|
-
const r =
|
|
2157
|
+
const r = Sa(i, t);
|
|
2158
2158
|
r && !s.has(r.value) && s.set(r.value, r);
|
|
2159
2159
|
}
|
|
2160
|
-
return [...s.values()].sort(
|
|
2161
|
-
},
|
|
2160
|
+
return [...s.values()].sort(Ca);
|
|
2161
|
+
}, Ta = (e, t, { title: s, excludedValues: i }) => {
|
|
2162
2162
|
const r = e.filter((a) => !i.includes(a.value)), n = e.filter((a) => i.includes(a.value));
|
|
2163
2163
|
return { groups: r.length > 0 ? [{ id: `${t.id}-group`, title: s, values: r }] : [], values: [...r, ...n] };
|
|
2164
|
-
},
|
|
2165
|
-
const i =
|
|
2164
|
+
}, $a = (e, t = {}) => Ii.map((s) => {
|
|
2165
|
+
const i = Da(e, s), { groups: r, values: n } = s.optionGroup ? Ta(i, s, s.optionGroup) : { groups: [], values: i };
|
|
2166
2166
|
return { definition: s, groups: r, values: n };
|
|
2167
2167
|
}).filter(({ values: s }) => s.length > 0).map(({ definition: s, groups: i, values: r }) => ({
|
|
2168
2168
|
id: s.id,
|
|
@@ -2170,55 +2170,55 @@ const ls = (e) => e.activityHistoryFilters.filters, St = $(
|
|
|
2170
2170
|
values: r,
|
|
2171
2171
|
groups: i,
|
|
2172
2172
|
enabledValues: (t[s.id] ?? []).filter((n) => r.some((o) => o.value === n))
|
|
2173
|
-
})),
|
|
2174
|
-
|
|
2175
|
-
|
|
2173
|
+
})), Ia = (e) => e.activityHistoryCollections.collections, Ea = (e) => e.activityHistoryFilters.globalFilterSelection, ds = $(
|
|
2174
|
+
Ia,
|
|
2175
|
+
Ea,
|
|
2176
2176
|
(e, t) => {
|
|
2177
2177
|
const s = Object.values(e).flatMap(
|
|
2178
2178
|
(i) => i.items ?? []
|
|
2179
2179
|
);
|
|
2180
|
-
return
|
|
2180
|
+
return $a(s, t);
|
|
2181
2181
|
}
|
|
2182
2182
|
), us = $(
|
|
2183
2183
|
ds,
|
|
2184
2184
|
(e) => e.filter((t) => t.enabledValues.length > 0)
|
|
2185
|
-
),
|
|
2185
|
+
), Fa = $(us, (e) => !!e.length), Oa = $(
|
|
2186
2186
|
ds,
|
|
2187
2187
|
(e) => e.find((t) => t.id === as)
|
|
2188
|
-
),
|
|
2188
|
+
), Ma = $(
|
|
2189
2189
|
us,
|
|
2190
2190
|
(e) => e.filter((t) => t.id !== as)
|
|
2191
|
-
),
|
|
2191
|
+
), Pa = (e, t) => {
|
|
2192
2192
|
if (e.length !== t.length)
|
|
2193
2193
|
return !1;
|
|
2194
2194
|
const s = e.map((r) => r.codi).sort(), i = t.map((r) => r.codi).sort();
|
|
2195
2195
|
return s.every((r, n) => r === i[n]);
|
|
2196
|
-
},
|
|
2197
|
-
const t = `${e.professional?.id || "null"}-${e.professional?.role?.id || "null"}-${e.professional?.speciality?.id || "null"}`, s = `${e.ep?.id || "null"}-${e.up?.id || "null"}-${e.center?.id || "null"}`, i =
|
|
2196
|
+
}, ka = (e) => e != null && typeof e.codi == "string" && (typeof e.cataleg == "string" || e.cataleg === null) && typeof e.descripcio == "string", Aa = (e) => e == null ? !0 : Array.isArray(e) && e.every(ka), tt = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map(), Ha = (e) => (tt.has(e) || tt.set(e, new Date(e).toDateString()), tt.get(e)), J = (e) => (st.has(e) || st.set(e, new Date(e)), st.get(e)), qt = (e) => {
|
|
2197
|
+
const t = `${e.professional?.id || "null"}-${e.professional?.role?.id || "null"}-${e.professional?.speciality?.id || "null"}`, s = `${e.ep?.id || "null"}-${e.up?.id || "null"}-${e.center?.id || "null"}`, i = Ha(e.date);
|
|
2198
2198
|
return `${t}|${s}|${i}`;
|
|
2199
|
-
}, As = (e) => e.service?.id != null && e.service.id !== "",
|
|
2199
|
+
}, As = (e) => e.service?.id != null && e.service.id !== "", Ra = (e, t) => {
|
|
2200
2200
|
const s = qt(e), i = qt(t);
|
|
2201
2201
|
return s !== i ? !1 : !As(e) || !As(t) ? !0 : e.service?.id === t.service?.id;
|
|
2202
2202
|
}, Hs = (e, t) => {
|
|
2203
2203
|
const s = J(e).getTime(), i = J(t).getTime();
|
|
2204
2204
|
return Math.abs(s - i) <= 480 * 60 * 1e3;
|
|
2205
2205
|
};
|
|
2206
|
-
function
|
|
2206
|
+
function za(e) {
|
|
2207
2207
|
e.forEach((t) => {
|
|
2208
2208
|
const s = [], i = [];
|
|
2209
2209
|
t.items.forEach((r) => {
|
|
2210
2210
|
const n = r.diagnostics;
|
|
2211
|
-
if (n?.length > 0 &&
|
|
2211
|
+
if (n?.length > 0 && Aa(n)) {
|
|
2212
2212
|
let a = !1;
|
|
2213
2213
|
for (const l of s) {
|
|
2214
2214
|
const d = l.items[0];
|
|
2215
|
-
if (
|
|
2215
|
+
if (Pa(d.diagnostics, n)) {
|
|
2216
2216
|
l.items.push(r), a = !0;
|
|
2217
2217
|
break;
|
|
2218
2218
|
}
|
|
2219
2219
|
}
|
|
2220
2220
|
a || s.push({
|
|
2221
|
-
idSubGroup:
|
|
2221
|
+
idSubGroup: Vr(),
|
|
2222
2222
|
items: [r]
|
|
2223
2223
|
});
|
|
2224
2224
|
} else
|
|
@@ -2226,9 +2226,9 @@ function ka(e) {
|
|
|
2226
2226
|
}), t.items = i, t.subGroups = s;
|
|
2227
2227
|
});
|
|
2228
2228
|
}
|
|
2229
|
-
const
|
|
2229
|
+
const Ga = (e) => {
|
|
2230
2230
|
if (!e?.length) return [];
|
|
2231
|
-
|
|
2231
|
+
tt.clear(), st.clear();
|
|
2232
2232
|
const t = [...e].sort(
|
|
2233
2233
|
(r, n) => J(n.date).getTime() - J(r.date).getTime()
|
|
2234
2234
|
), s = /* @__PURE__ */ new Map(), i = [];
|
|
@@ -2238,7 +2238,7 @@ const Aa = (e) => {
|
|
|
2238
2238
|
const l = s.get(n) || [];
|
|
2239
2239
|
for (const d of l) {
|
|
2240
2240
|
const c = d.items[0], u = d.items[d.items.length - 1];
|
|
2241
|
-
if (!(!c || !u) &&
|
|
2241
|
+
if (!(!c || !u) && Ra(c, r) && Hs(c.date, r.date) && Hs(u.date, r.date)) {
|
|
2242
2242
|
const y = J(u.date).getTime(), f = J(c.date).getTime(), m = Math.min(y, o), D = Math.max(f, o);
|
|
2243
2243
|
let p = !1;
|
|
2244
2244
|
for (const [b, g] of s)
|
|
@@ -2275,21 +2275,21 @@ const Aa = (e) => {
|
|
|
2275
2275
|
return i.sort((r, n) => {
|
|
2276
2276
|
const o = r.items[0], a = n.items[0];
|
|
2277
2277
|
return !o || !a ? 0 : J(a.date).getTime() - J(o.date).getTime();
|
|
2278
|
-
}),
|
|
2279
|
-
},
|
|
2278
|
+
}), za(i), i;
|
|
2279
|
+
}, Mi = (e) => e.reduce((t, s) => {
|
|
2280
2280
|
const i = new Date(s.date);
|
|
2281
2281
|
return i > t ? i : t;
|
|
2282
|
-
}, /* @__PURE__ */ new Date(0)), Lt = (e) =>
|
|
2283
|
-
const t = e.items.length > 0 ? [
|
|
2282
|
+
}, /* @__PURE__ */ new Date(0)), Lt = (e) => Mi(e.items), Wt = (e) => {
|
|
2283
|
+
const t = e.items.length > 0 ? [Mi(e.items)] : [], s = e.subGroups.map(Lt), i = [...t, ...s];
|
|
2284
2284
|
return i.length > 0 ? new Date(Math.max(...i.map((r) => r.getTime()))) : /* @__PURE__ */ new Date(0);
|
|
2285
|
-
},
|
|
2285
|
+
}, Va = (e) => {
|
|
2286
2286
|
const t = (s) => s.sort((i, r) => new Date(r.date).getTime() - new Date(i.date).getTime());
|
|
2287
2287
|
return e.forEach((s) => {
|
|
2288
2288
|
s.items = t(s.items), s.subGroups.forEach((i) => {
|
|
2289
2289
|
i.items = t(i.items);
|
|
2290
2290
|
}), s.subGroups.sort((i, r) => Lt(r).getTime() - Lt(i).getTime());
|
|
2291
2291
|
}), e.sort((s, i) => Wt(i).getTime() - Wt(s).getTime());
|
|
2292
|
-
}, Dt = (e) => e.activityHistoryFilters.searchString, Tt = (e) => e.activityHistoryCollections.collections,
|
|
2292
|
+
}, Dt = (e) => e.activityHistoryFilters.searchString, Tt = (e) => e.activityHistoryCollections.collections, Na = $(
|
|
2293
2293
|
Tt,
|
|
2294
2294
|
(e) => {
|
|
2295
2295
|
const t = {};
|
|
@@ -2297,17 +2297,17 @@ const Aa = (e) => {
|
|
|
2297
2297
|
i?.historyDataImporterRules && (t[s] = i.historyDataImporterRules);
|
|
2298
2298
|
return t;
|
|
2299
2299
|
}
|
|
2300
|
-
),
|
|
2300
|
+
), Ba = (e, t, s, i) => e.map(
|
|
2301
2301
|
(r) => ({
|
|
2302
2302
|
...r,
|
|
2303
2303
|
searchPredicate: i,
|
|
2304
2304
|
componentFactory: t,
|
|
2305
2305
|
type: s
|
|
2306
2306
|
})
|
|
2307
|
-
),
|
|
2307
|
+
), qa = $(
|
|
2308
2308
|
Tt,
|
|
2309
|
-
(e) => Object.values(e).flatMap((t) =>
|
|
2310
|
-
),
|
|
2309
|
+
(e) => Object.values(e).flatMap((t) => Ba(t.items, t.componentFactory, t.id, t.searchPredicate))
|
|
2310
|
+
), Pi = $(
|
|
2311
2311
|
Ct,
|
|
2312
2312
|
Tt,
|
|
2313
2313
|
(e, t) => e.map((s) => {
|
|
@@ -2316,7 +2316,7 @@ const Aa = (e) => {
|
|
|
2316
2316
|
...s,
|
|
2317
2317
|
filters: s.filters.map((r) => ({
|
|
2318
2318
|
...r,
|
|
2319
|
-
options: Ce(r) ? [] :
|
|
2319
|
+
options: Ce(r) ? [] : Qo(
|
|
2320
2320
|
i,
|
|
2321
2321
|
r.propPathValue,
|
|
2322
2322
|
r.propsPathDescription ?? [],
|
|
@@ -2325,40 +2325,40 @@ const Aa = (e) => {
|
|
|
2325
2325
|
}))
|
|
2326
2326
|
};
|
|
2327
2327
|
})
|
|
2328
|
-
),
|
|
2329
|
-
|
|
2328
|
+
), La = $(
|
|
2329
|
+
Oa,
|
|
2330
2330
|
Ct,
|
|
2331
2331
|
Tt,
|
|
2332
2332
|
(e, t, s) => {
|
|
2333
2333
|
const i = e?.enabledValues ?? [];
|
|
2334
2334
|
if (i.length === 0) return [];
|
|
2335
2335
|
const r = new Set(
|
|
2336
|
-
t.filter(
|
|
2336
|
+
t.filter(bt).flatMap((n) => (s[n.id]?.items ?? []).map((o) => o.noteType?.id))
|
|
2337
2337
|
);
|
|
2338
2338
|
return i.filter((n) => !r.has(n));
|
|
2339
2339
|
}
|
|
2340
|
-
),
|
|
2341
|
-
|
|
2340
|
+
), Wa = $(
|
|
2341
|
+
qa,
|
|
2342
2342
|
Dt,
|
|
2343
2343
|
St,
|
|
2344
2344
|
Ct,
|
|
2345
2345
|
cs,
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2346
|
+
Ma,
|
|
2347
|
+
La,
|
|
2348
|
+
ya,
|
|
2349
2349
|
(e, t, s, i, r, n, o, a) => {
|
|
2350
|
-
const l = new
|
|
2350
|
+
const l = new ia(s), d = new oa(r), c = new ha(n), u = new pa(
|
|
2351
2351
|
[
|
|
2352
|
-
...o.length > 0 ? [new
|
|
2353
|
-
...i.filter(
|
|
2352
|
+
...o.length > 0 ? [new fa(o)] : [],
|
|
2353
|
+
...i.filter(bt).map((y) => new na(y))
|
|
2354
2354
|
],
|
|
2355
2355
|
a
|
|
2356
2356
|
);
|
|
2357
|
-
return e.filter((y) => new
|
|
2357
|
+
return e.filter((y) => new ga(t, y.searchPredicate).and(l).and(d).and(c).and(u).isSatisfiedBy(y));
|
|
2358
2358
|
}
|
|
2359
2359
|
), hs = $(
|
|
2360
|
-
|
|
2361
|
-
(e) =>
|
|
2360
|
+
Wa,
|
|
2361
|
+
(e) => Va(Ga(e))
|
|
2362
2362
|
);
|
|
2363
2363
|
class fs {
|
|
2364
2364
|
constructor(t) {
|
|
@@ -2375,31 +2375,31 @@ class ms {
|
|
|
2375
2375
|
this.payload = t;
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
|
-
const
|
|
2378
|
+
const ja = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,189);width:56px;height:100%;box-sizing:border-box;display:flex;flex-direction:column}.filters-sidebar dss-icon-button{align-self:center}.filters-sidebar[expanded]{width:296px}.filters-sidebar[expanded] .filters-sidebar-opened{display:flex;align-items:center;justify-content:space-between;padding-inline:8px;color:var(--color-neutral-900);font-weight:700;font-size:16px;line-height:24px}.filter-container{display:flex;flex-direction:column;padding:16px 8px 8px;overflow:auto}.filter-container .filter{padding:12px 0;border-bottom:1px solid var(--color-neutral-200)}.filter-options{display:flex;flex-direction:column;gap:8px}.filter-options--nested{padding-left:16px}.filter-container .filter.filter-deleted-toggle{border-bottom:none;border-top:1px solid var(--color-neutral-200);padding-top:12px}.filter-group{display:flex;flex-direction:column;padding-top:12px;gap:var(--dss-spacing-xs);padding-bottom:12px;border-bottom:1px solid var(--color-neutral-200)}.filter-group:last-of-type{border:none}.custom-subfilters-container{display:flex;flex-direction:column;padding-left:16px;gap:12px}.custom-subfilters-container .custom-filter-content{display:flex;flex-direction:column;gap:8px}", Ya = ({ id: e, title: t, checked: s, onChange: i }) => h`
|
|
2379
2379
|
<dss-input-switch size="sm" @onChangeValue=${(r) => i(r.detail)} .checked=${s}>
|
|
2380
2380
|
<input slot="input" id=${e} aria-label=${t} type="checkbox">
|
|
2381
2381
|
<label slot="label" for=${e}>${t}</label>
|
|
2382
|
-
</dss-input-switch>`,
|
|
2382
|
+
</dss-input-switch>`, ki = ({ id: e, title: t, checked: s, onChange: i }) => h`
|
|
2383
2383
|
<dss-checkbox variant="default" @onChange=${(r) => i(r.detail)}>
|
|
2384
2384
|
<input slot="input" id=${e} type="checkbox" .checked=${s}>
|
|
2385
2385
|
<label slot="label" for=${e}>${t}</label>
|
|
2386
|
-
</dss-checkbox>`, jt = (e, t) => e === Oe.Switch ?
|
|
2386
|
+
</dss-checkbox>`, jt = (e, t) => e === Oe.Switch ? Ya(t) : ki(t), Rs = (e, t) => jt(e.type, {
|
|
2387
2387
|
id: `common-filter-${e.id}`,
|
|
2388
2388
|
title: e.title,
|
|
2389
2389
|
checked: e.enabled,
|
|
2390
2390
|
onChange: (s) => t._onChangeCommonFilterValue(e.id, s)
|
|
2391
|
-
}),
|
|
2391
|
+
}), Qa = (e, t) => kt(
|
|
2392
2392
|
e.filters.length > 0,
|
|
2393
2393
|
() => h`
|
|
2394
2394
|
<div class="filter">
|
|
2395
2395
|
<primaria-accordion>
|
|
2396
2396
|
<dss-typography slot="title" tag="p" variant="subtitle-3">${e.title}</dss-typography>
|
|
2397
2397
|
<div class="filter-options" slot="content">
|
|
2398
|
-
${e.filters.map((s) =>
|
|
2398
|
+
${e.filters.map((s) => Ua(s, e, t))}
|
|
2399
2399
|
</div>
|
|
2400
2400
|
</primaria-accordion>
|
|
2401
2401
|
</div>`
|
|
2402
|
-
),
|
|
2402
|
+
), Ua = (e, t, s) => Ce(e) ? jt(e.type, {
|
|
2403
2403
|
id: `custom-filter-${t.id}-${e.id}`,
|
|
2404
2404
|
title: e.title,
|
|
2405
2405
|
checked: !!e.enabled,
|
|
@@ -2411,12 +2411,12 @@ const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
2411
2411
|
checked: !!e.enabledValues?.includes(i.id),
|
|
2412
2412
|
onChange: (n) => s._onChangeCustomFilterValue(t.id, e.id, i.id, n)
|
|
2413
2413
|
})
|
|
2414
|
-
),
|
|
2414
|
+
), Ai = (e, t, s) => ki({
|
|
2415
2415
|
id: `global-filter-${e.id}-${t.value}`,
|
|
2416
2416
|
title: t.label || t.value,
|
|
2417
2417
|
checked: e.enabledValues.includes(t.value),
|
|
2418
2418
|
onChange: (i) => s._onToggleGlobalFilterValue(e.id, t.value, i)
|
|
2419
|
-
}),
|
|
2419
|
+
}), Xa = (e, t, s) => {
|
|
2420
2420
|
const i = t.values.filter((n) => e.enabledValues.includes(n.value)).length, r = `global-filter-${e.id}-group-${t.id}`;
|
|
2421
2421
|
return h`
|
|
2422
2422
|
<dss-checkbox variant="default" .indeterminate=${i > 0 && i < t.values.length} @onChange=${(n) => s._onToggleGlobalFilterGroup(e.id, t.id, n.detail)}>
|
|
@@ -2424,21 +2424,21 @@ const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
2424
2424
|
<label slot="label" for=${r}>${t.title}</label>
|
|
2425
2425
|
</dss-checkbox>
|
|
2426
2426
|
<div class="filter-options filter-options--nested">
|
|
2427
|
-
${t.values.map((n) =>
|
|
2427
|
+
${t.values.map((n) => Ai(e, n, s))}
|
|
2428
2428
|
</div>`;
|
|
2429
|
-
},
|
|
2429
|
+
}, Ka = (e, t) => {
|
|
2430
2430
|
const s = new Set(e.groups.flatMap((r) => r.values.map((n) => n.value))), i = e.values.filter((r) => !s.has(r.value));
|
|
2431
2431
|
return h`
|
|
2432
2432
|
<div class="filter">
|
|
2433
2433
|
<primaria-accordion>
|
|
2434
2434
|
<dss-typography slot="title" tag="p" variant="subtitle-3">${e.title}</dss-typography>
|
|
2435
2435
|
<div class="filter-options" slot="content">
|
|
2436
|
-
${e.groups.map((r) =>
|
|
2437
|
-
${i.map((r) =>
|
|
2436
|
+
${e.groups.map((r) => Xa(e, r, t))}
|
|
2437
|
+
${i.map((r) => Ai(e, r, t))}
|
|
2438
2438
|
</div>
|
|
2439
2439
|
</primaria-accordion>
|
|
2440
2440
|
</div>`;
|
|
2441
|
-
},
|
|
2441
|
+
}, Ja = (e) => h`
|
|
2442
2442
|
<div class="filters-sidebar" ?expanded=${e.filtersExpanded} >
|
|
2443
2443
|
${e.filtersExpanded ? h`<div class="filters-sidebar-opened">${v("filters.filters")}<dss-icon-button ?hidden=${e.wrapperMaximized} @click=${() => e._toggleFilters()} size="md" variant="primary" icon="keyboard_double_arrow_left"></dss-icon-button></div>
|
|
2444
2444
|
<div class="filter-container">
|
|
@@ -2455,13 +2455,13 @@ const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
2455
2455
|
${oe(
|
|
2456
2456
|
e.globalFilters,
|
|
2457
2457
|
(t) => t.id,
|
|
2458
|
-
(t) =>
|
|
2458
|
+
(t) => Ka(t, e)
|
|
2459
2459
|
)}
|
|
2460
2460
|
<!-- Filtres propis de cada plugin -->
|
|
2461
2461
|
${oe(
|
|
2462
2462
|
e.customFilterGroups,
|
|
2463
2463
|
(t) => t.id,
|
|
2464
|
-
(t) =>
|
|
2464
|
+
(t) => Qa(t, e)
|
|
2465
2465
|
)}
|
|
2466
2466
|
<!-- Toggle global d'eliminats: sempre l'últim de la llista -->
|
|
2467
2467
|
${e.deletedFilter ? h`<div class="filter filter-deleted-toggle">${Rs(e.deletedFilter, e)}</div>` : M}
|
|
@@ -2470,17 +2470,17 @@ const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
2470
2470
|
`}
|
|
2471
2471
|
</div>
|
|
2472
2472
|
`;
|
|
2473
|
-
var
|
|
2474
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
2473
|
+
var Za = Object.defineProperty, el = Object.getOwnPropertyDescriptor, ge = (e, t, s, i) => {
|
|
2474
|
+
for (var r = i > 1 ? void 0 : i ? el(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
2475
2475
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
2476
|
-
return i && r &&
|
|
2476
|
+
return i && r && Za(t, s, r), r;
|
|
2477
2477
|
};
|
|
2478
2478
|
let te = class extends W {
|
|
2479
2479
|
constructor() {
|
|
2480
2480
|
super(...arguments), this.filtersExpanded = !1;
|
|
2481
2481
|
}
|
|
2482
2482
|
render() {
|
|
2483
|
-
return h`${
|
|
2483
|
+
return h`${Ja(this)}`;
|
|
2484
2484
|
}
|
|
2485
2485
|
updated(e) {
|
|
2486
2486
|
e.has("wrapperMaximized") && (this.filtersExpanded = this.wrapperMaximized);
|
|
@@ -2521,16 +2521,16 @@ let te = class extends W {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
};
|
|
2523
2523
|
te.styles = L`
|
|
2524
|
-
${q(
|
|
2524
|
+
${q(ja)}
|
|
2525
2525
|
`;
|
|
2526
2526
|
ge([
|
|
2527
|
-
S(
|
|
2527
|
+
S(va)
|
|
2528
2528
|
], te.prototype, "commonFilters", 2);
|
|
2529
2529
|
ge([
|
|
2530
|
-
S(
|
|
2530
|
+
S(Ei)
|
|
2531
2531
|
], te.prototype, "deletedFilter", 2);
|
|
2532
2532
|
ge([
|
|
2533
|
-
S(
|
|
2533
|
+
S(Pi)
|
|
2534
2534
|
], te.prototype, "customFilterGroups", 2);
|
|
2535
2535
|
ge([
|
|
2536
2536
|
S(ds)
|
|
@@ -2547,22 +2547,7 @@ ge([
|
|
|
2547
2547
|
te = ge([
|
|
2548
2548
|
j("activity-history-filters")
|
|
2549
2549
|
], te);
|
|
2550
|
-
const { setCommonFilterValue:
|
|
2551
|
-
class Ja extends Te {
|
|
2552
|
-
async handle(t) {
|
|
2553
|
-
try {
|
|
2554
|
-
this.store.dispatch(Ka(t.payload));
|
|
2555
|
-
} catch (s) {
|
|
2556
|
-
console.error(s.message);
|
|
2557
|
-
}
|
|
2558
|
-
}
|
|
2559
|
-
}
|
|
2560
|
-
let ki;
|
|
2561
|
-
const Za = (e) => {
|
|
2562
|
-
ki = e.registerRequest(fs, Ja);
|
|
2563
|
-
}, el = () => {
|
|
2564
|
-
ki?.dispose();
|
|
2565
|
-
}, { addCustomFilters: tl } = re.actions;
|
|
2550
|
+
const { setCommonFilterValue: tl } = re.actions;
|
|
2566
2551
|
class sl extends Te {
|
|
2567
2552
|
async handle(t) {
|
|
2568
2553
|
try {
|
|
@@ -2572,12 +2557,12 @@ class sl extends Te {
|
|
|
2572
2557
|
}
|
|
2573
2558
|
}
|
|
2574
2559
|
}
|
|
2575
|
-
let
|
|
2560
|
+
let Hi;
|
|
2576
2561
|
const il = (e) => {
|
|
2577
|
-
|
|
2562
|
+
Hi = e.registerRequest(fs, sl);
|
|
2578
2563
|
}, rl = () => {
|
|
2579
|
-
|
|
2580
|
-
}, {
|
|
2564
|
+
Hi?.dispose();
|
|
2565
|
+
}, { addCustomFilters: nl } = re.actions;
|
|
2581
2566
|
class ol extends Te {
|
|
2582
2567
|
async handle(t) {
|
|
2583
2568
|
try {
|
|
@@ -2587,43 +2572,38 @@ class ol extends Te {
|
|
|
2587
2572
|
}
|
|
2588
2573
|
}
|
|
2589
2574
|
}
|
|
2590
|
-
let
|
|
2575
|
+
let Ri;
|
|
2591
2576
|
const al = (e) => {
|
|
2592
|
-
|
|
2577
|
+
Ri = e.registerRequest(_i, ol);
|
|
2593
2578
|
}, ll = () => {
|
|
2594
|
-
|
|
2595
|
-
}, {
|
|
2596
|
-
class dl extends
|
|
2579
|
+
Ri?.dispose();
|
|
2580
|
+
}, { setCustomFilterValue: cl } = re.actions;
|
|
2581
|
+
class dl extends Te {
|
|
2597
2582
|
async handle(t) {
|
|
2598
2583
|
try {
|
|
2599
|
-
const i = cs(this.store.getState()).find((r) => r.codi === t.payload.diagnosticCodi);
|
|
2600
|
-
if (i) {
|
|
2601
|
-
const { evolucions: r, relacions: n, ...o } = i;
|
|
2602
|
-
this.api.broker.publish(this.api.broker.events.activityHistory.diagnosticFilterDeactivated, {
|
|
2603
|
-
diagnostic: o
|
|
2604
|
-
});
|
|
2605
|
-
}
|
|
2606
2584
|
this.store.dispatch(cl(t.payload));
|
|
2607
2585
|
} catch (s) {
|
|
2608
2586
|
console.error(s.message);
|
|
2609
2587
|
}
|
|
2610
2588
|
}
|
|
2611
2589
|
}
|
|
2612
|
-
class Ri {
|
|
2613
|
-
constructor(t) {
|
|
2614
|
-
this.payload = t;
|
|
2615
|
-
}
|
|
2616
|
-
}
|
|
2617
2590
|
let zi;
|
|
2618
2591
|
const ul = (e) => {
|
|
2619
|
-
zi = e.registerRequest(
|
|
2592
|
+
zi = e.registerRequest(ps, dl);
|
|
2620
2593
|
}, hl = () => {
|
|
2621
2594
|
zi?.dispose();
|
|
2622
|
-
}, {
|
|
2623
|
-
class pl extends
|
|
2595
|
+
}, { deleteDiagnosticFilterValue: fl } = re.actions;
|
|
2596
|
+
class pl extends me {
|
|
2624
2597
|
async handle(t) {
|
|
2625
2598
|
try {
|
|
2626
|
-
this.store.
|
|
2599
|
+
const i = cs(this.store.getState()).find((r) => r.codi === t.payload.diagnosticCodi);
|
|
2600
|
+
if (i) {
|
|
2601
|
+
const { evolucions: r, relacions: n, ...o } = i;
|
|
2602
|
+
this.api.broker.publish(this.api.broker.events.activityHistory.diagnosticFilterDeactivated, {
|
|
2603
|
+
diagnostic: o
|
|
2604
|
+
});
|
|
2605
|
+
}
|
|
2606
|
+
this.store.dispatch(fl(t.payload));
|
|
2627
2607
|
} catch (s) {
|
|
2628
2608
|
console.error(s.message);
|
|
2629
2609
|
}
|
|
@@ -2639,31 +2619,33 @@ const ml = (e) => {
|
|
|
2639
2619
|
Vi = e.registerRequest(Gi, pl);
|
|
2640
2620
|
}, gl = () => {
|
|
2641
2621
|
Vi?.dispose();
|
|
2642
|
-
}, yl =
|
|
2643
|
-
|
|
2644
|
-
}), { setGlobalFilterValues: vl } = re.actions;
|
|
2645
|
-
class bl extends Te {
|
|
2622
|
+
}, { setDiagnosticFilterValues: yl } = re.actions;
|
|
2623
|
+
class vl extends Te {
|
|
2646
2624
|
async handle(t) {
|
|
2647
2625
|
try {
|
|
2648
|
-
this.store.dispatch(
|
|
2626
|
+
this.store.dispatch(yl(t.payload.diagnostics));
|
|
2649
2627
|
} catch (s) {
|
|
2650
2628
|
console.error(s.message);
|
|
2651
2629
|
}
|
|
2652
2630
|
}
|
|
2653
2631
|
}
|
|
2654
|
-
let Bi;
|
|
2655
|
-
const wl = (e) => {
|
|
2656
|
-
Bi = e.registerRequest(ms, bl);
|
|
2657
|
-
}, xl = () => {
|
|
2658
|
-
Bi?.dispose();
|
|
2659
|
-
};
|
|
2660
2632
|
class Ni {
|
|
2633
|
+
constructor(t) {
|
|
2634
|
+
this.payload = t;
|
|
2635
|
+
}
|
|
2661
2636
|
}
|
|
2662
|
-
|
|
2663
|
-
|
|
2637
|
+
let Bi;
|
|
2638
|
+
const bl = (e) => {
|
|
2639
|
+
Bi = e.registerRequest(Ni, vl);
|
|
2640
|
+
}, wl = () => {
|
|
2641
|
+
Bi?.dispose();
|
|
2642
|
+
}, xl = (e) => e.broker.subscribe("cipds_diagnostic_filter_historic_requested", (t) => {
|
|
2643
|
+
e.broker.send(new Ni(t));
|
|
2644
|
+
}), { setGlobalFilterValues: _l } = re.actions;
|
|
2645
|
+
class Sl extends Te {
|
|
2664
2646
|
async handle(t) {
|
|
2665
2647
|
try {
|
|
2666
|
-
this.
|
|
2648
|
+
this.store.dispatch(_l(t.payload));
|
|
2667
2649
|
} catch (s) {
|
|
2668
2650
|
console.error(s.message);
|
|
2669
2651
|
}
|
|
@@ -2671,29 +2653,47 @@ class Sl extends me {
|
|
|
2671
2653
|
}
|
|
2672
2654
|
let qi;
|
|
2673
2655
|
const Cl = (e) => {
|
|
2674
|
-
qi = e.registerRequest(
|
|
2656
|
+
qi = e.registerRequest(ms, Sl);
|
|
2675
2657
|
}, Dl = () => {
|
|
2676
2658
|
qi?.dispose();
|
|
2677
2659
|
};
|
|
2660
|
+
class Li {
|
|
2661
|
+
}
|
|
2662
|
+
const { resetFilters: Tl } = re.actions;
|
|
2663
|
+
class $l extends me {
|
|
2664
|
+
async handle(t) {
|
|
2665
|
+
try {
|
|
2666
|
+
this.api.broker.publish(this.api.broker.events.activityHistory.filtersCleaned), this.store.dispatch(Tl());
|
|
2667
|
+
} catch (s) {
|
|
2668
|
+
console.error(s.message);
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
let Wi;
|
|
2673
|
+
const Il = (e) => {
|
|
2674
|
+
Wi = e.registerRequest(Li, $l);
|
|
2675
|
+
}, El = () => {
|
|
2676
|
+
Wi?.dispose();
|
|
2677
|
+
};
|
|
2678
2678
|
let Yt = null;
|
|
2679
|
-
const
|
|
2680
|
-
|
|
2681
|
-
},
|
|
2682
|
-
Yt?.dispose(), Yt = null,
|
|
2683
|
-
},
|
|
2679
|
+
const Fl = (e, t) => {
|
|
2680
|
+
il(e), al(e), ul(e), bl(e), ml(e), Cl(e), Il(e), Yt = xl(t);
|
|
2681
|
+
}, Ol = () => {
|
|
2682
|
+
Yt?.dispose(), Yt = null, rl(), ll(), hl(), wl(), gl(), Dl(), El();
|
|
2683
|
+
}, ji = 6048e5, Ml = 864e5, Pl = 6e4, kl = 36e5, Al = 1e3, zs = Symbol.for("constructDateFrom");
|
|
2684
2684
|
function A(e, t) {
|
|
2685
2685
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && zs in e ? e[zs](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
2686
2686
|
}
|
|
2687
2687
|
function P(e, t) {
|
|
2688
2688
|
return A(t || e, e);
|
|
2689
2689
|
}
|
|
2690
|
-
function
|
|
2690
|
+
function Yi(e, t, s) {
|
|
2691
2691
|
const i = P(e, s?.in);
|
|
2692
2692
|
return isNaN(t) ? A(s?.in || e, NaN) : (t && i.setDate(i.getDate() + t), i);
|
|
2693
2693
|
}
|
|
2694
|
-
let
|
|
2694
|
+
let Hl = {};
|
|
2695
2695
|
function ze() {
|
|
2696
|
-
return
|
|
2696
|
+
return Hl;
|
|
2697
2697
|
}
|
|
2698
2698
|
function ue(e, t) {
|
|
2699
2699
|
const s = ze(), i = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? s.weekStartsOn ?? s.locale?.options?.weekStartsOn ?? 0, r = P(e, t?.in), n = r.getDay(), o = (n < i ? 7 : 0) + n - i;
|
|
@@ -2702,7 +2702,7 @@ function ue(e, t) {
|
|
|
2702
2702
|
function ke(e, t) {
|
|
2703
2703
|
return ue(e, { ...t, weekStartsOn: 1 });
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function Qi(e, t) {
|
|
2706
2706
|
const s = P(e, t?.in), i = s.getFullYear(), r = A(s, 0);
|
|
2707
2707
|
r.setFullYear(i + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
2708
2708
|
const n = ke(r), o = A(s, 0);
|
|
@@ -2710,7 +2710,7 @@ function ji(e, t) {
|
|
|
2710
2710
|
const a = ke(o);
|
|
2711
2711
|
return s.getTime() >= n.getTime() ? i + 1 : s.getTime() >= a.getTime() ? i : i - 1;
|
|
2712
2712
|
}
|
|
2713
|
-
function
|
|
2713
|
+
function lt(e) {
|
|
2714
2714
|
const t = P(e), s = new Date(
|
|
2715
2715
|
Date.UTC(
|
|
2716
2716
|
t.getFullYear(),
|
|
@@ -2724,40 +2724,40 @@ function at(e) {
|
|
|
2724
2724
|
);
|
|
2725
2725
|
return s.setUTCFullYear(t.getFullYear()), +e - +s;
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function Rl(e, ...t) {
|
|
2728
2728
|
const s = A.bind(
|
|
2729
2729
|
null,
|
|
2730
2730
|
t.find((i) => typeof i == "object")
|
|
2731
2731
|
);
|
|
2732
2732
|
return t.map(s);
|
|
2733
2733
|
}
|
|
2734
|
-
function
|
|
2734
|
+
function ct(e, t) {
|
|
2735
2735
|
const s = P(e, t?.in);
|
|
2736
2736
|
return s.setHours(0, 0, 0, 0), s;
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2739
|
-
const [i, r] =
|
|
2738
|
+
function zl(e, t, s) {
|
|
2739
|
+
const [i, r] = Rl(
|
|
2740
2740
|
s?.in,
|
|
2741
2741
|
e,
|
|
2742
2742
|
t
|
|
2743
|
-
), n =
|
|
2744
|
-
return Math.round((a - l) /
|
|
2743
|
+
), n = ct(i), o = ct(r), a = +n - lt(n), l = +o - lt(o);
|
|
2744
|
+
return Math.round((a - l) / Ml);
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2747
|
-
const s =
|
|
2746
|
+
function Gl(e, t) {
|
|
2747
|
+
const s = Qi(e, t), i = A(e, 0);
|
|
2748
2748
|
return i.setFullYear(s, 0, 4), i.setHours(0, 0, 0, 0), ke(i);
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function Vl(e) {
|
|
2751
2751
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2754
|
-
return !(!
|
|
2753
|
+
function Ui(e) {
|
|
2754
|
+
return !(!Vl(e) && typeof e != "number" || isNaN(+P(e)));
|
|
2755
2755
|
}
|
|
2756
|
-
function
|
|
2756
|
+
function Nl(e, t) {
|
|
2757
2757
|
const s = P(e, t?.in);
|
|
2758
2758
|
return s.setFullYear(s.getFullYear(), 0, 1), s.setHours(0, 0, 0, 0), s;
|
|
2759
2759
|
}
|
|
2760
|
-
const
|
|
2760
|
+
const Bl = {
|
|
2761
2761
|
lessThanXSeconds: {
|
|
2762
2762
|
one: "less than a second",
|
|
2763
2763
|
other: "less than {{count}} seconds"
|
|
@@ -2819,9 +2819,9 @@ const zl = {
|
|
|
2819
2819
|
one: "almost 1 year",
|
|
2820
2820
|
other: "almost {{count}} years"
|
|
2821
2821
|
}
|
|
2822
|
-
},
|
|
2822
|
+
}, ql = (e, t, s) => {
|
|
2823
2823
|
let i;
|
|
2824
|
-
const r =
|
|
2824
|
+
const r = Bl[e];
|
|
2825
2825
|
return typeof r == "string" ? i = r : t === 1 ? i = r.one : i = r.other.replace("{{count}}", t.toString()), s?.addSuffix ? s.comparison && s.comparison > 0 ? "in " + i : i + " ago" : i;
|
|
2826
2826
|
};
|
|
2827
2827
|
function Mt(e) {
|
|
@@ -2830,43 +2830,43 @@ function Mt(e) {
|
|
|
2830
2830
|
return e.formats[s] || e.formats[e.defaultWidth];
|
|
2831
2831
|
};
|
|
2832
2832
|
}
|
|
2833
|
-
const
|
|
2833
|
+
const Ll = {
|
|
2834
2834
|
full: "EEEE, MMMM do, y",
|
|
2835
2835
|
long: "MMMM do, y",
|
|
2836
2836
|
medium: "MMM d, y",
|
|
2837
2837
|
short: "MM/dd/yyyy"
|
|
2838
|
-
},
|
|
2838
|
+
}, Wl = {
|
|
2839
2839
|
full: "h:mm:ss a zzzz",
|
|
2840
2840
|
long: "h:mm:ss a z",
|
|
2841
2841
|
medium: "h:mm:ss a",
|
|
2842
2842
|
short: "h:mm a"
|
|
2843
|
-
},
|
|
2843
|
+
}, jl = {
|
|
2844
2844
|
full: "{{date}} 'at' {{time}}",
|
|
2845
2845
|
long: "{{date}} 'at' {{time}}",
|
|
2846
2846
|
medium: "{{date}}, {{time}}",
|
|
2847
2847
|
short: "{{date}}, {{time}}"
|
|
2848
|
-
},
|
|
2848
|
+
}, Yl = {
|
|
2849
2849
|
date: Mt({
|
|
2850
|
-
formats:
|
|
2850
|
+
formats: Ll,
|
|
2851
2851
|
defaultWidth: "full"
|
|
2852
2852
|
}),
|
|
2853
2853
|
time: Mt({
|
|
2854
|
-
formats:
|
|
2854
|
+
formats: Wl,
|
|
2855
2855
|
defaultWidth: "full"
|
|
2856
2856
|
}),
|
|
2857
2857
|
dateTime: Mt({
|
|
2858
|
-
formats:
|
|
2858
|
+
formats: jl,
|
|
2859
2859
|
defaultWidth: "full"
|
|
2860
2860
|
})
|
|
2861
|
-
},
|
|
2861
|
+
}, Ql = {
|
|
2862
2862
|
lastWeek: "'last' eeee 'at' p",
|
|
2863
2863
|
yesterday: "'yesterday at' p",
|
|
2864
2864
|
today: "'today at' p",
|
|
2865
2865
|
tomorrow: "'tomorrow at' p",
|
|
2866
2866
|
nextWeek: "eeee 'at' p",
|
|
2867
2867
|
other: "P"
|
|
2868
|
-
},
|
|
2869
|
-
function
|
|
2868
|
+
}, Ul = (e, t, s, i) => Ql[e];
|
|
2869
|
+
function Ne(e) {
|
|
2870
2870
|
return (t, s) => {
|
|
2871
2871
|
const i = s?.context ? String(s.context) : "standalone";
|
|
2872
2872
|
let r;
|
|
@@ -2881,15 +2881,15 @@ function Be(e) {
|
|
|
2881
2881
|
return r[n];
|
|
2882
2882
|
};
|
|
2883
2883
|
}
|
|
2884
|
-
const
|
|
2884
|
+
const Xl = {
|
|
2885
2885
|
narrow: ["B", "A"],
|
|
2886
2886
|
abbreviated: ["BC", "AD"],
|
|
2887
2887
|
wide: ["Before Christ", "Anno Domini"]
|
|
2888
|
-
},
|
|
2888
|
+
}, Kl = {
|
|
2889
2889
|
narrow: ["1", "2", "3", "4"],
|
|
2890
2890
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
2891
2891
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
2892
|
-
},
|
|
2892
|
+
}, Jl = {
|
|
2893
2893
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
2894
2894
|
abbreviated: [
|
|
2895
2895
|
"Jan",
|
|
@@ -2919,7 +2919,7 @@ const jl = {
|
|
|
2919
2919
|
"November",
|
|
2920
2920
|
"December"
|
|
2921
2921
|
]
|
|
2922
|
-
},
|
|
2922
|
+
}, Zl = {
|
|
2923
2923
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
2924
2924
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
2925
2925
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -2932,7 +2932,7 @@ const jl = {
|
|
|
2932
2932
|
"Friday",
|
|
2933
2933
|
"Saturday"
|
|
2934
2934
|
]
|
|
2935
|
-
},
|
|
2935
|
+
}, ec = {
|
|
2936
2936
|
narrow: {
|
|
2937
2937
|
am: "a",
|
|
2938
2938
|
pm: "p",
|
|
@@ -2963,7 +2963,7 @@ const jl = {
|
|
|
2963
2963
|
evening: "evening",
|
|
2964
2964
|
night: "night"
|
|
2965
2965
|
}
|
|
2966
|
-
},
|
|
2966
|
+
}, tc = {
|
|
2967
2967
|
narrow: {
|
|
2968
2968
|
am: "a",
|
|
2969
2969
|
pm: "p",
|
|
@@ -2994,7 +2994,7 @@ const jl = {
|
|
|
2994
2994
|
evening: "in the evening",
|
|
2995
2995
|
night: "at night"
|
|
2996
2996
|
}
|
|
2997
|
-
},
|
|
2997
|
+
}, sc = (e, t) => {
|
|
2998
2998
|
const s = Number(e), i = s % 100;
|
|
2999
2999
|
if (i > 20 || i < 10)
|
|
3000
3000
|
switch (i % 10) {
|
|
@@ -3006,40 +3006,40 @@ const jl = {
|
|
|
3006
3006
|
return s + "rd";
|
|
3007
3007
|
}
|
|
3008
3008
|
return s + "th";
|
|
3009
|
-
},
|
|
3010
|
-
ordinalNumber:
|
|
3011
|
-
era:
|
|
3012
|
-
values:
|
|
3009
|
+
}, ic = {
|
|
3010
|
+
ordinalNumber: sc,
|
|
3011
|
+
era: Ne({
|
|
3012
|
+
values: Xl,
|
|
3013
3013
|
defaultWidth: "wide"
|
|
3014
3014
|
}),
|
|
3015
|
-
quarter:
|
|
3016
|
-
values:
|
|
3015
|
+
quarter: Ne({
|
|
3016
|
+
values: Kl,
|
|
3017
3017
|
defaultWidth: "wide",
|
|
3018
3018
|
argumentCallback: (e) => e - 1
|
|
3019
3019
|
}),
|
|
3020
|
-
month:
|
|
3021
|
-
values:
|
|
3020
|
+
month: Ne({
|
|
3021
|
+
values: Jl,
|
|
3022
3022
|
defaultWidth: "wide"
|
|
3023
3023
|
}),
|
|
3024
|
-
day:
|
|
3025
|
-
values:
|
|
3024
|
+
day: Ne({
|
|
3025
|
+
values: Zl,
|
|
3026
3026
|
defaultWidth: "wide"
|
|
3027
3027
|
}),
|
|
3028
|
-
dayPeriod:
|
|
3029
|
-
values:
|
|
3028
|
+
dayPeriod: Ne({
|
|
3029
|
+
values: ec,
|
|
3030
3030
|
defaultWidth: "wide",
|
|
3031
|
-
formattingValues:
|
|
3031
|
+
formattingValues: tc,
|
|
3032
3032
|
defaultFormattingWidth: "wide"
|
|
3033
3033
|
})
|
|
3034
3034
|
};
|
|
3035
|
-
function
|
|
3035
|
+
function Be(e) {
|
|
3036
3036
|
return (t, s = {}) => {
|
|
3037
3037
|
const i = s.width, r = i && e.matchPatterns[i] || e.matchPatterns[e.defaultMatchWidth], n = t.match(r);
|
|
3038
3038
|
if (!n)
|
|
3039
3039
|
return null;
|
|
3040
|
-
const o = n[0], a = i && e.parsePatterns[i] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ?
|
|
3040
|
+
const o = n[0], a = i && e.parsePatterns[i] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? nc(a, (u) => u.test(o)) : (
|
|
3041
3041
|
// [TODO] -- I challenge you to fix the type
|
|
3042
|
-
|
|
3042
|
+
rc(a, (u) => u.test(o))
|
|
3043
3043
|
);
|
|
3044
3044
|
let d;
|
|
3045
3045
|
d = e.valueCallback ? e.valueCallback(l) : l, d = s.valueCallback ? (
|
|
@@ -3050,17 +3050,17 @@ function Ne(e) {
|
|
|
3050
3050
|
return { value: d, rest: c };
|
|
3051
3051
|
};
|
|
3052
3052
|
}
|
|
3053
|
-
function
|
|
3053
|
+
function rc(e, t) {
|
|
3054
3054
|
for (const s in e)
|
|
3055
3055
|
if (Object.prototype.hasOwnProperty.call(e, s) && t(e[s]))
|
|
3056
3056
|
return s;
|
|
3057
3057
|
}
|
|
3058
|
-
function
|
|
3058
|
+
function nc(e, t) {
|
|
3059
3059
|
for (let s = 0; s < e.length; s++)
|
|
3060
3060
|
if (t(e[s]))
|
|
3061
3061
|
return s;
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3063
|
+
function oc(e) {
|
|
3064
3064
|
return (t, s = {}) => {
|
|
3065
3065
|
const i = t.match(e.matchPattern);
|
|
3066
3066
|
if (!i) return null;
|
|
@@ -3072,23 +3072,23 @@ function sc(e) {
|
|
|
3072
3072
|
return { value: o, rest: a };
|
|
3073
3073
|
};
|
|
3074
3074
|
}
|
|
3075
|
-
const
|
|
3075
|
+
const ac = /^(\d+)(th|st|nd|rd)?/i, lc = /\d+/i, cc = {
|
|
3076
3076
|
narrow: /^(b|a)/i,
|
|
3077
3077
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
3078
3078
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
3079
|
-
},
|
|
3079
|
+
}, dc = {
|
|
3080
3080
|
any: [/^b/i, /^(a|c)/i]
|
|
3081
|
-
},
|
|
3081
|
+
}, uc = {
|
|
3082
3082
|
narrow: /^[1234]/i,
|
|
3083
3083
|
abbreviated: /^q[1234]/i,
|
|
3084
3084
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
3085
|
-
},
|
|
3085
|
+
}, hc = {
|
|
3086
3086
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
3087
|
-
},
|
|
3087
|
+
}, fc = {
|
|
3088
3088
|
narrow: /^[jfmasond]/i,
|
|
3089
3089
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
3090
3090
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
3091
|
-
},
|
|
3091
|
+
}, pc = {
|
|
3092
3092
|
narrow: [
|
|
3093
3093
|
/^j/i,
|
|
3094
3094
|
/^f/i,
|
|
@@ -3117,18 +3117,18 @@ const ic = /^(\d+)(th|st|nd|rd)?/i, rc = /\d+/i, nc = {
|
|
|
3117
3117
|
/^n/i,
|
|
3118
3118
|
/^d/i
|
|
3119
3119
|
]
|
|
3120
|
-
},
|
|
3120
|
+
}, mc = {
|
|
3121
3121
|
narrow: /^[smtwf]/i,
|
|
3122
3122
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
3123
3123
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
3124
3124
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
3125
|
-
},
|
|
3125
|
+
}, gc = {
|
|
3126
3126
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
3127
3127
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
3128
|
-
},
|
|
3128
|
+
}, yc = {
|
|
3129
3129
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
3130
3130
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
3131
|
-
},
|
|
3131
|
+
}, vc = {
|
|
3132
3132
|
any: {
|
|
3133
3133
|
am: /^a/i,
|
|
3134
3134
|
pm: /^p/i,
|
|
@@ -3139,62 +3139,62 @@ const ic = /^(\d+)(th|st|nd|rd)?/i, rc = /\d+/i, nc = {
|
|
|
3139
3139
|
evening: /evening/i,
|
|
3140
3140
|
night: /night/i
|
|
3141
3141
|
}
|
|
3142
|
-
},
|
|
3143
|
-
ordinalNumber:
|
|
3144
|
-
matchPattern:
|
|
3145
|
-
parsePattern:
|
|
3142
|
+
}, bc = {
|
|
3143
|
+
ordinalNumber: oc({
|
|
3144
|
+
matchPattern: ac,
|
|
3145
|
+
parsePattern: lc,
|
|
3146
3146
|
valueCallback: (e) => parseInt(e, 10)
|
|
3147
3147
|
}),
|
|
3148
|
-
era:
|
|
3149
|
-
matchPatterns:
|
|
3148
|
+
era: Be({
|
|
3149
|
+
matchPatterns: cc,
|
|
3150
3150
|
defaultMatchWidth: "wide",
|
|
3151
|
-
parsePatterns:
|
|
3151
|
+
parsePatterns: dc,
|
|
3152
3152
|
defaultParseWidth: "any"
|
|
3153
3153
|
}),
|
|
3154
|
-
quarter:
|
|
3155
|
-
matchPatterns:
|
|
3154
|
+
quarter: Be({
|
|
3155
|
+
matchPatterns: uc,
|
|
3156
3156
|
defaultMatchWidth: "wide",
|
|
3157
|
-
parsePatterns:
|
|
3157
|
+
parsePatterns: hc,
|
|
3158
3158
|
defaultParseWidth: "any",
|
|
3159
3159
|
valueCallback: (e) => e + 1
|
|
3160
3160
|
}),
|
|
3161
|
-
month:
|
|
3162
|
-
matchPatterns:
|
|
3161
|
+
month: Be({
|
|
3162
|
+
matchPatterns: fc,
|
|
3163
3163
|
defaultMatchWidth: "wide",
|
|
3164
|
-
parsePatterns:
|
|
3164
|
+
parsePatterns: pc,
|
|
3165
3165
|
defaultParseWidth: "any"
|
|
3166
3166
|
}),
|
|
3167
|
-
day:
|
|
3168
|
-
matchPatterns:
|
|
3167
|
+
day: Be({
|
|
3168
|
+
matchPatterns: mc,
|
|
3169
3169
|
defaultMatchWidth: "wide",
|
|
3170
|
-
parsePatterns:
|
|
3170
|
+
parsePatterns: gc,
|
|
3171
3171
|
defaultParseWidth: "any"
|
|
3172
3172
|
}),
|
|
3173
|
-
dayPeriod:
|
|
3174
|
-
matchPatterns:
|
|
3173
|
+
dayPeriod: Be({
|
|
3174
|
+
matchPatterns: yc,
|
|
3175
3175
|
defaultMatchWidth: "any",
|
|
3176
|
-
parsePatterns:
|
|
3176
|
+
parsePatterns: vc,
|
|
3177
3177
|
defaultParseWidth: "any"
|
|
3178
3178
|
})
|
|
3179
|
-
},
|
|
3179
|
+
}, Xi = {
|
|
3180
3180
|
code: "en-US",
|
|
3181
|
-
formatDistance:
|
|
3182
|
-
formatLong:
|
|
3183
|
-
formatRelative:
|
|
3184
|
-
localize:
|
|
3185
|
-
match:
|
|
3181
|
+
formatDistance: ql,
|
|
3182
|
+
formatLong: Yl,
|
|
3183
|
+
formatRelative: Ul,
|
|
3184
|
+
localize: ic,
|
|
3185
|
+
match: bc,
|
|
3186
3186
|
options: {
|
|
3187
3187
|
weekStartsOn: 0,
|
|
3188
3188
|
firstWeekContainsDate: 1
|
|
3189
3189
|
}
|
|
3190
3190
|
};
|
|
3191
|
-
function
|
|
3191
|
+
function wc(e, t) {
|
|
3192
3192
|
const s = P(e, t?.in);
|
|
3193
|
-
return
|
|
3193
|
+
return zl(s, Nl(s)) + 1;
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3196
|
-
const s = P(e, t?.in), i = +ke(s) - +
|
|
3197
|
-
return Math.round(i /
|
|
3195
|
+
function Ki(e, t) {
|
|
3196
|
+
const s = P(e, t?.in), i = +ke(s) - +Gl(s);
|
|
3197
|
+
return Math.round(i / ji) + 1;
|
|
3198
3198
|
}
|
|
3199
3199
|
function gs(e, t) {
|
|
3200
3200
|
const s = P(e, t?.in), i = s.getFullYear(), r = ze(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = A(t?.in || e, 0);
|
|
@@ -3204,13 +3204,13 @@ function gs(e, t) {
|
|
|
3204
3204
|
const d = ue(l, t);
|
|
3205
3205
|
return +s >= +a ? i + 1 : +s >= +d ? i : i - 1;
|
|
3206
3206
|
}
|
|
3207
|
-
function
|
|
3207
|
+
function xc(e, t) {
|
|
3208
3208
|
const s = ze(), i = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, r = gs(e, t), n = A(t?.in || e, 0);
|
|
3209
3209
|
return n.setFullYear(r, 0, i), n.setHours(0, 0, 0, 0), ue(n, t);
|
|
3210
3210
|
}
|
|
3211
|
-
function
|
|
3212
|
-
const s = P(e, t?.in), i = +ue(s, t) - +
|
|
3213
|
-
return Math.round(i /
|
|
3211
|
+
function Ji(e, t) {
|
|
3212
|
+
const s = P(e, t?.in), i = +ue(s, t) - +xc(s, t);
|
|
3213
|
+
return Math.round(i / ji) + 1;
|
|
3214
3214
|
}
|
|
3215
3215
|
function _(e, t) {
|
|
3216
3216
|
const s = e < 0 ? "-" : "", i = Math.abs(e).toString().padStart(t, "0");
|
|
@@ -3315,7 +3315,7 @@ const ce = {
|
|
|
3315
3315
|
},
|
|
3316
3316
|
// ISO week-numbering year
|
|
3317
3317
|
R: function(e, t) {
|
|
3318
|
-
const s =
|
|
3318
|
+
const s = Qi(e);
|
|
3319
3319
|
return _(s, t.length);
|
|
3320
3320
|
},
|
|
3321
3321
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -3460,12 +3460,12 @@ const ce = {
|
|
|
3460
3460
|
},
|
|
3461
3461
|
// Local week of year
|
|
3462
3462
|
w: function(e, t, s, i) {
|
|
3463
|
-
const r =
|
|
3463
|
+
const r = Ji(e, i);
|
|
3464
3464
|
return t === "wo" ? s.ordinalNumber(r, { unit: "week" }) : _(r, t.length);
|
|
3465
3465
|
},
|
|
3466
3466
|
// ISO week of year
|
|
3467
3467
|
I: function(e, t, s) {
|
|
3468
|
-
const i =
|
|
3468
|
+
const i = Ki(e);
|
|
3469
3469
|
return t === "Io" ? s.ordinalNumber(i, { unit: "week" }) : _(i, t.length);
|
|
3470
3470
|
},
|
|
3471
3471
|
// Day of the month
|
|
@@ -3474,7 +3474,7 @@ const ce = {
|
|
|
3474
3474
|
},
|
|
3475
3475
|
// Day of year
|
|
3476
3476
|
D: function(e, t, s) {
|
|
3477
|
-
const i =
|
|
3477
|
+
const i = wc(e);
|
|
3478
3478
|
return t === "Do" ? s.ordinalNumber(i, { unit: "dayOfYear" }) : _(i, t.length);
|
|
3479
3479
|
},
|
|
3480
3480
|
// Day of week
|
|
@@ -3752,7 +3752,7 @@ const ce = {
|
|
|
3752
3752
|
switch (t) {
|
|
3753
3753
|
// Hours and optional minutes
|
|
3754
3754
|
case "X":
|
|
3755
|
-
return
|
|
3755
|
+
return Ns(i);
|
|
3756
3756
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
3757
3757
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3758
3758
|
// so this token always has the same output as `XX`
|
|
@@ -3775,7 +3775,7 @@ const ce = {
|
|
|
3775
3775
|
switch (t) {
|
|
3776
3776
|
// Hours and optional minutes
|
|
3777
3777
|
case "x":
|
|
3778
|
-
return
|
|
3778
|
+
return Ns(i);
|
|
3779
3779
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
3780
3780
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3781
3781
|
// so this token always has the same output as `xx`
|
|
@@ -3836,14 +3836,14 @@ function Vs(e, t = "") {
|
|
|
3836
3836
|
const s = e > 0 ? "-" : "+", i = Math.abs(e), r = Math.trunc(i / 60), n = i % 60;
|
|
3837
3837
|
return n === 0 ? s + String(r) : s + String(r) + t + _(n, 2);
|
|
3838
3838
|
}
|
|
3839
|
-
function
|
|
3839
|
+
function Ns(e, t) {
|
|
3840
3840
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + _(Math.abs(e) / 60, 2) : we(e, t);
|
|
3841
3841
|
}
|
|
3842
3842
|
function we(e, t = "") {
|
|
3843
3843
|
const s = e > 0 ? "-" : "+", i = Math.abs(e), r = _(Math.trunc(i / 60), 2), n = _(i % 60, 2);
|
|
3844
3844
|
return s + r + t + n;
|
|
3845
3845
|
}
|
|
3846
|
-
const
|
|
3846
|
+
const Bs = (e, t) => {
|
|
3847
3847
|
switch (e) {
|
|
3848
3848
|
case "P":
|
|
3849
3849
|
return t.date({ width: "short" });
|
|
@@ -3855,7 +3855,7 @@ const Ns = (e, t) => {
|
|
|
3855
3855
|
default:
|
|
3856
3856
|
return t.date({ width: "full" });
|
|
3857
3857
|
}
|
|
3858
|
-
},
|
|
3858
|
+
}, Zi = (e, t) => {
|
|
3859
3859
|
switch (e) {
|
|
3860
3860
|
case "p":
|
|
3861
3861
|
return t.time({ width: "short" });
|
|
@@ -3867,10 +3867,10 @@ const Ns = (e, t) => {
|
|
|
3867
3867
|
default:
|
|
3868
3868
|
return t.time({ width: "full" });
|
|
3869
3869
|
}
|
|
3870
|
-
},
|
|
3870
|
+
}, _c = (e, t) => {
|
|
3871
3871
|
const s = e.match(/(P+)(p+)?/) || [], i = s[1], r = s[2];
|
|
3872
3872
|
if (!r)
|
|
3873
|
-
return
|
|
3873
|
+
return Bs(e, t);
|
|
3874
3874
|
let n;
|
|
3875
3875
|
switch (i) {
|
|
3876
3876
|
case "P":
|
|
@@ -3887,46 +3887,46 @@ const Ns = (e, t) => {
|
|
|
3887
3887
|
n = t.dateTime({ width: "full" });
|
|
3888
3888
|
break;
|
|
3889
3889
|
}
|
|
3890
|
-
return n.replace("{{date}}",
|
|
3890
|
+
return n.replace("{{date}}", Bs(i, t)).replace("{{time}}", Zi(r, t));
|
|
3891
3891
|
}, Qt = {
|
|
3892
|
-
p:
|
|
3893
|
-
P:
|
|
3894
|
-
},
|
|
3895
|
-
function
|
|
3896
|
-
return
|
|
3892
|
+
p: Zi,
|
|
3893
|
+
P: _c
|
|
3894
|
+
}, Sc = /^D+$/, Cc = /^Y+$/, Dc = ["D", "DD", "YY", "YYYY"];
|
|
3895
|
+
function er(e) {
|
|
3896
|
+
return Sc.test(e);
|
|
3897
3897
|
}
|
|
3898
|
-
function
|
|
3899
|
-
return
|
|
3898
|
+
function tr(e) {
|
|
3899
|
+
return Cc.test(e);
|
|
3900
3900
|
}
|
|
3901
3901
|
function Ut(e, t, s) {
|
|
3902
|
-
const i =
|
|
3903
|
-
if (console.warn(i),
|
|
3902
|
+
const i = Tc(e, t, s);
|
|
3903
|
+
if (console.warn(i), Dc.includes(e)) throw new RangeError(i);
|
|
3904
3904
|
}
|
|
3905
|
-
function
|
|
3905
|
+
function Tc(e, t, s) {
|
|
3906
3906
|
const i = e[0] === "Y" ? "years" : "days of the month";
|
|
3907
3907
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
3908
3908
|
}
|
|
3909
|
-
const
|
|
3910
|
-
function
|
|
3911
|
-
const i = ze(), r = i.locale ??
|
|
3912
|
-
if (!
|
|
3909
|
+
const $c = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ic = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ec = /^'([^]*?)'?$/, Fc = /''/g, Oc = /[a-zA-Z]/;
|
|
3910
|
+
function sr(e, t, s) {
|
|
3911
|
+
const i = ze(), r = i.locale ?? Xi, n = i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, a = P(e, s?.in);
|
|
3912
|
+
if (!Ui(a))
|
|
3913
3913
|
throw new RangeError("Invalid time value");
|
|
3914
|
-
let l = t.match(
|
|
3914
|
+
let l = t.match(Ic).map((c) => {
|
|
3915
3915
|
const u = c[0];
|
|
3916
3916
|
if (u === "p" || u === "P") {
|
|
3917
3917
|
const y = Qt[u];
|
|
3918
3918
|
return y(c, r.formatLong);
|
|
3919
3919
|
}
|
|
3920
3920
|
return c;
|
|
3921
|
-
}).join("").match(
|
|
3921
|
+
}).join("").match($c).map((c) => {
|
|
3922
3922
|
if (c === "''")
|
|
3923
3923
|
return { isToken: !1, value: "'" };
|
|
3924
3924
|
const u = c[0];
|
|
3925
3925
|
if (u === "'")
|
|
3926
|
-
return { isToken: !1, value:
|
|
3926
|
+
return { isToken: !1, value: Mc(c) };
|
|
3927
3927
|
if (Gs[u])
|
|
3928
3928
|
return { isToken: !0, value: c };
|
|
3929
|
-
if (u.match(
|
|
3929
|
+
if (u.match(Oc))
|
|
3930
3930
|
throw new RangeError(
|
|
3931
3931
|
"Format string contains an unescaped latin alphabet character `" + u + "`"
|
|
3932
3932
|
);
|
|
@@ -3941,24 +3941,24 @@ function er(e, t, s) {
|
|
|
3941
3941
|
return l.map((c) => {
|
|
3942
3942
|
if (!c.isToken) return c.value;
|
|
3943
3943
|
const u = c.value;
|
|
3944
|
-
(
|
|
3944
|
+
(tr(u) || er(u)) && Ut(u, t, String(e));
|
|
3945
3945
|
const y = Gs[u[0]];
|
|
3946
3946
|
return y(a, u, r.localize, d);
|
|
3947
3947
|
}).join("");
|
|
3948
3948
|
}
|
|
3949
|
-
function
|
|
3950
|
-
const t = e.match(
|
|
3951
|
-
return t ? t[1].replace(
|
|
3949
|
+
function Mc(e) {
|
|
3950
|
+
const t = e.match(Ec);
|
|
3951
|
+
return t ? t[1].replace(Fc, "'") : e;
|
|
3952
3952
|
}
|
|
3953
|
-
function
|
|
3953
|
+
function Pc() {
|
|
3954
3954
|
return Object.assign({}, ze());
|
|
3955
3955
|
}
|
|
3956
|
-
function
|
|
3956
|
+
function kc(e, t) {
|
|
3957
3957
|
const s = P(e, t?.in).getDay();
|
|
3958
3958
|
return s === 0 ? 7 : s;
|
|
3959
3959
|
}
|
|
3960
|
-
function
|
|
3961
|
-
const s =
|
|
3960
|
+
function Ac(e, t) {
|
|
3961
|
+
const s = Hc(t) ? new t(0) : A(t, 0);
|
|
3962
3962
|
return s.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), s.setHours(
|
|
3963
3963
|
e.getHours(),
|
|
3964
3964
|
e.getMinutes(),
|
|
@@ -3966,17 +3966,17 @@ function Oc(e, t) {
|
|
|
3966
3966
|
e.getMilliseconds()
|
|
3967
3967
|
), s;
|
|
3968
3968
|
}
|
|
3969
|
-
function
|
|
3969
|
+
function Hc(e) {
|
|
3970
3970
|
return typeof e == "function" && e.prototype?.constructor === e;
|
|
3971
3971
|
}
|
|
3972
|
-
const
|
|
3973
|
-
class
|
|
3972
|
+
const Rc = 10;
|
|
3973
|
+
class ir {
|
|
3974
3974
|
subPriority = 0;
|
|
3975
3975
|
validate(t, s) {
|
|
3976
3976
|
return !0;
|
|
3977
3977
|
}
|
|
3978
3978
|
}
|
|
3979
|
-
class
|
|
3979
|
+
class zc extends ir {
|
|
3980
3980
|
constructor(t, s, i, r, n) {
|
|
3981
3981
|
super(), this.value = t, this.validateValue = s, this.setValue = i, this.priority = r, n && (this.subPriority = n);
|
|
3982
3982
|
}
|
|
@@ -3987,21 +3987,21 @@ class kc extends tr {
|
|
|
3987
3987
|
return this.setValue(t, s, this.value, i);
|
|
3988
3988
|
}
|
|
3989
3989
|
}
|
|
3990
|
-
class
|
|
3991
|
-
priority =
|
|
3990
|
+
class Gc extends ir {
|
|
3991
|
+
priority = Rc;
|
|
3992
3992
|
subPriority = -1;
|
|
3993
3993
|
constructor(t, s) {
|
|
3994
3994
|
super(), this.context = t || ((i) => A(s, i));
|
|
3995
3995
|
}
|
|
3996
3996
|
set(t, s) {
|
|
3997
|
-
return s.timestampIsSet ? t : A(t,
|
|
3997
|
+
return s.timestampIsSet ? t : A(t, Ac(t, this.context));
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
4000
|
class x {
|
|
4001
4001
|
run(t, s, i, r) {
|
|
4002
4002
|
const n = this.parse(t, s, i, r);
|
|
4003
4003
|
return n ? {
|
|
4004
|
-
setter: new
|
|
4004
|
+
setter: new zc(
|
|
4005
4005
|
n.value,
|
|
4006
4006
|
this.validate,
|
|
4007
4007
|
this.set,
|
|
@@ -4015,7 +4015,7 @@ class x {
|
|
|
4015
4015
|
return !0;
|
|
4016
4016
|
}
|
|
4017
4017
|
}
|
|
4018
|
-
class
|
|
4018
|
+
class Vc extends x {
|
|
4019
4019
|
priority = 140;
|
|
4020
4020
|
parse(t, s, i) {
|
|
4021
4021
|
switch (s) {
|
|
@@ -4107,11 +4107,11 @@ function ee(e, t) {
|
|
|
4107
4107
|
};
|
|
4108
4108
|
const i = s[1] === "+" ? 1 : -1, r = s[2] ? parseInt(s[2], 10) : 0, n = s[3] ? parseInt(s[3], 10) : 0, o = s[5] ? parseInt(s[5], 10) : 0;
|
|
4109
4109
|
return {
|
|
4110
|
-
value: i * (r *
|
|
4110
|
+
value: i * (r * kl + n * Pl + o * Al),
|
|
4111
4111
|
rest: t.slice(s[0].length)
|
|
4112
4112
|
};
|
|
4113
4113
|
}
|
|
4114
|
-
function
|
|
4114
|
+
function rr(e) {
|
|
4115
4115
|
return T(E.anyDigitsSigned, e);
|
|
4116
4116
|
}
|
|
4117
4117
|
function I(e, t) {
|
|
@@ -4128,7 +4128,7 @@ function I(e, t) {
|
|
|
4128
4128
|
return T(new RegExp("^\\d{1," + e + "}"), t);
|
|
4129
4129
|
}
|
|
4130
4130
|
}
|
|
4131
|
-
function
|
|
4131
|
+
function dt(e, t) {
|
|
4132
4132
|
switch (e) {
|
|
4133
4133
|
case 1:
|
|
4134
4134
|
return T(E.singleDigitSigned, t);
|
|
@@ -4159,7 +4159,7 @@ function ys(e) {
|
|
|
4159
4159
|
return 0;
|
|
4160
4160
|
}
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4162
|
+
function nr(e, t) {
|
|
4163
4163
|
const s = t > 0, i = s ? t : 1 - t;
|
|
4164
4164
|
let r;
|
|
4165
4165
|
if (i <= 50)
|
|
@@ -4170,10 +4170,10 @@ function ir(e, t) {
|
|
|
4170
4170
|
}
|
|
4171
4171
|
return s ? r : 1 - r;
|
|
4172
4172
|
}
|
|
4173
|
-
function
|
|
4173
|
+
function or(e) {
|
|
4174
4174
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
4175
4175
|
}
|
|
4176
|
-
class
|
|
4176
|
+
class Nc extends x {
|
|
4177
4177
|
priority = 130;
|
|
4178
4178
|
incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
|
|
4179
4179
|
parse(t, s, i) {
|
|
@@ -4201,7 +4201,7 @@ class Rc extends x {
|
|
|
4201
4201
|
set(t, s, i) {
|
|
4202
4202
|
const r = t.getFullYear();
|
|
4203
4203
|
if (i.isTwoDigitYear) {
|
|
4204
|
-
const o =
|
|
4204
|
+
const o = nr(
|
|
4205
4205
|
i.year,
|
|
4206
4206
|
r
|
|
4207
4207
|
);
|
|
@@ -4211,7 +4211,7 @@ class Rc extends x {
|
|
|
4211
4211
|
return t.setFullYear(n, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
|
-
class
|
|
4214
|
+
class Bc extends x {
|
|
4215
4215
|
priority = 130;
|
|
4216
4216
|
parse(t, s, i) {
|
|
4217
4217
|
const r = (n) => ({
|
|
@@ -4238,7 +4238,7 @@ class zc extends x {
|
|
|
4238
4238
|
set(t, s, i, r) {
|
|
4239
4239
|
const n = gs(t, r);
|
|
4240
4240
|
if (i.isTwoDigitYear) {
|
|
4241
|
-
const a =
|
|
4241
|
+
const a = nr(
|
|
4242
4242
|
i.year,
|
|
4243
4243
|
n
|
|
4244
4244
|
);
|
|
@@ -4267,10 +4267,10 @@ class zc extends x {
|
|
|
4267
4267
|
"T"
|
|
4268
4268
|
];
|
|
4269
4269
|
}
|
|
4270
|
-
class
|
|
4270
|
+
class qc extends x {
|
|
4271
4271
|
priority = 130;
|
|
4272
4272
|
parse(t, s) {
|
|
4273
|
-
return
|
|
4273
|
+
return dt(s === "R" ? 4 : s.length, t);
|
|
4274
4274
|
}
|
|
4275
4275
|
set(t, s, i) {
|
|
4276
4276
|
const r = A(t, 0);
|
|
@@ -4294,17 +4294,17 @@ class Gc extends x {
|
|
|
4294
4294
|
"T"
|
|
4295
4295
|
];
|
|
4296
4296
|
}
|
|
4297
|
-
class
|
|
4297
|
+
class Lc extends x {
|
|
4298
4298
|
priority = 130;
|
|
4299
4299
|
parse(t, s) {
|
|
4300
|
-
return
|
|
4300
|
+
return dt(s === "u" ? 4 : s.length, t);
|
|
4301
4301
|
}
|
|
4302
4302
|
set(t, s, i) {
|
|
4303
4303
|
return t.setFullYear(i, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
4304
4304
|
}
|
|
4305
4305
|
incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
|
|
4306
4306
|
}
|
|
4307
|
-
class
|
|
4307
|
+
class Wc extends x {
|
|
4308
4308
|
priority = 120;
|
|
4309
4309
|
parse(t, s, i) {
|
|
4310
4310
|
switch (s) {
|
|
@@ -4368,7 +4368,7 @@ class Bc extends x {
|
|
|
4368
4368
|
"T"
|
|
4369
4369
|
];
|
|
4370
4370
|
}
|
|
4371
|
-
class
|
|
4371
|
+
class jc extends x {
|
|
4372
4372
|
priority = 120;
|
|
4373
4373
|
parse(t, s, i) {
|
|
4374
4374
|
switch (s) {
|
|
@@ -4432,7 +4432,7 @@ class Nc extends x {
|
|
|
4432
4432
|
"T"
|
|
4433
4433
|
];
|
|
4434
4434
|
}
|
|
4435
|
-
class
|
|
4435
|
+
class Yc extends x {
|
|
4436
4436
|
incompatibleTokens = [
|
|
4437
4437
|
"Y",
|
|
4438
4438
|
"R",
|
|
@@ -4497,7 +4497,7 @@ class qc extends x {
|
|
|
4497
4497
|
return t.setMonth(i, 1), t.setHours(0, 0, 0, 0), t;
|
|
4498
4498
|
}
|
|
4499
4499
|
}
|
|
4500
|
-
class
|
|
4500
|
+
class Qc extends x {
|
|
4501
4501
|
priority = 110;
|
|
4502
4502
|
parse(t, s, i) {
|
|
4503
4503
|
const r = (n) => n - 1;
|
|
@@ -4562,11 +4562,11 @@ class Lc extends x {
|
|
|
4562
4562
|
"T"
|
|
4563
4563
|
];
|
|
4564
4564
|
}
|
|
4565
|
-
function
|
|
4566
|
-
const i = P(e, s?.in), r =
|
|
4565
|
+
function Uc(e, t, s) {
|
|
4566
|
+
const i = P(e, s?.in), r = Ji(i, s) - t;
|
|
4567
4567
|
return i.setDate(i.getDate() - r * 7), P(i, s?.in);
|
|
4568
4568
|
}
|
|
4569
|
-
class
|
|
4569
|
+
class Xc extends x {
|
|
4570
4570
|
priority = 100;
|
|
4571
4571
|
parse(t, s, i) {
|
|
4572
4572
|
switch (s) {
|
|
@@ -4582,7 +4582,7 @@ class jc extends x {
|
|
|
4582
4582
|
return s >= 1 && s <= 53;
|
|
4583
4583
|
}
|
|
4584
4584
|
set(t, s, i, r) {
|
|
4585
|
-
return ue(
|
|
4585
|
+
return ue(Uc(t, i, r), r);
|
|
4586
4586
|
}
|
|
4587
4587
|
incompatibleTokens = [
|
|
4588
4588
|
"y",
|
|
@@ -4600,11 +4600,11 @@ class jc extends x {
|
|
|
4600
4600
|
"T"
|
|
4601
4601
|
];
|
|
4602
4602
|
}
|
|
4603
|
-
function
|
|
4604
|
-
const i = P(e, s?.in), r =
|
|
4603
|
+
function Kc(e, t, s) {
|
|
4604
|
+
const i = P(e, s?.in), r = Ki(i, s) - t;
|
|
4605
4605
|
return i.setDate(i.getDate() - r * 7), i;
|
|
4606
4606
|
}
|
|
4607
|
-
class
|
|
4607
|
+
class Jc extends x {
|
|
4608
4608
|
priority = 100;
|
|
4609
4609
|
parse(t, s, i) {
|
|
4610
4610
|
switch (s) {
|
|
@@ -4620,7 +4620,7 @@ class Qc extends x {
|
|
|
4620
4620
|
return s >= 1 && s <= 53;
|
|
4621
4621
|
}
|
|
4622
4622
|
set(t, s, i) {
|
|
4623
|
-
return ke(
|
|
4623
|
+
return ke(Kc(t, i));
|
|
4624
4624
|
}
|
|
4625
4625
|
incompatibleTokens = [
|
|
4626
4626
|
"y",
|
|
@@ -4639,7 +4639,7 @@ class Qc extends x {
|
|
|
4639
4639
|
"T"
|
|
4640
4640
|
];
|
|
4641
4641
|
}
|
|
4642
|
-
const
|
|
4642
|
+
const Zc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ed = [
|
|
4643
4643
|
31,
|
|
4644
4644
|
29,
|
|
4645
4645
|
31,
|
|
@@ -4653,7 +4653,7 @@ const Uc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Xc = [
|
|
|
4653
4653
|
30,
|
|
4654
4654
|
31
|
|
4655
4655
|
];
|
|
4656
|
-
class
|
|
4656
|
+
class td extends x {
|
|
4657
4657
|
priority = 90;
|
|
4658
4658
|
subPriority = 1;
|
|
4659
4659
|
parse(t, s, i) {
|
|
@@ -4667,8 +4667,8 @@ class Kc extends x {
|
|
|
4667
4667
|
}
|
|
4668
4668
|
}
|
|
4669
4669
|
validate(t, s) {
|
|
4670
|
-
const i = t.getFullYear(), r =
|
|
4671
|
-
return r ? s >= 1 && s <=
|
|
4670
|
+
const i = t.getFullYear(), r = or(i), n = t.getMonth();
|
|
4671
|
+
return r ? s >= 1 && s <= ed[n] : s >= 1 && s <= Zc[n];
|
|
4672
4672
|
}
|
|
4673
4673
|
set(t, s, i) {
|
|
4674
4674
|
return t.setDate(i), t.setHours(0, 0, 0, 0), t;
|
|
@@ -4688,7 +4688,7 @@ class Kc extends x {
|
|
|
4688
4688
|
"T"
|
|
4689
4689
|
];
|
|
4690
4690
|
}
|
|
4691
|
-
class
|
|
4691
|
+
class sd extends x {
|
|
4692
4692
|
priority = 90;
|
|
4693
4693
|
subpriority = 1;
|
|
4694
4694
|
parse(t, s, i) {
|
|
@@ -4704,7 +4704,7 @@ class Jc extends x {
|
|
|
4704
4704
|
}
|
|
4705
4705
|
validate(t, s) {
|
|
4706
4706
|
const i = t.getFullYear();
|
|
4707
|
-
return
|
|
4707
|
+
return or(i) ? s >= 1 && s <= 366 : s >= 1 && s <= 365;
|
|
4708
4708
|
}
|
|
4709
4709
|
set(t, s, i) {
|
|
4710
4710
|
return t.setMonth(0, i), t.setHours(0, 0, 0, 0), t;
|
|
@@ -4729,9 +4729,9 @@ class Jc extends x {
|
|
|
4729
4729
|
}
|
|
4730
4730
|
function vs(e, t, s) {
|
|
4731
4731
|
const i = ze(), r = s?.weekStartsOn ?? s?.locale?.options?.weekStartsOn ?? i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, n = P(e, s?.in), o = n.getDay(), l = (t % 7 + 7) % 7, d = 7 - r, c = t < 0 || t > 6 ? t - (o + d) % 7 : (l + d) % 7 - (o + d) % 7;
|
|
4732
|
-
return
|
|
4732
|
+
return Yi(n, c, s);
|
|
4733
4733
|
}
|
|
4734
|
-
class
|
|
4734
|
+
class id extends x {
|
|
4735
4735
|
priority = 90;
|
|
4736
4736
|
parse(t, s, i) {
|
|
4737
4737
|
switch (s) {
|
|
@@ -4769,7 +4769,7 @@ class Zc extends x {
|
|
|
4769
4769
|
}
|
|
4770
4770
|
incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
|
|
4771
4771
|
}
|
|
4772
|
-
class
|
|
4772
|
+
class rd extends x {
|
|
4773
4773
|
priority = 90;
|
|
4774
4774
|
parse(t, s, i, r) {
|
|
4775
4775
|
const n = (o) => {
|
|
@@ -4837,7 +4837,7 @@ class ed extends x {
|
|
|
4837
4837
|
"T"
|
|
4838
4838
|
];
|
|
4839
4839
|
}
|
|
4840
|
-
class
|
|
4840
|
+
class nd extends x {
|
|
4841
4841
|
priority = 90;
|
|
4842
4842
|
parse(t, s, i, r) {
|
|
4843
4843
|
const n = (o) => {
|
|
@@ -4905,11 +4905,11 @@ class td extends x {
|
|
|
4905
4905
|
"T"
|
|
4906
4906
|
];
|
|
4907
4907
|
}
|
|
4908
|
-
function
|
|
4909
|
-
const i = P(e, s?.in), r =
|
|
4910
|
-
return
|
|
4908
|
+
function od(e, t, s) {
|
|
4909
|
+
const i = P(e, s?.in), r = kc(i, s), n = t - r;
|
|
4910
|
+
return Yi(i, n, s);
|
|
4911
4911
|
}
|
|
4912
|
-
class
|
|
4912
|
+
class ad extends x {
|
|
4913
4913
|
priority = 90;
|
|
4914
4914
|
parse(t, s, i) {
|
|
4915
4915
|
const r = (n) => n === 0 ? 7 : n;
|
|
@@ -4982,7 +4982,7 @@ class id extends x {
|
|
|
4982
4982
|
return s >= 1 && s <= 7;
|
|
4983
4983
|
}
|
|
4984
4984
|
set(t, s, i) {
|
|
4985
|
-
return t =
|
|
4985
|
+
return t = od(t, i), t.setHours(0, 0, 0, 0), t;
|
|
4986
4986
|
}
|
|
4987
4987
|
incompatibleTokens = [
|
|
4988
4988
|
"y",
|
|
@@ -5002,7 +5002,7 @@ class id extends x {
|
|
|
5002
5002
|
"T"
|
|
5003
5003
|
];
|
|
5004
5004
|
}
|
|
5005
|
-
class
|
|
5005
|
+
class ld extends x {
|
|
5006
5006
|
priority = 80;
|
|
5007
5007
|
parse(t, s, i) {
|
|
5008
5008
|
switch (s) {
|
|
@@ -5040,7 +5040,7 @@ class rd extends x {
|
|
|
5040
5040
|
}
|
|
5041
5041
|
incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
|
|
5042
5042
|
}
|
|
5043
|
-
class
|
|
5043
|
+
class cd extends x {
|
|
5044
5044
|
priority = 80;
|
|
5045
5045
|
parse(t, s, i) {
|
|
5046
5046
|
switch (s) {
|
|
@@ -5078,7 +5078,7 @@ class nd extends x {
|
|
|
5078
5078
|
}
|
|
5079
5079
|
incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
|
|
5080
5080
|
}
|
|
5081
|
-
class
|
|
5081
|
+
class dd extends x {
|
|
5082
5082
|
priority = 80;
|
|
5083
5083
|
parse(t, s, i) {
|
|
5084
5084
|
switch (s) {
|
|
@@ -5116,7 +5116,7 @@ class od extends x {
|
|
|
5116
5116
|
}
|
|
5117
5117
|
incompatibleTokens = ["a", "b", "t", "T"];
|
|
5118
5118
|
}
|
|
5119
|
-
class
|
|
5119
|
+
class ud extends x {
|
|
5120
5120
|
priority = 70;
|
|
5121
5121
|
parse(t, s, i) {
|
|
5122
5122
|
switch (s) {
|
|
@@ -5137,7 +5137,7 @@ class ad extends x {
|
|
|
5137
5137
|
}
|
|
5138
5138
|
incompatibleTokens = ["H", "K", "k", "t", "T"];
|
|
5139
5139
|
}
|
|
5140
|
-
class
|
|
5140
|
+
class hd extends x {
|
|
5141
5141
|
priority = 70;
|
|
5142
5142
|
parse(t, s, i) {
|
|
5143
5143
|
switch (s) {
|
|
@@ -5157,7 +5157,7 @@ class ld extends x {
|
|
|
5157
5157
|
}
|
|
5158
5158
|
incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"];
|
|
5159
5159
|
}
|
|
5160
|
-
class
|
|
5160
|
+
class fd extends x {
|
|
5161
5161
|
priority = 70;
|
|
5162
5162
|
parse(t, s, i) {
|
|
5163
5163
|
switch (s) {
|
|
@@ -5177,7 +5177,7 @@ class cd extends x {
|
|
|
5177
5177
|
}
|
|
5178
5178
|
incompatibleTokens = ["h", "H", "k", "t", "T"];
|
|
5179
5179
|
}
|
|
5180
|
-
class
|
|
5180
|
+
class pd extends x {
|
|
5181
5181
|
priority = 70;
|
|
5182
5182
|
parse(t, s, i) {
|
|
5183
5183
|
switch (s) {
|
|
@@ -5198,7 +5198,7 @@ class dd extends x {
|
|
|
5198
5198
|
}
|
|
5199
5199
|
incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"];
|
|
5200
5200
|
}
|
|
5201
|
-
class
|
|
5201
|
+
class md extends x {
|
|
5202
5202
|
priority = 60;
|
|
5203
5203
|
parse(t, s, i) {
|
|
5204
5204
|
switch (s) {
|
|
@@ -5218,7 +5218,7 @@ class ud extends x {
|
|
|
5218
5218
|
}
|
|
5219
5219
|
incompatibleTokens = ["t", "T"];
|
|
5220
5220
|
}
|
|
5221
|
-
class
|
|
5221
|
+
class gd extends x {
|
|
5222
5222
|
priority = 50;
|
|
5223
5223
|
parse(t, s, i) {
|
|
5224
5224
|
switch (s) {
|
|
@@ -5238,7 +5238,7 @@ class hd extends x {
|
|
|
5238
5238
|
}
|
|
5239
5239
|
incompatibleTokens = ["t", "T"];
|
|
5240
5240
|
}
|
|
5241
|
-
class
|
|
5241
|
+
class yd extends x {
|
|
5242
5242
|
priority = 30;
|
|
5243
5243
|
parse(t, s) {
|
|
5244
5244
|
const i = (r) => Math.trunc(r * Math.pow(10, -s.length + 3));
|
|
@@ -5249,7 +5249,7 @@ class fd extends x {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
incompatibleTokens = ["t", "T"];
|
|
5251
5251
|
}
|
|
5252
|
-
class
|
|
5252
|
+
class vd extends x {
|
|
5253
5253
|
priority = 10;
|
|
5254
5254
|
parse(t, s) {
|
|
5255
5255
|
switch (s) {
|
|
@@ -5278,12 +5278,12 @@ class pd extends x {
|
|
|
5278
5278
|
set(t, s, i) {
|
|
5279
5279
|
return s.timestampIsSet ? t : A(
|
|
5280
5280
|
t,
|
|
5281
|
-
t.getTime() -
|
|
5281
|
+
t.getTime() - lt(t) - i
|
|
5282
5282
|
);
|
|
5283
5283
|
}
|
|
5284
5284
|
incompatibleTokens = ["t", "T", "x"];
|
|
5285
5285
|
}
|
|
5286
|
-
class
|
|
5286
|
+
class bd extends x {
|
|
5287
5287
|
priority = 10;
|
|
5288
5288
|
parse(t, s) {
|
|
5289
5289
|
switch (s) {
|
|
@@ -5312,80 +5312,80 @@ class md extends x {
|
|
|
5312
5312
|
set(t, s, i) {
|
|
5313
5313
|
return s.timestampIsSet ? t : A(
|
|
5314
5314
|
t,
|
|
5315
|
-
t.getTime() -
|
|
5315
|
+
t.getTime() - lt(t) - i
|
|
5316
5316
|
);
|
|
5317
5317
|
}
|
|
5318
5318
|
incompatibleTokens = ["t", "T", "X"];
|
|
5319
5319
|
}
|
|
5320
|
-
class
|
|
5320
|
+
class wd extends x {
|
|
5321
5321
|
priority = 40;
|
|
5322
5322
|
parse(t) {
|
|
5323
|
-
return
|
|
5323
|
+
return rr(t);
|
|
5324
5324
|
}
|
|
5325
5325
|
set(t, s, i) {
|
|
5326
5326
|
return [A(t, i * 1e3), { timestampIsSet: !0 }];
|
|
5327
5327
|
}
|
|
5328
5328
|
incompatibleTokens = "*";
|
|
5329
5329
|
}
|
|
5330
|
-
class
|
|
5330
|
+
class xd extends x {
|
|
5331
5331
|
priority = 20;
|
|
5332
5332
|
parse(t) {
|
|
5333
|
-
return
|
|
5333
|
+
return rr(t);
|
|
5334
5334
|
}
|
|
5335
5335
|
set(t, s, i) {
|
|
5336
5336
|
return [A(t, i), { timestampIsSet: !0 }];
|
|
5337
5337
|
}
|
|
5338
5338
|
incompatibleTokens = "*";
|
|
5339
5339
|
}
|
|
5340
|
-
const
|
|
5341
|
-
G: new
|
|
5342
|
-
y: new
|
|
5343
|
-
Y: new
|
|
5344
|
-
R: new
|
|
5345
|
-
u: new
|
|
5346
|
-
Q: new
|
|
5347
|
-
q: new
|
|
5348
|
-
M: new
|
|
5349
|
-
L: new
|
|
5350
|
-
w: new
|
|
5351
|
-
I: new
|
|
5352
|
-
d: new
|
|
5353
|
-
D: new
|
|
5354
|
-
E: new
|
|
5355
|
-
e: new
|
|
5356
|
-
c: new
|
|
5357
|
-
i: new
|
|
5358
|
-
a: new
|
|
5359
|
-
b: new
|
|
5360
|
-
B: new
|
|
5361
|
-
h: new
|
|
5362
|
-
H: new
|
|
5363
|
-
K: new
|
|
5364
|
-
k: new
|
|
5365
|
-
m: new
|
|
5366
|
-
s: new
|
|
5367
|
-
S: new
|
|
5368
|
-
X: new
|
|
5369
|
-
x: new
|
|
5370
|
-
t: new
|
|
5371
|
-
T: new
|
|
5372
|
-
},
|
|
5373
|
-
function
|
|
5374
|
-
const r = () => A(s, NaN), n =
|
|
5340
|
+
const _d = {
|
|
5341
|
+
G: new Vc(),
|
|
5342
|
+
y: new Nc(),
|
|
5343
|
+
Y: new Bc(),
|
|
5344
|
+
R: new qc(),
|
|
5345
|
+
u: new Lc(),
|
|
5346
|
+
Q: new Wc(),
|
|
5347
|
+
q: new jc(),
|
|
5348
|
+
M: new Yc(),
|
|
5349
|
+
L: new Qc(),
|
|
5350
|
+
w: new Xc(),
|
|
5351
|
+
I: new Jc(),
|
|
5352
|
+
d: new td(),
|
|
5353
|
+
D: new sd(),
|
|
5354
|
+
E: new id(),
|
|
5355
|
+
e: new rd(),
|
|
5356
|
+
c: new nd(),
|
|
5357
|
+
i: new ad(),
|
|
5358
|
+
a: new ld(),
|
|
5359
|
+
b: new cd(),
|
|
5360
|
+
B: new dd(),
|
|
5361
|
+
h: new ud(),
|
|
5362
|
+
H: new hd(),
|
|
5363
|
+
K: new fd(),
|
|
5364
|
+
k: new pd(),
|
|
5365
|
+
m: new md(),
|
|
5366
|
+
s: new gd(),
|
|
5367
|
+
S: new yd(),
|
|
5368
|
+
X: new vd(),
|
|
5369
|
+
x: new bd(),
|
|
5370
|
+
t: new wd(),
|
|
5371
|
+
T: new xd()
|
|
5372
|
+
}, Sd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Cd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Dd = /^'([^]*?)'?$/, Td = /''/g, $d = /\S/, Id = /[a-zA-Z]/;
|
|
5373
|
+
function Ed(e, t, s, i) {
|
|
5374
|
+
const r = () => A(s, NaN), n = Pc(), o = n.locale ?? Xi, a = n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, l = n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, d = {
|
|
5375
5375
|
firstWeekContainsDate: a,
|
|
5376
5376
|
weekStartsOn: l,
|
|
5377
5377
|
locale: o
|
|
5378
|
-
}, c = [new
|
|
5378
|
+
}, c = [new Gc(i?.in, s)], u = t.match(Cd).map((p) => {
|
|
5379
5379
|
const b = p[0];
|
|
5380
5380
|
if (b in Qt) {
|
|
5381
5381
|
const g = Qt[b];
|
|
5382
5382
|
return g(p, o.formatLong);
|
|
5383
5383
|
}
|
|
5384
5384
|
return p;
|
|
5385
|
-
}).join("").match(
|
|
5385
|
+
}).join("").match(Sd), y = [];
|
|
5386
5386
|
for (let p of u) {
|
|
5387
|
-
|
|
5388
|
-
const b = p[0], g =
|
|
5387
|
+
tr(p) && Ut(p, t, e), er(p) && Ut(p, t, e);
|
|
5388
|
+
const b = p[0], g = _d[b];
|
|
5389
5389
|
if (g) {
|
|
5390
5390
|
const { incompatibleTokens: w } = g;
|
|
5391
5391
|
if (Array.isArray(w)) {
|
|
@@ -5411,17 +5411,17 @@ function Dd(e, t, s, i) {
|
|
|
5411
5411
|
return r();
|
|
5412
5412
|
c.push(C.setter), e = C.rest;
|
|
5413
5413
|
} else {
|
|
5414
|
-
if (b.match(
|
|
5414
|
+
if (b.match(Id))
|
|
5415
5415
|
throw new RangeError(
|
|
5416
5416
|
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
5417
5417
|
);
|
|
5418
|
-
if (p === "''" ? p = "'" : b === "'" && (p =
|
|
5418
|
+
if (p === "''" ? p = "'" : b === "'" && (p = Fd(p)), e.indexOf(p) === 0)
|
|
5419
5419
|
e = e.slice(p.length);
|
|
5420
5420
|
else
|
|
5421
5421
|
return r();
|
|
5422
5422
|
}
|
|
5423
5423
|
}
|
|
5424
|
-
if (e.length > 0 &&
|
|
5424
|
+
if (e.length > 0 && $d.test(e))
|
|
5425
5425
|
return r();
|
|
5426
5426
|
const f = c.map((p) => p.priority).sort((p, b) => b - p).filter((p, b, g) => g.indexOf(p) === b).map(
|
|
5427
5427
|
(p) => c.filter((b) => b.priority === p).sort((b, g) => g.subPriority - b.subPriority)
|
|
@@ -5437,14 +5437,14 @@ function Dd(e, t, s, i) {
|
|
|
5437
5437
|
}
|
|
5438
5438
|
return m;
|
|
5439
5439
|
}
|
|
5440
|
-
function
|
|
5441
|
-
return e.match(
|
|
5440
|
+
function Fd(e) {
|
|
5441
|
+
return e.match(Dd)[1].replace(Td, "'");
|
|
5442
5442
|
}
|
|
5443
|
-
const qs = 88,
|
|
5443
|
+
const qs = 88, Od = 64, Md = 44, Pd = (e) => {
|
|
5444
5444
|
if (!e) return qs;
|
|
5445
5445
|
const t = e.items?.length ?? 0, s = e.subGroups ?? [], i = s.reduce((r, n) => r + (n.items?.length ?? 0), 0);
|
|
5446
|
-
return qs + (t + i) *
|
|
5447
|
-
},
|
|
5446
|
+
return qs + (t + i) * Od + s.length * Md;
|
|
5447
|
+
}, kd = ":host{min-height:1px;display:flex;flex-direction:column;flex:1 1 0%}.virtual-container{height:100%;position:relative}.virtual-viewport{height:100%;overflow:auto;padding-inline:16px;overflow-anchor:none}.virtual-content{position:relative;width:100%}.virtual-items{position:relative}.container{min-height:1px;height:100%}.visit:first-child{margin-top:var(--dss-spacing-md)}.visit{width:calc(100% - var(--dss-spacing-md) - var(--dss-spacing-md));display:flex;flex-direction:column;gap:var(--dss-spacing-sm);background-color:#fff;border-radius:var(--dss-radius-sm);padding:var(--dss-spacing-sm);margin-bottom:var(--dss-spacing-md)}.visit .visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.visit .visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.visit .visit__header .title-date{font-weight:700}.visit .visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.visit .visit__header .highlight{background-color:#ff0;font-weight:700}.visit .visit__items{display:flex;flex-direction:column;gap:var(--dss-spacing-sm)}.visit .visit__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .visit__items .item[has-divider]:last-of-type{border:none}.visit .diagnostics{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics:last-of-type{border:none}.visit .diagnostics .diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.visit .diagnostics .diagnostics__items{display:flex;flex-direction:column}.visit .diagnostics .diagnostics__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics .diagnostics__items .item[has-divider]:last-of-type{border:none}.feedback{width:100%;height:100%;display:flex;align-items:center;justify-content:center}";
|
|
5448
5448
|
/**
|
|
5449
5449
|
* @license
|
|
5450
5450
|
* Copyright 2017 Google LLC
|
|
@@ -5455,44 +5455,44 @@ const Le = (e, t) => {
|
|
|
5455
5455
|
if (s === void 0) return !1;
|
|
5456
5456
|
for (const i of s) i._$AO?.(t, !1), Le(i, t);
|
|
5457
5457
|
return !0;
|
|
5458
|
-
},
|
|
5458
|
+
}, ut = (e) => {
|
|
5459
5459
|
let t, s;
|
|
5460
5460
|
do {
|
|
5461
5461
|
if ((t = e._$AM) === void 0) break;
|
|
5462
5462
|
s = t._$AN, s.delete(e), e = t;
|
|
5463
5463
|
} while (s?.size === 0);
|
|
5464
|
-
},
|
|
5464
|
+
}, ar = (e) => {
|
|
5465
5465
|
for (let t; t = e._$AM; e = t) {
|
|
5466
5466
|
let s = t._$AN;
|
|
5467
5467
|
if (s === void 0) t._$AN = s = /* @__PURE__ */ new Set();
|
|
5468
5468
|
else if (s.has(e)) break;
|
|
5469
|
-
s.add(e),
|
|
5469
|
+
s.add(e), Rd(t);
|
|
5470
5470
|
}
|
|
5471
5471
|
};
|
|
5472
|
-
function
|
|
5473
|
-
this._$AN !== void 0 ? (
|
|
5472
|
+
function Ad(e) {
|
|
5473
|
+
this._$AN !== void 0 ? (ut(this), this._$AM = e, ar(this)) : this._$AM = e;
|
|
5474
5474
|
}
|
|
5475
|
-
function
|
|
5475
|
+
function Hd(e, t = !1, s = 0) {
|
|
5476
5476
|
const i = this._$AH, r = this._$AN;
|
|
5477
|
-
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = s; n < i.length; n++) Le(i[n], !1),
|
|
5478
|
-
else i != null && (Le(i, !1),
|
|
5477
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = s; n < i.length; n++) Le(i[n], !1), ut(i[n]);
|
|
5478
|
+
else i != null && (Le(i, !1), ut(i));
|
|
5479
5479
|
else Le(this, e);
|
|
5480
5480
|
}
|
|
5481
|
-
const
|
|
5482
|
-
e.type ==
|
|
5481
|
+
const Rd = (e) => {
|
|
5482
|
+
e.type == Pr.CHILD && (e._$AP ??= Hd, e._$AQ ??= Ad);
|
|
5483
5483
|
};
|
|
5484
|
-
class
|
|
5484
|
+
class zd extends Or {
|
|
5485
5485
|
constructor() {
|
|
5486
5486
|
super(...arguments), this._$AN = void 0;
|
|
5487
5487
|
}
|
|
5488
5488
|
_$AT(t, s, i) {
|
|
5489
|
-
super._$AT(t, s, i),
|
|
5489
|
+
super._$AT(t, s, i), ar(this), this.isConnected = t._$AU;
|
|
5490
5490
|
}
|
|
5491
5491
|
_$AO(t, s = !0) {
|
|
5492
|
-
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), s && (Le(this, t),
|
|
5492
|
+
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), s && (Le(this, t), ut(this));
|
|
5493
5493
|
}
|
|
5494
5494
|
setValue(t) {
|
|
5495
|
-
if (
|
|
5495
|
+
if (Mr(this.t)) this.t._$AI(t, this);
|
|
5496
5496
|
else {
|
|
5497
5497
|
const s = [...this.t._$AH];
|
|
5498
5498
|
s[this.i] = t, this.t._$AI(s, this, 0);
|
|
@@ -5503,7 +5503,7 @@ class kd extends Er {
|
|
|
5503
5503
|
reconnected() {
|
|
5504
5504
|
}
|
|
5505
5505
|
}
|
|
5506
|
-
const Pt = /* @__PURE__ */ new WeakMap(),
|
|
5506
|
+
const Pt = /* @__PURE__ */ new WeakMap(), lr = kr(class extends zd {
|
|
5507
5507
|
render(e) {
|
|
5508
5508
|
return M;
|
|
5509
5509
|
}
|
|
@@ -5527,35 +5527,35 @@ const Pt = /* @__PURE__ */ new WeakMap(), or = Mr(class extends kd {
|
|
|
5527
5527
|
reconnected() {
|
|
5528
5528
|
this.rt(this.ct);
|
|
5529
5529
|
}
|
|
5530
|
-
}),
|
|
5530
|
+
}), Gd = ".grouping-busy-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}", Vd = (e) => h`
|
|
5531
5531
|
<div class="grouping-busy-container">
|
|
5532
5532
|
<dss-spinner size="sm"></dss-spinner>
|
|
5533
5533
|
<div>${v("isGrouping")}</div>
|
|
5534
5534
|
</div>
|
|
5535
5535
|
`;
|
|
5536
|
-
var
|
|
5537
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
5536
|
+
var Nd = Object.getOwnPropertyDescriptor, Bd = (e, t, s, i) => {
|
|
5537
|
+
for (var r = i > 1 ? void 0 : i ? Nd(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
5538
5538
|
(o = e[n]) && (r = o(r) || r);
|
|
5539
5539
|
return r;
|
|
5540
5540
|
};
|
|
5541
5541
|
let Xt = class extends W {
|
|
5542
5542
|
render() {
|
|
5543
|
-
return
|
|
5543
|
+
return Vd();
|
|
5544
5544
|
}
|
|
5545
5545
|
};
|
|
5546
5546
|
Xt.styles = L`
|
|
5547
|
-
${q(
|
|
5547
|
+
${q(Gd)}
|
|
5548
5548
|
`;
|
|
5549
|
-
Xt =
|
|
5549
|
+
Xt = Bd([
|
|
5550
5550
|
j("activity-history-is-grouping-busy")
|
|
5551
5551
|
], Xt);
|
|
5552
|
-
function
|
|
5552
|
+
function cr(e) {
|
|
5553
5553
|
return !e.professional?.speciality?.description;
|
|
5554
5554
|
}
|
|
5555
5555
|
const Kt = (e, t) => {
|
|
5556
5556
|
const s = t.findIndex((i) => i.id === e.id);
|
|
5557
5557
|
return s === -1 ? !1 : s === t.length - 1 ? !0 : !e.diagnostics?.length;
|
|
5558
|
-
},
|
|
5558
|
+
}, dr = (e) => {
|
|
5559
5559
|
const t = e?.items.map((i) => ({
|
|
5560
5560
|
type: "item",
|
|
5561
5561
|
date: new Date(i.date),
|
|
@@ -5566,7 +5566,7 @@ const Kt = (e, t) => {
|
|
|
5566
5566
|
subGroup: i
|
|
5567
5567
|
}));
|
|
5568
5568
|
return [...t, ...s].sort((i, r) => r.date.getTime() - i.date.getTime());
|
|
5569
|
-
},
|
|
5569
|
+
}, qd = (e) => h`
|
|
5570
5570
|
<div class="container">
|
|
5571
5571
|
<activity-history-full-data-error></activity-history-full-data-error>
|
|
5572
5572
|
<activity-history-partial-data-error></activity-history-partial-data-error>
|
|
@@ -5582,12 +5582,12 @@ const Kt = (e, t) => {
|
|
|
5582
5582
|
({ index: t, group: s }) => h`
|
|
5583
5583
|
<div class="visit"
|
|
5584
5584
|
data-index=${t}
|
|
5585
|
-
${
|
|
5585
|
+
${lr(e._measureElement)}
|
|
5586
5586
|
data-date=${Xs(s?.items[0]?.date || s?.subGroups[0]?.items[0]?.date)}>
|
|
5587
|
-
${
|
|
5587
|
+
${Wd(e, s?.items[0] || s?.subGroups[0]?.items[0], s)}
|
|
5588
5588
|
<div class="visit__items">
|
|
5589
5589
|
${oe(
|
|
5590
|
-
|
|
5590
|
+
dr(s),
|
|
5591
5591
|
(i) => i.type === "item" ? i.item.id : i.subGroup.id,
|
|
5592
5592
|
(i) => {
|
|
5593
5593
|
if (i.type === "item") {
|
|
@@ -5604,7 +5604,7 @@ const Kt = (e, t) => {
|
|
|
5604
5604
|
const r = i.subGroup;
|
|
5605
5605
|
return h`
|
|
5606
5606
|
<div class="diagnostics">
|
|
5607
|
-
${
|
|
5607
|
+
${Qd(r?.items[0])}
|
|
5608
5608
|
<div class="diagnostics__items">
|
|
5609
5609
|
${oe(
|
|
5610
5610
|
r?.items,
|
|
@@ -5629,9 +5629,9 @@ const Kt = (e, t) => {
|
|
|
5629
5629
|
</div>
|
|
5630
5630
|
</div>
|
|
5631
5631
|
</div>
|
|
5632
|
-
` :
|
|
5632
|
+
` : Ld(e)}
|
|
5633
5633
|
</div>
|
|
5634
|
-
`,
|
|
5634
|
+
`, Ld = (e) => h`
|
|
5635
5635
|
${e.searchString?.length > 1 ? h`
|
|
5636
5636
|
<dss-user-feedback
|
|
5637
5637
|
class="feedback"
|
|
@@ -5643,20 +5643,20 @@ ${e.searchString?.length > 1 ? h`
|
|
|
5643
5643
|
status="empty"
|
|
5644
5644
|
title=${v("noData.title")}
|
|
5645
5645
|
description=${v("noData.description")}>
|
|
5646
|
-
</dss-user-feedback>` : M}`,
|
|
5646
|
+
</dss-user-feedback>` : M}`, Wd = (e, t, s) => t ? h`
|
|
5647
5647
|
<div class="visit__header">
|
|
5648
5648
|
<div class="title">
|
|
5649
5649
|
<div class="title-date">
|
|
5650
|
-
<div>${
|
|
5650
|
+
<div>${sr(new Date(t.date), "dd/MM/yyyy")}</div>
|
|
5651
5651
|
</div>
|
|
5652
5652
|
<div class="title-description">
|
|
5653
5653
|
<div>
|
|
5654
|
-
${
|
|
5654
|
+
${Yd(e, t, s)}
|
|
5655
5655
|
</div>
|
|
5656
5656
|
</div>
|
|
5657
5657
|
</div>
|
|
5658
5658
|
</div>
|
|
5659
|
-
` : M,
|
|
5659
|
+
` : M, jd = (e) => {
|
|
5660
5660
|
if (e) {
|
|
5661
5661
|
for (const t of e.items || [])
|
|
5662
5662
|
if (t.service?.id) return t.service;
|
|
@@ -5664,13 +5664,13 @@ ${e.searchString?.length > 1 ? h`
|
|
|
5664
5664
|
for (const s of t.items || [])
|
|
5665
5665
|
if (s.service?.id) return s.service;
|
|
5666
5666
|
}
|
|
5667
|
-
},
|
|
5667
|
+
}, Yd = (e, t, s) => {
|
|
5668
5668
|
if (!t.professional) return M;
|
|
5669
|
-
const i =
|
|
5669
|
+
const i = cr(t), r = [];
|
|
5670
5670
|
r.push(e.highlighted(t.professional.name)), i && t.professional?.role?.description && r.push(e.highlighted(t.professional.role.description)), t.professional?.speciality?.description && r.push(e.highlighted(t.professional.speciality.description)), t.up?.description && r.push(e.highlighted(t.up.description));
|
|
5671
|
-
const n = t.service?.description ? t.service :
|
|
5671
|
+
const n = t.service?.description ? t.service : jd(s);
|
|
5672
5672
|
return n?.description && r.push(e.highlighted(n.description)), r.map((o, a) => h`${o}${a < r.length - 1 ? " | " : ""}`);
|
|
5673
|
-
},
|
|
5673
|
+
}, Qd = (e) => e && h`
|
|
5674
5674
|
<div class="diagnostics__header">
|
|
5675
5675
|
${e.diagnostics.filter((t) => t.descripcio != null && t.descripcio.trim() !== "").map(
|
|
5676
5676
|
(t) => h`<dss-badge text=${t.descripcio?.toUpperCase()} state="info" size="sm" outlined hideIcon></dss-badge>`
|
|
@@ -5717,7 +5717,7 @@ function Ls(e, t) {
|
|
|
5717
5717
|
throw new Error("Unexpected undefined");
|
|
5718
5718
|
return e;
|
|
5719
5719
|
}
|
|
5720
|
-
const
|
|
5720
|
+
const Ud = (e, t) => Math.abs(e - t) < 1.01, Xd = (e, t, s) => {
|
|
5721
5721
|
let i;
|
|
5722
5722
|
return function(...r) {
|
|
5723
5723
|
e.clearTimeout(i), i = e.setTimeout(() => t.apply(this, r), s);
|
|
@@ -5725,12 +5725,12 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5725
5725
|
}, Ws = (e) => {
|
|
5726
5726
|
const { offsetWidth: t, offsetHeight: s } = e;
|
|
5727
5727
|
return { width: t, height: s };
|
|
5728
|
-
},
|
|
5728
|
+
}, Kd = (e) => e, Jd = (e) => {
|
|
5729
5729
|
const t = Math.max(e.startIndex - e.overscan, 0), s = Math.min(e.endIndex + e.overscan, e.count - 1), i = [];
|
|
5730
5730
|
for (let r = t; r <= s; r++)
|
|
5731
5731
|
i.push(r);
|
|
5732
5732
|
return i;
|
|
5733
|
-
},
|
|
5733
|
+
}, Zd = (e, t) => {
|
|
5734
5734
|
const s = e.scrollElement;
|
|
5735
5735
|
if (!s)
|
|
5736
5736
|
return;
|
|
@@ -5763,7 +5763,7 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5763
5763
|
};
|
|
5764
5764
|
}, js = {
|
|
5765
5765
|
passive: !0
|
|
5766
|
-
}, Ys = typeof window > "u" ? !0 : "onscrollend" in window,
|
|
5766
|
+
}, Ys = typeof window > "u" ? !0 : "onscrollend" in window, eu = (e, t) => {
|
|
5767
5767
|
const s = e.scrollElement;
|
|
5768
5768
|
if (!s)
|
|
5769
5769
|
return;
|
|
@@ -5772,7 +5772,7 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5772
5772
|
return;
|
|
5773
5773
|
let r = 0;
|
|
5774
5774
|
const n = e.options.useScrollendEvent && Ys ? () => {
|
|
5775
|
-
} :
|
|
5775
|
+
} : Xd(
|
|
5776
5776
|
i,
|
|
5777
5777
|
() => {
|
|
5778
5778
|
t(r, !1);
|
|
@@ -5787,7 +5787,7 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5787
5787
|
return d && s.addEventListener("scrollend", l, js), () => {
|
|
5788
5788
|
s.removeEventListener("scroll", a), d && s.removeEventListener("scrollend", l);
|
|
5789
5789
|
};
|
|
5790
|
-
},
|
|
5790
|
+
}, tu = (e, t, s) => {
|
|
5791
5791
|
if (t?.borderBoxSize) {
|
|
5792
5792
|
const i = t.borderBoxSize[0];
|
|
5793
5793
|
if (i)
|
|
@@ -5796,7 +5796,7 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5796
5796
|
);
|
|
5797
5797
|
}
|
|
5798
5798
|
return e[s.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
5799
|
-
},
|
|
5799
|
+
}, su = (e, {
|
|
5800
5800
|
adjustments: t = 0,
|
|
5801
5801
|
behavior: s
|
|
5802
5802
|
}, i) => {
|
|
@@ -5807,7 +5807,7 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5807
5807
|
behavior: s
|
|
5808
5808
|
});
|
|
5809
5809
|
};
|
|
5810
|
-
class
|
|
5810
|
+
class iu {
|
|
5811
5811
|
constructor(t) {
|
|
5812
5812
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
5813
5813
|
var s, i, r;
|
|
@@ -5856,11 +5856,11 @@ class Zd {
|
|
|
5856
5856
|
scrollPaddingStart: 0,
|
|
5857
5857
|
scrollPaddingEnd: 0,
|
|
5858
5858
|
horizontal: !1,
|
|
5859
|
-
getItemKey:
|
|
5860
|
-
rangeExtractor:
|
|
5859
|
+
getItemKey: Kd,
|
|
5860
|
+
rangeExtractor: Jd,
|
|
5861
5861
|
onChange: () => {
|
|
5862
5862
|
},
|
|
5863
|
-
measureElement:
|
|
5863
|
+
measureElement: tu,
|
|
5864
5864
|
initialRect: { width: 0, height: 0 },
|
|
5865
5865
|
scrollMargin: 0,
|
|
5866
5866
|
gap: 0,
|
|
@@ -6021,7 +6021,7 @@ class Zd {
|
|
|
6021
6021
|
this.getScrollOffset(),
|
|
6022
6022
|
this.options.lanes
|
|
6023
6023
|
],
|
|
6024
|
-
(s, i, r, n) => this.range = s.length > 0 && i > 0 ?
|
|
6024
|
+
(s, i, r, n) => this.range = s.length > 0 && i > 0 ? ru({
|
|
6025
6025
|
measurements: s,
|
|
6026
6026
|
outerSize: i,
|
|
6027
6027
|
scrollOffset: r,
|
|
@@ -6110,7 +6110,7 @@ class Zd {
|
|
|
6110
6110
|
const i = this.getMeasurements();
|
|
6111
6111
|
if (i.length !== 0)
|
|
6112
6112
|
return Ls(
|
|
6113
|
-
i[
|
|
6113
|
+
i[ur(
|
|
6114
6114
|
0,
|
|
6115
6115
|
i.length - 1,
|
|
6116
6116
|
(r) => Ls(i[r]).start,
|
|
@@ -6232,7 +6232,7 @@ class Zd {
|
|
|
6232
6232
|
return;
|
|
6233
6233
|
}
|
|
6234
6234
|
const i = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, r = i ? i[0] : this.scrollState.lastTargetOffset, n = 1, o = r !== this.scrollState.lastTargetOffset;
|
|
6235
|
-
if (!o &&
|
|
6235
|
+
if (!o && Ud(r, this.getScrollOffset())) {
|
|
6236
6236
|
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= n) {
|
|
6237
6237
|
this.scrollState = null;
|
|
6238
6238
|
return;
|
|
@@ -6245,7 +6245,7 @@ class Zd {
|
|
|
6245
6245
|
this.scheduleScrollReconcile();
|
|
6246
6246
|
}
|
|
6247
6247
|
}
|
|
6248
|
-
const
|
|
6248
|
+
const ur = (e, t, s, i) => {
|
|
6249
6249
|
for (; e <= t; ) {
|
|
6250
6250
|
const r = (e + t) / 2 | 0, n = s(r);
|
|
6251
6251
|
if (n < i)
|
|
@@ -6257,7 +6257,7 @@ const cr = (e, t, s, i) => {
|
|
|
6257
6257
|
}
|
|
6258
6258
|
return e > 0 ? e - 1 : 0;
|
|
6259
6259
|
};
|
|
6260
|
-
function
|
|
6260
|
+
function ru({
|
|
6261
6261
|
measurements: e,
|
|
6262
6262
|
outerSize: t,
|
|
6263
6263
|
scrollOffset: s,
|
|
@@ -6269,7 +6269,7 @@ function eu({
|
|
|
6269
6269
|
startIndex: 0,
|
|
6270
6270
|
endIndex: r
|
|
6271
6271
|
};
|
|
6272
|
-
let o =
|
|
6272
|
+
let o = ur(
|
|
6273
6273
|
0,
|
|
6274
6274
|
r,
|
|
6275
6275
|
n,
|
|
@@ -6293,24 +6293,24 @@ function eu({
|
|
|
6293
6293
|
}
|
|
6294
6294
|
return { startIndex: o, endIndex: a };
|
|
6295
6295
|
}
|
|
6296
|
-
const
|
|
6296
|
+
const nu = (e) => {
|
|
6297
6297
|
const t = e.getBoundingClientRect().height, s = window.getComputedStyle(e), i = Number.parseFloat(s.marginTop) || 0, r = Number.parseFloat(s.marginBottom) || 0;
|
|
6298
6298
|
return Math.round(t + i + r);
|
|
6299
6299
|
};
|
|
6300
|
-
class
|
|
6300
|
+
class hr {
|
|
6301
6301
|
constructor(t) {
|
|
6302
6302
|
this._lastVisibleState = { virtualItems: [], totalHeight: 0 }, this._savedScrollTop = 0, this._viewportWasHidden = !1, this._options = t;
|
|
6303
6303
|
}
|
|
6304
6304
|
setup(t, s) {
|
|
6305
|
-
return this._viewport = t, this._virtualizer = new
|
|
6305
|
+
return this._viewport = t, this._virtualizer = new iu({
|
|
6306
6306
|
count: this._options.items.length,
|
|
6307
6307
|
getScrollElement: () => this._viewport ?? null,
|
|
6308
6308
|
estimateSize: (i) => this._options.estimateItemHeight(i),
|
|
6309
6309
|
overscan: this._options.overscan ?? 5,
|
|
6310
6310
|
measureElement: (i) => this._measureItem(i),
|
|
6311
|
-
observeElementRect:
|
|
6312
|
-
observeElementOffset:
|
|
6313
|
-
scrollToFn:
|
|
6311
|
+
observeElementRect: Zd,
|
|
6312
|
+
observeElementOffset: eu,
|
|
6313
|
+
scrollToFn: su,
|
|
6314
6314
|
onChange: () => {
|
|
6315
6315
|
this._trackViewportVisibility(), s(this.getState());
|
|
6316
6316
|
}
|
|
@@ -6352,7 +6352,7 @@ class dr {
|
|
|
6352
6352
|
const s = Number(t.getAttribute("data-index"));
|
|
6353
6353
|
return this._virtualizer?.measurementsCache[s]?.size ?? this._options.estimateItemHeight(s);
|
|
6354
6354
|
}
|
|
6355
|
-
return (this._options.measureElement ??
|
|
6355
|
+
return (this._options.measureElement ?? nu)(t);
|
|
6356
6356
|
}
|
|
6357
6357
|
// Deactivated region views are hidden with display:none: the viewport
|
|
6358
6358
|
// measures 0px, the virtualizer nulls its range (empty virtualItems) and the
|
|
@@ -6376,10 +6376,10 @@ class dr {
|
|
|
6376
6376
|
}), this._lastVisibleState;
|
|
6377
6377
|
}
|
|
6378
6378
|
}
|
|
6379
|
-
var
|
|
6380
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
6379
|
+
var ou = Object.defineProperty, au = Object.getOwnPropertyDescriptor, ne = (e, t, s, i) => {
|
|
6380
|
+
for (var r = i > 1 ? void 0 : i ? au(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6381
6381
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
6382
|
-
return i && r &&
|
|
6382
|
+
return i && r && ou(t, s, r), r;
|
|
6383
6383
|
};
|
|
6384
6384
|
let Q = class extends W {
|
|
6385
6385
|
constructor() {
|
|
@@ -6393,7 +6393,7 @@ let Q = class extends W {
|
|
|
6393
6393
|
}
|
|
6394
6394
|
render() {
|
|
6395
6395
|
return h`
|
|
6396
|
-
${
|
|
6396
|
+
${qd(this)}
|
|
6397
6397
|
`;
|
|
6398
6398
|
}
|
|
6399
6399
|
connectedCallback() {
|
|
@@ -6430,7 +6430,7 @@ let Q = class extends W {
|
|
|
6430
6430
|
return e.replace(s, '<span class="highlight">$1</span>');
|
|
6431
6431
|
}
|
|
6432
6432
|
highlighted(e) {
|
|
6433
|
-
return e ?
|
|
6433
|
+
return e ? Ar(this.highlightMatch(e, this.searchString)) : null;
|
|
6434
6434
|
}
|
|
6435
6435
|
// Public API: scroll the timeline to a given date ("Anar a data").
|
|
6436
6436
|
//
|
|
@@ -6446,7 +6446,7 @@ let Q = class extends W {
|
|
|
6446
6446
|
if (!this._virtualScroller || !this._viewport) return;
|
|
6447
6447
|
const t = this.historyGroups ?? [];
|
|
6448
6448
|
if (!t.length) return;
|
|
6449
|
-
const s =
|
|
6449
|
+
const s = ct(e).getTime(), i = (n) => ct(Wt(n)).getTime();
|
|
6450
6450
|
let r = t.findIndex((n) => i(n) <= s);
|
|
6451
6451
|
r === -1 && (r = t.length - 1), this._viewport.scrollTop = this._virtualScroller.getOffsetForIndex(r), this._alignGroupTop(r, 0);
|
|
6452
6452
|
}
|
|
@@ -6469,10 +6469,10 @@ let Q = class extends W {
|
|
|
6469
6469
|
}
|
|
6470
6470
|
// === VIRTUAL SCROLLER LOGIC ===
|
|
6471
6471
|
_setupVirtualScroller() {
|
|
6472
|
-
!this._viewport || this._virtualScroller || (this._virtualScroller = new
|
|
6472
|
+
!this._viewport || this._virtualScroller || (this._virtualScroller = new hr({
|
|
6473
6473
|
items: this.historyGroups || [],
|
|
6474
6474
|
overscan: 8,
|
|
6475
|
-
estimateItemHeight: (e) =>
|
|
6475
|
+
estimateItemHeight: (e) => Pd(this.historyGroups?.[e])
|
|
6476
6476
|
}), this._cleanupVirtualScroller = this._virtualScroller.setup(this._viewport, (e) => {
|
|
6477
6477
|
this._virtualScrollerState = e, this.requestUpdate(), this.api?.broker && this.searchString && this.api.broker.publish(this.api.broker.events.activityHistory.searched, {
|
|
6478
6478
|
searchQuery: this.searchString
|
|
@@ -6500,7 +6500,7 @@ let Q = class extends W {
|
|
|
6500
6500
|
}
|
|
6501
6501
|
};
|
|
6502
6502
|
Q.styles = L`
|
|
6503
|
-
${q(
|
|
6503
|
+
${q(kd)}
|
|
6504
6504
|
`;
|
|
6505
6505
|
ne([
|
|
6506
6506
|
S(hs)
|
|
@@ -6532,7 +6532,7 @@ ne([
|
|
|
6532
6532
|
Q = ne([
|
|
6533
6533
|
j("activity-history-timeline")
|
|
6534
6534
|
], Q);
|
|
6535
|
-
const
|
|
6535
|
+
const lu = (e) => {
|
|
6536
6536
|
const t = e.areCustomFiltersActive || e.areCommonFiltersActive || e.areDiagnosticFiltersActive || e.areGlobalFiltersActive;
|
|
6537
6537
|
return !t && e.searchString.length < 1 ? M : h`
|
|
6538
6538
|
<div class="active-filters-header">
|
|
@@ -6540,41 +6540,41 @@ const ru = (e) => {
|
|
|
6540
6540
|
${kt(e.searchString.length > 1, () => h`<activity-history-search-results searchQuery=${e.searchString}></activity-history-search-results>`)}
|
|
6541
6541
|
</div>
|
|
6542
6542
|
`;
|
|
6543
|
-
},
|
|
6544
|
-
var
|
|
6545
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
6543
|
+
}, cu = ".active-filters-header{display:flex;flex-direction:column;border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;padding:var(--dss-spacing-sm) var(--dss-spacing-md);gap:var(--dss-spacing-xs);font-size:14px;line-height:24px}";
|
|
6544
|
+
var du = Object.defineProperty, uu = Object.getOwnPropertyDescriptor, Ge = (e, t, s, i) => {
|
|
6545
|
+
for (var r = i > 1 ? void 0 : i ? uu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6546
6546
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
6547
|
-
return i && r &&
|
|
6547
|
+
return i && r && du(t, s, r), r;
|
|
6548
6548
|
};
|
|
6549
6549
|
let he = class extends W {
|
|
6550
6550
|
render() {
|
|
6551
|
-
return h`${
|
|
6551
|
+
return h`${lu(this)}`;
|
|
6552
6552
|
}
|
|
6553
6553
|
};
|
|
6554
6554
|
he.styles = L`
|
|
6555
|
-
${q(
|
|
6555
|
+
${q(cu)}
|
|
6556
6556
|
`;
|
|
6557
6557
|
Ge([
|
|
6558
6558
|
S(Dt)
|
|
6559
6559
|
], he.prototype, "searchString", 2);
|
|
6560
6560
|
Ge([
|
|
6561
|
-
S(
|
|
6561
|
+
S(xa)
|
|
6562
6562
|
], he.prototype, "areCustomFiltersActive", 2);
|
|
6563
6563
|
Ge([
|
|
6564
|
-
S(
|
|
6564
|
+
S(ba)
|
|
6565
6565
|
], he.prototype, "areCommonFiltersActive", 2);
|
|
6566
6566
|
Ge([
|
|
6567
|
-
S(
|
|
6567
|
+
S(_a)
|
|
6568
6568
|
], he.prototype, "areDiagnosticFiltersActive", 2);
|
|
6569
6569
|
Ge([
|
|
6570
|
-
S(
|
|
6570
|
+
S(Fa)
|
|
6571
6571
|
], he.prototype, "areGlobalFiltersActive", 2);
|
|
6572
6572
|
he = Ge([
|
|
6573
6573
|
j("active-filters-header")
|
|
6574
6574
|
], he);
|
|
6575
|
-
const
|
|
6576
|
-
${e.isAllDataFailedToLoad ?
|
|
6577
|
-
`,
|
|
6575
|
+
const hu = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;height:100%;justify-content:center}", fu = (e) => h`
|
|
6576
|
+
${e.isAllDataFailedToLoad ? pu(e) : M}
|
|
6577
|
+
`, pu = (e) => h`
|
|
6578
6578
|
<div class="container">
|
|
6579
6579
|
<dss-user-feedback status="error" variant="default" size="lg" title=${v("error.title")} description=${v("error.general.title")} hasdetails="" detailslabel=${v("error.viewDetails")}>
|
|
6580
6580
|
<div slot="details">
|
|
@@ -6583,34 +6583,34 @@ const lu = ":host{width:100%}.container{display:flex;align-items:center;flex-dir
|
|
|
6583
6583
|
<dss-button @onClick=${e.handleClickFeedback} label=${v("error.general.refresh")} size="lg"></dss-button>
|
|
6584
6584
|
</dss-user-feedback>
|
|
6585
6585
|
</div>
|
|
6586
|
-
`,
|
|
6586
|
+
`, fr = (e) => e.activityHistoryCollections.error.length > 0, mu = (e) => {
|
|
6587
6587
|
const t = e.activityHistoryCollections.collections;
|
|
6588
6588
|
return Object.values(t).every((s) => !s.items || s.items.length === 0);
|
|
6589
|
-
},
|
|
6590
|
-
var
|
|
6591
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
6589
|
+
}, gu = (e) => !_t(e) && fr(e) && mu(e), pr = (e) => e.activityHistoryCollections.error;
|
|
6590
|
+
var yu = Object.defineProperty, vu = Object.getOwnPropertyDescriptor, $t = (e, t, s, i) => {
|
|
6591
|
+
for (var r = i > 1 ? void 0 : i ? vu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6592
6592
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
6593
|
-
return i && r &&
|
|
6593
|
+
return i && r && yu(t, s, r), r;
|
|
6594
6594
|
};
|
|
6595
6595
|
let Ae = class extends W {
|
|
6596
6596
|
constructor() {
|
|
6597
6597
|
super(...arguments), this.errorMessages = [];
|
|
6598
6598
|
}
|
|
6599
6599
|
render() {
|
|
6600
|
-
return h`${
|
|
6600
|
+
return h`${fu(this)}`;
|
|
6601
6601
|
}
|
|
6602
6602
|
handleClickFeedback() {
|
|
6603
6603
|
this.api.broker.send(new ns(this.errorMessages));
|
|
6604
6604
|
}
|
|
6605
6605
|
};
|
|
6606
6606
|
Ae.styles = L`
|
|
6607
|
-
${q(
|
|
6607
|
+
${q(hu)}
|
|
6608
6608
|
`;
|
|
6609
6609
|
$t([
|
|
6610
|
-
S(
|
|
6610
|
+
S(gu)
|
|
6611
6611
|
], Ae.prototype, "isAllDataFailedToLoad", 2);
|
|
6612
6612
|
$t([
|
|
6613
|
-
S(
|
|
6613
|
+
S(pr)
|
|
6614
6614
|
], Ae.prototype, "errorMessages", 2);
|
|
6615
6615
|
$t([
|
|
6616
6616
|
De(V.primaryApi)
|
|
@@ -6618,27 +6618,27 @@ $t([
|
|
|
6618
6618
|
Ae = $t([
|
|
6619
6619
|
j("activity-history-full-data-error")
|
|
6620
6620
|
], Ae);
|
|
6621
|
-
const
|
|
6621
|
+
const bu = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;padding-top:16px;padding-inline:16px}", wu = (e) => {
|
|
6622
6622
|
const t = e.getCombinedMessage();
|
|
6623
6623
|
return h`
|
|
6624
|
-
${e.isErrorOccurred ?
|
|
6624
|
+
${e.isErrorOccurred ? xu(e, t) : M}
|
|
6625
6625
|
`;
|
|
6626
|
-
},
|
|
6626
|
+
}, xu = (e, t) => h`
|
|
6627
6627
|
<div class="container">
|
|
6628
6628
|
<dss-alert @onButtonClick=${e.handleClickAlert} state="warning" size="lg" message="${t}" buttonLabel=${v("error.partial.refresh")} hasbutton></dss-alert>
|
|
6629
6629
|
</div>
|
|
6630
6630
|
`;
|
|
6631
|
-
var
|
|
6632
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
6631
|
+
var _u = Object.defineProperty, Su = Object.getOwnPropertyDescriptor, It = (e, t, s, i) => {
|
|
6632
|
+
for (var r = i > 1 ? void 0 : i ? Su(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6633
6633
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
6634
|
-
return i && r &&
|
|
6634
|
+
return i && r && _u(t, s, r), r;
|
|
6635
6635
|
};
|
|
6636
6636
|
let He = class extends W {
|
|
6637
6637
|
constructor() {
|
|
6638
6638
|
super(...arguments), this.errorMessages = [];
|
|
6639
6639
|
}
|
|
6640
6640
|
render() {
|
|
6641
|
-
return h`${
|
|
6641
|
+
return h`${wu(this)}`;
|
|
6642
6642
|
}
|
|
6643
6643
|
handleClickAlert() {
|
|
6644
6644
|
this.api.broker.send(new ns(this.errorMessages));
|
|
@@ -6649,13 +6649,13 @@ let He = class extends W {
|
|
|
6649
6649
|
}
|
|
6650
6650
|
};
|
|
6651
6651
|
He.styles = L`
|
|
6652
|
-
${q(
|
|
6652
|
+
${q(bu)}
|
|
6653
6653
|
`;
|
|
6654
6654
|
It([
|
|
6655
|
-
S(
|
|
6655
|
+
S(fr)
|
|
6656
6656
|
], He.prototype, "isErrorOccurred", 2);
|
|
6657
6657
|
It([
|
|
6658
|
-
S(
|
|
6658
|
+
S(pr)
|
|
6659
6659
|
], He.prototype, "errorMessages", 2);
|
|
6660
6660
|
It([
|
|
6661
6661
|
De(V.primaryApi)
|
|
@@ -6663,25 +6663,25 @@ It([
|
|
|
6663
6663
|
He = It([
|
|
6664
6664
|
j("activity-history-partial-data-error")
|
|
6665
6665
|
], He);
|
|
6666
|
-
const { clearActivityHistoryCollections:
|
|
6667
|
-
class
|
|
6666
|
+
const { clearActivityHistoryCollections: Cu } = pe.actions;
|
|
6667
|
+
class Du extends me {
|
|
6668
6668
|
async handle() {
|
|
6669
|
-
this.store.dispatch(re.actions.clearCustomFilters()), this.store.dispatch(
|
|
6669
|
+
this.store.dispatch(re.actions.clearCustomFilters()), this.store.dispatch(Cu()), this.api.broker.publish(this.api.broker.events.activityHistory.refreshDataRequested);
|
|
6670
6670
|
}
|
|
6671
6671
|
}
|
|
6672
|
-
class
|
|
6672
|
+
class mr {
|
|
6673
6673
|
}
|
|
6674
|
-
let
|
|
6675
|
-
const
|
|
6676
|
-
|
|
6677
|
-
},
|
|
6678
|
-
|
|
6679
|
-
}, { removeActivityHistoryItem:
|
|
6680
|
-
class
|
|
6674
|
+
let gr;
|
|
6675
|
+
const Tu = (e) => {
|
|
6676
|
+
$u(), gr = e.registerRequest(mr, Du);
|
|
6677
|
+
}, $u = () => {
|
|
6678
|
+
gr?.dispose();
|
|
6679
|
+
}, { removeActivityHistoryItem: Iu } = pe.actions;
|
|
6680
|
+
class Eu extends Te {
|
|
6681
6681
|
async handle(t) {
|
|
6682
6682
|
try {
|
|
6683
6683
|
this.store.dispatch(
|
|
6684
|
-
|
|
6684
|
+
Iu({
|
|
6685
6685
|
id: t.entityId,
|
|
6686
6686
|
itemId: t.itemId
|
|
6687
6687
|
})
|
|
@@ -6691,16 +6691,16 @@ class Du extends Te {
|
|
|
6691
6691
|
}
|
|
6692
6692
|
}
|
|
6693
6693
|
}
|
|
6694
|
-
let
|
|
6695
|
-
const
|
|
6696
|
-
|
|
6697
|
-
},
|
|
6698
|
-
|
|
6699
|
-
}, { setSearchString:
|
|
6700
|
-
class
|
|
6694
|
+
let yr;
|
|
6695
|
+
const Fu = (e) => {
|
|
6696
|
+
yr = e.registerRequest("remove_history_item_request", Eu);
|
|
6697
|
+
}, Ou = () => {
|
|
6698
|
+
yr?.dispose();
|
|
6699
|
+
}, { setSearchString: Mu } = re.actions;
|
|
6700
|
+
class Pu extends me {
|
|
6701
6701
|
async handle(t) {
|
|
6702
6702
|
try {
|
|
6703
|
-
this.store.dispatch(
|
|
6703
|
+
this.store.dispatch(Mu(t.searchString)), setTimeout(() => {
|
|
6704
6704
|
this.api.broker.publish(this.api.broker.events.activityHistory.searched, {
|
|
6705
6705
|
searchQuery: t.searchString
|
|
6706
6706
|
});
|
|
@@ -6710,67 +6710,67 @@ class Eu extends me {
|
|
|
6710
6710
|
}
|
|
6711
6711
|
}
|
|
6712
6712
|
}
|
|
6713
|
-
class
|
|
6713
|
+
class ht {
|
|
6714
6714
|
constructor(t) {
|
|
6715
6715
|
this.searchString = t, this.searchString = t;
|
|
6716
6716
|
}
|
|
6717
6717
|
}
|
|
6718
|
-
const
|
|
6718
|
+
const ku = ".search-header{color:var(--color-neutral-900);font-weight:600}", Au = (e) => h`<div class="search-header">
|
|
6719
6719
|
${v("searchBarResults")} “${e.searchQuery}”
|
|
6720
6720
|
</div>`;
|
|
6721
|
-
var
|
|
6722
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
6721
|
+
var Hu = Object.defineProperty, Ru = Object.getOwnPropertyDescriptor, vr = (e, t, s, i) => {
|
|
6722
|
+
for (var r = i > 1 ? void 0 : i ? Ru(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6723
6723
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
6724
|
-
return i && r &&
|
|
6724
|
+
return i && r && Hu(t, s, r), r;
|
|
6725
6725
|
};
|
|
6726
|
-
let
|
|
6726
|
+
let ft = class extends W {
|
|
6727
6727
|
constructor() {
|
|
6728
6728
|
super(...arguments), this.searchQuery = "";
|
|
6729
6729
|
}
|
|
6730
6730
|
render() {
|
|
6731
|
-
return h`${
|
|
6731
|
+
return h`${Au(this)}`;
|
|
6732
6732
|
}
|
|
6733
6733
|
};
|
|
6734
|
-
|
|
6735
|
-
${q(
|
|
6734
|
+
ft.styles = L`
|
|
6735
|
+
${q(ku)}
|
|
6736
6736
|
`;
|
|
6737
|
-
|
|
6737
|
+
vr([
|
|
6738
6738
|
K()
|
|
6739
|
-
],
|
|
6740
|
-
|
|
6739
|
+
], ft.prototype, "searchQuery", 2);
|
|
6740
|
+
ft = vr([
|
|
6741
6741
|
j("activity-history-search-results")
|
|
6742
|
-
],
|
|
6743
|
-
const
|
|
6742
|
+
], ft);
|
|
6743
|
+
const zu = ".search-header{padding-inline:16px;padding-top:12px;padding-bottom:12px;gap:var(--dss-spacing-xs);border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;color:var(--color-neutral-900);font-weight:600;font-size:14px;line-height:24px}", Gu = (e) => h`<dss-search-bar dropdownStyle=${"display: none"} @onSearchChange=${e._handleSearchChange} icon="search" inputsize="md" threshold="2" recentsearchestext="" emptydropdowntext="">
|
|
6744
6744
|
<label slot="label" for="searchbar1" aria-hidden="false"></label>
|
|
6745
6745
|
<input slot="input" id="searchbar1" type="text" value=${e.searchQuery} @input=${(t) => e._handleSearchChange({ detail: [t.target.value] })}>
|
|
6746
6746
|
</dss-search-bar>`;
|
|
6747
|
-
var
|
|
6748
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
6747
|
+
var Vu = Object.defineProperty, Nu = Object.getOwnPropertyDescriptor, br = (e, t, s, i) => {
|
|
6748
|
+
for (var r = i > 1 ? void 0 : i ? Nu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6749
6749
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
6750
|
-
return i && r &&
|
|
6750
|
+
return i && r && Vu(t, s, r), r;
|
|
6751
6751
|
};
|
|
6752
|
-
let
|
|
6752
|
+
let pt = class extends W {
|
|
6753
6753
|
constructor() {
|
|
6754
6754
|
super(...arguments), this.searchQuery = "";
|
|
6755
6755
|
}
|
|
6756
6756
|
render() {
|
|
6757
|
-
return h`${
|
|
6757
|
+
return h`${Gu(this)}`;
|
|
6758
6758
|
}
|
|
6759
6759
|
_handleSearchChange(e) {
|
|
6760
6760
|
const t = e.detail || [], s = t.length > 0 ? t.join(" ") : "", i = s.length > 1 ? s : "";
|
|
6761
6761
|
this.dispatchEvent(new CustomEvent("onSearchChange", { detail: i }));
|
|
6762
6762
|
}
|
|
6763
6763
|
};
|
|
6764
|
-
|
|
6765
|
-
${q(
|
|
6764
|
+
pt.styles = L`
|
|
6765
|
+
${q(zu)}
|
|
6766
6766
|
`;
|
|
6767
|
-
|
|
6767
|
+
br([
|
|
6768
6768
|
K()
|
|
6769
|
-
],
|
|
6770
|
-
|
|
6769
|
+
], pt.prototype, "searchQuery", 2);
|
|
6770
|
+
pt = br([
|
|
6771
6771
|
j("activity-history-search-bar")
|
|
6772
|
-
],
|
|
6773
|
-
const
|
|
6772
|
+
], pt);
|
|
6773
|
+
const Bu = ":host{display:flex;justify-content:space-between}.filters-container{display:flex;gap:var(--dss-spacing-md)}.filters-header{font-weight:700}.filter-groups{display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs)}.filter-group{display:flex;gap:var(--dss-spacing-xs);color:var(--color-neutral-600);font-weight:600}.clean-filters{display:flex}.clean-filters .separator{padding:0 8px}.popover-content{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs);padding:10px;max-width:368px;max-height:336px;overflow:auto}", qu = (e) => {
|
|
6774
6774
|
const t = new Set(e.enabledValues), s = e.groups.filter(
|
|
6775
6775
|
(r) => r.values.length > 0 && r.values.every((n) => t.has(n.value))
|
|
6776
6776
|
), i = new Set(s.flatMap((r) => r.values.map((n) => n.value)));
|
|
@@ -6778,16 +6778,16 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6778
6778
|
groups: s,
|
|
6779
6779
|
options: e.values.filter((r) => t.has(r.value) && !i.has(r.value))
|
|
6780
6780
|
};
|
|
6781
|
-
},
|
|
6781
|
+
}, Lu = (e, t) => e === "" ? Wu(t) : e, Wu = (e) => `${v("chipHeader.without")} ${e.toLowerCase()}`, Je = 5, Qs = (e, t, s, i) => h`
|
|
6782
6782
|
<dss-chip
|
|
6783
|
-
label=${
|
|
6783
|
+
label=${Lu(s.title, t.title)}
|
|
6784
6784
|
size="sm"
|
|
6785
6785
|
hasdelete
|
|
6786
6786
|
selected
|
|
6787
6787
|
@click=${() => i._onDeleteFilterValue(e, t.id, s.id, !1)}
|
|
6788
6788
|
@onDelete=${() => i._onDeleteFilterValue(e, t.id, s.id, !1)}
|
|
6789
6789
|
></dss-chip>
|
|
6790
|
-
`,
|
|
6790
|
+
`, ju = (e, t) => h`
|
|
6791
6791
|
<dss-chip
|
|
6792
6792
|
label=${e.title}
|
|
6793
6793
|
size="sm"
|
|
@@ -6796,7 +6796,7 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6796
6796
|
@click=${() => t._onDeleteCommonFilterValue(e.id)}
|
|
6797
6797
|
@onDelete=${() => t._onDeleteCommonFilterValue(e.id)}
|
|
6798
6798
|
></dss-chip>
|
|
6799
|
-
`,
|
|
6799
|
+
`, Yu = (e, t, s) => h`
|
|
6800
6800
|
<dss-chip
|
|
6801
6801
|
label=${t}
|
|
6802
6802
|
size="sm"
|
|
@@ -6805,7 +6805,7 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6805
6805
|
@click=${() => s._onDeleteDiagnosticFilterValue(e)}
|
|
6806
6806
|
@onDelete=${() => s._onDeleteDiagnosticFilterValue(e)}
|
|
6807
6807
|
></dss-chip>
|
|
6808
|
-
`,
|
|
6808
|
+
`, Qu = (e, t, s, i) => h`
|
|
6809
6809
|
<dss-chip
|
|
6810
6810
|
label=${s}
|
|
6811
6811
|
size="sm"
|
|
@@ -6814,7 +6814,7 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6814
6814
|
@click=${() => i._onDeleteGlobalFilterValue(e, t)}
|
|
6815
6815
|
@onDelete=${() => i._onDeleteGlobalFilterValue(e, t)}
|
|
6816
6816
|
></dss-chip>
|
|
6817
|
-
`,
|
|
6817
|
+
`, Uu = (e, t, s) => h`
|
|
6818
6818
|
<dss-chip
|
|
6819
6819
|
label=${t.title}
|
|
6820
6820
|
size="sm"
|
|
@@ -6823,8 +6823,8 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6823
6823
|
@click=${() => s._onDeleteGlobalFilterGroup(e, t.id)}
|
|
6824
6824
|
@onDelete=${() => s._onDeleteGlobalFilterGroup(e, t.id)}
|
|
6825
6825
|
></dss-chip>
|
|
6826
|
-
`, Fe = (e) => h`<div class="filter-title">${`${e}:`}</div>`,
|
|
6827
|
-
if (!(e.enabledCommonFilters.length > 0 || (e.diagnosticFilterEnabled?.enabledValues?.length ?? 0) > 0 || e.activeGlobalFilters.length > 0 || e.customFilterGroups.some(
|
|
6826
|
+
`, Fe = (e) => h`<div class="filter-title">${`${e}:`}</div>`, Xu = (e) => {
|
|
6827
|
+
if (!(e.enabledCommonFilters.length > 0 || (e.diagnosticFilterEnabled?.enabledValues?.length ?? 0) > 0 || e.activeGlobalFilters.length > 0 || e.customFilterGroups.some(bt))) return M;
|
|
6828
6828
|
let s = 0;
|
|
6829
6829
|
const i = [], r = [], n = [], o = e.diagnosticFilterEnabled;
|
|
6830
6830
|
if (o) {
|
|
@@ -6832,28 +6832,28 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6832
6832
|
if (l && l.length > 0) {
|
|
6833
6833
|
let d = !1, c = !1;
|
|
6834
6834
|
for (const u of l) {
|
|
6835
|
-
const y =
|
|
6836
|
-
s <
|
|
6835
|
+
const y = Yu(u.codi, u.descripcio, e);
|
|
6836
|
+
s < Je ? (d || (i.push(Fe(a)), d = !0), i.push(y), s++) : (c || (r.push(Fe(a)), c = !0), r.push(y), n.push(y));
|
|
6837
6837
|
}
|
|
6838
6838
|
}
|
|
6839
6839
|
}
|
|
6840
6840
|
for (const a of e.activeGlobalFilters) {
|
|
6841
|
-
const { id: l, title: d } = a, c =
|
|
6842
|
-
...c.groups.map((m) =>
|
|
6843
|
-
...c.options.map((m) =>
|
|
6841
|
+
const { id: l, title: d } = a, c = qu(a), u = [
|
|
6842
|
+
...c.groups.map((m) => Uu(l, m, e)),
|
|
6843
|
+
...c.options.map((m) => Qu(l, m.value, m.label, e))
|
|
6844
6844
|
];
|
|
6845
6845
|
let y = !1, f = !1;
|
|
6846
6846
|
for (const m of u)
|
|
6847
|
-
s <
|
|
6847
|
+
s < Je ? (y || (i.push(Fe(d)), y = !0), i.push(m), s++) : (f || (r.push(Fe(d)), f = !0), r.push(m), n.push(m));
|
|
6848
6848
|
}
|
|
6849
6849
|
for (const a of e.enabledCommonFilters) {
|
|
6850
|
-
const l =
|
|
6851
|
-
s <
|
|
6850
|
+
const l = ju(a, e);
|
|
6851
|
+
s < Je ? (i.push(l), s++) : (r.push(l), n.push(l));
|
|
6852
6852
|
}
|
|
6853
6853
|
for (const { title: a, id: l, filters: d } of e.customFilterGroups) {
|
|
6854
6854
|
let c = !1, u = !1;
|
|
6855
6855
|
const y = (f) => {
|
|
6856
|
-
s <
|
|
6856
|
+
s < Je ? (c || (i.push(Fe(a)), c = !0), i.push(f), s++) : (u || (r.push(Fe(a)), u = !0), r.push(f), n.push(f));
|
|
6857
6857
|
};
|
|
6858
6858
|
for (const f of d) {
|
|
6859
6859
|
if (Ce(f)) {
|
|
@@ -6891,14 +6891,14 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6891
6891
|
</div>
|
|
6892
6892
|
`;
|
|
6893
6893
|
};
|
|
6894
|
-
var
|
|
6895
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
6894
|
+
var Ku = Object.defineProperty, Ju = Object.getOwnPropertyDescriptor, Ve = (e, t, s, i) => {
|
|
6895
|
+
for (var r = i > 1 ? void 0 : i ? Ju(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6896
6896
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
6897
|
-
return i && r &&
|
|
6897
|
+
return i && r && Ku(t, s, r), r;
|
|
6898
6898
|
};
|
|
6899
6899
|
let fe = class extends W {
|
|
6900
6900
|
render() {
|
|
6901
|
-
return h`${
|
|
6901
|
+
return h`${Xu(this)}`;
|
|
6902
6902
|
}
|
|
6903
6903
|
_onDeleteFilterValue(e, t, s, i) {
|
|
6904
6904
|
this.api.broker.send(
|
|
@@ -6914,7 +6914,7 @@ let fe = class extends W {
|
|
|
6914
6914
|
this.api.broker.send(new fs({ id: e, enabled: !1 }));
|
|
6915
6915
|
}
|
|
6916
6916
|
_onDeleteDiagnosticFilterValue(e) {
|
|
6917
|
-
this.api.broker.send(new
|
|
6917
|
+
this.api.broker.send(new Gi({ diagnosticCodi: e }));
|
|
6918
6918
|
}
|
|
6919
6919
|
_onDeleteGlobalFilterGroup(e, t) {
|
|
6920
6920
|
const s = this.activeGlobalFilters.find((r) => r.id === e)?.groups.find((r) => r.id === t);
|
|
@@ -6930,23 +6930,23 @@ let fe = class extends W {
|
|
|
6930
6930
|
s && this.api.broker.send(new ms({ id: e, values: t(s) }));
|
|
6931
6931
|
}
|
|
6932
6932
|
resetFilters() {
|
|
6933
|
-
this.api.broker.send(new
|
|
6933
|
+
this.api.broker.send(new Li());
|
|
6934
6934
|
}
|
|
6935
6935
|
};
|
|
6936
6936
|
fe.styles = L`
|
|
6937
|
-
${q(
|
|
6937
|
+
${q(Bu)}
|
|
6938
6938
|
`;
|
|
6939
6939
|
Ve([
|
|
6940
6940
|
De(V.primaryApi)
|
|
6941
6941
|
], fe.prototype, "api", 2);
|
|
6942
6942
|
Ve([
|
|
6943
|
-
S(
|
|
6943
|
+
S(Fi)
|
|
6944
6944
|
], fe.prototype, "enabledCommonFilters", 2);
|
|
6945
6945
|
Ve([
|
|
6946
|
-
S(
|
|
6946
|
+
S(Pi)
|
|
6947
6947
|
], fe.prototype, "customFilterGroups", 2);
|
|
6948
6948
|
Ve([
|
|
6949
|
-
S(
|
|
6949
|
+
S(Oi)
|
|
6950
6950
|
], fe.prototype, "diagnosticFilterEnabled", 2);
|
|
6951
6951
|
Ve([
|
|
6952
6952
|
S(us)
|
|
@@ -6954,17 +6954,17 @@ Ve([
|
|
|
6954
6954
|
fe = Ve([
|
|
6955
6955
|
j("active-filters-badges")
|
|
6956
6956
|
], fe);
|
|
6957
|
-
let
|
|
6958
|
-
const
|
|
6959
|
-
|
|
6960
|
-
},
|
|
6961
|
-
|
|
6962
|
-
}, { updateActivityHistoryItem:
|
|
6963
|
-
class
|
|
6957
|
+
let wr;
|
|
6958
|
+
const Zu = (e) => {
|
|
6959
|
+
wr = e.registerRequest(ht, Pu);
|
|
6960
|
+
}, eh = () => {
|
|
6961
|
+
wr?.dispose();
|
|
6962
|
+
}, { updateActivityHistoryItem: th } = pe.actions;
|
|
6963
|
+
class sh extends Te {
|
|
6964
6964
|
async handle(t) {
|
|
6965
6965
|
try {
|
|
6966
|
-
|
|
6967
|
-
|
|
6966
|
+
wi([t.item]), this.store.dispatch(
|
|
6967
|
+
th({
|
|
6968
6968
|
id: t.entityId,
|
|
6969
6969
|
item: t.item
|
|
6970
6970
|
})
|
|
@@ -6974,18 +6974,18 @@ class Ju extends Te {
|
|
|
6974
6974
|
}
|
|
6975
6975
|
}
|
|
6976
6976
|
}
|
|
6977
|
-
let
|
|
6978
|
-
const
|
|
6979
|
-
|
|
6980
|
-
},
|
|
6981
|
-
|
|
6977
|
+
let xr;
|
|
6978
|
+
const ih = (e) => {
|
|
6979
|
+
xr = e.registerRequest("update_history_item_request", sh);
|
|
6980
|
+
}, rh = () => {
|
|
6981
|
+
xr?.dispose();
|
|
6982
6982
|
};
|
|
6983
6983
|
let U;
|
|
6984
|
-
const
|
|
6985
|
-
U =
|
|
6986
|
-
},
|
|
6987
|
-
|
|
6988
|
-
},
|
|
6984
|
+
const nh = (e) => {
|
|
6985
|
+
U = Gr(e, Se), vo(U, e), Io(U, e), Mo(U, e), Vo(U), Tu(U), ih(U), jo(U), Fl(U, e), Zu(U), Fu(U);
|
|
6986
|
+
}, oh = () => {
|
|
6987
|
+
bo(), Eo(), Po(), Di(), rh(), Yo(), Ol(), eh(), Ou();
|
|
6988
|
+
}, ah = "activity-history", lh = async (e) => {
|
|
6989
6989
|
const t = (s) => Promise.all(
|
|
6990
6990
|
s.map(async (i) => ({
|
|
6991
6991
|
...i,
|
|
@@ -7004,18 +7004,18 @@ const th = (e) => {
|
|
|
7004
7004
|
)
|
|
7005
7005
|
}))
|
|
7006
7006
|
);
|
|
7007
|
-
},
|
|
7007
|
+
}, _r = {
|
|
7008
7008
|
virtualItems: [],
|
|
7009
7009
|
totalHeight: 0
|
|
7010
7010
|
};
|
|
7011
|
-
class
|
|
7011
|
+
class ch {
|
|
7012
7012
|
/** Setup or update the scroller with the current items. No-op until the
|
|
7013
7013
|
* viewport and content elements exist. Detects viewport swaps and re-setups. */
|
|
7014
7014
|
sync({ viewport: t, items: s, onStateChange: i, estimateItemHeight: r }) {
|
|
7015
|
-
return t ? (this._scroller && t !== this._lastViewport && this.teardown(), this._scroller ? this._scroller.updateItems(s, i) : (this._scroller = new
|
|
7015
|
+
return t ? (this._scroller && t !== this._lastViewport && this.teardown(), this._scroller ? this._scroller.updateItems(s, i) : (this._scroller = new hr({
|
|
7016
7016
|
items: s,
|
|
7017
7017
|
estimateItemHeight: r
|
|
7018
|
-
}), this._cleanup = this._scroller.setup(t, i)), this._lastViewport = t, this._scroller.getState()) : this._scroller?.getState() ??
|
|
7018
|
+
}), this._cleanup = this._scroller.setup(t, i)), this._lastViewport = t, this._scroller.getState()) : this._scroller?.getState() ?? _r;
|
|
7019
7019
|
}
|
|
7020
7020
|
teardown() {
|
|
7021
7021
|
this._cleanup?.(), this._cleanup = void 0, this._scroller = void 0, this._lastViewport = void 0;
|
|
@@ -7029,23 +7029,23 @@ class nh {
|
|
|
7029
7029
|
this._scroller?.measureElement(t);
|
|
7030
7030
|
}
|
|
7031
7031
|
}
|
|
7032
|
-
const
|
|
7032
|
+
const dh = (e) => {
|
|
7033
7033
|
const t = new Date(e), s = /* @__PURE__ */ new Date();
|
|
7034
7034
|
return t.toDateString() === s.toDateString();
|
|
7035
|
-
},
|
|
7035
|
+
}, uh = (e) => !!(e && dh(e.date)), hh = (e, t) => !!e.diagnostics?.some((s) => t.includes(s.codi)), fh = (e, t) => {
|
|
7036
7036
|
const s = e.type ? t[e.type] : void 0;
|
|
7037
7037
|
return !s?.allowedTagIds || s.allowedTagIds.length === 0 ? !0 : s.allowedTagIds.includes(e.tag?.id ?? "");
|
|
7038
|
-
},
|
|
7038
|
+
}, ph = (e) => {
|
|
7039
7039
|
const t = e.items?.[0] || e.subGroups?.[0]?.items?.[0];
|
|
7040
|
-
return
|
|
7041
|
-
},
|
|
7040
|
+
return uh(t);
|
|
7041
|
+
}, Sr = (e, t) => ({
|
|
7042
7042
|
...e,
|
|
7043
7043
|
items: (e.items || []).filter(t),
|
|
7044
7044
|
subGroups: (e.subGroups || []).map((s) => ({ ...s, items: s.items.filter(t) })).filter((s) => s.items.length > 0)
|
|
7045
|
-
}),
|
|
7046
|
-
const r = e.map((a) =>
|
|
7047
|
-
return !n && !o ? r : r.map((a) => n &&
|
|
7048
|
-
},
|
|
7045
|
+
}), mh = (e, t) => Sr(e, (s) => hh(s, t)), Us = (e) => e.items.length > 0 || e.subGroups.length > 0, gh = (e, { todayOnly: t, diagnosticCodes: s }, i = {}) => {
|
|
7046
|
+
const r = e.map((a) => Sr(a, (l) => fh(l, i))).filter(Us), n = t, o = s.length > 0;
|
|
7047
|
+
return !n && !o ? r : r.map((a) => n && ph(a) ? a : o ? mh(a, s) : null).filter((a) => a !== null && Us(a));
|
|
7048
|
+
}, Ze = (e) => {
|
|
7049
7049
|
const t = [];
|
|
7050
7050
|
for (const s of e) {
|
|
7051
7051
|
for (const i of s.items || []) t.push(i);
|
|
@@ -7053,11 +7053,11 @@ const oh = (e) => {
|
|
|
7053
7053
|
for (const r of i.items) t.push(r);
|
|
7054
7054
|
}
|
|
7055
7055
|
return t;
|
|
7056
|
-
},
|
|
7056
|
+
}, yh = ":host{display:block;width:100%}dss-accordion{width:100%}.importer{display:flex;flex-direction:column;gap:12px;min-height:0}.importer__search{display:block}.importer__filters{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding-bottom:8px;border-bottom:1px solid var(--color-neutral-200)}.importer__filters-label{color:var(--color-neutral-700);font-size:13px}.importer__empty{color:var(--color-neutral-600);font-size:13px;padding:24px 0;text-align:center}.virtual-container{height:62vh;min-height:0;position:relative}.virtual-viewport{height:100%;overflow:auto}.virtual-content{position:relative;width:100%}.virtual-items{position:relative}.visit:first-child{margin-top:var(--dss-spacing-xs)}.visit{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);background-color:#fff;padding:var(--dss-spacing-sm);border-bottom:1px solid var(--color-neutral-100)}.visit:last-child{border-bottom:none}.visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.visit__header .title-date{font-weight:700}.visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.visit__items{display:flex;flex-direction:column;gap:var(--dss-spacing-sm)}.visit__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit__items .item[has-divider]:last-of-type{border:none}.diagnostics{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.diagnostics:last-of-type{border:none}.diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.diagnostics__items{display:flex;flex-direction:column}.diagnostics__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.diagnostics__items .item[has-divider]:last-of-type{border:none}.item{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start}.item__check{margin-top:4px}", Cr = (e) => ({
|
|
7057
7057
|
checked: e === "all",
|
|
7058
7058
|
indeterminate: e === "some"
|
|
7059
|
-
}),
|
|
7060
|
-
const t =
|
|
7059
|
+
}), vh = (e) => {
|
|
7060
|
+
const t = Cr(e.allState());
|
|
7061
7061
|
return h`
|
|
7062
7062
|
<dss-accordion
|
|
7063
7063
|
accordionstyle="box"
|
|
@@ -7067,17 +7067,17 @@ const oh = (e) => {
|
|
|
7067
7067
|
widgetBadgeState="info"
|
|
7068
7068
|
.isOpen=${!0}
|
|
7069
7069
|
>
|
|
7070
|
-
<div class="importer">${
|
|
7070
|
+
<div class="importer">${bh(e)} ${wh(e, t)} ${xh(e)}</div>
|
|
7071
7071
|
</dss-accordion>
|
|
7072
7072
|
`;
|
|
7073
|
-
},
|
|
7073
|
+
}, bh = (e) => h`
|
|
7074
7074
|
<div class="importer__search">
|
|
7075
7075
|
<activity-history-search-bar
|
|
7076
7076
|
.searchString=${e.searchString}
|
|
7077
7077
|
@onSearchChange=${(t) => e._onSearchChange(t)}
|
|
7078
7078
|
></activity-history-search-bar>
|
|
7079
7079
|
</div>
|
|
7080
|
-
`,
|
|
7080
|
+
`, wh = (e, t) => h`
|
|
7081
7081
|
<div class="importer__filters">
|
|
7082
7082
|
<dss-form-checkbox
|
|
7083
7083
|
label=${v("importer.selectAll")}
|
|
@@ -7102,7 +7102,7 @@ const oh = (e) => {
|
|
|
7102
7102
|
></dss-form-checkbox>
|
|
7103
7103
|
` : M}
|
|
7104
7104
|
</div>
|
|
7105
|
-
`,
|
|
7105
|
+
`, xh = (e) => e.filteredGroups?.length ? h`
|
|
7106
7106
|
<div class="virtual-container">
|
|
7107
7107
|
<div class="virtual-viewport">
|
|
7108
7108
|
<div class="virtual-content" style="height: ${e._totalHeight}px;">
|
|
@@ -7110,42 +7110,42 @@ const oh = (e) => {
|
|
|
7110
7110
|
${oe(
|
|
7111
7111
|
e._visibleRows,
|
|
7112
7112
|
(t) => t.group.idGroup,
|
|
7113
|
-
(t) =>
|
|
7113
|
+
(t) => _h(e, t.group, t.index)
|
|
7114
7114
|
)}
|
|
7115
7115
|
</div>
|
|
7116
7116
|
</div>
|
|
7117
7117
|
</div>
|
|
7118
7118
|
</div>
|
|
7119
|
-
` : h`<div class="importer__empty">${v("importer.noResults")}</div>`,
|
|
7119
|
+
` : h`<div class="importer__empty">${v("importer.noResults")}</div>`, _h = (e, t, s) => {
|
|
7120
7120
|
const i = t.items?.[0] || t.subGroups?.[0]?.items?.[0];
|
|
7121
7121
|
return h`
|
|
7122
|
-
<div class="visit" data-index=${s} ${
|
|
7123
|
-
<div class="visit__header">${
|
|
7122
|
+
<div class="visit" data-index=${s} ${lr(e._measureElement)} data-date=${Xs(i?.date)}>
|
|
7123
|
+
<div class="visit__header">${Sh(i)}</div>
|
|
7124
7124
|
<div class="visit__items">
|
|
7125
7125
|
${oe(
|
|
7126
|
-
|
|
7126
|
+
dr(t),
|
|
7127
7127
|
(r) => r.type === "item" ? r.item.id : r.subGroup.idSubGroup,
|
|
7128
|
-
(r) => r.type === "item" ?
|
|
7128
|
+
(r) => r.type === "item" ? Dr(e, r.item, t.items) : Dh(e, r.subGroup)
|
|
7129
7129
|
)}
|
|
7130
7130
|
</div>
|
|
7131
7131
|
</div>
|
|
7132
7132
|
`;
|
|
7133
|
-
},
|
|
7133
|
+
}, Sh = (e) => {
|
|
7134
7134
|
if (!e) return M;
|
|
7135
|
-
const t =
|
|
7135
|
+
const t = cr(e), s = [];
|
|
7136
7136
|
return e.professional?.name && s.push(e.professional.name), t && e.professional?.role?.description && s.push(e.professional.role.description), e.professional?.speciality?.description && s.push(e.professional.speciality.description), e.up?.description && s.push(e.up.description), e.service?.description && s.push(e.service.description), h`
|
|
7137
7137
|
<div class="title">
|
|
7138
7138
|
<div class="title-date">
|
|
7139
|
-
<div>${
|
|
7139
|
+
<div>${sr(new Date(e.date), "dd/MM/yyyy")}</div>
|
|
7140
7140
|
</div>
|
|
7141
7141
|
<div class="title-description">
|
|
7142
7142
|
<div>${s.map((i, r) => h`${i}${r < s.length - 1 ? " | " : ""}`)}</div>
|
|
7143
7143
|
</div>
|
|
7144
7144
|
</div>
|
|
7145
7145
|
`;
|
|
7146
|
-
},
|
|
7146
|
+
}, Ch = (e, t) => {
|
|
7147
7147
|
if ((t?.length ?? 0) < 2) return M;
|
|
7148
|
-
const s =
|
|
7148
|
+
const s = Cr(e.subGroupState(t));
|
|
7149
7149
|
return h`
|
|
7150
7150
|
<dss-form-checkbox
|
|
7151
7151
|
.checked=${s.checked}
|
|
@@ -7154,20 +7154,20 @@ const oh = (e) => {
|
|
|
7154
7154
|
@change=${(i) => e._toggleSubGroup(t, i.target.checked)}
|
|
7155
7155
|
></dss-form-checkbox>
|
|
7156
7156
|
`;
|
|
7157
|
-
},
|
|
7157
|
+
}, Dh = (e, t) => h`
|
|
7158
7158
|
<div class="diagnostics">
|
|
7159
7159
|
<div class="diagnostics__header">
|
|
7160
|
-
${
|
|
7160
|
+
${Ch(e, t.items)} ${Th(t.items?.[0])}
|
|
7161
7161
|
</div>
|
|
7162
7162
|
<div class="diagnostics__items">
|
|
7163
7163
|
${oe(
|
|
7164
7164
|
t.items,
|
|
7165
7165
|
(s) => s.id,
|
|
7166
|
-
(s) =>
|
|
7166
|
+
(s) => Dr(e, s, t.items)
|
|
7167
7167
|
)}
|
|
7168
7168
|
</div>
|
|
7169
7169
|
</div>
|
|
7170
|
-
`,
|
|
7170
|
+
`, Dr = (e, t, s) => h`
|
|
7171
7171
|
<div class="item" ?has-divider=${Kt(t, s)}>
|
|
7172
7172
|
<dss-form-checkbox
|
|
7173
7173
|
class="item__check"
|
|
@@ -7177,24 +7177,24 @@ const oh = (e) => {
|
|
|
7177
7177
|
></dss-form-checkbox>
|
|
7178
7178
|
${t.component}
|
|
7179
7179
|
</div>
|
|
7180
|
-
`,
|
|
7180
|
+
`, Th = (e) => e && h`
|
|
7181
7181
|
${e.diagnostics.filter((t) => t.descripcio != null && t.descripcio.trim() !== "").map(
|
|
7182
7182
|
(t) => h`<dss-badge text=${t.descripcio?.toUpperCase()} state="info" size="sm" outlined hideIcon></dss-badge>`
|
|
7183
7183
|
)}
|
|
7184
7184
|
`;
|
|
7185
|
-
var
|
|
7186
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
7185
|
+
var $h = Object.defineProperty, Ih = Object.getOwnPropertyDescriptor, Y = (e, t, s, i) => {
|
|
7186
|
+
for (var r = i > 1 ? void 0 : i ? Ih(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
7187
7187
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
7188
|
-
return i && r &&
|
|
7188
|
+
return i && r && $h(t, s, r), r;
|
|
7189
7189
|
};
|
|
7190
|
-
const
|
|
7190
|
+
const Eh = (e) => {
|
|
7191
7191
|
const t = document.createElement("div");
|
|
7192
7192
|
return t.textContent = e, t.innerHTML;
|
|
7193
|
-
},
|
|
7193
|
+
}, Fh = ["p", "br", "span", "div", "strong", "em", "u", "s", "sub", "sup", "b", "i", "a", "code", "pre", "blockquote", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li"], Oh = new RegExp(`<(?!/?(?:${Fh.join("|")})\\b)`, "gi"), Mh = (e) => e.replace(Oh, "<"), Ph = (e) => {
|
|
7194
7194
|
const t = [], s = [];
|
|
7195
7195
|
for (const i of e) {
|
|
7196
7196
|
const r = i.content?.plainText?.trim(), n = i.content?.html?.trim();
|
|
7197
|
-
r && t.push(r), n ? s.push(
|
|
7197
|
+
r && t.push(r), n ? s.push(Mh(n)) : r && s.push(`<p>${Eh(r)}</p>`);
|
|
7198
7198
|
}
|
|
7199
7199
|
return { raw: t.join(`
|
|
7200
7200
|
|
|
@@ -7202,12 +7202,12 @@ const Dh = (e) => {
|
|
|
7202
7202
|
};
|
|
7203
7203
|
let z = class extends W {
|
|
7204
7204
|
constructor() {
|
|
7205
|
-
super(...arguments), this.historyGroups = [], this.searchString = "", this.rulesByCollectionId = {}, this.todayOnly = !1, this.diagnosticsOnly = !1, this.availableDiagnostics = [], this.filteredGroups = [], this.totalCount = 0, this.selectedIds = [], this._virtualScrollerState =
|
|
7205
|
+
super(...arguments), this.historyGroups = [], this.searchString = "", this.rulesByCollectionId = {}, this.todayOnly = !1, this.diagnosticsOnly = !1, this.availableDiagnostics = [], this.filteredGroups = [], this.totalCount = 0, this.selectedIds = [], this._virtualScrollerState = _r, this._scrollerController = new ch(), this._searchTimeout = null, this._didInitialPreselect = !1, this._measureElement = (e) => {
|
|
7206
7206
|
e && this._scrollerController.measureElement(e);
|
|
7207
7207
|
};
|
|
7208
7208
|
}
|
|
7209
7209
|
render() {
|
|
7210
|
-
return h`${
|
|
7210
|
+
return h`${vh(this)}`;
|
|
7211
7211
|
}
|
|
7212
7212
|
// ── Lifecycle ───────────────────────────────────────────────────────────
|
|
7213
7213
|
connectedCallback() {
|
|
@@ -7216,7 +7216,7 @@ let z = class extends W {
|
|
|
7216
7216
|
this.availableDiagnostics = e?.diagnostics ?? [];
|
|
7217
7217
|
}
|
|
7218
7218
|
disconnectedCallback() {
|
|
7219
|
-
super.disconnectedCallback(), this._scrollerController.teardown(), this._clearSearchTimeout(), this.api.broker.send(new
|
|
7219
|
+
super.disconnectedCallback(), this._scrollerController.teardown(), this._clearSearchTimeout(), this.api.broker.send(new ht(""));
|
|
7220
7220
|
}
|
|
7221
7221
|
updated(e) {
|
|
7222
7222
|
super.updated(e), (e.has("historyGroups") || e.has("todayOnly") || e.has("diagnosticsOnly")) && this._recomputeFiltered(), !this._didInitialPreselect && this.historyGroups?.length && (this._didInitialPreselect = !0, this._preselectMatchingItems()), e.has("filteredGroups") && this._syncVirtualScroller(), e.has("selectedIds") && this._publishSelection();
|
|
@@ -7224,7 +7224,7 @@ let z = class extends W {
|
|
|
7224
7224
|
// ── Event handlers ──────────────────────────────────────────────────────
|
|
7225
7225
|
_onSearchChange(e) {
|
|
7226
7226
|
typeof e.detail == "string" && (this._clearSearchTimeout(), this._searchTimeout = window.setTimeout(() => {
|
|
7227
|
-
this.api.broker.send(new
|
|
7227
|
+
this.api.broker.send(new ht(e.detail));
|
|
7228
7228
|
}, 300));
|
|
7229
7229
|
}
|
|
7230
7230
|
_onToggleToday(e) {
|
|
@@ -7244,7 +7244,7 @@ let z = class extends W {
|
|
|
7244
7244
|
}
|
|
7245
7245
|
_toggleAll(e) {
|
|
7246
7246
|
this._setSelection(
|
|
7247
|
-
|
|
7247
|
+
Ze(this.filteredGroups).map((t) => t.id),
|
|
7248
7248
|
e.target.checked
|
|
7249
7249
|
);
|
|
7250
7250
|
}
|
|
@@ -7256,7 +7256,7 @@ let z = class extends W {
|
|
|
7256
7256
|
return this._tristate(e.map((t) => t.id));
|
|
7257
7257
|
}
|
|
7258
7258
|
allState() {
|
|
7259
|
-
return this._tristate(
|
|
7259
|
+
return this._tristate(Ze(this.filteredGroups).map((e) => e.id));
|
|
7260
7260
|
}
|
|
7261
7261
|
hasDiagnosticsFilter() {
|
|
7262
7262
|
return this.availableDiagnostics.length > 0;
|
|
@@ -7319,8 +7319,8 @@ let z = class extends W {
|
|
|
7319
7319
|
// El filtre és un tot-o-res: quan està marcat, filtra per tots els
|
|
7320
7320
|
// diagnòstics que el host ha passat a l'importador.
|
|
7321
7321
|
diagnosticCodes: this.diagnosticsOnly ? this.availableDiagnostics.map((s) => s.code) : []
|
|
7322
|
-
}, t =
|
|
7323
|
-
this.filteredGroups = await
|
|
7322
|
+
}, t = gh(this.historyGroups || [], e, this.rulesByCollectionId);
|
|
7323
|
+
this.filteredGroups = await lh(t), this.totalCount = Ze(this.filteredGroups).length;
|
|
7324
7324
|
}
|
|
7325
7325
|
_syncVirtualScroller() {
|
|
7326
7326
|
this._virtualScrollerState = this._scrollerController.sync({
|
|
@@ -7358,14 +7358,14 @@ let z = class extends W {
|
|
|
7358
7358
|
subGroups: (s.subGroups || []).map((i) => ({ ...i, items: i.items.filter((r) => e.has(r.id)) })).filter((i) => i.items.length > 0)
|
|
7359
7359
|
})).filter((s) => s.items.length > 0 || s.subGroups.length > 0);
|
|
7360
7360
|
this.api.importDataManager.selectItems({
|
|
7361
|
-
pluginId:
|
|
7361
|
+
pluginId: ah,
|
|
7362
7362
|
data: t,
|
|
7363
|
-
text:
|
|
7363
|
+
text: Ph(Ze(t))
|
|
7364
7364
|
});
|
|
7365
7365
|
}
|
|
7366
7366
|
};
|
|
7367
7367
|
z.styles = L`
|
|
7368
|
-
${q(
|
|
7368
|
+
${q(yh)}
|
|
7369
7369
|
`;
|
|
7370
7370
|
Y([
|
|
7371
7371
|
De(V.primaryApi)
|
|
@@ -7377,7 +7377,7 @@ Y([
|
|
|
7377
7377
|
S(Dt)
|
|
7378
7378
|
], z.prototype, "searchString", 2);
|
|
7379
7379
|
Y([
|
|
7380
|
-
S(
|
|
7380
|
+
S(Na)
|
|
7381
7381
|
], z.prototype, "rulesByCollectionId", 2);
|
|
7382
7382
|
Y([
|
|
7383
7383
|
ie()
|
|
@@ -7406,8 +7406,8 @@ Y([
|
|
|
7406
7406
|
z = Y([
|
|
7407
7407
|
j("activity-history-importer")
|
|
7408
7408
|
], z);
|
|
7409
|
-
const
|
|
7410
|
-
${e.maximized ? h`${
|
|
7409
|
+
const kh = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{display:flex;flex-direction:column;width:100%;border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm)}.container[maximized]{position:absolute;background:#fff;top:0;left:0;bottom:0;border:none}.container[maximized] .header-maximized-container{display:flex;flex-direction:column}.container[maximized] .header-maximized-container .header__maximized{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding-top:12px;padding-bottom:12px;padding-inline:40px}.container[maximized] .header-maximized-container .header__maximized .header__maximized__search{flex:1;border-radius:8px;border:1px solid rgb(189,189,189);padding:8px;width:300px}.container[maximized] .header-maximized-container .header__maximized .title{color:var(--color-neutral-900);font-weight:700;font-size:20px;line-height:30px;white-space:nowrap}.container[maximized] .header-maximized-container .header__maximized .options{display:flex;align-items:center;color:var(--color-primary-400);font-weight:600;font-size:14px;line-height:24px;cursor:pointer}.container[maximized] .header-maximized-container .header__maximized .header__maximized__left{display:flex;flex-direction:row;gap:24px;align-items:center;width:100%}.container[maximized] .header-maximized-container .header__maximized .header__maximized__right{display:flex;flex-direction:row;gap:16px;align-items:center}.container[maximized] .wrapper{height:calc(100vh - 175px);border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm);margin-bottom:24px;margin-inline:40px;width:calc(100% - 80px)}.container .header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid rgb(189,189,189);gap:16px}.container .header .header__left{display:flex;flex-direction:row;align-items:center;flex:1;gap:16px}.container .header .header__left .title{color:var(--color-neutral-800);font-weight:700;font-size:16px;line-height:24px;white-space:nowrap}.container .header .header__right{display:flex;flex-direction:row;align-items:center;gap:8px}.container .header .header__right .action-icons{display:flex;align-items:center}.container .wrapper{display:flex;flex-direction:row;min-height:1px;width:100%;height:100%}.container .wrapper[maximized] .content{width:100%;background:var(--color-neutral-50);border-top-right-radius:var(--dss-radius-sm);display:flex;flex-direction:column}.container .wrapper .content{width:100%;background:var(--color-neutral-50);border-bottom-right-radius:var(--dss-radius-sm);overflow:hidden;display:flex;flex-direction:column}", Ah = (e) => h`<div class="container" ?maximized=${e.maximized}>
|
|
7410
|
+
${e.maximized ? h`${Hh(e)}` : h`<div class="header">
|
|
7411
7411
|
<div class="header__left">
|
|
7412
7412
|
<div class="title">${v("activityHistory")}</div>
|
|
7413
7413
|
<activity-history-search-bar @onSearchChange=${e._handleSearchChange} .searchQuery=${e.searchQuery}></activity-history-search-bar>
|
|
@@ -7440,7 +7440,7 @@ const Fh = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{
|
|
|
7440
7440
|
${e.historyGroups?.length || !e.isAnyCollectionBusy ? h`<activity-history-timeline></activity-history-timeline>` : M}
|
|
7441
7441
|
</div>
|
|
7442
7442
|
</div>
|
|
7443
|
-
</div>`,
|
|
7443
|
+
</div>`, Hh = (e) => h`
|
|
7444
7444
|
<div class="header-maximized-container">
|
|
7445
7445
|
<div class="header__maximized">
|
|
7446
7446
|
<div class="header__maximized__left">
|
|
@@ -7465,17 +7465,17 @@ const Fh = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{
|
|
|
7465
7465
|
</div>
|
|
7466
7466
|
</div>
|
|
7467
7467
|
`;
|
|
7468
|
-
var
|
|
7469
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
7468
|
+
var Rh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, $e = (e, t, s, i) => {
|
|
7469
|
+
for (var r = i > 1 ? void 0 : i ? zh(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
7470
7470
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
7471
|
-
return i && r &&
|
|
7471
|
+
return i && r && Rh(t, s, r), r;
|
|
7472
7472
|
};
|
|
7473
|
-
let se = class extends
|
|
7473
|
+
let se = class extends Hr(W) {
|
|
7474
7474
|
constructor() {
|
|
7475
7475
|
super(...arguments), this.subscriptions = [], this._searchTimeout = null, this.maximized = !1, this.searchQuery = "";
|
|
7476
7476
|
}
|
|
7477
7477
|
render() {
|
|
7478
|
-
return h`${
|
|
7478
|
+
return h`${Ah(this)}`;
|
|
7479
7479
|
}
|
|
7480
7480
|
connectedCallback() {
|
|
7481
7481
|
super.connectedCallback();
|
|
@@ -7508,12 +7508,12 @@ let se = class extends kr(W) {
|
|
|
7508
7508
|
this.subscriptions.forEach((e) => e.dispose());
|
|
7509
7509
|
}
|
|
7510
7510
|
_handleSelectDate(e) {
|
|
7511
|
-
const t =
|
|
7512
|
-
|
|
7511
|
+
const t = Ed(e, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
7512
|
+
Ui(t) && this.scrollToClosestDate(t);
|
|
7513
7513
|
}
|
|
7514
7514
|
_handleSearchChange(e) {
|
|
7515
7515
|
typeof e.detail == "string" && (this.searchQuery = e.detail, this._searchTimeout && clearTimeout(this._searchTimeout), this._searchTimeout = setTimeout(() => {
|
|
7516
|
-
this.api.broker.send(new
|
|
7516
|
+
this.api.broker.send(new ht(this.searchQuery));
|
|
7517
7517
|
}, 300));
|
|
7518
7518
|
}
|
|
7519
7519
|
async _raiseEcapCronogramEvent() {
|
|
@@ -7525,11 +7525,11 @@ let se = class extends kr(W) {
|
|
|
7525
7525
|
this.shadowRoot.querySelector("activity-history-timeline")._scrollIntoDate(t);
|
|
7526
7526
|
}
|
|
7527
7527
|
_refreshHistory() {
|
|
7528
|
-
this.api.broker.send(new
|
|
7528
|
+
this.api.broker.send(new mr());
|
|
7529
7529
|
}
|
|
7530
7530
|
};
|
|
7531
7531
|
se.styles = L`
|
|
7532
|
-
${q(
|
|
7532
|
+
${q(kh)}
|
|
7533
7533
|
`;
|
|
7534
7534
|
$e([
|
|
7535
7535
|
K({ type: Boolean, reflect: !0 })
|
|
@@ -7552,27 +7552,27 @@ $e([
|
|
|
7552
7552
|
se = $e([
|
|
7553
7553
|
j("activity-history-main")
|
|
7554
7554
|
], se);
|
|
7555
|
-
const
|
|
7555
|
+
const Tr = "activity-history-importer", Gh = (e) => {
|
|
7556
7556
|
e.regionManager.registerView(e.regionManager.regions.clinicalMonitoring.content, {
|
|
7557
7557
|
id: e.pluginInfo.pluginId,
|
|
7558
7558
|
factory: () => Promise.resolve(new se())
|
|
7559
7559
|
}), e.regionManager.registerView(e.regionManager.regions.shell.importDataActivityHistory, {
|
|
7560
|
-
id:
|
|
7560
|
+
id: Tr,
|
|
7561
7561
|
factory: () => Promise.resolve(new z()),
|
|
7562
7562
|
sortHint: "0020"
|
|
7563
7563
|
});
|
|
7564
|
-
},
|
|
7564
|
+
}, Vh = async () => {
|
|
7565
7565
|
const e = Se.get(V.primaryApi);
|
|
7566
|
-
await e.regionManager.removeView(e.regionManager.regions.clinicalMonitoring.content, e.pluginInfo.pluginId), await e.regionManager.removeView(e.regionManager.regions.shell.importDataActivityHistory,
|
|
7567
|
-
},
|
|
7568
|
-
|
|
7569
|
-
},
|
|
7570
|
-
|
|
7571
|
-
},
|
|
7572
|
-
await
|
|
7566
|
+
await e.regionManager.removeView(e.regionManager.regions.clinicalMonitoring.content, e.pluginInfo.pluginId), await e.regionManager.removeView(e.regionManager.regions.shell.importDataActivityHistory, Tr);
|
|
7567
|
+
}, Nh = (e) => {
|
|
7568
|
+
nh(e);
|
|
7569
|
+
}, Bh = () => {
|
|
7570
|
+
oh(), ao();
|
|
7571
|
+
}, Wh = async (e) => ($i(e), Gh(e), await wo(e), lo(e), Nh(e), Promise.resolve()), jh = async () => {
|
|
7572
|
+
await Vh(), $i(null), Bh(), co();
|
|
7573
7573
|
};
|
|
7574
7574
|
export {
|
|
7575
|
-
|
|
7576
|
-
|
|
7575
|
+
jh as dispose,
|
|
7576
|
+
Wh as initialize
|
|
7577
7577
|
};
|
|
7578
|
-
//# sourceMappingURL=plugin-
|
|
7578
|
+
//# sourceMappingURL=plugin-CEAhs2O3.js.map
|