@uxland/primary-shell 7.46.5 → 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.
Files changed (45) hide show
  1. package/dist/{component-k6kJh8kr.js → component-Bt_gBs5e.js} +2 -2
  2. package/dist/{component-k6kJh8kr.js.map → component-Bt_gBs5e.js.map} +1 -1
  3. package/dist/index-8n9_rIYI.js +43971 -0
  4. package/dist/index-8n9_rIYI.js.map +1 -0
  5. package/dist/index.js +16 -20
  6. package/dist/index.umd.cjs +5900 -7599
  7. package/dist/index.umd.cjs.map +1 -1
  8. package/dist/{plugin-B_mTXVZ2.js → plugin-B5E6LZ4X.js} +833 -860
  9. package/dist/{plugin-B_mTXVZ2.js.map → plugin-B5E6LZ4X.js.map} +1 -1
  10. package/dist/primary/shell/src/api/api.d.ts +0 -2
  11. package/dist/primary/shell/src/api/interaction-service/interaction-service-impl.d.ts +1 -1
  12. package/dist/primary/shell/src/api/region-manager/regions.d.ts +0 -1
  13. package/dist/primary/shell/src/features/exit/handler.d.ts +0 -1
  14. package/dist/primary/shell/src/index.d.ts +0 -1
  15. package/dist/primary/shell/src/locales.d.ts +0 -4
  16. package/dist/styles.css +1 -1
  17. package/package.json +11 -11
  18. package/src/UI/components/bootstrapper.ts +0 -2
  19. package/src/UI/components/primaria-shell/shell-header/template.ts +6 -14
  20. package/src/UI/components/primaria-shell/template.ts +5 -5
  21. package/src/UI/shared-components/primaria-character-limit-badge/primaria-character-limit-badge.ts +2 -2
  22. package/src/UI/shared-components/primaria-nav-tree-menu/template.ts +1 -1
  23. package/src/api/api.ts +2 -6
  24. package/src/api/interaction-service/interaction-service-impl.tsx +20 -34
  25. package/src/api/pdf-viewer-manager/pdf-visor/pdf-selector/template.ts +6 -8
  26. package/src/api/region-manager/regions.ts +1 -6
  27. package/src/features/exit/handler.test.ts +0 -60
  28. package/src/features/exit/handler.ts +0 -23
  29. package/src/index.ts +2 -1
  30. package/src/locales.ts +0 -4
  31. package/dist/index-s-pcmNUD.js +0 -46127
  32. package/dist/index-s-pcmNUD.js.map +0 -1
  33. package/dist/primary/shell/src/UI/components/quick-actions-menu/quick-actions-menu.d.ts +0 -8
  34. package/dist/primary/shell/src/UI/components/quick-actions-menu/template.d.ts +0 -2
  35. package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/component.d.ts +0 -9
  36. package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/template.d.ts +0 -2
  37. package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-manager.d.ts +0 -26
  38. package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-manager.test.d.ts +0 -1
  39. package/src/UI/components/quick-actions-menu/quick-actions-menu.ts +0 -54
  40. package/src/UI/components/quick-actions-menu/template.ts +0 -10
  41. package/src/api/plugin-busy-manager/plugin-busy-list/component.ts +0 -16
  42. package/src/api/plugin-busy-manager/plugin-busy-list/styles.css +0 -27
  43. package/src/api/plugin-busy-manager/plugin-busy-list/template.ts +0 -20
  44. package/src/api/plugin-busy-manager/plugin-busy-manager.test.ts +0 -72
  45. package/src/api/plugin-busy-manager/plugin-busy-manager.ts +0 -57
@@ -1,16 +1,16 @@
1
- import { t as P, i as pt, n as Z, C as Si, g as Ci, a as Ze, D as M, k as h, r as L, b as W, h as j, c as Y, Q as le, d as et, e as oe, f as Di, j as Ii, l as $i, m as Ti, o as Gs, p as Xt, q as Ei, P as Oi } from "./index-s-pcmNUD.js";
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 T(e, t) {
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) ? T(e, NaN) : (t && s.setDate(s.getDate() + t), s);
8
+ return isNaN(t) ? E(e, NaN) : (t && s.setDate(s.getDate() + t), s);
9
9
  }
10
- const Ws = 6048e5, Fi = 864e5, Mi = 6e4, Pi = 36e5, Ai = 1e3;
11
- let ki = {};
10
+ const Ws = 6048e5, Fi = 864e5, Pi = 6e4, Ai = 36e5, ki = 1e3;
11
+ let Ri = {};
12
12
  function Re() {
13
- return ki;
13
+ return Ri;
14
14
  }
15
15
  function he(e, t) {
16
16
  const s = Re(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? s.weekStartsOn ?? s.locale?.options?.weekStartsOn ?? 0, i = P(e), n = i.getDay(), o = (n < r ? 7 : 0) + n - r;
@@ -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 = T(e, 0);
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 = T(e, 0);
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;
@@ -45,28 +45,28 @@ function st(e) {
45
45
  );
46
46
  return s.setUTCFullYear(t.getFullYear()), +e - +s;
47
47
  }
48
- function Ri(e, t) {
48
+ function Hi(e, t) {
49
49
  const s = tt(e), r = tt(t), i = +s - st(s), n = +r - st(r);
50
50
  return Math.round((i - n) / Fi);
51
51
  }
52
- function Hi(e) {
53
- const t = js(e), s = T(e, 0);
52
+ function zi(e) {
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
- function zi(e) {
56
+ function Vi(e) {
57
57
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
58
58
  }
59
- function Vi(e) {
60
- if (!zi(e) && typeof e != "number")
59
+ function Ys(e) {
60
+ if (!Vi(e) && typeof e != "number")
61
61
  return !1;
62
62
  const t = P(e);
63
63
  return !isNaN(Number(t));
64
64
  }
65
65
  function Ni(e) {
66
- const t = P(e), s = T(e, 0);
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 Bi = {
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
- }, qi = (e, t, s) => {
131
+ }, Gi = (e, t, s) => {
132
132
  let r;
133
- const i = Bi[e];
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 Tt(e) {
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 Gi = {
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: Tt({
159
- formats: Gi,
158
+ date: Et({
159
+ formats: Bi,
160
160
  defaultWidth: "full"
161
161
  }),
162
- time: Tt({
162
+ time: Et({
163
163
  formats: Li,
164
164
  defaultWidth: "full"
165
165
  }),
166
- dateTime: Tt({
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 Be(e) {
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
- }, bn = {
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
- }, vn = {
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: Be({
457
+ era: qe({
458
458
  matchPatterns: cn,
459
459
  defaultMatchWidth: "wide",
460
460
  parsePatterns: dn,
461
461
  defaultParseWidth: "any"
462
462
  }),
463
- quarter: Be({
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: Be({
470
+ month: qe({
471
471
  matchPatterns: fn,
472
472
  defaultMatchWidth: "wide",
473
473
  parsePatterns: pn,
474
474
  defaultParseWidth: "any"
475
475
  }),
476
- day: Be({
476
+ day: qe({
477
477
  matchPatterns: mn,
478
478
  defaultMatchWidth: "wide",
479
479
  parsePatterns: gn,
480
480
  defaultParseWidth: "any"
481
481
  }),
482
- dayPeriod: Be({
482
+ dayPeriod: qe({
483
483
  matchPatterns: yn,
484
484
  defaultMatchWidth: "any",
485
- parsePatterns: bn,
485
+ parsePatterns: vn,
486
486
  defaultParseWidth: "any"
487
487
  })
488
- }, Ys = {
488
+ }, Us = {
489
489
  code: "en-US",
490
- formatDistance: qi,
490
+ formatDistance: Gi,
491
491
  formatLong: ji,
492
492
  formatRelative: Ui,
493
493
  localize: sn,
494
- match: vn,
494
+ match: bn,
495
495
  options: {
496
496
  weekStartsOn: 0,
497
497
  firstWeekContainsDate: 1
@@ -499,25 +499,25 @@ const an = /^(\d+)(th|st|nd|rd)?/i, ln = /\d+/i, cn = {
499
499
  };
500
500
  function wn(e) {
501
501
  const t = P(e);
502
- return Ri(t, Ni(t)) + 1;
502
+ return Hi(t, Ni(t)) + 1;
503
503
  }
504
- function Us(e) {
505
- const t = P(e), s = +Oe(t) - +Hi(t);
504
+ function Qs(e) {
505
+ const t = P(e), s = +Oe(t) - +zi(t);
506
506
  return Math.round(s / Ws) + 1;
507
507
  }
508
508
  function Kt(e, t) {
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 = T(e, 0);
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 = T(e, 0);
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 = T(e, 0);
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
- function Qs(e, t) {
520
+ function Xs(e, t) {
521
521
  const s = P(e), r = +he(s, t) - +xn(s, t);
522
522
  return Math.round(r / Ws) + 1;
523
523
  }
@@ -769,12 +769,12 @@ const ue = {
769
769
  },
770
770
  // Local week of year
771
771
  w: function(e, t, s, r) {
772
- const i = Qs(e, r);
772
+ const i = Xs(e, r);
773
773
  return t === "wo" ? s.ordinalNumber(i, { unit: "week" }) : S(i, t.length);
774
774
  },
775
775
  // ISO week of year
776
776
  I: function(e, t, s) {
777
- const r = Us(e);
777
+ const r = Qs(e);
778
778
  return t === "Io" ? s.ordinalNumber(r, { unit: "week" }) : S(r, t.length);
779
779
  },
780
780
  // Day of the month
@@ -1061,13 +1061,13 @@ const ue = {
1061
1061
  switch (t) {
1062
1062
  // Hours and optional minutes
1063
1063
  case "X":
1064
- return vs(r);
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 ve(r);
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 ve(r, ":");
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 vs(r);
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 ve(r);
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 ve(r, ":");
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" + bs(r, ":");
1112
+ return "GMT" + vs(r, ":");
1113
1113
  // Long
1114
1114
  case "OOOO":
1115
1115
  default:
1116
- return "GMT" + ve(r, ":");
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" + bs(r, ":");
1127
+ return "GMT" + vs(r, ":");
1128
1128
  // Long
1129
1129
  case "zzzz":
1130
1130
  default:
1131
- return "GMT" + ve(r, ":");
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 bs(e, t = "") {
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 vs(e, t) {
1150
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + S(Math.abs(e) / 60, 2) : ve(e, t);
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 ve(e, t = "") {
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
  }
@@ -1165,7 +1165,7 @@ const ws = (e, t) => {
1165
1165
  default:
1166
1166
  return t.date({ width: "full" });
1167
1167
  }
1168
- }, Xs = (e, t) => {
1168
+ }, Ks = (e, t) => {
1169
1169
  switch (e) {
1170
1170
  case "p":
1171
1171
  return t.time({ width: "short" });
@@ -1197,15 +1197,15 @@ const ws = (e, t) => {
1197
1197
  n = t.dateTime({ width: "full" });
1198
1198
  break;
1199
1199
  }
1200
- return n.replace("{{date}}", ws(r, t)).replace("{{time}}", Xs(i, t));
1200
+ return n.replace("{{date}}", ws(r, t)).replace("{{time}}", Ks(i, t));
1201
1201
  }, Pt = {
1202
- p: Xs,
1202
+ p: Ks,
1203
1203
  P: _n
1204
1204
  }, Sn = /^D+$/, Cn = /^Y+$/, Dn = ["D", "DD", "YY", "YYYY"];
1205
- function Ks(e) {
1205
+ function Js(e) {
1206
1206
  return Sn.test(e);
1207
1207
  }
1208
- function Js(e) {
1208
+ function Zs(e) {
1209
1209
  return Cn.test(e);
1210
1210
  }
1211
1211
  function At(e, t, s) {
@@ -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 $n = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Tn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, En = /^'([^]*?)'?$/, On = /''/g, Fn = /[a-zA-Z]/;
1220
- function Zs(e, t, s) {
1221
- const r = Re(), i = r.locale ?? Ys, n = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = P(e);
1222
- if (!Vi(a))
1219
+ const Tn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, En = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, $n = /^'([^]*?)'?$/, On = /''/g, Mn = /[a-zA-Z]/;
1220
+ function er(e, t, s) {
1221
+ const r = Re(), i = r.locale ?? Us, n = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = P(e);
1222
+ if (!Ys(a))
1223
1223
  throw new RangeError("Invalid time value");
1224
- let l = t.match(Tn).map((c) => {
1224
+ let l = t.match(En).map((c) => {
1225
1225
  const u = c[0];
1226
1226
  if (u === "p" || u === "P") {
1227
- const b = Pt[u];
1228
- return b(c, i.formatLong);
1227
+ const v = Pt[u];
1228
+ return v(c, i.formatLong);
1229
1229
  }
1230
1230
  return c;
1231
- }).join("").match($n).map((c) => {
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: Mn(c) };
1236
+ return { isToken: !1, value: Fn(c) };
1237
1237
  if (ys[u])
1238
1238
  return { isToken: !0, value: c };
1239
- if (u.match(Fn))
1239
+ if (u.match(Mn))
1240
1240
  throw new RangeError(
1241
1241
  "Format string contains an unescaped latin alphabet character `" + u + "`"
1242
1242
  );
@@ -1251,13 +1251,13 @@ function Zs(e, t, s) {
1251
1251
  return l.map((c) => {
1252
1252
  if (!c.isToken) return c.value;
1253
1253
  const u = c.value;
1254
- (Js(u) || Ks(u)) && At(u, t, String(e));
1255
- const b = ys[u[0]];
1256
- return b(a, u, i.localize, d);
1254
+ (Zs(u) || Js(u)) && At(u, t, String(e));
1255
+ const v = ys[u[0]];
1256
+ return v(a, u, i.localize, d);
1257
1257
  }).join("");
1258
1258
  }
1259
- function Mn(e) {
1260
- const t = e.match(En);
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 ? T(t, 0) : new t(0);
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(),
@@ -1281,13 +1281,13 @@ function kn(e, t) {
1281
1281
  ), s;
1282
1282
  }
1283
1283
  const Rn = 10;
1284
- class er {
1284
+ class tr {
1285
1285
  subPriority = 0;
1286
1286
  validate(t, s) {
1287
1287
  return !0;
1288
1288
  }
1289
1289
  }
1290
- class Hn extends er {
1290
+ class Hn extends tr {
1291
1291
  constructor(t, s, r, i, n) {
1292
1292
  super(), this.value = t, this.validateValue = s, this.setValue = r, this.priority = i, n && (this.subPriority = n);
1293
1293
  }
@@ -1298,11 +1298,11 @@ class Hn extends er {
1298
1298
  return this.setValue(t, s, this.value, r);
1299
1299
  }
1300
1300
  }
1301
- class zn extends er {
1301
+ class zn extends tr {
1302
1302
  priority = Rn;
1303
1303
  subPriority = -1;
1304
1304
  set(t, s) {
1305
- return s.timestampIsSet ? t : T(t, kn(t, Date));
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 E = {
1349
+ const $ = {
1350
1350
  month: /^(1[0-2]|0?\d)/,
1351
1351
  // 0 to 12
1352
1352
  date: /^(3[0-1]|[0-2]?\d)/,
@@ -1415,23 +1415,23 @@ function se(e, t) {
1415
1415
  };
1416
1416
  const r = s[1] === "+" ? 1 : -1, i = s[2] ? parseInt(s[2], 10) : 0, n = s[3] ? parseInt(s[3], 10) : 0, o = s[5] ? parseInt(s[5], 10) : 0;
1417
1417
  return {
1418
- value: r * (i * Pi + n * Mi + o * Ai),
1418
+ value: r * (i * Ai + n * Pi + o * ki),
1419
1419
  rest: t.slice(s[0].length)
1420
1420
  };
1421
1421
  }
1422
- function tr(e) {
1423
- return I(E.anyDigitsSigned, e);
1422
+ function sr(e) {
1423
+ return I($.anyDigitsSigned, e);
1424
1424
  }
1425
- function $(e, t) {
1425
+ function T(e, t) {
1426
1426
  switch (e) {
1427
1427
  case 1:
1428
- return I(E.singleDigit, t);
1428
+ return I($.singleDigit, t);
1429
1429
  case 2:
1430
- return I(E.twoDigits, t);
1430
+ return I($.twoDigits, t);
1431
1431
  case 3:
1432
- return I(E.threeDigits, t);
1432
+ return I($.threeDigits, t);
1433
1433
  case 4:
1434
- return I(E.fourDigits, t);
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(E.singleDigitSigned, t);
1442
+ return I($.singleDigitSigned, t);
1443
1443
  case 2:
1444
- return I(E.twoDigitsSigned, t);
1444
+ return I($.twoDigitsSigned, t);
1445
1445
  case 3:
1446
- return I(E.threeDigitsSigned, t);
1446
+ return I($.threeDigitsSigned, t);
1447
1447
  case 4:
1448
- return I(E.fourDigitsSigned, t);
1448
+ return I($.fourDigitsSigned, t);
1449
1449
  default:
1450
1450
  return I(new RegExp("^-?\\d{1," + e + "}"), t);
1451
1451
  }
@@ -1467,7 +1467,7 @@ function Jt(e) {
1467
1467
  return 0;
1468
1468
  }
1469
1469
  }
1470
- function sr(e, t) {
1470
+ function rr(e, t) {
1471
1471
  const s = t > 0, r = s ? t : 1 - t;
1472
1472
  let i;
1473
1473
  if (r <= 50)
@@ -1478,7 +1478,7 @@ function sr(e, t) {
1478
1478
  }
1479
1479
  return s ? i : 1 - i;
1480
1480
  }
1481
- function rr(e) {
1481
+ function ir(e) {
1482
1482
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
1483
1483
  }
1484
1484
  class Nn extends _ {
@@ -1491,7 +1491,7 @@ class Nn extends _ {
1491
1491
  });
1492
1492
  switch (s) {
1493
1493
  case "y":
1494
- return O($(4, t), i);
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($(s.length, t), i);
1503
+ return O(T(s.length, t), i);
1504
1504
  }
1505
1505
  }
1506
1506
  validate(t, s) {
@@ -1509,7 +1509,7 @@ class Nn extends _ {
1509
1509
  set(t, s, r) {
1510
1510
  const i = t.getFullYear();
1511
1511
  if (r.isTwoDigitYear) {
1512
- const o = sr(
1512
+ const o = rr(
1513
1513
  r.year,
1514
1514
  i
1515
1515
  );
@@ -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 Bn extends _ {
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($(4, t), i);
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($(s.length, t), i);
1540
+ return O(T(s.length, t), i);
1541
1541
  }
1542
1542
  }
1543
1543
  validate(t, s) {
@@ -1546,7 +1546,7 @@ class Bn extends _ {
1546
1546
  set(t, s, r, i) {
1547
1547
  const n = Kt(t, i);
1548
1548
  if (r.isTwoDigitYear) {
1549
- const a = sr(
1549
+ const a = rr(
1550
1550
  r.year,
1551
1551
  n
1552
1552
  );
@@ -1575,13 +1575,13 @@ class Bn extends _ {
1575
1575
  "T"
1576
1576
  ];
1577
1577
  }
1578
- class qn extends _ {
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 = T(t, 0);
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 Gn extends _ {
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 $(s.length, t);
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 $(s.length, t);
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(E.month, t),
1766
+ I($.month, t),
1767
1767
  i
1768
1768
  );
1769
1769
  // 01, 02, ..., 12
1770
1770
  case "MM":
1771
- return O($(2, t), i);
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(E.month, t),
1816
+ I($.month, t),
1817
1817
  i
1818
1818
  );
1819
1819
  // 01, 02, ..., 12
1820
1820
  case "LL":
1821
- return O($(2, t), i);
1821
+ return O(T(2, t), i);
1822
1822
  // 1st, 2nd, ..., 12th
1823
1823
  case "Lo":
1824
1824
  return O(
@@ -1871,7 +1871,7 @@ class Yn extends _ {
1871
1871
  ];
1872
1872
  }
1873
1873
  function Un(e, t, s) {
1874
- const r = P(e), i = Qs(r, s) - t;
1874
+ const r = P(e), i = Xs(r, s) - t;
1875
1875
  return r.setDate(r.getDate() - i * 7), r;
1876
1876
  }
1877
1877
  class Qn extends _ {
@@ -1879,11 +1879,11 @@ class Qn extends _ {
1879
1879
  parse(t, s, r) {
1880
1880
  switch (s) {
1881
1881
  case "w":
1882
- return I(E.week, t);
1882
+ return I($.week, t);
1883
1883
  case "wo":
1884
1884
  return r.ordinalNumber(t, { unit: "week" });
1885
1885
  default:
1886
- return $(s.length, t);
1886
+ return T(s.length, t);
1887
1887
  }
1888
1888
  }
1889
1889
  validate(t, s) {
@@ -1909,7 +1909,7 @@ class Qn extends _ {
1909
1909
  ];
1910
1910
  }
1911
1911
  function Xn(e, t) {
1912
- const s = P(e), r = Us(s) - t;
1912
+ const s = P(e), r = Qs(s) - t;
1913
1913
  return s.setDate(s.getDate() - r * 7), s;
1914
1914
  }
1915
1915
  class Kn extends _ {
@@ -1917,11 +1917,11 @@ class Kn extends _ {
1917
1917
  parse(t, s, r) {
1918
1918
  switch (s) {
1919
1919
  case "I":
1920
- return I(E.week, t);
1920
+ return I($.week, t);
1921
1921
  case "Io":
1922
1922
  return r.ordinalNumber(t, { unit: "week" });
1923
1923
  default:
1924
- return $(s.length, t);
1924
+ return T(s.length, t);
1925
1925
  }
1926
1926
  }
1927
1927
  validate(t, s) {
@@ -1967,15 +1967,15 @@ class eo extends _ {
1967
1967
  parse(t, s, r) {
1968
1968
  switch (s) {
1969
1969
  case "d":
1970
- return I(E.date, t);
1970
+ return I($.date, t);
1971
1971
  case "do":
1972
1972
  return r.ordinalNumber(t, { unit: "date" });
1973
1973
  default:
1974
- return $(s.length, t);
1974
+ return T(s.length, t);
1975
1975
  }
1976
1976
  }
1977
1977
  validate(t, s) {
1978
- const r = t.getFullYear(), i = rr(r), n = t.getMonth();
1978
+ const r = t.getFullYear(), i = ir(r), n = t.getMonth();
1979
1979
  return i ? s >= 1 && s <= Zn[n] : s >= 1 && s <= Jn[n];
1980
1980
  }
1981
1981
  set(t, s, r) {
@@ -2003,16 +2003,16 @@ class to extends _ {
2003
2003
  switch (s) {
2004
2004
  case "D":
2005
2005
  case "DD":
2006
- return I(E.dayOfYear, t);
2006
+ return I($.dayOfYear, t);
2007
2007
  case "Do":
2008
2008
  return r.ordinalNumber(t, { unit: "date" });
2009
2009
  default:
2010
- return $(s.length, t);
2010
+ return T(s.length, t);
2011
2011
  }
2012
2012
  }
2013
2013
  validate(t, s) {
2014
2014
  const r = t.getFullYear();
2015
- return rr(r) ? s >= 1 && s <= 366 : s >= 1 && s <= 365;
2015
+ return ir(r) ? s >= 1 && s <= 366 : s >= 1 && s <= 365;
2016
2016
  }
2017
2017
  set(t, s, r) {
2018
2018
  return t.setMonth(0, r), t.setHours(0, 0, 0, 0), t;
@@ -2088,7 +2088,7 @@ class ro extends _ {
2088
2088
  // 3
2089
2089
  case "e":
2090
2090
  case "ee":
2091
- return O($(s.length, t), n);
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($(s.length, t), n);
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 $(s.length, t);
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(E.hour12h, t);
2432
+ return I($.hour12h, t);
2433
2433
  case "ho":
2434
2434
  return r.ordinalNumber(t, { unit: "hour" });
2435
2435
  default:
2436
- return $(s.length, t);
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(E.hour23h, t);
2453
+ return I($.hour23h, t);
2454
2454
  case "Ho":
2455
2455
  return r.ordinalNumber(t, { unit: "hour" });
2456
2456
  default:
2457
- return $(s.length, t);
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(E.hour11h, t);
2473
+ return I($.hour11h, t);
2474
2474
  case "Ko":
2475
2475
  return r.ordinalNumber(t, { unit: "hour" });
2476
2476
  default:
2477
- return $(s.length, t);
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(E.hour24h, t);
2493
+ return I($.hour24h, t);
2494
2494
  case "ko":
2495
2495
  return r.ordinalNumber(t, { unit: "hour" });
2496
2496
  default:
2497
- return $(s.length, t);
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(E.minute, t);
2514
+ return I($.minute, t);
2515
2515
  case "mo":
2516
2516
  return r.ordinalNumber(t, { unit: "minute" });
2517
2517
  default:
2518
- return $(s.length, t);
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(E.second, t);
2534
+ return I($.second, t);
2535
2535
  case "so":
2536
2536
  return r.ordinalNumber(t, { unit: "second" });
2537
2537
  default:
2538
- return $(s.length, t);
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($(s.length, t), r);
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 bo extends _ {
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 : 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 vo extends _ {
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 : T(
2621
+ return s.timestampIsSet ? t : E(
2622
2622
  t,
2623
2623
  t.getTime() - st(t) - r
2624
2624
  );
@@ -2628,29 +2628,29 @@ class vo extends _ {
2628
2628
  class wo extends _ {
2629
2629
  priority = 40;
2630
2630
  parse(t) {
2631
- return tr(t);
2631
+ return sr(t);
2632
2632
  }
2633
2633
  set(t, s, r) {
2634
- return [T(t, r * 1e3), { timestampIsSet: !0 }];
2634
+ return [E(t, r * 1e3), { timestampIsSet: !0 }];
2635
2635
  }
2636
2636
  incompatibleTokens = "*";
2637
2637
  }
2638
2638
  class xo extends _ {
2639
2639
  priority = 20;
2640
2640
  parse(t) {
2641
- return tr(t);
2641
+ return sr(t);
2642
2642
  }
2643
2643
  set(t, s, r) {
2644
- return [T(t, r), { timestampIsSet: !0 }];
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 Bn(),
2652
- R: new qn(),
2653
- u: new Gn(),
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,13 +2673,13 @@ const _o = {
2673
2673
  m: new mo(),
2674
2674
  s: new go(),
2675
2675
  S: new yo(),
2676
- X: new bo(),
2677
- x: new vo(),
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, $o = /\S/, To = /[a-zA-Z]/;
2681
- function Eo(e, t, s, r) {
2682
- const i = Pn(), n = i.locale ?? Ys, o = i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, a = i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, l = {
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
+ const i = Pn(), n = i.locale ?? Us, o = i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, a = i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, l = {
2683
2683
  firstWeekContainsDate: o,
2684
2684
  weekStartsOn: a,
2685
2685
  locale: n
@@ -2692,13 +2692,13 @@ function Eo(e, t, s, r) {
2692
2692
  return m;
2693
2693
  }).join("").match(So), u = [];
2694
2694
  for (let m of c) {
2695
- Js(m) && At(m, t, e), Ks(m) && At(m, t, e);
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: v } = w;
2699
- if (Array.isArray(v)) {
2698
+ const { incompatibleTokens: b } = w;
2699
+ if (Array.isArray(b)) {
2700
2700
  const D = u.find(
2701
- (F) => v.includes(F.token) || F.token === p
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 T(s, NaN);
2719
+ return E(s, NaN);
2720
2720
  d.push(x.setter), e = x.rest;
2721
2721
  } else {
2722
- if (p.match(To))
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 T(s, NaN);
2729
+ return E(s, NaN);
2730
2730
  }
2731
2731
  }
2732
- if (e.length > 0 && $o.test(e))
2733
- return T(s, NaN);
2734
- const b = d.map((m) => m.priority).sort((m, p) => p - m).filter((m, p, w) => w.indexOf(m) === p).map(
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 T(s, NaN);
2740
- const g = {};
2741
- for (const m of b) {
2739
+ return E(s, NaN);
2740
+ const y = {};
2741
+ for (const m of v) {
2742
2742
  if (!m.validate(f, l))
2743
- return T(s, NaN);
2744
- const p = m.set(f, g, l);
2745
- Array.isArray(p) ? (f = p[0], Object.assign(g, p[1])) : f = p;
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 T(s, f);
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 Fo = (e, t) => (s, r) => {
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,9 +2757,9 @@ const Fo = (e, t) => (s, r) => {
2757
2757
  t.isBound(r) && t.unbind(r), i.dispose();
2758
2758
  }
2759
2759
  };
2760
- }, Mo = (e, t) => ({
2761
- registerRequest: Fo(e, t)
2762
- }), ir = () => {
2760
+ }, Fo = (e, t) => ({
2761
+ registerRequest: Mo(e, t)
2762
+ }), nr = () => {
2763
2763
  try {
2764
2764
  if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
2765
2765
  return crypto.randomUUID();
@@ -2813,7 +2813,7 @@ function ko(e) {
2813
2813
  };
2814
2814
  };
2815
2815
  }
2816
- var Fe = /* @__PURE__ */ ((e) => (e.Switch = "switch", e.Checkbox = "checkbox", e.Dropdown = "dropdown", e))(Fe || {});
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, Et = () => Math.random().toString(36).substring(7).split("").join("."), Ho = {
2825
- INIT: `@@redux/INIT${/* @__PURE__ */ Et()}`,
2826
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Et()}`,
2827
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Et()}`
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)
@@ -2834,7 +2834,7 @@ function es(e) {
2834
2834
  t = Object.getPrototypeOf(t);
2835
2835
  return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
2836
2836
  }
2837
- function nr(e, t, s) {
2837
+ function or(e, t, s) {
2838
2838
  if (typeof e != "function")
2839
2839
  throw new Error(H(2));
2840
2840
  if (typeof t == "function" && typeof s == "function" || typeof s == "function" && typeof arguments[3] == "function")
@@ -2842,7 +2842,7 @@ function nr(e, t, s) {
2842
2842
  if (typeof t == "function" && typeof s > "u" && (s = t, t = void 0), typeof s < "u") {
2843
2843
  if (typeof s != "function")
2844
2844
  throw new Error(H(1));
2845
- return s(nr)(e, t);
2845
+ return s(or)(e, t);
2846
2846
  }
2847
2847
  let r = e, i = t, n = /* @__PURE__ */ new Map(), o = n, a = 0, l = !1;
2848
2848
  function d() {
@@ -2862,16 +2862,16 @@ function nr(e, t, s) {
2862
2862
  throw new Error(H(5));
2863
2863
  let w = !0;
2864
2864
  d();
2865
- const v = a++;
2866
- return o.set(v, p), function() {
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(v), n = null;
2870
+ w = !1, d(), o.delete(b), n = null;
2871
2871
  }
2872
2872
  };
2873
2873
  }
2874
- function b(p) {
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 nr(e, t, s) {
2885
2885
  } finally {
2886
2886
  l = !1;
2887
2887
  }
2888
- return (n = o).forEach((v) => {
2889
- v();
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, b({
2895
+ r = p, v({
2896
2896
  type: it.REPLACE
2897
2897
  });
2898
2898
  }
2899
- function g() {
2899
+ function y() {
2900
2900
  const p = u;
2901
2901
  return {
2902
2902
  /**
@@ -2910,12 +2910,12 @@ function nr(e, t, s) {
2910
2910
  subscribe(w) {
2911
2911
  if (typeof w != "object" || w === null)
2912
2912
  throw new Error(H(11));
2913
- function v() {
2913
+ function b() {
2914
2914
  const D = w;
2915
2915
  D.next && D.next(c());
2916
2916
  }
2917
- return v(), {
2918
- unsubscribe: p(v)
2917
+ return b(), {
2918
+ unsubscribe: p(b)
2919
2919
  };
2920
2920
  },
2921
2921
  [xs]() {
@@ -2923,14 +2923,14 @@ function nr(e, t, s) {
2923
2923
  }
2924
2924
  };
2925
2925
  }
2926
- return b({
2926
+ return v({
2927
2927
  type: it.INIT
2928
2928
  }), {
2929
- dispatch: b,
2929
+ dispatch: v,
2930
2930
  subscribe: u,
2931
2931
  getState: c,
2932
2932
  replaceReducer: f,
2933
- [xs]: g
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], b = s[u], f = o[u], g = b(f, a);
2969
- if (typeof g > "u")
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] = g, l = l || g !== f;
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 Bo(e) {
2995
+ function qo(e) {
2996
2996
  return es(e) && "type" in e && typeof e.type == "string";
2997
2997
  }
2998
- var or = Symbol.for("immer-nothing"), _s = Symbol.for("immer-draftable"), q = Symbol.for("immer-state");
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 Me = Object.getPrototypeOf;
3004
+ var Fe = Object.getPrototypeOf;
3005
3005
  function xe(e) {
3006
- return !!e && !!e[q];
3006
+ return !!e && !!e[G];
3007
3007
  }
3008
3008
  function de(e) {
3009
- return e ? ar(e) || Array.isArray(e) || !!e[_s] || !!e.constructor?.[_s] || gt(e) || yt(e) : !1;
3009
+ return e ? lr(e) || Array.isArray(e) || !!e[_s] || !!e.constructor?.[_s] || gt(e) || yt(e) : !1;
3010
3010
  }
3011
- var qo = Object.prototype.constructor.toString();
3012
- function ar(e) {
3011
+ var Go = Object.prototype.constructor.toString();
3012
+ function lr(e) {
3013
3013
  if (!e || typeof e != "object")
3014
3014
  return !1;
3015
- const t = Me(e);
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) === qo;
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,17 +3024,17 @@ 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[q];
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) {
3031
3031
  return mt(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
3032
3032
  }
3033
- function lr(e, t, s) {
3033
+ function cr(e, t, s) {
3034
3034
  const r = mt(e);
3035
3035
  r === 2 ? e.set(t, s) : r === 3 ? e.add(s) : e[t] = s;
3036
3036
  }
3037
- function Go(e, t) {
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) {
@@ -3053,10 +3053,10 @@ function Rt(e, t) {
3053
3053
  return new Set(e);
3054
3054
  if (Array.isArray(e))
3055
3055
  return Array.prototype.slice.call(e);
3056
- const s = ar(e);
3056
+ const s = lr(e);
3057
3057
  if (t === !0 || t === "class_only" && !s) {
3058
3058
  const r = Object.getOwnPropertyDescriptors(e);
3059
- delete r[q];
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(Me(e), r);
3071
+ return Object.create(Fe(e), r);
3072
3072
  } else {
3073
- const r = Me(e);
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 bt(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;
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 bt(e) {
3086
+ function vt(e) {
3087
3087
  return Object.isFrozen(e);
3088
3088
  }
3089
3089
  var Wo = {};
@@ -3092,7 +3092,7 @@ function _e(e) {
3092
3092
  return t || J(0, e), t;
3093
3093
  }
3094
3094
  var Le;
3095
- function cr() {
3095
+ function dr() {
3096
3096
  return Le;
3097
3097
  }
3098
3098
  function jo(e, t) {
@@ -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[q];
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[q].modified_ && (Ht(t), J(4)), de(e) && (e = at(t, e), t.parent_ || lt(t, e)), t.patches_ && _e("Patches").generateReplacementPatches_(
3129
- s[q].base_,
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
- )) : e = at(t, s, []), Ht(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== or ? e : void 0;
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 (bt(t))
3136
+ if (vt(t))
3137
3137
  return t;
3138
- const r = t[q];
3138
+ const r = t[G];
3139
3139
  if (!r)
3140
3140
  return ot(
3141
3141
  t,
@@ -3165,12 +3165,12 @@ function Is(e, t, s, r, i, n, o) {
3165
3165
  if (xe(i)) {
3166
3166
  const a = n && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
3167
3167
  !kt(t.assigned_, r) ? n.concat(r) : void 0, l = at(e, i, a);
3168
- if (lr(s, r, l), xe(l))
3168
+ if (cr(s, r, l), xe(l))
3169
3169
  e.canAutoFreeze_ = !1;
3170
3170
  else
3171
3171
  return;
3172
3172
  } else o && s.add(i);
3173
- if (de(i) && !bt(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);
@@ -3183,7 +3183,7 @@ function Uo(e, t) {
3183
3183
  const s = Array.isArray(e), r = {
3184
3184
  type_: s ? 1 : 0,
3185
3185
  // Track which produce call this is associated with.
3186
- scope_: t ? t.scope_ : cr(),
3186
+ scope_: t ? t.scope_ : dr(),
3187
3187
  // True for both shallow and deep changes.
3188
3188
  modified_: !1,
3189
3189
  // Used during finalization.
@@ -3210,13 +3210,13 @@ function Uo(e, t) {
3210
3210
  }
3211
3211
  var ss = {
3212
3212
  get(e, t) {
3213
- if (t === q)
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) ? (Ft(e), e.copy_[t] = Nt(r, e)) : r;
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);
@@ -3225,23 +3225,23 @@ var ss = {
3225
3225
  return Reflect.ownKeys(we(e));
3226
3226
  },
3227
3227
  set(e, t, s) {
3228
- const r = dr(we(e), t);
3228
+ const r = ur(we(e), t);
3229
3229
  if (r?.set)
3230
3230
  return r.set.call(e.draft_, s), !0;
3231
3231
  if (!e.modified_) {
3232
- const i = Ot(we(e), t), n = i?.[q];
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 (Go(s, i) && (s !== void 0 || kt(e.base_, t)))
3235
+ if (Bo(s, i) && (s !== void 0 || kt(e.base_, t)))
3236
3236
  return !0;
3237
- Ft(e), Vt(e);
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, Ft(e), Vt(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
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 Me(e.base_);
3261
+ return Fe(e.base_);
3262
3262
  },
3263
3263
  setPrototypeOf() {
3264
3264
  J(12);
@@ -3276,32 +3276,32 @@ 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[q];
3279
+ const s = e[G];
3280
3280
  return (s ? we(s) : e)[t];
3281
3281
  }
3282
3282
  function Qo(e, t, s) {
3283
- const r = dr(t, s);
3283
+ const r = ur(t, s);
3284
3284
  return r ? "value" in r ? r.value : (
3285
3285
  // This is a very special case, if the prop is a getter defined by the
3286
3286
  // prototype, we should invoke it with the draft as context!
3287
3287
  r.get?.call(e.draft_)
3288
3288
  ) : void 0;
3289
3289
  }
3290
- function dr(e, t) {
3290
+ function ur(e, t) {
3291
3291
  if (!(t in e))
3292
3292
  return;
3293
- let s = Me(e);
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 = Me(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 Ft(e) {
3304
+ function Mt(e) {
3305
3305
  e.copy_ || (e.copy_ = Rt(
3306
3306
  e.base_,
3307
3307
  e.scope_.immer_.useStrictShallowCopy_
@@ -3330,7 +3330,7 @@ var Xo = class {
3330
3330
  }
3331
3331
  return Ss(n, r), Ds(i, n);
3332
3332
  } else if (!t || typeof t != "object") {
3333
- if (i = s(t), i === void 0 && (i = t), i === or && (i = void 0), this.autoFreeze_ && ts(i, !0), r) {
3333
+ if (i = s(t), i === void 0 && (i = t), i === ar && (i = void 0), this.autoFreeze_ && ts(i, !0), r) {
3334
3334
  const n = [], o = [];
3335
3335
  _e("Patches").generateReplacementPatches_(t, i, n, o), r(n, o);
3336
3336
  }
@@ -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[q].isManual_ = !0, zt(t), s;
3352
+ return s[G].isManual_ = !0, zt(t), s;
3353
3353
  }
3354
3354
  finishDraft(e, t) {
3355
- const s = e && e[q];
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);
@@ -3392,15 +3392,15 @@ var Xo = class {
3392
3392
  };
3393
3393
  function Nt(e, t) {
3394
3394
  const s = gt(e) ? _e("MapSet").proxyMap_(e, t) : yt(e) ? _e("MapSet").proxySet_(e, t) : Uo(e, t);
3395
- return (t ? t.scope_ : cr()).drafts_.push(s), s;
3395
+ return (t ? t.scope_ : dr()).drafts_.push(s), s;
3396
3396
  }
3397
3397
  function Ko(e) {
3398
- return xe(e) || J(10, e), ur(e);
3398
+ return xe(e) || J(10, e), hr(e);
3399
3399
  }
3400
- function ur(e) {
3401
- if (!de(e) || bt(e))
3400
+ function hr(e) {
3401
+ if (!de(e) || vt(e))
3402
3402
  return e;
3403
- const t = e[q];
3403
+ const t = e[G];
3404
3404
  let s;
3405
3405
  if (t) {
3406
3406
  if (!t.modified_)
@@ -3409,18 +3409,18 @@ function ur(e) {
3409
3409
  } else
3410
3410
  s = Rt(e, !0);
3411
3411
  return ot(s, (r, i) => {
3412
- lr(s, r, ur(i));
3412
+ cr(s, r, hr(i));
3413
3413
  }), t && (t.finalized_ = !1), s;
3414
3414
  }
3415
- var G = new Xo(), hr = G.produce;
3416
- G.produceWithPatches.bind(
3417
- G
3415
+ var B = new Xo(), fr = B.produce;
3416
+ B.produceWithPatches.bind(
3417
+ B
3418
3418
  );
3419
- G.setAutoFreeze.bind(G);
3420
- G.setUseStrictShallowCopy.bind(G);
3421
- G.applyPatches.bind(G);
3422
- G.createDraft.bind(G);
3423
- G.finishDraft.bind(G);
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 $s = (e) => Array.isArray(e) ? e : [e];
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, Ts = 1;
3461
+ }, ia = typeof WeakRef < "u" ? WeakRef : ra, na = 0, Es = 1;
3462
3462
  function Ue() {
3463
3463
  return {
3464
3464
  s: na,
@@ -3467,36 +3467,36 @@ function Ue() {
3467
3467
  p: null
3468
3468
  };
3469
3469
  }
3470
- function fr(e, t = {}) {
3470
+ function pr(e, t = {}) {
3471
3471
  let s = Ue();
3472
3472
  const { resultEqualityCheck: r } = t;
3473
3473
  let i, n = 0;
3474
3474
  function o() {
3475
3475
  let a = s;
3476
3476
  const { length: l } = arguments;
3477
- for (let u = 0, b = l; u < b; u++) {
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 g = a.o;
3481
- g === null && (a.o = g = /* @__PURE__ */ new WeakMap());
3482
- const m = g.get(f);
3483
- m === void 0 ? (a = Ue(), g.set(f, a)) : a = m;
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 g = a.p;
3486
- g === null && (a.p = g = /* @__PURE__ */ new Map());
3487
- const m = g.get(f);
3488
- m === void 0 ? (a = Ue(), g.set(f, a)) : a = m;
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 === Ts)
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 = Ts, d.v = c, c;
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: b = [],
3523
- argsMemoize: f = fr,
3524
- argsMemoizeOptions: g = []
3525
- } = c, m = $s(b), p = $s(g), w = ta(i), v = u(function() {
3522
+ memoizeOptions: v = [],
3523
+ argsMemoize: f = pr,
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 F = sa(
3532
+ const M = sa(
3533
3533
  w,
3534
3534
  arguments
3535
3535
  );
3536
- return a = v.apply(null, F), a;
3536
+ return a = b.apply(null, M), a;
3537
3537
  }, ...p);
3538
3538
  return Object.assign(x, {
3539
3539
  resultFunc: d,
3540
- memoizedResultFunc: v,
3540
+ memoizedResultFunc: b,
3541
3541
  dependencies: w,
3542
3542
  dependencyRecomputations: () => o,
3543
3543
  resetDependencyRecomputations: () => {
@@ -3556,7 +3556,7 @@ function oa(e, ...t) {
3556
3556
  withTypes: () => r
3557
3557
  }), r;
3558
3558
  }
3559
- var A = /* @__PURE__ */ oa(fr), aa = Object.assign(
3559
+ var A = /* @__PURE__ */ oa(pr), aa = Object.assign(
3560
3560
  (e, t = A) => {
3561
3561
  Zo(
3562
3562
  e,
@@ -3572,14 +3572,14 @@ var A = /* @__PURE__ */ oa(fr), aa = Object.assign(
3572
3572
  },
3573
3573
  { withTypes: () => aa }
3574
3574
  );
3575
- function pr(e) {
3575
+ function mr(e) {
3576
3576
  return ({ dispatch: s, getState: r }) => (i) => (n) => typeof n == "function" ? n(s, r, e) : i(n);
3577
3577
  }
3578
- var la = pr(), ca = pr, da = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
3578
+ var la = mr(), ca = mr, da = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
3579
3579
  if (arguments.length !== 0)
3580
3580
  return typeof arguments[0] == "object" ? nt : nt.apply(null, arguments);
3581
3581
  };
3582
- function Es(e, t) {
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) => Bo(r) && r.type === e, s;
3604
+ return s.toString = () => `${e}`, s.type = e, s.match = (r) => qo(r) && r.type === e, s;
3605
3605
  }
3606
- var mr = class qe extends Array {
3606
+ var gr = class Ge extends Array {
3607
3607
  constructor(...t) {
3608
- super(...t), Object.setPrototypeOf(this, qe.prototype);
3608
+ super(...t), Object.setPrototypeOf(this, Ge.prototype);
3609
3609
  }
3610
3610
  static get [Symbol.species]() {
3611
- return qe;
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 qe(...t[0].concat(this)) : new qe(...t.concat(this));
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
- return de(e) ? hr(e, () => {
3621
+ return de(e) ? fr(e, () => {
3622
3622
  }) : e;
3623
3623
  }
3624
- function Fs(e, t, s) {
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) {
@@ -3634,9 +3634,9 @@ var ha = () => function(t) {
3634
3634
  serializableCheck: i = !0,
3635
3635
  actionCreatorCheck: n = !0
3636
3636
  } = t ?? {};
3637
- let o = new mr();
3637
+ let o = new gr();
3638
3638
  return s && (ua(s) ? o.push(la) : o.push(ca(s.extraArgument))), o;
3639
- }, fa = "RTK_autoBatch", Ms = (e) => (t) => {
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 : Ms(10)
3649
- ) : e.type === "callback" ? e.queueNotification : Ms(e.timeout), d = () => {
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(), b = r.subscribe(u);
3656
+ const u = () => i && c(), v = r.subscribe(u);
3657
3657
  return a.add(c), () => {
3658
- b(), a.delete(c);
3658
+ v(), a.delete(c);
3659
3659
  };
3660
3660
  },
3661
3661
  // Override the base `store.dispatch` method so that we can check actions
@@ -3672,7 +3672,7 @@ var ha = () => function(t) {
3672
3672
  const {
3673
3673
  autoBatch: r = !0
3674
3674
  } = s ?? {};
3675
- let i = new mr(e);
3675
+ let i = new gr(e);
3676
3676
  return r && i.push(pa(typeof r == "object" ? r : void 0)), i;
3677
3677
  };
3678
3678
  function ga(e) {
@@ -3699,11 +3699,11 @@ function ga(e) {
3699
3699
  ...typeof i == "object" && i
3700
3700
  }));
3701
3701
  const c = No(...l), u = ma(c);
3702
- let b = typeof o == "function" ? o(u) : u();
3703
- const f = d(...b);
3704
- return nr(a, n, f);
3702
+ let v = typeof o == "function" ? o(u) : u();
3703
+ const f = d(...v);
3704
+ return or(a, n, f);
3705
3705
  }
3706
- function gr(e) {
3706
+ function yr(e) {
3707
3707
  const t = {}, s = [];
3708
3708
  let r;
3709
3709
  const i = {
@@ -3730,8 +3730,8 @@ function gr(e) {
3730
3730
  function ya(e) {
3731
3731
  return typeof e == "function";
3732
3732
  }
3733
- function ba(e, t) {
3734
- let [s, r, i] = gr(t), n;
3733
+ function va(e, t) {
3734
+ let [s, r, i] = yr(t), n;
3735
3735
  if (ya(e))
3736
3736
  n = () => Os(e());
3737
3737
  else {
@@ -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 hr(c, (b) => u(b, l));
3754
+ return fr(c, (v) => u(v, l));
3755
3755
  {
3756
- const b = u(c, l);
3757
- if (b === void 0) {
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 b;
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 va = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
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?.[va];
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(v, x) {
3792
- const D = typeof v == "string" ? v : v.type;
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(v, x) {
3799
+ addMatcher(b, x) {
3800
3800
  return l.sliceMatchers.push({
3801
- matcher: v,
3801
+ matcher: b,
3802
3802
  reducer: x
3803
3803
  }), d;
3804
3804
  },
3805
- exposeAction(v, x) {
3806
- return l.actionCreators[v] = x, d;
3805
+ exposeAction(b, x) {
3806
+ return l.actionCreators[b] = x, d;
3807
3807
  },
3808
- exposeCaseReducer(v, x) {
3809
- return l.sliceCaseReducersByName[v] = x, d;
3808
+ exposeCaseReducer(b, x) {
3809
+ return l.sliceCaseReducersByName[b] = x, d;
3810
3810
  }
3811
3811
  };
3812
- a.forEach((v) => {
3813
- const x = o[v], D = {
3814
- reducerName: v,
3815
- type: wa(i, v),
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) ? $a(D, x, d, t) : Ca(D, x, d);
3818
+ Da(x) ? Ta(D, x, d, t) : Ca(D, x, d);
3819
3819
  });
3820
3820
  function c() {
3821
- const [v = {}, x = [], D = void 0] = typeof r.extraReducers == "function" ? gr(r.extraReducers) : [r.extraReducers], F = {
3822
- ...v,
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 ba(r.initialState, (k) => {
3826
- for (let R in F)
3827
- k.addCase(R, F[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,55 +3832,55 @@ function xa({
3832
3832
  D && k.addDefaultCase(D);
3833
3833
  });
3834
3834
  }
3835
- const u = (v) => v, b = /* @__PURE__ */ new Map();
3835
+ const u = (b) => b, v = /* @__PURE__ */ new Map();
3836
3836
  let f;
3837
- function g(v, x) {
3838
- return f || (f = c()), f(v, x);
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(v, x = !1) {
3843
+ function p(b, x = !1) {
3844
3844
  function D(k) {
3845
- let R = k[v];
3845
+ let R = k[b];
3846
3846
  return typeof R > "u" && x && (R = m()), R;
3847
3847
  }
3848
- function F(k = u) {
3849
- const R = Fs(b, x, () => /* @__PURE__ */ new WeakMap());
3850
- return Fs(R, k, () => {
3848
+ function M(k = u) {
3849
+ const R = Ms(v, x, () => /* @__PURE__ */ new WeakMap());
3850
+ return Ms(R, k, () => {
3851
3851
  const gs = {};
3852
- for (const [xi, _i] of Object.entries(r.selectors ?? {}))
3853
- gs[xi] = _a(_i, k, m, x);
3852
+ for (const [_i, Si] of Object.entries(r.selectors ?? {}))
3853
+ gs[_i] = _a(Si, k, m, x);
3854
3854
  return gs;
3855
3855
  });
3856
3856
  }
3857
3857
  return {
3858
- reducerPath: v,
3859
- getSelectors: F,
3858
+ reducerPath: b,
3859
+ getSelectors: M,
3860
3860
  get selectors() {
3861
- return F(D);
3861
+ return M(D);
3862
3862
  },
3863
3863
  selectSlice: D
3864
3864
  };
3865
3865
  }
3866
3866
  const w = {
3867
3867
  name: i,
3868
- reducer: g,
3868
+ reducer: y,
3869
3869
  actions: l.actionCreators,
3870
3870
  caseReducers: l.sliceCaseReducersByName,
3871
3871
  getInitialState: m,
3872
3872
  ...p(n),
3873
- injectInto(v, {
3873
+ injectInto(b, {
3874
3874
  reducerPath: x,
3875
3875
  ...D
3876
3876
  } = {}) {
3877
- const F = x ?? n;
3878
- return v.inject({
3879
- reducerPath: F,
3880
- reducer: g
3877
+ const M = x ?? n;
3878
+ return b.inject({
3879
+ reducerPath: M,
3880
+ reducer: y
3881
3881
  }, D), {
3882
3882
  ...w,
3883
- ...p(F, !0)
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 yr = /* @__PURE__ */ xa();
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 ? Es(e, o) : Es(e));
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 $a({
3949
+ function Ta({
3950
3950
  type: e,
3951
3951
  reducerName: t
3952
3952
  }, s, r, i) {
@@ -3979,10 +3979,10 @@ const br = (e, t, s, r, i, n) => e[t] ? {
3979
3979
  items: [...e[t]?.items || [], ...s],
3980
3980
  historyDataImporterRules: n ?? e[t]?.historyDataImporterRules
3981
3981
  }
3982
- } : { ...e, [t]: { id: t, items: s, componentFactory: r, searchPredicate: i, historyDataImporterRules: n } }, Ta = (e, t, s, r) => br(e, t, [s], r);
3983
- function Ea(e, t) {
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 = Ta(e.collections, s, r, i);
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;
@@ -3991,10 +3991,10 @@ function Oa(e, t) {
3991
3991
  collections: br(e.collections, s, r, i, n, o)
3992
3992
  };
3993
3993
  }
3994
- function Fa(e, t) {
3994
+ function Ma(e, t) {
3995
3995
  e.busy.push(t.payload);
3996
3996
  }
3997
- function Ma(e, t) {
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 = yr({
4043
+ const ge = vr({
4044
4044
  name: "activity-history-collections",
4045
4045
  initialState: {
4046
4046
  busy: [],
@@ -4048,9 +4048,9 @@ const ge = yr({
4048
4048
  collections: {}
4049
4049
  },
4050
4050
  reducers: {
4051
- addBusyHistoryItem: Fa,
4052
- removeBusyHistoryItem: Ma,
4053
- addActivityHistoryItem: Ea,
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 Ba(this, t);
4067
+ return new qa(this, t);
4068
4068
  }
4069
4069
  or(t) {
4070
- return new qa(this, t);
4070
+ return new Ga(this, t);
4071
4071
  }
4072
4072
  not() {
4073
- return new Ga(this);
4073
+ return new Ba(this);
4074
4074
  }
4075
4075
  }
4076
- class Ba extends N {
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 qa extends N {
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 Ga extends N {
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 Bt = null;
4101
- const vr = (e) => {
4102
- Bt = e;
4100
+ let qt = null;
4101
+ const wr = (e) => {
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 (!Bt)
4109
+ if (!qt)
4110
4110
  return !1;
4111
4111
  try {
4112
- const s = Bt.globalStateManager.getData("userInfo");
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 wr = (e) => e.id === "common", Pe = (e) => e.id === _r, xr = (e) => !wr(e) && !Pe(e) && !vt(e), vt = (e) => e.id === Sr, _r = "history-diagnostics", ja = "history-relevant", Ya = "history-own", Sr = "history-up", Cr = [
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 wr = (e) => e.id === "common", Pe = (e) => e.id === _r, xr = (e) => !wr(e)
4134
4134
  title: "Veure rellevants",
4135
4135
  spec: Wa,
4136
4136
  enabled: !1,
4137
- type: Fe.Switch
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: Fe.Switch
4144
+ type: Me.Switch
4145
4145
  }
4146
4146
  ]
4147
4147
  }
@@ -4158,7 +4158,7 @@ function Qa(e, t) {
4158
4158
  e.filters.some((r) => r.id === t.payload.id) || (e.filters = [...e.filters, t.payload]);
4159
4159
  }
4160
4160
  function Xa(e) {
4161
- e.filters = e.filters.filter((t) => !xr(t));
4161
+ e.filters = e.filters.filter((t) => !_r(t));
4162
4162
  }
4163
4163
  function Ka(e, t) {
4164
4164
  e.filters = e.filters.map((s) => s.id === t.payload.filterGroupId ? {
@@ -4219,7 +4219,7 @@ function rl(e, t) {
4219
4219
  e.filters = [...e.filters].map((r) => Pe(r) ? { ...r, enabledValues: t.payload } : r);
4220
4220
  else {
4221
4221
  const r = {
4222
- id: _r,
4222
+ id: Sr,
4223
4223
  title: "Diagnòstics",
4224
4224
  values: [],
4225
4225
  enabledValues: t.payload
@@ -4234,10 +4234,10 @@ function il(e, t) {
4234
4234
  } : s.id === "history-diagnostics" || s.id === "history-up" ? {
4235
4235
  ...s,
4236
4236
  enabledValues: []
4237
- } : s.id === "common" ? Cr[0] : s);
4237
+ } : s.id === "common" ? Dr[0] : s);
4238
4238
  }
4239
4239
  function nl(e, t) {
4240
- const s = e.filters.findIndex(vt);
4240
+ const s = e.filters.findIndex(bt);
4241
4241
  if (s === -1)
4242
4242
  e.filters.push(t.payload);
4243
4243
  else {
@@ -4252,13 +4252,13 @@ function nl(e, t) {
4252
4252
  }
4253
4253
  }
4254
4254
  function ol(e, t) {
4255
- e.filters = [...e.filters].map((s) => vt(s) ? { ...s, enabledValues: t.payload } : s);
4255
+ e.filters = [...e.filters].map((s) => bt(s) ? { ...s, enabledValues: t.payload } : s);
4256
4256
  }
4257
- const B = yr({
4257
+ const q = vr({
4258
4258
  name: "activity-history-filters",
4259
4259
  initialState: {
4260
4260
  searchString: "",
4261
- filters: [...Cr]
4261
+ filters: [...Dr]
4262
4262
  },
4263
4263
  reducers: {
4264
4264
  setSearchString: Na,
@@ -4277,7 +4277,7 @@ const B = yr({
4277
4277
  }), wt = ga({
4278
4278
  reducer: {
4279
4279
  activityHistoryCollections: ge.reducer,
4280
- activityHistoryFilters: B.reducer
4280
+ activityHistoryFilters: q.reducer
4281
4281
  },
4282
4282
  devTools: {
4283
4283
  name: "activity-history"
@@ -4289,7 +4289,7 @@ const B = yr({
4289
4289
  });
4290
4290
  wt.dispatch;
4291
4291
  wt.getState;
4292
- const Se = new Si(), { lazyInject: Ce } = Ci(Se), al = (e) => {
4292
+ const Se = new Ci(), { lazyInject: Ce } = Di(Se), al = (e) => {
4293
4293
  Se.bind(z.primaryApi).toConstantValue(e), Se.bind(z.store).toConstantValue(wt);
4294
4294
  }, ll = () => {
4295
4295
  Se.unbind(z.primaryApi), Se.unbind(z.store);
@@ -4308,15 +4308,15 @@ Q = rs([
4308
4308
  pt(),
4309
4309
  ct(0, Ze(z.store))
4310
4310
  ], Q);
4311
- let qt = class {
4311
+ let Gt = class {
4312
4312
  constructor(e) {
4313
4313
  this.api = e;
4314
4314
  }
4315
4315
  };
4316
- qt = rs([
4316
+ Gt = rs([
4317
4317
  pt(),
4318
4318
  ct(0, Ze(z.primaryApi))
4319
- ], qt);
4319
+ ], Gt);
4320
4320
  let re = class {
4321
4321
  constructor(e, t) {
4322
4322
  this.store = e, this.api = t;
@@ -4372,19 +4372,19 @@ class ml extends re {
4372
4372
  }
4373
4373
  }
4374
4374
  }
4375
- let Dr;
4375
+ let Ir;
4376
4376
  const gl = (e, t) => {
4377
- Dr = e.registerRequest(
4377
+ Ir = e.registerRequest(
4378
4378
  t.broker.events.activityHistory.injectAsyncHistoryItemsRequest,
4379
4379
  ml
4380
4380
  );
4381
4381
  }, yl = () => {
4382
- Dr?.dispose();
4382
+ Ir?.dispose();
4383
4383
  };
4384
- let Gt;
4385
- const bl = async (e) => {
4386
- Gt = await e.createLocaleManager(vl);
4387
- }, y = (e) => Gt ? Gt.translate(e) : e, vl = {
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
- }, Ir = (e, t, s) => {
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
- }, $r = (e) => e && wl(e.id) && // Verifica que "id" esté informado
4494
- xl(e.date), Tr = (e) => {
4495
- if (!e.every($r))
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,31 +4501,31 @@ xl(e.date), Tr = (e) => {
4500
4501
  }, Sl = (e) => {
4501
4502
  const t = [];
4502
4503
  for (const s of e)
4503
- $r(s) ? t.push(s) : _l(s);
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));
4507
4508
  if (t.length > 0)
4508
4509
  return {
4509
- id: Sr,
4510
+ id: Cr,
4510
4511
  title: "UP",
4511
4512
  values: Po(t, "description", "id"),
4512
4513
  enabledValues: []
4513
4514
  };
4514
- }, Er = (e, t) => {
4515
+ }, Or = (e, t) => {
4515
4516
  const s = Cl(e);
4516
- s && t.dispatch(B.actions.addUpFilters(s));
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
- Tr([t.item]);
4522
- const s = this.store.getState(), r = Ir(s.activityHistoryCollections?.collections, t.entityId, t.item.id), i = s.activityHistoryFilters?.filters?.find((n) => n.id === t.entityId);
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(y("error.itemAlreadyExists"));
4525
+ throw new Error(g("error.itemAlreadyExists"));
4525
4526
  if (!i)
4526
- throw new Error(y("error.filterNotInitialized"));
4527
- Er([t.item], this.store), this.store.dispatch(
4527
+ throw new Error(g("error.filterNotInitialized"));
4528
+ Or([t.item], this.store), this.store.dispatch(
4528
4529
  Dl({
4529
4530
  id: t.entityId,
4530
4531
  item: t.item,
@@ -4536,26 +4537,26 @@ class Il extends re {
4536
4537
  }
4537
4538
  }
4538
4539
  }
4539
- let Or;
4540
- const $l = (e, t) => {
4541
- Or = e.registerRequest(t.broker.events.activityHistory.addHistoryItemRequest, Il);
4542
- }, Tl = () => {
4543
- Or?.dispose();
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
4546
  class Fr {
4546
4547
  constructor(t) {
4547
4548
  this.payload = t;
4548
4549
  }
4549
4550
  }
4550
- const { addActivityHistoryItems: El } = ge.actions;
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(y("error.filterNotInitialized"));
4557
- r.length > 0 && Er(r, this.store), this.store.dispatch(
4558
- El({
4557
+ throw new Error(g("error.filterNotInitialized"));
4558
+ r.length > 0 && Or(r, this.store), this.store.dispatch(
4559
+ $l({
4559
4560
  id: t.entityId,
4560
4561
  items: r,
4561
4562
  componentFactory: t.componentFactory,
@@ -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) => !Ir(r.activityHistoryCollections?.collections, s, n.id)
4575
+ (n) => !Tr(r.activityHistoryCollections?.collections, s, n.id)
4575
4576
  );
4576
4577
  if (i.length === 0 && t.length > 0)
4577
- throw new Error(y("error.allItemsAlreadyExist"));
4578
- return i.length < t.length && this.api.notificationService.warning(y("warning.someItemsAlreadyExist")), i;
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
- let Mr;
4582
- const Fl = (e, t) => {
4583
- Mr = e.registerRequest(t.broker.events.activityHistory.addHistoryItemsRequest, Ol);
4584
- }, Ml = () => {
4585
- Mr?.dispose();
4582
+ let Pr;
4583
+ const Ml = (e, t) => {
4584
+ Pr = e.registerRequest(t.broker.events.activityHistory.addHistoryItemsRequest, Ol);
4585
+ }, Fl = () => {
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">${y("busyEntriesLoading")}</div></div>` : M;
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(y("error.errorToRefresh"));
4628
+ this.api.notificationService.error(g("error.errorToRefresh"));
4628
4629
  }
4629
4630
  }
4630
4631
  async dispatchRemoveErrorItems(t) {
@@ -4632,57 +4633,47 @@ class zl extends re {
4632
4633
  this.store.dispatch(fl(s));
4633
4634
  }
4634
4635
  }
4635
- let Pr;
4636
+ let Ar;
4636
4637
  const Vl = (e) => {
4637
- Ar(), Pr = e.registerRequest(ns, zl);
4638
- }, Ar = () => {
4639
- Pr?.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)}", Bl = (e) => {
4641
- const { arrayElements: t, text: s } = e;
4642
- return h`
4638
+ kr(), Ar = e.registerRequest(ns, zl);
4639
+ }, kr = () => {
4640
+ Ar?.dispose();
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
- <input slot="input" id="radioButton1" type="radio" name="exportOption" @change=${() => {
4655
- e.selectedRadioOption = "history";
4656
- }}>
4657
- <label slot="label" for="radioButton1">${y("modal.allActivityHistory")}</label>
4658
- </dss-radio-button>
4659
- <dss-radio-button>
4660
- <input slot="input" id="radioButton2" type="radio" name="exportOption" @change=${() => {
4661
- e.selectedRadioOption = "filters";
4662
- }}>
4663
- <label slot="label" for="radioButton2">${y("modal.onlyAppliedFilters")}</label>
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>${y("modal.selectDateRange")}</span>
4659
+ <span>${g("modal.selectDateRange")}</span>
4669
4660
  <div class="datepicker-canvas">
4670
- <dss-datepicker-range inputsize="md" @onRangeChange=${(r) => {
4671
- e.selectedPeriodDate = r.detail;
4672
- }} helpText=${y("modal.helpText")}>
4673
- <label slot="label-range-start" for="myDatepickerRangeStart">${y("modal.startDate")}</label>
4674
- <input slot="input-range-start" id="myDatepickerRangeStart" type="text" class="dss-input">
4675
- <label slot="label-range-end" for="myDatepickerRangeEnd">${y("modal.endDate")}</label>
4676
- <input slot="input-range-end" id="myDatepickerRangeEnd" type="text" class="dss-input">
4677
- </dss-datepicker-range>
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>` : M}
4671
+ </div>` : F}
4680
4672
  </div>`;
4681
- };
4682
- var ql = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, He = (e, t, s, r) => {
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 && ql(t, s, i), 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
- ${Bl(this)}
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 qt {
4722
+ class Ll extends Gt {
4732
4723
  async handle() {
4733
4724
  try {
4734
4725
  this.api.interactionService.confirm(void 0, { component: fe }, {
4735
- title: y("modal.selectExportOption"),
4726
+ title: g("modal.selectExportOption"),
4736
4727
  confirmButtonText: "Exportar",
4737
4728
  cancelButtonText: "Cancelar"
4738
4729
  });
@@ -4748,17 +4739,17 @@ class Ll extends qt {
4748
4739
  }
4749
4740
  class os {
4750
4741
  }
4751
- let kr;
4742
+ let Rr;
4752
4743
  const Wl = (e) => {
4753
- kr = e.registerRequest(os, Ll);
4744
+ Rr = e.registerRequest(os, Ll);
4754
4745
  }, jl = () => {
4755
- kr?.dispose();
4746
+ Rr?.dispose();
4756
4747
  };
4757
4748
  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, g) => f?.[g], l), c = s.reduce((f, g) => f?.[g], l);
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(
@@ -4779,7 +4770,7 @@ class Ql extends N {
4779
4770
  return this.commonFilters.filter((i) => i.enabled).reduce((i, n) => i.and(new n.spec()), new Ul()).isSatisfiedBy(t);
4780
4771
  }
4781
4772
  }
4782
- class Rr extends N {
4773
+ class Hr extends N {
4783
4774
  isSatisfiedBy() {
4784
4775
  return !1;
4785
4776
  }
@@ -4804,7 +4795,7 @@ class Xl extends N {
4804
4795
  const i = r.filters.filter(
4805
4796
  (n) => n.enabled || n.singleOption
4806
4797
  );
4807
- return i.length === 0 ? !0 : i.every((n) => n.singleOption ? n.enabled ? !0 : new Ps(n.propPathValue, !1).isSatisfiedBy(t) : !n.enabledValues || n.enabledValues.length === 0 ? !0 : n.enabledValues.reduce((a, l) => a.or(new Ps(n.propPathValue, l)), new Rr()).isSatisfiedBy(t));
4798
+ return i.length === 0 ? !0 : i.every((n) => n.singleOption ? n.enabled ? !0 : new Ps(n.propPathValue, !1).isSatisfiedBy(t) : !n.enabledValues || n.enabledValues.length === 0 ? !0 : n.enabledValues.reduce((a, l) => a.or(new Ps(n.propPathValue, l)), new Hr()).isSatisfiedBy(t));
4808
4799
  });
4809
4800
  }
4810
4801
  belongsToGroup(t, s) {
@@ -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(), be = (e, t) => {
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 && be(e.professional?.name, t), r = e.center?.description && be(e.center.description, t), i = e.professional?.speciality?.description && be(e.professional?.speciality.description, t), n = e.professional?.role?.description && be(e.professional?.role.description, t), o = e.service?.description && be(e.service.description, t), a = e.up?.description && be(e.up.description, t), l = e.diagnostics?.some(
4839
- (d) => be(d.descripcio, t)
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
  };
@@ -4871,7 +4862,7 @@ class tc extends N {
4871
4862
  }
4872
4863
  isSatisfiedBy(t) {
4873
4864
  const s = this.filters.filter((i) => i.enabled).map((i) => i.id);
4874
- return s.length === 0 ? !0 : s.reduce((i, n) => i.or(new ec(n)), new Rr()).isSatisfiedBy(t);
4865
+ return s.length === 0 ? !0 : s.reduce((i, n) => i.or(new ec(n)), new Hr()).isSatisfiedBy(t);
4875
4866
  }
4876
4867
  }
4877
4868
  class sc extends N {
@@ -4887,16 +4878,16 @@ class sc extends N {
4887
4878
  }
4888
4879
  const St = (e) => e.activityHistoryFilters.filters, as = A(
4889
4880
  St,
4890
- (e) => e.find(wr)?.filters || []
4891
- ), Hr = A(
4881
+ (e) => e.find(xr)?.filters || []
4882
+ ), zr = A(
4892
4883
  as,
4893
4884
  (e) => e.filter((t) => t.enabled)
4894
4885
  ), rc = A(
4895
- Hr,
4886
+ zr,
4896
4887
  (e) => !!e.length
4897
4888
  ), Ye = A(
4898
4889
  St,
4899
- (e) => e.filter(xr).sort(ic)
4890
+ (e) => e.filter(_r).sort(ic)
4900
4891
  ), ic = (e, t) => Number(e.sort) - Number(t.sort), nc = A(
4901
4892
  Ye,
4902
4893
  (e) => e.some(
@@ -4913,18 +4904,18 @@ A(
4913
4904
  filters: n.filter((o) => o.enabledValues?.length)
4914
4905
  })).filter((t) => t.filters.length > 0)
4915
4906
  );
4916
- const zr = A(
4907
+ const Vr = A(
4917
4908
  St,
4918
4909
  (e) => e.find(Pe)
4919
4910
  ), ls = A(
4920
- zr,
4911
+ Vr,
4921
4912
  (e) => e?.enabledValues || []
4922
4913
  ), oc = A(
4923
4914
  ls,
4924
4915
  (e) => !!e.length
4925
4916
  ), cs = A(
4926
4917
  St,
4927
- (e) => e.find(vt)
4918
+ (e) => e.find(bt)
4928
4919
  ), ds = A(
4929
4920
  cs,
4930
4921
  (e) => e?.enabledValues || []
@@ -4958,7 +4949,7 @@ function fc(e) {
4958
4949
  }
4959
4950
  }
4960
4951
  a || s.push({
4961
- idSubGroup: ir(),
4952
+ idSubGroup: nr(),
4962
4953
  items: [i]
4963
4954
  });
4964
4955
  } else
@@ -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 b = ee(u.date).getTime(), f = ee(c.date).getTime(), g = Math.min(b, o), m = Math.max(f, o);
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, v] of s)
4975
+ for (const [w, b] of s)
4985
4976
  if (w !== n) {
4986
- for (const x of v) {
4977
+ for (const x of b) {
4987
4978
  for (const D of x.items) {
4988
- const F = ee(D.date).getTime();
4989
- if (F > g && F < m) {
4979
+ const M = ee(D.date).getTime();
4980
+ if (M > y && M < m) {
4990
4981
  p = !0;
4991
4982
  break;
4992
4983
  }
@@ -5016,11 +5007,11 @@ const pc = (e) => {
5016
5007
  const o = i.items[0], a = n.items[0];
5017
5008
  return !o || !a ? 0 : ee(a.date).getTime() - ee(o.date).getTime();
5018
5009
  }), fc(r), r;
5019
- }, Vr = (e) => e.reduce((t, s) => {
5010
+ }, Nr = (e) => e.reduce((t, s) => {
5020
5011
  const r = new Date(s.date);
5021
5012
  return r > t ? r : t;
5022
- }, /* @__PURE__ */ new Date(0)), Wt = (e) => Vr(e.items), jt = (e) => {
5023
- const t = e.items.length > 0 ? [Vr(e.items)] : [], s = e.subGroups.map(Wt), r = [...t, ...s];
5013
+ }, /* @__PURE__ */ new Date(0)), Wt = (e) => Nr(e.items), jt = (e) => {
5014
+ const t = e.items.length > 0 ? [Nr(e.items)] : [], s = e.subGroups.map(Wt), r = [...t, ...s];
5024
5015
  return r.length > 0 ? new Date(Math.max(...r.map((i) => i.getTime()))) : /* @__PURE__ */ new Date(0);
5025
5016
  }, mc = (e) => {
5026
5017
  const t = (s) => s.sort((r, i) => new Date(i.date).getTime() - new Date(r.date).getTime());
@@ -5044,7 +5035,7 @@ const pc = (e) => {
5044
5035
  componentFactory: t,
5045
5036
  type: s
5046
5037
  })
5047
- ), bc = A(
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 Nr = A(
5050
+ const qr = A(
5060
5051
  Ye,
5061
5052
  Dt,
5062
5053
  (e, t) => e.map((r) => {
@@ -5070,15 +5061,15 @@ const Nr = A(
5070
5061
  };
5071
5062
  })
5072
5063
  ), us = A(
5073
- bc,
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((g) => new Zl(t, g.searchPredicate).and(o).and(a).and(l).and(d).and(c).isSatisfiedBy(g)), b = pc(u);
5081
- return mc(b);
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 Br {
5080
+ class Gr {
5090
5081
  constructor(t) {
5091
5082
  this.payload = t;
5092
5083
  }
5093
5084
  }
5094
- class qr {
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 vc = ".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 = {
5110
- [Fe.Switch]: (e, t, s, r, i) => h`
5111
- <dss-input-switch size="sm" @onChangeValue=${s} .checked=${r}>
5112
- <input slot="input" id="switch-${e}" aria-label=${t} type="checkbox" ?disabled=${!i}>
5113
- <label slot="label" for="switch-${e}">${t || e}</label>
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-input-dropdown type="default" @onChange=${(e) => handleChange(e)}>
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
- const i = !!s?.id && !!r, n = ir(), o = i ? r.title || r.id : e.title, a = (c) => {
5127
- e.singleOption ? t(s?.id, e.id, null, c.detail) : i && r ? t(s?.id, e.id, r.id, c.detail) : t(e.id, c.detail);
5108
+ const i = !!s?.id && !!r, n = nr(), o = i ? r.title || r.id : e.title, a = (c) => {
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">${y("filters.filters")}<dss-icon-button ?hidden=${e.wrapperMaximized} @click=${() => e._toggleFilters()} size="md" variant="primary" icon="keyboard_double_arrow_left"></dss-icon-button></div>
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-input-dropdown inputsize="md" icon="" multiple dropdownFixed type="default" .elements=${e.upFilter?.values} @onInputDropdownChange=${e._handleUpFilterChange} .selectedValue=${e.upFilterEnabledValues} selectorStyle=${"max-height: 450px"}>
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-input-switch size="sm" .checked=${t.enabled} @onChangeValue=${(s) => e._onChangeCustomFilterGroupValue(t.id, s.detail)}>
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 tooltipFixed label=${y("filters.filters")} @click=${() => e._toggleFilters()} size="md" variant="primary" icon="filter_list"></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 === Fe.Dropdown) {
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-input-dropdown
5172
- inputsize="md"
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
- @onInputDropdownChange=${(i) => t._onChangeCustomFilterAllValues(s.id, e.id, i.detail.selectedValue)}
5154
+ @value-changed=${(i) => t._onChangeCustomFilterAllValues(s.id, e.id, i.detail.selectedValue)}
5179
5155
  .selectedValue=${e.enabledValues}
5180
- selectorStyle="max-height: 450px"
5181
- >
5182
- <label slot="label">${e.title}</label>
5183
- <input slot="input" type="text" class="dss-input" autocomplete="off" ?disabled=${!s.enabled} />
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 qr({ id: e, enabled: t }));
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 Br({
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(vc)}
5226
+ ${L(bc)}
5252
5227
  `;
5253
5228
  ye([
5254
5229
  C(as)
5255
5230
  ], ie.prototype, "commonFilters", 2);
5256
5231
  ye([
5257
- C(Nr)
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 } = B.actions;
5252
+ const { setCommonFilterValue: Dc } = q.actions;
5278
5253
  class Ic extends Q {
5279
5254
  async handle(t) {
5280
5255
  try {
@@ -5284,27 +5259,27 @@ class Ic extends Q {
5284
5259
  }
5285
5260
  }
5286
5261
  }
5287
- let Gr;
5288
- const $c = (e) => {
5289
- Gr = e.registerRequest(hs, Ic);
5290
- }, Tc = () => {
5291
- Gr?.dispose();
5292
- }, { addCustomFilters: Ec } = B.actions;
5262
+ let Lr;
5263
+ const Tc = (e) => {
5264
+ Lr = e.registerRequest(hs, Ic);
5265
+ }, Ec = () => {
5266
+ Lr?.dispose();
5267
+ }, { addCustomFilters: $c } = q.actions;
5293
5268
  class Oc extends Q {
5294
5269
  async handle(t) {
5295
5270
  try {
5296
- this.store.dispatch(Ec(t.payload));
5271
+ this.store.dispatch($c(t.payload));
5297
5272
  } catch (s) {
5298
5273
  console.error(s.message);
5299
5274
  }
5300
5275
  }
5301
5276
  }
5302
- let Lr;
5303
- const Fc = (e) => {
5304
- Lr = e.registerRequest(Fr, Oc);
5305
- }, Mc = () => {
5306
- Lr?.dispose();
5307
- }, { setCustomFilterAllValues: Pc } = B.actions;
5277
+ let Wr;
5278
+ const Mc = (e) => {
5279
+ Wr = e.registerRequest(Fr, Oc);
5280
+ }, Fc = () => {
5281
+ Wr?.dispose();
5282
+ }, { setCustomFilterAllValues: Pc } = q.actions;
5308
5283
  class Ac extends Q {
5309
5284
  async handle(t) {
5310
5285
  try {
@@ -5314,12 +5289,12 @@ class Ac extends Q {
5314
5289
  }
5315
5290
  }
5316
5291
  }
5317
- let Wr;
5292
+ let jr;
5318
5293
  const kc = (e) => {
5319
- Wr = e.registerRequest(Br, Ac);
5294
+ jr = e.registerRequest(Gr, Ac);
5320
5295
  }, Rc = () => {
5321
- Wr?.dispose();
5322
- }, { setCustomFilterGroupValue: Hc } = B.actions;
5296
+ jr?.dispose();
5297
+ }, { setCustomFilterGroupValue: Hc } = q.actions;
5323
5298
  class zc extends Q {
5324
5299
  async handle(t) {
5325
5300
  try {
@@ -5329,27 +5304,27 @@ class zc extends Q {
5329
5304
  }
5330
5305
  }
5331
5306
  }
5332
- let jr;
5307
+ let Yr;
5333
5308
  const Vc = (e) => {
5334
- jr = e.registerRequest(qr, zc);
5309
+ Yr = e.registerRequest(Br, zc);
5335
5310
  }, Nc = () => {
5336
- jr?.dispose();
5337
- }, { setCustomFilterValue: Bc } = B.actions;
5338
- class qc extends Q {
5311
+ Yr?.dispose();
5312
+ }, { setCustomFilterValue: qc } = q.actions;
5313
+ class Gc extends Q {
5339
5314
  async handle(t) {
5340
5315
  try {
5341
- this.store.dispatch(Bc(t.payload));
5316
+ this.store.dispatch(qc(t.payload));
5342
5317
  } catch (s) {
5343
5318
  console.error(s.message);
5344
5319
  }
5345
5320
  }
5346
5321
  }
5347
- let Yr;
5348
- const Gc = (e) => {
5349
- Yr = e.registerRequest(fs, qc);
5322
+ let Ur;
5323
+ const Bc = (e) => {
5324
+ Ur = e.registerRequest(fs, Gc);
5350
5325
  }, Lc = () => {
5351
- Yr?.dispose();
5352
- }, { deleteDiagnosticFilterValue: Wc } = B.actions;
5326
+ Ur?.dispose();
5327
+ }, { deleteDiagnosticFilterValue: Wc } = q.actions;
5353
5328
  class jc extends re {
5354
5329
  async handle(t) {
5355
5330
  try {
@@ -5366,17 +5341,17 @@ class jc extends re {
5366
5341
  }
5367
5342
  }
5368
5343
  }
5369
- class Ur {
5344
+ class Qr {
5370
5345
  constructor(t) {
5371
5346
  this.payload = t;
5372
5347
  }
5373
5348
  }
5374
- let Qr;
5349
+ let Xr;
5375
5350
  const Yc = (e) => {
5376
- Qr = e.registerRequest(Ur, jc);
5351
+ Xr = e.registerRequest(Qr, jc);
5377
5352
  }, Uc = () => {
5378
- Qr?.dispose();
5379
- }, { setDiagnosticFilterValues: Qc } = B.actions;
5353
+ Xr?.dispose();
5354
+ }, { setDiagnosticFilterValues: Qc } = q.actions;
5380
5355
  class Xc extends Q {
5381
5356
  async handle(t) {
5382
5357
  try {
@@ -5386,24 +5361,24 @@ class Xc extends Q {
5386
5361
  }
5387
5362
  }
5388
5363
  }
5389
- class Xr {
5364
+ class Kr {
5390
5365
  constructor(t) {
5391
5366
  this.payload = t;
5392
5367
  }
5393
5368
  }
5394
- let Kr;
5369
+ let Jr;
5395
5370
  const Kc = (e) => {
5396
- Kr = e.registerRequest(Xr, Xc);
5371
+ Jr = e.registerRequest(Kr, Xc);
5397
5372
  }, Jc = () => {
5398
- Kr?.dispose();
5373
+ Jr?.dispose();
5399
5374
  }, Zc = (e) => {
5400
5375
  e.broker.subscribe("cipds_diagnostic_filter_historic_requested", (t) => {
5401
- e.broker.send(new Xr(t));
5376
+ e.broker.send(new Kr(t));
5402
5377
  });
5403
5378
  };
5404
- class Jr {
5379
+ class Zr {
5405
5380
  }
5406
- const { resetFilters: ed } = B.actions;
5381
+ const { resetFilters: ed } = q.actions;
5407
5382
  class td extends re {
5408
5383
  async handle(t) {
5409
5384
  try {
@@ -5413,12 +5388,12 @@ class td extends re {
5413
5388
  }
5414
5389
  }
5415
5390
  }
5416
- let Zr;
5391
+ let ei;
5417
5392
  const sd = (e) => {
5418
- Zr = e.registerRequest(Jr, td);
5393
+ ei = e.registerRequest(Zr, td);
5419
5394
  }, rd = () => {
5420
- Zr?.dispose();
5421
- }, { addUpFilters: id } = B.actions;
5395
+ ei?.dispose();
5396
+ }, { addUpFilters: id } = q.actions;
5422
5397
  class nd extends Q {
5423
5398
  async handle(t) {
5424
5399
  try {
@@ -5433,12 +5408,12 @@ class od {
5433
5408
  this.payload = t;
5434
5409
  }
5435
5410
  }
5436
- let ei;
5411
+ let ti;
5437
5412
  const ad = (e) => {
5438
- ei = e.registerRequest(od, nd);
5413
+ ti = e.registerRequest(od, nd);
5439
5414
  }, ld = () => {
5440
- ei?.dispose();
5441
- }, { setUpFilterValues: cd } = B.actions;
5415
+ ti?.dispose();
5416
+ }, { setUpFilterValues: cd } = q.actions;
5442
5417
  class dd extends Q {
5443
5418
  async handle(t) {
5444
5419
  try {
@@ -5448,29 +5423,29 @@ class dd extends Q {
5448
5423
  }
5449
5424
  }
5450
5425
  }
5451
- let ti;
5426
+ let si;
5452
5427
  const ud = (e) => {
5453
- ti = e.registerRequest(ps, dd);
5428
+ si = e.registerRequest(ps, dd);
5454
5429
  }, hd = () => {
5455
- ti?.dispose();
5430
+ si?.dispose();
5456
5431
  }, fd = (e, t) => {
5457
- $c(e), Fc(e), Vc(e), Gc(e), kc(e), Kc(e), Yc(e), ad(e), ud(e), sd(e), Zc(t);
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
- Tc(), Mc(), Nc(), Lc(), Rc(), Jc(), Uc(), ld(), hd(), rd();
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
- }, bd = ":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}";
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 Ge = (e, t) => {
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), Ge(r, t);
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;
@@ -5478,7 +5453,7 @@ const Ge = (e, t) => {
5478
5453
  if ((t = e._$AM) === void 0) break;
5479
5454
  s = t._$AN, s.delete(e), e = t;
5480
5455
  } while (s?.size === 0);
5481
- }, si = (e) => {
5456
+ }, ri = (e) => {
5482
5457
  for (let t; t = e._$AM; e = t) {
5483
5458
  let s = t._$AN;
5484
5459
  if (s === void 0) t._$AN = s = /* @__PURE__ */ new Set();
@@ -5486,30 +5461,30 @@ const Ge = (e, t) => {
5486
5461
  s.add(e), xd(t);
5487
5462
  }
5488
5463
  };
5489
- function vd(e) {
5490
- this._$AN !== void 0 ? (dt(this), this._$AM = e, si(this)) : this._$AM = e;
5464
+ function bd(e) {
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++) Ge(r[n], !1), dt(r[n]);
5495
- else r != null && (Ge(r, !1), dt(r));
5496
- else Ge(this, e);
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 == $i.CHILD && (e._$AP ??= wd, e._$AQ ??= vd);
5474
+ e.type == Ei.CHILD && (e._$AP ??= wd, e._$AQ ??= bd);
5500
5475
  };
5501
- class _d extends Di {
5476
+ class _d extends Ii {
5502
5477
  constructor() {
5503
5478
  super(...arguments), this._$AN = void 0;
5504
5479
  }
5505
5480
  _$AT(t, s, r) {
5506
- super._$AT(t, s, r), si(this), this.isConnected = t._$AU;
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 && (Ge(this, t), dt(this));
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 (Ii(this.t)) this.t._$AI(t, this);
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 Di {
5520
5495
  reconnected() {
5521
5496
  }
5522
5497
  }
5523
- const Mt = /* @__PURE__ */ new WeakMap(), ri = Ti(class extends _d {
5498
+ const Ft = /* @__PURE__ */ new WeakMap(), ii = $i(class extends _d {
5524
5499
  render(e) {
5525
- return M;
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)), M;
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 = Mt.get(t);
5535
- s === void 0 && (s = /* @__PURE__ */ new WeakMap(), Mt.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);
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" ? Mt.get(this.ht ?? globalThis)?.get(this.Y) : this.Y?.value;
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(), ri = Ti(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>${y("isGrouping")}</div>
5525
+ <div>${g("isGrouping")}</div>
5551
5526
  </div>
5552
5527
  `;
5553
5528
  var Dd = Object.getOwnPropertyDescriptor, Id = (e, t, s, r) => {
@@ -5566,13 +5541,13 @@ Ut.styles = W`
5566
5541
  Ut = Id([
5567
5542
  Y("activity-history-is-grouping-busy")
5568
5543
  ], Ut);
5569
- function ii(e) {
5544
+ function ni(e) {
5570
5545
  return !e.professional?.speciality?.description;
5571
5546
  }
5572
5547
  const Qt = (e, t) => {
5573
5548
  const s = t.findIndex((r) => r.id === e.id);
5574
5549
  return s === -1 ? !1 : s === t.length - 1 ? !0 : !e.diagnostics?.length;
5575
- }, ni = (e) => {
5550
+ }, oi = (e) => {
5576
5551
  const t = e?.items.map((r) => ({
5577
5552
  type: "item",
5578
5553
  date: new Date(r.date),
@@ -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
- }, $d = (e) => h`
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>
@@ -5599,12 +5574,12 @@ const Qt = (e, t) => {
5599
5574
  ({ index: t, group: s }) => h`
5600
5575
  <div class="visit"
5601
5576
  data-index=${t}
5602
- ${ri(e._measureElement)}
5603
- data-date=${Gs(s?.items[0]?.date || s?.subGroups[0]?.items[0]?.date)}>
5604
- ${Ed(e, s?.items[0] || s?.subGroups[0]?.items[0], s)}
5577
+ ${ii(e._measureElement)}
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
- ni(s),
5582
+ oi(s),
5608
5583
  (r) => r.type === "item" ? r.item.id : r.subGroup.id,
5609
5584
  (r) => {
5610
5585
  if (r.type === "item") {
@@ -5621,7 +5596,7 @@ const Qt = (e, t) => {
5621
5596
  const i = r.subGroup;
5622
5597
  return h`
5623
5598
  <div class="diagnostics">
5624
- ${Md(i?.items[0])}
5599
+ ${Fd(i?.items[0])}
5625
5600
  <div class="diagnostics__items">
5626
5601
  ${le(
5627
5602
  i?.items,
@@ -5646,34 +5621,34 @@ const Qt = (e, t) => {
5646
5621
  </div>
5647
5622
  </div>
5648
5623
  </div>
5649
- ` : Td(e)}
5624
+ ` : Ed(e)}
5650
5625
  </div>
5651
- `, Td = (e) => h`
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
- title=${y("noResults")}>
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
- title=${y("noData.title")}
5662
- description=${y("noData.description")}>
5663
- </dss-user-feedback>` : M}`, Ed = (e, t, s) => t ? h`
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">
5667
- <div>${Zs(new Date(t.date), "dd/MM/yyyy")}</div>
5642
+ <div>${er(new Date(t.date), "dd/MM/yyyy")}</div>
5668
5643
  </div>
5669
5644
  <div class="title-description">
5670
5645
  <div>
5671
- ${Fd(e, t, s)}
5646
+ ${Md(e, t, s)}
5672
5647
  </div>
5673
5648
  </div>
5674
5649
  </div>
5675
5650
  </div>
5676
- ` : M, Od = (e) => {
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
- }, Fd = (e, t, s) => {
5685
- if (!t.professional) return M;
5686
- const r = ii(t), i = [];
5659
+ }, Md = (e, t, s) => {
5660
+ if (!t.professional) return F;
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
- }, Md = (e) => e && h`
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 text=${t.descripcio?.toUpperCase()} state="info" size="sm" outlined hideIcon></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 $e(e, t, s) {
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((g, m) => r[m] !== g)))
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 g = Math.round((Date.now() - c) * 100) / 100, m = Math.round((Date.now() - f) * 100) / 100, p = m / 16, w = (v, x) => {
5710
- for (v = String(v); v.length < x; )
5711
- v = " " + v;
5712
- return v;
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(g, 5)} ms`,
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
- }, Bs = typeof window > "u" ? !0 : "onscrollend" in window, zd = (e, t) => {
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 && Bs ? () => {
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: b } = e.options;
5800
- i = u ? s.scrollLeft * (b && -1 || 1) : s.scrollTop, n(), t(i, c);
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 && Bs;
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 Bd {
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 = $e(
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 = $e(
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 = $e(
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), b = new Array(a).fill(
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 g = u[f];
6004
- g && (b[g.lane] = f);
5978
+ const y = u[f];
5979
+ y && (v[y.lane] = f);
6005
5980
  }
6006
5981
  for (let f = c; f < s; f++) {
6007
- const g = n(f), m = this.laneAssignments.get(f);
5982
+ const y = n(f), m = this.laneAssignments.get(f);
6008
5983
  let p, w;
6009
- const v = l === "estimate" || d.has(g);
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 = b[p], R = k !== void 0 ? u[k] : void 0;
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 && v && this.laneAssignments.set(f, p);
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(g), D = typeof x == "number" ? x : this.options.estimateSize(f), F = w + D;
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: F,
6024
- key: g,
5998
+ end: M,
5999
+ key: y,
6025
6000
  lane: p
6026
- }, b[p] = f;
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 = $e(
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 ? qd({
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 = $e(
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 = $e(
6087
+ }, this.getVirtualItems = Te(
6113
6088
  () => [this.getVirtualIndexes(), this.getMeasurements()],
6114
6089
  (s, r) => {
6115
6090
  const i = [];
@@ -6127,7 +6102,7 @@ class Bd {
6127
6102
  const r = this.getMeasurements();
6128
6103
  if (r.length !== 0)
6129
6104
  return zs(
6130
- r[oi(
6105
+ r[ai(
6131
6106
  0,
6132
6107
  r.length - 1,
6133
6108
  (i) => zs(r[i]).start,
@@ -6262,7 +6237,7 @@ class Bd {
6262
6237
  this.scheduleScrollReconcile();
6263
6238
  }
6264
6239
  }
6265
- const oi = (e, t, s, r) => {
6240
+ const ai = (e, t, s, r) => {
6266
6241
  for (; e <= t; ) {
6267
6242
  const i = (e + t) / 2 | 0, n = s(i);
6268
6243
  if (n < r)
@@ -6274,7 +6249,7 @@ const oi = (e, t, s, r) => {
6274
6249
  }
6275
6250
  return e > 0 ? e - 1 : 0;
6276
6251
  };
6277
- function qd({
6252
+ function Gd({
6278
6253
  measurements: e,
6279
6254
  outerSize: t,
6280
6255
  scrollOffset: s,
@@ -6286,7 +6261,7 @@ function qd({
6286
6261
  startIndex: 0,
6287
6262
  endIndex: i
6288
6263
  };
6289
- let o = oi(
6264
+ let o = ai(
6290
6265
  0,
6291
6266
  i,
6292
6267
  n,
@@ -6310,16 +6285,16 @@ function qd({
6310
6285
  }
6311
6286
  return { startIndex: o, endIndex: a };
6312
6287
  }
6313
- const Gd = (e) => {
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
  };
6317
- class ai {
6292
+ class li {
6318
6293
  constructor(t) {
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 Bd({
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 ai {
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 ?? Gd)(t);
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
- ${$d(this)}
6388
+ ${Td(this)}
6414
6389
  `;
6415
6390
  }
6416
6391
  connectedCallback() {
@@ -6447,7 +6422,7 @@ let X = class extends j {
6447
6422
  return e.replace(s, '<span class="highlight">$1</span>');
6448
6423
  }
6449
6424
  highlighted(e) {
6450
- return e ? Ei(this.highlightMatch(e, this.searchString)) : null;
6425
+ return e ? Oi(this.highlightMatch(e, this.searchString)) : null;
6451
6426
  }
6452
6427
  // Public API: scroll the timeline to a given date ("Anar a data").
6453
6428
  //
@@ -6486,7 +6461,7 @@ let X = class extends j {
6486
6461
  }
6487
6462
  // === VIRTUAL SCROLLER LOGIC ===
6488
6463
  _setupVirtualScroller() {
6489
- !this._viewport || this._virtualScroller || (this._virtualScroller = new ai({
6464
+ !this._viewport || this._virtualScroller || (this._virtualScroller = new li({
6490
6465
  items: this.historyGroups || [],
6491
6466
  overscan: 8,
6492
6467
  estimateItemHeight: (e) => yd(this.historyGroups?.[e])
@@ -6517,7 +6492,7 @@ let X = class extends j {
6517
6492
  }
6518
6493
  };
6519
6494
  X.styles = W`
6520
- ${L(bd)}
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 ? M : h`
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,20 +6565,20 @@ 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) : M}
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" title=${y("error.title")} description=${y("error.general.title")} hasdetails="" detailslabel=${y("error.viewDetails")}>
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>` : y("error.general.noInfo")}
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=${y("error.general.refresh")} size="lg"></dss-button>
6575
+ <dss-button @onClick=${e.handleClickFeedback} label=${g("error.general.refresh")} size="lg"></dss-button>
6601
6576
  </dss-user-feedback>
6602
6577
  </div>
6603
- `, li = (e) => e.activityHistoryCollections.error.length > 0, Zd = (e) => {
6578
+ `, ci = (e) => e.activityHistoryCollections.error.length > 0, Zd = (e) => {
6604
6579
  const t = e.activityHistoryCollections.collections;
6605
6580
  return Object.values(t).every((s) => !s.items || s.items.length === 0);
6606
- }, eu = (e) => !_t(e) && li(e) && Zd(e), ci = (e) => e.activityHistoryCollections.error;
6581
+ }, eu = (e) => !_t(e) && ci(e) && Zd(e), di = (e) => e.activityHistoryCollections.error;
6607
6582
  var tu = Object.defineProperty, su = Object.getOwnPropertyDescriptor, It = (e, t, s, r) => {
6608
6583
  for (var i = r > 1 ? void 0 : r ? su(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6609
6584
  (o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
@@ -6627,7 +6602,7 @@ It([
6627
6602
  C(eu)
6628
6603
  ], Ae.prototype, "isAllDataFailedToLoad", 2);
6629
6604
  It([
6630
- C(ci)
6605
+ C(di)
6631
6606
  ], Ae.prototype, "errorMessages", 2);
6632
6607
  It([
6633
6608
  Ce(z.primaryApi)
@@ -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) : M}
6616
+ ${e.isErrorOccurred ? nu(e, t) : F}
6642
6617
  `;
6643
6618
  }, nu = (e, t) => h`
6644
6619
  <div class="container">
6645
- <dss-alert @onButtonClick=${e.handleClickAlert} state="warning" size="lg" message="${t}" buttonLabel=${y("error.partial.refresh")} hasbutton></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, $t = (e, t, s, r) => {
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,38 +6636,38 @@ let ke = class extends j {
6661
6636
  this.api.broker.send(new ns(this.errorMessages));
6662
6637
  }
6663
6638
  getCombinedMessage() {
6664
- const e = y("error.partial.title"), t = this.errorMessages.length > 0 ? this.errorMessages.map((s) => s.entityDescription) : [];
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
- $t([
6672
- C(li)
6673
- ], ke.prototype, "isErrorOccurred", 2);
6674
- $t([
6646
+ Tt([
6675
6647
  C(ci)
6648
+ ], ke.prototype, "isErrorOccurred", 2);
6649
+ Tt([
6650
+ C(di)
6676
6651
  ], ke.prototype, "errorMessages", 2);
6677
- $t([
6652
+ Tt([
6678
6653
  Ce(z.primaryApi)
6679
6654
  ], ke.prototype, "api", 2);
6680
- ke = $t([
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(B.actions.clearCustomFilters()), this.store.dispatch(lu()), this.api.broker.publish(this.api.broker.events.activityHistory.refreshDataRequested);
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
- class di {
6664
+ class ui {
6690
6665
  }
6691
- let ui;
6666
+ let hi;
6692
6667
  const du = (e) => {
6693
- uu(), ui = e.registerRequest(di, cu);
6668
+ uu(), hi = e.registerRequest(ui, cu);
6694
6669
  }, uu = () => {
6695
- ui?.dispose();
6670
+ hi?.dispose();
6696
6671
  }, { removeActivityHistoryItem: hu } = ge.actions;
6697
6672
  class fu extends Q {
6698
6673
  async handle(t) {
@@ -6708,12 +6683,12 @@ class fu extends Q {
6708
6683
  }
6709
6684
  }
6710
6685
  }
6711
- let hi;
6686
+ let fi;
6712
6687
  const pu = (e) => {
6713
- hi = e.registerRequest("remove_history_item_request", fu);
6688
+ fi = e.registerRequest("remove_history_item_request", fu);
6714
6689
  }, mu = () => {
6715
- hi?.dispose();
6716
- }, { setSearchString: gu } = B.actions;
6690
+ fi?.dispose();
6691
+ }, { setSearchString: gu } = q.actions;
6717
6692
  class yu extends re {
6718
6693
  async handle(t) {
6719
6694
  try {
@@ -6732,10 +6707,10 @@ class ut {
6732
6707
  this.searchString = t, this.searchString = t;
6733
6708
  }
6734
6709
  }
6735
- const bu = ".search-header{color:var(--color-neutral-900);font-weight:600}", vu = (e) => h`<div class="search-header">
6736
- ${y("searchBarResults")} “${e.searchQuery}”
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
- var wu = Object.defineProperty, xu = Object.getOwnPropertyDescriptor, fi = (e, t, s, r) => {
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--)
6740
6715
  (o = e[n]) && (i = (r ? o(t, s, i) : o(i)) || i);
6741
6716
  return r && i && wu(t, s, i), i;
@@ -6745,23 +6720,28 @@ let ht = class extends j {
6745
6720
  super(...arguments), this.searchQuery = "";
6746
6721
  }
6747
6722
  render() {
6748
- return h`${vu(this)}`;
6723
+ return h`${bu(this)}`;
6749
6724
  }
6750
6725
  };
6751
6726
  ht.styles = W`
6752
- ${L(bu)}
6727
+ ${L(vu)}
6753
6728
  `;
6754
- fi([
6729
+ pi([
6755
6730
  Z()
6756
6731
  ], ht.prototype, "searchQuery", 2);
6757
- ht = fi([
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-search-bar dropdownStyle=${"display: none"} @onSearchChange=${e._handleSearchChange} icon="search" inputsize="md" threshold="2" recentsearchestext="" emptydropdowntext="">
6761
- <label slot="label" for="searchbar1" aria-hidden="false"></label>
6762
- <input slot="input" id="searchbar1" type="text" value=${e.searchQuery} @input=${(t) => e._handleSearchChange({ detail: [t.target.value] })}>
6763
- </dss-search-bar>`;
6764
- var Cu = Object.defineProperty, Du = Object.getOwnPropertyDescriptor, pi = (e, t, s, r) => {
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>`;
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);
6767
6747
  return r && i && Cu(t, s, i), i;
@@ -6774,39 +6754,39 @@ let ft = class extends j {
6774
6754
  return h`${Su(this)}`;
6775
6755
  }
6776
6756
  _handleSearchChange(e) {
6777
- const t = e.detail || [], s = t.length > 0 ? t.join(" ") : "", r = s.length > 1 ? s : "";
6778
- this.dispatchEvent(new CustomEvent("onSearchChange", { detail: r }));
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`
6782
6762
  ${L(_u)}
6783
6763
  `;
6784
- pi([
6764
+ mi([
6785
6765
  Z()
6786
6766
  ], ft.prototype, "searchQuery", 2);
6787
- ft = pi([
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}", $u = (e) => {
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
- }, Tu = (e) => e === !0 ? y("filters.deleted") : e, Eu = (e, t) => e === "" ? Ou(t) : e, Ou = (e) => `${y("chipHeader.without")} ${e.toLowerCase()}`, Xe = 5, Fu = (e, t, s, r) => h`
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=${Eu(s.title, t.title)}
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
- @onDelete=${() => r._onDeleteFilterValue(e, t.id, s.id, !1)}
6780
+ @delete=${() => r._onDeleteFilterValue(e, t.id, s.id, !1)}
6801
6781
  ></dss-chip>
6802
- `, Mu = (e, t) => h`
6782
+ `, Fu = (e, t) => h`
6803
6783
  <dss-chip
6804
- label=${$u(e.title)}
6784
+ label=${Tu(e.title)}
6805
6785
  size="sm"
6806
6786
  hasdelete
6807
6787
  selected
6808
6788
  @click=${() => t._onDeleteCommonFilterValue(e.id)}
6809
- @onDelete=${() => t._onDeleteCommonFilterValue(e.id)}
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
- @onDelete=${() => s._onDeleteDiagnosticFilterValue(e)}
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
- @onDelete=${() => s._onDeleteUpFilterValue(e)}
6807
+ @delete=${() => s._onDeleteUpFilterValue(e)}
6828
6808
  ></dss-chip>
6829
- `, Te = (e) => h`<div class="filter-title">${`${e}:`}</div>`, ku = (e) => {
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 M;
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 b = Pu(u.codi, u.descripcio, e);
6840
- t < Xe ? (d || (s.push(Te(a)), d = !0), s.push(b), t++) : (c || (r.push(Te(a)), c = !0), r.push(b), i.push(b));
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, b = !1;
6828
+ let u = !1, v = !1;
6849
6829
  for (const f of c) {
6850
- const g = Au(f.value, f.label, e);
6851
- t < Xe ? (u || (s.push(Te(a)), u = !0), s.push(g), t++) : (b || (r.push(Te(a)), b = !0), r.push(g), i.push(g));
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 = Mu(a, e);
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 b of d)
6862
- for (const f of [...new Set(b.enabledValues)]) {
6863
- let g = b?.options?.find((p) => p.id === f);
6864
- if (g)
6865
- g.title = g.title !== "" ? g.title : f;
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 = Tu(f);
6868
- g = { title: p, id: p };
6847
+ const p = Eu(f);
6848
+ y = { title: p, id: p };
6869
6849
  }
6870
- const m = Fu(l, b, g, e);
6871
- t < Xe ? (c || (s.push(Te(a)), c = !0), s.push(m), t++) : (u || (r.push(Te(a)), u = !0), r.push(m), i.push(m));
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">${y("chipHeader.selection")}</div>
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=${y("chipHeader.selection")} position="bottom" popoverFixed>
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
- ` : M}
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=${y("chipHeader.cleanFilters")} icon="cleaning_services" @click=${e.resetFilters}></dss-button>
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
  };
@@ -6919,13 +6899,13 @@ let me = class extends j {
6919
6899
  this.api.broker.send(new hs({ id: e, enabled: !1 }));
6920
6900
  }
6921
6901
  _onDeleteDiagnosticFilterValue(e) {
6922
- this.api.broker.send(new Ur({ diagnosticCodi: e }));
6902
+ this.api.broker.send(new Qr({ diagnosticCodi: e }));
6923
6903
  }
6924
6904
  _onDeleteUpFilterValue(e) {
6925
6905
  this.api.broker.send(new ps([...this.upFilterEnabled.enabledValues.filter((t) => t !== e)]));
6926
6906
  }
6927
6907
  resetFilters() {
6928
- this.api.broker.send(new Jr());
6908
+ this.api.broker.send(new Zr());
6929
6909
  }
6930
6910
  };
6931
6911
  me.styles = W`
@@ -6935,13 +6915,13 @@ Ve([
6935
6915
  Ce(z.primaryApi)
6936
6916
  ], me.prototype, "api", 2);
6937
6917
  Ve([
6938
- C(Hr)
6918
+ C(zr)
6939
6919
  ], me.prototype, "enabledCommonFilters", 2);
6940
6920
  Ve([
6941
- C(Nr)
6921
+ C(qr)
6942
6922
  ], me.prototype, "enabledFilters", 2);
6943
6923
  Ve([
6944
- C(zr)
6924
+ C(Vr)
6945
6925
  ], me.prototype, "diagnosticFilterEnabled", 2);
6946
6926
  Ve([
6947
6927
  C(cs)
@@ -6949,16 +6929,16 @@ Ve([
6949
6929
  me = Ve([
6950
6930
  Y("active-filters-badges")
6951
6931
  ], me);
6952
- let mi;
6932
+ let gi;
6953
6933
  const zu = (e) => {
6954
- mi = e.registerRequest(ut, yu);
6934
+ gi = e.registerRequest(ut, yu);
6955
6935
  }, Vu = () => {
6956
- mi?.dispose();
6936
+ gi?.dispose();
6957
6937
  }, { updateActivityHistoryItem: Nu } = ge.actions;
6958
- class Bu extends Q {
6938
+ class qu extends Q {
6959
6939
  async handle(t) {
6960
6940
  try {
6961
- Tr([t.item]), this.store.dispatch(
6941
+ $r([t.item]), this.store.dispatch(
6962
6942
  Nu({
6963
6943
  id: t.entityId,
6964
6944
  item: t.item
@@ -6969,17 +6949,17 @@ class Bu extends Q {
6969
6949
  }
6970
6950
  }
6971
6951
  }
6972
- let gi;
6973
- const qu = (e) => {
6974
- gi = e.registerRequest("update_history_item_request", Bu);
6975
- }, Gu = () => {
6976
- gi?.dispose();
6952
+ let yi;
6953
+ const Gu = (e) => {
6954
+ yi = e.registerRequest("update_history_item_request", qu);
6955
+ }, Bu = () => {
6956
+ yi?.dispose();
6977
6957
  };
6978
6958
  let K;
6979
6959
  const Lu = (e) => {
6980
- K = Mo(e, Se), gl(K, e), $l(K, e), Fl(K, e), Vl(K), du(K), qu(K), Wl(K), fd(K, e), zu(K), pu(K);
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(), Tl(), Ml(), Ar(), Gu(), jl(), pd(), Vu(), mu();
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
- }, yi = {
6982
+ }, vi = {
7003
6983
  virtualItems: [],
7004
6984
  totalHeight: 0
7005
6985
  };
@@ -7007,10 +6987,10 @@ class Uu {
7007
6987
  /** Setup or update the scroller with the current items. No-op until the
7008
6988
  * viewport and content elements exist. Detects viewport swaps and re-setups. */
7009
6989
  sync({ viewport: t, items: s, onStateChange: r, estimateItemHeight: i }) {
7010
- return t ? (this._scroller && t !== this._lastViewport && this.teardown(), this._scroller ? this._scroller.updateItems(s, r) : (this._scroller = new ai({
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() ?? yi;
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;
@@ -7037,10 +7017,10 @@ const Qu = (e) => {
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) => bi(e, (s) => Ku(s, t)), qs = (e) => e.items.length > 0 || e.subGroups.length > 0, th = (e, { todayOnly: t, selectedDiagnosticCodes: s }, r = {}) => {
7041
- const i = e.map((a) => bi(a, (l) => Ju(l, r))).filter(qs), n = t, o = s.length > 0;
7042
- return !n && !o ? i : i.map((a) => n && Zu(a) ? a : o ? eh(a, s) : null).filter((a) => a !== null && qs(a));
7043
- }, Ee = (e) => {
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">${y("importer.title")}</dss-typography>
7064
- <dss-badge text="${e.totalCount}" state="info" size="sm" outlined hideIcon></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-form-checkbox
7076
- label=${y("importer.selectAll")}
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-form-checkbox>
7060
+ ></dss-checkbox>
7081
7061
 
7082
- <span class="importer__filters-label">${y("importer.filters")}</span>
7062
+ <span class="importer__filters-label">${g("importer.filters")}</span>
7083
7063
 
7084
- <dss-form-checkbox
7085
- label=${y("importer.today")}
7064
+ <dss-checkbox
7065
+ label=${g("importer.today")}
7086
7066
  .checked=${e.todayOnly}
7087
7067
  @change=${(s) => e._onToggleToday(s)}
7088
- ></dss-form-checkbox>
7068
+ ></dss-checkbox>
7089
7069
 
7090
7070
  ${e.hasDiagnosticsFilter() ? h`
7091
- <dss-form-select
7071
+ <dss-select
7092
7072
  dropdownStyle="max-height: 300px; overflow-y: auto;"
7093
7073
  size="sm"
7094
7074
  type="default"
7095
7075
  multiple
7096
- dropdownFixed
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-form-select>
7101
- ` : M}
7079
+ ></dss-select>
7080
+ ` : F}
7102
7081
  </div>
7103
7082
  `, ah = (e) => e.filteredGroups?.length ? h`
7104
7083
  <div class="virtual-container">
@@ -7114,35 +7093,35 @@ const Qu = (e) => {
7114
7093
  </div>
7115
7094
  </div>
7116
7095
  </div>
7117
- ` : h`<div class="importer__empty">${y("importer.noResults")}</div>`, lh = (e, t, s) => {
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} ${ri(e._measureElement)} data-date=${Gs(r?.date)}>
7099
+ <div class="visit" data-index=${s} ${ii(e._measureElement)} data-date=${Bs(r?.date)}>
7121
7100
  <div class="visit__header">
7122
- <dss-form-checkbox
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-form-checkbox>
7106
+ ></dss-checkbox>
7128
7107
  ${ch(r)}
7129
7108
  </div>
7130
7109
  <div class="visit__items">
7131
7110
  ${le(
7132
- ni(t),
7111
+ oi(t),
7133
7112
  (n) => n.type === "item" ? n.item.id : n.subGroup.idSubGroup,
7134
- (n) => n.type === "item" ? vi(e, n.item, t.items) : dh(e, n.subGroup)
7113
+ (n) => n.type === "item" ? wi(e, n.item, t.items) : dh(e, n.subGroup)
7135
7114
  )}
7136
7115
  </div>
7137
7116
  </div>
7138
7117
  `;
7139
7118
  }, ch = (e) => {
7140
- if (!e) return M;
7141
- const t = ii(e), s = [];
7119
+ if (!e) return F;
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">
7144
7123
  <div class="title-date">
7145
- <div>${Zs(new Date(e.date), "dd/MM/yyyy")}</div>
7124
+ <div>${er(new Date(e.date), "dd/MM/yyyy")}</div>
7146
7125
  </div>
7147
7126
  <div class="title-description">
7148
7127
  <div>${s.map((r, i) => h`${r}${i < s.length - 1 ? " | " : ""}`)}</div>
@@ -7154,36 +7133,36 @@ const Qu = (e) => {
7154
7133
  return h`
7155
7134
  <div class="diagnostics">
7156
7135
  <div class="diagnostics__header">
7157
- <dss-form-checkbox
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-form-checkbox>
7141
+ ></dss-checkbox>
7163
7142
  ${uh(t.items?.[0])}
7164
7143
  </div>
7165
7144
  <div class="diagnostics__items">
7166
7145
  ${le(
7167
7146
  t.items,
7168
7147
  (r) => r.id,
7169
- (r) => vi(e, r, t.items)
7148
+ (r) => wi(e, r, t.items)
7170
7149
  )}
7171
7150
  </div>
7172
7151
  </div>
7173
7152
  `;
7174
- }, vi = (e, t, s) => h`
7153
+ }, wi = (e, t, s) => h`
7175
7154
  <div class="item" ?has-divider=${Qt(t, s)}>
7176
- <dss-form-checkbox
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-form-checkbox>
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 text=${t.descripcio?.toUpperCase()} state="info" size="sm" outlined hideIcon></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, "&lt;"), bh = (e) => {
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, "&lt;"), 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 = yi, this._scrollerController = new Uu(), this._searchTimeout = null, this._didInitialPreselect = !1, this._measureElement = (e) => {
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
- Ee([e]).map((s) => s.id),
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
- Ee(this.filteredGroups).map((t) => t.id),
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(Ee([e]).map((t) => t.id));
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(Ee(this.filteredGroups).map((e) => e.id));
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 = Ee(this.filteredGroups).length;
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: bh(Ee(t))
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 vh = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{display:flex;flex-direction:column;width:100%;border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm)}.container[maximized]{position:absolute;background:#fff;top:0;left:0;bottom:0;border:none}.container[maximized] .header-maximized-container{display:flex;flex-direction:column}.container[maximized] .header-maximized-container .header__maximized{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding-top:12px;padding-bottom:12px;padding-inline:40px}.container[maximized] .header-maximized-container .header__maximized .header__maximized__search{flex:1;border-radius:8px;border:1px solid rgb(189,189,189);padding:8px;width:300px}.container[maximized] .header-maximized-container .header__maximized .title{color:var(--color-neutral-900);font-weight:700;font-size:20px;line-height:30px;white-space:nowrap}.container[maximized] .header-maximized-container .header__maximized .options{display:flex;align-items:center;color:var(--color-primary-400);font-weight:600;font-size:14px;line-height:24px;cursor:pointer}.container[maximized] .header-maximized-container .header__maximized .header__maximized__left{display:flex;flex-direction:row;gap:24px;align-items:center;width:100%}.container[maximized] .header-maximized-container .header__maximized .header__maximized__right{display:flex;flex-direction:row;gap:16px;align-items:center}.container[maximized] .wrapper{height:calc(100vh - 175px);border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm);margin-bottom:24px;margin-inline:40px;width:calc(100% - 80px)}.container .header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid rgb(189,189,189);gap:16px}.container .header .header__left{display:flex;flex-direction:row;align-items:center;flex:1;gap:16px}.container .header .header__left .title{color:var(--color-neutral-800);font-weight:700;font-size:16px;line-height:24px;white-space:nowrap}.container .header .header__right{display:flex;flex-direction:row;align-items:center;gap:8px}.container .header .header__right .action-icons{display:flex;align-items:center}.container .wrapper{display:flex;flex-direction:row;min-height:1px;width:100%;height:100%}.container .wrapper[maximized] .content{width:100%;background:var(--color-neutral-50);border-top-right-radius:var(--dss-radius-sm);display:flex;flex-direction:column}.container .wrapper .content{width:100%;background:var(--color-neutral-50);border-bottom-right-radius:var(--dss-radius-sm);overflow:hidden;display:flex;flex-direction:column}", wh = (e) => h`<div class="container" ?maximized=${e.maximized}>
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">${y("activityHistory")}</div>
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 dropdownFixed inputsize="md" class="date-picker" @onValueChange=${(t) => e._handleSelectDate(t.detail)}>
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 tooltipFixed @click=${() => e._refreshHistory()} size="md" variant="primary" icon="refresh" label=${y("actions.refresh")}></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 tooltipFixed @click=${() => e._maximize()} size="md" variant="primary" icon="open_in_full" label=${y("actions.maximizeButton")}></dss-icon-button>
7439
- ${e.isAdministrative ? M : h`<div>|</div>
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 tooltipFixed size="md" variant="primary" icon="more_vert" label=${y("actions.menuButton")}></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=${y("actions.cronogram")} @click=${e._raiseEcapCronogramEvent}></dss-action-menu-item>
7444
- <!-- <dss-action-menu-item lefticon="file_download" label=${y("actions.exportPdf")} @click=${() => e.api.broker.send(new os())}></dss-action-menu-item> -->
7445
- <!-- <dss-action-menu-item lefticon="info" label=${y("actions.entryLegend")}></dss-action-menu-item> -->
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>` : M}
7455
- ${e.historyGroups?.length || !e.isAnyCollectionBusy ? h`<activity-history-timeline></activity-history-timeline>` : M}
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">${y("activityHistory")}</div>
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 dropdownFixed inputsize="md" class="date-picker" @onValueChange=${(t) => e._handleSelectDate(t.detail)}>
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="${y("actions.moreOptions")}" icon="more_horiz" iconposition="left"></dss-button>
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=${y("actions.exportPdf")}></dss-action-menu-item>
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="${y("actions.entryLegend")}" size="md" variant="secondary" icon="info"></dss-button> -->
7477
- ${e.isAdministrative ? M : h`<dss-button label="${y("actions.cronogram")}" size="md" variant="primary" icon="view_timeline" @click=${e._raiseEcapCronogramEvent}></dss-button>`}
7478
- <dss-icon-button tooltipFixed @click=${() => e._minimize()} size="md" variant="primary" icon="close_fullscreen" label=${y("actions.minimizeButton")}></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 Oi(j) {
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,8 +7496,8 @@ let ne = class extends Oi(j) {
7523
7496
  this.subscriptions.forEach((e) => e.dispose());
7524
7497
  }
7525
7498
  _handleSelectDate(e) {
7526
- const t = Eo(e, "dd/MM/yyyy", /* @__PURE__ */ new Date());
7527
- this.scrollToClosestDate(t);
7499
+ const t = $o(e, "dd/MM/yyyy", /* @__PURE__ */ new Date());
7500
+ Ys(t) && this.scrollToClosestDate(t);
7528
7501
  }
7529
7502
  _handleSearchChange(e) {
7530
7503
  typeof e.detail == "string" && (this.searchQuery = e.detail, this._searchTimeout && clearTimeout(this._searchTimeout), this._searchTimeout = setTimeout(() => {
@@ -7540,11 +7513,11 @@ let ne = class extends Oi(j) {
7540
7513
  this.shadowRoot.querySelector("activity-history-timeline")._scrollIntoDate(t);
7541
7514
  }
7542
7515
  _refreshHistory() {
7543
- this.api.broker.send(new di());
7516
+ this.api.broker.send(new ui());
7544
7517
  }
7545
7518
  };
7546
7519
  ne.styles = W`
7547
- ${L(vh)}
7520
+ ${L(bh)}
7548
7521
  `;
7549
7522
  De([
7550
7523
  Z({ type: Boolean, reflect: !0 })
@@ -7567,25 +7540,25 @@ De([
7567
7540
  ne = De([
7568
7541
  Y("activity-history-main")
7569
7542
  ], ne);
7570
- const wi = "activity-history-importer", Ch = (e) => {
7543
+ const xi = "activity-history-importer", Ch = (e) => {
7571
7544
  e.regionManager.registerView(e.regionManager.regions.clinicalMonitoring.content, {
7572
7545
  id: e.pluginInfo.pluginId,
7573
7546
  factory: () => Promise.resolve(new ne())
7574
7547
  }), e.regionManager.registerView(e.regionManager.regions.shell.importDataActivityHistory, {
7575
- id: wi,
7548
+ id: xi,
7576
7549
  factory: () => Promise.resolve(new V()),
7577
7550
  sortHint: "0020"
7578
7551
  });
7579
7552
  }, Dh = () => {
7580
7553
  const e = Se.get(z.primaryApi);
7581
- e.regionManager.removeView(e.regionManager.regions.clinicalMonitoring.content, e.pluginInfo.pluginId), e.regionManager.removeView(e.regionManager.regions.shell.importDataActivityHistory, wi);
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
- }, $h = () => {
7557
+ }, Th = () => {
7585
7558
  Wu();
7586
- }, Oh = async (e) => (vr(e), Ch(e), await bl(e), al(e), Ih(e), Promise.resolve()), Fh = () => (vr(null), $h(), Dh(), ll(), Promise.resolve());
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
- Fh as dispose,
7561
+ Mh as dispose,
7589
7562
  Oh as initialize
7590
7563
  };
7591
- //# sourceMappingURL=plugin-B_mTXVZ2.js.map
7564
+ //# sourceMappingURL=plugin-B5E6LZ4X.js.map