@argusoft/medplat-core 1.0.31 → 1.0.32
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 → AccessRights-DBjTQA1-.js} +421 -424
- package/dist/AccessRights-DBjTQA1-.js.map +1 -0
- package/dist/{AddFeatures-D1sU8RjY.js → AddFeatures-COj4ZTIM.js} +2 -2
- package/dist/{AddFeatures-D1sU8RjY.js.map → AddFeatures-COj4ZTIM.js.map} +1 -1
- package/dist/AddMenuConfiguration-Creeib5X.js +11223 -0
- package/dist/AddMenuConfiguration-Creeib5X.js.map +1 -0
- package/dist/AddMenuConfiguration.css +1 -1
- package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js → BrandsPage-CdcAvaml-ZtVTX6vX.js} +45 -45
- package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js.map → BrandsPage-CdcAvaml-ZtVTX6vX.js.map} +1 -1
- package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js → CategoriesPage-BprQEYJw-CclreTv1.js} +43 -43
- package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js.map → CategoriesPage-BprQEYJw-CclreTv1.js.map} +1 -1
- package/dist/{ChangePasswordModalCore-lQ9GamH1.js → ChangePasswordModalCore-DZGOkbRY.js} +3 -3
- package/dist/{ChangePasswordModalCore-lQ9GamH1.js.map → ChangePasswordModalCore-DZGOkbRY.js.map} +1 -1
- package/dist/{ConditionConfig-BQBmBHaM.js → ConditionConfig-Bpm6OoV5.js} +3 -3
- package/dist/{ConditionConfig-BQBmBHaM.js.map → ConditionConfig-Bpm6OoV5.js.map} +1 -1
- package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js → DashboardPage-CTiGSx71-CsYohJ5e.js} +29 -29
- package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js.map → DashboardPage-CTiGSx71-CsYohJ5e.js.map} +1 -1
- package/dist/EntityManagement-BGwJGl9k.js +62 -0
- package/dist/EntityManagement-BGwJGl9k.js.map +1 -0
- package/dist/{EventConfigurations-CUPEN5BV.js → EventConfigurations-B-z7xHh_.js} +3 -3
- package/dist/{EventConfigurations-CUPEN5BV.js.map → EventConfigurations-B-z7xHh_.js.map} +1 -1
- package/dist/{EventsExceptionModal-BX-ArkBE.js → EventsExceptionModal-DafomIv6.js} +2 -2
- package/dist/{EventsExceptionModal-BX-ArkBE.js.map → EventsExceptionModal-DafomIv6.js.map} +1 -1
- package/dist/{EventsUi-D6O9S7BK.js → EventsUi-Dl_yckSA.js} +37 -32
- package/dist/EventsUi-Dl_yckSA.js.map +1 -0
- package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js +112 -0
- package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js.map +1 -0
- package/dist/{FeatureMenu-CHsBbw3W.js → FeatureMenu-Kc73yPHH.js} +2 -2
- package/dist/{FeatureMenu-CHsBbw3W.js.map → FeatureMenu-Kc73yPHH.js.map} +1 -1
- package/dist/{FhirServerList-iXBPkRVF.js → FhirServerList-CrIHMAxz.js} +19 -19
- package/dist/{FhirServerList-iXBPkRVF.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
- package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
- package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
- package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
- package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
- package/dist/{ImmunizationConfigurationBase-aUtx0JEe.js → ImmunizationConfigurationBase-lKsJZMak.js} +1342 -1301
- package/dist/ImmunizationConfigurationBase-lKsJZMak.js.map +1 -0
- package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js +1017 -0
- package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js.map +1 -0
- package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
- package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
- package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
- package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
- package/dist/{ManageEventConfiguration-DqW3krT6.js → ManageEventConfiguration-DqPbn3Oi.js} +5 -5
- package/dist/{ManageEventConfiguration-DqW3krT6.js.map → ManageEventConfiguration-DqPbn3Oi.js.map} +1 -1
- package/dist/ManageRole-CyfpySt9.js +981 -0
- package/dist/ManageRole-CyfpySt9.js.map +1 -0
- package/dist/{ManageUser-DZltBina.js → ManageUser-Dm0l833u.js} +172 -172
- package/dist/{ManageUser-DZltBina.js.map → ManageUser-Dm0l833u.js.map} +1 -1
- package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js → MemberProfileCard-01d_jz3w-DYHtbgMX.js} +37 -37
- package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map → MemberProfileCard-01d_jz3w-DYHtbgMX.js.map} +1 -1
- package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
- package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
- package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
- package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
- package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js → MobileTypeEventConfigModal-DodU3beR.js} +3 -3
- package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js.map → MobileTypeEventConfigModal-DodU3beR.js.map} +1 -1
- package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
- package/dist/NewServerManagement-BdayO78D.js.map +1 -0
- package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
- package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
- package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js} +56 -56
- package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js.map} +1 -1
- package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js → PaymentsPage-CHieGNrn-BnYCtqHd.js} +38 -38
- package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map → PaymentsPage-CHieGNrn-BnYCtqHd.js.map} +1 -1
- package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
- package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
- package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js} +2 -2
- package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js.map} +1 -1
- package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js +801 -0
- package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js.map +1 -0
- package/dist/{PickupsPage-D7zyioJB-bHKnARYw.js → PickupsPage-BWblMlic-CWkgeBw0.js} +122 -122
- package/dist/PickupsPage-BWblMlic-CWkgeBw0.js.map +1 -0
- package/dist/PmGuard-BvUUbU80-BpYNaDzl.js +641 -0
- package/dist/PmGuard-BvUUbU80-BpYNaDzl.js.map +1 -0
- package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js +1523 -0
- package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js.map +1 -0
- package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js → ProductsPage-BI22nPb4-CQBjnc-n.js} +29 -29
- package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js.map → ProductsPage-BI22nPb4-CQBjnc-n.js.map} +1 -1
- package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js +724 -0
- package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js.map +1 -0
- package/dist/{PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js → PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js} +446 -436
- package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js.map +1 -0
- package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js} +55 -55
- package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js.map} +1 -1
- package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js → PurchasesPage-Djl1AqD_-DXeYFMrX.js} +61 -61
- package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js.map → PurchasesPage-Djl1AqD_-DXeYFMrX.js.map} +1 -1
- package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
- package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
- package/dist/Roles-BoNGJhtR.js +19 -0
- package/dist/Roles-BoNGJhtR.js.map +1 -0
- package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js → SaleCreatePage-DHBLmlBr-BlgjVsq6.js} +33 -33
- package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js.map → SaleCreatePage-DHBLmlBr-BlgjVsq6.js.map} +1 -1
- package/dist/{SalesPage-DPIRrC_O-M8rqnK7z.js → SalesPage-eF9Yr42z-BQ9FlXC3.js} +34 -34
- package/dist/SalesPage-eF9Yr42z-BQ9FlXC3.js.map +1 -0
- package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js +741 -0
- package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js.map +1 -0
- package/dist/{StorageUnitsPage-BDRkdCjW-UF64rf7q.js → StorageUnitsPage-CTEVuemZ-B4osG74N.js} +213 -190
- package/dist/StorageUnitsPage-CTEVuemZ-B4osG74N.js.map +1 -0
- package/dist/{SubMenu-BdMTYtC1.js → SubMenu-OO2zhKiu.js} +2 -2
- package/dist/{SubMenu-BdMTYtC1.js.map → SubMenu-OO2zhKiu.js.map} +1 -1
- package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
- package/dist/TableDetails-Cc40dEUs.js.map +1 -0
- package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
- package/dist/TableList-B5tX4wII.js.map +1 -0
- package/dist/{TransactionsPage-CqWTMNU8-Df6eGFDW.js → TransactionsPage-Zuu7sjID-B-ACzvd1.js} +185 -170
- package/dist/TransactionsPage-Zuu7sjID-B-ACzvd1.js.map +1 -0
- package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js +635 -0
- package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js.map +1 -0
- package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js +600 -0
- package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js.map +1 -0
- package/dist/{TypeConfiguration-JbRCN6GR.js → TypeConfiguration-EaFiOzRE.js} +3 -3
- package/dist/{TypeConfiguration-JbRCN6GR.js.map → TypeConfiguration-EaFiOzRE.js.map} +1 -1
- package/dist/UserList-Cf5B-o_1.js +1904 -0
- package/dist/UserList-Cf5B-o_1.js.map +1 -0
- package/dist/Users-MC7txo1V.js +43 -0
- package/dist/{Users-CsJ08Kjm.js.map → Users-MC7txo1V.js.map} +1 -1
- package/dist/VaccineEducation-T_UE57Ef.js +231 -0
- package/dist/VaccineEducation-T_UE57Ef.js.map +1 -0
- package/dist/VaccineEducation.css +1 -0
- package/dist/VaccineEducationConfigurator-CWc20_rv.js +50948 -0
- package/dist/VaccineEducationConfigurator-CWc20_rv.js.map +1 -0
- package/dist/VaccineEducationConfigurator.css +4 -0
- package/dist/VaccineEducationList-Ok7_5EFb.js +334 -0
- package/dist/VaccineEducationList-Ok7_5EFb.js.map +1 -0
- package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js +457 -0
- package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js.map +1 -0
- package/dist/{constants-DpXnLsAB-D6lN5cjK.js → constants-BTpJFQe_-CYPZIqQF.js} +160 -61
- package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
- package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
- package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
- package/dist/index-mfoqII2U.js +524 -0
- package/dist/index-mfoqII2U.js.map +1 -0
- package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
- package/dist/index-o8Pyt1Bt.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/{index.lib-ETRQOzvE.js → index.lib-BySa9-Z-.js} +302 -260
- package/dist/index.lib-BySa9-Z-.js.map +1 -0
- package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js +43 -0
- package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js.map +1 -0
- package/package.json +5 -1
- package/dist/AccessRights-DUgY6ewy.js.map +0 -1
- package/dist/AddMenuConfiguration-c6ZKiN0i.js +0 -8898
- package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +0 -1
- package/dist/EntityManagement-CPQL6qBj.js +0 -50
- package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
- package/dist/EventsUi-D6O9S7BK.js.map +0 -1
- package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +0 -79
- package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +0 -1
- package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +0 -665
- package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +0 -1
- package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
- package/dist/ManageRole-CNZBRKGU.js +0 -776
- package/dist/ManageRole-CNZBRKGU.js.map +0 -1
- package/dist/MobileAnalytics-BLOionG_.js +0 -17301
- package/dist/MobileAnalytics-BLOionG_.js.map +0 -1
- package/dist/MobileMenuManagement-68Wijb0X.js +0 -220
- package/dist/MobileMenuManagement-68Wijb0X.js.map +0 -1
- package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-stNmuSv_.js +0 -1812
- package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +0 -1
- package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
- package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +0 -783
- package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +0 -1
- package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +0 -1
- package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +0 -599
- package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +0 -1
- package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +0 -1305
- package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +0 -1
- package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +0 -675
- package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +0 -1
- package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +0 -1
- package/dist/Roles-BIyiic67.js +0 -14
- package/dist/Roles-BIyiic67.js.map +0 -1
- package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +0 -1
- package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +0 -676
- package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +0 -1
- package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +0 -1
- package/dist/TableDetails-BtafRxXb.js.map +0 -1
- package/dist/TableList-Dpo6dO7S.js.map +0 -1
- package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +0 -1
- package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +0 -315
- package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +0 -1
- package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +0 -476
- package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +0 -1
- package/dist/UserList-L41Xw0Q6.js +0 -1129
- package/dist/UserList-L41Xw0Q6.js.map +0 -1
- package/dist/Users-CsJ08Kjm.js +0 -40
- package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +0 -321
- package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +0 -1
- package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +0 -1
- package/dist/dashboardLayoutUtils-CJivzaU1.js +0 -408
- package/dist/dashboardLayoutUtils-CJivzaU1.js.map +0 -1
- package/dist/index-D9YNFPn9.js.map +0 -1
- package/dist/index.lib-ETRQOzvE.js.map +0 -1
- package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +0 -36
- package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +0 -1
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { addServer as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { faPen as
|
|
5
|
-
import { useTheme as
|
|
6
|
-
import { Dialog as
|
|
7
|
-
import
|
|
8
|
-
import { Box as
|
|
9
|
-
import { useState as
|
|
10
|
-
import { showToast as
|
|
11
|
-
import { useDebounceFn as
|
|
12
|
-
import
|
|
13
|
-
import { yupResolver as
|
|
14
|
-
import
|
|
15
|
-
import { useForm as
|
|
16
|
-
import * as
|
|
17
|
-
import { useTranslateProvider as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { addServer as ge, addServerMappingList as ve, updateServer as be, updateServerMappingList as ye, getAllServer as Se, getAllServerDetails as xe } from "@/common/services/SyncWithServer";
|
|
3
|
+
import { FontAwesomeIcon as S } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faPen as X, faPlus as Z, faServer as ne, faCircleCheck as te, faMagnifyingGlass as Ce, faCircleXmark as Pe } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
import { useTheme as ue } from "@mui/material/styles";
|
|
6
|
+
import { Dialog as we, DialogTitle as Ae, Box as D, Typography as u, DialogContent as ze, Divider as _, Autocomplete as Y, TextField as L, FormHelperText as ae, FormControl as Te, RadioGroup as Re, FormControlLabel as le, Radio as se, Chip as x, DialogActions as ke, Button as ee, Card as Ne, Paper as ie, InputAdornment as We, TableContainer as Me, Table as Fe, TableHead as Ie, TableRow as K, TableCell as h, TableBody as qe, Tooltip as ce, IconButton as Oe } from "@mui/material";
|
|
7
|
+
import g from "@mui/material/Grid2";
|
|
8
|
+
import { Box as A } from "@mui/system";
|
|
9
|
+
import { useState as y, useEffect as re, createElement as de, useMemo as Ee } from "react";
|
|
10
|
+
import { showToast as z } from "@/common/toaster/toaster";
|
|
11
|
+
import { useDebounceFn as De } from "@/hooks/useDebounceFn";
|
|
12
|
+
import Q from "@/views/custom-components/CustomTextField";
|
|
13
|
+
import { yupResolver as je } from "@hookform/resolvers/yup";
|
|
14
|
+
import v from "prop-types";
|
|
15
|
+
import { useForm as Le, Controller as j } from "react-hook-form";
|
|
16
|
+
import * as k from "yup";
|
|
17
|
+
import { useTranslateProvider as $e } from "@/common/languageTranslator/TranslationContext";
|
|
18
|
+
import W from "@/common/services/util/GeneralUtil";
|
|
19
|
+
import { getAssignedFeatures as Be } from "@/utils/feature";
|
|
20
|
+
function pe({
|
|
21
|
+
openAddServer: $,
|
|
22
|
+
openAddServerFunc: M,
|
|
23
|
+
allServerList: C,
|
|
24
|
+
reloadPageFunc: R,
|
|
25
|
+
editServer: f,
|
|
26
|
+
editServerFunc: F,
|
|
27
|
+
serverData: m = {},
|
|
28
|
+
rights: P
|
|
26
29
|
}) {
|
|
27
|
-
var
|
|
28
|
-
const { translate:
|
|
29
|
-
name:
|
|
30
|
-
code:
|
|
31
|
-
type:
|
|
32
|
-
url:
|
|
30
|
+
var E;
|
|
31
|
+
const { translate: d } = $e(), [B, U] = y(""), J = ["STAGING", "PRODUCTION"], T = ue(), V = (a) => T.palette.mode === "light" ? a : `${a}-dark`, p = W.hasCheckRights(P == null ? void 0 : P["create.admin.newServerManagement"]), G = W.hasCheckRights(P == null ? void 0 : P["update.admin.newServerManagement"]), I = f ? G : p, q = k.object().shape({
|
|
32
|
+
name: k.string().required("Name is required"),
|
|
33
|
+
code: k.string().required("Code is required"),
|
|
34
|
+
type: k.string().required("Type is required"),
|
|
35
|
+
url: k.string().required("URL is required").matches(
|
|
33
36
|
/^https?:\/\/(localhost|\d{1,3}(?:\.\d{1,3}){3}|[a-zA-Z0-9.-]+)(:\d+)?(\/.*)?$/,
|
|
34
37
|
"Invalid URL"
|
|
35
38
|
),
|
|
36
|
-
isActive:
|
|
37
|
-
}),
|
|
39
|
+
isActive: k.boolean().required("This field is required.")
|
|
40
|
+
}), i = Le({
|
|
38
41
|
defaultValues: {
|
|
39
42
|
name: "",
|
|
40
43
|
code: "",
|
|
@@ -44,85 +47,86 @@ function ae({
|
|
|
44
47
|
canPullServer: [],
|
|
45
48
|
canPushServer: []
|
|
46
49
|
},
|
|
47
|
-
resolver:
|
|
50
|
+
resolver: je(q),
|
|
48
51
|
mode: "onChange"
|
|
49
52
|
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
name:
|
|
53
|
-
code:
|
|
54
|
-
type:
|
|
55
|
-
url:
|
|
56
|
-
isActive:
|
|
57
|
-
canPullServer:
|
|
58
|
-
canPushServer:
|
|
53
|
+
re(() => {
|
|
54
|
+
f && i.reset({
|
|
55
|
+
name: m.name,
|
|
56
|
+
code: m.code,
|
|
57
|
+
type: m.type,
|
|
58
|
+
url: m.url,
|
|
59
|
+
isActive: m.isActive,
|
|
60
|
+
canPullServer: m.canPullServers ? m.canPullServers : [],
|
|
61
|
+
canPushServer: m.canPushServers ? m.canPushServers : []
|
|
59
62
|
});
|
|
60
63
|
}, []);
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
64
|
+
const N = () => {
|
|
65
|
+
M(!1), F(!1);
|
|
66
|
+
}, O = De(async (a) => {
|
|
67
|
+
C != null && C.find((l) => l.code === a) ? i.setError("code", {
|
|
65
68
|
type: "manual",
|
|
66
69
|
message: "Code already exists"
|
|
67
|
-
}) :
|
|
68
|
-
}, 500),
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
}) : U(`${a} is available`);
|
|
71
|
+
}, 500), H = async (a) => {
|
|
72
|
+
var r, n;
|
|
73
|
+
if (!I) return;
|
|
74
|
+
let l = /* @__PURE__ */ new Map();
|
|
75
|
+
(r = a.canPullServer) == null || r.forEach((t) => {
|
|
76
|
+
let c = {
|
|
73
77
|
canPull: !0,
|
|
74
78
|
canPush: !1
|
|
75
79
|
};
|
|
76
|
-
|
|
77
|
-
}), (
|
|
78
|
-
if (
|
|
79
|
-
|
|
80
|
+
l.set(t.code, c);
|
|
81
|
+
}), (n = a.canPushServer) == null || n.forEach((t) => {
|
|
82
|
+
if (l.has(t.code))
|
|
83
|
+
l.get(t.code).canPush = !0;
|
|
80
84
|
else {
|
|
81
|
-
let
|
|
85
|
+
let c = {
|
|
82
86
|
canPull: !1,
|
|
83
87
|
canPush: !0
|
|
84
88
|
};
|
|
85
|
-
|
|
89
|
+
l.set(t.code, c);
|
|
86
90
|
}
|
|
87
91
|
});
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
90
|
-
|
|
91
|
-
sourceServerCode:
|
|
92
|
-
destinationServerCode:
|
|
92
|
+
const o = [];
|
|
93
|
+
if (l.forEach((t, c) => {
|
|
94
|
+
o.push({
|
|
95
|
+
sourceServerCode: a.code,
|
|
96
|
+
destinationServerCode: c,
|
|
93
97
|
canPull: t.canPull,
|
|
94
98
|
canPush: t.canPush
|
|
95
|
-
}),
|
|
96
|
-
sourceServerCode:
|
|
97
|
-
destinationServerCode:
|
|
99
|
+
}), o.push({
|
|
100
|
+
sourceServerCode: c,
|
|
101
|
+
destinationServerCode: a.code,
|
|
98
102
|
canPull: t.canPush,
|
|
99
103
|
canPush: t.canPull
|
|
100
104
|
});
|
|
101
|
-
}),
|
|
105
|
+
}), f)
|
|
102
106
|
try {
|
|
103
|
-
if (
|
|
104
|
-
sourceServerCode:
|
|
107
|
+
if (l.size === 0 && o.push({
|
|
108
|
+
sourceServerCode: a.code,
|
|
105
109
|
destinationServerCode: null,
|
|
106
110
|
canPull: null,
|
|
107
111
|
canPush: null
|
|
108
|
-
}),
|
|
112
|
+
}), a.uuid = m.uuid, await be(a), z({
|
|
109
113
|
type: "success",
|
|
110
114
|
message: "Server updated successfully"
|
|
111
|
-
}),
|
|
115
|
+
}), o.length > 0)
|
|
112
116
|
try {
|
|
113
|
-
await
|
|
117
|
+
await ye(o), z({
|
|
114
118
|
type: "success",
|
|
115
119
|
message: "Server mapping updated successfully"
|
|
116
120
|
});
|
|
117
121
|
} catch (t) {
|
|
118
|
-
|
|
122
|
+
z({
|
|
119
123
|
type: "error",
|
|
120
124
|
message: "Failed to update server mapping"
|
|
121
125
|
}), console.error("Error updating server mapping:", t);
|
|
122
126
|
}
|
|
123
|
-
|
|
127
|
+
R((t) => !t), N();
|
|
124
128
|
} catch (t) {
|
|
125
|
-
|
|
129
|
+
z({
|
|
126
130
|
type: "error",
|
|
127
131
|
message: "Failed to update server"
|
|
128
132
|
}), console.error("Error updating server:", t);
|
|
@@ -130,60 +134,60 @@ function ae({
|
|
|
130
134
|
else
|
|
131
135
|
try {
|
|
132
136
|
const t = {
|
|
133
|
-
name:
|
|
134
|
-
code:
|
|
135
|
-
type:
|
|
136
|
-
url:
|
|
137
|
-
isActive:
|
|
137
|
+
name: a.name,
|
|
138
|
+
code: a.code,
|
|
139
|
+
type: a.type,
|
|
140
|
+
url: a.url,
|
|
141
|
+
isActive: a.isActive
|
|
138
142
|
};
|
|
139
|
-
if (await
|
|
143
|
+
if (await ge(t), z({
|
|
140
144
|
type: "success",
|
|
141
145
|
message: "Server added successfully"
|
|
142
|
-
}),
|
|
146
|
+
}), o.length > 0)
|
|
143
147
|
try {
|
|
144
|
-
await
|
|
148
|
+
await ve(o), z({
|
|
145
149
|
type: "success",
|
|
146
150
|
message: "Server mapping added successfully"
|
|
147
151
|
});
|
|
148
|
-
} catch (
|
|
149
|
-
|
|
152
|
+
} catch (c) {
|
|
153
|
+
z({
|
|
150
154
|
type: "error",
|
|
151
155
|
message: "Failed to add server mapping"
|
|
152
|
-
}), console.error("Error adding server mapping:",
|
|
156
|
+
}), console.error("Error adding server mapping:", c);
|
|
153
157
|
}
|
|
154
|
-
|
|
158
|
+
R((c) => !c), M(!1);
|
|
155
159
|
} catch (t) {
|
|
156
|
-
|
|
160
|
+
z({
|
|
157
161
|
type: "error",
|
|
158
162
|
message: "Failed to add server"
|
|
159
163
|
}), console.error("Error adding server:", t);
|
|
160
164
|
}
|
|
161
|
-
},
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
|
|
165
|
+
}, b = ({ label: a, required: l, children: o }) => /* @__PURE__ */ s(D, { sx: { display: "flex", flexDirection: "column", gap: 0.75 }, children: [
|
|
166
|
+
/* @__PURE__ */ s(
|
|
167
|
+
u,
|
|
164
168
|
{
|
|
165
169
|
variant: "body2",
|
|
166
170
|
sx: { fontWeight: 600, color: "text.primary" },
|
|
167
171
|
children: [
|
|
168
|
-
|
|
169
|
-
|
|
172
|
+
a,
|
|
173
|
+
l && /* @__PURE__ */ e(u, { component: "span", sx: { color: "error.main", ml: 0.5 }, children: "*" })
|
|
170
174
|
]
|
|
171
175
|
}
|
|
172
176
|
),
|
|
173
|
-
|
|
177
|
+
o
|
|
174
178
|
] });
|
|
175
|
-
return
|
|
176
|
-
label:
|
|
177
|
-
required:
|
|
178
|
-
children:
|
|
179
|
-
}, /* @__PURE__ */
|
|
180
|
-
|
|
179
|
+
return b.propTypes = {
|
|
180
|
+
label: v.string.isRequired,
|
|
181
|
+
required: v.bool,
|
|
182
|
+
children: v.node.isRequired
|
|
183
|
+
}, /* @__PURE__ */ s(
|
|
184
|
+
we,
|
|
181
185
|
{
|
|
182
|
-
open:
|
|
186
|
+
open: $,
|
|
183
187
|
fullWidth: !0,
|
|
184
188
|
maxWidth: "sm",
|
|
185
|
-
onClose:
|
|
186
|
-
className:
|
|
189
|
+
onClose: N,
|
|
190
|
+
className: V("add-server-dialog"),
|
|
187
191
|
PaperProps: {
|
|
188
192
|
sx: {
|
|
189
193
|
borderRadius: 1.5,
|
|
@@ -199,7 +203,7 @@ function ae({
|
|
|
199
203
|
},
|
|
200
204
|
children: [
|
|
201
205
|
/* @__PURE__ */ e(
|
|
202
|
-
|
|
206
|
+
Ae,
|
|
203
207
|
{
|
|
204
208
|
sx: {
|
|
205
209
|
px: 3,
|
|
@@ -209,9 +213,9 @@ function ae({
|
|
|
209
213
|
borderColor: "divider",
|
|
210
214
|
backgroundColor: "background.paper"
|
|
211
215
|
},
|
|
212
|
-
children: /* @__PURE__ */
|
|
216
|
+
children: /* @__PURE__ */ s(D, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
|
|
213
217
|
/* @__PURE__ */ e(
|
|
214
|
-
|
|
218
|
+
D,
|
|
215
219
|
{
|
|
216
220
|
sx: {
|
|
217
221
|
width: 36,
|
|
@@ -225,24 +229,24 @@ function ae({
|
|
|
225
229
|
flexShrink: 0
|
|
226
230
|
},
|
|
227
231
|
children: /* @__PURE__ */ e(
|
|
228
|
-
|
|
232
|
+
S,
|
|
229
233
|
{
|
|
230
|
-
icon:
|
|
234
|
+
icon: f ? X : Z,
|
|
231
235
|
style: { fontSize: "0.85rem" }
|
|
232
236
|
}
|
|
233
237
|
)
|
|
234
238
|
}
|
|
235
239
|
),
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
/* @__PURE__ */ e(
|
|
238
|
-
/* @__PURE__ */ e(
|
|
240
|
+
/* @__PURE__ */ s(D, { children: [
|
|
241
|
+
/* @__PURE__ */ e(u, { variant: "h6", sx: { fontWeight: 700, lineHeight: 1.3 }, children: d(f ? "Update Server" : "Add Server") }),
|
|
242
|
+
/* @__PURE__ */ e(u, { variant: "caption", color: "text.secondary", children: f ? "Modify server configuration and sync permissions." : "Configure a new server connection." })
|
|
239
243
|
] })
|
|
240
244
|
] })
|
|
241
245
|
}
|
|
242
246
|
),
|
|
243
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ s("form", { noValidate: !0, onSubmit: i.handleSubmit(H), children: [
|
|
244
248
|
/* @__PURE__ */ e(
|
|
245
|
-
|
|
249
|
+
ze,
|
|
246
250
|
{
|
|
247
251
|
sx: {
|
|
248
252
|
px: 3,
|
|
@@ -250,10 +254,10 @@ function ae({
|
|
|
250
254
|
scrollbarWidth: "none",
|
|
251
255
|
"&::-webkit-scrollbar": { display: "none" }
|
|
252
256
|
},
|
|
253
|
-
children: /* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */
|
|
257
|
+
children: /* @__PURE__ */ s(g, { container: !0, spacing: 2.5, children: [
|
|
258
|
+
/* @__PURE__ */ s(g, { size: 12, children: [
|
|
255
259
|
/* @__PURE__ */ e(
|
|
256
|
-
|
|
260
|
+
u,
|
|
257
261
|
{
|
|
258
262
|
variant: "subtitle2",
|
|
259
263
|
sx: {
|
|
@@ -267,56 +271,56 @@ function ae({
|
|
|
267
271
|
children: "Server Details"
|
|
268
272
|
}
|
|
269
273
|
),
|
|
270
|
-
/* @__PURE__ */ e(
|
|
274
|
+
/* @__PURE__ */ e(_, {})
|
|
271
275
|
] }),
|
|
272
|
-
/* @__PURE__ */ e(
|
|
273
|
-
|
|
276
|
+
/* @__PURE__ */ e(g, { size: 6, children: /* @__PURE__ */ e(b, { label: d("Name"), required: !0, children: /* @__PURE__ */ e(
|
|
277
|
+
Q,
|
|
274
278
|
{
|
|
275
|
-
control:
|
|
279
|
+
control: i.control,
|
|
276
280
|
name: "name",
|
|
277
281
|
id: "name",
|
|
278
|
-
errors:
|
|
282
|
+
errors: i.formState.errors,
|
|
279
283
|
placeholder: "Enter server name"
|
|
280
284
|
}
|
|
281
285
|
) }) }),
|
|
282
|
-
/* @__PURE__ */ e(
|
|
283
|
-
|
|
286
|
+
/* @__PURE__ */ e(g, { size: 6, children: /* @__PURE__ */ e(b, { label: d("Code"), required: !0, children: /* @__PURE__ */ e(
|
|
287
|
+
Q,
|
|
284
288
|
{
|
|
285
|
-
control:
|
|
289
|
+
control: i.control,
|
|
286
290
|
name: "code",
|
|
287
291
|
id: "code",
|
|
288
|
-
disabled:
|
|
289
|
-
errors:
|
|
292
|
+
disabled: f,
|
|
293
|
+
errors: i.formState.errors,
|
|
290
294
|
placeholder: "Enter server code",
|
|
291
|
-
successMessage:
|
|
292
|
-
onChange: (
|
|
295
|
+
successMessage: B,
|
|
296
|
+
onChange: (a) => O(a.target.value)
|
|
293
297
|
}
|
|
294
298
|
) }) }),
|
|
295
|
-
/* @__PURE__ */ e(
|
|
299
|
+
/* @__PURE__ */ e(g, { size: 6, children: /* @__PURE__ */ s(b, { label: d("Type"), required: !0, children: [
|
|
296
300
|
/* @__PURE__ */ e(
|
|
297
|
-
|
|
301
|
+
j,
|
|
298
302
|
{
|
|
299
303
|
name: "type",
|
|
300
|
-
control:
|
|
301
|
-
render: ({ field: { onChange:
|
|
302
|
-
|
|
304
|
+
control: i.control,
|
|
305
|
+
render: ({ field: { onChange: a, value: l } }) => /* @__PURE__ */ e(
|
|
306
|
+
Y,
|
|
303
307
|
{
|
|
304
308
|
size: "small",
|
|
305
|
-
options:
|
|
306
|
-
getOptionLabel: (
|
|
307
|
-
defaultValue:
|
|
308
|
-
onChange: (
|
|
309
|
-
|
|
309
|
+
options: J || [],
|
|
310
|
+
getOptionLabel: (o) => o,
|
|
311
|
+
defaultValue: l,
|
|
312
|
+
onChange: (o, r) => {
|
|
313
|
+
a(r);
|
|
310
314
|
},
|
|
311
|
-
renderInput: (
|
|
312
|
-
var
|
|
315
|
+
renderInput: (o) => {
|
|
316
|
+
var r;
|
|
313
317
|
return /* @__PURE__ */ e(
|
|
314
|
-
|
|
318
|
+
L,
|
|
315
319
|
{
|
|
316
|
-
...
|
|
320
|
+
...o,
|
|
317
321
|
placeholder: "Select type",
|
|
318
322
|
variant: "outlined",
|
|
319
|
-
error: !!((
|
|
323
|
+
error: !!((r = i.formState.errors) != null && r.type)
|
|
320
324
|
}
|
|
321
325
|
);
|
|
322
326
|
}
|
|
@@ -324,56 +328,56 @@ function ae({
|
|
|
324
328
|
)
|
|
325
329
|
}
|
|
326
330
|
),
|
|
327
|
-
|
|
331
|
+
i.formState.errors.type && /* @__PURE__ */ e(ae, { error: !0, children: (E = i.formState.errors.type) == null ? void 0 : E.message })
|
|
328
332
|
] }) }),
|
|
329
|
-
/* @__PURE__ */ e(
|
|
330
|
-
|
|
333
|
+
/* @__PURE__ */ e(g, { size: 6, children: /* @__PURE__ */ e(b, { label: d("URL"), required: !0, children: /* @__PURE__ */ e(
|
|
334
|
+
Q,
|
|
331
335
|
{
|
|
332
|
-
control:
|
|
336
|
+
control: i.control,
|
|
333
337
|
name: "url",
|
|
334
338
|
id: "url",
|
|
335
|
-
errors:
|
|
339
|
+
errors: i.formState.errors,
|
|
336
340
|
placeholder: "https://example.com"
|
|
337
341
|
}
|
|
338
342
|
) }) }),
|
|
339
|
-
/* @__PURE__ */ e(
|
|
340
|
-
|
|
343
|
+
/* @__PURE__ */ e(g, { size: 12, children: /* @__PURE__ */ e(b, { label: d("Active"), required: !0, children: /* @__PURE__ */ e(
|
|
344
|
+
j,
|
|
341
345
|
{
|
|
342
346
|
name: "isActive",
|
|
343
|
-
control:
|
|
347
|
+
control: i.control,
|
|
344
348
|
rules: { required: "This field is required." },
|
|
345
349
|
render: ({
|
|
346
|
-
field: { onChange:
|
|
347
|
-
fieldState: { error:
|
|
350
|
+
field: { onChange: a, value: l },
|
|
351
|
+
fieldState: { error: o }
|
|
348
352
|
}) => {
|
|
349
|
-
var
|
|
350
|
-
return /* @__PURE__ */
|
|
351
|
-
/* @__PURE__ */
|
|
353
|
+
var r;
|
|
354
|
+
return /* @__PURE__ */ s(Te, { component: "fieldset", error: !!o, children: [
|
|
355
|
+
/* @__PURE__ */ s(Re, { row: !0, value: l, onChange: a, children: [
|
|
352
356
|
/* @__PURE__ */ e(
|
|
353
|
-
|
|
357
|
+
le,
|
|
354
358
|
{
|
|
355
359
|
value: !0,
|
|
356
|
-
control: /* @__PURE__ */ e(
|
|
357
|
-
label: /* @__PURE__ */ e(
|
|
360
|
+
control: /* @__PURE__ */ e(se, { size: "small" }),
|
|
361
|
+
label: /* @__PURE__ */ e(u, { variant: "body2", children: "Yes" })
|
|
358
362
|
}
|
|
359
363
|
),
|
|
360
364
|
/* @__PURE__ */ e(
|
|
361
|
-
|
|
365
|
+
le,
|
|
362
366
|
{
|
|
363
367
|
value: !1,
|
|
364
|
-
control: /* @__PURE__ */ e(
|
|
365
|
-
label: /* @__PURE__ */ e(
|
|
368
|
+
control: /* @__PURE__ */ e(se, { size: "small" }),
|
|
369
|
+
label: /* @__PURE__ */ e(u, { variant: "body2", children: "No" })
|
|
366
370
|
}
|
|
367
371
|
)
|
|
368
372
|
] }),
|
|
369
|
-
|
|
373
|
+
o && /* @__PURE__ */ e(ae, { children: (r = i.formState.errors.isActive) == null ? void 0 : r.message })
|
|
370
374
|
] });
|
|
371
375
|
}
|
|
372
376
|
}
|
|
373
377
|
) }) }),
|
|
374
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ s(g, { size: 12, sx: { mt: 0.5 }, children: [
|
|
375
379
|
/* @__PURE__ */ e(
|
|
376
|
-
|
|
380
|
+
u,
|
|
377
381
|
{
|
|
378
382
|
variant: "subtitle2",
|
|
379
383
|
sx: {
|
|
@@ -387,43 +391,43 @@ function ae({
|
|
|
387
391
|
children: "Sync Permissions"
|
|
388
392
|
}
|
|
389
393
|
),
|
|
390
|
-
/* @__PURE__ */ e(
|
|
394
|
+
/* @__PURE__ */ e(_, {})
|
|
391
395
|
] }),
|
|
392
|
-
/* @__PURE__ */ e(
|
|
393
|
-
|
|
396
|
+
/* @__PURE__ */ e(g, { size: 12, children: /* @__PURE__ */ e(b, { label: d("Can Pull From"), children: /* @__PURE__ */ e(
|
|
397
|
+
j,
|
|
394
398
|
{
|
|
395
399
|
name: "canPullServer",
|
|
396
|
-
control:
|
|
397
|
-
render: ({ field: { onChange:
|
|
398
|
-
|
|
400
|
+
control: i.control,
|
|
401
|
+
render: ({ field: { onChange: a, value: l } }) => /* @__PURE__ */ e(
|
|
402
|
+
Y,
|
|
399
403
|
{
|
|
400
404
|
size: "small",
|
|
401
405
|
multiple: !0,
|
|
402
|
-
options:
|
|
403
|
-
getOptionLabel: (
|
|
404
|
-
getOptionKey: (
|
|
405
|
-
getOptionDisabled: (
|
|
406
|
-
value:
|
|
407
|
-
onChange: (
|
|
408
|
-
|
|
406
|
+
options: C || [],
|
|
407
|
+
getOptionLabel: (o) => o.name || "",
|
|
408
|
+
getOptionKey: (o) => o.code || "",
|
|
409
|
+
getOptionDisabled: (o) => o.code === i.getValues("code") || i.getValues("canPullServer").some((r) => r.code === o.code),
|
|
410
|
+
value: l,
|
|
411
|
+
onChange: (o, r) => {
|
|
412
|
+
a(r);
|
|
409
413
|
},
|
|
410
|
-
renderTags: (
|
|
411
|
-
|
|
414
|
+
renderTags: (o, r) => o.map((n, t) => /* @__PURE__ */ de(
|
|
415
|
+
x,
|
|
412
416
|
{
|
|
413
|
-
...
|
|
414
|
-
key:
|
|
415
|
-
label:
|
|
417
|
+
...r({ index: t }),
|
|
418
|
+
key: n.code,
|
|
419
|
+
label: n.name,
|
|
416
420
|
size: "small",
|
|
417
421
|
color: "primary",
|
|
418
422
|
variant: "outlined",
|
|
419
423
|
sx: { borderRadius: 2, fontWeight: 500 }
|
|
420
424
|
}
|
|
421
425
|
)),
|
|
422
|
-
renderInput: (
|
|
423
|
-
|
|
426
|
+
renderInput: (o) => /* @__PURE__ */ e(
|
|
427
|
+
L,
|
|
424
428
|
{
|
|
425
|
-
...
|
|
426
|
-
placeholder: (
|
|
429
|
+
...o,
|
|
430
|
+
placeholder: (l == null ? void 0 : l.length) > 0 ? "" : "Select servers to pull from...",
|
|
427
431
|
variant: "outlined"
|
|
428
432
|
}
|
|
429
433
|
)
|
|
@@ -431,41 +435,41 @@ function ae({
|
|
|
431
435
|
)
|
|
432
436
|
}
|
|
433
437
|
) }) }),
|
|
434
|
-
/* @__PURE__ */ e(
|
|
435
|
-
|
|
438
|
+
/* @__PURE__ */ e(g, { size: 12, children: /* @__PURE__ */ e(b, { label: d("Can Push To"), children: /* @__PURE__ */ e(
|
|
439
|
+
j,
|
|
436
440
|
{
|
|
437
441
|
name: "canPushServer",
|
|
438
|
-
control:
|
|
439
|
-
render: ({ field: { onChange:
|
|
440
|
-
|
|
442
|
+
control: i.control,
|
|
443
|
+
render: ({ field: { onChange: a, value: l } }) => /* @__PURE__ */ e(
|
|
444
|
+
Y,
|
|
441
445
|
{
|
|
442
446
|
size: "small",
|
|
443
447
|
multiple: !0,
|
|
444
|
-
options:
|
|
445
|
-
getOptionLabel: (
|
|
446
|
-
getOptionKey: (
|
|
447
|
-
getOptionDisabled: (
|
|
448
|
-
value:
|
|
449
|
-
onChange: (
|
|
450
|
-
|
|
448
|
+
options: C || [],
|
|
449
|
+
getOptionLabel: (o) => o.name || "",
|
|
450
|
+
getOptionKey: (o) => o.code || "",
|
|
451
|
+
getOptionDisabled: (o) => o.code === i.getValues("code") || i.getValues("canPushServer").some((r) => r.code === o.code),
|
|
452
|
+
value: l,
|
|
453
|
+
onChange: (o, r) => {
|
|
454
|
+
a(r);
|
|
451
455
|
},
|
|
452
|
-
renderTags: (
|
|
453
|
-
|
|
456
|
+
renderTags: (o, r) => o.map((n, t) => /* @__PURE__ */ de(
|
|
457
|
+
x,
|
|
454
458
|
{
|
|
455
|
-
...
|
|
456
|
-
key:
|
|
457
|
-
label:
|
|
459
|
+
...r({ index: t }),
|
|
460
|
+
key: n.code,
|
|
461
|
+
label: n.name,
|
|
458
462
|
size: "small",
|
|
459
463
|
color: "primary",
|
|
460
464
|
variant: "outlined",
|
|
461
465
|
sx: { borderRadius: 2, fontWeight: 500 }
|
|
462
466
|
}
|
|
463
467
|
)),
|
|
464
|
-
renderInput: (
|
|
465
|
-
|
|
468
|
+
renderInput: (o) => /* @__PURE__ */ e(
|
|
469
|
+
L,
|
|
466
470
|
{
|
|
467
|
-
...
|
|
468
|
-
placeholder: (
|
|
471
|
+
...o,
|
|
472
|
+
placeholder: (l == null ? void 0 : l.length) > 0 ? "" : "Select servers to push to...",
|
|
469
473
|
variant: "outlined"
|
|
470
474
|
}
|
|
471
475
|
)
|
|
@@ -476,8 +480,8 @@ function ae({
|
|
|
476
480
|
] })
|
|
477
481
|
}
|
|
478
482
|
),
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
-
|
|
483
|
+
/* @__PURE__ */ s(
|
|
484
|
+
ke,
|
|
481
485
|
{
|
|
482
486
|
sx: {
|
|
483
487
|
px: 3,
|
|
@@ -488,9 +492,9 @@ function ae({
|
|
|
488
492
|
},
|
|
489
493
|
children: [
|
|
490
494
|
/* @__PURE__ */ e(
|
|
491
|
-
|
|
495
|
+
ee,
|
|
492
496
|
{
|
|
493
|
-
onClick:
|
|
497
|
+
onClick: N,
|
|
494
498
|
size: "small",
|
|
495
499
|
variant: "outlined",
|
|
496
500
|
sx: {
|
|
@@ -505,15 +509,16 @@ function ae({
|
|
|
505
509
|
borderColor: "text.disabled"
|
|
506
510
|
}
|
|
507
511
|
},
|
|
508
|
-
children:
|
|
512
|
+
children: d("Cancel")
|
|
509
513
|
}
|
|
510
514
|
),
|
|
511
515
|
/* @__PURE__ */ e(
|
|
512
|
-
|
|
516
|
+
ee,
|
|
513
517
|
{
|
|
514
518
|
type: "submit",
|
|
515
519
|
size: "small",
|
|
516
520
|
variant: "contained",
|
|
521
|
+
disabled: !I,
|
|
517
522
|
sx: {
|
|
518
523
|
borderRadius: 2,
|
|
519
524
|
textTransform: "none",
|
|
@@ -522,13 +527,13 @@ function ae({
|
|
|
522
527
|
boxShadow: "none"
|
|
523
528
|
},
|
|
524
529
|
startIcon: /* @__PURE__ */ e(
|
|
525
|
-
|
|
530
|
+
S,
|
|
526
531
|
{
|
|
527
|
-
icon:
|
|
532
|
+
icon: f ? X : Z,
|
|
528
533
|
style: { fontSize: "0.75rem" }
|
|
529
534
|
}
|
|
530
535
|
),
|
|
531
|
-
children:
|
|
536
|
+
children: f ? "Update Server" : "Add Server"
|
|
532
537
|
}
|
|
533
538
|
)
|
|
534
539
|
]
|
|
@@ -539,53 +544,63 @@ function ae({
|
|
|
539
544
|
}
|
|
540
545
|
);
|
|
541
546
|
}
|
|
542
|
-
|
|
543
|
-
openAddServer:
|
|
544
|
-
openAddServerFunc:
|
|
545
|
-
allServerList:
|
|
546
|
-
reloadPageFunc:
|
|
547
|
-
editServer:
|
|
548
|
-
editServerFunc:
|
|
549
|
-
serverData:
|
|
547
|
+
pe.propTypes = {
|
|
548
|
+
openAddServer: v.bool,
|
|
549
|
+
openAddServerFunc: v.func,
|
|
550
|
+
allServerList: v.array,
|
|
551
|
+
reloadPageFunc: v.func,
|
|
552
|
+
editServer: v.bool,
|
|
553
|
+
editServerFunc: v.func,
|
|
554
|
+
serverData: v.object,
|
|
555
|
+
rights: v.any
|
|
550
556
|
};
|
|
551
|
-
function
|
|
552
|
-
const [
|
|
553
|
-
|
|
554
|
-
(async () => (await
|
|
555
|
-
}, [
|
|
556
|
-
|
|
557
|
+
function sr() {
|
|
558
|
+
const [$, M] = y([]), [C, R] = y(!1), [f, F] = y(!1), [m, P] = y({}), [d, B] = y([]), [U, J] = y(!1), [T, V] = y(""), [p, G] = y(null), [I, q] = y(!0), i = ue(), N = W.hasCheckRights(p == null ? void 0 : p["create.admin.newServerManagement"]), oe = W.hasCheckRights(p == null ? void 0 : p["update.admin.newServerManagement"]);
|
|
559
|
+
re(() => {
|
|
560
|
+
(async () => (q(!0), await H(), await b(), q(!1)))();
|
|
561
|
+
}, [U]), re(() => {
|
|
562
|
+
(async () => {
|
|
563
|
+
try {
|
|
564
|
+
const { data: r } = await Be("techo.admin.newServerManagement");
|
|
565
|
+
G(JSON.parse(r));
|
|
566
|
+
} catch (r) {
|
|
567
|
+
console.error(r);
|
|
568
|
+
}
|
|
569
|
+
})();
|
|
570
|
+
}, []);
|
|
571
|
+
const O = (r) => i.palette.mode === "light" ? r : `${r}-dark`, H = async () => {
|
|
557
572
|
try {
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
-
|
|
573
|
+
const r = (await Se()).data;
|
|
574
|
+
r && M(
|
|
575
|
+
r.map((n) => ({ code: n.code, name: n.name }))
|
|
561
576
|
);
|
|
562
|
-
} catch (
|
|
563
|
-
console.error("Error fetching servers:",
|
|
577
|
+
} catch (r) {
|
|
578
|
+
console.error("Error fetching servers:", r);
|
|
564
579
|
}
|
|
565
|
-
},
|
|
580
|
+
}, b = async () => {
|
|
566
581
|
try {
|
|
567
|
-
const
|
|
568
|
-
|
|
569
|
-
let
|
|
570
|
-
|
|
571
|
-
}),
|
|
572
|
-
} catch (
|
|
573
|
-
console.error("Error fetching servers:",
|
|
582
|
+
const r = (await xe()).data;
|
|
583
|
+
r && (r.forEach((n) => {
|
|
584
|
+
let t = n.canPullServers ? JSON.parse(n.canPullServers) : [], c = n.canPushServers ? JSON.parse(n.canPushServers) : [];
|
|
585
|
+
n.canPullServers = JSON.parse(n.canPullServers), n.canPushServers = JSON.parse(n.canPushServers), n.pullServersName = t.length > 0 ? t.map((w) => w.name) : [], n.pushServersName = c.length > 0 ? c.map((w) => w.name) : [];
|
|
586
|
+
}), B(r));
|
|
587
|
+
} catch (r) {
|
|
588
|
+
console.error("Error fetching servers:", r);
|
|
574
589
|
}
|
|
575
|
-
},
|
|
576
|
-
|
|
577
|
-
},
|
|
578
|
-
if (!
|
|
579
|
-
const
|
|
580
|
-
return
|
|
581
|
-
(
|
|
582
|
-
var
|
|
583
|
-
return ((
|
|
590
|
+
}, E = (r) => {
|
|
591
|
+
F(!0), P(r), R(!0);
|
|
592
|
+
}, a = Ee(() => {
|
|
593
|
+
if (!T.trim()) return d;
|
|
594
|
+
const r = T.toLowerCase();
|
|
595
|
+
return d.filter(
|
|
596
|
+
(n) => {
|
|
597
|
+
var t, c, w;
|
|
598
|
+
return ((t = n.name) == null ? void 0 : t.toLowerCase().includes(r)) || ((c = n.code) == null ? void 0 : c.toLowerCase().includes(r)) || ((w = n.url) == null ? void 0 : w.toLowerCase().includes(r));
|
|
584
599
|
}
|
|
585
600
|
);
|
|
586
|
-
}, [
|
|
587
|
-
if (!
|
|
588
|
-
const
|
|
601
|
+
}, [d, T]), l = d.filter((r) => r.isActive).length, o = (r) => {
|
|
602
|
+
if (!r) return "-";
|
|
603
|
+
const n = new Date(r), t = String(n.getDate()).padStart(2, "0"), w = [
|
|
589
604
|
"Jan",
|
|
590
605
|
"Feb",
|
|
591
606
|
"Mar",
|
|
@@ -598,12 +613,12 @@ function Qe() {
|
|
|
598
613
|
"Oct",
|
|
599
614
|
"Nov",
|
|
600
615
|
"Dec"
|
|
601
|
-
][
|
|
602
|
-
return `${
|
|
616
|
+
][n.getMonth()], me = n.getFullYear(), he = String(n.getHours()).padStart(2, "0"), fe = String(n.getMinutes()).padStart(2, "0");
|
|
617
|
+
return `${t} ${w} ${me}, ${he}:${fe}`;
|
|
603
618
|
};
|
|
604
|
-
return /* @__PURE__ */
|
|
605
|
-
/* @__PURE__ */ e(
|
|
606
|
-
|
|
619
|
+
return !I && p !== null && !W.hasCheckRights(p == null ? void 0 : p["view.admin.newServerManagement"]) ? /* @__PURE__ */ e(A, { sx: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "80vh" }, children: /* @__PURE__ */ e(Ne, { sx: { height: 320, width: 600, display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(u, { variant: "h5", className: "text-customBlue", children: "You dont have permission to view Server Management" }) }) }) : /* @__PURE__ */ s(g, { pt: 2, sx: { height: "calc(100vh)", zoom: "0.9" }, children: [
|
|
620
|
+
/* @__PURE__ */ e(A, { sx: { p: 3 }, className: O("server-management-wrapper"), children: /* @__PURE__ */ s(
|
|
621
|
+
ie,
|
|
607
622
|
{
|
|
608
623
|
elevation: 0,
|
|
609
624
|
sx: {
|
|
@@ -614,9 +629,9 @@ function Qe() {
|
|
|
614
629
|
backgroundColor: "background.paper"
|
|
615
630
|
},
|
|
616
631
|
children: [
|
|
617
|
-
/* @__PURE__ */
|
|
618
|
-
/* @__PURE__ */
|
|
619
|
-
|
|
632
|
+
/* @__PURE__ */ s(A, { sx: { display: "flex", flexDirection: "column", gap: 3 }, children: [
|
|
633
|
+
/* @__PURE__ */ s(
|
|
634
|
+
A,
|
|
620
635
|
{
|
|
621
636
|
sx: {
|
|
622
637
|
display: "flex",
|
|
@@ -626,19 +641,19 @@ function Qe() {
|
|
|
626
641
|
gap: 2
|
|
627
642
|
},
|
|
628
643
|
children: [
|
|
629
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ s(A, { sx: { minWidth: { xs: "100%", lg: "40%" } }, children: [
|
|
630
645
|
/* @__PURE__ */ e(
|
|
631
|
-
|
|
646
|
+
u,
|
|
632
647
|
{
|
|
633
648
|
variant: "h5",
|
|
634
649
|
sx: { fontWeight: 800, color: "text.primary", mb: 0.5 },
|
|
635
650
|
children: "Server Management"
|
|
636
651
|
}
|
|
637
652
|
),
|
|
638
|
-
/* @__PURE__ */ e(
|
|
653
|
+
/* @__PURE__ */ e(u, { variant: "body2", color: "text.secondary", children: "Configure and manage server connections, sync permissions, and server details." })
|
|
639
654
|
] }),
|
|
640
655
|
/* @__PURE__ */ e(
|
|
641
|
-
|
|
656
|
+
A,
|
|
642
657
|
{
|
|
643
658
|
sx: {
|
|
644
659
|
display: "flex",
|
|
@@ -646,8 +661,8 @@ function Qe() {
|
|
|
646
661
|
gap: 1.5,
|
|
647
662
|
flexWrap: "wrap"
|
|
648
663
|
},
|
|
649
|
-
children: /* @__PURE__ */ e(
|
|
650
|
-
|
|
664
|
+
children: N && /* @__PURE__ */ e(
|
|
665
|
+
ee,
|
|
651
666
|
{
|
|
652
667
|
size: "small",
|
|
653
668
|
variant: "contained",
|
|
@@ -658,9 +673,9 @@ function Qe() {
|
|
|
658
673
|
boxShadow: "none",
|
|
659
674
|
textTransform: "none"
|
|
660
675
|
},
|
|
661
|
-
startIcon: /* @__PURE__ */ e(
|
|
676
|
+
startIcon: /* @__PURE__ */ e(S, { icon: Z }),
|
|
662
677
|
onClick: () => {
|
|
663
|
-
|
|
678
|
+
R(!0);
|
|
664
679
|
},
|
|
665
680
|
children: "Add Server"
|
|
666
681
|
}
|
|
@@ -670,8 +685,8 @@ function Qe() {
|
|
|
670
685
|
]
|
|
671
686
|
}
|
|
672
687
|
),
|
|
673
|
-
/* @__PURE__ */
|
|
674
|
-
|
|
688
|
+
/* @__PURE__ */ s(
|
|
689
|
+
A,
|
|
675
690
|
{
|
|
676
691
|
sx: {
|
|
677
692
|
display: "flex",
|
|
@@ -686,18 +701,18 @@ function Qe() {
|
|
|
686
701
|
borderColor: "divider"
|
|
687
702
|
},
|
|
688
703
|
children: [
|
|
689
|
-
/* @__PURE__ */
|
|
704
|
+
/* @__PURE__ */ s(A, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
|
|
690
705
|
/* @__PURE__ */ e(
|
|
691
|
-
|
|
706
|
+
x,
|
|
692
707
|
{
|
|
693
708
|
icon: /* @__PURE__ */ e(
|
|
694
|
-
|
|
709
|
+
S,
|
|
695
710
|
{
|
|
696
|
-
icon:
|
|
711
|
+
icon: ne,
|
|
697
712
|
style: { fontSize: "0.7rem" }
|
|
698
713
|
}
|
|
699
714
|
),
|
|
700
|
-
label: `${
|
|
715
|
+
label: `${d.length} Total`,
|
|
701
716
|
size: "small",
|
|
702
717
|
variant: "outlined",
|
|
703
718
|
sx: {
|
|
@@ -709,26 +724,26 @@ function Qe() {
|
|
|
709
724
|
}
|
|
710
725
|
),
|
|
711
726
|
/* @__PURE__ */ e(
|
|
712
|
-
|
|
727
|
+
x,
|
|
713
728
|
{
|
|
714
729
|
icon: /* @__PURE__ */ e(
|
|
715
|
-
|
|
730
|
+
S,
|
|
716
731
|
{
|
|
717
|
-
icon:
|
|
732
|
+
icon: te,
|
|
718
733
|
style: { fontSize: "0.7rem" }
|
|
719
734
|
}
|
|
720
735
|
),
|
|
721
|
-
label: `${
|
|
736
|
+
label: `${l} Active`,
|
|
722
737
|
size: "small",
|
|
723
738
|
color: "success",
|
|
724
739
|
variant: "filled",
|
|
725
740
|
sx: { fontWeight: 700, borderRadius: 2, px: 0.5 }
|
|
726
741
|
}
|
|
727
742
|
),
|
|
728
|
-
|
|
729
|
-
|
|
743
|
+
d.length - l > 0 && /* @__PURE__ */ e(
|
|
744
|
+
x,
|
|
730
745
|
{
|
|
731
|
-
label: `${
|
|
746
|
+
label: `${d.length - l} Inactive`,
|
|
732
747
|
size: "small",
|
|
733
748
|
color: "default",
|
|
734
749
|
variant: "outlined",
|
|
@@ -742,17 +757,17 @@ function Qe() {
|
|
|
742
757
|
)
|
|
743
758
|
] }),
|
|
744
759
|
/* @__PURE__ */ e(
|
|
745
|
-
|
|
760
|
+
L,
|
|
746
761
|
{
|
|
747
|
-
value:
|
|
762
|
+
value: T,
|
|
748
763
|
size: "small",
|
|
749
764
|
placeholder: "Search servers...",
|
|
750
|
-
onChange: (
|
|
765
|
+
onChange: (r) => V(r.target.value),
|
|
751
766
|
InputProps: {
|
|
752
|
-
startAdornment: /* @__PURE__ */ e(
|
|
753
|
-
|
|
767
|
+
startAdornment: /* @__PURE__ */ e(We, { position: "start", children: /* @__PURE__ */ e(
|
|
768
|
+
S,
|
|
754
769
|
{
|
|
755
|
-
icon:
|
|
770
|
+
icon: Ce,
|
|
756
771
|
style: { fontSize: "0.85rem", color: "#999" }
|
|
757
772
|
}
|
|
758
773
|
) }),
|
|
@@ -768,12 +783,12 @@ function Qe() {
|
|
|
768
783
|
}
|
|
769
784
|
)
|
|
770
785
|
] }),
|
|
771
|
-
/* @__PURE__ */ e(
|
|
786
|
+
/* @__PURE__ */ e(_, { sx: { my: 3 } }),
|
|
772
787
|
/* @__PURE__ */ e(
|
|
773
|
-
|
|
788
|
+
Me,
|
|
774
789
|
{
|
|
775
|
-
className:
|
|
776
|
-
component:
|
|
790
|
+
className: O("server-table"),
|
|
791
|
+
component: ie,
|
|
777
792
|
elevation: 0,
|
|
778
793
|
sx: {
|
|
779
794
|
borderRadius: 1.5,
|
|
@@ -782,8 +797,8 @@ function Qe() {
|
|
|
782
797
|
overflowY: "auto",
|
|
783
798
|
maxHeight: "calc(100vh - 340px)"
|
|
784
799
|
},
|
|
785
|
-
children: /* @__PURE__ */
|
|
786
|
-
/* @__PURE__ */ e(
|
|
800
|
+
children: /* @__PURE__ */ s(Fe, { stickyHeader: !0, children: [
|
|
801
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(K, { children: [
|
|
787
802
|
"Sr. No.",
|
|
788
803
|
"Name",
|
|
789
804
|
"Code",
|
|
@@ -794,10 +809,10 @@ function Qe() {
|
|
|
794
809
|
"Can Push To",
|
|
795
810
|
"Modified On",
|
|
796
811
|
"Actions"
|
|
797
|
-
].map((
|
|
812
|
+
].map((r, n) => /* @__PURE__ */ e(
|
|
798
813
|
h,
|
|
799
814
|
{
|
|
800
|
-
align:
|
|
815
|
+
align: r === "Actions" ? "center" : "left",
|
|
801
816
|
sx: {
|
|
802
817
|
fontWeight: 700,
|
|
803
818
|
fontSize: "0.78rem",
|
|
@@ -809,13 +824,13 @@ function Qe() {
|
|
|
809
824
|
borderColor: "divider",
|
|
810
825
|
py: 1.5
|
|
811
826
|
},
|
|
812
|
-
children:
|
|
827
|
+
children: r
|
|
813
828
|
},
|
|
814
|
-
|
|
829
|
+
n
|
|
815
830
|
)) }) }),
|
|
816
|
-
/* @__PURE__ */
|
|
817
|
-
|
|
818
|
-
|
|
831
|
+
/* @__PURE__ */ s(qe, { children: [
|
|
832
|
+
a.map((r, n) => /* @__PURE__ */ s(
|
|
833
|
+
K,
|
|
819
834
|
{
|
|
820
835
|
sx: {
|
|
821
836
|
transition: "background-color 0.15s ease",
|
|
@@ -827,14 +842,14 @@ function Qe() {
|
|
|
827
842
|
h,
|
|
828
843
|
{
|
|
829
844
|
sx: { color: "text.secondary", fontWeight: 500 },
|
|
830
|
-
children:
|
|
845
|
+
children: n + 1
|
|
831
846
|
}
|
|
832
847
|
),
|
|
833
|
-
/* @__PURE__ */ e(h, { sx: { fontWeight: 600 }, children:
|
|
848
|
+
/* @__PURE__ */ e(h, { sx: { fontWeight: 600 }, children: r.name }),
|
|
834
849
|
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(
|
|
835
|
-
|
|
850
|
+
x,
|
|
836
851
|
{
|
|
837
|
-
label:
|
|
852
|
+
label: r.code,
|
|
838
853
|
size: "small",
|
|
839
854
|
variant: "outlined",
|
|
840
855
|
sx: {
|
|
@@ -845,7 +860,7 @@ function Qe() {
|
|
|
845
860
|
}
|
|
846
861
|
}
|
|
847
862
|
) }),
|
|
848
|
-
/* @__PURE__ */ e(h, { children:
|
|
863
|
+
/* @__PURE__ */ e(h, { children: r.type }),
|
|
849
864
|
/* @__PURE__ */ e(
|
|
850
865
|
h,
|
|
851
866
|
{
|
|
@@ -855,16 +870,16 @@ function Qe() {
|
|
|
855
870
|
textOverflow: "ellipsis",
|
|
856
871
|
whiteSpace: "nowrap"
|
|
857
872
|
},
|
|
858
|
-
children: /* @__PURE__ */ e(
|
|
873
|
+
children: /* @__PURE__ */ e(ce, { title: r.url || "", arrow: !0, placement: "top", children: /* @__PURE__ */ e("span", { children: r.url }) })
|
|
859
874
|
}
|
|
860
875
|
),
|
|
861
|
-
/* @__PURE__ */ e(h, { children:
|
|
862
|
-
|
|
876
|
+
/* @__PURE__ */ e(h, { children: r.isActive ? /* @__PURE__ */ e(
|
|
877
|
+
x,
|
|
863
878
|
{
|
|
864
879
|
icon: /* @__PURE__ */ e(
|
|
865
|
-
|
|
880
|
+
S,
|
|
866
881
|
{
|
|
867
|
-
icon:
|
|
882
|
+
icon: te,
|
|
868
883
|
style: { fontSize: "0.7rem" }
|
|
869
884
|
}
|
|
870
885
|
),
|
|
@@ -875,12 +890,12 @@ function Qe() {
|
|
|
875
890
|
sx: { fontWeight: 600, borderRadius: 2 }
|
|
876
891
|
}
|
|
877
892
|
) : /* @__PURE__ */ e(
|
|
878
|
-
|
|
893
|
+
x,
|
|
879
894
|
{
|
|
880
895
|
icon: /* @__PURE__ */ e(
|
|
881
|
-
|
|
896
|
+
S,
|
|
882
897
|
{
|
|
883
|
-
icon:
|
|
898
|
+
icon: Pe,
|
|
884
899
|
style: { fontSize: "0.7rem" }
|
|
885
900
|
}
|
|
886
901
|
),
|
|
@@ -895,10 +910,10 @@ function Qe() {
|
|
|
895
910
|
}
|
|
896
911
|
}
|
|
897
912
|
) }),
|
|
898
|
-
/* @__PURE__ */ e(h, { children: Array.isArray(
|
|
899
|
-
|
|
913
|
+
/* @__PURE__ */ e(h, { children: Array.isArray(r.pullServersName) && r.pullServersName.length > 0 ? r.pullServersName.map((t, c) => /* @__PURE__ */ e(
|
|
914
|
+
x,
|
|
900
915
|
{
|
|
901
|
-
label:
|
|
916
|
+
label: t || "-",
|
|
902
917
|
color: "primary",
|
|
903
918
|
size: "small",
|
|
904
919
|
variant: "outlined",
|
|
@@ -909,12 +924,12 @@ function Qe() {
|
|
|
909
924
|
fontWeight: 500
|
|
910
925
|
}
|
|
911
926
|
},
|
|
912
|
-
|
|
913
|
-
)) : /* @__PURE__ */ e(
|
|
914
|
-
/* @__PURE__ */ e(h, { children: Array.isArray(
|
|
915
|
-
|
|
927
|
+
c
|
|
928
|
+
)) : /* @__PURE__ */ e(u, { variant: "caption", color: "text.disabled", children: "—" }) }),
|
|
929
|
+
/* @__PURE__ */ e(h, { children: Array.isArray(r.pushServersName) && r.pushServersName.length > 0 ? r.pushServersName.map((t, c) => /* @__PURE__ */ e(
|
|
930
|
+
x,
|
|
916
931
|
{
|
|
917
|
-
label:
|
|
932
|
+
label: t || "-",
|
|
918
933
|
color: "primary",
|
|
919
934
|
size: "small",
|
|
920
935
|
variant: "outlined",
|
|
@@ -925,31 +940,31 @@ function Qe() {
|
|
|
925
940
|
fontWeight: 500
|
|
926
941
|
}
|
|
927
942
|
},
|
|
928
|
-
|
|
929
|
-
)) : /* @__PURE__ */ e(
|
|
943
|
+
c
|
|
944
|
+
)) : /* @__PURE__ */ e(u, { variant: "caption", color: "text.disabled", children: "—" }) }),
|
|
930
945
|
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(
|
|
931
|
-
|
|
946
|
+
u,
|
|
932
947
|
{
|
|
933
948
|
variant: "caption",
|
|
934
949
|
sx: { color: "text.secondary" },
|
|
935
|
-
children:
|
|
950
|
+
children: o(r.modifiedOn)
|
|
936
951
|
}
|
|
937
952
|
) }),
|
|
938
|
-
/* @__PURE__ */ e(h, { align: "center", children: /* @__PURE__ */ e(
|
|
939
|
-
|
|
953
|
+
/* @__PURE__ */ e(h, { align: "center", children: oe && /* @__PURE__ */ e(ce, { title: "Edit server", arrow: !0, placement: "top", children: /* @__PURE__ */ e(
|
|
954
|
+
Oe,
|
|
940
955
|
{
|
|
941
956
|
size: "small",
|
|
942
957
|
onClick: () => {
|
|
943
|
-
|
|
958
|
+
E(r);
|
|
944
959
|
},
|
|
945
960
|
sx: {
|
|
946
961
|
color: "primary.main",
|
|
947
962
|
"&:hover": { backgroundColor: "primary.50" }
|
|
948
963
|
},
|
|
949
964
|
children: /* @__PURE__ */ e(
|
|
950
|
-
|
|
965
|
+
S,
|
|
951
966
|
{
|
|
952
|
-
icon:
|
|
967
|
+
icon: X,
|
|
953
968
|
style: { fontSize: "0.8rem" }
|
|
954
969
|
}
|
|
955
970
|
)
|
|
@@ -957,13 +972,13 @@ function Qe() {
|
|
|
957
972
|
) }) })
|
|
958
973
|
]
|
|
959
974
|
},
|
|
960
|
-
|
|
975
|
+
n
|
|
961
976
|
)),
|
|
962
|
-
|
|
977
|
+
a.length === 0 && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ s(h, { colSpan: 10, align: "center", sx: { py: 6 }, children: [
|
|
963
978
|
/* @__PURE__ */ e(
|
|
964
|
-
|
|
979
|
+
S,
|
|
965
980
|
{
|
|
966
|
-
icon:
|
|
981
|
+
icon: ne,
|
|
967
982
|
style: {
|
|
968
983
|
fontSize: "2rem",
|
|
969
984
|
color: "#ccc",
|
|
@@ -973,7 +988,7 @@ function Qe() {
|
|
|
973
988
|
}
|
|
974
989
|
}
|
|
975
990
|
),
|
|
976
|
-
/* @__PURE__ */ e(
|
|
991
|
+
/* @__PURE__ */ e(u, { variant: "body2", color: "text.secondary", children: T ? "No servers match your search." : 'No servers found. Click "Add Server" to get started.' })
|
|
977
992
|
] }) })
|
|
978
993
|
] })
|
|
979
994
|
] })
|
|
@@ -982,21 +997,22 @@ function Qe() {
|
|
|
982
997
|
]
|
|
983
998
|
}
|
|
984
999
|
) }),
|
|
985
|
-
|
|
986
|
-
|
|
1000
|
+
C && /* @__PURE__ */ e(
|
|
1001
|
+
pe,
|
|
987
1002
|
{
|
|
988
|
-
openAddServer:
|
|
989
|
-
openAddServerFunc:
|
|
990
|
-
allServerList:
|
|
991
|
-
reloadPageFunc:
|
|
992
|
-
editServer:
|
|
993
|
-
editServerFunc:
|
|
994
|
-
serverData:
|
|
1003
|
+
openAddServer: C,
|
|
1004
|
+
openAddServerFunc: R,
|
|
1005
|
+
allServerList: $,
|
|
1006
|
+
reloadPageFunc: J,
|
|
1007
|
+
editServer: f,
|
|
1008
|
+
editServerFunc: F,
|
|
1009
|
+
serverData: m,
|
|
1010
|
+
rights: p
|
|
995
1011
|
}
|
|
996
1012
|
)
|
|
997
1013
|
] });
|
|
998
1014
|
}
|
|
999
1015
|
export {
|
|
1000
|
-
|
|
1016
|
+
sr as default
|
|
1001
1017
|
};
|
|
1002
|
-
//# sourceMappingURL=NewServerManagement-
|
|
1018
|
+
//# sourceMappingURL=NewServerManagement-BdayO78D.js.map
|