@argusoft/medplat-core 1.0.29 → 1.0.31
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/AccessRights-DUgY6ewy.js +1031 -0
- package/dist/AccessRights-DUgY6ewy.js.map +1 -0
- package/dist/AddEditQueryBuilder-D-iQiVIe.js +365 -0
- package/dist/AddEditQueryBuilder-D-iQiVIe.js.map +1 -0
- package/dist/{AddFeatures-v3TmGQee.js → AddFeatures-D1sU8RjY.js} +2 -2
- package/dist/{AddFeatures-v3TmGQee.js.map → AddFeatures-D1sU8RjY.js.map} +1 -1
- package/dist/AddLabelModal-Bq-wRqv9.js +631 -0
- package/dist/AddLabelModal-Bq-wRqv9.js.map +1 -0
- package/dist/AddMenuConfiguration-c6ZKiN0i.js +8898 -0
- package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +1 -0
- package/dist/AppModal-CCtrQ5Tr.js +394 -0
- package/dist/AppModal-CCtrQ5Tr.js.map +1 -0
- package/dist/BrandsPage-DMw2vT0u-BVhvhc6J.js +387 -0
- package/dist/BrandsPage-DMw2vT0u-BVhvhc6J.js.map +1 -0
- package/dist/CategoriesPage-D3ihx9Gi-CT58g0ry.js +398 -0
- package/dist/CategoriesPage-D3ihx9Gi-CT58g0ry.js.map +1 -0
- package/dist/{ChangePasswordModalCore-DutQAZOx.js → ChangePasswordModalCore-lQ9GamH1.js} +1605 -1610
- package/dist/ChangePasswordModalCore-lQ9GamH1.js.map +1 -0
- package/dist/ConditionConfig-BQBmBHaM.js +408 -0
- package/dist/ConditionConfig-BQBmBHaM.js.map +1 -0
- package/dist/DashboardPage-asr2XDRu-uOOlX9Vq.js +435 -0
- package/dist/DashboardPage-asr2XDRu-uOOlX9Vq.js.map +1 -0
- package/dist/EventConfig-BY2cgGyx.js +27 -0
- package/dist/EventConfig-BY2cgGyx.js.map +1 -0
- package/dist/EventConfigurations-CUPEN5BV.js +544 -0
- package/dist/EventConfigurations-CUPEN5BV.js.map +1 -0
- package/dist/EventConfigurations.css +1 -1
- package/dist/EventsExceptionModal-BX-ArkBE.js +188 -0
- package/dist/EventsExceptionModal-BX-ArkBE.js.map +1 -0
- package/dist/EventsUi-D6O9S7BK.js +258 -0
- package/dist/EventsUi-D6O9S7BK.js.map +1 -0
- package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +79 -0
- package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +1 -0
- package/dist/FeatureMenu-CHsBbw3W.js +525 -0
- package/dist/FeatureMenu-CHsBbw3W.js.map +1 -0
- package/dist/{FhirServerList-Dkq7Kbes.js → FhirServerList-iXBPkRVF.js} +22 -22
- package/dist/{FhirServerList-Dkq7Kbes.js.map → FhirServerList-iXBPkRVF.js.map} +1 -1
- package/dist/{FhirServerWizard-Db6Hm4bQ.js → FhirServerWizard-DZI8Olku.js} +15 -15
- package/dist/{FhirServerWizard-Db6Hm4bQ.js.map → FhirServerWizard-DZI8Olku.js.map} +1 -1
- package/dist/FlywayQuery-CQygj51V.js +179 -0
- package/dist/FlywayQuery-CQygj51V.js.map +1 -0
- package/dist/GrantPermissionModal-D7iNZd0M.js +239 -0
- package/dist/GrantPermissionModal-D7iNZd0M.js.map +1 -0
- package/dist/ImmunizationConfigurationBase-aUtx0JEe.js +8019 -0
- package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +1 -0
- package/dist/ImmunizationConfigurationBase.css +1 -1
- package/dist/ImmunizationConfigurationsList-TZcLDEci.js +369 -0
- package/dist/ImmunizationConfigurationsList-TZcLDEci.js.map +1 -0
- package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +665 -0
- package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +1 -0
- package/dist/LanguagesModal-B3NTebYT.js +352 -0
- package/dist/LanguagesModal-B3NTebYT.js.map +1 -0
- package/dist/ManageDynamicFeature-BU0I45dd.js +4475 -0
- package/dist/ManageDynamicFeature-BU0I45dd.js.map +1 -0
- package/dist/ManageEventConfiguration-DqW3krT6.js +1216 -0
- package/dist/ManageEventConfiguration-DqW3krT6.js.map +1 -0
- package/dist/ManageEventConfiguration.css +1 -1
- package/dist/{ManageNotification-CfhHlfxA.js → ManageNotification-C5MhV77Q.js} +2 -2
- package/dist/{ManageNotification-CfhHlfxA.js.map → ManageNotification-C5MhV77Q.js.map} +1 -1
- package/dist/{ManageRole-4Y2PP4dQ.js → ManageRole-CNZBRKGU.js} +2 -2
- package/dist/{ManageRole-4Y2PP4dQ.js.map → ManageRole-CNZBRKGU.js.map} +1 -1
- package/dist/ManageTranslation-vRiptUAP.js +833 -0
- package/dist/ManageTranslation-vRiptUAP.js.map +1 -0
- package/dist/ManageTranslation.css +1 -1
- package/dist/{ManageUser-DDzyd9jm.js → ManageUser-DZltBina.js} +224 -224
- package/dist/{ManageUser-DDzyd9jm.js.map → ManageUser-DZltBina.js.map} +1 -1
- package/dist/MemberProfileCard-D5CgkTdJ-D2NgDJl3.js +272 -0
- package/dist/MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map +1 -0
- package/dist/MobileAnalytics-BLOionG_.js +17301 -0
- package/dist/MobileAnalytics-BLOionG_.js.map +1 -0
- package/dist/MobileMenuManagement-68Wijb0X.js +220 -0
- package/dist/MobileMenuManagement-68Wijb0X.js.map +1 -0
- package/dist/MobileTypeEventConfigModal-CMcj7Ozp.js +752 -0
- package/dist/MobileTypeEventConfigModal-CMcj7Ozp.js.map +1 -0
- package/dist/NotificationFlywayQuery-BAHVjf6N.js +247 -0
- package/dist/NotificationFlywayQuery-BAHVjf6N.js.map +1 -0
- package/dist/{NotificationList-BMFpNUJG.js → NotificationList-DEyRZEuM.js} +2 -2
- package/dist/{NotificationList-BMFpNUJG.js.map → NotificationList-DEyRZEuM.js.map} +1 -1
- package/dist/OtherTypeEventConfigModal-stNmuSv_.js +1812 -0
- package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +1 -0
- package/dist/PaymentCreatePage-DfvSZ-kB-CckogYoe.js +482 -0
- package/dist/PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map +1 -0
- package/dist/PaymentsPage-DMNjYWAJ-ChO9IXmk.js +157 -0
- package/dist/PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map +1 -0
- package/dist/PermissionsModal-CCYkcKlC.js +151 -0
- package/dist/PermissionsModal-CCYkcKlC.js.map +1 -0
- package/dist/PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js +119 -0
- package/dist/PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map +1 -0
- package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +783 -0
- package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +1 -0
- package/dist/PickupsPage-D7zyioJB-bHKnARYw.js +818 -0
- package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +1 -0
- package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +599 -0
- package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +1 -0
- package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +1305 -0
- package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +1 -0
- package/dist/ProductsPage-DvNHIeZt-BoOOJJtk.js +253 -0
- package/dist/ProductsPage-DvNHIeZt-BoOOJJtk.js.map +1 -0
- package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +675 -0
- package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +1 -0
- package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js +1577 -0
- package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +1 -0
- package/dist/PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js +279 -0
- package/dist/PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map +1 -0
- package/dist/PurchasesPage-DgL5T6BY-DePUuE9l.js +293 -0
- package/dist/PurchasesPage-DgL5T6BY-DePUuE9l.js.map +1 -0
- package/dist/QueryBuilder-CXaBe6sr.js +478 -0
- package/dist/QueryBuilder-CXaBe6sr.js.map +1 -0
- package/dist/{RoleManagement-DEiBNfT8.js → RoleManagement-s8iNx2Mu.js} +145 -155
- package/dist/RoleManagement-s8iNx2Mu.js.map +1 -0
- package/dist/Roles-BIyiic67.js +14 -0
- package/dist/Roles-BIyiic67.js.map +1 -0
- package/dist/SaleCreatePage-CZnIOydv-DKBw-qp7.js +544 -0
- package/dist/SaleCreatePage-CZnIOydv-DKBw-qp7.js.map +1 -0
- package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js +315 -0
- package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +1 -0
- package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +676 -0
- package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +1 -0
- package/dist/ShowFlywayQuery-D10Olk5Z.js +154 -0
- package/dist/ShowFlywayQuery-D10Olk5Z.js.map +1 -0
- package/dist/{ShowFlywayQuery-DVRCd384.js → ShowFlywayQuery-DIOUdYfG.js} +170 -123
- package/dist/ShowFlywayQuery-DIOUdYfG.js.map +1 -0
- package/dist/ShowQueryHistory-DRBKYDKk.js +313 -0
- package/dist/ShowQueryHistory-DRBKYDKk.js.map +1 -0
- package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js +728 -0
- package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +1 -0
- package/dist/SubMenu-BdMTYtC1.js +319 -0
- package/dist/SubMenu-BdMTYtC1.js.map +1 -0
- package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js +746 -0
- package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +1 -0
- package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +315 -0
- package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +1 -0
- package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +476 -0
- package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +1 -0
- package/dist/TypeConfiguration-JbRCN6GR.js +114 -0
- package/dist/TypeConfiguration-JbRCN6GR.js.map +1 -0
- package/dist/{UserList-Bc8gYxRL.js → UserList-L41Xw0Q6.js} +253 -236
- package/dist/{UserList-Bc8gYxRL.js.map → UserList-L41Xw0Q6.js.map} +1 -1
- package/dist/Users-CsJ08Kjm.js.map +1 -1
- package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +321 -0
- package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +1 -0
- package/dist/constants-DpXnLsAB-D6lN5cjK.js +445 -0
- package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +1 -0
- package/dist/{dashboardLayoutUtils-D1xCAxp3.js → dashboardLayoutUtils-CJivzaU1.js} +95 -92
- package/dist/dashboardLayoutUtils-CJivzaU1.js.map +1 -0
- package/dist/format-UOyOu75i-D0GyylyQ.js +63 -0
- package/dist/format-UOyOu75i-D0GyylyQ.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.lib-ETRQOzvE.js +894 -0
- package/dist/index.lib-ETRQOzvE.js.map +1 -0
- package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +36 -0
- package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +1 -0
- package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js +28 -0
- package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js.map +1 -0
- package/dist/validation-BzlHnL-r-CCJm2utQ.js +125 -0
- package/dist/validation-BzlHnL-r-CCJm2utQ.js.map +1 -0
- package/package.json +4 -3
- package/dist/AccessRights-Zm8Obm4N.js +0 -1284
- package/dist/AccessRights-Zm8Obm4N.js.map +0 -1
- package/dist/AddEditQueryBuilder-Brdnm6rQ.js +0 -313
- package/dist/AddEditQueryBuilder-Brdnm6rQ.js.map +0 -1
- package/dist/AddLabelModal-DFllBVcd.js +0 -734
- package/dist/AddLabelModal-DFllBVcd.js.map +0 -1
- package/dist/AddMenuConfiguration-Ce91MhnU.js +0 -8547
- package/dist/AddMenuConfiguration-Ce91MhnU.js.map +0 -1
- package/dist/AppModal-CtG2GjD_.js +0 -428
- package/dist/AppModal-CtG2GjD_.js.map +0 -1
- package/dist/ChangePasswordModalCore-DutQAZOx.js.map +0 -1
- package/dist/ConditionConfig-B4Ffpgj3.js +0 -395
- package/dist/ConditionConfig-B4Ffpgj3.js.map +0 -1
- package/dist/ConditionConfig.css +0 -1
- package/dist/EventConfigurations-BJcURufo.js +0 -449
- package/dist/EventConfigurations-BJcURufo.js.map +0 -1
- package/dist/EventsExceptionModal-BlZtBQoR.js +0 -200
- package/dist/EventsExceptionModal-BlZtBQoR.js.map +0 -1
- package/dist/EventsSkeleton-DK6JDKAK.js +0 -83
- package/dist/EventsSkeleton-DK6JDKAK.js.map +0 -1
- package/dist/FeatureMenu-C3503UIX.js +0 -265
- package/dist/FeatureMenu-C3503UIX.js.map +0 -1
- package/dist/FlywayQuery-Cx2sly6g.js +0 -169
- package/dist/FlywayQuery-Cx2sly6g.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DLQVSNnt.js +0 -5895
- package/dist/ImmunizationConfigurationBase-DLQVSNnt.js.map +0 -1
- package/dist/ImmunizationConfigurationsList-DdSZicTP.js +0 -344
- package/dist/ImmunizationConfigurationsList-DdSZicTP.js.map +0 -1
- package/dist/LanguagesModal-D6VfaGrl.js +0 -394
- package/dist/LanguagesModal-D6VfaGrl.js.map +0 -1
- package/dist/ManageDynamicFeature-dt096fyj.js +0 -4189
- package/dist/ManageDynamicFeature-dt096fyj.js.map +0 -1
- package/dist/ManageEventConfiguration-BpSJszSX.js +0 -1017
- package/dist/ManageEventConfiguration-BpSJszSX.js.map +0 -1
- package/dist/ManageTranslation-B4C9-lWD.js +0 -625
- package/dist/ManageTranslation-B4C9-lWD.js.map +0 -1
- package/dist/MobileMenuManagement-Cf8IZlla.js +0 -108
- package/dist/MobileMenuManagement-Cf8IZlla.js.map +0 -1
- package/dist/MobileTypeEventConfigModal-DUkUYACe.js +0 -783
- package/dist/MobileTypeEventConfigModal-DUkUYACe.js.map +0 -1
- package/dist/NotificationFlywayQuery-BY8Zzml_.js +0 -244
- package/dist/NotificationFlywayQuery-BY8Zzml_.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-CYBfr2XE.js +0 -2046
- package/dist/OtherTypeEventConfigModal-CYBfr2XE.js.map +0 -1
- package/dist/QueryBuilder-z7eqfd7D.js +0 -383
- package/dist/QueryBuilder-z7eqfd7D.js.map +0 -1
- package/dist/RoleManagement-DEiBNfT8.js.map +0 -1
- package/dist/ShowFlywayQuery-DVRCd384.js.map +0 -1
- package/dist/ShowFlywayQuery-tj42YQAS.js +0 -130
- package/dist/ShowFlywayQuery-tj42YQAS.js.map +0 -1
- package/dist/ShowQueryHistory-BDN0tzHg.js +0 -190
- package/dist/ShowQueryHistory-BDN0tzHg.js.map +0 -1
- package/dist/SubMenu-B072oEGb.js +0 -191
- package/dist/SubMenu-B072oEGb.js.map +0 -1
- package/dist/TypeConfiguration-C3xoP2Nb.js +0 -117
- package/dist/TypeConfiguration-C3xoP2Nb.js.map +0 -1
- package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +0 -1
- package/dist/index.lib-C3fwoM3y.js +0 -820
- package/dist/index.lib-C3fwoM3y.js.map +0 -1
|
@@ -1,625 +0,0 @@
|
|
|
1
|
-
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as J, useState as o, useEffect as Y, useCallback as va, useMemo as E, Suspense as z, createElement as xa, lazy as P } from "react";
|
|
3
|
-
import { api as h } from "@/common/interceptors/AxiosInterceptor";
|
|
4
|
-
import { execute as Aa, executeQuery as j } from "@/common/services/GlobalApis";
|
|
5
|
-
import { showToast as b } from "@/common/toaster/toaster";
|
|
6
|
-
import p from "@mui/material/Grid2";
|
|
7
|
-
import { getAssignedFeatures as Ca } from "@/utils/feature";
|
|
8
|
-
import { Box as X, Card as Sa, Typography as L, FormControl as Z, Select as La, MenuItem as Na, Autocomplete as ka, TextField as Se, Chip as Ta, Button as M, FormGroup as wa, FormControlLabel as Ma, Checkbox as Ia } from "@mui/material";
|
|
9
|
-
import _a from "@/hooks/usePagination";
|
|
10
|
-
import Fa from "@/views/custom-components/CustomConfirmationModal";
|
|
11
|
-
import C from "@/common/services/util/GeneralUtil";
|
|
12
|
-
import { useTranslateProvider as Ea } from "@/common/languageTranslator/TranslationContext";
|
|
13
|
-
import f from "prop-types";
|
|
14
|
-
import { useSelector as O } from "react-redux";
|
|
15
|
-
import { getUseSkeleton as V } from "@/store/reducers/SkeletonReducer";
|
|
16
|
-
import za from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
|
|
17
|
-
import { faPen as ja, faBars as Oa } from "@fortawesome/free-solid-svg-icons";
|
|
18
|
-
import { FontAwesomeIcon as Le } from "@fortawesome/react-fontawesome";
|
|
19
|
-
import './ManageTranslation.css';const ut = (s) => h.post("/translation/languages", s), pt = (s) => h.put("/translation/languages", s), Va = () => h.get("/translation/languages"), mt = (s) => h.post("/translation/apps", s), gt = (s) => h.post("/translation/apps", s), Da = () => h.get("/translation/apps"), ht = (s) => h.post("/translation/labels", s), ft = (s) => h.post("/translation/map", s), yt = (s) => h.post("/translation/mapUpdate", s), Wa = (s, u, g) => {
|
|
20
|
-
const D = new URLSearchParams({
|
|
21
|
-
key: s,
|
|
22
|
-
isActive: u,
|
|
23
|
-
app: g
|
|
24
|
-
}).toString();
|
|
25
|
-
return h.put(`/translation/toggleActive?${D}`, { key: s, isActive: u, app: g });
|
|
26
|
-
}, bt = (s, u) => h.get("/translation/translate", { params: { targetLangs: s, englishText: u } }), Ne = ({ children: s, isLoading: u }) => !O(V) || !u ? s : /* @__PURE__ */ m("div", { className: "flex flex-col mt-6 gap-2 w-full", children: [
|
|
27
|
-
/* @__PURE__ */ m("div", { className: "flex w-full items-center justify-between space-x-2", children: [
|
|
28
|
-
/* @__PURE__ */ m("div", { className: "flex space-x-2", children: [
|
|
29
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
|
|
30
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
|
|
31
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm w-60 h-10" })
|
|
32
|
-
] }),
|
|
33
|
-
/* @__PURE__ */ m("div", { className: "flex space-x-2", children: [
|
|
34
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 rounded-sm animate-pulse w-40 h-10" }),
|
|
35
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 rounded-sm animate-pulse w-20 h-10" }),
|
|
36
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 rounded-sm animate-pulse w-20 h-10" }),
|
|
37
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 rounded-sm animate-pulse w-20 h-10" })
|
|
38
|
-
] })
|
|
39
|
-
] }),
|
|
40
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-100" })
|
|
41
|
-
] });
|
|
42
|
-
Ne.propTypes = {
|
|
43
|
-
children: f.any,
|
|
44
|
-
isLoading: f.any
|
|
45
|
-
};
|
|
46
|
-
const Ba = ({ children: s, isLoading: u = !0 }) => !O(V) || !u ? s : /* @__PURE__ */ m("div", { className: "flex flex-col absolute top-10 left-1/2 -translate-x-1/2 w-[95%] sm:w-[600px] md:w-[700px] lg:w-[800px] bg-white shadow-2xl border border-gray-300 rounded-sm h-[60vh]", children: [
|
|
47
|
-
/* @__PURE__ */ a("div", { className: "h-15 w-full bg-gray-200 rounded mb-6" }),
|
|
48
|
-
/* @__PURE__ */ a("div", { className: "h-10 w-[90%] bg-gray-200 rounded m-4" }),
|
|
49
|
-
/* @__PURE__ */ a("div", { className: "h-10 w-[90%] bg-gray-200 rounded m-4" }),
|
|
50
|
-
/* @__PURE__ */ a("div", { className: "h-10 w-[90%] bg-gray-200 rounded m-4 " }),
|
|
51
|
-
/* @__PURE__ */ a("div", { className: "h-9 w-1/3 bg-gray-200 rounded mt-auto ml-auto mb-2 mr-3" })
|
|
52
|
-
] });
|
|
53
|
-
Ba.propTypes = {
|
|
54
|
-
children: f.any,
|
|
55
|
-
isLoading: f.any
|
|
56
|
-
};
|
|
57
|
-
const Ka = ({ children: s, isLoading: u = !0 }) => !O(V) || !u ? s : /* @__PURE__ */ a("div", { className: "w-full flex justify-end pb-[10px]", children: /* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[32px] w-[100px]" }) });
|
|
58
|
-
Ka.propTypes = {
|
|
59
|
-
children: f.any,
|
|
60
|
-
isLoading: f.any
|
|
61
|
-
};
|
|
62
|
-
const qa = ({ children: s, isLoading: u = !0 }) => !O(V) || !u ? s : /* @__PURE__ */ a("div", { className: "flex justify-end w-full", children: /* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[32px] w-[120px]" }) });
|
|
63
|
-
qa.propTypes = {
|
|
64
|
-
children: f.any,
|
|
65
|
-
isLoading: f.any
|
|
66
|
-
};
|
|
67
|
-
f.any, f.any;
|
|
68
|
-
const Ua = P(() => import("./AppModal-CtG2GjD_.js")), $a = P(() => import("./LanguagesModal-D6VfaGrl.js")), Ga = P(() => import("./AddLabelModal-DFllBVcd.js"));
|
|
69
|
-
function Ha() {
|
|
70
|
-
const { translate: s } = Ea(), u = J(null), [g, D] = o([]), I = J(!1), [ke, ee] = o([]), [Te, ae] = o(!1), [we, W] = o(null), [Me, B] = o(!1), [te, Ie] = o([]), [se, ne] = o(!1), [le, re] = o(!1), [oe, _e] = o(!0), [y, K] = o(""), [N, Fe] = o([]), [ie, k] = o(!1), [Ee, q] = o(null), [T, ce] = o(""), [v, de] = o(""), [S, ue] = o(!1), [r, ze] = o(null), je = J(r);
|
|
71
|
-
Y(() => {
|
|
72
|
-
je.current = r;
|
|
73
|
-
}, [r]);
|
|
74
|
-
const [Oe, U] = o(!1), [pe, Ve] = o(""), [De, We] = o(""), [i, Be] = o({}), [Ke, me] = o(!1), [qe, ge] = o(null), [$, G] = o(!1), [Ue, he] = o(!1), [_, $e] = o(!1), [Ge, H] = o(!1), [fe, He] = o([]), [x, ye] = o([]), Qe = async () => {
|
|
75
|
-
var e;
|
|
76
|
-
try {
|
|
77
|
-
const t = await Aa({
|
|
78
|
-
code: "get_distinct_namespce",
|
|
79
|
-
parameters: {}
|
|
80
|
-
});
|
|
81
|
-
He((e = t == null ? void 0 : t.data) == null ? void 0 : e.result);
|
|
82
|
-
} catch (t) {
|
|
83
|
-
console.error(t);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
Y(() => {
|
|
87
|
-
Re(), Qe();
|
|
88
|
-
}, []);
|
|
89
|
-
const Re = async () => {
|
|
90
|
-
try {
|
|
91
|
-
await Q();
|
|
92
|
-
const { data: e } = await Ca(
|
|
93
|
-
"techo.manage.manageTranslation"
|
|
94
|
-
);
|
|
95
|
-
ze(JSON.parse(e));
|
|
96
|
-
} catch (e) {
|
|
97
|
-
console.error(e), b({ message: "Error in manage Translation", type: "error" });
|
|
98
|
-
}
|
|
99
|
-
}, Q = async () => {
|
|
100
|
-
var e, t;
|
|
101
|
-
try {
|
|
102
|
-
let n = await Da();
|
|
103
|
-
const c = (e = n == null ? void 0 : n.data) == null ? void 0 : e.filter((d) => d.isActive === !0);
|
|
104
|
-
D(c), n = await Va();
|
|
105
|
-
const l = (t = n == null ? void 0 : n.data) == null ? void 0 : t.filter((d) => d.active === !0);
|
|
106
|
-
Fe(l);
|
|
107
|
-
} catch (n) {
|
|
108
|
-
console.error(n), b({ message: "Error in manage Translation", type: "error" });
|
|
109
|
-
}
|
|
110
|
-
}, Je = (e) => {
|
|
111
|
-
var t;
|
|
112
|
-
K((t = e == null ? void 0 : e.target) == null ? void 0 : t.value);
|
|
113
|
-
}, be = va((e) => {
|
|
114
|
-
const t = (e.match(/{/g) || []).length, n = (e.match(/}/g) || []).length;
|
|
115
|
-
t > n || ce(e);
|
|
116
|
-
}, []), Ye = (e, t) => {
|
|
117
|
-
let n;
|
|
118
|
-
return (...c) => {
|
|
119
|
-
n && clearTimeout(n), n = setTimeout(() => {
|
|
120
|
-
e(...c);
|
|
121
|
-
}, t);
|
|
122
|
-
};
|
|
123
|
-
}, Xe = E(
|
|
124
|
-
() => Ye(be, 300),
|
|
125
|
-
[be]
|
|
126
|
-
), Ze = (e) => {
|
|
127
|
-
const { value: t } = e.target;
|
|
128
|
-
Xe(t);
|
|
129
|
-
}, ve = (e) => {
|
|
130
|
-
de(e);
|
|
131
|
-
}, xe = [
|
|
132
|
-
{ field: "Sr. No.", label: "Sr.No", align: "left" },
|
|
133
|
-
{ field: "Actions", label: "Actions" },
|
|
134
|
-
{ field: "app", label: "App", align: "left" },
|
|
135
|
-
{ field: "state", label: "State", align: "left" },
|
|
136
|
-
{ field: "key", label: "Key", align: "left" }
|
|
137
|
-
];
|
|
138
|
-
N == null || N.map(
|
|
139
|
-
(e) => {
|
|
140
|
-
var t;
|
|
141
|
-
return xe.push({
|
|
142
|
-
field: (t = e == null ? void 0 : e.languageValue) == null ? void 0 : t.toLowerCase(),
|
|
143
|
-
label: e == null ? void 0 : e.languageValue,
|
|
144
|
-
align: "left"
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
const Pe = (e) => {
|
|
149
|
-
Ve(
|
|
150
|
-
(e == null ? void 0 : e.state) === "Active" ? "Mark as Inactive" : "Mark as Active"
|
|
151
|
-
), We(
|
|
152
|
-
(e == null ? void 0 : e.state) === "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?"
|
|
153
|
-
), Be(e);
|
|
154
|
-
}, ea = () => {
|
|
155
|
-
U((e) => !e);
|
|
156
|
-
}, aa = async () => {
|
|
157
|
-
try {
|
|
158
|
-
W({ key: i == null ? void 0 : i.key }), he(!0), k((e) => !e);
|
|
159
|
-
} catch (e) {
|
|
160
|
-
console.error(e), b({ message: "Error in opening Add App Modal", type: "error" });
|
|
161
|
-
}
|
|
162
|
-
}, ta = async () => {
|
|
163
|
-
var e, t, n;
|
|
164
|
-
try {
|
|
165
|
-
let l = {
|
|
166
|
-
code: "labels_selected_apps_for_editing",
|
|
167
|
-
parameters: { key: i == null ? void 0 : i.key.replace(/'/g, "''") }
|
|
168
|
-
};
|
|
169
|
-
const d = await j(l);
|
|
170
|
-
let ha = (e = d == null ? void 0 : d.data) == null ? void 0 : e.result;
|
|
171
|
-
q((t = d == null ? void 0 : d.data) == null ? void 0 : t.result);
|
|
172
|
-
let fa = {
|
|
173
|
-
code: "labels_app_data_for_prepopulating",
|
|
174
|
-
parameters: {
|
|
175
|
-
key: i == null ? void 0 : i.key,
|
|
176
|
-
appValue: i == null ? void 0 : i.app
|
|
177
|
-
}
|
|
178
|
-
}, ya = ha.map((A) => A.app), Ce = g.filter((A) => ya.indexOf(A.id) === -1);
|
|
179
|
-
if (Ce.length > 0) {
|
|
180
|
-
const A = await j(fa);
|
|
181
|
-
W((n = A == null ? void 0 : A.data) == null ? void 0 : n.result), ee(Ce), ae(!0), k((ba) => !ba);
|
|
182
|
-
} else
|
|
183
|
-
b({
|
|
184
|
-
message: "Label already present in all apps",
|
|
185
|
-
type: "info"
|
|
186
|
-
});
|
|
187
|
-
} catch (c) {
|
|
188
|
-
console.error(c), b({ message: "Error in opening Add App Modal", type: "error" });
|
|
189
|
-
}
|
|
190
|
-
}, sa = async () => {
|
|
191
|
-
try {
|
|
192
|
-
let e = (i == null ? void 0 : i.state) === "Active";
|
|
193
|
-
await Wa(i == null ? void 0 : i.key, !e, i == null ? void 0 : i.appId), F(), U((t) => !t);
|
|
194
|
-
} catch (e) {
|
|
195
|
-
console.error(e), b({ message: "Error in Toggle State", type: "error" });
|
|
196
|
-
}
|
|
197
|
-
}, na = async (e) => {
|
|
198
|
-
var t;
|
|
199
|
-
try {
|
|
200
|
-
B(!0), k((d) => !d), me((d) => !d);
|
|
201
|
-
let n = e == null ? void 0 : e.key.replace(/'/g, "''");
|
|
202
|
-
ge(n);
|
|
203
|
-
const l = await j({
|
|
204
|
-
code: "labels_selected_apps_for_editing",
|
|
205
|
-
parameters: { key: n }
|
|
206
|
-
});
|
|
207
|
-
q((t = l == null ? void 0 : l.data) == null ? void 0 : t.result), B(!1);
|
|
208
|
-
} catch (n) {
|
|
209
|
-
console.error(n), b({ message: "Error in Editing label", type: "error" }), B(!1);
|
|
210
|
-
}
|
|
211
|
-
}, la = (e) => (e == null ? void 0 : e.state) !== "Inactive", ra = E(() => {
|
|
212
|
-
const e = [];
|
|
213
|
-
C.hasCheckRights(r == null ? void 0 : r["update.manage.manageTranslation"]) && e.push({
|
|
214
|
-
label: "",
|
|
215
|
-
icon: /* @__PURE__ */ a(Le, { icon: ja }),
|
|
216
|
-
onClick: na,
|
|
217
|
-
condition: la,
|
|
218
|
-
dataTestId: "manage-translation-edit-icon"
|
|
219
|
-
});
|
|
220
|
-
const t = [];
|
|
221
|
-
return C.hasCheckRights(r == null ? void 0 : r["update.manage.manageTranslation"]) && t.push({ label: s(pe), onClick: ea }), C.hasCheckRights(r == null ? void 0 : r["create.manage.manageTranslation"]) && (t.push({ label: s("Add app"), onClick: ta }), t.push({ label: s("Add Namespace"), onClick: aa })), t.length > 0 && e.push({
|
|
222
|
-
label: "",
|
|
223
|
-
icon: /* @__PURE__ */ a(Le, { icon: Oa }),
|
|
224
|
-
menuClick: Pe,
|
|
225
|
-
dataTestId: "manage-translation-menu-icon",
|
|
226
|
-
menuItems: t
|
|
227
|
-
}), e;
|
|
228
|
-
}, [r, pe, s]), oa = () => {
|
|
229
|
-
ne((e) => !e);
|
|
230
|
-
}, ia = () => {
|
|
231
|
-
re((e) => !e);
|
|
232
|
-
}, ca = () => {
|
|
233
|
-
k((e) => !e), ee(g);
|
|
234
|
-
}, R = (e) => e == null ? e : e.replace(/'/g, "''"), da = async (e, t) => {
|
|
235
|
-
var n;
|
|
236
|
-
try {
|
|
237
|
-
t && !_ ? (I.current = !0, G(!0)) : t && _ && H(!0);
|
|
238
|
-
let c = {
|
|
239
|
-
code: "fetch_labels_translation_translation_master",
|
|
240
|
-
parameters: {
|
|
241
|
-
appId: y || null,
|
|
242
|
-
searchString: R(T || ""),
|
|
243
|
-
startsWith: R(v || ""),
|
|
244
|
-
namespaceArray: x.length > 0 ? x.map((d) => R(d)).join(",") : "",
|
|
245
|
-
showInactive: S || !1,
|
|
246
|
-
limit: (e == null ? void 0 : e.limit) || 100,
|
|
247
|
-
offset: (e == null ? void 0 : e.offset) || 0
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
const l = await j(c);
|
|
251
|
-
return (n = l == null ? void 0 : l.data) == null ? void 0 : n.result;
|
|
252
|
-
} catch (c) {
|
|
253
|
-
I.current = !1, console.error(c), H(!1), G(!1), b({ message: "Error in loading data", type: "error" });
|
|
254
|
-
}
|
|
255
|
-
}, Ae = E(() => T === "" && v === "" && S === !1 && y === "" && x.length === 0, [T, v, S, y, x]), ua = E(
|
|
256
|
-
() => [
|
|
257
|
-
"translation",
|
|
258
|
-
y,
|
|
259
|
-
T,
|
|
260
|
-
v,
|
|
261
|
-
S,
|
|
262
|
-
x
|
|
263
|
-
],
|
|
264
|
-
[y, T, v, S, x]
|
|
265
|
-
), {
|
|
266
|
-
data: w,
|
|
267
|
-
fetchNextPage: pa,
|
|
268
|
-
hasNextPage: ma,
|
|
269
|
-
refetch: F
|
|
270
|
-
} = _a({
|
|
271
|
-
key: ua,
|
|
272
|
-
queryFn: ({ pageParam: e }) => {
|
|
273
|
-
const t = !_, c = (!(e != null && e.offset) || (e == null ? void 0 : e.offset) === 0) && t;
|
|
274
|
-
return da(e, c);
|
|
275
|
-
},
|
|
276
|
-
limit: 100
|
|
277
|
-
});
|
|
278
|
-
Y(() => {
|
|
279
|
-
var e;
|
|
280
|
-
if (w) {
|
|
281
|
-
let t = ((e = w == null ? void 0 : w.pages) == null ? void 0 : e.flat()) || [];
|
|
282
|
-
const n = Object.values(
|
|
283
|
-
t == null ? void 0 : t.reduce((c, l) => {
|
|
284
|
-
const d = (l == null ? void 0 : l.key) + "-" + (l == null ? void 0 : l.app);
|
|
285
|
-
return c[d] || (c[d] = {
|
|
286
|
-
appId: l == null ? void 0 : l.appid,
|
|
287
|
-
key: l == null ? void 0 : l.key,
|
|
288
|
-
app: l == null ? void 0 : l.app,
|
|
289
|
-
state: l != null && l.is_active ? "Active" : "Inactive"
|
|
290
|
-
}), c[d][l == null ? void 0 : l.language.toLowerCase()] = l == null ? void 0 : l.value, l != null && l.is_active && (c[d].state = "Active"), c;
|
|
291
|
-
}, {})
|
|
292
|
-
);
|
|
293
|
-
_e(ma), Ie(n), I.current && (_ ? H(!1) : (G(!1), $e(!0)), I.current = !1);
|
|
294
|
-
}
|
|
295
|
-
}, [w]);
|
|
296
|
-
const ga = () => {
|
|
297
|
-
ce(""), de(""), ue(!1), K(""), ye([]), u.current.value = "";
|
|
298
|
-
};
|
|
299
|
-
return !$ && r !== null && !C.hasCheckRights(r == null ? void 0 : r["view.manage.manageTranslation"]) ? /* @__PURE__ */ a(X, { className: "flex justify-center items-center w-full h-[80vh]", children: /* @__PURE__ */ a(
|
|
300
|
-
Sa,
|
|
301
|
-
{
|
|
302
|
-
className: "h-80 w-150 flex justify-center items-center",
|
|
303
|
-
children: /* @__PURE__ */ a(L, { variant: "h5", className: "text-customBlue", children: "You dont have permission to view Manage Translation" })
|
|
304
|
-
}
|
|
305
|
-
) }) : /* @__PURE__ */ m(p, { container: !0, mt: 3, spacing: 2, children: [
|
|
306
|
-
/* @__PURE__ */ a(z, { children: se && /* @__PURE__ */ a(
|
|
307
|
-
Ua,
|
|
308
|
-
{
|
|
309
|
-
open: se,
|
|
310
|
-
handleClose: () => ne((e) => !e),
|
|
311
|
-
languages: N,
|
|
312
|
-
refresh: Q,
|
|
313
|
-
refetch: F,
|
|
314
|
-
selectedApp: y,
|
|
315
|
-
setSelectedApp: K
|
|
316
|
-
}
|
|
317
|
-
) }),
|
|
318
|
-
/* @__PURE__ */ a(z, { children: le && /* @__PURE__ */ a(
|
|
319
|
-
$a,
|
|
320
|
-
{
|
|
321
|
-
open: le,
|
|
322
|
-
handleClose: () => {
|
|
323
|
-
re((e) => !e);
|
|
324
|
-
},
|
|
325
|
-
refresh: Q,
|
|
326
|
-
refetch: F
|
|
327
|
-
}
|
|
328
|
-
) }),
|
|
329
|
-
/* @__PURE__ */ a(z, { children: ie && /* @__PURE__ */ a(
|
|
330
|
-
Ga,
|
|
331
|
-
{
|
|
332
|
-
open: ie,
|
|
333
|
-
handleClose: () => {
|
|
334
|
-
k((e) => !e), ae(!1), he(!1), q(null), W(null), me(!1), ge(null);
|
|
335
|
-
},
|
|
336
|
-
apps: ke,
|
|
337
|
-
addAppFlag: Te,
|
|
338
|
-
addNameSpaceFlag: Ue,
|
|
339
|
-
languageList: N,
|
|
340
|
-
editLabel: Ee,
|
|
341
|
-
fieldsData: we,
|
|
342
|
-
editLabelFlag: Ke,
|
|
343
|
-
labelKey: qe,
|
|
344
|
-
refetch: F,
|
|
345
|
-
isLoading: Me
|
|
346
|
-
}
|
|
347
|
-
) }),
|
|
348
|
-
/* @__PURE__ */ a(z, {}),
|
|
349
|
-
/* @__PURE__ */ a(
|
|
350
|
-
Fa,
|
|
351
|
-
{
|
|
352
|
-
description: De,
|
|
353
|
-
title: "CONFIRM ACTION",
|
|
354
|
-
handleClick: sa,
|
|
355
|
-
open: Oe,
|
|
356
|
-
handleClose: () => {
|
|
357
|
-
U((e) => !e);
|
|
358
|
-
},
|
|
359
|
-
"data-testid": "manageTranslation-modal-customconfirmation"
|
|
360
|
-
}
|
|
361
|
-
),
|
|
362
|
-
/* @__PURE__ */ a(p, { container: !0, spacing: 1, className: "grow", children: /* @__PURE__ */ m(Ne, { isLoading: $, children: [
|
|
363
|
-
/* @__PURE__ */ a(p, { size: { xs: 6, sm: 6, md: 3 }, children: /* @__PURE__ */ m(Z, { variant: "outlined", fullWidth: !0, children: [
|
|
364
|
-
/* @__PURE__ */ a(L, { className: "pl-2", children: /* @__PURE__ */ a("span", { children: s("App") }) }),
|
|
365
|
-
/* @__PURE__ */ a(
|
|
366
|
-
La,
|
|
367
|
-
{
|
|
368
|
-
value: y,
|
|
369
|
-
onChange: Je,
|
|
370
|
-
size: "small",
|
|
371
|
-
displayEmpty: !0,
|
|
372
|
-
sx: {
|
|
373
|
-
bgcolor: "background.paper",
|
|
374
|
-
color: y ? "text.primary" : "text.disabled"
|
|
375
|
-
// gray when empty
|
|
376
|
-
},
|
|
377
|
-
renderValue: (e) => {
|
|
378
|
-
var t;
|
|
379
|
-
return e ? (t = g.find((n) => n.id === e)) == null ? void 0 : t.appValue : "Select App";
|
|
380
|
-
},
|
|
381
|
-
children: g == null ? void 0 : g.map((e) => /* @__PURE__ */ a(Na, { value: e == null ? void 0 : e.id, children: e == null ? void 0 : e.appValue }, e == null ? void 0 : e.id))
|
|
382
|
-
}
|
|
383
|
-
)
|
|
384
|
-
] }) }),
|
|
385
|
-
/* @__PURE__ */ a(p, { size: { xs: 6, sm: 6, md: 3 }, children: /* @__PURE__ */ m(Z, { variant: "outlined", fullWidth: !0, children: [
|
|
386
|
-
/* @__PURE__ */ a(L, { className: "", children: /* @__PURE__ */ a("span", { children: s("Name Spaces") }) }),
|
|
387
|
-
/* @__PURE__ */ a(
|
|
388
|
-
ka,
|
|
389
|
-
{
|
|
390
|
-
multiple: !0,
|
|
391
|
-
options: fe ?? [],
|
|
392
|
-
getOptionLabel: (e) => (e == null ? void 0 : e.label) ?? "",
|
|
393
|
-
value: fe.filter(
|
|
394
|
-
(e) => x.includes(e.value)
|
|
395
|
-
),
|
|
396
|
-
onChange: (e, t) => {
|
|
397
|
-
ye(t.map((n) => n.value));
|
|
398
|
-
},
|
|
399
|
-
filterSelectedOptions: !0,
|
|
400
|
-
disableCloseOnSelect: !0,
|
|
401
|
-
size: "small",
|
|
402
|
-
renderTags: (e, t) => e.map((n, c) => /* @__PURE__ */ xa(
|
|
403
|
-
Ta,
|
|
404
|
-
{
|
|
405
|
-
variant: "outlined",
|
|
406
|
-
size: "small",
|
|
407
|
-
label: n.label,
|
|
408
|
-
...t({ index: c }),
|
|
409
|
-
key: n.label,
|
|
410
|
-
sx: {
|
|
411
|
-
bgcolor: "action.hover"
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
)),
|
|
415
|
-
renderInput: (e) => /* @__PURE__ */ a(
|
|
416
|
-
Se,
|
|
417
|
-
{
|
|
418
|
-
...e,
|
|
419
|
-
placeholder: "Select Name Space",
|
|
420
|
-
sx: { bgcolor: "background.paper" },
|
|
421
|
-
"data-testid": "autocomplete-namespace"
|
|
422
|
-
}
|
|
423
|
-
)
|
|
424
|
-
}
|
|
425
|
-
)
|
|
426
|
-
] }) }),
|
|
427
|
-
/* @__PURE__ */ a(p, { size: { xs: 6, sm: 6, md: 3 }, children: /* @__PURE__ */ m(Z, { variant: "outlined", fullWidth: !0, children: [
|
|
428
|
-
/* @__PURE__ */ a(L, { sx: { pl: 1 }, children: /* @__PURE__ */ m("span", { children: [
|
|
429
|
-
s("Search For"),
|
|
430
|
-
":"
|
|
431
|
-
] }) }),
|
|
432
|
-
/* @__PURE__ */ a(
|
|
433
|
-
Se,
|
|
434
|
-
{
|
|
435
|
-
inputRef: u,
|
|
436
|
-
name: "searchQuery",
|
|
437
|
-
id: "searchQuery",
|
|
438
|
-
placeholder: "Enter Search Value",
|
|
439
|
-
size: "small",
|
|
440
|
-
onChange: Ze,
|
|
441
|
-
sx: { bgcolor: "background.paper" },
|
|
442
|
-
"data-testid": "managetranslation-search-textfield"
|
|
443
|
-
}
|
|
444
|
-
)
|
|
445
|
-
] }) }),
|
|
446
|
-
/* @__PURE__ */ a(
|
|
447
|
-
p,
|
|
448
|
-
{
|
|
449
|
-
size: { xs: 12, sm: 12, md: 2 },
|
|
450
|
-
sx: {
|
|
451
|
-
display: "flex",
|
|
452
|
-
mt: 3,
|
|
453
|
-
justifyContent: "end",
|
|
454
|
-
alignItems: "center"
|
|
455
|
-
},
|
|
456
|
-
children: /* @__PURE__ */ a(X, { children: /* @__PURE__ */ a(
|
|
457
|
-
M,
|
|
458
|
-
{
|
|
459
|
-
variant: "contained",
|
|
460
|
-
disabled: Ae,
|
|
461
|
-
sx: {
|
|
462
|
-
lineHeight: "35px",
|
|
463
|
-
ml: 1,
|
|
464
|
-
mt: 1,
|
|
465
|
-
display: "inline-block",
|
|
466
|
-
...Ae ? {} : {
|
|
467
|
-
bgcolor: "error.main",
|
|
468
|
-
color: "error.contrastText",
|
|
469
|
-
"&:hover": { bgcolor: "error.dark" }
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
onClick: ga,
|
|
473
|
-
children: "Clear All Filters"
|
|
474
|
-
}
|
|
475
|
-
) })
|
|
476
|
-
}
|
|
477
|
-
),
|
|
478
|
-
/* @__PURE__ */ a(
|
|
479
|
-
p,
|
|
480
|
-
{
|
|
481
|
-
size: { xs: 12, sm: 12, md: 6.5 },
|
|
482
|
-
sx: {
|
|
483
|
-
pl: 1,
|
|
484
|
-
display: "flex",
|
|
485
|
-
justifyContent: "start",
|
|
486
|
-
alignItems: "center"
|
|
487
|
-
},
|
|
488
|
-
children: /* @__PURE__ */ m(X, { className: "overflow-x-auto whitespace-nowrap", children: [
|
|
489
|
-
/* @__PURE__ */ a(L, { className: "pb-[7px]", children: /* @__PURE__ */ m("span", { children: [
|
|
490
|
-
s("Starts With"),
|
|
491
|
-
":"
|
|
492
|
-
] }) }),
|
|
493
|
-
Array.from({ length: 26 }, (e, t) => {
|
|
494
|
-
const n = String.fromCharCode(65 + t);
|
|
495
|
-
return /* @__PURE__ */ a(
|
|
496
|
-
L,
|
|
497
|
-
{
|
|
498
|
-
component: "span",
|
|
499
|
-
className: `${v === n ? "selected-letter" : "letter-style"} inline-block cursor-pointer`,
|
|
500
|
-
onClick: () => ve(n),
|
|
501
|
-
children: n
|
|
502
|
-
},
|
|
503
|
-
n
|
|
504
|
-
);
|
|
505
|
-
}),
|
|
506
|
-
/* @__PURE__ */ a(
|
|
507
|
-
M,
|
|
508
|
-
{
|
|
509
|
-
variant: "contained",
|
|
510
|
-
color: "secondary",
|
|
511
|
-
disabled: v.length === 0,
|
|
512
|
-
className: "x-button ml-2 inline-block",
|
|
513
|
-
onClick: () => ve(""),
|
|
514
|
-
children: "×"
|
|
515
|
-
}
|
|
516
|
-
)
|
|
517
|
-
] })
|
|
518
|
-
}
|
|
519
|
-
),
|
|
520
|
-
/* @__PURE__ */ a(
|
|
521
|
-
p,
|
|
522
|
-
{
|
|
523
|
-
size: { xs: 12, sm: 12, md: 5.5 },
|
|
524
|
-
display: "flex",
|
|
525
|
-
alignItems: "center",
|
|
526
|
-
children: /* @__PURE__ */ m(
|
|
527
|
-
p,
|
|
528
|
-
{
|
|
529
|
-
container: !0,
|
|
530
|
-
justifyContent: "flex-end",
|
|
531
|
-
alignItems: "center",
|
|
532
|
-
spacing: 1,
|
|
533
|
-
children: [
|
|
534
|
-
/* @__PURE__ */ a(p, { item: "true", children: /* @__PURE__ */ a(wa, { children: /* @__PURE__ */ a(
|
|
535
|
-
Ma,
|
|
536
|
-
{
|
|
537
|
-
control: /* @__PURE__ */ a(
|
|
538
|
-
Ia,
|
|
539
|
-
{
|
|
540
|
-
checked: S,
|
|
541
|
-
onChange: (e) => ue(e.target.checked)
|
|
542
|
-
}
|
|
543
|
-
),
|
|
544
|
-
label: `${s("Show Inactive")}`,
|
|
545
|
-
labelPlacement: "end",
|
|
546
|
-
className: "translation-inactive"
|
|
547
|
-
}
|
|
548
|
-
) }) }),
|
|
549
|
-
/* @__PURE__ */ a(p, { item: "true", children: C.hasCheckRights(r == null ? void 0 : r["create.manage.manageTranslation"], r == null ? void 0 : r.canManage) && /* @__PURE__ */ a(
|
|
550
|
-
M,
|
|
551
|
-
{
|
|
552
|
-
size: "small",
|
|
553
|
-
variant: "contained",
|
|
554
|
-
"data-testid": "manageTranslation-manage-apps-button",
|
|
555
|
-
color: "primary",
|
|
556
|
-
onClick: oa,
|
|
557
|
-
children: s("Manage Apps")
|
|
558
|
-
}
|
|
559
|
-
) }),
|
|
560
|
-
/* @__PURE__ */ a(p, { item: "true", children: C.hasCheckRights(r == null ? void 0 : r["create.manage.manageTranslation"], r == null ? void 0 : r.canManage) && /* @__PURE__ */ a(
|
|
561
|
-
M,
|
|
562
|
-
{
|
|
563
|
-
size: "small",
|
|
564
|
-
variant: "contained",
|
|
565
|
-
"data-testid": "managetranslation-manage-language-button",
|
|
566
|
-
onClick: ia,
|
|
567
|
-
children: s("Manage Language")
|
|
568
|
-
}
|
|
569
|
-
) }),
|
|
570
|
-
/* @__PURE__ */ a(p, { item: "true", children: C.hasCheckRights(r == null ? void 0 : r["create.manage.manageTranslation"]) && /* @__PURE__ */ a(
|
|
571
|
-
M,
|
|
572
|
-
{
|
|
573
|
-
size: "small",
|
|
574
|
-
variant: "contained",
|
|
575
|
-
"data-testid": "manageTranalation-add-label-button",
|
|
576
|
-
onClick: ca,
|
|
577
|
-
children: s("Add Label")
|
|
578
|
-
}
|
|
579
|
-
) })
|
|
580
|
-
]
|
|
581
|
-
}
|
|
582
|
-
)
|
|
583
|
-
}
|
|
584
|
-
),
|
|
585
|
-
/* @__PURE__ */ a(p, { className: "mt-2", size: { xs: 12 }, children: /* @__PURE__ */ a(
|
|
586
|
-
za,
|
|
587
|
-
{
|
|
588
|
-
columns: xe,
|
|
589
|
-
tableData: te,
|
|
590
|
-
actions: ra,
|
|
591
|
-
paginationConfig: {
|
|
592
|
-
pagination: !0,
|
|
593
|
-
paginationType: "infinite-scroll",
|
|
594
|
-
loadMore: () => oe && pa({ cancelRefetch: !1 }),
|
|
595
|
-
hasMore: oe
|
|
596
|
-
},
|
|
597
|
-
dataTestId: "manageTranslation-table",
|
|
598
|
-
isLoading: te ? $ || Ge : !1,
|
|
599
|
-
styleConfig: { tableStyle: { maxHeight: 120 } }
|
|
600
|
-
}
|
|
601
|
-
) })
|
|
602
|
-
] }) })
|
|
603
|
-
] });
|
|
604
|
-
}
|
|
605
|
-
const vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
606
|
-
__proto__: null,
|
|
607
|
-
default: Ha
|
|
608
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
609
|
-
export {
|
|
610
|
-
Ka as A,
|
|
611
|
-
qa as L,
|
|
612
|
-
vt as M,
|
|
613
|
-
Va as a,
|
|
614
|
-
pt as b,
|
|
615
|
-
mt as c,
|
|
616
|
-
ut as d,
|
|
617
|
-
Ba as e,
|
|
618
|
-
ht as f,
|
|
619
|
-
Da as g,
|
|
620
|
-
ft as h,
|
|
621
|
-
yt as i,
|
|
622
|
-
bt as t,
|
|
623
|
-
gt as u
|
|
624
|
-
};
|
|
625
|
-
//# sourceMappingURL=ManageTranslation-B4C9-lWD.js.map
|