@argusoft/medplat-core 1.0.10 → 1.0.11
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-D6bNg8bx.js +66 -0
- package/dist/index-D6bNg8bx.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +99455 -445
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/dist/AccessRights-sgIhYR30.js +0 -1238
- package/dist/AccessRights-sgIhYR30.js.map +0 -1
- package/dist/AddEditQueryBuilder-BaZxS2Cm.js +0 -289
- package/dist/AddEditQueryBuilder-BaZxS2Cm.js.map +0 -1
- package/dist/AddEditQueryBuilder.css +0 -1
- package/dist/AddFeatures-DLbjDGei.js +0 -212
- package/dist/AddFeatures-DLbjDGei.js.map +0 -1
- package/dist/AddLabelModal-DE3ploGD.js +0 -734
- package/dist/AddLabelModal-DE3ploGD.js.map +0 -1
- package/dist/AddMenuConfiguration-QWfpcnuP.js +0 -2237
- package/dist/AddMenuConfiguration-QWfpcnuP.js.map +0 -1
- package/dist/AddMenuConfiguration.css +0 -1
- package/dist/AddRoleDrawer-ZK1eejxI.js +0 -453
- package/dist/AddRoleDrawer-ZK1eejxI.js.map +0 -1
- package/dist/AppModal-BgZyfrd-.js +0 -428
- package/dist/AppModal-BgZyfrd-.js.map +0 -1
- package/dist/ChangePasswordModal-MV7g8tkA.js +0 -176
- package/dist/ChangePasswordModal-MV7g8tkA.js.map +0 -1
- package/dist/ConditionConfig-GDCXIg3C.js +0 -395
- package/dist/ConditionConfig-GDCXIg3C.js.map +0 -1
- package/dist/ConditionConfig.css +0 -1
- package/dist/EntityManagement-D-x6Qzal.js +0 -50
- package/dist/EntityManagement-D-x6Qzal.js.map +0 -1
- package/dist/EventConfigurations-jGCJ4LqP.js +0 -384
- package/dist/EventConfigurations-jGCJ4LqP.js.map +0 -1
- package/dist/EventConfigurations.css +0 -1
- package/dist/EventsExceptionModal-BF6E1Np7.js +0 -200
- package/dist/EventsExceptionModal-BF6E1Np7.js.map +0 -1
- package/dist/EventsSkeleton-BN7_0IGs.js +0 -74
- package/dist/EventsSkeleton-BN7_0IGs.js.map +0 -1
- package/dist/FeatureMenu-BYSRoNm0.js +0 -249
- package/dist/FeatureMenu-BYSRoNm0.js.map +0 -1
- package/dist/Features-CKMmuqcs.js +0 -11
- package/dist/Features-CKMmuqcs.js.map +0 -1
- package/dist/FlywayQuery-Cx2sly6g.js +0 -169
- package/dist/FlywayQuery-Cx2sly6g.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.js +0 -5166
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.js.map +0 -1
- package/dist/ImmunizationConfigurationBase.css +0 -1
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js +0 -335
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js.map +0 -1
- package/dist/ImmunizationSkeleton-D2tdv5k-.js +0 -186
- package/dist/ImmunizationSkeleton-D2tdv5k-.js.map +0 -1
- package/dist/LanguagesModal-rk6IGQwY.js +0 -394
- package/dist/LanguagesModal-rk6IGQwY.js.map +0 -1
- package/dist/ManageDynamicFeature-BKkCnQvF.js +0 -4189
- package/dist/ManageDynamicFeature-BKkCnQvF.js.map +0 -1
- package/dist/ManageEventConfiguration-BJxS2Su0.js +0 -1017
- package/dist/ManageEventConfiguration-BJxS2Su0.js.map +0 -1
- package/dist/ManageEventConfiguration.css +0 -1
- package/dist/ManageNotification-B4prX-9Z.js +0 -6819
- package/dist/ManageNotification-B4prX-9Z.js.map +0 -1
- package/dist/ManageRole-BjIIXAlK.js +0 -728
- package/dist/ManageRole-BjIIXAlK.js.map +0 -1
- package/dist/ManageTranslation-BTxvSYKb.js +0 -616
- package/dist/ManageTranslation-BTxvSYKb.js.map +0 -1
- package/dist/ManageTranslation.css +0 -1
- package/dist/ManageUser-PHiTNyF8.js +0 -2160
- package/dist/ManageUser-PHiTNyF8.js.map +0 -1
- package/dist/ManageUser.css +0 -1
- package/dist/MobileMenuManagement-DmQU5TTo.js +0 -108
- package/dist/MobileMenuManagement-DmQU5TTo.js.map +0 -1
- package/dist/MobileTypeEventConfigModal-ChhO_A4f.js +0 -783
- package/dist/MobileTypeEventConfigModal-ChhO_A4f.js.map +0 -1
- package/dist/NewServerManagement-5YcAtF-g.js +0 -1002
- package/dist/NewServerManagement-5YcAtF-g.js.map +0 -1
- package/dist/NotificationFlywayQuery-BY8Zzml_.js +0 -244
- package/dist/NotificationFlywayQuery-BY8Zzml_.js.map +0 -1
- package/dist/NotificationList-BkpOrCpM.js +0 -400
- package/dist/NotificationList-BkpOrCpM.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v.js +0 -1953
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v.js.map +0 -1
- package/dist/QueryBuilder-Cus_mRwZ.js +0 -378
- package/dist/QueryBuilder-Cus_mRwZ.js.map +0 -1
- package/dist/QueryBuilder.css +0 -1
- package/dist/QueryManagement-DXA73N2j.js +0 -671
- package/dist/QueryManagement-DXA73N2j.js.map +0 -1
- package/dist/QueryManagement.css +0 -1
- package/dist/RoleManagement-v5Nyp1vr.js +0 -416
- package/dist/RoleManagement-v5Nyp1vr.js.map +0 -1
- package/dist/ServerSyncModal-uNjGCQJz.js +0 -869
- package/dist/ServerSyncModal-uNjGCQJz.js.map +0 -1
- package/dist/ShowFlywayQuery-DMsAbtOW.js +0 -130
- package/dist/ShowFlywayQuery-DMsAbtOW.js.map +0 -1
- package/dist/ShowFlywayQuery-DVRCd384.js +0 -259
- package/dist/ShowFlywayQuery-DVRCd384.js.map +0 -1
- package/dist/ShowQueryHistory-BDN0tzHg.js +0 -190
- package/dist/ShowQueryHistory-BDN0tzHg.js.map +0 -1
- package/dist/SubMenu-BHcSNSUF.js +0 -187
- package/dist/SubMenu-BHcSNSUF.js.map +0 -1
- package/dist/TableDetails-DzREeJkm.js +0 -1508
- package/dist/TableDetails-DzREeJkm.js.map +0 -1
- package/dist/TableList-B9hr05Hs.js +0 -428
- package/dist/TableList-B9hr05Hs.js.map +0 -1
- package/dist/TypeConfiguration-C-lk8Szs.js +0 -117
- package/dist/TypeConfiguration-C-lk8Szs.js.map +0 -1
- package/dist/UserList-BxB1tCwM.js +0 -13042
- package/dist/UserList-BxB1tCwM.js.map +0 -1
- package/dist/UserList.css +0 -1
- package/dist/UserListSkeleton-cglK2SaU.js +0 -184
- package/dist/UserListSkeleton-cglK2SaU.js.map +0 -1
- package/dist/WidgetList-BSApErov.js +0 -188
- package/dist/WidgetList-BSApErov.js.map +0 -1
- package/dist/_commonjsHelpers-BItOPCY9.js +0 -29
- package/dist/_commonjsHelpers-BItOPCY9.js.map +0 -1
- package/dist/i18next-CTOWN_jH.js +0 -1394
- package/dist/i18next-CTOWN_jH.js.map +0 -1
- package/dist/manageImmunization-B4swS745.js +0 -1204
- package/dist/manageImmunization-B4swS745.js.map +0 -1
- package/dist/manageImmunization.css +0 -1
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { createContext as $, useContext as q, useState as B, useRef as M, useEffect as T, useCallback as W } from "react";
|
|
2
|
-
import { jsxs as x, jsx as l } from "react/jsx-runtime";
|
|
3
|
-
import S from "prop-types";
|
|
4
|
-
import { useSelector as P } from "react-redux";
|
|
5
|
-
import { getUseSkeleton as U } from "@/store/reducers/SkeletonReducer";
|
|
6
|
-
const J = (e, s, a, n) => {
|
|
7
|
-
var t, g, y, N;
|
|
8
|
-
const i = [a, {
|
|
9
|
-
code: s,
|
|
10
|
-
...n || {}
|
|
11
|
-
}];
|
|
12
|
-
if ((g = (t = e == null ? void 0 : e.services) == null ? void 0 : t.logger) != null && g.forward)
|
|
13
|
-
return e.services.logger.forward(i, "warn", "react-i18next::", !0);
|
|
14
|
-
p(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), (N = (y = e == null ? void 0 : e.services) == null ? void 0 : y.logger) != null && N.warn ? e.services.logger.warn(...i) : console != null && console.warn && console.warn(...i);
|
|
15
|
-
}, R = {}, C = (e, s, a, n) => {
|
|
16
|
-
p(a) && R[a] || (p(a) && (R[a] = /* @__PURE__ */ new Date()), J(e, s, a, n));
|
|
17
|
-
}, H = (e, s) => () => {
|
|
18
|
-
if (e.isInitialized)
|
|
19
|
-
s();
|
|
20
|
-
else {
|
|
21
|
-
const a = () => {
|
|
22
|
-
setTimeout(() => {
|
|
23
|
-
e.off("initialized", a);
|
|
24
|
-
}, 0), s();
|
|
25
|
-
};
|
|
26
|
-
e.on("initialized", a);
|
|
27
|
-
}
|
|
28
|
-
}, E = (e, s, a) => {
|
|
29
|
-
e.loadNamespaces(s, H(e, a));
|
|
30
|
-
}, A = (e, s, a, n) => {
|
|
31
|
-
if (p(a) && (a = [a]), e.options.preload && e.options.preload.indexOf(s) > -1) return E(e, a, n);
|
|
32
|
-
a.forEach((i) => {
|
|
33
|
-
e.options.ns.indexOf(i) < 0 && e.options.ns.push(i);
|
|
34
|
-
}), e.loadLanguages(s, H(e, n));
|
|
35
|
-
}, K = (e, s, a = {}) => !s.languages || !s.languages.length ? (C(s, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
|
|
36
|
-
languages: s.languages
|
|
37
|
-
}), !0) : s.hasLoadedNamespace(e, {
|
|
38
|
-
lng: a.lng,
|
|
39
|
-
precheck: (n, i) => {
|
|
40
|
-
if (a.bindI18n && a.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !i(n.isLanguageChangingTo, e)) return !1;
|
|
41
|
-
}
|
|
42
|
-
}), p = (e) => typeof e == "string", X = (e) => typeof e == "object" && e !== null, Y = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, D = {
|
|
43
|
-
"&": "&",
|
|
44
|
-
"&": "&",
|
|
45
|
-
"<": "<",
|
|
46
|
-
"<": "<",
|
|
47
|
-
">": ">",
|
|
48
|
-
">": ">",
|
|
49
|
-
"'": "'",
|
|
50
|
-
"'": "'",
|
|
51
|
-
""": '"',
|
|
52
|
-
""": '"',
|
|
53
|
-
" ": " ",
|
|
54
|
-
" ": " ",
|
|
55
|
-
"©": "©",
|
|
56
|
-
"©": "©",
|
|
57
|
-
"®": "®",
|
|
58
|
-
"®": "®",
|
|
59
|
-
"…": "…",
|
|
60
|
-
"…": "…",
|
|
61
|
-
"/": "/",
|
|
62
|
-
"/": "/"
|
|
63
|
-
}, Q = (e) => D[e], Z = (e) => e.replace(Y, Q);
|
|
64
|
-
let V = {
|
|
65
|
-
bindI18n: "languageChanged",
|
|
66
|
-
bindI18nStore: "",
|
|
67
|
-
transEmptyNodeValue: "",
|
|
68
|
-
transSupportBasicHtmlNodes: !0,
|
|
69
|
-
transWrapTextNodes: "",
|
|
70
|
-
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
71
|
-
useSuspense: !0,
|
|
72
|
-
unescape: Z
|
|
73
|
-
};
|
|
74
|
-
const ee = () => V;
|
|
75
|
-
let se;
|
|
76
|
-
const ae = () => se, te = $();
|
|
77
|
-
class ne {
|
|
78
|
-
constructor() {
|
|
79
|
-
this.usedNamespaces = {};
|
|
80
|
-
}
|
|
81
|
-
addUsedNamespaces(s) {
|
|
82
|
-
s.forEach((a) => {
|
|
83
|
-
this.usedNamespaces[a] || (this.usedNamespaces[a] = !0);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
getUsedNamespaces() {
|
|
87
|
-
return Object.keys(this.usedNamespaces);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
const re = (e, s) => {
|
|
91
|
-
const a = M();
|
|
92
|
-
return T(() => {
|
|
93
|
-
a.current = e;
|
|
94
|
-
}, [e, s]), a.current;
|
|
95
|
-
}, _ = (e, s, a, n) => e.getFixedT(s, a, n), oe = (e, s, a, n) => W(_(e, s, a, n), [e, s, a, n]), fe = (e, s = {}) => {
|
|
96
|
-
var j, z, O, F;
|
|
97
|
-
const {
|
|
98
|
-
i18n: a
|
|
99
|
-
} = s, {
|
|
100
|
-
i18n: n,
|
|
101
|
-
defaultNS: i
|
|
102
|
-
} = q(te) || {}, t = a || n || ae();
|
|
103
|
-
if (t && !t.reportNamespaces && (t.reportNamespaces = new ne()), !t) {
|
|
104
|
-
C(t, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
105
|
-
const o = (u, d) => p(d) ? d : X(d) && p(d.defaultValue) ? d.defaultValue : Array.isArray(u) ? u[u.length - 1] : u, c = [o, {}, !1];
|
|
106
|
-
return c.t = o, c.i18n = {}, c.ready = !1, c;
|
|
107
|
-
}
|
|
108
|
-
(j = t.options.react) != null && j.wait && C(t, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
109
|
-
const g = {
|
|
110
|
-
...ee(),
|
|
111
|
-
...t.options.react,
|
|
112
|
-
...s
|
|
113
|
-
}, {
|
|
114
|
-
useSuspense: y,
|
|
115
|
-
keyPrefix: N
|
|
116
|
-
} = g;
|
|
117
|
-
let r = i || ((z = t.options) == null ? void 0 : z.defaultNS);
|
|
118
|
-
r = p(r) ? [r] : r || ["translation"], (F = (O = t.reportNamespaces).addUsedNamespaces) == null || F.call(O, r);
|
|
119
|
-
const m = (t.isInitialized || t.initializedStoreOnce) && r.every((o) => K(o, t, g)), G = oe(t, s.lng || null, g.nsMode === "fallback" ? r : r[0], N), I = () => G, v = () => _(t, s.lng || null, g.nsMode === "fallback" ? r : r[0], N), [k, h] = B(I);
|
|
120
|
-
let w = r.join();
|
|
121
|
-
s.lng && (w = `${s.lng}${w}`);
|
|
122
|
-
const L = re(w), f = M(!0);
|
|
123
|
-
T(() => {
|
|
124
|
-
const {
|
|
125
|
-
bindI18n: o,
|
|
126
|
-
bindI18nStore: c
|
|
127
|
-
} = g;
|
|
128
|
-
f.current = !0, !m && !y && (s.lng ? A(t, s.lng, r, () => {
|
|
129
|
-
f.current && h(v);
|
|
130
|
-
}) : E(t, r, () => {
|
|
131
|
-
f.current && h(v);
|
|
132
|
-
})), m && L && L !== w && f.current && h(v);
|
|
133
|
-
const u = () => {
|
|
134
|
-
f.current && h(v);
|
|
135
|
-
};
|
|
136
|
-
return o && (t == null || t.on(o, u)), c && (t == null || t.store.on(c, u)), () => {
|
|
137
|
-
f.current = !1, t && o && (o == null || o.split(" ").forEach((d) => t.off(d, u))), c && t && c.split(" ").forEach((d) => t.store.off(d, u));
|
|
138
|
-
};
|
|
139
|
-
}, [t, w]), T(() => {
|
|
140
|
-
f.current && m && h(I);
|
|
141
|
-
}, [t, N, m]);
|
|
142
|
-
const b = [k, t, m];
|
|
143
|
-
if (b.t = k, b.i18n = t, b.ready = m, m || !m && !y) return b;
|
|
144
|
-
throw new Promise((o) => {
|
|
145
|
-
s.lng ? A(t, s.lng, r, () => o()) : E(t, r, () => o());
|
|
146
|
-
});
|
|
147
|
-
}, ie = ({
|
|
148
|
-
children: e,
|
|
149
|
-
isLoading: s
|
|
150
|
-
}) => !P(U) || !s ? e : /* @__PURE__ */ x("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
151
|
-
/* @__PURE__ */ x("div", { className: "flex justify-end gap-5 mb-5", children: [
|
|
152
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
|
|
153
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
|
|
154
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" })
|
|
155
|
-
] }),
|
|
156
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-100" })
|
|
157
|
-
] });
|
|
158
|
-
ie.propTypes = {
|
|
159
|
-
children: S.any,
|
|
160
|
-
isLoading: S.any
|
|
161
|
-
};
|
|
162
|
-
const le = ({ children: e, isLoading: s }) => !P(U) || !s ? e : /* @__PURE__ */ x("div", { className: "flex flex-col gap-5 p-5", children: [
|
|
163
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[20%] h-10" }),
|
|
164
|
-
/* @__PURE__ */ x("div", { className: "flex flex-wrap gap-5 justify-between my-10", children: [
|
|
165
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-15" }),
|
|
166
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-10" }),
|
|
167
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[30%] h-10" }),
|
|
168
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[30%] h-10" }),
|
|
169
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[30%] h-10" })
|
|
170
|
-
] }),
|
|
171
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
|
|
172
|
-
/* @__PURE__ */ x("div", { className: "flex justify-end gap-5", children: [
|
|
173
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
|
|
174
|
-
/* @__PURE__ */ l("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" })
|
|
175
|
-
] })
|
|
176
|
-
] });
|
|
177
|
-
le.propTypes = {
|
|
178
|
-
children: S.any,
|
|
179
|
-
isLoading: S.any
|
|
180
|
-
};
|
|
181
|
-
export {
|
|
182
|
-
ie as I,
|
|
183
|
-
le as M,
|
|
184
|
-
fe as u
|
|
185
|
-
};
|
|
186
|
-
//# sourceMappingURL=ImmunizationSkeleton-D2tdv5k-.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImmunizationSkeleton-D2tdv5k-.js","sources":["../../node_modules/react-i18next/dist/es/utils.js","../../node_modules/react-i18next/dist/es/unescape.js","../../node_modules/react-i18next/dist/es/defaults.js","../../node_modules/react-i18next/dist/es/i18nInstance.js","../../node_modules/react-i18next/dist/es/context.js","../../node_modules/react-i18next/dist/es/useTranslation.js","../src/views/Immunization/Skeletons/ImmunizationSkeleton.jsx"],"sourcesContent":["export const warn = (i18n, code, msg, rest) => {\n const args = [msg, {\n code,\n ...(rest || {})\n }];\n if (i18n?.services?.logger?.forward) {\n return i18n.services.logger.forward(args, 'warn', 'react-i18next::', true);\n }\n if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;\n if (i18n?.services?.logger?.warn) {\n i18n.services.logger.warn(...args);\n } else if (console?.warn) {\n console.warn(...args);\n }\n};\nconst alreadyWarned = {};\nexport const warnOnce = (i18n, code, msg, rest) => {\n if (isString(msg) && alreadyWarned[msg]) return;\n if (isString(msg)) alreadyWarned[msg] = new Date();\n warn(i18n, code, msg, rest);\n};\nconst loadedClb = (i18n, cb) => () => {\n if (i18n.isInitialized) {\n cb();\n } else {\n const initialized = () => {\n setTimeout(() => {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n i18n.on('initialized', initialized);\n }\n};\nexport const loadNamespaces = (i18n, ns, cb) => {\n i18n.loadNamespaces(ns, loadedClb(i18n, cb));\n};\nexport const loadLanguages = (i18n, lng, ns, cb) => {\n if (isString(ns)) ns = [ns];\n if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);\n ns.forEach(n => {\n if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);\n });\n i18n.loadLanguages(lng, loadedClb(i18n, cb));\n};\nexport const hasLoadedNamespace = (ns, i18n, options = {}) => {\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce(i18n, 'NO_LANGUAGES', 'i18n.languages were undefined or empty', {\n languages: i18n.languages\n });\n return true;\n }\n return i18n.hasLoadedNamespace(ns, {\n lng: options.lng,\n precheck: (i18nInstance, loadNotPending) => {\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n }\n });\n};\nexport const getDisplayName = Component => Component.displayName || Component.name || (isString(Component) && Component.length > 0 ? Component : 'Unknown');\nexport const isString = obj => typeof obj === 'string';\nexport const isObject = obj => typeof obj === 'object' && obj !== null;","const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;\nconst htmlEntities = {\n '&': '&',\n '&': '&',\n '<': '<',\n '<': '<',\n '>': '>',\n '>': '>',\n ''': \"'\",\n ''': \"'\",\n '"': '\"',\n '"': '\"',\n ' ': ' ',\n ' ': ' ',\n '©': '©',\n '©': '©',\n '®': '®',\n '®': '®',\n '…': '…',\n '…': '…',\n '/': '/',\n '/': '/'\n};\nconst unescapeHtmlEntity = m => htmlEntities[m];\nexport const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);","import { unescape } from './unescape.js';\nlet defaultOptions = {\n bindI18n: 'languageChanged',\n bindI18nStore: '',\n transEmptyNodeValue: '',\n transSupportBasicHtmlNodes: true,\n transWrapTextNodes: '',\n transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n useSuspense: true,\n unescape\n};\nexport const setDefaults = (options = {}) => {\n defaultOptions = {\n ...defaultOptions,\n ...options\n };\n};\nexport const getDefaults = () => defaultOptions;","let i18nInstance;\nexport const setI18n = instance => {\n i18nInstance = instance;\n};\nexport const getI18n = () => i18nInstance;","import { createContext } from 'react';\nimport { getDefaults, setDefaults } from './defaults.js';\nimport { getI18n, setI18n } from './i18nInstance.js';\nimport { initReactI18next } from './initReactI18next.js';\nexport { getDefaults, setDefaults, getI18n, setI18n, initReactI18next };\nexport const I18nContext = createContext();\nexport class ReportNamespaces {\n constructor() {\n this.usedNamespaces = {};\n }\n addUsedNamespaces(namespaces) {\n namespaces.forEach(ns => {\n if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;\n });\n }\n getUsedNamespaces() {\n return Object.keys(this.usedNamespaces);\n }\n}\nexport const composeInitialProps = ForComponent => async ctx => {\n const componentsInitialProps = (await ForComponent.getInitialProps?.(ctx)) ?? {};\n const i18nInitialProps = getInitialProps();\n return {\n ...componentsInitialProps,\n ...i18nInitialProps\n };\n};\nexport const getInitialProps = () => {\n const i18n = getI18n();\n const namespaces = i18n.reportNamespaces?.getUsedNamespaces() ?? [];\n const ret = {};\n const initialI18nStore = {};\n i18n.languages.forEach(l => {\n initialI18nStore[l] = {};\n namespaces.forEach(ns => {\n initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};\n });\n });\n ret.initialI18nStore = initialI18nStore;\n ret.initialLanguage = i18n.language;\n return ret;\n};","import { useState, useEffect, useContext, useRef, useCallback } from 'react';\nimport { getI18n, getDefaults, ReportNamespaces, I18nContext } from './context.js';\nimport { warnOnce, loadNamespaces, loadLanguages, hasLoadedNamespace, isString, isObject } from './utils.js';\nconst usePrevious = (value, ignore) => {\n const ref = useRef();\n useEffect(() => {\n ref.current = ignore ? ref.current : value;\n }, [value, ignore]);\n return ref.current;\n};\nconst alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);\nconst useMemoizedT = (i18n, language, namespace, keyPrefix) => useCallback(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);\nexport const useTranslation = (ns, props = {}) => {\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useTranslation: You will need to pass in an i18next instance by using initReactI18next');\n const notReadyT = (k, optsOrDefaultValue) => {\n if (isString(optsOrDefaultValue)) return optsOrDefaultValue;\n if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;\n return Array.isArray(k) ? k[k.length - 1] : k;\n };\n const retNotReady = [notReadyT, {}, false];\n retNotReady.t = notReadyT;\n retNotReady.i18n = {};\n retNotReady.ready = false;\n return retNotReady;\n }\n if (i18n.options.react?.wait) warnOnce(i18n, 'DEPRECATED_OPTION', 'useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');\n const i18nOptions = {\n ...getDefaults(),\n ...i18n.options.react,\n ...props\n };\n const {\n useSuspense,\n keyPrefix\n } = i18nOptions;\n let namespaces = ns || defaultNSFromContext || i18n.options?.defaultNS;\n namespaces = isString(namespaces) ? [namespaces] : namespaces || ['translation'];\n i18n.reportNamespaces.addUsedNamespaces?.(namespaces);\n const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));\n const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n const getT = () => memoGetT;\n const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n const [t, setT] = useState(getT);\n let joinedNS = namespaces.join();\n if (props.lng) joinedNS = `${props.lng}${joinedNS}`;\n const previousJoinedNS = usePrevious(joinedNS);\n const isMounted = useRef(true);\n useEffect(() => {\n const {\n bindI18n,\n bindI18nStore\n } = i18nOptions;\n isMounted.current = true;\n if (!ready && !useSuspense) {\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, () => {\n if (isMounted.current) setT(getNewT);\n });\n } else {\n loadNamespaces(i18n, namespaces, () => {\n if (isMounted.current) setT(getNewT);\n });\n }\n }\n if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {\n setT(getNewT);\n }\n const boundReset = () => {\n if (isMounted.current) setT(getNewT);\n };\n if (bindI18n) i18n?.on(bindI18n, boundReset);\n if (bindI18nStore) i18n?.store.on(bindI18nStore, boundReset);\n return () => {\n isMounted.current = false;\n if (i18n && bindI18n) bindI18n?.split(' ').forEach(e => i18n.off(e, boundReset));\n if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, boundReset));\n };\n }, [i18n, joinedNS]);\n useEffect(() => {\n if (isMounted.current && ready) {\n setT(getT);\n }\n }, [i18n, keyPrefix, ready]);\n const ret = [t, i18n, ready];\n ret.t = t;\n ret.i18n = i18n;\n ret.ready = ready;\n if (ready) return ret;\n if (!ready && !useSuspense) return ret;\n throw new Promise(resolve => {\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, () => resolve());\n } else {\n loadNamespaces(i18n, namespaces, () => resolve());\n }\n });\n};","import PropTypes from \"prop-types\";\nimport { useSelector } from \"react-redux\";\nimport { getUseSkeleton } from \"@/store/reducers/SkeletonReducer\";\n\nexport const ImmunizationConfigurationsListSkeleton = ({\n children,\n isLoading,\n}) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) return children;\n\n return (\n <div className=\"flex flex-col gap-2 w-full\">\n <div className=\"flex justify-end gap-5 mb-5\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-10\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-10\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-10\"></div>\n </div>\n\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-full h-100\"></div>\n </div>\n );\n};\n\nImmunizationConfigurationsListSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n\nexport const ManageImmunizationSkeleton = ({ children, isLoading }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) return children;\n\n return (\n <div className=\"flex flex-col gap-5 p-5\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[20%] h-10\"></div>\n <div className=\"flex flex-wrap gap-5 justify-between my-10\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[45%] h-15\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[45%] h-10\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[30%] h-10\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[30%] h-10\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[30%] h-10\"></div>\n </div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-10\"></div>\n <div className=\"flex justify-end gap-5\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-10\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-10\"></div>\n </div>\n </div>\n );\n};\n\nManageImmunizationSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n"],"names":["warn","i18n","code","msg","rest","args","_b","_a","isString","_d","_c","alreadyWarned","warnOnce","loadedClb","cb","initialized","loadNamespaces","ns","loadLanguages","lng","n","hasLoadedNamespace","options","i18nInstance","loadNotPending","obj","isObject","matchHtmlEntity","htmlEntities","unescapeHtmlEntity","m","unescape","text","defaultOptions","getDefaults","getI18n","I18nContext","createContext","ReportNamespaces","namespaces","usePrevious","value","ignore","ref","useRef","useEffect","alwaysNewT","language","namespace","keyPrefix","useMemoizedT","useCallback","useTranslation","props","i18nFromProps","i18nFromContext","defaultNSFromContext","useContext","notReadyT","k","optsOrDefaultValue","retNotReady","i18nOptions","useSuspense","ready","memoGetT","getT","getNewT","t","setT","useState","joinedNS","previousJoinedNS","isMounted","bindI18n","bindI18nStore","boundReset","e","ret","resolve","ImmunizationConfigurationsListSkeleton","children","isLoading","useSelector","getUseSkeleton","jsxs","jsx","PropTypes","ManageImmunizationSkeleton"],"mappings":";;;;;AAAO,MAAMA,IAAO,CAACC,GAAMC,GAAMC,GAAKC,MAAS;;AAC7C,QAAMC,IAAO,CAACF,GAAK;AAAA,IACjB,MAAAD;AAAA,IACA,GAAIE,KAAQ,CAAA;AAAA,EAChB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AC,OAAA,EAAI,WAAU,oDAAA,CAAoD;AAAA,EACnE,gBAAAD,EAAC,OAAA,EAAI,WAAU,8CACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,oDAAA,CAAoD;AAAA,IACnE,gBAAAA,EAAC,OAAA,EAAI,WAAU,oDAAA,CAAoD;AAAA,IACnE,gBAAAA,EAAC,OAAA,EAAI,WAAU,oDAAA,CAAoD;AAAA,IACnE,gBAAAA,EAAC,OAAA,EAAI,WAAU,oDAAA,CAAoD;AAAA,IACnE,gBAAAA,EAAC,OAAA,EAAI,WAAU,oDAAA,CAAoD;AAAA,EAAA,GACrE;AAAA,EACA,gBAAAA,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,EAChE,gBAAAD,EAAC,OAAA,EAAI,WAAU,0BACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,IAChE,gBAAAA,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,EAAA,EAAA,CAClE;AAAA,GACF;AAIJE,GAA2B,YAAY;AAAA,EACrC,UAAUD,EAAU;AAAA,EACpB,WAAWA,EAAU;AACvB;","x_google_ignoreList":[0,1,2,3,4,5]}
|
|
@@ -1,394 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslateProvider as le } from "@/common/languageTranslator/TranslationContext";
|
|
3
|
-
import { execute as re } from "@/common/services/GlobalApis";
|
|
4
|
-
import { a as ie, L as B, b as se, d as ce } from "./ManageTranslation-BTxvSYKb.js";
|
|
5
|
-
import { showToast as m } from "@/common/toaster/toaster";
|
|
6
|
-
import de from "@/hooks/useTrackEvent";
|
|
7
|
-
import ue from "@/views/custom-components/CustomConfirmationModal";
|
|
8
|
-
import me from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
|
|
9
|
-
import { faXmark as ge, faBars as fe } from "@fortawesome/free-solid-svg-icons";
|
|
10
|
-
import { FontAwesomeIcon as _ } from "@fortawesome/react-fontawesome";
|
|
11
|
-
import { yupResolver as pe } from "@hookform/resolvers/yup";
|
|
12
|
-
import { Modal as he, Typography as ye, IconButton as be, Button as x, FormControl as ve, Box as g, Select as xe, MenuItem as M } from "@mui/material";
|
|
13
|
-
import n from "@mui/material/Grid2";
|
|
14
|
-
import d from "prop-types";
|
|
15
|
-
import { useRef as we, useState as r, useEffect as E } from "react";
|
|
16
|
-
import { useForm as Ce, Controller as Ae } from "react-hook-form";
|
|
17
|
-
import * as D from "yup";
|
|
18
|
-
const Te = ({ open: R, handleClose: V, refresh: w, refetch: C }) => {
|
|
19
|
-
var N;
|
|
20
|
-
const f = we(null), A = de(), [O, j] = r([]), [u, z] = r([]), [T, p] = r(!1), [c, F] = r([]), [q, h] = r(!1), [P, W] = r(""), [X, H] = r(""), { translate: i } = le(), [y, K] = r({}), [S, k] = r(!1), $ = D.object().shape({
|
|
21
|
-
languageToBeAdded: D.string().required("Select Language")
|
|
22
|
-
}), {
|
|
23
|
-
control: G,
|
|
24
|
-
handleSubmit: J,
|
|
25
|
-
reset: L,
|
|
26
|
-
formState: { errors: s }
|
|
27
|
-
} = Ce({
|
|
28
|
-
defaultValues: {},
|
|
29
|
-
resolver: pe($),
|
|
30
|
-
mode: "onChange"
|
|
31
|
-
}), Y = [
|
|
32
|
-
{ field: "languageValue", label: "Language", align: "left" },
|
|
33
|
-
{ field: "orientation", label: "Orientation", align: "left" },
|
|
34
|
-
{ field: "stateValue", label: "State", align: "left" },
|
|
35
|
-
{ field: "Actions", label: "Actions" }
|
|
36
|
-
], Q = (e) => {
|
|
37
|
-
W(
|
|
38
|
-
(e == null ? void 0 : e.stateValue) === "Active" ? "Mark as Inactive" : "Mark as Active"
|
|
39
|
-
), H(
|
|
40
|
-
(e == null ? void 0 : e.stateValue) === "Active" ? "Are you sure you want to change the state from active to inactive?" : "Are you sure you want to change the state from inactive to active?"
|
|
41
|
-
), K(e);
|
|
42
|
-
}, U = () => {
|
|
43
|
-
h((e) => !e);
|
|
44
|
-
}, Z = async () => {
|
|
45
|
-
try {
|
|
46
|
-
y.active = !y.active, await se(y), b(), await w(), C(), h((e) => !e);
|
|
47
|
-
} catch (e) {
|
|
48
|
-
console.error(e), m({ message: "Error in Toggle State", type: "error" });
|
|
49
|
-
}
|
|
50
|
-
}, ee = [
|
|
51
|
-
{ label: i(P), onClick: U }
|
|
52
|
-
], te = [
|
|
53
|
-
{
|
|
54
|
-
label: "",
|
|
55
|
-
icon: /* @__PURE__ */ t(_, { icon: fe }),
|
|
56
|
-
menuClick: Q,
|
|
57
|
-
menuItems: ee,
|
|
58
|
-
condition: (e) => (e == null ? void 0 : e.languageKey) !== "en",
|
|
59
|
-
dataTestId: "languages-modal-menu"
|
|
60
|
-
}
|
|
61
|
-
], ae = async () => {
|
|
62
|
-
var e;
|
|
63
|
-
try {
|
|
64
|
-
L();
|
|
65
|
-
const o = await re({
|
|
66
|
-
code: "labels_get_all_ibm_languages"
|
|
67
|
-
});
|
|
68
|
-
F((e = o == null ? void 0 : o.data) == null ? void 0 : e.result), p(!0);
|
|
69
|
-
} catch (a) {
|
|
70
|
-
console.error(a), m({ message: "Problem in laoding language list", type: "error" });
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
E(() => {
|
|
74
|
-
if (u) {
|
|
75
|
-
const e = [];
|
|
76
|
-
u == null || u.forEach((a) => {
|
|
77
|
-
let o = { ...a };
|
|
78
|
-
a != null && a.is_active ? o.stateValue = "Active" : o.stateValue = "Inactive", a != null && a.is_ltr ? o.orientation = "Left to Right" : o.orientation = "Right to Left", e.push(o);
|
|
79
|
-
}), j(e);
|
|
80
|
-
}
|
|
81
|
-
}, [u]), E(() => {
|
|
82
|
-
b();
|
|
83
|
-
}, []);
|
|
84
|
-
const b = async () => {
|
|
85
|
-
k((e) => !e);
|
|
86
|
-
try {
|
|
87
|
-
const e = await ie();
|
|
88
|
-
z(e == null ? void 0 : e.data);
|
|
89
|
-
} catch (e) {
|
|
90
|
-
console.error(e), m({ message: "Error in loading languages", type: "error" });
|
|
91
|
-
} finally {
|
|
92
|
-
k((e) => !e);
|
|
93
|
-
}
|
|
94
|
-
}, I = () => {
|
|
95
|
-
V();
|
|
96
|
-
}, oe = async (e) => {
|
|
97
|
-
try {
|
|
98
|
-
const a = c == null ? void 0 : c.find(
|
|
99
|
-
(v) => (v == null ? void 0 : v.id) === parseInt(e == null ? void 0 : e.languageToBeAdded)
|
|
100
|
-
);
|
|
101
|
-
let o = JSON.parse(a == null ? void 0 : a.additional_detail).Orientation === "left_to_right", ne = {
|
|
102
|
-
languageKey: a == null ? void 0 : a.code,
|
|
103
|
-
languageValue: a == null ? void 0 : a.value,
|
|
104
|
-
isLtr: o,
|
|
105
|
-
active: !0
|
|
106
|
-
};
|
|
107
|
-
await ce(ne), m({ message: "Language Added successfully", type: "success" }), b(), A("conversion_event", {
|
|
108
|
-
form: f.current,
|
|
109
|
-
form_name: "Add app Configuration",
|
|
110
|
-
submit: !0
|
|
111
|
-
}), await w(), C(), p(!1);
|
|
112
|
-
} catch (a) {
|
|
113
|
-
console.error(a), m({ message: "Error in Adding Language", type: "error" });
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
return /* @__PURE__ */ t(
|
|
117
|
-
he,
|
|
118
|
-
{
|
|
119
|
-
"data-testid": "languagesModal-modal",
|
|
120
|
-
open: R,
|
|
121
|
-
onClose: () => {
|
|
122
|
-
I(), L();
|
|
123
|
-
},
|
|
124
|
-
className: "translation-modal",
|
|
125
|
-
children: /* @__PURE__ */ l(
|
|
126
|
-
n,
|
|
127
|
-
{
|
|
128
|
-
container: !0,
|
|
129
|
-
sx: {
|
|
130
|
-
display: "flex",
|
|
131
|
-
flexDirection: "column",
|
|
132
|
-
position: "absolute",
|
|
133
|
-
top: 20,
|
|
134
|
-
left: "50%",
|
|
135
|
-
transform: "translateX(-50%)",
|
|
136
|
-
width: "95%",
|
|
137
|
-
maxW: "100%",
|
|
138
|
-
maxWidth: { sm: 600, md: 700, lg: 800 },
|
|
139
|
-
bgcolor: "background.paper",
|
|
140
|
-
boxShadow: 24,
|
|
141
|
-
border: 1,
|
|
142
|
-
borderColor: "divider",
|
|
143
|
-
borderRadius: 0.5
|
|
144
|
-
},
|
|
145
|
-
children: [
|
|
146
|
-
/* @__PURE__ */ t(
|
|
147
|
-
ue,
|
|
148
|
-
{
|
|
149
|
-
description: X,
|
|
150
|
-
title: "CONFIRM ACTION",
|
|
151
|
-
handleClick: Z,
|
|
152
|
-
open: q,
|
|
153
|
-
handleClose: () => {
|
|
154
|
-
h((e) => !e);
|
|
155
|
-
},
|
|
156
|
-
"data-testid": "languages-customconfirmation"
|
|
157
|
-
}
|
|
158
|
-
),
|
|
159
|
-
/* @__PURE__ */ l(
|
|
160
|
-
n,
|
|
161
|
-
{
|
|
162
|
-
sx: {
|
|
163
|
-
p: 1.25,
|
|
164
|
-
display: "flex",
|
|
165
|
-
justifyContent: "space-between",
|
|
166
|
-
alignItems: "center",
|
|
167
|
-
borderBottom: 1,
|
|
168
|
-
borderColor: "divider",
|
|
169
|
-
gap: 1
|
|
170
|
-
},
|
|
171
|
-
className: "text-customBlue",
|
|
172
|
-
"data-testid": "languagesModal-header",
|
|
173
|
-
children: [
|
|
174
|
-
/* @__PURE__ */ t(ye, { sx: { fontWeight: "medium", fontSize: "1.125rem" }, children: i("Manage Language") }),
|
|
175
|
-
/* @__PURE__ */ t(
|
|
176
|
-
be,
|
|
177
|
-
{
|
|
178
|
-
size: "small",
|
|
179
|
-
onClick: () => {
|
|
180
|
-
I();
|
|
181
|
-
},
|
|
182
|
-
"data-testid": "languagesModal-close-button",
|
|
183
|
-
children: /* @__PURE__ */ t(_, { icon: ge })
|
|
184
|
-
}
|
|
185
|
-
)
|
|
186
|
-
]
|
|
187
|
-
}
|
|
188
|
-
),
|
|
189
|
-
/* @__PURE__ */ t(
|
|
190
|
-
n,
|
|
191
|
-
{
|
|
192
|
-
item: !0,
|
|
193
|
-
sx: {
|
|
194
|
-
overflowY: "auto",
|
|
195
|
-
maxHeight: "80vh",
|
|
196
|
-
width: "100%",
|
|
197
|
-
overflowX: "auto"
|
|
198
|
-
},
|
|
199
|
-
children: /* @__PURE__ */ t(
|
|
200
|
-
n,
|
|
201
|
-
{
|
|
202
|
-
container: !0,
|
|
203
|
-
className: "translational-modal-body px-2 sm:px-4 py-2 gap-y-2",
|
|
204
|
-
children: /* @__PURE__ */ l(n, { item: !0, className: "w-full", children: [
|
|
205
|
-
!T && /* @__PURE__ */ t(n, { container: !0, justifyContent: "flex-end", className: "pb-[10px]", children: /* @__PURE__ */ t(B, { isLoading: S, children: /* @__PURE__ */ t(n, { item: !0, children: /* @__PURE__ */ t(
|
|
206
|
-
x,
|
|
207
|
-
{
|
|
208
|
-
size: "small",
|
|
209
|
-
variant: "contained",
|
|
210
|
-
"data-testid": "language-add-button",
|
|
211
|
-
color: "primary",
|
|
212
|
-
onClick: ae,
|
|
213
|
-
children: `${i("Add")} ${i("Language")}`
|
|
214
|
-
}
|
|
215
|
-
) }) }) }),
|
|
216
|
-
T && /* @__PURE__ */ t(
|
|
217
|
-
n,
|
|
218
|
-
{
|
|
219
|
-
container: !0,
|
|
220
|
-
justifyContent: "flex-start",
|
|
221
|
-
className: "pb-[10px] flex-wrap gap-2",
|
|
222
|
-
children: /* @__PURE__ */ t(B, { isLoading: S, children: /* @__PURE__ */ l(
|
|
223
|
-
"form",
|
|
224
|
-
{
|
|
225
|
-
onSubmit: J(oe),
|
|
226
|
-
className: "w-full",
|
|
227
|
-
ref: f,
|
|
228
|
-
children: [
|
|
229
|
-
/* @__PURE__ */ t(n, { item: !0, className: "pb-[5px]", children: /* @__PURE__ */ t(
|
|
230
|
-
ve,
|
|
231
|
-
{
|
|
232
|
-
variant: "outlined",
|
|
233
|
-
sx: { width: "100%" },
|
|
234
|
-
"data-testid": "languagemodal-field",
|
|
235
|
-
children: /* @__PURE__ */ l(
|
|
236
|
-
g,
|
|
237
|
-
{
|
|
238
|
-
sx: {
|
|
239
|
-
display: "flex",
|
|
240
|
-
alignItems: "center",
|
|
241
|
-
gap: 2,
|
|
242
|
-
mb: 1,
|
|
243
|
-
width: "100%"
|
|
244
|
-
},
|
|
245
|
-
children: [
|
|
246
|
-
/* @__PURE__ */ l(g, { sx: { width: "100%" }, children: [
|
|
247
|
-
i("Language"),
|
|
248
|
-
/* @__PURE__ */ t(
|
|
249
|
-
g,
|
|
250
|
-
{
|
|
251
|
-
component: "span",
|
|
252
|
-
sx: { color: "error.main", ml: 0.5 },
|
|
253
|
-
children: "*"
|
|
254
|
-
}
|
|
255
|
-
)
|
|
256
|
-
] }),
|
|
257
|
-
/* @__PURE__ */ l(g, { sx: { width: "100%" }, children: [
|
|
258
|
-
/* @__PURE__ */ t(
|
|
259
|
-
Ae,
|
|
260
|
-
{
|
|
261
|
-
name: "languageToBeAdded",
|
|
262
|
-
control: G,
|
|
263
|
-
defaultValue: "",
|
|
264
|
-
className: "w-full",
|
|
265
|
-
render: ({ field: e }) => /* @__PURE__ */ l(
|
|
266
|
-
xe,
|
|
267
|
-
{
|
|
268
|
-
className: "w-full",
|
|
269
|
-
labelId: "event-type-label",
|
|
270
|
-
id: "reportgroup",
|
|
271
|
-
...e,
|
|
272
|
-
error: s.languageToBeAdded,
|
|
273
|
-
size: "small",
|
|
274
|
-
"data-testid": "languagemodal-select",
|
|
275
|
-
children: [
|
|
276
|
-
/* @__PURE__ */ t(M, { value: null, children: "Select" }),
|
|
277
|
-
c == null ? void 0 : c.map((a, o) => /* @__PURE__ */ t(
|
|
278
|
-
M,
|
|
279
|
-
{
|
|
280
|
-
value: a.id,
|
|
281
|
-
children: a.value
|
|
282
|
-
},
|
|
283
|
-
o + 1
|
|
284
|
-
))
|
|
285
|
-
]
|
|
286
|
-
}
|
|
287
|
-
)
|
|
288
|
-
}
|
|
289
|
-
),
|
|
290
|
-
(s == null ? void 0 : s.languageToBeAdded) && /* @__PURE__ */ t(
|
|
291
|
-
"p",
|
|
292
|
-
{
|
|
293
|
-
className: "error-helper-language",
|
|
294
|
-
"data-testid": "manageeventconfiguration-languageToBeAdded-error",
|
|
295
|
-
children: (N = s == null ? void 0 : s.languageToBeAdded) == null ? void 0 : N.message
|
|
296
|
-
}
|
|
297
|
-
)
|
|
298
|
-
] })
|
|
299
|
-
]
|
|
300
|
-
}
|
|
301
|
-
)
|
|
302
|
-
}
|
|
303
|
-
) }),
|
|
304
|
-
/* @__PURE__ */ t(
|
|
305
|
-
n,
|
|
306
|
-
{
|
|
307
|
-
item: !0,
|
|
308
|
-
sx: {
|
|
309
|
-
pb: 0.625,
|
|
310
|
-
display: "flex",
|
|
311
|
-
justifyContent: "flex-end",
|
|
312
|
-
width: "100%"
|
|
313
|
-
},
|
|
314
|
-
children: /* @__PURE__ */ l(
|
|
315
|
-
g,
|
|
316
|
-
{
|
|
317
|
-
sx: {
|
|
318
|
-
display: "flex",
|
|
319
|
-
flexDirection: { xs: "column", sm: "row" },
|
|
320
|
-
gap: 1,
|
|
321
|
-
width: { xs: "100%", sm: "auto" }
|
|
322
|
-
},
|
|
323
|
-
children: [
|
|
324
|
-
/* @__PURE__ */ t(
|
|
325
|
-
x,
|
|
326
|
-
{
|
|
327
|
-
size: "small",
|
|
328
|
-
variant: "contained",
|
|
329
|
-
"data-testid": "languages-modal-cancel-button",
|
|
330
|
-
color: "secondary",
|
|
331
|
-
onClick: () => {
|
|
332
|
-
p(!1), A("conversion_event", {
|
|
333
|
-
form: f.current,
|
|
334
|
-
form_name: "Add Language Configuration",
|
|
335
|
-
submit: !1
|
|
336
|
-
});
|
|
337
|
-
},
|
|
338
|
-
children: i("Cancel")
|
|
339
|
-
}
|
|
340
|
-
),
|
|
341
|
-
/* @__PURE__ */ t(
|
|
342
|
-
x,
|
|
343
|
-
{
|
|
344
|
-
type: "submit",
|
|
345
|
-
size: "small",
|
|
346
|
-
variant: "contained",
|
|
347
|
-
"data-testid": "language-modal-save-button",
|
|
348
|
-
color: "primary",
|
|
349
|
-
children: i("Save")
|
|
350
|
-
}
|
|
351
|
-
)
|
|
352
|
-
]
|
|
353
|
-
}
|
|
354
|
-
)
|
|
355
|
-
}
|
|
356
|
-
)
|
|
357
|
-
]
|
|
358
|
-
}
|
|
359
|
-
) })
|
|
360
|
-
}
|
|
361
|
-
),
|
|
362
|
-
/* @__PURE__ */ t(n, { className: "w-full block", children: /* @__PURE__ */ t(
|
|
363
|
-
me,
|
|
364
|
-
{
|
|
365
|
-
columns: Y,
|
|
366
|
-
tableData: O,
|
|
367
|
-
actions: te,
|
|
368
|
-
paginationConfig: { pagination: !1 },
|
|
369
|
-
styleConfig: { tableStyle: { maxHeight: 120 } }
|
|
370
|
-
}
|
|
371
|
-
) })
|
|
372
|
-
] })
|
|
373
|
-
}
|
|
374
|
-
)
|
|
375
|
-
}
|
|
376
|
-
)
|
|
377
|
-
]
|
|
378
|
-
}
|
|
379
|
-
)
|
|
380
|
-
}
|
|
381
|
-
);
|
|
382
|
-
};
|
|
383
|
-
Te.propTypes = {
|
|
384
|
-
open: d.any,
|
|
385
|
-
handleClose: d.any,
|
|
386
|
-
handleClick: d.any,
|
|
387
|
-
type: d.any,
|
|
388
|
-
refetch: d.any,
|
|
389
|
-
refresh: d.any
|
|
390
|
-
};
|
|
391
|
-
export {
|
|
392
|
-
Te as default
|
|
393
|
-
};
|
|
394
|
-
//# sourceMappingURL=LanguagesModal-rk6IGQwY.js.map
|