@uxland/primary-shell 7.47.6 → 7.48.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-CQxI1o5p.js → component-DvhXFXbi.js} +13 -12
- package/dist/component-DvhXFXbi.js.map +1 -0
- package/dist/{index-DSO8ViDu.js → index-Pwqfd9a_.js} +3 -3
- package/dist/{index-DSO8ViDu.js.map → index-Pwqfd9a_.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +35 -44
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{plugin-DohFiwSH.js → plugin-GzwtrpSe.js} +517 -537
- package/dist/{plugin-DohFiwSH.js.map → plugin-GzwtrpSe.js.map} +1 -1
- package/package.json +1 -1
- package/src/api/import-data-manager/component/styles.css +6 -11
- package/src/api/import-data-manager/component/template.ts +1 -0
- package/dist/component-CQxI1o5p.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ye, i as Ze, a as
|
|
1
|
+
import { d as ye, i as Ze, a as Qe, n as K, C as $r, g as Ir, 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 Er, j as Fr, l as Or, m as Mr, o as Xs, p as Jt, q as Pr, P as kr } from "./index-Pwqfd9a_.js";
|
|
2
2
|
import "react";
|
|
3
3
|
const Ar = ({ primaryApi: e, store: t }) => {
|
|
4
4
|
class s {
|
|
@@ -6,7 +6,7 @@ const Ar = ({ primaryApi: e, store: t }) => {
|
|
|
6
6
|
this.api = o;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
ye(Ze(), s), ye(
|
|
9
|
+
ye(Ze(), s), ye(Qe(e), s, 0);
|
|
10
10
|
class i {
|
|
11
11
|
constructor(o) {
|
|
12
12
|
this.store = o;
|
|
@@ -17,7 +17,7 @@ const Ar = ({ primaryApi: e, store: t }) => {
|
|
|
17
17
|
this.store = o, this.api = a;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
return t && (ye(Ze(), i), ye(
|
|
20
|
+
return t && (ye(Ze(), i), ye(Qe(t), i, 0), ye(Ze(), r), ye(Qe(t), r, 0), ye(Qe(e), r, 1)), { ApiBaseHandler: s, BaseHandler: r, StoreBaseHandler: i };
|
|
21
21
|
}, Hr = (e, t) => (s, i) => {
|
|
22
22
|
t.bind(i).to(i).inTransientScope(), Ze()(i);
|
|
23
23
|
const r = e.broker.registerRequest(s, (n) => t.get(i).handle(n));
|
|
@@ -73,14 +73,14 @@ function Vr(e) {
|
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const Br = {
|
|
77
77
|
reports: "INFC",
|
|
78
78
|
results: "RES",
|
|
79
79
|
laboratory: "LAB",
|
|
80
80
|
derivations: "DER",
|
|
81
81
|
petitions: "PETITIONS"
|
|
82
82
|
};
|
|
83
|
-
var
|
|
83
|
+
var Oe = /* @__PURE__ */ ((e) => (e.Checkbox = "checkbox", e.Switch = "switch", e))(Oe || {});
|
|
84
84
|
const V = {
|
|
85
85
|
primaryApi: Symbol.for("primaryApi"),
|
|
86
86
|
store: Symbol.for("store")
|
|
@@ -88,7 +88,7 @@ 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 Nr = typeof Symbol == "function" && Symbol.observable || "@@observable", ws = Nr, Et = () => Math.random().toString(36).substring(7).split("").join("."), qr = {
|
|
92
92
|
INIT: `@@redux/INIT${/* @__PURE__ */ Et()}`,
|
|
93
93
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Et()}`,
|
|
94
94
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Et()}`
|
|
@@ -101,7 +101,7 @@ function Zt(e) {
|
|
|
101
101
|
t = Object.getPrototypeOf(t);
|
|
102
102
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ks(e, t, s) {
|
|
105
105
|
if (typeof e != "function")
|
|
106
106
|
throw new Error(R(2));
|
|
107
107
|
if (typeof t == "function" && typeof s == "function" || typeof s == "function" && typeof arguments[3] == "function")
|
|
@@ -109,7 +109,7 @@ function Js(e, t, s) {
|
|
|
109
109
|
if (typeof t == "function" && typeof s > "u" && (s = t, t = void 0), typeof s < "u") {
|
|
110
110
|
if (typeof s != "function")
|
|
111
111
|
throw new Error(R(1));
|
|
112
|
-
return s(
|
|
112
|
+
return s(Ks)(e, t);
|
|
113
113
|
}
|
|
114
114
|
let i = e, r = t, n = /* @__PURE__ */ new Map(), o = n, a = 0, l = !1;
|
|
115
115
|
function d() {
|
|
@@ -185,7 +185,7 @@ function Js(e, t, s) {
|
|
|
185
185
|
unsubscribe: p(g)
|
|
186
186
|
};
|
|
187
187
|
},
|
|
188
|
-
[
|
|
188
|
+
[ws]() {
|
|
189
189
|
return this;
|
|
190
190
|
}
|
|
191
191
|
};
|
|
@@ -197,7 +197,7 @@ function Js(e, t, s) {
|
|
|
197
197
|
subscribe: u,
|
|
198
198
|
getState: c,
|
|
199
199
|
replaceReducer: f,
|
|
200
|
-
[
|
|
200
|
+
[ws]: m
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
function Lr(e) {
|
|
@@ -262,24 +262,24 @@ function jr(...e) {
|
|
|
262
262
|
function Yr(e) {
|
|
263
263
|
return Zt(e) && "type" in e && typeof e.type == "string";
|
|
264
264
|
}
|
|
265
|
-
var
|
|
265
|
+
var Js = Symbol.for("immer-nothing"), xs = Symbol.for("immer-draftable"), B = 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`
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
|
-
var
|
|
271
|
+
var Me = Object.getPrototypeOf;
|
|
272
272
|
function xe(e) {
|
|
273
|
-
return !!e && !!e[
|
|
273
|
+
return !!e && !!e[B];
|
|
274
274
|
}
|
|
275
275
|
function le(e) {
|
|
276
|
-
return e ?
|
|
276
|
+
return e ? Zs(e) || Array.isArray(e) || !!e[xs] || !!e.constructor?.[xs] || mt(e) || gt(e) : !1;
|
|
277
277
|
}
|
|
278
278
|
var Qr = Object.prototype.constructor.toString();
|
|
279
|
-
function
|
|
279
|
+
function Zs(e) {
|
|
280
280
|
if (!e || typeof e != "object")
|
|
281
281
|
return !1;
|
|
282
|
-
const t =
|
|
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;
|
|
@@ -291,13 +291,13 @@ function rt(e, t) {
|
|
|
291
291
|
}) : e.forEach((s, i) => t(i, s, e));
|
|
292
292
|
}
|
|
293
293
|
function pt(e) {
|
|
294
|
-
const t = e[
|
|
294
|
+
const t = e[B];
|
|
295
295
|
return t ? t.type_ : Array.isArray(e) ? 1 : mt(e) ? 2 : gt(e) ? 3 : 0;
|
|
296
296
|
}
|
|
297
297
|
function At(e, t) {
|
|
298
298
|
return pt(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function ei(e, t, s) {
|
|
301
301
|
const i = pt(e);
|
|
302
302
|
i === 2 ? e.set(t, s) : i === 3 ? e.add(s) : e[t] = s;
|
|
303
303
|
}
|
|
@@ -320,10 +320,10 @@ function Ht(e, t) {
|
|
|
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 = Zs(e);
|
|
324
324
|
if (t === !0 || t === "class_only" && !s) {
|
|
325
325
|
const i = Object.getOwnPropertyDescriptors(e);
|
|
326
|
-
delete i[
|
|
326
|
+
delete i[B];
|
|
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];
|
|
@@ -335,9 +335,9 @@ function Ht(e, t) {
|
|
|
335
335
|
value: e[o]
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
return Object.create(
|
|
338
|
+
return Object.create(Me(e), i);
|
|
339
339
|
} else {
|
|
340
|
-
const i =
|
|
340
|
+
const i = Me(e);
|
|
341
341
|
if (i !== null && s)
|
|
342
342
|
return { ...e };
|
|
343
343
|
const r = Object.create(i);
|
|
@@ -358,9 +358,9 @@ function _e(e) {
|
|
|
358
358
|
const t = Kr[e];
|
|
359
359
|
return t || X(0, e), t;
|
|
360
360
|
}
|
|
361
|
-
var
|
|
362
|
-
function
|
|
363
|
-
return
|
|
361
|
+
var We;
|
|
362
|
+
function ti() {
|
|
363
|
+
return We;
|
|
364
364
|
}
|
|
365
365
|
function Jr(e, t) {
|
|
366
366
|
return {
|
|
@@ -373,40 +373,40 @@ function Jr(e, t) {
|
|
|
373
373
|
unfinalizedDrafts_: 0
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function _s(e, t) {
|
|
377
377
|
t && (_e("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
378
378
|
}
|
|
379
379
|
function Rt(e) {
|
|
380
380
|
zt(e), e.drafts_.forEach(Zr), e.drafts_ = null;
|
|
381
381
|
}
|
|
382
382
|
function zt(e) {
|
|
383
|
-
e ===
|
|
383
|
+
e === We && (We = e.parent_);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
385
|
+
function Ss(e) {
|
|
386
|
+
return We = Jr(We, e);
|
|
387
387
|
}
|
|
388
388
|
function Zr(e) {
|
|
389
|
-
const t = e[
|
|
389
|
+
const t = e[B];
|
|
390
390
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
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[B].modified_ && (Rt(t), X(4)), le(e) && (e = nt(t, e), t.parent_ || ot(t, e)), t.patches_ && _e("Patches").generateReplacementPatches_(
|
|
396
|
+
s[B].base_,
|
|
397
397
|
e,
|
|
398
398
|
t.patches_,
|
|
399
399
|
t.inversePatches_
|
|
400
|
-
)) : e = nt(t, s, []), Rt(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !==
|
|
400
|
+
)) : e = nt(t, s, []), Rt(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Js ? e : void 0;
|
|
401
401
|
}
|
|
402
402
|
function nt(e, t, s) {
|
|
403
403
|
if (yt(t))
|
|
404
404
|
return t;
|
|
405
|
-
const i = t[
|
|
405
|
+
const i = t[B];
|
|
406
406
|
if (!i)
|
|
407
407
|
return rt(
|
|
408
408
|
t,
|
|
409
|
-
(r, n) =>
|
|
409
|
+
(r, n) => Ds(e, i, t, r, n, s)
|
|
410
410
|
), t;
|
|
411
411
|
if (i.scope_ !== e)
|
|
412
412
|
return t;
|
|
@@ -418,7 +418,7 @@ function nt(e, t, s) {
|
|
|
418
418
|
let n = r, o = !1;
|
|
419
419
|
i.type_ === 3 && (n = new Set(r), r.clear(), o = !0), rt(
|
|
420
420
|
n,
|
|
421
|
-
(a, l) =>
|
|
421
|
+
(a, l) => Ds(e, i, r, a, l, s, o)
|
|
422
422
|
), ot(e, r, !1), s && e.patches_ && _e("Patches").generatePatches_(
|
|
423
423
|
i,
|
|
424
424
|
s,
|
|
@@ -428,11 +428,11 @@ function nt(e, t, s) {
|
|
|
428
428
|
}
|
|
429
429
|
return i.copy_;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
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
434
|
!At(t.assigned_, i) ? n.concat(i) : void 0, l = nt(e, r, a);
|
|
435
|
-
if (
|
|
435
|
+
if (ei(s, i, l), xe(l))
|
|
436
436
|
e.canAutoFreeze_ = !1;
|
|
437
437
|
else
|
|
438
438
|
return;
|
|
@@ -450,7 +450,7 @@ function en(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_ : ti(),
|
|
454
454
|
// True for both shallow and deep changes.
|
|
455
455
|
modified_: !1,
|
|
456
456
|
// Used during finalization.
|
|
@@ -471,13 +471,13 @@ function en(e, t) {
|
|
|
471
471
|
isManual_: !1
|
|
472
472
|
};
|
|
473
473
|
let r = i, n = ts;
|
|
474
|
-
s && (r = [i], n =
|
|
474
|
+
s && (r = [i], n = je);
|
|
475
475
|
const { revoke: o, proxy: a } = Proxy.revocable(r, n);
|
|
476
476
|
return i.draft_ = a, i.revoke_ = o, a;
|
|
477
477
|
}
|
|
478
478
|
var ts = {
|
|
479
479
|
get(e, t) {
|
|
480
|
-
if (t ===
|
|
480
|
+
if (t === B)
|
|
481
481
|
return e;
|
|
482
482
|
const s = be(e);
|
|
483
483
|
if (!At(s, t))
|
|
@@ -492,11 +492,11 @@ var ts = {
|
|
|
492
492
|
return Reflect.ownKeys(be(e));
|
|
493
493
|
},
|
|
494
494
|
set(e, t, s) {
|
|
495
|
-
const i =
|
|
495
|
+
const i = si(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?.[B];
|
|
500
500
|
if (n && n.base_ === s)
|
|
501
501
|
return e.copy_[t] = s, e.assigned_[t] = !1, !0;
|
|
502
502
|
if (Ur(s, r) && (s !== void 0 || At(e.base_, t)))
|
|
@@ -525,44 +525,44 @@ var ts = {
|
|
|
525
525
|
X(11);
|
|
526
526
|
},
|
|
527
527
|
getPrototypeOf(e) {
|
|
528
|
-
return
|
|
528
|
+
return Me(e.base_);
|
|
529
529
|
},
|
|
530
530
|
setPrototypeOf() {
|
|
531
531
|
X(12);
|
|
532
532
|
}
|
|
533
|
-
},
|
|
533
|
+
}, je = {};
|
|
534
534
|
rt(ts, (e, t) => {
|
|
535
|
-
|
|
535
|
+
je[e] = function() {
|
|
536
536
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
537
537
|
};
|
|
538
538
|
});
|
|
539
|
-
|
|
540
|
-
return
|
|
539
|
+
je.deleteProperty = function(e, t) {
|
|
540
|
+
return je.set.call(this, e, t, void 0);
|
|
541
541
|
};
|
|
542
|
-
|
|
542
|
+
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[B];
|
|
547
547
|
return (s ? be(s) : e)[t];
|
|
548
548
|
}
|
|
549
549
|
function tn(e, t, s) {
|
|
550
|
-
const i =
|
|
550
|
+
const i = si(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 si(e, t) {
|
|
558
558
|
if (!(t in e))
|
|
559
559
|
return;
|
|
560
|
-
let s =
|
|
560
|
+
let s = Me(e);
|
|
561
561
|
for (; s; ) {
|
|
562
562
|
const i = Object.getOwnPropertyDescriptor(s, t);
|
|
563
563
|
if (i)
|
|
564
564
|
return i;
|
|
565
|
-
s =
|
|
565
|
+
s = Me(s);
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
function Gt(e) {
|
|
@@ -588,16 +588,16 @@ var sn = class {
|
|
|
588
588
|
typeof s != "function" && X(6), i !== void 0 && typeof i != "function" && X(7);
|
|
589
589
|
let r;
|
|
590
590
|
if (le(t)) {
|
|
591
|
-
const n =
|
|
591
|
+
const n = Ss(this), o = Vt(t, void 0);
|
|
592
592
|
let a = !0;
|
|
593
593
|
try {
|
|
594
594
|
r = s(o), a = !1;
|
|
595
595
|
} finally {
|
|
596
596
|
a ? Rt(n) : zt(n);
|
|
597
597
|
}
|
|
598
|
-
return
|
|
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 === Js && (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
|
}
|
|
@@ -615,14 +615,14 @@ var sn = class {
|
|
|
615
615
|
}
|
|
616
616
|
createDraft(e) {
|
|
617
617
|
le(e) || X(8), xe(e) && (e = rn(e));
|
|
618
|
-
const t =
|
|
619
|
-
return s[
|
|
618
|
+
const t = Ss(this), s = Vt(e, void 0);
|
|
619
|
+
return s[B].isManual_ = !0, zt(t), s;
|
|
620
620
|
}
|
|
621
621
|
finishDraft(e, t) {
|
|
622
|
-
const s = e && e[
|
|
622
|
+
const s = e && e[B];
|
|
623
623
|
(!s || !s.isManual_) && X(9);
|
|
624
624
|
const { scope_: i } = s;
|
|
625
|
-
return
|
|
625
|
+
return _s(i, t), Cs(void 0, i);
|
|
626
626
|
}
|
|
627
627
|
/**
|
|
628
628
|
* Pass true to automatically freeze all copies created by Immer.
|
|
@@ -659,15 +659,15 @@ var sn = class {
|
|
|
659
659
|
};
|
|
660
660
|
function Vt(e, t) {
|
|
661
661
|
const s = mt(e) ? _e("MapSet").proxyMap_(e, t) : gt(e) ? _e("MapSet").proxySet_(e, t) : en(e, t);
|
|
662
|
-
return (t ? t.scope_ :
|
|
662
|
+
return (t ? t.scope_ : ti()).drafts_.push(s), s;
|
|
663
663
|
}
|
|
664
664
|
function rn(e) {
|
|
665
|
-
return xe(e) || X(10, e),
|
|
665
|
+
return xe(e) || X(10, e), ii(e);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function ii(e) {
|
|
668
668
|
if (!le(e) || yt(e))
|
|
669
669
|
return e;
|
|
670
|
-
const t = e[
|
|
670
|
+
const t = e[B];
|
|
671
671
|
let s;
|
|
672
672
|
if (t) {
|
|
673
673
|
if (!t.modified_)
|
|
@@ -676,18 +676,18 @@ function ri(e) {
|
|
|
676
676
|
} else
|
|
677
677
|
s = Ht(e, !0);
|
|
678
678
|
return rt(s, (i, r) => {
|
|
679
|
-
|
|
679
|
+
ei(s, i, ii(r));
|
|
680
680
|
}), t && (t.finalized_ = !1), s;
|
|
681
681
|
}
|
|
682
|
-
var
|
|
683
|
-
|
|
684
|
-
|
|
682
|
+
var N = new sn(), ri = N.produce;
|
|
683
|
+
N.produceWithPatches.bind(
|
|
684
|
+
N
|
|
685
685
|
);
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
686
|
+
N.setAutoFreeze.bind(N);
|
|
687
|
+
N.setUseStrictShallowCopy.bind(N);
|
|
688
|
+
N.applyPatches.bind(N);
|
|
689
|
+
N.createDraft.bind(N);
|
|
690
|
+
N.finishDraft.bind(N);
|
|
691
691
|
function nn(e, t = `expected a function, instead received ${typeof e}`) {
|
|
692
692
|
if (typeof e != "function")
|
|
693
693
|
throw new TypeError(t);
|
|
@@ -704,7 +704,7 @@ function an(e, t = "expected all items to be functions, instead received the fol
|
|
|
704
704
|
throw new TypeError(`${t}[${s}]`);
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
var
|
|
707
|
+
var Ts = (e) => Array.isArray(e) ? e : [e];
|
|
708
708
|
function ln(e) {
|
|
709
709
|
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
710
710
|
return an(
|
|
@@ -725,8 +725,8 @@ var dn = class {
|
|
|
725
725
|
deref() {
|
|
726
726
|
return this.value;
|
|
727
727
|
}
|
|
728
|
-
}, un = typeof WeakRef < "u" ? WeakRef : dn, hn = 0,
|
|
729
|
-
function
|
|
728
|
+
}, un = typeof WeakRef < "u" ? WeakRef : dn, hn = 0, $s = 1;
|
|
729
|
+
function Ue() {
|
|
730
730
|
return {
|
|
731
731
|
s: hn,
|
|
732
732
|
v: void 0,
|
|
@@ -734,8 +734,8 @@ function Xe() {
|
|
|
734
734
|
p: null
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
function
|
|
738
|
-
let s =
|
|
737
|
+
function ni(e, t = {}) {
|
|
738
|
+
let s = Ue();
|
|
739
739
|
const { resultEqualityCheck: i } = t;
|
|
740
740
|
let r, n = 0;
|
|
741
741
|
function o() {
|
|
@@ -747,26 +747,26 @@ function oi(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 = Ue(), 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 = Ue(), m.set(f, a)) : a = D;
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
const d = a;
|
|
759
759
|
let c;
|
|
760
|
-
if (a.s ===
|
|
760
|
+
if (a.s === $s)
|
|
761
761
|
c = a.v;
|
|
762
762
|
else if (c = e.apply(null, arguments), n++, i) {
|
|
763
763
|
const u = r?.deref?.() ?? r;
|
|
764
764
|
u != null && i(u, c) && (c = u, n !== 0 && n--), r = typeof c == "object" && c !== null || typeof c == "function" ? new un(c) : c;
|
|
765
765
|
}
|
|
766
|
-
return d.s =
|
|
766
|
+
return d.s = $s, d.v = c, c;
|
|
767
767
|
}
|
|
768
768
|
return o.clearCache = () => {
|
|
769
|
-
s =
|
|
769
|
+
s = Ue(), o.resetResultsCount();
|
|
770
770
|
}, o.resultsCount = () => n, o.resetResultsCount = () => {
|
|
771
771
|
n = 0;
|
|
772
772
|
}, o;
|
|
@@ -787,9 +787,9 @@ function fn(e, ...t) {
|
|
|
787
787
|
}, {
|
|
788
788
|
memoize: u,
|
|
789
789
|
memoizeOptions: y = [],
|
|
790
|
-
argsMemoize: f =
|
|
790
|
+
argsMemoize: f = ni,
|
|
791
791
|
argsMemoizeOptions: m = []
|
|
792
|
-
} = c, D =
|
|
792
|
+
} = c, D = Ts(y), p = Ts(m), b = ln(r), g = u(function() {
|
|
793
793
|
return n++, d.apply(
|
|
794
794
|
null,
|
|
795
795
|
arguments
|
|
@@ -823,7 +823,7 @@ function fn(e, ...t) {
|
|
|
823
823
|
withTypes: () => i
|
|
824
824
|
}), i;
|
|
825
825
|
}
|
|
826
|
-
var $ = /* @__PURE__ */ fn(
|
|
826
|
+
var $ = /* @__PURE__ */ fn(ni), pn = Object.assign(
|
|
827
827
|
(e, t = $) => {
|
|
828
828
|
on(
|
|
829
829
|
e,
|
|
@@ -839,14 +839,14 @@ var $ = /* @__PURE__ */ fn(oi), pn = Object.assign(
|
|
|
839
839
|
},
|
|
840
840
|
{ withTypes: () => pn }
|
|
841
841
|
);
|
|
842
|
-
function
|
|
842
|
+
function oi(e) {
|
|
843
843
|
return ({ dispatch: s, getState: i }) => (r) => (n) => typeof n == "function" ? n(s, i, e) : r(n);
|
|
844
844
|
}
|
|
845
|
-
var mn =
|
|
845
|
+
var mn = oi(), gn = oi, yn = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
846
846
|
if (arguments.length !== 0)
|
|
847
847
|
return typeof arguments[0] == "object" ? it : it.apply(null, arguments);
|
|
848
848
|
};
|
|
849
|
-
function
|
|
849
|
+
function Is(e, t) {
|
|
850
850
|
function s(...i) {
|
|
851
851
|
if (t) {
|
|
852
852
|
let r = t(...i);
|
|
@@ -870,25 +870,25 @@ function Es(e, t) {
|
|
|
870
870
|
}
|
|
871
871
|
return s.toString = () => `${e}`, s.type = e, s.match = (i) => Yr(i) && i.type === e, s;
|
|
872
872
|
}
|
|
873
|
-
var
|
|
873
|
+
var ai = class qe extends Array {
|
|
874
874
|
constructor(...t) {
|
|
875
|
-
super(...t), Object.setPrototypeOf(this,
|
|
875
|
+
super(...t), Object.setPrototypeOf(this, qe.prototype);
|
|
876
876
|
}
|
|
877
877
|
static get [Symbol.species]() {
|
|
878
|
-
return
|
|
878
|
+
return qe;
|
|
879
879
|
}
|
|
880
880
|
concat(...t) {
|
|
881
881
|
return super.concat.apply(this, t);
|
|
882
882
|
}
|
|
883
883
|
prepend(...t) {
|
|
884
|
-
return t.length === 1 && Array.isArray(t[0]) ? new
|
|
884
|
+
return t.length === 1 && Array.isArray(t[0]) ? new qe(...t[0].concat(this)) : new qe(...t.concat(this));
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
|
-
function
|
|
888
|
-
return le(e) ?
|
|
887
|
+
function Es(e) {
|
|
888
|
+
return le(e) ? ri(e, () => {
|
|
889
889
|
}) : e;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
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
894
|
function vn(e) {
|
|
@@ -901,9 +901,9 @@ var bn = () => function(t) {
|
|
|
901
901
|
serializableCheck: r = !0,
|
|
902
902
|
actionCreatorCheck: n = !0
|
|
903
903
|
} = t ?? {};
|
|
904
|
-
let o = new
|
|
904
|
+
let o = new ai();
|
|
905
905
|
return s && (vn(s) ? o.push(mn) : o.push(gn(s.extraArgument))), o;
|
|
906
|
-
}, wn = "RTK_autoBatch",
|
|
906
|
+
}, wn = "RTK_autoBatch", Os = (e) => (t) => {
|
|
907
907
|
setTimeout(t, e);
|
|
908
908
|
}, xn = (e = {
|
|
909
909
|
type: "raf"
|
|
@@ -912,8 +912,8 @@ var bn = () => function(t) {
|
|
|
912
912
|
let r = !0, n = !1, o = !1;
|
|
913
913
|
const a = /* @__PURE__ */ new Set(), l = e.type === "tick" ? queueMicrotask : e.type === "raf" ? (
|
|
914
914
|
// requestAnimationFrame won't exist in SSR environments. Fall back to a vague approximation just to keep from erroring.
|
|
915
|
-
typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame :
|
|
916
|
-
) : e.type === "callback" ? e.queueNotification :
|
|
915
|
+
typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame : Os(10)
|
|
916
|
+
) : e.type === "callback" ? e.queueNotification : Os(e.timeout), d = () => {
|
|
917
917
|
o = !1, n && (n = !1, a.forEach((c) => c()));
|
|
918
918
|
};
|
|
919
919
|
return Object.assign({}, i, {
|
|
@@ -939,7 +939,7 @@ var bn = () => function(t) {
|
|
|
939
939
|
const {
|
|
940
940
|
autoBatch: i = !0
|
|
941
941
|
} = s ?? {};
|
|
942
|
-
let r = new
|
|
942
|
+
let r = new ai(e);
|
|
943
943
|
return i && r.push(xn(typeof i == "object" ? i : void 0)), r;
|
|
944
944
|
};
|
|
945
945
|
function Sn(e) {
|
|
@@ -968,9 +968,9 @@ function Sn(e) {
|
|
|
968
968
|
const c = jr(...l), u = _n(c);
|
|
969
969
|
let y = typeof o == "function" ? o(u) : u();
|
|
970
970
|
const f = d(...y);
|
|
971
|
-
return
|
|
971
|
+
return Ks(a, n, f);
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function li(e) {
|
|
974
974
|
const t = {}, s = [];
|
|
975
975
|
let i;
|
|
976
976
|
const r = {
|
|
@@ -998,11 +998,11 @@ function Cn(e) {
|
|
|
998
998
|
return typeof e == "function";
|
|
999
999
|
}
|
|
1000
1000
|
function Dn(e, t) {
|
|
1001
|
-
let [s, i, r] =
|
|
1001
|
+
let [s, i, r] = li(t), n;
|
|
1002
1002
|
if (Cn(e))
|
|
1003
|
-
n = () =>
|
|
1003
|
+
n = () => Es(e());
|
|
1004
1004
|
else {
|
|
1005
|
-
const a =
|
|
1005
|
+
const a = Es(e);
|
|
1006
1006
|
n = () => a;
|
|
1007
1007
|
}
|
|
1008
1008
|
function o(a = n(), l) {
|
|
@@ -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 ri(c, (y) => u(y, l));
|
|
1022
1022
|
{
|
|
1023
1023
|
const y = u(c, l);
|
|
1024
1024
|
if (y === void 0) {
|
|
@@ -1085,7 +1085,7 @@ function In({
|
|
|
1085
1085
|
Mn(w) ? kn(C, w, d, t) : On(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" ? li(i.extraReducers) : [i.extraReducers], k = {
|
|
1089
1089
|
...g,
|
|
1090
1090
|
...l.sliceCaseReducersByType
|
|
1091
1091
|
};
|
|
@@ -1113,12 +1113,12 @@ function In({
|
|
|
1113
1113
|
return typeof H > "u" && w && (H = D()), H;
|
|
1114
1114
|
}
|
|
1115
1115
|
function k(O = u) {
|
|
1116
|
-
const H =
|
|
1117
|
-
return
|
|
1118
|
-
const
|
|
1116
|
+
const H = Fs(y, w, () => /* @__PURE__ */ new WeakMap());
|
|
1117
|
+
return Fs(H, O, () => {
|
|
1118
|
+
const bs = {};
|
|
1119
1119
|
for (const [Dr, Tr] of Object.entries(i.selectors ?? {}))
|
|
1120
|
-
|
|
1121
|
-
return
|
|
1120
|
+
bs[Dr] = En(Tr, O, D, w);
|
|
1121
|
+
return bs;
|
|
1122
1122
|
});
|
|
1123
1123
|
}
|
|
1124
1124
|
return {
|
|
@@ -1161,7 +1161,7 @@ function En(e, t, s, i) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
return r.unwrapped = e, r;
|
|
1163
1163
|
}
|
|
1164
|
-
var
|
|
1164
|
+
var ci = /* @__PURE__ */ In();
|
|
1165
1165
|
function Fn() {
|
|
1166
1166
|
function e(t, s) {
|
|
1167
1167
|
return {
|
|
@@ -1205,7 +1205,7 @@ function On({
|
|
|
1205
1205
|
n = i.reducer, o = i.prepare;
|
|
1206
1206
|
} else
|
|
1207
1207
|
n = i;
|
|
1208
|
-
r.addCase(e, n).exposeCaseReducer(t, n).exposeAction(t, o ?
|
|
1208
|
+
r.addCase(e, n).exposeCaseReducer(t, n).exposeAction(t, o ? Is(e, o) : Is(e));
|
|
1209
1209
|
}
|
|
1210
1210
|
function Mn(e) {
|
|
1211
1211
|
return e._reducerDefinitionType === "asyncThunk";
|
|
@@ -1228,25 +1228,25 @@ 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 || Xe,
|
|
1232
|
+
pending: a || Xe,
|
|
1233
|
+
rejected: l || Xe,
|
|
1234
|
+
settled: d || Xe
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Xe() {
|
|
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 di = (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 } }, An = (e, t, s, i) =>
|
|
1249
|
+
} : { ...e, [t]: { id: t, items: s, componentFactory: i, searchPredicate: r, historyDataImporterRules: n } }, An = (e, t, s, i) => di(e, t, [s], i);
|
|
1250
1250
|
function Hn(e, t) {
|
|
1251
1251
|
const { id: s, item: i, componentFactory: r } = t.payload;
|
|
1252
1252
|
e.collections = An(e.collections, s, i, r);
|
|
@@ -1255,7 +1255,7 @@ function Rn(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: di(e.collections, s, i, r, n, o)
|
|
1259
1259
|
};
|
|
1260
1260
|
}
|
|
1261
1261
|
function zn(e, t) {
|
|
@@ -1267,10 +1267,10 @@ function Gn(e, t) {
|
|
|
1267
1267
|
function Vn(e, t) {
|
|
1268
1268
|
e.error.push(t.payload);
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Bn(e, t) {
|
|
1271
1271
|
e.error = e.error.filter((s) => s.entityId !== t.payload);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function Nn(e) {
|
|
1274
1274
|
return {
|
|
1275
1275
|
...e,
|
|
1276
1276
|
collections: {},
|
|
@@ -1307,7 +1307,7 @@ function jn(e, t) {
|
|
|
1307
1307
|
const { id: s, item: i } = t.payload;
|
|
1308
1308
|
e.collections = Wn(e.collections, s, i);
|
|
1309
1309
|
}
|
|
1310
|
-
const pe =
|
|
1310
|
+
const pe = ci({
|
|
1311
1311
|
name: "activity-history-collections",
|
|
1312
1312
|
initialState: {
|
|
1313
1313
|
busy: [],
|
|
@@ -1320,32 +1320,32 @@ const pe = di({
|
|
|
1320
1320
|
addActivityHistoryItem: Hn,
|
|
1321
1321
|
updateActivityHistoryItem: jn,
|
|
1322
1322
|
addActivityHistoryItems: Rn,
|
|
1323
|
-
clearActivityHistoryCollections:
|
|
1323
|
+
clearActivityHistoryCollections: Nn,
|
|
1324
1324
|
addErrorHistoryItem: Vn,
|
|
1325
|
-
removeErrorHistoryItem:
|
|
1325
|
+
removeErrorHistoryItem: Bn,
|
|
1326
1326
|
removeActivityHistoryItem: Ln
|
|
1327
1327
|
}
|
|
1328
1328
|
});
|
|
1329
1329
|
function Yn(e, t) {
|
|
1330
1330
|
e.searchString = t.payload;
|
|
1331
1331
|
}
|
|
1332
|
-
const Ce = (e) => e.type ===
|
|
1332
|
+
const Ce = (e) => e.type === Oe.Switch, ui = (e) => Ce(e) ? !!e.enabled : !!e.enabledValues?.length, vt = (e) => e.filters.some(ui), ss = (e) => e.kind === "common", Pe = (e) => e.kind === "diagnostics", is = (e) => e.kind === "custom", Qn = "history-diagnostics", hi = "history-relevant", fi = "history-own", bt = "history-deleted", pi = [
|
|
1333
1333
|
{
|
|
1334
1334
|
kind: "common",
|
|
1335
1335
|
id: "common",
|
|
1336
1336
|
title: "Comuns",
|
|
1337
1337
|
filters: [
|
|
1338
1338
|
{
|
|
1339
|
-
id:
|
|
1339
|
+
id: hi,
|
|
1340
1340
|
title: "Només rellevants",
|
|
1341
1341
|
enabled: !1,
|
|
1342
|
-
type:
|
|
1342
|
+
type: Oe.Switch
|
|
1343
1343
|
},
|
|
1344
1344
|
{
|
|
1345
|
-
id:
|
|
1345
|
+
id: fi,
|
|
1346
1346
|
title: "Només els meus",
|
|
1347
1347
|
enabled: !1,
|
|
1348
|
-
type:
|
|
1348
|
+
type: Oe.Switch
|
|
1349
1349
|
},
|
|
1350
1350
|
{
|
|
1351
1351
|
// Filtre global: substitueix els "Veure eliminats" que cada plugin
|
|
@@ -1354,7 +1354,7 @@ const Ce = (e) => e.type === Me.Switch, hi = (e) => Ce(e) ? !!e.enabled : !!e.en
|
|
|
1354
1354
|
id: bt,
|
|
1355
1355
|
title: "Veure eliminats",
|
|
1356
1356
|
enabled: !1,
|
|
1357
|
-
type:
|
|
1357
|
+
type: Oe.Switch,
|
|
1358
1358
|
inverted: !0
|
|
1359
1359
|
}
|
|
1360
1360
|
]
|
|
@@ -1392,8 +1392,8 @@ const Zn = (e, { optionId: t, enabled: s }) => {
|
|
|
1392
1392
|
return s ? i.includes(t) ? e : { ...e, enabledValues: [...i, t] } : { ...e, enabledValues: i.filter((r) => r !== t) };
|
|
1393
1393
|
};
|
|
1394
1394
|
function eo(e, t) {
|
|
1395
|
-
e.filters.some(
|
|
1396
|
-
if (
|
|
1395
|
+
e.filters.some(Pe) && (e.filters = [...e.filters].map((i) => {
|
|
1396
|
+
if (Pe(i)) {
|
|
1397
1397
|
const r = i.enabledValues.filter((n) => {
|
|
1398
1398
|
if (n.codi === t.payload.diagnosticCodi)
|
|
1399
1399
|
return !1;
|
|
@@ -1410,8 +1410,8 @@ function eo(e, t) {
|
|
|
1410
1410
|
}));
|
|
1411
1411
|
}
|
|
1412
1412
|
function to(e, t) {
|
|
1413
|
-
if (e.filters.some(
|
|
1414
|
-
e.filters = [...e.filters].map((i) =>
|
|
1413
|
+
if (e.filters.some(Pe))
|
|
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",
|
|
@@ -1430,7 +1430,7 @@ function so(e, t) {
|
|
|
1430
1430
|
};
|
|
1431
1431
|
}
|
|
1432
1432
|
function io(e) {
|
|
1433
|
-
e.globalFilterSelection = {}, e.filters = e.filters.map((t) => ss(t) ?
|
|
1433
|
+
e.globalFilterSelection = {}, e.filters = e.filters.map((t) => ss(t) ? pi[0] : Pe(t) ? {
|
|
1434
1434
|
...t,
|
|
1435
1435
|
enabledValues: []
|
|
1436
1436
|
} : {
|
|
@@ -1438,11 +1438,11 @@ 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 = ci({
|
|
1442
1442
|
name: "activity-history-filters",
|
|
1443
1443
|
initialState: {
|
|
1444
1444
|
searchString: "",
|
|
1445
|
-
filters: [...
|
|
1445
|
+
filters: [...pi],
|
|
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: {}
|
|
@@ -1515,19 +1515,19 @@ class fo extends me {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
|
-
let
|
|
1518
|
+
let mi;
|
|
1519
1519
|
const po = (e, t) => {
|
|
1520
|
-
|
|
1520
|
+
mi = e.registerRequest(
|
|
1521
1521
|
t.broker.events.activityHistory.injectAsyncHistoryItemsRequest,
|
|
1522
1522
|
fo
|
|
1523
1523
|
);
|
|
1524
1524
|
}, mo = () => {
|
|
1525
|
-
|
|
1525
|
+
mi?.dispose();
|
|
1526
1526
|
};
|
|
1527
|
-
let
|
|
1527
|
+
let Bt;
|
|
1528
1528
|
const go = async (e) => {
|
|
1529
|
-
|
|
1530
|
-
}, v = (e) =>
|
|
1529
|
+
Bt = await e.createLocaleManager(yo);
|
|
1530
|
+
}, v = (e) => Bt ? Bt.translate(e) : e, yo = {
|
|
1531
1531
|
ca: {
|
|
1532
1532
|
"activity-history": {
|
|
1533
1533
|
activityHistory: "Històric d’activitat",
|
|
@@ -1624,16 +1624,16 @@ const go = async (e) => {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
|
-
},
|
|
1627
|
+
}, gi = (e, t, s) => {
|
|
1628
1628
|
const i = e?.[t];
|
|
1629
1629
|
return i?.items ? i.items.some((r) => r.id === s) : !1;
|
|
1630
1630
|
}, vo = (e) => typeof e == "string" && e.trim() !== "", bo = (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
|
-
bo(e.date),
|
|
1636
|
-
if (!e.every(
|
|
1634
|
+
}, yi = (e) => e && vo(e.id) && // Verifica que "id" esté informado
|
|
1635
|
+
bo(e.date), vi = (e) => {
|
|
1636
|
+
if (!e.every(yi))
|
|
1637
1637
|
throw console.error("Invalid activity history items", e), new Error("Invalid activity history items");
|
|
1638
1638
|
return e;
|
|
1639
1639
|
}, wo = (e) => {
|
|
@@ -1641,15 +1641,15 @@ bo(e.date), bi = (e) => {
|
|
|
1641
1641
|
}, xo = (e) => {
|
|
1642
1642
|
const t = [];
|
|
1643
1643
|
for (const s of e)
|
|
1644
|
-
|
|
1644
|
+
yi(s) ? t.push(s) : wo(s);
|
|
1645
1645
|
return t;
|
|
1646
1646
|
}, { addActivityHistoryItem: _o } = pe.actions;
|
|
1647
1647
|
class So extends me {
|
|
1648
1648
|
async handle(t) {
|
|
1649
1649
|
try {
|
|
1650
|
-
|
|
1650
|
+
vi([t.item]);
|
|
1651
1651
|
const s = this.store.getState();
|
|
1652
|
-
if (
|
|
1652
|
+
if (gi(s.activityHistoryCollections?.collections, t.entityId, t.item.id))
|
|
1653
1653
|
throw new Error(v("error.itemAlreadyExists"));
|
|
1654
1654
|
this.store.dispatch(
|
|
1655
1655
|
_o({
|
|
@@ -1663,13 +1663,13 @@ class So extends me {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
1666
|
-
let
|
|
1666
|
+
let bi;
|
|
1667
1667
|
const Co = (e, t) => {
|
|
1668
|
-
|
|
1668
|
+
bi = e.registerRequest(t.broker.events.activityHistory.addHistoryItemRequest, So);
|
|
1669
1669
|
}, Do = () => {
|
|
1670
|
-
|
|
1670
|
+
bi?.dispose();
|
|
1671
1671
|
};
|
|
1672
|
-
class
|
|
1672
|
+
class wi {
|
|
1673
1673
|
constructor(t) {
|
|
1674
1674
|
this.payload = t;
|
|
1675
1675
|
}
|
|
@@ -1687,7 +1687,7 @@ class $o extends me {
|
|
|
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 wi(t.filters));
|
|
1691
1691
|
} catch (s) {
|
|
1692
1692
|
this.api.notificationService.error(s.message);
|
|
1693
1693
|
}
|
|
@@ -1696,18 +1696,18 @@ 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) => !gi(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
|
|
1706
|
+
let xi;
|
|
1707
1707
|
const Io = (e, t) => {
|
|
1708
|
-
|
|
1708
|
+
xi = e.registerRequest(t.broker.events.activityHistory.addHistoryItemsRequest, $o);
|
|
1709
1709
|
}, Eo = () => {
|
|
1710
|
-
|
|
1710
|
+
xi?.dispose();
|
|
1711
1711
|
};
|
|
1712
1712
|
function S(e, t = {}) {
|
|
1713
1713
|
return Vr(wt)(e, t);
|
|
@@ -1718,7 +1718,7 @@ var Po = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, rs = (e, t
|
|
|
1718
1718
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
1719
1719
|
return i && r && Po(t, s, r), r;
|
|
1720
1720
|
};
|
|
1721
|
-
let
|
|
1721
|
+
let Ye = class extends W {
|
|
1722
1722
|
render() {
|
|
1723
1723
|
return h`${Mo(this)}`;
|
|
1724
1724
|
}
|
|
@@ -1726,18 +1726,18 @@ let Qe = class extends W {
|
|
|
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
1730
|
${q(Oo)}
|
|
1731
1731
|
`;
|
|
1732
1732
|
rs([
|
|
1733
1733
|
S(_t)
|
|
1734
|
-
],
|
|
1734
|
+
], Ye.prototype, "isSomeCollectionLoadedAndOtherLoading", 2);
|
|
1735
1735
|
rs([
|
|
1736
1736
|
S(Fo)
|
|
1737
|
-
],
|
|
1738
|
-
|
|
1737
|
+
], Ye.prototype, "isEmptyDataAndOtherLoading", 2);
|
|
1738
|
+
Ye = rs([
|
|
1739
1739
|
j("activity-history-busy")
|
|
1740
|
-
],
|
|
1740
|
+
], Ye);
|
|
1741
1741
|
class ns {
|
|
1742
1742
|
constructor(t) {
|
|
1743
1743
|
this.entities = t;
|
|
@@ -1757,11 +1757,11 @@ class Ao extends me {
|
|
|
1757
1757
|
this.store.dispatch(uo(s));
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
let
|
|
1760
|
+
let _i;
|
|
1761
1761
|
const Ho = (e) => {
|
|
1762
|
-
|
|
1763
|
-
},
|
|
1764
|
-
|
|
1762
|
+
Si(), _i = e.registerRequest(ns, Ao);
|
|
1763
|
+
}, Si = () => {
|
|
1764
|
+
_i?.dispose();
|
|
1765
1765
|
}, Ro = ".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)}", zo = (e) => {
|
|
1766
1766
|
const { arrayElements: t, text: s } = e;
|
|
1767
1767
|
return h`
|
|
@@ -1804,7 +1804,7 @@ const Ho = (e) => {
|
|
|
1804
1804
|
</div>` : M}
|
|
1805
1805
|
</div>`;
|
|
1806
1806
|
};
|
|
1807
|
-
var Go = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor,
|
|
1807
|
+
var Go = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, Re = (e, t, s, i) => {
|
|
1808
1808
|
for (var r = i > 1 ? void 0 : i ? Vo(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
1810
|
return i && r && Go(t, s, r), r;
|
|
@@ -1835,25 +1835,25 @@ let de = class extends W {
|
|
|
1835
1835
|
);
|
|
1836
1836
|
}
|
|
1837
1837
|
};
|
|
1838
|
-
|
|
1838
|
+
Re([
|
|
1839
1839
|
K()
|
|
1840
1840
|
], de.prototype, "selectedRadioOption", 2);
|
|
1841
|
-
|
|
1841
|
+
Re([
|
|
1842
1842
|
K()
|
|
1843
1843
|
], de.prototype, "text", 2);
|
|
1844
|
-
|
|
1844
|
+
Re([
|
|
1845
1845
|
K()
|
|
1846
1846
|
], de.prototype, "selectedVisibilityLevelElement", 2);
|
|
1847
|
-
|
|
1847
|
+
Re([
|
|
1848
1848
|
K()
|
|
1849
1849
|
], de.prototype, "selectedPeriodDate", 2);
|
|
1850
|
-
|
|
1850
|
+
Re([
|
|
1851
1851
|
K({ type: Array })
|
|
1852
1852
|
], de.prototype, "arrayElements", 2);
|
|
1853
|
-
de =
|
|
1853
|
+
de = Re([
|
|
1854
1854
|
j("export-pdf-modal")
|
|
1855
1855
|
], de);
|
|
1856
|
-
class
|
|
1856
|
+
class Bo extends oo {
|
|
1857
1857
|
async handle() {
|
|
1858
1858
|
try {
|
|
1859
1859
|
this.api.interactionService.confirm(void 0, { component: de }, {
|
|
@@ -1873,11 +1873,11 @@ class No extends oo {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
class os {
|
|
1875
1875
|
}
|
|
1876
|
-
let
|
|
1877
|
-
const
|
|
1878
|
-
|
|
1876
|
+
let Ci;
|
|
1877
|
+
const No = (e) => {
|
|
1878
|
+
Ci = e.registerRequest(os, Bo);
|
|
1879
1879
|
}, qo = () => {
|
|
1880
|
-
|
|
1880
|
+
Ci?.dispose();
|
|
1881
1881
|
};
|
|
1882
1882
|
function Lo(e, t, s, i) {
|
|
1883
1883
|
const r = `Sense ${i.toLocaleLowerCase()}`, n = /* @__PURE__ */ new Map();
|
|
@@ -1931,16 +1931,16 @@ class Qo extends G {
|
|
|
1931
1931
|
return !t?.deleted;
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
let
|
|
1935
|
-
const
|
|
1936
|
-
|
|
1934
|
+
let Nt = null;
|
|
1935
|
+
const Di = (e) => {
|
|
1936
|
+
Nt = e;
|
|
1937
1937
|
};
|
|
1938
1938
|
class Uo extends G {
|
|
1939
1939
|
isSatisfiedBy(t) {
|
|
1940
|
-
if (!
|
|
1940
|
+
if (!Nt)
|
|
1941
1941
|
return !1;
|
|
1942
1942
|
try {
|
|
1943
|
-
const s =
|
|
1943
|
+
const s = Nt.globalStateManager.getData("userInfo");
|
|
1944
1944
|
return t?.professional?.id === s?.userId;
|
|
1945
1945
|
} catch {
|
|
1946
1946
|
return !1;
|
|
@@ -1953,8 +1953,8 @@ class Xo extends G {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
1955
|
const Ko = {
|
|
1956
|
-
[
|
|
1957
|
-
[
|
|
1956
|
+
[hi]: Xo,
|
|
1957
|
+
[fi]: Uo,
|
|
1958
1958
|
[bt]: Qo
|
|
1959
1959
|
};
|
|
1960
1960
|
class Jo extends G {
|
|
@@ -1978,7 +1978,7 @@ class ea extends G {
|
|
|
1978
1978
|
return !1;
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
|
-
class
|
|
1981
|
+
class Ms extends G {
|
|
1982
1982
|
constructor(t, s) {
|
|
1983
1983
|
super(), this.propPath = t, this.value = s;
|
|
1984
1984
|
}
|
|
@@ -1991,11 +1991,11 @@ class ta extends G {
|
|
|
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(ui).every((s) => this.satisfies(t, s));
|
|
1995
1995
|
}
|
|
1996
1996
|
satisfies(t, s) {
|
|
1997
|
-
return Ce(s) ? new
|
|
1998
|
-
(r, n) => r.or(new
|
|
1997
|
+
return Ce(s) ? new Ms(s.propPathValue, !0).isSatisfiedBy(t) : (s.enabledValues ?? []).reduce(
|
|
1998
|
+
(r, n) => r.or(new Ms(s.propPathValue, n)),
|
|
1999
1999
|
new ea()
|
|
2000
2000
|
).isSatisfiedBy(t);
|
|
2001
2001
|
}
|
|
@@ -2020,7 +2020,7 @@ 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 ia = "history-up", ra = "history-professional-role", na = "history-speciality", oa = "history-professional", aa = "history-service", as = "history-note-type",
|
|
2023
|
+
const ia = "history-up", ra = "history-professional-role", na = "history-speciality", oa = "history-professional", aa = "history-service", as = "history-note-type", Ti = [
|
|
2024
2024
|
{
|
|
2025
2025
|
id: ia,
|
|
2026
2026
|
title: "UP",
|
|
@@ -2060,7 +2060,7 @@ 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(Br)
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
2066
|
];
|
|
@@ -2070,7 +2070,7 @@ class la extends G {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
isSatisfiedBy(t) {
|
|
2072
2072
|
return (this.filters ?? []).filter((i) => i.enabledValues?.length).every((i) => {
|
|
2073
|
-
const r =
|
|
2073
|
+
const r = Ti.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);
|
|
@@ -2093,8 +2093,8 @@ class da extends G {
|
|
|
2093
2093
|
return this.clauses.length === 0 || this.showDeleted && t.deleted ? !0 : this.clauses.some((s) => s.isSatisfiedBy(t));
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
|
-
const
|
|
2097
|
-
const s =
|
|
2096
|
+
const Ps = (e) => e == null ? "" : String(e).normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase(), ve = (e, t) => {
|
|
2097
|
+
const s = Ps(e), i = Ps(t);
|
|
2098
2098
|
return s.toString().toLowerCase().indexOf(i) !== -1 || s.toString().indexOf(i) !== -1;
|
|
2099
2099
|
}, ua = (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(
|
|
@@ -2122,34 +2122,34 @@ 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
|
+
), $i = $(
|
|
2126
2126
|
St,
|
|
2127
2127
|
(e) => e.find((t) => t.id === bt)
|
|
2128
|
-
), fa = $(
|
|
2128
|
+
), fa = $($i, (e) => !!e?.enabled), pa = $(
|
|
2129
2129
|
St,
|
|
2130
2130
|
(e) => e.filter((t) => t.id !== bt)
|
|
2131
|
-
),
|
|
2131
|
+
), Ii = $(
|
|
2132
2132
|
St,
|
|
2133
2133
|
(e) => e.filter((t) => t.enabled)
|
|
2134
|
-
), ma = $(
|
|
2134
|
+
), ma = $(Ii, (e) => !!e.length), Ct = $(
|
|
2135
2135
|
ls,
|
|
2136
2136
|
(e) => e.filter(is).sort(ga)
|
|
2137
2137
|
), ga = (e, t) => Number(e.sort) - Number(t.sort), ya = $(
|
|
2138
2138
|
Ct,
|
|
2139
2139
|
(e) => e.some(vt)
|
|
2140
|
-
),
|
|
2140
|
+
), Ei = $(
|
|
2141
2141
|
ls,
|
|
2142
|
-
(e) => e.find(
|
|
2142
|
+
(e) => e.find(Pe)
|
|
2143
2143
|
), cs = $(
|
|
2144
|
-
|
|
2144
|
+
Ei,
|
|
2145
2145
|
(e) => e?.enabledValues || []
|
|
2146
2146
|
), va = $(
|
|
2147
2147
|
cs,
|
|
2148
2148
|
(e) => !!e.length
|
|
2149
|
-
),
|
|
2150
|
-
const s =
|
|
2149
|
+
), ks = (e, t) => t.reduce((s, i) => s?.[i], e), ba = (e, t) => {
|
|
2150
|
+
const s = ks(e, t.valuePath);
|
|
2151
2151
|
if (typeof s != "string" || !s.trim()) return;
|
|
2152
|
-
const i =
|
|
2152
|
+
const i = ks(e, t.descriptionPath);
|
|
2153
2153
|
return { value: s, label: typeof i == "string" && i.trim() ? i : s };
|
|
2154
2154
|
}, wa = (e, t) => e.label.localeCompare(t.label, "ca", { sensitivity: "base" }), xa = (e, t) => {
|
|
2155
2155
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -2161,7 +2161,7 @@ const ls = (e) => e.activityHistoryFilters.filters, St = $(
|
|
|
2161
2161
|
}, _a = (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
|
-
}, Sa = (e, t = {}) =>
|
|
2164
|
+
}, Sa = (e, t = {}) => Ti.map((s) => {
|
|
2165
2165
|
const i = xa(e, s), { groups: r, values: n } = s.optionGroup ? _a(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 }) => ({
|
|
@@ -2196,10 +2196,10 @@ const ls = (e) => e.activityHistoryFilters.filters, St = $(
|
|
|
2196
2196
|
}, Fa = (e) => e != null && typeof e.codi == "string" && (typeof e.cataleg == "string" || e.cataleg === null) && typeof e.descripcio == "string", Oa = (e) => e == null ? !0 : Array.isArray(e) && e.every(Fa), et = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Map(), Ma = (e) => (et.has(e) || et.set(e, new Date(e).toDateString()), et.get(e)), J = (e) => (tt.has(e) || tt.set(e, new Date(e)), tt.get(e)), qt = (e) => {
|
|
2197
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 = Ma(e.date);
|
|
2198
2198
|
return `${t}|${s}|${i}`;
|
|
2199
|
-
},
|
|
2199
|
+
}, As = (e) => e.service?.id != null && e.service.id !== "", Pa = (e, t) => {
|
|
2200
2200
|
const s = qt(e), i = qt(t);
|
|
2201
|
-
return s !== i ? !1 : !
|
|
2202
|
-
},
|
|
2201
|
+
return s !== i ? !1 : !As(e) || !As(t) ? !0 : e.service?.id === t.service?.id;
|
|
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
|
};
|
|
@@ -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) && Pa(c, r) &&
|
|
2241
|
+
if (!(!c || !u) && Pa(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)
|
|
@@ -2276,11 +2276,11 @@ const Aa = (e) => {
|
|
|
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
2278
|
}), ka(i), i;
|
|
2279
|
-
},
|
|
2279
|
+
}, Fi = (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) => Fi(e.items), Wt = (e) => {
|
|
2283
|
+
const t = e.items.length > 0 ? [Fi(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
|
}, Ha = (e) => {
|
|
2286
2286
|
const t = (s) => s.sort((i, r) => new Date(r.date).getTime() - new Date(i.date).getTime());
|
|
@@ -2307,7 +2307,7 @@ const Aa = (e) => {
|
|
|
2307
2307
|
), Ga = $(
|
|
2308
2308
|
Tt,
|
|
2309
2309
|
(e) => Object.values(e).flatMap((t) => za(t.items, t.componentFactory, t.id, t.searchPredicate))
|
|
2310
|
-
),
|
|
2310
|
+
), Oi = $(
|
|
2311
2311
|
Ct,
|
|
2312
2312
|
Tt,
|
|
2313
2313
|
(e, t) => e.map((s) => {
|
|
@@ -2337,7 +2337,7 @@ const Aa = (e) => {
|
|
|
2337
2337
|
);
|
|
2338
2338
|
return i.filter((n) => !r.has(n));
|
|
2339
2339
|
}
|
|
2340
|
-
),
|
|
2340
|
+
), Ba = $(
|
|
2341
2341
|
Ga,
|
|
2342
2342
|
Dt,
|
|
2343
2343
|
St,
|
|
@@ -2357,7 +2357,7 @@ const Aa = (e) => {
|
|
|
2357
2357
|
return e.filter((y) => new ha(t, y.searchPredicate).and(l).and(d).and(c).and(u).isSatisfiedBy(y));
|
|
2358
2358
|
}
|
|
2359
2359
|
), hs = $(
|
|
2360
|
-
|
|
2360
|
+
Ba,
|
|
2361
2361
|
(e) => Ha(Aa(e))
|
|
2362
2362
|
);
|
|
2363
2363
|
class fs {
|
|
@@ -2375,15 +2375,15 @@ class ms {
|
|
|
2375
2375
|
this.payload = t;
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
|
-
const
|
|
2378
|
+
const Na = ".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}", qa = ({ 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>`, Mi = ({ 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 ===
|
|
2386
|
+
</dss-checkbox>`, jt = (e, t) => e === Oe.Switch ? qa(t) : Mi(t), Rs = (e, t) => jt(e.type, {
|
|
2387
2387
|
id: `common-filter-${e.id}`,
|
|
2388
2388
|
title: e.title,
|
|
2389
2389
|
checked: e.enabled,
|
|
@@ -2411,7 +2411,7 @@ const Ba = ".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
|
+
), Pi = (e, t, s) => Mi({
|
|
2415
2415
|
id: `global-filter-${e.id}-${t.value}`,
|
|
2416
2416
|
title: t.label || t.value,
|
|
2417
2417
|
checked: e.enabledValues.includes(t.value),
|
|
@@ -2424,7 +2424,7 @@ const Ba = ".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) => Pi(e, n, s))}
|
|
2428
2428
|
</div>`;
|
|
2429
2429
|
}, Ya = (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));
|
|
@@ -2434,7 +2434,7 @@ const Ba = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
2434
2434
|
<dss-typography slot="title" tag="p" variant="subtitle-3">${e.title}</dss-typography>
|
|
2435
2435
|
<div class="filter-options" slot="content">
|
|
2436
2436
|
${e.groups.map((r) => ja(e, r, t))}
|
|
2437
|
-
${i.map((r) =>
|
|
2437
|
+
${i.map((r) => Pi(e, r, t))}
|
|
2438
2438
|
</div>
|
|
2439
2439
|
</primaria-accordion>
|
|
2440
2440
|
</div>`;
|
|
@@ -2445,7 +2445,7 @@ const Ba = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
2445
2445
|
${oe(
|
|
2446
2446
|
e.commonFilters,
|
|
2447
2447
|
(t) => t.id,
|
|
2448
|
-
(t) => h`<div class="filter">${
|
|
2448
|
+
(t) => h`<div class="filter">${Rs(t, e)}</div> `
|
|
2449
2449
|
)}
|
|
2450
2450
|
<!-- Regió per al filtre de diagnostics extern -->
|
|
2451
2451
|
<div class="filter">
|
|
@@ -2464,7 +2464,7 @@ const Ba = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
2464
2464
|
(t) => La(t, e)
|
|
2465
2465
|
)}
|
|
2466
2466
|
<!-- Toggle global d'eliminats: sempre l'últim de la llista -->
|
|
2467
|
-
${e.deletedFilter ? h`<div class="filter filter-deleted-toggle">${
|
|
2467
|
+
${e.deletedFilter ? h`<div class="filter filter-deleted-toggle">${Rs(e.deletedFilter, e)}</div>` : M}
|
|
2468
2468
|
</div> ` : h`
|
|
2469
2469
|
<dss-icon-button tooltipFixed label=${v("filters.filters")} @click=${() => e._toggleFilters()} size="md" variant="primary" icon="filter_list"></dss-icon-button>
|
|
2470
2470
|
`}
|
|
@@ -2521,16 +2521,16 @@ let te = class extends W {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
};
|
|
2523
2523
|
te.styles = L`
|
|
2524
|
-
${q(
|
|
2524
|
+
${q(Na)}
|
|
2525
2525
|
`;
|
|
2526
2526
|
ge([
|
|
2527
2527
|
S(pa)
|
|
2528
2528
|
], te.prototype, "commonFilters", 2);
|
|
2529
2529
|
ge([
|
|
2530
|
-
S(
|
|
2530
|
+
S($i)
|
|
2531
2531
|
], te.prototype, "deletedFilter", 2);
|
|
2532
2532
|
ge([
|
|
2533
|
-
S(
|
|
2533
|
+
S(Oi)
|
|
2534
2534
|
], te.prototype, "customFilterGroups", 2);
|
|
2535
2535
|
ge([
|
|
2536
2536
|
S(ds)
|
|
@@ -2557,11 +2557,11 @@ class Ja extends Te {
|
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
2559
|
}
|
|
2560
|
-
let
|
|
2560
|
+
let ki;
|
|
2561
2561
|
const Za = (e) => {
|
|
2562
|
-
|
|
2562
|
+
ki = e.registerRequest(fs, Ja);
|
|
2563
2563
|
}, el = () => {
|
|
2564
|
-
|
|
2564
|
+
ki?.dispose();
|
|
2565
2565
|
}, { addCustomFilters: tl } = re.actions;
|
|
2566
2566
|
class sl extends Te {
|
|
2567
2567
|
async handle(t) {
|
|
@@ -2572,11 +2572,11 @@ class sl extends Te {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
|
-
let
|
|
2575
|
+
let Ai;
|
|
2576
2576
|
const il = (e) => {
|
|
2577
|
-
|
|
2577
|
+
Ai = e.registerRequest(wi, sl);
|
|
2578
2578
|
}, rl = () => {
|
|
2579
|
-
|
|
2579
|
+
Ai?.dispose();
|
|
2580
2580
|
}, { setCustomFilterValue: nl } = re.actions;
|
|
2581
2581
|
class ol extends Te {
|
|
2582
2582
|
async handle(t) {
|
|
@@ -2587,11 +2587,11 @@ class ol extends Te {
|
|
|
2587
2587
|
}
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
|
-
let
|
|
2590
|
+
let Hi;
|
|
2591
2591
|
const al = (e) => {
|
|
2592
|
-
|
|
2592
|
+
Hi = e.registerRequest(ps, ol);
|
|
2593
2593
|
}, ll = () => {
|
|
2594
|
-
|
|
2594
|
+
Hi?.dispose();
|
|
2595
2595
|
}, { deleteDiagnosticFilterValue: cl } = re.actions;
|
|
2596
2596
|
class dl extends me {
|
|
2597
2597
|
async handle(t) {
|
|
@@ -2609,16 +2609,16 @@ class dl extends me {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
class
|
|
2612
|
+
class Ri {
|
|
2613
2613
|
constructor(t) {
|
|
2614
2614
|
this.payload = t;
|
|
2615
2615
|
}
|
|
2616
2616
|
}
|
|
2617
|
-
let
|
|
2617
|
+
let zi;
|
|
2618
2618
|
const ul = (e) => {
|
|
2619
|
-
|
|
2619
|
+
zi = e.registerRequest(Ri, dl);
|
|
2620
2620
|
}, hl = () => {
|
|
2621
|
-
|
|
2621
|
+
zi?.dispose();
|
|
2622
2622
|
}, { setDiagnosticFilterValues: fl } = re.actions;
|
|
2623
2623
|
class pl extends Te {
|
|
2624
2624
|
async handle(t) {
|
|
@@ -2629,18 +2629,18 @@ class pl extends Te {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
2631
|
}
|
|
2632
|
-
class
|
|
2632
|
+
class Gi {
|
|
2633
2633
|
constructor(t) {
|
|
2634
2634
|
this.payload = t;
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
|
-
let
|
|
2637
|
+
let Vi;
|
|
2638
2638
|
const ml = (e) => {
|
|
2639
|
-
|
|
2639
|
+
Vi = e.registerRequest(Gi, pl);
|
|
2640
2640
|
}, gl = () => {
|
|
2641
|
-
|
|
2641
|
+
Vi?.dispose();
|
|
2642
2642
|
}, yl = (e) => e.broker.subscribe("cipds_diagnostic_filter_historic_requested", (t) => {
|
|
2643
|
-
e.broker.send(new
|
|
2643
|
+
e.broker.send(new Gi(t));
|
|
2644
2644
|
}), { setGlobalFilterValues: vl } = re.actions;
|
|
2645
2645
|
class bl extends Te {
|
|
2646
2646
|
async handle(t) {
|
|
@@ -2657,7 +2657,7 @@ const wl = (e) => {
|
|
|
2657
2657
|
}, xl = () => {
|
|
2658
2658
|
Bi?.dispose();
|
|
2659
2659
|
};
|
|
2660
|
-
class
|
|
2660
|
+
class Ni {
|
|
2661
2661
|
}
|
|
2662
2662
|
const { resetFilters: _l } = re.actions;
|
|
2663
2663
|
class Sl extends me {
|
|
@@ -2669,45 +2669,45 @@ class Sl extends me {
|
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
2671
|
}
|
|
2672
|
-
let
|
|
2672
|
+
let qi;
|
|
2673
2673
|
const Cl = (e) => {
|
|
2674
|
-
|
|
2674
|
+
qi = e.registerRequest(Ni, Sl);
|
|
2675
2675
|
}, Dl = () => {
|
|
2676
|
-
|
|
2676
|
+
qi?.dispose();
|
|
2677
2677
|
};
|
|
2678
2678
|
let Yt = null;
|
|
2679
2679
|
const Tl = (e, t) => {
|
|
2680
2680
|
Za(e), il(e), al(e), ml(e), ul(e), wl(e), Cl(e), Yt = yl(t);
|
|
2681
2681
|
}, $l = () => {
|
|
2682
2682
|
Yt?.dispose(), Yt = null, el(), rl(), ll(), gl(), hl(), xl(), Dl();
|
|
2683
|
-
},
|
|
2683
|
+
}, Li = 6048e5, Il = 864e5, El = 6e4, Fl = 36e5, Ol = 1e3, zs = Symbol.for("constructDateFrom");
|
|
2684
2684
|
function A(e, t) {
|
|
2685
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
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 Wi(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
2694
|
let Ml = {};
|
|
2695
|
-
function
|
|
2695
|
+
function ze() {
|
|
2696
2696
|
return Ml;
|
|
2697
2697
|
}
|
|
2698
2698
|
function ue(e, t) {
|
|
2699
|
-
const s =
|
|
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;
|
|
2700
2700
|
return r.setDate(r.getDate() - o), r.setHours(0, 0, 0, 0), r;
|
|
2701
2701
|
}
|
|
2702
|
-
function
|
|
2702
|
+
function ke(e, t) {
|
|
2703
2703
|
return ue(e, { ...t, weekStartsOn: 1 });
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function ji(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
|
-
const n =
|
|
2708
|
+
const n = ke(r), o = A(s, 0);
|
|
2709
2709
|
o.setFullYear(i, 0, 4), o.setHours(0, 0, 0, 0);
|
|
2710
|
-
const a =
|
|
2710
|
+
const a = ke(o);
|
|
2711
2711
|
return s.getTime() >= n.getTime() ? i + 1 : s.getTime() >= a.getTime() ? i : i - 1;
|
|
2712
2712
|
}
|
|
2713
2713
|
function at(e) {
|
|
@@ -2744,13 +2744,13 @@ function kl(e, t, s) {
|
|
|
2744
2744
|
return Math.round((a - l) / Il);
|
|
2745
2745
|
}
|
|
2746
2746
|
function Al(e, t) {
|
|
2747
|
-
const s =
|
|
2748
|
-
return i.setFullYear(s, 0, 4), i.setHours(0, 0, 0, 0),
|
|
2747
|
+
const s = ji(e, t), i = A(e, 0);
|
|
2748
|
+
return i.setFullYear(s, 0, 4), i.setHours(0, 0, 0, 0), ke(i);
|
|
2749
2749
|
}
|
|
2750
2750
|
function Hl(e) {
|
|
2751
2751
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2753
|
+
function Yi(e) {
|
|
2754
2754
|
return !(!Hl(e) && typeof e != "number" || isNaN(+P(e)));
|
|
2755
2755
|
}
|
|
2756
2756
|
function Rl(e, t) {
|
|
@@ -2835,12 +2835,12 @@ const Vl = {
|
|
|
2835
2835
|
long: "MMMM do, y",
|
|
2836
2836
|
medium: "MMM d, y",
|
|
2837
2837
|
short: "MM/dd/yyyy"
|
|
2838
|
-
},
|
|
2838
|
+
}, Bl = {
|
|
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
|
+
}, Nl = {
|
|
2844
2844
|
full: "{{date}} 'at' {{time}}",
|
|
2845
2845
|
long: "{{date}} 'at' {{time}}",
|
|
2846
2846
|
medium: "{{date}}, {{time}}",
|
|
@@ -2851,11 +2851,11 @@ const Vl = {
|
|
|
2851
2851
|
defaultWidth: "full"
|
|
2852
2852
|
}),
|
|
2853
2853
|
time: Mt({
|
|
2854
|
-
formats:
|
|
2854
|
+
formats: Bl,
|
|
2855
2855
|
defaultWidth: "full"
|
|
2856
2856
|
}),
|
|
2857
2857
|
dateTime: Mt({
|
|
2858
|
-
formats:
|
|
2858
|
+
formats: Nl,
|
|
2859
2859
|
defaultWidth: "full"
|
|
2860
2860
|
})
|
|
2861
2861
|
}, Ll = {
|
|
@@ -3032,7 +3032,7 @@ const jl = {
|
|
|
3032
3032
|
defaultFormattingWidth: "wide"
|
|
3033
3033
|
})
|
|
3034
3034
|
};
|
|
3035
|
-
function
|
|
3035
|
+
function Ne(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)
|
|
@@ -3145,38 +3145,38 @@ const ic = /^(\d+)(th|st|nd|rd)?/i, rc = /\d+/i, nc = {
|
|
|
3145
3145
|
parsePattern: rc,
|
|
3146
3146
|
valueCallback: (e) => parseInt(e, 10)
|
|
3147
3147
|
}),
|
|
3148
|
-
era:
|
|
3148
|
+
era: Ne({
|
|
3149
3149
|
matchPatterns: nc,
|
|
3150
3150
|
defaultMatchWidth: "wide",
|
|
3151
3151
|
parsePatterns: oc,
|
|
3152
3152
|
defaultParseWidth: "any"
|
|
3153
3153
|
}),
|
|
3154
|
-
quarter:
|
|
3154
|
+
quarter: Ne({
|
|
3155
3155
|
matchPatterns: ac,
|
|
3156
3156
|
defaultMatchWidth: "wide",
|
|
3157
3157
|
parsePatterns: lc,
|
|
3158
3158
|
defaultParseWidth: "any",
|
|
3159
3159
|
valueCallback: (e) => e + 1
|
|
3160
3160
|
}),
|
|
3161
|
-
month:
|
|
3161
|
+
month: Ne({
|
|
3162
3162
|
matchPatterns: cc,
|
|
3163
3163
|
defaultMatchWidth: "wide",
|
|
3164
3164
|
parsePatterns: dc,
|
|
3165
3165
|
defaultParseWidth: "any"
|
|
3166
3166
|
}),
|
|
3167
|
-
day:
|
|
3167
|
+
day: Ne({
|
|
3168
3168
|
matchPatterns: uc,
|
|
3169
3169
|
defaultMatchWidth: "wide",
|
|
3170
3170
|
parsePatterns: hc,
|
|
3171
3171
|
defaultParseWidth: "any"
|
|
3172
3172
|
}),
|
|
3173
|
-
dayPeriod:
|
|
3173
|
+
dayPeriod: Ne({
|
|
3174
3174
|
matchPatterns: fc,
|
|
3175
3175
|
defaultMatchWidth: "any",
|
|
3176
3176
|
parsePatterns: pc,
|
|
3177
3177
|
defaultParseWidth: "any"
|
|
3178
3178
|
})
|
|
3179
|
-
},
|
|
3179
|
+
}, Qi = {
|
|
3180
3180
|
code: "en-US",
|
|
3181
3181
|
formatDistance: Gl,
|
|
3182
3182
|
formatLong: ql,
|
|
@@ -3192,12 +3192,12 @@ function gc(e, t) {
|
|
|
3192
3192
|
const s = P(e, t?.in);
|
|
3193
3193
|
return kl(s, Rl(s)) + 1;
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3196
|
-
const s = P(e, t?.in), i = +
|
|
3197
|
-
return Math.round(i /
|
|
3195
|
+
function Ui(e, t) {
|
|
3196
|
+
const s = P(e, t?.in), i = +ke(s) - +Al(s);
|
|
3197
|
+
return Math.round(i / Li) + 1;
|
|
3198
3198
|
}
|
|
3199
3199
|
function gs(e, t) {
|
|
3200
|
-
const s = P(e, t?.in), i = s.getFullYear(), r =
|
|
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);
|
|
3201
3201
|
o.setFullYear(i + 1, 0, n), o.setHours(0, 0, 0, 0);
|
|
3202
3202
|
const a = ue(o, t), l = A(t?.in || e, 0);
|
|
3203
3203
|
l.setFullYear(i, 0, n), l.setHours(0, 0, 0, 0);
|
|
@@ -3205,12 +3205,12 @@ function gs(e, t) {
|
|
|
3205
3205
|
return +s >= +a ? i + 1 : +s >= +d ? i : i - 1;
|
|
3206
3206
|
}
|
|
3207
3207
|
function yc(e, t) {
|
|
3208
|
-
const s =
|
|
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
|
|
3211
|
+
function Xi(e, t) {
|
|
3212
3212
|
const s = P(e, t?.in), i = +ue(s, t) - +yc(s, t);
|
|
3213
|
-
return Math.round(i /
|
|
3213
|
+
return Math.round(i / Li) + 1;
|
|
3214
3214
|
}
|
|
3215
3215
|
function _(e, t) {
|
|
3216
3216
|
const s = e < 0 ? "-" : "", i = Math.abs(e).toString().padStart(t, "0");
|
|
@@ -3277,7 +3277,7 @@ const ce = {
|
|
|
3277
3277
|
afternoon: "afternoon",
|
|
3278
3278
|
evening: "evening",
|
|
3279
3279
|
night: "night"
|
|
3280
|
-
},
|
|
3280
|
+
}, Gs = {
|
|
3281
3281
|
// Era
|
|
3282
3282
|
G: function(e, t, s) {
|
|
3283
3283
|
const i = e.getFullYear() > 0 ? 1 : 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 = ji(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 = Xi(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 = Ui(e);
|
|
3469
3469
|
return t === "Io" ? s.ordinalNumber(i, { unit: "week" }) : _(i, t.length);
|
|
3470
3470
|
},
|
|
3471
3471
|
// Day of the month
|
|
@@ -3800,7 +3800,7 @@ const ce = {
|
|
|
3800
3800
|
case "O":
|
|
3801
3801
|
case "OO":
|
|
3802
3802
|
case "OOO":
|
|
3803
|
-
return "GMT" +
|
|
3803
|
+
return "GMT" + Vs(i, ":");
|
|
3804
3804
|
// Long
|
|
3805
3805
|
case "OOOO":
|
|
3806
3806
|
default:
|
|
@@ -3815,7 +3815,7 @@ const ce = {
|
|
|
3815
3815
|
case "z":
|
|
3816
3816
|
case "zz":
|
|
3817
3817
|
case "zzz":
|
|
3818
|
-
return "GMT" +
|
|
3818
|
+
return "GMT" + Vs(i, ":");
|
|
3819
3819
|
// Long
|
|
3820
3820
|
case "zzzz":
|
|
3821
3821
|
default:
|
|
@@ -3832,7 +3832,7 @@ const ce = {
|
|
|
3832
3832
|
return _(+e, t.length);
|
|
3833
3833
|
}
|
|
3834
3834
|
};
|
|
3835
|
-
function
|
|
3835
|
+
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
|
}
|
|
@@ -3843,7 +3843,7 @@ 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 Ns = (e, t) => {
|
|
3847
3847
|
switch (e) {
|
|
3848
3848
|
case "P":
|
|
3849
3849
|
return t.date({ width: "short" });
|
|
@@ -3855,7 +3855,7 @@ const qs = (e, t) => {
|
|
|
3855
3855
|
default:
|
|
3856
3856
|
return t.date({ width: "full" });
|
|
3857
3857
|
}
|
|
3858
|
-
},
|
|
3858
|
+
}, Ki = (e, t) => {
|
|
3859
3859
|
switch (e) {
|
|
3860
3860
|
case "p":
|
|
3861
3861
|
return t.time({ width: "short" });
|
|
@@ -3870,7 +3870,7 @@ const qs = (e, t) => {
|
|
|
3870
3870
|
}, vc = (e, t) => {
|
|
3871
3871
|
const s = e.match(/(P+)(p+)?/) || [], i = s[1], r = s[2];
|
|
3872
3872
|
if (!r)
|
|
3873
|
-
return
|
|
3873
|
+
return Ns(e, t);
|
|
3874
3874
|
let n;
|
|
3875
3875
|
switch (i) {
|
|
3876
3876
|
case "P":
|
|
@@ -3887,15 +3887,15 @@ const qs = (e, t) => {
|
|
|
3887
3887
|
n = t.dateTime({ width: "full" });
|
|
3888
3888
|
break;
|
|
3889
3889
|
}
|
|
3890
|
-
return n.replace("{{date}}",
|
|
3890
|
+
return n.replace("{{date}}", Ns(i, t)).replace("{{time}}", Ki(r, t));
|
|
3891
3891
|
}, Qt = {
|
|
3892
|
-
p:
|
|
3892
|
+
p: Ki,
|
|
3893
3893
|
P: vc
|
|
3894
3894
|
}, bc = /^D+$/, wc = /^Y+$/, xc = ["D", "DD", "YY", "YYYY"];
|
|
3895
|
-
function
|
|
3895
|
+
function Ji(e) {
|
|
3896
3896
|
return bc.test(e);
|
|
3897
3897
|
}
|
|
3898
|
-
function
|
|
3898
|
+
function Zi(e) {
|
|
3899
3899
|
return wc.test(e);
|
|
3900
3900
|
}
|
|
3901
3901
|
function Ut(e, t, s) {
|
|
@@ -3907,9 +3907,9 @@ function _c(e, t, s) {
|
|
|
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
3909
|
const Sc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Cc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Dc = /^'([^]*?)'?$/, Tc = /''/g, $c = /[a-zA-Z]/;
|
|
3910
|
-
function
|
|
3911
|
-
const i =
|
|
3912
|
-
if (!
|
|
3910
|
+
function er(e, t, s) {
|
|
3911
|
+
const i = ze(), r = i.locale ?? Qi, n = i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, a = P(e, s?.in);
|
|
3912
|
+
if (!Yi(a))
|
|
3913
3913
|
throw new RangeError("Invalid time value");
|
|
3914
3914
|
let l = t.match(Cc).map((c) => {
|
|
3915
3915
|
const u = c[0];
|
|
@@ -3924,7 +3924,7 @@ function tr(e, t, s) {
|
|
|
3924
3924
|
const u = c[0];
|
|
3925
3925
|
if (u === "'")
|
|
3926
3926
|
return { isToken: !1, value: Ic(c) };
|
|
3927
|
-
if (
|
|
3927
|
+
if (Gs[u])
|
|
3928
3928
|
return { isToken: !0, value: c };
|
|
3929
3929
|
if (u.match($c))
|
|
3930
3930
|
throw new RangeError(
|
|
@@ -3941,8 +3941,8 @@ function tr(e, t, s) {
|
|
|
3941
3941
|
return l.map((c) => {
|
|
3942
3942
|
if (!c.isToken) return c.value;
|
|
3943
3943
|
const u = c.value;
|
|
3944
|
-
(
|
|
3945
|
-
const y =
|
|
3944
|
+
(Zi(u) || Ji(u)) && Ut(u, t, String(e));
|
|
3945
|
+
const y = Gs[u[0]];
|
|
3946
3946
|
return y(a, u, r.localize, d);
|
|
3947
3947
|
}).join("");
|
|
3948
3948
|
}
|
|
@@ -3951,7 +3951,7 @@ function Ic(e) {
|
|
|
3951
3951
|
return t ? t[1].replace(Tc, "'") : e;
|
|
3952
3952
|
}
|
|
3953
3953
|
function Ec() {
|
|
3954
|
-
return Object.assign({},
|
|
3954
|
+
return Object.assign({}, ze());
|
|
3955
3955
|
}
|
|
3956
3956
|
function Fc(e, t) {
|
|
3957
3957
|
const s = P(e, t?.in).getDay();
|
|
@@ -3970,13 +3970,13 @@ function Mc(e) {
|
|
|
3970
3970
|
return typeof e == "function" && e.prototype?.constructor === e;
|
|
3971
3971
|
}
|
|
3972
3972
|
const Pc = 10;
|
|
3973
|
-
class
|
|
3973
|
+
class tr {
|
|
3974
3974
|
subPriority = 0;
|
|
3975
3975
|
validate(t, s) {
|
|
3976
3976
|
return !0;
|
|
3977
3977
|
}
|
|
3978
3978
|
}
|
|
3979
|
-
class kc extends
|
|
3979
|
+
class kc extends tr {
|
|
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,7 +3987,7 @@ class kc extends sr {
|
|
|
3987
3987
|
return this.setValue(t, s, this.value, i);
|
|
3988
3988
|
}
|
|
3989
3989
|
}
|
|
3990
|
-
class Ac extends
|
|
3990
|
+
class Ac extends tr {
|
|
3991
3991
|
priority = Pc;
|
|
3992
3992
|
subPriority = -1;
|
|
3993
3993
|
constructor(t, s) {
|
|
@@ -4111,7 +4111,7 @@ function ee(e, t) {
|
|
|
4111
4111
|
rest: t.slice(s[0].length)
|
|
4112
4112
|
};
|
|
4113
4113
|
}
|
|
4114
|
-
function
|
|
4114
|
+
function sr(e) {
|
|
4115
4115
|
return T(E.anyDigitsSigned, e);
|
|
4116
4116
|
}
|
|
4117
4117
|
function I(e, t) {
|
|
@@ -4159,7 +4159,7 @@ function ys(e) {
|
|
|
4159
4159
|
return 0;
|
|
4160
4160
|
}
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4162
|
+
function ir(e, t) {
|
|
4163
4163
|
const s = t > 0, i = s ? t : 1 - t;
|
|
4164
4164
|
let r;
|
|
4165
4165
|
if (i <= 50)
|
|
@@ -4170,7 +4170,7 @@ function rr(e, t) {
|
|
|
4170
4170
|
}
|
|
4171
4171
|
return s ? r : 1 - r;
|
|
4172
4172
|
}
|
|
4173
|
-
function
|
|
4173
|
+
function rr(e) {
|
|
4174
4174
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
4175
4175
|
}
|
|
4176
4176
|
class Rc extends x {
|
|
@@ -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 = ir(
|
|
4205
4205
|
i.year,
|
|
4206
4206
|
r
|
|
4207
4207
|
);
|
|
@@ -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 = ir(
|
|
4242
4242
|
i.year,
|
|
4243
4243
|
n
|
|
4244
4244
|
);
|
|
@@ -4274,7 +4274,7 @@ class Gc extends x {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
set(t, s, i) {
|
|
4276
4276
|
const r = A(t, 0);
|
|
4277
|
-
return r.setFullYear(i, 0, 4), r.setHours(0, 0, 0, 0),
|
|
4277
|
+
return r.setFullYear(i, 0, 4), r.setHours(0, 0, 0, 0), ke(r);
|
|
4278
4278
|
}
|
|
4279
4279
|
incompatibleTokens = [
|
|
4280
4280
|
"G",
|
|
@@ -4304,7 +4304,7 @@ class Vc extends x {
|
|
|
4304
4304
|
}
|
|
4305
4305
|
incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
|
|
4306
4306
|
}
|
|
4307
|
-
class
|
|
4307
|
+
class Bc extends x {
|
|
4308
4308
|
priority = 120;
|
|
4309
4309
|
parse(t, s, i) {
|
|
4310
4310
|
switch (s) {
|
|
@@ -4368,7 +4368,7 @@ class Nc extends x {
|
|
|
4368
4368
|
"T"
|
|
4369
4369
|
];
|
|
4370
4370
|
}
|
|
4371
|
-
class
|
|
4371
|
+
class Nc extends x {
|
|
4372
4372
|
priority = 120;
|
|
4373
4373
|
parse(t, s, i) {
|
|
4374
4374
|
switch (s) {
|
|
@@ -4563,7 +4563,7 @@ class Lc extends x {
|
|
|
4563
4563
|
];
|
|
4564
4564
|
}
|
|
4565
4565
|
function Wc(e, t, s) {
|
|
4566
|
-
const i = P(e, s?.in), r =
|
|
4566
|
+
const i = P(e, s?.in), r = Xi(i, s) - t;
|
|
4567
4567
|
return i.setDate(i.getDate() - r * 7), P(i, s?.in);
|
|
4568
4568
|
}
|
|
4569
4569
|
class jc extends x {
|
|
@@ -4601,7 +4601,7 @@ class jc extends x {
|
|
|
4601
4601
|
];
|
|
4602
4602
|
}
|
|
4603
4603
|
function Yc(e, t, s) {
|
|
4604
|
-
const i = P(e, s?.in), r =
|
|
4604
|
+
const i = P(e, s?.in), r = Ui(i, s) - t;
|
|
4605
4605
|
return i.setDate(i.getDate() - r * 7), i;
|
|
4606
4606
|
}
|
|
4607
4607
|
class Qc extends x {
|
|
@@ -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
|
|
4623
|
+
return ke(Yc(t, i));
|
|
4624
4624
|
}
|
|
4625
4625
|
incompatibleTokens = [
|
|
4626
4626
|
"y",
|
|
@@ -4667,7 +4667,7 @@ class Kc extends x {
|
|
|
4667
4667
|
}
|
|
4668
4668
|
}
|
|
4669
4669
|
validate(t, s) {
|
|
4670
|
-
const i = t.getFullYear(), r =
|
|
4670
|
+
const i = t.getFullYear(), r = rr(i), n = t.getMonth();
|
|
4671
4671
|
return r ? s >= 1 && s <= Xc[n] : s >= 1 && s <= Uc[n];
|
|
4672
4672
|
}
|
|
4673
4673
|
set(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 rr(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;
|
|
@@ -4728,8 +4728,8 @@ class Jc extends x {
|
|
|
4728
4728
|
];
|
|
4729
4729
|
}
|
|
4730
4730
|
function vs(e, t, s) {
|
|
4731
|
-
const i =
|
|
4732
|
-
return
|
|
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 Wi(n, c, s);
|
|
4733
4733
|
}
|
|
4734
4734
|
class Zc extends x {
|
|
4735
4735
|
priority = 90;
|
|
@@ -4907,7 +4907,7 @@ class td extends x {
|
|
|
4907
4907
|
}
|
|
4908
4908
|
function sd(e, t, s) {
|
|
4909
4909
|
const i = P(e, s?.in), r = Fc(i, s), n = t - r;
|
|
4910
|
-
return
|
|
4910
|
+
return Wi(i, n, s);
|
|
4911
4911
|
}
|
|
4912
4912
|
class id extends x {
|
|
4913
4913
|
priority = 90;
|
|
@@ -5320,7 +5320,7 @@ class md extends x {
|
|
|
5320
5320
|
class gd extends x {
|
|
5321
5321
|
priority = 40;
|
|
5322
5322
|
parse(t) {
|
|
5323
|
-
return
|
|
5323
|
+
return sr(t);
|
|
5324
5324
|
}
|
|
5325
5325
|
set(t, s, i) {
|
|
5326
5326
|
return [A(t, i * 1e3), { timestampIsSet: !0 }];
|
|
@@ -5330,7 +5330,7 @@ class gd extends x {
|
|
|
5330
5330
|
class yd extends x {
|
|
5331
5331
|
priority = 20;
|
|
5332
5332
|
parse(t) {
|
|
5333
|
-
return
|
|
5333
|
+
return sr(t);
|
|
5334
5334
|
}
|
|
5335
5335
|
set(t, s, i) {
|
|
5336
5336
|
return [A(t, i), { timestampIsSet: !0 }];
|
|
@@ -5343,8 +5343,8 @@ const vd = {
|
|
|
5343
5343
|
Y: new zc(),
|
|
5344
5344
|
R: new Gc(),
|
|
5345
5345
|
u: new Vc(),
|
|
5346
|
-
Q: new
|
|
5347
|
-
q: new
|
|
5346
|
+
Q: new Bc(),
|
|
5347
|
+
q: new Nc(),
|
|
5348
5348
|
M: new qc(),
|
|
5349
5349
|
L: new Lc(),
|
|
5350
5350
|
w: new jc(),
|
|
@@ -5371,7 +5371,7 @@ const vd = {
|
|
|
5371
5371
|
T: new yd()
|
|
5372
5372
|
}, bd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, wd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xd = /^'([^]*?)'?$/, _d = /''/g, Sd = /\S/, Cd = /[a-zA-Z]/;
|
|
5373
5373
|
function Dd(e, t, s, i) {
|
|
5374
|
-
const r = () => A(s, NaN), n = Ec(), o = n.locale ??
|
|
5374
|
+
const r = () => A(s, NaN), n = Ec(), o = n.locale ?? Qi, 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
|
|
@@ -5384,7 +5384,7 @@ function Dd(e, t, s, i) {
|
|
|
5384
5384
|
return p;
|
|
5385
5385
|
}).join("").match(bd), y = [];
|
|
5386
5386
|
for (let p of u) {
|
|
5387
|
-
|
|
5387
|
+
Zi(p) && Ut(p, t, e), Ji(p) && Ut(p, t, e);
|
|
5388
5388
|
const b = p[0], g = vd[b];
|
|
5389
5389
|
if (g) {
|
|
5390
5390
|
const { incompatibleTokens: w } = g;
|
|
@@ -5440,20 +5440,20 @@ function Dd(e, t, s, i) {
|
|
|
5440
5440
|
function Td(e) {
|
|
5441
5441
|
return e.match(xd)[1].replace(_d, "'");
|
|
5442
5442
|
}
|
|
5443
|
-
const
|
|
5444
|
-
if (!e) return
|
|
5443
|
+
const qs = 88, $d = 64, Id = 44, Ed = (e) => {
|
|
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
|
|
5446
|
+
return qs + (t + i) * $d + s.length * Id;
|
|
5447
5447
|
}, Fd = ":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
|
|
5451
5451
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5452
5452
|
*/
|
|
5453
|
-
const
|
|
5453
|
+
const Le = (e, t) => {
|
|
5454
5454
|
const s = e._$AN;
|
|
5455
5455
|
if (s === void 0) return !1;
|
|
5456
|
-
for (const i of s) i._$AO?.(t, !1),
|
|
5456
|
+
for (const i of s) i._$AO?.(t, !1), Le(i, t);
|
|
5457
5457
|
return !0;
|
|
5458
5458
|
}, dt = (e) => {
|
|
5459
5459
|
let t, s;
|
|
@@ -5461,7 +5461,7 @@ const We = (e, t) => {
|
|
|
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
|
+
}, nr = (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();
|
|
@@ -5470,13 +5470,13 @@ const We = (e, t) => {
|
|
|
5470
5470
|
}
|
|
5471
5471
|
};
|
|
5472
5472
|
function Od(e) {
|
|
5473
|
-
this._$AN !== void 0 ? (dt(this), this._$AM = e,
|
|
5473
|
+
this._$AN !== void 0 ? (dt(this), this._$AM = e, nr(this)) : this._$AM = e;
|
|
5474
5474
|
}
|
|
5475
5475
|
function Md(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++)
|
|
5478
|
-
else i != null && (
|
|
5479
|
-
else
|
|
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), dt(i[n]);
|
|
5478
|
+
else i != null && (Le(i, !1), dt(i));
|
|
5479
|
+
else Le(this, e);
|
|
5480
5480
|
}
|
|
5481
5481
|
const Pd = (e) => {
|
|
5482
5482
|
e.type == Or.CHILD && (e._$AP ??= Md, e._$AQ ??= Od);
|
|
@@ -5486,10 +5486,10 @@ class kd extends Er {
|
|
|
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), nr(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 && (
|
|
5492
|
+
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), s && (Le(this, t), dt(this));
|
|
5493
5493
|
}
|
|
5494
5494
|
setValue(t) {
|
|
5495
5495
|
if (Fr(this.t)) this.t._$AI(t, this);
|
|
@@ -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(), or = Mr(class extends kd {
|
|
5507
5507
|
render(e) {
|
|
5508
5508
|
return M;
|
|
5509
5509
|
}
|
|
@@ -5549,13 +5549,13 @@ Xt.styles = L`
|
|
|
5549
5549
|
Xt = zd([
|
|
5550
5550
|
j("activity-history-is-grouping-busy")
|
|
5551
5551
|
], Xt);
|
|
5552
|
-
function
|
|
5552
|
+
function ar(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
|
+
}, lr = (e) => {
|
|
5559
5559
|
const t = e?.items.map((i) => ({
|
|
5560
5560
|
type: "item",
|
|
5561
5561
|
date: new Date(i.date),
|
|
@@ -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
|
-
${
|
|
5586
|
-
data-date=${
|
|
5587
|
-
${
|
|
5585
|
+
${or(e._measureElement)}
|
|
5586
|
+
data-date=${Xs(s?.items[0]?.date || s?.subGroups[0]?.items[0]?.date)}>
|
|
5587
|
+
${Bd(e, s?.items[0] || s?.subGroups[0]?.items[0], s)}
|
|
5588
5588
|
<div class="visit__items">
|
|
5589
5589
|
${oe(
|
|
5590
|
-
|
|
5590
|
+
lr(s),
|
|
5591
5591
|
(i) => i.type === "item" ? i.item.id : i.subGroup.id,
|
|
5592
5592
|
(i) => {
|
|
5593
5593
|
if (i.type === "item") {
|
|
@@ -5643,11 +5643,11 @@ ${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}`, Bd = (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>${er(new Date(t.date), "dd/MM/yyyy")}</div>
|
|
5651
5651
|
</div>
|
|
5652
5652
|
<div class="title-description">
|
|
5653
5653
|
<div>
|
|
@@ -5656,7 +5656,7 @@ ${e.searchString?.length > 1 ? h`
|
|
|
5656
5656
|
</div>
|
|
5657
5657
|
</div>
|
|
5658
5658
|
</div>
|
|
5659
|
-
` : M,
|
|
5659
|
+
` : M, Nd = (e) => {
|
|
5660
5660
|
if (e) {
|
|
5661
5661
|
for (const t of e.items || [])
|
|
5662
5662
|
if (t.service?.id) return t.service;
|
|
@@ -5666,9 +5666,9 @@ ${e.searchString?.length > 1 ? h`
|
|
|
5666
5666
|
}
|
|
5667
5667
|
}, qd = (e, t, s) => {
|
|
5668
5668
|
if (!t.professional) return M;
|
|
5669
|
-
const i =
|
|
5669
|
+
const i = ar(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 : Nd(s);
|
|
5672
5672
|
return n?.description && r.push(e.highlighted(n.description)), r.map((o, a) => h`${o}${a < r.length - 1 ? " | " : ""}`);
|
|
5673
5673
|
}, Ld = (e) => e && h`
|
|
5674
5674
|
<div class="diagnostics__header">
|
|
@@ -5712,7 +5712,7 @@ function Ee(e, t, s) {
|
|
|
5712
5712
|
i = a;
|
|
5713
5713
|
}, o;
|
|
5714
5714
|
}
|
|
5715
|
-
function
|
|
5715
|
+
function Ls(e, t) {
|
|
5716
5716
|
if (e === void 0)
|
|
5717
5717
|
throw new Error("Unexpected undefined");
|
|
5718
5718
|
return e;
|
|
@@ -5722,7 +5722,7 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5722
5722
|
return function(...r) {
|
|
5723
5723
|
e.clearTimeout(i), i = e.setTimeout(() => t.apply(this, r), s);
|
|
5724
5724
|
};
|
|
5725
|
-
},
|
|
5725
|
+
}, Ws = (e) => {
|
|
5726
5726
|
const { offsetWidth: t, offsetHeight: s } = e;
|
|
5727
5727
|
return { width: t, height: s };
|
|
5728
5728
|
}, Yd = (e) => e, Qd = (e) => {
|
|
@@ -5741,7 +5741,7 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5741
5741
|
const { width: a, height: l } = o;
|
|
5742
5742
|
t({ width: Math.round(a), height: Math.round(l) });
|
|
5743
5743
|
};
|
|
5744
|
-
if (r(
|
|
5744
|
+
if (r(Ws(s)), !i.ResizeObserver)
|
|
5745
5745
|
return () => {
|
|
5746
5746
|
};
|
|
5747
5747
|
const n = new i.ResizeObserver((o) => {
|
|
@@ -5754,16 +5754,16 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5754
5754
|
return;
|
|
5755
5755
|
}
|
|
5756
5756
|
}
|
|
5757
|
-
r(
|
|
5757
|
+
r(Ws(s));
|
|
5758
5758
|
};
|
|
5759
5759
|
e.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(a) : a();
|
|
5760
5760
|
});
|
|
5761
5761
|
return n.observe(s, { box: "border-box" }), () => {
|
|
5762
5762
|
n.unobserve(s);
|
|
5763
5763
|
};
|
|
5764
|
-
},
|
|
5764
|
+
}, js = {
|
|
5765
5765
|
passive: !0
|
|
5766
|
-
},
|
|
5766
|
+
}, Ys = typeof window > "u" ? !0 : "onscrollend" in window, Xd = (e, t) => {
|
|
5767
5767
|
const s = e.scrollElement;
|
|
5768
5768
|
if (!s)
|
|
5769
5769
|
return;
|
|
@@ -5771,7 +5771,7 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5771
5771
|
if (!i)
|
|
5772
5772
|
return;
|
|
5773
5773
|
let r = 0;
|
|
5774
|
-
const n = e.options.useScrollendEvent &&
|
|
5774
|
+
const n = e.options.useScrollendEvent && Ys ? () => {
|
|
5775
5775
|
} : jd(
|
|
5776
5776
|
i,
|
|
5777
5777
|
() => {
|
|
@@ -5782,9 +5782,9 @@ const Wd = (e, t) => Math.abs(e - t) < 1.01, jd = (e, t, s) => {
|
|
|
5782
5782
|
const { horizontal: u, isRtl: y } = e.options;
|
|
5783
5783
|
r = u ? s.scrollLeft * (y && -1 || 1) : s.scrollTop, n(), t(r, c);
|
|
5784
5784
|
}, a = o(!0), l = o(!1);
|
|
5785
|
-
s.addEventListener("scroll", a,
|
|
5786
|
-
const d = e.options.useScrollendEvent &&
|
|
5787
|
-
return d && s.addEventListener("scrollend", l,
|
|
5785
|
+
s.addEventListener("scroll", a, js);
|
|
5786
|
+
const d = e.options.useScrollendEvent && Ys;
|
|
5787
|
+
return d && s.addEventListener("scrollend", l, js), () => {
|
|
5788
5788
|
s.removeEventListener("scroll", a), d && s.removeEventListener("scrollend", l);
|
|
5789
5789
|
};
|
|
5790
5790
|
}, Kd = (e, t, s) => {
|
|
@@ -6109,11 +6109,11 @@ class Zd {
|
|
|
6109
6109
|
), this.getVirtualItemForOffset = (s) => {
|
|
6110
6110
|
const i = this.getMeasurements();
|
|
6111
6111
|
if (i.length !== 0)
|
|
6112
|
-
return
|
|
6113
|
-
i[
|
|
6112
|
+
return Ls(
|
|
6113
|
+
i[cr(
|
|
6114
6114
|
0,
|
|
6115
6115
|
i.length - 1,
|
|
6116
|
-
(r) =>
|
|
6116
|
+
(r) => Ls(i[r]).start,
|
|
6117
6117
|
s
|
|
6118
6118
|
)]
|
|
6119
6119
|
);
|
|
@@ -6245,7 +6245,7 @@ class Zd {
|
|
|
6245
6245
|
this.scheduleScrollReconcile();
|
|
6246
6246
|
}
|
|
6247
6247
|
}
|
|
6248
|
-
const
|
|
6248
|
+
const cr = (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)
|
|
@@ -6269,7 +6269,7 @@ function eu({
|
|
|
6269
6269
|
startIndex: 0,
|
|
6270
6270
|
endIndex: r
|
|
6271
6271
|
};
|
|
6272
|
-
let o =
|
|
6272
|
+
let o = cr(
|
|
6273
6273
|
0,
|
|
6274
6274
|
r,
|
|
6275
6275
|
n,
|
|
@@ -6297,7 +6297,7 @@ const tu = (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 dr {
|
|
6301
6301
|
constructor(t) {
|
|
6302
6302
|
this._lastVisibleState = { virtualItems: [], totalHeight: 0 }, this._savedScrollTop = 0, this._viewportWasHidden = !1, this._options = t;
|
|
6303
6303
|
}
|
|
@@ -6469,7 +6469,7 @@ 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 dr({
|
|
6473
6473
|
items: this.historyGroups || [],
|
|
6474
6474
|
overscan: 8,
|
|
6475
6475
|
estimateItemHeight: (e) => Ed(this.historyGroups?.[e])
|
|
@@ -6541,7 +6541,7 @@ const ru = (e) => {
|
|
|
6541
6541
|
</div>
|
|
6542
6542
|
`;
|
|
6543
6543
|
}, nu = ".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 ou = Object.defineProperty, au = Object.getOwnPropertyDescriptor,
|
|
6544
|
+
var ou = Object.defineProperty, au = Object.getOwnPropertyDescriptor, Ge = (e, t, s, i) => {
|
|
6545
6545
|
for (var r = i > 1 ? void 0 : i ? au(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
6547
|
return i && r && ou(t, s, r), r;
|
|
@@ -6554,22 +6554,22 @@ let he = class extends W {
|
|
|
6554
6554
|
he.styles = L`
|
|
6555
6555
|
${q(nu)}
|
|
6556
6556
|
`;
|
|
6557
|
-
|
|
6557
|
+
Ge([
|
|
6558
6558
|
S(Dt)
|
|
6559
6559
|
], he.prototype, "searchString", 2);
|
|
6560
|
-
|
|
6560
|
+
Ge([
|
|
6561
6561
|
S(ya)
|
|
6562
6562
|
], he.prototype, "areCustomFiltersActive", 2);
|
|
6563
|
-
|
|
6563
|
+
Ge([
|
|
6564
6564
|
S(ma)
|
|
6565
6565
|
], he.prototype, "areCommonFiltersActive", 2);
|
|
6566
|
-
|
|
6566
|
+
Ge([
|
|
6567
6567
|
S(va)
|
|
6568
6568
|
], he.prototype, "areDiagnosticFiltersActive", 2);
|
|
6569
|
-
|
|
6569
|
+
Ge([
|
|
6570
6570
|
S(Ta)
|
|
6571
6571
|
], he.prototype, "areGlobalFiltersActive", 2);
|
|
6572
|
-
he =
|
|
6572
|
+
he = Ge([
|
|
6573
6573
|
j("active-filters-header")
|
|
6574
6574
|
], he);
|
|
6575
6575
|
const lu = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;height:100%;justify-content:center}", cu = (e) => h`
|
|
@@ -6583,16 +6583,16 @@ 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
|
+
`, ur = (e) => e.activityHistoryCollections.error.length > 0, uu = (e) => {
|
|
6587
6587
|
const t = e.activityHistoryCollections.collections;
|
|
6588
6588
|
return Object.values(t).every((s) => !s.items || s.items.length === 0);
|
|
6589
|
-
}, hu = (e) => !_t(e) &&
|
|
6589
|
+
}, hu = (e) => !_t(e) && ur(e) && uu(e), hr = (e) => e.activityHistoryCollections.error;
|
|
6590
6590
|
var fu = Object.defineProperty, pu = Object.getOwnPropertyDescriptor, $t = (e, t, s, i) => {
|
|
6591
6591
|
for (var r = i > 1 ? void 0 : i ? pu(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
6593
|
return i && r && fu(t, s, r), r;
|
|
6594
6594
|
};
|
|
6595
|
-
let
|
|
6595
|
+
let Ae = class extends W {
|
|
6596
6596
|
constructor() {
|
|
6597
6597
|
super(...arguments), this.errorMessages = [];
|
|
6598
6598
|
}
|
|
@@ -6603,21 +6603,21 @@ let He = class extends W {
|
|
|
6603
6603
|
this.api.broker.send(new ns(this.errorMessages));
|
|
6604
6604
|
}
|
|
6605
6605
|
};
|
|
6606
|
-
|
|
6606
|
+
Ae.styles = L`
|
|
6607
6607
|
${q(lu)}
|
|
6608
6608
|
`;
|
|
6609
6609
|
$t([
|
|
6610
6610
|
S(hu)
|
|
6611
|
-
],
|
|
6611
|
+
], Ae.prototype, "isAllDataFailedToLoad", 2);
|
|
6612
6612
|
$t([
|
|
6613
|
-
S(
|
|
6614
|
-
],
|
|
6613
|
+
S(hr)
|
|
6614
|
+
], Ae.prototype, "errorMessages", 2);
|
|
6615
6615
|
$t([
|
|
6616
6616
|
De(V.primaryApi)
|
|
6617
|
-
],
|
|
6618
|
-
|
|
6617
|
+
], Ae.prototype, "api", 2);
|
|
6618
|
+
Ae = $t([
|
|
6619
6619
|
j("activity-history-full-data-error")
|
|
6620
|
-
],
|
|
6620
|
+
], Ae);
|
|
6621
6621
|
const mu = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;padding-top:16px;padding-inline:16px}", gu = (e) => {
|
|
6622
6622
|
const t = e.getCombinedMessage();
|
|
6623
6623
|
return h`
|
|
@@ -6633,7 +6633,7 @@ var vu = Object.defineProperty, bu = Object.getOwnPropertyDescriptor, It = (e, t
|
|
|
6633
6633
|
(o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
|
|
6634
6634
|
return i && r && vu(t, s, r), r;
|
|
6635
6635
|
};
|
|
6636
|
-
let
|
|
6636
|
+
let He = class extends W {
|
|
6637
6637
|
constructor() {
|
|
6638
6638
|
super(...arguments), this.errorMessages = [];
|
|
6639
6639
|
}
|
|
@@ -6648,34 +6648,34 @@ let Re = class extends W {
|
|
|
6648
6648
|
return t.length > 0 ? `${e} ${t[0]}${t.length > 1 ? ` i ${t.slice(1).join(" i ")}` : ""}` : e;
|
|
6649
6649
|
}
|
|
6650
6650
|
};
|
|
6651
|
-
|
|
6651
|
+
He.styles = L`
|
|
6652
6652
|
${q(mu)}
|
|
6653
6653
|
`;
|
|
6654
6654
|
It([
|
|
6655
|
-
S(
|
|
6656
|
-
],
|
|
6655
|
+
S(ur)
|
|
6656
|
+
], He.prototype, "isErrorOccurred", 2);
|
|
6657
6657
|
It([
|
|
6658
|
-
S(
|
|
6659
|
-
],
|
|
6658
|
+
S(hr)
|
|
6659
|
+
], He.prototype, "errorMessages", 2);
|
|
6660
6660
|
It([
|
|
6661
6661
|
De(V.primaryApi)
|
|
6662
|
-
],
|
|
6663
|
-
|
|
6662
|
+
], He.prototype, "api", 2);
|
|
6663
|
+
He = It([
|
|
6664
6664
|
j("activity-history-partial-data-error")
|
|
6665
|
-
],
|
|
6665
|
+
], He);
|
|
6666
6666
|
const { clearActivityHistoryCollections: wu } = pe.actions;
|
|
6667
6667
|
class xu extends me {
|
|
6668
6668
|
async handle() {
|
|
6669
6669
|
this.store.dispatch(re.actions.clearCustomFilters()), this.store.dispatch(wu()), this.api.broker.publish(this.api.broker.events.activityHistory.refreshDataRequested);
|
|
6670
6670
|
}
|
|
6671
6671
|
}
|
|
6672
|
-
class
|
|
6672
|
+
class fr {
|
|
6673
6673
|
}
|
|
6674
|
-
let
|
|
6674
|
+
let pr;
|
|
6675
6675
|
const _u = (e) => {
|
|
6676
|
-
Su(),
|
|
6676
|
+
Su(), pr = e.registerRequest(fr, xu);
|
|
6677
6677
|
}, Su = () => {
|
|
6678
|
-
|
|
6678
|
+
pr?.dispose();
|
|
6679
6679
|
}, { removeActivityHistoryItem: Cu } = pe.actions;
|
|
6680
6680
|
class Du extends Te {
|
|
6681
6681
|
async handle(t) {
|
|
@@ -6691,11 +6691,11 @@ class Du extends Te {
|
|
|
6691
6691
|
}
|
|
6692
6692
|
}
|
|
6693
6693
|
}
|
|
6694
|
-
let
|
|
6694
|
+
let mr;
|
|
6695
6695
|
const Tu = (e) => {
|
|
6696
|
-
|
|
6696
|
+
mr = e.registerRequest("remove_history_item_request", Du);
|
|
6697
6697
|
}, $u = () => {
|
|
6698
|
-
|
|
6698
|
+
mr?.dispose();
|
|
6699
6699
|
}, { setSearchString: Iu } = re.actions;
|
|
6700
6700
|
class Eu extends me {
|
|
6701
6701
|
async handle(t) {
|
|
@@ -6718,7 +6718,7 @@ class ut {
|
|
|
6718
6718
|
const Fu = ".search-header{color:var(--color-neutral-900);font-weight:600}", Ou = (e) => h`<div class="search-header">
|
|
6719
6719
|
${v("searchBarResults")} “${e.searchQuery}”
|
|
6720
6720
|
</div>`;
|
|
6721
|
-
var Mu = Object.defineProperty, Pu = Object.getOwnPropertyDescriptor,
|
|
6721
|
+
var Mu = Object.defineProperty, Pu = Object.getOwnPropertyDescriptor, gr = (e, t, s, i) => {
|
|
6722
6722
|
for (var r = i > 1 ? void 0 : i ? Pu(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
6724
|
return i && r && Mu(t, s, r), r;
|
|
@@ -6734,17 +6734,17 @@ let ht = class extends W {
|
|
|
6734
6734
|
ht.styles = L`
|
|
6735
6735
|
${q(Fu)}
|
|
6736
6736
|
`;
|
|
6737
|
-
|
|
6737
|
+
gr([
|
|
6738
6738
|
K()
|
|
6739
6739
|
], ht.prototype, "searchQuery", 2);
|
|
6740
|
-
ht =
|
|
6740
|
+
ht = gr([
|
|
6741
6741
|
j("activity-history-search-results")
|
|
6742
6742
|
], ht);
|
|
6743
6743
|
const ku = ".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}", Au = (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 Hu = Object.defineProperty, Ru = Object.getOwnPropertyDescriptor,
|
|
6747
|
+
var Hu = Object.defineProperty, Ru = Object.getOwnPropertyDescriptor, yr = (e, t, s, i) => {
|
|
6748
6748
|
for (var r = i > 1 ? void 0 : i ? Ru(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
6750
|
return i && r && Hu(t, s, r), r;
|
|
@@ -6764,10 +6764,10 @@ let ft = class extends W {
|
|
|
6764
6764
|
ft.styles = L`
|
|
6765
6765
|
${q(ku)}
|
|
6766
6766
|
`;
|
|
6767
|
-
|
|
6767
|
+
yr([
|
|
6768
6768
|
K()
|
|
6769
6769
|
], ft.prototype, "searchQuery", 2);
|
|
6770
|
-
ft =
|
|
6770
|
+
ft = yr([
|
|
6771
6771
|
j("activity-history-search-bar")
|
|
6772
6772
|
], ft);
|
|
6773
6773
|
const zu = ":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}", Gu = (e) => {
|
|
@@ -6778,7 +6778,7 @@ 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
|
-
}, Vu = (e, t) => e === "" ?
|
|
6781
|
+
}, Vu = (e, t) => e === "" ? Bu(t) : e, Bu = (e) => `${v("chipHeader.without")} ${e.toLowerCase()}`, Ke = 5, Qs = (e, t, s, i) => h`
|
|
6782
6782
|
<dss-chip
|
|
6783
6783
|
label=${Vu(s.title, t.title)}
|
|
6784
6784
|
size="sm"
|
|
@@ -6787,7 +6787,7 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
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
|
+
`, Nu = (e, t) => h`
|
|
6791
6791
|
<dss-chip
|
|
6792
6792
|
label=${e.title}
|
|
6793
6793
|
size="sm"
|
|
@@ -6833,7 +6833,7 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6833
6833
|
let d = !1, c = !1;
|
|
6834
6834
|
for (const u of l) {
|
|
6835
6835
|
const y = qu(u.codi, u.descripcio, e);
|
|
6836
|
-
s <
|
|
6836
|
+
s < Ke ? (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
|
}
|
|
@@ -6844,25 +6844,25 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6844
6844
|
];
|
|
6845
6845
|
let y = !1, f = !1;
|
|
6846
6846
|
for (const m of u)
|
|
6847
|
-
s <
|
|
6847
|
+
s < Ke ? (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 = Nu(a, e);
|
|
6851
|
+
s < Ke ? (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 < Ke ? (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)) {
|
|
6860
|
-
f.enabled && y(
|
|
6860
|
+
f.enabled && y(Qs(l, f, { id: null, title: f.title }, e));
|
|
6861
6861
|
continue;
|
|
6862
6862
|
}
|
|
6863
6863
|
for (const m of new Set(f.enabledValues ?? [])) {
|
|
6864
6864
|
const D = f.options.find((p) => p.id === m);
|
|
6865
|
-
y(
|
|
6865
|
+
y(Qs(l, f, { id: m, title: D?.title || m }, e));
|
|
6866
6866
|
}
|
|
6867
6867
|
}
|
|
6868
6868
|
}
|
|
@@ -6891,7 +6891,7 @@ const zu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6891
6891
|
</div>
|
|
6892
6892
|
`;
|
|
6893
6893
|
};
|
|
6894
|
-
var Yu = Object.defineProperty, Qu = Object.getOwnPropertyDescriptor,
|
|
6894
|
+
var Yu = Object.defineProperty, Qu = Object.getOwnPropertyDescriptor, Ve = (e, t, s, i) => {
|
|
6895
6895
|
for (var r = i > 1 ? void 0 : i ? Qu(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
6897
|
return i && r && Yu(t, s, r), r;
|
|
@@ -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 Ri({ 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,40 +6930,40 @@ 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 Ni());
|
|
6934
6934
|
}
|
|
6935
6935
|
};
|
|
6936
6936
|
fe.styles = L`
|
|
6937
6937
|
${q(zu)}
|
|
6938
6938
|
`;
|
|
6939
|
-
|
|
6939
|
+
Ve([
|
|
6940
6940
|
De(V.primaryApi)
|
|
6941
6941
|
], fe.prototype, "api", 2);
|
|
6942
|
-
|
|
6943
|
-
S(
|
|
6942
|
+
Ve([
|
|
6943
|
+
S(Ii)
|
|
6944
6944
|
], fe.prototype, "enabledCommonFilters", 2);
|
|
6945
|
-
|
|
6946
|
-
S(
|
|
6945
|
+
Ve([
|
|
6946
|
+
S(Oi)
|
|
6947
6947
|
], fe.prototype, "customFilterGroups", 2);
|
|
6948
|
-
|
|
6949
|
-
S(
|
|
6948
|
+
Ve([
|
|
6949
|
+
S(Ei)
|
|
6950
6950
|
], fe.prototype, "diagnosticFilterEnabled", 2);
|
|
6951
|
-
|
|
6951
|
+
Ve([
|
|
6952
6952
|
S(us)
|
|
6953
6953
|
], fe.prototype, "activeGlobalFilters", 2);
|
|
6954
|
-
fe =
|
|
6954
|
+
fe = Ve([
|
|
6955
6955
|
j("active-filters-badges")
|
|
6956
6956
|
], fe);
|
|
6957
|
-
let
|
|
6957
|
+
let vr;
|
|
6958
6958
|
const Uu = (e) => {
|
|
6959
|
-
|
|
6959
|
+
vr = e.registerRequest(ut, Eu);
|
|
6960
6960
|
}, Xu = () => {
|
|
6961
|
-
|
|
6961
|
+
vr?.dispose();
|
|
6962
6962
|
}, { updateActivityHistoryItem: Ku } = pe.actions;
|
|
6963
6963
|
class Ju extends Te {
|
|
6964
6964
|
async handle(t) {
|
|
6965
6965
|
try {
|
|
6966
|
-
|
|
6966
|
+
vi([t.item]), this.store.dispatch(
|
|
6967
6967
|
Ku({
|
|
6968
6968
|
id: t.entityId,
|
|
6969
6969
|
item: t.item
|
|
@@ -6974,17 +6974,17 @@ class Ju extends Te {
|
|
|
6974
6974
|
}
|
|
6975
6975
|
}
|
|
6976
6976
|
}
|
|
6977
|
-
let
|
|
6977
|
+
let br;
|
|
6978
6978
|
const Zu = (e) => {
|
|
6979
|
-
|
|
6979
|
+
br = e.registerRequest("update_history_item_request", Ju);
|
|
6980
6980
|
}, eh = () => {
|
|
6981
|
-
|
|
6981
|
+
br?.dispose();
|
|
6982
6982
|
};
|
|
6983
6983
|
let U;
|
|
6984
6984
|
const th = (e) => {
|
|
6985
|
-
U = Rr(e, Se), po(U, e), Co(U, e), Io(U, e), Ho(U), _u(U), Zu(U),
|
|
6985
|
+
U = Rr(e, Se), po(U, e), Co(U, e), Io(U, e), Ho(U), _u(U), Zu(U), No(U), Tl(U, e), Uu(U), Tu(U);
|
|
6986
6986
|
}, sh = () => {
|
|
6987
|
-
mo(), Do(), Eo(),
|
|
6987
|
+
mo(), Do(), Eo(), Si(), eh(), qo(), $l(), Xu(), $u();
|
|
6988
6988
|
}, ih = "activity-history", rh = async (e) => {
|
|
6989
6989
|
const t = (s) => Promise.all(
|
|
6990
6990
|
s.map(async (i) => ({
|
|
@@ -7004,7 +7004,7 @@ const th = (e) => {
|
|
|
7004
7004
|
)
|
|
7005
7005
|
}))
|
|
7006
7006
|
);
|
|
7007
|
-
},
|
|
7007
|
+
}, wr = {
|
|
7008
7008
|
virtualItems: [],
|
|
7009
7009
|
totalHeight: 0
|
|
7010
7010
|
};
|
|
@@ -7012,10 +7012,10 @@ class nh {
|
|
|
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 dr({
|
|
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() ?? wr;
|
|
7019
7019
|
}
|
|
7020
7020
|
teardown() {
|
|
7021
7021
|
this._cleanup?.(), this._cleanup = void 0, this._scroller = void 0, this._lastViewport = void 0;
|
|
@@ -7038,14 +7038,14 @@ const oh = (e) => {
|
|
|
7038
7038
|
}, dh = (e) => {
|
|
7039
7039
|
const t = e.items?.[0] || e.subGroups?.[0]?.items?.[0];
|
|
7040
7040
|
return ah(t);
|
|
7041
|
-
},
|
|
7041
|
+
}, xr = (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
|
-
}), uh = (e, t) =>
|
|
7046
|
-
const r = e.map((a) =>
|
|
7047
|
-
return !n && !o ? r : r.map((a) => n && dh(a) ? a : o ? uh(a, s) : null).filter((a) => a !== null &&
|
|
7048
|
-
},
|
|
7045
|
+
}), uh = (e, t) => xr(e, (s) => lh(s, t)), Us = (e) => e.items.length > 0 || e.subGroups.length > 0, hh = (e, { todayOnly: t, diagnosticCodes: s }, i = {}) => {
|
|
7046
|
+
const r = e.map((a) => xr(a, (l) => ch(l, i))).filter(Us), n = t, o = s.length > 0;
|
|
7047
|
+
return !n && !o ? r : r.map((a) => n && dh(a) ? a : o ? uh(a, s) : null).filter((a) => a !== null && Us(a));
|
|
7048
|
+
}, Je = (e) => {
|
|
7049
7049
|
const t = [];
|
|
7050
7050
|
for (const s of e) {
|
|
7051
7051
|
for (const i of s.items || []) t.push(i);
|
|
@@ -7053,29 +7053,31 @@ const oh = (e) => {
|
|
|
7053
7053
|
for (const r of i.items) t.push(r);
|
|
7054
7054
|
}
|
|
7055
7055
|
return t;
|
|
7056
|
-
}, fh = ":host{display:block;
|
|
7056
|
+
}, fh = ":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}", _r = (e) => ({
|
|
7057
7057
|
checked: e === "all",
|
|
7058
7058
|
indeterminate: e === "some"
|
|
7059
7059
|
}), ph = (e) => {
|
|
7060
|
-
const t =
|
|
7060
|
+
const t = _r(e.allState());
|
|
7061
7061
|
return h`
|
|
7062
|
-
<
|
|
7063
|
-
|
|
7064
|
-
|
|
7062
|
+
<dss-accordion
|
|
7063
|
+
accordionstyle="box"
|
|
7064
|
+
titletext="${v("importer.title")}"
|
|
7065
|
+
widget
|
|
7066
|
+
widgetBadgeText="${e.totalCount}"
|
|
7067
|
+
widgetBadgeState="info"
|
|
7068
|
+
.isOpen=${!0}
|
|
7069
|
+
>
|
|
7070
|
+
<div class="importer">${mh(e)} ${gh(e, t)} ${yh(e)}</div>
|
|
7071
|
+
</dss-accordion>
|
|
7065
7072
|
`;
|
|
7066
7073
|
}, mh = (e) => h`
|
|
7067
|
-
<div class="importer__header">
|
|
7068
|
-
<dss-typography tag="h4" variant="subtitle-3">${v("importer.title")}</dss-typography>
|
|
7069
|
-
<dss-badge text="${e.totalCount}" state="info" size="sm" outlined hideIcon></dss-badge>
|
|
7070
|
-
</div>
|
|
7071
|
-
`, gh = (e) => h`
|
|
7072
7074
|
<div class="importer__search">
|
|
7073
7075
|
<activity-history-search-bar
|
|
7074
7076
|
.searchString=${e.searchString}
|
|
7075
7077
|
@onSearchChange=${(t) => e._onSearchChange(t)}
|
|
7076
7078
|
></activity-history-search-bar>
|
|
7077
7079
|
</div>
|
|
7078
|
-
`,
|
|
7080
|
+
`, gh = (e, t) => h`
|
|
7079
7081
|
<div class="importer__filters">
|
|
7080
7082
|
<dss-form-checkbox
|
|
7081
7083
|
label=${v("importer.selectAll")}
|
|
@@ -7093,19 +7095,14 @@ const oh = (e) => {
|
|
|
7093
7095
|
></dss-form-checkbox>
|
|
7094
7096
|
|
|
7095
7097
|
${e.hasDiagnosticsFilter() ? h`
|
|
7096
|
-
<dss-form-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
dropdownFixed
|
|
7102
|
-
placeholder="${v("importer.diagnostics")}"
|
|
7103
|
-
.elements=${e.diagnosticsOptions()}
|
|
7104
|
-
@value-changed=${(s) => e._onDiagnosticsChanged(s)}
|
|
7105
|
-
></dss-form-select>
|
|
7098
|
+
<dss-form-checkbox
|
|
7099
|
+
label=${v("importer.diagnostics")}
|
|
7100
|
+
.checked=${e.diagnosticsOnly}
|
|
7101
|
+
@change=${(s) => e._onToggleDiagnostics(s)}
|
|
7102
|
+
></dss-form-checkbox>
|
|
7106
7103
|
` : M}
|
|
7107
7104
|
</div>
|
|
7108
|
-
`,
|
|
7105
|
+
`, yh = (e) => e.filteredGroups?.length ? h`
|
|
7109
7106
|
<div class="virtual-container">
|
|
7110
7107
|
<div class="virtual-viewport">
|
|
7111
7108
|
<div class="virtual-content" style="height: ${e._totalHeight}px;">
|
|
@@ -7113,70 +7110,64 @@ const oh = (e) => {
|
|
|
7113
7110
|
${oe(
|
|
7114
7111
|
e._visibleRows,
|
|
7115
7112
|
(t) => t.group.idGroup,
|
|
7116
|
-
(t) =>
|
|
7113
|
+
(t) => vh(e, t.group, t.index)
|
|
7117
7114
|
)}
|
|
7118
7115
|
</div>
|
|
7119
7116
|
</div>
|
|
7120
7117
|
</div>
|
|
7121
7118
|
</div>
|
|
7122
|
-
` : h`<div class="importer__empty">${v("importer.noResults")}</div>`,
|
|
7123
|
-
const i = t.items?.[0] || t.subGroups?.[0]?.items?.[0]
|
|
7119
|
+
` : h`<div class="importer__empty">${v("importer.noResults")}</div>`, vh = (e, t, s) => {
|
|
7120
|
+
const i = t.items?.[0] || t.subGroups?.[0]?.items?.[0];
|
|
7124
7121
|
return h`
|
|
7125
|
-
<div class="visit" data-index=${s} ${
|
|
7126
|
-
<div class="visit__header">
|
|
7127
|
-
<dss-form-checkbox
|
|
7128
|
-
.checked=${r.checked}
|
|
7129
|
-
.indeterminate=${r.indeterminate}
|
|
7130
|
-
hideLabel
|
|
7131
|
-
@change=${(n) => e._toggleVisit(t, n.target.checked)}
|
|
7132
|
-
></dss-form-checkbox>
|
|
7133
|
-
${wh(i)}
|
|
7134
|
-
</div>
|
|
7122
|
+
<div class="visit" data-index=${s} ${or(e._measureElement)} data-date=${Xs(i?.date)}>
|
|
7123
|
+
<div class="visit__header">${bh(i)}</div>
|
|
7135
7124
|
<div class="visit__items">
|
|
7136
7125
|
${oe(
|
|
7137
|
-
|
|
7138
|
-
(
|
|
7139
|
-
(
|
|
7126
|
+
lr(t),
|
|
7127
|
+
(r) => r.type === "item" ? r.item.id : r.subGroup.idSubGroup,
|
|
7128
|
+
(r) => r.type === "item" ? Sr(e, r.item, t.items) : xh(e, r.subGroup)
|
|
7140
7129
|
)}
|
|
7141
7130
|
</div>
|
|
7142
7131
|
</div>
|
|
7143
7132
|
`;
|
|
7144
|
-
},
|
|
7133
|
+
}, bh = (e) => {
|
|
7145
7134
|
if (!e) return M;
|
|
7146
|
-
const t =
|
|
7135
|
+
const t = ar(e), s = [];
|
|
7147
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`
|
|
7148
7137
|
<div class="title">
|
|
7149
7138
|
<div class="title-date">
|
|
7150
|
-
<div>${
|
|
7139
|
+
<div>${er(new Date(e.date), "dd/MM/yyyy")}</div>
|
|
7151
7140
|
</div>
|
|
7152
7141
|
<div class="title-description">
|
|
7153
7142
|
<div>${s.map((i, r) => h`${i}${r < s.length - 1 ? " | " : ""}`)}</div>
|
|
7154
7143
|
</div>
|
|
7155
7144
|
</div>
|
|
7156
7145
|
`;
|
|
7157
|
-
},
|
|
7158
|
-
|
|
7146
|
+
}, wh = (e, t) => {
|
|
7147
|
+
if ((t?.length ?? 0) < 2) return M;
|
|
7148
|
+
const s = _r(e.subGroupState(t));
|
|
7159
7149
|
return h`
|
|
7150
|
+
<dss-form-checkbox
|
|
7151
|
+
.checked=${s.checked}
|
|
7152
|
+
.indeterminate=${s.indeterminate}
|
|
7153
|
+
hideLabel
|
|
7154
|
+
@change=${(i) => e._toggleSubGroup(t, i.target.checked)}
|
|
7155
|
+
></dss-form-checkbox>
|
|
7156
|
+
`;
|
|
7157
|
+
}, xh = (e, t) => h`
|
|
7160
7158
|
<div class="diagnostics">
|
|
7161
7159
|
<div class="diagnostics__header">
|
|
7162
|
-
|
|
7163
|
-
.checked=${s.checked}
|
|
7164
|
-
.indeterminate=${s.indeterminate}
|
|
7165
|
-
hideLabel
|
|
7166
|
-
@change=${(i) => e._toggleSubGroup(t.items, i.target.checked)}
|
|
7167
|
-
></dss-form-checkbox>
|
|
7168
|
-
${_h(t.items?.[0])}
|
|
7160
|
+
${wh(e, t.items)} ${_h(t.items?.[0])}
|
|
7169
7161
|
</div>
|
|
7170
7162
|
<div class="diagnostics__items">
|
|
7171
7163
|
${oe(
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7164
|
+
t.items,
|
|
7165
|
+
(s) => s.id,
|
|
7166
|
+
(s) => Sr(e, s, t.items)
|
|
7167
|
+
)}
|
|
7176
7168
|
</div>
|
|
7177
7169
|
</div>
|
|
7178
|
-
|
|
7179
|
-
}, Sr = (e, t, s) => h`
|
|
7170
|
+
`, Sr = (e, t, s) => h`
|
|
7180
7171
|
<div class="item" ?has-divider=${Kt(t, s)}>
|
|
7181
7172
|
<dss-form-checkbox
|
|
7182
7173
|
class="item__check"
|
|
@@ -7211,7 +7202,7 @@ const Dh = (e) => {
|
|
|
7211
7202
|
};
|
|
7212
7203
|
let z = class extends W {
|
|
7213
7204
|
constructor() {
|
|
7214
|
-
super(...arguments), this.historyGroups = [], this.searchString = "", this.rulesByCollectionId = {}, this.todayOnly = !1, this.
|
|
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 = wr, this._scrollerController = new nh(), this._searchTimeout = null, this._didInitialPreselect = !1, this._measureElement = (e) => {
|
|
7215
7206
|
e && this._scrollerController.measureElement(e);
|
|
7216
7207
|
};
|
|
7217
7208
|
}
|
|
@@ -7228,7 +7219,7 @@ let z = class extends W {
|
|
|
7228
7219
|
super.disconnectedCallback(), this._scrollerController.teardown(), this._clearSearchTimeout(), this.api.broker.send(new ut(""));
|
|
7229
7220
|
}
|
|
7230
7221
|
updated(e) {
|
|
7231
|
-
super.updated(e), (e.has("historyGroups") || e.has("todayOnly") || e.has("
|
|
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();
|
|
7232
7223
|
}
|
|
7233
7224
|
// ── Event handlers ──────────────────────────────────────────────────────
|
|
7234
7225
|
_onSearchChange(e) {
|
|
@@ -7239,19 +7230,12 @@ let z = class extends W {
|
|
|
7239
7230
|
_onToggleToday(e) {
|
|
7240
7231
|
this.todayOnly = e.target.checked;
|
|
7241
7232
|
}
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
this.selectedDiagnosticCodes = (t?.selectedItems || []).map((s) => s.value);
|
|
7233
|
+
_onToggleDiagnostics(e) {
|
|
7234
|
+
this.diagnosticsOnly = e.target.checked;
|
|
7245
7235
|
}
|
|
7246
7236
|
_toggleItem(e) {
|
|
7247
7237
|
this.selectedIds = this.selectedIds.includes(e) ? this.selectedIds.filter((t) => t !== e) : [...this.selectedIds, e];
|
|
7248
7238
|
}
|
|
7249
|
-
_toggleVisit(e, t) {
|
|
7250
|
-
this._setSelection(
|
|
7251
|
-
Oe([e]).map((s) => s.id),
|
|
7252
|
-
t
|
|
7253
|
-
);
|
|
7254
|
-
}
|
|
7255
7239
|
_toggleSubGroup(e, t) {
|
|
7256
7240
|
this._setSelection(
|
|
7257
7241
|
e.map((s) => s.id),
|
|
@@ -7260,7 +7244,7 @@ let z = class extends W {
|
|
|
7260
7244
|
}
|
|
7261
7245
|
_toggleAll(e) {
|
|
7262
7246
|
this._setSelection(
|
|
7263
|
-
|
|
7247
|
+
Je(this.filteredGroups).map((t) => t.id),
|
|
7264
7248
|
e.target.checked
|
|
7265
7249
|
);
|
|
7266
7250
|
}
|
|
@@ -7268,21 +7252,15 @@ let z = class extends W {
|
|
|
7268
7252
|
isItemSelected(e) {
|
|
7269
7253
|
return this.selectedIds.includes(e);
|
|
7270
7254
|
}
|
|
7271
|
-
visitState(e) {
|
|
7272
|
-
return this._tristate(Oe([e]).map((t) => t.id));
|
|
7273
|
-
}
|
|
7274
7255
|
subGroupState(e) {
|
|
7275
7256
|
return this._tristate(e.map((t) => t.id));
|
|
7276
7257
|
}
|
|
7277
7258
|
allState() {
|
|
7278
|
-
return this._tristate(
|
|
7259
|
+
return this._tristate(Je(this.filteredGroups).map((e) => e.id));
|
|
7279
7260
|
}
|
|
7280
7261
|
hasDiagnosticsFilter() {
|
|
7281
7262
|
return this.availableDiagnostics.length > 0;
|
|
7282
7263
|
}
|
|
7283
|
-
diagnosticsOptions() {
|
|
7284
|
-
return this.availableDiagnostics.map((e) => ({ label: e.description, value: e.code }));
|
|
7285
|
-
}
|
|
7286
7264
|
/**
|
|
7287
7265
|
* Maps virtual scroller indices to actual filtered groups for rendering.
|
|
7288
7266
|
*
|
|
@@ -7338,9 +7316,11 @@ let z = class extends W {
|
|
|
7338
7316
|
async _recomputeFiltered() {
|
|
7339
7317
|
const e = {
|
|
7340
7318
|
todayOnly: this.todayOnly,
|
|
7341
|
-
|
|
7319
|
+
// El filtre és un tot-o-res: quan està marcat, filtra per tots els
|
|
7320
|
+
// diagnòstics que el host ha passat a l'importador.
|
|
7321
|
+
diagnosticCodes: this.diagnosticsOnly ? this.availableDiagnostics.map((s) => s.code) : []
|
|
7342
7322
|
}, t = hh(this.historyGroups || [], e, this.rulesByCollectionId);
|
|
7343
|
-
this.filteredGroups = await rh(t), this.totalCount =
|
|
7323
|
+
this.filteredGroups = await rh(t), this.totalCount = Je(this.filteredGroups).length;
|
|
7344
7324
|
}
|
|
7345
7325
|
_syncVirtualScroller() {
|
|
7346
7326
|
this._virtualScrollerState = this._scrollerController.sync({
|
|
@@ -7380,7 +7360,7 @@ let z = class extends W {
|
|
|
7380
7360
|
this.api.importDataManager.selectItems({
|
|
7381
7361
|
pluginId: ih,
|
|
7382
7362
|
data: t,
|
|
7383
|
-
text: Eh(
|
|
7363
|
+
text: Eh(Je(t))
|
|
7384
7364
|
});
|
|
7385
7365
|
}
|
|
7386
7366
|
};
|
|
@@ -7404,7 +7384,7 @@ Y([
|
|
|
7404
7384
|
], z.prototype, "todayOnly", 2);
|
|
7405
7385
|
Y([
|
|
7406
7386
|
ie()
|
|
7407
|
-
], z.prototype, "
|
|
7387
|
+
], z.prototype, "diagnosticsOnly", 2);
|
|
7408
7388
|
Y([
|
|
7409
7389
|
ie()
|
|
7410
7390
|
], z.prototype, "availableDiagnostics", 2);
|
|
@@ -7529,7 +7509,7 @@ let se = class extends kr(W) {
|
|
|
7529
7509
|
}
|
|
7530
7510
|
_handleSelectDate(e) {
|
|
7531
7511
|
const t = Dd(e, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
7532
|
-
|
|
7512
|
+
Yi(t) && this.scrollToClosestDate(t);
|
|
7533
7513
|
}
|
|
7534
7514
|
_handleSearchChange(e) {
|
|
7535
7515
|
typeof e.detail == "string" && (this.searchQuery = e.detail, this._searchTimeout && clearTimeout(this._searchTimeout), this._searchTimeout = setTimeout(() => {
|
|
@@ -7545,7 +7525,7 @@ let se = class extends kr(W) {
|
|
|
7545
7525
|
this.shadowRoot.querySelector("activity-history-timeline")._scrollIntoDate(t);
|
|
7546
7526
|
}
|
|
7547
7527
|
_refreshHistory() {
|
|
7548
|
-
this.api.broker.send(new
|
|
7528
|
+
this.api.broker.send(new fr());
|
|
7549
7529
|
}
|
|
7550
7530
|
};
|
|
7551
7531
|
se.styles = L`
|
|
@@ -7588,11 +7568,11 @@ const Cr = "activity-history-importer", Ah = (e) => {
|
|
|
7588
7568
|
th(e);
|
|
7589
7569
|
}, zh = () => {
|
|
7590
7570
|
sh();
|
|
7591
|
-
},
|
|
7592
|
-
await Hh(),
|
|
7571
|
+
}, Bh = async (e) => (Di(e), Ah(e), await go(e), ro(e), Rh(e), Promise.resolve()), Nh = async () => {
|
|
7572
|
+
await Hh(), Di(null), zh(), no();
|
|
7593
7573
|
};
|
|
7594
7574
|
export {
|
|
7595
|
-
|
|
7596
|
-
|
|
7575
|
+
Nh as dispose,
|
|
7576
|
+
Bh as initialize
|
|
7597
7577
|
};
|
|
7598
|
-
//# sourceMappingURL=plugin-
|
|
7578
|
+
//# sourceMappingURL=plugin-GzwtrpSe.js.map
|