aq-fe-framework 0.1.317 → 0.1.318
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.
@@ -31,24 +31,24 @@ import {
|
|
31
31
|
utils_layout_getItemsWithoutLinks
|
32
32
|
} from "../chunk-FUHOV7NB.mjs";
|
33
33
|
import "../chunk-5U2JSHSJ.mjs";
|
34
|
-
import {
|
35
|
-
const_object_documentTypes
|
36
|
-
} from "../chunk-GFEMKKFH.mjs";
|
37
34
|
import {
|
38
35
|
MyButton as MyButton2,
|
39
36
|
MyTextInput as MyTextInput2
|
40
|
-
} from "../chunk-
|
37
|
+
} from "../chunk-ZZ7S4EA4.mjs";
|
41
38
|
import {
|
42
39
|
MyFlexColumn,
|
43
40
|
MyFlexRow
|
44
41
|
} from "../chunk-HHJFKKE7.mjs";
|
45
|
-
import {
|
46
|
-
const_object_colors
|
47
|
-
} from "../chunk-NWBLJ3W3.mjs";
|
48
42
|
import {
|
49
43
|
enum_emailConfigModule
|
50
44
|
} from "../chunk-VH4ZAD6M.mjs";
|
51
45
|
import "../chunk-K6S7R6LU.mjs";
|
46
|
+
import {
|
47
|
+
const_object_documentTypes
|
48
|
+
} from "../chunk-GFEMKKFH.mjs";
|
49
|
+
import {
|
50
|
+
const_object_colors
|
51
|
+
} from "../chunk-NWBLJ3W3.mjs";
|
52
52
|
import {
|
53
53
|
baseAxios_default,
|
54
54
|
createBaseApi,
|
@@ -115,6 +115,16 @@ function useS_accessControl() {
|
|
115
115
|
isAllPermission
|
116
116
|
});
|
117
117
|
}
|
118
|
+
function utils_accessControl_mergePage(arr1, arr2) {
|
119
|
+
const pageMap = /* @__PURE__ */ new Map();
|
120
|
+
arr1.forEach((page) => pageMap.set(page.pageId, page));
|
121
|
+
arr2.forEach((page) => {
|
122
|
+
if (pageMap.has(page.pageId)) {
|
123
|
+
pageMap.set(page.pageId, page);
|
124
|
+
}
|
125
|
+
});
|
126
|
+
return Array.from(pageMap.values());
|
127
|
+
}
|
118
128
|
|
119
129
|
// src/modules-features/admin/core/accessControl/F_accessControl_ReadUser.tsx
|
120
130
|
import { jsx } from "react/jsx-runtime";
|
@@ -215,56 +225,6 @@ import { Checkbox, Flex, ScrollArea, Table, Text } from "@mantine/core";
|
|
215
225
|
import { IconEdit, IconEyeUp, IconFileExport, IconPlus, IconPrinter, IconTrash } from "@tabler/icons-react";
|
216
226
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
217
227
|
import React, { useEffect as useEffect2, useState as useState2 } from "react";
|
218
|
-
|
219
|
-
// src/modules-features/admin/core/core83092/useS_core83092.tsx
|
220
|
-
var useStore2 = createGenericStore({
|
221
|
-
initialState: { roleId: 0 },
|
222
|
-
storageKey: "useS_core83092"
|
223
|
-
});
|
224
|
-
function useS_core83092() {
|
225
|
-
const store = useStore2();
|
226
|
-
function toogleAllPermissionWithType(field, isCheck) {
|
227
|
-
var _a;
|
228
|
-
const updatedData = (_a = store.state.rolePermissions) == null ? void 0 : _a.map((item) => __spreadProps(__spreadValues({}, item), {
|
229
|
-
[field]: isCheck
|
230
|
-
}));
|
231
|
-
store.setProperty("rolePermissions", updatedData);
|
232
|
-
}
|
233
|
-
function findByPageId(pageId) {
|
234
|
-
var _a;
|
235
|
-
const rolePermission = (_a = store.state.rolePermissions) == null ? void 0 : _a.find((item) => item.pageId == pageId);
|
236
|
-
return rolePermission;
|
237
|
-
}
|
238
|
-
function updatePermission(pageId, updatedPermission) {
|
239
|
-
var _a;
|
240
|
-
const updatedData = (_a = store.state.rolePermissions) == null ? void 0 : _a.map(
|
241
|
-
(item) => item.pageId === pageId ? __spreadValues(__spreadValues({}, item), updatedPermission) : item
|
242
|
-
);
|
243
|
-
store.setProperty("rolePermissions", updatedData);
|
244
|
-
}
|
245
|
-
function isAllPermission(field) {
|
246
|
-
var _a, _b;
|
247
|
-
return (_b = (_a = store.state.rolePermissions) == null ? void 0 : _a.every((item) => item[field] === true)) != null ? _b : false;
|
248
|
-
}
|
249
|
-
return __spreadProps(__spreadValues({}, store), {
|
250
|
-
toogleAllPermissionWithType,
|
251
|
-
findByPageId,
|
252
|
-
updatePermission,
|
253
|
-
isAllPermission
|
254
|
-
});
|
255
|
-
}
|
256
|
-
function utils_core83092_mergePage(arr1, arr2) {
|
257
|
-
const pageMap = /* @__PURE__ */ new Map();
|
258
|
-
arr1.forEach((page) => pageMap.set(page.pageId, page));
|
259
|
-
arr2.forEach((page) => {
|
260
|
-
if (pageMap.has(page.pageId)) {
|
261
|
-
pageMap.set(page.pageId, page);
|
262
|
-
}
|
263
|
-
});
|
264
|
-
return Array.from(pageMap.values());
|
265
|
-
}
|
266
|
-
|
267
|
-
// src/modules-features/admin/core/accessControl/F_accessControl_ViewMenuPermissions.tsx
|
268
228
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
269
229
|
var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
270
230
|
function F_accessControl_ViewMenuPermissions({ menuData: menuData2 }) {
|
@@ -468,7 +428,7 @@ function useGetUserPermission({ menuData: menuData2 }) {
|
|
468
428
|
return final.filter((item) => item.pageId != void 0);
|
469
429
|
}
|
470
430
|
const menuDataFromAPI = result.data.data;
|
471
|
-
const mergedArray =
|
431
|
+
const mergedArray = utils_accessControl_mergePage(menudataFinal, menuDataFromAPI).map((item) => ({
|
472
432
|
pageId: item.pageId,
|
473
433
|
isCreate: item.isCreate || false,
|
474
434
|
isRead: item.isRead || false,
|
@@ -546,7 +506,7 @@ import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
546
506
|
import { useEffect as useEffect4, useMemo as useMemo2, useState as useState4 } from "react";
|
547
507
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
548
508
|
function F_accessControlLevel_ReadUser() {
|
549
|
-
const store =
|
509
|
+
const store = useS_accessControl();
|
550
510
|
const query = useQ_Account_GetAdminAccount();
|
551
511
|
const [rowSelection, setRowSelection] = useState4({});
|
552
512
|
const columns = useMemo2(
|
@@ -661,7 +621,7 @@ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
661
621
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
662
622
|
function F_accessControlLevel_ViewMenuPermissions({ menuData: menuData2 }) {
|
663
623
|
var _a, _b;
|
664
|
-
const store =
|
624
|
+
const store = useS_accessControl();
|
665
625
|
const query = useGetUserPermission2();
|
666
626
|
const list = useState5([]);
|
667
627
|
useEffect5(() => {
|
@@ -841,7 +801,7 @@ function F_accessControlLevel_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
841
801
|
] }) });
|
842
802
|
}
|
843
803
|
function useGetUserPermission2() {
|
844
|
-
const store =
|
804
|
+
const store = useS_accessControl();
|
845
805
|
const query = useQuery4({
|
846
806
|
queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
|
847
807
|
queryFn: async () => {
|
@@ -860,7 +820,7 @@ function useGetUserPermission2() {
|
|
860
820
|
return final.filter((item) => item.pageId != void 0);
|
861
821
|
}
|
862
822
|
const menuDataFromAPI = result.data.data;
|
863
|
-
const mergedArray =
|
823
|
+
const mergedArray = utils_accessControl_mergePage(menudataFinal, menuDataFromAPI).map((item) => ({
|
864
824
|
pageId: item.pageId,
|
865
825
|
isCreate: item.isCreate || false,
|
866
826
|
isRead: item.isRead || false,
|
@@ -882,7 +842,7 @@ import { useMutation as useMutation2 } from "@tanstack/react-query";
|
|
882
842
|
import { useEffect as useEffect6, useState as useState6 } from "react";
|
883
843
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
884
844
|
function F_accessControlLevel_Save() {
|
885
|
-
const store =
|
845
|
+
const store = useS_accessControl();
|
886
846
|
const disable = useState6(false);
|
887
847
|
const mutation = useMutation2({
|
888
848
|
mutationFn: async (body) => {
|
@@ -953,11 +913,11 @@ import { IconShield } from "@tabler/icons-react";
|
|
953
913
|
import { useMemo as useMemo4, useState as useState9 } from "react";
|
954
914
|
|
955
915
|
// src/modules-features/admin/core/accountManagement/useS_accountManagement.ts
|
956
|
-
var
|
916
|
+
var useStore2 = createGenericStore({
|
957
917
|
initialState: {}
|
958
918
|
});
|
959
919
|
function useS_accountManagement() {
|
960
|
-
const store =
|
920
|
+
const store = useStore2();
|
961
921
|
return __spreadValues({}, store);
|
962
922
|
}
|
963
923
|
|
@@ -3362,389 +3322,12 @@ function F_core76318({ SecurityTypeId }) {
|
|
3362
3322
|
return /* @__PURE__ */ jsx58(F_core76318_Read, { SecurityTypeId });
|
3363
3323
|
}
|
3364
3324
|
|
3365
|
-
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
3366
|
-
import { Grid as Grid4, Paper as Paper6, ScrollArea as ScrollArea6 } from "@mantine/core";
|
3367
|
-
|
3368
|
-
// src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
|
3369
|
-
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
3370
|
-
import { useEffect as useEffect9, useMemo as useMemo14, useState as useState10 } from "react";
|
3371
|
-
import { jsx as jsx59 } from "react/jsx-runtime";
|
3372
|
-
function F_core83092_ReadUser() {
|
3373
|
-
const store = useS_core83092();
|
3374
|
-
const query = useQ_core83092_Account_GetAdminAccount2();
|
3375
|
-
const [rowSelection, setRowSelection] = useState10({});
|
3376
|
-
const columns = useMemo14(
|
3377
|
-
() => [
|
3378
|
-
{
|
3379
|
-
header: "H\u1ECD v\xE0 t\xEAn",
|
3380
|
-
accessorKey: "fullName"
|
3381
|
-
},
|
3382
|
-
{
|
3383
|
-
header: "Email",
|
3384
|
-
accessorKey: "email"
|
3385
|
-
}
|
3386
|
-
],
|
3387
|
-
[]
|
3388
|
-
);
|
3389
|
-
const handleRowClick = (rowId) => {
|
3390
|
-
setRowSelection({ [rowId]: true });
|
3391
|
-
store.setProperty("roleId", parseInt(rowId));
|
3392
|
-
};
|
3393
|
-
useEffect9(() => {
|
3394
|
-
if (store.state.roleId == 0) return;
|
3395
|
-
setRowSelection({ [store.state.roleId]: true });
|
3396
|
-
}, [store.state.roleId]);
|
3397
|
-
useEffect9(() => {
|
3398
|
-
if (!query.data) return;
|
3399
|
-
store.setProperty("roleId", query.data[0].id);
|
3400
|
-
}, [query.data]);
|
3401
|
-
if (query.isLoading) return "Loading...";
|
3402
|
-
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
3403
|
-
return /* @__PURE__ */ jsx59(
|
3404
|
-
MyDataTable,
|
3405
|
-
{
|
3406
|
-
columns,
|
3407
|
-
data: query.data,
|
3408
|
-
getRowId: (row) => {
|
3409
|
-
var _a;
|
3410
|
-
return (_a = row.id) == null ? void 0 : _a.toString();
|
3411
|
-
},
|
3412
|
-
mantineTableBodyRowProps: ({ row }) => ({
|
3413
|
-
onClick: () => handleRowClick(row.id),
|
3414
|
-
style: {
|
3415
|
-
cursor: "pointer",
|
3416
|
-
backgroundColor: rowSelection[row.id] ? const_object_colors.mantineBackgroundTealLight : "transparent"
|
3417
|
-
}
|
3418
|
-
}),
|
3419
|
-
state: rowSelection
|
3420
|
-
}
|
3421
|
-
);
|
3422
|
-
}
|
3423
|
-
function useQ_core83092_Account_GetAdminAccount2() {
|
3424
|
-
const query = useQuery16({
|
3425
|
-
queryKey: ["useQ_core83092_Account_GetAdminAccount"],
|
3426
|
-
queryFn: async () => {
|
3427
|
-
var _a;
|
3428
|
-
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockUserData3;
|
3429
|
-
const result = await baseAxios_default.get(`/Account/GetAdminAccount`, { params: { page: 5, pageNumber: 1 } });
|
3430
|
-
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
3431
|
-
},
|
3432
|
-
refetchOnWindowFocus: false
|
3433
|
-
});
|
3434
|
-
return query;
|
3435
|
-
}
|
3436
|
-
var mockUserData3 = [
|
3437
|
-
{
|
3438
|
-
userName: "nguyenvana",
|
3439
|
-
fullName: "Nguy\u1EC5n V\u0103n A",
|
3440
|
-
email: "vana@example.com"
|
3441
|
-
},
|
3442
|
-
{
|
3443
|
-
userName: "tranthib",
|
3444
|
-
fullName: "Tr\u1EA7n Th\u1ECB B",
|
3445
|
-
email: "thib@example.com"
|
3446
|
-
},
|
3447
|
-
{
|
3448
|
-
userName: "leminhc",
|
3449
|
-
fullName: "L\xEA Minh C",
|
3450
|
-
email: "minhc@example.com"
|
3451
|
-
},
|
3452
|
-
{
|
3453
|
-
userName: "phamthid",
|
3454
|
-
fullName: "Ph\u1EA1m Th\u1ECB D",
|
3455
|
-
email: "thid@example.com"
|
3456
|
-
},
|
3457
|
-
{
|
3458
|
-
userName: "doanvanh",
|
3459
|
-
fullName: "Do\xE3n V\u0103n H",
|
3460
|
-
email: "vanh@example.com"
|
3461
|
-
}
|
3462
|
-
];
|
3463
|
-
|
3464
|
-
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
3465
|
-
import { useMutation as useMutation4 } from "@tanstack/react-query";
|
3466
|
-
import { useEffect as useEffect10, useState as useState11 } from "react";
|
3467
|
-
import { jsx as jsx60 } from "react/jsx-runtime";
|
3468
|
-
function F_core83092_Save() {
|
3469
|
-
const store = useS_core83092();
|
3470
|
-
const disable = useState11(false);
|
3471
|
-
const mutation = useMutation4({
|
3472
|
-
mutationFn: async (body) => {
|
3473
|
-
const res = await baseAxios_default.put("/Role/UpdateUserPermission", body);
|
3474
|
-
return res;
|
3475
|
-
}
|
3476
|
-
});
|
3477
|
-
function handleSave() {
|
3478
|
-
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
|
3479
|
-
utils_notification_show({
|
3480
|
-
crudType: "update"
|
3481
|
-
});
|
3482
|
-
return;
|
3483
|
-
}
|
3484
|
-
mutation.mutate({
|
3485
|
-
pagePermissions: store.state.rolePermissions,
|
3486
|
-
userId: store.state.roleId
|
3487
|
-
}, {
|
3488
|
-
onSuccess: () => {
|
3489
|
-
utils_notification_show({
|
3490
|
-
crudType: "update"
|
3491
|
-
});
|
3492
|
-
}
|
3493
|
-
});
|
3494
|
-
}
|
3495
|
-
useEffect10(() => {
|
3496
|
-
if (!store.state.rolePermissions || store.state.rolePermissions.length == 0) {
|
3497
|
-
disable[1](true);
|
3498
|
-
return;
|
3499
|
-
}
|
3500
|
-
disable[1](false);
|
3501
|
-
}, [store.state.rolePermissions]);
|
3502
|
-
return /* @__PURE__ */ jsx60(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
3503
|
-
}
|
3504
|
-
|
3505
|
-
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
3506
|
-
import { Checkbox as Checkbox3, Flex as Flex3, ScrollArea as ScrollArea5, Table as Table4, Text as Text3 } from "@mantine/core";
|
3507
|
-
import { IconEdit as IconEdit3, IconEyeUp as IconEyeUp3, IconFileExport as IconFileExport3, IconPlus as IconPlus3, IconPrinter as IconPrinter3, IconTrash as IconTrash3 } from "@tabler/icons-react";
|
3508
|
-
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
3509
|
-
import React3, { useEffect as useEffect11, useState as useState12 } from "react";
|
3510
|
-
import { jsx as jsx61, jsxs as jsxs39 } from "react/jsx-runtime";
|
3511
|
-
var title3 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
3512
|
-
function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
3513
|
-
var _a, _b;
|
3514
|
-
const store = useS_core83092();
|
3515
|
-
const query = useGetUserPermission3({ menuData: menuData2 });
|
3516
|
-
const list = useState12([]);
|
3517
|
-
useEffect11(() => {
|
3518
|
-
list[1](groupToTwoLevels(menuData2));
|
3519
|
-
}, []);
|
3520
|
-
useEffect11(() => {
|
3521
|
-
if (!query.data) return;
|
3522
|
-
store.setProperty("rolePermissions", query.data);
|
3523
|
-
}, [query.data]);
|
3524
|
-
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
3525
|
-
return /* @__PURE__ */ jsx61(ScrollArea5.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs39(Table4, { children: [
|
3526
|
-
/* @__PURE__ */ jsx61(
|
3527
|
-
Table4.Thead,
|
3528
|
-
{
|
3529
|
-
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
3530
|
-
style: {
|
3531
|
-
position: "sticky",
|
3532
|
-
top: 0,
|
3533
|
-
zIndex: 1,
|
3534
|
-
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
3535
|
-
border: "1px solid var(--mantine-color-gray-4)"
|
3536
|
-
},
|
3537
|
-
children: /* @__PURE__ */ jsxs39(Table4.Tr, { children: [
|
3538
|
-
/* @__PURE__ */ jsx61(Table4.Th, { children: title3 }),
|
3539
|
-
/* @__PURE__ */ jsx61(Table4.Th, { children: /* @__PURE__ */ jsxs39(Flex3, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3540
|
-
/* @__PURE__ */ jsx61(Checkbox3, { checked: store.isAllPermission("isRead"), onChange: (e) => {
|
3541
|
-
store.toogleAllPermissionWithType("isRead", e.target.checked);
|
3542
|
-
} }),
|
3543
|
-
/* @__PURE__ */ jsxs39(MyFlexRow, { gap: 3, children: [
|
3544
|
-
"Xem",
|
3545
|
-
/* @__PURE__ */ jsx61(IconEyeUp3, { color: "gray" })
|
3546
|
-
] })
|
3547
|
-
] }) }),
|
3548
|
-
/* @__PURE__ */ jsx61(Table4.Th, { children: /* @__PURE__ */ jsxs39(Flex3, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3549
|
-
/* @__PURE__ */ jsx61(Checkbox3, { checked: store.isAllPermission("isCreate"), onChange: (e) => {
|
3550
|
-
store.toogleAllPermissionWithType("isCreate", e.target.checked);
|
3551
|
-
} }),
|
3552
|
-
/* @__PURE__ */ jsxs39(MyFlexRow, { gap: 3, children: [
|
3553
|
-
"Th\xEAm",
|
3554
|
-
/* @__PURE__ */ jsx61(IconPlus3, { color: "blue" })
|
3555
|
-
] })
|
3556
|
-
] }) }),
|
3557
|
-
/* @__PURE__ */ jsx61(Table4.Th, { children: /* @__PURE__ */ jsxs39(Flex3, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3558
|
-
/* @__PURE__ */ jsx61(Checkbox3, { checked: store.isAllPermission("isUpdate"), onChange: (e) => {
|
3559
|
-
store.toogleAllPermissionWithType("isUpdate", e.target.checked);
|
3560
|
-
} }),
|
3561
|
-
/* @__PURE__ */ jsxs39(MyFlexRow, { gap: 3, children: [
|
3562
|
-
"S\u1EEDa",
|
3563
|
-
/* @__PURE__ */ jsx61(IconEdit3, { color: "var(--mantine-color-yellow-8)" })
|
3564
|
-
] })
|
3565
|
-
] }) }),
|
3566
|
-
/* @__PURE__ */ jsx61(Table4.Th, { children: /* @__PURE__ */ jsxs39(Flex3, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3567
|
-
/* @__PURE__ */ jsx61(Checkbox3, { checked: store.isAllPermission("isDelete"), onChange: (e) => {
|
3568
|
-
store.toogleAllPermissionWithType("isDelete", e.target.checked);
|
3569
|
-
} }),
|
3570
|
-
/* @__PURE__ */ jsxs39(MyFlexRow, { gap: 3, children: [
|
3571
|
-
"X\xF3a",
|
3572
|
-
/* @__PURE__ */ jsx61(IconTrash3, { color: "var(--mantine-color-red-8)" })
|
3573
|
-
] })
|
3574
|
-
] }) }),
|
3575
|
-
/* @__PURE__ */ jsx61(Table4.Th, { children: /* @__PURE__ */ jsxs39(Flex3, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3576
|
-
/* @__PURE__ */ jsx61(Checkbox3, { checked: store.isAllPermission("isPrint"), onChange: (e) => {
|
3577
|
-
store.toogleAllPermissionWithType("isPrint", e.target.checked);
|
3578
|
-
} }),
|
3579
|
-
/* @__PURE__ */ jsxs39(MyFlexRow, { gap: 3, children: [
|
3580
|
-
"In",
|
3581
|
-
/* @__PURE__ */ jsx61(IconPrinter3, { color: "var(--mantine-color-cyan-8)" })
|
3582
|
-
] })
|
3583
|
-
] }) }),
|
3584
|
-
/* @__PURE__ */ jsx61(Table4.Th, { children: /* @__PURE__ */ jsxs39(Flex3, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3585
|
-
/* @__PURE__ */ jsx61(Checkbox3, { checked: store.isAllPermission("isExport"), onChange: (e) => {
|
3586
|
-
store.toogleAllPermissionWithType("isExport", e.target.checked);
|
3587
|
-
} }),
|
3588
|
-
/* @__PURE__ */ jsxs39(MyFlexRow, { gap: 3, children: [
|
3589
|
-
"Xu\u1EA5t",
|
3590
|
-
/* @__PURE__ */ jsx61(IconFileExport3, { color: "var(--mantine-color-green-8)" })
|
3591
|
-
] })
|
3592
|
-
] }) })
|
3593
|
-
] })
|
3594
|
-
}
|
3595
|
-
),
|
3596
|
-
/* @__PURE__ */ jsx61(Table4.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
|
3597
|
-
if (item.links == void 0) return /* @__PURE__ */ jsxs39(Table4.Tr, { children: [
|
3598
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: item.label }),
|
3599
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(Checkbox3, {}) }) }),
|
3600
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(Checkbox3, {}) }) }),
|
3601
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(Checkbox3, {}) }) }),
|
3602
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(Checkbox3, {}) }) }),
|
3603
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(Checkbox3, {}) }) }),
|
3604
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(Checkbox3, {}) }) })
|
3605
|
-
] }, idx);
|
3606
|
-
return /* @__PURE__ */ jsxs39(React3.Fragment, { children: [
|
3607
|
-
/* @__PURE__ */ jsx61(Table4.Tr, { children: /* @__PURE__ */ jsx61(
|
3608
|
-
Table4.Td,
|
3609
|
-
{
|
3610
|
-
colSpan: 7,
|
3611
|
-
bg: const_object_colors.mantineBackgroundBlueLight,
|
3612
|
-
children: /* @__PURE__ */ jsx61(Text3, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
3613
|
-
}
|
3614
|
-
) }, item.label),
|
3615
|
-
item.links.map(
|
3616
|
-
(item2, idx2) => {
|
3617
|
-
var _a2, _b2, _c, _d, _e, _f;
|
3618
|
-
return /* @__PURE__ */ jsxs39(Table4.Tr, { children: [
|
3619
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: item2.label }),
|
3620
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(
|
3621
|
-
Checkbox3,
|
3622
|
-
{
|
3623
|
-
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
3624
|
-
onChange: (e) => {
|
3625
|
-
store.updatePermission(item2.pageId, {
|
3626
|
-
isRead: e.target.checked
|
3627
|
-
});
|
3628
|
-
}
|
3629
|
-
}
|
3630
|
-
) }) }),
|
3631
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(
|
3632
|
-
Checkbox3,
|
3633
|
-
{
|
3634
|
-
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
3635
|
-
onChange: (e) => {
|
3636
|
-
store.updatePermission(item2.pageId, {
|
3637
|
-
isCreate: e.target.checked
|
3638
|
-
});
|
3639
|
-
}
|
3640
|
-
}
|
3641
|
-
) }) }),
|
3642
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(
|
3643
|
-
Checkbox3,
|
3644
|
-
{
|
3645
|
-
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
3646
|
-
onChange: (e) => {
|
3647
|
-
store.updatePermission(item2.pageId, {
|
3648
|
-
isUpdate: e.target.checked
|
3649
|
-
});
|
3650
|
-
}
|
3651
|
-
}
|
3652
|
-
) }) }),
|
3653
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(
|
3654
|
-
Checkbox3,
|
3655
|
-
{
|
3656
|
-
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
3657
|
-
onChange: (e) => {
|
3658
|
-
store.updatePermission(item2.pageId, {
|
3659
|
-
isDelete: e.target.checked
|
3660
|
-
});
|
3661
|
-
}
|
3662
|
-
}
|
3663
|
-
) }) }),
|
3664
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(
|
3665
|
-
Checkbox3,
|
3666
|
-
{
|
3667
|
-
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
3668
|
-
onChange: (e) => {
|
3669
|
-
store.updatePermission(item2.pageId, {
|
3670
|
-
isPrint: e.target.checked
|
3671
|
-
});
|
3672
|
-
}
|
3673
|
-
}
|
3674
|
-
) }) }),
|
3675
|
-
/* @__PURE__ */ jsx61(Table4.Td, { children: /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(
|
3676
|
-
Checkbox3,
|
3677
|
-
{
|
3678
|
-
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
3679
|
-
onChange: (e) => {
|
3680
|
-
store.updatePermission(item2.pageId, {
|
3681
|
-
isExport: e.target.checked
|
3682
|
-
});
|
3683
|
-
}
|
3684
|
-
}
|
3685
|
-
) }) })
|
3686
|
-
] }, idx2);
|
3687
|
-
}
|
3688
|
-
)
|
3689
|
-
] }, idx);
|
3690
|
-
}) })
|
3691
|
-
] }) });
|
3692
|
-
}
|
3693
|
-
function useGetUserPermission3({ menuData: menuData2 }) {
|
3694
|
-
const store = useS_core83092();
|
3695
|
-
const query = useQuery17({
|
3696
|
-
queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
|
3697
|
-
queryFn: async () => {
|
3698
|
-
const result = await baseAxios_default.get("/Role/GetUserPermission?userId=" + store.state.roleId);
|
3699
|
-
const menudataFinal = utils_layout_getItemsWithoutLinks(menuData2);
|
3700
|
-
if (result.data.data.length == 0) {
|
3701
|
-
const final = menudataFinal.map((item) => ({
|
3702
|
-
pageId: item.pageId,
|
3703
|
-
isRead: false,
|
3704
|
-
isCreate: false,
|
3705
|
-
isUpdate: false,
|
3706
|
-
isDelete: false,
|
3707
|
-
isExport: false,
|
3708
|
-
isPrint: false
|
3709
|
-
}));
|
3710
|
-
return final.filter((item) => item.pageId != void 0);
|
3711
|
-
}
|
3712
|
-
const menuDataFromAPI = result.data.data;
|
3713
|
-
const mergedArray = utils_core83092_mergePage(menudataFinal, menuDataFromAPI).map((item) => ({
|
3714
|
-
pageId: item.pageId,
|
3715
|
-
isCreate: item.isCreate || false,
|
3716
|
-
isRead: item.isRead || false,
|
3717
|
-
isUpdate: item.isUpdate || false || false,
|
3718
|
-
isDelete: item.isDelete,
|
3719
|
-
isPrint: item.isPrint || false,
|
3720
|
-
isExport: item.isExport || false
|
3721
|
-
})).filter((item) => item.pageId != void 0);
|
3722
|
-
return mergedArray;
|
3723
|
-
},
|
3724
|
-
enabled: store.state.roleId != 0,
|
3725
|
-
refetchOnWindowFocus: false
|
3726
|
-
});
|
3727
|
-
return query;
|
3728
|
-
}
|
3729
|
-
|
3730
|
-
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
3731
|
-
import { jsx as jsx62, jsxs as jsxs40 } from "react/jsx-runtime";
|
3732
|
-
function F_core83092({ menuData: menuData2 }) {
|
3733
|
-
return /* @__PURE__ */ jsxs40(Grid4, { children: [
|
3734
|
-
/* @__PURE__ */ jsx62(Grid4.Col, { span: { base: 12, sm: 5 }, children: /* @__PURE__ */ jsx62(ScrollArea6.Autosize, { children: /* @__PURE__ */ jsx62(F_core83092_ReadUser, {}) }) }),
|
3735
|
-
/* @__PURE__ */ jsx62(Grid4.Col, { span: { base: 12, sm: 7 }, children: /* @__PURE__ */ jsxs40(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
3736
|
-
/* @__PURE__ */ jsx62(ScrollArea6.Autosize, { h: "100%", children: /* @__PURE__ */ jsx62(Paper6, { p: "md", bg: const_object_colors.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx62(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
3737
|
-
/* @__PURE__ */ jsx62(F_core83092_Save, {})
|
3738
|
-
] }) })
|
3739
|
-
] });
|
3740
|
-
}
|
3741
|
-
|
3742
3325
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs.tsx
|
3743
|
-
import { Paper as
|
3326
|
+
import { Paper as Paper6, Space as Space4 } from "@mantine/core";
|
3744
3327
|
|
3745
3328
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Create.tsx
|
3746
3329
|
import { useForm as useForm19 } from "@mantine/form";
|
3747
|
-
import { jsx as
|
3330
|
+
import { jsx as jsx59, jsxs as jsxs39 } from "react/jsx-runtime";
|
3748
3331
|
function F_formTemplateDocs_Create({ FormTypeId }) {
|
3749
3332
|
const form = useForm19({
|
3750
3333
|
mode: "uncontrolled",
|
@@ -3756,7 +3339,7 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3756
3339
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3757
3340
|
}
|
3758
3341
|
});
|
3759
|
-
return /* @__PURE__ */
|
3342
|
+
return /* @__PURE__ */ jsxs39(
|
3760
3343
|
MyButtonCreate,
|
3761
3344
|
{
|
3762
3345
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -3768,28 +3351,28 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3768
3351
|
}));
|
3769
3352
|
},
|
3770
3353
|
children: [
|
3771
|
-
/* @__PURE__ */
|
3354
|
+
/* @__PURE__ */ jsx59(
|
3772
3355
|
MyTextInput,
|
3773
3356
|
__spreadValues({
|
3774
3357
|
withAsterisk: true,
|
3775
3358
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3776
3359
|
}, form.getInputProps("decisionCode"))
|
3777
3360
|
),
|
3778
|
-
/* @__PURE__ */
|
3361
|
+
/* @__PURE__ */ jsx59(
|
3779
3362
|
MyDateInput,
|
3780
3363
|
__spreadValues({
|
3781
3364
|
withAsterisk: true,
|
3782
3365
|
label: "Ng\xE0y ban h\xE0nh"
|
3783
3366
|
}, form.getInputProps("promulgateDate"))
|
3784
3367
|
),
|
3785
|
-
/* @__PURE__ */
|
3368
|
+
/* @__PURE__ */ jsx59(
|
3786
3369
|
MyTextInput,
|
3787
3370
|
__spreadValues({
|
3788
3371
|
withAsterisk: true,
|
3789
3372
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3790
3373
|
}, form.getInputProps("name"))
|
3791
3374
|
),
|
3792
|
-
/* @__PURE__ */
|
3375
|
+
/* @__PURE__ */ jsx59(
|
3793
3376
|
F_core18256_Select,
|
3794
3377
|
__spreadValues({
|
3795
3378
|
withAsterisk: true,
|
@@ -3797,14 +3380,14 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3797
3380
|
documentTypeId: FormTypeId
|
3798
3381
|
}, form.getInputProps("documentAttributeId"))
|
3799
3382
|
),
|
3800
|
-
/* @__PURE__ */
|
3383
|
+
/* @__PURE__ */ jsx59(
|
3801
3384
|
MyFileInput,
|
3802
3385
|
__spreadValues({
|
3803
3386
|
withAsterisk: true,
|
3804
3387
|
label: "V\u0103n b\u1EA3n"
|
3805
3388
|
}, form.getInputProps("file"))
|
3806
3389
|
),
|
3807
|
-
/* @__PURE__ */
|
3390
|
+
/* @__PURE__ */ jsx59(
|
3808
3391
|
MyNumberInput,
|
3809
3392
|
__spreadValues({
|
3810
3393
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3817,17 +3400,17 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3817
3400
|
|
3818
3401
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
|
3819
3402
|
import { Accordion as Accordion4, Alert as Alert4, Blockquote as Blockquote4, Skeleton as Skeleton4 } from "@mantine/core";
|
3820
|
-
import { useQuery as
|
3821
|
-
import { useMemo as
|
3403
|
+
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
3404
|
+
import { useMemo as useMemo14 } from "react";
|
3822
3405
|
import { IconBug as IconBug4 } from "@tabler/icons-react";
|
3823
3406
|
|
3824
3407
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Delete.tsx
|
3825
|
-
import { jsx as
|
3408
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
3826
3409
|
function F_formTemplateDocs_Delete({
|
3827
3410
|
id,
|
3828
3411
|
contextData
|
3829
3412
|
}) {
|
3830
|
-
return /* @__PURE__ */
|
3413
|
+
return /* @__PURE__ */ jsx60(
|
3831
3414
|
MyActionIconDelete,
|
3832
3415
|
{
|
3833
3416
|
contextData,
|
@@ -3838,7 +3421,7 @@ function F_formTemplateDocs_Delete({
|
|
3838
3421
|
|
3839
3422
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Update.tsx
|
3840
3423
|
import { useForm as useForm20 } from "@mantine/form";
|
3841
|
-
import { jsx as
|
3424
|
+
import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
|
3842
3425
|
function F_formTemplateDocs_Update({
|
3843
3426
|
values,
|
3844
3427
|
FormTypeId
|
@@ -3860,7 +3443,7 @@ function F_formTemplateDocs_Update({
|
|
3860
3443
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3861
3444
|
}
|
3862
3445
|
});
|
3863
|
-
return /* @__PURE__ */
|
3446
|
+
return /* @__PURE__ */ jsxs40(
|
3864
3447
|
MyActionIconUpdate,
|
3865
3448
|
{
|
3866
3449
|
form,
|
@@ -3870,28 +3453,28 @@ function F_formTemplateDocs_Update({
|
|
3870
3453
|
}));
|
3871
3454
|
},
|
3872
3455
|
children: [
|
3873
|
-
/* @__PURE__ */
|
3456
|
+
/* @__PURE__ */ jsx61(
|
3874
3457
|
MyTextInput,
|
3875
3458
|
__spreadValues({
|
3876
3459
|
withAsterisk: true,
|
3877
3460
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3878
3461
|
}, form.getInputProps("decisionCode"))
|
3879
3462
|
),
|
3880
|
-
/* @__PURE__ */
|
3463
|
+
/* @__PURE__ */ jsx61(
|
3881
3464
|
MyDateInput,
|
3882
3465
|
__spreadValues({
|
3883
3466
|
withAsterisk: true,
|
3884
3467
|
label: "Ng\xE0y ban h\xE0nh"
|
3885
3468
|
}, form.getInputProps("promulgateDate"))
|
3886
3469
|
),
|
3887
|
-
/* @__PURE__ */
|
3470
|
+
/* @__PURE__ */ jsx61(
|
3888
3471
|
MyTextInput,
|
3889
3472
|
__spreadValues({
|
3890
3473
|
withAsterisk: true,
|
3891
3474
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3892
3475
|
}, form.getInputProps("name"))
|
3893
3476
|
),
|
3894
|
-
/* @__PURE__ */
|
3477
|
+
/* @__PURE__ */ jsx61(
|
3895
3478
|
F_core18256_Select,
|
3896
3479
|
__spreadValues({
|
3897
3480
|
withAsterisk: true,
|
@@ -3899,14 +3482,14 @@ function F_formTemplateDocs_Update({
|
|
3899
3482
|
documentTypeId: FormTypeId
|
3900
3483
|
}, form.getInputProps("documentAttributeId"))
|
3901
3484
|
),
|
3902
|
-
/* @__PURE__ */
|
3485
|
+
/* @__PURE__ */ jsx61(
|
3903
3486
|
MyFileInput,
|
3904
3487
|
__spreadValues({
|
3905
3488
|
withAsterisk: true,
|
3906
3489
|
label: "V\u0103n b\u1EA3n"
|
3907
3490
|
}, form.getInputProps("file"))
|
3908
3491
|
),
|
3909
|
-
/* @__PURE__ */
|
3492
|
+
/* @__PURE__ */ jsx61(
|
3910
3493
|
MyNumberInput,
|
3911
3494
|
__spreadValues({
|
3912
3495
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3918,10 +3501,10 @@ function F_formTemplateDocs_Update({
|
|
3918
3501
|
}
|
3919
3502
|
|
3920
3503
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
|
3921
|
-
import { jsx as
|
3504
|
+
import { jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
|
3922
3505
|
function F_formTemplateDocs_Read({ FormTypeId }) {
|
3923
3506
|
var _a, _b, _c;
|
3924
|
-
const documentAttributeQuery =
|
3507
|
+
const documentAttributeQuery = useQuery16({
|
3925
3508
|
queryKey: ["F_formTemplateDocs_Read", FormTypeId],
|
3926
3509
|
queryFn: async () => {
|
3927
3510
|
var _a2;
|
@@ -3932,10 +3515,10 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
|
|
3932
3515
|
}
|
3933
3516
|
});
|
3934
3517
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
3935
|
-
return /* @__PURE__ */
|
3518
|
+
return /* @__PURE__ */ jsx62(Blockquote4, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
3936
3519
|
if (documentAttributeQuery.isError)
|
3937
|
-
return /* @__PURE__ */
|
3938
|
-
return /* @__PURE__ */
|
3520
|
+
return /* @__PURE__ */ jsx62(Alert4, { icon: /* @__PURE__ */ jsx62(IconBug4, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
3521
|
+
return /* @__PURE__ */ jsx62(Skeleton4, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx62(MyFlexColumn, { children: /* @__PURE__ */ jsx62(
|
3939
3522
|
Accordion4,
|
3940
3523
|
{
|
3941
3524
|
variant: "contained",
|
@@ -3946,7 +3529,7 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
|
|
3946
3529
|
}
|
3947
3530
|
),
|
3948
3531
|
multiple: true,
|
3949
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
3532
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx62(
|
3950
3533
|
SubRead4,
|
3951
3534
|
{
|
3952
3535
|
name: item.name,
|
@@ -3963,7 +3546,7 @@ function SubRead4({
|
|
3963
3546
|
documentType,
|
3964
3547
|
FormTypeId
|
3965
3548
|
}) {
|
3966
|
-
const documentQuery =
|
3549
|
+
const documentQuery = useQuery16({
|
3967
3550
|
queryKey: ["SF2_3Read" + documentType],
|
3968
3551
|
queryFn: async () => {
|
3969
3552
|
const result = await baseAxios_default.get(
|
@@ -3972,7 +3555,7 @@ function SubRead4({
|
|
3972
3555
|
return result.data.data;
|
3973
3556
|
}
|
3974
3557
|
});
|
3975
|
-
const columns =
|
3558
|
+
const columns = useMemo14(
|
3976
3559
|
() => [
|
3977
3560
|
{
|
3978
3561
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -3989,7 +3572,7 @@ function SubRead4({
|
|
3989
3572
|
{
|
3990
3573
|
header: "File",
|
3991
3574
|
accessorFn: (row) => {
|
3992
|
-
return /* @__PURE__ */
|
3575
|
+
return /* @__PURE__ */ jsx62(MyCenterFull, { children: /* @__PURE__ */ jsx62(MyButtonViewPDF, { id: row.id }) });
|
3993
3576
|
}
|
3994
3577
|
}
|
3995
3578
|
],
|
@@ -3997,24 +3580,24 @@ function SubRead4({
|
|
3997
3580
|
);
|
3998
3581
|
if (documentQuery.isLoading) return "Loading...";
|
3999
3582
|
if (documentQuery.isError) return "Error!";
|
4000
|
-
return /* @__PURE__ */
|
4001
|
-
/* @__PURE__ */
|
4002
|
-
/* @__PURE__ */
|
3583
|
+
return /* @__PURE__ */ jsxs41(Accordion4.Item, { value: documentType.toString(), children: [
|
3584
|
+
/* @__PURE__ */ jsx62(Accordion4.Control, { children: name }),
|
3585
|
+
/* @__PURE__ */ jsx62(Accordion4.Panel, { children: /* @__PURE__ */ jsx62(
|
4003
3586
|
MyDataTable,
|
4004
3587
|
{
|
4005
3588
|
isLoading: documentQuery.isLoading,
|
4006
3589
|
isError: documentQuery.isError,
|
4007
3590
|
columns,
|
4008
3591
|
data: documentQuery.data || [],
|
4009
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4010
|
-
/* @__PURE__ */
|
3592
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs41(MyCenterFull, { children: [
|
3593
|
+
/* @__PURE__ */ jsx62(
|
4011
3594
|
F_formTemplateDocs_Update,
|
4012
3595
|
{
|
4013
3596
|
FormTypeId,
|
4014
3597
|
values: row.original
|
4015
3598
|
}
|
4016
3599
|
),
|
4017
|
-
/* @__PURE__ */
|
3600
|
+
/* @__PURE__ */ jsx62(
|
4018
3601
|
F_formTemplateDocs_Delete,
|
4019
3602
|
{
|
4020
3603
|
id: row.original.id,
|
@@ -4028,44 +3611,44 @@ function SubRead4({
|
|
4028
3611
|
}
|
4029
3612
|
|
4030
3613
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs.tsx
|
4031
|
-
import { jsx as
|
3614
|
+
import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
|
4032
3615
|
function F_formTemplateDocs({
|
4033
3616
|
FormTypeId
|
4034
3617
|
}) {
|
4035
|
-
return /* @__PURE__ */
|
4036
|
-
/* @__PURE__ */
|
4037
|
-
/* @__PURE__ */
|
4038
|
-
/* @__PURE__ */
|
3618
|
+
return /* @__PURE__ */ jsxs42(Paper6, { p: "md", children: [
|
3619
|
+
/* @__PURE__ */ jsx63(MyFlexEnd, { children: /* @__PURE__ */ jsx63(F_formTemplateDocs_Create, { FormTypeId }) }),
|
3620
|
+
/* @__PURE__ */ jsx63(Space4, {}),
|
3621
|
+
/* @__PURE__ */ jsx63(F_formTemplateDocs_Read, { FormTypeId })
|
4039
3622
|
] });
|
4040
3623
|
}
|
4041
3624
|
|
4042
3625
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
4043
|
-
import { useEffect as
|
3626
|
+
import { useEffect as useEffect10 } from "react";
|
4044
3627
|
|
4045
3628
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
4046
|
-
import { Center, Grid as
|
3629
|
+
import { Center, Grid as Grid4, Image, Paper as Paper7 } from "@mantine/core";
|
4047
3630
|
import { useForm as useForm21 } from "@mantine/form";
|
4048
|
-
import { useEffect as
|
3631
|
+
import { useEffect as useEffect9 } from "react";
|
4049
3632
|
|
4050
3633
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
4051
|
-
import { useMutation as
|
3634
|
+
import { useMutation as useMutation4 } from "@tanstack/react-query";
|
4052
3635
|
|
4053
3636
|
// src/modules-features/admin/core/moduleConfig/useS_moduleConfig.ts
|
4054
|
-
var
|
3637
|
+
var useStore3 = createGenericStore({
|
4055
3638
|
initialState: {}
|
4056
3639
|
});
|
4057
3640
|
function useS_moduleConfig() {
|
4058
|
-
const store =
|
3641
|
+
const store = useStore3();
|
4059
3642
|
return __spreadValues({}, store);
|
4060
3643
|
}
|
4061
3644
|
|
4062
3645
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
4063
|
-
import { jsx as
|
3646
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
4064
3647
|
function F_moduleConfig_Save({
|
4065
3648
|
form
|
4066
3649
|
}) {
|
4067
3650
|
const store = useS_moduleConfig();
|
4068
|
-
const mutation =
|
3651
|
+
const mutation = useMutation4({
|
4069
3652
|
mutationFn: async (body) => {
|
4070
3653
|
const res = await baseAxios_default.post("/AQ/UpdateAQSetting", body);
|
4071
3654
|
return res;
|
@@ -4094,7 +3677,7 @@ function F_moduleConfig_Save({
|
|
4094
3677
|
}
|
4095
3678
|
});
|
4096
3679
|
}
|
4097
|
-
return /* @__PURE__ */
|
3680
|
+
return /* @__PURE__ */ jsx64(
|
4098
3681
|
MyButton,
|
4099
3682
|
{
|
4100
3683
|
disabled: !form.isDirty(),
|
@@ -4105,7 +3688,7 @@ function F_moduleConfig_Save({
|
|
4105
3688
|
}
|
4106
3689
|
|
4107
3690
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
4108
|
-
import { jsx as
|
3691
|
+
import { jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
|
4109
3692
|
function F_moduleConfig_Form() {
|
4110
3693
|
var _a, _b, _c, _d;
|
4111
3694
|
const query = useQ_AQ_GetAQModule();
|
@@ -4116,7 +3699,7 @@ function F_moduleConfig_Form() {
|
|
4116
3699
|
logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4117
3700
|
}
|
4118
3701
|
});
|
4119
|
-
|
3702
|
+
useEffect9(() => {
|
4120
3703
|
var _a2, _b2;
|
4121
3704
|
if (!query.data) return;
|
4122
3705
|
const values = {
|
@@ -4137,14 +3720,14 @@ function F_moduleConfig_Form() {
|
|
4137
3720
|
form.setInitialValues(values);
|
4138
3721
|
form.setValues(values);
|
4139
3722
|
}, [query.data]);
|
4140
|
-
return /* @__PURE__ */
|
4141
|
-
/* @__PURE__ */
|
4142
|
-
/* @__PURE__ */
|
4143
|
-
/* @__PURE__ */
|
4144
|
-
/* @__PURE__ */
|
4145
|
-
/* @__PURE__ */
|
4146
|
-
/* @__PURE__ */
|
4147
|
-
/* @__PURE__ */
|
3723
|
+
return /* @__PURE__ */ jsxs43(Paper7, { p: "md", children: [
|
3724
|
+
/* @__PURE__ */ jsxs43(Grid4, { children: [
|
3725
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: 5, children: /* @__PURE__ */ jsx65(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
3726
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx65(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
3727
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: 12, children: /* @__PURE__ */ jsx65(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
3728
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
3729
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
3730
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(
|
4148
3731
|
MyDateInput,
|
4149
3732
|
{
|
4150
3733
|
value: form.getValues().registrationDate,
|
@@ -4153,7 +3736,7 @@ function F_moduleConfig_Form() {
|
|
4153
3736
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
4154
3737
|
}
|
4155
3738
|
) }),
|
4156
|
-
/* @__PURE__ */
|
3739
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(
|
4157
3740
|
MyDateInput,
|
4158
3741
|
{
|
4159
3742
|
value: form.getValues().limiteDate,
|
@@ -4162,8 +3745,8 @@ function F_moduleConfig_Form() {
|
|
4162
3745
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
4163
3746
|
}
|
4164
3747
|
) }),
|
4165
|
-
/* @__PURE__ */
|
4166
|
-
/* @__PURE__ */
|
3748
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs43(MyFlexColumn, { children: [
|
3749
|
+
/* @__PURE__ */ jsx65(
|
4167
3750
|
MyFileInput,
|
4168
3751
|
{
|
4169
3752
|
accept: "image/png,image/jpeg",
|
@@ -4175,7 +3758,7 @@ function F_moduleConfig_Form() {
|
|
4175
3758
|
}
|
4176
3759
|
}
|
4177
3760
|
),
|
4178
|
-
/* @__PURE__ */
|
3761
|
+
/* @__PURE__ */ jsx65(Paper7, { w: "100%", children: /* @__PURE__ */ jsx65(Center, { children: /* @__PURE__ */ jsx65(
|
4179
3762
|
Image,
|
4180
3763
|
{
|
4181
3764
|
fit: "contain",
|
@@ -4188,8 +3771,8 @@ function F_moduleConfig_Form() {
|
|
4188
3771
|
}
|
4189
3772
|
) }) })
|
4190
3773
|
] }) }),
|
4191
|
-
/* @__PURE__ */
|
4192
|
-
/* @__PURE__ */
|
3774
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs43(MyFlexColumn, { children: [
|
3775
|
+
/* @__PURE__ */ jsx65(
|
4193
3776
|
MyFileInput,
|
4194
3777
|
{
|
4195
3778
|
accept: "image/png,image/jpeg",
|
@@ -4201,7 +3784,7 @@ function F_moduleConfig_Form() {
|
|
4201
3784
|
}
|
4202
3785
|
}
|
4203
3786
|
),
|
4204
|
-
/* @__PURE__ */
|
3787
|
+
/* @__PURE__ */ jsx65(Paper7, { children: /* @__PURE__ */ jsx65(Center, { children: /* @__PURE__ */ jsx65(
|
4205
3788
|
Image,
|
4206
3789
|
{
|
4207
3790
|
fit: "contain",
|
@@ -4215,26 +3798,26 @@ function F_moduleConfig_Form() {
|
|
4215
3798
|
) }) })
|
4216
3799
|
] }) })
|
4217
3800
|
] }),
|
4218
|
-
/* @__PURE__ */
|
3801
|
+
/* @__PURE__ */ jsx65(MyFlexEnd, { children: /* @__PURE__ */ jsx65(F_moduleConfig_Save, { form }) })
|
4219
3802
|
] });
|
4220
3803
|
}
|
4221
3804
|
|
4222
3805
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
4223
|
-
import { jsx as
|
3806
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
4224
3807
|
function F_moduleConfig({ AQModuleId }) {
|
4225
3808
|
const store = useS_moduleConfig();
|
4226
|
-
|
3809
|
+
useEffect10(() => {
|
4227
3810
|
store.setProperty("AQModuleId", AQModuleId);
|
4228
3811
|
}, []);
|
4229
|
-
return /* @__PURE__ */
|
3812
|
+
return /* @__PURE__ */ jsx66(F_moduleConfig_Form, {});
|
4230
3813
|
}
|
4231
3814
|
|
4232
3815
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
4233
|
-
import { Paper as
|
3816
|
+
import { Paper as Paper8, Space as Space5 } from "@mantine/core";
|
4234
3817
|
|
4235
3818
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Create.tsx
|
4236
3819
|
import { useForm as useForm22 } from "@mantine/form";
|
4237
|
-
import { jsx as
|
3820
|
+
import { jsx as jsx67, jsxs as jsxs44 } from "react/jsx-runtime";
|
4238
3821
|
function F_organizationPolicyDocs_Create({
|
4239
3822
|
RegulationsTypeId
|
4240
3823
|
}) {
|
@@ -4248,7 +3831,7 @@ function F_organizationPolicyDocs_Create({
|
|
4248
3831
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4249
3832
|
}
|
4250
3833
|
});
|
4251
|
-
return /* @__PURE__ */
|
3834
|
+
return /* @__PURE__ */ jsxs44(
|
4252
3835
|
MyButtonCreate,
|
4253
3836
|
{
|
4254
3837
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -4260,28 +3843,28 @@ function F_organizationPolicyDocs_Create({
|
|
4260
3843
|
}));
|
4261
3844
|
},
|
4262
3845
|
children: [
|
4263
|
-
/* @__PURE__ */
|
3846
|
+
/* @__PURE__ */ jsx67(
|
4264
3847
|
MyTextInput,
|
4265
3848
|
__spreadValues({
|
4266
3849
|
withAsterisk: true,
|
4267
3850
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4268
3851
|
}, form.getInputProps("decisionCode"))
|
4269
3852
|
),
|
4270
|
-
/* @__PURE__ */
|
3853
|
+
/* @__PURE__ */ jsx67(
|
4271
3854
|
MyDateInput,
|
4272
3855
|
__spreadValues({
|
4273
3856
|
withAsterisk: true,
|
4274
3857
|
label: "Ng\xE0y ban h\xE0nh"
|
4275
3858
|
}, form.getInputProps("promulgateDate"))
|
4276
3859
|
),
|
4277
|
-
/* @__PURE__ */
|
3860
|
+
/* @__PURE__ */ jsx67(
|
4278
3861
|
MyTextInput,
|
4279
3862
|
__spreadValues({
|
4280
3863
|
withAsterisk: true,
|
4281
3864
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4282
3865
|
}, form.getInputProps("name"))
|
4283
3866
|
),
|
4284
|
-
/* @__PURE__ */
|
3867
|
+
/* @__PURE__ */ jsx67(
|
4285
3868
|
F_core18256_Select,
|
4286
3869
|
__spreadValues({
|
4287
3870
|
withAsterisk: true,
|
@@ -4289,14 +3872,14 @@ function F_organizationPolicyDocs_Create({
|
|
4289
3872
|
documentTypeId: RegulationsTypeId
|
4290
3873
|
}, form.getInputProps("documentAttributeId"))
|
4291
3874
|
),
|
4292
|
-
/* @__PURE__ */
|
3875
|
+
/* @__PURE__ */ jsx67(
|
4293
3876
|
MyFileInput,
|
4294
3877
|
__spreadValues({
|
4295
3878
|
withAsterisk: true,
|
4296
3879
|
label: "V\u0103n b\u1EA3n"
|
4297
3880
|
}, form.getInputProps("file"))
|
4298
3881
|
),
|
4299
|
-
/* @__PURE__ */
|
3882
|
+
/* @__PURE__ */ jsx67(
|
4300
3883
|
MyNumberInput,
|
4301
3884
|
__spreadValues({
|
4302
3885
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -4309,17 +3892,17 @@ function F_organizationPolicyDocs_Create({
|
|
4309
3892
|
|
4310
3893
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
4311
3894
|
import { Accordion as Accordion5, Alert as Alert5, Blockquote as Blockquote5, Skeleton as Skeleton5 } from "@mantine/core";
|
4312
|
-
import { useQuery as
|
3895
|
+
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
4313
3896
|
import { IconBug as IconBug5 } from "@tabler/icons-react";
|
4314
|
-
import { useMemo as
|
3897
|
+
import { useMemo as useMemo15 } from "react";
|
4315
3898
|
|
4316
3899
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Delete.tsx
|
4317
|
-
import { jsx as
|
3900
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
4318
3901
|
function F_organizationPolicyDocs_Delete({
|
4319
3902
|
id,
|
4320
3903
|
contextData
|
4321
3904
|
}) {
|
4322
|
-
return /* @__PURE__ */
|
3905
|
+
return /* @__PURE__ */ jsx68(
|
4323
3906
|
MyActionIconDelete,
|
4324
3907
|
{
|
4325
3908
|
contextData,
|
@@ -4330,7 +3913,7 @@ function F_organizationPolicyDocs_Delete({
|
|
4330
3913
|
|
4331
3914
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Update.tsx
|
4332
3915
|
import { useForm as useForm23 } from "@mantine/form";
|
4333
|
-
import { jsx as
|
3916
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "react/jsx-runtime";
|
4334
3917
|
function F_organizationPolicyDocs_Update({
|
4335
3918
|
values,
|
4336
3919
|
RegulationsTypeId
|
@@ -4352,7 +3935,7 @@ function F_organizationPolicyDocs_Update({
|
|
4352
3935
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4353
3936
|
}
|
4354
3937
|
});
|
4355
|
-
return /* @__PURE__ */
|
3938
|
+
return /* @__PURE__ */ jsxs45(
|
4356
3939
|
MyActionIconUpdate,
|
4357
3940
|
{
|
4358
3941
|
form,
|
@@ -4362,28 +3945,28 @@ function F_organizationPolicyDocs_Update({
|
|
4362
3945
|
}));
|
4363
3946
|
},
|
4364
3947
|
children: [
|
4365
|
-
/* @__PURE__ */
|
3948
|
+
/* @__PURE__ */ jsx69(
|
4366
3949
|
MyTextInput,
|
4367
3950
|
__spreadValues({
|
4368
3951
|
withAsterisk: true,
|
4369
3952
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4370
3953
|
}, form.getInputProps("decisionCode"))
|
4371
3954
|
),
|
4372
|
-
/* @__PURE__ */
|
3955
|
+
/* @__PURE__ */ jsx69(
|
4373
3956
|
MyDateInput,
|
4374
3957
|
__spreadValues({
|
4375
3958
|
withAsterisk: true,
|
4376
3959
|
label: "Ng\xE0y ban h\xE0nh"
|
4377
3960
|
}, form.getInputProps("promulgateDate"))
|
4378
3961
|
),
|
4379
|
-
/* @__PURE__ */
|
3962
|
+
/* @__PURE__ */ jsx69(
|
4380
3963
|
MyTextInput,
|
4381
3964
|
__spreadValues({
|
4382
3965
|
withAsterisk: true,
|
4383
3966
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4384
3967
|
}, form.getInputProps("name"))
|
4385
3968
|
),
|
4386
|
-
/* @__PURE__ */
|
3969
|
+
/* @__PURE__ */ jsx69(
|
4387
3970
|
F_core18256_Select,
|
4388
3971
|
__spreadValues({
|
4389
3972
|
withAsterisk: true,
|
@@ -4391,14 +3974,14 @@ function F_organizationPolicyDocs_Update({
|
|
4391
3974
|
documentTypeId: RegulationsTypeId
|
4392
3975
|
}, form.getInputProps("documentAttributeId"))
|
4393
3976
|
),
|
4394
|
-
/* @__PURE__ */
|
3977
|
+
/* @__PURE__ */ jsx69(
|
4395
3978
|
MyFileInput,
|
4396
3979
|
__spreadValues({
|
4397
3980
|
withAsterisk: true,
|
4398
3981
|
label: "V\u0103n b\u1EA3n"
|
4399
3982
|
}, form.getInputProps("file"))
|
4400
3983
|
),
|
4401
|
-
/* @__PURE__ */
|
3984
|
+
/* @__PURE__ */ jsx69(
|
4402
3985
|
MyNumberInput,
|
4403
3986
|
__spreadValues({
|
4404
3987
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -4410,12 +3993,12 @@ function F_organizationPolicyDocs_Update({
|
|
4410
3993
|
}
|
4411
3994
|
|
4412
3995
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
4413
|
-
import { jsx as
|
3996
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "react/jsx-runtime";
|
4414
3997
|
function F_organizationPolicyDocs_Read({
|
4415
3998
|
RegulationsTypeId
|
4416
3999
|
}) {
|
4417
4000
|
var _a, _b, _c;
|
4418
|
-
const documentAttributeQuery =
|
4001
|
+
const documentAttributeQuery = useQuery17({
|
4419
4002
|
queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
|
4420
4003
|
queryFn: async () => {
|
4421
4004
|
var _a2;
|
@@ -4426,10 +4009,10 @@ function F_organizationPolicyDocs_Read({
|
|
4426
4009
|
}
|
4427
4010
|
});
|
4428
4011
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
4429
|
-
return /* @__PURE__ */
|
4012
|
+
return /* @__PURE__ */ jsx70(Blockquote5, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
4430
4013
|
if (documentAttributeQuery.isError)
|
4431
|
-
return /* @__PURE__ */
|
4432
|
-
return /* @__PURE__ */
|
4014
|
+
return /* @__PURE__ */ jsx70(Alert5, { icon: /* @__PURE__ */ jsx70(IconBug5, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
4015
|
+
return /* @__PURE__ */ jsx70(Skeleton5, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx70(MyFlexColumn, { children: /* @__PURE__ */ jsx70(
|
4433
4016
|
Accordion5,
|
4434
4017
|
{
|
4435
4018
|
variant: "contained",
|
@@ -4440,7 +4023,7 @@ function F_organizationPolicyDocs_Read({
|
|
4440
4023
|
}
|
4441
4024
|
),
|
4442
4025
|
multiple: true,
|
4443
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
4026
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx70(
|
4444
4027
|
SubRead5,
|
4445
4028
|
{
|
4446
4029
|
name: item.name,
|
@@ -4457,7 +4040,7 @@ function SubRead5({
|
|
4457
4040
|
documentType,
|
4458
4041
|
RegulationsTypeId
|
4459
4042
|
}) {
|
4460
|
-
const documentQuery =
|
4043
|
+
const documentQuery = useQuery17({
|
4461
4044
|
queryKey: ["SubRead" + documentType],
|
4462
4045
|
queryFn: async () => {
|
4463
4046
|
const result = await baseAxios_default.get(
|
@@ -4466,7 +4049,7 @@ function SubRead5({
|
|
4466
4049
|
return result.data.data;
|
4467
4050
|
}
|
4468
4051
|
});
|
4469
|
-
const columns =
|
4052
|
+
const columns = useMemo15(
|
4470
4053
|
() => [
|
4471
4054
|
{
|
4472
4055
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4483,30 +4066,30 @@ function SubRead5({
|
|
4483
4066
|
{
|
4484
4067
|
header: "File",
|
4485
4068
|
accessorFn: (row) => {
|
4486
|
-
return /* @__PURE__ */
|
4069
|
+
return /* @__PURE__ */ jsx70(MyCenterFull, { children: /* @__PURE__ */ jsx70(MyButtonViewPDF, { id: row.id }) });
|
4487
4070
|
}
|
4488
4071
|
}
|
4489
4072
|
],
|
4490
4073
|
[]
|
4491
4074
|
);
|
4492
|
-
return /* @__PURE__ */
|
4493
|
-
/* @__PURE__ */
|
4494
|
-
/* @__PURE__ */
|
4075
|
+
return /* @__PURE__ */ jsxs46(Accordion5.Item, { value: documentType.toString(), children: [
|
4076
|
+
/* @__PURE__ */ jsx70(Accordion5.Control, { children: name }),
|
4077
|
+
/* @__PURE__ */ jsx70(Accordion5.Panel, { children: /* @__PURE__ */ jsx70(
|
4495
4078
|
MyDataTable,
|
4496
4079
|
{
|
4497
4080
|
isLoading: documentQuery.isLoading,
|
4498
4081
|
isError: documentQuery.isError,
|
4499
4082
|
columns,
|
4500
4083
|
data: documentQuery.data || [],
|
4501
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4502
|
-
/* @__PURE__ */
|
4084
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs46(MyCenterFull, { children: [
|
4085
|
+
/* @__PURE__ */ jsx70(
|
4503
4086
|
F_organizationPolicyDocs_Update,
|
4504
4087
|
{
|
4505
4088
|
RegulationsTypeId,
|
4506
4089
|
values: row.original
|
4507
4090
|
}
|
4508
4091
|
),
|
4509
|
-
/* @__PURE__ */
|
4092
|
+
/* @__PURE__ */ jsx70(
|
4510
4093
|
F_organizationPolicyDocs_Delete,
|
4511
4094
|
{
|
4512
4095
|
id: row.original.id,
|
@@ -4520,12 +4103,12 @@ function SubRead5({
|
|
4520
4103
|
}
|
4521
4104
|
|
4522
4105
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
4523
|
-
import { jsx as
|
4106
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "react/jsx-runtime";
|
4524
4107
|
function F_organizationPolicyDocs({ RegulationsTypeId }) {
|
4525
|
-
return /* @__PURE__ */
|
4526
|
-
/* @__PURE__ */
|
4527
|
-
/* @__PURE__ */
|
4528
|
-
/* @__PURE__ */
|
4108
|
+
return /* @__PURE__ */ jsxs47(Paper8, { p: "md", children: [
|
4109
|
+
/* @__PURE__ */ jsx71(MyFlexEnd, { children: /* @__PURE__ */ jsx71(F_organizationPolicyDocs_Create, { RegulationsTypeId }) }),
|
4110
|
+
/* @__PURE__ */ jsx71(Space5, {}),
|
4111
|
+
/* @__PURE__ */ jsx71(F_organizationPolicyDocs_Read, { RegulationsTypeId })
|
4529
4112
|
] });
|
4530
4113
|
}
|
4531
4114
|
|
@@ -4535,10 +4118,10 @@ var service_PageContent = __spreadValues({}, createBaseApi(CONTROLLER2, baseAxio
|
|
4535
4118
|
|
4536
4119
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4537
4120
|
import { Group as Group4 } from "@mantine/core";
|
4538
|
-
import { useMemo as
|
4121
|
+
import { useMemo as useMemo16 } from "react";
|
4539
4122
|
|
4540
4123
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
|
4541
|
-
import { jsx as
|
4124
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
4542
4125
|
function F_pageContentConfig_Save({ menuValues }) {
|
4543
4126
|
const updatePageConfigMutation = useMyReactMutation({
|
4544
4127
|
axiosFn: () => {
|
@@ -4546,30 +4129,30 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
4546
4129
|
return service_PageContent.updateList([{ id: 1 }]);
|
4547
4130
|
}
|
4548
4131
|
});
|
4549
|
-
return /* @__PURE__ */
|
4132
|
+
return /* @__PURE__ */ jsx72(MyButton2, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4550
4133
|
}
|
4551
4134
|
|
4552
4135
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
4553
|
-
import { jsx as
|
4136
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
4554
4137
|
function F_pageContentConfig_Export() {
|
4555
|
-
return /* @__PURE__ */
|
4138
|
+
return /* @__PURE__ */ jsx73(MyButton2, { actionType: "export" });
|
4556
4139
|
}
|
4557
4140
|
|
4558
4141
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
4559
|
-
import { jsx as
|
4142
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
4560
4143
|
function F_pageContentConfig_DeleteDescription() {
|
4561
|
-
return /* @__PURE__ */
|
4144
|
+
return /* @__PURE__ */ jsx74(MyButton2, { actionType: "delete" });
|
4562
4145
|
}
|
4563
4146
|
|
4564
4147
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4565
|
-
import { jsx as
|
4148
|
+
import { jsx as jsx75, jsxs as jsxs48 } from "react/jsx-runtime";
|
4566
4149
|
function F_pageContentConfig_ReadMenu() {
|
4567
4150
|
const pageContentQuery = useMyReactQuery({
|
4568
4151
|
queryKey: ["pageContentQuery"],
|
4569
4152
|
axiosFn: () => service_PageContent.getAll()
|
4570
4153
|
});
|
4571
4154
|
const device = useMyDevice();
|
4572
|
-
const columns =
|
4155
|
+
const columns = useMemo16(() => [
|
4573
4156
|
{
|
4574
4157
|
header: "Dashboard",
|
4575
4158
|
accessorKey: "name"
|
@@ -4579,42 +4162,42 @@ function F_pageContentConfig_ReadMenu() {
|
|
4579
4162
|
accessorKey: "description",
|
4580
4163
|
size: device.isPc ? 400 : 0,
|
4581
4164
|
Cell: () => {
|
4582
|
-
return /* @__PURE__ */
|
4165
|
+
return /* @__PURE__ */ jsx75(MyTextInput2, { placeholder: "Nh\u1EADp m\xF4 t\u1EA3 menu" });
|
4583
4166
|
}
|
4584
4167
|
}
|
4585
4168
|
], []);
|
4586
|
-
return /* @__PURE__ */
|
4169
|
+
return /* @__PURE__ */ jsx75(
|
4587
4170
|
MyDataTable,
|
4588
4171
|
{
|
4589
4172
|
isLoading: pageContentQuery.isLoading,
|
4590
4173
|
isError: pageContentQuery.isError,
|
4591
4174
|
data: pageContentQuery.data || [],
|
4592
4175
|
columns,
|
4593
|
-
renderTopToolbarCustomActions: (row) => /* @__PURE__ */
|
4594
|
-
/* @__PURE__ */
|
4595
|
-
/* @__PURE__ */
|
4596
|
-
/* @__PURE__ */
|
4176
|
+
renderTopToolbarCustomActions: (row) => /* @__PURE__ */ jsxs48(Group4, { children: [
|
4177
|
+
/* @__PURE__ */ jsx75(F_pageContentConfig_Save, { menuValues: [] }),
|
4178
|
+
/* @__PURE__ */ jsx75(F_pageContentConfig_Export, {}),
|
4179
|
+
/* @__PURE__ */ jsx75(F_pageContentConfig_DeleteDescription, {})
|
4597
4180
|
] })
|
4598
4181
|
}
|
4599
4182
|
);
|
4600
4183
|
}
|
4601
4184
|
|
4602
4185
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
|
4603
|
-
import { jsx as
|
4186
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
4604
4187
|
function F_pageContentConfig() {
|
4605
|
-
return /* @__PURE__ */
|
4188
|
+
return /* @__PURE__ */ jsx76(F_pageContentConfig_ReadMenu, {});
|
4606
4189
|
}
|
4607
4190
|
|
4608
4191
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4609
4192
|
import { Group as Group5 } from "@mantine/core";
|
4610
|
-
import { useQuery as
|
4611
|
-
import { useMemo as
|
4193
|
+
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
4194
|
+
import { useMemo as useMemo17 } from "react";
|
4612
4195
|
|
4613
4196
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Delete.tsx
|
4614
|
-
import { jsx as
|
4197
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
4615
4198
|
var ENDPOINT4 = "/Role/Delete";
|
4616
4199
|
function F_roleCatalog_Delete({ values }) {
|
4617
|
-
return /* @__PURE__ */
|
4200
|
+
return /* @__PURE__ */ jsx77(
|
4618
4201
|
MyActionIconDelete,
|
4619
4202
|
{
|
4620
4203
|
contextData: values.code,
|
@@ -4625,31 +4208,31 @@ function F_roleCatalog_Delete({ values }) {
|
|
4625
4208
|
|
4626
4209
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Form.tsx
|
4627
4210
|
import { useForm as useForm24 } from "@mantine/form";
|
4628
|
-
import { jsx as
|
4211
|
+
import { jsx as jsx78, jsxs as jsxs49 } from "react/jsx-runtime";
|
4629
4212
|
function F_roleCatalog_Form({ values }) {
|
4630
4213
|
const form = useForm24({
|
4631
4214
|
mode: "uncontrolled",
|
4632
4215
|
initialValues: values
|
4633
4216
|
});
|
4634
|
-
if (values) return /* @__PURE__ */
|
4217
|
+
if (values) return /* @__PURE__ */ jsxs49(MyActionIconUpdate, { form, onSubmit: async () => {
|
4635
4218
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
4636
4219
|
}, children: [
|
4637
|
-
/* @__PURE__ */
|
4638
|
-
/* @__PURE__ */
|
4220
|
+
/* @__PURE__ */ jsx78(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
4221
|
+
/* @__PURE__ */ jsx78(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4639
4222
|
] });
|
4640
|
-
return /* @__PURE__ */
|
4223
|
+
return /* @__PURE__ */ jsxs49(MyButtonCreate, { form, onSubmit: async () => {
|
4641
4224
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
4642
4225
|
}, children: [
|
4643
|
-
/* @__PURE__ */
|
4644
|
-
/* @__PURE__ */
|
4226
|
+
/* @__PURE__ */ jsx78(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
4227
|
+
/* @__PURE__ */ jsx78(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4645
4228
|
] });
|
4646
4229
|
}
|
4647
4230
|
|
4648
4231
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4649
|
-
import { jsx as
|
4232
|
+
import { jsx as jsx79, jsxs as jsxs50 } from "react/jsx-runtime";
|
4650
4233
|
function F_roleCatalog_Read() {
|
4651
4234
|
const query = useQ_core47643_GetAdminRole2();
|
4652
|
-
const columns =
|
4235
|
+
const columns = useMemo17(() => [
|
4653
4236
|
{
|
4654
4237
|
header: "M\xE3",
|
4655
4238
|
accessorKey: "code"
|
@@ -4659,23 +4242,23 @@ function F_roleCatalog_Read() {
|
|
4659
4242
|
accessorKey: "name"
|
4660
4243
|
}
|
4661
4244
|
], []);
|
4662
|
-
return /* @__PURE__ */
|
4245
|
+
return /* @__PURE__ */ jsx79(
|
4663
4246
|
MyDataTable,
|
4664
4247
|
{
|
4665
4248
|
isLoading: query.isLoading,
|
4666
4249
|
isError: query.isError,
|
4667
4250
|
data: query.data || [],
|
4668
4251
|
columns,
|
4669
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4670
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4671
|
-
/* @__PURE__ */
|
4672
|
-
/* @__PURE__ */
|
4252
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx79(Group5, { children: /* @__PURE__ */ jsx79(F_roleCatalog_Form, {}) }),
|
4253
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs50(MyCenterFull, { children: [
|
4254
|
+
/* @__PURE__ */ jsx79(F_roleCatalog_Form, { values: row.original }),
|
4255
|
+
/* @__PURE__ */ jsx79(F_roleCatalog_Delete, { values: row.original })
|
4673
4256
|
] })
|
4674
4257
|
}
|
4675
4258
|
);
|
4676
4259
|
}
|
4677
4260
|
function useQ_core47643_GetAdminRole2() {
|
4678
|
-
const query =
|
4261
|
+
const query = useQuery18({
|
4679
4262
|
queryKey: ["useQ_core47643_GetAdminRole"],
|
4680
4263
|
queryFn: async () => {
|
4681
4264
|
const res = await baseAxios_default.get("/Role/GetAdminRole");
|
@@ -4721,19 +4304,19 @@ var mockData3 = [
|
|
4721
4304
|
];
|
4722
4305
|
|
4723
4306
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog.tsx
|
4724
|
-
import { jsx as
|
4307
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
4725
4308
|
function F_roleCatalog() {
|
4726
|
-
return /* @__PURE__ */
|
4309
|
+
return /* @__PURE__ */ jsx80(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx80(F_roleCatalog_Read, {}) });
|
4727
4310
|
}
|
4728
4311
|
|
4729
4312
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4730
|
-
import { useQuery as
|
4731
|
-
import { useMemo as
|
4313
|
+
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
4314
|
+
import { useMemo as useMemo18 } from "react";
|
4732
4315
|
|
4733
4316
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
|
4734
4317
|
import { FileInput as FileInput7 } from "@mantine/core";
|
4735
4318
|
import { useForm as useForm25 } from "@mantine/form";
|
4736
|
-
import { jsx as
|
4319
|
+
import { jsx as jsx81, jsxs as jsxs51 } from "react/jsx-runtime";
|
4737
4320
|
function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
4738
4321
|
const form = useForm25({
|
4739
4322
|
mode: "uncontrolled",
|
@@ -4744,7 +4327,7 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4744
4327
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4745
4328
|
}
|
4746
4329
|
});
|
4747
|
-
return /* @__PURE__ */
|
4330
|
+
return /* @__PURE__ */ jsxs51(
|
4748
4331
|
MyButtonCreate,
|
4749
4332
|
{
|
4750
4333
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4757,28 +4340,28 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4757
4340
|
}));
|
4758
4341
|
},
|
4759
4342
|
children: [
|
4760
|
-
/* @__PURE__ */
|
4343
|
+
/* @__PURE__ */ jsx81(
|
4761
4344
|
MyTextInput,
|
4762
4345
|
__spreadValues({
|
4763
4346
|
withAsterisk: true,
|
4764
4347
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4765
4348
|
}, form.getInputProps("decisionCode"))
|
4766
4349
|
),
|
4767
|
-
/* @__PURE__ */
|
4350
|
+
/* @__PURE__ */ jsx81(
|
4768
4351
|
MyDateInput,
|
4769
4352
|
__spreadValues({
|
4770
4353
|
withAsterisk: true,
|
4771
4354
|
label: "Ng\xE0y ban h\xE0nh"
|
4772
4355
|
}, form.getInputProps("promulgateDate"))
|
4773
4356
|
),
|
4774
|
-
/* @__PURE__ */
|
4357
|
+
/* @__PURE__ */ jsx81(
|
4775
4358
|
MyTextInput,
|
4776
4359
|
__spreadValues({
|
4777
4360
|
withAsterisk: true,
|
4778
4361
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4779
4362
|
}, form.getInputProps("name"))
|
4780
4363
|
),
|
4781
|
-
/* @__PURE__ */
|
4364
|
+
/* @__PURE__ */ jsx81(
|
4782
4365
|
FileInput7,
|
4783
4366
|
__spreadValues({
|
4784
4367
|
withAsterisk: true,
|
@@ -4792,12 +4375,12 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4792
4375
|
}
|
4793
4376
|
|
4794
4377
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Delete.tsx
|
4795
|
-
import { jsx as
|
4378
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
4796
4379
|
function F_securityPolicyDocs_Delete({
|
4797
4380
|
id,
|
4798
4381
|
contextData
|
4799
4382
|
}) {
|
4800
|
-
return /* @__PURE__ */
|
4383
|
+
return /* @__PURE__ */ jsx82(
|
4801
4384
|
MyActionIconDelete,
|
4802
4385
|
{
|
4803
4386
|
contextData,
|
@@ -4809,7 +4392,7 @@ function F_securityPolicyDocs_Delete({
|
|
4809
4392
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Update.tsx
|
4810
4393
|
import { FileInput as FileInput8, TextInput as TextInput2 } from "@mantine/core";
|
4811
4394
|
import { useForm as useForm26 } from "@mantine/form";
|
4812
|
-
import { jsx as
|
4395
|
+
import { jsx as jsx83, jsxs as jsxs52 } from "react/jsx-runtime";
|
4813
4396
|
function F_securityPolicyDocs_Update({ values }) {
|
4814
4397
|
var _a;
|
4815
4398
|
const form = useForm26({
|
@@ -4828,7 +4411,7 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4828
4411
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4829
4412
|
}
|
4830
4413
|
});
|
4831
|
-
return /* @__PURE__ */
|
4414
|
+
return /* @__PURE__ */ jsxs52(
|
4832
4415
|
MyActionIconUpdate,
|
4833
4416
|
{
|
4834
4417
|
form,
|
@@ -4838,28 +4421,28 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4838
4421
|
}));
|
4839
4422
|
},
|
4840
4423
|
children: [
|
4841
|
-
/* @__PURE__ */
|
4424
|
+
/* @__PURE__ */ jsx83(
|
4842
4425
|
TextInput2,
|
4843
4426
|
__spreadValues({
|
4844
4427
|
withAsterisk: true,
|
4845
4428
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4846
4429
|
}, form.getInputProps("decisionCode"))
|
4847
4430
|
),
|
4848
|
-
/* @__PURE__ */
|
4431
|
+
/* @__PURE__ */ jsx83(
|
4849
4432
|
MyDateInput,
|
4850
4433
|
__spreadValues({
|
4851
4434
|
withAsterisk: true,
|
4852
4435
|
label: "Ng\xE0y ban h\xE0nh"
|
4853
4436
|
}, form.getInputProps("promulgateDate"))
|
4854
4437
|
),
|
4855
|
-
/* @__PURE__ */
|
4438
|
+
/* @__PURE__ */ jsx83(
|
4856
4439
|
TextInput2,
|
4857
4440
|
__spreadValues({
|
4858
4441
|
withAsterisk: true,
|
4859
4442
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4860
4443
|
}, form.getInputProps("name"))
|
4861
4444
|
),
|
4862
|
-
/* @__PURE__ */
|
4445
|
+
/* @__PURE__ */ jsx83(
|
4863
4446
|
FileInput8,
|
4864
4447
|
__spreadValues({
|
4865
4448
|
withAsterisk: true,
|
@@ -4872,9 +4455,9 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4872
4455
|
}
|
4873
4456
|
|
4874
4457
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4875
|
-
import { jsx as
|
4458
|
+
import { jsx as jsx84, jsxs as jsxs53 } from "react/jsx-runtime";
|
4876
4459
|
function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
4877
|
-
const query =
|
4460
|
+
const query = useQuery19({
|
4878
4461
|
queryKey: ["F_securityPolicyDocs_Read"],
|
4879
4462
|
queryFn: async () => {
|
4880
4463
|
var _a;
|
@@ -4884,7 +4467,7 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4884
4467
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4885
4468
|
}
|
4886
4469
|
});
|
4887
|
-
const columns =
|
4470
|
+
const columns = useMemo18(
|
4888
4471
|
() => [
|
4889
4472
|
{
|
4890
4473
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4901,25 +4484,25 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4901
4484
|
{
|
4902
4485
|
header: "File",
|
4903
4486
|
accessorFn: (row) => {
|
4904
|
-
return /* @__PURE__ */
|
4487
|
+
return /* @__PURE__ */ jsx84(MyCenterFull, { children: /* @__PURE__ */ jsx84(MyButtonViewPDF, { id: row.id }) });
|
4905
4488
|
}
|
4906
4489
|
}
|
4907
4490
|
],
|
4908
4491
|
[]
|
4909
4492
|
);
|
4910
|
-
return /* @__PURE__ */
|
4493
|
+
return /* @__PURE__ */ jsx84(
|
4911
4494
|
MyDataTable,
|
4912
4495
|
{
|
4913
4496
|
isLoading: query.isLoading,
|
4914
4497
|
isError: query.isError,
|
4915
4498
|
columns,
|
4916
4499
|
data: query.data || [],
|
4917
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4500
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx84(F_securityPolicyDocs_Create, { SecurityTypeId }),
|
4918
4501
|
renderRowActions: ({ row }) => {
|
4919
4502
|
var _a;
|
4920
|
-
return /* @__PURE__ */
|
4921
|
-
/* @__PURE__ */
|
4922
|
-
/* @__PURE__ */
|
4503
|
+
return /* @__PURE__ */ jsxs53(MyCenterFull, { children: [
|
4504
|
+
/* @__PURE__ */ jsx84(F_securityPolicyDocs_Update, { values: row.original }),
|
4505
|
+
/* @__PURE__ */ jsx84(
|
4923
4506
|
F_securityPolicyDocs_Delete,
|
4924
4507
|
{
|
4925
4508
|
id: row.original.id,
|
@@ -4933,19 +4516,19 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4933
4516
|
}
|
4934
4517
|
|
4935
4518
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs.tsx
|
4936
|
-
import { jsx as
|
4519
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
4937
4520
|
function F_securityPolicyDocs({ SecurityTypeId }) {
|
4938
|
-
return /* @__PURE__ */
|
4521
|
+
return /* @__PURE__ */ jsx85(F_securityPolicyDocs_Read, { SecurityTypeId });
|
4939
4522
|
}
|
4940
4523
|
|
4941
4524
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
4942
|
-
import { useQuery as
|
4943
|
-
import { useMemo as
|
4525
|
+
import { useQuery as useQuery20 } from "@tanstack/react-query";
|
4526
|
+
import { useMemo as useMemo19 } from "react";
|
4944
4527
|
|
4945
4528
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
|
4946
4529
|
import { FileInput as FileInput9, Textarea as Textarea3 } from "@mantine/core";
|
4947
4530
|
import { useForm as useForm27 } from "@mantine/form";
|
4948
|
-
import { jsx as
|
4531
|
+
import { jsx as jsx86, jsxs as jsxs54 } from "react/jsx-runtime";
|
4949
4532
|
function F_systemUpdateDocs_Create({
|
4950
4533
|
RefinementTypeId
|
4951
4534
|
}) {
|
@@ -4960,7 +4543,7 @@ function F_systemUpdateDocs_Create({
|
|
4960
4543
|
endDate: (value, values) => value && values.startDate && new Date(value) > new Date(values.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4961
4544
|
}
|
4962
4545
|
});
|
4963
|
-
return /* @__PURE__ */
|
4546
|
+
return /* @__PURE__ */ jsxs54(
|
4964
4547
|
MyButtonCreate,
|
4965
4548
|
{
|
4966
4549
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4973,43 +4556,43 @@ function F_systemUpdateDocs_Create({
|
|
4973
4556
|
}));
|
4974
4557
|
},
|
4975
4558
|
children: [
|
4976
|
-
/* @__PURE__ */
|
4559
|
+
/* @__PURE__ */ jsx86(
|
4977
4560
|
MyDateInput,
|
4978
4561
|
__spreadValues({
|
4979
4562
|
withAsterisk: true,
|
4980
4563
|
label: "Ng\xE0y h\u1ECDp"
|
4981
4564
|
}, form.getInputProps("meetingDate"))
|
4982
4565
|
),
|
4983
|
-
/* @__PURE__ */
|
4566
|
+
/* @__PURE__ */ jsx86(
|
4984
4567
|
MyTextInput,
|
4985
4568
|
__spreadValues({
|
4986
4569
|
withAsterisk: true,
|
4987
4570
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4988
4571
|
}, form.getInputProps("departmentName"))
|
4989
4572
|
),
|
4990
|
-
/* @__PURE__ */
|
4573
|
+
/* @__PURE__ */ jsx86(
|
4991
4574
|
MyTextInput,
|
4992
4575
|
__spreadValues({
|
4993
4576
|
withAsterisk: true,
|
4994
4577
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4995
4578
|
}, form.getInputProps("description"))
|
4996
4579
|
),
|
4997
|
-
/* @__PURE__ */
|
4998
|
-
/* @__PURE__ */
|
4580
|
+
/* @__PURE__ */ jsx86(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4581
|
+
/* @__PURE__ */ jsx86(
|
4999
4582
|
MyDateInput,
|
5000
4583
|
__spreadValues({
|
5001
4584
|
withAsterisk: true,
|
5002
4585
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
5003
4586
|
}, form.getInputProps("startDate"))
|
5004
4587
|
),
|
5005
|
-
/* @__PURE__ */
|
4588
|
+
/* @__PURE__ */ jsx86(
|
5006
4589
|
MyDateInput,
|
5007
4590
|
__spreadValues({
|
5008
4591
|
withAsterisk: true,
|
5009
4592
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
5010
4593
|
}, form.getInputProps("endDate"))
|
5011
4594
|
),
|
5012
|
-
/* @__PURE__ */
|
4595
|
+
/* @__PURE__ */ jsx86(
|
5013
4596
|
FileInput9,
|
5014
4597
|
__spreadValues({
|
5015
4598
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -5017,19 +4600,19 @@ function F_systemUpdateDocs_Create({
|
|
5017
4600
|
label: "T\xE0i li\u1EC7u"
|
5018
4601
|
}, form.getInputProps("file"))
|
5019
4602
|
),
|
5020
|
-
/* @__PURE__ */
|
4603
|
+
/* @__PURE__ */ jsx86(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
5021
4604
|
]
|
5022
4605
|
}
|
5023
4606
|
);
|
5024
4607
|
}
|
5025
4608
|
|
5026
4609
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Delete.tsx
|
5027
|
-
import { jsx as
|
4610
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
5028
4611
|
function F_systemUpdateDocs_Delete({
|
5029
4612
|
id,
|
5030
4613
|
contextData
|
5031
4614
|
}) {
|
5032
|
-
return /* @__PURE__ */
|
4615
|
+
return /* @__PURE__ */ jsx87(
|
5033
4616
|
MyActionIconDelete,
|
5034
4617
|
{
|
5035
4618
|
contextData,
|
@@ -5041,7 +4624,7 @@ function F_systemUpdateDocs_Delete({
|
|
5041
4624
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Update.tsx
|
5042
4625
|
import { FileInput as FileInput10, Textarea as Textarea4 } from "@mantine/core";
|
5043
4626
|
import { useForm as useForm28 } from "@mantine/form";
|
5044
|
-
import { jsx as
|
4627
|
+
import { jsx as jsx88, jsxs as jsxs55 } from "react/jsx-runtime";
|
5045
4628
|
function F_systemUpdateDocs_Update({ values }) {
|
5046
4629
|
var _a;
|
5047
4630
|
const form = useForm28({
|
@@ -5064,7 +4647,7 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
5064
4647
|
endDate: (value, values2) => value && values2.startDate && new Date(value) > new Date(values2.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
5065
4648
|
}
|
5066
4649
|
});
|
5067
|
-
return /* @__PURE__ */
|
4650
|
+
return /* @__PURE__ */ jsxs55(
|
5068
4651
|
MyActionIconUpdate,
|
5069
4652
|
{
|
5070
4653
|
form,
|
@@ -5074,43 +4657,43 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
5074
4657
|
}));
|
5075
4658
|
},
|
5076
4659
|
children: [
|
5077
|
-
/* @__PURE__ */
|
4660
|
+
/* @__PURE__ */ jsx88(
|
5078
4661
|
MyDateInput,
|
5079
4662
|
__spreadValues({
|
5080
4663
|
withAsterisk: true,
|
5081
4664
|
label: "Ng\xE0y h\u1ECDp"
|
5082
4665
|
}, form.getInputProps("meetingDate"))
|
5083
4666
|
),
|
5084
|
-
/* @__PURE__ */
|
4667
|
+
/* @__PURE__ */ jsx88(
|
5085
4668
|
MyTextInput,
|
5086
4669
|
__spreadValues({
|
5087
4670
|
withAsterisk: true,
|
5088
4671
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
5089
4672
|
}, form.getInputProps("departmentName"))
|
5090
4673
|
),
|
5091
|
-
/* @__PURE__ */
|
4674
|
+
/* @__PURE__ */ jsx88(
|
5092
4675
|
MyTextInput,
|
5093
4676
|
__spreadValues({
|
5094
4677
|
withAsterisk: true,
|
5095
4678
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
5096
4679
|
}, form.getInputProps("description"))
|
5097
4680
|
),
|
5098
|
-
/* @__PURE__ */
|
5099
|
-
/* @__PURE__ */
|
4681
|
+
/* @__PURE__ */ jsx88(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4682
|
+
/* @__PURE__ */ jsx88(
|
5100
4683
|
MyDateInput,
|
5101
4684
|
__spreadValues({
|
5102
4685
|
withAsterisk: true,
|
5103
4686
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
5104
4687
|
}, form.getInputProps("startDate"))
|
5105
4688
|
),
|
5106
|
-
/* @__PURE__ */
|
4689
|
+
/* @__PURE__ */ jsx88(
|
5107
4690
|
MyDateInput,
|
5108
4691
|
__spreadValues({
|
5109
4692
|
withAsterisk: true,
|
5110
4693
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
5111
4694
|
}, form.getInputProps("endDate"))
|
5112
4695
|
),
|
5113
|
-
/* @__PURE__ */
|
4696
|
+
/* @__PURE__ */ jsx88(
|
5114
4697
|
FileInput10,
|
5115
4698
|
__spreadValues({
|
5116
4699
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -5118,16 +4701,16 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
5118
4701
|
label: "T\xE0i li\u1EC7u"
|
5119
4702
|
}, form.getInputProps("file"))
|
5120
4703
|
),
|
5121
|
-
/* @__PURE__ */
|
4704
|
+
/* @__PURE__ */ jsx88(Textarea4, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
5122
4705
|
]
|
5123
4706
|
}
|
5124
4707
|
);
|
5125
4708
|
}
|
5126
4709
|
|
5127
4710
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
5128
|
-
import { jsx as
|
4711
|
+
import { jsx as jsx89, jsxs as jsxs56 } from "react/jsx-runtime";
|
5129
4712
|
function F_systemUpdateDocs({ RefinementTypeId }) {
|
5130
|
-
const query =
|
4713
|
+
const query = useQuery20({
|
5131
4714
|
queryKey: ["F_systemUpdateDocs_Read"],
|
5132
4715
|
queryFn: async () => {
|
5133
4716
|
var _a;
|
@@ -5137,7 +4720,7 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
5137
4720
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
5138
4721
|
}
|
5139
4722
|
});
|
5140
|
-
const columns =
|
4723
|
+
const columns = useMemo19(
|
5141
4724
|
() => [
|
5142
4725
|
{
|
5143
4726
|
header: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u",
|
@@ -5158,24 +4741,24 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
5158
4741
|
{
|
5159
4742
|
header: "File",
|
5160
4743
|
accessorFn: (row) => {
|
5161
|
-
return /* @__PURE__ */
|
4744
|
+
return /* @__PURE__ */ jsx89(MyCenterFull, { children: /* @__PURE__ */ jsx89(MyButtonViewPDF, { id: row.id }) });
|
5162
4745
|
}
|
5163
4746
|
}
|
5164
4747
|
],
|
5165
4748
|
[]
|
5166
4749
|
);
|
5167
|
-
return /* @__PURE__ */
|
4750
|
+
return /* @__PURE__ */ jsx89(
|
5168
4751
|
MyDataTable,
|
5169
4752
|
{
|
5170
4753
|
isLoading: query.isLoading,
|
5171
4754
|
isError: query.isError,
|
5172
4755
|
columns,
|
5173
4756
|
data: query.data || [],
|
5174
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4757
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx89(F_systemUpdateDocs_Create, { RefinementTypeId }),
|
5175
4758
|
renderRowActions: ({ row }) => {
|
5176
|
-
return /* @__PURE__ */
|
5177
|
-
/* @__PURE__ */
|
5178
|
-
/* @__PURE__ */
|
4759
|
+
return /* @__PURE__ */ jsxs56(MyCenterFull, { children: [
|
4760
|
+
/* @__PURE__ */ jsx89(F_systemUpdateDocs_Update, { values: row.original }),
|
4761
|
+
/* @__PURE__ */ jsx89(
|
5179
4762
|
F_systemUpdateDocs_Delete,
|
5180
4763
|
{
|
5181
4764
|
id: row.original.id,
|
@@ -5189,13 +4772,13 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
5189
4772
|
}
|
5190
4773
|
|
5191
4774
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
5192
|
-
import { useQuery as
|
5193
|
-
import { useMemo as
|
4775
|
+
import { useQuery as useQuery21 } from "@tanstack/react-query";
|
4776
|
+
import { useMemo as useMemo20 } from "react";
|
5194
4777
|
|
5195
4778
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
|
5196
4779
|
import { FileInput as FileInput11 } from "@mantine/core";
|
5197
4780
|
import { useForm as useForm29 } from "@mantine/form";
|
5198
|
-
import { jsx as
|
4781
|
+
import { jsx as jsx90, jsxs as jsxs57 } from "react/jsx-runtime";
|
5199
4782
|
function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
5200
4783
|
const form = useForm29({
|
5201
4784
|
mode: "uncontrolled",
|
@@ -5205,7 +4788,7 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
5205
4788
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5206
4789
|
}
|
5207
4790
|
});
|
5208
|
-
return /* @__PURE__ */
|
4791
|
+
return /* @__PURE__ */ jsxs57(
|
5209
4792
|
MyButtonCreate,
|
5210
4793
|
{
|
5211
4794
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -5218,21 +4801,21 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
5218
4801
|
}));
|
5219
4802
|
},
|
5220
4803
|
children: [
|
5221
|
-
/* @__PURE__ */
|
4804
|
+
/* @__PURE__ */ jsx90(
|
5222
4805
|
MyTextInput,
|
5223
4806
|
__spreadValues({
|
5224
4807
|
withAsterisk: true,
|
5225
4808
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
5226
4809
|
}, form.getInputProps("code"))
|
5227
4810
|
),
|
5228
|
-
/* @__PURE__ */
|
4811
|
+
/* @__PURE__ */ jsx90(
|
5229
4812
|
MyTextInput,
|
5230
4813
|
__spreadValues({
|
5231
4814
|
withAsterisk: true,
|
5232
4815
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5233
4816
|
}, form.getInputProps("name"))
|
5234
4817
|
),
|
5235
|
-
/* @__PURE__ */
|
4818
|
+
/* @__PURE__ */ jsx90(
|
5236
4819
|
FileInput11,
|
5237
4820
|
__spreadValues({
|
5238
4821
|
withAsterisk: true,
|
@@ -5246,12 +4829,12 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
5246
4829
|
}
|
5247
4830
|
|
5248
4831
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Delete.tsx
|
5249
|
-
import { jsx as
|
4832
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
5250
4833
|
function F_userGuideDocs_Delete({
|
5251
4834
|
id,
|
5252
4835
|
contextData
|
5253
4836
|
}) {
|
5254
|
-
return /* @__PURE__ */
|
4837
|
+
return /* @__PURE__ */ jsx91(
|
5255
4838
|
MyActionIconDelete,
|
5256
4839
|
{
|
5257
4840
|
contextData,
|
@@ -5263,7 +4846,7 @@ function F_userGuideDocs_Delete({
|
|
5263
4846
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Update.tsx
|
5264
4847
|
import { FileInput as FileInput12 } from "@mantine/core";
|
5265
4848
|
import { useForm as useForm30 } from "@mantine/form";
|
5266
|
-
import { jsx as
|
4849
|
+
import { jsx as jsx92, jsxs as jsxs58 } from "react/jsx-runtime";
|
5267
4850
|
function F_userGuideDocs_Update({ values }) {
|
5268
4851
|
var _a;
|
5269
4852
|
const form = useForm30({
|
@@ -5280,7 +4863,7 @@ function F_userGuideDocs_Update({ values }) {
|
|
5280
4863
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5281
4864
|
}
|
5282
4865
|
});
|
5283
|
-
return /* @__PURE__ */
|
4866
|
+
return /* @__PURE__ */ jsxs58(
|
5284
4867
|
MyActionIconUpdate,
|
5285
4868
|
{
|
5286
4869
|
form,
|
@@ -5290,21 +4873,21 @@ function F_userGuideDocs_Update({ values }) {
|
|
5290
4873
|
}));
|
5291
4874
|
},
|
5292
4875
|
children: [
|
5293
|
-
/* @__PURE__ */
|
4876
|
+
/* @__PURE__ */ jsx92(
|
5294
4877
|
MyTextInput,
|
5295
4878
|
__spreadValues({
|
5296
4879
|
withAsterisk: true,
|
5297
4880
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
5298
4881
|
}, form.getInputProps("code"))
|
5299
4882
|
),
|
5300
|
-
/* @__PURE__ */
|
4883
|
+
/* @__PURE__ */ jsx92(
|
5301
4884
|
MyTextInput,
|
5302
4885
|
__spreadValues({
|
5303
4886
|
withAsterisk: true,
|
5304
4887
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5305
4888
|
}, form.getInputProps("name"))
|
5306
4889
|
),
|
5307
|
-
/* @__PURE__ */
|
4890
|
+
/* @__PURE__ */ jsx92(
|
5308
4891
|
FileInput12,
|
5309
4892
|
__spreadValues({
|
5310
4893
|
withAsterisk: true,
|
@@ -5318,9 +4901,9 @@ function F_userGuideDocs_Update({ values }) {
|
|
5318
4901
|
}
|
5319
4902
|
|
5320
4903
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
5321
|
-
import { jsx as
|
4904
|
+
import { jsx as jsx93, jsxs as jsxs59 } from "react/jsx-runtime";
|
5322
4905
|
function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
5323
|
-
const query =
|
4906
|
+
const query = useQuery21({
|
5324
4907
|
queryKey: ["F_userGuideDocs_Read"],
|
5325
4908
|
queryFn: async () => {
|
5326
4909
|
var _a;
|
@@ -5330,7 +4913,7 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5330
4913
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
5331
4914
|
}
|
5332
4915
|
});
|
5333
|
-
const columns =
|
4916
|
+
const columns = useMemo20(
|
5334
4917
|
() => [
|
5335
4918
|
{
|
5336
4919
|
header: "M\xE3 t\xE0i li\u1EC7u",
|
@@ -5343,24 +4926,24 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5343
4926
|
{
|
5344
4927
|
header: "File",
|
5345
4928
|
accessorFn: (row) => {
|
5346
|
-
return /* @__PURE__ */
|
4929
|
+
return /* @__PURE__ */ jsx93(MyCenterFull, { children: /* @__PURE__ */ jsx93(MyButtonViewPDF, { id: row.id }) });
|
5347
4930
|
}
|
5348
4931
|
}
|
5349
4932
|
],
|
5350
4933
|
[]
|
5351
4934
|
);
|
5352
|
-
return /* @__PURE__ */
|
4935
|
+
return /* @__PURE__ */ jsx93(
|
5353
4936
|
MyDataTable,
|
5354
4937
|
{
|
5355
4938
|
isLoading: query.isLoading,
|
5356
4939
|
isError: query.isError,
|
5357
4940
|
columns,
|
5358
4941
|
data: query.data || [],
|
5359
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4942
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx93(F_userGuideDocs_Create, { GuidelineTypeId }),
|
5360
4943
|
renderRowActions: ({ row }) => {
|
5361
|
-
return /* @__PURE__ */
|
5362
|
-
/* @__PURE__ */
|
5363
|
-
/* @__PURE__ */
|
4944
|
+
return /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
|
4945
|
+
/* @__PURE__ */ jsx93(F_userGuideDocs_Update, { values: row.original }),
|
4946
|
+
/* @__PURE__ */ jsx93(
|
5364
4947
|
F_userGuideDocs_Delete,
|
5365
4948
|
{
|
5366
4949
|
id: row.original.id,
|
@@ -5374,17 +4957,17 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5374
4957
|
}
|
5375
4958
|
|
5376
4959
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs.tsx
|
5377
|
-
import { jsx as
|
4960
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
5378
4961
|
function F_userGuideDocs({ GuidelineTypeId }) {
|
5379
|
-
return /* @__PURE__ */
|
4962
|
+
return /* @__PURE__ */ jsx94(F_userGuideDocs_Read, { GuidelineTypeId });
|
5380
4963
|
}
|
5381
4964
|
|
5382
4965
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
5383
|
-
import { Paper as
|
4966
|
+
import { Paper as Paper9, Space as Space6 } from "@mantine/core";
|
5384
4967
|
|
5385
4968
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Create.tsx
|
5386
4969
|
import { useForm as useForm31 } from "@mantine/form";
|
5387
|
-
import { jsx as
|
4970
|
+
import { jsx as jsx95, jsxs as jsxs60 } from "react/jsx-runtime";
|
5388
4971
|
function F_workflowProcessDocs_Create({
|
5389
4972
|
WorkflowTypeId
|
5390
4973
|
}) {
|
@@ -5398,7 +4981,7 @@ function F_workflowProcessDocs_Create({
|
|
5398
4981
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5399
4982
|
}
|
5400
4983
|
});
|
5401
|
-
return /* @__PURE__ */
|
4984
|
+
return /* @__PURE__ */ jsxs60(
|
5402
4985
|
MyButtonCreate,
|
5403
4986
|
{
|
5404
4987
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -5410,28 +4993,28 @@ function F_workflowProcessDocs_Create({
|
|
5410
4993
|
}));
|
5411
4994
|
},
|
5412
4995
|
children: [
|
5413
|
-
/* @__PURE__ */
|
4996
|
+
/* @__PURE__ */ jsx95(
|
5414
4997
|
MyTextInput,
|
5415
4998
|
__spreadValues({
|
5416
4999
|
withAsterisk: true,
|
5417
5000
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
5418
5001
|
}, form.getInputProps("decisionCode"))
|
5419
5002
|
),
|
5420
|
-
/* @__PURE__ */
|
5003
|
+
/* @__PURE__ */ jsx95(
|
5421
5004
|
MyDateInput,
|
5422
5005
|
__spreadValues({
|
5423
5006
|
withAsterisk: true,
|
5424
5007
|
label: "Ng\xE0y ban h\xE0nh"
|
5425
5008
|
}, form.getInputProps("promulgateDate"))
|
5426
5009
|
),
|
5427
|
-
/* @__PURE__ */
|
5010
|
+
/* @__PURE__ */ jsx95(
|
5428
5011
|
MyTextInput,
|
5429
5012
|
__spreadValues({
|
5430
5013
|
withAsterisk: true,
|
5431
5014
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5432
5015
|
}, form.getInputProps("name"))
|
5433
5016
|
),
|
5434
|
-
/* @__PURE__ */
|
5017
|
+
/* @__PURE__ */ jsx95(
|
5435
5018
|
F_core18256_Select,
|
5436
5019
|
__spreadValues({
|
5437
5020
|
withAsterisk: true,
|
@@ -5439,14 +5022,14 @@ function F_workflowProcessDocs_Create({
|
|
5439
5022
|
documentTypeId: WorkflowTypeId
|
5440
5023
|
}, form.getInputProps("documentAttributeId"))
|
5441
5024
|
),
|
5442
|
-
/* @__PURE__ */
|
5025
|
+
/* @__PURE__ */ jsx95(
|
5443
5026
|
MyFileInput,
|
5444
5027
|
__spreadValues({
|
5445
5028
|
withAsterisk: true,
|
5446
5029
|
label: "V\u0103n b\u1EA3n"
|
5447
5030
|
}, form.getInputProps("file"))
|
5448
5031
|
),
|
5449
|
-
/* @__PURE__ */
|
5032
|
+
/* @__PURE__ */ jsx95(
|
5450
5033
|
MyNumberInput,
|
5451
5034
|
__spreadValues({
|
5452
5035
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5459,17 +5042,17 @@ function F_workflowProcessDocs_Create({
|
|
5459
5042
|
|
5460
5043
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5461
5044
|
import { Accordion as Accordion6, Alert as Alert6, Blockquote as Blockquote6, Skeleton as Skeleton6 } from "@mantine/core";
|
5462
|
-
import { useQuery as
|
5045
|
+
import { useQuery as useQuery22 } from "@tanstack/react-query";
|
5463
5046
|
import { IconBug as IconBug6 } from "@tabler/icons-react";
|
5464
|
-
import { useMemo as
|
5047
|
+
import { useMemo as useMemo21 } from "react";
|
5465
5048
|
|
5466
5049
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
|
5467
|
-
import { jsx as
|
5050
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
5468
5051
|
function F_workflowProcessDocs_Delete({
|
5469
5052
|
id,
|
5470
5053
|
contextData
|
5471
5054
|
}) {
|
5472
|
-
return /* @__PURE__ */
|
5055
|
+
return /* @__PURE__ */ jsx96(
|
5473
5056
|
MyActionIconDelete,
|
5474
5057
|
{
|
5475
5058
|
contextData,
|
@@ -5480,7 +5063,7 @@ function F_workflowProcessDocs_Delete({
|
|
5480
5063
|
|
5481
5064
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Update.tsx
|
5482
5065
|
import { useForm as useForm32 } from "@mantine/form";
|
5483
|
-
import { jsx as
|
5066
|
+
import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
|
5484
5067
|
function F_workflowProcessDocs_Update({
|
5485
5068
|
values,
|
5486
5069
|
WorkflowTypeId
|
@@ -5502,7 +5085,7 @@ function F_workflowProcessDocs_Update({
|
|
5502
5085
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5503
5086
|
}
|
5504
5087
|
});
|
5505
|
-
return /* @__PURE__ */
|
5088
|
+
return /* @__PURE__ */ jsxs61(
|
5506
5089
|
MyActionIconUpdate,
|
5507
5090
|
{
|
5508
5091
|
form,
|
@@ -5512,28 +5095,28 @@ function F_workflowProcessDocs_Update({
|
|
5512
5095
|
}));
|
5513
5096
|
},
|
5514
5097
|
children: [
|
5515
|
-
/* @__PURE__ */
|
5098
|
+
/* @__PURE__ */ jsx97(
|
5516
5099
|
MyTextInput,
|
5517
5100
|
__spreadValues({
|
5518
5101
|
withAsterisk: true,
|
5519
5102
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
5520
5103
|
}, form.getInputProps("decisionCode"))
|
5521
5104
|
),
|
5522
|
-
/* @__PURE__ */
|
5105
|
+
/* @__PURE__ */ jsx97(
|
5523
5106
|
MyDateInput,
|
5524
5107
|
__spreadValues({
|
5525
5108
|
withAsterisk: true,
|
5526
5109
|
label: "Ng\xE0y ban h\xE0nh"
|
5527
5110
|
}, form.getInputProps("promulgateDate"))
|
5528
5111
|
),
|
5529
|
-
/* @__PURE__ */
|
5112
|
+
/* @__PURE__ */ jsx97(
|
5530
5113
|
MyTextInput,
|
5531
5114
|
__spreadValues({
|
5532
5115
|
withAsterisk: true,
|
5533
5116
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5534
5117
|
}, form.getInputProps("name"))
|
5535
5118
|
),
|
5536
|
-
/* @__PURE__ */
|
5119
|
+
/* @__PURE__ */ jsx97(
|
5537
5120
|
F_core18256_Select,
|
5538
5121
|
__spreadValues({
|
5539
5122
|
withAsterisk: true,
|
@@ -5541,14 +5124,14 @@ function F_workflowProcessDocs_Update({
|
|
5541
5124
|
documentTypeId: WorkflowTypeId
|
5542
5125
|
}, form.getInputProps("documentAttributeId"))
|
5543
5126
|
),
|
5544
|
-
/* @__PURE__ */
|
5127
|
+
/* @__PURE__ */ jsx97(
|
5545
5128
|
MyFileInput,
|
5546
5129
|
__spreadValues({
|
5547
5130
|
withAsterisk: true,
|
5548
5131
|
label: "V\u0103n b\u1EA3n"
|
5549
5132
|
}, form.getInputProps("file"))
|
5550
5133
|
),
|
5551
|
-
/* @__PURE__ */
|
5134
|
+
/* @__PURE__ */ jsx97(
|
5552
5135
|
MyNumberInput,
|
5553
5136
|
__spreadValues({
|
5554
5137
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5560,12 +5143,12 @@ function F_workflowProcessDocs_Update({
|
|
5560
5143
|
}
|
5561
5144
|
|
5562
5145
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5563
|
-
import { jsx as
|
5146
|
+
import { jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
|
5564
5147
|
function F_workflowProcessDocs_Read({
|
5565
5148
|
WorkflowTypeId
|
5566
5149
|
}) {
|
5567
5150
|
var _a, _b, _c;
|
5568
|
-
const documentAttributeQuery =
|
5151
|
+
const documentAttributeQuery = useQuery22({
|
5569
5152
|
queryKey: ["F_workflowProcessDocs_Read", WorkflowTypeId],
|
5570
5153
|
queryFn: async () => {
|
5571
5154
|
var _a2;
|
@@ -5576,10 +5159,10 @@ function F_workflowProcessDocs_Read({
|
|
5576
5159
|
}
|
5577
5160
|
});
|
5578
5161
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
5579
|
-
return /* @__PURE__ */
|
5162
|
+
return /* @__PURE__ */ jsx98(Blockquote6, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
5580
5163
|
if (documentAttributeQuery.isError)
|
5581
|
-
return /* @__PURE__ */
|
5582
|
-
return /* @__PURE__ */
|
5164
|
+
return /* @__PURE__ */ jsx98(Alert6, { icon: /* @__PURE__ */ jsx98(IconBug6, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
5165
|
+
return /* @__PURE__ */ jsx98(Skeleton6, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx98(MyFlexColumn, { children: /* @__PURE__ */ jsx98(
|
5583
5166
|
Accordion6,
|
5584
5167
|
{
|
5585
5168
|
variant: "contained",
|
@@ -5590,7 +5173,7 @@ function F_workflowProcessDocs_Read({
|
|
5590
5173
|
}
|
5591
5174
|
),
|
5592
5175
|
multiple: true,
|
5593
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
5176
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx98(
|
5594
5177
|
SubRead6,
|
5595
5178
|
{
|
5596
5179
|
name: item.name,
|
@@ -5607,7 +5190,7 @@ function SubRead6({
|
|
5607
5190
|
documentType,
|
5608
5191
|
WorkflowTypeId
|
5609
5192
|
}) {
|
5610
|
-
const documentQuery =
|
5193
|
+
const documentQuery = useQuery22({
|
5611
5194
|
queryKey: ["SubRead" + documentType],
|
5612
5195
|
queryFn: async () => {
|
5613
5196
|
const result = await baseAxios_default.get(
|
@@ -5616,7 +5199,7 @@ function SubRead6({
|
|
5616
5199
|
return result.data.data;
|
5617
5200
|
}
|
5618
5201
|
});
|
5619
|
-
const columns =
|
5202
|
+
const columns = useMemo21(
|
5620
5203
|
() => [
|
5621
5204
|
{
|
5622
5205
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -5633,30 +5216,30 @@ function SubRead6({
|
|
5633
5216
|
{
|
5634
5217
|
header: "File",
|
5635
5218
|
accessorFn: (row) => {
|
5636
|
-
return /* @__PURE__ */
|
5219
|
+
return /* @__PURE__ */ jsx98(MyCenterFull, { children: /* @__PURE__ */ jsx98(MyButtonViewPDF, { id: row.id }) });
|
5637
5220
|
}
|
5638
5221
|
}
|
5639
5222
|
],
|
5640
5223
|
[]
|
5641
5224
|
);
|
5642
|
-
return /* @__PURE__ */
|
5643
|
-
/* @__PURE__ */
|
5644
|
-
/* @__PURE__ */
|
5225
|
+
return /* @__PURE__ */ jsxs62(Accordion6.Item, { value: documentType.toString(), children: [
|
5226
|
+
/* @__PURE__ */ jsx98(Accordion6.Control, { children: name }),
|
5227
|
+
/* @__PURE__ */ jsx98(Accordion6.Panel, { children: /* @__PURE__ */ jsx98(
|
5645
5228
|
MyDataTable,
|
5646
5229
|
{
|
5647
5230
|
isLoading: documentQuery.isLoading,
|
5648
5231
|
isError: documentQuery.isError,
|
5649
5232
|
columns,
|
5650
5233
|
data: documentQuery.data || [],
|
5651
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
5652
|
-
/* @__PURE__ */
|
5234
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs62(MyCenterFull, { children: [
|
5235
|
+
/* @__PURE__ */ jsx98(
|
5653
5236
|
F_workflowProcessDocs_Update,
|
5654
5237
|
{
|
5655
5238
|
WorkflowTypeId,
|
5656
5239
|
values: row.original
|
5657
5240
|
}
|
5658
5241
|
),
|
5659
|
-
/* @__PURE__ */
|
5242
|
+
/* @__PURE__ */ jsx98(
|
5660
5243
|
F_workflowProcessDocs_Delete,
|
5661
5244
|
{
|
5662
5245
|
id: row.original.id,
|
@@ -5670,32 +5253,32 @@ function SubRead6({
|
|
5670
5253
|
}
|
5671
5254
|
|
5672
5255
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
5673
|
-
import { jsx as
|
5256
|
+
import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
|
5674
5257
|
function F_workflowProcessDocs({
|
5675
5258
|
WorkflowTypeId
|
5676
5259
|
}) {
|
5677
|
-
return /* @__PURE__ */
|
5678
|
-
/* @__PURE__ */
|
5679
|
-
/* @__PURE__ */
|
5680
|
-
/* @__PURE__ */
|
5260
|
+
return /* @__PURE__ */ jsxs63(Paper9, { p: "md", children: [
|
5261
|
+
/* @__PURE__ */ jsx99(MyFlexEnd, { children: /* @__PURE__ */ jsx99(F_workflowProcessDocs_Create, { WorkflowTypeId }) }),
|
5262
|
+
/* @__PURE__ */ jsx99(Space6, {}),
|
5263
|
+
/* @__PURE__ */ jsx99(F_workflowProcessDocs_Read, { WorkflowTypeId })
|
5681
5264
|
] });
|
5682
5265
|
}
|
5683
5266
|
|
5684
5267
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
5685
5268
|
import { useRouter } from "next/navigation";
|
5686
|
-
import { useEffect as
|
5687
|
-
import { jsx as
|
5269
|
+
import { useEffect as useEffect11 } from "react";
|
5270
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
5688
5271
|
function F_authenticate_SplashPage() {
|
5689
5272
|
const router = useRouter();
|
5690
5273
|
const S_Authenticate = useS_authenticate();
|
5691
|
-
|
5274
|
+
useEffect11(() => {
|
5692
5275
|
if (S_Authenticate.state.token == "") {
|
5693
5276
|
router.push("/authenticate/login");
|
5694
5277
|
return;
|
5695
5278
|
}
|
5696
5279
|
router.push("/admin/core71678");
|
5697
5280
|
}, [S_Authenticate.state.token]);
|
5698
|
-
return /* @__PURE__ */
|
5281
|
+
return /* @__PURE__ */ jsx100(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
5699
5282
|
}
|
5700
5283
|
|
5701
5284
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
@@ -5704,27 +5287,27 @@ import {
|
|
5704
5287
|
BackgroundImage,
|
5705
5288
|
Button as Button3,
|
5706
5289
|
Center as Center2,
|
5707
|
-
Checkbox as
|
5708
|
-
Flex as
|
5290
|
+
Checkbox as Checkbox3,
|
5291
|
+
Flex as Flex3,
|
5709
5292
|
Group as Group6,
|
5710
|
-
Paper as
|
5293
|
+
Paper as Paper10,
|
5711
5294
|
PasswordInput as PasswordInput2,
|
5712
|
-
Text as
|
5295
|
+
Text as Text3,
|
5713
5296
|
TextInput as TextInput3,
|
5714
5297
|
Title
|
5715
5298
|
} from "@mantine/core";
|
5716
5299
|
import { useForm as useForm33 } from "@mantine/form";
|
5717
|
-
import { useMutation as
|
5300
|
+
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
5718
5301
|
import axios from "axios";
|
5719
5302
|
import Link from "next/link";
|
5720
5303
|
import { useRouter as useRouter2 } from "next/navigation";
|
5721
|
-
import { useEffect as
|
5304
|
+
import { useEffect as useEffect12, useState as useState10 } from "react";
|
5722
5305
|
|
5723
5306
|
// src/modules-features/authenticate/F_authenticate_Login/css.module.css
|
5724
5307
|
var css_default = {};
|
5725
5308
|
|
5726
5309
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
5727
|
-
import { jsx as
|
5310
|
+
import { jsx as jsx101, jsxs as jsxs64 } from "react/jsx-runtime";
|
5728
5311
|
function F_authenticate_Login({
|
5729
5312
|
header,
|
5730
5313
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -5737,7 +5320,7 @@ function F_authenticate_Login({
|
|
5737
5320
|
}) {
|
5738
5321
|
const router = useRouter2();
|
5739
5322
|
const authenticate_store = useS_authenticate();
|
5740
|
-
const loadingState =
|
5323
|
+
const loadingState = useState10(false);
|
5741
5324
|
const mutation = useM_Account_Sigin();
|
5742
5325
|
const form = useForm33({
|
5743
5326
|
initialValues: {
|
@@ -5749,7 +5332,7 @@ function F_authenticate_Login({
|
|
5749
5332
|
password: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5750
5333
|
}
|
5751
5334
|
});
|
5752
|
-
|
5335
|
+
useEffect12(() => {
|
5753
5336
|
var _a;
|
5754
5337
|
form.setValues({
|
5755
5338
|
username: ((_a = authenticate_store.state) == null ? void 0 : _a.username) || "",
|
@@ -5791,21 +5374,21 @@ function F_authenticate_Login({
|
|
5791
5374
|
}
|
5792
5375
|
});
|
5793
5376
|
}
|
5794
|
-
return /* @__PURE__ */
|
5377
|
+
return /* @__PURE__ */ jsx101(
|
5795
5378
|
BackgroundImage,
|
5796
5379
|
{
|
5797
5380
|
src: backgroundImage,
|
5798
5381
|
h: "100vh",
|
5799
|
-
children: /* @__PURE__ */
|
5800
|
-
header ? header : /* @__PURE__ */
|
5801
|
-
/* @__PURE__ */
|
5802
|
-
/* @__PURE__ */
|
5382
|
+
children: /* @__PURE__ */ jsx101(Center2, { h: "100vh", children: /* @__PURE__ */ jsxs64(Paper10, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
5383
|
+
header ? header : /* @__PURE__ */ jsxs64(Flex3, { direction: "column", mb: "md", children: [
|
5384
|
+
/* @__PURE__ */ jsx101(Title, { ta: "center", className: css_default.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
5385
|
+
/* @__PURE__ */ jsxs64(Text3, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
5803
5386
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
5804
|
-
/* @__PURE__ */
|
5387
|
+
/* @__PURE__ */ jsx101(Anchor, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
5805
5388
|
] })
|
5806
5389
|
] }),
|
5807
|
-
/* @__PURE__ */
|
5808
|
-
/* @__PURE__ */
|
5390
|
+
/* @__PURE__ */ jsx101("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs64(MyFlexColumn, { children: [
|
5391
|
+
/* @__PURE__ */ jsx101(
|
5809
5392
|
TextInput3,
|
5810
5393
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
5811
5394
|
label: "T\xE0i kho\u1EA3n",
|
@@ -5813,7 +5396,7 @@ function F_authenticate_Login({
|
|
5813
5396
|
withAsterisk: true
|
5814
5397
|
})
|
5815
5398
|
),
|
5816
|
-
/* @__PURE__ */
|
5399
|
+
/* @__PURE__ */ jsx101(
|
5817
5400
|
PasswordInput2,
|
5818
5401
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
5819
5402
|
label: "M\u1EADt kh\u1EA9u",
|
@@ -5821,18 +5404,18 @@ function F_authenticate_Login({
|
|
5821
5404
|
withAsterisk: true
|
5822
5405
|
})
|
5823
5406
|
),
|
5824
|
-
/* @__PURE__ */
|
5825
|
-
showSaveLogin && /* @__PURE__ */
|
5826
|
-
|
5407
|
+
/* @__PURE__ */ jsxs64(Group6, { justify: "space-between", children: [
|
5408
|
+
showSaveLogin && /* @__PURE__ */ jsx101(
|
5409
|
+
Checkbox3,
|
5827
5410
|
{
|
5828
5411
|
checked: authenticate_store.state.saveLogin,
|
5829
5412
|
onChange: (e) => authenticate_store.setProperty("saveLogin", e.currentTarget.checked),
|
5830
5413
|
label: "L\u01B0u \u0111\u0103ng nh\u1EADp"
|
5831
5414
|
}
|
5832
5415
|
),
|
5833
|
-
showForgotPassword && /* @__PURE__ */
|
5416
|
+
showForgotPassword && /* @__PURE__ */ jsx101(Anchor, { component: Link, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
5834
5417
|
] }),
|
5835
|
-
showLoginButton && /* @__PURE__ */
|
5418
|
+
showLoginButton && /* @__PURE__ */ jsx101(
|
5836
5419
|
Button3,
|
5837
5420
|
{
|
5838
5421
|
loading: loadingState[0],
|
@@ -5848,7 +5431,7 @@ function F_authenticate_Login({
|
|
5848
5431
|
);
|
5849
5432
|
}
|
5850
5433
|
function useM_Account_Sigin() {
|
5851
|
-
const mutation =
|
5434
|
+
const mutation = useMutation5({
|
5852
5435
|
mutationFn: async (values) => {
|
5853
5436
|
const endpoint = await utils_config_getBaseUrl() + "/Account/SignIn";
|
5854
5437
|
const result = await axios.post(endpoint, values);
|
@@ -5917,10 +5500,6 @@ export {
|
|
5917
5500
|
F_core76318_Create,
|
5918
5501
|
F_core76318_Delete,
|
5919
5502
|
F_core76318_Update,
|
5920
|
-
F_core83092,
|
5921
|
-
F_core83092_ReadUser,
|
5922
|
-
F_core83092_Save,
|
5923
|
-
F_core83092_ViewMenuPermissions,
|
5924
5503
|
F_formTemplateDocs,
|
5925
5504
|
F_formTemplateDocs_Create,
|
5926
5505
|
F_formTemplateDocs_Delete,
|
@@ -5956,7 +5535,6 @@ export {
|
|
5956
5535
|
F_workflowProcessDocs_Update,
|
5957
5536
|
useS_accessControl,
|
5958
5537
|
useS_authenticate,
|
5959
|
-
useS_core83092,
|
5960
5538
|
useS_moduleConfig,
|
5961
|
-
|
5539
|
+
utils_accessControl_mergePage
|
5962
5540
|
};
|