@argusoft/medplat-core 1.0.17 → 1.0.18

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/index.js CHANGED
@@ -1,71 +1,71 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { lazy as o } from "react";
2
+ import { lazy as l } from "react";
3
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(
4
+ import { execute as d, executeAll as v } 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(
10
+ ), x = l(() => import("./UserList-BAeAFeXZ.js")), E = l(() => import("./ManageUser-eBS0yC5k.js").then((e) => e.M)), B = l(
11
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(
12
+ ), w = l(() => import("./FeatureMenu-CLX8VNZ-.js").then((e) => e.F)), P = l(() => import("./index-BFznsakV.js")), q = l(
13
13
  () => import("./NewServerManagement-5YcAtF-g.js")
14
- ), E = o(
14
+ ), b = l(
15
15
  () => import("./ManageDynamicFeature-CsIett5x.js")
16
- ), $ = o(
16
+ ), $ = l(
17
17
  () => import("./SecurityAuditLogList-DHTcOtbx.js")
18
- ), H = o(
18
+ ), H = l(
19
19
  () => import("./EventConfigurations-D8juDb29.js")
20
- ), S = o(
20
+ ), S = l(
21
21
  () => import("./ManageEventConfiguration-0YBDaxOI.js")
22
- ), Z = o(
22
+ ), Z = l(
23
23
  () => import("./EntityManagement-DQKXnEzz.js")
24
- ), Q = o(
24
+ ), Q = l(
25
25
  () => import("./MobileMenuManagement-BmrO-7MN.js")
26
- ), X = o(
26
+ ), X = l(
27
27
  () => import("./AddMenuConfiguration-QWfpcnuP.js")
28
- ), j = o(
28
+ ), j = l(
29
29
  () => import("./ManageTranslation-D9IScGhk.js").then((e) => e.M)
30
- ), W = o(
30
+ ), W = l(
31
31
  () => import("./WidgetList-D-fIf3N2.js")
32
- ), J = o(
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-BqPTExSk.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,7 +185,7 @@ 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",
@@ -196,7 +196,7 @@ import './index.css';const s = o(
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,7 +307,7 @@ 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",
@@ -319,7 +319,7 @@ import './index.css';const s = o(
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",
@@ -327,7 +327,7 @@ import './index.css';const s = o(
327
327
  }
328
328
  )
329
329
  }
330
- ], C = () => ({
330
+ ], F = () => ({
331
331
  vaccines: [],
332
332
  selectedVaccineIds: [],
333
333
  views: [
@@ -353,17 +353,17 @@ import './index.css';const s = o(
353
353
  featureRights: {},
354
354
  isConfigLoaded: !1,
355
355
  validationErrors: {}
356
- }), k = C(), y = (e = [], t = {}) => {
356
+ }), k = F(), h = (e = [], t = {}) => {
357
357
  const n = 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
360
  return n === -1 ? [...e, t] : e.map(
361
- (a, l) => l === n ? {
361
+ (a, s) => s === n ? {
362
362
  ...a,
363
363
  ...t
364
364
  } : a
365
365
  );
366
- }, F = O({
366
+ }, U = O({
367
367
  name: "immunization",
368
368
  initialState: k,
369
369
  reducers: {
@@ -383,26 +383,26 @@ import './index.css';const s = o(
383
383
  addCustomVaccine: (e, t) => {
384
384
  const n = 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: p,
389
+ id: c,
390
+ baseDateCode: _,
391
+ base_date_code: M,
392
+ recipientType: y,
393
+ recipient_type: i
394
+ } = n, g = a || s || "Unnamed Vaccine", u = m || p || "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, L = {
395
+ id: c || D,
396
+ name: g,
397
+ category: u,
398
398
  doses: 0,
399
399
  doseType: "FIXED",
400
400
  doseDetails: {},
401
401
  regions: [],
402
402
  dependencies: [],
403
403
  isActive: n.isActive !== void 0 ? n.isActive : !1,
404
- baseDateCode: T || _ || null,
405
- recipientType: i || p || ""
404
+ baseDateCode: _ || M || null,
405
+ recipientType: y || i || ""
406
406
  };
407
407
  Array.isArray(e.vaccines) || (e.vaccines = []), e.vaccines.push(L);
408
408
  },
@@ -410,7 +410,7 @@ import './index.css';const s = o(
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 n = t.payload, a = e.scheduledVaccines.findIndex((s) => s.id === n.id);
414
414
  a !== -1 ? e.scheduledVaccines[a] = {
415
415
  ...e.scheduledVaccines[a],
416
416
  ...n
@@ -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
438
  const { code: n, 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 === n ? { ...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
447
  const { code: n, 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 === n ? { ...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,10 +463,10 @@ 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: n, status: a } = t.payload, s = e.vaccines.findIndex((p) => p.id === n);
467
+ s !== -1 && (e.vaccines[s].isActive = a), Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
468
+ const m = e.selectedVaccineIds.indexOf(n);
469
+ a && m === -1 ? e.selectedVaccineIds.push(n) : !a && m !== -1 && e.selectedVaccineIds.splice(m, 1);
470
470
  },
471
471
  setValidationErrors: (e, t) => {
472
472
  const { vaccineId: n, errors: a } = t.payload;
@@ -484,9 +484,9 @@ import './index.css';const s = o(
484
484
  setCurrentView: De,
485
485
  updateScheduledVaccine: Le,
486
486
  setBaseDatesMaster: Oe,
487
- setRecipientMaster: ze,
488
- setDbTablesMaster: Ge,
489
- setFiltersMaster: ve,
487
+ setRecipientMaster: ve,
488
+ setDbTablesMaster: ze,
489
+ setFiltersMaster: Ge,
490
490
  upsertBaseDateMasterItem: xe,
491
491
  upsertRecipientMasterItem: Be,
492
492
  updateBaseDateMasterStatus: we,
@@ -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,86 @@ 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) => {
513
+ }, A = (...e) => e.filter(Boolean).join("_"), f = (e) => e == null || e === "" || e === "N.A." || e === "null days" ? "N.A." : e, R = (e, t = "FLEXIBLE", n = 1) => {
514
514
  if (n === 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 p = f(m.eligibleFrom), c = f(m.eligibleTo);
521
+ return p === "N.A." && c === "N.A." ? "N.A." : `${p} 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 = f(e[0].eligibleFrom), s = f(
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(), n = t === "fixed" || t === "na" || !e.dose_type, a = I(e.duration_units, {
531
+ eligibleFrom: "days",
532
+ eligibleTo: "days",
533
+ interval: "days"
534
+ }), s = n ? [
531
535
  {
532
536
  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` : "",
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((i, g) => {
542
+ const u = {
543
+ eligibleFrom: i.eligible_from_unit || a.eligibleFrom || "days",
544
+ eligibleTo: i.eligible_to_unit || a.eligibleTo || "days",
545
+ interval: i.interval_unit || a.interval || "days"
546
+ };
547
+ return {
548
+ id: i.id || A("dose", e.id, g),
549
+ isBooster: i.isBooster === !0 || i.is_booster === !0 || typeof i.dose == "string" && i.dose.toUpperCase().startsWith("B"),
550
+ alias: i.alias || i.booster_alias || "",
551
+ eligibleFrom: i.eligible_from !== void 0 ? `${i.eligible_from} ${u.eligibleFrom}` : "",
552
+ eligibleTo: i.eligible_to !== void 0 ? `${i.eligible_to} ${u.eligibleTo}` : "",
553
+ interval: i.min_gap || 0,
554
+ units: u
555
+ };
556
+ }), m = I(e.location, []).filter((i) => i && typeof i == "object").map((i, g) => {
557
+ var u;
546
558
  return {
547
- id: A("region", e.id, p),
559
+ id: A("region", e.id, g),
548
560
  locationId: i.locationId,
549
561
  locationIdArr: i.locationIdArr,
550
562
  locationList: i.locationList,
551
- fullPath: (M = i.locationList) == null ? void 0 : M.replaceAll(" => ", " → ")
563
+ fullPath: (u = i.locationList) == null ? void 0 : u.replaceAll(" => ", " → ")
552
564
  };
553
- }), c = I(e.validations, []).map(
554
- (i, p) => ({
555
- id: A("dep", e.id, p),
565
+ }), p = I(e.validations, []).map(
566
+ (i, g) => ({
567
+ id: A("dep", e.id, g),
556
568
  vaccine: i.vaccine || "",
557
569
  requirement: i.requirement || "Should be given",
558
570
  minGap: Number.parseInt(i.minGap, 10) || 0,
559
571
  maxGap: Number.parseInt(i.maxGap, 10) || 0,
560
572
  message: i.message || ""
561
573
  })
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 : [];
574
+ ), 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
575
  return {
564
576
  ...e,
565
577
  name: e.vaccine_name || e.name || "N.A.",
566
578
  category: e.target_prevention || e.disease || e.category || "N.A.",
567
579
  doses: e.no_of_doses || 0,
568
580
  doseType: e.dose_type && e.dose_type !== "NA" ? e.dose_type : "FIXED",
569
- doseDetails: a,
570
- eligibility: U(
571
- a,
581
+ doseDetails: s,
582
+ eligibility: R(
583
+ s,
572
584
  e.dose_type,
573
585
  e.no_of_doses || 0
574
586
  ),
575
587
  isActive: e.is_active !== void 0 ? e.is_active : !0,
576
- regions: l,
577
- dependencies: c,
578
- filters: u,
579
- codeSets: _,
588
+ regions: m,
589
+ dependencies: p,
590
+ filters: _,
591
+ codeSets: y,
592
+ durationUnits: a,
580
593
  baseDateCode: e.base_date_code,
581
594
  recipientType: e.recipient_type || ""
582
595
  };
@@ -589,7 +602,7 @@ import './index.css';const s = o(
589
602
  }), ne = () => d({
590
603
  code: "FETCH_IMMUNISATION_RECEPIENT_MASTER",
591
604
  parameters: {}
592
- }), ie = () => z([
605
+ }), ie = () => v([
593
606
  {
594
607
  code: "FETCH_IMMUNISATION_BASE_DATE",
595
608
  parameters: {},
@@ -613,10 +626,10 @@ import './index.css';const s = o(
613
626
  ]), re = (e) => d({
614
627
  code: "INSERT_IMMUNIZATION_MASTER",
615
628
  parameters: e
616
- }), se = (e) => d({
629
+ }), oe = (e) => d({
617
630
  code: "UPDATE_IMMUNIZATION_DOSE",
618
631
  ...e
619
- }), oe = (e) => d({
632
+ }), se = (e) => d({
620
633
  code: "CHECK_IMMUNIZATION_CONFIGURATION_INITIATION",
621
634
  ...e
622
635
  }), le = (e) => d({
@@ -652,16 +665,16 @@ import './index.css';const s = o(
652
665
  }), Ae = (e) => d({
653
666
  code: "UPDATE_IMMUNISATION_FILTER",
654
667
  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,
668
+ }), fe = (e) => C.post("/medplatform/v2/immunisation/list", e), _e = (e) => C.post("/medplatform/v2/immunisation/revalidate", e), Ye = {
669
+ calculateOverallEligibility: R,
657
670
  mapImmunizationVaccineConfig: ee,
658
671
  getVaccines: te,
659
672
  getBaseDates: ae,
660
673
  getRecipients: ne,
661
674
  getImmunizationReferenceData: ie,
662
675
  addImmunization: re,
663
- updateImmunization: se,
664
- checkImmunizationConfigurationInitiation: oe,
676
+ updateImmunization: oe,
677
+ checkImmunizationConfigurationInitiation: se,
665
678
  updateVaccineStatus: le,
666
679
  updateVaccineStatusFromArray: de,
667
680
  updateImmunizationConfigurationInitiation: me,