@argusoft/medplat-core 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AddMenuConfiguration-m3R8FDhj.js +5570 -0
- package/dist/AddMenuConfiguration-m3R8FDhj.js.map +1 -0
- package/dist/AddMenuConfiguration.css +1 -1
- package/dist/{ChangePasswordModalCore-DotONnMz.js → ChangePasswordModalCore-Czu7OZe6.js} +957 -954
- package/dist/ChangePasswordModalCore-Czu7OZe6.js.map +1 -0
- package/dist/{ConditionConfig-C3rF2wXU.js → ConditionConfig-BECSbvY2.js} +2 -2
- package/dist/{ConditionConfig-C3rF2wXU.js.map → ConditionConfig-BECSbvY2.js.map} +1 -1
- package/dist/{EntityManagement-D4nG7wUX.js → EntityManagement-GaYsBTvf.js} +2 -2
- package/dist/{EntityManagement-D4nG7wUX.js.map → EntityManagement-GaYsBTvf.js.map} +1 -1
- package/dist/FhirRawResourceList-ZZFd7gTX.js +550 -0
- package/dist/FhirRawResourceList-ZZFd7gTX.js.map +1 -0
- package/dist/FhirServerList-Dkq7Kbes.js +116 -0
- package/dist/FhirServerList-Dkq7Kbes.js.map +1 -0
- package/dist/FhirServerProfile-CUOwC6Wb.js +253 -0
- package/dist/FhirServerProfile-CUOwC6Wb.js.map +1 -0
- package/dist/FhirServerWizard-Db6Hm4bQ.js +161 -0
- package/dist/FhirServerWizard-Db6Hm4bQ.js.map +1 -0
- package/dist/{ImmunizationConfigurationBase-CTBoSuSz.js → ImmunizationConfigurationBase-BevKZx_l.js} +386 -302
- package/dist/ImmunizationConfigurationBase-BevKZx_l.js.map +1 -0
- package/dist/{ManageEventConfiguration-BntUc_YI.js → ManageEventConfiguration-CBi2KMB1.js} +4 -4
- package/dist/{ManageEventConfiguration-BntUc_YI.js.map → ManageEventConfiguration-CBi2KMB1.js.map} +1 -1
- package/dist/{ManageUser-Ca1BsI1u.js → ManageUser-BnEPFSPT.js} +219 -219
- package/dist/{ManageUser-Ca1BsI1u.js.map → ManageUser-BnEPFSPT.js.map} +1 -1
- package/dist/{MobileMenuManagement-CV6QCeos.js → MobileMenuManagement-CVAKyKDa.js} +33 -32
- package/dist/MobileMenuManagement-CVAKyKDa.js.map +1 -0
- package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js → MobileTypeEventConfigModal-C34AN-IJ.js} +2 -2
- package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js.map → MobileTypeEventConfigModal-C34AN-IJ.js.map} +1 -1
- package/dist/{OtherTypeEventConfigModal-DiVhWDpG.js → OtherTypeEventConfigModal-BYjMFl0-.js} +93 -93
- package/dist/OtherTypeEventConfigModal-BYjMFl0-.js.map +1 -0
- package/dist/ServerFormFields-SLghoZ2z.js +136 -0
- package/dist/ServerFormFields-SLghoZ2z.js.map +1 -0
- package/dist/SyncDialog-BRGpHOE4.js +130 -0
- package/dist/SyncDialog-BRGpHOE4.js.map +1 -0
- package/dist/{TableList-HGbEN4bv.js → TableList-D6jnIbnz.js} +227 -244
- package/dist/TableList-D6jnIbnz.js.map +1 -0
- package/dist/{TypeConfiguration-CupQxH9Y.js → TypeConfiguration-Bs5WkIa2.js} +2 -2
- package/dist/{TypeConfiguration-CupQxH9Y.js.map → TypeConfiguration-Bs5WkIa2.js.map} +1 -1
- package/dist/dashboardLayoutUtils-Bt5HA96J.js +265 -0
- package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +191 -135
- package/dist/index.js.map +1 -1
- package/dist/permissions-DEWACxJN.js +308 -0
- package/dist/permissions-DEWACxJN.js.map +1 -0
- package/package.json +1 -1
- package/dist/AddMenuConfiguration-DsnY0Rws.js +0 -2237
- package/dist/AddMenuConfiguration-DsnY0Rws.js.map +0 -1
- package/dist/ChangePasswordModalCore-DotONnMz.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-CTBoSuSz.js.map +0 -1
- package/dist/MobileMenuManagement-CV6QCeos.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-DiVhWDpG.js.map +0 -1
- package/dist/TableList-HGbEN4bv.js.map +0 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { g as
|
|
1
|
+
import { jsx as i, jsxs as $, Fragment as de } from "react/jsx-runtime";
|
|
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, f as Da, h as qa, i as _a, j as Ha, M as Za, v as ba, k as Ia, l as Ka, m as Wa, u as Ja, n as Xa } from "./UserListSkeleton-DhIJ5X3y.js";
|
|
4
4
|
import { showToast as ve } from "@/common/toaster/toaster";
|
|
5
|
-
import { FormItem as
|
|
6
|
-
import { getAssignedFeatures as
|
|
7
|
-
import
|
|
5
|
+
import { FormItem as G } from "@/views/custom-components/FormItem.jsx";
|
|
6
|
+
import { getAssignedFeatures as Qa } from "@/utils/feature";
|
|
7
|
+
import Va from "@/views/custom-components/CustomAutoComplete";
|
|
8
8
|
import ya from "@/views/custom-components/CustomConfirmationModal";
|
|
9
9
|
import Je from "@/views/custom-components/CustomDropdown";
|
|
10
10
|
import se from "@/views/custom-components/CustomTextField";
|
|
11
|
-
import { faEyeSlash as
|
|
11
|
+
import { faEyeSlash as ei, faEye as ai } from "@fortawesome/free-solid-svg-icons";
|
|
12
12
|
import { FontAwesomeIcon as Na } from "@fortawesome/react-fontawesome";
|
|
13
|
-
import { InputAdornment as
|
|
14
|
-
import
|
|
13
|
+
import { InputAdornment as ii, IconButton as ri, Box as ca, Card as ka, Typography as ze, CardHeader as ni, Button as Xe, CardContent as si, FormControl as da, RadioGroup as ma, FormControlLabel as me, Radio as ue, FormLabel as oi, Divider as fa, Chip as ti } from "@mui/material";
|
|
14
|
+
import li from "@/views/custom-components/CustomTextField.jsx";
|
|
15
15
|
import je from "prop-types";
|
|
16
|
-
import { yupResolver as
|
|
16
|
+
import { yupResolver as ci } from "@hookform/resolvers/yup";
|
|
17
17
|
import Qe from "dayjs";
|
|
18
18
|
import x from "@mui/material/Grid2";
|
|
19
|
-
import { useForm as
|
|
20
|
-
import { g as
|
|
21
|
-
import { useNavigate as
|
|
22
|
-
import
|
|
19
|
+
import { useForm as di, FormProvider as mi, Controller as ua } from "react-hook-form";
|
|
20
|
+
import { g as ui } from "./_commonjsHelpers-B4e78b8K.js";
|
|
21
|
+
import { useNavigate as hi, useParams as gi } from "react-router";
|
|
22
|
+
import pi from "@/hooks/useTrackEvent";
|
|
23
23
|
import * as I from "yup";
|
|
24
24
|
import Aa from "@/views/custom-components/CustomDatePicker";
|
|
25
|
-
import { useTranslateProvider as
|
|
25
|
+
import { useTranslateProvider as bi } from "@/common/languageTranslator/TranslationContext";
|
|
26
26
|
import { execute as he } from "@/common/services/GlobalApis";
|
|
27
|
-
import
|
|
27
|
+
import B from "@/common/services/util/GeneralUtil";
|
|
28
28
|
import './ManageUser.css';const va = ({
|
|
29
29
|
control: ce,
|
|
30
30
|
showPassword: we,
|
|
@@ -37,7 +37,7 @@ import './ManageUser.css';const va = ({
|
|
|
37
37
|
rules: Ae = null,
|
|
38
38
|
...ne
|
|
39
39
|
}) => /* @__PURE__ */ i(
|
|
40
|
-
|
|
40
|
+
li,
|
|
41
41
|
{
|
|
42
42
|
control: ce,
|
|
43
43
|
id: xe,
|
|
@@ -49,7 +49,7 @@ import './ManageUser.css';const va = ({
|
|
|
49
49
|
dataTestId: ge,
|
|
50
50
|
onChange: oe,
|
|
51
51
|
...ne,
|
|
52
|
-
endAdornment: te && /* @__PURE__ */ i(
|
|
52
|
+
endAdornment: te && /* @__PURE__ */ i(ii, { position: "end", children: /* @__PURE__ */ i(ri, { onClick: te, children: we ? /* @__PURE__ */ i(Na, { icon: ei, size: "xs", "data-testid": `${ge}-visibility-off-button` }) : /* @__PURE__ */ i(Na, { icon: ai, size: "xs", "data-testid": `${ge}-visibility-on-button` }) }) })
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
55
|
va.propTypes = {
|
|
@@ -64,14 +64,14 @@ va.propTypes = {
|
|
|
64
64
|
rules: je.any
|
|
65
65
|
};
|
|
66
66
|
var ha = {}, Ea;
|
|
67
|
-
function
|
|
67
|
+
function yi() {
|
|
68
68
|
if (Ea) return ha;
|
|
69
69
|
Ea = 1;
|
|
70
70
|
function ce(e) {
|
|
71
71
|
return e && typeof e == "object" && "default" in e ? e.default : e;
|
|
72
72
|
}
|
|
73
73
|
Object.defineProperty(ha, "__esModule", { value: !0 });
|
|
74
|
-
var we =
|
|
74
|
+
var we = Ga, te = ce(we), Ie = function(e, a) {
|
|
75
75
|
return (Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
76
76
|
r.__proto__ = n;
|
|
77
77
|
} || function(r, n) {
|
|
@@ -103,7 +103,7 @@ function bi() {
|
|
|
103
103
|
return l;
|
|
104
104
|
})().length;
|
|
105
105
|
}, oe = 1e4, Ae = Ne = 10, ge = 50;
|
|
106
|
-
var h,
|
|
106
|
+
var h, Pe, aa, ia, ra, qe, S, Ee, Oe, na, sa, K, be, Fe = { nCk: function(e, a) {
|
|
107
107
|
var r, n, o, t;
|
|
108
108
|
if (e < a) return 0;
|
|
109
109
|
if (a === 0) return 1;
|
|
@@ -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,
|
|
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 (
|
|
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,
|
|
145
|
-
for (E in
|
|
146
|
-
return f.g[
|
|
144
|
+
var A, E, L, P, M, ee;
|
|
145
|
+
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;
|
|
146
|
+
return f.g[P][z] = L, f.m[P][z] = m, f.pi[P][z] = M;
|
|
147
147
|
}, n = function(m) {
|
|
148
|
-
var z, A, E, L,
|
|
149
|
-
for (g = v(0, m), H(g, 1),
|
|
148
|
+
var z, A, E, L, P, M;
|
|
149
|
+
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
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
|
|
154
|
+
return P;
|
|
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,
|
|
159
|
-
for (A in
|
|
160
|
-
for (; 0 <= L; ) g = f.m[L][
|
|
161
|
-
return
|
|
162
|
-
}, t = W = 0,
|
|
158
|
+
var z, A, E, L, P, M, ee;
|
|
159
|
+
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);
|
|
160
|
+
for (; 0 <= L; ) g = f.m[L][P], M.unshift(g), L = g.i - 1, P--;
|
|
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);
|
|
@@ -243,8 +243,8 @@ function bi() {
|
|
|
243
243
|
for (o = {}, a = 1, n = 0, r = e.length; n < r; n++) o[e[n]] = a, a += 1;
|
|
244
244
|
return o;
|
|
245
245
|
}, 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,
|
|
247
|
-
var le, ye,
|
|
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, 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]] };
|
|
247
|
+
var le, ye, Re, c, oa, ke, Se, Ce = { empty: function(e) {
|
|
248
248
|
var a;
|
|
249
249
|
return (function() {
|
|
250
250
|
var r;
|
|
@@ -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,
|
|
300
|
-
for (
|
|
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(), (
|
|
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[
|
|
309
|
-
return
|
|
308
|
+
})().join("-")) in W || (W[F] = !0, O.push(H));
|
|
309
|
+
return O;
|
|
310
310
|
}, (n = function(N) {
|
|
311
|
-
var T,
|
|
311
|
+
var T, O, F, V, W, re, H, Z, J, m, z, A, E, L, P, M;
|
|
312
312
|
if (N.length) {
|
|
313
|
-
for (
|
|
314
|
-
for (T = -1,
|
|
315
|
-
T =
|
|
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 ? (
|
|
318
|
+
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
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,
|
|
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
|
|
333
|
-
for (o in
|
|
334
|
-
return
|
|
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(
|
|
338
|
-
return 1 <
|
|
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,
|
|
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 =
|
|
379
|
-
for (n = [],
|
|
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, P, 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 =
|
|
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), (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
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) {
|
|
@@ -397,11 +397,11 @@ function bi() {
|
|
|
397
397
|
var a, r, n, o, t, l, d, b, u, g, v, y, k, p, f, N;
|
|
398
398
|
if (!(31 < e[1] || e[1] <= 0)) {
|
|
399
399
|
for (l = f = b = d = 0, n = e.length; l < n; l++) {
|
|
400
|
-
if (99 < (r = e[l]) && r <
|
|
400
|
+
if (99 < (r = e[l]) && r < Pe || h < r) return;
|
|
401
401
|
31 < r && (b += 1), 12 < r && (d += 1), r <= 0 && (f += 1);
|
|
402
402
|
}
|
|
403
403
|
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],
|
|
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], Pe <= N && N <= h) return (a = this.map_ints_to_dm(p)) != null ? { year: N, month: a.month, day: a.day } : void 0;
|
|
405
405
|
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
406
|
}
|
|
407
407
|
}
|
|
@@ -445,14 +445,14 @@ function bi() {
|
|
|
445
445
|
var r, n, o, t;
|
|
446
446
|
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
447
|
} };
|
|
448
|
-
c = Ce, oa = ye = Fe, Se = Le,
|
|
448
|
+
c = Ce, oa = ye = Fe, Se = Le, Re = Ue, ke = function() {
|
|
449
449
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
450
450
|
};
|
|
451
451
|
var ga = function(e, a) {
|
|
452
452
|
var r, n, o, t, l, d, b, u, g, v, y;
|
|
453
453
|
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
454
|
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 =
|
|
455
|
+
return u.feedback = Re.get_feedback(u.score, u.sequence), u;
|
|
456
456
|
}, Be = { flexBasis: 0, flexGrow: 1, position: "relative", maxWidth: "100%", width: "100%", height: 2 }, ta = function(e) {
|
|
457
457
|
var a = e.score, r = e.itemNum, n = e.barColors, o = n[0];
|
|
458
458
|
return r <= a && (o = n[a]), te.createElement("div", { style: pe(pe({}, Be), { backgroundColor: o }) });
|
|
@@ -480,10 +480,10 @@ function bi() {
|
|
|
480
480
|
})(te.Component);
|
|
481
481
|
return ha.default = Ye, ha;
|
|
482
482
|
}
|
|
483
|
-
var
|
|
484
|
-
const
|
|
483
|
+
var ki = yi();
|
|
484
|
+
const Sa = /* @__PURE__ */ ui(ki), fi = Ta(() => import("./ChangePasswordModalCore-Czu7OZe6.js")), vi = Sa.default || Sa, wi = Ta(
|
|
485
485
|
() => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")
|
|
486
|
-
),
|
|
486
|
+
), Ca = I.object().shape({
|
|
487
487
|
roleId: I.number().transform(
|
|
488
488
|
(ce, we) => we === "" ? void 0 : ce
|
|
489
489
|
).typeError("UserRole is required").required("UserRole is required"),
|
|
@@ -506,12 +506,12 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
506
506
|
then: (ce) => ce.required("Confirm Password is required").oneOf([I.ref("password"), null], "Passwords do not match")
|
|
507
507
|
}),
|
|
508
508
|
prefferedLanguage: I.string().required("Preffered Language is required")
|
|
509
|
-
}),
|
|
510
|
-
const [ce, we] = U(
|
|
509
|
+
}), zi = () => {
|
|
510
|
+
const [ce, we] = U(Ca), te = We(null), Ie = We(!1), xe = pi(), Ne = hi(), { translate: oe } = bi(), [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 } = gi(), [Ee, Oe] = U(!1), [na, sa] = U(!1), [K, be] = U([]), [Fe, le] = U([]), [ye, Re] = U([]), [c, oa] = U({}), ke = We(c);
|
|
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), [
|
|
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);
|
|
@@ -626,17 +626,17 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
626
626
|
) : s = s.concat(
|
|
627
627
|
I.object().shape({
|
|
628
628
|
latitude: I.number().transform(
|
|
629
|
-
(_,
|
|
629
|
+
(_, R) => R === "" ? void 0 : _
|
|
630
630
|
).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
631
|
longitude: I.number().transform(
|
|
632
|
-
(_,
|
|
632
|
+
(_, R) => R === "" ? void 0 : _
|
|
633
633
|
).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
634
|
})
|
|
635
|
-
)), we(
|
|
635
|
+
)), we(Ca.concat(s));
|
|
636
636
|
}, [c, h, S]);
|
|
637
|
-
const J =
|
|
637
|
+
const J = di({
|
|
638
638
|
mode: "onChange",
|
|
639
|
-
resolver:
|
|
639
|
+
resolver: ci(ce),
|
|
640
640
|
context: { id: !!S, roleDetails: h },
|
|
641
641
|
defaultValues: {
|
|
642
642
|
infrastructureIds: [],
|
|
@@ -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:
|
|
654
|
-
watch:
|
|
653
|
+
setValue: P,
|
|
654
|
+
watch: M,
|
|
655
655
|
clearErrors: ee,
|
|
656
656
|
resetField: X,
|
|
657
657
|
trigger: _e
|
|
@@ -672,7 +672,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
672
672
|
if (!s.target.value)
|
|
673
673
|
return;
|
|
674
674
|
const q = parseInt(s.target.value);
|
|
675
|
-
e([]), be([]),
|
|
675
|
+
e([]), be([]), Re([]);
|
|
676
676
|
const { data: Y } = await _a({
|
|
677
677
|
role_id: q
|
|
678
678
|
});
|
|
@@ -683,7 +683,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
683
683
|
Be(Math.max(...w)), r([]);
|
|
684
684
|
} else
|
|
685
685
|
ta.current = 10, Be(10), g(!1), r((C == null ? void 0 : C.addedLocations) || []);
|
|
686
|
-
if (
|
|
686
|
+
if (Pe(() => {
|
|
687
687
|
const D = ge.find((w) => w.id === q);
|
|
688
688
|
return D ? {
|
|
689
689
|
...D,
|
|
@@ -703,14 +703,14 @@ 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 &&
|
|
706
|
+
j && P("prefferedLanguage", j.languageKey);
|
|
707
707
|
}, He = async (s) => {
|
|
708
708
|
var j;
|
|
709
709
|
try {
|
|
710
|
-
K.length === 0 && (ee("areas"), Ce({})), S && ((j = C == null ? void 0 : C.addedLocations) != null && j.includes(s)) && r((
|
|
710
|
+
K.length === 0 && (ee("areas"), Ce({})), S && ((j = C == null ? void 0 : C.addedLocations) != null && j.includes(s)) && r((R) => [...R, s]);
|
|
711
711
|
const q = ye == null ? void 0 : ye.map(
|
|
712
712
|
(_) => _.infraid
|
|
713
|
-
), { data: Y } = await
|
|
713
|
+
), { data: Y } = await Wa(
|
|
714
714
|
[...q],
|
|
715
715
|
s.locationId
|
|
716
716
|
);
|
|
@@ -733,10 +733,10 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
733
733
|
}
|
|
734
734
|
}, Te = ja(
|
|
735
735
|
(s) => {
|
|
736
|
-
|
|
736
|
+
B.isBahaar || (s === "Mr" ? P("gender", "M") : (s === "Mrs" || s === "Ms") && P("gender", "F"));
|
|
737
737
|
},
|
|
738
|
-
[
|
|
739
|
-
),
|
|
738
|
+
[P]
|
|
739
|
+
), Ma = async (s) => {
|
|
740
740
|
var q, Y, D, w, _;
|
|
741
741
|
const j = {
|
|
742
742
|
...C,
|
|
@@ -745,10 +745,10 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
745
745
|
lastName: (s == null ? void 0 : s.lastName) || "",
|
|
746
746
|
addedLocations: K,
|
|
747
747
|
infrastructureIds: ye.map(
|
|
748
|
-
(
|
|
748
|
+
(R) => R.infraid
|
|
749
749
|
),
|
|
750
|
-
bankNameId:
|
|
751
|
-
bankName:
|
|
750
|
+
bankNameId: O.length > 0 ? s == null ? void 0 : s.bankName : null,
|
|
751
|
+
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
752
|
};
|
|
753
753
|
if (a.length > 0 && (j.deletedLocations = a), !K.length && u) {
|
|
754
754
|
ve({
|
|
@@ -765,7 +765,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
765
765
|
return;
|
|
766
766
|
}
|
|
767
767
|
try {
|
|
768
|
-
await
|
|
768
|
+
await Ja(j) && (S ? ve({ message: "User Updated Successfully", type: "success" }) : ve({ message: "User Added Successfully", type: "success" }), h.name.toLowerCase() === "doctor" && (S ? await he({
|
|
769
769
|
code: "UPDATE_DOCTOR_DETAILS",
|
|
770
770
|
parameters: {
|
|
771
771
|
userId: parseInt(S),
|
|
@@ -779,21 +779,21 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
779
779
|
specializationId: parseInt(s == null ? void 0 : s.specialization)
|
|
780
780
|
// averageDuration: parseInt(formValues?.averageDuration),
|
|
781
781
|
}
|
|
782
|
-
}), re && await
|
|
782
|
+
}), re && await Xa(s == null ? void 0 : s.userName, re)), Ie.current = !0, Ne("/ui/medplat/manage/users", {
|
|
783
783
|
state: {
|
|
784
784
|
fromManageUser: !0
|
|
785
785
|
}
|
|
786
786
|
}));
|
|
787
|
-
} catch (
|
|
788
|
-
((D = (Y =
|
|
789
|
-
message: (_ = (w =
|
|
787
|
+
} catch (R) {
|
|
788
|
+
((D = (Y = R == null ? void 0 : R.response) == null ? void 0 : Y.data) == null ? void 0 : D.errorcode) === 400 ? ve({
|
|
789
|
+
message: (_ = (w = R == null ? void 0 : R.response) == null ? void 0 : w.data) == null ? void 0 : _.message,
|
|
790
790
|
type: "error"
|
|
791
791
|
}) : ve({
|
|
792
792
|
message: `Something went wrong while ${S ? "Updating" : "Adding"} user`,
|
|
793
793
|
type: "error"
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
|
-
},
|
|
796
|
+
}, Pa = () => {
|
|
797
797
|
Ne("/ui/medplat/manage/users", {
|
|
798
798
|
state: {
|
|
799
799
|
fromManageUser: !0
|
|
@@ -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 (
|
|
805
|
+
if (P("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
|
|
@@ -816,7 +816,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
816
816
|
} catch (j) {
|
|
817
817
|
console.error(j);
|
|
818
818
|
}
|
|
819
|
-
},
|
|
819
|
+
}, La = async (s) => {
|
|
820
820
|
var j;
|
|
821
821
|
try {
|
|
822
822
|
const q = Number((j = s.target) == null ? void 0 : j.value);
|
|
@@ -833,7 +833,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
833
833
|
} catch (q) {
|
|
834
834
|
console.error(q);
|
|
835
835
|
}
|
|
836
|
-
},
|
|
836
|
+
}, Ua = async () => {
|
|
837
837
|
var s, j;
|
|
838
838
|
try {
|
|
839
839
|
xe("button_click", {
|
|
@@ -846,8 +846,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
846
846
|
if (Ce({}), Ye.length) {
|
|
847
847
|
const ae = Ye.includes(
|
|
848
848
|
(j = (s = fe == null ? void 0 : fe.finalSelected) == null ? void 0 : s.optionSelected) == null ? void 0 : j.type
|
|
849
|
-
), { data: Ze } = await
|
|
850
|
-
(
|
|
849
|
+
), { data: Ze } = await Ka(), Ke = Ye.map(
|
|
850
|
+
(Fa) => Ze.find(($a) => $a.type === Fa).name
|
|
851
851
|
);
|
|
852
852
|
if (!ae)
|
|
853
853
|
return Ce({
|
|
@@ -915,7 +915,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
915
915
|
}
|
|
916
916
|
}, wa = async () => {
|
|
917
917
|
await _e(["password", "confirmPassword"]);
|
|
918
|
-
},
|
|
918
|
+
}, Ba = async () => {
|
|
919
919
|
try {
|
|
920
920
|
const { data: s } = await he({
|
|
921
921
|
code: "unlock_user_option",
|
|
@@ -937,22 +937,22 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
937
937
|
try {
|
|
938
938
|
l(!0);
|
|
939
939
|
const [q, Y, D] = await Promise.all([
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
940
|
+
Ya(),
|
|
941
|
+
Qa("techo.manage.users"),
|
|
942
|
+
Da()
|
|
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 (
|
|
947
|
-
|
|
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
|
-
|
|
952
|
+
F(((s = w == null ? void 0 : w.data) == null ? void 0 : s.result) || []);
|
|
953
953
|
}
|
|
954
954
|
} catch {
|
|
955
|
-
|
|
955
|
+
F([]);
|
|
956
956
|
}
|
|
957
957
|
if (S) {
|
|
958
958
|
qe("Update User"), e([]), be([]);
|
|
@@ -962,30 +962,30 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
962
962
|
role_id: w.roleId
|
|
963
963
|
});
|
|
964
964
|
if (((j = _.hierarchy) == null ? void 0 : j.length) > 0) {
|
|
965
|
-
const
|
|
965
|
+
const R = _.hierarchy.map(
|
|
966
966
|
(ae) => ae.locationType
|
|
967
967
|
);
|
|
968
|
-
e(
|
|
968
|
+
e(R);
|
|
969
969
|
const Q = _.hierarchy.map((ae) => ae.level);
|
|
970
970
|
Be(Math.max(...Q));
|
|
971
971
|
} else
|
|
972
972
|
ta.current = 10, Be(10);
|
|
973
|
-
if (
|
|
974
|
-
var
|
|
973
|
+
if (Pe(() => {
|
|
974
|
+
var R;
|
|
975
975
|
return _ != null && _.roles ? {
|
|
976
976
|
..._ == null ? void 0 : _.roles,
|
|
977
|
-
isDoctor: ((
|
|
977
|
+
isDoctor: ((R = _ == null ? void 0 : _.roles) == null ? void 0 : R.name.toLowerCase()) === "doctor"
|
|
978
978
|
} : null;
|
|
979
979
|
}), _.roles.name.toLowerCase() === "doctor") {
|
|
980
|
-
const
|
|
980
|
+
const R = await he({
|
|
981
981
|
code: "GET_SPECIALIZATION"
|
|
982
982
|
});
|
|
983
|
-
p(
|
|
983
|
+
p(R.data.result), y(!0);
|
|
984
984
|
} else
|
|
985
985
|
X("specialization"), y(!1);
|
|
986
986
|
if ((w == null ? void 0 : w.addedLocations.length) > 0) {
|
|
987
987
|
g(!0);
|
|
988
|
-
const { data:
|
|
988
|
+
const { data: R } = await he({
|
|
989
989
|
code: "retrieve_infra_by_role_location",
|
|
990
990
|
parameters: {
|
|
991
991
|
roleId: Number(w == null ? void 0 : w.roleId),
|
|
@@ -994,15 +994,15 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
994
994
|
)
|
|
995
995
|
}
|
|
996
996
|
});
|
|
997
|
-
le(
|
|
998
|
-
|
|
997
|
+
le(R.result), Re(
|
|
998
|
+
R.result.filter(
|
|
999
999
|
(Q) => w == null ? void 0 : w.infrastructureIds.includes(Q.infraid)
|
|
1000
1000
|
)
|
|
1001
1001
|
);
|
|
1002
1002
|
}
|
|
1003
1003
|
ia(!0), Object.keys(w).map(
|
|
1004
|
-
(
|
|
1005
|
-
),
|
|
1004
|
+
(R) => P(R, w == null ? void 0 : w[R])
|
|
1005
|
+
), P("prefferedLanguage", w == null ? void 0 : w.prefferedLanguage), w != null && w.bankNameId && !B.isTecho && P("bankName", w.bankNameId);
|
|
1006
1006
|
}
|
|
1007
1007
|
l(!1);
|
|
1008
1008
|
} catch (q) {
|
|
@@ -1011,13 +1011,13 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1011
1011
|
type: "error"
|
|
1012
1012
|
}), l((Y) => !Y);
|
|
1013
1013
|
}
|
|
1014
|
-
}, [S,
|
|
1014
|
+
}, [S, P]);
|
|
1015
1015
|
Me(() => {
|
|
1016
1016
|
za();
|
|
1017
1017
|
}, [za]), Me(() => {
|
|
1018
|
-
v && S &&
|
|
1018
|
+
v && S && Oa();
|
|
1019
1019
|
}, [v, S]);
|
|
1020
|
-
const
|
|
1020
|
+
const Oa = async () => {
|
|
1021
1021
|
try {
|
|
1022
1022
|
const s = await he({
|
|
1023
1023
|
code: "GET_SPECIALIZATION_BY_USERID",
|
|
@@ -1025,19 +1025,19 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1025
1025
|
id: parseInt(S)
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
|
-
|
|
1029
|
-
const j = await
|
|
1028
|
+
P("specialization", s.data.result[0].specialization_id);
|
|
1029
|
+
const j = await Ha(parseInt(S)), q = new Blob([j], { type: "application/image" }), Y = URL.createObjectURL(q);
|
|
1030
1030
|
W(Y);
|
|
1031
1031
|
} catch (s) {
|
|
1032
1032
|
console.error(s);
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
1035
1035
|
return Me(() => {
|
|
1036
|
-
const s =
|
|
1036
|
+
const s = M((j, { name: q }) => {
|
|
1037
1037
|
q === "title" && Te(j.title);
|
|
1038
1038
|
});
|
|
1039
1039
|
return () => s.unsubscribe();
|
|
1040
|
-
}, [
|
|
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__ */
|
|
1054
|
+
) : /* @__PURE__ */ $(de, { children: [
|
|
1055
1055
|
ne === 1 && /* @__PURE__ */ i(xa, { children: /* @__PURE__ */ i(
|
|
1056
1056
|
fi,
|
|
1057
1057
|
{
|
|
@@ -1068,12 +1068,12 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1068
1068
|
description: "Do you want to unlock this User ?",
|
|
1069
1069
|
title: "CONFIRM ACTION",
|
|
1070
1070
|
open: ne === 2,
|
|
1071
|
-
handleClick:
|
|
1071
|
+
handleClick: Ba,
|
|
1072
1072
|
handleClose: () => ie(0),
|
|
1073
1073
|
dataTestId: "unlock-user-modal"
|
|
1074
1074
|
}
|
|
1075
1075
|
),
|
|
1076
|
-
/* @__PURE__ */ i(
|
|
1076
|
+
/* @__PURE__ */ i(mi, { ...J, children: /* @__PURE__ */ i(
|
|
1077
1077
|
ka,
|
|
1078
1078
|
{
|
|
1079
1079
|
"data-testid": "ManageUserForm",
|
|
@@ -1092,15 +1092,15 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1092
1092
|
s.preventDefault();
|
|
1093
1093
|
return;
|
|
1094
1094
|
}
|
|
1095
|
-
A(
|
|
1095
|
+
A(Ma)(s);
|
|
1096
1096
|
},
|
|
1097
1097
|
noValidate: !0,
|
|
1098
|
-
children: /* @__PURE__ */
|
|
1098
|
+
children: /* @__PURE__ */ $(Za, { 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
|
+
ni,
|
|
1101
1101
|
{
|
|
1102
1102
|
className: "p-2.5 px-5 flex border-b",
|
|
1103
|
-
subheader: /* @__PURE__ */
|
|
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__ */
|
|
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(
|
|
1153
|
+
/* @__PURE__ */ i(si, { 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__ */
|
|
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__ */
|
|
1174
|
-
/* @__PURE__ */ i(x, { item: !0, size: { xs: 12, sm: 12, md: 6 }, 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 &&
|
|
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(
|
|
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: !
|
|
1199
|
-
disabled: S &&
|
|
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(
|
|
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 &&
|
|
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(
|
|
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 &&
|
|
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(
|
|
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 &&
|
|
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(
|
|
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(
|
|
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__ */
|
|
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 &&
|
|
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: !
|
|
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
|
-
|
|
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: !
|
|
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(
|
|
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:
|
|
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(
|
|
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__ */
|
|
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__ */
|
|
1447
|
-
/* @__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 && (
|
|
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__ */
|
|
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__ */
|
|
1471
|
-
/* @__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(
|
|
1485
|
-
|
|
1484
|
+
/* @__PURE__ */ i(G, { children: /* @__PURE__ */ i(
|
|
1485
|
+
vi,
|
|
1486
1486
|
{
|
|
1487
|
-
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(
|
|
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 &&
|
|
1527
|
+
disabled: S && B.isTecho && !(c != null && c["update.manage.users.canManagePhonenumber"]),
|
|
1528
1528
|
inputProps: {
|
|
1529
1529
|
maxLength: 10,
|
|
1530
1530
|
inputMode: "numeric",
|
|
@@ -1539,14 +1539,14 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1539
1539
|
name: "contactNumber",
|
|
1540
1540
|
errors: E,
|
|
1541
1541
|
label: "",
|
|
1542
|
-
onBlur:
|
|
1542
|
+
onBlur: La,
|
|
1543
1543
|
dataTestId: "phone-number-input"
|
|
1544
1544
|
}
|
|
1545
1545
|
)
|
|
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 &&
|
|
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 &&
|
|
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 &&
|
|
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__ */
|
|
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:
|
|
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:
|
|
1635
|
+
options: O,
|
|
1636
1636
|
displayName: "value",
|
|
1637
1637
|
optionValue: "id",
|
|
1638
|
-
disabled: S &&
|
|
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 &&
|
|
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 &&
|
|
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 &&
|
|
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 &&
|
|
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(
|
|
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 &&
|
|
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__ */
|
|
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(
|
|
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,8 +1798,8 @@ 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__ */
|
|
1802
|
-
/* @__PURE__ */ i(
|
|
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
|
+
/* @__PURE__ */ i(oi, { component: "legend", children: oe(
|
|
1803
1803
|
"Is User SMAG Trained (Safe Motherhood Action Group)"
|
|
1804
1804
|
) }),
|
|
1805
1805
|
/* @__PURE__ */ i(
|
|
@@ -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__ */
|
|
1811
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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,9 +1855,9 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1855
1855
|
spacing: 0,
|
|
1856
1856
|
className: "h-full",
|
|
1857
1857
|
children: [
|
|
1858
|
-
/* @__PURE__ */
|
|
1858
|
+
/* @__PURE__ */ $(x, { children: [
|
|
1859
1859
|
/* @__PURE__ */ i(xa, { children: /* @__PURE__ */ i(
|
|
1860
|
-
|
|
1860
|
+
wi,
|
|
1861
1861
|
{
|
|
1862
1862
|
requiredUptoLevel: 0,
|
|
1863
1863
|
selectedLocation: fe,
|
|
@@ -1910,7 +1910,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1910
1910
|
parameters: {
|
|
1911
1911
|
roleId: h == null ? void 0 : h.id,
|
|
1912
1912
|
locationIds: w.map(
|
|
1913
|
-
(
|
|
1913
|
+
(R) => R.locationId
|
|
1914
1914
|
)
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
@@ -1927,14 +1927,14 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1927
1927
|
description: $e
|
|
1928
1928
|
}
|
|
1929
1929
|
),
|
|
1930
|
-
/* @__PURE__ */
|
|
1930
|
+
/* @__PURE__ */ $(x, { item: !0, size: { xs: 12 }, children: [
|
|
1931
1931
|
/* @__PURE__ */ i(
|
|
1932
1932
|
Xe,
|
|
1933
1933
|
{
|
|
1934
1934
|
variant: "contained",
|
|
1935
1935
|
color: "primary",
|
|
1936
1936
|
size: "small",
|
|
1937
|
-
onClick: () =>
|
|
1937
|
+
onClick: () => Ua(),
|
|
1938
1938
|
className: "mt-[1rem]",
|
|
1939
1939
|
"data-testid": "add-area-button",
|
|
1940
1940
|
children: oe("Add")
|
|
@@ -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__ */
|
|
1955
|
+
/* @__PURE__ */ i(x, { container: !0, children: /* @__PURE__ */ $(x, { item: !0, size: { xs: 11 }, children: [
|
|
1956
1956
|
/* @__PURE__ */ i(
|
|
1957
1957
|
ze,
|
|
1958
1958
|
{
|
|
@@ -1968,7 +1968,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1968
1968
|
ref: T,
|
|
1969
1969
|
className: `flex flex-wrap gap-2 border ${E.addedareas ? "border-red-500" : "border-gray-300"} rounded-4xl p-1.5 pl-3 pr-3 overflow-y-auto cursor-pointer min-h-9 max-h-[${d}] box-border`,
|
|
1970
1970
|
children: K && K.length > 0 ? K.map((s, j) => /* @__PURE__ */ i(
|
|
1971
|
-
|
|
1971
|
+
ti,
|
|
1972
1972
|
{
|
|
1973
1973
|
label: s == null ? void 0 : s.locationFullName,
|
|
1974
1974
|
onDelete: () => He(s),
|
|
@@ -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__ */
|
|
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__ */
|
|
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
|
{
|
|
@@ -2007,7 +2007,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
2007
2007
|
}
|
|
2008
2008
|
),
|
|
2009
2009
|
/* @__PURE__ */ i(
|
|
2010
|
-
|
|
2010
|
+
Va,
|
|
2011
2011
|
{
|
|
2012
2012
|
options: Fe,
|
|
2013
2013
|
name: "healthInfrastructures",
|
|
@@ -2015,20 +2015,20 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
2015
2015
|
control: m,
|
|
2016
2016
|
getOptionLabel: (s) => s == null ? void 0 : s.infrastructurename,
|
|
2017
2017
|
value: ye,
|
|
2018
|
-
onChange: (s, j) =>
|
|
2018
|
+
onChange: (s, j) => Re(j),
|
|
2019
2019
|
dataTestId: "health-infra-select",
|
|
2020
2020
|
isVirtualized: !0
|
|
2021
2021
|
}
|
|
2022
2022
|
)
|
|
2023
2023
|
] }) })
|
|
2024
2024
|
] }),
|
|
2025
|
-
|
|
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__ */
|
|
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__ */
|
|
2096
|
-
/* @__PURE__ */ i(x, { item: !0, size: { xs: 11 }, 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__ */
|
|
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,12 +2141,12 @@ 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__ */
|
|
2144
|
+
children: /* @__PURE__ */ $(de, { children: [
|
|
2145
2145
|
/* @__PURE__ */ i(
|
|
2146
2146
|
Xe,
|
|
2147
2147
|
{
|
|
2148
2148
|
size: "small",
|
|
2149
|
-
onClick:
|
|
2149
|
+
onClick: Pa,
|
|
2150
2150
|
variant: "contained",
|
|
2151
2151
|
color: "secondary",
|
|
2152
2152
|
"data-testid": "cancel-button",
|
|
@@ -2173,12 +2173,12 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
2173
2173
|
}
|
|
2174
2174
|
) })
|
|
2175
2175
|
] });
|
|
2176
|
-
},
|
|
2176
|
+
}, Wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2177
2177
|
__proto__: null,
|
|
2178
|
-
default:
|
|
2178
|
+
default: zi
|
|
2179
2179
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2180
2180
|
export {
|
|
2181
|
-
|
|
2181
|
+
Wi as M,
|
|
2182
2182
|
va as P
|
|
2183
2183
|
};
|
|
2184
|
-
//# sourceMappingURL=ManageUser-
|
|
2184
|
+
//# sourceMappingURL=ManageUser-BnEPFSPT.js.map
|