@uxland/primary-shell 7.46.4 → 7.46.6
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-BDnhxP4N.js → component-DZpJPqmp.js} +2 -2
- package/dist/{component-BDnhxP4N.js.map → component-DZpJPqmp.js.map} +1 -1
- package/dist/{index-D9vfVpB7.js → index-DhJhlKAy.js} +717 -711
- package/dist/index-DhJhlKAy.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +33 -33
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{plugin-C76XiACG.js → plugin-DPSai4gO.js} +249 -249
- package/dist/{plugin-C76XiACG.js.map → plugin-DPSai4gO.js.map} +1 -1
- package/dist/primary/shell/src/api/interaction-service/interaction-service-impl.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/interaction-service/interaction-service-impl.tsx +22 -5
- package/dist/index-D9vfVpB7.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as P, i as pt, n as Z, C as
|
|
1
|
+
import { t as P, i as pt, n as Z, C as Ci, g as Di, a as Ze, D as M, k as h, r as L, b as W, h as j, c as Y, Q as le, d as et, e as oe, f as Ii, j as $i, l as Ti, m as Ei, o as Gs, p as Xt, q as Oi, P as Fi } from "./index-DhJhlKAy.js";
|
|
2
2
|
import "react";
|
|
3
3
|
function T(e, t) {
|
|
4
4
|
return e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
@@ -7,10 +7,10 @@ function Ls(e, t) {
|
|
|
7
7
|
const s = P(e);
|
|
8
8
|
return isNaN(t) ? T(e, NaN) : (t && s.setDate(s.getDate() + t), s);
|
|
9
9
|
}
|
|
10
|
-
const Ws = 6048e5,
|
|
11
|
-
let
|
|
10
|
+
const Ws = 6048e5, Mi = 864e5, Pi = 6e4, Ai = 36e5, ki = 1e3;
|
|
11
|
+
let Ri = {};
|
|
12
12
|
function Re() {
|
|
13
|
-
return
|
|
13
|
+
return Ri;
|
|
14
14
|
}
|
|
15
15
|
function he(e, t) {
|
|
16
16
|
const s = Re(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? s.weekStartsOn ?? s.locale?.options?.weekStartsOn ?? 0, i = P(e), n = i.getDay(), o = (n < r ? 7 : 0) + n - r;
|
|
@@ -45,19 +45,19 @@ function st(e) {
|
|
|
45
45
|
);
|
|
46
46
|
return s.setUTCFullYear(t.getFullYear()), +e - +s;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Hi(e, t) {
|
|
49
49
|
const s = tt(e), r = tt(t), i = +s - st(s), n = +r - st(r);
|
|
50
|
-
return Math.round((i - n) /
|
|
50
|
+
return Math.round((i - n) / Mi);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function zi(e) {
|
|
53
53
|
const t = js(e), s = T(e, 0);
|
|
54
54
|
return s.setFullYear(t, 0, 4), s.setHours(0, 0, 0, 0), Oe(s);
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Vi(e) {
|
|
57
57
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
if (!
|
|
59
|
+
function Ys(e) {
|
|
60
|
+
if (!Vi(e) && typeof e != "number")
|
|
61
61
|
return !1;
|
|
62
62
|
const t = P(e);
|
|
63
63
|
return !isNaN(Number(t));
|
|
@@ -485,7 +485,7 @@ const an = /^(\d+)(th|st|nd|rd)?/i, ln = /\d+/i, cn = {
|
|
|
485
485
|
parsePatterns: bn,
|
|
486
486
|
defaultParseWidth: "any"
|
|
487
487
|
})
|
|
488
|
-
},
|
|
488
|
+
}, Us = {
|
|
489
489
|
code: "en-US",
|
|
490
490
|
formatDistance: qi,
|
|
491
491
|
formatLong: ji,
|
|
@@ -499,10 +499,10 @@ const an = /^(\d+)(th|st|nd|rd)?/i, ln = /\d+/i, cn = {
|
|
|
499
499
|
};
|
|
500
500
|
function wn(e) {
|
|
501
501
|
const t = P(e);
|
|
502
|
-
return
|
|
502
|
+
return Hi(t, Ni(t)) + 1;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
const t = P(e), s = +Oe(t) - +
|
|
504
|
+
function Qs(e) {
|
|
505
|
+
const t = P(e), s = +Oe(t) - +zi(t);
|
|
506
506
|
return Math.round(s / Ws) + 1;
|
|
507
507
|
}
|
|
508
508
|
function Kt(e, t) {
|
|
@@ -517,7 +517,7 @@ function xn(e, t) {
|
|
|
517
517
|
const s = Re(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, i = Kt(e, t), n = T(e, 0);
|
|
518
518
|
return n.setFullYear(i, 0, r), n.setHours(0, 0, 0, 0), he(n, t);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Xs(e, t) {
|
|
521
521
|
const s = P(e), r = +he(s, t) - +xn(s, t);
|
|
522
522
|
return Math.round(r / Ws) + 1;
|
|
523
523
|
}
|
|
@@ -769,12 +769,12 @@ const ue = {
|
|
|
769
769
|
},
|
|
770
770
|
// Local week of year
|
|
771
771
|
w: function(e, t, s, r) {
|
|
772
|
-
const i =
|
|
772
|
+
const i = Xs(e, r);
|
|
773
773
|
return t === "wo" ? s.ordinalNumber(i, { unit: "week" }) : S(i, t.length);
|
|
774
774
|
},
|
|
775
775
|
// ISO week of year
|
|
776
776
|
I: function(e, t, s) {
|
|
777
|
-
const r =
|
|
777
|
+
const r = Qs(e);
|
|
778
778
|
return t === "Io" ? s.ordinalNumber(r, { unit: "week" }) : S(r, t.length);
|
|
779
779
|
},
|
|
780
780
|
// Day of the month
|
|
@@ -1165,7 +1165,7 @@ const ws = (e, t) => {
|
|
|
1165
1165
|
default:
|
|
1166
1166
|
return t.date({ width: "full" });
|
|
1167
1167
|
}
|
|
1168
|
-
},
|
|
1168
|
+
}, Ks = (e, t) => {
|
|
1169
1169
|
switch (e) {
|
|
1170
1170
|
case "p":
|
|
1171
1171
|
return t.time({ width: "short" });
|
|
@@ -1197,15 +1197,15 @@ const ws = (e, t) => {
|
|
|
1197
1197
|
n = t.dateTime({ width: "full" });
|
|
1198
1198
|
break;
|
|
1199
1199
|
}
|
|
1200
|
-
return n.replace("{{date}}", ws(r, t)).replace("{{time}}",
|
|
1200
|
+
return n.replace("{{date}}", ws(r, t)).replace("{{time}}", Ks(i, t));
|
|
1201
1201
|
}, Pt = {
|
|
1202
|
-
p:
|
|
1202
|
+
p: Ks,
|
|
1203
1203
|
P: _n
|
|
1204
1204
|
}, Sn = /^D+$/, Cn = /^Y+$/, Dn = ["D", "DD", "YY", "YYYY"];
|
|
1205
|
-
function
|
|
1205
|
+
function Js(e) {
|
|
1206
1206
|
return Sn.test(e);
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Zs(e) {
|
|
1209
1209
|
return Cn.test(e);
|
|
1210
1210
|
}
|
|
1211
1211
|
function At(e, t, s) {
|
|
@@ -1217,9 +1217,9 @@ function In(e, t, s) {
|
|
|
1217
1217
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1218
1218
|
}
|
|
1219
1219
|
const $n = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Tn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, En = /^'([^]*?)'?$/, On = /''/g, Fn = /[a-zA-Z]/;
|
|
1220
|
-
function
|
|
1221
|
-
const r = Re(), i = r.locale ??
|
|
1222
|
-
if (!
|
|
1220
|
+
function er(e, t, s) {
|
|
1221
|
+
const r = Re(), i = r.locale ?? Us, n = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = P(e);
|
|
1222
|
+
if (!Ys(a))
|
|
1223
1223
|
throw new RangeError("Invalid time value");
|
|
1224
1224
|
let l = t.match(Tn).map((c) => {
|
|
1225
1225
|
const u = c[0];
|
|
@@ -1251,7 +1251,7 @@ function Zs(e, t, s) {
|
|
|
1251
1251
|
return l.map((c) => {
|
|
1252
1252
|
if (!c.isToken) return c.value;
|
|
1253
1253
|
const u = c.value;
|
|
1254
|
-
(
|
|
1254
|
+
(Zs(u) || Js(u)) && At(u, t, String(e));
|
|
1255
1255
|
const b = ys[u[0]];
|
|
1256
1256
|
return b(a, u, i.localize, d);
|
|
1257
1257
|
}).join("");
|
|
@@ -1281,13 +1281,13 @@ function kn(e, t) {
|
|
|
1281
1281
|
), s;
|
|
1282
1282
|
}
|
|
1283
1283
|
const Rn = 10;
|
|
1284
|
-
class
|
|
1284
|
+
class tr {
|
|
1285
1285
|
subPriority = 0;
|
|
1286
1286
|
validate(t, s) {
|
|
1287
1287
|
return !0;
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
|
-
class Hn extends
|
|
1290
|
+
class Hn extends tr {
|
|
1291
1291
|
constructor(t, s, r, i, n) {
|
|
1292
1292
|
super(), this.value = t, this.validateValue = s, this.setValue = r, this.priority = i, n && (this.subPriority = n);
|
|
1293
1293
|
}
|
|
@@ -1298,7 +1298,7 @@ class Hn extends er {
|
|
|
1298
1298
|
return this.setValue(t, s, this.value, r);
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
|
-
class zn extends
|
|
1301
|
+
class zn extends tr {
|
|
1302
1302
|
priority = Rn;
|
|
1303
1303
|
subPriority = -1;
|
|
1304
1304
|
set(t, s) {
|
|
@@ -1415,11 +1415,11 @@ function se(e, t) {
|
|
|
1415
1415
|
};
|
|
1416
1416
|
const r = s[1] === "+" ? 1 : -1, i = s[2] ? parseInt(s[2], 10) : 0, n = s[3] ? parseInt(s[3], 10) : 0, o = s[5] ? parseInt(s[5], 10) : 0;
|
|
1417
1417
|
return {
|
|
1418
|
-
value: r * (i *
|
|
1418
|
+
value: r * (i * Ai + n * Pi + o * ki),
|
|
1419
1419
|
rest: t.slice(s[0].length)
|
|
1420
1420
|
};
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function sr(e) {
|
|
1423
1423
|
return I(E.anyDigitsSigned, e);
|
|
1424
1424
|
}
|
|
1425
1425
|
function $(e, t) {
|
|
@@ -1467,7 +1467,7 @@ function Jt(e) {
|
|
|
1467
1467
|
return 0;
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function rr(e, t) {
|
|
1471
1471
|
const s = t > 0, r = s ? t : 1 - t;
|
|
1472
1472
|
let i;
|
|
1473
1473
|
if (r <= 50)
|
|
@@ -1478,7 +1478,7 @@ function sr(e, t) {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
return s ? i : 1 - i;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function ir(e) {
|
|
1482
1482
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
1483
1483
|
}
|
|
1484
1484
|
class Nn extends _ {
|
|
@@ -1509,7 +1509,7 @@ class Nn extends _ {
|
|
|
1509
1509
|
set(t, s, r) {
|
|
1510
1510
|
const i = t.getFullYear();
|
|
1511
1511
|
if (r.isTwoDigitYear) {
|
|
1512
|
-
const o =
|
|
1512
|
+
const o = rr(
|
|
1513
1513
|
r.year,
|
|
1514
1514
|
i
|
|
1515
1515
|
);
|
|
@@ -1546,7 +1546,7 @@ class Bn extends _ {
|
|
|
1546
1546
|
set(t, s, r, i) {
|
|
1547
1547
|
const n = Kt(t, i);
|
|
1548
1548
|
if (r.isTwoDigitYear) {
|
|
1549
|
-
const a =
|
|
1549
|
+
const a = rr(
|
|
1550
1550
|
r.year,
|
|
1551
1551
|
n
|
|
1552
1552
|
);
|
|
@@ -1871,7 +1871,7 @@ class Yn extends _ {
|
|
|
1871
1871
|
];
|
|
1872
1872
|
}
|
|
1873
1873
|
function Un(e, t, s) {
|
|
1874
|
-
const r = P(e), i =
|
|
1874
|
+
const r = P(e), i = Xs(r, s) - t;
|
|
1875
1875
|
return r.setDate(r.getDate() - i * 7), r;
|
|
1876
1876
|
}
|
|
1877
1877
|
class Qn extends _ {
|
|
@@ -1909,7 +1909,7 @@ class Qn extends _ {
|
|
|
1909
1909
|
];
|
|
1910
1910
|
}
|
|
1911
1911
|
function Xn(e, t) {
|
|
1912
|
-
const s = P(e), r =
|
|
1912
|
+
const s = P(e), r = Qs(s) - t;
|
|
1913
1913
|
return s.setDate(s.getDate() - r * 7), s;
|
|
1914
1914
|
}
|
|
1915
1915
|
class Kn extends _ {
|
|
@@ -1975,7 +1975,7 @@ class eo extends _ {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
validate(t, s) {
|
|
1978
|
-
const r = t.getFullYear(), i =
|
|
1978
|
+
const r = t.getFullYear(), i = ir(r), n = t.getMonth();
|
|
1979
1979
|
return i ? s >= 1 && s <= Zn[n] : s >= 1 && s <= Jn[n];
|
|
1980
1980
|
}
|
|
1981
1981
|
set(t, s, r) {
|
|
@@ -2012,7 +2012,7 @@ class to extends _ {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
validate(t, s) {
|
|
2014
2014
|
const r = t.getFullYear();
|
|
2015
|
-
return
|
|
2015
|
+
return ir(r) ? s >= 1 && s <= 366 : s >= 1 && s <= 365;
|
|
2016
2016
|
}
|
|
2017
2017
|
set(t, s, r) {
|
|
2018
2018
|
return t.setMonth(0, r), t.setHours(0, 0, 0, 0), t;
|
|
@@ -2628,7 +2628,7 @@ class vo extends _ {
|
|
|
2628
2628
|
class wo extends _ {
|
|
2629
2629
|
priority = 40;
|
|
2630
2630
|
parse(t) {
|
|
2631
|
-
return
|
|
2631
|
+
return sr(t);
|
|
2632
2632
|
}
|
|
2633
2633
|
set(t, s, r) {
|
|
2634
2634
|
return [T(t, r * 1e3), { timestampIsSet: !0 }];
|
|
@@ -2638,7 +2638,7 @@ class wo extends _ {
|
|
|
2638
2638
|
class xo extends _ {
|
|
2639
2639
|
priority = 20;
|
|
2640
2640
|
parse(t) {
|
|
2641
|
-
return
|
|
2641
|
+
return sr(t);
|
|
2642
2642
|
}
|
|
2643
2643
|
set(t, s, r) {
|
|
2644
2644
|
return [T(t, r), { timestampIsSet: !0 }];
|
|
@@ -2679,7 +2679,7 @@ const _o = {
|
|
|
2679
2679
|
T: new xo()
|
|
2680
2680
|
}, So = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Co = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Do = /^'([^]*?)'?$/, Io = /''/g, $o = /\S/, To = /[a-zA-Z]/;
|
|
2681
2681
|
function Eo(e, t, s, r) {
|
|
2682
|
-
const i = Pn(), n = i.locale ??
|
|
2682
|
+
const i = Pn(), n = i.locale ?? Us, o = i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, a = i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, l = {
|
|
2683
2683
|
firstWeekContainsDate: o,
|
|
2684
2684
|
weekStartsOn: a,
|
|
2685
2685
|
locale: n
|
|
@@ -2692,7 +2692,7 @@ function Eo(e, t, s, r) {
|
|
|
2692
2692
|
return m;
|
|
2693
2693
|
}).join("").match(So), u = [];
|
|
2694
2694
|
for (let m of c) {
|
|
2695
|
-
|
|
2695
|
+
Zs(m) && At(m, t, e), Js(m) && At(m, t, e);
|
|
2696
2696
|
const p = m[0], w = _o[p];
|
|
2697
2697
|
if (w) {
|
|
2698
2698
|
const { incompatibleTokens: v } = w;
|
|
@@ -2759,7 +2759,7 @@ const Fo = (e, t) => (s, r) => {
|
|
|
2759
2759
|
};
|
|
2760
2760
|
}, Mo = (e, t) => ({
|
|
2761
2761
|
registerRequest: Fo(e, t)
|
|
2762
|
-
}),
|
|
2762
|
+
}), nr = () => {
|
|
2763
2763
|
try {
|
|
2764
2764
|
if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
|
|
2765
2765
|
return crypto.randomUUID();
|
|
@@ -2834,7 +2834,7 @@ function es(e) {
|
|
|
2834
2834
|
t = Object.getPrototypeOf(t);
|
|
2835
2835
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function or(e, t, s) {
|
|
2838
2838
|
if (typeof e != "function")
|
|
2839
2839
|
throw new Error(H(2));
|
|
2840
2840
|
if (typeof t == "function" && typeof s == "function" || typeof s == "function" && typeof arguments[3] == "function")
|
|
@@ -2842,7 +2842,7 @@ function nr(e, t, s) {
|
|
|
2842
2842
|
if (typeof t == "function" && typeof s > "u" && (s = t, t = void 0), typeof s < "u") {
|
|
2843
2843
|
if (typeof s != "function")
|
|
2844
2844
|
throw new Error(H(1));
|
|
2845
|
-
return s(
|
|
2845
|
+
return s(or)(e, t);
|
|
2846
2846
|
}
|
|
2847
2847
|
let r = e, i = t, n = /* @__PURE__ */ new Map(), o = n, a = 0, l = !1;
|
|
2848
2848
|
function d() {
|
|
@@ -2995,7 +2995,7 @@ function No(...e) {
|
|
|
2995
2995
|
function Bo(e) {
|
|
2996
2996
|
return es(e) && "type" in e && typeof e.type == "string";
|
|
2997
2997
|
}
|
|
2998
|
-
var
|
|
2998
|
+
var ar = Symbol.for("immer-nothing"), _s = Symbol.for("immer-draftable"), q = Symbol.for("immer-state");
|
|
2999
2999
|
function J(e, ...t) {
|
|
3000
3000
|
throw new Error(
|
|
3001
3001
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
@@ -3006,10 +3006,10 @@ function xe(e) {
|
|
|
3006
3006
|
return !!e && !!e[q];
|
|
3007
3007
|
}
|
|
3008
3008
|
function de(e) {
|
|
3009
|
-
return e ?
|
|
3009
|
+
return e ? lr(e) || Array.isArray(e) || !!e[_s] || !!e.constructor?.[_s] || gt(e) || yt(e) : !1;
|
|
3010
3010
|
}
|
|
3011
3011
|
var qo = Object.prototype.constructor.toString();
|
|
3012
|
-
function
|
|
3012
|
+
function lr(e) {
|
|
3013
3013
|
if (!e || typeof e != "object")
|
|
3014
3014
|
return !1;
|
|
3015
3015
|
const t = Me(e);
|
|
@@ -3030,7 +3030,7 @@ function mt(e) {
|
|
|
3030
3030
|
function kt(e, t) {
|
|
3031
3031
|
return mt(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
3032
3032
|
}
|
|
3033
|
-
function
|
|
3033
|
+
function cr(e, t, s) {
|
|
3034
3034
|
const r = mt(e);
|
|
3035
3035
|
r === 2 ? e.set(t, s) : r === 3 ? e.add(s) : e[t] = s;
|
|
3036
3036
|
}
|
|
@@ -3053,7 +3053,7 @@ function Rt(e, t) {
|
|
|
3053
3053
|
return new Set(e);
|
|
3054
3054
|
if (Array.isArray(e))
|
|
3055
3055
|
return Array.prototype.slice.call(e);
|
|
3056
|
-
const s =
|
|
3056
|
+
const s = lr(e);
|
|
3057
3057
|
if (t === !0 || t === "class_only" && !s) {
|
|
3058
3058
|
const r = Object.getOwnPropertyDescriptors(e);
|
|
3059
3059
|
delete r[q];
|
|
@@ -3092,7 +3092,7 @@ function _e(e) {
|
|
|
3092
3092
|
return t || J(0, e), t;
|
|
3093
3093
|
}
|
|
3094
3094
|
var Le;
|
|
3095
|
-
function
|
|
3095
|
+
function dr() {
|
|
3096
3096
|
return Le;
|
|
3097
3097
|
}
|
|
3098
3098
|
function jo(e, t) {
|
|
@@ -3130,7 +3130,7 @@ function Ds(e, t) {
|
|
|
3130
3130
|
e,
|
|
3131
3131
|
t.patches_,
|
|
3132
3132
|
t.inversePatches_
|
|
3133
|
-
)) : e = at(t, s, []), Ht(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !==
|
|
3133
|
+
)) : e = at(t, s, []), Ht(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== ar ? e : void 0;
|
|
3134
3134
|
}
|
|
3135
3135
|
function at(e, t, s) {
|
|
3136
3136
|
if (bt(t))
|
|
@@ -3165,7 +3165,7 @@ function Is(e, t, s, r, i, n, o) {
|
|
|
3165
3165
|
if (xe(i)) {
|
|
3166
3166
|
const a = n && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
3167
3167
|
!kt(t.assigned_, r) ? n.concat(r) : void 0, l = at(e, i, a);
|
|
3168
|
-
if (
|
|
3168
|
+
if (cr(s, r, l), xe(l))
|
|
3169
3169
|
e.canAutoFreeze_ = !1;
|
|
3170
3170
|
else
|
|
3171
3171
|
return;
|
|
@@ -3183,7 +3183,7 @@ function Uo(e, t) {
|
|
|
3183
3183
|
const s = Array.isArray(e), r = {
|
|
3184
3184
|
type_: s ? 1 : 0,
|
|
3185
3185
|
// Track which produce call this is associated with.
|
|
3186
|
-
scope_: t ? t.scope_ :
|
|
3186
|
+
scope_: t ? t.scope_ : dr(),
|
|
3187
3187
|
// True for both shallow and deep changes.
|
|
3188
3188
|
modified_: !1,
|
|
3189
3189
|
// Used during finalization.
|
|
@@ -3225,7 +3225,7 @@ var ss = {
|
|
|
3225
3225
|
return Reflect.ownKeys(we(e));
|
|
3226
3226
|
},
|
|
3227
3227
|
set(e, t, s) {
|
|
3228
|
-
const r =
|
|
3228
|
+
const r = ur(we(e), t);
|
|
3229
3229
|
if (r?.set)
|
|
3230
3230
|
return r.set.call(e.draft_, s), !0;
|
|
3231
3231
|
if (!e.modified_) {
|
|
@@ -3280,14 +3280,14 @@ function Ot(e, t) {
|
|
|
3280
3280
|
return (s ? we(s) : e)[t];
|
|
3281
3281
|
}
|
|
3282
3282
|
function Qo(e, t, s) {
|
|
3283
|
-
const r =
|
|
3283
|
+
const r = ur(t, s);
|
|
3284
3284
|
return r ? "value" in r ? r.value : (
|
|
3285
3285
|
// This is a very special case, if the prop is a getter defined by the
|
|
3286
3286
|
// prototype, we should invoke it with the draft as context!
|
|
3287
3287
|
r.get?.call(e.draft_)
|
|
3288
3288
|
) : void 0;
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3290
|
+
function ur(e, t) {
|
|
3291
3291
|
if (!(t in e))
|
|
3292
3292
|
return;
|
|
3293
3293
|
let s = Me(e);
|
|
@@ -3330,7 +3330,7 @@ var Xo = class {
|
|
|
3330
3330
|
}
|
|
3331
3331
|
return Ss(n, r), Ds(i, n);
|
|
3332
3332
|
} else if (!t || typeof t != "object") {
|
|
3333
|
-
if (i = s(t), i === void 0 && (i = t), i ===
|
|
3333
|
+
if (i = s(t), i === void 0 && (i = t), i === ar && (i = void 0), this.autoFreeze_ && ts(i, !0), r) {
|
|
3334
3334
|
const n = [], o = [];
|
|
3335
3335
|
_e("Patches").generateReplacementPatches_(t, i, n, o), r(n, o);
|
|
3336
3336
|
}
|
|
@@ -3392,12 +3392,12 @@ var Xo = class {
|
|
|
3392
3392
|
};
|
|
3393
3393
|
function Nt(e, t) {
|
|
3394
3394
|
const s = gt(e) ? _e("MapSet").proxyMap_(e, t) : yt(e) ? _e("MapSet").proxySet_(e, t) : Uo(e, t);
|
|
3395
|
-
return (t ? t.scope_ :
|
|
3395
|
+
return (t ? t.scope_ : dr()).drafts_.push(s), s;
|
|
3396
3396
|
}
|
|
3397
3397
|
function Ko(e) {
|
|
3398
|
-
return xe(e) || J(10, e),
|
|
3398
|
+
return xe(e) || J(10, e), hr(e);
|
|
3399
3399
|
}
|
|
3400
|
-
function
|
|
3400
|
+
function hr(e) {
|
|
3401
3401
|
if (!de(e) || bt(e))
|
|
3402
3402
|
return e;
|
|
3403
3403
|
const t = e[q];
|
|
@@ -3409,10 +3409,10 @@ function ur(e) {
|
|
|
3409
3409
|
} else
|
|
3410
3410
|
s = Rt(e, !0);
|
|
3411
3411
|
return ot(s, (r, i) => {
|
|
3412
|
-
|
|
3412
|
+
cr(s, r, hr(i));
|
|
3413
3413
|
}), t && (t.finalized_ = !1), s;
|
|
3414
3414
|
}
|
|
3415
|
-
var G = new Xo(),
|
|
3415
|
+
var G = new Xo(), fr = G.produce;
|
|
3416
3416
|
G.produceWithPatches.bind(
|
|
3417
3417
|
G
|
|
3418
3418
|
);
|
|
@@ -3467,7 +3467,7 @@ function Ue() {
|
|
|
3467
3467
|
p: null
|
|
3468
3468
|
};
|
|
3469
3469
|
}
|
|
3470
|
-
function
|
|
3470
|
+
function pr(e, t = {}) {
|
|
3471
3471
|
let s = Ue();
|
|
3472
3472
|
const { resultEqualityCheck: r } = t;
|
|
3473
3473
|
let i, n = 0;
|
|
@@ -3520,7 +3520,7 @@ function oa(e, ...t) {
|
|
|
3520
3520
|
}, {
|
|
3521
3521
|
memoize: u,
|
|
3522
3522
|
memoizeOptions: b = [],
|
|
3523
|
-
argsMemoize: f =
|
|
3523
|
+
argsMemoize: f = pr,
|
|
3524
3524
|
argsMemoizeOptions: g = []
|
|
3525
3525
|
} = c, m = $s(b), p = $s(g), w = ta(i), v = u(function() {
|
|
3526
3526
|
return n++, d.apply(
|
|
@@ -3556,7 +3556,7 @@ function oa(e, ...t) {
|
|
|
3556
3556
|
withTypes: () => r
|
|
3557
3557
|
}), r;
|
|
3558
3558
|
}
|
|
3559
|
-
var A = /* @__PURE__ */ oa(
|
|
3559
|
+
var A = /* @__PURE__ */ oa(pr), aa = Object.assign(
|
|
3560
3560
|
(e, t = A) => {
|
|
3561
3561
|
Zo(
|
|
3562
3562
|
e,
|
|
@@ -3572,10 +3572,10 @@ var A = /* @__PURE__ */ oa(fr), aa = Object.assign(
|
|
|
3572
3572
|
},
|
|
3573
3573
|
{ withTypes: () => aa }
|
|
3574
3574
|
);
|
|
3575
|
-
function
|
|
3575
|
+
function mr(e) {
|
|
3576
3576
|
return ({ dispatch: s, getState: r }) => (i) => (n) => typeof n == "function" ? n(s, r, e) : i(n);
|
|
3577
3577
|
}
|
|
3578
|
-
var la =
|
|
3578
|
+
var la = mr(), ca = mr, da = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
3579
3579
|
if (arguments.length !== 0)
|
|
3580
3580
|
return typeof arguments[0] == "object" ? nt : nt.apply(null, arguments);
|
|
3581
3581
|
};
|
|
@@ -3603,7 +3603,7 @@ function Es(e, t) {
|
|
|
3603
3603
|
}
|
|
3604
3604
|
return s.toString = () => `${e}`, s.type = e, s.match = (r) => Bo(r) && r.type === e, s;
|
|
3605
3605
|
}
|
|
3606
|
-
var
|
|
3606
|
+
var gr = class qe extends Array {
|
|
3607
3607
|
constructor(...t) {
|
|
3608
3608
|
super(...t), Object.setPrototypeOf(this, qe.prototype);
|
|
3609
3609
|
}
|
|
@@ -3618,7 +3618,7 @@ var mr = class qe extends Array {
|
|
|
3618
3618
|
}
|
|
3619
3619
|
};
|
|
3620
3620
|
function Os(e) {
|
|
3621
|
-
return de(e) ?
|
|
3621
|
+
return de(e) ? fr(e, () => {
|
|
3622
3622
|
}) : e;
|
|
3623
3623
|
}
|
|
3624
3624
|
function Fs(e, t, s) {
|
|
@@ -3634,7 +3634,7 @@ var ha = () => function(t) {
|
|
|
3634
3634
|
serializableCheck: i = !0,
|
|
3635
3635
|
actionCreatorCheck: n = !0
|
|
3636
3636
|
} = t ?? {};
|
|
3637
|
-
let o = new
|
|
3637
|
+
let o = new gr();
|
|
3638
3638
|
return s && (ua(s) ? o.push(la) : o.push(ca(s.extraArgument))), o;
|
|
3639
3639
|
}, fa = "RTK_autoBatch", Ms = (e) => (t) => {
|
|
3640
3640
|
setTimeout(t, e);
|
|
@@ -3672,7 +3672,7 @@ var ha = () => function(t) {
|
|
|
3672
3672
|
const {
|
|
3673
3673
|
autoBatch: r = !0
|
|
3674
3674
|
} = s ?? {};
|
|
3675
|
-
let i = new
|
|
3675
|
+
let i = new gr(e);
|
|
3676
3676
|
return r && i.push(pa(typeof r == "object" ? r : void 0)), i;
|
|
3677
3677
|
};
|
|
3678
3678
|
function ga(e) {
|
|
@@ -3701,9 +3701,9 @@ function ga(e) {
|
|
|
3701
3701
|
const c = No(...l), u = ma(c);
|
|
3702
3702
|
let b = typeof o == "function" ? o(u) : u();
|
|
3703
3703
|
const f = d(...b);
|
|
3704
|
-
return
|
|
3704
|
+
return or(a, n, f);
|
|
3705
3705
|
}
|
|
3706
|
-
function
|
|
3706
|
+
function yr(e) {
|
|
3707
3707
|
const t = {}, s = [];
|
|
3708
3708
|
let r;
|
|
3709
3709
|
const i = {
|
|
@@ -3731,7 +3731,7 @@ function ya(e) {
|
|
|
3731
3731
|
return typeof e == "function";
|
|
3732
3732
|
}
|
|
3733
3733
|
function ba(e, t) {
|
|
3734
|
-
let [s, r, i] =
|
|
3734
|
+
let [s, r, i] = yr(t), n;
|
|
3735
3735
|
if (ya(e))
|
|
3736
3736
|
n = () => Os(e());
|
|
3737
3737
|
else {
|
|
@@ -3751,7 +3751,7 @@ function ba(e, t) {
|
|
|
3751
3751
|
return f === void 0 ? c : f;
|
|
3752
3752
|
} else {
|
|
3753
3753
|
if (de(c))
|
|
3754
|
-
return
|
|
3754
|
+
return fr(c, (b) => u(b, l));
|
|
3755
3755
|
{
|
|
3756
3756
|
const b = u(c, l);
|
|
3757
3757
|
if (b === void 0) {
|
|
@@ -3818,7 +3818,7 @@ function xa({
|
|
|
3818
3818
|
Da(x) ? $a(D, x, d, t) : Ca(D, x, d);
|
|
3819
3819
|
});
|
|
3820
3820
|
function c() {
|
|
3821
|
-
const [v = {}, x = [], D = void 0] = typeof r.extraReducers == "function" ?
|
|
3821
|
+
const [v = {}, x = [], D = void 0] = typeof r.extraReducers == "function" ? yr(r.extraReducers) : [r.extraReducers], F = {
|
|
3822
3822
|
...v,
|
|
3823
3823
|
...l.sliceCaseReducersByType
|
|
3824
3824
|
};
|
|
@@ -3849,8 +3849,8 @@ function xa({
|
|
|
3849
3849
|
const R = Fs(b, x, () => /* @__PURE__ */ new WeakMap());
|
|
3850
3850
|
return Fs(R, k, () => {
|
|
3851
3851
|
const gs = {};
|
|
3852
|
-
for (const [
|
|
3853
|
-
gs[
|
|
3852
|
+
for (const [_i, Si] of Object.entries(r.selectors ?? {}))
|
|
3853
|
+
gs[_i] = _a(Si, k, m, x);
|
|
3854
3854
|
return gs;
|
|
3855
3855
|
});
|
|
3856
3856
|
}
|
|
@@ -3894,7 +3894,7 @@ function _a(e, t, s, r) {
|
|
|
3894
3894
|
}
|
|
3895
3895
|
return i.unwrapped = e, i;
|
|
3896
3896
|
}
|
|
3897
|
-
var
|
|
3897
|
+
var br = /* @__PURE__ */ xa();
|
|
3898
3898
|
function Sa() {
|
|
3899
3899
|
function e(t, s) {
|
|
3900
3900
|
return {
|
|
@@ -3972,14 +3972,14 @@ function Qe() {
|
|
|
3972
3972
|
function ce(e) {
|
|
3973
3973
|
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. `;
|
|
3974
3974
|
}
|
|
3975
|
-
const
|
|
3975
|
+
const vr = (e, t, s, r, i, n) => e[t] ? {
|
|
3976
3976
|
...e,
|
|
3977
3977
|
[t]: {
|
|
3978
3978
|
...e[t],
|
|
3979
3979
|
items: [...e[t]?.items || [], ...s],
|
|
3980
3980
|
historyDataImporterRules: n ?? e[t]?.historyDataImporterRules
|
|
3981
3981
|
}
|
|
3982
|
-
} : { ...e, [t]: { id: t, items: s, componentFactory: r, searchPredicate: i, historyDataImporterRules: n } }, Ta = (e, t, s, r) =>
|
|
3982
|
+
} : { ...e, [t]: { id: t, items: s, componentFactory: r, searchPredicate: i, historyDataImporterRules: n } }, Ta = (e, t, s, r) => vr(e, t, [s], r);
|
|
3983
3983
|
function Ea(e, t) {
|
|
3984
3984
|
const { id: s, item: r, componentFactory: i } = t.payload;
|
|
3985
3985
|
e.collections = Ta(e.collections, s, r, i);
|
|
@@ -3988,7 +3988,7 @@ function Oa(e, t) {
|
|
|
3988
3988
|
const { id: s, items: r, componentFactory: i, searchPredicate: n, historyDataImporterRules: o } = t.payload;
|
|
3989
3989
|
return {
|
|
3990
3990
|
...e,
|
|
3991
|
-
collections:
|
|
3991
|
+
collections: vr(e.collections, s, r, i, n, o)
|
|
3992
3992
|
};
|
|
3993
3993
|
}
|
|
3994
3994
|
function Fa(e, t) {
|
|
@@ -4040,7 +4040,7 @@ function Va(e, t) {
|
|
|
4040
4040
|
const { id: s, item: r } = t.payload;
|
|
4041
4041
|
e.collections = za(e.collections, s, r);
|
|
4042
4042
|
}
|
|
4043
|
-
const ge =
|
|
4043
|
+
const ge = br({
|
|
4044
4044
|
name: "activity-history-collections",
|
|
4045
4045
|
initialState: {
|
|
4046
4046
|
busy: [],
|
|
@@ -4098,7 +4098,7 @@ class Ga extends N {
|
|
|
4098
4098
|
}
|
|
4099
4099
|
}
|
|
4100
4100
|
let Bt = null;
|
|
4101
|
-
const
|
|
4101
|
+
const wr = (e) => {
|
|
4102
4102
|
Bt = e;
|
|
4103
4103
|
};
|
|
4104
4104
|
class La extends N {
|
|
@@ -4124,7 +4124,7 @@ class Wa extends N {
|
|
|
4124
4124
|
return t?.relevant ?? !1;
|
|
4125
4125
|
}
|
|
4126
4126
|
}
|
|
4127
|
-
const
|
|
4127
|
+
const xr = (e) => e.id === "common", Pe = (e) => e.id === Sr, _r = (e) => !xr(e) && !Pe(e) && !vt(e), vt = (e) => e.id === Cr, Sr = "history-diagnostics", ja = "history-relevant", Ya = "history-own", Cr = "history-up", Dr = [
|
|
4128
4128
|
{
|
|
4129
4129
|
id: "common",
|
|
4130
4130
|
title: "Comuns",
|
|
@@ -4158,7 +4158,7 @@ function Qa(e, t) {
|
|
|
4158
4158
|
e.filters.some((r) => r.id === t.payload.id) || (e.filters = [...e.filters, t.payload]);
|
|
4159
4159
|
}
|
|
4160
4160
|
function Xa(e) {
|
|
4161
|
-
e.filters = e.filters.filter((t) => !
|
|
4161
|
+
e.filters = e.filters.filter((t) => !_r(t));
|
|
4162
4162
|
}
|
|
4163
4163
|
function Ka(e, t) {
|
|
4164
4164
|
e.filters = e.filters.map((s) => s.id === t.payload.filterGroupId ? {
|
|
@@ -4219,7 +4219,7 @@ function rl(e, t) {
|
|
|
4219
4219
|
e.filters = [...e.filters].map((r) => Pe(r) ? { ...r, enabledValues: t.payload } : r);
|
|
4220
4220
|
else {
|
|
4221
4221
|
const r = {
|
|
4222
|
-
id:
|
|
4222
|
+
id: Sr,
|
|
4223
4223
|
title: "Diagnòstics",
|
|
4224
4224
|
values: [],
|
|
4225
4225
|
enabledValues: t.payload
|
|
@@ -4234,7 +4234,7 @@ function il(e, t) {
|
|
|
4234
4234
|
} : s.id === "history-diagnostics" || s.id === "history-up" ? {
|
|
4235
4235
|
...s,
|
|
4236
4236
|
enabledValues: []
|
|
4237
|
-
} : s.id === "common" ?
|
|
4237
|
+
} : s.id === "common" ? Dr[0] : s);
|
|
4238
4238
|
}
|
|
4239
4239
|
function nl(e, t) {
|
|
4240
4240
|
const s = e.filters.findIndex(vt);
|
|
@@ -4254,11 +4254,11 @@ function nl(e, t) {
|
|
|
4254
4254
|
function ol(e, t) {
|
|
4255
4255
|
e.filters = [...e.filters].map((s) => vt(s) ? { ...s, enabledValues: t.payload } : s);
|
|
4256
4256
|
}
|
|
4257
|
-
const B =
|
|
4257
|
+
const B = br({
|
|
4258
4258
|
name: "activity-history-filters",
|
|
4259
4259
|
initialState: {
|
|
4260
4260
|
searchString: "",
|
|
4261
|
-
filters: [...
|
|
4261
|
+
filters: [...Dr]
|
|
4262
4262
|
},
|
|
4263
4263
|
reducers: {
|
|
4264
4264
|
setSearchString: Na,
|
|
@@ -4289,7 +4289,7 @@ const B = yr({
|
|
|
4289
4289
|
});
|
|
4290
4290
|
wt.dispatch;
|
|
4291
4291
|
wt.getState;
|
|
4292
|
-
const Se = new
|
|
4292
|
+
const Se = new Ci(), { lazyInject: Ce } = Di(Se), al = (e) => {
|
|
4293
4293
|
Se.bind(z.primaryApi).toConstantValue(e), Se.bind(z.store).toConstantValue(wt);
|
|
4294
4294
|
}, ll = () => {
|
|
4295
4295
|
Se.unbind(z.primaryApi), Se.unbind(z.store);
|
|
@@ -4372,14 +4372,14 @@ class ml extends re {
|
|
|
4372
4372
|
}
|
|
4373
4373
|
}
|
|
4374
4374
|
}
|
|
4375
|
-
let
|
|
4375
|
+
let Ir;
|
|
4376
4376
|
const gl = (e, t) => {
|
|
4377
|
-
|
|
4377
|
+
Ir = e.registerRequest(
|
|
4378
4378
|
t.broker.events.activityHistory.injectAsyncHistoryItemsRequest,
|
|
4379
4379
|
ml
|
|
4380
4380
|
);
|
|
4381
4381
|
}, yl = () => {
|
|
4382
|
-
|
|
4382
|
+
Ir?.dispose();
|
|
4383
4383
|
};
|
|
4384
4384
|
let Gt;
|
|
4385
4385
|
const bl = async (e) => {
|
|
@@ -4483,16 +4483,16 @@ const bl = async (e) => {
|
|
|
4483
4483
|
}
|
|
4484
4484
|
}
|
|
4485
4485
|
}
|
|
4486
|
-
},
|
|
4486
|
+
}, $r = (e, t, s) => {
|
|
4487
4487
|
const r = e?.[t];
|
|
4488
4488
|
return r?.items ? r.items.some((i) => i.id === s) : !1;
|
|
4489
4489
|
}, wl = (e) => typeof e == "string" && e.trim() !== "", xl = (e) => {
|
|
4490
4490
|
if (typeof e != "string" || e.trim() === "") return !1;
|
|
4491
4491
|
const t = new Date(e);
|
|
4492
4492
|
return t instanceof Date && !Number.isNaN(t.getTime());
|
|
4493
|
-
},
|
|
4494
|
-
xl(e.date),
|
|
4495
|
-
if (!e.every(
|
|
4493
|
+
}, Tr = (e) => e && wl(e.id) && // Verifica que "id" esté informado
|
|
4494
|
+
xl(e.date), Er = (e) => {
|
|
4495
|
+
if (!e.every(Tr))
|
|
4496
4496
|
throw console.error("Invalid activity history items", e), new Error("Invalid activity history items");
|
|
4497
4497
|
return e;
|
|
4498
4498
|
}, _l = (e) => {
|
|
@@ -4500,31 +4500,31 @@ xl(e.date), Tr = (e) => {
|
|
|
4500
4500
|
}, Sl = (e) => {
|
|
4501
4501
|
const t = [];
|
|
4502
4502
|
for (const s of e)
|
|
4503
|
-
|
|
4503
|
+
Tr(s) ? t.push(s) : _l(s);
|
|
4504
4504
|
return t;
|
|
4505
4505
|
}, Cl = (e) => {
|
|
4506
4506
|
const t = e.flatMap((s) => s.up ?? []).filter((s) => s?.id?.trim()).filter((s, r, i) => r === i.findIndex((n) => n.id === s.id));
|
|
4507
4507
|
if (t.length > 0)
|
|
4508
4508
|
return {
|
|
4509
|
-
id:
|
|
4509
|
+
id: Cr,
|
|
4510
4510
|
title: "UP",
|
|
4511
4511
|
values: Po(t, "description", "id"),
|
|
4512
4512
|
enabledValues: []
|
|
4513
4513
|
};
|
|
4514
|
-
},
|
|
4514
|
+
}, Or = (e, t) => {
|
|
4515
4515
|
const s = Cl(e);
|
|
4516
4516
|
s && t.dispatch(B.actions.addUpFilters(s));
|
|
4517
4517
|
}, { addActivityHistoryItem: Dl } = ge.actions;
|
|
4518
4518
|
class Il extends re {
|
|
4519
4519
|
async handle(t) {
|
|
4520
4520
|
try {
|
|
4521
|
-
|
|
4522
|
-
const s = this.store.getState(), r =
|
|
4521
|
+
Er([t.item]);
|
|
4522
|
+
const s = this.store.getState(), r = $r(s.activityHistoryCollections?.collections, t.entityId, t.item.id), i = s.activityHistoryFilters?.filters?.find((n) => n.id === t.entityId);
|
|
4523
4523
|
if (r)
|
|
4524
4524
|
throw new Error(y("error.itemAlreadyExists"));
|
|
4525
4525
|
if (!i)
|
|
4526
4526
|
throw new Error(y("error.filterNotInitialized"));
|
|
4527
|
-
|
|
4527
|
+
Or([t.item], this.store), this.store.dispatch(
|
|
4528
4528
|
Dl({
|
|
4529
4529
|
id: t.entityId,
|
|
4530
4530
|
item: t.item,
|
|
@@ -4536,13 +4536,13 @@ class Il extends re {
|
|
|
4536
4536
|
}
|
|
4537
4537
|
}
|
|
4538
4538
|
}
|
|
4539
|
-
let
|
|
4539
|
+
let Fr;
|
|
4540
4540
|
const $l = (e, t) => {
|
|
4541
|
-
|
|
4541
|
+
Fr = e.registerRequest(t.broker.events.activityHistory.addHistoryItemRequest, Il);
|
|
4542
4542
|
}, Tl = () => {
|
|
4543
|
-
|
|
4543
|
+
Fr?.dispose();
|
|
4544
4544
|
};
|
|
4545
|
-
class
|
|
4545
|
+
class Mr {
|
|
4546
4546
|
constructor(t) {
|
|
4547
4547
|
this.payload = t;
|
|
4548
4548
|
}
|
|
@@ -4554,7 +4554,7 @@ class Ol extends re {
|
|
|
4554
4554
|
const s = Sl(t.items), r = this.filterDuplicateItems(s, t.entityId);
|
|
4555
4555
|
if (!this.store.getState().activityHistoryFilters?.filters?.find((o) => o.id === t.entityId) && !t.filters)
|
|
4556
4556
|
throw new Error(y("error.filterNotInitialized"));
|
|
4557
|
-
r.length > 0 &&
|
|
4557
|
+
r.length > 0 && Or(r, this.store), this.store.dispatch(
|
|
4558
4558
|
El({
|
|
4559
4559
|
id: t.entityId,
|
|
4560
4560
|
items: r,
|
|
@@ -4562,7 +4562,7 @@ class Ol extends re {
|
|
|
4562
4562
|
searchPredicate: t.searchPredicate,
|
|
4563
4563
|
historyDataImporterRules: t.historyDataImporterRules
|
|
4564
4564
|
})
|
|
4565
|
-
), t.filters && this.api.broker.send(new
|
|
4565
|
+
), t.filters && this.api.broker.send(new Mr(t.filters));
|
|
4566
4566
|
} catch (s) {
|
|
4567
4567
|
this.api.notificationService.error(s.message);
|
|
4568
4568
|
}
|
|
@@ -4571,18 +4571,18 @@ class Ol extends re {
|
|
|
4571
4571
|
if (t.length === 0)
|
|
4572
4572
|
return [];
|
|
4573
4573
|
const r = this.store.getState(), i = t.filter(
|
|
4574
|
-
(n) =>
|
|
4574
|
+
(n) => !$r(r.activityHistoryCollections?.collections, s, n.id)
|
|
4575
4575
|
);
|
|
4576
4576
|
if (i.length === 0 && t.length > 0)
|
|
4577
4577
|
throw new Error(y("error.allItemsAlreadyExist"));
|
|
4578
4578
|
return i.length < t.length && this.api.notificationService.warning(y("warning.someItemsAlreadyExist")), i;
|
|
4579
4579
|
}
|
|
4580
4580
|
}
|
|
4581
|
-
let
|
|
4581
|
+
let Pr;
|
|
4582
4582
|
const Fl = (e, t) => {
|
|
4583
|
-
|
|
4583
|
+
Pr = e.registerRequest(t.broker.events.activityHistory.addHistoryItemsRequest, Ol);
|
|
4584
4584
|
}, Ml = () => {
|
|
4585
|
-
|
|
4585
|
+
Pr?.dispose();
|
|
4586
4586
|
};
|
|
4587
4587
|
function C(e, t = {}) {
|
|
4588
4588
|
return ko(wt)(e, t);
|
|
@@ -4632,11 +4632,11 @@ class zl extends re {
|
|
|
4632
4632
|
this.store.dispatch(fl(s));
|
|
4633
4633
|
}
|
|
4634
4634
|
}
|
|
4635
|
-
let
|
|
4635
|
+
let Ar;
|
|
4636
4636
|
const Vl = (e) => {
|
|
4637
|
-
|
|
4638
|
-
},
|
|
4639
|
-
|
|
4637
|
+
kr(), Ar = e.registerRequest(ns, zl);
|
|
4638
|
+
}, kr = () => {
|
|
4639
|
+
Ar?.dispose();
|
|
4640
4640
|
}, Nl = ".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)}", Bl = (e) => {
|
|
4641
4641
|
const { arrayElements: t, text: s } = e;
|
|
4642
4642
|
return h`
|
|
@@ -4748,11 +4748,11 @@ class Ll extends qt {
|
|
|
4748
4748
|
}
|
|
4749
4749
|
class os {
|
|
4750
4750
|
}
|
|
4751
|
-
let
|
|
4751
|
+
let Rr;
|
|
4752
4752
|
const Wl = (e) => {
|
|
4753
|
-
|
|
4753
|
+
Rr = e.registerRequest(os, Ll);
|
|
4754
4754
|
}, jl = () => {
|
|
4755
|
-
|
|
4755
|
+
Rr?.dispose();
|
|
4756
4756
|
};
|
|
4757
4757
|
function Yl(e, t, s, r) {
|
|
4758
4758
|
const i = `Sense ${r.toLocaleLowerCase()}`, n = /* @__PURE__ */ new Map();
|
|
@@ -4779,7 +4779,7 @@ class Ql extends N {
|
|
|
4779
4779
|
return this.commonFilters.filter((i) => i.enabled).reduce((i, n) => i.and(new n.spec()), new Ul()).isSatisfiedBy(t);
|
|
4780
4780
|
}
|
|
4781
4781
|
}
|
|
4782
|
-
class
|
|
4782
|
+
class Hr extends N {
|
|
4783
4783
|
isSatisfiedBy() {
|
|
4784
4784
|
return !1;
|
|
4785
4785
|
}
|
|
@@ -4804,7 +4804,7 @@ class Xl extends N {
|
|
|
4804
4804
|
const i = r.filters.filter(
|
|
4805
4805
|
(n) => n.enabled || n.singleOption
|
|
4806
4806
|
);
|
|
4807
|
-
return i.length === 0 ? !0 : i.every((n) => n.singleOption ? n.enabled ? !0 : new Ps(n.propPathValue, !1).isSatisfiedBy(t) : !n.enabledValues || n.enabledValues.length === 0 ? !0 : n.enabledValues.reduce((a, l) => a.or(new Ps(n.propPathValue, l)), new
|
|
4807
|
+
return i.length === 0 ? !0 : i.every((n) => n.singleOption ? n.enabled ? !0 : new Ps(n.propPathValue, !1).isSatisfiedBy(t) : !n.enabledValues || n.enabledValues.length === 0 ? !0 : n.enabledValues.reduce((a, l) => a.or(new Ps(n.propPathValue, l)), new Hr()).isSatisfiedBy(t));
|
|
4808
4808
|
});
|
|
4809
4809
|
}
|
|
4810
4810
|
belongsToGroup(t, s) {
|
|
@@ -4871,7 +4871,7 @@ class tc extends N {
|
|
|
4871
4871
|
}
|
|
4872
4872
|
isSatisfiedBy(t) {
|
|
4873
4873
|
const s = this.filters.filter((i) => i.enabled).map((i) => i.id);
|
|
4874
|
-
return s.length === 0 ? !0 : s.reduce((i, n) => i.or(new ec(n)), new
|
|
4874
|
+
return s.length === 0 ? !0 : s.reduce((i, n) => i.or(new ec(n)), new Hr()).isSatisfiedBy(t);
|
|
4875
4875
|
}
|
|
4876
4876
|
}
|
|
4877
4877
|
class sc extends N {
|
|
@@ -4887,16 +4887,16 @@ class sc extends N {
|
|
|
4887
4887
|
}
|
|
4888
4888
|
const St = (e) => e.activityHistoryFilters.filters, as = A(
|
|
4889
4889
|
St,
|
|
4890
|
-
(e) => e.find(
|
|
4891
|
-
),
|
|
4890
|
+
(e) => e.find(xr)?.filters || []
|
|
4891
|
+
), zr = A(
|
|
4892
4892
|
as,
|
|
4893
4893
|
(e) => e.filter((t) => t.enabled)
|
|
4894
4894
|
), rc = A(
|
|
4895
|
-
|
|
4895
|
+
zr,
|
|
4896
4896
|
(e) => !!e.length
|
|
4897
4897
|
), Ye = A(
|
|
4898
4898
|
St,
|
|
4899
|
-
(e) => e.filter(
|
|
4899
|
+
(e) => e.filter(_r).sort(ic)
|
|
4900
4900
|
), ic = (e, t) => Number(e.sort) - Number(t.sort), nc = A(
|
|
4901
4901
|
Ye,
|
|
4902
4902
|
(e) => e.some(
|
|
@@ -4913,11 +4913,11 @@ A(
|
|
|
4913
4913
|
filters: n.filter((o) => o.enabledValues?.length)
|
|
4914
4914
|
})).filter((t) => t.filters.length > 0)
|
|
4915
4915
|
);
|
|
4916
|
-
const
|
|
4916
|
+
const Vr = A(
|
|
4917
4917
|
St,
|
|
4918
4918
|
(e) => e.find(Pe)
|
|
4919
4919
|
), ls = A(
|
|
4920
|
-
|
|
4920
|
+
Vr,
|
|
4921
4921
|
(e) => e?.enabledValues || []
|
|
4922
4922
|
), oc = A(
|
|
4923
4923
|
ls,
|
|
@@ -4958,7 +4958,7 @@ function fc(e) {
|
|
|
4958
4958
|
}
|
|
4959
4959
|
}
|
|
4960
4960
|
a || s.push({
|
|
4961
|
-
idSubGroup:
|
|
4961
|
+
idSubGroup: nr(),
|
|
4962
4962
|
items: [i]
|
|
4963
4963
|
});
|
|
4964
4964
|
} else
|
|
@@ -5016,11 +5016,11 @@ const pc = (e) => {
|
|
|
5016
5016
|
const o = i.items[0], a = n.items[0];
|
|
5017
5017
|
return !o || !a ? 0 : ee(a.date).getTime() - ee(o.date).getTime();
|
|
5018
5018
|
}), fc(r), r;
|
|
5019
|
-
},
|
|
5019
|
+
}, Nr = (e) => e.reduce((t, s) => {
|
|
5020
5020
|
const r = new Date(s.date);
|
|
5021
5021
|
return r > t ? r : t;
|
|
5022
|
-
}, /* @__PURE__ */ new Date(0)), Wt = (e) =>
|
|
5023
|
-
const t = e.items.length > 0 ? [
|
|
5022
|
+
}, /* @__PURE__ */ new Date(0)), Wt = (e) => Nr(e.items), jt = (e) => {
|
|
5023
|
+
const t = e.items.length > 0 ? [Nr(e.items)] : [], s = e.subGroups.map(Wt), r = [...t, ...s];
|
|
5024
5024
|
return r.length > 0 ? new Date(Math.max(...r.map((i) => i.getTime()))) : /* @__PURE__ */ new Date(0);
|
|
5025
5025
|
}, mc = (e) => {
|
|
5026
5026
|
const t = (s) => s.sort((r, i) => new Date(i.date).getTime() - new Date(r.date).getTime());
|
|
@@ -5056,7 +5056,7 @@ A(
|
|
|
5056
5056
|
return r?.items && r.items.length > 0;
|
|
5057
5057
|
})
|
|
5058
5058
|
);
|
|
5059
|
-
const
|
|
5059
|
+
const Br = A(
|
|
5060
5060
|
Ye,
|
|
5061
5061
|
Dt,
|
|
5062
5062
|
(e, t) => e.map((r) => {
|
|
@@ -5086,12 +5086,12 @@ class hs {
|
|
|
5086
5086
|
this.payload = t;
|
|
5087
5087
|
}
|
|
5088
5088
|
}
|
|
5089
|
-
class
|
|
5089
|
+
class qr {
|
|
5090
5090
|
constructor(t) {
|
|
5091
5091
|
this.payload = t;
|
|
5092
5092
|
}
|
|
5093
5093
|
}
|
|
5094
|
-
class
|
|
5094
|
+
class Gr {
|
|
5095
5095
|
constructor(t) {
|
|
5096
5096
|
this.payload = t;
|
|
5097
5097
|
}
|
|
@@ -5123,7 +5123,7 @@ const vc = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
5123
5123
|
<label slot="label" for="dropdownStory-${id}">${title || id}</label>
|
|
5124
5124
|
</dss-input-dropdown>`, */
|
|
5125
5125
|
}, Yt = (e, t, s, r) => {
|
|
5126
|
-
const i = !!s?.id && !!r, n =
|
|
5126
|
+
const i = !!s?.id && !!r, n = nr(), o = i ? r.title || r.id : e.title, a = (c) => {
|
|
5127
5127
|
e.singleOption ? t(s?.id, e.id, null, c.detail) : i && r ? t(s?.id, e.id, r.id, c.detail) : t(e.id, c.detail);
|
|
5128
5128
|
}, l = i && r ? e.enabledValues?.includes(r.id) : e.enabled, d = i && r || e.singleOption ? s.enabled : !0;
|
|
5129
5129
|
return wc[e.type]?.(n, o, a, l, d) || h``;
|
|
@@ -5221,7 +5221,7 @@ let ie = class extends j {
|
|
|
5221
5221
|
this.api.broker.send(new hs({ id: e, enabled: t }));
|
|
5222
5222
|
}
|
|
5223
5223
|
_onChangeCustomFilterGroupValue(e, t) {
|
|
5224
|
-
this.api.broker.send(new
|
|
5224
|
+
this.api.broker.send(new Gr({ id: e, enabled: t }));
|
|
5225
5225
|
}
|
|
5226
5226
|
_onChangeCustomFilterValue(e, t, s, r) {
|
|
5227
5227
|
this.api.broker.send(
|
|
@@ -5235,7 +5235,7 @@ let ie = class extends j {
|
|
|
5235
5235
|
}
|
|
5236
5236
|
_onChangeCustomFilterAllValues(e, t, s) {
|
|
5237
5237
|
this.api.broker.send(
|
|
5238
|
-
new
|
|
5238
|
+
new qr({
|
|
5239
5239
|
filterGroupId: e,
|
|
5240
5240
|
filterId: t,
|
|
5241
5241
|
values: s
|
|
@@ -5254,7 +5254,7 @@ ye([
|
|
|
5254
5254
|
C(as)
|
|
5255
5255
|
], ie.prototype, "commonFilters", 2);
|
|
5256
5256
|
ye([
|
|
5257
|
-
C(
|
|
5257
|
+
C(Br)
|
|
5258
5258
|
], ie.prototype, "customFilterGroups", 2);
|
|
5259
5259
|
ye([
|
|
5260
5260
|
C(cs)
|
|
@@ -5284,11 +5284,11 @@ class Ic extends Q {
|
|
|
5284
5284
|
}
|
|
5285
5285
|
}
|
|
5286
5286
|
}
|
|
5287
|
-
let
|
|
5287
|
+
let Lr;
|
|
5288
5288
|
const $c = (e) => {
|
|
5289
|
-
|
|
5289
|
+
Lr = e.registerRequest(hs, Ic);
|
|
5290
5290
|
}, Tc = () => {
|
|
5291
|
-
|
|
5291
|
+
Lr?.dispose();
|
|
5292
5292
|
}, { addCustomFilters: Ec } = B.actions;
|
|
5293
5293
|
class Oc extends Q {
|
|
5294
5294
|
async handle(t) {
|
|
@@ -5299,11 +5299,11 @@ class Oc extends Q {
|
|
|
5299
5299
|
}
|
|
5300
5300
|
}
|
|
5301
5301
|
}
|
|
5302
|
-
let
|
|
5302
|
+
let Wr;
|
|
5303
5303
|
const Fc = (e) => {
|
|
5304
|
-
|
|
5304
|
+
Wr = e.registerRequest(Mr, Oc);
|
|
5305
5305
|
}, Mc = () => {
|
|
5306
|
-
|
|
5306
|
+
Wr?.dispose();
|
|
5307
5307
|
}, { setCustomFilterAllValues: Pc } = B.actions;
|
|
5308
5308
|
class Ac extends Q {
|
|
5309
5309
|
async handle(t) {
|
|
@@ -5314,11 +5314,11 @@ class Ac extends Q {
|
|
|
5314
5314
|
}
|
|
5315
5315
|
}
|
|
5316
5316
|
}
|
|
5317
|
-
let
|
|
5317
|
+
let jr;
|
|
5318
5318
|
const kc = (e) => {
|
|
5319
|
-
|
|
5319
|
+
jr = e.registerRequest(qr, Ac);
|
|
5320
5320
|
}, Rc = () => {
|
|
5321
|
-
|
|
5321
|
+
jr?.dispose();
|
|
5322
5322
|
}, { setCustomFilterGroupValue: Hc } = B.actions;
|
|
5323
5323
|
class zc extends Q {
|
|
5324
5324
|
async handle(t) {
|
|
@@ -5329,11 +5329,11 @@ class zc extends Q {
|
|
|
5329
5329
|
}
|
|
5330
5330
|
}
|
|
5331
5331
|
}
|
|
5332
|
-
let
|
|
5332
|
+
let Yr;
|
|
5333
5333
|
const Vc = (e) => {
|
|
5334
|
-
|
|
5334
|
+
Yr = e.registerRequest(Gr, zc);
|
|
5335
5335
|
}, Nc = () => {
|
|
5336
|
-
|
|
5336
|
+
Yr?.dispose();
|
|
5337
5337
|
}, { setCustomFilterValue: Bc } = B.actions;
|
|
5338
5338
|
class qc extends Q {
|
|
5339
5339
|
async handle(t) {
|
|
@@ -5344,11 +5344,11 @@ class qc extends Q {
|
|
|
5344
5344
|
}
|
|
5345
5345
|
}
|
|
5346
5346
|
}
|
|
5347
|
-
let
|
|
5347
|
+
let Ur;
|
|
5348
5348
|
const Gc = (e) => {
|
|
5349
|
-
|
|
5349
|
+
Ur = e.registerRequest(fs, qc);
|
|
5350
5350
|
}, Lc = () => {
|
|
5351
|
-
|
|
5351
|
+
Ur?.dispose();
|
|
5352
5352
|
}, { deleteDiagnosticFilterValue: Wc } = B.actions;
|
|
5353
5353
|
class jc extends re {
|
|
5354
5354
|
async handle(t) {
|
|
@@ -5366,16 +5366,16 @@ class jc extends re {
|
|
|
5366
5366
|
}
|
|
5367
5367
|
}
|
|
5368
5368
|
}
|
|
5369
|
-
class
|
|
5369
|
+
class Qr {
|
|
5370
5370
|
constructor(t) {
|
|
5371
5371
|
this.payload = t;
|
|
5372
5372
|
}
|
|
5373
5373
|
}
|
|
5374
|
-
let
|
|
5374
|
+
let Xr;
|
|
5375
5375
|
const Yc = (e) => {
|
|
5376
|
-
|
|
5376
|
+
Xr = e.registerRequest(Qr, jc);
|
|
5377
5377
|
}, Uc = () => {
|
|
5378
|
-
|
|
5378
|
+
Xr?.dispose();
|
|
5379
5379
|
}, { setDiagnosticFilterValues: Qc } = B.actions;
|
|
5380
5380
|
class Xc extends Q {
|
|
5381
5381
|
async handle(t) {
|
|
@@ -5386,22 +5386,22 @@ class Xc extends Q {
|
|
|
5386
5386
|
}
|
|
5387
5387
|
}
|
|
5388
5388
|
}
|
|
5389
|
-
class
|
|
5389
|
+
class Kr {
|
|
5390
5390
|
constructor(t) {
|
|
5391
5391
|
this.payload = t;
|
|
5392
5392
|
}
|
|
5393
5393
|
}
|
|
5394
|
-
let
|
|
5394
|
+
let Jr;
|
|
5395
5395
|
const Kc = (e) => {
|
|
5396
|
-
|
|
5396
|
+
Jr = e.registerRequest(Kr, Xc);
|
|
5397
5397
|
}, Jc = () => {
|
|
5398
|
-
|
|
5398
|
+
Jr?.dispose();
|
|
5399
5399
|
}, Zc = (e) => {
|
|
5400
5400
|
e.broker.subscribe("cipds_diagnostic_filter_historic_requested", (t) => {
|
|
5401
|
-
e.broker.send(new
|
|
5401
|
+
e.broker.send(new Kr(t));
|
|
5402
5402
|
});
|
|
5403
5403
|
};
|
|
5404
|
-
class
|
|
5404
|
+
class Zr {
|
|
5405
5405
|
}
|
|
5406
5406
|
const { resetFilters: ed } = B.actions;
|
|
5407
5407
|
class td extends re {
|
|
@@ -5413,11 +5413,11 @@ class td extends re {
|
|
|
5413
5413
|
}
|
|
5414
5414
|
}
|
|
5415
5415
|
}
|
|
5416
|
-
let
|
|
5416
|
+
let ei;
|
|
5417
5417
|
const sd = (e) => {
|
|
5418
|
-
|
|
5418
|
+
ei = e.registerRequest(Zr, td);
|
|
5419
5419
|
}, rd = () => {
|
|
5420
|
-
|
|
5420
|
+
ei?.dispose();
|
|
5421
5421
|
}, { addUpFilters: id } = B.actions;
|
|
5422
5422
|
class nd extends Q {
|
|
5423
5423
|
async handle(t) {
|
|
@@ -5433,11 +5433,11 @@ class od {
|
|
|
5433
5433
|
this.payload = t;
|
|
5434
5434
|
}
|
|
5435
5435
|
}
|
|
5436
|
-
let
|
|
5436
|
+
let ti;
|
|
5437
5437
|
const ad = (e) => {
|
|
5438
|
-
|
|
5438
|
+
ti = e.registerRequest(od, nd);
|
|
5439
5439
|
}, ld = () => {
|
|
5440
|
-
|
|
5440
|
+
ti?.dispose();
|
|
5441
5441
|
}, { setUpFilterValues: cd } = B.actions;
|
|
5442
5442
|
class dd extends Q {
|
|
5443
5443
|
async handle(t) {
|
|
@@ -5448,11 +5448,11 @@ class dd extends Q {
|
|
|
5448
5448
|
}
|
|
5449
5449
|
}
|
|
5450
5450
|
}
|
|
5451
|
-
let
|
|
5451
|
+
let si;
|
|
5452
5452
|
const ud = (e) => {
|
|
5453
|
-
|
|
5453
|
+
si = e.registerRequest(ps, dd);
|
|
5454
5454
|
}, hd = () => {
|
|
5455
|
-
|
|
5455
|
+
si?.dispose();
|
|
5456
5456
|
}, fd = (e, t) => {
|
|
5457
5457
|
$c(e), Fc(e), Vc(e), Gc(e), kc(e), Kc(e), Yc(e), ad(e), ud(e), sd(e), Zc(t);
|
|
5458
5458
|
}, pd = () => {
|
|
@@ -5478,7 +5478,7 @@ const Ge = (e, t) => {
|
|
|
5478
5478
|
if ((t = e._$AM) === void 0) break;
|
|
5479
5479
|
s = t._$AN, s.delete(e), e = t;
|
|
5480
5480
|
} while (s?.size === 0);
|
|
5481
|
-
},
|
|
5481
|
+
}, ri = (e) => {
|
|
5482
5482
|
for (let t; t = e._$AM; e = t) {
|
|
5483
5483
|
let s = t._$AN;
|
|
5484
5484
|
if (s === void 0) t._$AN = s = /* @__PURE__ */ new Set();
|
|
@@ -5487,7 +5487,7 @@ const Ge = (e, t) => {
|
|
|
5487
5487
|
}
|
|
5488
5488
|
};
|
|
5489
5489
|
function vd(e) {
|
|
5490
|
-
this._$AN !== void 0 ? (dt(this), this._$AM = e,
|
|
5490
|
+
this._$AN !== void 0 ? (dt(this), this._$AM = e, ri(this)) : this._$AM = e;
|
|
5491
5491
|
}
|
|
5492
5492
|
function wd(e, t = !1, s = 0) {
|
|
5493
5493
|
const r = this._$AH, i = this._$AN;
|
|
@@ -5496,20 +5496,20 @@ function wd(e, t = !1, s = 0) {
|
|
|
5496
5496
|
else Ge(this, e);
|
|
5497
5497
|
}
|
|
5498
5498
|
const xd = (e) => {
|
|
5499
|
-
e.type ==
|
|
5499
|
+
e.type == Ti.CHILD && (e._$AP ??= wd, e._$AQ ??= vd);
|
|
5500
5500
|
};
|
|
5501
|
-
class _d extends
|
|
5501
|
+
class _d extends Ii {
|
|
5502
5502
|
constructor() {
|
|
5503
5503
|
super(...arguments), this._$AN = void 0;
|
|
5504
5504
|
}
|
|
5505
5505
|
_$AT(t, s, r) {
|
|
5506
|
-
super._$AT(t, s, r),
|
|
5506
|
+
super._$AT(t, s, r), ri(this), this.isConnected = t._$AU;
|
|
5507
5507
|
}
|
|
5508
5508
|
_$AO(t, s = !0) {
|
|
5509
5509
|
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), s && (Ge(this, t), dt(this));
|
|
5510
5510
|
}
|
|
5511
5511
|
setValue(t) {
|
|
5512
|
-
if (
|
|
5512
|
+
if ($i(this.t)) this.t._$AI(t, this);
|
|
5513
5513
|
else {
|
|
5514
5514
|
const s = [...this.t._$AH];
|
|
5515
5515
|
s[this.i] = t, this.t._$AI(s, this, 0);
|
|
@@ -5520,7 +5520,7 @@ class _d extends Di {
|
|
|
5520
5520
|
reconnected() {
|
|
5521
5521
|
}
|
|
5522
5522
|
}
|
|
5523
|
-
const Mt = /* @__PURE__ */ new WeakMap(),
|
|
5523
|
+
const Mt = /* @__PURE__ */ new WeakMap(), ii = Ei(class extends _d {
|
|
5524
5524
|
render(e) {
|
|
5525
5525
|
return M;
|
|
5526
5526
|
}
|
|
@@ -5566,13 +5566,13 @@ Ut.styles = W`
|
|
|
5566
5566
|
Ut = Id([
|
|
5567
5567
|
Y("activity-history-is-grouping-busy")
|
|
5568
5568
|
], Ut);
|
|
5569
|
-
function
|
|
5569
|
+
function ni(e) {
|
|
5570
5570
|
return !e.professional?.speciality?.description;
|
|
5571
5571
|
}
|
|
5572
5572
|
const Qt = (e, t) => {
|
|
5573
5573
|
const s = t.findIndex((r) => r.id === e.id);
|
|
5574
5574
|
return s === -1 ? !1 : s === t.length - 1 ? !0 : !e.diagnostics?.length;
|
|
5575
|
-
},
|
|
5575
|
+
}, oi = (e) => {
|
|
5576
5576
|
const t = e?.items.map((r) => ({
|
|
5577
5577
|
type: "item",
|
|
5578
5578
|
date: new Date(r.date),
|
|
@@ -5599,12 +5599,12 @@ const Qt = (e, t) => {
|
|
|
5599
5599
|
({ index: t, group: s }) => h`
|
|
5600
5600
|
<div class="visit"
|
|
5601
5601
|
data-index=${t}
|
|
5602
|
-
${
|
|
5602
|
+
${ii(e._measureElement)}
|
|
5603
5603
|
data-date=${Gs(s?.items[0]?.date || s?.subGroups[0]?.items[0]?.date)}>
|
|
5604
5604
|
${Ed(e, s?.items[0] || s?.subGroups[0]?.items[0], s)}
|
|
5605
5605
|
<div class="visit__items">
|
|
5606
5606
|
${le(
|
|
5607
|
-
|
|
5607
|
+
oi(s),
|
|
5608
5608
|
(r) => r.type === "item" ? r.item.id : r.subGroup.id,
|
|
5609
5609
|
(r) => {
|
|
5610
5610
|
if (r.type === "item") {
|
|
@@ -5664,7 +5664,7 @@ ${e.searchString?.length > 1 ? h`
|
|
|
5664
5664
|
<div class="visit__header">
|
|
5665
5665
|
<div class="title">
|
|
5666
5666
|
<div class="title-date">
|
|
5667
|
-
<div>${
|
|
5667
|
+
<div>${er(new Date(t.date), "dd/MM/yyyy")}</div>
|
|
5668
5668
|
</div>
|
|
5669
5669
|
<div class="title-description">
|
|
5670
5670
|
<div>
|
|
@@ -5683,7 +5683,7 @@ ${e.searchString?.length > 1 ? h`
|
|
|
5683
5683
|
}
|
|
5684
5684
|
}, Fd = (e, t, s) => {
|
|
5685
5685
|
if (!t.professional) return M;
|
|
5686
|
-
const r =
|
|
5686
|
+
const r = ni(t), i = [];
|
|
5687
5687
|
i.push(e.highlighted(t.professional.name)), r && t.professional?.role?.description && i.push(e.highlighted(t.professional.role.description)), t.professional?.speciality?.description && i.push(e.highlighted(t.professional.speciality.description)), t.up?.description && i.push(e.highlighted(t.up.description));
|
|
5688
5688
|
const n = t.service?.description ? t.service : Od(s);
|
|
5689
5689
|
return n?.description && i.push(e.highlighted(n.description)), i.map((o, a) => h`${o}${a < i.length - 1 ? " | " : ""}`);
|
|
@@ -6127,7 +6127,7 @@ class Bd {
|
|
|
6127
6127
|
const r = this.getMeasurements();
|
|
6128
6128
|
if (r.length !== 0)
|
|
6129
6129
|
return zs(
|
|
6130
|
-
r[
|
|
6130
|
+
r[ai(
|
|
6131
6131
|
0,
|
|
6132
6132
|
r.length - 1,
|
|
6133
6133
|
(i) => zs(r[i]).start,
|
|
@@ -6262,7 +6262,7 @@ class Bd {
|
|
|
6262
6262
|
this.scheduleScrollReconcile();
|
|
6263
6263
|
}
|
|
6264
6264
|
}
|
|
6265
|
-
const
|
|
6265
|
+
const ai = (e, t, s, r) => {
|
|
6266
6266
|
for (; e <= t; ) {
|
|
6267
6267
|
const i = (e + t) / 2 | 0, n = s(i);
|
|
6268
6268
|
if (n < r)
|
|
@@ -6286,7 +6286,7 @@ function qd({
|
|
|
6286
6286
|
startIndex: 0,
|
|
6287
6287
|
endIndex: i
|
|
6288
6288
|
};
|
|
6289
|
-
let o =
|
|
6289
|
+
let o = ai(
|
|
6290
6290
|
0,
|
|
6291
6291
|
i,
|
|
6292
6292
|
n,
|
|
@@ -6314,7 +6314,7 @@ const Gd = (e) => {
|
|
|
6314
6314
|
const t = e.getBoundingClientRect().height, s = window.getComputedStyle(e), r = Number.parseFloat(s.marginTop) || 0, i = Number.parseFloat(s.marginBottom) || 0;
|
|
6315
6315
|
return Math.round(t + r + i);
|
|
6316
6316
|
};
|
|
6317
|
-
class
|
|
6317
|
+
class li {
|
|
6318
6318
|
constructor(t) {
|
|
6319
6319
|
this._lastVisibleState = { virtualItems: [], totalHeight: 0 }, this._savedScrollTop = 0, this._viewportWasHidden = !1, this._options = t;
|
|
6320
6320
|
}
|
|
@@ -6447,7 +6447,7 @@ let X = class extends j {
|
|
|
6447
6447
|
return e.replace(s, '<span class="highlight">$1</span>');
|
|
6448
6448
|
}
|
|
6449
6449
|
highlighted(e) {
|
|
6450
|
-
return e ?
|
|
6450
|
+
return e ? Oi(this.highlightMatch(e, this.searchString)) : null;
|
|
6451
6451
|
}
|
|
6452
6452
|
// Public API: scroll the timeline to a given date ("Anar a data").
|
|
6453
6453
|
//
|
|
@@ -6486,7 +6486,7 @@ let X = class extends j {
|
|
|
6486
6486
|
}
|
|
6487
6487
|
// === VIRTUAL SCROLLER LOGIC ===
|
|
6488
6488
|
_setupVirtualScroller() {
|
|
6489
|
-
!this._viewport || this._virtualScroller || (this._virtualScroller = new
|
|
6489
|
+
!this._viewport || this._virtualScroller || (this._virtualScroller = new li({
|
|
6490
6490
|
items: this.historyGroups || [],
|
|
6491
6491
|
overscan: 8,
|
|
6492
6492
|
estimateItemHeight: (e) => yd(this.historyGroups?.[e])
|
|
@@ -6600,10 +6600,10 @@ const Xd = ":host{width:100%}.container{display:flex;align-items:center;flex-dir
|
|
|
6600
6600
|
<dss-button @onClick=${e.handleClickFeedback} label=${y("error.general.refresh")} size="lg"></dss-button>
|
|
6601
6601
|
</dss-user-feedback>
|
|
6602
6602
|
</div>
|
|
6603
|
-
`,
|
|
6603
|
+
`, ci = (e) => e.activityHistoryCollections.error.length > 0, Zd = (e) => {
|
|
6604
6604
|
const t = e.activityHistoryCollections.collections;
|
|
6605
6605
|
return Object.values(t).every((s) => !s.items || s.items.length === 0);
|
|
6606
|
-
}, eu = (e) => !_t(e) &&
|
|
6606
|
+
}, eu = (e) => !_t(e) && ci(e) && Zd(e), di = (e) => e.activityHistoryCollections.error;
|
|
6607
6607
|
var tu = Object.defineProperty, su = Object.getOwnPropertyDescriptor, It = (e, t, s, r) => {
|
|
6608
6608
|
for (var i = r > 1 ? void 0 : r ? su(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6609
6609
|
(o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
|
|
@@ -6627,7 +6627,7 @@ It([
|
|
|
6627
6627
|
C(eu)
|
|
6628
6628
|
], Ae.prototype, "isAllDataFailedToLoad", 2);
|
|
6629
6629
|
It([
|
|
6630
|
-
C(
|
|
6630
|
+
C(di)
|
|
6631
6631
|
], Ae.prototype, "errorMessages", 2);
|
|
6632
6632
|
It([
|
|
6633
6633
|
Ce(z.primaryApi)
|
|
@@ -6669,10 +6669,10 @@ ke.styles = W`
|
|
|
6669
6669
|
${L(ru)}
|
|
6670
6670
|
`;
|
|
6671
6671
|
$t([
|
|
6672
|
-
C(
|
|
6672
|
+
C(ci)
|
|
6673
6673
|
], ke.prototype, "isErrorOccurred", 2);
|
|
6674
6674
|
$t([
|
|
6675
|
-
C(
|
|
6675
|
+
C(di)
|
|
6676
6676
|
], ke.prototype, "errorMessages", 2);
|
|
6677
6677
|
$t([
|
|
6678
6678
|
Ce(z.primaryApi)
|
|
@@ -6686,13 +6686,13 @@ class cu extends re {
|
|
|
6686
6686
|
this.store.dispatch(B.actions.clearCustomFilters()), this.store.dispatch(lu()), this.api.broker.publish(this.api.broker.events.activityHistory.refreshDataRequested);
|
|
6687
6687
|
}
|
|
6688
6688
|
}
|
|
6689
|
-
class
|
|
6689
|
+
class ui {
|
|
6690
6690
|
}
|
|
6691
|
-
let
|
|
6691
|
+
let hi;
|
|
6692
6692
|
const du = (e) => {
|
|
6693
|
-
uu(),
|
|
6693
|
+
uu(), hi = e.registerRequest(ui, cu);
|
|
6694
6694
|
}, uu = () => {
|
|
6695
|
-
|
|
6695
|
+
hi?.dispose();
|
|
6696
6696
|
}, { removeActivityHistoryItem: hu } = ge.actions;
|
|
6697
6697
|
class fu extends Q {
|
|
6698
6698
|
async handle(t) {
|
|
@@ -6708,11 +6708,11 @@ class fu extends Q {
|
|
|
6708
6708
|
}
|
|
6709
6709
|
}
|
|
6710
6710
|
}
|
|
6711
|
-
let
|
|
6711
|
+
let fi;
|
|
6712
6712
|
const pu = (e) => {
|
|
6713
|
-
|
|
6713
|
+
fi = e.registerRequest("remove_history_item_request", fu);
|
|
6714
6714
|
}, mu = () => {
|
|
6715
|
-
|
|
6715
|
+
fi?.dispose();
|
|
6716
6716
|
}, { setSearchString: gu } = B.actions;
|
|
6717
6717
|
class yu extends re {
|
|
6718
6718
|
async handle(t) {
|
|
@@ -6735,7 +6735,7 @@ class ut {
|
|
|
6735
6735
|
const bu = ".search-header{color:var(--color-neutral-900);font-weight:600}", vu = (e) => h`<div class="search-header">
|
|
6736
6736
|
${y("searchBarResults")} “${e.searchQuery}”
|
|
6737
6737
|
</div>`;
|
|
6738
|
-
var wu = Object.defineProperty, xu = Object.getOwnPropertyDescriptor,
|
|
6738
|
+
var wu = Object.defineProperty, xu = Object.getOwnPropertyDescriptor, pi = (e, t, s, r) => {
|
|
6739
6739
|
for (var i = r > 1 ? void 0 : r ? xu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6740
6740
|
(o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
|
|
6741
6741
|
return r && i && wu(t, s, i), i;
|
|
@@ -6751,17 +6751,17 @@ let ht = class extends j {
|
|
|
6751
6751
|
ht.styles = W`
|
|
6752
6752
|
${L(bu)}
|
|
6753
6753
|
`;
|
|
6754
|
-
|
|
6754
|
+
pi([
|
|
6755
6755
|
Z()
|
|
6756
6756
|
], ht.prototype, "searchQuery", 2);
|
|
6757
|
-
ht =
|
|
6757
|
+
ht = pi([
|
|
6758
6758
|
Y("activity-history-search-results")
|
|
6759
6759
|
], ht);
|
|
6760
6760
|
const _u = ".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}", Su = (e) => h`<dss-search-bar dropdownStyle=${"display: none"} @onSearchChange=${e._handleSearchChange} icon="search" inputsize="md" threshold="2" recentsearchestext="" emptydropdowntext="">
|
|
6761
6761
|
<label slot="label" for="searchbar1" aria-hidden="false"></label>
|
|
6762
6762
|
<input slot="input" id="searchbar1" type="text" value=${e.searchQuery} @input=${(t) => e._handleSearchChange({ detail: [t.target.value] })}>
|
|
6763
6763
|
</dss-search-bar>`;
|
|
6764
|
-
var Cu = Object.defineProperty, Du = Object.getOwnPropertyDescriptor,
|
|
6764
|
+
var Cu = Object.defineProperty, Du = Object.getOwnPropertyDescriptor, mi = (e, t, s, r) => {
|
|
6765
6765
|
for (var i = r > 1 ? void 0 : r ? Du(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6766
6766
|
(o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
|
|
6767
6767
|
return r && i && Cu(t, s, i), i;
|
|
@@ -6781,10 +6781,10 @@ let ft = class extends j {
|
|
|
6781
6781
|
ft.styles = W`
|
|
6782
6782
|
${L(_u)}
|
|
6783
6783
|
`;
|
|
6784
|
-
|
|
6784
|
+
mi([
|
|
6785
6785
|
Z()
|
|
6786
6786
|
], ft.prototype, "searchQuery", 2);
|
|
6787
|
-
ft =
|
|
6787
|
+
ft = mi([
|
|
6788
6788
|
Y("activity-history-search-bar")
|
|
6789
6789
|
], ft);
|
|
6790
6790
|
const Iu = ":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}", $u = (e) => {
|
|
@@ -6919,13 +6919,13 @@ let me = class extends j {
|
|
|
6919
6919
|
this.api.broker.send(new hs({ id: e, enabled: !1 }));
|
|
6920
6920
|
}
|
|
6921
6921
|
_onDeleteDiagnosticFilterValue(e) {
|
|
6922
|
-
this.api.broker.send(new
|
|
6922
|
+
this.api.broker.send(new Qr({ diagnosticCodi: e }));
|
|
6923
6923
|
}
|
|
6924
6924
|
_onDeleteUpFilterValue(e) {
|
|
6925
6925
|
this.api.broker.send(new ps([...this.upFilterEnabled.enabledValues.filter((t) => t !== e)]));
|
|
6926
6926
|
}
|
|
6927
6927
|
resetFilters() {
|
|
6928
|
-
this.api.broker.send(new
|
|
6928
|
+
this.api.broker.send(new Zr());
|
|
6929
6929
|
}
|
|
6930
6930
|
};
|
|
6931
6931
|
me.styles = W`
|
|
@@ -6935,13 +6935,13 @@ Ve([
|
|
|
6935
6935
|
Ce(z.primaryApi)
|
|
6936
6936
|
], me.prototype, "api", 2);
|
|
6937
6937
|
Ve([
|
|
6938
|
-
C(
|
|
6938
|
+
C(zr)
|
|
6939
6939
|
], me.prototype, "enabledCommonFilters", 2);
|
|
6940
6940
|
Ve([
|
|
6941
|
-
C(
|
|
6941
|
+
C(Br)
|
|
6942
6942
|
], me.prototype, "enabledFilters", 2);
|
|
6943
6943
|
Ve([
|
|
6944
|
-
C(
|
|
6944
|
+
C(Vr)
|
|
6945
6945
|
], me.prototype, "diagnosticFilterEnabled", 2);
|
|
6946
6946
|
Ve([
|
|
6947
6947
|
C(cs)
|
|
@@ -6949,16 +6949,16 @@ Ve([
|
|
|
6949
6949
|
me = Ve([
|
|
6950
6950
|
Y("active-filters-badges")
|
|
6951
6951
|
], me);
|
|
6952
|
-
let
|
|
6952
|
+
let gi;
|
|
6953
6953
|
const zu = (e) => {
|
|
6954
|
-
|
|
6954
|
+
gi = e.registerRequest(ut, yu);
|
|
6955
6955
|
}, Vu = () => {
|
|
6956
|
-
|
|
6956
|
+
gi?.dispose();
|
|
6957
6957
|
}, { updateActivityHistoryItem: Nu } = ge.actions;
|
|
6958
6958
|
class Bu extends Q {
|
|
6959
6959
|
async handle(t) {
|
|
6960
6960
|
try {
|
|
6961
|
-
|
|
6961
|
+
Er([t.item]), this.store.dispatch(
|
|
6962
6962
|
Nu({
|
|
6963
6963
|
id: t.entityId,
|
|
6964
6964
|
item: t.item
|
|
@@ -6969,17 +6969,17 @@ class Bu extends Q {
|
|
|
6969
6969
|
}
|
|
6970
6970
|
}
|
|
6971
6971
|
}
|
|
6972
|
-
let
|
|
6972
|
+
let yi;
|
|
6973
6973
|
const qu = (e) => {
|
|
6974
|
-
|
|
6974
|
+
yi = e.registerRequest("update_history_item_request", Bu);
|
|
6975
6975
|
}, Gu = () => {
|
|
6976
|
-
|
|
6976
|
+
yi?.dispose();
|
|
6977
6977
|
};
|
|
6978
6978
|
let K;
|
|
6979
6979
|
const Lu = (e) => {
|
|
6980
6980
|
K = Mo(e, Se), gl(K, e), $l(K, e), Fl(K, e), Vl(K), du(K), qu(K), Wl(K), fd(K, e), zu(K), pu(K);
|
|
6981
6981
|
}, Wu = () => {
|
|
6982
|
-
yl(), Tl(), Ml(),
|
|
6982
|
+
yl(), Tl(), Ml(), kr(), Gu(), jl(), pd(), Vu(), mu();
|
|
6983
6983
|
}, ju = "activity-history", Yu = async (e) => {
|
|
6984
6984
|
const t = (s) => Promise.all(
|
|
6985
6985
|
s.map(async (r) => ({
|
|
@@ -6999,7 +6999,7 @@ const Lu = (e) => {
|
|
|
6999
6999
|
)
|
|
7000
7000
|
}))
|
|
7001
7001
|
);
|
|
7002
|
-
},
|
|
7002
|
+
}, bi = {
|
|
7003
7003
|
virtualItems: [],
|
|
7004
7004
|
totalHeight: 0
|
|
7005
7005
|
};
|
|
@@ -7007,10 +7007,10 @@ class Uu {
|
|
|
7007
7007
|
/** Setup or update the scroller with the current items. No-op until the
|
|
7008
7008
|
* viewport and content elements exist. Detects viewport swaps and re-setups. */
|
|
7009
7009
|
sync({ viewport: t, items: s, onStateChange: r, estimateItemHeight: i }) {
|
|
7010
|
-
return t ? (this._scroller && t !== this._lastViewport && this.teardown(), this._scroller ? this._scroller.updateItems(s, r) : (this._scroller = new
|
|
7010
|
+
return t ? (this._scroller && t !== this._lastViewport && this.teardown(), this._scroller ? this._scroller.updateItems(s, r) : (this._scroller = new li({
|
|
7011
7011
|
items: s,
|
|
7012
7012
|
estimateItemHeight: i
|
|
7013
|
-
}), this._cleanup = this._scroller.setup(t, r)), this._lastViewport = t, this._scroller.getState()) : this._scroller?.getState() ??
|
|
7013
|
+
}), this._cleanup = this._scroller.setup(t, r)), this._lastViewport = t, this._scroller.getState()) : this._scroller?.getState() ?? bi;
|
|
7014
7014
|
}
|
|
7015
7015
|
teardown() {
|
|
7016
7016
|
this._cleanup?.(), this._cleanup = void 0, this._scroller = void 0, this._lastViewport = void 0;
|
|
@@ -7033,12 +7033,12 @@ const Qu = (e) => {
|
|
|
7033
7033
|
}, Zu = (e) => {
|
|
7034
7034
|
const t = e.items?.[0] || e.subGroups?.[0]?.items?.[0];
|
|
7035
7035
|
return Xu(t);
|
|
7036
|
-
},
|
|
7036
|
+
}, vi = (e, t) => ({
|
|
7037
7037
|
...e,
|
|
7038
7038
|
items: (e.items || []).filter(t),
|
|
7039
7039
|
subGroups: (e.subGroups || []).map((s) => ({ ...s, items: s.items.filter(t) })).filter((s) => s.items.length > 0)
|
|
7040
|
-
}), eh = (e, t) =>
|
|
7041
|
-
const i = e.map((a) =>
|
|
7040
|
+
}), eh = (e, t) => vi(e, (s) => Ku(s, t)), qs = (e) => e.items.length > 0 || e.subGroups.length > 0, th = (e, { todayOnly: t, selectedDiagnosticCodes: s }, r = {}) => {
|
|
7041
|
+
const i = e.map((a) => vi(a, (l) => Ju(l, r))).filter(qs), n = t, o = s.length > 0;
|
|
7042
7042
|
return !n && !o ? i : i.map((a) => n && Zu(a) ? a : o ? eh(a, s) : null).filter((a) => a !== null && qs(a));
|
|
7043
7043
|
}, Ee = (e) => {
|
|
7044
7044
|
const t = [];
|
|
@@ -7117,7 +7117,7 @@ const Qu = (e) => {
|
|
|
7117
7117
|
` : h`<div class="importer__empty">${y("importer.noResults")}</div>`, lh = (e, t, s) => {
|
|
7118
7118
|
const r = t.items?.[0] || t.subGroups?.[0]?.items?.[0], i = ms(e.visitState(t));
|
|
7119
7119
|
return h`
|
|
7120
|
-
<div class="visit" data-index=${s} ${
|
|
7120
|
+
<div class="visit" data-index=${s} ${ii(e._measureElement)} data-date=${Gs(r?.date)}>
|
|
7121
7121
|
<div class="visit__header">
|
|
7122
7122
|
<dss-form-checkbox
|
|
7123
7123
|
.checked=${i.checked}
|
|
@@ -7129,20 +7129,20 @@ const Qu = (e) => {
|
|
|
7129
7129
|
</div>
|
|
7130
7130
|
<div class="visit__items">
|
|
7131
7131
|
${le(
|
|
7132
|
-
|
|
7132
|
+
oi(t),
|
|
7133
7133
|
(n) => n.type === "item" ? n.item.id : n.subGroup.idSubGroup,
|
|
7134
|
-
(n) => n.type === "item" ?
|
|
7134
|
+
(n) => n.type === "item" ? wi(e, n.item, t.items) : dh(e, n.subGroup)
|
|
7135
7135
|
)}
|
|
7136
7136
|
</div>
|
|
7137
7137
|
</div>
|
|
7138
7138
|
`;
|
|
7139
7139
|
}, ch = (e) => {
|
|
7140
7140
|
if (!e) return M;
|
|
7141
|
-
const t =
|
|
7141
|
+
const t = ni(e), s = [];
|
|
7142
7142
|
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`
|
|
7143
7143
|
<div class="title">
|
|
7144
7144
|
<div class="title-date">
|
|
7145
|
-
<div>${
|
|
7145
|
+
<div>${er(new Date(e.date), "dd/MM/yyyy")}</div>
|
|
7146
7146
|
</div>
|
|
7147
7147
|
<div class="title-description">
|
|
7148
7148
|
<div>${s.map((r, i) => h`${r}${i < s.length - 1 ? " | " : ""}`)}</div>
|
|
@@ -7166,12 +7166,12 @@ const Qu = (e) => {
|
|
|
7166
7166
|
${le(
|
|
7167
7167
|
t.items,
|
|
7168
7168
|
(r) => r.id,
|
|
7169
|
-
(r) =>
|
|
7169
|
+
(r) => wi(e, r, t.items)
|
|
7170
7170
|
)}
|
|
7171
7171
|
</div>
|
|
7172
7172
|
</div>
|
|
7173
7173
|
`;
|
|
7174
|
-
},
|
|
7174
|
+
}, wi = (e, t, s) => h`
|
|
7175
7175
|
<div class="item" ?has-divider=${Qt(t, s)}>
|
|
7176
7176
|
<dss-form-checkbox
|
|
7177
7177
|
class="item__check"
|
|
@@ -7206,7 +7206,7 @@ const ph = (e) => {
|
|
|
7206
7206
|
};
|
|
7207
7207
|
let V = class extends j {
|
|
7208
7208
|
constructor() {
|
|
7209
|
-
super(...arguments), this.historyGroups = [], this.searchString = "", this.rulesByCollectionId = {}, this.todayOnly = !1, this.selectedDiagnosticCodes = [], this.availableDiagnostics = [], this.filteredGroups = [], this.totalCount = 0, this.selectedIds = [], this._virtualScrollerState =
|
|
7209
|
+
super(...arguments), this.historyGroups = [], this.searchString = "", this.rulesByCollectionId = {}, this.todayOnly = !1, this.selectedDiagnosticCodes = [], this.availableDiagnostics = [], this.filteredGroups = [], this.totalCount = 0, this.selectedIds = [], this._virtualScrollerState = bi, this._scrollerController = new Uu(), this._searchTimeout = null, this._didInitialPreselect = !1, this._measureElement = (e) => {
|
|
7210
7210
|
e && this._scrollerController.measureElement(e);
|
|
7211
7211
|
};
|
|
7212
7212
|
}
|
|
@@ -7485,7 +7485,7 @@ var _h = Object.defineProperty, Sh = Object.getOwnPropertyDescriptor, De = (e, t
|
|
|
7485
7485
|
(o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
|
|
7486
7486
|
return r && i && _h(t, s, i), i;
|
|
7487
7487
|
};
|
|
7488
|
-
let ne = class extends
|
|
7488
|
+
let ne = class extends Fi(j) {
|
|
7489
7489
|
constructor() {
|
|
7490
7490
|
super(...arguments), this.subscriptions = [], this._searchTimeout = null, this.maximized = !1, this.searchQuery = "";
|
|
7491
7491
|
}
|
|
@@ -7524,7 +7524,7 @@ let ne = class extends Oi(j) {
|
|
|
7524
7524
|
}
|
|
7525
7525
|
_handleSelectDate(e) {
|
|
7526
7526
|
const t = Eo(e, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
7527
|
-
this.scrollToClosestDate(t);
|
|
7527
|
+
Ys(t) && this.scrollToClosestDate(t);
|
|
7528
7528
|
}
|
|
7529
7529
|
_handleSearchChange(e) {
|
|
7530
7530
|
typeof e.detail == "string" && (this.searchQuery = e.detail, this._searchTimeout && clearTimeout(this._searchTimeout), this._searchTimeout = setTimeout(() => {
|
|
@@ -7540,7 +7540,7 @@ let ne = class extends Oi(j) {
|
|
|
7540
7540
|
this.shadowRoot.querySelector("activity-history-timeline")._scrollIntoDate(t);
|
|
7541
7541
|
}
|
|
7542
7542
|
_refreshHistory() {
|
|
7543
|
-
this.api.broker.send(new
|
|
7543
|
+
this.api.broker.send(new ui());
|
|
7544
7544
|
}
|
|
7545
7545
|
};
|
|
7546
7546
|
ne.styles = W`
|
|
@@ -7567,25 +7567,25 @@ De([
|
|
|
7567
7567
|
ne = De([
|
|
7568
7568
|
Y("activity-history-main")
|
|
7569
7569
|
], ne);
|
|
7570
|
-
const
|
|
7570
|
+
const xi = "activity-history-importer", Ch = (e) => {
|
|
7571
7571
|
e.regionManager.registerView(e.regionManager.regions.clinicalMonitoring.content, {
|
|
7572
7572
|
id: e.pluginInfo.pluginId,
|
|
7573
7573
|
factory: () => Promise.resolve(new ne())
|
|
7574
7574
|
}), e.regionManager.registerView(e.regionManager.regions.shell.importDataActivityHistory, {
|
|
7575
|
-
id:
|
|
7575
|
+
id: xi,
|
|
7576
7576
|
factory: () => Promise.resolve(new V()),
|
|
7577
7577
|
sortHint: "0020"
|
|
7578
7578
|
});
|
|
7579
7579
|
}, Dh = () => {
|
|
7580
7580
|
const e = Se.get(z.primaryApi);
|
|
7581
|
-
e.regionManager.removeView(e.regionManager.regions.clinicalMonitoring.content, e.pluginInfo.pluginId), e.regionManager.removeView(e.regionManager.regions.shell.importDataActivityHistory,
|
|
7581
|
+
e.regionManager.removeView(e.regionManager.regions.clinicalMonitoring.content, e.pluginInfo.pluginId), e.regionManager.removeView(e.regionManager.regions.shell.importDataActivityHistory, xi);
|
|
7582
7582
|
}, Ih = (e) => {
|
|
7583
7583
|
Lu(e);
|
|
7584
7584
|
}, $h = () => {
|
|
7585
7585
|
Wu();
|
|
7586
|
-
}, Oh = async (e) => (
|
|
7586
|
+
}, Oh = async (e) => (wr(e), Ch(e), await bl(e), al(e), Ih(e), Promise.resolve()), Fh = () => (wr(null), $h(), Dh(), ll(), Promise.resolve());
|
|
7587
7587
|
export {
|
|
7588
7588
|
Fh as dispose,
|
|
7589
7589
|
Oh as initialize
|
|
7590
7590
|
};
|
|
7591
|
-
//# sourceMappingURL=plugin-
|
|
7591
|
+
//# sourceMappingURL=plugin-DPSai4gO.js.map
|