aq-fe-framework 0.1.319 → 0.1.320

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.
@@ -5,15 +5,15 @@ import {
5
5
  utils_converter_enumToSelectOptions,
6
6
  utils_file_fileToAQDocumentType
7
7
  } from "../chunk-FBGCXKGK.mjs";
8
+ import {
9
+ baseColumns
10
+ } from "../chunk-2SBUKAGS.mjs";
8
11
  import {
9
12
  U0DateToDDMMYYYString
10
13
  } from "../chunk-I2XIN2R3.mjs";
11
14
  import {
12
15
  const_object_documentTypes
13
- } from "../chunk-GFEMKKFH.mjs";
14
- import {
15
- enum_emailConfigModule
16
- } from "../chunk-VH4ZAD6M.mjs";
16
+ } from "../chunk-BZMQOGL6.mjs";
17
17
  import {
18
18
  F_authenticate_Logout,
19
19
  MyActionIconDelete,
@@ -24,7 +24,6 @@ import {
24
24
  MyButtonModal,
25
25
  MyButtonViewPDF,
26
26
  MyCenterFull,
27
- MyDataTable,
28
27
  MyDateInput,
29
28
  MyFieldset,
30
29
  MyFileInput,
@@ -37,33 +36,34 @@ import {
37
36
  groupToTwoLevels,
38
37
  useS_authenticate,
39
38
  utils_layout_getItemsWithoutLinks
40
- } from "../chunk-QMQQZF6X.mjs";
39
+ } from "../chunk-FAG4PGP2.mjs";
41
40
  import {
42
41
  createGenericStore
43
42
  } from "../chunk-Y3YGC5IH.mjs";
44
43
  import "../chunk-5U2JSHSJ.mjs";
45
44
  import {
46
- MyButton as MyButton2,
47
- MyTextInput as MyTextInput2
48
- } from "../chunk-PSV5MULK.mjs";
49
- import "../chunk-K6S7R6LU.mjs";
45
+ MyDataTableSelectOne
46
+ } from "../chunk-HEW5D3R4.mjs";
50
47
  import {
48
+ MyDataTable,
51
49
  MyFlexColumn,
52
50
  MyFlexRow
53
- } from "../chunk-HHJFKKE7.mjs";
51
+ } from "../chunk-GEYCGM75.mjs";
54
52
  import {
55
53
  const_object_colors
56
54
  } from "../chunk-NWBLJ3W3.mjs";
55
+ import {
56
+ enum_emailConfigModule
57
+ } from "../chunk-VH4ZAD6M.mjs";
58
+ import "../chunk-K6S7R6LU.mjs";
57
59
  import {
58
60
  baseAxios_default,
59
61
  createBaseApi,
60
- useMyDevice,
61
- useMyReactMutation,
62
62
  useMyReactQuery,
63
63
  useMyRouter,
64
64
  useQ_AQ_GetAQModule,
65
65
  useQ_SkillCenter_GetAll
66
- } from "../chunk-YJ32RSH2.mjs";
66
+ } from "../chunk-YQPDRFRL.mjs";
67
67
  import {
68
68
  utils_notification_show
69
69
  } from "../chunk-7ZCOFATU.mjs";
@@ -76,9 +76,18 @@ import {
76
76
  // src/modules-features/admin/core/accessControl/F_accessControl.tsx
77
77
  import { Grid, Paper, ScrollArea as ScrollArea2 } from "@mantine/core";
78
78
 
79
+ // src/api/services/serivce_account.ts
80
+ var CONTROLLER = "/account";
81
+ var serivce_account = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER, baseAxios_default)), {
82
+ getAdminAccount: (paging) => {
83
+ return baseAxios_default.get(CONTROLLER + `/GetAdminAccount`, {
84
+ params: paging
85
+ });
86
+ }
87
+ });
88
+
79
89
  // src/modules-features/admin/core/accessControl/F_accessControl_ReadUser.tsx
80
- import { useQuery } from "@tanstack/react-query";
81
- import { useEffect, useMemo, useState } from "react";
90
+ import { useMemo } from "react";
82
91
 
83
92
  // src/modules-features/admin/core/accessControl/useS_accessControl.tsx
84
93
  var useStore = createGenericStore({
@@ -130,92 +139,62 @@ function utils_accessControl_mergePage(arr1, arr2) {
130
139
 
131
140
  // src/modules-features/admin/core/accessControl/F_accessControl_ReadUser.tsx
132
141
  import { jsx } from "react/jsx-runtime";
142
+ var userColumns = [
143
+ {
144
+ header: "H\u1ECD v\xE0 t\xEAn",
145
+ accessorKey: "fullName"
146
+ },
147
+ {
148
+ header: "Email",
149
+ accessorKey: "email"
150
+ },
151
+ ...baseColumns
152
+ ];
133
153
  function F_accessControl_ReadUser() {
134
154
  const store = useS_accessControl();
135
- const query = useQ_core83092_Account_GetAdminAccount();
136
- const [rowSelection, setRowSelection] = useState({});
137
- const columns = useMemo(
138
- () => [
139
- {
140
- header: "H\u1ECD v\xE0 t\xEAn",
141
- accessorKey: "fullName"
142
- },
143
- {
144
- header: "Email",
145
- accessorKey: "email"
146
- }
147
- ],
148
- []
149
- );
150
- const handleRowClick = (rowId) => {
151
- setRowSelection({ [rowId]: true });
152
- store.setProperty("roleId", parseInt(rowId));
153
- };
154
- useEffect(() => {
155
- if (store.state.roleId == 0) return;
156
- setRowSelection({ [store.state.roleId]: true });
157
- }, [store.state.roleId]);
158
- useEffect(() => {
159
- if (!query.data) return;
160
- store.setProperty("roleId", query.data[0].id);
161
- }, [query.data]);
162
- if (query.isLoading) return "Loading...";
163
- if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
155
+ const columns = useMemo(() => userColumns, []);
156
+ const getAdminAccountQuery = useMyReactQuery({
157
+ queryKey: ["getAdminAccountQuery"],
158
+ axiosFn: () => serivce_account.getAdminAccount(),
159
+ mockData: mockUserData
160
+ });
164
161
  return /* @__PURE__ */ jsx(
165
- MyDataTable,
162
+ MyDataTableSelectOne,
166
163
  {
167
164
  columns,
168
- data: query.data,
169
- getRowId: (row) => {
170
- var _a;
171
- return (_a = row.id) == null ? void 0 : _a.toString();
172
- },
173
- mantineTableBodyRowProps: ({ row }) => ({
174
- onClick: () => handleRowClick(row.id),
175
- style: {
176
- cursor: "pointer",
177
- backgroundColor: rowSelection[row.id] ? const_object_colors.mantineBackgroundTealLight : "transparent"
178
- }
179
- }),
180
- state: rowSelection
165
+ queryResult: getAdminAccountQuery,
166
+ idSelection: store.state.roleId,
167
+ setIdSelection: (id) => store.setProperty("roleId", Number(id))
181
168
  }
182
169
  );
183
170
  }
184
- function useQ_core83092_Account_GetAdminAccount() {
185
- const query = useQuery({
186
- queryKey: ["useQ_core83092_Account_GetAdminAccount"],
187
- queryFn: async () => {
188
- var _a;
189
- if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockUserData;
190
- const result = await baseAxios_default.get(`/Account/GetAdminAccount`, { params: { page: 5, pageNumber: 1 } });
191
- return ((_a = result.data) == null ? void 0 : _a.data) || [];
192
- },
193
- refetchOnWindowFocus: false
194
- });
195
- return query;
196
- }
197
171
  var mockUserData = [
198
172
  {
173
+ id: 1,
199
174
  userName: "nguyenvana",
200
175
  fullName: "Nguy\u1EC5n V\u0103n A",
201
176
  email: "vana@example.com"
202
177
  },
203
178
  {
179
+ id: 2,
204
180
  userName: "tranthib",
205
181
  fullName: "Tr\u1EA7n Th\u1ECB B",
206
182
  email: "thib@example.com"
207
183
  },
208
184
  {
185
+ id: 3,
209
186
  userName: "leminhc",
210
187
  fullName: "L\xEA Minh C",
211
188
  email: "minhc@example.com"
212
189
  },
213
190
  {
191
+ id: 4,
214
192
  userName: "phamthid",
215
193
  fullName: "Ph\u1EA1m Th\u1ECB D",
216
194
  email: "thid@example.com"
217
195
  },
218
196
  {
197
+ id: 5,
219
198
  userName: "doanvanh",
220
199
  fullName: "Do\xE3n V\u0103n H",
221
200
  email: "vanh@example.com"
@@ -225,19 +204,19 @@ var mockUserData = [
225
204
  // src/modules-features/admin/core/accessControl/F_accessControl_ViewMenuPermissions.tsx
226
205
  import { Checkbox, Flex, ScrollArea, Table, Text } from "@mantine/core";
227
206
  import { IconEdit, IconEyeUp, IconFileExport, IconPlus, IconPrinter, IconTrash } from "@tabler/icons-react";
228
- import { useQuery as useQuery2 } from "@tanstack/react-query";
229
- import React, { useEffect as useEffect2, useState as useState2 } from "react";
207
+ import { useQuery } from "@tanstack/react-query";
208
+ import React, { useEffect, useState } from "react";
230
209
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
231
210
  var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
232
211
  function F_accessControl_ViewMenuPermissions({ menuData: menuData2 }) {
233
212
  var _a, _b;
234
213
  const store = useS_accessControl();
235
214
  const query = useGetUserPermission({ menuData: menuData2 });
236
- const list = useState2([]);
237
- useEffect2(() => {
215
+ const list = useState([]);
216
+ useEffect(() => {
238
217
  list[1](groupToTwoLevels(menuData2));
239
218
  }, []);
240
- useEffect2(() => {
219
+ useEffect(() => {
241
220
  if (!query.data) return;
242
221
  store.setProperty("rolePermissions", query.data);
243
222
  }, [query.data]);
@@ -412,7 +391,7 @@ function F_accessControl_ViewMenuPermissions({ menuData: menuData2 }) {
412
391
  }
413
392
  function useGetUserPermission({ menuData: menuData2 }) {
414
393
  const store = useS_accessControl();
415
- const query = useQuery2({
394
+ const query = useQuery({
416
395
  queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
417
396
  queryFn: async () => {
418
397
  const result = await baseAxios_default.get("/Role/GetUserPermission?userId=" + store.state.roleId);
@@ -449,11 +428,11 @@ function useGetUserPermission({ menuData: menuData2 }) {
449
428
 
450
429
  // src/modules-features/admin/core/accessControl/F_accessControl_Save.tsx
451
430
  import { useMutation } from "@tanstack/react-query";
452
- import { useEffect as useEffect3, useState as useState3 } from "react";
431
+ import { useEffect as useEffect2, useState as useState2 } from "react";
453
432
  import { jsx as jsx3 } from "react/jsx-runtime";
454
433
  function F_accessControl_Save() {
455
434
  const store = useS_accessControl();
456
- const disable = useState3(false);
435
+ const disable = useState2(false);
457
436
  const mutation = useMutation({
458
437
  mutationFn: async (body) => {
459
438
  const res = await baseAxios_default.put("/Role/UpdateUserPermission", body);
@@ -478,7 +457,7 @@ function F_accessControl_Save() {
478
457
  }
479
458
  });
480
459
  }
481
- useEffect3(() => {
460
+ useEffect2(() => {
482
461
  if (!store.state.rolePermissions || store.state.rolePermissions.length == 0) {
483
462
  disable[1](true);
484
463
  return;
@@ -503,75 +482,48 @@ function F_accessControl({ menuData: menuData2 }) {
503
482
  // src/modules-features/admin/core/accessControlLevel/F_accessControlLevel.tsx
504
483
  import { Grid as Grid2, Paper as Paper2, ScrollArea as ScrollArea4 } from "@mantine/core";
505
484
 
485
+ // src/api/services/service_role.ts
486
+ var CONTROLLER2 = "/role";
487
+ var service_role = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER2, baseAxios_default)), {
488
+ getAdminRole: (paging) => {
489
+ return baseAxios_default.get(CONTROLLER2 + `/GetAdminRole`, {
490
+ params: paging
491
+ });
492
+ }
493
+ });
494
+
506
495
  // src/modules-features/admin/core/accessControlLevel/F_accessControlLevel_ReadUser.tsx
507
- import { useQuery as useQuery3 } from "@tanstack/react-query";
508
- import { useEffect as useEffect4, useMemo as useMemo2, useState as useState4 } from "react";
496
+ import { useMemo as useMemo2 } from "react";
509
497
  import { jsx as jsx5 } from "react/jsx-runtime";
498
+ var roleColumns = [
499
+ {
500
+ header: "M\xE3 quy\u1EC1n",
501
+ accessorKey: "code"
502
+ },
503
+ {
504
+ header: "T\xEAn quy\u1EC1n",
505
+ accessorKey: "name"
506
+ },
507
+ ...baseColumns
508
+ ];
510
509
  function F_accessControlLevel_ReadUser() {
511
510
  const store = useS_accessControl();
512
- const query = useQ_Account_GetAdminAccount();
513
- const [rowSelection, setRowSelection] = useState4({});
514
- const columns = useMemo2(
515
- () => [
516
- {
517
- header: "M\xE3",
518
- accessorKey: "code",
519
- size: 60
520
- },
521
- {
522
- header: "T\xEAn quy\u1EC1n",
523
- accessorKey: "name"
524
- }
525
- ],
526
- []
527
- );
528
- const handleRowClick = (rowId) => {
529
- setRowSelection({ [rowId]: true });
530
- store.setProperty("roleId", parseInt(rowId));
531
- };
532
- useEffect4(() => {
533
- if (store.state.roleId == 0) return;
534
- setRowSelection({ [store.state.roleId]: true });
535
- }, [store.state.roleId]);
536
- useEffect4(() => {
537
- if (!query.data) return;
538
- store.setProperty("roleId", query.data[0].id);
539
- }, [query.data]);
540
- if (query.isLoading) return "Loading...";
541
- if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
511
+ const columns = useMemo2(() => roleColumns, []);
512
+ const getAdminRoleQuery = useMyReactQuery({
513
+ queryKey: ["getAdminRoleQuery"],
514
+ axiosFn: () => service_role.getAdminRole(),
515
+ mockData
516
+ });
542
517
  return /* @__PURE__ */ jsx5(
543
- MyDataTable,
518
+ MyDataTableSelectOne,
544
519
  {
545
520
  columns,
546
- data: query.data,
547
- getRowId: (row) => {
548
- var _a;
549
- return (_a = row.id) == null ? void 0 : _a.toString();
550
- },
551
- mantineTableBodyRowProps: ({ row }) => ({
552
- onClick: () => handleRowClick(row.id),
553
- style: {
554
- cursor: "pointer",
555
- backgroundColor: rowSelection[row.id] ? const_object_colors.mantineBackgroundTealLight : "transparent"
556
- }
557
- }),
558
- state: rowSelection
521
+ queryResult: getAdminRoleQuery,
522
+ idSelection: store.state.roleId,
523
+ setIdSelection: (id) => store.setProperty("roleId", Number(id))
559
524
  }
560
525
  );
561
526
  }
562
- function useQ_Account_GetAdminAccount() {
563
- const query = useQuery3({
564
- queryKey: ["useQ_Role_GetAdminRole"],
565
- queryFn: async () => {
566
- var _a;
567
- if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData;
568
- const result = await baseAxios_default.get(`/Role/GetAdminRole`);
569
- return ((_a = result.data) == null ? void 0 : _a.data) || [];
570
- },
571
- refetchOnWindowFocus: false
572
- });
573
- return query;
574
- }
575
527
  var mockData = [
576
528
  { id: 1, code: "GV", name: "Gi\u1EA3ng vi\xEAn" },
577
529
  { id: 2, code: "STU", name: "Student" },
@@ -617,19 +569,19 @@ var menuData = [
617
569
  // src/modules-features/admin/core/accessControlLevel/F_accessControlLevel_ViewMenuPermissions.tsx
618
570
  import { Checkbox as Checkbox2, Flex as Flex2, ScrollArea as ScrollArea3, Table as Table2, Text as Text2 } from "@mantine/core";
619
571
  import { IconEdit as IconEdit2, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport2, IconPlus as IconPlus2, IconPrinter as IconPrinter2, IconTrash as IconTrash2 } from "@tabler/icons-react";
620
- import { useQuery as useQuery4 } from "@tanstack/react-query";
621
- import React2, { useEffect as useEffect5, useState as useState5 } from "react";
572
+ import { useQuery as useQuery2 } from "@tanstack/react-query";
573
+ import React2, { useEffect as useEffect3, useState as useState3 } from "react";
622
574
  import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
623
575
  var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
624
576
  function F_accessControlLevel_ViewMenuPermissions({ menuData: menuData2 }) {
625
577
  var _a, _b;
626
578
  const store = useS_accessControl();
627
579
  const query = useGetUserPermission2();
628
- const list = useState5([]);
629
- useEffect5(() => {
580
+ const list = useState3([]);
581
+ useEffect3(() => {
630
582
  list[1](groupToTwoLevels(menuData2));
631
583
  }, []);
632
- useEffect5(() => {
584
+ useEffect3(() => {
633
585
  if (!query.data) return;
634
586
  store.setProperty("rolePermissions", query.data);
635
587
  }, [query.data]);
@@ -804,7 +756,7 @@ function F_accessControlLevel_ViewMenuPermissions({ menuData: menuData2 }) {
804
756
  }
805
757
  function useGetUserPermission2() {
806
758
  const store = useS_accessControl();
807
- const query = useQuery4({
759
+ const query = useQuery2({
808
760
  queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
809
761
  queryFn: async () => {
810
762
  const result = await baseAxios_default.get("/Role/GetRolePermission?roleId=" + store.state.roleId);
@@ -841,11 +793,11 @@ function useGetUserPermission2() {
841
793
 
842
794
  // src/modules-features/admin/core/accessControlLevel/F_accessControlLevel_Save.tsx
843
795
  import { useMutation as useMutation2 } from "@tanstack/react-query";
844
- import { useEffect as useEffect6, useState as useState6 } from "react";
796
+ import { useEffect as useEffect4, useState as useState4 } from "react";
845
797
  import { jsx as jsx7 } from "react/jsx-runtime";
846
798
  function F_accessControlLevel_Save() {
847
799
  const store = useS_accessControl();
848
- const disable = useState6(false);
800
+ const disable = useState4(false);
849
801
  const mutation = useMutation2({
850
802
  mutationFn: async (body) => {
851
803
  const res = await baseAxios_default.put("/Role/UpdatePermission", body);
@@ -870,7 +822,7 @@ function F_accessControlLevel_Save() {
870
822
  }
871
823
  });
872
824
  }
873
- useEffect6(() => {
825
+ useEffect4(() => {
874
826
  if (!store.state.rolePermissions || store.state.rolePermissions.length == 0) {
875
827
  disable[1](true);
876
828
  return;
@@ -893,17 +845,17 @@ function F_accessControlLevel({ menuData: menuData2 }) {
893
845
  }
894
846
 
895
847
  // src/modules-features/admin/core/accountManagement/F_accountManagement.tsx
896
- import { useEffect as useEffect8 } from "react";
848
+ import { useEffect as useEffect6 } from "react";
897
849
 
898
850
  // src/api/services/accountService.ts
899
- var CONTROLLER = "/account";
900
- var apiData_Account = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER, baseAxios_default)), {
851
+ var CONTROLLER3 = "/account";
852
+ var apiData_Account = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER3, baseAxios_default)), {
901
853
  // Các hàm custom
902
854
  getCoeAccountById: (id) => {
903
- return baseAxios_default.post(CONTROLLER + `/getCOEAccount`, { userId: id });
855
+ return baseAxios_default.post(CONTROLLER3 + `/getCOEAccount`, { userId: id });
904
856
  },
905
857
  getAdminAccount: (paging) => {
906
- return baseAxios_default.get(CONTROLLER + `/GetAdminAccount`, {
858
+ return baseAxios_default.get(CONTROLLER3 + `/GetAdminAccount`, {
907
859
  params: paging
908
860
  });
909
861
  }
@@ -912,7 +864,7 @@ var apiData_Account = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER,
912
864
  // src/modules-features/admin/core/accountManagement/F_accountManagement_Read.tsx
913
865
  import { Button as Button2, Group as Group2 } from "@mantine/core";
914
866
  import { IconShield } from "@tabler/icons-react";
915
- import { useMemo as useMemo4, useState as useState9 } from "react";
867
+ import { useMemo as useMemo4, useState as useState7 } from "react";
916
868
 
917
869
  // src/modules-features/admin/core/accountManagement/useS_accountManagement.ts
918
870
  var useStore2 = createGenericStore({
@@ -926,15 +878,15 @@ function useS_accountManagement() {
926
878
  // src/modules-features/admin/core/accountManagement/F_accountManagement_ChangePermission.tsx
927
879
  import { Button, Fieldset, Group, Table as Table3 } from "@mantine/core";
928
880
  import { useDisclosure } from "@mantine/hooks";
929
- import { useMutation as useMutation3, useQuery as useQuery5, useQueryClient } from "@tanstack/react-query";
930
- import { useEffect as useEffect7, useMemo as useMemo3, useState as useState7 } from "react";
881
+ import { useMutation as useMutation3, useQuery as useQuery3, useQueryClient } from "@tanstack/react-query";
882
+ import { useEffect as useEffect5, useMemo as useMemo3, useState as useState5 } from "react";
931
883
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
932
884
  function F_accountManagement_ChangePermission({ user }) {
933
885
  const disc = useDisclosure();
934
886
  const queryClient = useQueryClient();
935
- const [rowSelection, setRowSelection] = useState7({});
936
- const rowSelect = useState7();
937
- const query = useQuery5({
887
+ const [rowSelection, setRowSelection] = useState5({});
888
+ const rowSelect = useState5();
889
+ const query = useQuery3({
938
890
  queryKey: [`F1_1ChangePermission`],
939
891
  queryFn: async () => {
940
892
  const response = await baseAxios_default.get("/Role/GetAdminRole");
@@ -971,7 +923,7 @@ function F_accountManagement_ChangePermission({ user }) {
971
923
  }
972
924
  });
973
925
  }
974
- useEffect7(() => {
926
+ useEffect5(() => {
975
927
  var _a;
976
928
  if ((user == null ? void 0 : user.roles) == void 0) return;
977
929
  const result = (_a = user == null ? void 0 : user.roles) == null ? void 0 : _a.reduce((acc, item) => {
@@ -1137,7 +1089,7 @@ function F_accountManagement_Delete({ id, code }) {
1137
1089
  // src/modules-features/admin/core/accountManagement/F_accountManagement_Update.tsx
1138
1090
  import { MultiSelect as MultiSelect2 } from "@mantine/core";
1139
1091
  import { useForm as useForm2 } from "@mantine/form";
1140
- import { useState as useState8 } from "react";
1092
+ import { useState as useState6 } from "react";
1141
1093
  import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
1142
1094
  function F_accountManagement_Update({ user }) {
1143
1095
  var _a, _b, _c, _d;
@@ -1148,7 +1100,7 @@ function F_accountManagement_Update({ user }) {
1148
1100
  userSkillCenters: (_a = user.userSkillCenters) != null ? _a : []
1149
1101
  })
1150
1102
  });
1151
- const [editedUserSkillCentersState, setEditedUserSkillCentersState] = useState8(
1103
+ const [editedUserSkillCentersState, setEditedUserSkillCentersState] = useState6(
1152
1104
  (_b = user.userSkillCenters) != null ? _b : []
1153
1105
  );
1154
1106
  return /* @__PURE__ */ jsx12(MyActionIconUpdate, { form, onSubmit: async (values) => {
@@ -1215,12 +1167,12 @@ function F_accountManagement_Update({ user }) {
1215
1167
  import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
1216
1168
  function F_accountManagement_Read() {
1217
1169
  var _a, _b, _c;
1218
- const paginationState = useState9({ pageIndex: 0, pageSize: 10 });
1170
+ const paginationState = useState7({ pageIndex: 0, pageSize: 10 });
1219
1171
  const router = useMyRouter();
1220
1172
  const store = useS_accountManagement();
1221
1173
  const AllUserQuery = useMyReactQuery({
1222
1174
  queryKey: ["AllUserQuery", paginationState[0].pageIndex + 1, paginationState[0].pageSize],
1223
- axiosFn: async () => {
1175
+ axiosFn: () => {
1224
1176
  return apiData_Account.getAdminAccount({
1225
1177
  pageNumber: paginationState[0].pageIndex + 1,
1226
1178
  pageSize: paginationState[0].pageSize
@@ -1234,7 +1186,7 @@ function F_accountManagement_Read() {
1234
1186
  });
1235
1187
  const columns = useMemo4(() => {
1236
1188
  var _a2;
1237
- const baseColumns = [
1189
+ const baseColumns2 = [
1238
1190
  {
1239
1191
  header: "T\xEAn t\xE0i kho\u1EA3n",
1240
1192
  accessorKey: "userName"
@@ -1253,7 +1205,7 @@ function F_accountManagement_Read() {
1253
1205
  }
1254
1206
  ];
1255
1207
  if (((_a2 = store.state) == null ? void 0 : _a2.isRequireSkillCenter) === true) {
1256
- baseColumns.splice(3, 0, {
1208
+ baseColumns2.splice(3, 0, {
1257
1209
  header: "Trung t\xE2m k\u1EF9 n\u0103ng",
1258
1210
  accessorFn: (row) => {
1259
1211
  var _a3;
@@ -1261,12 +1213,13 @@ function F_accountManagement_Read() {
1261
1213
  }
1262
1214
  });
1263
1215
  }
1264
- return baseColumns;
1216
+ return baseColumns2;
1265
1217
  }, [(_a = store.state) == null ? void 0 : _a.isRequireSkillCenter]);
1266
1218
  return /* @__PURE__ */ jsx13(
1267
1219
  MyDataTable,
1268
1220
  {
1269
1221
  isLoading: AllUserQuery.isLoading,
1222
+ isError: AllUserQuery.isError,
1270
1223
  rowCount: (_c = (_b = getTotalAccount.data) == null ? void 0 : _b.length) != null ? _c : 0,
1271
1224
  pagination: paginationState[0],
1272
1225
  onPaginationChange: paginationState[1],
@@ -1329,7 +1282,7 @@ var mockUserData2 = [
1329
1282
  import { jsx as jsx14 } from "react/jsx-runtime";
1330
1283
  function F_accountManagement({ isRequireSkillCenter = false }) {
1331
1284
  const store = useS_accountManagement();
1332
- useEffect8(() => {
1285
+ useEffect6(() => {
1333
1286
  store.setProperty("isRequireSkillCenter", isRequireSkillCenter);
1334
1287
  }, []);
1335
1288
  return /* @__PURE__ */ jsx14(F_accountManagement_Read, {});
@@ -1337,7 +1290,7 @@ function F_accountManagement({ isRequireSkillCenter = false }) {
1337
1290
 
1338
1291
  // src/modules-features/admin/core/core12196/F_core12196_Read.tsx
1339
1292
  import { Accordion, Alert, Blockquote, Skeleton } from "@mantine/core";
1340
- import { useQuery as useQuery7 } from "@tanstack/react-query";
1293
+ import { useQuery as useQuery5 } from "@tanstack/react-query";
1341
1294
  import { useMemo as useMemo5 } from "react";
1342
1295
  import { IconBug } from "@tabler/icons-react";
1343
1296
 
@@ -1358,12 +1311,12 @@ function F_core12196_Delete({
1358
1311
 
1359
1312
  // src/modules-features/admin/core/core18256/F_core18256_Select.tsx
1360
1313
  import { Select } from "@mantine/core";
1361
- import { useQuery as useQuery6 } from "@tanstack/react-query";
1314
+ import { useQuery as useQuery4 } from "@tanstack/react-query";
1362
1315
  import { jsx as jsx16 } from "react/jsx-runtime";
1363
1316
  function F_core18256_Select(_a) {
1364
1317
  var _b = _a, { documentTypeId, label = "", dataMapper } = _b, rest = __objRest(_b, ["documentTypeId", "label", "dataMapper"]);
1365
1318
  var _a2, _b2;
1366
- const query = useQuery6({
1319
+ const query = useQuery4({
1367
1320
  queryKey: [`/DocumentAttribute/GetByType?documentType=${documentTypeId}`],
1368
1321
  queryFn: async () => {
1369
1322
  const result = (await baseAxios_default.get(`/DocumentAttribute/GetByType?documentType=${documentTypeId}`)).data.data;
@@ -1476,7 +1429,7 @@ function F_core12196_Update({
1476
1429
  import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
1477
1430
  function F_core12196_Read({ FormTypeId }) {
1478
1431
  var _a, _b, _c;
1479
- const documentAttributeQuery = useQuery7({
1432
+ const documentAttributeQuery = useQuery5({
1480
1433
  queryKey: ["F_core12196_Read", FormTypeId],
1481
1434
  queryFn: async () => {
1482
1435
  var _a2;
@@ -1518,7 +1471,7 @@ function SubRead({
1518
1471
  documentType,
1519
1472
  FormTypeId
1520
1473
  }) {
1521
- const documentQuery = useQuery7({
1474
+ const documentQuery = useQuery5({
1522
1475
  queryKey: ["SF2_3Read" + documentType],
1523
1476
  queryFn: async () => {
1524
1477
  const result = await baseAxios_default.get(
@@ -1669,7 +1622,7 @@ function F_core12196({
1669
1622
  }
1670
1623
 
1671
1624
  // src/modules-features/admin/core/core16209/F_core16209.tsx
1672
- import { useQuery as useQuery8 } from "@tanstack/react-query";
1625
+ import { useQuery as useQuery6 } from "@tanstack/react-query";
1673
1626
  import { useMemo as useMemo6 } from "react";
1674
1627
 
1675
1628
  // src/modules-features/admin/core/core16209/F_core16209_Create.tsx
@@ -1857,7 +1810,7 @@ function F_core16209_Update({ values }) {
1857
1810
  // src/modules-features/admin/core/core16209/F_core16209.tsx
1858
1811
  import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
1859
1812
  function F_core16209({ RefinementTypeId }) {
1860
- const query = useQuery8({
1813
+ const query = useQuery6({
1861
1814
  queryKey: ["F_core16209_Read"],
1862
1815
  queryFn: async () => {
1863
1816
  var _a;
@@ -1922,7 +1875,7 @@ function F_core16209({ RefinementTypeId }) {
1922
1875
  import { Tabs } from "@mantine/core";
1923
1876
 
1924
1877
  // src/modules-features/admin/core/core18256/F_core18256_Read.tsx
1925
- import { useQuery as useQuery9 } from "@tanstack/react-query";
1878
+ import { useQuery as useQuery7 } from "@tanstack/react-query";
1926
1879
  import { useMemo as useMemo7 } from "react";
1927
1880
 
1928
1881
  // src/modules-features/admin/core/core18256/F_core18256_Create.tsx
@@ -1973,7 +1926,7 @@ function F_core18256_Update({ values }) {
1973
1926
  // src/modules-features/admin/core/core18256/F_core18256_Read.tsx
1974
1927
  import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
1975
1928
  function F_core18256_Read({ documentType }) {
1976
- const documentAttributeQuery = useQuery9({
1929
+ const documentAttributeQuery = useQuery7({
1977
1930
  queryKey: ["F_core18256_Read", documentType],
1978
1931
  queryFn: async () => {
1979
1932
  var _a;
@@ -2108,7 +2061,7 @@ function F_core26965_Create({
2108
2061
 
2109
2062
  // src/modules-features/admin/core/core26965/F_core26965_Read.tsx
2110
2063
  import { Accordion as Accordion2, Alert as Alert2, Blockquote as Blockquote2, Skeleton as Skeleton2 } from "@mantine/core";
2111
- import { useQuery as useQuery10 } from "@tanstack/react-query";
2064
+ import { useQuery as useQuery8 } from "@tanstack/react-query";
2112
2065
  import { IconBug as IconBug2 } from "@tabler/icons-react";
2113
2066
  import { useMemo as useMemo8 } from "react";
2114
2067
 
@@ -2214,7 +2167,7 @@ function F_core26965_Read({
2214
2167
  RegulationsTypeId
2215
2168
  }) {
2216
2169
  var _a, _b, _c;
2217
- const documentAttributeQuery = useQuery10({
2170
+ const documentAttributeQuery = useQuery8({
2218
2171
  queryKey: ["F_core26965_Read", RegulationsTypeId],
2219
2172
  queryFn: async () => {
2220
2173
  var _a2;
@@ -2256,7 +2209,7 @@ function SubRead2({
2256
2209
  documentType,
2257
2210
  RegulationsTypeId
2258
2211
  }) {
2259
- const documentQuery = useQuery10({
2212
+ const documentQuery = useQuery8({
2260
2213
  queryKey: ["SubRead" + documentType],
2261
2214
  queryFn: async () => {
2262
2215
  const result = await baseAxios_default.get(
@@ -2405,7 +2358,7 @@ function F_core27311_Create({
2405
2358
 
2406
2359
  // src/modules-features/admin/core/core27311/F_core27311_Read.tsx
2407
2360
  import { Accordion as Accordion3, Alert as Alert3, Blockquote as Blockquote3, Skeleton as Skeleton3 } from "@mantine/core";
2408
- import { useQuery as useQuery11 } from "@tanstack/react-query";
2361
+ import { useQuery as useQuery9 } from "@tanstack/react-query";
2409
2362
  import { IconBug as IconBug3 } from "@tabler/icons-react";
2410
2363
  import { useMemo as useMemo9 } from "react";
2411
2364
 
@@ -2511,7 +2464,7 @@ function F_core27311_Read({
2511
2464
  WorkflowTypeId
2512
2465
  }) {
2513
2466
  var _a, _b, _c;
2514
- const documentAttributeQuery = useQuery11({
2467
+ const documentAttributeQuery = useQuery9({
2515
2468
  queryKey: ["F_core27311_Read", WorkflowTypeId],
2516
2469
  queryFn: async () => {
2517
2470
  var _a2;
@@ -2553,7 +2506,7 @@ function SubRead3({
2553
2506
  documentType,
2554
2507
  WorkflowTypeId
2555
2508
  }) {
2556
- const documentQuery = useQuery11({
2509
+ const documentQuery = useQuery9({
2557
2510
  queryKey: ["SubRead" + documentType],
2558
2511
  queryFn: async () => {
2559
2512
  const result = await baseAxios_default.get(
@@ -2649,7 +2602,7 @@ function F_core35923() {
2649
2602
  }
2650
2603
 
2651
2604
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
2652
- import { useQuery as useQuery12 } from "@tanstack/react-query";
2605
+ import { useQuery as useQuery10 } from "@tanstack/react-query";
2653
2606
  import { useMemo as useMemo10 } from "react";
2654
2607
 
2655
2608
  // src/modules-features/admin/core/core40207/F_core40207_Create.tsx
@@ -2780,7 +2733,7 @@ function F_core40207_Update({ values }) {
2780
2733
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
2781
2734
  import { jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
2782
2735
  function F_core40207_Read({ GuidelineTypeId }) {
2783
- const query = useQuery12({
2736
+ const query = useQuery10({
2784
2737
  queryKey: ["F_core40207_Read"],
2785
2738
  queryFn: async () => {
2786
2739
  var _a;
@@ -2841,7 +2794,7 @@ function F_core40207({ GuidelineTypeId }) {
2841
2794
 
2842
2795
  // src/modules-features/admin/core/core47643/F_core47643_Read.tsx
2843
2796
  import { Group as Group3 } from "@mantine/core";
2844
- import { useQuery as useQuery13 } from "@tanstack/react-query";
2797
+ import { useQuery as useQuery11 } from "@tanstack/react-query";
2845
2798
  import { useMemo as useMemo11 } from "react";
2846
2799
 
2847
2800
  // src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
@@ -2909,7 +2862,7 @@ function F_core47643_Read() {
2909
2862
  );
2910
2863
  }
2911
2864
  function useQ_core47643_GetAdminRole() {
2912
- const query = useQuery13({
2865
+ const query = useQuery11({
2913
2866
  queryKey: ["useQ_core47643_GetAdminRole"],
2914
2867
  queryFn: async () => {
2915
2868
  const res = await baseAxios_default.get("/Role/GetAdminRole");
@@ -2926,7 +2879,7 @@ function F_core47643() {
2926
2879
  }
2927
2880
 
2928
2881
  // src/modules-features/admin/core/core64229/F_core64229_Read.tsx
2929
- import { useQuery as useQuery14 } from "@tanstack/react-query";
2882
+ import { useQuery as useQuery12 } from "@tanstack/react-query";
2930
2883
  import { useMemo as useMemo12 } from "react";
2931
2884
 
2932
2885
  // src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
@@ -3049,7 +3002,7 @@ function FormInput({ form, emailModule }) {
3049
3002
  // src/modules-features/admin/core/core64229/F_core64229_Read.tsx
3050
3003
  import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
3051
3004
  function F_core64229_Read({ emailModule }) {
3052
- const query = useQuery14({
3005
+ const query = useQuery12({
3053
3006
  queryKey: ["F_core64229_Read"],
3054
3007
  queryFn: async () => {
3055
3008
  const res = await baseAxios_default.get("/EmailConfig/GetAll");
@@ -3113,7 +3066,7 @@ function F_core64229() {
3113
3066
  }
3114
3067
 
3115
3068
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
3116
- import { useQuery as useQuery15 } from "@tanstack/react-query";
3069
+ import { useQuery as useQuery13 } from "@tanstack/react-query";
3117
3070
  import { useMemo as useMemo13 } from "react";
3118
3071
 
3119
3072
  // src/modules-features/admin/core/core76318/F_core76318_Create.tsx
@@ -3260,7 +3213,7 @@ function F_core76318_Update({ values }) {
3260
3213
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
3261
3214
  import { jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
3262
3215
  function F_core76318_Read({ SecurityTypeId }) {
3263
- const query = useQuery15({
3216
+ const query = useQuery13({
3264
3217
  queryKey: ["F_core76318_Read"],
3265
3218
  queryFn: async () => {
3266
3219
  var _a;
@@ -3402,7 +3355,7 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
3402
3355
 
3403
3356
  // src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
3404
3357
  import { Accordion as Accordion4, Alert as Alert4, Blockquote as Blockquote4, Skeleton as Skeleton4 } from "@mantine/core";
3405
- import { useQuery as useQuery16 } from "@tanstack/react-query";
3358
+ import { useQuery as useQuery14 } from "@tanstack/react-query";
3406
3359
  import { useMemo as useMemo14 } from "react";
3407
3360
  import { IconBug as IconBug4 } from "@tabler/icons-react";
3408
3361
 
@@ -3506,7 +3459,7 @@ function F_formTemplateDocs_Update({
3506
3459
  import { jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
3507
3460
  function F_formTemplateDocs_Read({ FormTypeId }) {
3508
3461
  var _a, _b, _c;
3509
- const documentAttributeQuery = useQuery16({
3462
+ const documentAttributeQuery = useQuery14({
3510
3463
  queryKey: ["F_formTemplateDocs_Read", FormTypeId],
3511
3464
  queryFn: async () => {
3512
3465
  var _a2;
@@ -3548,7 +3501,7 @@ function SubRead4({
3548
3501
  documentType,
3549
3502
  FormTypeId
3550
3503
  }) {
3551
- const documentQuery = useQuery16({
3504
+ const documentQuery = useQuery14({
3552
3505
  queryKey: ["SF2_3Read" + documentType],
3553
3506
  queryFn: async () => {
3554
3507
  const result = await baseAxios_default.get(
@@ -3625,12 +3578,12 @@ function F_formTemplateDocs({
3625
3578
  }
3626
3579
 
3627
3580
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
3628
- import { useEffect as useEffect10 } from "react";
3581
+ import { useEffect as useEffect8 } from "react";
3629
3582
 
3630
3583
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
3631
3584
  import { Center, Grid as Grid4, Image, Paper as Paper7 } from "@mantine/core";
3632
3585
  import { useForm as useForm21 } from "@mantine/form";
3633
- import { useEffect as useEffect9 } from "react";
3586
+ import { useEffect as useEffect7 } from "react";
3634
3587
 
3635
3588
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
3636
3589
  import { useMutation as useMutation4 } from "@tanstack/react-query";
@@ -3701,7 +3654,7 @@ function F_moduleConfig_Form() {
3701
3654
  logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
3702
3655
  }
3703
3656
  });
3704
- useEffect9(() => {
3657
+ useEffect7(() => {
3705
3658
  var _a2, _b2;
3706
3659
  if (!query.data) return;
3707
3660
  const values = {
@@ -3808,7 +3761,7 @@ function F_moduleConfig_Form() {
3808
3761
  import { jsx as jsx66 } from "react/jsx-runtime";
3809
3762
  function F_moduleConfig({ AQModuleId }) {
3810
3763
  const store = useS_moduleConfig();
3811
- useEffect10(() => {
3764
+ useEffect8(() => {
3812
3765
  store.setProperty("AQModuleId", AQModuleId);
3813
3766
  }, []);
3814
3767
  return /* @__PURE__ */ jsx66(F_moduleConfig_Form, {});
@@ -3894,7 +3847,7 @@ function F_organizationPolicyDocs_Create({
3894
3847
 
3895
3848
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
3896
3849
  import { Accordion as Accordion5, Alert as Alert5, Blockquote as Blockquote5, Skeleton as Skeleton5 } from "@mantine/core";
3897
- import { useQuery as useQuery17 } from "@tanstack/react-query";
3850
+ import { useQuery as useQuery15 } from "@tanstack/react-query";
3898
3851
  import { IconBug as IconBug5 } from "@tabler/icons-react";
3899
3852
  import { useMemo as useMemo15 } from "react";
3900
3853
 
@@ -4000,7 +3953,7 @@ function F_organizationPolicyDocs_Read({
4000
3953
  RegulationsTypeId
4001
3954
  }) {
4002
3955
  var _a, _b, _c;
4003
- const documentAttributeQuery = useQuery17({
3956
+ const documentAttributeQuery = useQuery15({
4004
3957
  queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
4005
3958
  queryFn: async () => {
4006
3959
  var _a2;
@@ -4042,7 +3995,7 @@ function SubRead5({
4042
3995
  documentType,
4043
3996
  RegulationsTypeId
4044
3997
  }) {
4045
- const documentQuery = useQuery17({
3998
+ const documentQuery = useQuery15({
4046
3999
  queryKey: ["SubRead" + documentType],
4047
4000
  queryFn: async () => {
4048
4001
  const result = await baseAxios_default.get(
@@ -4114,86 +4067,35 @@ function F_organizationPolicyDocs({ RegulationsTypeId }) {
4114
4067
  ] });
4115
4068
  }
4116
4069
 
4117
- // src/api/services/service_PageContent.ts
4118
- var CONTROLLER2 = "/eva/PageContent";
4119
- var service_PageContent = __spreadValues({}, createBaseApi(CONTROLLER2, baseAxios_default));
4120
-
4121
4070
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
4122
- import { Group as Group4 } from "@mantine/core";
4123
- import { useMemo as useMemo16 } from "react";
4124
-
4125
- // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
4126
4071
  import { jsx as jsx72 } from "react/jsx-runtime";
4127
- function F_pageContentConfig_Save({ menuValues }) {
4128
- const updatePageConfigMutation = useMyReactMutation({
4129
- axiosFn: () => {
4130
- console.log("value");
4131
- return service_PageContent.updateList([{ id: 1 }]);
4132
- }
4133
- });
4134
- return /* @__PURE__ */ jsx72(MyButton2, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
4072
+ function F_pageContentConfig_ReadMenu() {
4073
+ return /* @__PURE__ */ jsx72("div", {});
4135
4074
  }
4136
4075
 
4137
- // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
4076
+ // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
4138
4077
  import { jsx as jsx73 } from "react/jsx-runtime";
4139
- function F_pageContentConfig_Export() {
4140
- return /* @__PURE__ */ jsx73(MyButton2, { actionType: "export" });
4078
+ function F_pageContentConfig() {
4079
+ return /* @__PURE__ */ jsx73(F_pageContentConfig_ReadMenu, {});
4141
4080
  }
4142
4081
 
4143
4082
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
4144
4083
  import { jsx as jsx74 } from "react/jsx-runtime";
4145
- function F_pageContentConfig_DeleteDescription() {
4146
- return /* @__PURE__ */ jsx74(MyButton2, { actionType: "delete" });
4147
- }
4148
4084
 
4149
- // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
4150
- import { jsx as jsx75, jsxs as jsxs48 } from "react/jsx-runtime";
4151
- function F_pageContentConfig_ReadMenu() {
4152
- const pageContentQuery = useMyReactQuery({
4153
- queryKey: ["pageContentQuery"],
4154
- axiosFn: () => service_PageContent.getAll()
4155
- });
4156
- const device = useMyDevice();
4157
- const columns = useMemo16(() => [
4158
- {
4159
- header: "Dashboard",
4160
- accessorKey: "name"
4161
- },
4162
- {
4163
- header: "M\xF4 t\u1EA3",
4164
- accessorKey: "description",
4165
- size: device.isPc ? 400 : 0,
4166
- Cell: () => {
4167
- return /* @__PURE__ */ jsx75(MyTextInput2, { placeholder: "Nh\u1EADp m\xF4 t\u1EA3 menu" });
4168
- }
4169
- }
4170
- ], []);
4171
- return /* @__PURE__ */ jsx75(
4172
- MyDataTable,
4173
- {
4174
- isLoading: pageContentQuery.isLoading,
4175
- isError: pageContentQuery.isError,
4176
- data: pageContentQuery.data || [],
4177
- columns,
4178
- renderTopToolbarCustomActions: (row) => /* @__PURE__ */ jsxs48(Group4, { children: [
4179
- /* @__PURE__ */ jsx75(F_pageContentConfig_Save, { menuValues: [] }),
4180
- /* @__PURE__ */ jsx75(F_pageContentConfig_Export, {}),
4181
- /* @__PURE__ */ jsx75(F_pageContentConfig_DeleteDescription, {})
4182
- ] })
4183
- }
4184
- );
4185
- }
4085
+ // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
4086
+ import { jsx as jsx75 } from "react/jsx-runtime";
4186
4087
 
4187
- // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
4088
+ // src/api/services/service_pageContent.ts
4089
+ var CONTROLLER4 = "/eva/PageContent";
4090
+ var service_pageContent = __spreadValues({}, createBaseApi(CONTROLLER4, baseAxios_default));
4091
+
4092
+ // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
4188
4093
  import { jsx as jsx76 } from "react/jsx-runtime";
4189
- function F_pageContentConfig() {
4190
- return /* @__PURE__ */ jsx76(F_pageContentConfig_ReadMenu, {});
4191
- }
4192
4094
 
4193
4095
  // src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
4194
- import { Group as Group5 } from "@mantine/core";
4195
- import { useQuery as useQuery18 } from "@tanstack/react-query";
4196
- import { useMemo as useMemo17 } from "react";
4096
+ import { Group as Group4 } from "@mantine/core";
4097
+ import { useQuery as useQuery16 } from "@tanstack/react-query";
4098
+ import { useMemo as useMemo16 } from "react";
4197
4099
 
4198
4100
  // src/modules-features/admin/core/roleCatalog/F_roleCatalog_Delete.tsx
4199
4101
  import { jsx as jsx77 } from "react/jsx-runtime";
@@ -4210,19 +4112,19 @@ function F_roleCatalog_Delete({ values }) {
4210
4112
 
4211
4113
  // src/modules-features/admin/core/roleCatalog/F_roleCatalog_Form.tsx
4212
4114
  import { useForm as useForm24 } from "@mantine/form";
4213
- import { jsx as jsx78, jsxs as jsxs49 } from "react/jsx-runtime";
4115
+ import { jsx as jsx78, jsxs as jsxs48 } from "react/jsx-runtime";
4214
4116
  function F_roleCatalog_Form({ values }) {
4215
4117
  const form = useForm24({
4216
4118
  mode: "uncontrolled",
4217
4119
  initialValues: values
4218
4120
  });
4219
- if (values) return /* @__PURE__ */ jsxs49(MyActionIconUpdate, { form, onSubmit: async () => {
4121
+ if (values) return /* @__PURE__ */ jsxs48(MyActionIconUpdate, { form, onSubmit: async () => {
4220
4122
  return await baseAxios_default.post("/Role/Update", form.getValues());
4221
4123
  }, children: [
4222
4124
  /* @__PURE__ */ jsx78(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
4223
4125
  /* @__PURE__ */ jsx78(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
4224
4126
  ] });
4225
- return /* @__PURE__ */ jsxs49(MyButtonCreate, { form, onSubmit: async () => {
4127
+ return /* @__PURE__ */ jsxs48(MyButtonCreate, { form, onSubmit: async () => {
4226
4128
  return await baseAxios_default.post("/Role/Create", form.getValues());
4227
4129
  }, children: [
4228
4130
  /* @__PURE__ */ jsx78(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
@@ -4231,10 +4133,10 @@ function F_roleCatalog_Form({ values }) {
4231
4133
  }
4232
4134
 
4233
4135
  // src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
4234
- import { jsx as jsx79, jsxs as jsxs50 } from "react/jsx-runtime";
4136
+ import { jsx as jsx79, jsxs as jsxs49 } from "react/jsx-runtime";
4235
4137
  function F_roleCatalog_Read() {
4236
4138
  const query = useQ_core47643_GetAdminRole2();
4237
- const columns = useMemo17(() => [
4139
+ const columns = useMemo16(() => [
4238
4140
  {
4239
4141
  header: "M\xE3",
4240
4142
  accessorKey: "code"
@@ -4251,8 +4153,8 @@ function F_roleCatalog_Read() {
4251
4153
  isError: query.isError,
4252
4154
  data: query.data || [],
4253
4155
  columns,
4254
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx79(Group5, { children: /* @__PURE__ */ jsx79(F_roleCatalog_Form, {}) }),
4255
- renderRowActions: ({ row }) => /* @__PURE__ */ jsxs50(MyCenterFull, { children: [
4156
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx79(Group4, { children: /* @__PURE__ */ jsx79(F_roleCatalog_Form, {}) }),
4157
+ renderRowActions: ({ row }) => /* @__PURE__ */ jsxs49(MyCenterFull, { children: [
4256
4158
  /* @__PURE__ */ jsx79(F_roleCatalog_Form, { values: row.original }),
4257
4159
  /* @__PURE__ */ jsx79(F_roleCatalog_Delete, { values: row.original })
4258
4160
  ] })
@@ -4260,7 +4162,7 @@ function F_roleCatalog_Read() {
4260
4162
  );
4261
4163
  }
4262
4164
  function useQ_core47643_GetAdminRole2() {
4263
- const query = useQuery18({
4165
+ const query = useQuery16({
4264
4166
  queryKey: ["useQ_core47643_GetAdminRole"],
4265
4167
  queryFn: async () => {
4266
4168
  const res = await baseAxios_default.get("/Role/GetAdminRole");
@@ -4312,13 +4214,13 @@ function F_roleCatalog() {
4312
4214
  }
4313
4215
 
4314
4216
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
4315
- import { useQuery as useQuery19 } from "@tanstack/react-query";
4316
- import { useMemo as useMemo18 } from "react";
4217
+ import { useQuery as useQuery17 } from "@tanstack/react-query";
4218
+ import { useMemo as useMemo17 } from "react";
4317
4219
 
4318
4220
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
4319
4221
  import { FileInput as FileInput7 } from "@mantine/core";
4320
4222
  import { useForm as useForm25 } from "@mantine/form";
4321
- import { jsx as jsx81, jsxs as jsxs51 } from "react/jsx-runtime";
4223
+ import { jsx as jsx81, jsxs as jsxs50 } from "react/jsx-runtime";
4322
4224
  function F_securityPolicyDocs_Create({ SecurityTypeId }) {
4323
4225
  const form = useForm25({
4324
4226
  mode: "uncontrolled",
@@ -4329,7 +4231,7 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
4329
4231
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
4330
4232
  }
4331
4233
  });
4332
- return /* @__PURE__ */ jsxs51(
4234
+ return /* @__PURE__ */ jsxs50(
4333
4235
  MyButtonCreate,
4334
4236
  {
4335
4237
  objectName: "v\u0103n b\u1EA3n",
@@ -4394,7 +4296,7 @@ function F_securityPolicyDocs_Delete({
4394
4296
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Update.tsx
4395
4297
  import { FileInput as FileInput8, TextInput as TextInput2 } from "@mantine/core";
4396
4298
  import { useForm as useForm26 } from "@mantine/form";
4397
- import { jsx as jsx83, jsxs as jsxs52 } from "react/jsx-runtime";
4299
+ import { jsx as jsx83, jsxs as jsxs51 } from "react/jsx-runtime";
4398
4300
  function F_securityPolicyDocs_Update({ values }) {
4399
4301
  var _a;
4400
4302
  const form = useForm26({
@@ -4413,7 +4315,7 @@ function F_securityPolicyDocs_Update({ values }) {
4413
4315
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
4414
4316
  }
4415
4317
  });
4416
- return /* @__PURE__ */ jsxs52(
4318
+ return /* @__PURE__ */ jsxs51(
4417
4319
  MyActionIconUpdate,
4418
4320
  {
4419
4321
  form,
@@ -4457,9 +4359,9 @@ function F_securityPolicyDocs_Update({ values }) {
4457
4359
  }
4458
4360
 
4459
4361
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
4460
- import { jsx as jsx84, jsxs as jsxs53 } from "react/jsx-runtime";
4362
+ import { jsx as jsx84, jsxs as jsxs52 } from "react/jsx-runtime";
4461
4363
  function F_securityPolicyDocs_Read({ SecurityTypeId }) {
4462
- const query = useQuery19({
4364
+ const query = useQuery17({
4463
4365
  queryKey: ["F_securityPolicyDocs_Read"],
4464
4366
  queryFn: async () => {
4465
4367
  var _a;
@@ -4469,7 +4371,7 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
4469
4371
  return ((_a = result.data) == null ? void 0 : _a.data) || [];
4470
4372
  }
4471
4373
  });
4472
- const columns = useMemo18(
4374
+ const columns = useMemo17(
4473
4375
  () => [
4474
4376
  {
4475
4377
  header: "S\u1ED1 quy \u0111\u1ECBnh",
@@ -4502,7 +4404,7 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
4502
4404
  renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx84(F_securityPolicyDocs_Create, { SecurityTypeId }),
4503
4405
  renderRowActions: ({ row }) => {
4504
4406
  var _a;
4505
- return /* @__PURE__ */ jsxs53(MyCenterFull, { children: [
4407
+ return /* @__PURE__ */ jsxs52(MyCenterFull, { children: [
4506
4408
  /* @__PURE__ */ jsx84(F_securityPolicyDocs_Update, { values: row.original }),
4507
4409
  /* @__PURE__ */ jsx84(
4508
4410
  F_securityPolicyDocs_Delete,
@@ -4524,13 +4426,13 @@ function F_securityPolicyDocs({ SecurityTypeId }) {
4524
4426
  }
4525
4427
 
4526
4428
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
4527
- import { useQuery as useQuery20 } from "@tanstack/react-query";
4528
- import { useMemo as useMemo19 } from "react";
4429
+ import { useQuery as useQuery18 } from "@tanstack/react-query";
4430
+ import { useMemo as useMemo18 } from "react";
4529
4431
 
4530
4432
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
4531
4433
  import { FileInput as FileInput9, Textarea as Textarea3 } from "@mantine/core";
4532
4434
  import { useForm as useForm27 } from "@mantine/form";
4533
- import { jsx as jsx86, jsxs as jsxs54 } from "react/jsx-runtime";
4435
+ import { jsx as jsx86, jsxs as jsxs53 } from "react/jsx-runtime";
4534
4436
  function F_systemUpdateDocs_Create({
4535
4437
  RefinementTypeId
4536
4438
  }) {
@@ -4545,7 +4447,7 @@ function F_systemUpdateDocs_Create({
4545
4447
  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"
4546
4448
  }
4547
4449
  });
4548
- return /* @__PURE__ */ jsxs54(
4450
+ return /* @__PURE__ */ jsxs53(
4549
4451
  MyButtonCreate,
4550
4452
  {
4551
4453
  objectName: "v\u0103n b\u1EA3n",
@@ -4626,7 +4528,7 @@ function F_systemUpdateDocs_Delete({
4626
4528
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Update.tsx
4627
4529
  import { FileInput as FileInput10, Textarea as Textarea4 } from "@mantine/core";
4628
4530
  import { useForm as useForm28 } from "@mantine/form";
4629
- import { jsx as jsx88, jsxs as jsxs55 } from "react/jsx-runtime";
4531
+ import { jsx as jsx88, jsxs as jsxs54 } from "react/jsx-runtime";
4630
4532
  function F_systemUpdateDocs_Update({ values }) {
4631
4533
  var _a;
4632
4534
  const form = useForm28({
@@ -4649,7 +4551,7 @@ function F_systemUpdateDocs_Update({ values }) {
4649
4551
  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"
4650
4552
  }
4651
4553
  });
4652
- return /* @__PURE__ */ jsxs55(
4554
+ return /* @__PURE__ */ jsxs54(
4653
4555
  MyActionIconUpdate,
4654
4556
  {
4655
4557
  form,
@@ -4710,9 +4612,9 @@ function F_systemUpdateDocs_Update({ values }) {
4710
4612
  }
4711
4613
 
4712
4614
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
4713
- import { jsx as jsx89, jsxs as jsxs56 } from "react/jsx-runtime";
4615
+ import { jsx as jsx89, jsxs as jsxs55 } from "react/jsx-runtime";
4714
4616
  function F_systemUpdateDocs({ RefinementTypeId }) {
4715
- const query = useQuery20({
4617
+ const query = useQuery18({
4716
4618
  queryKey: ["F_systemUpdateDocs_Read"],
4717
4619
  queryFn: async () => {
4718
4620
  var _a;
@@ -4722,7 +4624,7 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
4722
4624
  return ((_a = result.data) == null ? void 0 : _a.data) || [];
4723
4625
  }
4724
4626
  });
4725
- const columns = useMemo19(
4627
+ const columns = useMemo18(
4726
4628
  () => [
4727
4629
  {
4728
4630
  header: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u",
@@ -4758,7 +4660,7 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
4758
4660
  data: query.data || [],
4759
4661
  renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx89(F_systemUpdateDocs_Create, { RefinementTypeId }),
4760
4662
  renderRowActions: ({ row }) => {
4761
- return /* @__PURE__ */ jsxs56(MyCenterFull, { children: [
4663
+ return /* @__PURE__ */ jsxs55(MyCenterFull, { children: [
4762
4664
  /* @__PURE__ */ jsx89(F_systemUpdateDocs_Update, { values: row.original }),
4763
4665
  /* @__PURE__ */ jsx89(
4764
4666
  F_systemUpdateDocs_Delete,
@@ -4774,13 +4676,13 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
4774
4676
  }
4775
4677
 
4776
4678
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
4777
- import { useQuery as useQuery21 } from "@tanstack/react-query";
4778
- import { useMemo as useMemo20 } from "react";
4679
+ import { useQuery as useQuery19 } from "@tanstack/react-query";
4680
+ import { useMemo as useMemo19 } from "react";
4779
4681
 
4780
4682
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
4781
4683
  import { FileInput as FileInput11 } from "@mantine/core";
4782
4684
  import { useForm as useForm29 } from "@mantine/form";
4783
- import { jsx as jsx90, jsxs as jsxs57 } from "react/jsx-runtime";
4685
+ import { jsx as jsx90, jsxs as jsxs56 } from "react/jsx-runtime";
4784
4686
  function F_userGuideDocs_Create({ GuidelineTypeId }) {
4785
4687
  const form = useForm29({
4786
4688
  mode: "uncontrolled",
@@ -4790,7 +4692,7 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
4790
4692
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
4791
4693
  }
4792
4694
  });
4793
- return /* @__PURE__ */ jsxs57(
4695
+ return /* @__PURE__ */ jsxs56(
4794
4696
  MyButtonCreate,
4795
4697
  {
4796
4698
  objectName: "v\u0103n b\u1EA3n",
@@ -4848,7 +4750,7 @@ function F_userGuideDocs_Delete({
4848
4750
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Update.tsx
4849
4751
  import { FileInput as FileInput12 } from "@mantine/core";
4850
4752
  import { useForm as useForm30 } from "@mantine/form";
4851
- import { jsx as jsx92, jsxs as jsxs58 } from "react/jsx-runtime";
4753
+ import { jsx as jsx92, jsxs as jsxs57 } from "react/jsx-runtime";
4852
4754
  function F_userGuideDocs_Update({ values }) {
4853
4755
  var _a;
4854
4756
  const form = useForm30({
@@ -4865,7 +4767,7 @@ function F_userGuideDocs_Update({ values }) {
4865
4767
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
4866
4768
  }
4867
4769
  });
4868
- return /* @__PURE__ */ jsxs58(
4770
+ return /* @__PURE__ */ jsxs57(
4869
4771
  MyActionIconUpdate,
4870
4772
  {
4871
4773
  form,
@@ -4903,9 +4805,9 @@ function F_userGuideDocs_Update({ values }) {
4903
4805
  }
4904
4806
 
4905
4807
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
4906
- import { jsx as jsx93, jsxs as jsxs59 } from "react/jsx-runtime";
4808
+ import { jsx as jsx93, jsxs as jsxs58 } from "react/jsx-runtime";
4907
4809
  function F_userGuideDocs_Read({ GuidelineTypeId }) {
4908
- const query = useQuery21({
4810
+ const query = useQuery19({
4909
4811
  queryKey: ["F_userGuideDocs_Read"],
4910
4812
  queryFn: async () => {
4911
4813
  var _a;
@@ -4915,7 +4817,7 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
4915
4817
  return ((_a = result.data) == null ? void 0 : _a.data) || [];
4916
4818
  }
4917
4819
  });
4918
- const columns = useMemo20(
4820
+ const columns = useMemo19(
4919
4821
  () => [
4920
4822
  {
4921
4823
  header: "M\xE3 t\xE0i li\u1EC7u",
@@ -4943,7 +4845,7 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
4943
4845
  data: query.data || [],
4944
4846
  renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx93(F_userGuideDocs_Create, { GuidelineTypeId }),
4945
4847
  renderRowActions: ({ row }) => {
4946
- return /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
4848
+ return /* @__PURE__ */ jsxs58(MyCenterFull, { children: [
4947
4849
  /* @__PURE__ */ jsx93(F_userGuideDocs_Update, { values: row.original }),
4948
4850
  /* @__PURE__ */ jsx93(
4949
4851
  F_userGuideDocs_Delete,
@@ -4969,7 +4871,7 @@ import { Paper as Paper9, Space as Space6 } from "@mantine/core";
4969
4871
 
4970
4872
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Create.tsx
4971
4873
  import { useForm as useForm31 } from "@mantine/form";
4972
- import { jsx as jsx95, jsxs as jsxs60 } from "react/jsx-runtime";
4874
+ import { jsx as jsx95, jsxs as jsxs59 } from "react/jsx-runtime";
4973
4875
  function F_workflowProcessDocs_Create({
4974
4876
  WorkflowTypeId
4975
4877
  }) {
@@ -4983,7 +4885,7 @@ function F_workflowProcessDocs_Create({
4983
4885
  file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
4984
4886
  }
4985
4887
  });
4986
- return /* @__PURE__ */ jsxs60(
4888
+ return /* @__PURE__ */ jsxs59(
4987
4889
  MyButtonCreate,
4988
4890
  {
4989
4891
  objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
@@ -5044,9 +4946,9 @@ function F_workflowProcessDocs_Create({
5044
4946
 
5045
4947
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
5046
4948
  import { Accordion as Accordion6, Alert as Alert6, Blockquote as Blockquote6, Skeleton as Skeleton6 } from "@mantine/core";
5047
- import { useQuery as useQuery22 } from "@tanstack/react-query";
4949
+ import { useQuery as useQuery20 } from "@tanstack/react-query";
5048
4950
  import { IconBug as IconBug6 } from "@tabler/icons-react";
5049
- import { useMemo as useMemo21 } from "react";
4951
+ import { useMemo as useMemo20 } from "react";
5050
4952
 
5051
4953
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
5052
4954
  import { jsx as jsx96 } from "react/jsx-runtime";
@@ -5065,7 +4967,7 @@ function F_workflowProcessDocs_Delete({
5065
4967
 
5066
4968
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Update.tsx
5067
4969
  import { useForm as useForm32 } from "@mantine/form";
5068
- import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
4970
+ import { jsx as jsx97, jsxs as jsxs60 } from "react/jsx-runtime";
5069
4971
  function F_workflowProcessDocs_Update({
5070
4972
  values,
5071
4973
  WorkflowTypeId
@@ -5087,7 +4989,7 @@ function F_workflowProcessDocs_Update({
5087
4989
  file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
5088
4990
  }
5089
4991
  });
5090
- return /* @__PURE__ */ jsxs61(
4992
+ return /* @__PURE__ */ jsxs60(
5091
4993
  MyActionIconUpdate,
5092
4994
  {
5093
4995
  form,
@@ -5145,12 +5047,12 @@ function F_workflowProcessDocs_Update({
5145
5047
  }
5146
5048
 
5147
5049
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
5148
- import { jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
5050
+ import { jsx as jsx98, jsxs as jsxs61 } from "react/jsx-runtime";
5149
5051
  function F_workflowProcessDocs_Read({
5150
5052
  WorkflowTypeId
5151
5053
  }) {
5152
5054
  var _a, _b, _c;
5153
- const documentAttributeQuery = useQuery22({
5055
+ const documentAttributeQuery = useQuery20({
5154
5056
  queryKey: ["F_workflowProcessDocs_Read", WorkflowTypeId],
5155
5057
  queryFn: async () => {
5156
5058
  var _a2;
@@ -5192,7 +5094,7 @@ function SubRead6({
5192
5094
  documentType,
5193
5095
  WorkflowTypeId
5194
5096
  }) {
5195
- const documentQuery = useQuery22({
5097
+ const documentQuery = useQuery20({
5196
5098
  queryKey: ["SubRead" + documentType],
5197
5099
  queryFn: async () => {
5198
5100
  const result = await baseAxios_default.get(
@@ -5201,7 +5103,7 @@ function SubRead6({
5201
5103
  return result.data.data;
5202
5104
  }
5203
5105
  });
5204
- const columns = useMemo21(
5106
+ const columns = useMemo20(
5205
5107
  () => [
5206
5108
  {
5207
5109
  header: "S\u1ED1 quy \u0111\u1ECBnh",
@@ -5224,7 +5126,7 @@ function SubRead6({
5224
5126
  ],
5225
5127
  []
5226
5128
  );
5227
- return /* @__PURE__ */ jsxs62(Accordion6.Item, { value: documentType.toString(), children: [
5129
+ return /* @__PURE__ */ jsxs61(Accordion6.Item, { value: documentType.toString(), children: [
5228
5130
  /* @__PURE__ */ jsx98(Accordion6.Control, { children: name }),
5229
5131
  /* @__PURE__ */ jsx98(Accordion6.Panel, { children: /* @__PURE__ */ jsx98(
5230
5132
  MyDataTable,
@@ -5233,7 +5135,7 @@ function SubRead6({
5233
5135
  isError: documentQuery.isError,
5234
5136
  columns,
5235
5137
  data: documentQuery.data || [],
5236
- renderRowActions: ({ row }) => /* @__PURE__ */ jsxs62(MyCenterFull, { children: [
5138
+ renderRowActions: ({ row }) => /* @__PURE__ */ jsxs61(MyCenterFull, { children: [
5237
5139
  /* @__PURE__ */ jsx98(
5238
5140
  F_workflowProcessDocs_Update,
5239
5141
  {
@@ -5255,11 +5157,11 @@ function SubRead6({
5255
5157
  }
5256
5158
 
5257
5159
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
5258
- import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
5160
+ import { jsx as jsx99, jsxs as jsxs62 } from "react/jsx-runtime";
5259
5161
  function F_workflowProcessDocs({
5260
5162
  WorkflowTypeId
5261
5163
  }) {
5262
- return /* @__PURE__ */ jsxs63(Paper9, { p: "md", children: [
5164
+ return /* @__PURE__ */ jsxs62(Paper9, { p: "md", children: [
5263
5165
  /* @__PURE__ */ jsx99(MyFlexEnd, { children: /* @__PURE__ */ jsx99(F_workflowProcessDocs_Create, { WorkflowTypeId }) }),
5264
5166
  /* @__PURE__ */ jsx99(Space6, {}),
5265
5167
  /* @__PURE__ */ jsx99(F_workflowProcessDocs_Read, { WorkflowTypeId })
@@ -5268,12 +5170,12 @@ function F_workflowProcessDocs({
5268
5170
 
5269
5171
  // src/modules-features/authenticate/F_authenticate_SplashPage.tsx
5270
5172
  import { useRouter } from "next/navigation";
5271
- import { useEffect as useEffect11 } from "react";
5173
+ import { useEffect as useEffect9 } from "react";
5272
5174
  import { jsx as jsx100 } from "react/jsx-runtime";
5273
5175
  function F_authenticate_SplashPage() {
5274
5176
  const router = useRouter();
5275
5177
  const S_Authenticate = useS_authenticate();
5276
- useEffect11(() => {
5178
+ useEffect9(() => {
5277
5179
  if (S_Authenticate.state.token == "") {
5278
5180
  router.push("/authenticate/login");
5279
5181
  return;
@@ -5291,7 +5193,7 @@ import {
5291
5193
  Center as Center2,
5292
5194
  Checkbox as Checkbox3,
5293
5195
  Flex as Flex3,
5294
- Group as Group6,
5196
+ Group as Group5,
5295
5197
  Paper as Paper10,
5296
5198
  PasswordInput as PasswordInput2,
5297
5199
  Text as Text3,
@@ -5303,13 +5205,13 @@ import { useMutation as useMutation5 } from "@tanstack/react-query";
5303
5205
  import axios from "axios";
5304
5206
  import Link from "next/link";
5305
5207
  import { useRouter as useRouter2 } from "next/navigation";
5306
- import { useEffect as useEffect12, useState as useState10 } from "react";
5208
+ import { useEffect as useEffect10, useState as useState8 } from "react";
5307
5209
 
5308
5210
  // src/modules-features/authenticate/F_authenticate_Login/css.module.css
5309
5211
  var css_default = {};
5310
5212
 
5311
5213
  // src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
5312
- import { jsx as jsx101, jsxs as jsxs64 } from "react/jsx-runtime";
5214
+ import { jsx as jsx101, jsxs as jsxs63 } from "react/jsx-runtime";
5313
5215
  function F_authenticate_Login({
5314
5216
  header,
5315
5217
  redirectUrlAfterLogin = "/admin/dashboard",
@@ -5318,11 +5220,12 @@ function F_authenticate_Login({
5318
5220
  onSuccess,
5319
5221
  showLoginButton = true,
5320
5222
  showSaveLogin = true,
5321
- showForgotPassword = true
5223
+ showForgotPassword = true,
5224
+ customSubmit
5322
5225
  }) {
5323
5226
  const router = useRouter2();
5324
5227
  const authenticate_store = useS_authenticate();
5325
- const loadingState = useState10(false);
5228
+ const loadingState = useState8(false);
5326
5229
  const mutation = useM_Account_Sigin();
5327
5230
  const form = useForm33({
5328
5231
  initialValues: {
@@ -5334,7 +5237,7 @@ function F_authenticate_Login({
5334
5237
  password: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
5335
5238
  }
5336
5239
  });
5337
- useEffect12(() => {
5240
+ useEffect10(() => {
5338
5241
  var _a;
5339
5242
  form.setValues({
5340
5243
  username: ((_a = authenticate_store.state) == null ? void 0 : _a.username) || "",
@@ -5342,6 +5245,9 @@ function F_authenticate_Login({
5342
5245
  });
5343
5246
  }, [authenticate_store.state.username]);
5344
5247
  function handleSubmit(userName, passWord) {
5248
+ if (customSubmit) {
5249
+ return customSubmit(userName, passWord);
5250
+ }
5345
5251
  loadingState[1](true);
5346
5252
  mutation.mutate({
5347
5253
  "userName": userName,
@@ -5381,15 +5287,15 @@ function F_authenticate_Login({
5381
5287
  {
5382
5288
  src: backgroundImage,
5383
5289
  h: "100vh",
5384
- 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: [
5385
- header ? header : /* @__PURE__ */ jsxs64(Flex3, { direction: "column", mb: "md", children: [
5290
+ children: /* @__PURE__ */ jsx101(Center2, { h: "100vh", children: /* @__PURE__ */ jsxs63(Paper10, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
5291
+ header ? header : /* @__PURE__ */ jsxs63(Flex3, { direction: "column", mb: "md", children: [
5386
5292
  /* @__PURE__ */ jsx101(Title, { ta: "center", className: css_default.title, children: "\u0110\u0103ng nh\u1EADp!" }),
5387
- /* @__PURE__ */ jsxs64(Text3, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
5293
+ /* @__PURE__ */ jsxs63(Text3, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
5388
5294
  "B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
5389
5295
  /* @__PURE__ */ jsx101(Anchor, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
5390
5296
  ] })
5391
5297
  ] }),
5392
- /* @__PURE__ */ jsx101("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs64(MyFlexColumn, { children: [
5298
+ /* @__PURE__ */ jsx101("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs63(MyFlexColumn, { children: [
5393
5299
  /* @__PURE__ */ jsx101(
5394
5300
  TextInput3,
5395
5301
  __spreadProps(__spreadValues({}, form.getInputProps("username")), {
@@ -5406,7 +5312,7 @@ function F_authenticate_Login({
5406
5312
  withAsterisk: true
5407
5313
  })
5408
5314
  ),
5409
- /* @__PURE__ */ jsxs64(Group6, { justify: "space-between", children: [
5315
+ /* @__PURE__ */ jsxs63(Group5, { justify: "space-between", children: [
5410
5316
  showSaveLogin && /* @__PURE__ */ jsx101(
5411
5317
  Checkbox3,
5412
5318
  {