@uxland/primary-shell 7.46.6 → 8.0.0-rc.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-DZpJPqmp.js → component-Bt_gBs5e.js} +2 -2
- package/dist/{component-DZpJPqmp.js.map → component-Bt_gBs5e.js.map} +1 -1
- package/dist/index-8n9_rIYI.js +43971 -0
- package/dist/index-8n9_rIYI.js.map +1 -0
- package/dist/index.js +16 -20
- package/dist/index.umd.cjs +5900 -7599
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{plugin-DPSai4gO.js → plugin-B5E6LZ4X.js} +645 -672
- package/dist/{plugin-DPSai4gO.js.map → plugin-B5E6LZ4X.js.map} +1 -1
- package/dist/primary/shell/src/api/api.d.ts +0 -2
- package/dist/primary/shell/src/api/interaction-service/interaction-service-impl.d.ts +1 -1
- package/dist/primary/shell/src/api/region-manager/regions.d.ts +0 -1
- package/dist/primary/shell/src/features/exit/handler.d.ts +0 -1
- package/dist/primary/shell/src/index.d.ts +0 -1
- package/dist/primary/shell/src/locales.d.ts +0 -4
- package/dist/styles.css +1 -1
- package/package.json +11 -11
- package/src/UI/components/bootstrapper.ts +0 -2
- package/src/UI/components/primaria-shell/shell-header/template.ts +6 -14
- package/src/UI/components/primaria-shell/template.ts +5 -5
- package/src/UI/shared-components/primaria-character-limit-badge/primaria-character-limit-badge.ts +2 -2
- package/src/UI/shared-components/primaria-nav-tree-menu/template.ts +1 -1
- package/src/api/api.ts +2 -6
- package/src/api/interaction-service/interaction-service-impl.tsx +20 -34
- package/src/api/pdf-viewer-manager/pdf-visor/pdf-selector/template.ts +6 -8
- package/src/api/region-manager/regions.ts +1 -6
- package/src/features/exit/handler.test.ts +0 -60
- package/src/features/exit/handler.ts +0 -23
- package/src/index.ts +2 -1
- package/src/locales.ts +0 -4
- package/dist/index-DhJhlKAy.js +0 -46127
- package/dist/index-DhJhlKAy.js.map +0 -1
- package/dist/primary/shell/src/UI/components/quick-actions-menu/quick-actions-menu.d.ts +0 -8
- package/dist/primary/shell/src/UI/components/quick-actions-menu/template.d.ts +0 -2
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/component.d.ts +0 -9
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/template.d.ts +0 -2
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-manager.d.ts +0 -26
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-manager.test.d.ts +0 -1
- package/src/UI/components/quick-actions-menu/quick-actions-menu.ts +0 -54
- package/src/UI/components/quick-actions-menu/template.ts +0 -10
- package/src/api/plugin-busy-manager/plugin-busy-list/component.ts +0 -16
- package/src/api/plugin-busy-manager/plugin-busy-list/styles.css +0 -27
- package/src/api/plugin-busy-manager/plugin-busy-list/template.ts +0 -20
- package/src/api/plugin-busy-manager/plugin-busy-manager.test.ts +0 -72
- package/src/api/plugin-busy-manager/plugin-busy-manager.ts +0 -57
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as P, i as pt, n as Z, C as Ci, g as Di, a as Ze, D as
|
|
1
|
+
import { t as P, i as pt, n as Z, C as Ci, g as Di, a as Ze, D as F, 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 Ti, l as Ei, m as $i, o as Bs, p as Xt, q as Oi, P as Mi } from "./index-8n9_rIYI.js";
|
|
2
2
|
import "react";
|
|
3
|
-
function
|
|
3
|
+
function E(e, t) {
|
|
4
4
|
return e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
5
5
|
}
|
|
6
6
|
function Ls(e, t) {
|
|
7
7
|
const s = P(e);
|
|
8
|
-
return isNaN(t) ?
|
|
8
|
+
return isNaN(t) ? E(e, NaN) : (t && s.setDate(s.getDate() + t), s);
|
|
9
9
|
}
|
|
10
|
-
const Ws = 6048e5,
|
|
10
|
+
const Ws = 6048e5, Fi = 864e5, Pi = 6e4, Ai = 36e5, ki = 1e3;
|
|
11
11
|
let Ri = {};
|
|
12
12
|
function Re() {
|
|
13
13
|
return Ri;
|
|
@@ -20,9 +20,9 @@ function Oe(e) {
|
|
|
20
20
|
return he(e, { weekStartsOn: 1 });
|
|
21
21
|
}
|
|
22
22
|
function js(e) {
|
|
23
|
-
const t = P(e), s = t.getFullYear(), r =
|
|
23
|
+
const t = P(e), s = t.getFullYear(), r = E(e, 0);
|
|
24
24
|
r.setFullYear(s + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
25
|
-
const i = Oe(r), n =
|
|
25
|
+
const i = Oe(r), n = E(e, 0);
|
|
26
26
|
n.setFullYear(s, 0, 4), n.setHours(0, 0, 0, 0);
|
|
27
27
|
const o = Oe(n);
|
|
28
28
|
return t.getTime() >= i.getTime() ? s + 1 : t.getTime() >= o.getTime() ? s : s - 1;
|
|
@@ -47,10 +47,10 @@ function st(e) {
|
|
|
47
47
|
}
|
|
48
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) / Fi);
|
|
51
51
|
}
|
|
52
52
|
function zi(e) {
|
|
53
|
-
const t = js(e), s =
|
|
53
|
+
const t = js(e), s = E(e, 0);
|
|
54
54
|
return s.setFullYear(t, 0, 4), s.setHours(0, 0, 0, 0), Oe(s);
|
|
55
55
|
}
|
|
56
56
|
function Vi(e) {
|
|
@@ -63,10 +63,10 @@ function Ys(e) {
|
|
|
63
63
|
return !isNaN(Number(t));
|
|
64
64
|
}
|
|
65
65
|
function Ni(e) {
|
|
66
|
-
const t = P(e), s =
|
|
66
|
+
const t = P(e), s = E(e, 0);
|
|
67
67
|
return s.setFullYear(t.getFullYear(), 0, 1), s.setHours(0, 0, 0, 0), s;
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const qi = {
|
|
70
70
|
lessThanXSeconds: {
|
|
71
71
|
one: "less than a second",
|
|
72
72
|
other: "less than {{count}} seconds"
|
|
@@ -128,18 +128,18 @@ const Bi = {
|
|
|
128
128
|
one: "almost 1 year",
|
|
129
129
|
other: "almost {{count}} years"
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, Gi = (e, t, s) => {
|
|
132
132
|
let r;
|
|
133
|
-
const i =
|
|
133
|
+
const i = qi[e];
|
|
134
134
|
return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), s?.addSuffix ? s.comparison && s.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
135
135
|
};
|
|
136
|
-
function
|
|
136
|
+
function Et(e) {
|
|
137
137
|
return (t = {}) => {
|
|
138
138
|
const s = t.width ? String(t.width) : e.defaultWidth;
|
|
139
139
|
return e.formats[s] || e.formats[e.defaultWidth];
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const Bi = {
|
|
143
143
|
full: "EEEE, MMMM do, y",
|
|
144
144
|
long: "MMMM do, y",
|
|
145
145
|
medium: "MMM d, y",
|
|
@@ -155,15 +155,15 @@ const Gi = {
|
|
|
155
155
|
medium: "{{date}}, {{time}}",
|
|
156
156
|
short: "{{date}}, {{time}}"
|
|
157
157
|
}, ji = {
|
|
158
|
-
date:
|
|
159
|
-
formats:
|
|
158
|
+
date: Et({
|
|
159
|
+
formats: Bi,
|
|
160
160
|
defaultWidth: "full"
|
|
161
161
|
}),
|
|
162
|
-
time:
|
|
162
|
+
time: Et({
|
|
163
163
|
formats: Li,
|
|
164
164
|
defaultWidth: "full"
|
|
165
165
|
}),
|
|
166
|
-
dateTime:
|
|
166
|
+
dateTime: Et({
|
|
167
167
|
formats: Wi,
|
|
168
168
|
defaultWidth: "full"
|
|
169
169
|
})
|
|
@@ -341,7 +341,7 @@ const Qi = {
|
|
|
341
341
|
defaultFormattingWidth: "wide"
|
|
342
342
|
})
|
|
343
343
|
};
|
|
344
|
-
function
|
|
344
|
+
function qe(e) {
|
|
345
345
|
return (t, s = {}) => {
|
|
346
346
|
const r = s.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], n = t.match(i);
|
|
347
347
|
if (!n)
|
|
@@ -437,7 +437,7 @@ const an = /^(\d+)(th|st|nd|rd)?/i, ln = /\d+/i, cn = {
|
|
|
437
437
|
}, yn = {
|
|
438
438
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
439
439
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
440
|
-
},
|
|
440
|
+
}, vn = {
|
|
441
441
|
any: {
|
|
442
442
|
am: /^a/i,
|
|
443
443
|
pm: /^p/i,
|
|
@@ -448,50 +448,50 @@ const an = /^(\d+)(th|st|nd|rd)?/i, ln = /\d+/i, cn = {
|
|
|
448
448
|
evening: /evening/i,
|
|
449
449
|
night: /night/i
|
|
450
450
|
}
|
|
451
|
-
},
|
|
451
|
+
}, bn = {
|
|
452
452
|
ordinalNumber: on({
|
|
453
453
|
matchPattern: an,
|
|
454
454
|
parsePattern: ln,
|
|
455
455
|
valueCallback: (e) => parseInt(e, 10)
|
|
456
456
|
}),
|
|
457
|
-
era:
|
|
457
|
+
era: qe({
|
|
458
458
|
matchPatterns: cn,
|
|
459
459
|
defaultMatchWidth: "wide",
|
|
460
460
|
parsePatterns: dn,
|
|
461
461
|
defaultParseWidth: "any"
|
|
462
462
|
}),
|
|
463
|
-
quarter:
|
|
463
|
+
quarter: qe({
|
|
464
464
|
matchPatterns: un,
|
|
465
465
|
defaultMatchWidth: "wide",
|
|
466
466
|
parsePatterns: hn,
|
|
467
467
|
defaultParseWidth: "any",
|
|
468
468
|
valueCallback: (e) => e + 1
|
|
469
469
|
}),
|
|
470
|
-
month:
|
|
470
|
+
month: qe({
|
|
471
471
|
matchPatterns: fn,
|
|
472
472
|
defaultMatchWidth: "wide",
|
|
473
473
|
parsePatterns: pn,
|
|
474
474
|
defaultParseWidth: "any"
|
|
475
475
|
}),
|
|
476
|
-
day:
|
|
476
|
+
day: qe({
|
|
477
477
|
matchPatterns: mn,
|
|
478
478
|
defaultMatchWidth: "wide",
|
|
479
479
|
parsePatterns: gn,
|
|
480
480
|
defaultParseWidth: "any"
|
|
481
481
|
}),
|
|
482
|
-
dayPeriod:
|
|
482
|
+
dayPeriod: qe({
|
|
483
483
|
matchPatterns: yn,
|
|
484
484
|
defaultMatchWidth: "any",
|
|
485
|
-
parsePatterns:
|
|
485
|
+
parsePatterns: vn,
|
|
486
486
|
defaultParseWidth: "any"
|
|
487
487
|
})
|
|
488
488
|
}, Us = {
|
|
489
489
|
code: "en-US",
|
|
490
|
-
formatDistance:
|
|
490
|
+
formatDistance: Gi,
|
|
491
491
|
formatLong: ji,
|
|
492
492
|
formatRelative: Ui,
|
|
493
493
|
localize: sn,
|
|
494
|
-
match:
|
|
494
|
+
match: bn,
|
|
495
495
|
options: {
|
|
496
496
|
weekStartsOn: 0,
|
|
497
497
|
firstWeekContainsDate: 1
|
|
@@ -506,15 +506,15 @@ function Qs(e) {
|
|
|
506
506
|
return Math.round(s / Ws) + 1;
|
|
507
507
|
}
|
|
508
508
|
function Kt(e, t) {
|
|
509
|
-
const s = P(e), r = s.getFullYear(), i = Re(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o =
|
|
509
|
+
const s = P(e), r = s.getFullYear(), i = Re(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = E(e, 0);
|
|
510
510
|
o.setFullYear(r + 1, 0, n), o.setHours(0, 0, 0, 0);
|
|
511
|
-
const a = he(o, t), l =
|
|
511
|
+
const a = he(o, t), l = E(e, 0);
|
|
512
512
|
l.setFullYear(r, 0, n), l.setHours(0, 0, 0, 0);
|
|
513
513
|
const d = he(l, t);
|
|
514
514
|
return s.getTime() >= a.getTime() ? r + 1 : s.getTime() >= d.getTime() ? r : r - 1;
|
|
515
515
|
}
|
|
516
516
|
function xn(e, t) {
|
|
517
|
-
const s = Re(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, i = Kt(e, t), n =
|
|
517
|
+
const s = Re(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, i = Kt(e, t), n = E(e, 0);
|
|
518
518
|
return n.setFullYear(i, 0, r), n.setHours(0, 0, 0, 0), he(n, t);
|
|
519
519
|
}
|
|
520
520
|
function Xs(e, t) {
|
|
@@ -1061,13 +1061,13 @@ const ue = {
|
|
|
1061
1061
|
switch (t) {
|
|
1062
1062
|
// Hours and optional minutes
|
|
1063
1063
|
case "X":
|
|
1064
|
-
return
|
|
1064
|
+
return bs(r);
|
|
1065
1065
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1066
1066
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1067
1067
|
// so this token always has the same output as `XX`
|
|
1068
1068
|
case "XXXX":
|
|
1069
1069
|
case "XX":
|
|
1070
|
-
return
|
|
1070
|
+
return be(r);
|
|
1071
1071
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
1072
1072
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1073
1073
|
// so this token always has the same output as `XXX`
|
|
@@ -1075,7 +1075,7 @@ const ue = {
|
|
|
1075
1075
|
case "XXX":
|
|
1076
1076
|
// Hours and minutes with `:` delimiter
|
|
1077
1077
|
default:
|
|
1078
|
-
return
|
|
1078
|
+
return be(r, ":");
|
|
1079
1079
|
}
|
|
1080
1080
|
},
|
|
1081
1081
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1084,13 +1084,13 @@ const ue = {
|
|
|
1084
1084
|
switch (t) {
|
|
1085
1085
|
// Hours and optional minutes
|
|
1086
1086
|
case "x":
|
|
1087
|
-
return
|
|
1087
|
+
return bs(r);
|
|
1088
1088
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1089
1089
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1090
1090
|
// so this token always has the same output as `xx`
|
|
1091
1091
|
case "xxxx":
|
|
1092
1092
|
case "xx":
|
|
1093
|
-
return
|
|
1093
|
+
return be(r);
|
|
1094
1094
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
1095
1095
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1096
1096
|
// so this token always has the same output as `xxx`
|
|
@@ -1098,7 +1098,7 @@ const ue = {
|
|
|
1098
1098
|
case "xxx":
|
|
1099
1099
|
// Hours and minutes with `:` delimiter
|
|
1100
1100
|
default:
|
|
1101
|
-
return
|
|
1101
|
+
return be(r, ":");
|
|
1102
1102
|
}
|
|
1103
1103
|
},
|
|
1104
1104
|
// Timezone (GMT)
|
|
@@ -1109,11 +1109,11 @@ const ue = {
|
|
|
1109
1109
|
case "O":
|
|
1110
1110
|
case "OO":
|
|
1111
1111
|
case "OOO":
|
|
1112
|
-
return "GMT" +
|
|
1112
|
+
return "GMT" + vs(r, ":");
|
|
1113
1113
|
// Long
|
|
1114
1114
|
case "OOOO":
|
|
1115
1115
|
default:
|
|
1116
|
-
return "GMT" +
|
|
1116
|
+
return "GMT" + be(r, ":");
|
|
1117
1117
|
}
|
|
1118
1118
|
},
|
|
1119
1119
|
// Timezone (specific non-location)
|
|
@@ -1124,11 +1124,11 @@ const ue = {
|
|
|
1124
1124
|
case "z":
|
|
1125
1125
|
case "zz":
|
|
1126
1126
|
case "zzz":
|
|
1127
|
-
return "GMT" +
|
|
1127
|
+
return "GMT" + vs(r, ":");
|
|
1128
1128
|
// Long
|
|
1129
1129
|
case "zzzz":
|
|
1130
1130
|
default:
|
|
1131
|
-
return "GMT" +
|
|
1131
|
+
return "GMT" + be(r, ":");
|
|
1132
1132
|
}
|
|
1133
1133
|
},
|
|
1134
1134
|
// Seconds timestamp
|
|
@@ -1142,14 +1142,14 @@ const ue = {
|
|
|
1142
1142
|
return S(r, t.length);
|
|
1143
1143
|
}
|
|
1144
1144
|
};
|
|
1145
|
-
function
|
|
1145
|
+
function vs(e, t = "") {
|
|
1146
1146
|
const s = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), n = r % 60;
|
|
1147
1147
|
return n === 0 ? s + String(i) : s + String(i) + t + S(n, 2);
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + S(Math.abs(e) / 60, 2) :
|
|
1149
|
+
function bs(e, t) {
|
|
1150
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + S(Math.abs(e) / 60, 2) : be(e, t);
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function be(e, t = "") {
|
|
1153
1153
|
const s = e > 0 ? "-" : "+", r = Math.abs(e), i = S(Math.trunc(r / 60), 2), n = S(r % 60, 2);
|
|
1154
1154
|
return s + i + t + n;
|
|
1155
1155
|
}
|
|
@@ -1216,27 +1216,27 @@ function In(e, t, s) {
|
|
|
1216
1216
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
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
|
-
const
|
|
1219
|
+
const Tn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, En = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, $n = /^'([^]*?)'?$/, On = /''/g, Mn = /[a-zA-Z]/;
|
|
1220
1220
|
function er(e, t, s) {
|
|
1221
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
1222
|
if (!Ys(a))
|
|
1223
1223
|
throw new RangeError("Invalid time value");
|
|
1224
|
-
let l = t.match(
|
|
1224
|
+
let l = t.match(En).map((c) => {
|
|
1225
1225
|
const u = c[0];
|
|
1226
1226
|
if (u === "p" || u === "P") {
|
|
1227
|
-
const
|
|
1228
|
-
return
|
|
1227
|
+
const v = Pt[u];
|
|
1228
|
+
return v(c, i.formatLong);
|
|
1229
1229
|
}
|
|
1230
1230
|
return c;
|
|
1231
|
-
}).join("").match(
|
|
1231
|
+
}).join("").match(Tn).map((c) => {
|
|
1232
1232
|
if (c === "''")
|
|
1233
1233
|
return { isToken: !1, value: "'" };
|
|
1234
1234
|
const u = c[0];
|
|
1235
1235
|
if (u === "'")
|
|
1236
|
-
return { isToken: !1, value:
|
|
1236
|
+
return { isToken: !1, value: Fn(c) };
|
|
1237
1237
|
if (ys[u])
|
|
1238
1238
|
return { isToken: !0, value: c };
|
|
1239
|
-
if (u.match(
|
|
1239
|
+
if (u.match(Mn))
|
|
1240
1240
|
throw new RangeError(
|
|
1241
1241
|
"Format string contains an unescaped latin alphabet character `" + u + "`"
|
|
1242
1242
|
);
|
|
@@ -1252,12 +1252,12 @@ function er(e, t, s) {
|
|
|
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
|
-
const
|
|
1256
|
-
return
|
|
1255
|
+
const v = ys[u[0]];
|
|
1256
|
+
return v(a, u, i.localize, d);
|
|
1257
1257
|
}).join("");
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
const t = e.match(
|
|
1259
|
+
function Fn(e) {
|
|
1260
|
+
const t = e.match($n);
|
|
1261
1261
|
return t ? t[1].replace(On, "'") : e;
|
|
1262
1262
|
}
|
|
1263
1263
|
function Pn() {
|
|
@@ -1268,7 +1268,7 @@ function An(e) {
|
|
|
1268
1268
|
return s === 0 && (s = 7), s;
|
|
1269
1269
|
}
|
|
1270
1270
|
function kn(e, t) {
|
|
1271
|
-
const s = t instanceof Date ?
|
|
1271
|
+
const s = t instanceof Date ? E(t, 0) : new t(0);
|
|
1272
1272
|
return s.setFullYear(
|
|
1273
1273
|
e.getFullYear(),
|
|
1274
1274
|
e.getMonth(),
|
|
@@ -1302,7 +1302,7 @@ class zn extends tr {
|
|
|
1302
1302
|
priority = Rn;
|
|
1303
1303
|
subPriority = -1;
|
|
1304
1304
|
set(t, s) {
|
|
1305
|
-
return s.timestampIsSet ? t :
|
|
1305
|
+
return s.timestampIsSet ? t : E(t, kn(t, Date));
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
1308
|
class _ {
|
|
@@ -1346,7 +1346,7 @@ class Vn extends _ {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
incompatibleTokens = ["R", "u", "t", "T"];
|
|
1348
1348
|
}
|
|
1349
|
-
const
|
|
1349
|
+
const $ = {
|
|
1350
1350
|
month: /^(1[0-2]|0?\d)/,
|
|
1351
1351
|
// 0 to 12
|
|
1352
1352
|
date: /^(3[0-1]|[0-2]?\d)/,
|
|
@@ -1420,18 +1420,18 @@ function se(e, t) {
|
|
|
1420
1420
|
};
|
|
1421
1421
|
}
|
|
1422
1422
|
function sr(e) {
|
|
1423
|
-
return I(
|
|
1423
|
+
return I($.anyDigitsSigned, e);
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function T(e, t) {
|
|
1426
1426
|
switch (e) {
|
|
1427
1427
|
case 1:
|
|
1428
|
-
return I(
|
|
1428
|
+
return I($.singleDigit, t);
|
|
1429
1429
|
case 2:
|
|
1430
|
-
return I(
|
|
1430
|
+
return I($.twoDigits, t);
|
|
1431
1431
|
case 3:
|
|
1432
|
-
return I(
|
|
1432
|
+
return I($.threeDigits, t);
|
|
1433
1433
|
case 4:
|
|
1434
|
-
return I(
|
|
1434
|
+
return I($.fourDigits, t);
|
|
1435
1435
|
default:
|
|
1436
1436
|
return I(new RegExp("^\\d{1," + e + "}"), t);
|
|
1437
1437
|
}
|
|
@@ -1439,13 +1439,13 @@ function $(e, t) {
|
|
|
1439
1439
|
function rt(e, t) {
|
|
1440
1440
|
switch (e) {
|
|
1441
1441
|
case 1:
|
|
1442
|
-
return I(
|
|
1442
|
+
return I($.singleDigitSigned, t);
|
|
1443
1443
|
case 2:
|
|
1444
|
-
return I(
|
|
1444
|
+
return I($.twoDigitsSigned, t);
|
|
1445
1445
|
case 3:
|
|
1446
|
-
return I(
|
|
1446
|
+
return I($.threeDigitsSigned, t);
|
|
1447
1447
|
case 4:
|
|
1448
|
-
return I(
|
|
1448
|
+
return I($.fourDigitsSigned, t);
|
|
1449
1449
|
default:
|
|
1450
1450
|
return I(new RegExp("^-?\\d{1," + e + "}"), t);
|
|
1451
1451
|
}
|
|
@@ -1491,7 +1491,7 @@ class Nn extends _ {
|
|
|
1491
1491
|
});
|
|
1492
1492
|
switch (s) {
|
|
1493
1493
|
case "y":
|
|
1494
|
-
return O(
|
|
1494
|
+
return O(T(4, t), i);
|
|
1495
1495
|
case "yo":
|
|
1496
1496
|
return O(
|
|
1497
1497
|
r.ordinalNumber(t, {
|
|
@@ -1500,7 +1500,7 @@ class Nn extends _ {
|
|
|
1500
1500
|
i
|
|
1501
1501
|
);
|
|
1502
1502
|
default:
|
|
1503
|
-
return O(
|
|
1503
|
+
return O(T(s.length, t), i);
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
1506
|
validate(t, s) {
|
|
@@ -1519,7 +1519,7 @@ class Nn extends _ {
|
|
|
1519
1519
|
return t.setFullYear(n, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
|
-
class
|
|
1522
|
+
class qn extends _ {
|
|
1523
1523
|
priority = 130;
|
|
1524
1524
|
parse(t, s, r) {
|
|
1525
1525
|
const i = (n) => ({
|
|
@@ -1528,7 +1528,7 @@ class Bn extends _ {
|
|
|
1528
1528
|
});
|
|
1529
1529
|
switch (s) {
|
|
1530
1530
|
case "Y":
|
|
1531
|
-
return O(
|
|
1531
|
+
return O(T(4, t), i);
|
|
1532
1532
|
case "Yo":
|
|
1533
1533
|
return O(
|
|
1534
1534
|
r.ordinalNumber(t, {
|
|
@@ -1537,7 +1537,7 @@ class Bn extends _ {
|
|
|
1537
1537
|
i
|
|
1538
1538
|
);
|
|
1539
1539
|
default:
|
|
1540
|
-
return O(
|
|
1540
|
+
return O(T(s.length, t), i);
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
validate(t, s) {
|
|
@@ -1575,13 +1575,13 @@ class Bn extends _ {
|
|
|
1575
1575
|
"T"
|
|
1576
1576
|
];
|
|
1577
1577
|
}
|
|
1578
|
-
class
|
|
1578
|
+
class Gn extends _ {
|
|
1579
1579
|
priority = 130;
|
|
1580
1580
|
parse(t, s) {
|
|
1581
1581
|
return rt(s === "R" ? 4 : s.length, t);
|
|
1582
1582
|
}
|
|
1583
1583
|
set(t, s, r) {
|
|
1584
|
-
const i =
|
|
1584
|
+
const i = E(t, 0);
|
|
1585
1585
|
return i.setFullYear(r, 0, 4), i.setHours(0, 0, 0, 0), Oe(i);
|
|
1586
1586
|
}
|
|
1587
1587
|
incompatibleTokens = [
|
|
@@ -1602,7 +1602,7 @@ class qn extends _ {
|
|
|
1602
1602
|
"T"
|
|
1603
1603
|
];
|
|
1604
1604
|
}
|
|
1605
|
-
class
|
|
1605
|
+
class Bn extends _ {
|
|
1606
1606
|
priority = 130;
|
|
1607
1607
|
parse(t, s) {
|
|
1608
1608
|
return rt(s === "u" ? 4 : s.length, t);
|
|
@@ -1619,7 +1619,7 @@ class Ln extends _ {
|
|
|
1619
1619
|
// 1, 2, 3, 4
|
|
1620
1620
|
case "Q":
|
|
1621
1621
|
case "QQ":
|
|
1622
|
-
return
|
|
1622
|
+
return T(s.length, t);
|
|
1623
1623
|
// 1st, 2nd, 3rd, 4th
|
|
1624
1624
|
case "Qo":
|
|
1625
1625
|
return r.ordinalNumber(t, { unit: "quarter" });
|
|
@@ -1683,7 +1683,7 @@ class Wn extends _ {
|
|
|
1683
1683
|
// 1, 2, 3, 4
|
|
1684
1684
|
case "q":
|
|
1685
1685
|
case "qq":
|
|
1686
|
-
return
|
|
1686
|
+
return T(s.length, t);
|
|
1687
1687
|
// 1st, 2nd, 3rd, 4th
|
|
1688
1688
|
case "qo":
|
|
1689
1689
|
return r.ordinalNumber(t, { unit: "quarter" });
|
|
@@ -1763,12 +1763,12 @@ class jn extends _ {
|
|
|
1763
1763
|
// 1, 2, ..., 12
|
|
1764
1764
|
case "M":
|
|
1765
1765
|
return O(
|
|
1766
|
-
I(
|
|
1766
|
+
I($.month, t),
|
|
1767
1767
|
i
|
|
1768
1768
|
);
|
|
1769
1769
|
// 01, 02, ..., 12
|
|
1770
1770
|
case "MM":
|
|
1771
|
-
return O(
|
|
1771
|
+
return O(T(2, t), i);
|
|
1772
1772
|
// 1st, 2nd, ..., 12th
|
|
1773
1773
|
case "Mo":
|
|
1774
1774
|
return O(
|
|
@@ -1813,12 +1813,12 @@ class Yn extends _ {
|
|
|
1813
1813
|
// 1, 2, ..., 12
|
|
1814
1814
|
case "L":
|
|
1815
1815
|
return O(
|
|
1816
|
-
I(
|
|
1816
|
+
I($.month, t),
|
|
1817
1817
|
i
|
|
1818
1818
|
);
|
|
1819
1819
|
// 01, 02, ..., 12
|
|
1820
1820
|
case "LL":
|
|
1821
|
-
return O(
|
|
1821
|
+
return O(T(2, t), i);
|
|
1822
1822
|
// 1st, 2nd, ..., 12th
|
|
1823
1823
|
case "Lo":
|
|
1824
1824
|
return O(
|
|
@@ -1879,11 +1879,11 @@ class Qn extends _ {
|
|
|
1879
1879
|
parse(t, s, r) {
|
|
1880
1880
|
switch (s) {
|
|
1881
1881
|
case "w":
|
|
1882
|
-
return I(
|
|
1882
|
+
return I($.week, t);
|
|
1883
1883
|
case "wo":
|
|
1884
1884
|
return r.ordinalNumber(t, { unit: "week" });
|
|
1885
1885
|
default:
|
|
1886
|
-
return
|
|
1886
|
+
return T(s.length, t);
|
|
1887
1887
|
}
|
|
1888
1888
|
}
|
|
1889
1889
|
validate(t, s) {
|
|
@@ -1917,11 +1917,11 @@ class Kn extends _ {
|
|
|
1917
1917
|
parse(t, s, r) {
|
|
1918
1918
|
switch (s) {
|
|
1919
1919
|
case "I":
|
|
1920
|
-
return I(
|
|
1920
|
+
return I($.week, t);
|
|
1921
1921
|
case "Io":
|
|
1922
1922
|
return r.ordinalNumber(t, { unit: "week" });
|
|
1923
1923
|
default:
|
|
1924
|
-
return
|
|
1924
|
+
return T(s.length, t);
|
|
1925
1925
|
}
|
|
1926
1926
|
}
|
|
1927
1927
|
validate(t, s) {
|
|
@@ -1967,11 +1967,11 @@ class eo extends _ {
|
|
|
1967
1967
|
parse(t, s, r) {
|
|
1968
1968
|
switch (s) {
|
|
1969
1969
|
case "d":
|
|
1970
|
-
return I(
|
|
1970
|
+
return I($.date, t);
|
|
1971
1971
|
case "do":
|
|
1972
1972
|
return r.ordinalNumber(t, { unit: "date" });
|
|
1973
1973
|
default:
|
|
1974
|
-
return
|
|
1974
|
+
return T(s.length, t);
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
validate(t, s) {
|
|
@@ -2003,11 +2003,11 @@ class to extends _ {
|
|
|
2003
2003
|
switch (s) {
|
|
2004
2004
|
case "D":
|
|
2005
2005
|
case "DD":
|
|
2006
|
-
return I(
|
|
2006
|
+
return I($.dayOfYear, t);
|
|
2007
2007
|
case "Do":
|
|
2008
2008
|
return r.ordinalNumber(t, { unit: "date" });
|
|
2009
2009
|
default:
|
|
2010
|
-
return
|
|
2010
|
+
return T(s.length, t);
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
2013
|
validate(t, s) {
|
|
@@ -2088,7 +2088,7 @@ class ro extends _ {
|
|
|
2088
2088
|
// 3
|
|
2089
2089
|
case "e":
|
|
2090
2090
|
case "ee":
|
|
2091
|
-
return O(
|
|
2091
|
+
return O(T(s.length, t), n);
|
|
2092
2092
|
// 3rd
|
|
2093
2093
|
case "eo":
|
|
2094
2094
|
return O(
|
|
@@ -2156,7 +2156,7 @@ class io extends _ {
|
|
|
2156
2156
|
// 3
|
|
2157
2157
|
case "c":
|
|
2158
2158
|
case "cc":
|
|
2159
|
-
return O(
|
|
2159
|
+
return O(T(s.length, t), n);
|
|
2160
2160
|
// 3rd
|
|
2161
2161
|
case "co":
|
|
2162
2162
|
return O(
|
|
@@ -2225,7 +2225,7 @@ class oo extends _ {
|
|
|
2225
2225
|
// 2
|
|
2226
2226
|
case "i":
|
|
2227
2227
|
case "ii":
|
|
2228
|
-
return
|
|
2228
|
+
return T(s.length, t);
|
|
2229
2229
|
// 2nd
|
|
2230
2230
|
case "io":
|
|
2231
2231
|
return r.ordinalNumber(t, { unit: "day" });
|
|
@@ -2429,11 +2429,11 @@ class uo extends _ {
|
|
|
2429
2429
|
parse(t, s, r) {
|
|
2430
2430
|
switch (s) {
|
|
2431
2431
|
case "h":
|
|
2432
|
-
return I(
|
|
2432
|
+
return I($.hour12h, t);
|
|
2433
2433
|
case "ho":
|
|
2434
2434
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
2435
2435
|
default:
|
|
2436
|
-
return
|
|
2436
|
+
return T(s.length, t);
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
2439
2439
|
validate(t, s) {
|
|
@@ -2450,11 +2450,11 @@ class ho extends _ {
|
|
|
2450
2450
|
parse(t, s, r) {
|
|
2451
2451
|
switch (s) {
|
|
2452
2452
|
case "H":
|
|
2453
|
-
return I(
|
|
2453
|
+
return I($.hour23h, t);
|
|
2454
2454
|
case "Ho":
|
|
2455
2455
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
2456
2456
|
default:
|
|
2457
|
-
return
|
|
2457
|
+
return T(s.length, t);
|
|
2458
2458
|
}
|
|
2459
2459
|
}
|
|
2460
2460
|
validate(t, s) {
|
|
@@ -2470,11 +2470,11 @@ class fo extends _ {
|
|
|
2470
2470
|
parse(t, s, r) {
|
|
2471
2471
|
switch (s) {
|
|
2472
2472
|
case "K":
|
|
2473
|
-
return I(
|
|
2473
|
+
return I($.hour11h, t);
|
|
2474
2474
|
case "Ko":
|
|
2475
2475
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
2476
2476
|
default:
|
|
2477
|
-
return
|
|
2477
|
+
return T(s.length, t);
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
2480
|
validate(t, s) {
|
|
@@ -2490,11 +2490,11 @@ class po extends _ {
|
|
|
2490
2490
|
parse(t, s, r) {
|
|
2491
2491
|
switch (s) {
|
|
2492
2492
|
case "k":
|
|
2493
|
-
return I(
|
|
2493
|
+
return I($.hour24h, t);
|
|
2494
2494
|
case "ko":
|
|
2495
2495
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
2496
2496
|
default:
|
|
2497
|
-
return
|
|
2497
|
+
return T(s.length, t);
|
|
2498
2498
|
}
|
|
2499
2499
|
}
|
|
2500
2500
|
validate(t, s) {
|
|
@@ -2511,11 +2511,11 @@ class mo extends _ {
|
|
|
2511
2511
|
parse(t, s, r) {
|
|
2512
2512
|
switch (s) {
|
|
2513
2513
|
case "m":
|
|
2514
|
-
return I(
|
|
2514
|
+
return I($.minute, t);
|
|
2515
2515
|
case "mo":
|
|
2516
2516
|
return r.ordinalNumber(t, { unit: "minute" });
|
|
2517
2517
|
default:
|
|
2518
|
-
return
|
|
2518
|
+
return T(s.length, t);
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
2521
|
validate(t, s) {
|
|
@@ -2531,11 +2531,11 @@ class go extends _ {
|
|
|
2531
2531
|
parse(t, s, r) {
|
|
2532
2532
|
switch (s) {
|
|
2533
2533
|
case "s":
|
|
2534
|
-
return I(
|
|
2534
|
+
return I($.second, t);
|
|
2535
2535
|
case "so":
|
|
2536
2536
|
return r.ordinalNumber(t, { unit: "second" });
|
|
2537
2537
|
default:
|
|
2538
|
-
return
|
|
2538
|
+
return T(s.length, t);
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
validate(t, s) {
|
|
@@ -2550,14 +2550,14 @@ class yo extends _ {
|
|
|
2550
2550
|
priority = 30;
|
|
2551
2551
|
parse(t, s) {
|
|
2552
2552
|
const r = (i) => Math.trunc(i * Math.pow(10, -s.length + 3));
|
|
2553
|
-
return O(
|
|
2553
|
+
return O(T(s.length, t), r);
|
|
2554
2554
|
}
|
|
2555
2555
|
set(t, s, r) {
|
|
2556
2556
|
return t.setMilliseconds(r), t;
|
|
2557
2557
|
}
|
|
2558
2558
|
incompatibleTokens = ["t", "T"];
|
|
2559
2559
|
}
|
|
2560
|
-
class
|
|
2560
|
+
class vo extends _ {
|
|
2561
2561
|
priority = 10;
|
|
2562
2562
|
parse(t, s) {
|
|
2563
2563
|
switch (s) {
|
|
@@ -2584,14 +2584,14 @@ class bo extends _ {
|
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
2586
2586
|
set(t, s, r) {
|
|
2587
|
-
return s.timestampIsSet ? t :
|
|
2587
|
+
return s.timestampIsSet ? t : E(
|
|
2588
2588
|
t,
|
|
2589
2589
|
t.getTime() - st(t) - r
|
|
2590
2590
|
);
|
|
2591
2591
|
}
|
|
2592
2592
|
incompatibleTokens = ["t", "T", "x"];
|
|
2593
2593
|
}
|
|
2594
|
-
class
|
|
2594
|
+
class bo extends _ {
|
|
2595
2595
|
priority = 10;
|
|
2596
2596
|
parse(t, s) {
|
|
2597
2597
|
switch (s) {
|
|
@@ -2618,7 +2618,7 @@ class vo extends _ {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
2620
|
set(t, s, r) {
|
|
2621
|
-
return s.timestampIsSet ? t :
|
|
2621
|
+
return s.timestampIsSet ? t : E(
|
|
2622
2622
|
t,
|
|
2623
2623
|
t.getTime() - st(t) - r
|
|
2624
2624
|
);
|
|
@@ -2631,7 +2631,7 @@ class wo extends _ {
|
|
|
2631
2631
|
return sr(t);
|
|
2632
2632
|
}
|
|
2633
2633
|
set(t, s, r) {
|
|
2634
|
-
return [
|
|
2634
|
+
return [E(t, r * 1e3), { timestampIsSet: !0 }];
|
|
2635
2635
|
}
|
|
2636
2636
|
incompatibleTokens = "*";
|
|
2637
2637
|
}
|
|
@@ -2641,16 +2641,16 @@ class xo extends _ {
|
|
|
2641
2641
|
return sr(t);
|
|
2642
2642
|
}
|
|
2643
2643
|
set(t, s, r) {
|
|
2644
|
-
return [
|
|
2644
|
+
return [E(t, r), { timestampIsSet: !0 }];
|
|
2645
2645
|
}
|
|
2646
2646
|
incompatibleTokens = "*";
|
|
2647
2647
|
}
|
|
2648
2648
|
const _o = {
|
|
2649
2649
|
G: new Vn(),
|
|
2650
2650
|
y: new Nn(),
|
|
2651
|
-
Y: new
|
|
2652
|
-
R: new
|
|
2653
|
-
u: new
|
|
2651
|
+
Y: new qn(),
|
|
2652
|
+
R: new Gn(),
|
|
2653
|
+
u: new Bn(),
|
|
2654
2654
|
Q: new Ln(),
|
|
2655
2655
|
q: new Wn(),
|
|
2656
2656
|
M: new jn(),
|
|
@@ -2673,12 +2673,12 @@ const _o = {
|
|
|
2673
2673
|
m: new mo(),
|
|
2674
2674
|
s: new go(),
|
|
2675
2675
|
S: new yo(),
|
|
2676
|
-
X: new
|
|
2677
|
-
x: new
|
|
2676
|
+
X: new vo(),
|
|
2677
|
+
x: new bo(),
|
|
2678
2678
|
t: new wo(),
|
|
2679
2679
|
T: new xo()
|
|
2680
|
-
}, So = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Co = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Do = /^'([^]*?)'?$/, Io = /''/g,
|
|
2681
|
-
function
|
|
2680
|
+
}, So = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Co = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Do = /^'([^]*?)'?$/, Io = /''/g, To = /\S/, Eo = /[a-zA-Z]/;
|
|
2681
|
+
function $o(e, t, s, r) {
|
|
2682
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,
|
|
@@ -2695,10 +2695,10 @@ function Eo(e, t, s, r) {
|
|
|
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
|
-
const { incompatibleTokens:
|
|
2699
|
-
if (Array.isArray(
|
|
2698
|
+
const { incompatibleTokens: b } = w;
|
|
2699
|
+
if (Array.isArray(b)) {
|
|
2700
2700
|
const D = u.find(
|
|
2701
|
-
(
|
|
2701
|
+
(M) => b.includes(M.token) || M.token === p
|
|
2702
2702
|
);
|
|
2703
2703
|
if (D)
|
|
2704
2704
|
throw new RangeError(
|
|
@@ -2716,40 +2716,40 @@ function Eo(e, t, s, r) {
|
|
|
2716
2716
|
l
|
|
2717
2717
|
);
|
|
2718
2718
|
if (!x)
|
|
2719
|
-
return
|
|
2719
|
+
return E(s, NaN);
|
|
2720
2720
|
d.push(x.setter), e = x.rest;
|
|
2721
2721
|
} else {
|
|
2722
|
-
if (p.match(
|
|
2722
|
+
if (p.match(Eo))
|
|
2723
2723
|
throw new RangeError(
|
|
2724
2724
|
"Format string contains an unescaped latin alphabet character `" + p + "`"
|
|
2725
2725
|
);
|
|
2726
2726
|
if (m === "''" ? m = "'" : p === "'" && (m = Oo(m)), e.indexOf(m) === 0)
|
|
2727
2727
|
e = e.slice(m.length);
|
|
2728
2728
|
else
|
|
2729
|
-
return
|
|
2729
|
+
return E(s, NaN);
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
|
-
if (e.length > 0 &&
|
|
2733
|
-
return
|
|
2734
|
-
const
|
|
2732
|
+
if (e.length > 0 && To.test(e))
|
|
2733
|
+
return E(s, NaN);
|
|
2734
|
+
const v = d.map((m) => m.priority).sort((m, p) => p - m).filter((m, p, w) => w.indexOf(m) === p).map(
|
|
2735
2735
|
(m) => d.filter((p) => p.priority === m).sort((p, w) => w.subPriority - p.subPriority)
|
|
2736
2736
|
).map((m) => m[0]);
|
|
2737
2737
|
let f = P(s);
|
|
2738
2738
|
if (isNaN(f.getTime()))
|
|
2739
|
-
return
|
|
2740
|
-
const
|
|
2741
|
-
for (const m of
|
|
2739
|
+
return E(s, NaN);
|
|
2740
|
+
const y = {};
|
|
2741
|
+
for (const m of v) {
|
|
2742
2742
|
if (!m.validate(f, l))
|
|
2743
|
-
return
|
|
2744
|
-
const p = m.set(f,
|
|
2745
|
-
Array.isArray(p) ? (f = p[0], Object.assign(
|
|
2743
|
+
return E(s, NaN);
|
|
2744
|
+
const p = m.set(f, y, l);
|
|
2745
|
+
Array.isArray(p) ? (f = p[0], Object.assign(y, p[1])) : f = p;
|
|
2746
2746
|
}
|
|
2747
|
-
return
|
|
2747
|
+
return E(s, f);
|
|
2748
2748
|
}
|
|
2749
2749
|
function Oo(e) {
|
|
2750
2750
|
return e.match(Do)[1].replace(Io, "'");
|
|
2751
2751
|
}
|
|
2752
|
-
const
|
|
2752
|
+
const Mo = (e, t) => (s, r) => {
|
|
2753
2753
|
t.bind(r).to(r).inTransientScope(), pt()(r);
|
|
2754
2754
|
const i = e.broker.registerRequest(s, (n) => t.get(r).handle(n));
|
|
2755
2755
|
return {
|
|
@@ -2757,8 +2757,8 @@ const Fo = (e, t) => (s, r) => {
|
|
|
2757
2757
|
t.isBound(r) && t.unbind(r), i.dispose();
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
|
-
},
|
|
2761
|
-
registerRequest:
|
|
2760
|
+
}, Fo = (e, t) => ({
|
|
2761
|
+
registerRequest: Mo(e, t)
|
|
2762
2762
|
}), nr = () => {
|
|
2763
2763
|
try {
|
|
2764
2764
|
if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
|
|
@@ -2813,7 +2813,7 @@ function ko(e) {
|
|
|
2813
2813
|
};
|
|
2814
2814
|
};
|
|
2815
2815
|
}
|
|
2816
|
-
var
|
|
2816
|
+
var Me = /* @__PURE__ */ ((e) => (e.Switch = "switch", e.Checkbox = "checkbox", e.Dropdown = "dropdown", e))(Me || {});
|
|
2817
2817
|
const z = {
|
|
2818
2818
|
primaryApi: Symbol.for("primaryApi"),
|
|
2819
2819
|
store: Symbol.for("store")
|
|
@@ -2821,10 +2821,10 @@ const z = {
|
|
|
2821
2821
|
function H(e) {
|
|
2822
2822
|
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. `;
|
|
2823
2823
|
}
|
|
2824
|
-
var Ro = typeof Symbol == "function" && Symbol.observable || "@@observable", xs = Ro,
|
|
2825
|
-
INIT: `@@redux/INIT${/* @__PURE__ */
|
|
2826
|
-
REPLACE: `@@redux/REPLACE${/* @__PURE__ */
|
|
2827
|
-
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${
|
|
2824
|
+
var Ro = typeof Symbol == "function" && Symbol.observable || "@@observable", xs = Ro, $t = () => Math.random().toString(36).substring(7).split("").join("."), Ho = {
|
|
2825
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ $t()}`,
|
|
2826
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ $t()}`,
|
|
2827
|
+
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${$t()}`
|
|
2828
2828
|
}, it = Ho;
|
|
2829
2829
|
function es(e) {
|
|
2830
2830
|
if (typeof e != "object" || e === null)
|
|
@@ -2862,16 +2862,16 @@ function or(e, t, s) {
|
|
|
2862
2862
|
throw new Error(H(5));
|
|
2863
2863
|
let w = !0;
|
|
2864
2864
|
d();
|
|
2865
|
-
const
|
|
2866
|
-
return o.set(
|
|
2865
|
+
const b = a++;
|
|
2866
|
+
return o.set(b, p), function() {
|
|
2867
2867
|
if (w) {
|
|
2868
2868
|
if (l)
|
|
2869
2869
|
throw new Error(H(6));
|
|
2870
|
-
w = !1, d(), o.delete(
|
|
2870
|
+
w = !1, d(), o.delete(b), n = null;
|
|
2871
2871
|
}
|
|
2872
2872
|
};
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2874
|
+
function v(p) {
|
|
2875
2875
|
if (!es(p))
|
|
2876
2876
|
throw new Error(H(7));
|
|
2877
2877
|
if (typeof p.type > "u")
|
|
@@ -2885,18 +2885,18 @@ function or(e, t, s) {
|
|
|
2885
2885
|
} finally {
|
|
2886
2886
|
l = !1;
|
|
2887
2887
|
}
|
|
2888
|
-
return (n = o).forEach((
|
|
2889
|
-
|
|
2888
|
+
return (n = o).forEach((b) => {
|
|
2889
|
+
b();
|
|
2890
2890
|
}), p;
|
|
2891
2891
|
}
|
|
2892
2892
|
function f(p) {
|
|
2893
2893
|
if (typeof p != "function")
|
|
2894
2894
|
throw new Error(H(10));
|
|
2895
|
-
r = p,
|
|
2895
|
+
r = p, v({
|
|
2896
2896
|
type: it.REPLACE
|
|
2897
2897
|
});
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function y() {
|
|
2900
2900
|
const p = u;
|
|
2901
2901
|
return {
|
|
2902
2902
|
/**
|
|
@@ -2910,12 +2910,12 @@ function or(e, t, s) {
|
|
|
2910
2910
|
subscribe(w) {
|
|
2911
2911
|
if (typeof w != "object" || w === null)
|
|
2912
2912
|
throw new Error(H(11));
|
|
2913
|
-
function
|
|
2913
|
+
function b() {
|
|
2914
2914
|
const D = w;
|
|
2915
2915
|
D.next && D.next(c());
|
|
2916
2916
|
}
|
|
2917
|
-
return
|
|
2918
|
-
unsubscribe: p(
|
|
2917
|
+
return b(), {
|
|
2918
|
+
unsubscribe: p(b)
|
|
2919
2919
|
};
|
|
2920
2920
|
},
|
|
2921
2921
|
[xs]() {
|
|
@@ -2923,14 +2923,14 @@ function or(e, t, s) {
|
|
|
2923
2923
|
}
|
|
2924
2924
|
};
|
|
2925
2925
|
}
|
|
2926
|
-
return
|
|
2926
|
+
return v({
|
|
2927
2927
|
type: it.INIT
|
|
2928
2928
|
}), {
|
|
2929
|
-
dispatch:
|
|
2929
|
+
dispatch: v,
|
|
2930
2930
|
subscribe: u,
|
|
2931
2931
|
getState: c,
|
|
2932
2932
|
replaceReducer: f,
|
|
2933
|
-
[xs]:
|
|
2933
|
+
[xs]: y
|
|
2934
2934
|
};
|
|
2935
2935
|
}
|
|
2936
2936
|
function zo(e) {
|
|
@@ -2965,10 +2965,10 @@ function Vo(e) {
|
|
|
2965
2965
|
let l = !1;
|
|
2966
2966
|
const d = {};
|
|
2967
2967
|
for (let c = 0; c < r.length; c++) {
|
|
2968
|
-
const u = r[c],
|
|
2969
|
-
if (typeof
|
|
2968
|
+
const u = r[c], v = s[u], f = o[u], y = v(f, a);
|
|
2969
|
+
if (typeof y > "u")
|
|
2970
2970
|
throw a && a.type, new Error(H(14));
|
|
2971
|
-
d[u] =
|
|
2971
|
+
d[u] = y, l = l || y !== f;
|
|
2972
2972
|
}
|
|
2973
2973
|
return l = l || r.length !== Object.keys(o).length, l ? d : o;
|
|
2974
2974
|
};
|
|
@@ -2992,31 +2992,31 @@ function No(...e) {
|
|
|
2992
2992
|
};
|
|
2993
2993
|
};
|
|
2994
2994
|
}
|
|
2995
|
-
function
|
|
2995
|
+
function qo(e) {
|
|
2996
2996
|
return es(e) && "type" in e && typeof e.type == "string";
|
|
2997
2997
|
}
|
|
2998
|
-
var ar = Symbol.for("immer-nothing"), _s = Symbol.for("immer-draftable"),
|
|
2998
|
+
var ar = Symbol.for("immer-nothing"), _s = Symbol.for("immer-draftable"), G = 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`
|
|
3002
3002
|
);
|
|
3003
3003
|
}
|
|
3004
|
-
var
|
|
3004
|
+
var Fe = Object.getPrototypeOf;
|
|
3005
3005
|
function xe(e) {
|
|
3006
|
-
return !!e && !!e[
|
|
3006
|
+
return !!e && !!e[G];
|
|
3007
3007
|
}
|
|
3008
3008
|
function de(e) {
|
|
3009
3009
|
return e ? lr(e) || Array.isArray(e) || !!e[_s] || !!e.constructor?.[_s] || gt(e) || yt(e) : !1;
|
|
3010
3010
|
}
|
|
3011
|
-
var
|
|
3011
|
+
var Go = Object.prototype.constructor.toString();
|
|
3012
3012
|
function lr(e) {
|
|
3013
3013
|
if (!e || typeof e != "object")
|
|
3014
3014
|
return !1;
|
|
3015
|
-
const t =
|
|
3015
|
+
const t = Fe(e);
|
|
3016
3016
|
if (t === null)
|
|
3017
3017
|
return !0;
|
|
3018
3018
|
const s = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
3019
|
-
return s === Object ? !0 : typeof s == "function" && Function.toString.call(s) ===
|
|
3019
|
+
return s === Object ? !0 : typeof s == "function" && Function.toString.call(s) === Go;
|
|
3020
3020
|
}
|
|
3021
3021
|
function ot(e, t) {
|
|
3022
3022
|
mt(e) === 0 ? Reflect.ownKeys(e).forEach((s) => {
|
|
@@ -3024,7 +3024,7 @@ function ot(e, t) {
|
|
|
3024
3024
|
}) : e.forEach((s, r) => t(r, s, e));
|
|
3025
3025
|
}
|
|
3026
3026
|
function mt(e) {
|
|
3027
|
-
const t = e[
|
|
3027
|
+
const t = e[G];
|
|
3028
3028
|
return t ? t.type_ : Array.isArray(e) ? 1 : gt(e) ? 2 : yt(e) ? 3 : 0;
|
|
3029
3029
|
}
|
|
3030
3030
|
function kt(e, t) {
|
|
@@ -3034,7 +3034,7 @@ 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
|
}
|
|
3037
|
-
function
|
|
3037
|
+
function Bo(e, t) {
|
|
3038
3038
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
3039
3039
|
}
|
|
3040
3040
|
function gt(e) {
|
|
@@ -3056,7 +3056,7 @@ function Rt(e, t) {
|
|
|
3056
3056
|
const s = lr(e);
|
|
3057
3057
|
if (t === !0 || t === "class_only" && !s) {
|
|
3058
3058
|
const r = Object.getOwnPropertyDescriptors(e);
|
|
3059
|
-
delete r[
|
|
3059
|
+
delete r[G];
|
|
3060
3060
|
let i = Reflect.ownKeys(r);
|
|
3061
3061
|
for (let n = 0; n < i.length; n++) {
|
|
3062
3062
|
const o = i[n], a = r[o];
|
|
@@ -3068,9 +3068,9 @@ function Rt(e, t) {
|
|
|
3068
3068
|
value: e[o]
|
|
3069
3069
|
});
|
|
3070
3070
|
}
|
|
3071
|
-
return Object.create(
|
|
3071
|
+
return Object.create(Fe(e), r);
|
|
3072
3072
|
} else {
|
|
3073
|
-
const r =
|
|
3073
|
+
const r = Fe(e);
|
|
3074
3074
|
if (r !== null && s)
|
|
3075
3075
|
return { ...e };
|
|
3076
3076
|
const i = Object.create(r);
|
|
@@ -3078,12 +3078,12 @@ function Rt(e, t) {
|
|
|
3078
3078
|
}
|
|
3079
3079
|
}
|
|
3080
3080
|
function ts(e, t = !1) {
|
|
3081
|
-
return
|
|
3081
|
+
return vt(e) || xe(e) || !de(e) || (mt(e) > 1 && (e.set = e.add = e.clear = e.delete = Lo), Object.freeze(e), t && Object.entries(e).forEach(([s, r]) => ts(r, !0))), e;
|
|
3082
3082
|
}
|
|
3083
3083
|
function Lo() {
|
|
3084
3084
|
J(2);
|
|
3085
3085
|
}
|
|
3086
|
-
function
|
|
3086
|
+
function vt(e) {
|
|
3087
3087
|
return Object.isFrozen(e);
|
|
3088
3088
|
}
|
|
3089
3089
|
var Wo = {};
|
|
@@ -3119,23 +3119,23 @@ function Cs(e) {
|
|
|
3119
3119
|
return Le = jo(Le, e);
|
|
3120
3120
|
}
|
|
3121
3121
|
function Yo(e) {
|
|
3122
|
-
const t = e[
|
|
3122
|
+
const t = e[G];
|
|
3123
3123
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
3124
3124
|
}
|
|
3125
3125
|
function Ds(e, t) {
|
|
3126
3126
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
3127
3127
|
const s = t.drafts_[0];
|
|
3128
|
-
return e !== void 0 && e !== s ? (s[
|
|
3129
|
-
s[
|
|
3128
|
+
return e !== void 0 && e !== s ? (s[G].modified_ && (Ht(t), J(4)), de(e) && (e = at(t, e), t.parent_ || lt(t, e)), t.patches_ && _e("Patches").generateReplacementPatches_(
|
|
3129
|
+
s[G].base_,
|
|
3130
3130
|
e,
|
|
3131
3131
|
t.patches_,
|
|
3132
3132
|
t.inversePatches_
|
|
3133
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
|
-
if (
|
|
3136
|
+
if (vt(t))
|
|
3137
3137
|
return t;
|
|
3138
|
-
const r = t[
|
|
3138
|
+
const r = t[G];
|
|
3139
3139
|
if (!r)
|
|
3140
3140
|
return ot(
|
|
3141
3141
|
t,
|
|
@@ -3170,7 +3170,7 @@ function Is(e, t, s, r, i, n, o) {
|
|
|
3170
3170
|
else
|
|
3171
3171
|
return;
|
|
3172
3172
|
} else o && s.add(i);
|
|
3173
|
-
if (de(i) && !
|
|
3173
|
+
if (de(i) && !vt(i)) {
|
|
3174
3174
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
3175
3175
|
return;
|
|
3176
3176
|
at(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && Object.prototype.propertyIsEnumerable.call(s, r) && lt(e, i);
|
|
@@ -3210,13 +3210,13 @@ function Uo(e, t) {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
var ss = {
|
|
3212
3212
|
get(e, t) {
|
|
3213
|
-
if (t ===
|
|
3213
|
+
if (t === G)
|
|
3214
3214
|
return e;
|
|
3215
3215
|
const s = we(e);
|
|
3216
3216
|
if (!kt(s, t))
|
|
3217
3217
|
return Qo(e, s, t);
|
|
3218
3218
|
const r = s[t];
|
|
3219
|
-
return e.finalized_ || !de(r) ? r : r === Ot(e.base_, t) ? (
|
|
3219
|
+
return e.finalized_ || !de(r) ? r : r === Ot(e.base_, t) ? (Mt(e), e.copy_[t] = Nt(r, e)) : r;
|
|
3220
3220
|
},
|
|
3221
3221
|
has(e, t) {
|
|
3222
3222
|
return t in we(e);
|
|
@@ -3229,19 +3229,19 @@ var ss = {
|
|
|
3229
3229
|
if (r?.set)
|
|
3230
3230
|
return r.set.call(e.draft_, s), !0;
|
|
3231
3231
|
if (!e.modified_) {
|
|
3232
|
-
const i = Ot(we(e), t), n = i?.[
|
|
3232
|
+
const i = Ot(we(e), t), n = i?.[G];
|
|
3233
3233
|
if (n && n.base_ === s)
|
|
3234
3234
|
return e.copy_[t] = s, e.assigned_[t] = !1, !0;
|
|
3235
|
-
if (
|
|
3235
|
+
if (Bo(s, i) && (s !== void 0 || kt(e.base_, t)))
|
|
3236
3236
|
return !0;
|
|
3237
|
-
|
|
3237
|
+
Mt(e), Vt(e);
|
|
3238
3238
|
}
|
|
3239
3239
|
return e.copy_[t] === s && // special case: handle new props with value 'undefined'
|
|
3240
3240
|
(s !== void 0 || t in e.copy_) || // special case: NaN
|
|
3241
3241
|
Number.isNaN(s) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = s, e.assigned_[t] = !0), !0;
|
|
3242
3242
|
},
|
|
3243
3243
|
deleteProperty(e, t) {
|
|
3244
|
-
return Ot(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1,
|
|
3244
|
+
return Ot(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, Mt(e), Vt(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
|
|
3245
3245
|
},
|
|
3246
3246
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
3247
3247
|
// the same guarantee in ES5 mode.
|
|
@@ -3258,7 +3258,7 @@ var ss = {
|
|
|
3258
3258
|
J(11);
|
|
3259
3259
|
},
|
|
3260
3260
|
getPrototypeOf(e) {
|
|
3261
|
-
return
|
|
3261
|
+
return Fe(e.base_);
|
|
3262
3262
|
},
|
|
3263
3263
|
setPrototypeOf() {
|
|
3264
3264
|
J(12);
|
|
@@ -3276,7 +3276,7 @@ We.set = function(e, t, s) {
|
|
|
3276
3276
|
return ss.set.call(this, e[0], t, s, e[0]);
|
|
3277
3277
|
};
|
|
3278
3278
|
function Ot(e, t) {
|
|
3279
|
-
const s = e[
|
|
3279
|
+
const s = e[G];
|
|
3280
3280
|
return (s ? we(s) : e)[t];
|
|
3281
3281
|
}
|
|
3282
3282
|
function Qo(e, t, s) {
|
|
@@ -3290,18 +3290,18 @@ function Qo(e, t, s) {
|
|
|
3290
3290
|
function ur(e, t) {
|
|
3291
3291
|
if (!(t in e))
|
|
3292
3292
|
return;
|
|
3293
|
-
let s =
|
|
3293
|
+
let s = Fe(e);
|
|
3294
3294
|
for (; s; ) {
|
|
3295
3295
|
const r = Object.getOwnPropertyDescriptor(s, t);
|
|
3296
3296
|
if (r)
|
|
3297
3297
|
return r;
|
|
3298
|
-
s =
|
|
3298
|
+
s = Fe(s);
|
|
3299
3299
|
}
|
|
3300
3300
|
}
|
|
3301
3301
|
function Vt(e) {
|
|
3302
3302
|
e.modified_ || (e.modified_ = !0, e.parent_ && Vt(e.parent_));
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3304
|
+
function Mt(e) {
|
|
3305
3305
|
e.copy_ || (e.copy_ = Rt(
|
|
3306
3306
|
e.base_,
|
|
3307
3307
|
e.scope_.immer_.useStrictShallowCopy_
|
|
@@ -3349,10 +3349,10 @@ var Xo = class {
|
|
|
3349
3349
|
createDraft(e) {
|
|
3350
3350
|
de(e) || J(8), xe(e) && (e = Ko(e));
|
|
3351
3351
|
const t = Cs(this), s = Nt(e, void 0);
|
|
3352
|
-
return s[
|
|
3352
|
+
return s[G].isManual_ = !0, zt(t), s;
|
|
3353
3353
|
}
|
|
3354
3354
|
finishDraft(e, t) {
|
|
3355
|
-
const s = e && e[
|
|
3355
|
+
const s = e && e[G];
|
|
3356
3356
|
(!s || !s.isManual_) && J(9);
|
|
3357
3357
|
const { scope_: r } = s;
|
|
3358
3358
|
return Ss(r, t), Ds(void 0, r);
|
|
@@ -3398,9 +3398,9 @@ function Ko(e) {
|
|
|
3398
3398
|
return xe(e) || J(10, e), hr(e);
|
|
3399
3399
|
}
|
|
3400
3400
|
function hr(e) {
|
|
3401
|
-
if (!de(e) ||
|
|
3401
|
+
if (!de(e) || vt(e))
|
|
3402
3402
|
return e;
|
|
3403
|
-
const t = e[
|
|
3403
|
+
const t = e[G];
|
|
3404
3404
|
let s;
|
|
3405
3405
|
if (t) {
|
|
3406
3406
|
if (!t.modified_)
|
|
@@ -3412,15 +3412,15 @@ function hr(e) {
|
|
|
3412
3412
|
cr(s, r, hr(i));
|
|
3413
3413
|
}), t && (t.finalized_ = !1), s;
|
|
3414
3414
|
}
|
|
3415
|
-
var
|
|
3416
|
-
|
|
3417
|
-
|
|
3415
|
+
var B = new Xo(), fr = B.produce;
|
|
3416
|
+
B.produceWithPatches.bind(
|
|
3417
|
+
B
|
|
3418
3418
|
);
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3419
|
+
B.setAutoFreeze.bind(B);
|
|
3420
|
+
B.setUseStrictShallowCopy.bind(B);
|
|
3421
|
+
B.applyPatches.bind(B);
|
|
3422
|
+
B.createDraft.bind(B);
|
|
3423
|
+
B.finishDraft.bind(B);
|
|
3424
3424
|
function Jo(e, t = `expected a function, instead received ${typeof e}`) {
|
|
3425
3425
|
if (typeof e != "function")
|
|
3426
3426
|
throw new TypeError(t);
|
|
@@ -3437,7 +3437,7 @@ function ea(e, t = "expected all items to be functions, instead received the fol
|
|
|
3437
3437
|
throw new TypeError(`${t}[${s}]`);
|
|
3438
3438
|
}
|
|
3439
3439
|
}
|
|
3440
|
-
var
|
|
3440
|
+
var Ts = (e) => Array.isArray(e) ? e : [e];
|
|
3441
3441
|
function ta(e) {
|
|
3442
3442
|
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
3443
3443
|
return ea(
|
|
@@ -3458,7 +3458,7 @@ var ra = class {
|
|
|
3458
3458
|
deref() {
|
|
3459
3459
|
return this.value;
|
|
3460
3460
|
}
|
|
3461
|
-
}, ia = typeof WeakRef < "u" ? WeakRef : ra, na = 0,
|
|
3461
|
+
}, ia = typeof WeakRef < "u" ? WeakRef : ra, na = 0, Es = 1;
|
|
3462
3462
|
function Ue() {
|
|
3463
3463
|
return {
|
|
3464
3464
|
s: na,
|
|
@@ -3474,29 +3474,29 @@ function pr(e, t = {}) {
|
|
|
3474
3474
|
function o() {
|
|
3475
3475
|
let a = s;
|
|
3476
3476
|
const { length: l } = arguments;
|
|
3477
|
-
for (let u = 0,
|
|
3477
|
+
for (let u = 0, v = l; u < v; u++) {
|
|
3478
3478
|
const f = arguments[u];
|
|
3479
3479
|
if (typeof f == "function" || typeof f == "object" && f !== null) {
|
|
3480
|
-
let
|
|
3481
|
-
|
|
3482
|
-
const m =
|
|
3483
|
-
m === void 0 ? (a = Ue(),
|
|
3480
|
+
let y = a.o;
|
|
3481
|
+
y === null && (a.o = y = /* @__PURE__ */ new WeakMap());
|
|
3482
|
+
const m = y.get(f);
|
|
3483
|
+
m === void 0 ? (a = Ue(), y.set(f, a)) : a = m;
|
|
3484
3484
|
} else {
|
|
3485
|
-
let
|
|
3486
|
-
|
|
3487
|
-
const m =
|
|
3488
|
-
m === void 0 ? (a = Ue(),
|
|
3485
|
+
let y = a.p;
|
|
3486
|
+
y === null && (a.p = y = /* @__PURE__ */ new Map());
|
|
3487
|
+
const m = y.get(f);
|
|
3488
|
+
m === void 0 ? (a = Ue(), y.set(f, a)) : a = m;
|
|
3489
3489
|
}
|
|
3490
3490
|
}
|
|
3491
3491
|
const d = a;
|
|
3492
3492
|
let c;
|
|
3493
|
-
if (a.s ===
|
|
3493
|
+
if (a.s === Es)
|
|
3494
3494
|
c = a.v;
|
|
3495
3495
|
else if (c = e.apply(null, arguments), n++, r) {
|
|
3496
3496
|
const u = i?.deref?.() ?? i;
|
|
3497
3497
|
u != null && r(u, c) && (c = u, n !== 0 && n--), i = typeof c == "object" && c !== null || typeof c == "function" ? new ia(c) : c;
|
|
3498
3498
|
}
|
|
3499
|
-
return d.s =
|
|
3499
|
+
return d.s = Es, d.v = c, c;
|
|
3500
3500
|
}
|
|
3501
3501
|
return o.clearCache = () => {
|
|
3502
3502
|
s = Ue(), o.resetResultsCount();
|
|
@@ -3519,25 +3519,25 @@ function oa(e, ...t) {
|
|
|
3519
3519
|
...l
|
|
3520
3520
|
}, {
|
|
3521
3521
|
memoize: u,
|
|
3522
|
-
memoizeOptions:
|
|
3522
|
+
memoizeOptions: v = [],
|
|
3523
3523
|
argsMemoize: f = pr,
|
|
3524
|
-
argsMemoizeOptions:
|
|
3525
|
-
} = c, m =
|
|
3524
|
+
argsMemoizeOptions: y = []
|
|
3525
|
+
} = c, m = Ts(v), p = Ts(y), w = ta(i), b = u(function() {
|
|
3526
3526
|
return n++, d.apply(
|
|
3527
3527
|
null,
|
|
3528
3528
|
arguments
|
|
3529
3529
|
);
|
|
3530
3530
|
}, ...m), x = f(function() {
|
|
3531
3531
|
o++;
|
|
3532
|
-
const
|
|
3532
|
+
const M = sa(
|
|
3533
3533
|
w,
|
|
3534
3534
|
arguments
|
|
3535
3535
|
);
|
|
3536
|
-
return a =
|
|
3536
|
+
return a = b.apply(null, M), a;
|
|
3537
3537
|
}, ...p);
|
|
3538
3538
|
return Object.assign(x, {
|
|
3539
3539
|
resultFunc: d,
|
|
3540
|
-
memoizedResultFunc:
|
|
3540
|
+
memoizedResultFunc: b,
|
|
3541
3541
|
dependencies: w,
|
|
3542
3542
|
dependencyRecomputations: () => o,
|
|
3543
3543
|
resetDependencyRecomputations: () => {
|
|
@@ -3579,7 +3579,7 @@ var la = mr(), ca = mr, da = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTE
|
|
|
3579
3579
|
if (arguments.length !== 0)
|
|
3580
3580
|
return typeof arguments[0] == "object" ? nt : nt.apply(null, arguments);
|
|
3581
3581
|
};
|
|
3582
|
-
function
|
|
3582
|
+
function $s(e, t) {
|
|
3583
3583
|
function s(...r) {
|
|
3584
3584
|
if (t) {
|
|
3585
3585
|
let i = t(...r);
|
|
@@ -3601,27 +3601,27 @@ function Es(e, t) {
|
|
|
3601
3601
|
payload: r[0]
|
|
3602
3602
|
};
|
|
3603
3603
|
}
|
|
3604
|
-
return s.toString = () => `${e}`, s.type = e, s.match = (r) =>
|
|
3604
|
+
return s.toString = () => `${e}`, s.type = e, s.match = (r) => qo(r) && r.type === e, s;
|
|
3605
3605
|
}
|
|
3606
|
-
var gr = class
|
|
3606
|
+
var gr = class Ge extends Array {
|
|
3607
3607
|
constructor(...t) {
|
|
3608
|
-
super(...t), Object.setPrototypeOf(this,
|
|
3608
|
+
super(...t), Object.setPrototypeOf(this, Ge.prototype);
|
|
3609
3609
|
}
|
|
3610
3610
|
static get [Symbol.species]() {
|
|
3611
|
-
return
|
|
3611
|
+
return Ge;
|
|
3612
3612
|
}
|
|
3613
3613
|
concat(...t) {
|
|
3614
3614
|
return super.concat.apply(this, t);
|
|
3615
3615
|
}
|
|
3616
3616
|
prepend(...t) {
|
|
3617
|
-
return t.length === 1 && Array.isArray(t[0]) ? new
|
|
3617
|
+
return t.length === 1 && Array.isArray(t[0]) ? new Ge(...t[0].concat(this)) : new Ge(...t.concat(this));
|
|
3618
3618
|
}
|
|
3619
3619
|
};
|
|
3620
3620
|
function Os(e) {
|
|
3621
3621
|
return de(e) ? fr(e, () => {
|
|
3622
3622
|
}) : e;
|
|
3623
3623
|
}
|
|
3624
|
-
function
|
|
3624
|
+
function Ms(e, t, s) {
|
|
3625
3625
|
return e.has(t) ? e.get(t) : e.set(t, s(t)).get(t);
|
|
3626
3626
|
}
|
|
3627
3627
|
function ua(e) {
|
|
@@ -3636,7 +3636,7 @@ var ha = () => function(t) {
|
|
|
3636
3636
|
} = t ?? {};
|
|
3637
3637
|
let o = new gr();
|
|
3638
3638
|
return s && (ua(s) ? o.push(la) : o.push(ca(s.extraArgument))), o;
|
|
3639
|
-
}, fa = "RTK_autoBatch",
|
|
3639
|
+
}, fa = "RTK_autoBatch", Fs = (e) => (t) => {
|
|
3640
3640
|
setTimeout(t, e);
|
|
3641
3641
|
}, pa = (e = {
|
|
3642
3642
|
type: "raf"
|
|
@@ -3645,17 +3645,17 @@ var ha = () => function(t) {
|
|
|
3645
3645
|
let i = !0, n = !1, o = !1;
|
|
3646
3646
|
const a = /* @__PURE__ */ new Set(), l = e.type === "tick" ? queueMicrotask : e.type === "raf" ? (
|
|
3647
3647
|
// requestAnimationFrame won't exist in SSR environments. Fall back to a vague approximation just to keep from erroring.
|
|
3648
|
-
typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame :
|
|
3649
|
-
) : e.type === "callback" ? e.queueNotification :
|
|
3648
|
+
typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame : Fs(10)
|
|
3649
|
+
) : e.type === "callback" ? e.queueNotification : Fs(e.timeout), d = () => {
|
|
3650
3650
|
o = !1, n && (n = !1, a.forEach((c) => c()));
|
|
3651
3651
|
};
|
|
3652
3652
|
return Object.assign({}, r, {
|
|
3653
3653
|
// Override the base `store.subscribe` method to keep original listeners
|
|
3654
3654
|
// from running if we're delaying notifications
|
|
3655
3655
|
subscribe(c) {
|
|
3656
|
-
const u = () => i && c(),
|
|
3656
|
+
const u = () => i && c(), v = r.subscribe(u);
|
|
3657
3657
|
return a.add(c), () => {
|
|
3658
|
-
|
|
3658
|
+
v(), a.delete(c);
|
|
3659
3659
|
};
|
|
3660
3660
|
},
|
|
3661
3661
|
// Override the base `store.dispatch` method so that we can check actions
|
|
@@ -3699,8 +3699,8 @@ function ga(e) {
|
|
|
3699
3699
|
...typeof i == "object" && i
|
|
3700
3700
|
}));
|
|
3701
3701
|
const c = No(...l), u = ma(c);
|
|
3702
|
-
let
|
|
3703
|
-
const f = d(...
|
|
3702
|
+
let v = typeof o == "function" ? o(u) : u();
|
|
3703
|
+
const f = d(...v);
|
|
3704
3704
|
return or(a, n, f);
|
|
3705
3705
|
}
|
|
3706
3706
|
function yr(e) {
|
|
@@ -3730,7 +3730,7 @@ function yr(e) {
|
|
|
3730
3730
|
function ya(e) {
|
|
3731
3731
|
return typeof e == "function";
|
|
3732
3732
|
}
|
|
3733
|
-
function
|
|
3733
|
+
function va(e, t) {
|
|
3734
3734
|
let [s, r, i] = yr(t), n;
|
|
3735
3735
|
if (ya(e))
|
|
3736
3736
|
n = () => Os(e());
|
|
@@ -3751,15 +3751,15 @@ function ba(e, t) {
|
|
|
3751
3751
|
return f === void 0 ? c : f;
|
|
3752
3752
|
} else {
|
|
3753
3753
|
if (de(c))
|
|
3754
|
-
return fr(c, (
|
|
3754
|
+
return fr(c, (v) => u(v, l));
|
|
3755
3755
|
{
|
|
3756
|
-
const
|
|
3757
|
-
if (
|
|
3756
|
+
const v = u(c, l);
|
|
3757
|
+
if (v === void 0) {
|
|
3758
3758
|
if (c === null)
|
|
3759
3759
|
return c;
|
|
3760
3760
|
throw Error("A case reducer on a non-draftable value must not return undefined");
|
|
3761
3761
|
}
|
|
3762
|
-
return
|
|
3762
|
+
return v;
|
|
3763
3763
|
}
|
|
3764
3764
|
}
|
|
3765
3765
|
return c;
|
|
@@ -3767,14 +3767,14 @@ function ba(e, t) {
|
|
|
3767
3767
|
}
|
|
3768
3768
|
return o.getInitialState = n, o;
|
|
3769
3769
|
}
|
|
3770
|
-
var
|
|
3770
|
+
var ba = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
3771
3771
|
function wa(e, t) {
|
|
3772
3772
|
return `${e}/${t}`;
|
|
3773
3773
|
}
|
|
3774
3774
|
function xa({
|
|
3775
3775
|
creators: e
|
|
3776
3776
|
} = {}) {
|
|
3777
|
-
const t = e?.asyncThunk?.[
|
|
3777
|
+
const t = e?.asyncThunk?.[ba];
|
|
3778
3778
|
return function(r) {
|
|
3779
3779
|
const {
|
|
3780
3780
|
name: i,
|
|
@@ -3788,43 +3788,43 @@ function xa({
|
|
|
3788
3788
|
actionCreators: {},
|
|
3789
3789
|
sliceMatchers: []
|
|
3790
3790
|
}, d = {
|
|
3791
|
-
addCase(
|
|
3792
|
-
const D = typeof
|
|
3791
|
+
addCase(b, x) {
|
|
3792
|
+
const D = typeof b == "string" ? b : b.type;
|
|
3793
3793
|
if (!D)
|
|
3794
3794
|
throw new Error(ce(12));
|
|
3795
3795
|
if (D in l.sliceCaseReducersByType)
|
|
3796
3796
|
throw new Error(ce(13));
|
|
3797
3797
|
return l.sliceCaseReducersByType[D] = x, d;
|
|
3798
3798
|
},
|
|
3799
|
-
addMatcher(
|
|
3799
|
+
addMatcher(b, x) {
|
|
3800
3800
|
return l.sliceMatchers.push({
|
|
3801
|
-
matcher:
|
|
3801
|
+
matcher: b,
|
|
3802
3802
|
reducer: x
|
|
3803
3803
|
}), d;
|
|
3804
3804
|
},
|
|
3805
|
-
exposeAction(
|
|
3806
|
-
return l.actionCreators[
|
|
3805
|
+
exposeAction(b, x) {
|
|
3806
|
+
return l.actionCreators[b] = x, d;
|
|
3807
3807
|
},
|
|
3808
|
-
exposeCaseReducer(
|
|
3809
|
-
return l.sliceCaseReducersByName[
|
|
3808
|
+
exposeCaseReducer(b, x) {
|
|
3809
|
+
return l.sliceCaseReducersByName[b] = x, d;
|
|
3810
3810
|
}
|
|
3811
3811
|
};
|
|
3812
|
-
a.forEach((
|
|
3813
|
-
const x = o[
|
|
3814
|
-
reducerName:
|
|
3815
|
-
type: wa(i,
|
|
3812
|
+
a.forEach((b) => {
|
|
3813
|
+
const x = o[b], D = {
|
|
3814
|
+
reducerName: b,
|
|
3815
|
+
type: wa(i, b),
|
|
3816
3816
|
createNotation: typeof r.reducers == "function"
|
|
3817
3817
|
};
|
|
3818
|
-
Da(x) ?
|
|
3818
|
+
Da(x) ? Ta(D, x, d, t) : Ca(D, x, d);
|
|
3819
3819
|
});
|
|
3820
3820
|
function c() {
|
|
3821
|
-
const [
|
|
3822
|
-
...
|
|
3821
|
+
const [b = {}, x = [], D = void 0] = typeof r.extraReducers == "function" ? yr(r.extraReducers) : [r.extraReducers], M = {
|
|
3822
|
+
...b,
|
|
3823
3823
|
...l.sliceCaseReducersByType
|
|
3824
3824
|
};
|
|
3825
|
-
return
|
|
3826
|
-
for (let R in
|
|
3827
|
-
k.addCase(R,
|
|
3825
|
+
return va(r.initialState, (k) => {
|
|
3826
|
+
for (let R in M)
|
|
3827
|
+
k.addCase(R, M[R]);
|
|
3828
3828
|
for (let R of l.sliceMatchers)
|
|
3829
3829
|
k.addMatcher(R.matcher, R.reducer);
|
|
3830
3830
|
for (let R of x)
|
|
@@ -3832,22 +3832,22 @@ function xa({
|
|
|
3832
3832
|
D && k.addDefaultCase(D);
|
|
3833
3833
|
});
|
|
3834
3834
|
}
|
|
3835
|
-
const u = (
|
|
3835
|
+
const u = (b) => b, v = /* @__PURE__ */ new Map();
|
|
3836
3836
|
let f;
|
|
3837
|
-
function
|
|
3838
|
-
return f || (f = c()), f(
|
|
3837
|
+
function y(b, x) {
|
|
3838
|
+
return f || (f = c()), f(b, x);
|
|
3839
3839
|
}
|
|
3840
3840
|
function m() {
|
|
3841
3841
|
return f || (f = c()), f.getInitialState();
|
|
3842
3842
|
}
|
|
3843
|
-
function p(
|
|
3843
|
+
function p(b, x = !1) {
|
|
3844
3844
|
function D(k) {
|
|
3845
|
-
let R = k[
|
|
3845
|
+
let R = k[b];
|
|
3846
3846
|
return typeof R > "u" && x && (R = m()), R;
|
|
3847
3847
|
}
|
|
3848
|
-
function
|
|
3849
|
-
const R =
|
|
3850
|
-
return
|
|
3848
|
+
function M(k = u) {
|
|
3849
|
+
const R = Ms(v, x, () => /* @__PURE__ */ new WeakMap());
|
|
3850
|
+
return Ms(R, k, () => {
|
|
3851
3851
|
const gs = {};
|
|
3852
3852
|
for (const [_i, Si] of Object.entries(r.selectors ?? {}))
|
|
3853
3853
|
gs[_i] = _a(Si, k, m, x);
|
|
@@ -3855,32 +3855,32 @@ function xa({
|
|
|
3855
3855
|
});
|
|
3856
3856
|
}
|
|
3857
3857
|
return {
|
|
3858
|
-
reducerPath:
|
|
3859
|
-
getSelectors:
|
|
3858
|
+
reducerPath: b,
|
|
3859
|
+
getSelectors: M,
|
|
3860
3860
|
get selectors() {
|
|
3861
|
-
return
|
|
3861
|
+
return M(D);
|
|
3862
3862
|
},
|
|
3863
3863
|
selectSlice: D
|
|
3864
3864
|
};
|
|
3865
3865
|
}
|
|
3866
3866
|
const w = {
|
|
3867
3867
|
name: i,
|
|
3868
|
-
reducer:
|
|
3868
|
+
reducer: y,
|
|
3869
3869
|
actions: l.actionCreators,
|
|
3870
3870
|
caseReducers: l.sliceCaseReducersByName,
|
|
3871
3871
|
getInitialState: m,
|
|
3872
3872
|
...p(n),
|
|
3873
|
-
injectInto(
|
|
3873
|
+
injectInto(b, {
|
|
3874
3874
|
reducerPath: x,
|
|
3875
3875
|
...D
|
|
3876
3876
|
} = {}) {
|
|
3877
|
-
const
|
|
3878
|
-
return
|
|
3879
|
-
reducerPath:
|
|
3880
|
-
reducer:
|
|
3877
|
+
const M = x ?? n;
|
|
3878
|
+
return b.inject({
|
|
3879
|
+
reducerPath: M,
|
|
3880
|
+
reducer: y
|
|
3881
3881
|
}, D), {
|
|
3882
3882
|
...w,
|
|
3883
|
-
...p(
|
|
3883
|
+
...p(M, !0)
|
|
3884
3884
|
};
|
|
3885
3885
|
}
|
|
3886
3886
|
};
|
|
@@ -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 vr = /* @__PURE__ */ xa();
|
|
3898
3898
|
function Sa() {
|
|
3899
3899
|
function e(t, s) {
|
|
3900
3900
|
return {
|
|
@@ -3938,7 +3938,7 @@ function Ca({
|
|
|
3938
3938
|
n = r.reducer, o = r.prepare;
|
|
3939
3939
|
} else
|
|
3940
3940
|
n = r;
|
|
3941
|
-
i.addCase(e, n).exposeCaseReducer(t, n).exposeAction(t, o ?
|
|
3941
|
+
i.addCase(e, n).exposeCaseReducer(t, n).exposeAction(t, o ? $s(e, o) : $s(e));
|
|
3942
3942
|
}
|
|
3943
3943
|
function Da(e) {
|
|
3944
3944
|
return e._reducerDefinitionType === "asyncThunk";
|
|
@@ -3946,7 +3946,7 @@ function Da(e) {
|
|
|
3946
3946
|
function Ia(e) {
|
|
3947
3947
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
3948
3948
|
}
|
|
3949
|
-
function
|
|
3949
|
+
function Ta({
|
|
3950
3950
|
type: e,
|
|
3951
3951
|
reducerName: t
|
|
3952
3952
|
}, s, r, i) {
|
|
@@ -3972,29 +3972,29 @@ 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 br = (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 } },
|
|
3983
|
-
function
|
|
3982
|
+
} : { ...e, [t]: { id: t, items: s, componentFactory: r, searchPredicate: i, historyDataImporterRules: n } }, Ea = (e, t, s, r) => br(e, t, [s], r);
|
|
3983
|
+
function $a(e, t) {
|
|
3984
3984
|
const { id: s, item: r, componentFactory: i } = t.payload;
|
|
3985
|
-
e.collections =
|
|
3985
|
+
e.collections = Ea(e.collections, s, r, i);
|
|
3986
3986
|
}
|
|
3987
3987
|
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: br(e.collections, s, r, i, n, o)
|
|
3992
3992
|
};
|
|
3993
3993
|
}
|
|
3994
|
-
function
|
|
3994
|
+
function Ma(e, t) {
|
|
3995
3995
|
e.busy.push(t.payload);
|
|
3996
3996
|
}
|
|
3997
|
-
function
|
|
3997
|
+
function Fa(e, t) {
|
|
3998
3998
|
e.busy = e.busy.filter((s) => s !== t.payload);
|
|
3999
3999
|
}
|
|
4000
4000
|
function Pa(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 = vr({
|
|
4044
4044
|
name: "activity-history-collections",
|
|
4045
4045
|
initialState: {
|
|
4046
4046
|
busy: [],
|
|
@@ -4048,9 +4048,9 @@ const ge = br({
|
|
|
4048
4048
|
collections: {}
|
|
4049
4049
|
},
|
|
4050
4050
|
reducers: {
|
|
4051
|
-
addBusyHistoryItem:
|
|
4052
|
-
removeBusyHistoryItem:
|
|
4053
|
-
addActivityHistoryItem:
|
|
4051
|
+
addBusyHistoryItem: Ma,
|
|
4052
|
+
removeBusyHistoryItem: Fa,
|
|
4053
|
+
addActivityHistoryItem: $a,
|
|
4054
4054
|
updateActivityHistoryItem: Va,
|
|
4055
4055
|
addActivityHistoryItems: Oa,
|
|
4056
4056
|
clearActivityHistoryCollections: ka,
|
|
@@ -4064,16 +4064,16 @@ function Na(e, t) {
|
|
|
4064
4064
|
}
|
|
4065
4065
|
class N {
|
|
4066
4066
|
and(t) {
|
|
4067
|
-
return new
|
|
4067
|
+
return new qa(this, t);
|
|
4068
4068
|
}
|
|
4069
4069
|
or(t) {
|
|
4070
|
-
return new
|
|
4070
|
+
return new Ga(this, t);
|
|
4071
4071
|
}
|
|
4072
4072
|
not() {
|
|
4073
|
-
return new
|
|
4073
|
+
return new Ba(this);
|
|
4074
4074
|
}
|
|
4075
4075
|
}
|
|
4076
|
-
class
|
|
4076
|
+
class qa extends N {
|
|
4077
4077
|
constructor(t, s) {
|
|
4078
4078
|
super(), this.left = t, this.right = s;
|
|
4079
4079
|
}
|
|
@@ -4081,7 +4081,7 @@ class Ba extends N {
|
|
|
4081
4081
|
return this.left.isSatisfiedBy(t) && this.right.isSatisfiedBy(t);
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
4084
|
-
class
|
|
4084
|
+
class Ga extends N {
|
|
4085
4085
|
constructor(t, s) {
|
|
4086
4086
|
super(), this.left = t, this.right = s;
|
|
4087
4087
|
}
|
|
@@ -4089,7 +4089,7 @@ class qa extends N {
|
|
|
4089
4089
|
return this.left.isSatisfiedBy(t) || this.right.isSatisfiedBy(t);
|
|
4090
4090
|
}
|
|
4091
4091
|
}
|
|
4092
|
-
class
|
|
4092
|
+
class Ba extends N {
|
|
4093
4093
|
constructor(t) {
|
|
4094
4094
|
super(), this.spec = t;
|
|
4095
4095
|
}
|
|
@@ -4097,19 +4097,19 @@ class Ga extends N {
|
|
|
4097
4097
|
return !this.spec.isSatisfiedBy(t);
|
|
4098
4098
|
}
|
|
4099
4099
|
}
|
|
4100
|
-
let
|
|
4100
|
+
let qt = null;
|
|
4101
4101
|
const wr = (e) => {
|
|
4102
|
-
|
|
4102
|
+
qt = e;
|
|
4103
4103
|
};
|
|
4104
4104
|
class La extends N {
|
|
4105
4105
|
constructor(t) {
|
|
4106
4106
|
super(), this.context = t;
|
|
4107
4107
|
}
|
|
4108
4108
|
isSatisfiedBy(t) {
|
|
4109
|
-
if (!
|
|
4109
|
+
if (!qt)
|
|
4110
4110
|
return !1;
|
|
4111
4111
|
try {
|
|
4112
|
-
const s =
|
|
4112
|
+
const s = qt.globalStateManager.getData("userInfo");
|
|
4113
4113
|
return t?.professional?.id === s?.userId;
|
|
4114
4114
|
} catch {
|
|
4115
4115
|
return !1;
|
|
@@ -4124,7 +4124,7 @@ class Wa extends N {
|
|
|
4124
4124
|
return t?.relevant ?? !1;
|
|
4125
4125
|
}
|
|
4126
4126
|
}
|
|
4127
|
-
const xr = (e) => e.id === "common", Pe = (e) => e.id === Sr, _r = (e) => !xr(e) && !Pe(e) && !
|
|
4127
|
+
const xr = (e) => e.id === "common", Pe = (e) => e.id === Sr, _r = (e) => !xr(e) && !Pe(e) && !bt(e), bt = (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",
|
|
@@ -4134,14 +4134,14 @@ const xr = (e) => e.id === "common", Pe = (e) => e.id === Sr, _r = (e) => !xr(e)
|
|
|
4134
4134
|
title: "Veure rellevants",
|
|
4135
4135
|
spec: Wa,
|
|
4136
4136
|
enabled: !1,
|
|
4137
|
-
type:
|
|
4137
|
+
type: Me.Switch
|
|
4138
4138
|
},
|
|
4139
4139
|
{
|
|
4140
4140
|
id: Ya,
|
|
4141
4141
|
title: "Veure meus",
|
|
4142
4142
|
spec: La,
|
|
4143
4143
|
enabled: !1,
|
|
4144
|
-
type:
|
|
4144
|
+
type: Me.Switch
|
|
4145
4145
|
}
|
|
4146
4146
|
]
|
|
4147
4147
|
}
|
|
@@ -4237,7 +4237,7 @@ function il(e, t) {
|
|
|
4237
4237
|
} : s.id === "common" ? Dr[0] : s);
|
|
4238
4238
|
}
|
|
4239
4239
|
function nl(e, t) {
|
|
4240
|
-
const s = e.filters.findIndex(
|
|
4240
|
+
const s = e.filters.findIndex(bt);
|
|
4241
4241
|
if (s === -1)
|
|
4242
4242
|
e.filters.push(t.payload);
|
|
4243
4243
|
else {
|
|
@@ -4252,9 +4252,9 @@ function nl(e, t) {
|
|
|
4252
4252
|
}
|
|
4253
4253
|
}
|
|
4254
4254
|
function ol(e, t) {
|
|
4255
|
-
e.filters = [...e.filters].map((s) =>
|
|
4255
|
+
e.filters = [...e.filters].map((s) => bt(s) ? { ...s, enabledValues: t.payload } : s);
|
|
4256
4256
|
}
|
|
4257
|
-
const
|
|
4257
|
+
const q = vr({
|
|
4258
4258
|
name: "activity-history-filters",
|
|
4259
4259
|
initialState: {
|
|
4260
4260
|
searchString: "",
|
|
@@ -4277,7 +4277,7 @@ const B = br({
|
|
|
4277
4277
|
}), wt = ga({
|
|
4278
4278
|
reducer: {
|
|
4279
4279
|
activityHistoryCollections: ge.reducer,
|
|
4280
|
-
activityHistoryFilters:
|
|
4280
|
+
activityHistoryFilters: q.reducer
|
|
4281
4281
|
},
|
|
4282
4282
|
devTools: {
|
|
4283
4283
|
name: "activity-history"
|
|
@@ -4308,15 +4308,15 @@ Q = rs([
|
|
|
4308
4308
|
pt(),
|
|
4309
4309
|
ct(0, Ze(z.store))
|
|
4310
4310
|
], Q);
|
|
4311
|
-
let
|
|
4311
|
+
let Gt = class {
|
|
4312
4312
|
constructor(e) {
|
|
4313
4313
|
this.api = e;
|
|
4314
4314
|
}
|
|
4315
4315
|
};
|
|
4316
|
-
|
|
4316
|
+
Gt = rs([
|
|
4317
4317
|
pt(),
|
|
4318
4318
|
ct(0, Ze(z.primaryApi))
|
|
4319
|
-
],
|
|
4319
|
+
], Gt);
|
|
4320
4320
|
let re = class {
|
|
4321
4321
|
constructor(e, t) {
|
|
4322
4322
|
this.store = e, this.api = t;
|
|
@@ -4381,10 +4381,10 @@ const gl = (e, t) => {
|
|
|
4381
4381
|
}, yl = () => {
|
|
4382
4382
|
Ir?.dispose();
|
|
4383
4383
|
};
|
|
4384
|
-
let
|
|
4385
|
-
const
|
|
4386
|
-
|
|
4387
|
-
},
|
|
4384
|
+
let Bt;
|
|
4385
|
+
const vl = async (e) => {
|
|
4386
|
+
Bt = await e.createLocaleManager(bl);
|
|
4387
|
+
}, g = (e) => Bt ? Bt.translate(e) : e, bl = {
|
|
4388
4388
|
ca: {
|
|
4389
4389
|
"activity-history": {
|
|
4390
4390
|
activityHistory: "Històric d’activitat",
|
|
@@ -4398,6 +4398,7 @@ const bl = async (e) => {
|
|
|
4398
4398
|
noResults: "Sense resultats"
|
|
4399
4399
|
},
|
|
4400
4400
|
search: "Cercar",
|
|
4401
|
+
searchPlaceholder: "Escriu per cercar",
|
|
4401
4402
|
groupedView: "Visió agrupada",
|
|
4402
4403
|
maximize: "Ampliar",
|
|
4403
4404
|
deleted: "Eliminat",
|
|
@@ -4483,16 +4484,16 @@ const bl = async (e) => {
|
|
|
4483
4484
|
}
|
|
4484
4485
|
}
|
|
4485
4486
|
}
|
|
4486
|
-
},
|
|
4487
|
+
}, Tr = (e, t, s) => {
|
|
4487
4488
|
const r = e?.[t];
|
|
4488
4489
|
return r?.items ? r.items.some((i) => i.id === s) : !1;
|
|
4489
4490
|
}, wl = (e) => typeof e == "string" && e.trim() !== "", xl = (e) => {
|
|
4490
4491
|
if (typeof e != "string" || e.trim() === "") return !1;
|
|
4491
4492
|
const t = new Date(e);
|
|
4492
4493
|
return t instanceof Date && !Number.isNaN(t.getTime());
|
|
4493
|
-
},
|
|
4494
|
-
xl(e.date),
|
|
4495
|
-
if (!e.every(
|
|
4494
|
+
}, Er = (e) => e && wl(e.id) && // Verifica que "id" esté informado
|
|
4495
|
+
xl(e.date), $r = (e) => {
|
|
4496
|
+
if (!e.every(Er))
|
|
4496
4497
|
throw console.error("Invalid activity history items", e), new Error("Invalid activity history items");
|
|
4497
4498
|
return e;
|
|
4498
4499
|
}, _l = (e) => {
|
|
@@ -4500,7 +4501,7 @@ xl(e.date), Er = (e) => {
|
|
|
4500
4501
|
}, Sl = (e) => {
|
|
4501
4502
|
const t = [];
|
|
4502
4503
|
for (const s of e)
|
|
4503
|
-
|
|
4504
|
+
Er(s) ? t.push(s) : _l(s);
|
|
4504
4505
|
return t;
|
|
4505
4506
|
}, Cl = (e) => {
|
|
4506
4507
|
const t = e.flatMap((s) => s.up ?? []).filter((s) => s?.id?.trim()).filter((s, r, i) => r === i.findIndex((n) => n.id === s.id));
|
|
@@ -4513,17 +4514,17 @@ xl(e.date), Er = (e) => {
|
|
|
4513
4514
|
};
|
|
4514
4515
|
}, Or = (e, t) => {
|
|
4515
4516
|
const s = Cl(e);
|
|
4516
|
-
s && t.dispatch(
|
|
4517
|
+
s && t.dispatch(q.actions.addUpFilters(s));
|
|
4517
4518
|
}, { addActivityHistoryItem: Dl } = ge.actions;
|
|
4518
4519
|
class Il extends re {
|
|
4519
4520
|
async handle(t) {
|
|
4520
4521
|
try {
|
|
4521
|
-
|
|
4522
|
-
const s = this.store.getState(), r =
|
|
4522
|
+
$r([t.item]);
|
|
4523
|
+
const s = this.store.getState(), r = Tr(s.activityHistoryCollections?.collections, t.entityId, t.item.id), i = s.activityHistoryFilters?.filters?.find((n) => n.id === t.entityId);
|
|
4523
4524
|
if (r)
|
|
4524
|
-
throw new Error(
|
|
4525
|
+
throw new Error(g("error.itemAlreadyExists"));
|
|
4525
4526
|
if (!i)
|
|
4526
|
-
throw new Error(
|
|
4527
|
+
throw new Error(g("error.filterNotInitialized"));
|
|
4527
4528
|
Or([t.item], this.store), this.store.dispatch(
|
|
4528
4529
|
Dl({
|
|
4529
4530
|
id: t.entityId,
|
|
@@ -4536,33 +4537,33 @@ class Il extends re {
|
|
|
4536
4537
|
}
|
|
4537
4538
|
}
|
|
4538
4539
|
}
|
|
4539
|
-
let
|
|
4540
|
-
const
|
|
4541
|
-
|
|
4542
|
-
},
|
|
4543
|
-
|
|
4540
|
+
let Mr;
|
|
4541
|
+
const Tl = (e, t) => {
|
|
4542
|
+
Mr = e.registerRequest(t.broker.events.activityHistory.addHistoryItemRequest, Il);
|
|
4543
|
+
}, El = () => {
|
|
4544
|
+
Mr?.dispose();
|
|
4544
4545
|
};
|
|
4545
|
-
class
|
|
4546
|
+
class Fr {
|
|
4546
4547
|
constructor(t) {
|
|
4547
4548
|
this.payload = t;
|
|
4548
4549
|
}
|
|
4549
4550
|
}
|
|
4550
|
-
const { addActivityHistoryItems:
|
|
4551
|
+
const { addActivityHistoryItems: $l } = ge.actions;
|
|
4551
4552
|
class Ol extends re {
|
|
4552
4553
|
async handle(t) {
|
|
4553
4554
|
try {
|
|
4554
4555
|
const s = Sl(t.items), r = this.filterDuplicateItems(s, t.entityId);
|
|
4555
4556
|
if (!this.store.getState().activityHistoryFilters?.filters?.find((o) => o.id === t.entityId) && !t.filters)
|
|
4556
|
-
throw new Error(
|
|
4557
|
+
throw new Error(g("error.filterNotInitialized"));
|
|
4557
4558
|
r.length > 0 && Or(r, this.store), this.store.dispatch(
|
|
4558
|
-
|
|
4559
|
+
$l({
|
|
4559
4560
|
id: t.entityId,
|
|
4560
4561
|
items: r,
|
|
4561
4562
|
componentFactory: t.componentFactory,
|
|
4562
4563
|
searchPredicate: t.searchPredicate,
|
|
4563
4564
|
historyDataImporterRules: t.historyDataImporterRules
|
|
4564
4565
|
})
|
|
4565
|
-
), t.filters && this.api.broker.send(new
|
|
4566
|
+
), t.filters && this.api.broker.send(new Fr(t.filters));
|
|
4566
4567
|
} catch (s) {
|
|
4567
4568
|
this.api.notificationService.error(s.message);
|
|
4568
4569
|
}
|
|
@@ -4571,23 +4572,23 @@ class Ol extends re {
|
|
|
4571
4572
|
if (t.length === 0)
|
|
4572
4573
|
return [];
|
|
4573
4574
|
const r = this.store.getState(), i = t.filter(
|
|
4574
|
-
(n) =>
|
|
4575
|
+
(n) => !Tr(r.activityHistoryCollections?.collections, s, n.id)
|
|
4575
4576
|
);
|
|
4576
4577
|
if (i.length === 0 && t.length > 0)
|
|
4577
|
-
throw new Error(
|
|
4578
|
-
return i.length < t.length && this.api.notificationService.warning(
|
|
4578
|
+
throw new Error(g("error.allItemsAlreadyExist"));
|
|
4579
|
+
return i.length < t.length && this.api.notificationService.warning(g("warning.someItemsAlreadyExist")), i;
|
|
4579
4580
|
}
|
|
4580
4581
|
}
|
|
4581
4582
|
let Pr;
|
|
4582
|
-
const
|
|
4583
|
+
const Ml = (e, t) => {
|
|
4583
4584
|
Pr = e.registerRequest(t.broker.events.activityHistory.addHistoryItemsRequest, Ol);
|
|
4584
|
-
},
|
|
4585
|
+
}, Fl = () => {
|
|
4585
4586
|
Pr?.dispose();
|
|
4586
4587
|
};
|
|
4587
4588
|
function C(e, t = {}) {
|
|
4588
4589
|
return ko(wt)(e, t);
|
|
4589
4590
|
}
|
|
4590
|
-
const xt = (e) => e.activityHistoryCollections.busy.length > 0, _t = (e) => Object.values(e.activityHistoryCollections.collections) && xt(e), Pl = (e) => !Object.values(e.activityHistoryCollections.collections)?.length && xt(e), Al = ".spinner-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}.skeleton-container{padding:20px;height:100%}", kl = (e) => e.isEmptyDataAndOtherLoading ? h`<div class="skeleton-container">${e.skeletons}</div>` : e.isSomeCollectionLoadedAndOtherLoading ? h`<div class="spinner-container"><dss-spinner size="sm"></dss-spinner><div class="busy-description">${
|
|
4591
|
+
const xt = (e) => e.activityHistoryCollections.busy.length > 0, _t = (e) => Object.values(e.activityHistoryCollections.collections) && xt(e), Pl = (e) => !Object.values(e.activityHistoryCollections.collections)?.length && xt(e), Al = ".spinner-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}.skeleton-container{padding:20px;height:100%}", kl = (e) => e.isEmptyDataAndOtherLoading ? h`<div class="skeleton-container">${e.skeletons}</div>` : e.isSomeCollectionLoadedAndOtherLoading ? h`<div class="spinner-container"><dss-spinner size="sm"></dss-spinner><div class="busy-description">${g("busyEntriesLoading")}</div></div>` : F;
|
|
4591
4592
|
var Rl = Object.defineProperty, Hl = Object.getOwnPropertyDescriptor, is = (e, t, s, r) => {
|
|
4592
4593
|
for (var i = r > 1 ? void 0 : r ? Hl(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
4593
4594
|
(o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
|
|
@@ -4624,7 +4625,7 @@ class zl extends re {
|
|
|
4624
4625
|
const s = t.entities.map((r) => r.entityId);
|
|
4625
4626
|
await this.dispatchRemoveErrorItems(s), this.api.broker.publish(this.api.broker.events.activityHistory.errorLoadingData, s);
|
|
4626
4627
|
} catch {
|
|
4627
|
-
this.api.notificationService.error(
|
|
4628
|
+
this.api.notificationService.error(g("error.errorToRefresh"));
|
|
4628
4629
|
}
|
|
4629
4630
|
}
|
|
4630
4631
|
async dispatchRemoveErrorItems(t) {
|
|
@@ -4637,52 +4638,42 @@ const Vl = (e) => {
|
|
|
4637
4638
|
kr(), Ar = e.registerRequest(ns, zl);
|
|
4638
4639
|
}, kr = () => {
|
|
4639
4640
|
Ar?.dispose();
|
|
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)}",
|
|
4641
|
-
const { arrayElements: t, text: s } = e;
|
|
4642
|
-
return h`
|
|
4641
|
+
}, 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)}", ql = (e) => h`
|
|
4643
4642
|
<div class="wrapper">
|
|
4644
|
-
<!-- <dss-input-dropdown type="default" .elements=${t} selectall="" dropdownplaceholder="Seleccionar"
|
|
4645
|
-
@onInputDropdownChange=${(r) => {
|
|
4646
|
-
e.selectedVisibilityLevelElement = r.detail;
|
|
4647
|
-
}}>
|
|
4648
|
-
<label slot="label" for="dropdown1">Selecciona periode</label>
|
|
4649
|
-
<input id="dropdown1" slot="input" type="text" class="dss-input" />
|
|
4650
|
-
</dss-input-dropdown> -->
|
|
4651
4643
|
<div class="content-options">
|
|
4652
4644
|
<div class="selector-options">
|
|
4653
|
-
<dss-radio-button
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
</dss-radio-button>
|
|
4645
|
+
<dss-radio-button-group
|
|
4646
|
+
hideLabel
|
|
4647
|
+
label=${g("modal.selectExportOption")}
|
|
4648
|
+
name="exportOption"
|
|
4649
|
+
@value-changed=${(t) => {
|
|
4650
|
+
e.selectedRadioOption = t.detail.value;
|
|
4651
|
+
}}
|
|
4652
|
+
>
|
|
4653
|
+
<dss-radio-button value="history" label=${g("modal.allActivityHistory")}></dss-radio-button>
|
|
4654
|
+
<dss-radio-button value="filters" label=${g("modal.onlyAppliedFilters")}></dss-radio-button>
|
|
4655
|
+
</dss-radio-button-group>
|
|
4665
4656
|
</div>
|
|
4666
4657
|
</div>
|
|
4667
4658
|
${e.selectedRadioOption ? h`<div class="content-date">
|
|
4668
|
-
<span>${
|
|
4659
|
+
<span>${g("modal.selectDateRange")}</span>
|
|
4669
4660
|
<div class="datepicker-canvas">
|
|
4670
|
-
<dss-datepicker-range
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4661
|
+
<dss-datepicker-range
|
|
4662
|
+
size="md"
|
|
4663
|
+
labelRangeStart=${g("modal.startDate")}
|
|
4664
|
+
labelRangeEnd=${g("modal.endDate")}
|
|
4665
|
+
helpText=${g("modal.helpText")}
|
|
4666
|
+
@value-changed=${(t) => {
|
|
4667
|
+
e.selectedPeriodDate = t.detail;
|
|
4668
|
+
}}
|
|
4669
|
+
></dss-datepicker-range>
|
|
4678
4670
|
</div>
|
|
4679
|
-
</div>` :
|
|
4671
|
+
</div>` : F}
|
|
4680
4672
|
</div>`;
|
|
4681
|
-
|
|
4682
|
-
var
|
|
4683
|
-
for (var i = r > 1 ? void 0 : r ? Gl(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
4673
|
+
var Gl = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, He = (e, t, s, r) => {
|
|
4674
|
+
for (var i = r > 1 ? void 0 : r ? Bl(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
4684
4675
|
(o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
|
|
4685
|
-
return r && i &&
|
|
4676
|
+
return r && i && Gl(t, s, i), i;
|
|
4686
4677
|
};
|
|
4687
4678
|
let fe = class extends j {
|
|
4688
4679
|
constructor() {
|
|
@@ -4695,7 +4686,7 @@ let fe = class extends j {
|
|
|
4695
4686
|
}
|
|
4696
4687
|
render() {
|
|
4697
4688
|
return h`
|
|
4698
|
-
${
|
|
4689
|
+
${ql(this)}
|
|
4699
4690
|
`;
|
|
4700
4691
|
}
|
|
4701
4692
|
static get styles() {
|
|
@@ -4728,11 +4719,11 @@ He([
|
|
|
4728
4719
|
fe = He([
|
|
4729
4720
|
Y("export-pdf-modal")
|
|
4730
4721
|
], fe);
|
|
4731
|
-
class Ll extends
|
|
4722
|
+
class Ll extends Gt {
|
|
4732
4723
|
async handle() {
|
|
4733
4724
|
try {
|
|
4734
4725
|
this.api.interactionService.confirm(void 0, { component: fe }, {
|
|
4735
|
-
title:
|
|
4726
|
+
title: g("modal.selectExportOption"),
|
|
4736
4727
|
confirmButtonText: "Exportar",
|
|
4737
4728
|
cancelButtonText: "Cancelar"
|
|
4738
4729
|
});
|
|
@@ -4758,7 +4749,7 @@ function Yl(e, t, s, r) {
|
|
|
4758
4749
|
const i = `Sense ${r.toLocaleLowerCase()}`, n = /* @__PURE__ */ new Map();
|
|
4759
4750
|
let o = !1;
|
|
4760
4751
|
for (const l of e) {
|
|
4761
|
-
const d = t.reduce((f,
|
|
4752
|
+
const d = t.reduce((f, y) => f?.[y], l), c = s.reduce((f, y) => f?.[y], l);
|
|
4762
4753
|
typeof d == "string" && d.trim() !== "" && typeof c == "string" ? n.has(d) || n.set(d, { id: d, title: c }) : o = !0;
|
|
4763
4754
|
}
|
|
4764
4755
|
const a = Array.from(n.values()).sort(
|
|
@@ -4831,12 +4822,12 @@ class Kl extends N {
|
|
|
4831
4822
|
return this.diagnosticCodes?.length ? (t.diagnostics ?? []).some((r) => this.diagnosticCodes.includes(r.codi)) : !0;
|
|
4832
4823
|
}
|
|
4833
4824
|
}
|
|
4834
|
-
const As = (e) => e == null ? "" : String(e).normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase(),
|
|
4825
|
+
const As = (e) => e == null ? "" : String(e).normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase(), ve = (e, t) => {
|
|
4835
4826
|
const s = As(e), r = As(t);
|
|
4836
4827
|
return s.toString().toLowerCase().indexOf(r) !== -1 || s.toString().indexOf(r) !== -1;
|
|
4837
4828
|
}, Jl = (e, t) => {
|
|
4838
|
-
const s = e.professional?.name &&
|
|
4839
|
-
(d) =>
|
|
4829
|
+
const s = e.professional?.name && ve(e.professional?.name, t), r = e.center?.description && ve(e.center.description, t), i = 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(
|
|
4830
|
+
(d) => ve(d.descripcio, t)
|
|
4840
4831
|
);
|
|
4841
4832
|
return s || r || i || n || o || a || l;
|
|
4842
4833
|
};
|
|
@@ -4924,7 +4915,7 @@ const Vr = A(
|
|
|
4924
4915
|
(e) => !!e.length
|
|
4925
4916
|
), cs = A(
|
|
4926
4917
|
St,
|
|
4927
|
-
(e) => e.find(
|
|
4918
|
+
(e) => e.find(bt)
|
|
4928
4919
|
), ds = A(
|
|
4929
4920
|
cs,
|
|
4930
4921
|
(e) => e?.enabledValues || []
|
|
@@ -4979,14 +4970,14 @@ const pc = (e) => {
|
|
|
4979
4970
|
for (const d of l) {
|
|
4980
4971
|
const c = d.items[0], u = d.items[d.items.length - 1];
|
|
4981
4972
|
if (!(!c || !u) && hc(c, i) && Rs(c.date, i.date) && Rs(u.date, i.date)) {
|
|
4982
|
-
const
|
|
4973
|
+
const v = ee(u.date).getTime(), f = ee(c.date).getTime(), y = Math.min(v, o), m = Math.max(f, o);
|
|
4983
4974
|
let p = !1;
|
|
4984
|
-
for (const [w,
|
|
4975
|
+
for (const [w, b] of s)
|
|
4985
4976
|
if (w !== n) {
|
|
4986
|
-
for (const x of
|
|
4977
|
+
for (const x of b) {
|
|
4987
4978
|
for (const D of x.items) {
|
|
4988
|
-
const
|
|
4989
|
-
if (
|
|
4979
|
+
const M = ee(D.date).getTime();
|
|
4980
|
+
if (M > y && M < m) {
|
|
4990
4981
|
p = !0;
|
|
4991
4982
|
break;
|
|
4992
4983
|
}
|
|
@@ -5044,7 +5035,7 @@ const pc = (e) => {
|
|
|
5044
5035
|
componentFactory: t,
|
|
5045
5036
|
type: s
|
|
5046
5037
|
})
|
|
5047
|
-
),
|
|
5038
|
+
), vc = A(
|
|
5048
5039
|
Dt,
|
|
5049
5040
|
(e) => Object.values(e).flatMap((t) => yc(t.items, t.componentFactory, t.id, t.searchPredicate))
|
|
5050
5041
|
);
|
|
@@ -5056,7 +5047,7 @@ A(
|
|
|
5056
5047
|
return r?.items && r.items.length > 0;
|
|
5057
5048
|
})
|
|
5058
5049
|
);
|
|
5059
|
-
const
|
|
5050
|
+
const qr = A(
|
|
5060
5051
|
Ye,
|
|
5061
5052
|
Dt,
|
|
5062
5053
|
(e, t) => e.map((r) => {
|
|
@@ -5070,15 +5061,15 @@ const Br = A(
|
|
|
5070
5061
|
};
|
|
5071
5062
|
})
|
|
5072
5063
|
), us = A(
|
|
5073
|
-
|
|
5064
|
+
vc,
|
|
5074
5065
|
Ct,
|
|
5075
5066
|
as,
|
|
5076
5067
|
Ye,
|
|
5077
5068
|
ls,
|
|
5078
5069
|
ds,
|
|
5079
5070
|
(e, t, s, r, i, n) => {
|
|
5080
|
-
const o = new Ql(s), a = new tc(r), l = new Xl(r), d = new Kl(i), c = new sc(n), u = e.filter((
|
|
5081
|
-
return mc(
|
|
5071
|
+
const o = new Ql(s), a = new tc(r), l = new Xl(r), d = new Kl(i), c = new sc(n), u = e.filter((y) => new Zl(t, y.searchPredicate).and(o).and(a).and(l).and(d).and(c).isSatisfiedBy(y)), v = pc(u);
|
|
5072
|
+
return mc(v);
|
|
5082
5073
|
}
|
|
5083
5074
|
);
|
|
5084
5075
|
class hs {
|
|
@@ -5086,12 +5077,12 @@ class hs {
|
|
|
5086
5077
|
this.payload = t;
|
|
5087
5078
|
}
|
|
5088
5079
|
}
|
|
5089
|
-
class
|
|
5080
|
+
class Gr {
|
|
5090
5081
|
constructor(t) {
|
|
5091
5082
|
this.payload = t;
|
|
5092
5083
|
}
|
|
5093
5084
|
}
|
|
5094
|
-
class
|
|
5085
|
+
class Br {
|
|
5095
5086
|
constructor(t) {
|
|
5096
5087
|
this.payload = t;
|
|
5097
5088
|
}
|
|
@@ -5106,30 +5097,22 @@ class ps {
|
|
|
5106
5097
|
this.payload = t;
|
|
5107
5098
|
}
|
|
5108
5099
|
}
|
|
5109
|
-
const
|
|
5110
|
-
[
|
|
5111
|
-
<dss-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
</dss-input-switch>`,
|
|
5115
|
-
[Fe.Checkbox]: (e, t, s, r, i) => h`
|
|
5116
|
-
<dss-checkbox variant="default" @onChange=${(n) => s(n)}>
|
|
5117
|
-
<input slot="input" id="checkboxStory-${e}" type="checkbox" .checked=${r} ?disabled=${!i}>
|
|
5118
|
-
<label slot="label" for="checkboxStory-${e}">${t || e}</label>
|
|
5119
|
-
</dss-checkbox>`
|
|
5100
|
+
const bc = ".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:8px 0;border-bottom:1px solid var(--color-neutral-200)}.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}", wc = {
|
|
5101
|
+
[Me.Switch]: (e, t, s, r, i) => h`
|
|
5102
|
+
<dss-toggle size="sm" label=${t || e} ?checked=${r} ?disabled=${!i} @change=${s}></dss-toggle>`,
|
|
5103
|
+
[Me.Checkbox]: (e, t, s, r, i) => h`
|
|
5104
|
+
<dss-checkbox variant="default" label=${t || e} ?checked=${r} ?disabled=${!i} @change=${s}></dss-checkbox>`
|
|
5120
5105
|
/* [ActivityHistoryFilterType.Dropdown]: (id, title, handleChange, isSelected, isEnabled) => html`
|
|
5121
|
-
<dss-
|
|
5122
|
-
<input slot="input" id="dropdownStory-${id}" type="text" .checked=${isSelected} ?disabled=${!isEnabled}>
|
|
5123
|
-
<label slot="label" for="dropdownStory-${id}">${title || id}</label>
|
|
5124
|
-
</dss-input-dropdown>`, */
|
|
5106
|
+
<dss-select type="default" label=${title || id} ?disabled=${!isEnabled} @value-changed=${(e) => handleChange(e)}></dss-select>`, */
|
|
5125
5107
|
}, Yt = (e, t, s, r) => {
|
|
5126
5108
|
const i = !!s?.id && !!r, n = nr(), o = i ? r.title || r.id : e.title, a = (c) => {
|
|
5127
|
-
|
|
5109
|
+
const u = c.target.checked;
|
|
5110
|
+
e.singleOption ? t(s?.id, e.id, null, u) : i && r ? t(s?.id, e.id, r.id, u) : t(e.id, u);
|
|
5128
5111
|
}, l = i && r ? e.enabledValues?.includes(r.id) : e.enabled, d = i && r || e.singleOption ? s.enabled : !0;
|
|
5129
5112
|
return wc[e.type]?.(n, o, a, l, d) || h``;
|
|
5130
5113
|
}, xc = (e) => h`
|
|
5131
|
-
<div class="filters-sidebar" ?expanded=${e.filtersExpanded}
|
|
5132
|
-
${e.filtersExpanded ? h`<div class="filters-sidebar-opened">${
|
|
5114
|
+
<div class="filters-sidebar" ?expanded=${e.filtersExpanded}>
|
|
5115
|
+
${e.filtersExpanded ? h`<div class="filters-sidebar-opened">${g("filters.filters")}<dss-icon-button ?hidden=${e.wrapperMaximized} @click=${() => e._toggleFilters()} size="md" variant="primary" icon="keyboard_double_arrow_left"></dss-icon-button></div>
|
|
5133
5116
|
<div class="filter-container">
|
|
5134
5117
|
${le(e.commonFilters, (t) => h`<div class="filter">${Yt(t, e._onChangeCommonFilterValue.bind(e))}</div> `)}
|
|
5135
5118
|
<!-- Regió per al filtre de diagnostics extern -->
|
|
@@ -5137,19 +5120,13 @@ const vc = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
5137
5120
|
<primaria-region name=${e.api.regionManager.regions.activityHistory.customFilters}></primaria-region>
|
|
5138
5121
|
</div>
|
|
5139
5122
|
${e.upFilter && h`<div class="filter">
|
|
5140
|
-
<dss-
|
|
5141
|
-
<label slot="label" for="up-filter">${e.upFilter.title}</label>
|
|
5142
|
-
<input id="up-filter" slot="input" type="text" class="dss-input" autocomplete="off"/>
|
|
5143
|
-
</dss-input-dropdown>
|
|
5123
|
+
<dss-select size="md" multiple type="default" label=${e.upFilter.title} .elements=${e.upFilter?.values} @value-changed=${e._handleUpFilterChange} .selectedValue=${e.upFilterEnabledValues} dropdownStyle=${"max-height: 450px"} autocomplete="off"></dss-select>
|
|
5144
5124
|
</div>`}
|
|
5145
5125
|
${le(
|
|
5146
5126
|
e.customFilterGroups,
|
|
5147
5127
|
(t) => h`
|
|
5148
5128
|
<div class="filter-group">
|
|
5149
|
-
<dss-
|
|
5150
|
-
<input slot="input" id="switch-${t.id}" aria-label=${t.title} type="checkbox">
|
|
5151
|
-
<label slot="label" for="switch-${t.id}">${t.title}</label>
|
|
5152
|
-
</dss-input-switch>
|
|
5129
|
+
<dss-toggle size="sm" label=${t.title} ?checked=${t.enabled} @change=${(s) => e._onChangeCustomFilterGroupValue(t.id, s.target.checked)}></dss-toggle>
|
|
5153
5130
|
<div class="custom-subfilters-container">
|
|
5154
5131
|
${t?.filters && le(
|
|
5155
5132
|
t.filters,
|
|
@@ -5159,29 +5136,27 @@ const vc = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
|
|
|
5159
5136
|
</div> `
|
|
5160
5137
|
)}
|
|
5161
5138
|
</div> ` : h`
|
|
5162
|
-
<dss-icon-button
|
|
5139
|
+
<dss-icon-button label=${g("filters.filters")} @click=${() => e._toggleFilters()} size="md" variant="primary" icon="filter_list"></dss-icon-button>
|
|
5163
5140
|
`}
|
|
5164
5141
|
</div>
|
|
5165
5142
|
`, _c = (e, t, s) => {
|
|
5166
|
-
if (e.type ===
|
|
5143
|
+
if (e.type === Me.Dropdown) {
|
|
5167
5144
|
const r = e?.options.map((i) => ({ value: i.id, label: i.title || i.id }));
|
|
5168
5145
|
return et(
|
|
5169
5146
|
r.length > 0,
|
|
5170
5147
|
() => h`
|
|
5171
|
-
<dss-
|
|
5172
|
-
|
|
5173
|
-
icon=""
|
|
5148
|
+
<dss-select
|
|
5149
|
+
size="md"
|
|
5174
5150
|
multiple
|
|
5175
|
-
dropdownFixed
|
|
5176
5151
|
type="default"
|
|
5152
|
+
label=${e.title}
|
|
5177
5153
|
.elements=${r}
|
|
5178
|
-
@
|
|
5154
|
+
@value-changed=${(i) => t._onChangeCustomFilterAllValues(s.id, e.id, i.detail.selectedValue)}
|
|
5179
5155
|
.selectedValue=${e.enabledValues}
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
</dss-input-dropdown>
|
|
5156
|
+
dropdownStyle="max-height: 450px"
|
|
5157
|
+
autocomplete="off"
|
|
5158
|
+
?disabled=${!s.enabled}
|
|
5159
|
+
></dss-select>
|
|
5185
5160
|
`
|
|
5186
5161
|
);
|
|
5187
5162
|
}
|
|
@@ -5221,7 +5196,7 @@ let ie = class extends j {
|
|
|
5221
5196
|
this.api.broker.send(new hs({ id: e, enabled: t }));
|
|
5222
5197
|
}
|
|
5223
5198
|
_onChangeCustomFilterGroupValue(e, t) {
|
|
5224
|
-
this.api.broker.send(new
|
|
5199
|
+
this.api.broker.send(new Br({ id: e, enabled: t }));
|
|
5225
5200
|
}
|
|
5226
5201
|
_onChangeCustomFilterValue(e, t, s, r) {
|
|
5227
5202
|
this.api.broker.send(
|
|
@@ -5235,7 +5210,7 @@ let ie = class extends j {
|
|
|
5235
5210
|
}
|
|
5236
5211
|
_onChangeCustomFilterAllValues(e, t, s) {
|
|
5237
5212
|
this.api.broker.send(
|
|
5238
|
-
new
|
|
5213
|
+
new Gr({
|
|
5239
5214
|
filterGroupId: e,
|
|
5240
5215
|
filterId: t,
|
|
5241
5216
|
values: s
|
|
@@ -5248,13 +5223,13 @@ let ie = class extends j {
|
|
|
5248
5223
|
}
|
|
5249
5224
|
};
|
|
5250
5225
|
ie.styles = W`
|
|
5251
|
-
${L(
|
|
5226
|
+
${L(bc)}
|
|
5252
5227
|
`;
|
|
5253
5228
|
ye([
|
|
5254
5229
|
C(as)
|
|
5255
5230
|
], ie.prototype, "commonFilters", 2);
|
|
5256
5231
|
ye([
|
|
5257
|
-
C(
|
|
5232
|
+
C(qr)
|
|
5258
5233
|
], ie.prototype, "customFilterGroups", 2);
|
|
5259
5234
|
ye([
|
|
5260
5235
|
C(cs)
|
|
@@ -5274,7 +5249,7 @@ ye([
|
|
|
5274
5249
|
ie = ye([
|
|
5275
5250
|
Y("activity-history-filters")
|
|
5276
5251
|
], ie);
|
|
5277
|
-
const { setCommonFilterValue: Dc } =
|
|
5252
|
+
const { setCommonFilterValue: Dc } = q.actions;
|
|
5278
5253
|
class Ic extends Q {
|
|
5279
5254
|
async handle(t) {
|
|
5280
5255
|
try {
|
|
@@ -5285,26 +5260,26 @@ class Ic extends Q {
|
|
|
5285
5260
|
}
|
|
5286
5261
|
}
|
|
5287
5262
|
let Lr;
|
|
5288
|
-
const
|
|
5263
|
+
const Tc = (e) => {
|
|
5289
5264
|
Lr = e.registerRequest(hs, Ic);
|
|
5290
|
-
},
|
|
5265
|
+
}, Ec = () => {
|
|
5291
5266
|
Lr?.dispose();
|
|
5292
|
-
}, { addCustomFilters:
|
|
5267
|
+
}, { addCustomFilters: $c } = q.actions;
|
|
5293
5268
|
class Oc extends Q {
|
|
5294
5269
|
async handle(t) {
|
|
5295
5270
|
try {
|
|
5296
|
-
this.store.dispatch(
|
|
5271
|
+
this.store.dispatch($c(t.payload));
|
|
5297
5272
|
} catch (s) {
|
|
5298
5273
|
console.error(s.message);
|
|
5299
5274
|
}
|
|
5300
5275
|
}
|
|
5301
5276
|
}
|
|
5302
5277
|
let Wr;
|
|
5303
|
-
const
|
|
5304
|
-
Wr = e.registerRequest(
|
|
5305
|
-
},
|
|
5278
|
+
const Mc = (e) => {
|
|
5279
|
+
Wr = e.registerRequest(Fr, Oc);
|
|
5280
|
+
}, Fc = () => {
|
|
5306
5281
|
Wr?.dispose();
|
|
5307
|
-
}, { setCustomFilterAllValues: Pc } =
|
|
5282
|
+
}, { setCustomFilterAllValues: Pc } = q.actions;
|
|
5308
5283
|
class Ac extends Q {
|
|
5309
5284
|
async handle(t) {
|
|
5310
5285
|
try {
|
|
@@ -5316,10 +5291,10 @@ class Ac extends Q {
|
|
|
5316
5291
|
}
|
|
5317
5292
|
let jr;
|
|
5318
5293
|
const kc = (e) => {
|
|
5319
|
-
jr = e.registerRequest(
|
|
5294
|
+
jr = e.registerRequest(Gr, Ac);
|
|
5320
5295
|
}, Rc = () => {
|
|
5321
5296
|
jr?.dispose();
|
|
5322
|
-
}, { setCustomFilterGroupValue: Hc } =
|
|
5297
|
+
}, { setCustomFilterGroupValue: Hc } = q.actions;
|
|
5323
5298
|
class zc extends Q {
|
|
5324
5299
|
async handle(t) {
|
|
5325
5300
|
try {
|
|
@@ -5331,25 +5306,25 @@ class zc extends Q {
|
|
|
5331
5306
|
}
|
|
5332
5307
|
let Yr;
|
|
5333
5308
|
const Vc = (e) => {
|
|
5334
|
-
Yr = e.registerRequest(
|
|
5309
|
+
Yr = e.registerRequest(Br, zc);
|
|
5335
5310
|
}, Nc = () => {
|
|
5336
5311
|
Yr?.dispose();
|
|
5337
|
-
}, { setCustomFilterValue:
|
|
5338
|
-
class
|
|
5312
|
+
}, { setCustomFilterValue: qc } = q.actions;
|
|
5313
|
+
class Gc extends Q {
|
|
5339
5314
|
async handle(t) {
|
|
5340
5315
|
try {
|
|
5341
|
-
this.store.dispatch(
|
|
5316
|
+
this.store.dispatch(qc(t.payload));
|
|
5342
5317
|
} catch (s) {
|
|
5343
5318
|
console.error(s.message);
|
|
5344
5319
|
}
|
|
5345
5320
|
}
|
|
5346
5321
|
}
|
|
5347
5322
|
let Ur;
|
|
5348
|
-
const
|
|
5349
|
-
Ur = e.registerRequest(fs,
|
|
5323
|
+
const Bc = (e) => {
|
|
5324
|
+
Ur = e.registerRequest(fs, Gc);
|
|
5350
5325
|
}, Lc = () => {
|
|
5351
5326
|
Ur?.dispose();
|
|
5352
|
-
}, { deleteDiagnosticFilterValue: Wc } =
|
|
5327
|
+
}, { deleteDiagnosticFilterValue: Wc } = q.actions;
|
|
5353
5328
|
class jc extends re {
|
|
5354
5329
|
async handle(t) {
|
|
5355
5330
|
try {
|
|
@@ -5376,7 +5351,7 @@ const Yc = (e) => {
|
|
|
5376
5351
|
Xr = e.registerRequest(Qr, jc);
|
|
5377
5352
|
}, Uc = () => {
|
|
5378
5353
|
Xr?.dispose();
|
|
5379
|
-
}, { setDiagnosticFilterValues: Qc } =
|
|
5354
|
+
}, { setDiagnosticFilterValues: Qc } = q.actions;
|
|
5380
5355
|
class Xc extends Q {
|
|
5381
5356
|
async handle(t) {
|
|
5382
5357
|
try {
|
|
@@ -5403,7 +5378,7 @@ const Kc = (e) => {
|
|
|
5403
5378
|
};
|
|
5404
5379
|
class Zr {
|
|
5405
5380
|
}
|
|
5406
|
-
const { resetFilters: ed } =
|
|
5381
|
+
const { resetFilters: ed } = q.actions;
|
|
5407
5382
|
class td extends re {
|
|
5408
5383
|
async handle(t) {
|
|
5409
5384
|
try {
|
|
@@ -5418,7 +5393,7 @@ const sd = (e) => {
|
|
|
5418
5393
|
ei = e.registerRequest(Zr, td);
|
|
5419
5394
|
}, rd = () => {
|
|
5420
5395
|
ei?.dispose();
|
|
5421
|
-
}, { addUpFilters: id } =
|
|
5396
|
+
}, { addUpFilters: id } = q.actions;
|
|
5422
5397
|
class nd extends Q {
|
|
5423
5398
|
async handle(t) {
|
|
5424
5399
|
try {
|
|
@@ -5438,7 +5413,7 @@ const ad = (e) => {
|
|
|
5438
5413
|
ti = e.registerRequest(od, nd);
|
|
5439
5414
|
}, ld = () => {
|
|
5440
5415
|
ti?.dispose();
|
|
5441
|
-
}, { setUpFilterValues: cd } =
|
|
5416
|
+
}, { setUpFilterValues: cd } = q.actions;
|
|
5442
5417
|
class dd extends Q {
|
|
5443
5418
|
async handle(t) {
|
|
5444
5419
|
try {
|
|
@@ -5454,23 +5429,23 @@ const ud = (e) => {
|
|
|
5454
5429
|
}, hd = () => {
|
|
5455
5430
|
si?.dispose();
|
|
5456
5431
|
}, fd = (e, t) => {
|
|
5457
|
-
|
|
5432
|
+
Tc(e), Mc(e), Vc(e), Bc(e), kc(e), Kc(e), Yc(e), ad(e), ud(e), sd(e), Zc(t);
|
|
5458
5433
|
}, pd = () => {
|
|
5459
|
-
|
|
5434
|
+
Ec(), Fc(), Nc(), Lc(), Rc(), Jc(), Uc(), ld(), hd(), rd();
|
|
5460
5435
|
}, Hs = 88, md = 64, gd = 44, yd = (e) => {
|
|
5461
5436
|
if (!e) return Hs;
|
|
5462
5437
|
const t = e.items?.length ?? 0, s = e.subGroups ?? [], r = s.reduce((i, n) => i + (n.items?.length ?? 0), 0);
|
|
5463
5438
|
return Hs + (t + r) * md + s.length * gd;
|
|
5464
|
-
},
|
|
5439
|
+
}, vd = ":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}";
|
|
5465
5440
|
/**
|
|
5466
5441
|
* @license
|
|
5467
5442
|
* Copyright 2017 Google LLC
|
|
5468
5443
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5469
5444
|
*/
|
|
5470
|
-
const
|
|
5445
|
+
const Be = (e, t) => {
|
|
5471
5446
|
const s = e._$AN;
|
|
5472
5447
|
if (s === void 0) return !1;
|
|
5473
|
-
for (const r of s) r._$AO?.(t, !1),
|
|
5448
|
+
for (const r of s) r._$AO?.(t, !1), Be(r, t);
|
|
5474
5449
|
return !0;
|
|
5475
5450
|
}, dt = (e) => {
|
|
5476
5451
|
let t, s;
|
|
@@ -5486,17 +5461,17 @@ const Ge = (e, t) => {
|
|
|
5486
5461
|
s.add(e), xd(t);
|
|
5487
5462
|
}
|
|
5488
5463
|
};
|
|
5489
|
-
function
|
|
5464
|
+
function bd(e) {
|
|
5490
5465
|
this._$AN !== void 0 ? (dt(this), this._$AM = e, ri(this)) : this._$AM = e;
|
|
5491
5466
|
}
|
|
5492
5467
|
function wd(e, t = !1, s = 0) {
|
|
5493
5468
|
const r = this._$AH, i = this._$AN;
|
|
5494
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let n = s; n < r.length; n++)
|
|
5495
|
-
else r != null && (
|
|
5496
|
-
else
|
|
5469
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let n = s; n < r.length; n++) Be(r[n], !1), dt(r[n]);
|
|
5470
|
+
else r != null && (Be(r, !1), dt(r));
|
|
5471
|
+
else Be(this, e);
|
|
5497
5472
|
}
|
|
5498
5473
|
const xd = (e) => {
|
|
5499
|
-
e.type ==
|
|
5474
|
+
e.type == Ei.CHILD && (e._$AP ??= wd, e._$AQ ??= bd);
|
|
5500
5475
|
};
|
|
5501
5476
|
class _d extends Ii {
|
|
5502
5477
|
constructor() {
|
|
@@ -5506,10 +5481,10 @@ class _d extends Ii {
|
|
|
5506
5481
|
super._$AT(t, s, r), ri(this), this.isConnected = t._$AU;
|
|
5507
5482
|
}
|
|
5508
5483
|
_$AO(t, s = !0) {
|
|
5509
|
-
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), s && (
|
|
5484
|
+
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), s && (Be(this, t), dt(this));
|
|
5510
5485
|
}
|
|
5511
5486
|
setValue(t) {
|
|
5512
|
-
if (
|
|
5487
|
+
if (Ti(this.t)) this.t._$AI(t, this);
|
|
5513
5488
|
else {
|
|
5514
5489
|
const s = [...this.t._$AH];
|
|
5515
5490
|
s[this.i] = t, this.t._$AI(s, this, 0);
|
|
@@ -5520,23 +5495,23 @@ class _d extends Ii {
|
|
|
5520
5495
|
reconnected() {
|
|
5521
5496
|
}
|
|
5522
5497
|
}
|
|
5523
|
-
const
|
|
5498
|
+
const Ft = /* @__PURE__ */ new WeakMap(), ii = $i(class extends _d {
|
|
5524
5499
|
render(e) {
|
|
5525
|
-
return
|
|
5500
|
+
return F;
|
|
5526
5501
|
}
|
|
5527
5502
|
update(e, [t]) {
|
|
5528
5503
|
const s = t !== this.Y;
|
|
5529
|
-
return s && this.Y !== void 0 && this.rt(void 0), (s || this.lt !== this.ct) && (this.Y = t, this.ht = e.options?.host, this.rt(this.ct = e.element)),
|
|
5504
|
+
return s && this.Y !== void 0 && this.rt(void 0), (s || this.lt !== this.ct) && (this.Y = t, this.ht = e.options?.host, this.rt(this.ct = e.element)), F;
|
|
5530
5505
|
}
|
|
5531
5506
|
rt(e) {
|
|
5532
5507
|
if (this.isConnected || (e = void 0), typeof this.Y == "function") {
|
|
5533
5508
|
const t = this.ht ?? globalThis;
|
|
5534
|
-
let s =
|
|
5535
|
-
s === void 0 && (s = /* @__PURE__ */ new WeakMap(),
|
|
5509
|
+
let s = Ft.get(t);
|
|
5510
|
+
s === void 0 && (s = /* @__PURE__ */ new WeakMap(), Ft.set(t, s)), s.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), s.set(this.Y, e), e !== void 0 && this.Y.call(this.ht, e);
|
|
5536
5511
|
} else this.Y.value = e;
|
|
5537
5512
|
}
|
|
5538
5513
|
get lt() {
|
|
5539
|
-
return typeof this.Y == "function" ?
|
|
5514
|
+
return typeof this.Y == "function" ? Ft.get(this.ht ?? globalThis)?.get(this.Y) : this.Y?.value;
|
|
5540
5515
|
}
|
|
5541
5516
|
disconnected() {
|
|
5542
5517
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -5547,7 +5522,7 @@ const Mt = /* @__PURE__ */ new WeakMap(), ii = Ei(class extends _d {
|
|
|
5547
5522
|
}), Sd = ".grouping-busy-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}", Cd = (e) => h`
|
|
5548
5523
|
<div class="grouping-busy-container">
|
|
5549
5524
|
<dss-spinner size="sm"></dss-spinner>
|
|
5550
|
-
<div>${
|
|
5525
|
+
<div>${g("isGrouping")}</div>
|
|
5551
5526
|
</div>
|
|
5552
5527
|
`;
|
|
5553
5528
|
var Dd = Object.getOwnPropertyDescriptor, Id = (e, t, s, r) => {
|
|
@@ -5583,7 +5558,7 @@ const Qt = (e, t) => {
|
|
|
5583
5558
|
subGroup: r
|
|
5584
5559
|
}));
|
|
5585
5560
|
return [...t, ...s].sort((r, i) => i.date.getTime() - r.date.getTime());
|
|
5586
|
-
},
|
|
5561
|
+
}, Td = (e) => h`
|
|
5587
5562
|
<div class="container">
|
|
5588
5563
|
<activity-history-full-data-error></activity-history-full-data-error>
|
|
5589
5564
|
<activity-history-partial-data-error></activity-history-partial-data-error>
|
|
@@ -5600,8 +5575,8 @@ const Qt = (e, t) => {
|
|
|
5600
5575
|
<div class="visit"
|
|
5601
5576
|
data-index=${t}
|
|
5602
5577
|
${ii(e._measureElement)}
|
|
5603
|
-
data-date=${
|
|
5604
|
-
${
|
|
5578
|
+
data-date=${Bs(s?.items[0]?.date || s?.subGroups[0]?.items[0]?.date)}>
|
|
5579
|
+
${$d(e, s?.items[0] || s?.subGroups[0]?.items[0], s)}
|
|
5605
5580
|
<div class="visit__items">
|
|
5606
5581
|
${le(
|
|
5607
5582
|
oi(s),
|
|
@@ -5621,7 +5596,7 @@ const Qt = (e, t) => {
|
|
|
5621
5596
|
const i = r.subGroup;
|
|
5622
5597
|
return h`
|
|
5623
5598
|
<div class="diagnostics">
|
|
5624
|
-
${
|
|
5599
|
+
${Fd(i?.items[0])}
|
|
5625
5600
|
<div class="diagnostics__items">
|
|
5626
5601
|
${le(
|
|
5627
5602
|
i?.items,
|
|
@@ -5646,21 +5621,21 @@ const Qt = (e, t) => {
|
|
|
5646
5621
|
</div>
|
|
5647
5622
|
</div>
|
|
5648
5623
|
</div>
|
|
5649
|
-
` :
|
|
5624
|
+
` : Ed(e)}
|
|
5650
5625
|
</div>
|
|
5651
|
-
`,
|
|
5626
|
+
`, Ed = (e) => h`
|
|
5652
5627
|
${e.searchString?.length > 1 ? h`
|
|
5653
5628
|
<dss-user-feedback
|
|
5654
5629
|
class="feedback"
|
|
5655
5630
|
status="empty"
|
|
5656
|
-
|
|
5631
|
+
titleText=${g("noResults")}>
|
|
5657
5632
|
</dss-user-feedback>
|
|
5658
5633
|
` : e.isAnyCollectionBusy ? h`<activity-history-is-grouping-busy></activity-history-is-grouping-busy>` : e._canShowNoDataMessage ? h`<dss-user-feedback
|
|
5659
5634
|
class="feedback"
|
|
5660
5635
|
status="empty"
|
|
5661
|
-
|
|
5662
|
-
description=${
|
|
5663
|
-
</dss-user-feedback>` :
|
|
5636
|
+
titleText=${g("noData.title")}
|
|
5637
|
+
description=${g("noData.description")}>
|
|
5638
|
+
</dss-user-feedback>` : F}`, $d = (e, t, s) => t ? h`
|
|
5664
5639
|
<div class="visit__header">
|
|
5665
5640
|
<div class="title">
|
|
5666
5641
|
<div class="title-date">
|
|
@@ -5668,12 +5643,12 @@ ${e.searchString?.length > 1 ? h`
|
|
|
5668
5643
|
</div>
|
|
5669
5644
|
<div class="title-description">
|
|
5670
5645
|
<div>
|
|
5671
|
-
${
|
|
5646
|
+
${Md(e, t, s)}
|
|
5672
5647
|
</div>
|
|
5673
5648
|
</div>
|
|
5674
5649
|
</div>
|
|
5675
5650
|
</div>
|
|
5676
|
-
` :
|
|
5651
|
+
` : F, Od = (e) => {
|
|
5677
5652
|
if (e) {
|
|
5678
5653
|
for (const t of e.items || [])
|
|
5679
5654
|
if (t.service?.id) return t.service;
|
|
@@ -5681,38 +5656,38 @@ ${e.searchString?.length > 1 ? h`
|
|
|
5681
5656
|
for (const s of t.items || [])
|
|
5682
5657
|
if (s.service?.id) return s.service;
|
|
5683
5658
|
}
|
|
5684
|
-
},
|
|
5685
|
-
if (!t.professional) return
|
|
5659
|
+
}, Md = (e, t, s) => {
|
|
5660
|
+
if (!t.professional) return F;
|
|
5686
5661
|
const r = ni(t), i = [];
|
|
5687
5662
|
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
5663
|
const n = t.service?.description ? t.service : Od(s);
|
|
5689
5664
|
return n?.description && i.push(e.highlighted(n.description)), i.map((o, a) => h`${o}${a < i.length - 1 ? " | " : ""}`);
|
|
5690
|
-
},
|
|
5665
|
+
}, Fd = (e) => e && h`
|
|
5691
5666
|
<div class="diagnostics__header">
|
|
5692
5667
|
${e.diagnostics.filter((t) => t.descripcio != null && t.descripcio.trim() !== "").map(
|
|
5693
|
-
(t) => h`<dss-badge
|
|
5668
|
+
(t) => h`<dss-badge label=${t.descripcio?.toUpperCase()} status="info" size="sm" outlined hideIcon></dss-badge>`
|
|
5694
5669
|
)}
|
|
5695
5670
|
</div>
|
|
5696
5671
|
`;
|
|
5697
|
-
function
|
|
5672
|
+
function Te(e, t, s) {
|
|
5698
5673
|
let r = s.initialDeps ?? [], i, n = !0;
|
|
5699
5674
|
function o() {
|
|
5700
5675
|
var a, l, d;
|
|
5701
5676
|
let c;
|
|
5702
5677
|
s.key && ((a = s.debug) != null && a.call(s)) && (c = Date.now());
|
|
5703
5678
|
const u = e();
|
|
5704
|
-
if (!(u.length !== r.length || u.some((
|
|
5679
|
+
if (!(u.length !== r.length || u.some((y, m) => r[m] !== y)))
|
|
5705
5680
|
return i;
|
|
5706
5681
|
r = u;
|
|
5707
5682
|
let f;
|
|
5708
5683
|
if (s.key && ((l = s.debug) != null && l.call(s)) && (f = Date.now()), i = t(...u), s.key && ((d = s.debug) != null && d.call(s))) {
|
|
5709
|
-
const
|
|
5710
|
-
for (
|
|
5711
|
-
|
|
5712
|
-
return
|
|
5684
|
+
const y = Math.round((Date.now() - c) * 100) / 100, m = Math.round((Date.now() - f) * 100) / 100, p = m / 16, w = (b, x) => {
|
|
5685
|
+
for (b = String(b); b.length < x; )
|
|
5686
|
+
b = " " + b;
|
|
5687
|
+
return b;
|
|
5713
5688
|
};
|
|
5714
5689
|
console.info(
|
|
5715
|
-
`%c⏱ ${w(m, 5)} /${w(
|
|
5690
|
+
`%c⏱ ${w(m, 5)} /${w(y, 5)} ms`,
|
|
5716
5691
|
`
|
|
5717
5692
|
font-size: .6rem;
|
|
5718
5693
|
font-weight: bold;
|
|
@@ -5780,7 +5755,7 @@ const Pd = (e, t) => Math.abs(e - t) < 1.01, Ad = (e, t, s) => {
|
|
|
5780
5755
|
};
|
|
5781
5756
|
}, Ns = {
|
|
5782
5757
|
passive: !0
|
|
5783
|
-
},
|
|
5758
|
+
}, qs = typeof window > "u" ? !0 : "onscrollend" in window, zd = (e, t) => {
|
|
5784
5759
|
const s = e.scrollElement;
|
|
5785
5760
|
if (!s)
|
|
5786
5761
|
return;
|
|
@@ -5788,7 +5763,7 @@ const Pd = (e, t) => Math.abs(e - t) < 1.01, Ad = (e, t, s) => {
|
|
|
5788
5763
|
if (!r)
|
|
5789
5764
|
return;
|
|
5790
5765
|
let i = 0;
|
|
5791
|
-
const n = e.options.useScrollendEvent &&
|
|
5766
|
+
const n = e.options.useScrollendEvent && qs ? () => {
|
|
5792
5767
|
} : Ad(
|
|
5793
5768
|
r,
|
|
5794
5769
|
() => {
|
|
@@ -5796,11 +5771,11 @@ const Pd = (e, t) => Math.abs(e - t) < 1.01, Ad = (e, t, s) => {
|
|
|
5796
5771
|
},
|
|
5797
5772
|
e.options.isScrollingResetDelay
|
|
5798
5773
|
), o = (c) => () => {
|
|
5799
|
-
const { horizontal: u, isRtl:
|
|
5800
|
-
i = u ? s.scrollLeft * (
|
|
5774
|
+
const { horizontal: u, isRtl: v } = e.options;
|
|
5775
|
+
i = u ? s.scrollLeft * (v && -1 || 1) : s.scrollTop, n(), t(i, c);
|
|
5801
5776
|
}, a = o(!0), l = o(!1);
|
|
5802
5777
|
s.addEventListener("scroll", a, Ns);
|
|
5803
|
-
const d = e.options.useScrollendEvent &&
|
|
5778
|
+
const d = e.options.useScrollendEvent && qs;
|
|
5804
5779
|
return d && s.addEventListener("scrollend", l, Ns), () => {
|
|
5805
5780
|
s.removeEventListener("scroll", a), d && s.removeEventListener("scrollend", l);
|
|
5806
5781
|
};
|
|
@@ -5824,7 +5799,7 @@ const Pd = (e, t) => Math.abs(e - t) < 1.01, Ad = (e, t, s) => {
|
|
|
5824
5799
|
behavior: s
|
|
5825
5800
|
});
|
|
5826
5801
|
};
|
|
5827
|
-
class
|
|
5802
|
+
class qd {
|
|
5828
5803
|
constructor(t) {
|
|
5829
5804
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
5830
5805
|
var s, r, i;
|
|
@@ -5895,7 +5870,7 @@ class Bd {
|
|
|
5895
5870
|
}, this.notify = (s) => {
|
|
5896
5871
|
var r, i;
|
|
5897
5872
|
(i = (r = this.options).onChange) == null || i.call(r, this, s);
|
|
5898
|
-
}, this.maybeNotify =
|
|
5873
|
+
}, this.maybeNotify = Te(
|
|
5899
5874
|
() => (this.calculateRange(), [
|
|
5900
5875
|
this.isScrolling,
|
|
5901
5876
|
this.range ? this.range.startIndex : null,
|
|
@@ -5953,7 +5928,7 @@ class Bd {
|
|
|
5953
5928
|
break;
|
|
5954
5929
|
}
|
|
5955
5930
|
return n.size === this.options.lanes ? Array.from(n.values()).sort((o, a) => o.end === a.end ? o.index - a.index : o.end - a.end)[0] : void 0;
|
|
5956
|
-
}, this.getMeasurementOptions =
|
|
5931
|
+
}, this.getMeasurementOptions = Te(
|
|
5957
5932
|
() => [
|
|
5958
5933
|
this.options.count,
|
|
5959
5934
|
this.options.paddingStart,
|
|
@@ -5975,7 +5950,7 @@ class Bd {
|
|
|
5975
5950
|
{
|
|
5976
5951
|
key: !1
|
|
5977
5952
|
}
|
|
5978
|
-
), this.getMeasurements =
|
|
5953
|
+
), this.getMeasurements = Te(
|
|
5979
5954
|
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
5980
5955
|
({
|
|
5981
5956
|
count: s,
|
|
@@ -5996,34 +5971,34 @@ class Bd {
|
|
|
5996
5971
|
}));
|
|
5997
5972
|
const c = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
5998
5973
|
this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === s && (this.lanesSettling = !1);
|
|
5999
|
-
const u = this.measurementsCache.slice(0, c),
|
|
5974
|
+
const u = this.measurementsCache.slice(0, c), v = new Array(a).fill(
|
|
6000
5975
|
void 0
|
|
6001
5976
|
);
|
|
6002
5977
|
for (let f = 0; f < c; f++) {
|
|
6003
|
-
const
|
|
6004
|
-
|
|
5978
|
+
const y = u[f];
|
|
5979
|
+
y && (v[y.lane] = f);
|
|
6005
5980
|
}
|
|
6006
5981
|
for (let f = c; f < s; f++) {
|
|
6007
|
-
const
|
|
5982
|
+
const y = n(f), m = this.laneAssignments.get(f);
|
|
6008
5983
|
let p, w;
|
|
6009
|
-
const
|
|
5984
|
+
const b = l === "estimate" || d.has(y);
|
|
6010
5985
|
if (m !== void 0 && this.options.lanes > 1) {
|
|
6011
5986
|
p = m;
|
|
6012
|
-
const k =
|
|
5987
|
+
const k = v[p], R = k !== void 0 ? u[k] : void 0;
|
|
6013
5988
|
w = R ? R.end + this.options.gap : r + i;
|
|
6014
5989
|
} else {
|
|
6015
5990
|
const k = this.options.lanes === 1 ? u[f - 1] : this.getFurthestMeasurement(u, f);
|
|
6016
|
-
w = k ? k.end + this.options.gap : r + i, p = k ? k.lane : f % this.options.lanes, this.options.lanes > 1 &&
|
|
5991
|
+
w = k ? k.end + this.options.gap : r + i, p = k ? k.lane : f % this.options.lanes, this.options.lanes > 1 && b && this.laneAssignments.set(f, p);
|
|
6017
5992
|
}
|
|
6018
|
-
const x = d.get(
|
|
5993
|
+
const x = d.get(y), D = typeof x == "number" ? x : this.options.estimateSize(f), M = w + D;
|
|
6019
5994
|
u[f] = {
|
|
6020
5995
|
index: f,
|
|
6021
5996
|
start: w,
|
|
6022
5997
|
size: D,
|
|
6023
|
-
end:
|
|
6024
|
-
key:
|
|
5998
|
+
end: M,
|
|
5999
|
+
key: y,
|
|
6025
6000
|
lane: p
|
|
6026
|
-
},
|
|
6001
|
+
}, v[p] = f;
|
|
6027
6002
|
}
|
|
6028
6003
|
return this.measurementsCache = u, u;
|
|
6029
6004
|
},
|
|
@@ -6031,14 +6006,14 @@ class Bd {
|
|
|
6031
6006
|
key: !1,
|
|
6032
6007
|
debug: () => this.options.debug
|
|
6033
6008
|
}
|
|
6034
|
-
), this.calculateRange =
|
|
6009
|
+
), this.calculateRange = Te(
|
|
6035
6010
|
() => [
|
|
6036
6011
|
this.getMeasurements(),
|
|
6037
6012
|
this.getSize(),
|
|
6038
6013
|
this.getScrollOffset(),
|
|
6039
6014
|
this.options.lanes
|
|
6040
6015
|
],
|
|
6041
|
-
(s, r, i, n) => this.range = s.length > 0 && r > 0 ?
|
|
6016
|
+
(s, r, i, n) => this.range = s.length > 0 && r > 0 ? Gd({
|
|
6042
6017
|
measurements: s,
|
|
6043
6018
|
outerSize: r,
|
|
6044
6019
|
scrollOffset: i,
|
|
@@ -6048,7 +6023,7 @@ class Bd {
|
|
|
6048
6023
|
key: !1,
|
|
6049
6024
|
debug: () => this.options.debug
|
|
6050
6025
|
}
|
|
6051
|
-
), this.getVirtualIndexes =
|
|
6026
|
+
), this.getVirtualIndexes = Te(
|
|
6052
6027
|
() => {
|
|
6053
6028
|
let s = null, r = null;
|
|
6054
6029
|
const i = this.calculateRange();
|
|
@@ -6109,7 +6084,7 @@ class Bd {
|
|
|
6109
6084
|
adjustments: this.scrollAdjustments += a,
|
|
6110
6085
|
behavior: void 0
|
|
6111
6086
|
}), this.pendingMeasuredCacheIndexes.push(n.index), this.itemSizeCache = new Map(this.itemSizeCache.set(n.key, r)), this.notify(!1));
|
|
6112
|
-
}, this.getVirtualItems =
|
|
6087
|
+
}, this.getVirtualItems = Te(
|
|
6113
6088
|
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
6114
6089
|
(s, r) => {
|
|
6115
6090
|
const i = [];
|
|
@@ -6274,7 +6249,7 @@ const ai = (e, t, s, r) => {
|
|
|
6274
6249
|
}
|
|
6275
6250
|
return e > 0 ? e - 1 : 0;
|
|
6276
6251
|
};
|
|
6277
|
-
function
|
|
6252
|
+
function Gd({
|
|
6278
6253
|
measurements: e,
|
|
6279
6254
|
outerSize: t,
|
|
6280
6255
|
scrollOffset: s,
|
|
@@ -6310,7 +6285,7 @@ function qd({
|
|
|
6310
6285
|
}
|
|
6311
6286
|
return { startIndex: o, endIndex: a };
|
|
6312
6287
|
}
|
|
6313
|
-
const
|
|
6288
|
+
const Bd = (e) => {
|
|
6314
6289
|
const t = e.getBoundingClientRect().height, s = window.getComputedStyle(e), r = Number.parseFloat(s.marginTop) || 0, i = Number.parseFloat(s.marginBottom) || 0;
|
|
6315
6290
|
return Math.round(t + r + i);
|
|
6316
6291
|
};
|
|
@@ -6319,7 +6294,7 @@ class li {
|
|
|
6319
6294
|
this._lastVisibleState = { virtualItems: [], totalHeight: 0 }, this._savedScrollTop = 0, this._viewportWasHidden = !1, this._options = t;
|
|
6320
6295
|
}
|
|
6321
6296
|
setup(t, s) {
|
|
6322
|
-
return this._viewport = t, this._virtualizer = new
|
|
6297
|
+
return this._viewport = t, this._virtualizer = new qd({
|
|
6323
6298
|
count: this._options.items.length,
|
|
6324
6299
|
getScrollElement: () => this._viewport ?? null,
|
|
6325
6300
|
estimateSize: (r) => this._options.estimateItemHeight(r),
|
|
@@ -6369,7 +6344,7 @@ class li {
|
|
|
6369
6344
|
const s = Number(t.getAttribute("data-index"));
|
|
6370
6345
|
return this._virtualizer?.measurementsCache[s]?.size ?? this._options.estimateItemHeight(s);
|
|
6371
6346
|
}
|
|
6372
|
-
return (this._options.measureElement ??
|
|
6347
|
+
return (this._options.measureElement ?? Bd)(t);
|
|
6373
6348
|
}
|
|
6374
6349
|
// Deactivated region views are hidden with display:none: the viewport
|
|
6375
6350
|
// measures 0px, the virtualizer nulls its range (empty virtualItems) and the
|
|
@@ -6410,7 +6385,7 @@ let X = class extends j {
|
|
|
6410
6385
|
}
|
|
6411
6386
|
render() {
|
|
6412
6387
|
return h`
|
|
6413
|
-
${
|
|
6388
|
+
${Td(this)}
|
|
6414
6389
|
`;
|
|
6415
6390
|
}
|
|
6416
6391
|
connectedCallback() {
|
|
@@ -6517,7 +6492,7 @@ let X = class extends j {
|
|
|
6517
6492
|
}
|
|
6518
6493
|
};
|
|
6519
6494
|
X.styles = W`
|
|
6520
|
-
${L(
|
|
6495
|
+
${L(vd)}
|
|
6521
6496
|
`;
|
|
6522
6497
|
ae([
|
|
6523
6498
|
C(us)
|
|
@@ -6551,7 +6526,7 @@ X = ae([
|
|
|
6551
6526
|
], X);
|
|
6552
6527
|
const jd = (e) => {
|
|
6553
6528
|
const t = e.areCustomFiltersActive || e.areCommonFiltersActive || e.areDiagnosticFiltersActive || e.areUpFiltersActive;
|
|
6554
|
-
return !t && e.searchString.length < 1 ?
|
|
6529
|
+
return !t && e.searchString.length < 1 ? F : h`
|
|
6555
6530
|
<div class="active-filters-header">
|
|
6556
6531
|
${et(t, () => h`<active-filters-badges></active-filters-badges>`)}
|
|
6557
6532
|
${et(e.searchString.length > 1, () => h`<activity-history-search-results searchQuery=${e.searchString}></activity-history-search-results>`)}
|
|
@@ -6590,14 +6565,14 @@ pe = ze([
|
|
|
6590
6565
|
Y("active-filters-header")
|
|
6591
6566
|
], pe);
|
|
6592
6567
|
const Xd = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;height:100%;justify-content:center}", Kd = (e) => h`
|
|
6593
|
-
${e.isAllDataFailedToLoad ? Jd(e) :
|
|
6568
|
+
${e.isAllDataFailedToLoad ? Jd(e) : F}
|
|
6594
6569
|
`, Jd = (e) => h`
|
|
6595
6570
|
<div class="container">
|
|
6596
|
-
<dss-user-feedback status="error" variant="default" size="lg"
|
|
6571
|
+
<dss-user-feedback status="error" variant="default" size="lg" titleText=${g("error.title")} description=${g("error.general.title")} hasDetails detailsLabel=${g("error.viewDetails")}>
|
|
6597
6572
|
<div slot="details">
|
|
6598
|
-
${e.errorMessages.length > 0 ? h`<div>${e.errorMessages.map((t) => h`<div>${t.message}</div>`)}</div>` :
|
|
6573
|
+
${e.errorMessages.length > 0 ? h`<div>${e.errorMessages.map((t) => h`<div>${t.message}</div>`)}</div>` : g("error.general.noInfo")}
|
|
6599
6574
|
</div>
|
|
6600
|
-
<dss-button @onClick=${e.handleClickFeedback} label=${
|
|
6575
|
+
<dss-button @onClick=${e.handleClickFeedback} label=${g("error.general.refresh")} size="lg"></dss-button>
|
|
6601
6576
|
</dss-user-feedback>
|
|
6602
6577
|
</div>
|
|
6603
6578
|
`, ci = (e) => e.activityHistoryCollections.error.length > 0, Zd = (e) => {
|
|
@@ -6638,14 +6613,14 @@ Ae = It([
|
|
|
6638
6613
|
const ru = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;padding-top:16px;padding-inline:16px}", iu = (e) => {
|
|
6639
6614
|
const t = e.getCombinedMessage();
|
|
6640
6615
|
return h`
|
|
6641
|
-
${e.isErrorOccurred ? nu(e, t) :
|
|
6616
|
+
${e.isErrorOccurred ? nu(e, t) : F}
|
|
6642
6617
|
`;
|
|
6643
6618
|
}, nu = (e, t) => h`
|
|
6644
6619
|
<div class="container">
|
|
6645
|
-
<dss-alert @
|
|
6620
|
+
<dss-alert @button-click=${e.handleClickAlert} status="warning" size="lg" titleText="${t}" buttonLabel=${g("error.partial.refresh")} hasButton></dss-alert>
|
|
6646
6621
|
</div>
|
|
6647
6622
|
`;
|
|
6648
|
-
var ou = Object.defineProperty, au = Object.getOwnPropertyDescriptor,
|
|
6623
|
+
var ou = Object.defineProperty, au = Object.getOwnPropertyDescriptor, Tt = (e, t, s, r) => {
|
|
6649
6624
|
for (var i = r > 1 ? void 0 : r ? au(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6650
6625
|
(o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
|
|
6651
6626
|
return r && i && ou(t, s, i), i;
|
|
@@ -6661,29 +6636,29 @@ let ke = class extends j {
|
|
|
6661
6636
|
this.api.broker.send(new ns(this.errorMessages));
|
|
6662
6637
|
}
|
|
6663
6638
|
getCombinedMessage() {
|
|
6664
|
-
const e =
|
|
6639
|
+
const e = g("error.partial.title"), t = this.errorMessages.length > 0 ? this.errorMessages.map((s) => s.entityDescription) : [];
|
|
6665
6640
|
return t.length > 0 ? `${e} ${t[0]}${t.length > 1 ? ` i ${t.slice(1).join(" i ")}` : ""}` : e;
|
|
6666
6641
|
}
|
|
6667
6642
|
};
|
|
6668
6643
|
ke.styles = W`
|
|
6669
6644
|
${L(ru)}
|
|
6670
6645
|
`;
|
|
6671
|
-
|
|
6646
|
+
Tt([
|
|
6672
6647
|
C(ci)
|
|
6673
6648
|
], ke.prototype, "isErrorOccurred", 2);
|
|
6674
|
-
|
|
6649
|
+
Tt([
|
|
6675
6650
|
C(di)
|
|
6676
6651
|
], ke.prototype, "errorMessages", 2);
|
|
6677
|
-
|
|
6652
|
+
Tt([
|
|
6678
6653
|
Ce(z.primaryApi)
|
|
6679
6654
|
], ke.prototype, "api", 2);
|
|
6680
|
-
ke =
|
|
6655
|
+
ke = Tt([
|
|
6681
6656
|
Y("activity-history-partial-data-error")
|
|
6682
6657
|
], ke);
|
|
6683
6658
|
const { clearActivityHistoryCollections: lu } = ge.actions;
|
|
6684
6659
|
class cu extends re {
|
|
6685
6660
|
async handle() {
|
|
6686
|
-
this.store.dispatch(
|
|
6661
|
+
this.store.dispatch(q.actions.clearCustomFilters()), this.store.dispatch(lu()), this.api.broker.publish(this.api.broker.events.activityHistory.refreshDataRequested);
|
|
6687
6662
|
}
|
|
6688
6663
|
}
|
|
6689
6664
|
class ui {
|
|
@@ -6713,7 +6688,7 @@ const pu = (e) => {
|
|
|
6713
6688
|
fi = e.registerRequest("remove_history_item_request", fu);
|
|
6714
6689
|
}, mu = () => {
|
|
6715
6690
|
fi?.dispose();
|
|
6716
|
-
}, { setSearchString: gu } =
|
|
6691
|
+
}, { setSearchString: gu } = q.actions;
|
|
6717
6692
|
class yu extends re {
|
|
6718
6693
|
async handle(t) {
|
|
6719
6694
|
try {
|
|
@@ -6732,8 +6707,8 @@ class ut {
|
|
|
6732
6707
|
this.searchString = t, this.searchString = t;
|
|
6733
6708
|
}
|
|
6734
6709
|
}
|
|
6735
|
-
const
|
|
6736
|
-
${
|
|
6710
|
+
const vu = ".search-header{color:var(--color-neutral-900);font-weight:600}", bu = (e) => h`<div class="search-header">
|
|
6711
|
+
${g("searchBarResults")} “${e.searchQuery}”
|
|
6737
6712
|
</div>`;
|
|
6738
6713
|
var wu = Object.defineProperty, xu = Object.getOwnPropertyDescriptor, pi = (e, t, s, r) => {
|
|
6739
6714
|
for (var i = r > 1 ? void 0 : r ? xu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
@@ -6745,11 +6720,11 @@ let ht = class extends j {
|
|
|
6745
6720
|
super(...arguments), this.searchQuery = "";
|
|
6746
6721
|
}
|
|
6747
6722
|
render() {
|
|
6748
|
-
return h`${
|
|
6723
|
+
return h`${bu(this)}`;
|
|
6749
6724
|
}
|
|
6750
6725
|
};
|
|
6751
6726
|
ht.styles = W`
|
|
6752
|
-
${L(
|
|
6727
|
+
${L(vu)}
|
|
6753
6728
|
`;
|
|
6754
6729
|
pi([
|
|
6755
6730
|
Z()
|
|
@@ -6757,10 +6732,15 @@ pi([
|
|
|
6757
6732
|
ht = pi([
|
|
6758
6733
|
Y("activity-history-search-results")
|
|
6759
6734
|
], ht);
|
|
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-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6735
|
+
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-input
|
|
6736
|
+
hideLabel
|
|
6737
|
+
label=${g("search")}
|
|
6738
|
+
placeholder=${g("searchPlaceholder")}
|
|
6739
|
+
icon="search"
|
|
6740
|
+
size="md"
|
|
6741
|
+
.value=${e.searchQuery}
|
|
6742
|
+
@change=${e._handleSearchChange}
|
|
6743
|
+
></dss-input>`;
|
|
6764
6744
|
var Cu = Object.defineProperty, Du = Object.getOwnPropertyDescriptor, mi = (e, t, s, r) => {
|
|
6765
6745
|
for (var i = r > 1 ? void 0 : r ? Du(t, s) : t, n = e.length - 1, o; n >= 0; n--)
|
|
6766
6746
|
(o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
|
|
@@ -6774,8 +6754,8 @@ let ft = class extends j {
|
|
|
6774
6754
|
return h`${Su(this)}`;
|
|
6775
6755
|
}
|
|
6776
6756
|
_handleSearchChange(e) {
|
|
6777
|
-
const t = e.
|
|
6778
|
-
this.dispatchEvent(new CustomEvent("onSearchChange", { detail:
|
|
6757
|
+
const t = e.target.value, s = t.length > 1 ? t : "";
|
|
6758
|
+
this.dispatchEvent(new CustomEvent("onSearchChange", { detail: s }));
|
|
6779
6759
|
}
|
|
6780
6760
|
};
|
|
6781
6761
|
ft.styles = W`
|
|
@@ -6787,26 +6767,26 @@ mi([
|
|
|
6787
6767
|
ft = mi([
|
|
6788
6768
|
Y("activity-history-search-bar")
|
|
6789
6769
|
], ft);
|
|
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}",
|
|
6770
|
+
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}", Tu = (e) => {
|
|
6791
6771
|
const t = e.replace(/veure/gi, "")?.trim();
|
|
6792
6772
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
6793
|
-
},
|
|
6773
|
+
}, Eu = (e) => e === !0 ? g("filters.deleted") : e, $u = (e, t) => e === "" ? Ou(t) : e, Ou = (e) => `${g("chipHeader.without")} ${e.toLowerCase()}`, Xe = 5, Mu = (e, t, s, r) => h`
|
|
6794
6774
|
<dss-chip
|
|
6795
|
-
label=${
|
|
6775
|
+
label=${$u(s.title, t.title)}
|
|
6796
6776
|
size="sm"
|
|
6797
6777
|
hasdelete
|
|
6798
6778
|
selected
|
|
6799
6779
|
@click=${() => r._onDeleteFilterValue(e, t.id, s.id, !1)}
|
|
6800
|
-
@
|
|
6780
|
+
@delete=${() => r._onDeleteFilterValue(e, t.id, s.id, !1)}
|
|
6801
6781
|
></dss-chip>
|
|
6802
|
-
`,
|
|
6782
|
+
`, Fu = (e, t) => h`
|
|
6803
6783
|
<dss-chip
|
|
6804
|
-
label=${
|
|
6784
|
+
label=${Tu(e.title)}
|
|
6805
6785
|
size="sm"
|
|
6806
6786
|
hasdelete
|
|
6807
6787
|
selected
|
|
6808
6788
|
@click=${() => t._onDeleteCommonFilterValue(e.id)}
|
|
6809
|
-
@
|
|
6789
|
+
@delete=${() => t._onDeleteCommonFilterValue(e.id)}
|
|
6810
6790
|
></dss-chip>
|
|
6811
6791
|
`, Pu = (e, t, s) => h`
|
|
6812
6792
|
<dss-chip
|
|
@@ -6815,7 +6795,7 @@ const Iu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6815
6795
|
hasdelete
|
|
6816
6796
|
selected
|
|
6817
6797
|
@click=${() => s._onDeleteDiagnosticFilterValue(e)}
|
|
6818
|
-
@
|
|
6798
|
+
@delete=${() => s._onDeleteDiagnosticFilterValue(e)}
|
|
6819
6799
|
></dss-chip>
|
|
6820
6800
|
`, Au = (e, t, s) => h`
|
|
6821
6801
|
<dss-chip
|
|
@@ -6824,11 +6804,11 @@ const Iu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6824
6804
|
hasdelete
|
|
6825
6805
|
selected
|
|
6826
6806
|
@click=${() => s._onDeleteUpFilterValue(e)}
|
|
6827
|
-
@
|
|
6807
|
+
@delete=${() => s._onDeleteUpFilterValue(e)}
|
|
6828
6808
|
></dss-chip>
|
|
6829
|
-
`,
|
|
6809
|
+
`, Ee = (e) => h`<div class="filter-title">${`${e}:`}</div>`, ku = (e) => {
|
|
6830
6810
|
if (e.enabledFilters.length === 0 && e.enabledCommonFilters.length === 0 && e.diagnosticFilterEnabled?.enabledValues?.length === 0 && e.upFilterEnabled.enabledValues.length === 0)
|
|
6831
|
-
return
|
|
6811
|
+
return F;
|
|
6832
6812
|
let t = 0;
|
|
6833
6813
|
const s = [], r = [], i = [], n = e.diagnosticFilterEnabled;
|
|
6834
6814
|
if (n) {
|
|
@@ -6836,8 +6816,8 @@ const Iu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6836
6816
|
if (l && l.length > 0) {
|
|
6837
6817
|
let d = !1, c = !1;
|
|
6838
6818
|
for (const u of l) {
|
|
6839
|
-
const
|
|
6840
|
-
t < Xe ? (d || (s.push(
|
|
6819
|
+
const v = Pu(u.codi, u.descripcio, e);
|
|
6820
|
+
t < Xe ? (d || (s.push(Ee(a)), d = !0), s.push(v), t++) : (c || (r.push(Ee(a)), c = !0), r.push(v), i.push(v));
|
|
6841
6821
|
}
|
|
6842
6822
|
}
|
|
6843
6823
|
}
|
|
@@ -6845,41 +6825,41 @@ const Iu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6845
6825
|
if (o) {
|
|
6846
6826
|
const { title: a, values: l, enabledValues: d } = o, c = l.filter((u) => d.includes(u.value));
|
|
6847
6827
|
if (c.length > 0) {
|
|
6848
|
-
let u = !1,
|
|
6828
|
+
let u = !1, v = !1;
|
|
6849
6829
|
for (const f of c) {
|
|
6850
|
-
const
|
|
6851
|
-
t < Xe ? (u || (s.push(
|
|
6830
|
+
const y = Au(f.value, f.label, e);
|
|
6831
|
+
t < Xe ? (u || (s.push(Ee(a)), u = !0), s.push(y), t++) : (v || (r.push(Ee(a)), v = !0), r.push(y), i.push(y));
|
|
6852
6832
|
}
|
|
6853
6833
|
}
|
|
6854
6834
|
}
|
|
6855
6835
|
for (const a of e.enabledCommonFilters) {
|
|
6856
|
-
const l =
|
|
6836
|
+
const l = Fu(a, e);
|
|
6857
6837
|
t < Xe ? (s.push(l), t++) : (r.push(l), i.push(l));
|
|
6858
6838
|
}
|
|
6859
6839
|
for (const { title: a, id: l, filters: d } of e.enabledFilters) {
|
|
6860
6840
|
let c = !1, u = !1;
|
|
6861
|
-
for (const
|
|
6862
|
-
for (const f of [...new Set(
|
|
6863
|
-
let
|
|
6864
|
-
if (
|
|
6865
|
-
|
|
6841
|
+
for (const v of d)
|
|
6842
|
+
for (const f of [...new Set(v.enabledValues)]) {
|
|
6843
|
+
let y = v?.options?.find((p) => p.id === f);
|
|
6844
|
+
if (y)
|
|
6845
|
+
y.title = y.title !== "" ? y.title : f;
|
|
6866
6846
|
else {
|
|
6867
|
-
const p =
|
|
6868
|
-
|
|
6847
|
+
const p = Eu(f);
|
|
6848
|
+
y = { title: p, id: p };
|
|
6869
6849
|
}
|
|
6870
|
-
const m =
|
|
6871
|
-
t < Xe ? (c || (s.push(
|
|
6850
|
+
const m = Mu(l, v, y, e);
|
|
6851
|
+
t < Xe ? (c || (s.push(Ee(a)), c = !0), s.push(m), t++) : (u || (r.push(Ee(a)), u = !0), r.push(m), i.push(m));
|
|
6872
6852
|
}
|
|
6873
6853
|
}
|
|
6874
6854
|
return h`
|
|
6875
6855
|
<div class="filters-container">
|
|
6876
|
-
<div class="filters-header">${
|
|
6856
|
+
<div class="filters-header">${g("chipHeader.selection")}</div>
|
|
6877
6857
|
<div class="filter-groups">
|
|
6878
6858
|
${s}
|
|
6879
6859
|
${i.length > 0 ? h`
|
|
6880
6860
|
<div>
|
|
6881
6861
|
<dss-button label="+ ${i.length}" size="sm" variant="primary"></dss-button>
|
|
6882
|
-
<dss-popover title=${
|
|
6862
|
+
<dss-popover title=${g("chipHeader.selection")} position="bottom" popoverFixed>
|
|
6883
6863
|
<dss-popover-body slot="body">
|
|
6884
6864
|
<div class="popover-content">
|
|
6885
6865
|
${r}
|
|
@@ -6887,12 +6867,12 @@ const Iu = ":host{display:flex;justify-content:space-between}.filters-container{
|
|
|
6887
6867
|
</dss-popover-body>
|
|
6888
6868
|
</dss-popover>
|
|
6889
6869
|
</div>
|
|
6890
|
-
` :
|
|
6870
|
+
` : F}
|
|
6891
6871
|
</div>
|
|
6892
6872
|
</div>
|
|
6893
6873
|
<div class="clean-filters">
|
|
6894
6874
|
<div class="separator">|</div>
|
|
6895
|
-
<dss-button variant="secondary" size="sm" label=${
|
|
6875
|
+
<dss-button variant="secondary" size="sm" label=${g("chipHeader.cleanFilters")} icon="cleaning_services" @click=${e.resetFilters}></dss-button>
|
|
6896
6876
|
</div>
|
|
6897
6877
|
`;
|
|
6898
6878
|
};
|
|
@@ -6938,7 +6918,7 @@ Ve([
|
|
|
6938
6918
|
C(zr)
|
|
6939
6919
|
], me.prototype, "enabledCommonFilters", 2);
|
|
6940
6920
|
Ve([
|
|
6941
|
-
C(
|
|
6921
|
+
C(qr)
|
|
6942
6922
|
], me.prototype, "enabledFilters", 2);
|
|
6943
6923
|
Ve([
|
|
6944
6924
|
C(Vr)
|
|
@@ -6955,10 +6935,10 @@ const zu = (e) => {
|
|
|
6955
6935
|
}, Vu = () => {
|
|
6956
6936
|
gi?.dispose();
|
|
6957
6937
|
}, { updateActivityHistoryItem: Nu } = ge.actions;
|
|
6958
|
-
class
|
|
6938
|
+
class qu extends Q {
|
|
6959
6939
|
async handle(t) {
|
|
6960
6940
|
try {
|
|
6961
|
-
|
|
6941
|
+
$r([t.item]), this.store.dispatch(
|
|
6962
6942
|
Nu({
|
|
6963
6943
|
id: t.entityId,
|
|
6964
6944
|
item: t.item
|
|
@@ -6970,16 +6950,16 @@ class Bu extends Q {
|
|
|
6970
6950
|
}
|
|
6971
6951
|
}
|
|
6972
6952
|
let yi;
|
|
6973
|
-
const
|
|
6974
|
-
yi = e.registerRequest("update_history_item_request",
|
|
6975
|
-
},
|
|
6953
|
+
const Gu = (e) => {
|
|
6954
|
+
yi = e.registerRequest("update_history_item_request", qu);
|
|
6955
|
+
}, Bu = () => {
|
|
6976
6956
|
yi?.dispose();
|
|
6977
6957
|
};
|
|
6978
6958
|
let K;
|
|
6979
6959
|
const Lu = (e) => {
|
|
6980
|
-
K =
|
|
6960
|
+
K = Fo(e, Se), gl(K, e), Tl(K, e), Ml(K, e), Vl(K), du(K), Gu(K), Wl(K), fd(K, e), zu(K), pu(K);
|
|
6981
6961
|
}, Wu = () => {
|
|
6982
|
-
yl(),
|
|
6962
|
+
yl(), El(), Fl(), kr(), Bu(), jl(), pd(), Vu(), mu();
|
|
6983
6963
|
}, ju = "activity-history", Yu = async (e) => {
|
|
6984
6964
|
const t = (s) => Promise.all(
|
|
6985
6965
|
s.map(async (r) => ({
|
|
@@ -6999,7 +6979,7 @@ const Lu = (e) => {
|
|
|
6999
6979
|
)
|
|
7000
6980
|
}))
|
|
7001
6981
|
);
|
|
7002
|
-
},
|
|
6982
|
+
}, vi = {
|
|
7003
6983
|
virtualItems: [],
|
|
7004
6984
|
totalHeight: 0
|
|
7005
6985
|
};
|
|
@@ -7010,7 +6990,7 @@ class Uu {
|
|
|
7010
6990
|
return t ? (this._scroller && t !== this._lastViewport && this.teardown(), this._scroller ? this._scroller.updateItems(s, r) : (this._scroller = new li({
|
|
7011
6991
|
items: s,
|
|
7012
6992
|
estimateItemHeight: i
|
|
7013
|
-
}), this._cleanup = this._scroller.setup(t, r)), this._lastViewport = t, this._scroller.getState()) : this._scroller?.getState() ??
|
|
6993
|
+
}), this._cleanup = this._scroller.setup(t, r)), this._lastViewport = t, this._scroller.getState()) : this._scroller?.getState() ?? vi;
|
|
7014
6994
|
}
|
|
7015
6995
|
teardown() {
|
|
7016
6996
|
this._cleanup?.(), this._cleanup = void 0, this._scroller = void 0, this._lastViewport = void 0;
|
|
@@ -7033,14 +7013,14 @@ const Qu = (e) => {
|
|
|
7033
7013
|
}, Zu = (e) => {
|
|
7034
7014
|
const t = e.items?.[0] || e.subGroups?.[0]?.items?.[0];
|
|
7035
7015
|
return Xu(t);
|
|
7036
|
-
},
|
|
7016
|
+
}, bi = (e, t) => ({
|
|
7037
7017
|
...e,
|
|
7038
7018
|
items: (e.items || []).filter(t),
|
|
7039
7019
|
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) =>
|
|
7042
|
-
return !n && !o ? i : i.map((a) => n && Zu(a) ? a : o ? eh(a, s) : null).filter((a) => a !== null &&
|
|
7043
|
-
},
|
|
7020
|
+
}), eh = (e, t) => bi(e, (s) => Ku(s, t)), Gs = (e) => e.items.length > 0 || e.subGroups.length > 0, th = (e, { todayOnly: t, selectedDiagnosticCodes: s }, r = {}) => {
|
|
7021
|
+
const i = e.map((a) => bi(a, (l) => Ju(l, r))).filter(Gs), n = t, o = s.length > 0;
|
|
7022
|
+
return !n && !o ? i : i.map((a) => n && Zu(a) ? a : o ? eh(a, s) : null).filter((a) => a !== null && Gs(a));
|
|
7023
|
+
}, $e = (e) => {
|
|
7044
7024
|
const t = [];
|
|
7045
7025
|
for (const s of e) {
|
|
7046
7026
|
for (const r of s.items || []) t.push(r);
|
|
@@ -7060,8 +7040,8 @@ const Qu = (e) => {
|
|
|
7060
7040
|
`;
|
|
7061
7041
|
}, ih = (e) => h`
|
|
7062
7042
|
<div class="importer__header">
|
|
7063
|
-
<dss-typography tag="h4" variant="subtitle-3">${
|
|
7064
|
-
<dss-badge
|
|
7043
|
+
<dss-typography tag="h4" variant="subtitle-3">${g("importer.title")}</dss-typography>
|
|
7044
|
+
<dss-badge label="${e.totalCount}" status="info" size="sm" outlined hideIcon></dss-badge>
|
|
7065
7045
|
</div>
|
|
7066
7046
|
`, nh = (e) => h`
|
|
7067
7047
|
<div class="importer__search">
|
|
@@ -7072,33 +7052,32 @@ const Qu = (e) => {
|
|
|
7072
7052
|
</div>
|
|
7073
7053
|
`, oh = (e, t) => h`
|
|
7074
7054
|
<div class="importer__filters">
|
|
7075
|
-
<dss-
|
|
7076
|
-
label=${
|
|
7055
|
+
<dss-checkbox
|
|
7056
|
+
label=${g("importer.selectAll")}
|
|
7077
7057
|
.checked=${t.checked}
|
|
7078
7058
|
.indeterminate=${t.indeterminate}
|
|
7079
7059
|
@change=${(s) => e._toggleAll(s)}
|
|
7080
|
-
></dss-
|
|
7060
|
+
></dss-checkbox>
|
|
7081
7061
|
|
|
7082
|
-
<span class="importer__filters-label">${
|
|
7062
|
+
<span class="importer__filters-label">${g("importer.filters")}</span>
|
|
7083
7063
|
|
|
7084
|
-
<dss-
|
|
7085
|
-
label=${
|
|
7064
|
+
<dss-checkbox
|
|
7065
|
+
label=${g("importer.today")}
|
|
7086
7066
|
.checked=${e.todayOnly}
|
|
7087
7067
|
@change=${(s) => e._onToggleToday(s)}
|
|
7088
|
-
></dss-
|
|
7068
|
+
></dss-checkbox>
|
|
7089
7069
|
|
|
7090
7070
|
${e.hasDiagnosticsFilter() ? h`
|
|
7091
|
-
<dss-
|
|
7071
|
+
<dss-select
|
|
7092
7072
|
dropdownStyle="max-height: 300px; overflow-y: auto;"
|
|
7093
7073
|
size="sm"
|
|
7094
7074
|
type="default"
|
|
7095
7075
|
multiple
|
|
7096
|
-
|
|
7097
|
-
placeholder="${y("importer.diagnostics")}"
|
|
7076
|
+
placeholder="${g("importer.diagnostics")}"
|
|
7098
7077
|
.elements=${e.diagnosticsOptions()}
|
|
7099
7078
|
@value-changed=${(s) => e._onDiagnosticsChanged(s)}
|
|
7100
|
-
></dss-
|
|
7101
|
-
` :
|
|
7079
|
+
></dss-select>
|
|
7080
|
+
` : F}
|
|
7102
7081
|
</div>
|
|
7103
7082
|
`, ah = (e) => e.filteredGroups?.length ? h`
|
|
7104
7083
|
<div class="virtual-container">
|
|
@@ -7114,17 +7093,17 @@ const Qu = (e) => {
|
|
|
7114
7093
|
</div>
|
|
7115
7094
|
</div>
|
|
7116
7095
|
</div>
|
|
7117
|
-
` : h`<div class="importer__empty">${
|
|
7096
|
+
` : h`<div class="importer__empty">${g("importer.noResults")}</div>`, lh = (e, t, s) => {
|
|
7118
7097
|
const r = t.items?.[0] || t.subGroups?.[0]?.items?.[0], i = ms(e.visitState(t));
|
|
7119
7098
|
return h`
|
|
7120
|
-
<div class="visit" data-index=${s} ${ii(e._measureElement)} data-date=${
|
|
7099
|
+
<div class="visit" data-index=${s} ${ii(e._measureElement)} data-date=${Bs(r?.date)}>
|
|
7121
7100
|
<div class="visit__header">
|
|
7122
|
-
<dss-
|
|
7101
|
+
<dss-checkbox
|
|
7123
7102
|
.checked=${i.checked}
|
|
7124
7103
|
.indeterminate=${i.indeterminate}
|
|
7125
7104
|
hideLabel
|
|
7126
7105
|
@change=${(n) => e._toggleVisit(t, n.target.checked)}
|
|
7127
|
-
></dss-
|
|
7106
|
+
></dss-checkbox>
|
|
7128
7107
|
${ch(r)}
|
|
7129
7108
|
</div>
|
|
7130
7109
|
<div class="visit__items">
|
|
@@ -7137,7 +7116,7 @@ const Qu = (e) => {
|
|
|
7137
7116
|
</div>
|
|
7138
7117
|
`;
|
|
7139
7118
|
}, ch = (e) => {
|
|
7140
|
-
if (!e) return
|
|
7119
|
+
if (!e) return F;
|
|
7141
7120
|
const t = ni(e), s = [];
|
|
7142
7121
|
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
7122
|
<div class="title">
|
|
@@ -7154,12 +7133,12 @@ const Qu = (e) => {
|
|
|
7154
7133
|
return h`
|
|
7155
7134
|
<div class="diagnostics">
|
|
7156
7135
|
<div class="diagnostics__header">
|
|
7157
|
-
<dss-
|
|
7136
|
+
<dss-checkbox
|
|
7158
7137
|
.checked=${s.checked}
|
|
7159
7138
|
.indeterminate=${s.indeterminate}
|
|
7160
7139
|
hideLabel
|
|
7161
7140
|
@change=${(r) => e._toggleSubGroup(t.items, r.target.checked)}
|
|
7162
|
-
></dss-
|
|
7141
|
+
></dss-checkbox>
|
|
7163
7142
|
${uh(t.items?.[0])}
|
|
7164
7143
|
</div>
|
|
7165
7144
|
<div class="diagnostics__items">
|
|
@@ -7173,17 +7152,17 @@ const Qu = (e) => {
|
|
|
7173
7152
|
`;
|
|
7174
7153
|
}, wi = (e, t, s) => h`
|
|
7175
7154
|
<div class="item" ?has-divider=${Qt(t, s)}>
|
|
7176
|
-
<dss-
|
|
7155
|
+
<dss-checkbox
|
|
7177
7156
|
class="item__check"
|
|
7178
7157
|
.checked=${e.isItemSelected(t.id)}
|
|
7179
7158
|
hideLabel
|
|
7180
7159
|
@change=${() => e._toggleItem(t.id)}
|
|
7181
|
-
></dss-
|
|
7160
|
+
></dss-checkbox>
|
|
7182
7161
|
${t.component}
|
|
7183
7162
|
</div>
|
|
7184
7163
|
`, uh = (e) => e && h`
|
|
7185
7164
|
${e.diagnostics.filter((t) => t.descripcio != null && t.descripcio.trim() !== "").map(
|
|
7186
|
-
(t) => h`<dss-badge
|
|
7165
|
+
(t) => h`<dss-badge label=${t.descripcio?.toUpperCase()} status="info" size="sm" outlined hideIcon></dss-badge>`
|
|
7187
7166
|
)}
|
|
7188
7167
|
`;
|
|
7189
7168
|
var hh = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, U = (e, t, s, r) => {
|
|
@@ -7194,7 +7173,7 @@ var hh = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, U = (e, t,
|
|
|
7194
7173
|
const ph = (e) => {
|
|
7195
7174
|
const t = document.createElement("div");
|
|
7196
7175
|
return t.textContent = e, t.innerHTML;
|
|
7197
|
-
}, mh = ["p", "br", "span", "div", "strong", "em", "u", "s", "sub", "sup", "b", "i", "a", "code", "pre", "blockquote", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li"], gh = new RegExp(`<(?!/?(?:${mh.join("|")})\\b)`, "gi"), yh = (e) => e.replace(gh, "<"),
|
|
7176
|
+
}, mh = ["p", "br", "span", "div", "strong", "em", "u", "s", "sub", "sup", "b", "i", "a", "code", "pre", "blockquote", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li"], gh = new RegExp(`<(?!/?(?:${mh.join("|")})\\b)`, "gi"), yh = (e) => e.replace(gh, "<"), vh = (e) => {
|
|
7198
7177
|
const t = [], s = [];
|
|
7199
7178
|
for (const r of e) {
|
|
7200
7179
|
const i = r.content?.plainText?.trim(), n = r.content?.html?.trim();
|
|
@@ -7206,7 +7185,7 @@ const ph = (e) => {
|
|
|
7206
7185
|
};
|
|
7207
7186
|
let V = class extends j {
|
|
7208
7187
|
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 =
|
|
7188
|
+
super(...arguments), this.historyGroups = [], this.searchString = "", this.rulesByCollectionId = {}, this.todayOnly = !1, this.selectedDiagnosticCodes = [], this.availableDiagnostics = [], this.filteredGroups = [], this.totalCount = 0, this.selectedIds = [], this._virtualScrollerState = vi, this._scrollerController = new Uu(), this._searchTimeout = null, this._didInitialPreselect = !1, this._measureElement = (e) => {
|
|
7210
7189
|
e && this._scrollerController.measureElement(e);
|
|
7211
7190
|
};
|
|
7212
7191
|
}
|
|
@@ -7243,7 +7222,7 @@ let V = class extends j {
|
|
|
7243
7222
|
}
|
|
7244
7223
|
_toggleVisit(e, t) {
|
|
7245
7224
|
this._setSelection(
|
|
7246
|
-
|
|
7225
|
+
$e([e]).map((s) => s.id),
|
|
7247
7226
|
t
|
|
7248
7227
|
);
|
|
7249
7228
|
}
|
|
@@ -7255,7 +7234,7 @@ let V = class extends j {
|
|
|
7255
7234
|
}
|
|
7256
7235
|
_toggleAll(e) {
|
|
7257
7236
|
this._setSelection(
|
|
7258
|
-
|
|
7237
|
+
$e(this.filteredGroups).map((t) => t.id),
|
|
7259
7238
|
e.target.checked
|
|
7260
7239
|
);
|
|
7261
7240
|
}
|
|
@@ -7264,13 +7243,13 @@ let V = class extends j {
|
|
|
7264
7243
|
return this.selectedIds.includes(e);
|
|
7265
7244
|
}
|
|
7266
7245
|
visitState(e) {
|
|
7267
|
-
return this._tristate(
|
|
7246
|
+
return this._tristate($e([e]).map((t) => t.id));
|
|
7268
7247
|
}
|
|
7269
7248
|
subGroupState(e) {
|
|
7270
7249
|
return this._tristate(e.map((t) => t.id));
|
|
7271
7250
|
}
|
|
7272
7251
|
allState() {
|
|
7273
|
-
return this._tristate(
|
|
7252
|
+
return this._tristate($e(this.filteredGroups).map((e) => e.id));
|
|
7274
7253
|
}
|
|
7275
7254
|
hasDiagnosticsFilter() {
|
|
7276
7255
|
return this.availableDiagnostics.length > 0;
|
|
@@ -7335,7 +7314,7 @@ let V = class extends j {
|
|
|
7335
7314
|
todayOnly: this.todayOnly,
|
|
7336
7315
|
selectedDiagnosticCodes: this.selectedDiagnosticCodes
|
|
7337
7316
|
}, t = th(this.historyGroups || [], e, this.rulesByCollectionId);
|
|
7338
|
-
this.filteredGroups = await Yu(t), this.totalCount =
|
|
7317
|
+
this.filteredGroups = await Yu(t), this.totalCount = $e(this.filteredGroups).length;
|
|
7339
7318
|
}
|
|
7340
7319
|
_syncVirtualScroller() {
|
|
7341
7320
|
this._virtualScrollerState = this._scrollerController.sync({
|
|
@@ -7375,7 +7354,7 @@ let V = class extends j {
|
|
|
7375
7354
|
this.api.importDataManager.selectItems({
|
|
7376
7355
|
pluginId: ju,
|
|
7377
7356
|
data: t,
|
|
7378
|
-
text:
|
|
7357
|
+
text: vh($e(t))
|
|
7379
7358
|
});
|
|
7380
7359
|
}
|
|
7381
7360
|
};
|
|
@@ -7421,28 +7400,25 @@ U([
|
|
|
7421
7400
|
V = U([
|
|
7422
7401
|
Y("activity-history-importer")
|
|
7423
7402
|
], V);
|
|
7424
|
-
const
|
|
7403
|
+
const bh = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{display:flex;flex-direction:column;width:100%;border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm)}.container[maximized]{position:absolute;background:#fff;top:0;left:0;bottom:0;border:none}.container[maximized] .header-maximized-container{display:flex;flex-direction:column}.container[maximized] .header-maximized-container .header__maximized{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding-top:12px;padding-bottom:12px;padding-inline:40px}.container[maximized] .header-maximized-container .header__maximized .header__maximized__search{flex:1;border-radius:8px;border:1px solid rgb(189,189,189);padding:8px;width:300px}.container[maximized] .header-maximized-container .header__maximized .title{color:var(--color-neutral-900);font-weight:700;font-size:20px;line-height:30px;white-space:nowrap}.container[maximized] .header-maximized-container .header__maximized .options{display:flex;align-items:center;color:var(--color-primary-400);font-weight:600;font-size:14px;line-height:24px;cursor:pointer}.container[maximized] .header-maximized-container .header__maximized .header__maximized__left{display:flex;flex-direction:row;gap:24px;align-items:center;width:100%}.container[maximized] .header-maximized-container .header__maximized .header__maximized__left activity-history-search-bar{width:290px;flex-shrink:0}.container[maximized] .header-maximized-container .header__maximized .header__maximized__right{display:flex;flex-direction:row;gap:16px;align-items:center}.container[maximized] .wrapper{height:calc(100vh - 175px);border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm);margin-bottom:24px;margin-inline:40px;width:calc(100% - 80px)}.container .header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid rgb(189,189,189);gap:16px}.container .header .header__left{display:flex;flex-direction:row;align-items:center;flex:1;gap:16px}.container .header .header__left activity-history-search-bar{width:290px;flex-shrink:0}.container .header .header__left .title{color:var(--color-neutral-800);font-weight:700;font-size:16px;line-height:24px;white-space:nowrap}.container .header .header__right{display:flex;flex-direction:row;align-items:center;gap:8px}.container .header .header__right .action-icons{display:flex;align-items:center}.container .wrapper{display:flex;flex-direction:row;min-height:1px;width:100%;height:100%}.container .wrapper[maximized] .content{width:100%;background:var(--color-neutral-50);border-top-right-radius:var(--dss-radius-sm);display:flex;flex-direction:column}.container .wrapper .content{width:100%;background:var(--color-neutral-50);border-bottom-right-radius:var(--dss-radius-sm);overflow:hidden;display:flex;flex-direction:column}", wh = (e) => h`<div class="container" ?maximized=${e.maximized}>
|
|
7425
7404
|
${e.maximized ? h`${xh(e)}` : h`<div class="header">
|
|
7426
7405
|
<div class="header__left">
|
|
7427
|
-
<div class="title">${
|
|
7406
|
+
<div class="title">${g("activityHistory")}</div>
|
|
7428
7407
|
<activity-history-search-bar @onSearchChange=${e._handleSearchChange} .searchQuery=${e.searchQuery}></activity-history-search-bar>
|
|
7429
|
-
<dss-datepicker
|
|
7430
|
-
<label slot="label" for="myDatepicker">${y("goToDate")}</label>
|
|
7431
|
-
<input slot="input" id="myDatepicker" type="text" class="dss-input">
|
|
7432
|
-
</dss-datepicker>
|
|
7408
|
+
<dss-datepicker size="md" class="date-picker" label=${g("goToDate")} @change=${(t) => e._handleSelectDate(t.target.value)}></dss-datepicker>
|
|
7433
7409
|
</div>
|
|
7434
7410
|
|
|
7435
7411
|
<div class="header__right">
|
|
7436
|
-
<dss-icon-button
|
|
7412
|
+
<dss-icon-button @click=${() => e._refreshHistory()} size="md" variant="primary" icon="refresh" label=${g("actions.refresh")}></dss-icon-button>
|
|
7437
7413
|
<div>|</div>
|
|
7438
|
-
<dss-icon-button
|
|
7439
|
-
${e.isAdministrative ?
|
|
7414
|
+
<dss-icon-button @click=${() => e._maximize()} size="md" variant="primary" icon="open_in_full" label=${g("actions.maximizeButton")}></dss-icon-button>
|
|
7415
|
+
${e.isAdministrative ? F : h`<div>|</div>
|
|
7440
7416
|
<div>
|
|
7441
|
-
<dss-icon-button
|
|
7417
|
+
<dss-icon-button size="md" variant="primary" icon="more_vert" label=${g("actions.menuButton")}></dss-icon-button>
|
|
7442
7418
|
<dss-action-menu position="bottom-start">
|
|
7443
|
-
<dss-action-menu-item lefticon="view_timeline" label=${
|
|
7444
|
-
<!-- <dss-action-menu-item lefticon="file_download" label=${
|
|
7445
|
-
<!-- <dss-action-menu-item lefticon="info" label=${
|
|
7419
|
+
<dss-action-menu-item lefticon="view_timeline" label=${g("actions.cronogram")} @click=${e._raiseEcapCronogramEvent}></dss-action-menu-item>
|
|
7420
|
+
<!-- <dss-action-menu-item lefticon="file_download" label=${g("actions.exportPdf")} @click=${() => e.api.broker.send(new os())}></dss-action-menu-item> -->
|
|
7421
|
+
<!-- <dss-action-menu-item lefticon="info" label=${g("actions.entryLegend")}></dss-action-menu-item> -->
|
|
7446
7422
|
</dss-action-menu>
|
|
7447
7423
|
</div>`}
|
|
7448
7424
|
</div>
|
|
@@ -7451,31 +7427,28 @@ const vh = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{
|
|
|
7451
7427
|
<activity-history-filters .wrapperMaximized=${e.maximized}></activity-history-filters>
|
|
7452
7428
|
<div class="content">
|
|
7453
7429
|
<active-filters-header></active-filters-header>
|
|
7454
|
-
${e.isAnyCollectionBusy ? h`<activity-history-busy></activity-history-busy>` :
|
|
7455
|
-
${e.historyGroups?.length || !e.isAnyCollectionBusy ? h`<activity-history-timeline></activity-history-timeline>` :
|
|
7430
|
+
${e.isAnyCollectionBusy ? h`<activity-history-busy></activity-history-busy>` : F}
|
|
7431
|
+
${e.historyGroups?.length || !e.isAnyCollectionBusy ? h`<activity-history-timeline></activity-history-timeline>` : F}
|
|
7456
7432
|
</div>
|
|
7457
7433
|
</div>
|
|
7458
7434
|
</div>`, xh = (e) => h`
|
|
7459
7435
|
<div class="header-maximized-container">
|
|
7460
7436
|
<div class="header__maximized">
|
|
7461
7437
|
<div class="header__maximized__left">
|
|
7462
|
-
<div class="title">${
|
|
7438
|
+
<div class="title">${g("activityHistory")}</div>
|
|
7463
7439
|
<activity-history-search-bar @onSearchChange=${e._handleSearchChange} .searchQuery=${e.searchQuery}></activity-history-search-bar>
|
|
7464
|
-
<dss-datepicker
|
|
7465
|
-
<label slot="label" for="myDatepicker">${y("goToDate")}</label>
|
|
7466
|
-
<input slot="input" id="myDatepicker" type="text" class="dss-input">
|
|
7467
|
-
</dss-datepicker>
|
|
7440
|
+
<dss-datepicker size="md" class="date-picker" label=${g("goToDate")} @change=${(t) => e._handleSelectDate(t.target.value)}></dss-datepicker>
|
|
7468
7441
|
</div>
|
|
7469
7442
|
<div class="header__maximized__right">
|
|
7470
7443
|
<!-- <div>
|
|
7471
|
-
<dss-button variant="subtle" size="md" label="${
|
|
7444
|
+
<dss-button variant="subtle" size="md" label="${g("actions.moreOptions")}" icon="more_horiz" iconposition="left"></dss-button>
|
|
7472
7445
|
<dss-action-menu position="bottom-start">
|
|
7473
|
-
<dss-action-menu-item @click=${() => e.api.broker.send(new os())} lefticon="file_download" label=${
|
|
7446
|
+
<dss-action-menu-item @click=${() => e.api.broker.send(new os())} lefticon="file_download" label=${g("actions.exportPdf")}></dss-action-menu-item>
|
|
7474
7447
|
</dss-action-menu>
|
|
7475
7448
|
</div> -->
|
|
7476
|
-
<!-- <dss-button label="${
|
|
7477
|
-
${e.isAdministrative ?
|
|
7478
|
-
<dss-icon-button
|
|
7449
|
+
<!-- <dss-button label="${g("actions.entryLegend")}" size="md" variant="secondary" icon="info"></dss-button> -->
|
|
7450
|
+
${e.isAdministrative ? F : h`<dss-button label="${g("actions.cronogram")}" size="md" variant="primary" icon="view_timeline" @click=${e._raiseEcapCronogramEvent}></dss-button>`}
|
|
7451
|
+
<dss-icon-button @click=${() => e._minimize()} size="md" variant="primary" icon="close_fullscreen" label=${g("actions.minimizeButton")}></dss-icon-button>
|
|
7479
7452
|
</div>
|
|
7480
7453
|
</div>
|
|
7481
7454
|
</div>
|
|
@@ -7485,7 +7458,7 @@ var _h = Object.defineProperty, Sh = Object.getOwnPropertyDescriptor, De = (e, t
|
|
|
7485
7458
|
(o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
|
|
7486
7459
|
return r && i && _h(t, s, i), i;
|
|
7487
7460
|
};
|
|
7488
|
-
let ne = class extends
|
|
7461
|
+
let ne = class extends Mi(j) {
|
|
7489
7462
|
constructor() {
|
|
7490
7463
|
super(...arguments), this.subscriptions = [], this._searchTimeout = null, this.maximized = !1, this.searchQuery = "";
|
|
7491
7464
|
}
|
|
@@ -7523,7 +7496,7 @@ let ne = class extends Fi(j) {
|
|
|
7523
7496
|
this.subscriptions.forEach((e) => e.dispose());
|
|
7524
7497
|
}
|
|
7525
7498
|
_handleSelectDate(e) {
|
|
7526
|
-
const t =
|
|
7499
|
+
const t = $o(e, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
7527
7500
|
Ys(t) && this.scrollToClosestDate(t);
|
|
7528
7501
|
}
|
|
7529
7502
|
_handleSearchChange(e) {
|
|
@@ -7544,7 +7517,7 @@ let ne = class extends Fi(j) {
|
|
|
7544
7517
|
}
|
|
7545
7518
|
};
|
|
7546
7519
|
ne.styles = W`
|
|
7547
|
-
${L(
|
|
7520
|
+
${L(bh)}
|
|
7548
7521
|
`;
|
|
7549
7522
|
De([
|
|
7550
7523
|
Z({ type: Boolean, reflect: !0 })
|
|
@@ -7581,11 +7554,11 @@ const xi = "activity-history-importer", Ch = (e) => {
|
|
|
7581
7554
|
e.regionManager.removeView(e.regionManager.regions.clinicalMonitoring.content, e.pluginInfo.pluginId), e.regionManager.removeView(e.regionManager.regions.shell.importDataActivityHistory, xi);
|
|
7582
7555
|
}, Ih = (e) => {
|
|
7583
7556
|
Lu(e);
|
|
7584
|
-
},
|
|
7557
|
+
}, Th = () => {
|
|
7585
7558
|
Wu();
|
|
7586
|
-
}, Oh = async (e) => (wr(e), Ch(e), await
|
|
7559
|
+
}, Oh = async (e) => (wr(e), Ch(e), await vl(e), al(e), Ih(e), Promise.resolve()), Mh = () => (wr(null), Th(), Dh(), ll(), Promise.resolve());
|
|
7587
7560
|
export {
|
|
7588
|
-
|
|
7561
|
+
Mh as dispose,
|
|
7589
7562
|
Oh as initialize
|
|
7590
7563
|
};
|
|
7591
|
-
//# sourceMappingURL=plugin-
|
|
7564
|
+
//# sourceMappingURL=plugin-B5E6LZ4X.js.map
|