@argusoft/medplat-duplicate-member-data 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DuplicateMemberData-C4MSJxcL.js +1909 -0
- package/dist/DuplicateMemberData-C4MSJxcL.js.map +1 -0
- package/dist/DuplicateMemberDataAnalysis-DgMkbQvu.js +611 -0
- package/dist/DuplicateMemberDataAnalysis-DgMkbQvu.js.map +1 -0
- package/dist/DuplicateProbablesManualReport-8odf91cO.js +847 -0
- package/dist/DuplicateProbablesManualReport-8odf91cO.js.map +1 -0
- package/dist/FilterForm-CfFGDfyP.js +117 -0
- package/dist/FilterForm-CfFGDfyP.js.map +1 -0
- package/dist/ManualDuplicateEntryModal-CLECgPAF.js +195 -0
- package/dist/ManualDuplicateEntryModal-CLECgPAF.js.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/package.json +55 -4
- package/README.md +0 -3
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
import { Suspense, lazy, useEffect, useMemo, useRef, useState } from "react";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useSelector } from "react-redux";
|
|
4
|
+
import { useNavigate } from "react-router-dom";
|
|
5
|
+
import Grid from "@mui/material/Grid2";
|
|
6
|
+
import { FormProvider, useForm } from "react-hook-form";
|
|
7
|
+
import { Box, Button, CircularProgress, IconButton, MenuItem, Select, TextField, Typography } from "@mui/material";
|
|
8
|
+
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
|
|
9
|
+
import { execute } from "@/common/services/QueryBuilder";
|
|
10
|
+
import SideOverlay from "@/views/custom-components/SideOverlay";
|
|
11
|
+
import PropTypes from "prop-types";
|
|
12
|
+
import { getAssignedFeatures } from "@/utils/feature";
|
|
13
|
+
import GeneralUtil from "@/common/services/util/GeneralUtil";
|
|
14
|
+
import { appDayjs, appNow } from "@/utils/appTime";
|
|
15
|
+
import { useTranslateProvider } from "@/common/languageTranslator/TranslationContext";
|
|
16
|
+
import { Bar, BarChart, CartesianGrid, Legend, Line, LineChart, ResponsiveContainer, Tooltip as Tooltip$1, XAxis, YAxis } from "recharts";
|
|
17
|
+
var LocationSelectionComponent = lazy(() => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")), MAX_AXIS_LABEL_CHARS = 12, NameAxisTick = ({ x: e, y: r, payload: i }) => {
|
|
18
|
+
let a = i?.value ?? "", o = a.length > MAX_AXIS_LABEL_CHARS ? `${a.slice(0, MAX_AXIS_LABEL_CHARS - 1)}…` : a;
|
|
19
|
+
return /* @__PURE__ */ jsx("g", {
|
|
20
|
+
transform: `translate(${e},${r})`,
|
|
21
|
+
children: /* @__PURE__ */ jsxs("text", {
|
|
22
|
+
x: 0,
|
|
23
|
+
y: 0,
|
|
24
|
+
dy: 14,
|
|
25
|
+
textAnchor: "middle",
|
|
26
|
+
fontSize: 11,
|
|
27
|
+
fill: "#64748b",
|
|
28
|
+
style: { cursor: "default" },
|
|
29
|
+
children: [o, /* @__PURE__ */ jsx("title", { children: a })]
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
NameAxisTick.propTypes = {
|
|
34
|
+
x: PropTypes.number,
|
|
35
|
+
y: PropTypes.number,
|
|
36
|
+
payload: PropTypes.shape({ value: PropTypes.string })
|
|
37
|
+
};
|
|
38
|
+
function DuplicateMemberDataAnalysis() {
|
|
39
|
+
let r = useNavigate(), { translate: l } = useTranslateProvider(), { user: u } = useSelector((e) => e.Authenticate), [d, f] = useState("sevenDays"), [p, m] = useState(""), [h, g] = useState(""), [_, v] = useState(!1), [y, b] = useState(!1), [x, S] = useState(!1), [C, w] = useState(!1), [T, E] = useState([]), [D, O] = useState([]), [k, A] = useState([]), [j, M] = useState([]), [N, P] = useState(!1), [Ne, Pe] = useState(""), [F, I] = useState(null), [L, R] = useState({}), z = useRef({}), [B, V] = useState([]), [H, U] = useState(void 0), W = useForm(), [G, K] = useState(null), q = async () => {
|
|
40
|
+
try {
|
|
41
|
+
let { data: e } = await getAssignedFeatures("techo.manage.duplicateMemberData"), r = JSON.parse(e);
|
|
42
|
+
r && K(r);
|
|
43
|
+
} catch (e) {
|
|
44
|
+
console.error(e);
|
|
45
|
+
}
|
|
46
|
+
}, J = async (e) => {
|
|
47
|
+
let r = e || d;
|
|
48
|
+
f(r);
|
|
49
|
+
let i = appNow().startOf("day"), a, o = i.add(1, "day");
|
|
50
|
+
if (r === "sevenDays") a = i.subtract(7, "day");
|
|
51
|
+
else if (r === "thirtyDays") a = i.subtract(30, "day");
|
|
52
|
+
else if (r === "custom") {
|
|
53
|
+
if (!p || !h) return;
|
|
54
|
+
a = appDayjs(p).startOf("day"), o = appDayjs(h).startOf("day").add(1, "day");
|
|
55
|
+
}
|
|
56
|
+
if (!a) return;
|
|
57
|
+
let s = appDayjs(a).format("YYYY-MM-DD"), c = appDayjs(o).format("YYYY-MM-DD");
|
|
58
|
+
v(!0), b(!0), S(!0), w(!0);
|
|
59
|
+
try {
|
|
60
|
+
let e = F || null;
|
|
61
|
+
execute({
|
|
62
|
+
code: "retrieve_last_day_duplicates_creation_and_resolution",
|
|
63
|
+
parameters: {
|
|
64
|
+
startDate: s,
|
|
65
|
+
endDate: c,
|
|
66
|
+
locationId: e
|
|
67
|
+
}
|
|
68
|
+
}).then((e) => {
|
|
69
|
+
let r = e.data?.result?.map((e) => ({
|
|
70
|
+
date: e.formatted_date,
|
|
71
|
+
identified: e.count_duplicates,
|
|
72
|
+
resolved: e.duplicates_resolved
|
|
73
|
+
}));
|
|
74
|
+
E(r || []), v(!1);
|
|
75
|
+
}), execute({
|
|
76
|
+
code: "top_five_users_creating_duplicates",
|
|
77
|
+
parameters: {
|
|
78
|
+
startDate: s,
|
|
79
|
+
endDate: c,
|
|
80
|
+
locationId: e
|
|
81
|
+
}
|
|
82
|
+
}).then((e) => {
|
|
83
|
+
let r = e.data?.result?.map((e) => ({
|
|
84
|
+
name: e.asha_name,
|
|
85
|
+
count: e.total_members
|
|
86
|
+
}));
|
|
87
|
+
O(r || []), b(!1);
|
|
88
|
+
}), execute({
|
|
89
|
+
code: "top_five_users_resolving_duplicates",
|
|
90
|
+
parameters: {
|
|
91
|
+
startDate: s,
|
|
92
|
+
endDate: c,
|
|
93
|
+
locationId: e
|
|
94
|
+
}
|
|
95
|
+
}).then((e) => {
|
|
96
|
+
let r = e.data?.result?.map((e) => ({
|
|
97
|
+
name: e.asha_name,
|
|
98
|
+
count: e.total_members
|
|
99
|
+
}));
|
|
100
|
+
A(r || []), S(!1);
|
|
101
|
+
}), execute({
|
|
102
|
+
code: "top_five_locations_for_creating_duplicates",
|
|
103
|
+
parameters: {
|
|
104
|
+
startDate: s,
|
|
105
|
+
endDate: c,
|
|
106
|
+
locationId: e
|
|
107
|
+
}
|
|
108
|
+
}).then((e) => {
|
|
109
|
+
let r = e.data?.result?.map((e) => ({
|
|
110
|
+
name: e.location_name,
|
|
111
|
+
hierarchy: e.location_hierarchy,
|
|
112
|
+
count: e.total_duplicates
|
|
113
|
+
}));
|
|
114
|
+
M(r || []), w(!1);
|
|
115
|
+
});
|
|
116
|
+
} catch (e) {
|
|
117
|
+
console.error("Dashboard API Error", e);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
useEffect(() => {
|
|
121
|
+
u && (J("sevenDays"), q());
|
|
122
|
+
}, [u]), useEffect(() => {
|
|
123
|
+
d === "custom" && p && h && J("custom");
|
|
124
|
+
}, [
|
|
125
|
+
p,
|
|
126
|
+
h,
|
|
127
|
+
d
|
|
128
|
+
]);
|
|
129
|
+
let Y = ({ title: e, isLoading: r, hasData: i, children: a, iconClass: o, emptyMessage: s }) => /* @__PURE__ */ jsxs(Box, {
|
|
130
|
+
className: "bg-white p-4 rounded-xl shadow-sm border border-gray-100 flex flex-col relative h-[350px]",
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
133
|
+
variant: "h6",
|
|
134
|
+
className: "font-bold text-gray-800 mb-4",
|
|
135
|
+
children: e
|
|
136
|
+
}),
|
|
137
|
+
r && /* @__PURE__ */ jsx(Box, {
|
|
138
|
+
className: "flex-1 flex justify-center items-center absolute inset-0 bg-white/70 z-10 rounded-xl",
|
|
139
|
+
children: /* @__PURE__ */ jsx(CircularProgress, { size: 30 })
|
|
140
|
+
}),
|
|
141
|
+
i ? /* @__PURE__ */ jsx(Box, {
|
|
142
|
+
className: "flex-1 min-h-0",
|
|
143
|
+
children: a
|
|
144
|
+
}) : !r && /* @__PURE__ */ jsxs(Box, {
|
|
145
|
+
className: "flex-1 flex flex-col justify-center items-center text-gray-400",
|
|
146
|
+
children: [
|
|
147
|
+
o,
|
|
148
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
149
|
+
variant: "h6",
|
|
150
|
+
className: "mt-2 text-gray-500",
|
|
151
|
+
children: "No Data Found"
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
154
|
+
variant: "caption",
|
|
155
|
+
className: "text-gray-400",
|
|
156
|
+
children: s
|
|
157
|
+
})
|
|
158
|
+
]
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
}), X = () => {
|
|
162
|
+
I(L?.finalSelected?.optionSelected?.id || null), P(!1);
|
|
163
|
+
}, Z = () => {
|
|
164
|
+
I(null), U(Date.now()), R({}), z.current = {}, W.reset(), P(!1);
|
|
165
|
+
}, Q = /* @__PURE__ */ jsx(FormProvider, {
|
|
166
|
+
...W,
|
|
167
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
168
|
+
className: "p-4",
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
171
|
+
variant: "subtitle2",
|
|
172
|
+
fontWeight: "bold",
|
|
173
|
+
className: "mb-3",
|
|
174
|
+
children: "Search By: Organization Unit"
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ jsx(Suspense, {
|
|
177
|
+
fallback: /* @__PURE__ */ jsx(CircularProgress, { size: 20 }),
|
|
178
|
+
children: /* @__PURE__ */ jsx(LocationSelectionComponent, {
|
|
179
|
+
selectedLocation: L,
|
|
180
|
+
setSelectedLocation: R,
|
|
181
|
+
selectedLocationRef: z,
|
|
182
|
+
locations: B,
|
|
183
|
+
setLocations: V,
|
|
184
|
+
templateType: "inline",
|
|
185
|
+
fetchAccordingToUserAoi: !0,
|
|
186
|
+
requiredUptoLevel: 1,
|
|
187
|
+
fetchUptoLevel: 6,
|
|
188
|
+
childForm: !0,
|
|
189
|
+
triggerFirstRun: H
|
|
190
|
+
})
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ jsxs(Box, {
|
|
193
|
+
className: "flex gap-2 justify-end mt-4",
|
|
194
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
195
|
+
variant: "outlined",
|
|
196
|
+
color: "error",
|
|
197
|
+
onClick: Z,
|
|
198
|
+
children: "Clear"
|
|
199
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
200
|
+
variant: "contained",
|
|
201
|
+
color: "primary",
|
|
202
|
+
onClick: X,
|
|
203
|
+
children: "Search"
|
|
204
|
+
})]
|
|
205
|
+
})
|
|
206
|
+
]
|
|
207
|
+
})
|
|
208
|
+
});
|
|
209
|
+
useEffect(() => {
|
|
210
|
+
u && J();
|
|
211
|
+
}, [F]);
|
|
212
|
+
let $ = useMemo(() => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
213
|
+
/* @__PURE__ */ jsx(Grid, {
|
|
214
|
+
container: !0,
|
|
215
|
+
spacing: 4,
|
|
216
|
+
className: "mb-6",
|
|
217
|
+
children: /* @__PURE__ */ jsx(Grid, {
|
|
218
|
+
size: { xs: 12 },
|
|
219
|
+
children: /* @__PURE__ */ jsx(Y, {
|
|
220
|
+
title: "Duplicate Trend",
|
|
221
|
+
isLoading: _,
|
|
222
|
+
hasData: T.length > 0,
|
|
223
|
+
emptyMessage: "No duplicate trend data available for this period",
|
|
224
|
+
children: /* @__PURE__ */ jsx(ResponsiveContainer, {
|
|
225
|
+
width: "100%",
|
|
226
|
+
height: "100%",
|
|
227
|
+
children: /* @__PURE__ */ jsxs(LineChart, {
|
|
228
|
+
data: T,
|
|
229
|
+
margin: {
|
|
230
|
+
top: 10,
|
|
231
|
+
right: 30,
|
|
232
|
+
left: 0,
|
|
233
|
+
bottom: 0
|
|
234
|
+
},
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ jsx(CartesianGrid, {
|
|
237
|
+
strokeDasharray: "3 3",
|
|
238
|
+
vertical: !1,
|
|
239
|
+
stroke: "#e2e8f0"
|
|
240
|
+
}),
|
|
241
|
+
/* @__PURE__ */ jsx(XAxis, {
|
|
242
|
+
dataKey: "date",
|
|
243
|
+
tick: { fontSize: 12 },
|
|
244
|
+
axisLine: !1,
|
|
245
|
+
tickLine: !1
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ jsx(YAxis, {
|
|
248
|
+
tick: { fontSize: 12 },
|
|
249
|
+
axisLine: !1,
|
|
250
|
+
tickLine: !1
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ jsx(Tooltip$1, {}),
|
|
253
|
+
/* @__PURE__ */ jsx(Legend, {
|
|
254
|
+
verticalAlign: "top",
|
|
255
|
+
height: 36
|
|
256
|
+
}),
|
|
257
|
+
/* @__PURE__ */ jsx(Line, {
|
|
258
|
+
type: "monotone",
|
|
259
|
+
dataKey: "identified",
|
|
260
|
+
name: "Identified",
|
|
261
|
+
stroke: "#EF4444",
|
|
262
|
+
strokeWidth: 2,
|
|
263
|
+
dot: {
|
|
264
|
+
r: 4,
|
|
265
|
+
fill: "#EF4444"
|
|
266
|
+
},
|
|
267
|
+
activeDot: { r: 6 }
|
|
268
|
+
}),
|
|
269
|
+
/* @__PURE__ */ jsx(Line, {
|
|
270
|
+
type: "monotone",
|
|
271
|
+
dataKey: "resolved",
|
|
272
|
+
name: "Resolved",
|
|
273
|
+
stroke: "#10B981",
|
|
274
|
+
strokeWidth: 2,
|
|
275
|
+
dot: {
|
|
276
|
+
r: 4,
|
|
277
|
+
fill: "#10B981"
|
|
278
|
+
},
|
|
279
|
+
activeDot: { r: 6 }
|
|
280
|
+
})
|
|
281
|
+
]
|
|
282
|
+
})
|
|
283
|
+
})
|
|
284
|
+
})
|
|
285
|
+
})
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ jsxs(Grid, {
|
|
288
|
+
container: !0,
|
|
289
|
+
spacing: 4,
|
|
290
|
+
className: "mb-6",
|
|
291
|
+
children: [/* @__PURE__ */ jsx(Grid, {
|
|
292
|
+
size: {
|
|
293
|
+
xs: 12,
|
|
294
|
+
md: 6
|
|
295
|
+
},
|
|
296
|
+
children: /* @__PURE__ */ jsx(Y, {
|
|
297
|
+
title: "Top 5 Users Creating Duplicates",
|
|
298
|
+
isLoading: y,
|
|
299
|
+
hasData: D.length > 0,
|
|
300
|
+
emptyMessage: "No data available for users creating duplicates",
|
|
301
|
+
children: /* @__PURE__ */ jsx(ResponsiveContainer, {
|
|
302
|
+
width: "100%",
|
|
303
|
+
height: "100%",
|
|
304
|
+
children: /* @__PURE__ */ jsxs(BarChart, {
|
|
305
|
+
data: D,
|
|
306
|
+
margin: {
|
|
307
|
+
top: 20,
|
|
308
|
+
right: 30,
|
|
309
|
+
left: 0,
|
|
310
|
+
bottom: 10
|
|
311
|
+
},
|
|
312
|
+
children: [
|
|
313
|
+
/* @__PURE__ */ jsx(CartesianGrid, {
|
|
314
|
+
strokeDasharray: "3 3",
|
|
315
|
+
vertical: !1,
|
|
316
|
+
stroke: "#e2e8f0"
|
|
317
|
+
}),
|
|
318
|
+
/* @__PURE__ */ jsx(XAxis, {
|
|
319
|
+
dataKey: "name",
|
|
320
|
+
tick: /* @__PURE__ */ jsx(NameAxisTick, {}),
|
|
321
|
+
interval: 0,
|
|
322
|
+
height: 40
|
|
323
|
+
}),
|
|
324
|
+
/* @__PURE__ */ jsx(YAxis, {
|
|
325
|
+
tick: { fontSize: 12 },
|
|
326
|
+
axisLine: !1,
|
|
327
|
+
tickLine: !1
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ jsx(Tooltip$1, { cursor: { fill: "#f1f5f9" } }),
|
|
330
|
+
/* @__PURE__ */ jsx(Bar, {
|
|
331
|
+
dataKey: "count",
|
|
332
|
+
name: "Duplicates Created",
|
|
333
|
+
fill: "#FCA5A5",
|
|
334
|
+
radius: [
|
|
335
|
+
4,
|
|
336
|
+
4,
|
|
337
|
+
0,
|
|
338
|
+
0
|
|
339
|
+
],
|
|
340
|
+
maxBarSize: 50
|
|
341
|
+
})
|
|
342
|
+
]
|
|
343
|
+
})
|
|
344
|
+
})
|
|
345
|
+
})
|
|
346
|
+
}), /* @__PURE__ */ jsx(Grid, {
|
|
347
|
+
size: {
|
|
348
|
+
xs: 12,
|
|
349
|
+
md: 6
|
|
350
|
+
},
|
|
351
|
+
children: /* @__PURE__ */ jsx(Y, {
|
|
352
|
+
title: "Top 5 Users Resolving Duplicates",
|
|
353
|
+
isLoading: x,
|
|
354
|
+
hasData: k.length > 0,
|
|
355
|
+
emptyMessage: "No data available for users resolving duplicates",
|
|
356
|
+
children: /* @__PURE__ */ jsx(ResponsiveContainer, {
|
|
357
|
+
width: "100%",
|
|
358
|
+
height: "100%",
|
|
359
|
+
children: /* @__PURE__ */ jsxs(BarChart, {
|
|
360
|
+
data: k,
|
|
361
|
+
margin: {
|
|
362
|
+
top: 20,
|
|
363
|
+
right: 30,
|
|
364
|
+
left: 0,
|
|
365
|
+
bottom: 10
|
|
366
|
+
},
|
|
367
|
+
children: [
|
|
368
|
+
/* @__PURE__ */ jsx(CartesianGrid, {
|
|
369
|
+
strokeDasharray: "3 3",
|
|
370
|
+
vertical: !1,
|
|
371
|
+
stroke: "#e2e8f0"
|
|
372
|
+
}),
|
|
373
|
+
/* @__PURE__ */ jsx(XAxis, {
|
|
374
|
+
dataKey: "name",
|
|
375
|
+
tick: /* @__PURE__ */ jsx(NameAxisTick, {}),
|
|
376
|
+
interval: 0,
|
|
377
|
+
height: 40
|
|
378
|
+
}),
|
|
379
|
+
/* @__PURE__ */ jsx(YAxis, {
|
|
380
|
+
tick: { fontSize: 12 },
|
|
381
|
+
axisLine: !1,
|
|
382
|
+
tickLine: !1
|
|
383
|
+
}),
|
|
384
|
+
/* @__PURE__ */ jsx(Tooltip$1, { cursor: { fill: "#f1f5f9" } }),
|
|
385
|
+
/* @__PURE__ */ jsx(Bar, {
|
|
386
|
+
dataKey: "count",
|
|
387
|
+
name: "Resolved Count",
|
|
388
|
+
fill: "#6EE7B7",
|
|
389
|
+
radius: [
|
|
390
|
+
4,
|
|
391
|
+
4,
|
|
392
|
+
0,
|
|
393
|
+
0
|
|
394
|
+
],
|
|
395
|
+
maxBarSize: 50
|
|
396
|
+
})
|
|
397
|
+
]
|
|
398
|
+
})
|
|
399
|
+
})
|
|
400
|
+
})
|
|
401
|
+
})]
|
|
402
|
+
}),
|
|
403
|
+
/* @__PURE__ */ jsx(Grid, {
|
|
404
|
+
container: !0,
|
|
405
|
+
spacing: 4,
|
|
406
|
+
className: "mb-6",
|
|
407
|
+
children: /* @__PURE__ */ jsx(Grid, {
|
|
408
|
+
size: { xs: 12 },
|
|
409
|
+
children: /* @__PURE__ */ jsx(Y, {
|
|
410
|
+
title: "Top 5 Locations (Most Duplicates Identified)",
|
|
411
|
+
isLoading: C,
|
|
412
|
+
hasData: j.length > 0,
|
|
413
|
+
emptyMessage: "No location data available for this period",
|
|
414
|
+
children: /* @__PURE__ */ jsx(ResponsiveContainer, {
|
|
415
|
+
width: "100%",
|
|
416
|
+
height: "100%",
|
|
417
|
+
children: /* @__PURE__ */ jsxs(BarChart, {
|
|
418
|
+
data: j,
|
|
419
|
+
layout: "vertical",
|
|
420
|
+
margin: {
|
|
421
|
+
top: 20,
|
|
422
|
+
right: 30,
|
|
423
|
+
left: 100,
|
|
424
|
+
bottom: 0
|
|
425
|
+
},
|
|
426
|
+
children: [
|
|
427
|
+
/* @__PURE__ */ jsx(CartesianGrid, {
|
|
428
|
+
strokeDasharray: "3 3",
|
|
429
|
+
horizontal: !1,
|
|
430
|
+
stroke: "#e2e8f0"
|
|
431
|
+
}),
|
|
432
|
+
/* @__PURE__ */ jsx(XAxis, {
|
|
433
|
+
type: "number",
|
|
434
|
+
tick: { fontSize: 12 },
|
|
435
|
+
axisLine: !1,
|
|
436
|
+
tickLine: !1
|
|
437
|
+
}),
|
|
438
|
+
/* @__PURE__ */ jsx(YAxis, {
|
|
439
|
+
dataKey: "name",
|
|
440
|
+
type: "category",
|
|
441
|
+
tick: { fontSize: 12 },
|
|
442
|
+
width: 120,
|
|
443
|
+
axisLine: !1,
|
|
444
|
+
tickLine: !1
|
|
445
|
+
}),
|
|
446
|
+
/* @__PURE__ */ jsx(Tooltip$1, {
|
|
447
|
+
cursor: { fill: "#f1f5f9" },
|
|
448
|
+
formatter: (e) => [`Duplicates: ${e}`, "Duplicates Found"],
|
|
449
|
+
labelFormatter: (e, r) => r[0]?.payload?.hierarchy || e
|
|
450
|
+
}),
|
|
451
|
+
/* @__PURE__ */ jsx(Bar, {
|
|
452
|
+
dataKey: "count",
|
|
453
|
+
name: "Duplicates Found",
|
|
454
|
+
fill: "#3B82F6",
|
|
455
|
+
radius: [
|
|
456
|
+
0,
|
|
457
|
+
4,
|
|
458
|
+
4,
|
|
459
|
+
0
|
|
460
|
+
],
|
|
461
|
+
maxBarSize: 40
|
|
462
|
+
})
|
|
463
|
+
]
|
|
464
|
+
})
|
|
465
|
+
})
|
|
466
|
+
})
|
|
467
|
+
})
|
|
468
|
+
})
|
|
469
|
+
] }), [
|
|
470
|
+
T,
|
|
471
|
+
D,
|
|
472
|
+
k,
|
|
473
|
+
j,
|
|
474
|
+
_,
|
|
475
|
+
y,
|
|
476
|
+
x,
|
|
477
|
+
C
|
|
478
|
+
]);
|
|
479
|
+
return G !== null && !GeneralUtil.hasCheckRights(G?.["view.manage.duplicateMemberData"]) ? /* @__PURE__ */ jsx(Box, {
|
|
480
|
+
className: "flex justify-center items-center w-full h-[80vh]",
|
|
481
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
482
|
+
className: "h-80 w-150 flex justify-center items-center border rounded",
|
|
483
|
+
style: { borderColor: "var(--color-gray3)" },
|
|
484
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
485
|
+
variant: "h5",
|
|
486
|
+
className: "text-customBlue",
|
|
487
|
+
children: "You dont have permission to view Duplicate Member Data Analysis"
|
|
488
|
+
})
|
|
489
|
+
})
|
|
490
|
+
}) : /* @__PURE__ */ jsxs(Grid, {
|
|
491
|
+
className: "w-[99%] mt-6 px-4 bg-gray-50/50 min-h-screen",
|
|
492
|
+
children: [
|
|
493
|
+
/* @__PURE__ */ jsxs(Grid, {
|
|
494
|
+
container: !0,
|
|
495
|
+
justifyContent: "space-between",
|
|
496
|
+
alignItems: "center",
|
|
497
|
+
className: "mb-6",
|
|
498
|
+
children: [/* @__PURE__ */ jsxs(Box, {
|
|
499
|
+
sx: {
|
|
500
|
+
display: "flex",
|
|
501
|
+
alignItems: "center",
|
|
502
|
+
gap: 1.5
|
|
503
|
+
},
|
|
504
|
+
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
505
|
+
onClick: () => r("/ui/medplat/manage/duplicateMemberData"),
|
|
506
|
+
size: "small",
|
|
507
|
+
sx: {
|
|
508
|
+
border: "1px solid var(--color-gray3)",
|
|
509
|
+
borderRadius: 1.5,
|
|
510
|
+
bgcolor: "white",
|
|
511
|
+
width: 32,
|
|
512
|
+
height: 32,
|
|
513
|
+
transition: "all 0.2s ease-in-out",
|
|
514
|
+
"&:hover": {
|
|
515
|
+
bgcolor: "var(--color-gray4)",
|
|
516
|
+
borderColor: "var(--color-gray1)",
|
|
517
|
+
transform: "translateX(-2px)",
|
|
518
|
+
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.05)"
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
children: /* @__PURE__ */ jsx(ArrowBackIcon, { sx: {
|
|
522
|
+
fontSize: 18,
|
|
523
|
+
color: "var(--color-gray1)"
|
|
524
|
+
} })
|
|
525
|
+
}), /* @__PURE__ */ jsxs(Box, { children: [/* @__PURE__ */ jsx(Typography, {
|
|
526
|
+
variant: "h5",
|
|
527
|
+
className: "font-bold text-gray-900",
|
|
528
|
+
children: "Duplicate Data Analysis"
|
|
529
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
530
|
+
variant: "caption",
|
|
531
|
+
className: "text-gray-500",
|
|
532
|
+
children: "Monitoring data integrity across the system"
|
|
533
|
+
})] })]
|
|
534
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
535
|
+
className: "bg-white p-3 rounded-lg shadow-sm border border-gray-200 flex gap-4 items-end",
|
|
536
|
+
children: [/* @__PURE__ */ jsxs(Box, {
|
|
537
|
+
className: "flex flex-col",
|
|
538
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
539
|
+
variant: "caption",
|
|
540
|
+
className: "font-bold text-gray-400 uppercase tracking-wide",
|
|
541
|
+
children: "Time Period"
|
|
542
|
+
}), /* @__PURE__ */ jsxs(Select, {
|
|
543
|
+
value: d,
|
|
544
|
+
onChange: (e) => {
|
|
545
|
+
let r = e.target.value;
|
|
546
|
+
f(r), r !== "custom" && J(r);
|
|
547
|
+
},
|
|
548
|
+
size: "small",
|
|
549
|
+
className: "min-w-[160px] font-bold",
|
|
550
|
+
children: [
|
|
551
|
+
/* @__PURE__ */ jsx(MenuItem, {
|
|
552
|
+
value: "sevenDays",
|
|
553
|
+
children: "Last 7 Days"
|
|
554
|
+
}),
|
|
555
|
+
/* @__PURE__ */ jsx(MenuItem, {
|
|
556
|
+
value: "thirtyDays",
|
|
557
|
+
children: "Last 30 Days"
|
|
558
|
+
}),
|
|
559
|
+
/* @__PURE__ */ jsx(MenuItem, {
|
|
560
|
+
value: "custom",
|
|
561
|
+
children: "Custom Range"
|
|
562
|
+
})
|
|
563
|
+
]
|
|
564
|
+
})]
|
|
565
|
+
}), d === "custom" && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Box, {
|
|
566
|
+
className: "flex flex-col",
|
|
567
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
568
|
+
variant: "caption",
|
|
569
|
+
className: "font-bold text-gray-400 uppercase tracking-wide",
|
|
570
|
+
children: "Start Date"
|
|
571
|
+
}), /* @__PURE__ */ jsx(TextField, {
|
|
572
|
+
type: "date",
|
|
573
|
+
size: "small",
|
|
574
|
+
value: p,
|
|
575
|
+
onChange: (e) => {
|
|
576
|
+
m(e.target.value);
|
|
577
|
+
}
|
|
578
|
+
})]
|
|
579
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
580
|
+
className: "flex flex-col",
|
|
581
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
582
|
+
variant: "caption",
|
|
583
|
+
className: "font-bold text-gray-400 uppercase tracking-wide",
|
|
584
|
+
children: "End Date"
|
|
585
|
+
}), /* @__PURE__ */ jsx(TextField, {
|
|
586
|
+
type: "date",
|
|
587
|
+
size: "small",
|
|
588
|
+
value: h,
|
|
589
|
+
onChange: (e) => {
|
|
590
|
+
g(e.target.value);
|
|
591
|
+
}
|
|
592
|
+
})]
|
|
593
|
+
})] })]
|
|
594
|
+
})]
|
|
595
|
+
}),
|
|
596
|
+
$,
|
|
597
|
+
/* @__PURE__ */ jsx(SideOverlay, {
|
|
598
|
+
title: "Search by Location",
|
|
599
|
+
FormBody: Q,
|
|
600
|
+
isForm: !1,
|
|
601
|
+
handleOverlayState: () => P((e) => !e),
|
|
602
|
+
overlayOpen: N,
|
|
603
|
+
dataTestId: "analysis-search-overlay",
|
|
604
|
+
ModalProps: { keepMounted: !0 }
|
|
605
|
+
})
|
|
606
|
+
]
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
export { DuplicateMemberDataAnalysis as default };
|
|
610
|
+
|
|
611
|
+
//# sourceMappingURL=DuplicateMemberDataAnalysis-DgMkbQvu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DuplicateMemberDataAnalysis-DgMkbQvu.js","names":[],"sources":["../src/views/DuplicateMemberDataAnalysis/DuplicateMemberDataAnalysis.jsx"],"sourcesContent":["import React, { useState, useEffect, useMemo, useRef, lazy, Suspense } from 'react';\nimport { useSelector } from 'react-redux';\nimport { Typography, Select, MenuItem, TextField, Button, Box, CircularProgress, IconButton } from '@mui/material';\nimport { useNavigate } from 'react-router-dom';\nimport ArrowBackIcon from '@mui/icons-material/ArrowBack';\nimport Grid from '@mui/material/Grid2';\nimport SideOverlay from '@/views/custom-components/SideOverlay';\nimport { FormProvider, useForm } from 'react-hook-form';\nconst LocationSelectionComponent = lazy(\n () => import('@/views/feature-components/LocationDirective/LocationDirectiveV2')\n);\nimport { useTranslateProvider } from '@/common/languageTranslator/TranslationContext';\nimport { execute } from '@/common/services/QueryBuilder';\nimport {\n LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer,\n BarChart, Bar\n} from 'recharts';\nimport { appDayjs, appNow } from '@/utils/appTime';\nimport PropTypes from 'prop-types';\nimport { getAssignedFeatures } from '@/utils/feature';\nimport GeneralUtil from '@/common/services/util/GeneralUtil';\n\n// Longest label the x-axis shows before truncating with an ellipsis. Names are\n// dynamic (unknown length), so we cap the visible width and expose the full\n// value on hover instead of letting long names overflow / get clipped.\nconst MAX_AXIS_LABEL_CHARS = 12;\n\n/**\n * Custom x-axis tick for the user bar charts: renders the (possibly long,\n * dynamic) name on a single straight line, truncates it with an ellipsis, and\n * shows the full name as a native tooltip (SVG <title>) when the user hovers\n * the label.\n */\nconst NameAxisTick = ({ x, y, payload }) => {\n const fullName = payload?.value ?? '';\n const label =\n fullName.length > MAX_AXIS_LABEL_CHARS ? `${fullName.slice(0, MAX_AXIS_LABEL_CHARS - 1)}…` : fullName;\n return (\n <g transform={`translate(${x},${y})`}>\n <text x={0} y={0} dy={14} textAnchor=\"middle\" fontSize={11} fill=\"#64748b\" style={{ cursor: 'default' }}>\n {label}\n <title>{fullName}</title>\n </text>\n </g>\n );\n};\n\nNameAxisTick.propTypes = {\n x: PropTypes.number,\n y: PropTypes.number,\n payload: PropTypes.shape({ value: PropTypes.string }),\n};\n\nexport default function DuplicateMemberDataAnalysis() {\n const navigate = useNavigate();\n const { translate } = useTranslateProvider();\n const { user } = useSelector((state) => state.Authenticate);\n\n const [activeTimeRange, setActiveTimeRange] = useState('sevenDays');\n const [customStartDate, setCustomStartDate] = useState('');\n const [customEndDate, setCustomEndDate] = useState('');\n\n // Loading states\n const [loadingTrend, setLoadingTrend] = useState(false);\n const [loadingTopCreating, setLoadingTopCreating] = useState(false);\n const [loadingTopResolving, setLoadingTopResolving] = useState(false);\n const [loadingTopLocations, setLoadingTopLocations] = useState(false);\n\n // Data states\n const [trendData, setTrendData] = useState([]);\n const [topCreatingData, setTopCreatingData] = useState([]);\n const [topResolvingData, setTopResolvingData] = useState([]);\n const [topLocationsData, setTopLocationsData] = useState([]);\n\n // Search filter state\n const [filterOpen, setFilterOpen] = useState(false);\n const [filterLocationId, setFilterLocationId] = useState('');\n const [activeLocationId, setActiveLocationId] = useState(null);\n\n // Location directive state\n const [selectedLocation, setSelectedLocation] = useState({});\n const selectedLocationRef = useRef({});\n const [locations, setLocations] = useState([]);\n const [resetKey, setResetKey] = useState(undefined);\n const filterMethods = useForm();\n\n const [rights, setRights] = useState(null);\n\n const getRights = async () => {\n try {\n const { data: featureJson } = await getAssignedFeatures(\n 'techo.manage.duplicateMemberData'\n );\n const parsedRights = JSON.parse(featureJson);\n if (parsedRights) {\n setRights(parsedRights);\n }\n } catch (error) {\n console.error(error);\n }\n };\n\n // Fetch logic\n const loadDataForTimeRange = async (overrideRange) => {\n const timeRange = overrideRange || activeTimeRange;\n setActiveTimeRange(timeRange);\n\n // Day boundaries in the application timezone; the range ends at the\n // start of the day after the last one.\n const today = appNow().startOf('day');\n let startDate, endDate = today.add(1, 'day');\n\n if (timeRange === 'sevenDays') {\n startDate = today.subtract(7, 'day');\n } else if (timeRange === 'thirtyDays') {\n startDate = today.subtract(30, 'day');\n } else if (timeRange === 'custom') {\n if (!customStartDate || !customEndDate) return;\n startDate = appDayjs(customStartDate).startOf('day');\n endDate = appDayjs(customEndDate).startOf('day').add(1, 'day');\n }\n\n if (!startDate) return;\n\n const formattedStartDate = appDayjs(startDate).format('YYYY-MM-DD');\n const formattedEndDate = appDayjs(endDate).format('YYYY-MM-DD');\n\n // Fire API Calls Concurrently mapping original structure\n setLoadingTrend(true);\n setLoadingTopCreating(true);\n setLoadingTopResolving(true);\n setLoadingTopLocations(true);\n\n try {\n const locationId = activeLocationId || null;\n\n // Trend\n execute({\n code: 'retrieve_last_day_duplicates_creation_and_resolution',\n parameters: { startDate: formattedStartDate, endDate: formattedEndDate, locationId }\n }).then(res => {\n const mappedTrend = res.data?.result?.map(d => ({\n date: d.formatted_date,\n identified: d.count_duplicates,\n resolved: d.duplicates_resolved\n }));\n setTrendData(mappedTrend || []);\n setLoadingTrend(false);\n });\n\n // Creating\n execute({\n code: 'top_five_users_creating_duplicates',\n parameters: { startDate: formattedStartDate, endDate: formattedEndDate, locationId }\n }).then(res => {\n const mappedCreating = res.data?.result?.map(d => ({\n name: d.asha_name,\n count: d.total_members\n }));\n setTopCreatingData(mappedCreating || []);\n setLoadingTopCreating(false);\n });\n\n // Resolving\n execute({\n code: 'top_five_users_resolving_duplicates',\n parameters: { startDate: formattedStartDate, endDate: formattedEndDate, locationId }\n }).then(res => {\n const mappedResolving = res.data?.result?.map(d => ({\n name: d.asha_name,\n count: d.total_members\n }));\n setTopResolvingData(mappedResolving || []);\n setLoadingTopResolving(false);\n });\n\n // Locations\n execute({\n code: 'top_five_locations_for_creating_duplicates',\n parameters: { startDate: formattedStartDate, endDate: formattedEndDate, locationId }\n }).then(res => {\n const mappedLocations = res.data?.result?.map(d => ({\n name: d.location_name,\n hierarchy: d.location_hierarchy,\n count: d.total_duplicates\n }));\n setTopLocationsData(mappedLocations || []);\n setLoadingTopLocations(false);\n });\n\n } catch (error) {\n console.error(\"Dashboard API Error\", error);\n }\n };\n\n useEffect(() => {\n if (user) {\n loadDataForTimeRange('sevenDays');\n getRights();\n }\n }, [user]);\n\n // Auto-fetch when custom dates are both selected\n useEffect(() => {\n if (activeTimeRange === 'custom' && customStartDate && customEndDate) {\n loadDataForTimeRange('custom');\n }\n }, [customStartDate, customEndDate, activeTimeRange]);\n\n const onCustomDateChange = () => {\n if (customStartDate) {\n // Validate dates\n // Not natively binding maxEnd but ensuring logical integrity in UI if needed\n }\n };\n\n // Reusable Chart Card Shell\n const ChartCard = ({ title, isLoading, hasData, children, iconClass, emptyMessage }) => (\n <Box className=\"bg-white p-4 rounded-xl shadow-sm border border-gray-100 flex flex-col relative h-[350px]\">\n <Typography variant=\"h6\" className=\"font-bold text-gray-800 mb-4\">{title}</Typography>\n\n {isLoading && (\n <Box className=\"flex-1 flex justify-center items-center absolute inset-0 bg-white/70 z-10 rounded-xl\">\n <CircularProgress size={30} />\n </Box>\n )}\n\n {hasData ? (\n <Box className=\"flex-1 min-h-0\">\n {children}\n </Box>\n ) : (!isLoading && (\n <Box className=\"flex-1 flex flex-col justify-center items-center text-gray-400\">\n {iconClass}\n <Typography variant=\"h6\" className=\"mt-2 text-gray-500\">No Data Found</Typography>\n <Typography variant=\"caption\" className=\"text-gray-400\">{emptyMessage}</Typography>\n </Box>\n ))}\n </Box>\n );\n\n // Search filter handlers\n const handleFilterSearch = () => {\n const locId = selectedLocation?.finalSelected?.optionSelected?.id || null;\n setActiveLocationId(locId);\n setFilterOpen(false);\n };\n\n const handleFilterClear = () => {\n setActiveLocationId(null);\n setResetKey(Date.now());\n setSelectedLocation({});\n selectedLocationRef.current = {};\n filterMethods.reset();\n setFilterOpen(false);\n };\n\n // Search filter form body for SideOverlay\n const searchFilterJSX = (\n <FormProvider {...filterMethods}>\n <Box className=\"p-4\">\n <Typography variant=\"subtitle2\" fontWeight=\"bold\" className=\"mb-3\">Search By: Organization Unit</Typography>\n <Suspense fallback={<CircularProgress size={20} />}>\n <LocationSelectionComponent\n selectedLocation={selectedLocation}\n setSelectedLocation={setSelectedLocation}\n selectedLocationRef={selectedLocationRef}\n locations={locations}\n setLocations={setLocations}\n templateType=\"inline\"\n fetchAccordingToUserAoi={true}\n requiredUptoLevel={1}\n fetchUptoLevel={6}\n childForm={true}\n triggerFirstRun={resetKey}\n />\n </Suspense>\n <Box className=\"flex gap-2 justify-end mt-4\">\n <Button variant=\"outlined\" color=\"error\" onClick={handleFilterClear}>Clear</Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleFilterSearch}>Search</Button>\n </Box>\n </Box>\n </FormProvider>\n );\n\n // Reload charts when location changes\n useEffect(() => {\n if (user) loadDataForTimeRange();\n }, [activeLocationId]);\n\n // Memoized Charts JSX to prevent refresh/animations on location dropdown selection\n const chartsJSX = useMemo(() => {\n return (\n <>\n {/* Duplicate Trend (Line Chart) */}\n <Grid container spacing={4} className=\"mb-6\">\n <Grid size={{ xs: 12 }}>\n <ChartCard\n title=\"Duplicate Trend\"\n isLoading={loadingTrend}\n hasData={trendData.length > 0}\n emptyMessage=\"No duplicate trend data available for this period\"\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <LineChart data={trendData} margin={{ top: 10, right: 30, left: 0, bottom: 0 }}>\n <CartesianGrid strokeDasharray=\"3 3\" vertical={false} stroke=\"#e2e8f0\" />\n <XAxis dataKey=\"date\" tick={{ fontSize: 12 }} axisLine={false} tickLine={false} />\n <YAxis tick={{ fontSize: 12 }} axisLine={false} tickLine={false} />\n <Tooltip />\n <Legend verticalAlign=\"top\" height={36} />\n <Line type=\"monotone\" dataKey=\"identified\" name=\"Identified\" stroke=\"#EF4444\" strokeWidth={2} dot={{ r: 4, fill: '#EF4444' }} activeDot={{ r: 6 }} />\n <Line type=\"monotone\" dataKey=\"resolved\" name=\"Resolved\" stroke=\"#10B981\" strokeWidth={2} dot={{ r: 4, fill: '#10B981' }} activeDot={{ r: 6 }} />\n </LineChart>\n </ResponsiveContainer>\n </ChartCard>\n </Grid>\n </Grid>\n\n {/* Top 5 Users Creating and Resolving */}\n <Grid container spacing={4} className=\"mb-6\">\n <Grid size={{ xs: 12, md: 6 }}>\n <ChartCard\n title=\"Top 5 Users Creating Duplicates\"\n isLoading={loadingTopCreating}\n hasData={topCreatingData.length > 0}\n emptyMessage=\"No data available for users creating duplicates\"\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <BarChart data={topCreatingData} margin={{ top: 20, right: 30, left: 0, bottom: 10 }}>\n <CartesianGrid strokeDasharray=\"3 3\" vertical={false} stroke=\"#e2e8f0\" />\n {/* interval={0} forces every category label to render; NameAxisTick keeps\n them on a straight line, truncating long dynamic names with an ellipsis\n and showing the full name as a tooltip on hover */}\n <XAxis dataKey=\"name\" tick={<NameAxisTick />} interval={0} height={40} />\n <YAxis tick={{ fontSize: 12 }} axisLine={false} tickLine={false} />\n <Tooltip cursor={{ fill: \"#f1f5f9\" }} />\n <Bar dataKey=\"count\" name=\"Duplicates Created\" fill=\"#FCA5A5\" radius={[4, 4, 0, 0]} maxBarSize={50} />\n </BarChart>\n </ResponsiveContainer>\n </ChartCard>\n </Grid>\n\n <Grid size={{ xs: 12, md: 6 }}>\n <ChartCard\n title=\"Top 5 Users Resolving Duplicates\"\n isLoading={loadingTopResolving}\n hasData={topResolvingData.length > 0}\n emptyMessage=\"No data available for users resolving duplicates\"\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <BarChart data={topResolvingData} margin={{ top: 20, right: 30, left: 0, bottom: 10 }}>\n <CartesianGrid strokeDasharray=\"3 3\" vertical={false} stroke=\"#e2e8f0\" />\n {/* interval={0} forces every category label to render; NameAxisTick keeps\n them on a straight line, truncating long dynamic names with an ellipsis\n and showing the full name as a tooltip on hover */}\n <XAxis dataKey=\"name\" tick={<NameAxisTick />} interval={0} height={40} />\n <YAxis tick={{ fontSize: 12 }} axisLine={false} tickLine={false} />\n <Tooltip cursor={{ fill: \"#f1f5f9\" }} />\n <Bar dataKey=\"count\" name=\"Resolved Count\" fill=\"#6EE7B7\" radius={[4, 4, 0, 0]} maxBarSize={50} />\n </BarChart>\n </ResponsiveContainer>\n </ChartCard>\n </Grid>\n </Grid>\n\n {/* Top 5 Locations (Most Duplicates Identified) */}\n <Grid container spacing={4} className=\"mb-6\">\n <Grid size={{ xs: 12 }}>\n <ChartCard\n title=\"Top 5 Locations (Most Duplicates Identified)\"\n isLoading={loadingTopLocations}\n hasData={topLocationsData.length > 0}\n emptyMessage=\"No location data available for this period\"\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <BarChart data={topLocationsData} layout=\"vertical\" margin={{ top: 20, right: 30, left: 100, bottom: 0 }}>\n <CartesianGrid strokeDasharray=\"3 3\" horizontal={false} stroke=\"#e2e8f0\" />\n <XAxis type=\"number\" tick={{ fontSize: 12 }} axisLine={false} tickLine={false} />\n <YAxis dataKey=\"name\" type=\"category\" tick={{ fontSize: 12 }} width={120} axisLine={false} tickLine={false} />\n <Tooltip\n cursor={{ fill: \"#f1f5f9\" }}\n formatter={(value) => [`Duplicates: ${value}`, 'Duplicates Found']}\n labelFormatter={(label, payload) => { return payload[0]?.payload?.hierarchy || label }}\n />\n <Bar dataKey=\"count\" name=\"Duplicates Found\" fill=\"#3B82F6\" radius={[0, 4, 4, 0]} maxBarSize={40} />\n </BarChart>\n </ResponsiveContainer>\n </ChartCard>\n </Grid>\n </Grid>\n </>\n );\n }, [\n trendData, topCreatingData, topResolvingData, topLocationsData,\n loadingTrend, loadingTopCreating, loadingTopResolving, loadingTopLocations\n ]);\n\n // The rights object only ever contains root-level permission_ids; this is a\n // child of view.manage.duplicateMemberData, so the guard checks the root.\n if (rights !== null && !GeneralUtil.hasCheckRights(rights?.['view.manage.duplicateMemberData'])) {\n return (\n <Box className=\"flex justify-center items-center w-full h-[80vh]\">\n <Box className=\"h-80 w-150 flex justify-center items-center border rounded\" style={{ borderColor: 'var(--color-gray3)' }}>\n <Typography variant=\"h5\" className=\"text-customBlue\">\n You dont have permission to view Duplicate Member Data Analysis\n </Typography>\n </Box>\n </Box>\n );\n }\n\n return (\n <Grid className=\"w-[99%] mt-6 px-4 bg-gray-50/50 min-h-screen\">\n {/* Header and Controls */}\n <Grid container justifyContent=\"space-between\" alignItems=\"center\" className=\"mb-6\">\n <Box sx={{ display: 'flex', alignItems: 'center', gap: 1.5 }}>\n <IconButton\n onClick={() => navigate('/ui/medplat/manage/duplicateMemberData')}\n size=\"small\"\n sx={{\n border: '1px solid var(--color-gray3)',\n borderRadius: 1.5,\n bgcolor: 'white',\n width: 32,\n height: 32,\n transition: 'all 0.2s ease-in-out',\n '&:hover': {\n bgcolor: 'var(--color-gray4)',\n borderColor: 'var(--color-gray1)',\n transform: 'translateX(-2px)',\n boxShadow: '0 2px 4px rgba(0, 0, 0, 0.05)'\n }\n }}\n >\n <ArrowBackIcon sx={{ fontSize: 18, color: 'var(--color-gray1)' }} />\n </IconButton>\n <Box>\n <Typography variant=\"h5\" className=\"font-bold text-gray-900\">Duplicate Data Analysis</Typography>\n <Typography variant=\"caption\" className=\"text-gray-500\">Monitoring data integrity across the system</Typography>\n </Box>\n </Box>\n\n <Box className=\"bg-white p-3 rounded-lg shadow-sm border border-gray-200 flex gap-4 items-end\">\n <Box className=\"flex flex-col\">\n <Typography variant=\"caption\" className=\"font-bold text-gray-400 uppercase tracking-wide\">Time Period</Typography>\n <Select\n value={activeTimeRange}\n onChange={(e) => {\n const val = e.target.value;\n setActiveTimeRange(val);\n if (val !== 'custom') {\n loadDataForTimeRange(val);\n }\n }}\n size=\"small\"\n className=\"min-w-[160px] font-bold\"\n >\n <MenuItem value=\"sevenDays\">Last 7 Days</MenuItem>\n <MenuItem value=\"thirtyDays\">Last 30 Days</MenuItem>\n <MenuItem value=\"custom\">Custom Range</MenuItem>\n </Select>\n </Box>\n\n {activeTimeRange === 'custom' && (\n <>\n <Box className=\"flex flex-col\">\n <Typography variant=\"caption\" className=\"font-bold text-gray-400 uppercase tracking-wide\">Start Date</Typography>\n <TextField\n type=\"date\"\n size=\"small\"\n value={customStartDate}\n onChange={(e) => { setCustomStartDate(e.target.value); onCustomDateChange(); }}\n />\n </Box>\n <Box className=\"flex flex-col\">\n <Typography variant=\"caption\" className=\"font-bold text-gray-400 uppercase tracking-wide\">End Date</Typography>\n <TextField\n type=\"date\"\n size=\"small\"\n value={customEndDate}\n onChange={(e) => { setCustomEndDate(e.target.value); onCustomDateChange(); }}\n />\n </Box>\n </>\n )}\n </Box>\n </Grid>\n\n {chartsJSX}\n\n {/* Search Filter Side Overlay */}\n <SideOverlay\n title=\"Search by Location\"\n FormBody={searchFilterJSX}\n isForm={false}\n handleOverlayState={() => setFilterOpen(prev => !prev)}\n overlayOpen={filterOpen}\n dataTestId=\"analysis-search-overlay\"\n ModalProps={{ keepMounted: true }}\n />\n </Grid>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAQA,IAAM,6BAA6B,WAC3B,OAAO,oEACd,EAeK,uBAAuB,IAQvB,gBAAgB,EAAE,MAAG,MAAG,iBAAc;CAC1C,IAAM,IAAW,GAAS,SAAS,IAC7B,IACJ,EAAS,SAAS,uBAAuB,GAAG,EAAS,MAAM,GAAG,uBAAuB,EAAE,CAAC,KAAK;AAC/F,QACE,oBAAC,KAAA;EAAE,WAAW,aAAa,EAAE,GAAG,EAAE;YAChC,qBAAC,QAAA;GAAK,GAAG;GAAG,GAAG;GAAG,IAAI;GAAI,YAAW;GAAS,UAAU;GAAI,MAAK;GAAU,OAAO,EAAE,QAAQ,WAAW;cACpG,GACD,oBAAC,SAAA,EAAA,UAAO,GAAA,CAAiB,CAAA;IACpB;GACL;;AAIR,aAAa,YAAY;CACvB,GAAG,UAAU;CACb,GAAG,UAAU;CACb,SAAS,UAAU,MAAM,EAAE,OAAO,UAAU,QAAQ,CAAC;CACtD;AAED,SAAwB,8BAA8B;CACpD,IAAM,IAAW,aAAa,EACxB,EAAE,iBAAc,sBAAsB,EACtC,EAAE,YAAS,aAAa,MAAU,EAAM,aA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