@argusoft/medplat-core 1.0.15 → 1.0.16
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/{ChangePasswordModalCore-CTGy8Ttf.js → ChangePasswordModalCore-ClND1mel.js} +67 -62
- package/dist/ChangePasswordModalCore-ClND1mel.js.map +1 -0
- package/dist/{ImmunizationConfigurationBase-DZ8EqXlF.js → ImmunizationConfigurationBase-VqVvVR57.js} +2095 -1872
- package/dist/ImmunizationConfigurationBase-VqVvVR57.js.map +1 -0
- package/dist/{ManageNotification-EQgnOO0U.js → ManageNotification-BUAvg5Ge.js} +1737 -1645
- package/dist/{ManageNotification-EQgnOO0U.js.map → ManageNotification-BUAvg5Ge.js.map} +1 -1
- package/dist/{ManageUser-C9uMe9av.js → ManageUser-eBS0yC5k.js} +80 -83
- package/dist/{ManageUser-C9uMe9av.js.map → ManageUser-eBS0yC5k.js.map} +1 -1
- package/dist/{NotificationList-BZwvgsf6.js → NotificationList-CUZSWp2J.js} +2 -2
- package/dist/{NotificationList-BZwvgsf6.js.map → NotificationList-CUZSWp2J.js.map} +1 -1
- package/dist/OtherTypeEventConfigModal-dXt2qDg_.js.map +1 -1
- package/dist/QueryManagement-B2y23kus.js +935 -0
- package/dist/QueryManagement-B2y23kus.js.map +1 -0
- package/dist/{UserList-BH6OpZvq.js → UserList-BAeAFeXZ.js} +2 -2
- package/dist/{UserList-BH6OpZvq.js.map → UserList-BAeAFeXZ.js.map} +1 -1
- package/dist/{UserListSkeleton-cglK2SaU.js → UserListSkeleton-DhIJ5X3y.js} +10 -7
- package/dist/UserListSkeleton-DhIJ5X3y.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +55 -54
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/ChangePasswordModalCore-CTGy8Ttf.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.js.map +0 -1
- package/dist/QueryManagement-BpIRH8hI.js +0 -685
- package/dist/QueryManagement-BpIRH8hI.js.map +0 -1
- package/dist/UserListSkeleton-cglK2SaU.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, jsxs as F, 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
|
-
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-
|
|
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
5
|
import { FormItem as $ } from "@/views/custom-components/FormItem.jsx";
|
|
6
6
|
import { getAssignedFeatures as Xa } from "@/utils/feature";
|
|
@@ -84,7 +84,7 @@ function bi() {
|
|
|
84
84
|
}
|
|
85
85
|
Ie(e, a), e.prototype = a === null ? Object.create(a) : (r.prototype = a.prototype, new r());
|
|
86
86
|
}
|
|
87
|
-
var Ne, oe, ge, Ae, ne, ie,
|
|
87
|
+
var Ne, oe, ge, Ae, ne, ie, C, pe = function() {
|
|
88
88
|
return (pe = Object.assign || function(e) {
|
|
89
89
|
for (var a, r = 1, n = arguments.length; r < n; r++) for (var o in a = arguments[r]) Object.prototype.hasOwnProperty.call(a, o) && (e[o] = a[o]);
|
|
90
90
|
return e;
|
|
@@ -119,7 +119,7 @@ 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,
|
|
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;
|
|
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([]);
|
|
@@ -141,30 +141,30 @@ 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, 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;
|
|
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, 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() {
|
|
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 M;
|
|
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
|
|
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
162
|
}, t = W = 0, O = k; 0 <= O ? W < O : O < W; t = 0 <= O ? ++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);
|
|
166
166
|
}
|
|
167
|
-
return N = (
|
|
167
|
+
return N = (T = re(k)).length, o = e.length === 0 ? 1 : f.g[k - 1][N], { password: e, guesses: o, guesses_log10: this.log10(o), sequence: T };
|
|
168
168
|
}, estimate_guesses: function(e, a) {
|
|
169
169
|
var r, n;
|
|
170
170
|
return e.guesses != null || (n = 1, e.token.length < a.length && (n = e.token.length === 1 ? Ae : ge), r = { bruteforce: this.bruteforce_guesses, dictionary: this.dictionary_guesses, spatial: this.spatial_guesses, repeat: this.repeat_guesses, sequence: this.sequence_guesses, regex: this.regex_guesses, date: this.date_guesses }[e.pattern].call(this, e), e.guesses = Math.max(r, n), e.guesses_log10 = this.log10(e.guesses)), e.guesses;
|
|
@@ -188,18 +188,18 @@ function bi() {
|
|
|
188
188
|
return a = 365 * Math.max(Math.abs(e.year - this.REFERENCE_YEAR), this.MIN_YEAR_SPACE), e.separator && (a *= 4), a;
|
|
189
189
|
}, KEYBOARD_AVERAGE_DEGREE: ie(ne.qwerty), KEYPAD_AVERAGE_DEGREE: ie(ne.keypad), KEYBOARD_STARTING_POSITIONS: (function() {
|
|
190
190
|
var e, a;
|
|
191
|
-
for (
|
|
191
|
+
for (C in a = [], e = ne.qwerty) e[C], a.push(C);
|
|
192
192
|
return a;
|
|
193
193
|
})().length, KEYPAD_STARTING_POSITIONS: (function() {
|
|
194
194
|
var e, a;
|
|
195
|
-
for (
|
|
195
|
+
for (C in a = [], e = ne.keypad) e[C], a.push(C);
|
|
196
196
|
return a;
|
|
197
197
|
})().length, spatial_guesses: function(e) {
|
|
198
|
-
var a, r, n, o, t, l, d, b, u, g, v, y, k, p, f, N,
|
|
198
|
+
var a, r, n, o, t, l, d, b, u, g, v, y, k, p, f, N, T;
|
|
199
199
|
for (o = (g = e.graph) === "qwerty" || g === "dvorak" ? (p = this.KEYBOARD_STARTING_POSITIONS, this.KEYBOARD_AVERAGE_DEGREE) : (p = this.KEYPAD_STARTING_POSITIONS, this.KEYPAD_AVERAGE_DEGREE), t = 0, a = e.token.length, N = e.turns, l = b = 2, v = a; 2 <= v ? b <= v : v <= b; l = 2 <= v ? ++b : --b) for (d = u = 1, y = Math.min(N, l - 1); 1 <= y ? u <= y : y <= u; d = 1 <= y ? ++u : --u) t += this.nCk(l - 1, d - 1) * p * Math.pow(o, d);
|
|
200
200
|
if (e.shifted_count) if (r = e.shifted_count, n = e.token.length - e.shifted_count, r === 0 || n == 0) t *= 2;
|
|
201
201
|
else {
|
|
202
|
-
for (f = 0, l =
|
|
202
|
+
for (f = 0, l = T = 1, k = Math.min(r, n); 1 <= k ? T <= k : k <= T; l = 1 <= k ? ++T : --T) f += this.nCk(r + n, l);
|
|
203
203
|
t *= f;
|
|
204
204
|
}
|
|
205
205
|
return 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
|
|
300
|
-
for (B = [], W = {}, re = 0, V = N.length; re < V; re++) H = N[re], (
|
|
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() {
|
|
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
304
|
})()).sort(), (O = (function() {
|
|
305
305
|
var J, m, z;
|
|
306
|
-
for (z = [], Z = m = 0, J =
|
|
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
308
|
})().join("-")) in W || (W[O] = !0, B.push(H));
|
|
309
309
|
return B;
|
|
310
310
|
}, (n = function(N) {
|
|
311
|
-
var
|
|
311
|
+
var T, B, O, V, W, re, H, Z, J, m, z, A, E, L, M, R;
|
|
312
312
|
if (N.length) {
|
|
313
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 (
|
|
315
|
-
|
|
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;
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
|
-
|
|
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));
|
|
319
319
|
}
|
|
320
320
|
return f = r(H), n(E);
|
|
321
321
|
}
|
|
@@ -325,10 +325,10 @@ 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,
|
|
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], (
|
|
330
|
-
for (f in b = {}, p) n = p[f],
|
|
331
|
-
d.l33t = !0, d.token =
|
|
328
|
+
var n, o, t, l, d, b, u, g, v, y, k, p, f, N, T, B;
|
|
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
|
+
for (f in b = {}, p) n = p[f], T.indexOf(f) !== -1 && (b[f] = n);
|
|
331
|
+
d.l33t = !0, d.token = T, d.sub = b, d.sub_display = (function() {
|
|
332
332
|
var O;
|
|
333
333
|
for (o in O = [], b) B = b[o], O.push(o + " -> " + B);
|
|
334
334
|
return O;
|
|
@@ -365,8 +365,8 @@ function bi() {
|
|
|
365
365
|
var a, r, n, o, t, l, d, b, u, g;
|
|
366
366
|
if (e.length === 1) return [];
|
|
367
367
|
for (g = this, u = function(v, y, k) {
|
|
368
|
-
var p, f, N,
|
|
369
|
-
if ((1 < y - v || Math.abs(k) === 1) && 0 < (p = Math.abs(k)) && p <= g.MAX_DELTA) return
|
|
368
|
+
var p, f, N, T;
|
|
369
|
+
if ((1 < y - v || Math.abs(k) === 1) && 0 < (p = Math.abs(k)) && p <= g.MAX_DELTA) return T = e.slice(v, +y + 1 || 9e9), N = /^[a-z]+$/.test(T) ? (f = "lower", 26) : /^[A-Z]+$/.test(T) ? (f = "upper", 26) : /^\d+$/.test(T) ? (f = "digits", 10) : (f = "unicode", 26), b.push({ pattern: "sequence", i: v, j: y, token: e.slice(v, +y + 1 || 9e9), sequence_name: f, sequence_space: N, ascending: 0 < k });
|
|
370
370
|
}, b = [], r = 0, t = null, o = l = 1, d = e.length; 1 <= d ? l < d : d < l; o = 1 <= d ? ++l : --l) a = e.charCodeAt(o) - e.charCodeAt(o - 1), t == null && (t = a), a !== t && (u(r, n = o - 1, t), r = n, t = a);
|
|
371
371
|
return u(r, e.length - 1, t), b;
|
|
372
372
|
}, regex_match: function(e, a) {
|
|
@@ -374,8 +374,8 @@ 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,
|
|
378
|
-
for (y = [], k = /^\d{4,8}$/, p = /^(\d{1,4})([\s\/\\_.-])(\d{1,2})\2(\d{1,4})$/, l =
|
|
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
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);
|
|
380
380
|
if (0 < n.length) {
|
|
381
381
|
for (a = n[0], N = (f = function(_e) {
|
|
@@ -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 = 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 });
|
|
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-
|
|
484
|
+
const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCore-ClND1mel.js")), vi = Ca(
|
|
485
485
|
() => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")
|
|
486
486
|
), Sa = I.object().shape({
|
|
487
487
|
roleId: I.number().transform(
|
|
@@ -507,11 +507,11 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
507
507
|
}),
|
|
508
508
|
prefferedLanguage: I.string().required("Preffered Language is required")
|
|
509
509
|
}), wi = () => {
|
|
510
|
-
const [ce, we] = U(Sa), te = We(null), Ie = We(!1), xe = gi(), Ne = ui(), { translate: oe } = pi(), [ge, Ae] = U([]), [ne, ie] = U(0), [
|
|
510
|
+
const [ce, we] = U(Sa), te = We(null), Ie = We(!1), xe = gi(), Ne = ui(), { translate: oe } = pi(), [ge, Ae] = U([]), [ne, ie] = U(0), [C, pe] = U(), [Ve, ea] = U([]), [h, Re] = U({}), [aa, ia] = U(!1), [ra, qe] = U("Add User"), { id: S } = hi(), [Ee, Oe] = U(!1), [na, sa] = U(!1), [K, be] = U([]), [Fe, le] = U([]), [ye, Pe] = U([]), [c, oa] = U({}), ke = We(c);
|
|
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([]),
|
|
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) => {
|
|
515
515
|
const j = s.target.files[0];
|
|
516
516
|
if (j) {
|
|
517
517
|
H(j);
|
|
@@ -522,8 +522,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
524
|
Me(() => {
|
|
525
|
-
if (
|
|
526
|
-
const s =
|
|
525
|
+
if (T.current) {
|
|
526
|
+
const s = T.current.scrollHeight, j = 100;
|
|
527
527
|
s > j ? b(`${j}px`) : s < 37 ? b("37px") : b(`${s}px`);
|
|
528
528
|
}
|
|
529
529
|
}, [K]), Me(() => {
|
|
@@ -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: M,
|
|
654
|
+
watch: R,
|
|
655
655
|
clearErrors: ee,
|
|
656
656
|
resetField: X,
|
|
657
657
|
trigger: _e
|
|
@@ -682,7 +682,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
682
682
|
const w = Y.hierarchy.map((_) => _.level);
|
|
683
683
|
Be(Math.max(...w)), r([]);
|
|
684
684
|
} else
|
|
685
|
-
ta.current = 10, Be(10), g(!1), r((
|
|
685
|
+
ta.current = 10, Be(10), g(!1), r((C == null ? void 0 : C.addedLocations) || []);
|
|
686
686
|
if (Re(() => {
|
|
687
687
|
const D = ge.find((w) => w.id === q);
|
|
688
688
|
return D ? {
|
|
@@ -703,11 +703,11 @@ 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 && M("prefferedLanguage", j.languageKey);
|
|
707
707
|
}, He = async (s) => {
|
|
708
708
|
var j;
|
|
709
709
|
try {
|
|
710
|
-
K.length === 0 && (ee("areas"), Ce({})), S && ((j =
|
|
710
|
+
K.length === 0 && (ee("areas"), Ce({})), S && ((j = C == null ? void 0 : C.addedLocations) != null && j.includes(s)) && r((P) => [...P, s]);
|
|
711
711
|
const q = ye == null ? void 0 : ye.map(
|
|
712
712
|
(_) => _.infraid
|
|
713
713
|
), { data: Y } = await Ka(
|
|
@@ -733,13 +733,13 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
733
733
|
}
|
|
734
734
|
}, Te = ja(
|
|
735
735
|
(s) => {
|
|
736
|
-
G.isBahaar || (s === "Mr" ?
|
|
736
|
+
G.isBahaar || (s === "Mr" ? M("gender", "M") : (s === "Mrs" || s === "Ms") && M("gender", "F"));
|
|
737
737
|
},
|
|
738
|
-
[
|
|
738
|
+
[M]
|
|
739
739
|
), Ta = async (s) => {
|
|
740
740
|
var q, Y, D, w, _;
|
|
741
741
|
const j = {
|
|
742
|
-
...
|
|
742
|
+
...C,
|
|
743
743
|
// Spread only if needed, else write explicitly too
|
|
744
744
|
...s,
|
|
745
745
|
lastName: (s == null ? void 0 : s.lastName) || "",
|
|
@@ -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 (M("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
|
|
@@ -820,7 +820,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
820
820
|
var j;
|
|
821
821
|
try {
|
|
822
822
|
const q = Number((j = s.target) == null ? void 0 : j.value);
|
|
823
|
-
return q && Number(
|
|
823
|
+
return q && Number(C == null ? void 0 : C.contactNumber) !== q && await Ia({
|
|
824
824
|
action: "checkphone",
|
|
825
825
|
phone: q
|
|
826
826
|
}).catch((Y) => {
|
|
@@ -920,7 +920,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
920
920
|
const { data: s } = await he({
|
|
921
921
|
code: "unlock_user_option",
|
|
922
922
|
parameters: {
|
|
923
|
-
userId:
|
|
923
|
+
userId: C == null ? void 0 : C.id
|
|
924
924
|
}
|
|
925
925
|
});
|
|
926
926
|
ie(0);
|
|
@@ -946,7 +946,9 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
946
946
|
if (G.isTecho)
|
|
947
947
|
O([]);
|
|
948
948
|
else {
|
|
949
|
-
const w = await he({
|
|
949
|
+
const w = await he({
|
|
950
|
+
code: "get_bank_names_for_pbi"
|
|
951
|
+
});
|
|
950
952
|
O(((s = w == null ? void 0 : w.data) == null ? void 0 : s.result) || []);
|
|
951
953
|
}
|
|
952
954
|
} catch {
|
|
@@ -999,8 +1001,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
999
1001
|
);
|
|
1000
1002
|
}
|
|
1001
1003
|
ia(!0), Object.keys(w).map(
|
|
1002
|
-
(P) =>
|
|
1003
|
-
),
|
|
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
1006
|
}
|
|
1005
1007
|
l(!1);
|
|
1006
1008
|
} catch (q) {
|
|
@@ -1009,7 +1011,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1009
1011
|
type: "error"
|
|
1010
1012
|
}), l((Y) => !Y);
|
|
1011
1013
|
}
|
|
1012
|
-
}, [S,
|
|
1014
|
+
}, [S, M]);
|
|
1013
1015
|
Me(() => {
|
|
1014
1016
|
za();
|
|
1015
1017
|
}, [za]), Me(() => {
|
|
@@ -1023,7 +1025,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1023
1025
|
id: parseInt(S)
|
|
1024
1026
|
}
|
|
1025
1027
|
});
|
|
1026
|
-
|
|
1028
|
+
M("specialization", s.data.result[0].specialization_id);
|
|
1027
1029
|
const j = await Da(parseInt(S)), q = new Blob([j], { type: "application/image" }), Y = URL.createObjectURL(q);
|
|
1028
1030
|
W(Y);
|
|
1029
1031
|
} catch (s) {
|
|
@@ -1031,11 +1033,11 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1031
1033
|
}
|
|
1032
1034
|
};
|
|
1033
1035
|
return Me(() => {
|
|
1034
|
-
const s =
|
|
1036
|
+
const s = R((j, { name: q }) => {
|
|
1035
1037
|
q === "title" && Te(j.title);
|
|
1036
1038
|
});
|
|
1037
1039
|
return () => s.unsubscribe();
|
|
1038
|
-
}, [
|
|
1040
|
+
}, [R, Te]), S && !(c != null && c["update.manage.users"]) && !t ? /* @__PURE__ */ i(
|
|
1039
1041
|
ca,
|
|
1040
1042
|
{
|
|
1041
1043
|
className: "flex justify-center items-center w-full h-[80vh]",
|
|
@@ -1055,7 +1057,8 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1055
1057
|
{
|
|
1056
1058
|
open: ne === 1,
|
|
1057
1059
|
onClose: () => ie(0),
|
|
1058
|
-
userId:
|
|
1060
|
+
userId: C == null ? void 0 : C.id,
|
|
1061
|
+
roleCode: C == null ? void 0 : C.roleCode,
|
|
1059
1062
|
"data-testid": "change-password-modal"
|
|
1060
1063
|
}
|
|
1061
1064
|
) }),
|
|
@@ -1114,7 +1117,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1114
1117
|
}
|
|
1115
1118
|
),
|
|
1116
1119
|
/* @__PURE__ */ F(x, { item: !0, children: [
|
|
1117
|
-
S && (c == null ? void 0 : c["update.manage.users.canUnlockUser"]) && (
|
|
1120
|
+
S && (c == null ? void 0 : c["update.manage.users.canUnlockUser"]) && (C == null ? void 0 : C.isLocked) && /* @__PURE__ */ i(
|
|
1118
1121
|
Xe,
|
|
1119
1122
|
{
|
|
1120
1123
|
variant: "contained",
|
|
@@ -1234,23 +1237,17 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1234
1237
|
dataTestId: "last-name-input"
|
|
1235
1238
|
}
|
|
1236
1239
|
) }) }),
|
|
1237
|
-
(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(
|
|
1238
|
-
|
|
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(
|
|
1241
|
+
Aa,
|
|
1239
1242
|
{
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
errors: E,
|
|
1247
|
-
format: "DD/MM/YYYY",
|
|
1248
|
-
minDate: Qe("1925-01-01"),
|
|
1249
|
-
maxDate: Qe().subtract(15, "year")
|
|
1250
|
-
}
|
|
1251
|
-
)
|
|
1243
|
+
control: m,
|
|
1244
|
+
name: "dateOfBirth",
|
|
1245
|
+
errors: E,
|
|
1246
|
+
format: "DD/MM/YYYY",
|
|
1247
|
+
minDate: Qe("1925-01-01"),
|
|
1248
|
+
maxDate: Qe().subtract(15, "year")
|
|
1252
1249
|
}
|
|
1253
|
-
) }) }),
|
|
1250
|
+
) }) }) }),
|
|
1254
1251
|
/* @__PURE__ */ i(
|
|
1255
1252
|
x,
|
|
1256
1253
|
{
|
|
@@ -1298,7 +1295,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1298
1295
|
control: /* @__PURE__ */ i(
|
|
1299
1296
|
ue,
|
|
1300
1297
|
{
|
|
1301
|
-
disabled: !G.isBahaar &&
|
|
1298
|
+
disabled: !G.isBahaar && R("title") && R("title") !== "Dr" || S && G.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"])
|
|
1302
1299
|
}
|
|
1303
1300
|
),
|
|
1304
1301
|
label: "Female",
|
|
@@ -1317,7 +1314,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1317
1314
|
control: /* @__PURE__ */ i(
|
|
1318
1315
|
ue,
|
|
1319
1316
|
{
|
|
1320
|
-
disabled: !G.isBahaar &&
|
|
1317
|
+
disabled: !G.isBahaar && R("title") && R("title") !== "Dr" || S && G.isTecho && !(c != null && c["update.manage.users.canManageUsersBasicInformation"])
|
|
1321
1318
|
}
|
|
1322
1319
|
),
|
|
1323
1320
|
label: "Other",
|
|
@@ -1345,7 +1342,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1345
1342
|
name: "joiningDate",
|
|
1346
1343
|
errors: E,
|
|
1347
1344
|
format: "DD/MM/YYYY",
|
|
1348
|
-
minDate:
|
|
1345
|
+
minDate: R("dateOfBirth") ? Qe(R("dateOfBirth")) : Qe("2000-01-01"),
|
|
1349
1346
|
maxDate: Qe()
|
|
1350
1347
|
}
|
|
1351
1348
|
) }) }) }),
|
|
@@ -1487,7 +1484,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1487
1484
|
/* @__PURE__ */ i($, { children: /* @__PURE__ */ i(
|
|
1488
1485
|
ki,
|
|
1489
1486
|
{
|
|
1490
|
-
password:
|
|
1487
|
+
password: R("password"),
|
|
1491
1488
|
"data-testid": "password-strength-bar"
|
|
1492
1489
|
}
|
|
1493
1490
|
) })
|
|
@@ -1786,13 +1783,13 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1786
1783
|
)
|
|
1787
1784
|
}
|
|
1788
1785
|
) }),
|
|
1789
|
-
(
|
|
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(
|
|
1790
1787
|
se,
|
|
1791
1788
|
{
|
|
1792
1789
|
control: m,
|
|
1793
1790
|
id: "loginCode",
|
|
1794
1791
|
name: "loginCode",
|
|
1795
|
-
value:
|
|
1792
|
+
value: C.loginCode,
|
|
1796
1793
|
errors: E,
|
|
1797
1794
|
InputProps: {
|
|
1798
1795
|
readOnly: !0
|
|
@@ -1968,7 +1965,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
1968
1965
|
/* @__PURE__ */ i(
|
|
1969
1966
|
ca,
|
|
1970
1967
|
{
|
|
1971
|
-
ref:
|
|
1968
|
+
ref: T,
|
|
1972
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`,
|
|
1973
1970
|
children: K && K.length > 0 ? K.map((s, j) => /* @__PURE__ */ i(
|
|
1974
1971
|
oi,
|
|
@@ -2025,7 +2022,7 @@ const ki = /* @__PURE__ */ mi(yi), fi = Ca(() => import("./ChangePasswordModalCo
|
|
|
2025
2022
|
)
|
|
2026
2023
|
] }) })
|
|
2027
2024
|
] }),
|
|
2028
|
-
G.isEkavach &&
|
|
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(
|
|
2029
2026
|
ua,
|
|
2030
2027
|
{
|
|
2031
2028
|
name: "typeOfUser",
|
|
@@ -2185,4 +2182,4 @@ export {
|
|
|
2185
2182
|
va as P,
|
|
2186
2183
|
ki as a
|
|
2187
2184
|
};
|
|
2188
|
-
//# sourceMappingURL=ManageUser-
|
|
2185
|
+
//# sourceMappingURL=ManageUser-eBS0yC5k.js.map
|