@argusoft/medplat-core 1.0.22 → 1.0.23

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.
@@ -1,8 +1,8 @@
1
- import { jsx as i, jsxs as F, Fragment as de } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as $, Fragment as de } from "react/jsx-runtime";
2
2
  import $a, { useState as U, useRef as We, useEffect as Me, useCallback as ja, Suspense as xa, lazy as Ca } from "react";
3
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";
4
4
  import { showToast as ve } from "@/common/toaster/toaster";
5
- import { FormItem as $ } from "@/views/custom-components/FormItem.jsx";
5
+ import { FormItem as G } from "@/views/custom-components/FormItem.jsx";
6
6
  import { getAssignedFeatures as Xa } from "@/utils/feature";
7
7
  import Qa from "@/views/custom-components/CustomAutoComplete";
8
8
  import ya from "@/views/custom-components/CustomConfirmationModal";
@@ -24,7 +24,7 @@ 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
26
  import { execute as he } from "@/common/services/GlobalApis";
27
- import G from "@/common/services/util/GeneralUtil";
27
+ import B from "@/common/services/util/GeneralUtil";
28
28
  import './ManageUser.css';const va = ({
29
29
  control: ce,
30
30
  showPassword: we,
@@ -119,13 +119,13 @@ function bi() {
119
119
  for (a = 1, r = n = 2, o = e; 2 <= o ? n <= o : o <= n; r = 2 <= o ? ++n : --n) a *= r;
120
120
  return a;
121
121
  }, most_guessable_match_sequence: function(e, a, r) {
122
- var n, o, t, l, d, b, u, g, v, y, k, p, f, N, T, B, O, V, W, re, H, Z, J;
122
+ var n, o, t, l, d, b, u, g, v, y, k, p, f, N, T, O, F, V, W, re, H, Z, J;
123
123
  for (r == null && (r = !1), k = e.length, y = (function() {
124
124
  var m, z, A;
125
125
  for (A = [], m = 0, z = k; 0 <= z ? m < z : z < m; 0 <= z ? ++m : --m) A.push([]);
126
126
  return A;
127
127
  })(), p = 0, d = a.length; p < d; p++) y[(g = a[p]).j].push(g);
128
- for (B = 0, b = y.length; B < b; B++) y[B].sort(function(m, z) {
128
+ for (O = 0, b = y.length; O < b; O++) y[O].sort(function(m, z) {
129
129
  return m.i - z.i;
130
130
  });
131
131
  for (f = { m: (function() {
@@ -141,25 +141,25 @@ function bi() {
141
141
  for (z = [], A = 0, m = k; 0 <= m ? A < m : m < A; 0 <= m ? ++A : --A) z.push({});
142
142
  return z;
143
143
  })() }, J = this, H = function(m, z) {
144
- var A, E, L, M, R, ee;
145
- for (E in M = m.j, R = J.estimate_guesses(m, e), 1 < z && (R *= f.pi[m.i - 1][z - 1]), L = J.factorial(z) * R, r || (L += Math.pow(oe, z - 1)), ee = f.g[M]) if (A = ee[E], !(z < E) && A <= L) return;
146
- return f.g[M][z] = L, f.m[M][z] = m, f.pi[M][z] = R;
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;
147
147
  }, n = function(m) {
148
- var z, A, E, L, M, R;
149
- for (g = v(0, m), H(g, 1), M = [], z = R = 1, L = m; 1 <= L ? R <= L : L <= R; z = 1 <= L ? ++R : --R) g = v(z, m), M.push((function() {
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() {
150
150
  var ee, X;
151
151
  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
152
  return X;
153
153
  })());
154
- return M;
154
+ return R;
155
155
  }, v = function(m, z) {
156
156
  return { pattern: "bruteforce", token: e.slice(m, +z + 1 || 9e9), i: m, j: z };
157
157
  }, re = function(m) {
158
- var z, A, E, L, M, R, ee;
159
- for (A in R = [], L = m - 1, M = void 0, E = 1 / 0, ee = f.g[L]) (z = ee[A]) < E && (M = A, E = z);
160
- for (; 0 <= L; ) g = f.m[L][M], R.unshift(g), L = g.i - 1, M--;
161
- return R;
162
- }, t = W = 0, O = k; 0 <= O ? W < O : O < W; t = 0 <= O ? ++W : --W) {
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--;
161
+ return M;
162
+ }, t = W = 0, F = k; 0 <= F ? W < F : F < W; t = 0 <= F ? ++W : --W) {
163
163
  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);
164
164
  else H(g, 1);
165
165
  n(t);
@@ -296,26 +296,26 @@ function bi() {
296
296
  for (o in N = [], e) N.push(o);
297
297
  return N;
298
298
  })(), f = [[]], r = function(N) {
299
- var T, B, O, V, W, re, H, Z;
300
- for (B = [], W = {}, re = 0, V = N.length; re < V; re++) H = N[re], (T = (function() {
299
+ var T, O, F, V, W, re, H, Z;
300
+ for (O = [], W = {}, re = 0, V = N.length; re < V; re++) H = N[re], (T = (function() {
301
301
  var J, m, z;
302
302
  for (z = [], Z = m = 0, J = H.length; m < J; Z = ++m) o = H[Z], z.push([o, Z]);
303
303
  return z;
304
- })()).sort(), (O = (function() {
304
+ })()).sort(), (F = (function() {
305
305
  var J, m, z;
306
306
  for (z = [], Z = m = 0, J = T.length; m < J; Z = ++m) o = T[Z], z.push(o + "," + Z);
307
307
  return z;
308
- })().join("-")) in W || (W[O] = !0, B.push(H));
309
- return B;
308
+ })().join("-")) in W || (W[F] = !0, O.push(H));
309
+ return O;
310
310
  }, (n = function(N) {
311
- var T, B, O, V, W, re, H, Z, J, m, z, A, E, L, M, R;
311
+ var T, O, F, V, W, re, H, Z, J, m, z, A, E, L, R, M;
312
312
  if (N.length) {
313
- for (B = N[0], E = N.slice(1), H = [], Z = 0, W = (z = e[B]).length; Z < W; Z++) for (V = z[Z], J = 0, re = f.length; J < re; J++) {
314
- for (T = -1, O = m = 0, A = (L = f[J]).length; 0 <= A ? m < A : A < m; O = 0 <= A ? ++m : --m) if (L[O][0] === V) {
315
- T = O;
313
+ 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
+ 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
+ T = F;
316
316
  break;
317
317
  }
318
- T === -1 ? (R = L.concat([[V, B]]), H.push(R)) : ((M = L.slice(0)).splice(T, 1), M.push([V, B]), H.push(L), H.push(M));
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
319
  }
320
320
  return f = r(H), n(E);
321
321
  }
@@ -325,17 +325,17 @@ function bi() {
325
325
  }
326
326
  return p;
327
327
  }, l33t_match: function(e, a, r) {
328
- var n, o, t, l, d, b, u, g, v, y, k, p, f, N, T, B;
328
+ var n, o, t, l, d, b, u, g, v, y, k, p, f, N, T, O;
329
329
  for (a == null && (a = qe), r == null && (r = ra), u = [], g = 0, t = (y = this.enumerate_l33t_subs(this.relevant_l33t_subtable(e, r))).length; g < t && (p = y[g], !this.empty(p)); g++) for (N = this.translate(e, p), v = 0, l = (k = this.dictionary_match(N, a)).length; v < l; v++) if (d = k[v], (T = e.slice(d.i, +d.j + 1 || 9e9)).toLowerCase() !== d.matched_word) {
330
330
  for (f in b = {}, p) n = p[f], T.indexOf(f) !== -1 && (b[f] = n);
331
331
  d.l33t = !0, d.token = T, d.sub = b, d.sub_display = (function() {
332
- var O;
333
- for (o in O = [], b) B = b[o], O.push(o + " -> " + B);
334
- return O;
332
+ var F;
333
+ for (o in F = [], b) O = b[o], F.push(o + " -> " + O);
334
+ return F;
335
335
  })().join(", "), u.push(d);
336
336
  }
337
- return this.sorted(u.filter(function(O) {
338
- return 1 < O.token.length;
337
+ return this.sorted(u.filter(function(F) {
338
+ return 1 < F.token.length;
339
339
  }));
340
340
  }, spatial_match: function(e, a) {
341
341
  var r, n, o;
@@ -374,9 +374,9 @@ function bi() {
374
374
  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
375
  return this.sorted(r);
376
376
  }, date_match: function(e) {
377
- var a, r, n, o, t, l, d, b, u, g, v, y, k, p, f, N, T, B, O, V, W, re, H, Z, J, m, z, A, E, L, M, R, ee, X;
378
- 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 = B = re = l + 3, H = l + 7; (re <= H ? B <= H : H <= B) && !(d >= e.length); d = re <= H ? ++B : --B) if (X = e.slice(l, +d + 1 || 9e9), k.exec(X)) {
379
- for (n = [], O = 0, g = (Z = aa[X.length]).length; O < g; O++) b = (J = Z[O])[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);
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
+ 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
+ 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
380
  if (0 < n.length) {
381
381
  for (a = n[0], N = (f = function(_e) {
382
382
  return Math.abs(_e.year - be.REFERENCE_YEAR);
@@ -384,7 +384,7 @@ function bi() {
384
384
  y.push({ pattern: "date", token: X, i: l, j: d, separator: "", year: a.year, month: a.month, day: a.day });
385
385
  }
386
386
  }
387
- for (l = R = 0, A = e.length - 6; 0 <= A ? R <= A : A <= R; l = 0 <= A ? ++R : --R) 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), (M = p.exec(X)) != null && (t = this.map_ints_to_dmy([parseInt(M[1]), parseInt(M[3]), parseInt(M[4])])) != null && y.push({ pattern: "date", token: X, i: l, j: d, separator: M[2], year: t.year, month: t.month, day: t.day });
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
388
  return this.sorted(y.filter(function(_e) {
389
389
  var De, la, He, Te;
390
390
  for (De = !1, Te = 0, la = y.length; Te < la; Te++) if (_e !== (He = y[Te]) && He.i <= _e.i && He.j >= _e.j) {
@@ -481,7 +481,7 @@ function bi() {
481
481
  return ha.default = Ye, ha;
482
482
  }
483
483
  var yi = bi();
484
- const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCore-DotONnMz.js")), vi = Ca(
484
+ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCore-DONyFFlx.js")), vi = Ca(
485
485
  () => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")
486
486
  ), Sa = I.object().shape({
487
487
  roleId: I.number().transform(
@@ -511,7 +511,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
511
511
  Me(() => {
512
512
  ke.current = c;
513
513
  }, [c]);
514
- const [Se, Ce] = U({}), [Le, Ue] = U({}), [ga, Be] = U(10), ta = We(ga), [fe, pa] = U({}), [$e, Ge] = U({}), [Ye, e] = U([]), [a, r] = U([]), [n, o] = U(""), [t, l] = U(!1), [d, b] = U("34px"), [u, g] = U(!1), [v, y] = U(!1), [k, p] = U([]), [f, N] = U([]), T = We(null), [B, O] = U([]), [V, W] = U(null), [re, H] = U(null), Z = (s) => {
514
+ const [Se, Ce] = U({}), [Le, Ue] = U({}), [ga, Be] = U(10), ta = We(ga), [fe, pa] = U({}), [$e, Ge] = U({}), [Ye, e] = U([]), [a, r] = U([]), [n, o] = U(""), [t, l] = U(!1), [d, b] = U("34px"), [u, g] = U(!1), [v, y] = U(!1), [k, p] = U([]), [f, N] = U([]), T = We(null), [O, F] = U([]), [V, W] = U(null), [re, H] = U(null), Z = (s) => {
515
515
  const j = s.target.files[0];
516
516
  if (j) {
517
517
  H(j);
@@ -650,8 +650,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
650
650
  handleSubmit: A,
651
651
  formState: { errors: E },
652
652
  getValues: L,
653
- setValue: M,
654
- watch: R,
653
+ setValue: R,
654
+ watch: M,
655
655
  clearErrors: ee,
656
656
  resetField: X,
657
657
  trigger: _e
@@ -703,7 +703,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
703
703
  const j = Ve.find(
704
704
  (q) => q.languageKey === s.target.value
705
705
  );
706
- j && M("prefferedLanguage", j.languageKey);
706
+ j && R("prefferedLanguage", j.languageKey);
707
707
  }, He = async (s) => {
708
708
  var j;
709
709
  try {
@@ -733,9 +733,9 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
733
733
  }
734
734
  }, Te = ja(
735
735
  (s) => {
736
- G.isBahaar || (s === "Mr" ? M("gender", "M") : (s === "Mrs" || s === "Ms") && M("gender", "F"));
736
+ B.isBahaar || (s === "Mr" ? R("gender", "M") : (s === "Mrs" || s === "Ms") && R("gender", "F"));
737
737
  },
738
- [M]
738
+ [R]
739
739
  ), Ta = async (s) => {
740
740
  var q, Y, D, w, _;
741
741
  const j = {
@@ -747,8 +747,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
747
747
  infrastructureIds: ye.map(
748
748
  (P) => P.infraid
749
749
  ),
750
- bankNameId: B.length > 0 ? s == null ? void 0 : s.bankName : null,
751
- bankName: B.length > 0 ? ((q = B.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
750
+ 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
752
  };
753
753
  if (a.length > 0 && (j.deletedLocations = a), !K.length && u) {
754
754
  ve({
@@ -802,7 +802,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
802
802
  }, Ra = async (s) => {
803
803
  try {
804
804
  const j = s.target.value.toLowerCase();
805
- if (M("userName", j, { shouldValidate: !0 }), (C == null ? void 0 : C.userName) !== j) {
805
+ if (R("userName", j, { shouldValidate: !0 }), (C == null ? void 0 : C.userName) !== j) {
806
806
  const { data: q } = await Ia({
807
807
  action: "checkusername",
808
808
  username: j
@@ -943,16 +943,16 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
943
943
  ]);
944
944
  Ae(q == null ? void 0 : q.data), oa(JSON.parse(Y == null ? void 0 : Y.data)), ea(D == null ? void 0 : D.data);
945
945
  try {
946
- if (G.isTecho)
947
- O([]);
946
+ if (B.isTecho)
947
+ F([]);
948
948
  else {
949
949
  const w = await he({
950
950
  code: "get_bank_names_for_pbi"
951
951
  });
952
- O(((s = w == null ? void 0 : w.data) == null ? void 0 : s.result) || []);
952
+ F(((s = w == null ? void 0 : w.data) == null ? void 0 : s.result) || []);
953
953
  }
954
954
  } catch {
955
- O([]);
955
+ F([]);
956
956
  }
957
957
  if (S) {
958
958
  qe("Update User"), e([]), be([]);
@@ -1001,8 +1001,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1001
1001
  );
1002
1002
  }
1003
1003
  ia(!0), Object.keys(w).map(
1004
- (P) => M(P, w == null ? void 0 : w[P])
1005
- ), M("prefferedLanguage", w == null ? void 0 : w.prefferedLanguage), w != null && w.bankNameId && !G.isTecho && M("bankName", w.bankNameId);
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);
1006
1006
  }
1007
1007
  l(!1);
1008
1008
  } catch (q) {
@@ -1011,7 +1011,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1011
1011
  type: "error"
1012
1012
  }), l((Y) => !Y);
1013
1013
  }
1014
- }, [S, M]);
1014
+ }, [S, R]);
1015
1015
  Me(() => {
1016
1016
  za();
1017
1017
  }, [za]), Me(() => {
@@ -1025,7 +1025,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1025
1025
  id: parseInt(S)
1026
1026
  }
1027
1027
  });
1028
- M("specialization", s.data.result[0].specialization_id);
1028
+ R("specialization", s.data.result[0].specialization_id);
1029
1029
  const j = await Da(parseInt(S)), q = new Blob([j], { type: "application/image" }), Y = URL.createObjectURL(q);
1030
1030
  W(Y);
1031
1031
  } catch (s) {
@@ -1033,11 +1033,11 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1033
1033
  }
1034
1034
  };
1035
1035
  return Me(() => {
1036
- const s = R((j, { name: q }) => {
1036
+ const s = M((j, { name: q }) => {
1037
1037
  q === "title" && Te(j.title);
1038
1038
  });
1039
1039
  return () => s.unsubscribe();
1040
- }, [R, Te]), S && !(c != null && c["update.manage.users"]) && !t ? /* @__PURE__ */ i(
1040
+ }, [M, Te]), S && !(c != null && c["update.manage.users"]) && !t ? /* @__PURE__ */ i(
1041
1041
  ca,
1042
1042
  {
1043
1043
  className: "flex justify-center items-center w-full h-[80vh]",
@@ -1051,7 +1051,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1051
1051
  "data-testid": "create-user-permission",
1052
1052
  children: /* @__PURE__ */ i(ka, { className: "h-80 w-150 flex justify-center items-center", children: /* @__PURE__ */ i(ze, { variant: "h5", className: "text-customBlue", children: "You dont have permission to Add Users" }) })
1053
1053
  }
1054
- ) : /* @__PURE__ */ F(de, { children: [
1054
+ ) : /* @__PURE__ */ $(de, { children: [
1055
1055
  ne === 1 && /* @__PURE__ */ i(xa, { children: /* @__PURE__ */ i(
1056
1056
  fi,
1057
1057
  {
@@ -1095,12 +1095,12 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1095
1095
  A(Ta)(s);
1096
1096
  },
1097
1097
  noValidate: !0,
1098
- children: /* @__PURE__ */ F(Ha, { isLoading: t, children: [
1098
+ children: /* @__PURE__ */ $(Ha, { isLoading: t, children: [
1099
1099
  /* @__PURE__ */ i(x, { item: !0, container: !0, direction: "row", children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ i(
1100
1100
  ri,
1101
1101
  {
1102
1102
  className: "p-2.5 px-5 flex border-b",
1103
- subheader: /* @__PURE__ */ F(
1103
+ subheader: /* @__PURE__ */ $(
1104
1104
  ca,
1105
1105
  {
1106
1106
  display: "flex",
@@ -1116,7 +1116,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1116
1116
  children: oe(ra)
1117
1117
  }
1118
1118
  ),
1119
- /* @__PURE__ */ F(x, { item: !0, children: [
1119
+ /* @__PURE__ */ $(x, { item: !0, children: [
1120
1120
  S && (c == null ? void 0 : c["update.manage.users.canUnlockUser"]) && (C == null ? void 0 : C.isLocked) && /* @__PURE__ */ i(
1121
1121
  Xe,
1122
1122
  {
@@ -1150,7 +1150,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1150
1150
  }
1151
1151
  }
1152
1152
  ) }) }),
1153
- /* @__PURE__ */ i(ni, { children: /* @__PURE__ */ F(x, { container: !0, size: { xs: 12 }, spacing: 2, direction: "row", children: [
1153
+ /* @__PURE__ */ i(ni, { children: /* @__PURE__ */ $(x, { container: !0, size: { xs: 12 }, spacing: 2, direction: "row", children: [
1154
1154
  /* @__PURE__ */ i(
1155
1155
  x,
1156
1156
  {
@@ -1160,7 +1160,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1160
1160
  sm: 12,
1161
1161
  md: u || v ? 6 : 12
1162
1162
  },
1163
- children: /* @__PURE__ */ F(x, { container: !0, spacing: 2, children: [
1163
+ children: /* @__PURE__ */ $(x, { container: !0, spacing: 2, children: [
1164
1164
  /* @__PURE__ */ i(
1165
1165
  x,
1166
1166
  {
@@ -1170,8 +1170,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1170
1170
  sm: 12,
1171
1171
  md: u || v ? 12 : 6
1172
1172
  },
1173
- children: /* @__PURE__ */ F(x, { container: !0, spacing: 2, children: [
1174
- /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i($, { label: "User Role", required: !0, children: /* @__PURE__ */ i(
1173
+ children: /* @__PURE__ */ $(x, { container: !0, spacing: 2, children: [
1174
+ /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(G, { label: "User Role", required: !0, children: /* @__PURE__ */ i(
1175
1175
  Je,
1176
1176
  {
1177
1177
  control: m,
@@ -1183,61 +1183,61 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1183
1183
  onChange: (s) => {
1184
1184
  De(s);
1185
1185
  },
1186
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageRole"]),
1186
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageRole"]),
1187
1187
  errors: E,
1188
1188
  dataTestId: "role-dropdown"
1189
1189
  }
1190
1190
  ) }) }),
1191
- /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i($, { label: "Title", children: /* @__PURE__ */ i(
1191
+ /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(G, { label: "Title", children: /* @__PURE__ */ i(
1192
1192
  Je,
1193
1193
  {
1194
1194
  control: m,
1195
1195
  name: "title",
1196
1196
  id: "title",
1197
1197
  options: ["Mr", "Mrs", "Dr", "Ms"],
1198
- disableClearable: !G.isBahaar,
1199
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"]),
1198
+ disableClearable: !B.isBahaar,
1199
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"]),
1200
1200
  errors: E,
1201
1201
  dataTestId: "title-dropdown"
1202
1202
  }
1203
1203
  ) }) }),
1204
- /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 6, md: 4 }, children: /* @__PURE__ */ i($, { label: "First Name", required: !0, children: /* @__PURE__ */ i(
1204
+ /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 6, md: 4 }, children: /* @__PURE__ */ i(G, { label: "First Name", required: !0, children: /* @__PURE__ */ i(
1205
1205
  se,
1206
1206
  {
1207
1207
  control: m,
1208
1208
  id: "firstName",
1209
1209
  name: "firstName",
1210
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"]),
1210
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"]),
1211
1211
  errors: E,
1212
1212
  label: "",
1213
1213
  dataTestId: "first-name-input"
1214
1214
  }
1215
1215
  ) }) }),
1216
- /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 6, md: 4 }, children: /* @__PURE__ */ i($, { label: "Middle Name", children: /* @__PURE__ */ i(
1216
+ /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 6, md: 4 }, children: /* @__PURE__ */ i(G, { label: "Middle Name", children: /* @__PURE__ */ i(
1217
1217
  se,
1218
1218
  {
1219
1219
  control: m,
1220
1220
  id: "middleName",
1221
1221
  name: "middleName",
1222
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"]),
1222
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"]),
1223
1223
  errors: E,
1224
1224
  label: "",
1225
1225
  dataTestId: "middle-name-input"
1226
1226
  }
1227
1227
  ) }) }),
1228
- /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 4 }, children: /* @__PURE__ */ i($, { label: "Last name", required: !0, children: /* @__PURE__ */ i(
1228
+ /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 4 }, children: /* @__PURE__ */ i(G, { label: "Last name", required: !0, children: /* @__PURE__ */ i(
1229
1229
  se,
1230
1230
  {
1231
1231
  control: m,
1232
1232
  id: "lastName",
1233
1233
  name: "lastName",
1234
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"]),
1234
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"]),
1235
1235
  errors: E,
1236
1236
  label: "",
1237
1237
  dataTestId: "last-name-input"
1238
1238
  }
1239
1239
  ) }) }),
1240
- (c == null ? void 0 : c["manage.users.dateOfBirth"]) && /* @__PURE__ */ i(de, { children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i($, { label: "Date Of Birth", children: /* @__PURE__ */ i(
1240
+ (c == null ? void 0 : c["manage.users.dateOfBirth"]) && /* @__PURE__ */ i(de, { children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(G, { label: "Date Of Birth", children: /* @__PURE__ */ i(
1241
1241
  Aa,
1242
1242
  {
1243
1243
  control: m,
@@ -1254,14 +1254,14 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1254
1254
  item: !0,
1255
1255
  size: { xs: 12, sm: 12, md: 6 },
1256
1256
  sx: { paddingLeft: { md: "1rem" } },
1257
- children: /* @__PURE__ */ i($, { label: "Gender", required: !0, children: /* @__PURE__ */ F(da, { component: "fieldset", margin: "normal", children: [
1257
+ children: /* @__PURE__ */ i(G, { label: "Gender", required: !0, children: /* @__PURE__ */ $(da, { component: "fieldset", margin: "normal", children: [
1258
1258
  /* @__PURE__ */ i(
1259
1259
  ua,
1260
1260
  {
1261
1261
  name: "gender",
1262
1262
  control: m,
1263
1263
  defaultValue: "M",
1264
- render: ({ field: s }) => /* @__PURE__ */ F(
1264
+ render: ({ field: s }) => /* @__PURE__ */ $(
1265
1265
  ma,
1266
1266
  {
1267
1267
  row: !0,
@@ -1276,7 +1276,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1276
1276
  control: /* @__PURE__ */ i(
1277
1277
  ue,
1278
1278
  {
1279
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"])
1279
+ disabled: !B.isBahaar && (M("title") === "Mrs" || M("title") === "Ms") || S && B.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"])
1280
1280
  }
1281
1281
  ),
1282
1282
  label: "Male",
@@ -1295,7 +1295,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1295
1295
  control: /* @__PURE__ */ i(
1296
1296
  ue,
1297
1297
  {
1298
- disabled: !G.isBahaar && R("title") && R("title") !== "Dr" || S && G.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"])
1298
+ disabled: !B.isBahaar && M("title") === "Mr" || S && B.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"])
1299
1299
  }
1300
1300
  ),
1301
1301
  label: "Female",
@@ -1307,14 +1307,14 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1307
1307
  "data-testid": "gender-female"
1308
1308
  }
1309
1309
  ),
1310
- G.isBahaar && /* @__PURE__ */ i(
1310
+ B.isBahaar && /* @__PURE__ */ i(
1311
1311
  me,
1312
1312
  {
1313
1313
  value: "O",
1314
1314
  control: /* @__PURE__ */ i(
1315
1315
  ue,
1316
1316
  {
1317
- disabled: !G.isBahaar && R("title") && R("title") !== "Dr" || S && G.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"])
1317
+ disabled: !B.isBahaar && M("title") && M("title") !== "Dr" || S && B.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"])
1318
1318
  }
1319
1319
  ),
1320
1320
  label: "Other",
@@ -1335,18 +1335,18 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1335
1335
  ] }) })
1336
1336
  }
1337
1337
  ),
1338
- (c == null ? void 0 : c["manage.users.joiningDate"]) && /* @__PURE__ */ i(de, { children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i($, { label: "Joining date", children: /* @__PURE__ */ i(
1338
+ (c == null ? void 0 : c["manage.users.joiningDate"]) && /* @__PURE__ */ i(de, { children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(G, { label: "Joining date", children: /* @__PURE__ */ i(
1339
1339
  Aa,
1340
1340
  {
1341
1341
  control: m,
1342
1342
  name: "joiningDate",
1343
1343
  errors: E,
1344
1344
  format: "DD/MM/YYYY",
1345
- minDate: R("dateOfBirth") ? Qe(R("dateOfBirth")) : Qe("2000-01-01"),
1345
+ minDate: M("dateOfBirth") ? Qe(M("dateOfBirth")) : Qe("2000-01-01"),
1346
1346
  maxDate: Qe()
1347
1347
  }
1348
1348
  ) }) }) }),
1349
- (c == null ? void 0 : c["manage.users.batchNo"]) && /* @__PURE__ */ i(de, { children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i($, { label: "Batch No.", children: /* @__PURE__ */ i(
1349
+ (c == null ? void 0 : c["manage.users.batchNo"]) && /* @__PURE__ */ i(de, { children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(G, { label: "Batch No.", children: /* @__PURE__ */ i(
1350
1350
  se,
1351
1351
  {
1352
1352
  control: m,
@@ -1363,7 +1363,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1363
1363
  }
1364
1364
  ) }) }) }),
1365
1365
  (c == null ? void 0 : c["manage.users.maritalStatus"]) && /* @__PURE__ */ i(de, { children: /* @__PURE__ */ i(
1366
- $,
1366
+ G,
1367
1367
  {
1368
1368
  label: "Marital Status",
1369
1369
  required: !0,
@@ -1374,7 +1374,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1374
1374
  name: "maritalStatus",
1375
1375
  control: m,
1376
1376
  defaultValue: "Single",
1377
- render: ({ field: s }) => /* @__PURE__ */ F(
1377
+ render: ({ field: s }) => /* @__PURE__ */ $(
1378
1378
  ma,
1379
1379
  {
1380
1380
  row: !0,
@@ -1443,8 +1443,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1443
1443
  sm: 12,
1444
1444
  md: u || v ? 12 : 6
1445
1445
  },
1446
- children: /* @__PURE__ */ F(x, { container: !0, spacing: 2, children: [
1447
- /* @__PURE__ */ i($, { label: "Username", required: !0, children: /* @__PURE__ */ i(
1446
+ children: /* @__PURE__ */ $(x, { container: !0, spacing: 2, children: [
1447
+ /* @__PURE__ */ i(G, { label: "Username", required: !0, children: /* @__PURE__ */ i(
1448
1448
  se,
1449
1449
  {
1450
1450
  control: m,
@@ -1455,20 +1455,20 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1455
1455
  onChange: async (s) => {
1456
1456
  await _e("userName") && Ra(s);
1457
1457
  },
1458
- disabled: S && (G.isTecho || G.isEkavach) && !(c != null && c["update.manage.users.userName"]),
1458
+ disabled: S && (B.isTecho || B.isEkavach) && !(c != null && c["update.manage.users.userName"]),
1459
1459
  autoComplete: "off",
1460
1460
  dataTestId: "username-input"
1461
1461
  }
1462
1462
  ) }),
1463
- !aa && /* @__PURE__ */ i(de, { children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ F(
1463
+ !aa && /* @__PURE__ */ i(de, { children: /* @__PURE__ */ i(x, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ $(
1464
1464
  x,
1465
1465
  {
1466
1466
  container: !0,
1467
1467
  spacing: 2,
1468
1468
  className: "flex items-start",
1469
1469
  children: [
1470
- /* @__PURE__ */ F(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: [
1471
- /* @__PURE__ */ i($, { label: "Password", required: !0, children: /* @__PURE__ */ i(
1470
+ /* @__PURE__ */ $(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: [
1471
+ /* @__PURE__ */ i(G, { label: "Password", required: !0, children: /* @__PURE__ */ i(
1472
1472
  va,
1473
1473
  {
1474
1474
  control: m,
@@ -1481,15 +1481,15 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1481
1481
  autoComplete: "new-password"
1482
1482
  }
1483
1483
  ) }),
1484
- /* @__PURE__ */ i($, { children: /* @__PURE__ */ i(
1484
+ /* @__PURE__ */ i(G, { children: /* @__PURE__ */ i(
1485
1485
  ki,
1486
1486
  {
1487
- password: R("password"),
1487
+ password: M("password"),
1488
1488
  "data-testid": "password-strength-bar"
1489
1489
  }
1490
1490
  ) })
1491
1491
  ] }),
1492
- /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i($, { label: "Confirm Password", required: !0, children: /* @__PURE__ */ i(
1492
+ /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(G, { label: "Confirm Password", required: !0, children: /* @__PURE__ */ i(
1493
1493
  va,
1494
1494
  {
1495
1495
  control: m,
@@ -1505,7 +1505,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1505
1505
  }
1506
1506
  ) }) }),
1507
1507
  /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(
1508
- $,
1508
+ G,
1509
1509
  {
1510
1510
  label: "Phone number",
1511
1511
  sx: {
@@ -1524,7 +1524,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1524
1524
  maxLength: 10,
1525
1525
  pattern: "^[0-9]{1,10}$"
1526
1526
  },
1527
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManagePhonenumber"]),
1527
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManagePhonenumber"]),
1528
1528
  inputProps: {
1529
1529
  maxLength: 10,
1530
1530
  inputMode: "numeric",
@@ -1546,7 +1546,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1546
1546
  }
1547
1547
  ) }),
1548
1548
  (h == null ? void 0 : h.isConvoxIdMandatory) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(
1549
- $,
1549
+ G,
1550
1550
  {
1551
1551
  label: "Convox Id",
1552
1552
  required: h == null ? void 0 : h.isConvoxIdMandatory,
@@ -1556,7 +1556,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1556
1556
  control: m,
1557
1557
  id: "convoxId",
1558
1558
  name: "convoxId",
1559
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageConvexID"]),
1559
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageConvexID"]),
1560
1560
  errors: E,
1561
1561
  label: "",
1562
1562
  dataTestId: "convox-id-input"
@@ -1565,7 +1565,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1565
1565
  }
1566
1566
  ) }),
1567
1567
  /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(
1568
- $,
1568
+ G,
1569
1569
  {
1570
1570
  label: "Email",
1571
1571
  required: h == null ? void 0 : h.isEmailMandatory,
@@ -1576,7 +1576,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1576
1576
  control: m,
1577
1577
  id: "emailId",
1578
1578
  name: "emailId",
1579
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageEmail"]),
1579
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageEmail"]),
1580
1580
  errors: E,
1581
1581
  label: "",
1582
1582
  type: "email",
@@ -1586,7 +1586,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1586
1586
  }
1587
1587
  ) }),
1588
1588
  /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(
1589
- $,
1589
+ G,
1590
1590
  {
1591
1591
  label: "Aadhar Number",
1592
1592
  required: (h == null ? void 0 : h.isAadharNumMandatory) && !S,
@@ -1597,7 +1597,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1597
1597
  control: m,
1598
1598
  id: "aadharNumber",
1599
1599
  name: "aadharNumber",
1600
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageAadharnumber"]),
1600
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageAadharnumber"]),
1601
1601
  errors: E,
1602
1602
  label: "",
1603
1603
  rules: {
@@ -1620,22 +1620,22 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1620
1620
  )
1621
1621
  }
1622
1622
  ) }),
1623
- (h == null ? void 0 : h.isBankDetailsRequired) && /* @__PURE__ */ F(de, { children: [
1623
+ (h == null ? void 0 : h.isBankDetailsRequired) && /* @__PURE__ */ $(de, { children: [
1624
1624
  /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(
1625
- $,
1625
+ G,
1626
1626
  {
1627
1627
  label: "Bank Name",
1628
1628
  required: h == null ? void 0 : h.isBankDetailsMandatory,
1629
- children: B.length > 0 ? /* @__PURE__ */ i(
1629
+ children: O.length > 0 ? /* @__PURE__ */ i(
1630
1630
  Je,
1631
1631
  {
1632
1632
  control: m,
1633
1633
  id: "bankName",
1634
1634
  name: "bankName",
1635
- options: B,
1635
+ options: O,
1636
1636
  displayName: "value",
1637
1637
  optionValue: "id",
1638
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1638
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1639
1639
  errors: E,
1640
1640
  dataTestId: "bank-name-input"
1641
1641
  }
@@ -1645,7 +1645,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1645
1645
  control: m,
1646
1646
  id: "bankName",
1647
1647
  name: "bankName",
1648
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1648
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1649
1649
  errors: E,
1650
1650
  label: "",
1651
1651
  dataTestId: "bank-name-input"
@@ -1654,7 +1654,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1654
1654
  }
1655
1655
  ) }),
1656
1656
  /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(
1657
- $,
1657
+ G,
1658
1658
  {
1659
1659
  label: "Bank Account Number",
1660
1660
  required: h == null ? void 0 : h.isBankDetailsMandatory,
@@ -1664,7 +1664,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1664
1664
  control: m,
1665
1665
  id: "bankAccNo",
1666
1666
  name: "bankAccNo",
1667
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1667
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1668
1668
  errors: E,
1669
1669
  label: "",
1670
1670
  inputProps: {
@@ -1683,7 +1683,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1683
1683
  }
1684
1684
  ) }),
1685
1685
  /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(
1686
- $,
1686
+ G,
1687
1687
  {
1688
1688
  label: "IFSC Code",
1689
1689
  required: h == null ? void 0 : h.isBankDetailsMandatory,
@@ -1693,7 +1693,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1693
1693
  control: m,
1694
1694
  id: "ifscCode",
1695
1695
  name: "ifscCode",
1696
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1696
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1697
1697
  errors: E,
1698
1698
  label: "",
1699
1699
  dataTestId: "ifsc-code-input"
@@ -1702,7 +1702,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1702
1702
  }
1703
1703
  ) }),
1704
1704
  /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(
1705
- $,
1705
+ G,
1706
1706
  {
1707
1707
  label: "Full Name (as per Bank Account)",
1708
1708
  required: h == null ? void 0 : h.isBankDetailsMandatory,
@@ -1712,7 +1712,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1712
1712
  control: m,
1713
1713
  id: "nameAccToBank",
1714
1714
  name: "nameAccToBank",
1715
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1715
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManageBankingInformation"]),
1716
1716
  errors: E,
1717
1717
  label: "",
1718
1718
  dataTestId: "name-acc-to-bank-input"
@@ -1721,7 +1721,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1721
1721
  }
1722
1722
  ) })
1723
1723
  ] }),
1724
- /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i($, { label: "Preferred language", required: !0, children: /* @__PURE__ */ i(
1724
+ /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(G, { label: "Preferred language", required: !0, children: /* @__PURE__ */ i(
1725
1725
  Je,
1726
1726
  {
1727
1727
  control: m,
@@ -1730,7 +1730,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1730
1730
  options: Ve,
1731
1731
  displayName: "languageValue",
1732
1732
  optionValue: "languageKey",
1733
- disabled: S && G.isTecho && !(c != null && c["update.manage.users.canManagePreferredLanguage"]),
1733
+ disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManagePreferredLanguage"]),
1734
1734
  errors: E,
1735
1735
  onChange: (s) => {
1736
1736
  la(s);
@@ -1739,11 +1739,11 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1739
1739
  }
1740
1740
  ) }) }),
1741
1741
  (h == null ? void 0 : h.isGeolocationMandatory) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(
1742
- $,
1742
+ G,
1743
1743
  {
1744
1744
  label: "Geo Location",
1745
1745
  required: h == null ? void 0 : h.isGeolocationMandatory,
1746
- children: /* @__PURE__ */ F(
1746
+ children: /* @__PURE__ */ $(
1747
1747
  x,
1748
1748
  {
1749
1749
  item: !0,
@@ -1783,7 +1783,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1783
1783
  )
1784
1784
  }
1785
1785
  ) }),
1786
- (C == null ? void 0 : C.loginCode) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i($, { label: "Login Code", children: /* @__PURE__ */ i(
1786
+ (C == null ? void 0 : C.loginCode) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ i(G, { label: "Login Code", children: /* @__PURE__ */ i(
1787
1787
  se,
1788
1788
  {
1789
1789
  control: m,
@@ -1798,7 +1798,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1798
1798
  dataTestId: "login-code-input"
1799
1799
  }
1800
1800
  ) }) }),
1801
- (h == null ? void 0 : h.isSmagTrainedMandatory) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ F(da, { component: "fieldset", children: [
1801
+ (h == null ? void 0 : h.isSmagTrainedMandatory) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, children: /* @__PURE__ */ $(da, { component: "fieldset", children: [
1802
1802
  /* @__PURE__ */ i(si, { component: "legend", children: oe(
1803
1803
  "Is User SMAG Trained (Safe Motherhood Action Group)"
1804
1804
  ) }),
@@ -1807,8 +1807,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1807
1807
  {
1808
1808
  name: "isUserSmagTrained",
1809
1809
  control: m,
1810
- render: ({ field: s, fieldState: j }) => /* @__PURE__ */ F(de, { children: [
1811
- /* @__PURE__ */ F(
1810
+ render: ({ field: s, fieldState: j }) => /* @__PURE__ */ $(de, { children: [
1811
+ /* @__PURE__ */ $(
1812
1812
  ma,
1813
1813
  {
1814
1814
  name: s.name,
@@ -1847,7 +1847,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1847
1847
  ] })
1848
1848
  }
1849
1849
  ),
1850
- u && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 6 }, className: "mx-0", children: /* @__PURE__ */ F(
1850
+ u && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 6 }, className: "mx-0", children: /* @__PURE__ */ $(
1851
1851
  x,
1852
1852
  {
1853
1853
  container: !0,
@@ -1855,7 +1855,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1855
1855
  spacing: 0,
1856
1856
  className: "h-full",
1857
1857
  children: [
1858
- /* @__PURE__ */ F(x, { children: [
1858
+ /* @__PURE__ */ $(x, { children: [
1859
1859
  /* @__PURE__ */ i(xa, { children: /* @__PURE__ */ i(
1860
1860
  vi,
1861
1861
  {
@@ -1927,7 +1927,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1927
1927
  description: $e
1928
1928
  }
1929
1929
  ),
1930
- /* @__PURE__ */ F(x, { item: !0, size: { xs: 12 }, children: [
1930
+ /* @__PURE__ */ $(x, { item: !0, size: { xs: 12 }, children: [
1931
1931
  /* @__PURE__ */ i(
1932
1932
  Xe,
1933
1933
  {
@@ -1952,7 +1952,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1952
1952
  ] })
1953
1953
  ] }),
1954
1954
  /* @__PURE__ */ i(fa, { className: "my-2" }),
1955
- /* @__PURE__ */ i(x, { container: !0, children: /* @__PURE__ */ F(x, { item: !0, size: { xs: 11 }, children: [
1955
+ /* @__PURE__ */ i(x, { container: !0, children: /* @__PURE__ */ $(x, { item: !0, size: { xs: 11 }, children: [
1956
1956
  /* @__PURE__ */ i(
1957
1957
  ze,
1958
1958
  {
@@ -1994,9 +1994,9 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
1994
1994
  ),
1995
1995
  (Le == null ? void 0 : Le.message) && /* @__PURE__ */ i(ze, { color: "error", className: "mt-[0.5rem]", children: Le.message })
1996
1996
  ] }) }),
1997
- K.length > 0 && Fe.length > 0 && /* @__PURE__ */ F(de, { children: [
1997
+ K.length > 0 && Fe.length > 0 && /* @__PURE__ */ $(de, { children: [
1998
1998
  /* @__PURE__ */ i(fa, { className: "my-2" }),
1999
- /* @__PURE__ */ i(x, { item: !0, container: !0, children: /* @__PURE__ */ F(x, { item: !0, size: { xs: 11 }, children: [
1999
+ /* @__PURE__ */ i(x, { item: !0, container: !0, children: /* @__PURE__ */ $(x, { item: !0, size: { xs: 11 }, children: [
2000
2000
  /* @__PURE__ */ i(
2001
2001
  ze,
2002
2002
  {
@@ -2022,13 +2022,13 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
2022
2022
  )
2023
2023
  ] }) })
2024
2024
  ] }),
2025
- G.isEkavach && R("roleId") != null && [66, 143].includes(Number(R("roleId"))) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ i($, { label: "Select User Type", children: /* @__PURE__ */ i(da, { component: "fieldset", children: /* @__PURE__ */ i(
2025
+ B.isEkavach && M("roleId") != null && [66, 143].includes(Number(M("roleId"))) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ i(G, { label: "Select User Type", children: /* @__PURE__ */ i(da, { component: "fieldset", children: /* @__PURE__ */ i(
2026
2026
  ua,
2027
2027
  {
2028
2028
  name: "typeOfUser",
2029
2029
  control: m,
2030
2030
  defaultValue: "",
2031
- render: ({ field: s }) => /* @__PURE__ */ F(
2031
+ render: ({ field: s }) => /* @__PURE__ */ $(
2032
2032
  ma,
2033
2033
  {
2034
2034
  row: !0,
@@ -2092,8 +2092,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
2092
2092
  direction: "column",
2093
2093
  spacing: 0,
2094
2094
  className: "h-full",
2095
- children: /* @__PURE__ */ F(x, { container: !0, children: [
2096
- /* @__PURE__ */ i(x, { item: !0, size: { xs: 11 }, children: /* @__PURE__ */ i($, { label: "Specialization", required: !0, children: /* @__PURE__ */ i(
2095
+ children: /* @__PURE__ */ $(x, { container: !0, children: [
2096
+ /* @__PURE__ */ i(x, { item: !0, size: { xs: 11 }, children: /* @__PURE__ */ i(G, { label: "Specialization", required: !0, children: /* @__PURE__ */ i(
2097
2097
  Je,
2098
2098
  {
2099
2099
  control: m,
@@ -2106,7 +2106,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
2106
2106
  dataTestId: "specialization-dropdown"
2107
2107
  }
2108
2108
  ) }) }),
2109
- (c == null ? void 0 : c["upload.manage.users.doctorSignature"]) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 11 }, children: /* @__PURE__ */ F($, { label: "Upload Signature", children: [
2109
+ (c == null ? void 0 : c["upload.manage.users.doctorSignature"]) && /* @__PURE__ */ i(x, { item: !0, size: { xs: 11 }, children: /* @__PURE__ */ $(G, { label: "Upload Signature", children: [
2110
2110
  /* @__PURE__ */ i(
2111
2111
  "input",
2112
2112
  {
@@ -2141,7 +2141,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
2141
2141
  container: !0,
2142
2142
  size: { xs: 12 },
2143
2143
  justifyContent: "flex-end",
2144
- children: /* @__PURE__ */ F(de, { children: [
2144
+ children: /* @__PURE__ */ $(de, { children: [
2145
2145
  /* @__PURE__ */ i(
2146
2146
  Xe,
2147
2147
  {
@@ -2181,4 +2181,4 @@ export {
2181
2181
  Ki as M,
2182
2182
  va as P
2183
2183
  };
2184
- //# sourceMappingURL=ManageUser-Ca1BsI1u.js.map
2184
+ //# sourceMappingURL=ManageUser-Gv38VHMu.js.map