@argusoft/medplat-core 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/{AddMenuConfiguration-QWfpcnuP.js → AddMenuConfiguration-DsnY0Rws.js} +544 -544
  2. package/dist/AddMenuConfiguration-DsnY0Rws.js.map +1 -0
  3. package/dist/{AddRoleDrawer-SvntLdRu.js → AddRoleDrawer-Bc655LQU.js} +17 -17
  4. package/dist/{AddRoleDrawer-SvntLdRu.js.map → AddRoleDrawer-Bc655LQU.js.map} +1 -1
  5. package/dist/ChangePasswordModalCore-50EzprTk.js +5495 -0
  6. package/dist/ChangePasswordModalCore-50EzprTk.js.map +1 -0
  7. package/dist/{ConditionConfig-DB0FqwgG.js → ConditionConfig-D2hOAa4n.js} +2 -2
  8. package/dist/{ConditionConfig-DB0FqwgG.js.map → ConditionConfig-D2hOAa4n.js.map} +1 -1
  9. package/dist/{EntityManagement-DQKXnEzz.js → EntityManagement-D4nG7wUX.js} +2 -2
  10. package/dist/{EntityManagement-DQKXnEzz.js.map → EntityManagement-D4nG7wUX.js.map} +1 -1
  11. package/dist/ImmunizationConfigurationBase-C5wnjI_-.js +5706 -0
  12. package/dist/ImmunizationConfigurationBase-C5wnjI_-.js.map +1 -0
  13. package/dist/ImmunizationConfigurationBase.css +1 -1
  14. package/dist/{ManageDynamicFeature-CsIett5x.js → ManageDynamicFeature-i6ARKe36.js} +2 -2
  15. package/dist/{ManageDynamicFeature-CsIett5x.js.map → ManageDynamicFeature-i6ARKe36.js.map} +1 -1
  16. package/dist/{ManageEventConfiguration-0YBDaxOI.js → ManageEventConfiguration-CHugu2vQ.js} +92 -92
  17. package/dist/ManageEventConfiguration-CHugu2vQ.js.map +1 -0
  18. package/dist/{ManageUser-eBS0yC5k.js → ManageUser-C6dlK-Mr.js} +3 -4
  19. package/dist/{ManageUser-eBS0yC5k.js.map → ManageUser-C6dlK-Mr.js.map} +1 -1
  20. package/dist/{MobileMenuManagement-BmrO-7MN.js → MobileMenuManagement-CV6QCeos.js} +15 -15
  21. package/dist/MobileMenuManagement-CV6QCeos.js.map +1 -0
  22. package/dist/{MobileTypeEventConfigModal-Ltm529jG.js → MobileTypeEventConfigModal-2w0WQ3WY.js} +2 -2
  23. package/dist/{MobileTypeEventConfigModal-Ltm529jG.js.map → MobileTypeEventConfigModal-2w0WQ3WY.js.map} +1 -1
  24. package/dist/{NewServerManagement-5YcAtF-g.js → NewServerManagement-Cxe0dV0O.js} +5 -5
  25. package/dist/NewServerManagement-Cxe0dV0O.js.map +1 -0
  26. package/dist/{OtherTypeEventConfigModal-dXt2qDg_.js → OtherTypeEventConfigModal-D1p8M39y.js} +43 -43
  27. package/dist/{OtherTypeEventConfigModal-dXt2qDg_.js.map → OtherTypeEventConfigModal-D1p8M39y.js.map} +1 -1
  28. package/dist/{QueryManagement-DGHV_-d5.js → QueryManagement-CRykYGum.js} +3 -3
  29. package/dist/QueryManagement-CRykYGum.js.map +1 -0
  30. package/dist/SecurityAuditLogList-Dod711KT.js +874 -0
  31. package/dist/SecurityAuditLogList-Dod711KT.js.map +1 -0
  32. package/dist/{TableDetails-DztbjsIA.js → TableDetails-Cf_YfnY2.js} +235 -235
  33. package/dist/TableDetails-Cf_YfnY2.js.map +1 -0
  34. package/dist/{TableList-DYwotUDO.js → TableList-HGbEN4bv.js} +28 -28
  35. package/dist/TableList-HGbEN4bv.js.map +1 -0
  36. package/dist/{TypeConfiguration-DYbBG_hZ.js → TypeConfiguration-D-3xNcyd.js} +2 -2
  37. package/dist/{TypeConfiguration-DYbBG_hZ.js.map → TypeConfiguration-D-3xNcyd.js.map} +1 -1
  38. package/dist/{UserList-BAeAFeXZ.js → UserList-D7GL7jvO.js} +420 -421
  39. package/dist/UserList-D7GL7jvO.js.map +1 -0
  40. package/dist/{WidgetList-D-fIf3N2.js → WidgetList-B3Sm9weK.js} +2 -2
  41. package/dist/{WidgetList-D-fIf3N2.js.map → WidgetList-B3Sm9weK.js.map} +1 -1
  42. package/dist/index-D9YNFPn9.js +1439 -0
  43. package/dist/index-D9YNFPn9.js.map +1 -0
  44. package/dist/index.css +1 -1
  45. package/dist/index.js +189 -174
  46. package/dist/index.js.map +1 -1
  47. package/dist/{index-BFznsakV.js → pdfmake-Cf-381ou.js} +13951 -15385
  48. package/dist/pdfmake-Cf-381ou.js.map +1 -0
  49. package/package.json +1 -1
  50. package/dist/AddMenuConfiguration-QWfpcnuP.js.map +0 -1
  51. package/dist/ChangePasswordModalCore-ClND1mel.js +0 -181
  52. package/dist/ChangePasswordModalCore-ClND1mel.js.map +0 -1
  53. package/dist/ImmunizationConfigurationBase-VqVvVR57.js +0 -5389
  54. package/dist/ImmunizationConfigurationBase-VqVvVR57.js.map +0 -1
  55. package/dist/ManageEventConfiguration-0YBDaxOI.js.map +0 -1
  56. package/dist/MobileMenuManagement-BmrO-7MN.js.map +0 -1
  57. package/dist/NewServerManagement-5YcAtF-g.js.map +0 -1
  58. package/dist/QueryManagement-DGHV_-d5.js.map +0 -1
  59. package/dist/SecurityAuditLogList-DHTcOtbx.js +0 -748
  60. package/dist/SecurityAuditLogList-DHTcOtbx.js.map +0 -1
  61. package/dist/TableDetails-DztbjsIA.js.map +0 -1
  62. package/dist/TableList-DYwotUDO.js.map +0 -1
  63. package/dist/UserList-BAeAFeXZ.js.map +0 -1
  64. package/dist/index-BFznsakV.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,71 +1,71 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { lazy as o } from "react";
3
- import { createSlice as O } from "@reduxjs/toolkit";
4
- import { execute as d, executeAll as z } from "@/common/services/GlobalApis";
5
- import { api as V } from "@/common/interceptors/AxiosInterceptor";
6
- import './index.css';const s = o(
2
+ import { lazy as l } from "react";
3
+ import { createSlice as L } from "@reduxjs/toolkit";
4
+ import { execute as d, executeAll as O } from "@/common/services/GlobalApis";
5
+ import { api as C } from "@/common/interceptors/AxiosInterceptor";
6
+ import './index.css';const o = l(
7
7
  () => import("@/views/feature-components/VerifyRoute.jsx")
8
- ), G = o(() => import("./RoleManagement-BThAL5LO.js").then((e) => e.R)), v = o(
8
+ ), z = l(() => import("./RoleManagement-BThAL5LO.js").then((e) => e.R)), G = l(
9
9
  () => import("./QueryBuilder-DXexUIe8.js").then((e) => e.Q)
10
- ), x = o(() => import("./UserList-BAeAFeXZ.js")), N = o(() => import("./ManageUser-eBS0yC5k.js").then((e) => e.M)), B = o(
11
- () => import("./QueryManagement-DGHV_-d5.js")
12
- ), w = o(() => import("./FeatureMenu-CLX8VNZ-.js").then((e) => e.F)), P = o(() => import("./index-BFznsakV.js")), q = o(
13
- () => import("./NewServerManagement-5YcAtF-g.js")
14
- ), E = o(
15
- () => import("./ManageDynamicFeature-CsIett5x.js")
16
- ), $ = o(
17
- () => import("./SecurityAuditLogList-DHTcOtbx.js")
18
- ), H = o(
10
+ ), x = l(() => import("./UserList-D7GL7jvO.js")), E = l(() => import("./ManageUser-C6dlK-Mr.js").then((e) => e.M)), B = l(
11
+ () => import("./QueryManagement-CRykYGum.js")
12
+ ), w = l(() => import("./FeatureMenu-CLX8VNZ-.js").then((e) => e.F)), $ = l(() => import("./index-D9YNFPn9.js")), P = l(
13
+ () => import("./NewServerManagement-Cxe0dV0O.js")
14
+ ), b = l(
15
+ () => import("./ManageDynamicFeature-i6ARKe36.js")
16
+ ), q = l(
17
+ () => import("./SecurityAuditLogList-Dod711KT.js")
18
+ ), H = l(
19
19
  () => import("./EventConfigurations-D8juDb29.js")
20
- ), S = o(
21
- () => import("./ManageEventConfiguration-0YBDaxOI.js")
22
- ), Z = o(
23
- () => import("./EntityManagement-DQKXnEzz.js")
24
- ), Q = o(
25
- () => import("./MobileMenuManagement-BmrO-7MN.js")
26
- ), X = o(
27
- () => import("./AddMenuConfiguration-QWfpcnuP.js")
28
- ), j = o(
20
+ ), S = l(
21
+ () => import("./ManageEventConfiguration-CHugu2vQ.js")
22
+ ), Z = l(
23
+ () => import("./EntityManagement-D4nG7wUX.js")
24
+ ), Q = l(
25
+ () => import("./MobileMenuManagement-CV6QCeos.js")
26
+ ), X = l(
27
+ () => import("./AddMenuConfiguration-DsnY0Rws.js")
28
+ ), j = l(
29
29
  () => import("./ManageTranslation-D9IScGhk.js").then((e) => e.M)
30
- ), W = o(
31
- () => import("./WidgetList-D-fIf3N2.js")
32
- ), J = o(
30
+ ), W = l(
31
+ () => import("./WidgetList-B3Sm9weK.js")
32
+ ), J = l(
33
33
  () => import("./NotificationList-CUZSWp2J.js").then((e) => e.N)
34
- ), K = o(
34
+ ), K = l(
35
35
  () => import("./ImmunizationConfigurationsList-K2ddBpPJ.js")
36
- ), b = o(
36
+ ), V = l(
37
37
  () => import("./manageImmunization-B4swS745.js")
38
- ), Y = o(
39
- () => import("./ImmunizationConfigurationBase-VqVvVR57.js")
38
+ ), Y = l(
39
+ () => import("./ImmunizationConfigurationBase-C5wnjI_-.js")
40
40
  ), Ce = [
41
41
  {
42
42
  path: "medplat/manage/role",
43
43
  element: /* @__PURE__ */ r(
44
- s,
44
+ o,
45
45
  {
46
46
  headerTitle: "Roles",
47
47
  pageTitle: "General",
48
48
  url: "medplat/manage/role",
49
- component: G
49
+ component: z
50
50
  }
51
51
  )
52
52
  },
53
53
  {
54
54
  path: "medplat/manage/query",
55
55
  element: /* @__PURE__ */ r(
56
- s,
56
+ o,
57
57
  {
58
58
  headerTitle: "Query Master",
59
59
  pageTitle: "General",
60
60
  url: "medplat/manage/query",
61
- component: v
61
+ component: G
62
62
  }
63
63
  )
64
64
  },
65
65
  {
66
66
  path: "medplat/manage/users",
67
67
  element: /* @__PURE__ */ r(
68
- s,
68
+ o,
69
69
  {
70
70
  headerTitle: "Users",
71
71
  pageTitle: "UserList",
@@ -77,31 +77,31 @@ import './index.css';const s = o(
77
77
  {
78
78
  path: "medplat/manage/user",
79
79
  element: /* @__PURE__ */ r(
80
- s,
80
+ o,
81
81
  {
82
82
  headerTitle: "Users",
83
83
  pageTitle: "ManageUser",
84
84
  url: "medplat/manage/users",
85
- component: N
85
+ component: E
86
86
  }
87
87
  )
88
88
  },
89
89
  {
90
90
  path: "medplat/manage/user/:id",
91
91
  element: /* @__PURE__ */ r(
92
- s,
92
+ o,
93
93
  {
94
94
  headerTitle: "Users",
95
95
  pageTitle: "General",
96
96
  url: "medplat/manage/users",
97
- component: N
97
+ component: E
98
98
  }
99
99
  )
100
100
  },
101
101
  {
102
102
  path: "medplat/querymanagement",
103
103
  element: /* @__PURE__ */ r(
104
- s,
104
+ o,
105
105
  {
106
106
  headerTitle: "Query Management",
107
107
  pageTitle: "General",
@@ -113,7 +113,7 @@ import './index.css';const s = o(
113
113
  {
114
114
  path: "medplat/manage/menu",
115
115
  element: /* @__PURE__ */ r(
116
- s,
116
+ o,
117
117
  {
118
118
  headerTitle: "Features",
119
119
  pageTitle: "General",
@@ -125,31 +125,31 @@ import './index.css';const s = o(
125
125
  {
126
126
  path: "medplat/manage/menu/addfeature",
127
127
  element: /* @__PURE__ */ r(
128
- s,
128
+ o,
129
129
  {
130
130
  headerTitle: "Features",
131
131
  pageTitle: "General",
132
132
  url: "medplat/manage/menu",
133
- component: E
133
+ component: b
134
134
  }
135
135
  )
136
136
  },
137
137
  {
138
138
  path: "medplat/manage/menu/addDynamicFeature",
139
139
  element: /* @__PURE__ */ r(
140
- s,
140
+ o,
141
141
  {
142
142
  headerTitle: "Features",
143
143
  pageTitle: "General",
144
144
  url: "medplat/manage/menu",
145
- component: E
145
+ component: b
146
146
  }
147
147
  )
148
148
  },
149
149
  {
150
150
  path: "medplat/notification/all",
151
151
  element: /* @__PURE__ */ r(
152
- s,
152
+ o,
153
153
  {
154
154
  headerTitle: "Event Configuration",
155
155
  pageTitle: "General",
@@ -161,7 +161,7 @@ import './index.css';const s = o(
161
161
  {
162
162
  path: "medplat/views/config",
163
163
  element: /* @__PURE__ */ r(
164
- s,
164
+ o,
165
165
  {
166
166
  headerTitle: "Event Configuration",
167
167
  pageTitle: "General",
@@ -173,7 +173,7 @@ import './index.css';const s = o(
173
173
  {
174
174
  path: "medplat/views/config/:id",
175
175
  element: /* @__PURE__ */ r(
176
- s,
176
+ o,
177
177
  {
178
178
  headerTitle: "Event Configuration",
179
179
  pageTitle: "General",
@@ -185,18 +185,18 @@ import './index.css';const s = o(
185
185
  {
186
186
  path: "medplat/admin/newServerManagement",
187
187
  element: /* @__PURE__ */ r(
188
- s,
188
+ o,
189
189
  {
190
190
  headerTitle: "Server Management",
191
191
  url: "medplat/admin/newServerManagement",
192
- component: q
192
+ component: P
193
193
  }
194
194
  )
195
195
  },
196
196
  {
197
197
  path: "medplat/admin/mobileEntityManagement",
198
198
  element: /* @__PURE__ */ r(
199
- s,
199
+ o,
200
200
  {
201
201
  pageTitle: "General",
202
202
  url: "medplat/admin/mobileEntityManagement",
@@ -208,7 +208,7 @@ import './index.css';const s = o(
208
208
  {
209
209
  path: "medplat/admin/mobileMenuManagement",
210
210
  element: /* @__PURE__ */ r(
211
- s,
211
+ o,
212
212
  {
213
213
  url: "medplat/admin/mobileMenuManagement",
214
214
  component: /* @__PURE__ */ r(Q, {}),
@@ -223,7 +223,7 @@ import './index.css';const s = o(
223
223
  {
224
224
  path: "medplat/manage/manageTranslation",
225
225
  element: /* @__PURE__ */ r(
226
- s,
226
+ o,
227
227
  {
228
228
  headerTitle: "Manage Translation",
229
229
  pageTitle: "General",
@@ -235,7 +235,7 @@ import './index.css';const s = o(
235
235
  {
236
236
  path: "medplat/manage/managewidgets",
237
237
  element: /* @__PURE__ */ r(
238
- s,
238
+ o,
239
239
  {
240
240
  headerTitle: "Widgets",
241
241
  pageTitle: "General",
@@ -247,7 +247,7 @@ import './index.css';const s = o(
247
247
  {
248
248
  path: "medplat/manage/notification",
249
249
  element: /* @__PURE__ */ r(
250
- s,
250
+ o,
251
251
  {
252
252
  headerTitle: "Notification Configuration",
253
253
  pageTitle: "General",
@@ -259,7 +259,7 @@ import './index.css';const s = o(
259
259
  {
260
260
  path: "medplat/manage/immunizationConfiguratorList",
261
261
  element: /* @__PURE__ */ r(
262
- s,
262
+ o,
263
263
  {
264
264
  headerTitle: "Immunizations",
265
265
  pageTitle: "General",
@@ -271,31 +271,31 @@ import './index.css';const s = o(
271
271
  {
272
272
  path: "medplat/manage/manageImmunization",
273
273
  element: /* @__PURE__ */ r(
274
- s,
274
+ o,
275
275
  {
276
276
  headerTitle: "Immunizations",
277
277
  pageTitle: "General",
278
278
  url: "medplat/training/question",
279
- component: b
279
+ component: V
280
280
  }
281
281
  )
282
282
  },
283
283
  {
284
284
  path: "medplat/manage/manageImmunization/:id",
285
285
  element: /* @__PURE__ */ r(
286
- s,
286
+ o,
287
287
  {
288
288
  headerTitle: "Immunizations",
289
289
  pageTitle: "General",
290
290
  url: "medplat/training/question",
291
- component: b
291
+ component: V
292
292
  }
293
293
  )
294
294
  },
295
295
  {
296
296
  path: "medplat/manage/immunizationConfiguration",
297
297
  element: /* @__PURE__ */ r(
298
- s,
298
+ o,
299
299
  {
300
300
  headerTitle: "Immunization Configuration",
301
301
  pageTitle: "General",
@@ -307,27 +307,27 @@ import './index.css';const s = o(
307
307
  {
308
308
  path: "medplat/manage/securityAuditLogs",
309
309
  element: /* @__PURE__ */ r(
310
- s,
310
+ o,
311
311
  {
312
312
  headerTitle: "Security Audit Logs",
313
313
  pageTitle: "Security Audit Logs",
314
314
  url: "medplat/manage/securityAuditLogs",
315
- component: $
315
+ component: q
316
316
  }
317
317
  )
318
318
  },
319
319
  {
320
320
  path: "medplat/manage/activityAnalytics",
321
321
  element: /* @__PURE__ */ r(
322
- s,
322
+ o,
323
323
  {
324
324
  headerTitle: "Activity Analytics",
325
325
  url: "medplat/manage/activityAnalytics",
326
- component: P
326
+ component: $
327
327
  }
328
328
  )
329
329
  }
330
- ], C = () => ({
330
+ ], F = () => ({
331
331
  vaccines: [],
332
332
  selectedVaccineIds: [],
333
333
  views: [
@@ -353,68 +353,68 @@ import './index.css';const s = o(
353
353
  featureRights: {},
354
354
  isConfigLoaded: !1,
355
355
  validationErrors: {}
356
- }), k = C(), y = (e = [], t = {}) => {
357
- const n = e.findIndex(
356
+ }), k = F(), h = (e = [], t = {}) => {
357
+ const i = e.findIndex(
358
358
  (a) => t.id !== void 0 && (a == null ? void 0 : a.id) === t.id || t.code && (a == null ? void 0 : a.code) === t.code
359
359
  );
360
- return n === -1 ? [...e, t] : e.map(
361
- (a, l) => l === n ? {
360
+ return i === -1 ? [...e, t] : e.map(
361
+ (a, s) => s === i ? {
362
362
  ...a,
363
363
  ...t
364
364
  } : a
365
365
  );
366
- }, F = O({
366
+ }, U = L({
367
367
  name: "immunization",
368
368
  initialState: k,
369
369
  reducers: {
370
370
  toggleVaccine: (e, t) => {
371
- const n = t.payload;
371
+ const i = t.payload;
372
372
  Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
373
- const a = e.selectedVaccineIds.indexOf(n);
374
- a > -1 ? e.selectedVaccineIds.splice(a, 1) : e.selectedVaccineIds.push(n);
373
+ const a = e.selectedVaccineIds.indexOf(i);
374
+ a > -1 ? e.selectedVaccineIds.splice(a, 1) : e.selectedVaccineIds.push(i);
375
375
  },
376
376
  setVaccines: (e, t) => {
377
- const n = Array.isArray(t.payload) ? t.payload : [];
378
- e.vaccines = n, e.selectedVaccineIds.length === 0 && (e.selectedVaccineIds = n.filter((a) => a.isActive).map((a) => a.id));
377
+ const i = Array.isArray(t.payload) ? t.payload : [];
378
+ e.vaccines = i, e.selectedVaccineIds.length === 0 && (e.selectedVaccineIds = i.filter((a) => a.isActive).map((a) => a.id));
379
379
  },
380
380
  setSelectedVaccineIds: (e, t) => {
381
381
  e.selectedVaccineIds = t.payload;
382
382
  },
383
383
  addCustomVaccine: (e, t) => {
384
- const n = t.payload || {}, {
384
+ const i = t.payload || {}, {
385
385
  name: a,
386
- vaccine_name: l,
387
- disease: c,
388
- target_prevention: m,
389
- id: u,
390
- baseDateCode: T,
391
- base_date_code: _,
392
- recipientType: i,
393
- recipient_type: p
394
- } = n, M = a || l || "Unnamed Vaccine", R = c || m || "General", h = (Array.isArray(e.vaccines) ? e.vaccines : []).map((g) => Number(g == null ? void 0 : g.id)).filter((g) => !Number.isNaN(g)), D = h.length > 0 ? Math.max(...h) + 1 : 1, L = {
395
- id: u || D,
396
- name: M,
397
- category: R,
386
+ vaccine_name: s,
387
+ disease: m,
388
+ target_prevention: u,
389
+ id: c,
390
+ baseDateCode: _,
391
+ base_date_code: M,
392
+ recipientType: y,
393
+ recipient_type: n
394
+ } = i, g = a || s || "Unnamed Vaccine", p = m || u || "General", N = (Array.isArray(e.vaccines) ? e.vaccines : []).map((T) => Number(T == null ? void 0 : T.id)).filter((T) => !Number.isNaN(T)), D = N.length > 0 ? Math.max(...N) + 1 : 1, v = {
395
+ id: c || D,
396
+ name: g,
397
+ category: p,
398
398
  doses: 0,
399
399
  doseType: "FIXED",
400
400
  doseDetails: {},
401
401
  regions: [],
402
402
  dependencies: [],
403
- isActive: n.isActive !== void 0 ? n.isActive : !1,
404
- baseDateCode: T || _ || null,
405
- recipientType: i || p || ""
403
+ isActive: i.isActive !== void 0 ? i.isActive : !1,
404
+ baseDateCode: _ || M || null,
405
+ recipientType: y || n || ""
406
406
  };
407
- Array.isArray(e.vaccines) || (e.vaccines = []), e.vaccines.push(L);
407
+ Array.isArray(e.vaccines) || (e.vaccines = []), e.vaccines.push(v);
408
408
  },
409
409
  setCurrentView: (e, t) => {
410
410
  e.currentViewId = t.payload;
411
411
  },
412
412
  updateScheduledVaccine: (e, t) => {
413
- const n = t.payload, a = e.scheduledVaccines.findIndex((l) => l.id === n.id);
413
+ const i = t.payload, a = e.scheduledVaccines.findIndex((s) => s.id === i.id);
414
414
  a !== -1 ? e.scheduledVaccines[a] = {
415
415
  ...e.scheduledVaccines[a],
416
- ...n
417
- } : e.scheduledVaccines.push(n);
416
+ ...i
417
+ } : e.scheduledVaccines.push(i);
418
418
  },
419
419
  setBaseDatesMaster: (e, t) => {
420
420
  e.baseDateMaster = t.payload;
@@ -429,24 +429,24 @@ import './index.css';const s = o(
429
429
  e.filtersMaster = t.payload;
430
430
  },
431
431
  upsertBaseDateMasterItem: (e, t) => {
432
- e.baseDateMaster = y(e.baseDateMaster, t.payload);
432
+ e.baseDateMaster = h(e.baseDateMaster, t.payload);
433
433
  },
434
434
  upsertRecipientMasterItem: (e, t) => {
435
- e.recipientMaster = y(e.recipientMaster, t.payload);
435
+ e.recipientMaster = h(e.recipientMaster, t.payload);
436
436
  },
437
437
  updateBaseDateMasterStatus: (e, t) => {
438
- const { code: n, is_active: a } = t.payload;
438
+ const { code: i, is_active: a } = t.payload;
439
439
  e.baseDateMaster = e.baseDateMaster.map(
440
- (l) => l.code === n ? { ...l, is_active: a } : l
440
+ (s) => s.code === i ? { ...s, is_active: a } : s
441
441
  );
442
442
  },
443
443
  upsertFilterMasterItem: (e, t) => {
444
- e.filtersMaster = y(e.filtersMaster, t.payload);
444
+ e.filtersMaster = h(e.filtersMaster, t.payload);
445
445
  },
446
446
  updateFilterMasterStatus: (e, t) => {
447
- const { code: n, is_active: a } = t.payload;
447
+ const { code: i, is_active: a } = t.payload;
448
448
  e.filtersMaster = e.filtersMaster.map(
449
- (l) => l.code === n ? { ...l, is_active: a } : l
449
+ (s) => s.code === i ? { ...s, is_active: a } : s
450
450
  );
451
451
  },
452
452
  setFeatureRights: (e, t) => {
@@ -455,7 +455,7 @@ import './index.css';const s = o(
455
455
  setImmunizationConfigLoaded: (e, t) => {
456
456
  e.isConfigLoaded = t.payload;
457
457
  },
458
- resetImmunizationState: () => C(),
458
+ resetImmunizationState: () => F(),
459
459
  activateSelectedVaccines: (e) => {
460
460
  e.vaccines = e.vaccines.map((t) => ({
461
461
  ...t,
@@ -463,18 +463,18 @@ import './index.css';const s = o(
463
463
  }));
464
464
  },
465
465
  setVaccineStatus: (e, t) => {
466
- const { vaccineId: n, status: a } = t.payload, l = e.vaccines.findIndex((m) => m.id === n);
467
- l !== -1 && (e.vaccines[l].isActive = a), Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
468
- const c = e.selectedVaccineIds.indexOf(n);
469
- a && c === -1 ? e.selectedVaccineIds.push(n) : !a && c !== -1 && e.selectedVaccineIds.splice(c, 1);
466
+ const { vaccineId: i, status: a } = t.payload, s = e.vaccines.findIndex((u) => u.id === i);
467
+ s !== -1 && (e.vaccines[s].isActive = a), Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
468
+ const m = e.selectedVaccineIds.indexOf(i);
469
+ a && m === -1 ? e.selectedVaccineIds.push(i) : !a && m !== -1 && e.selectedVaccineIds.splice(m, 1);
470
470
  },
471
471
  setValidationErrors: (e, t) => {
472
- const { vaccineId: n, errors: a } = t.payload;
473
- e.validationErrors[n] = a;
472
+ const { vaccineId: i, errors: a } = t.payload;
473
+ e.validationErrors[i] = a;
474
474
  },
475
475
  clearValidationErrors: (e, t) => {
476
- const n = t.payload;
477
- n ? delete e.validationErrors[n] : e.validationErrors = {};
476
+ const i = t.payload;
477
+ i ? delete e.validationErrors[i] : e.validationErrors = {};
478
478
  }
479
479
  }
480
480
  }), {
@@ -482,17 +482,17 @@ import './index.css';const s = o(
482
482
  setVaccines: Ue,
483
483
  addCustomVaccine: Re,
484
484
  setCurrentView: De,
485
- updateScheduledVaccine: Le,
486
- setBaseDatesMaster: Oe,
487
- setRecipientMaster: ze,
488
- setDbTablesMaster: Ge,
489
- setFiltersMaster: ve,
485
+ updateScheduledVaccine: ve,
486
+ setBaseDatesMaster: Le,
487
+ setRecipientMaster: Oe,
488
+ setDbTablesMaster: ze,
489
+ setFiltersMaster: Ge,
490
490
  upsertBaseDateMasterItem: xe,
491
491
  upsertRecipientMasterItem: Be,
492
492
  updateBaseDateMasterStatus: we,
493
- upsertFilterMasterItem: Pe,
494
- updateFilterMasterStatus: qe,
495
- setFeatureRights: $e,
493
+ upsertFilterMasterItem: $e,
494
+ updateFilterMasterStatus: Pe,
495
+ setFeatureRights: qe,
496
496
  setImmunizationConfigLoaded: He,
497
497
  resetImmunizationState: Ze,
498
498
  activateSelectedVaccines: Qe,
@@ -500,7 +500,7 @@ import './index.css';const s = o(
500
500
  setValidationErrors: je,
501
501
  clearValidationErrors: We,
502
502
  setVaccineStatus: Je
503
- } = F.actions, Ke = F.reducer, I = (e, t) => {
503
+ } = U.actions, Ke = U.reducer, I = (e, t) => {
504
504
  if (e == null)
505
505
  return t;
506
506
  if (typeof e != "string")
@@ -510,73 +510,88 @@ import './index.css';const s = o(
510
510
  } catch {
511
511
  return t;
512
512
  }
513
- }, A = (...e) => e.filter(Boolean).join("_"), f = (e) => e == null || e === "" || e === "N.A." || e === "null days" ? "N.A." : e, U = (e, t = "FLEXIBLE", n = 1) => {
514
- if (n === 0 || !e)
513
+ }, f = (...e) => e.filter(Boolean).join("_"), A = (e) => e == null || e === "" || e === "N.A." || e === "null days" ? "N.A." : e, R = (e, t = "FLEXIBLE", i = 1) => {
514
+ if (i === 0 || !e)
515
515
  return "N.A.";
516
516
  if (t === "FIXED") {
517
- const c = Array.isArray(e) ? e[0] : e;
518
- if (!c)
517
+ const m = Array.isArray(e) ? e[0] : e;
518
+ if (!m)
519
519
  return "N.A.";
520
- const m = f(c.eligibleFrom), u = f(c.eligibleTo);
521
- return m === "N.A." && u === "N.A." ? "N.A." : `${m} to ${u}`;
520
+ const u = A(m.eligibleFrom), c = A(m.eligibleTo);
521
+ return u === "N.A." && c === "N.A." ? "N.A." : `${u} to ${c}`;
522
522
  }
523
523
  if (!Array.isArray(e) || e.length === 0)
524
524
  return "N.A.";
525
- const a = f(e[0].eligibleFrom), l = f(
525
+ const a = A(e[0].eligibleFrom), s = A(
526
526
  e[e.length - 1].eligibleTo
527
527
  );
528
- return a === "N.A." && l === "N.A." ? "N.A." : `${a} to ${l}`;
528
+ return a === "N.A." && s === "N.A." ? "N.A." : `${a} to ${s}`;
529
529
  }, ee = (e) => {
530
- const t = String(e.dose_type || "").toLowerCase(), a = t === "fixed" || t === "na" || !e.dose_type ? [
530
+ const t = String(e.dose_type || "").toLowerCase(), i = t === "fixed" || t === "na" || !e.dose_type, a = I(e.duration_units, {
531
+ eligibleFrom: "days",
532
+ eligibleTo: "days",
533
+ interval: "days"
534
+ }), s = i ? [
531
535
  {
532
- id: A("fixed", e.id),
533
- eligibleFrom: e.dose_eligible_from !== void 0 ? `${e.dose_eligible_from} days` : "",
534
- eligibleTo: e.dose_eligible_to !== void 0 ? `${e.dose_eligible_to} days` : "",
536
+ id: f("fixed", e.id),
537
+ eligibleFrom: e.dose_eligible_from !== void 0 ? `${e.dose_eligible_from} ${a.eligibleFrom || "days"}` : "",
538
+ eligibleTo: e.dose_eligible_to !== void 0 ? `${e.dose_eligible_to} ${a.eligibleTo || "days"}` : "",
535
539
  interval: e.min_gap || 0
536
540
  }
537
- ] : I(e.dose, []).map((i, p) => ({
538
- id: i.id || A("dose", e.id, p),
539
- isBooster: i.isBooster === !0 || i.is_booster === !0 || typeof i.dose == "string" && i.dose.toUpperCase().startsWith("B"),
540
- alias: i.alias || i.booster_alias || "",
541
- eligibleFrom: i.eligible_from !== void 0 ? `${i.eligible_from} days` : "",
542
- eligibleTo: i.eligible_to !== void 0 ? `${i.eligible_to} days` : "",
543
- interval: i.min_gap || 0
544
- })), l = I(e.location, []).filter((i) => i && typeof i == "object").map((i, p) => {
545
- var M;
541
+ ] : I(e.dose, []).map((n, g) => {
542
+ const p = {
543
+ eligibleFrom: n.eligible_from_unit || a.eligibleFrom || "days",
544
+ eligibleTo: n.eligible_to_unit || a.eligibleTo || "days",
545
+ interval: n.interval_unit || a.interval || "days",
546
+ overdue: n.overdue_unit || "days"
547
+ };
548
+ return {
549
+ id: n.id || f("dose", e.id, g),
550
+ isBooster: n.isBooster === !0 || n.is_booster === !0 || typeof n.dose == "string" && n.dose.toUpperCase().startsWith("B"),
551
+ alias: n.alias || n.booster_alias || "",
552
+ eligibleFrom: n.eligible_from !== void 0 ? `${n.eligible_from} ${p.eligibleFrom}` : "",
553
+ eligibleTo: n.eligible_to !== void 0 ? `${n.eligible_to} ${p.eligibleTo}` : "",
554
+ overdue: n.overdue !== void 0 && n.overdue !== null ? `${n.overdue} ${p.overdue}` : "",
555
+ interval: n.min_gap || 0,
556
+ units: p
557
+ };
558
+ }), m = I(e.location, []).filter((n) => n && typeof n == "object").map((n, g) => {
559
+ var p;
546
560
  return {
547
- id: A("region", e.id, p),
548
- locationId: i.locationId,
549
- locationIdArr: i.locationIdArr,
550
- locationList: i.locationList,
551
- fullPath: (M = i.locationList) == null ? void 0 : M.replaceAll(" => ", " → ")
561
+ id: f("region", e.id, g),
562
+ locationId: n.locationId,
563
+ locationIdArr: n.locationIdArr,
564
+ locationList: n.locationList,
565
+ fullPath: (p = n.locationList) == null ? void 0 : p.replaceAll(" => ", " → ")
552
566
  };
553
- }), c = I(e.validations, []).map(
554
- (i, p) => ({
555
- id: A("dep", e.id, p),
556
- vaccine: i.vaccine || "",
557
- requirement: i.requirement || "Should be given",
558
- minGap: Number.parseInt(i.minGap, 10) || 0,
559
- maxGap: Number.parseInt(i.maxGap, 10) || 0,
560
- message: i.message || ""
567
+ }), u = I(e.validations, []).map(
568
+ (n, g) => ({
569
+ id: f("dep", e.id, g),
570
+ vaccine: n.vaccine || "",
571
+ requirement: n.requirement || "Should be given",
572
+ minGap: Number.parseInt(n.minGap, 10) || 0,
573
+ maxGap: Number.parseInt(n.maxGap, 10) || 0,
574
+ message: n.message || ""
561
575
  })
562
- ), m = I(e.filters, []), u = Array.isArray(m) ? m : (m == null ? void 0 : m.codes) || [], T = I(e.code_sets, []), _ = Array.isArray(T) ? T : [];
576
+ ), c = I(e.filters, []), _ = Array.isArray(c) ? c : (c == null ? void 0 : c.codes) || [], M = I(e.code_sets, []), y = Array.isArray(M) ? M : [];
563
577
  return {
564
578
  ...e,
565
579
  name: e.vaccine_name || e.name || "N.A.",
566
580
  category: e.target_prevention || e.disease || e.category || "N.A.",
567
581
  doses: e.no_of_doses || 0,
568
582
  doseType: e.dose_type && e.dose_type !== "NA" ? e.dose_type : "FIXED",
569
- doseDetails: a,
570
- eligibility: U(
571
- a,
583
+ doseDetails: s,
584
+ eligibility: R(
585
+ s,
572
586
  e.dose_type,
573
587
  e.no_of_doses || 0
574
588
  ),
575
589
  isActive: e.is_active !== void 0 ? e.is_active : !0,
576
- regions: l,
577
- dependencies: c,
578
- filters: u,
579
- codeSets: _,
590
+ regions: m,
591
+ dependencies: u,
592
+ filters: _,
593
+ codeSets: y,
594
+ durationUnits: a,
580
595
  baseDateCode: e.base_date_code,
581
596
  recipientType: e.recipient_type || ""
582
597
  };
@@ -589,7 +604,7 @@ import './index.css';const s = o(
589
604
  }), ne = () => d({
590
605
  code: "FETCH_IMMUNISATION_RECEPIENT_MASTER",
591
606
  parameters: {}
592
- }), ie = () => z([
607
+ }), ie = () => O([
593
608
  {
594
609
  code: "FETCH_IMMUNISATION_BASE_DATE",
595
610
  parameters: {},
@@ -613,10 +628,10 @@ import './index.css';const s = o(
613
628
  ]), re = (e) => d({
614
629
  code: "INSERT_IMMUNIZATION_MASTER",
615
630
  parameters: e
616
- }), se = (e) => d({
631
+ }), oe = (e) => d({
617
632
  code: "UPDATE_IMMUNIZATION_DOSE",
618
633
  ...e
619
- }), oe = (e) => d({
634
+ }), se = (e) => d({
620
635
  code: "CHECK_IMMUNIZATION_CONFIGURATION_INITIATION",
621
636
  ...e
622
637
  }), le = (e) => d({
@@ -649,19 +664,19 @@ import './index.css';const s = o(
649
664
  }), Me = (e) => d({
650
665
  code: "ADD_IMMUNISATION_FILTER",
651
666
  parameters: e
652
- }), Ae = (e) => d({
667
+ }), fe = (e) => d({
653
668
  code: "UPDATE_IMMUNISATION_FILTER",
654
669
  parameters: e
655
- }), fe = (e) => V.post("/medplatform/v2/immunisation/list", e), _e = (e) => V.post("/medplatform/v2/immunisation/revalidate", e), Ye = {
656
- calculateOverallEligibility: U,
670
+ }), Ae = (e) => C.post("/medplatform/v2/immunisation/list", e), _e = (e) => C.post("/medplatform/v2/immunisation/revalidate", e), Ye = {
671
+ calculateOverallEligibility: R,
657
672
  mapImmunizationVaccineConfig: ee,
658
673
  getVaccines: te,
659
674
  getBaseDates: ae,
660
675
  getRecipients: ne,
661
676
  getImmunizationReferenceData: ie,
662
677
  addImmunization: re,
663
- updateImmunization: se,
664
- checkImmunizationConfigurationInitiation: oe,
678
+ updateImmunization: oe,
679
+ checkImmunizationConfigurationInitiation: se,
665
680
  updateVaccineStatus: le,
666
681
  updateVaccineStatusFromArray: de,
667
682
  updateImmunizationConfigurationInitiation: me,
@@ -672,8 +687,8 @@ import './index.css';const s = o(
672
687
  getAllTablesAndColumns: Ie,
673
688
  getFilters: Te,
674
689
  addFilter: Me,
675
- updateFilter: Ae,
676
- getImmunisationV2List: fe,
690
+ updateFilter: fe,
691
+ getImmunisationV2List: Ae,
677
692
  revalidateImmunisationV2List: _e
678
693
  };
679
694
  export {