@argusoft/medplat-form-engine 1.0.11 → 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.
- package/dist/{AddFeatures-CkTu7sOI-DQFBCBim.js → AddFeatures-DLbjDGei-Dg8WYww8.js} +2 -2
- package/dist/{AddFeatures-CkTu7sOI-DQFBCBim.js.map → AddFeatures-DLbjDGei-Dg8WYww8.js.map} +1 -1
- package/dist/{ChangePasswordModal-MV7g8tkA-Duk536Oa.js → ChangePasswordModal-MV7g8tkA-D6c6QM4F.js} +2 -2
- package/dist/{ChangePasswordModal-MV7g8tkA-Duk536Oa.js.map → ChangePasswordModal-MV7g8tkA-D6c6QM4F.js.map} +1 -1
- package/dist/{ConditionConfig-GDCXIg3C-XbR1fp6h.js → ConditionConfig-GDCXIg3C-COtWwHe3.js} +2 -2
- package/dist/{ConditionConfig-GDCXIg3C-XbR1fp6h.js.map → ConditionConfig-GDCXIg3C-COtWwHe3.js.map} +1 -1
- package/dist/{ImmunizationConfigurationBase-DZ8EqXlF-CdG02LFN.js → ImmunizationConfigurationBase-DZ8EqXlF-D645-PAk.js} +2 -2
- package/dist/{ImmunizationConfigurationBase-DZ8EqXlF-CdG02LFN.js.map → ImmunizationConfigurationBase-DZ8EqXlF-D645-PAk.js.map} +1 -1
- package/dist/{ManageEventConfiguration-BJxS2Su0-CLP6VZyB.js → ManageEventConfiguration-BJxS2Su0-DBdaQcPo.js} +4 -4
- package/dist/{ManageEventConfiguration-BJxS2Su0-CLP6VZyB.js.map → ManageEventConfiguration-BJxS2Su0-DBdaQcPo.js.map} +1 -1
- package/dist/{ManageRole-CuXmWQyp-ELNs9emF.js → ManageRole-BjIIXAlK-DY39p0FD.js} +2 -2
- package/dist/{ManageRole-CuXmWQyp-ELNs9emF.js.map → ManageRole-BjIIXAlK-DY39p0FD.js.map} +1 -1
- package/dist/{ManageUser-PHiTNyF8-D63df1GG.js → ManageUser-PHiTNyF8-Bm4bYqvt.js} +3 -3
- package/dist/{ManageUser-PHiTNyF8-D63df1GG.js.map → ManageUser-PHiTNyF8-Bm4bYqvt.js.map} +1 -1
- package/dist/{MedplatFormWrapper-BNTRYrFO.js → MedplatFormWrapper-CEXGoLC1.js} +3949 -3947
- package/dist/MedplatFormWrapper-CEXGoLC1.js.map +1 -0
- package/dist/MedplatFormWrapper.css +1 -1
- package/dist/{MobileTypeEventConfigModal-ChhO_A4f-Wd3d3SEP.js → MobileTypeEventConfigModal-ChhO_A4f-Dpq9010c.js} +2 -1
- package/dist/{MobileTypeEventConfigModal-ChhO_A4f-Wd3d3SEP.js.map → MobileTypeEventConfigModal-ChhO_A4f-Dpq9010c.js.map} +1 -1
- package/dist/{OtherTypeEventConfigModal-ZnCGWm9v-tpC-SI0P.js → OtherTypeEventConfigModal-ZnCGWm9v-CsQiv68d.js} +2 -1
- package/dist/{OtherTypeEventConfigModal-ZnCGWm9v-tpC-SI0P.js.map → OtherTypeEventConfigModal-ZnCGWm9v-CsQiv68d.js.map} +1 -1
- package/dist/{QueryManagement-DXA73N2j-s7-8jQY4.js → QueryManagement-DXA73N2j-BMDEgiCy.js} +2 -2
- package/dist/{QueryManagement-DXA73N2j-s7-8jQY4.js.map → QueryManagement-DXA73N2j-BMDEgiCy.js.map} +1 -1
- package/dist/{RoleManagement-C0feJCuq-CsxaM0rI.js → RoleManagement-v5Nyp1vr-BsTLfcMm.js} +13 -7
- package/dist/RoleManagement-v5Nyp1vr-BsTLfcMm.js.map +1 -0
- package/dist/{TypeConfiguration-C-lk8Szs-DKu6I5Im.js → TypeConfiguration-C-lk8Szs-qaofDyyM.js} +7 -6
- package/dist/{TypeConfiguration-C-lk8Szs-DKu6I5Im.js.map → TypeConfiguration-C-lk8Szs-qaofDyyM.js.map} +1 -1
- package/dist/{index-BQKWCEEG.js → index-CnfGzeaj.js} +217 -216
- package/dist/index-CnfGzeaj.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/MedplatFormWrapper-BNTRYrFO.js.map +0 -1
- package/dist/RoleManagement-C0feJCuq-CsxaM0rI.js.map +0 -1
- package/dist/index-BQKWCEEG.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
|
|
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-
|
|
9
|
-
),
|
|
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
|
|
27
|
-
return
|
|
26
|
+
function ut(t) {
|
|
27
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
28
28
|
}
|
|
29
|
-
var H = { exports: {} },
|
|
30
|
-
function
|
|
31
|
-
return G || (G = 1, (function(
|
|
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
|
-
|
|
34
|
-
})(
|
|
35
|
-
var c = 1e3, f = 6e4, l = 36e5, m = "millisecond", $ = "second", S = "minute", w = "hour", M = "day",
|
|
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
|
|
40
|
-
return !
|
|
41
|
-
},
|
|
42
|
-
var n = -i.utcOffset(), e = Math.abs(n),
|
|
43
|
-
return (n <= 0 ? "+" : "-") + x(
|
|
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
|
|
47
|
-
return +(-(
|
|
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:
|
|
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
|
-
} },
|
|
55
|
-
L[
|
|
56
|
-
var
|
|
57
|
-
return i instanceof
|
|
58
|
-
},
|
|
59
|
-
var
|
|
60
|
-
if (!n) return
|
|
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] && (
|
|
63
|
+
L[o] && (r = o), e && (L[o] = e, r = o);
|
|
64
64
|
var u = n.split("-");
|
|
65
|
-
if (!
|
|
65
|
+
if (!r && u.length > 1) return i(u[0]);
|
|
66
66
|
} else {
|
|
67
67
|
var d = n.name;
|
|
68
|
-
L[d] = n,
|
|
68
|
+
L[d] = n, r = d;
|
|
69
69
|
}
|
|
70
|
-
return !
|
|
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
|
|
75
|
-
}, h =
|
|
76
|
-
h.l =
|
|
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
|
|
79
|
+
var U = (function() {
|
|
80
80
|
function i(e) {
|
|
81
|
-
this.$L =
|
|
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(
|
|
86
|
-
var
|
|
87
|
-
if (
|
|
88
|
-
if (h.u(
|
|
89
|
-
if (
|
|
90
|
-
if (typeof
|
|
91
|
-
var u =
|
|
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(
|
|
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() !==
|
|
106
|
-
}, n.isSame = function(e,
|
|
107
|
-
var
|
|
108
|
-
return this.startOf(
|
|
109
|
-
}, n.isAfter = function(e,
|
|
110
|
-
return g(e) < this.startOf(
|
|
111
|
-
}, n.isBefore = function(e,
|
|
112
|
-
return this.endOf(
|
|
113
|
-
}, n.$g = function(e,
|
|
114
|
-
return h.u(e) ? this[
|
|
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,
|
|
120
|
-
var
|
|
121
|
-
var I = h.w(
|
|
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(
|
|
125
|
-
},
|
|
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,
|
|
131
|
-
case
|
|
132
|
-
var C = this.$locale().weekStart || 0, Y = (
|
|
133
|
-
return d(o ? A - Y : A + (6 - 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
|
|
136
|
-
return p(
|
|
135
|
+
case P:
|
|
136
|
+
return p(E + "Hours", 0);
|
|
137
137
|
case w:
|
|
138
|
-
return p(
|
|
138
|
+
return p(E + "Minutes", 1);
|
|
139
139
|
case S:
|
|
140
|
-
return p(
|
|
140
|
+
return p(E + "Seconds", 2);
|
|
141
141
|
case $:
|
|
142
|
-
return p(
|
|
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,
|
|
149
|
-
var
|
|
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
|
|
152
|
-
|
|
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,
|
|
156
|
-
return this.clone().$set(e,
|
|
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,
|
|
160
|
-
var
|
|
159
|
+
}, n.add = function(e, a) {
|
|
160
|
+
var r, o = this;
|
|
161
161
|
e = Number(e);
|
|
162
|
-
var u = h.p(
|
|
162
|
+
var u = h.p(a), d = function(_) {
|
|
163
163
|
var A = g(o);
|
|
164
|
-
return h.w(A.date(A.date() + Math.round(
|
|
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 ===
|
|
170
|
-
var p = (
|
|
171
|
-
return h.w(
|
|
172
|
-
}, n.subtract = function(e,
|
|
173
|
-
return this.add(-1 * e,
|
|
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
|
|
176
|
-
if (!this.isValid()) return
|
|
177
|
-
var o = e || "YYYY-MM-DDTHH:mm:ssZ", u = h.z(this), d = this.$H, p = this.$m,
|
|
178
|
-
return D && (D[I] || D(
|
|
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 =
|
|
181
|
+
}, R = E || function(D, I, b) {
|
|
182
182
|
var V = D < 12 ? "AM" : "PM";
|
|
183
|
-
return
|
|
183
|
+
return b ? V.toLowerCase() : V;
|
|
184
184
|
};
|
|
185
|
-
return o.replace(
|
|
186
|
-
return I || (function(
|
|
187
|
-
switch (
|
|
185
|
+
return o.replace(st, (function(D, I) {
|
|
186
|
+
return I || (function(b) {
|
|
187
|
+
switch (b) {
|
|
188
188
|
case "YY":
|
|
189
|
-
return String(
|
|
189
|
+
return String(a.$y).slice(-2);
|
|
190
190
|
case "YYYY":
|
|
191
|
-
return h.s(
|
|
191
|
+
return h.s(a.$y, 4, "0");
|
|
192
192
|
case "M":
|
|
193
|
-
return
|
|
193
|
+
return y + 1;
|
|
194
194
|
case "MM":
|
|
195
|
-
return h.s(
|
|
195
|
+
return h.s(y + 1, 2, "0");
|
|
196
196
|
case "MMM":
|
|
197
|
-
return C(
|
|
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
|
|
201
|
+
return a.$D;
|
|
202
202
|
case "DD":
|
|
203
|
-
return h.s(
|
|
203
|
+
return h.s(a.$D, 2, "0");
|
|
204
204
|
case "d":
|
|
205
|
-
return String(
|
|
205
|
+
return String(a.$W);
|
|
206
206
|
case "dd":
|
|
207
|
-
return C(
|
|
207
|
+
return C(r.weekdaysMin, a.$W, _, 2);
|
|
208
208
|
case "ddd":
|
|
209
|
-
return C(
|
|
209
|
+
return C(r.weekdaysShort, a.$W, _, 3);
|
|
210
210
|
case "dddd":
|
|
211
|
-
return
|
|
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(
|
|
229
|
+
return String(a.$s);
|
|
230
230
|
case "ss":
|
|
231
|
-
return h.s(
|
|
231
|
+
return h.s(a.$s, 2, "0");
|
|
232
232
|
case "SSS":
|
|
233
|
-
return h.s(
|
|
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,
|
|
243
|
-
var o, u = this, d = h.p(
|
|
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
|
|
257
|
-
o = (
|
|
256
|
+
case j:
|
|
257
|
+
o = (_ - y) / 6048e5;
|
|
258
258
|
break;
|
|
259
259
|
case M:
|
|
260
|
-
o = (
|
|
260
|
+
o = (_ - y) / 864e5;
|
|
261
261
|
break;
|
|
262
262
|
case w:
|
|
263
|
-
o =
|
|
263
|
+
o = _ / l;
|
|
264
264
|
break;
|
|
265
265
|
case S:
|
|
266
|
-
o =
|
|
266
|
+
o = _ / f;
|
|
267
267
|
break;
|
|
268
268
|
case $:
|
|
269
|
-
o =
|
|
269
|
+
o = _ / c;
|
|
270
270
|
break;
|
|
271
271
|
default:
|
|
272
|
-
o =
|
|
272
|
+
o = _;
|
|
273
273
|
}
|
|
274
|
-
return
|
|
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,
|
|
279
|
+
}, n.locale = function(e, a) {
|
|
280
280
|
if (!e) return this.$L;
|
|
281
|
-
var
|
|
282
|
-
return o && (
|
|
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 =
|
|
295
|
-
return g.prototype = Z, [["$ms", m], ["$s", $], ["$m", S], ["$H", w], ["$W", M], ["$M", O], ["$y", T], ["$D",
|
|
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,
|
|
301
|
-
}, g.locale =
|
|
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[
|
|
303
|
+
}, g.en = L[N], g.Ls = L, g.p = {}, g;
|
|
304
304
|
}));
|
|
305
305
|
})(H)), H.exports;
|
|
306
306
|
}
|
|
307
|
-
var
|
|
308
|
-
const K = /* @__PURE__ */
|
|
309
|
-
var
|
|
310
|
-
return (
|
|
311
|
-
},
|
|
312
|
-
setterMethodCode:
|
|
313
|
-
params:
|
|
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 (!
|
|
316
|
-
let c =
|
|
317
|
-
return
|
|
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
|
-
},
|
|
321
|
-
value:
|
|
322
|
-
iteratorIndicesMap:
|
|
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 =
|
|
327
|
-
value:
|
|
328
|
-
iteratorIndicesMap:
|
|
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
|
-
},
|
|
334
|
-
value:
|
|
335
|
-
iteratorIndicesMap:
|
|
333
|
+
}, et = ({
|
|
334
|
+
value: t = null,
|
|
335
|
+
iteratorIndicesMap: s = {},
|
|
336
336
|
formIndexes: c = {},
|
|
337
337
|
withDotNotation: f = !0
|
|
338
338
|
}) => {
|
|
339
|
-
if (!
|
|
340
|
-
let l =
|
|
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
|
-
|
|
345
|
+
s.hasOwnProperty(S) ? $ = s[S] : $ = -1, l = l.replaceAll(m, $);
|
|
346
346
|
}
|
|
347
|
-
}), f && (l =
|
|
348
|
-
},
|
|
349
|
-
const m =
|
|
350
|
-
value:
|
|
351
|
-
iteratorIndicesMap:
|
|
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
|
|
360
|
+
return ot({ message: `Error evaluating ${t}`, type: "error" }), console.error(`Error evaluating ${t} :`, $), null;
|
|
361
361
|
}
|
|
362
|
-
},
|
|
363
|
-
let
|
|
362
|
+
}, Dt = (t) => {
|
|
363
|
+
let s = JSON.parse(
|
|
364
364
|
sessionStorage.getItem("medplatFormRoutes") || "{}"
|
|
365
365
|
);
|
|
366
|
-
|
|
366
|
+
s[t] = !0, sessionStorage.setItem(
|
|
367
367
|
"medplatFormRoutes",
|
|
368
|
-
JSON.stringify(
|
|
368
|
+
JSON.stringify(s)
|
|
369
369
|
);
|
|
370
|
-
},
|
|
370
|
+
}, St = (t) => JSON.parse(
|
|
371
371
|
sessionStorage.getItem("medplatFormRoutes") || "{}"
|
|
372
|
-
)[
|
|
372
|
+
)[t] || !1, rt = (t, s = "") => {
|
|
373
373
|
var f, l;
|
|
374
374
|
let c = [];
|
|
375
|
-
for (const m in
|
|
376
|
-
const $ =
|
|
377
|
-
(f =
|
|
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
|
-
},
|
|
381
|
-
(f) =>
|
|
382
|
-
) : !1,
|
|
383
|
-
if ((
|
|
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 (
|
|
385
|
+
switch (t) {
|
|
386
386
|
case "text":
|
|
387
387
|
case "location":
|
|
388
388
|
case "listValueFieldValue":
|
|
389
389
|
case "html":
|
|
390
|
-
return
|
|
390
|
+
return s;
|
|
391
391
|
case "mediaPreview":
|
|
392
|
-
return
|
|
392
|
+
return s;
|
|
393
393
|
case "boolean":
|
|
394
|
-
return
|
|
394
|
+
return s ? "Yes" : "No";
|
|
395
395
|
case "date":
|
|
396
|
-
return K(
|
|
396
|
+
return K(s).format("DD/MM/YYYY");
|
|
397
397
|
case "dateAndTime":
|
|
398
|
-
return K(
|
|
398
|
+
return K(s).format("DD/MM/YYYY HH:mm:ss");
|
|
399
399
|
case "gender":
|
|
400
|
-
switch (
|
|
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 (
|
|
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 (
|
|
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(
|
|
463
|
-
return
|
|
462
|
+
if (!Array.isArray(s))
|
|
463
|
+
return s;
|
|
464
464
|
switch (c) {
|
|
465
465
|
case "BULLETED":
|
|
466
|
-
return
|
|
466
|
+
return s.map((l) => `• ${l}`);
|
|
467
467
|
case "NUMBERED":
|
|
468
|
-
return
|
|
468
|
+
return s.map((l, m) => `${m + 1}. ${l}`);
|
|
469
469
|
case "COMMA":
|
|
470
|
-
return
|
|
470
|
+
return s.join(", ");
|
|
471
471
|
default:
|
|
472
|
-
return
|
|
472
|
+
return s.join(" ");
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
default:
|
|
476
|
-
return
|
|
476
|
+
return s;
|
|
477
477
|
}
|
|
478
|
-
},
|
|
479
|
-
if (!
|
|
478
|
+
}, Ot = async (t) => {
|
|
479
|
+
if (!t || t.length === 0)
|
|
480
480
|
return [];
|
|
481
|
-
const
|
|
481
|
+
const s = (await X({
|
|
482
482
|
code: "medplat_form_listvalue_field_value_details",
|
|
483
483
|
parameters: {
|
|
484
|
-
ids:
|
|
484
|
+
ids: t
|
|
485
485
|
}
|
|
486
486
|
})).data;
|
|
487
|
-
return
|
|
488
|
-
},
|
|
489
|
-
if (!
|
|
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:
|
|
492
|
+
locationIds: t.join(",")
|
|
493
493
|
};
|
|
494
|
-
|
|
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
|
-
},
|
|
501
|
-
preValidationQueries:
|
|
502
|
-
formContext:
|
|
500
|
+
}, Tt = ({
|
|
501
|
+
preValidationQueries: t,
|
|
502
|
+
formContext: s,
|
|
503
503
|
formIndexes: c,
|
|
504
504
|
iteratorIndicesMap: f
|
|
505
|
-
}) => Array.isArray(
|
|
505
|
+
}) => Array.isArray(t) ? t.map((l) => {
|
|
506
506
|
const m = {};
|
|
507
507
|
return (l.params || []).forEach(($) => {
|
|
508
|
-
const S =
|
|
508
|
+
const S = It.replaceFormIndexes({
|
|
509
509
|
value: $.valueKey,
|
|
510
510
|
iteratorIndicesMap: f,
|
|
511
511
|
formIndexes: c
|
|
512
512
|
});
|
|
513
|
-
m[$.key] =
|
|
513
|
+
m[$.key] = s.getValues(S);
|
|
514
514
|
}), {
|
|
515
515
|
queryCode: l.queryCode,
|
|
516
516
|
parameters: m
|
|
517
517
|
};
|
|
518
|
-
}) : [],
|
|
519
|
-
convertToSearchParams:
|
|
520
|
-
extractSearchParams:
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
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
|
-
|
|
537
|
+
It as F,
|
|
537
538
|
K as U,
|
|
538
|
-
|
|
539
|
-
|
|
539
|
+
Et as c,
|
|
540
|
+
ut as g
|
|
540
541
|
};
|
|
541
|
-
//# sourceMappingURL=index-
|
|
542
|
+
//# sourceMappingURL=index-CnfGzeaj.js.map
|