@argusoft/medplat-core 1.0.23 → 1.0.25

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 (61) hide show
  1. package/dist/{AddFeatures-CTVs_Gr9.js → AddFeatures-CqE3v0BN.js} +2 -2
  2. package/dist/{AddFeatures-CTVs_Gr9.js.map → AddFeatures-CqE3v0BN.js.map} +1 -1
  3. package/dist/AddMenuConfiguration-BSQLl88V.js +6570 -0
  4. package/dist/AddMenuConfiguration-BSQLl88V.js.map +1 -0
  5. package/dist/AddMenuConfiguration.css +1 -1
  6. package/dist/{ChangePasswordModalCore-DONyFFlx.js → ChangePasswordModalCore-DTYWRTa-.js} +955 -952
  7. package/dist/ChangePasswordModalCore-DTYWRTa-.js.map +1 -0
  8. package/dist/{ConditionConfig-C3rF2wXU.js → ConditionConfig-DSsgGEXS.js} +2 -2
  9. package/dist/{ConditionConfig-C3rF2wXU.js.map → ConditionConfig-DSsgGEXS.js.map} +1 -1
  10. package/dist/FhirRawResourceList-ZZFd7gTX.js +550 -0
  11. package/dist/FhirRawResourceList-ZZFd7gTX.js.map +1 -0
  12. package/dist/FhirServerList-Dkq7Kbes.js +116 -0
  13. package/dist/FhirServerList-Dkq7Kbes.js.map +1 -0
  14. package/dist/FhirServerProfile-CUOwC6Wb.js +253 -0
  15. package/dist/FhirServerProfile-CUOwC6Wb.js.map +1 -0
  16. package/dist/FhirServerWizard-Db6Hm4bQ.js +161 -0
  17. package/dist/FhirServerWizard-Db6Hm4bQ.js.map +1 -0
  18. package/dist/{ImmunizationConfigurationBase-CTBoSuSz.js → ImmunizationConfigurationBase-BevKZx_l.js} +386 -302
  19. package/dist/ImmunizationConfigurationBase-BevKZx_l.js.map +1 -0
  20. package/dist/{ManageEventConfiguration-BntUc_YI.js → ManageEventConfiguration-DV3I5POA.js} +4 -4
  21. package/dist/{ManageEventConfiguration-BntUc_YI.js.map → ManageEventConfiguration-DV3I5POA.js.map} +1 -1
  22. package/dist/{ManageRole-CZAk-IlM.js → ManageRole-B9bs_T00.js} +116 -116
  23. package/dist/ManageRole-B9bs_T00.js.map +1 -0
  24. package/dist/{ManageUser-Gv38VHMu.js → ManageUser-AB3_Vfp_.js} +85 -84
  25. package/dist/{ManageUser-Gv38VHMu.js.map → ManageUser-AB3_Vfp_.js.map} +1 -1
  26. package/dist/{MobileMenuManagement-CV6QCeos.js → MobileMenuManagement-CVAKyKDa.js} +33 -32
  27. package/dist/MobileMenuManagement-CVAKyKDa.js.map +1 -0
  28. package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js → MobileTypeEventConfigModal-BxLympIO.js} +2 -2
  29. package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js.map → MobileTypeEventConfigModal-BxLympIO.js.map} +1 -1
  30. package/dist/{OtherTypeEventConfigModal-DiVhWDpG.js → OtherTypeEventConfigModal-BeG1GrUi.js} +94 -93
  31. package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +1 -0
  32. package/dist/{RoleManagement-B9WgZGEj.js → RoleManagement-BIiW9uTq.js} +2 -2
  33. package/dist/{RoleManagement-B9WgZGEj.js.map → RoleManagement-BIiW9uTq.js.map} +1 -1
  34. package/dist/ServerFormFields-SLghoZ2z.js +136 -0
  35. package/dist/ServerFormFields-SLghoZ2z.js.map +1 -0
  36. package/dist/SyncDialog-BRGpHOE4.js +130 -0
  37. package/dist/SyncDialog-BRGpHOE4.js.map +1 -0
  38. package/dist/{TypeConfiguration-CupQxH9Y.js → TypeConfiguration-37wp-gsl.js} +2 -2
  39. package/dist/{TypeConfiguration-CupQxH9Y.js.map → TypeConfiguration-37wp-gsl.js.map} +1 -1
  40. package/dist/{UserList-BzHsbYel.js → UserList-2gGuDgNa.js} +38 -37
  41. package/dist/{UserList-BzHsbYel.js.map → UserList-2gGuDgNa.js.map} +1 -1
  42. package/dist/{UserListSkeleton-DhIJ5X3y.js → UserListSkeleton-BMKANCtW.js} +57 -93
  43. package/dist/UserListSkeleton-BMKANCtW.js.map +1 -0
  44. package/dist/Users-CsJ08Kjm.js +40 -0
  45. package/dist/Users-CsJ08Kjm.js.map +1 -0
  46. package/dist/dashboardLayoutUtils-Bt5HA96J.js +265 -0
  47. package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +1 -0
  48. package/dist/index.css +1 -1
  49. package/dist/index.js +190 -134
  50. package/dist/index.js.map +1 -1
  51. package/dist/permissions-DEWACxJN.js +308 -0
  52. package/dist/permissions-DEWACxJN.js.map +1 -0
  53. package/package.json +1 -1
  54. package/dist/AddMenuConfiguration-DsnY0Rws.js +0 -2237
  55. package/dist/AddMenuConfiguration-DsnY0Rws.js.map +0 -1
  56. package/dist/ChangePasswordModalCore-DONyFFlx.js.map +0 -1
  57. package/dist/ImmunizationConfigurationBase-CTBoSuSz.js.map +0 -1
  58. package/dist/ManageRole-CZAk-IlM.js.map +0 -1
  59. package/dist/MobileMenuManagement-CV6QCeos.js.map +0 -1
  60. package/dist/OtherTypeEventConfigModal-DiVhWDpG.js.map +0 -1
  61. package/dist/UserListSkeleton-DhIJ5X3y.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as $, Fragment as de } from "react/jsx-runtime";
2
- import $a, { useState as U, useRef as We, useEffect as Me, useCallback as ja, Suspense as xa, lazy as Ca } from "react";
3
- import { g as Ga, f as Ya, h as qa, i as _a, j as Da, M as Ha, v as ba, k as Ia, l as Za, m as Ka, u as Wa, n as Ja } from "./UserListSkeleton-DhIJ5X3y.js";
2
+ import Ga, { useState as U, useRef as We, useEffect as Me, useCallback as ja, Suspense as xa, lazy as Ta } from "react";
3
+ import { g as Ya, c as Da, d as qa, e as _a, f as Ha, v as ba, h as Ia, i as Za, j as Ka, u as Wa, k as Ja } from "./Users-CsJ08Kjm.js";
4
4
  import { showToast as ve } from "@/common/toaster/toaster";
5
5
  import { FormItem as G } from "@/views/custom-components/FormItem.jsx";
6
6
  import { getAssignedFeatures as Xa } from "@/utils/feature";
@@ -23,6 +23,7 @@ import gi from "@/hooks/useTrackEvent";
23
23
  import * as I from "yup";
24
24
  import Aa from "@/views/custom-components/CustomDatePicker";
25
25
  import { useTranslateProvider as pi } from "@/common/languageTranslator/TranslationContext";
26
+ import { M as bi } from "./UserListSkeleton-BMKANCtW.js";
26
27
  import { execute as he } from "@/common/services/GlobalApis";
27
28
  import B from "@/common/services/util/GeneralUtil";
28
29
  import './ManageUser.css';const va = ({
@@ -64,14 +65,14 @@ va.propTypes = {
64
65
  rules: je.any
65
66
  };
66
67
  var ha = {}, Ea;
67
- function bi() {
68
+ function yi() {
68
69
  if (Ea) return ha;
69
70
  Ea = 1;
70
71
  function ce(e) {
71
72
  return e && typeof e == "object" && "default" in e ? e.default : e;
72
73
  }
73
74
  Object.defineProperty(ha, "__esModule", { value: !0 });
74
- var we = $a, te = ce(we), Ie = function(e, a) {
75
+ var we = Ga, te = ce(we), Ie = function(e, a) {
75
76
  return (Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
76
77
  r.__proto__ = n;
77
78
  } || function(r, n) {
@@ -103,7 +104,7 @@ function bi() {
103
104
  return l;
104
105
  })().length;
105
106
  }, oe = 1e4, Ae = Ne = 10, ge = 50;
106
- var h, Re, aa, ia, ra, qe, S, Ee, Oe, na, sa, K, be, Fe = { nCk: function(e, a) {
107
+ var h, Pe, aa, ia, ra, qe, S, Ee, Oe, na, sa, K, be, Fe = { nCk: function(e, a) {
107
108
  var r, n, o, t;
108
109
  if (e < a) return 0;
109
110
  if (a === 0) return 1;
@@ -141,23 +142,23 @@ function bi() {
141
142
  for (z = [], A = 0, m = k; 0 <= m ? A < m : m < A; 0 <= m ? ++A : --A) z.push({});
142
143
  return z;
143
144
  })() }, J = this, H = function(m, z) {
144
- var A, E, L, R, M, ee;
145
- for (E in R = m.j, M = J.estimate_guesses(m, e), 1 < z && (M *= f.pi[m.i - 1][z - 1]), L = J.factorial(z) * M, r || (L += Math.pow(oe, z - 1)), ee = f.g[R]) if (A = ee[E], !(z < E) && A <= L) return;
146
- return f.g[R][z] = L, f.m[R][z] = m, f.pi[R][z] = M;
145
+ var A, E, L, P, M, ee;
146
+ for (E in P = m.j, M = J.estimate_guesses(m, e), 1 < z && (M *= f.pi[m.i - 1][z - 1]), L = J.factorial(z) * M, r || (L += Math.pow(oe, z - 1)), ee = f.g[P]) if (A = ee[E], !(z < E) && A <= L) return;
147
+ return f.g[P][z] = L, f.m[P][z] = m, f.pi[P][z] = M;
147
148
  }, n = function(m) {
148
- var z, A, E, L, R, M;
149
- for (g = v(0, m), H(g, 1), R = [], z = M = 1, L = m; 1 <= L ? M <= L : L <= M; z = 1 <= L ? ++M : --M) g = v(z, m), R.push((function() {
149
+ var z, A, E, L, P, M;
150
+ for (g = v(0, m), H(g, 1), P = [], z = M = 1, L = m; 1 <= L ? M <= L : L <= M; z = 1 <= L ? ++M : --M) g = v(z, m), P.push((function() {
150
151
  var ee, X;
151
152
  for (A in X = [], ee = f.m[z - 1]) E = ee[A], A = parseInt(A), E.pattern !== "bruteforce" && X.push(H(g, A + 1));
152
153
  return X;
153
154
  })());
154
- return R;
155
+ return P;
155
156
  }, v = function(m, z) {
156
157
  return { pattern: "bruteforce", token: e.slice(m, +z + 1 || 9e9), i: m, j: z };
157
158
  }, re = function(m) {
158
- var z, A, E, L, R, M, ee;
159
- for (A in M = [], L = m - 1, R = void 0, E = 1 / 0, ee = f.g[L]) (z = ee[A]) < E && (R = A, E = z);
160
- for (; 0 <= L; ) g = f.m[L][R], M.unshift(g), L = g.i - 1, R--;
159
+ var z, A, E, L, P, M, ee;
160
+ for (A in M = [], L = m - 1, P = void 0, E = 1 / 0, ee = f.g[L]) (z = ee[A]) < E && (P = A, E = z);
161
+ for (; 0 <= L; ) g = f.m[L][P], M.unshift(g), L = g.i - 1, P--;
161
162
  return M;
162
163
  }, t = W = 0, F = k; 0 <= F ? W < F : F < W; t = 0 <= F ? ++W : --W) {
163
164
  for (Z = 0, u = (V = y[t]).length; Z < u; Z++) if (0 < (g = V[Z]).i) for (l in f.m[g.i - 1]) l = parseInt(l), H(g, l + 1);
@@ -243,8 +244,8 @@ function bi() {
243
244
  for (o = {}, a = 1, n = 0, r = e.length; n < r; n++) o[e[n]] = a, a += 1;
244
245
  return o;
245
246
  }, qe = {}, na = Ve) sa = na[K], qe[K] = Oe(sa);
246
- ia = { qwerty: Ee.qwerty, dvorak: Ee.dvorak, keypad: Ee.keypad, mac_keypad: Ee.mac_keypad }, ra = { a: ["4", "@"], b: ["8"], c: ["(", "{", "[", "<"], e: ["3"], g: ["6", "9"], i: ["1", "!", "|"], l: ["1", "|", "7"], o: ["0"], s: ["$", "5"], t: ["+", "7"], x: ["%"], z: ["2"] }, S = { recent_year: /19\d\d|200\d|201\d/g }, h = 2050, Re = 1e3, aa = { 4: [[1, 2], [2, 3]], 5: [[1, 3], [2, 3]], 6: [[1, 2], [2, 4], [4, 5]], 7: [[1, 3], [2, 3], [4, 5], [4, 6]], 8: [[2, 4], [4, 6]] };
247
- var le, ye, Pe, c, oa, ke, Se, Ce = { empty: function(e) {
247
+ ia = { qwerty: Ee.qwerty, dvorak: Ee.dvorak, keypad: Ee.keypad, mac_keypad: Ee.mac_keypad }, ra = { a: ["4", "@"], b: ["8"], c: ["(", "{", "[", "<"], e: ["3"], g: ["6", "9"], i: ["1", "!", "|"], l: ["1", "|", "7"], o: ["0"], s: ["$", "5"], t: ["+", "7"], x: ["%"], z: ["2"] }, S = { recent_year: /19\d\d|200\d|201\d/g }, h = 2050, Pe = 1e3, aa = { 4: [[1, 2], [2, 3]], 5: [[1, 3], [2, 3]], 6: [[1, 2], [2, 4], [4, 5]], 7: [[1, 3], [2, 3], [4, 5], [4, 6]], 8: [[2, 4], [4, 6]] };
248
+ var le, ye, Re, c, oa, ke, Se, Ce = { empty: function(e) {
248
249
  var a;
249
250
  return (function() {
250
251
  var r;
@@ -308,14 +309,14 @@ function bi() {
308
309
  })().join("-")) in W || (W[F] = !0, O.push(H));
309
310
  return O;
310
311
  }, (n = function(N) {
311
- var T, O, F, V, W, re, H, Z, J, m, z, A, E, L, R, M;
312
+ var T, O, F, V, W, re, H, Z, J, m, z, A, E, L, P, M;
312
313
  if (N.length) {
313
314
  for (O = N[0], E = N.slice(1), H = [], Z = 0, W = (z = e[O]).length; Z < W; Z++) for (V = z[Z], J = 0, re = f.length; J < re; J++) {
314
315
  for (T = -1, F = m = 0, A = (L = f[J]).length; 0 <= A ? m < A : A < m; F = 0 <= A ? ++m : --m) if (L[F][0] === V) {
315
316
  T = F;
316
317
  break;
317
318
  }
318
- T === -1 ? (M = L.concat([[V, O]]), H.push(M)) : ((R = L.slice(0)).splice(T, 1), R.push([V, O]), H.push(L), H.push(R));
319
+ T === -1 ? (M = L.concat([[V, O]]), H.push(M)) : ((P = L.slice(0)).splice(T, 1), P.push([V, O]), H.push(L), H.push(P));
319
320
  }
320
321
  return f = r(H), n(E);
321
322
  }
@@ -374,7 +375,7 @@ function bi() {
374
375
  for (K in a == null && (a = S), r = [], a) for ((n = a[K]).lastIndex = 0; o = n.exec(e); ) t = o[0], r.push({ pattern: "regex", token: t, i: o.index, j: o.index + o[0].length - 1, regex_name: K, regex_match: o });
375
376
  return this.sorted(r);
376
377
  }, date_match: function(e) {
377
- var a, r, n, o, t, l, d, b, u, g, v, y, k, p, f, N, T, O, F, V, W, re, H, Z, J, m, z, A, E, L, R, M, ee, X;
378
+ var a, r, n, o, t, l, d, b, u, g, v, y, k, p, f, N, T, O, F, V, W, re, H, Z, J, m, z, A, E, L, P, M, ee, X;
378
379
  for (y = [], k = /^\d{4,8}$/, p = /^(\d{1,4})([\s\/\\_.-])(\d{1,2})\2(\d{1,4})$/, l = T = 0, W = e.length - 4; 0 <= W ? T <= W : W <= T; l = 0 <= W ? ++T : --T) for (d = O = re = l + 3, H = l + 7; (re <= H ? O <= H : H <= O) && !(d >= e.length); d = re <= H ? ++O : --O) if (X = e.slice(l, +d + 1 || 9e9), k.exec(X)) {
379
380
  for (n = [], F = 0, g = (Z = aa[X.length]).length; F < g; F++) b = (J = Z[F])[0], u = J[1], (t = this.map_ints_to_dmy([parseInt(X.slice(0, b)), parseInt(X.slice(b, u)), parseInt(X.slice(u))])) != null && n.push(t);
380
381
  if (0 < n.length) {
@@ -384,7 +385,7 @@ function bi() {
384
385
  y.push({ pattern: "date", token: X, i: l, j: d, separator: "", year: a.year, month: a.month, day: a.day });
385
386
  }
386
387
  }
387
- for (l = M = 0, A = e.length - 6; 0 <= A ? M <= A : A <= M; l = 0 <= A ? ++M : --M) for (d = ee = E = l + 5, L = l + 9; (E <= L ? ee <= L : L <= ee) && !(d >= e.length); d = E <= L ? ++ee : --ee) X = e.slice(l, +d + 1 || 9e9), (R = p.exec(X)) != null && (t = this.map_ints_to_dmy([parseInt(R[1]), parseInt(R[3]), parseInt(R[4])])) != null && y.push({ pattern: "date", token: X, i: l, j: d, separator: R[2], year: t.year, month: t.month, day: t.day });
388
+ for (l = M = 0, A = e.length - 6; 0 <= A ? M <= A : A <= M; l = 0 <= A ? ++M : --M) for (d = ee = E = l + 5, L = l + 9; (E <= L ? ee <= L : L <= ee) && !(d >= e.length); d = E <= L ? ++ee : --ee) X = e.slice(l, +d + 1 || 9e9), (P = p.exec(X)) != null && (t = this.map_ints_to_dmy([parseInt(P[1]), parseInt(P[3]), parseInt(P[4])])) != null && y.push({ pattern: "date", token: X, i: l, j: d, separator: P[2], year: t.year, month: t.month, day: t.day });
388
389
  return this.sorted(y.filter(function(_e) {
389
390
  var De, la, He, Te;
390
391
  for (De = !1, Te = 0, la = y.length; Te < la; Te++) if (_e !== (He = y[Te]) && He.i <= _e.i && He.j >= _e.j) {
@@ -397,11 +398,11 @@ function bi() {
397
398
  var a, r, n, o, t, l, d, b, u, g, v, y, k, p, f, N;
398
399
  if (!(31 < e[1] || e[1] <= 0)) {
399
400
  for (l = f = b = d = 0, n = e.length; l < n; l++) {
400
- if (99 < (r = e[l]) && r < Re || h < r) return;
401
+ if (99 < (r = e[l]) && r < Pe || h < r) return;
401
402
  31 < r && (b += 1), 12 < r && (d += 1), r <= 0 && (f += 1);
402
403
  }
403
404
  if (!(2 <= b || d === 3 || 2 <= f)) {
404
- for (u = 0, o = (g = [[e[2], e.slice(0, 2)], [e[0], e.slice(1, 3)]]).length; u < o; u++) if (N = (y = g[u])[0], p = y[1], Re <= N && N <= h) return (a = this.map_ints_to_dm(p)) != null ? { year: N, month: a.month, day: a.day } : void 0;
405
+ for (u = 0, o = (g = [[e[2], e.slice(0, 2)], [e[0], e.slice(1, 3)]]).length; u < o; u++) if (N = (y = g[u])[0], p = y[1], Pe <= N && N <= h) return (a = this.map_ints_to_dm(p)) != null ? { year: N, month: a.month, day: a.day } : void 0;
405
406
  for (v = 0, t = g.length; v < t; v++) if (N = (k = g[v])[0], p = k[1], (a = this.map_ints_to_dm(p)) != null) return { year: N = this.two_to_four_digit_year(N), month: a.month, day: a.day };
406
407
  }
407
408
  }
@@ -445,14 +446,14 @@ function bi() {
445
446
  var r, n, o, t;
446
447
  return o = e.dictionary_name === "passwords" ? !a || e.l33t || e.reversed ? e.guesses_log10 <= 4 ? "This is similar to a commonly used password" : void 0 : e.rank <= 10 ? "This is a top-10 common password" : e.rank <= 100 ? "This is a top-100 common password" : "This is a very common password" : e.dictionary_name === "english_wikipedia" ? a ? "A word by itself is easy to guess" : void 0 : (r = e.dictionary_name) === "surnames" || r === "male_names" || r === "female_names" ? a ? "Names and surnames by themselves are easy to guess" : "Common names and surnames are easy to guess" : "", n = [], (t = e.token).match(ye.START_UPPER) ? n.push("Capitalization doesn't help very much") : t.match(ye.ALL_UPPER) && t.toLowerCase() !== t && n.push("All-uppercase is almost as easy to guess as all-lowercase"), e.reversed && 4 <= e.token.length && n.push("Reversed words aren't much harder to guess"), e.l33t && n.push("Predictable substitutions like '@' instead of 'a' don't help very much"), { warning: o, suggestions: n };
447
448
  } };
448
- c = Ce, oa = ye = Fe, Se = Le, Pe = Ue, ke = function() {
449
+ c = Ce, oa = ye = Fe, Se = Le, Re = Ue, ke = function() {
449
450
  return (/* @__PURE__ */ new Date()).getTime();
450
451
  };
451
452
  var ga = function(e, a) {
452
453
  var r, n, o, t, l, d, b, u, g, v, y;
453
454
  for (a == null && (a = []), v = ke(), g = [], o = 0, t = a.length; o < t; o++) (b = typeof (r = a[o])) != "string" && b != "number" && b != "boolean" || g.push(r.toString().toLowerCase());
454
455
  for (d in c.set_user_input_dictionary(g), l = c.omnimatch(e), (u = oa.most_guessable_match_sequence(e, l)).calc_time = ke() - v, n = Se.estimate_attack_times(u.guesses)) y = n[d], u[d] = y;
455
- return u.feedback = Pe.get_feedback(u.score, u.sequence), u;
456
+ return u.feedback = Re.get_feedback(u.score, u.sequence), u;
456
457
  }, Be = { flexBasis: 0, flexGrow: 1, position: "relative", maxWidth: "100%", width: "100%", height: 2 }, ta = function(e) {
457
458
  var a = e.score, r = e.itemNum, n = e.barColors, o = n[0];
458
459
  return r <= a && (o = n[a]), te.createElement("div", { style: pe(pe({}, Be), { backgroundColor: o }) });
@@ -480,10 +481,10 @@ function bi() {
480
481
  })(te.Component);
481
482
  return ha.default = Ye, ha;
482
483
  }
483
- var yi = bi();
484
- const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCore-DONyFFlx.js")), vi = Ca(
484
+ var ki = yi();
485
+ const Sa = /* @__PURE__ */ mi(ki), fi = Ta(() => import("./ChangePasswordModalCore-DTYWRTa-.js")), vi = Sa.default || Sa, wi = Ta(
485
486
  () => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")
486
- ), Sa = I.object().shape({
487
+ ), Ca = I.object().shape({
487
488
  roleId: I.number().transform(
488
489
  (ce, we) => we === "" ? void 0 : ce
489
490
  ).typeError("UserRole is required").required("UserRole is required"),
@@ -506,8 +507,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
506
507
  then: (ce) => ce.required("Confirm Password is required").oneOf([I.ref("password"), null], "Passwords do not match")
507
508
  }),
508
509
  prefferedLanguage: I.string().required("Preffered Language is required")
509
- }), wi = () => {
510
- const [ce, we] = U(Sa), te = We(null), Ie = We(!1), xe = gi(), Ne = ui(), { translate: oe } = pi(), [ge, Ae] = U([]), [ne, ie] = U(0), [C, pe] = U(), [Ve, ea] = U([]), [h, Re] = U({}), [aa, ia] = U(!1), [ra, qe] = U("Add User"), { id: S } = hi(), [Ee, Oe] = U(!1), [na, sa] = U(!1), [K, be] = U([]), [Fe, le] = U([]), [ye, Pe] = U([]), [c, oa] = U({}), ke = We(c);
510
+ }), zi = () => {
511
+ const [ce, we] = U(Ca), te = We(null), Ie = We(!1), xe = gi(), Ne = ui(), { translate: oe } = pi(), [ge, Ae] = U([]), [ne, ie] = U(0), [C, pe] = U(), [Ve, ea] = U([]), [h, Pe] = U({}), [aa, ia] = U(!1), [ra, qe] = U("Add User"), { id: S } = hi(), [Ee, Oe] = U(!1), [na, sa] = U(!1), [K, be] = U([]), [Fe, le] = U([]), [ye, Re] = U([]), [c, oa] = U({}), ke = We(c);
511
512
  Me(() => {
512
513
  ke.current = c;
513
514
  }, [c]);
@@ -626,13 +627,13 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
626
627
  ) : s = s.concat(
627
628
  I.object().shape({
628
629
  latitude: I.number().transform(
629
- (_, P) => P === "" ? void 0 : _
630
+ (_, R) => R === "" ? void 0 : _
630
631
  ).typeError("Latitude must be a number").nullable().min(-90, "Latitude must be between -90 and 90").max(90, "Latitude must be between -90 and 90").notRequired(),
631
632
  longitude: I.number().transform(
632
- (_, P) => P === "" ? void 0 : _
633
+ (_, R) => R === "" ? void 0 : _
633
634
  ).typeError("Longitude must be a number").nullable().min(-180, "Longitude must be between -180 and 180").max(180, "Longitude must be between -180 and 180").notRequired()
634
635
  })
635
- )), we(Sa.concat(s));
636
+ )), we(Ca.concat(s));
636
637
  }, [c, h, S]);
637
638
  const J = ci({
638
639
  mode: "onChange",
@@ -650,7 +651,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
650
651
  handleSubmit: A,
651
652
  formState: { errors: E },
652
653
  getValues: L,
653
- setValue: R,
654
+ setValue: P,
654
655
  watch: M,
655
656
  clearErrors: ee,
656
657
  resetField: X,
@@ -672,7 +673,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
672
673
  if (!s.target.value)
673
674
  return;
674
675
  const q = parseInt(s.target.value);
675
- e([]), be([]), Pe([]);
676
+ e([]), be([]), Re([]);
676
677
  const { data: Y } = await _a({
677
678
  role_id: q
678
679
  });
@@ -683,7 +684,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
683
684
  Be(Math.max(...w)), r([]);
684
685
  } else
685
686
  ta.current = 10, Be(10), g(!1), r((C == null ? void 0 : C.addedLocations) || []);
686
- if (Re(() => {
687
+ if (Pe(() => {
687
688
  const D = ge.find((w) => w.id === q);
688
689
  return D ? {
689
690
  ...D,
@@ -703,11 +704,11 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
703
704
  const j = Ve.find(
704
705
  (q) => q.languageKey === s.target.value
705
706
  );
706
- j && R("prefferedLanguage", j.languageKey);
707
+ j && P("prefferedLanguage", j.languageKey);
707
708
  }, He = async (s) => {
708
709
  var j;
709
710
  try {
710
- K.length === 0 && (ee("areas"), Ce({})), S && ((j = C == null ? void 0 : C.addedLocations) != null && j.includes(s)) && r((P) => [...P, s]);
711
+ K.length === 0 && (ee("areas"), Ce({})), S && ((j = C == null ? void 0 : C.addedLocations) != null && j.includes(s)) && r((R) => [...R, s]);
711
712
  const q = ye == null ? void 0 : ye.map(
712
713
  (_) => _.infraid
713
714
  ), { data: Y } = await Ka(
@@ -733,10 +734,10 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
733
734
  }
734
735
  }, Te = ja(
735
736
  (s) => {
736
- B.isBahaar || (s === "Mr" ? R("gender", "M") : (s === "Mrs" || s === "Ms") && R("gender", "F"));
737
+ B.isBahaar || (s === "Mr" ? P("gender", "M") : (s === "Mrs" || s === "Ms") && P("gender", "F"));
737
738
  },
738
- [R]
739
- ), Ta = async (s) => {
739
+ [P]
740
+ ), Ma = async (s) => {
740
741
  var q, Y, D, w, _;
741
742
  const j = {
742
743
  ...C,
@@ -745,10 +746,10 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
745
746
  lastName: (s == null ? void 0 : s.lastName) || "",
746
747
  addedLocations: K,
747
748
  infrastructureIds: ye.map(
748
- (P) => P.infraid
749
+ (R) => R.infraid
749
750
  ),
750
751
  bankNameId: O.length > 0 ? s == null ? void 0 : s.bankName : null,
751
- bankName: O.length > 0 ? ((q = O.find((P) => P.id == (s == null ? void 0 : s.bankName))) == null ? void 0 : q.value) ?? (s == null ? void 0 : s.bankName) : s == null ? void 0 : s.bankName
752
+ bankName: O.length > 0 ? ((q = O.find((R) => R.id == (s == null ? void 0 : s.bankName))) == null ? void 0 : q.value) ?? (s == null ? void 0 : s.bankName) : s == null ? void 0 : s.bankName
752
753
  };
753
754
  if (a.length > 0 && (j.deletedLocations = a), !K.length && u) {
754
755
  ve({
@@ -784,16 +785,16 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
784
785
  fromManageUser: !0
785
786
  }
786
787
  }));
787
- } catch (P) {
788
- ((D = (Y = P == null ? void 0 : P.response) == null ? void 0 : Y.data) == null ? void 0 : D.errorcode) === 400 ? ve({
789
- message: (_ = (w = P == null ? void 0 : P.response) == null ? void 0 : w.data) == null ? void 0 : _.message,
788
+ } catch (R) {
789
+ ((D = (Y = R == null ? void 0 : R.response) == null ? void 0 : Y.data) == null ? void 0 : D.errorcode) === 400 ? ve({
790
+ message: (_ = (w = R == null ? void 0 : R.response) == null ? void 0 : w.data) == null ? void 0 : _.message,
790
791
  type: "error"
791
792
  }) : ve({
792
793
  message: `Something went wrong while ${S ? "Updating" : "Adding"} user`,
793
794
  type: "error"
794
795
  });
795
796
  }
796
- }, Ma = () => {
797
+ }, Pa = () => {
797
798
  Ne("/ui/medplat/manage/users", {
798
799
  state: {
799
800
  fromManageUser: !0
@@ -802,7 +803,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
802
803
  }, Ra = async (s) => {
803
804
  try {
804
805
  const j = s.target.value.toLowerCase();
805
- if (R("userName", j, { shouldValidate: !0 }), (C == null ? void 0 : C.userName) !== j) {
806
+ if (P("userName", j, { shouldValidate: !0 }), (C == null ? void 0 : C.userName) !== j) {
806
807
  const { data: q } = await Ia({
807
808
  action: "checkusername",
808
809
  username: j
@@ -816,7 +817,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
816
817
  } catch (j) {
817
818
  console.error(j);
818
819
  }
819
- }, Pa = async (s) => {
820
+ }, La = async (s) => {
820
821
  var j;
821
822
  try {
822
823
  const q = Number((j = s.target) == null ? void 0 : j.value);
@@ -833,7 +834,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
833
834
  } catch (q) {
834
835
  console.error(q);
835
836
  }
836
- }, La = async () => {
837
+ }, Ua = async () => {
837
838
  var s, j;
838
839
  try {
839
840
  xe("button_click", {
@@ -847,7 +848,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
847
848
  const ae = Ye.includes(
848
849
  (j = (s = fe == null ? void 0 : fe.finalSelected) == null ? void 0 : s.optionSelected) == null ? void 0 : j.type
849
850
  ), { data: Ze } = await Za(), Ke = Ye.map(
850
- (Oa) => Ze.find((Fa) => Fa.type === Oa).name
851
+ (Fa) => Ze.find(($a) => $a.type === Fa).name
851
852
  );
852
853
  if (!ae)
853
854
  return Ce({
@@ -915,7 +916,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
915
916
  }
916
917
  }, wa = async () => {
917
918
  await _e(["password", "confirmPassword"]);
918
- }, Ua = async () => {
919
+ }, Ba = async () => {
919
920
  try {
920
921
  const { data: s } = await he({
921
922
  code: "unlock_user_option",
@@ -937,9 +938,9 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
937
938
  try {
938
939
  l(!0);
939
940
  const [q, Y, D] = await Promise.all([
940
- Ga(),
941
+ Ya(),
941
942
  Xa("techo.manage.users"),
942
- Ya()
943
+ Da()
943
944
  ]);
944
945
  Ae(q == null ? void 0 : q.data), oa(JSON.parse(Y == null ? void 0 : Y.data)), ea(D == null ? void 0 : D.data);
945
946
  try {
@@ -962,30 +963,30 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
962
963
  role_id: w.roleId
963
964
  });
964
965
  if (((j = _.hierarchy) == null ? void 0 : j.length) > 0) {
965
- const P = _.hierarchy.map(
966
+ const R = _.hierarchy.map(
966
967
  (ae) => ae.locationType
967
968
  );
968
- e(P);
969
+ e(R);
969
970
  const Q = _.hierarchy.map((ae) => ae.level);
970
971
  Be(Math.max(...Q));
971
972
  } else
972
973
  ta.current = 10, Be(10);
973
- if (Re(() => {
974
- var P;
974
+ if (Pe(() => {
975
+ var R;
975
976
  return _ != null && _.roles ? {
976
977
  ..._ == null ? void 0 : _.roles,
977
- isDoctor: ((P = _ == null ? void 0 : _.roles) == null ? void 0 : P.name.toLowerCase()) === "doctor"
978
+ isDoctor: ((R = _ == null ? void 0 : _.roles) == null ? void 0 : R.name.toLowerCase()) === "doctor"
978
979
  } : null;
979
980
  }), _.roles.name.toLowerCase() === "doctor") {
980
- const P = await he({
981
+ const R = await he({
981
982
  code: "GET_SPECIALIZATION"
982
983
  });
983
- p(P.data.result), y(!0);
984
+ p(R.data.result), y(!0);
984
985
  } else
985
986
  X("specialization"), y(!1);
986
987
  if ((w == null ? void 0 : w.addedLocations.length) > 0) {
987
988
  g(!0);
988
- const { data: P } = await he({
989
+ const { data: R } = await he({
989
990
  code: "retrieve_infra_by_role_location",
990
991
  parameters: {
991
992
  roleId: Number(w == null ? void 0 : w.roleId),
@@ -994,15 +995,15 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
994
995
  )
995
996
  }
996
997
  });
997
- le(P.result), Pe(
998
- P.result.filter(
998
+ le(R.result), Re(
999
+ R.result.filter(
999
1000
  (Q) => w == null ? void 0 : w.infrastructureIds.includes(Q.infraid)
1000
1001
  )
1001
1002
  );
1002
1003
  }
1003
1004
  ia(!0), Object.keys(w).map(
1004
- (P) => R(P, w == null ? void 0 : w[P])
1005
- ), R("prefferedLanguage", w == null ? void 0 : w.prefferedLanguage), w != null && w.bankNameId && !B.isTecho && R("bankName", w.bankNameId);
1005
+ (R) => P(R, w == null ? void 0 : w[R])
1006
+ ), P("prefferedLanguage", w == null ? void 0 : w.prefferedLanguage), w != null && w.bankNameId && !B.isTecho && P("bankName", w.bankNameId);
1006
1007
  }
1007
1008
  l(!1);
1008
1009
  } catch (q) {
@@ -1011,13 +1012,13 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1011
1012
  type: "error"
1012
1013
  }), l((Y) => !Y);
1013
1014
  }
1014
- }, [S, R]);
1015
+ }, [S, P]);
1015
1016
  Me(() => {
1016
1017
  za();
1017
1018
  }, [za]), Me(() => {
1018
- v && S && Ba();
1019
+ v && S && Oa();
1019
1020
  }, [v, S]);
1020
- const Ba = async () => {
1021
+ const Oa = async () => {
1021
1022
  try {
1022
1023
  const s = await he({
1023
1024
  code: "GET_SPECIALIZATION_BY_USERID",
@@ -1025,8 +1026,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1025
1026
  id: parseInt(S)
1026
1027
  }
1027
1028
  });
1028
- R("specialization", s.data.result[0].specialization_id);
1029
- const j = await Da(parseInt(S)), q = new Blob([j], { type: "application/image" }), Y = URL.createObjectURL(q);
1029
+ P("specialization", s.data.result[0].specialization_id);
1030
+ const j = await Ha(parseInt(S)), q = new Blob([j], { type: "application/image" }), Y = URL.createObjectURL(q);
1030
1031
  W(Y);
1031
1032
  } catch (s) {
1032
1033
  console.error(s);
@@ -1068,7 +1069,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1068
1069
  description: "Do you want to unlock this User ?",
1069
1070
  title: "CONFIRM ACTION",
1070
1071
  open: ne === 2,
1071
- handleClick: Ua,
1072
+ handleClick: Ba,
1072
1073
  handleClose: () => ie(0),
1073
1074
  dataTestId: "unlock-user-modal"
1074
1075
  }
@@ -1092,10 +1093,10 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1092
1093
  s.preventDefault();
1093
1094
  return;
1094
1095
  }
1095
- A(Ta)(s);
1096
+ A(Ma)(s);
1096
1097
  },
1097
1098
  noValidate: !0,
1098
- children: /* @__PURE__ */ $(Ha, { isLoading: t, children: [
1099
+ children: /* @__PURE__ */ $(bi, { isLoading: t, children: [
1099
1100
  /* @__PURE__ */ i(x, { item: !0, container: !0, direction: "row", children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ i(
1100
1101
  ri,
1101
1102
  {
@@ -1482,7 +1483,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1482
1483
  }
1483
1484
  ) }),
1484
1485
  /* @__PURE__ */ i(G, { children: /* @__PURE__ */ i(
1485
- ki,
1486
+ vi,
1486
1487
  {
1487
1488
  password: M("password"),
1488
1489
  "data-testid": "password-strength-bar"
@@ -1539,7 +1540,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1539
1540
  name: "contactNumber",
1540
1541
  errors: E,
1541
1542
  label: "",
1542
- onBlur: Pa,
1543
+ onBlur: La,
1543
1544
  dataTestId: "phone-number-input"
1544
1545
  }
1545
1546
  )
@@ -1857,7 +1858,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1857
1858
  children: [
1858
1859
  /* @__PURE__ */ $(x, { children: [
1859
1860
  /* @__PURE__ */ i(xa, { children: /* @__PURE__ */ i(
1860
- vi,
1861
+ wi,
1861
1862
  {
1862
1863
  requiredUptoLevel: 0,
1863
1864
  selectedLocation: fe,
@@ -1910,7 +1911,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1910
1911
  parameters: {
1911
1912
  roleId: h == null ? void 0 : h.id,
1912
1913
  locationIds: w.map(
1913
- (P) => P.locationId
1914
+ (R) => R.locationId
1914
1915
  )
1915
1916
  }
1916
1917
  });
@@ -1934,7 +1935,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1934
1935
  variant: "contained",
1935
1936
  color: "primary",
1936
1937
  size: "small",
1937
- onClick: () => La(),
1938
+ onClick: () => Ua(),
1938
1939
  className: "mt-[1rem]",
1939
1940
  "data-testid": "add-area-button",
1940
1941
  children: oe("Add")
@@ -2015,7 +2016,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
2015
2016
  control: m,
2016
2017
  getOptionLabel: (s) => s == null ? void 0 : s.infrastructurename,
2017
2018
  value: ye,
2018
- onChange: (s, j) => Pe(j),
2019
+ onChange: (s, j) => Re(j),
2019
2020
  dataTestId: "health-infra-select",
2020
2021
  isVirtualized: !0
2021
2022
  }
@@ -2146,7 +2147,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
2146
2147
  Xe,
2147
2148
  {
2148
2149
  size: "small",
2149
- onClick: Ma,
2150
+ onClick: Pa,
2150
2151
  variant: "contained",
2151
2152
  color: "secondary",
2152
2153
  "data-testid": "cancel-button",
@@ -2173,12 +2174,12 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
2173
2174
  }
2174
2175
  ) })
2175
2176
  ] });
2176
- }, Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2177
+ }, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2177
2178
  __proto__: null,
2178
- default: wi
2179
+ default: zi
2179
2180
  }, Symbol.toStringTag, { value: "Module" }));
2180
2181
  export {
2181
- Ki as M,
2182
+ Ji as M,
2182
2183
  va as P
2183
2184
  };
2184
- //# sourceMappingURL=ManageUser-Gv38VHMu.js.map
2185
+ //# sourceMappingURL=ManageUser-AB3_Vfp_.js.map