@argusoft/medplat-form-engine 1.0.10 → 1.0.12

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 (60) hide show
  1. package/dist/{AccessRights-sgIhYR30-DWNCTLI6.js → AccessRights-sgIhYR30-Dg6B4KJM.js} +20 -20
  2. package/dist/{AccessRights-sgIhYR30-DWNCTLI6.js.map → AccessRights-sgIhYR30-Dg6B4KJM.js.map} +1 -1
  3. package/dist/{AddFeatures-BxXCC6ex-1VYoA24R.js → AddFeatures-DLbjDGei-Dg8WYww8.js} +7 -7
  4. package/dist/{AddFeatures-BxXCC6ex-1VYoA24R.js.map → AddFeatures-DLbjDGei-Dg8WYww8.js.map} +1 -1
  5. package/dist/{AddLabelModal-DE3ploGD-DWF1SOUp.js → AddLabelModal-DE3ploGD-BV_K8Q7c.js} +45 -45
  6. package/dist/{AddLabelModal-DE3ploGD-DWF1SOUp.js.map → AddLabelModal-DE3ploGD-BV_K8Q7c.js.map} +1 -1
  7. package/dist/{AddRoleDrawer-ZK1eejxI-ldfhQqA_.js → AddRoleDrawer-ZK1eejxI-xMb2iVGk.js} +11 -11
  8. package/dist/{AddRoleDrawer-ZK1eejxI-ldfhQqA_.js.map → AddRoleDrawer-ZK1eejxI-xMb2iVGk.js.map} +1 -1
  9. package/dist/{AppModal-BgZyfrd--CNvWjWhL.js → AppModal-BgZyfrd--CZPgx1UG.js} +2 -2
  10. package/dist/{AppModal-BgZyfrd--CNvWjWhL.js.map → AppModal-BgZyfrd--CZPgx1UG.js.map} +1 -1
  11. package/dist/{ChangePasswordModal-MV7g8tkA-BDA1Pw0i.js → ChangePasswordModal-MV7g8tkA-D6c6QM4F.js} +2 -2
  12. package/dist/{ChangePasswordModal-MV7g8tkA-BDA1Pw0i.js.map → ChangePasswordModal-MV7g8tkA-D6c6QM4F.js.map} +1 -1
  13. package/dist/{ConditionConfig-GDCXIg3C-XbR1fp6h.js → ConditionConfig-GDCXIg3C-COtWwHe3.js} +2 -2
  14. package/dist/{ConditionConfig-GDCXIg3C-XbR1fp6h.js.map → ConditionConfig-GDCXIg3C-COtWwHe3.js.map} +1 -1
  15. package/dist/{FeatureMenu-BYSRoNm0-D2Ak-EDd.js → FeatureMenu-BYSRoNm0-9p5IIVx2.js} +2 -2
  16. package/dist/{FeatureMenu-BYSRoNm0-D2Ak-EDd.js.map → FeatureMenu-BYSRoNm0-9p5IIVx2.js.map} +1 -1
  17. package/dist/{ImmunizationConfigurationBase-DZ8EqXlF-CSPs9x_q.js → ImmunizationConfigurationBase-DZ8EqXlF-D645-PAk.js} +2 -2
  18. package/dist/{ImmunizationConfigurationBase-DZ8EqXlF-CSPs9x_q.js.map → ImmunizationConfigurationBase-DZ8EqXlF-D645-PAk.js.map} +1 -1
  19. package/dist/ImmunizationConfigurationBase-DZ8EqXlF.css +1 -1
  20. package/dist/{LanguagesModal-rk6IGQwY-Cxw9xctN.js → LanguagesModal-rk6IGQwY-BaAI1s2W.js} +2 -2
  21. package/dist/{LanguagesModal-rk6IGQwY-Cxw9xctN.js.map → LanguagesModal-rk6IGQwY-BaAI1s2W.js.map} +1 -1
  22. package/dist/{ManageDynamicFeature-CeeqiS3K-D2Se68tC.js → ManageDynamicFeature-BKkCnQvF-CinU35NS.js} +1013 -1013
  23. package/dist/ManageDynamicFeature-BKkCnQvF-CinU35NS.js.map +1 -0
  24. package/dist/{ManageEventConfiguration-BJxS2Su0-yd2dUxgz.js → ManageEventConfiguration-BJxS2Su0-DBdaQcPo.js} +27 -27
  25. package/dist/{ManageEventConfiguration-BJxS2Su0-yd2dUxgz.js.map → ManageEventConfiguration-BJxS2Su0-DBdaQcPo.js.map} +1 -1
  26. package/dist/ManageNotification-B4prX-9Z-B4mRuGir.js.map +1 -1
  27. package/dist/{ManageRole-ByqBmjuc-CApL3DJy.js → ManageRole-BjIIXAlK-DY39p0FD.js} +255 -226
  28. package/dist/ManageRole-BjIIXAlK-DY39p0FD.js.map +1 -0
  29. package/dist/{ManageTranslation-BTxvSYKb-CwT975cy.js → ManageTranslation-BTxvSYKb-C2CZwkRN.js} +2 -2
  30. package/dist/{ManageTranslation-BTxvSYKb-CwT975cy.js.map → ManageTranslation-BTxvSYKb-C2CZwkRN.js.map} +1 -1
  31. package/dist/{ManageUser-PHiTNyF8-Bddmh2CC.js → ManageUser-PHiTNyF8-Bm4bYqvt.js} +3 -3
  32. package/dist/{ManageUser-PHiTNyF8-Bddmh2CC.js.map → ManageUser-PHiTNyF8-Bm4bYqvt.js.map} +1 -1
  33. package/dist/{MedplatFormWrapper-DbdQUpEu.js → MedplatFormWrapper-CEXGoLC1.js} +3954 -3952
  34. package/dist/MedplatFormWrapper-CEXGoLC1.js.map +1 -0
  35. package/dist/MedplatFormWrapper.css +1 -0
  36. package/dist/{MobileTypeEventConfigModal-ChhO_A4f-Wd3d3SEP.js → MobileTypeEventConfigModal-ChhO_A4f-Dpq9010c.js} +2 -1
  37. package/dist/{MobileTypeEventConfigModal-ChhO_A4f-Wd3d3SEP.js.map → MobileTypeEventConfigModal-ChhO_A4f-Dpq9010c.js.map} +1 -1
  38. package/dist/{OtherTypeEventConfigModal-ZnCGWm9v-tpC-SI0P.js → OtherTypeEventConfigModal-ZnCGWm9v-CsQiv68d.js} +2 -1
  39. package/dist/{OtherTypeEventConfigModal-ZnCGWm9v-tpC-SI0P.js.map → OtherTypeEventConfigModal-ZnCGWm9v-CsQiv68d.js.map} +1 -1
  40. package/dist/{QueryManagement-DXA73N2j-Wlk7hKP3.js → QueryManagement-DXA73N2j-BMDEgiCy.js} +2 -2
  41. package/dist/{QueryManagement-DXA73N2j-Wlk7hKP3.js.map → QueryManagement-DXA73N2j-BMDEgiCy.js.map} +1 -1
  42. package/dist/{RoleManagement-CLaEJ90J-BW0tG5t9.js → RoleManagement-v5Nyp1vr-BsTLfcMm.js} +13 -7
  43. package/dist/RoleManagement-v5Nyp1vr-BsTLfcMm.js.map +1 -0
  44. package/dist/{SubMenu-BHcSNSUF-d-_yEXeN.js → SubMenu-BHcSNSUF-eLmX3DkH.js} +2 -2
  45. package/dist/{SubMenu-BHcSNSUF-d-_yEXeN.js.map → SubMenu-BHcSNSUF-eLmX3DkH.js.map} +1 -1
  46. package/dist/{TypeConfiguration-C-lk8Szs-DKu6I5Im.js → TypeConfiguration-C-lk8Szs-qaofDyyM.js} +7 -6
  47. package/dist/{TypeConfiguration-C-lk8Szs-DKu6I5Im.js.map → TypeConfiguration-C-lk8Szs-qaofDyyM.js.map} +1 -1
  48. package/dist/{WidgetList-BSApErov-CBYLh0Oh.js → WidgetList-BSApErov-D05f9srr.js} +2 -2
  49. package/dist/{WidgetList-BSApErov-CBYLh0Oh.js.map → WidgetList-BSApErov-D05f9srr.js.map} +1 -1
  50. package/dist/{index-CdFr9tGu.js → index-CnfGzeaj.js} +217 -216
  51. package/dist/index-CnfGzeaj.js.map +1 -0
  52. package/dist/index.css +1 -1
  53. package/dist/index.js +1 -1
  54. package/dist/manageImmunization-B4swS745-JldexHrO.js.map +1 -1
  55. package/package.json +3 -3
  56. package/dist/ManageDynamicFeature-CeeqiS3K-D2Se68tC.js.map +0 -1
  57. package/dist/ManageRole-ByqBmjuc-CApL3DJy.js.map +0 -1
  58. package/dist/MedplatFormWrapper-DbdQUpEu.js.map +0 -1
  59. package/dist/RoleManagement-CLaEJ90J-BW0tG5t9.js.map +0 -1
  60. package/dist/index-CdFr9tGu.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { jsx as k } from "react/jsx-runtime";
2
2
  import { lazy as Q } from "react";
3
3
  import { execute as X } from "@/common/services/QueryBuilder";
4
- import { showToast as oe } from "@/common/toaster/toaster";
4
+ import { showToast as ot } from "@/common/toaster/toaster";
5
5
  import './index.css';const q = Q(
6
6
  () => import("@/views/feature-components/VerifyRoute.jsx")
7
7
  ), z = Q(
8
- () => import("./MedplatFormWrapper-DbdQUpEu.js").then((r) => r.M)
9
- ), Ee = [
8
+ () => import("./MedplatFormWrapper-CEXGoLC1.js").then((t) => t.M)
9
+ ), Et = [
10
10
  {
11
11
  path: "medplat/form/:formCode",
12
12
  element: /* @__PURE__ */ k(
@@ -23,78 +23,78 @@ import './index.css';const q = Q(
23
23
  element: /* @__PURE__ */ k(q, { url: "medplat/form", component: /* @__PURE__ */ k(z, {}) })
24
24
  }
25
25
  ];
26
- function ue(r) {
27
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
26
+ function ut(t) {
27
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
28
28
  }
29
- var H = { exports: {} }, ce = H.exports, G;
30
- function le() {
31
- return G || (G = 1, (function(r, a) {
29
+ var H = { exports: {} }, ct = H.exports, G;
30
+ function lt() {
31
+ return G || (G = 1, (function(t, s) {
32
32
  (function(c, f) {
33
- r.exports = f();
34
- })(ce, (function() {
35
- var c = 1e3, f = 6e4, l = 36e5, m = "millisecond", $ = "second", S = "minute", w = "hour", M = "day", b = "week", O = "month", W = "quarter", T = "year", E = "date", B = "Invalid Date", ne = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, se = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ae = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(i) {
33
+ t.exports = f();
34
+ })(ct, (function() {
35
+ var c = 1e3, f = 6e4, l = 36e5, m = "millisecond", $ = "second", S = "minute", w = "hour", M = "day", j = "week", O = "month", W = "quarter", T = "year", P = "date", J = "Invalid Date", nt = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, st = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, at = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(i) {
36
36
  var n = ["th", "st", "nd", "rd"], e = i % 100;
37
37
  return "[" + i + (n[(e - 20) % 10] || n[e] || n[0]) + "]";
38
38
  } }, x = function(i, n, e) {
39
- var s = String(i);
40
- return !s || s.length >= n ? i : "" + Array(n + 1 - s.length).join(e) + i;
41
- }, ie = { s: x, z: function(i) {
42
- var n = -i.utcOffset(), e = Math.abs(n), s = Math.floor(e / 60), t = e % 60;
43
- return (n <= 0 ? "+" : "-") + x(s, 2, "0") + ":" + x(t, 2, "0");
39
+ var a = String(i);
40
+ return !a || a.length >= n ? i : "" + Array(n + 1 - a.length).join(e) + i;
41
+ }, it = { s: x, z: function(i) {
42
+ var n = -i.utcOffset(), e = Math.abs(n), a = Math.floor(e / 60), r = e % 60;
43
+ return (n <= 0 ? "+" : "-") + x(a, 2, "0") + ":" + x(r, 2, "0");
44
44
  }, m: function i(n, e) {
45
45
  if (n.date() < e.date()) return -i(e, n);
46
- var s = 12 * (e.year() - n.year()) + (e.month() - n.month()), t = n.clone().add(s, O), o = e - t < 0, u = n.clone().add(s + (o ? -1 : 1), O);
47
- return +(-(s + (e - t) / (o ? t - u : u - t)) || 0);
46
+ var a = 12 * (e.year() - n.year()) + (e.month() - n.month()), r = n.clone().add(a, O), o = e - r < 0, u = n.clone().add(a + (o ? -1 : 1), O);
47
+ return +(-(a + (e - r) / (o ? r - u : u - r)) || 0);
48
48
  }, a: function(i) {
49
49
  return i < 0 ? Math.ceil(i) || 0 : Math.floor(i);
50
50
  }, p: function(i) {
51
- return { M: O, y: T, w: b, d: M, D: E, h: w, m: S, s: $, ms: m, Q: W }[i] || String(i || "").toLowerCase().replace(/s$/, "");
51
+ return { M: O, y: T, w: j, d: M, D: P, h: w, m: S, s: $, ms: m, Q: W }[i] || String(i || "").toLowerCase().replace(/s$/, "");
52
52
  }, u: function(i) {
53
53
  return i === void 0;
54
- } }, v = "en", L = {};
55
- L[v] = ae;
56
- var J = "$isDayjsObject", F = function(i) {
57
- return i instanceof j || !(!i || !i[J]);
58
- }, U = function i(n, e, s) {
59
- var t;
60
- if (!n) return v;
54
+ } }, N = "en", L = {};
55
+ L[N] = at;
56
+ var B = "$isDayjsObject", F = function(i) {
57
+ return i instanceof U || !(!i || !i[B]);
58
+ }, v = function i(n, e, a) {
59
+ var r;
60
+ if (!n) return N;
61
61
  if (typeof n == "string") {
62
62
  var o = n.toLowerCase();
63
- L[o] && (t = o), e && (L[o] = e, t = o);
63
+ L[o] && (r = o), e && (L[o] = e, r = o);
64
64
  var u = n.split("-");
65
- if (!t && u.length > 1) return i(u[0]);
65
+ if (!r && u.length > 1) return i(u[0]);
66
66
  } else {
67
67
  var d = n.name;
68
- L[d] = n, t = d;
68
+ L[d] = n, r = d;
69
69
  }
70
- return !s && t && (v = t), t || !s && v;
70
+ return !a && r && (N = r), r || !a && N;
71
71
  }, g = function(i, n) {
72
72
  if (F(i)) return i.clone();
73
73
  var e = typeof n == "object" ? n : {};
74
- return e.date = i, e.args = arguments, new j(e);
75
- }, h = ie;
76
- h.l = U, h.i = F, h.w = function(i, n) {
74
+ return e.date = i, e.args = arguments, new U(e);
75
+ }, h = it;
76
+ h.l = v, h.i = F, h.w = function(i, n) {
77
77
  return g(i, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
78
78
  };
79
- var j = (function() {
79
+ var U = (function() {
80
80
  function i(e) {
81
- this.$L = U(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[J] = !0;
81
+ this.$L = v(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[B] = !0;
82
82
  }
83
83
  var n = i.prototype;
84
84
  return n.parse = function(e) {
85
- this.$d = (function(s) {
86
- var t = s.date, o = s.utc;
87
- if (t === null) return /* @__PURE__ */ new Date(NaN);
88
- if (h.u(t)) return /* @__PURE__ */ new Date();
89
- if (t instanceof Date) return new Date(t);
90
- if (typeof t == "string" && !/Z$/i.test(t)) {
91
- var u = t.match(ne);
85
+ this.$d = (function(a) {
86
+ var r = a.date, o = a.utc;
87
+ if (r === null) return /* @__PURE__ */ new Date(NaN);
88
+ if (h.u(r)) return /* @__PURE__ */ new Date();
89
+ if (r instanceof Date) return new Date(r);
90
+ if (typeof r == "string" && !/Z$/i.test(r)) {
91
+ var u = r.match(nt);
92
92
  if (u) {
93
93
  var d = u[2] - 1 || 0, p = (u[7] || "0").substring(0, 3);
94
94
  return o ? new Date(Date.UTC(u[1], d, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, p)) : new Date(u[1], d, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, p);
95
95
  }
96
96
  }
97
- return new Date(t);
97
+ return new Date(r);
98
98
  })(e), this.init();
99
99
  }, n.init = function() {
100
100
  var e = this.$d;
@@ -102,113 +102,113 @@ function le() {
102
102
  }, n.$utils = function() {
103
103
  return h;
104
104
  }, n.isValid = function() {
105
- return this.$d.toString() !== B;
106
- }, n.isSame = function(e, s) {
107
- var t = g(e);
108
- return this.startOf(s) <= t && t <= this.endOf(s);
109
- }, n.isAfter = function(e, s) {
110
- return g(e) < this.startOf(s);
111
- }, n.isBefore = function(e, s) {
112
- return this.endOf(s) < g(e);
113
- }, n.$g = function(e, s, t) {
114
- return h.u(e) ? this[s] : this.set(t, e);
105
+ return this.$d.toString() !== J;
106
+ }, n.isSame = function(e, a) {
107
+ var r = g(e);
108
+ return this.startOf(a) <= r && r <= this.endOf(a);
109
+ }, n.isAfter = function(e, a) {
110
+ return g(e) < this.startOf(a);
111
+ }, n.isBefore = function(e, a) {
112
+ return this.endOf(a) < g(e);
113
+ }, n.$g = function(e, a, r) {
114
+ return h.u(e) ? this[a] : this.set(r, e);
115
115
  }, n.unix = function() {
116
116
  return Math.floor(this.valueOf() / 1e3);
117
117
  }, n.valueOf = function() {
118
118
  return this.$d.getTime();
119
- }, n.startOf = function(e, s) {
120
- var t = this, o = !!h.u(s) || s, u = h.p(e), d = function(R, D) {
121
- var I = h.w(t.$u ? Date.UTC(t.$y, D, R) : new Date(t.$y, D, R), t);
119
+ }, n.startOf = function(e, a) {
120
+ var r = this, o = !!h.u(a) || a, u = h.p(e), d = function(R, D) {
121
+ var I = h.w(r.$u ? Date.UTC(r.$y, D, R) : new Date(r.$y, D, R), r);
122
122
  return o ? I : I.endOf(M);
123
123
  }, p = function(R, D) {
124
- return h.w(t.toDate()[R].apply(t.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), t);
125
- }, _ = this.$W, y = this.$M, A = this.$D, P = "set" + (this.$u ? "UTC" : "");
124
+ return h.w(r.toDate()[R].apply(r.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), r);
125
+ }, y = this.$W, _ = this.$M, A = this.$D, E = "set" + (this.$u ? "UTC" : "");
126
126
  switch (u) {
127
127
  case T:
128
128
  return o ? d(1, 0) : d(31, 11);
129
129
  case O:
130
- return o ? d(1, y) : d(0, y + 1);
131
- case b:
132
- var C = this.$locale().weekStart || 0, Y = (_ < C ? _ + 7 : _) - C;
133
- return d(o ? A - Y : A + (6 - Y), y);
130
+ return o ? d(1, _) : d(0, _ + 1);
131
+ case j:
132
+ var C = this.$locale().weekStart || 0, Y = (y < C ? y + 7 : y) - C;
133
+ return d(o ? A - Y : A + (6 - Y), _);
134
134
  case M:
135
- case E:
136
- return p(P + "Hours", 0);
135
+ case P:
136
+ return p(E + "Hours", 0);
137
137
  case w:
138
- return p(P + "Minutes", 1);
138
+ return p(E + "Minutes", 1);
139
139
  case S:
140
- return p(P + "Seconds", 2);
140
+ return p(E + "Seconds", 2);
141
141
  case $:
142
- return p(P + "Milliseconds", 3);
142
+ return p(E + "Milliseconds", 3);
143
143
  default:
144
144
  return this.clone();
145
145
  }
146
146
  }, n.endOf = function(e) {
147
147
  return this.startOf(e, !1);
148
- }, n.$set = function(e, s) {
149
- var t, o = h.p(e), u = "set" + (this.$u ? "UTC" : ""), d = (t = {}, t[M] = u + "Date", t[E] = u + "Date", t[O] = u + "Month", t[T] = u + "FullYear", t[w] = u + "Hours", t[S] = u + "Minutes", t[$] = u + "Seconds", t[m] = u + "Milliseconds", t)[o], p = o === M ? this.$D + (s - this.$W) : s;
148
+ }, n.$set = function(e, a) {
149
+ var r, o = h.p(e), u = "set" + (this.$u ? "UTC" : ""), d = (r = {}, r[M] = u + "Date", r[P] = u + "Date", r[O] = u + "Month", r[T] = u + "FullYear", r[w] = u + "Hours", r[S] = u + "Minutes", r[$] = u + "Seconds", r[m] = u + "Milliseconds", r)[o], p = o === M ? this.$D + (a - this.$W) : a;
150
150
  if (o === O || o === T) {
151
- var _ = this.clone().set(E, 1);
152
- _.$d[d](p), _.init(), this.$d = _.set(E, Math.min(this.$D, _.daysInMonth())).$d;
151
+ var y = this.clone().set(P, 1);
152
+ y.$d[d](p), y.init(), this.$d = y.set(P, Math.min(this.$D, y.daysInMonth())).$d;
153
153
  } else d && this.$d[d](p);
154
154
  return this.init(), this;
155
- }, n.set = function(e, s) {
156
- return this.clone().$set(e, s);
155
+ }, n.set = function(e, a) {
156
+ return this.clone().$set(e, a);
157
157
  }, n.get = function(e) {
158
158
  return this[h.p(e)]();
159
- }, n.add = function(e, s) {
160
- var t, o = this;
159
+ }, n.add = function(e, a) {
160
+ var r, o = this;
161
161
  e = Number(e);
162
- var u = h.p(s), d = function(y) {
162
+ var u = h.p(a), d = function(_) {
163
163
  var A = g(o);
164
- return h.w(A.date(A.date() + Math.round(y * e)), o);
164
+ return h.w(A.date(A.date() + Math.round(_ * e)), o);
165
165
  };
166
166
  if (u === O) return this.set(O, this.$M + e);
167
167
  if (u === T) return this.set(T, this.$y + e);
168
168
  if (u === M) return d(1);
169
- if (u === b) return d(7);
170
- var p = (t = {}, t[S] = f, t[w] = l, t[$] = c, t)[u] || 1, _ = this.$d.getTime() + e * p;
171
- return h.w(_, this);
172
- }, n.subtract = function(e, s) {
173
- return this.add(-1 * e, s);
169
+ if (u === j) return d(7);
170
+ var p = (r = {}, r[S] = f, r[w] = l, r[$] = c, r)[u] || 1, y = this.$d.getTime() + e * p;
171
+ return h.w(y, this);
172
+ }, n.subtract = function(e, a) {
173
+ return this.add(-1 * e, a);
174
174
  }, n.format = function(e) {
175
- var s = this, t = this.$locale();
176
- if (!this.isValid()) return t.invalidDate || B;
177
- var o = e || "YYYY-MM-DDTHH:mm:ssZ", u = h.z(this), d = this.$H, p = this.$m, _ = this.$M, y = t.weekdays, A = t.months, P = t.meridiem, C = function(D, I, N, V) {
178
- return D && (D[I] || D(s, o)) || N[I].slice(0, V);
175
+ var a = this, r = this.$locale();
176
+ if (!this.isValid()) return r.invalidDate || J;
177
+ var o = e || "YYYY-MM-DDTHH:mm:ssZ", u = h.z(this), d = this.$H, p = this.$m, y = this.$M, _ = r.weekdays, A = r.months, E = r.meridiem, C = function(D, I, b, V) {
178
+ return D && (D[I] || D(a, o)) || b[I].slice(0, V);
179
179
  }, Y = function(D) {
180
180
  return h.s(d % 12 || 12, D, "0");
181
- }, R = P || function(D, I, N) {
181
+ }, R = E || function(D, I, b) {
182
182
  var V = D < 12 ? "AM" : "PM";
183
- return N ? V.toLowerCase() : V;
183
+ return b ? V.toLowerCase() : V;
184
184
  };
185
- return o.replace(se, (function(D, I) {
186
- return I || (function(N) {
187
- switch (N) {
185
+ return o.replace(st, (function(D, I) {
186
+ return I || (function(b) {
187
+ switch (b) {
188
188
  case "YY":
189
- return String(s.$y).slice(-2);
189
+ return String(a.$y).slice(-2);
190
190
  case "YYYY":
191
- return h.s(s.$y, 4, "0");
191
+ return h.s(a.$y, 4, "0");
192
192
  case "M":
193
- return _ + 1;
193
+ return y + 1;
194
194
  case "MM":
195
- return h.s(_ + 1, 2, "0");
195
+ return h.s(y + 1, 2, "0");
196
196
  case "MMM":
197
- return C(t.monthsShort, _, A, 3);
197
+ return C(r.monthsShort, y, A, 3);
198
198
  case "MMMM":
199
- return C(A, _);
199
+ return C(A, y);
200
200
  case "D":
201
- return s.$D;
201
+ return a.$D;
202
202
  case "DD":
203
- return h.s(s.$D, 2, "0");
203
+ return h.s(a.$D, 2, "0");
204
204
  case "d":
205
- return String(s.$W);
205
+ return String(a.$W);
206
206
  case "dd":
207
- return C(t.weekdaysMin, s.$W, y, 2);
207
+ return C(r.weekdaysMin, a.$W, _, 2);
208
208
  case "ddd":
209
- return C(t.weekdaysShort, s.$W, y, 3);
209
+ return C(r.weekdaysShort, a.$W, _, 3);
210
210
  case "dddd":
211
- return y[s.$W];
211
+ return _[a.$W];
212
212
  case "H":
213
213
  return String(d);
214
214
  case "HH":
@@ -226,11 +226,11 @@ function le() {
226
226
  case "mm":
227
227
  return h.s(p, 2, "0");
228
228
  case "s":
229
- return String(s.$s);
229
+ return String(a.$s);
230
230
  case "ss":
231
- return h.s(s.$s, 2, "0");
231
+ return h.s(a.$s, 2, "0");
232
232
  case "SSS":
233
- return h.s(s.$ms, 3, "0");
233
+ return h.s(a.$ms, 3, "0");
234
234
  case "Z":
235
235
  return u;
236
236
  }
@@ -239,8 +239,8 @@ function le() {
239
239
  }));
240
240
  }, n.utcOffset = function() {
241
241
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
242
- }, n.diff = function(e, s, t) {
243
- var o, u = this, d = h.p(s), p = g(e), _ = (p.utcOffset() - this.utcOffset()) * f, y = this - p, A = function() {
242
+ }, n.diff = function(e, a, r) {
243
+ var o, u = this, d = h.p(a), p = g(e), y = (p.utcOffset() - this.utcOffset()) * f, _ = this - p, A = function() {
244
244
  return h.m(u, p);
245
245
  };
246
246
  switch (d) {
@@ -253,33 +253,33 @@ function le() {
253
253
  case W:
254
254
  o = A() / 3;
255
255
  break;
256
- case b:
257
- o = (y - _) / 6048e5;
256
+ case j:
257
+ o = (_ - y) / 6048e5;
258
258
  break;
259
259
  case M:
260
- o = (y - _) / 864e5;
260
+ o = (_ - y) / 864e5;
261
261
  break;
262
262
  case w:
263
- o = y / l;
263
+ o = _ / l;
264
264
  break;
265
265
  case S:
266
- o = y / f;
266
+ o = _ / f;
267
267
  break;
268
268
  case $:
269
- o = y / c;
269
+ o = _ / c;
270
270
  break;
271
271
  default:
272
- o = y;
272
+ o = _;
273
273
  }
274
- return t ? o : h.a(o);
274
+ return r ? o : h.a(o);
275
275
  }, n.daysInMonth = function() {
276
276
  return this.endOf(O).$D;
277
277
  }, n.$locale = function() {
278
278
  return L[this.$L];
279
- }, n.locale = function(e, s) {
279
+ }, n.locale = function(e, a) {
280
280
  if (!e) return this.$L;
281
- var t = this.clone(), o = U(e, s, !0);
282
- return o && (t.$L = o), t;
281
+ var r = this.clone(), o = v(e, a, !0);
282
+ return o && (r.$L = o), r;
283
283
  }, n.clone = function() {
284
284
  return h.w(this.$d, this);
285
285
  }, n.toDate = function() {
@@ -291,64 +291,64 @@ function le() {
291
291
  }, n.toString = function() {
292
292
  return this.$d.toUTCString();
293
293
  }, i;
294
- })(), Z = j.prototype;
295
- return g.prototype = Z, [["$ms", m], ["$s", $], ["$m", S], ["$H", w], ["$W", M], ["$M", O], ["$y", T], ["$D", E]].forEach((function(i) {
294
+ })(), Z = U.prototype;
295
+ return g.prototype = Z, [["$ms", m], ["$s", $], ["$m", S], ["$H", w], ["$W", M], ["$M", O], ["$y", T], ["$D", P]].forEach((function(i) {
296
296
  Z[i[1]] = function(n) {
297
297
  return this.$g(n, i[0], i[1]);
298
298
  };
299
299
  })), g.extend = function(i, n) {
300
- return i.$i || (i(n, j, g), i.$i = !0), g;
301
- }, g.locale = U, g.isDayjs = F, g.unix = function(i) {
300
+ return i.$i || (i(n, U, g), i.$i = !0), g;
301
+ }, g.locale = v, g.isDayjs = F, g.unix = function(i) {
302
302
  return g(1e3 * i);
303
- }, g.en = L[v], g.Ls = L, g.p = {}, g;
303
+ }, g.en = L[N], g.Ls = L, g.p = {}, g;
304
304
  }));
305
305
  })(H)), H.exports;
306
306
  }
307
- var fe = le();
308
- const K = /* @__PURE__ */ ue(fe), he = (r) => r.replace(/\[(\d+)\](?=\.)/g, ".$1").replace(/\[(\d+)\]$/g, ".$1"), ee = (r) => Object.entries(r || {}).reduce((c, [f, l]) => (l != null && (c[f] = l), c), {}), de = (r) => new URLSearchParams(ee(r)).toString(), me = (r) => Object.fromEntries(r == null ? void 0 : r.entries()), pe = (r) => {
309
- var a;
310
- return (a = r == null ? void 0 : r.match(/{{(.*?)}}/g)) == null ? void 0 : a.map((c) => c.slice(2, -2));
311
- }, $e = ({
312
- setterMethodCode: r,
313
- params: a = []
307
+ var ft = lt();
308
+ const K = /* @__PURE__ */ ut(ft), ht = (t) => t.replace(/\[(\d+)\](?=\.)/g, ".$1").replace(/\[(\d+)\]$/g, ".$1"), tt = (t) => Object.entries(t || {}).reduce((c, [f, l]) => (l != null && (c[f] = l), c), {}), dt = (t) => new URLSearchParams(tt(t)).toString(), mt = (t) => Object.fromEntries(t == null ? void 0 : t.entries()), pt = (t) => Array.isArray(t) ? t.length > 0 && t[0] !== null && typeof t[0] == "object" && !Array.isArray(t[0]) ? JSON.stringify(t) : t.map((s) => String(s ?? "")).join(",") : t, $t = (t) => {
309
+ var s;
310
+ return (s = t == null ? void 0 : t.match(/{{(.*?)}}/g)) == null ? void 0 : s.map((c) => c.slice(2, -2));
311
+ }, gt = ({
312
+ setterMethodCode: t,
313
+ params: s = []
314
314
  }) => {
315
- if (!r) return r;
316
- let c = r;
317
- return a.forEach(({ key: f, value: l }) => {
315
+ if (!t) return t;
316
+ let c = t;
317
+ return s.forEach(({ key: f, value: l }) => {
318
318
  l && (c = c.replaceAll(`#${f}#`, l));
319
319
  }), c;
320
- }, ge = ({
321
- value: r,
322
- iteratorIndicesMap: a = {},
320
+ }, yt = ({
321
+ value: t,
322
+ iteratorIndicesMap: s = {},
323
323
  formIndexes: c = {}
324
324
  }) => {
325
325
  const f = 'getValues("__loggedInUserId__")', l = 'getValues("__formData__")', m = 'getValues("__infoData__")', $ = 'getValues("__utilityData__")', S = 'getValues("__routeData__")', w = 'getValues("__accessRights__")';
326
- let M = te({
327
- value: r,
328
- iteratorIndicesMap: a,
326
+ let M = et({
327
+ value: t,
328
+ iteratorIndicesMap: s,
329
329
  formIndexes: c,
330
330
  withDotNotation: !1
331
331
  });
332
332
  return M = M.replaceAll("__loggedInUserId__", f).replaceAll("__formData__", l).replaceAll("__infoData__", m).replaceAll("__utilityData__", $).replaceAll("__routeData__", S).replaceAll("__accessRights__", w), M;
333
- }, te = ({
334
- value: r = null,
335
- iteratorIndicesMap: a = {},
333
+ }, et = ({
334
+ value: t = null,
335
+ iteratorIndicesMap: s = {},
336
336
  formIndexes: c = {},
337
337
  withDotNotation: f = !0
338
338
  }) => {
339
- if (!r) return r;
340
- let l = r;
339
+ if (!t) return t;
340
+ let l = t;
341
341
  return Object.keys(c).forEach((m) => {
342
342
  if (l.includes(`[${m}]`)) {
343
343
  let $;
344
344
  const S = c[m];
345
- a.hasOwnProperty(S) ? $ = a[S] : $ = -1, l = l.replaceAll(m, $);
345
+ s.hasOwnProperty(S) ? $ = s[S] : $ = -1, l = l.replaceAll(m, $);
346
346
  }
347
- }), f && (l = he(l)), l;
348
- }, _e = (r, a, c, f, { dayjs: l }) => {
349
- const m = ge({
350
- value: r,
351
- iteratorIndicesMap: a,
347
+ }), f && (l = ht(l)), l;
348
+ }, _t = (t, s, c, f, { dayjs: l }) => {
349
+ const m = yt({
350
+ value: t,
351
+ iteratorIndicesMap: s,
352
352
  formIndexes: c
353
353
  });
354
354
  try {
@@ -357,47 +357,47 @@ const K = /* @__PURE__ */ ue(fe), he = (r) => r.replace(/\[(\d+)\](?=\.)/g, ".$1
357
357
  l
358
358
  );
359
359
  } catch ($) {
360
- return oe({ message: `Error evaluating ${r}`, type: "error" }), console.error(`Error evaluating ${r} :`, $), null;
360
+ return ot({ message: `Error evaluating ${t}`, type: "error" }), console.error(`Error evaluating ${t} :`, $), null;
361
361
  }
362
- }, ye = (r) => {
363
- let a = JSON.parse(
362
+ }, Dt = (t) => {
363
+ let s = JSON.parse(
364
364
  sessionStorage.getItem("medplatFormRoutes") || "{}"
365
365
  );
366
- a[r] = !0, sessionStorage.setItem(
366
+ s[t] = !0, sessionStorage.setItem(
367
367
  "medplatFormRoutes",
368
- JSON.stringify(a)
368
+ JSON.stringify(s)
369
369
  );
370
- }, De = (r) => JSON.parse(
370
+ }, St = (t) => JSON.parse(
371
371
  sessionStorage.getItem("medplatFormRoutes") || "{}"
372
- )[r] || !1, re = (r, a = "") => {
372
+ )[t] || !1, rt = (t, s = "") => {
373
373
  var f, l;
374
374
  let c = [];
375
- for (const m in r) {
376
- const $ = a ? `${a}.${m}` : m;
377
- (f = r[m]) != null && f.types || (l = r[m]) != null && l.message ? c.push($) : typeof r[m] == "object" && (c = c.concat(re(r[m], $)));
375
+ for (const m in t) {
376
+ const $ = s ? `${s}.${m}` : m;
377
+ (f = t[m]) != null && f.types || (l = t[m]) != null && l.message ? c.push($) : typeof t[m] == "object" && (c = c.concat(rt(t[m], $)));
378
378
  }
379
379
  return c;
380
- }, Se = (r, a) => Array.isArray(r) && r.length > 0 ? r.some(
381
- (f) => a == null ? void 0 : a.includes(f)
382
- ) : !1, Me = (r, a, c, f = !0) => {
383
- if ((a == null || a === "") && f)
380
+ }, Mt = (t, s) => Array.isArray(t) && t.length > 0 ? t.some(
381
+ (f) => s == null ? void 0 : s.includes(f)
382
+ ) : !1, At = (t, s, c, f = !0) => {
383
+ if ((s == null || s === "") && f)
384
384
  return "N.A";
385
- switch (r) {
385
+ switch (t) {
386
386
  case "text":
387
387
  case "location":
388
388
  case "listValueFieldValue":
389
389
  case "html":
390
- return a;
390
+ return s;
391
391
  case "mediaPreview":
392
- return a;
392
+ return s;
393
393
  case "boolean":
394
- return a ? "Yes" : "No";
394
+ return s ? "Yes" : "No";
395
395
  case "date":
396
- return K(a).format("DD/MM/YYYY");
396
+ return K(s).format("DD/MM/YYYY");
397
397
  case "dateAndTime":
398
- return K(a).format("DD/MM/YYYY HH:mm:ss");
398
+ return K(s).format("DD/MM/YYYY HH:mm:ss");
399
399
  case "gender":
400
- switch (a) {
400
+ switch (s) {
401
401
  case "M":
402
402
  return "Male";
403
403
  case "F":
@@ -408,7 +408,7 @@ const K = /* @__PURE__ */ ue(fe), he = (r) => r.replace(/\[(\d+)\](?=\.)/g, ".$1
408
408
  }
409
409
  break;
410
410
  case "familyPlanning":
411
- switch (a) {
411
+ switch (s) {
412
412
  case "FMLSTR":
413
413
  return "FEMALE STERILIZATION";
414
414
  case "MLSTR":
@@ -444,7 +444,7 @@ const K = /* @__PURE__ */ ue(fe), he = (r) => r.replace(/\[(\d+)\](?=\.)/g, ".$1
444
444
  }
445
445
  break;
446
446
  case "sdScore":
447
- switch (a) {
447
+ switch (s) {
448
448
  case "SD4":
449
449
  return "Less than -4";
450
450
  case "SD3":
@@ -459,83 +459,84 @@ const K = /* @__PURE__ */ ue(fe), he = (r) => r.replace(/\[(\d+)\](?=\.)/g, ".$1
459
459
  return "NONE";
460
460
  }
461
461
  case "array": {
462
- if (!Array.isArray(a))
463
- return a;
462
+ if (!Array.isArray(s))
463
+ return s;
464
464
  switch (c) {
465
465
  case "BULLETED":
466
- return a.map((l) => `• ${l}`);
466
+ return s.map((l) => `• ${l}`);
467
467
  case "NUMBERED":
468
- return a.map((l, m) => `${m + 1}. ${l}`);
468
+ return s.map((l, m) => `${m + 1}. ${l}`);
469
469
  case "COMMA":
470
- return a.join(", ");
470
+ return s.join(", ");
471
471
  default:
472
- return a.join(" ");
472
+ return s.join(" ");
473
473
  }
474
474
  }
475
475
  default:
476
- return a;
476
+ return s;
477
477
  }
478
- }, Ae = async (r) => {
479
- if (!r || r.length === 0)
478
+ }, Ot = async (t) => {
479
+ if (!t || t.length === 0)
480
480
  return [];
481
- const a = (await X({
481
+ const s = (await X({
482
482
  code: "medplat_form_listvalue_field_value_details",
483
483
  parameters: {
484
- ids: r
484
+ ids: t
485
485
  }
486
486
  })).data;
487
- return a == null ? void 0 : a.result;
488
- }, Oe = async (r, a) => {
489
- if (!r || r.length === 0)
487
+ return s == null ? void 0 : s.result;
488
+ }, wt = async (t, s) => {
489
+ if (!t || t.length === 0)
490
490
  return [];
491
491
  const c = {
492
- locationIds: r.join(",")
492
+ locationIds: t.join(",")
493
493
  };
494
- a && (c.lang = a);
494
+ s && (c.lang = s);
495
495
  const f = (await X({
496
496
  code: "medplat_form_get_location_hierarchies",
497
497
  parameters: c
498
498
  })).data;
499
499
  return f == null ? void 0 : f.result;
500
- }, we = ({
501
- preValidationQueries: r,
502
- formContext: a,
500
+ }, Tt = ({
501
+ preValidationQueries: t,
502
+ formContext: s,
503
503
  formIndexes: c,
504
504
  iteratorIndicesMap: f
505
- }) => Array.isArray(r) ? r.map((l) => {
505
+ }) => Array.isArray(t) ? t.map((l) => {
506
506
  const m = {};
507
507
  return (l.params || []).forEach(($) => {
508
- const S = Te.replaceFormIndexes({
508
+ const S = It.replaceFormIndexes({
509
509
  value: $.valueKey,
510
510
  iteratorIndicesMap: f,
511
511
  formIndexes: c
512
512
  });
513
- m[$.key] = a.getValues(S);
513
+ m[$.key] = s.getValues(S);
514
514
  }), {
515
515
  queryCode: l.queryCode,
516
516
  parameters: m
517
517
  };
518
- }) : [], Te = {
519
- convertToSearchParams: de,
520
- extractSearchParams: me,
521
- extractDynamicContent: pe,
522
- replaceFormIndexes: te,
523
- evaluate: _e,
524
- transformWithDisplayType: Me,
525
- addRoutePathInSessionStorage: ye,
526
- isRoutePresentInSessionStorage: De,
527
- flattenErrors: re,
528
- checkFormErrors: Se,
529
- getFilteredObject: ee,
530
- fetchListValueDetailByIds: Ae,
531
- fetchLocationHierarchyByIds: Oe,
532
- buildPreValidationQueries: we,
533
- replacePlaceholdersWithConfigParams: $e
518
+ }) : [], It = {
519
+ convertToSearchParams: dt,
520
+ extractSearchParams: mt,
521
+ serialiseMultiRowParam: pt,
522
+ extractDynamicContent: $t,
523
+ replaceFormIndexes: et,
524
+ evaluate: _t,
525
+ transformWithDisplayType: At,
526
+ addRoutePathInSessionStorage: Dt,
527
+ isRoutePresentInSessionStorage: St,
528
+ flattenErrors: rt,
529
+ checkFormErrors: Mt,
530
+ getFilteredObject: tt,
531
+ fetchListValueDetailByIds: Ot,
532
+ fetchLocationHierarchyByIds: wt,
533
+ buildPreValidationQueries: Tt,
534
+ replacePlaceholdersWithConfigParams: gt
534
535
  };
535
536
  export {
536
- Te as F,
537
+ It as F,
537
538
  K as U,
538
- Ee as c,
539
- ue as g
539
+ Et as c,
540
+ ut as g
540
541
  };
541
- //# sourceMappingURL=index-CdFr9tGu.js.map
542
+ //# sourceMappingURL=index-CnfGzeaj.js.map