aq-fe-framework 0.1.40 → 0.1.42

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.
@@ -13,6 +13,7 @@ import {
13
13
  MyFlexRow,
14
14
  MyNumberInput,
15
15
  MyPageContent,
16
+ MySelect,
16
17
  MyTab,
17
18
  MyTextInput,
18
19
  OBJECT_COlORS,
@@ -20,12 +21,13 @@ import {
20
21
  createGenericStore,
21
22
  groupToTwoLevels,
22
23
  utils_layout_getItemsWithoutLinks
23
- } from "../../../chunk-D3WAMOI2.mjs";
24
+ } from "../../../chunk-7C3TEWTW.mjs";
24
25
  import {
25
26
  U0DateToDDMMYYYString,
26
27
  U0MyValidateEmail,
28
+ utils_converter_enumToSelectOptions,
27
29
  utils_file_fileToAQDocumentType
28
- } from "../../../chunk-GHGYRQUR.mjs";
30
+ } from "../../../chunk-2MRECBKN.mjs";
29
31
  import {
30
32
  __objRest,
31
33
  __spreadProps,
@@ -53,7 +55,6 @@ import { useMemo } from "react";
53
55
  // src/modules-features/admin/core/core18256/F_core18256_Select.tsx
54
56
  import { Select } from "@mantine/core";
55
57
  import { useQuery } from "@tanstack/react-query";
56
- import { jsx } from "react/jsx-runtime";
57
58
  function F_core18256_Select(_a) {
58
59
  var _b = _a, { documentTypeId, label = "", dataMapper } = _b, rest = __objRest(_b, ["documentTypeId", "label", "dataMapper"]);
59
60
  var _a2, _b2;
@@ -73,7 +74,7 @@ function F_core18256_Select(_a) {
73
74
  label: `${item.code}-${item.name}`
74
75
  };
75
76
  });
76
- return /* @__PURE__ */ jsx(
77
+ return /* @__PURE__ */ React.createElement(
77
78
  Select,
78
79
  __spreadProps(__spreadValues({
79
80
  label,
@@ -87,12 +88,11 @@ function F_core18256_Select(_a) {
87
88
 
88
89
  // src/modules-features/admin/core/core12196/F_core12196_Create.tsx
89
90
  import { useForm } from "@mantine/form";
90
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
91
91
  function F_core12196_Create() {
92
92
  const form = useForm({
93
93
  mode: "uncontrolled"
94
94
  });
95
- return /* @__PURE__ */ jsxs(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
95
+ return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
96
96
  return await baseAxios_default.post(
97
97
  "/Document/create",
98
98
  __spreadProps(__spreadValues({}, values), {
@@ -100,25 +100,16 @@ function F_core12196_Create() {
100
100
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
101
101
  })
102
102
  );
103
- }, children: [
104
- /* @__PURE__ */ jsx2(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
105
- /* @__PURE__ */ jsx2(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
106
- /* @__PURE__ */ jsx2(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
107
- /* @__PURE__ */ jsx2(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))),
108
- /* @__PURE__ */ jsx2(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
109
- /* @__PURE__ */ jsx2(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
110
- ] });
103
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))), /* @__PURE__ */ React.createElement(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))), /* @__PURE__ */ React.createElement(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy"))));
111
104
  }
112
105
 
113
106
  // src/modules-features/admin/core/core12196/F_core12196_Delete.tsx
114
- import { jsx as jsx3 } from "react/jsx-runtime";
115
107
  function F_core12196_Delete({ id }) {
116
- return /* @__PURE__ */ jsx3(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
108
+ return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
117
109
  }
118
110
 
119
111
  // src/modules-features/admin/core/core12196/F_core12196_Update.tsx
120
112
  import { useForm as useForm2 } from "@mantine/form";
121
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
122
113
  function F_core12196_Update({ values }) {
123
114
  var _a;
124
115
  const form = useForm2({
@@ -127,22 +118,14 @@ function F_core12196_Update({ values }) {
127
118
  promulgateDate: new Date(values.promulgateDate)
128
119
  })
129
120
  });
130
- return /* @__PURE__ */ jsxs2(MyActionIconUpdate, { form, onSubmit: async (values2) => {
121
+ return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
131
122
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
132
123
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
133
124
  }));
134
- }, children: [
135
- /* @__PURE__ */ jsx4(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
136
- /* @__PURE__ */ jsx4(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
137
- /* @__PURE__ */ jsx4(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
138
- /* @__PURE__ */ jsx4(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))),
139
- /* @__PURE__ */ jsx4(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
140
- /* @__PURE__ */ jsx4(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
141
- ] });
125
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))), /* @__PURE__ */ React.createElement(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))), /* @__PURE__ */ React.createElement(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy"))));
142
126
  }
143
127
 
144
128
  // src/modules-features/admin/core/core12196/F_core12196.tsx
145
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
146
129
  function F_core12196() {
147
130
  var _a, _b, _c;
148
131
  const documentAttributeQuery = useQuery2({
@@ -155,11 +138,11 @@ function F_core12196() {
155
138
  });
156
139
  if (documentAttributeQuery.isLoading) return "Loading...";
157
140
  if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
158
- if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ jsx5(Blockquote, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
159
- return /* @__PURE__ */ jsx5(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx5(F_core12196_Create, {}), children: /* @__PURE__ */ jsx5(MyFlexColumn, { children: /* @__PURE__ */ jsx5(Accordion, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
141
+ if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ React.createElement(Blockquote, { color: "yellow" }, "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n");
142
+ return /* @__PURE__ */ React.createElement(MyPageContent, { rightTopBar: /* @__PURE__ */ React.createElement(F_core12196_Create, null) }, /* @__PURE__ */ React.createElement(MyFlexColumn, null, /* @__PURE__ */ React.createElement(Accordion, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
160
143
  var _a2;
161
144
  return (_a2 = item.id) == null ? void 0 : _a2.toString();
162
- }), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx5(SubRead, { name: item.name, documentType: item.id }, idx)) }) }) });
145
+ }), multiple: true }, (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ React.createElement(SubRead, { key: idx, name: item.name, documentType: item.id })))));
163
146
  }
164
147
  function SubRead({ name, documentType }) {
165
148
  const documentQuery = useQuery2({
@@ -186,7 +169,7 @@ function SubRead({ name, documentType }) {
186
169
  {
187
170
  header: "File",
188
171
  accessorFn: (row) => {
189
- return /* @__PURE__ */ jsx5(MyCenterFull, { children: /* @__PURE__ */ jsx5(MyButtonViewPDF, { id: row.id }) });
172
+ return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
190
173
  }
191
174
  }
192
175
  ],
@@ -194,20 +177,14 @@ function SubRead({ name, documentType }) {
194
177
  );
195
178
  if (documentQuery.isLoading) return "Loading...";
196
179
  if (documentQuery.isError) return "Error!";
197
- return /* @__PURE__ */ jsxs3(Accordion.Item, { value: documentType.toString(), children: [
198
- /* @__PURE__ */ jsx5(Accordion.Control, { children: name }),
199
- /* @__PURE__ */ jsx5(Accordion.Panel, { children: /* @__PURE__ */ jsx5(
200
- MyDataTable,
201
- {
202
- columns,
203
- data: documentQuery.data,
204
- renderRowActions: ({ row }) => /* @__PURE__ */ jsxs3(MyCenterFull, { children: [
205
- /* @__PURE__ */ jsx5(F_core12196_Update, { values: row.original }),
206
- /* @__PURE__ */ jsx5(F_core12196_Delete, { id: row.original.id })
207
- ] })
208
- }
209
- ) })
210
- ] });
180
+ return /* @__PURE__ */ React.createElement(Accordion.Item, { value: documentType.toString() }, /* @__PURE__ */ React.createElement(Accordion.Control, null, name), /* @__PURE__ */ React.createElement(Accordion.Panel, null, /* @__PURE__ */ React.createElement(
181
+ MyDataTable,
182
+ {
183
+ columns,
184
+ data: documentQuery.data,
185
+ renderRowActions: ({ row }) => /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(F_core12196_Update, { values: row.original }), /* @__PURE__ */ React.createElement(F_core12196_Delete, { id: row.original.id }))
186
+ }
187
+ )));
211
188
  }
212
189
 
213
190
  // src/modules-features/admin/core/core16209/F_core16209.tsx
@@ -217,12 +194,11 @@ import { useMemo as useMemo2 } from "react";
217
194
  // src/modules-features/admin/core/core16209/F_core16209_Create.tsx
218
195
  import { FileInput } from "@mantine/core";
219
196
  import { useForm as useForm3 } from "@mantine/form";
220
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
221
197
  function F_core16209_Create() {
222
198
  const form = useForm3({
223
199
  mode: "uncontrolled"
224
200
  });
225
- return /* @__PURE__ */ jsxs4(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
201
+ return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
226
202
  return await baseAxios_default.post(
227
203
  "/Document/create",
228
204
  __spreadProps(__spreadValues({}, values), {
@@ -231,25 +207,17 @@ function F_core16209_Create() {
231
207
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
232
208
  })
233
209
  );
234
- }, children: [
235
- /* @__PURE__ */ jsx6(MyTextInput, __spreadValues({ label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u" }, form.getInputProps("departmentName"))),
236
- /* @__PURE__ */ jsx6(MyTextInput, __spreadValues({ label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn" }, form.getInputProps("description"))),
237
- /* @__PURE__ */ jsx6(MyDateInput, __spreadValues({ label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u" }, form.getInputProps("startDate"))),
238
- /* @__PURE__ */ jsx6(MyDateInput, __spreadValues({ label: "Ng\xE0y k\u1EBFt th\xFAc" }, form.getInputProps("endDate"))),
239
- /* @__PURE__ */ jsx6(FileInput, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
240
- ] });
210
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u" }, form.getInputProps("departmentName"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn" }, form.getInputProps("description"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u" }, form.getInputProps("startDate"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y k\u1EBFt th\xFAc" }, form.getInputProps("endDate"))), /* @__PURE__ */ React.createElement(FileInput, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file"))));
241
211
  }
242
212
 
243
213
  // src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
244
- import { jsx as jsx7 } from "react/jsx-runtime";
245
214
  function F_core16209_Delete({ id }) {
246
- return /* @__PURE__ */ jsx7(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
215
+ return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
247
216
  }
248
217
 
249
218
  // src/modules-features/admin/core/core16209/F_core16209_Update.tsx
250
219
  import { FileInput as FileInput2, TextInput } from "@mantine/core";
251
220
  import { useForm as useForm4 } from "@mantine/form";
252
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
253
221
  function F_core16209_Update({ values }) {
254
222
  var _a;
255
223
  const form = useForm4({
@@ -259,20 +227,14 @@ function F_core16209_Update({ values }) {
259
227
  promulgateDate: new Date(values.promulgateDate)
260
228
  })
261
229
  });
262
- return /* @__PURE__ */ jsxs5(MyActionIconUpdate, { form, onSubmit: async (values2) => {
230
+ return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
263
231
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
264
232
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
265
233
  }));
266
- }, children: [
267
- /* @__PURE__ */ jsx8(TextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
268
- /* @__PURE__ */ jsx8(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
269
- /* @__PURE__ */ jsx8(TextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
270
- /* @__PURE__ */ jsx8(FileInput2, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
271
- ] });
234
+ } }, /* @__PURE__ */ React.createElement(TextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))), /* @__PURE__ */ React.createElement(TextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(FileInput2, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file"))));
272
235
  }
273
236
 
274
237
  // src/modules-features/admin/core/core16209/F_core16209.tsx
275
- import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
276
238
  function F_core16209() {
277
239
  const query = useQuery3({
278
240
  queryKey: ["F_core16209_Read"],
@@ -303,7 +265,7 @@ function F_core16209() {
303
265
  {
304
266
  header: "File",
305
267
  accessorFn: (row) => {
306
- return /* @__PURE__ */ jsx9(MyCenterFull, { children: /* @__PURE__ */ jsx9(MyButtonViewPDF, { id: row.id }) });
268
+ return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
307
269
  }
308
270
  }
309
271
  ],
@@ -311,20 +273,17 @@ function F_core16209() {
311
273
  );
312
274
  if (query.isLoading) return "Loading...";
313
275
  if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
314
- return /* @__PURE__ */ jsx9(MyPageContent, { children: /* @__PURE__ */ jsx9(
276
+ return /* @__PURE__ */ React.createElement(MyPageContent, null, /* @__PURE__ */ React.createElement(
315
277
  MyDataTable,
316
278
  {
317
279
  columns,
318
280
  data: query.data,
319
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx9(F_core16209_Create, {}),
281
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ React.createElement(F_core16209_Create, null),
320
282
  renderRowActions: ({ row }) => {
321
- return /* @__PURE__ */ jsxs6(MyCenterFull, { children: [
322
- /* @__PURE__ */ jsx9(F_core16209_Update, { values: row.original }),
323
- /* @__PURE__ */ jsx9(F_core16209_Delete, { id: row.original.id })
324
- ] });
283
+ return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(F_core16209_Update, { values: row.original }), /* @__PURE__ */ React.createElement(F_core16209_Delete, { id: row.original.id }));
325
284
  }
326
285
  }
327
- ) });
286
+ ));
328
287
  }
329
288
 
330
289
  // src/modules-features/admin/core/core18256/F_core18256.tsx
@@ -336,7 +295,6 @@ import { useMemo as useMemo3 } from "react";
336
295
 
337
296
  // src/modules-features/admin/core/core18256/F_core18256_Create.tsx
338
297
  import { useForm as useForm5 } from "@mantine/form";
339
- import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
340
298
  function F_core18256_Create({ documentType }) {
341
299
  const form = useForm5({
342
300
  mode: "uncontrolled",
@@ -349,16 +307,12 @@ function F_core18256_Create({ documentType }) {
349
307
  name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
350
308
  }
351
309
  });
352
- return /* @__PURE__ */ jsxs7(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
353
- /* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
354
- /* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
355
- ] });
310
+ return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values) }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name"))));
356
311
  }
357
312
 
358
313
  // src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
359
- import { jsx as jsx11 } from "react/jsx-runtime";
360
314
  function F_core18256_Delete({ id }) {
361
- return /* @__PURE__ */ jsx11(
315
+ return /* @__PURE__ */ React.createElement(
362
316
  MyActionIconDelete,
363
317
  {
364
318
  onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
@@ -368,19 +322,14 @@ function F_core18256_Delete({ id }) {
368
322
 
369
323
  // src/modules-features/admin/core/core18256/F_core18256_Update.tsx
370
324
  import { useForm as useForm6 } from "@mantine/form";
371
- import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
372
325
  function F_core18256_Update({ values }) {
373
326
  const form = useForm6({
374
327
  initialValues: values
375
328
  });
376
- return /* @__PURE__ */ jsxs8(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
377
- /* @__PURE__ */ jsx12(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
378
- /* @__PURE__ */ jsx12(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
379
- ] });
329
+ return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2) }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name"))));
380
330
  }
381
331
 
382
332
  // src/modules-features/admin/core/core18256/F_core18256_Read.tsx
383
- import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
384
333
  function F_core18256_Read({ documentType }) {
385
334
  const documentAttributeQuery = useQuery4({
386
335
  queryKey: ["F_core18256_Read", documentType],
@@ -405,46 +354,37 @@ function F_core18256_Read({ documentType }) {
405
354
  );
406
355
  if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
407
356
  if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
408
- return /* @__PURE__ */ jsx13(
357
+ return /* @__PURE__ */ React.createElement(
409
358
  MyDataTable,
410
359
  {
411
360
  columns,
412
361
  enableRowNumbers: true,
413
362
  data: documentAttributeQuery.data,
414
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx13(F_core18256_Create, { documentType }),
363
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ React.createElement(F_core18256_Create, { documentType }),
415
364
  renderRowActions: ({ row }) => {
416
- return /* @__PURE__ */ jsxs9(MyCenterFull, { children: [
417
- /* @__PURE__ */ jsx13(F_core18256_Update, { values: row.original }),
418
- /* @__PURE__ */ jsx13(F_core18256_Delete, { id: row.original.id })
419
- ] });
365
+ return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(F_core18256_Update, { values: row.original }), /* @__PURE__ */ React.createElement(F_core18256_Delete, { id: row.original.id }));
420
366
  }
421
367
  }
422
368
  );
423
369
  }
424
370
 
425
371
  // src/modules-features/admin/core/core18256/F_core18256.tsx
426
- import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
427
372
  var tabData = [
428
373
  { label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
429
374
  { label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
430
375
  { label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
431
376
  ];
432
377
  function F_core18256() {
433
- return /* @__PURE__ */ jsx14(MyPageContent, { children: /* @__PURE__ */ jsxs10(MyTab, { tabList: tabData, children: [
434
- /* @__PURE__ */ jsx14(Tabs.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx14(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
435
- /* @__PURE__ */ jsx14(Tabs.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx14(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Workflow }) }),
436
- /* @__PURE__ */ jsx14(Tabs.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx14(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
437
- ] }) });
378
+ return /* @__PURE__ */ React.createElement(MyPageContent, null, /* @__PURE__ */ React.createElement(MyTab, { tabList: tabData }, /* @__PURE__ */ React.createElement(Tabs.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" }, /* @__PURE__ */ React.createElement(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations })), /* @__PURE__ */ React.createElement(Tabs.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" }, /* @__PURE__ */ React.createElement(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Workflow })), /* @__PURE__ */ React.createElement(Tabs.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }, /* @__PURE__ */ React.createElement(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }))));
438
379
  }
439
380
 
440
381
  // src/modules-features/admin/core/core26965/F_core26965_Create.tsx
441
382
  import { useForm as useForm7 } from "@mantine/form";
442
- import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
443
383
  function F_core26965_Create() {
444
384
  const form = useForm7({
445
385
  mode: "uncontrolled"
446
386
  });
447
- return /* @__PURE__ */ jsxs11(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
387
+ return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
448
388
  return await baseAxios_default.post(
449
389
  "/Document/create",
450
390
  __spreadProps(__spreadValues({}, values), {
@@ -452,14 +392,7 @@ function F_core26965_Create() {
452
392
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
453
393
  })
454
394
  );
455
- }, children: [
456
- /* @__PURE__ */ jsx15(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
457
- /* @__PURE__ */ jsx15(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
458
- /* @__PURE__ */ jsx15(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
459
- /* @__PURE__ */ jsx15(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
460
- /* @__PURE__ */ jsx15(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
461
- /* @__PURE__ */ jsx15(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
462
- ] });
395
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))), /* @__PURE__ */ React.createElement(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))), /* @__PURE__ */ React.createElement(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy"))));
463
396
  }
464
397
 
465
398
  // src/modules-features/admin/core/core26965/F_core26965_Read.tsx
@@ -468,14 +401,12 @@ import { useQuery as useQuery5 } from "@tanstack/react-query";
468
401
  import { useMemo as useMemo4 } from "react";
469
402
 
470
403
  // src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
471
- import { jsx as jsx16 } from "react/jsx-runtime";
472
404
  function F_core26965_Delete({ id }) {
473
- return /* @__PURE__ */ jsx16(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
405
+ return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
474
406
  }
475
407
 
476
408
  // src/modules-features/admin/core/core26965/F_core26965_Update.tsx
477
409
  import { useForm as useForm8 } from "@mantine/form";
478
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
479
410
  function F_core26965_Update({ values }) {
480
411
  var _a;
481
412
  const form = useForm8({
@@ -484,22 +415,14 @@ function F_core26965_Update({ values }) {
484
415
  promulgateDate: new Date(values.promulgateDate)
485
416
  })
486
417
  });
487
- return /* @__PURE__ */ jsxs12(MyActionIconUpdate, { form, onSubmit: async (values2) => {
418
+ return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
488
419
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
489
420
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
490
421
  }));
491
- }, children: [
492
- /* @__PURE__ */ jsx17(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
493
- /* @__PURE__ */ jsx17(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
494
- /* @__PURE__ */ jsx17(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
495
- /* @__PURE__ */ jsx17(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
496
- /* @__PURE__ */ jsx17(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
497
- /* @__PURE__ */ jsx17(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
498
- ] });
422
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))), /* @__PURE__ */ React.createElement(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))), /* @__PURE__ */ React.createElement(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy"))));
499
423
  }
500
424
 
501
425
  // src/modules-features/admin/core/core26965/F_core26965_Read.tsx
502
- import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
503
426
  function F_core26965_Read() {
504
427
  var _a, _b, _c;
505
428
  const documentAttributeQuery = useQuery5({
@@ -512,11 +435,11 @@ function F_core26965_Read() {
512
435
  });
513
436
  if (documentAttributeQuery.isLoading) return "Loading...";
514
437
  if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
515
- if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ jsx18(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
516
- return /* @__PURE__ */ jsx18(MyFlexColumn, { children: /* @__PURE__ */ jsx18(Accordion2, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
438
+ if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ React.createElement(Blockquote2, { color: "yellow" }, "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n");
439
+ return /* @__PURE__ */ React.createElement(MyFlexColumn, null, /* @__PURE__ */ React.createElement(Accordion2, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
517
440
  var _a2;
518
441
  return (_a2 = item.id) == null ? void 0 : _a2.toString();
519
- }), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx18(SubRead2, { name: item.name, documentType: item.id }, idx)) }) });
442
+ }), multiple: true }, (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ React.createElement(SubRead2, { key: idx, name: item.name, documentType: item.id }))));
520
443
  }
521
444
  function SubRead2({ name, documentType }) {
522
445
  const documentQuery = useQuery5({
@@ -543,7 +466,7 @@ function SubRead2({ name, documentType }) {
543
466
  {
544
467
  header: "File",
545
468
  accessorFn: (row) => {
546
- return /* @__PURE__ */ jsx18(MyCenterFull, { children: /* @__PURE__ */ jsx18(MyButtonViewPDF, { id: row.id }) });
469
+ return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
547
470
  }
548
471
  }
549
472
  ],
@@ -551,36 +474,28 @@ function SubRead2({ name, documentType }) {
551
474
  );
552
475
  if (documentQuery.isLoading) return "Loading...";
553
476
  if (documentQuery.isError) return "Error!";
554
- return /* @__PURE__ */ jsxs13(Accordion2.Item, { value: documentType.toString(), children: [
555
- /* @__PURE__ */ jsx18(Accordion2.Control, { children: name }),
556
- /* @__PURE__ */ jsx18(Accordion2.Panel, { children: /* @__PURE__ */ jsx18(
557
- MyDataTable,
558
- {
559
- columns,
560
- data: documentQuery.data,
561
- renderRowActions: ({ row }) => /* @__PURE__ */ jsxs13(MyCenterFull, { children: [
562
- /* @__PURE__ */ jsx18(F_core26965_Update, { values: row.original }),
563
- /* @__PURE__ */ jsx18(F_core26965_Delete, { id: row.original.id })
564
- ] })
565
- }
566
- ) })
567
- ] });
477
+ return /* @__PURE__ */ React.createElement(Accordion2.Item, { value: documentType.toString() }, /* @__PURE__ */ React.createElement(Accordion2.Control, null, name), /* @__PURE__ */ React.createElement(Accordion2.Panel, null, /* @__PURE__ */ React.createElement(
478
+ MyDataTable,
479
+ {
480
+ columns,
481
+ data: documentQuery.data,
482
+ renderRowActions: ({ row }) => /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(F_core26965_Update, { values: row.original }), /* @__PURE__ */ React.createElement(F_core26965_Delete, { id: row.original.id }))
483
+ }
484
+ )));
568
485
  }
569
486
 
570
487
  // src/modules-features/admin/core/core26965/F_core26965.tsx
571
- import { jsx as jsx19 } from "react/jsx-runtime";
572
488
  function F_core26965() {
573
- return /* @__PURE__ */ jsx19(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx19(F_core26965_Create, {}), children: /* @__PURE__ */ jsx19(F_core26965_Read, {}) });
489
+ return /* @__PURE__ */ React.createElement(MyPageContent, { rightTopBar: /* @__PURE__ */ React.createElement(F_core26965_Create, null) }, /* @__PURE__ */ React.createElement(F_core26965_Read, null));
574
490
  }
575
491
 
576
492
  // src/modules-features/admin/core/core27311/F_core27311_Create.tsx
577
493
  import { useForm as useForm9 } from "@mantine/form";
578
- import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
579
494
  function F_core27311_Create() {
580
495
  const form = useForm9({
581
496
  mode: "uncontrolled"
582
497
  });
583
- return /* @__PURE__ */ jsxs14(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
498
+ return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
584
499
  return await baseAxios_default.post(
585
500
  "/Document/create",
586
501
  __spreadProps(__spreadValues({}, values), {
@@ -588,14 +503,7 @@ function F_core27311_Create() {
588
503
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
589
504
  })
590
505
  );
591
- }, children: [
592
- /* @__PURE__ */ jsx20(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
593
- /* @__PURE__ */ jsx20(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
594
- /* @__PURE__ */ jsx20(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
595
- /* @__PURE__ */ jsx20(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Workflow }, form.getInputProps("documentAttributeId"))),
596
- /* @__PURE__ */ jsx20(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
597
- /* @__PURE__ */ jsx20(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
598
- ] });
506
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Workflow }, form.getInputProps("documentAttributeId"))), /* @__PURE__ */ React.createElement(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))), /* @__PURE__ */ React.createElement(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy"))));
599
507
  }
600
508
 
601
509
  // src/modules-features/admin/core/core27311/F_core27311_Read.tsx
@@ -604,14 +512,12 @@ import { useQuery as useQuery6 } from "@tanstack/react-query";
604
512
  import { useMemo as useMemo5 } from "react";
605
513
 
606
514
  // src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
607
- import { jsx as jsx21 } from "react/jsx-runtime";
608
515
  function F_core27311_Delete({ id }) {
609
- return /* @__PURE__ */ jsx21(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
516
+ return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
610
517
  }
611
518
 
612
519
  // src/modules-features/admin/core/core27311/F_core27311_Update.tsx
613
520
  import { useForm as useForm10 } from "@mantine/form";
614
- import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
615
521
  function F_core27311_Update({ values }) {
616
522
  var _a;
617
523
  const form = useForm10({
@@ -620,22 +526,14 @@ function F_core27311_Update({ values }) {
620
526
  promulgateDate: new Date(values.promulgateDate)
621
527
  })
622
528
  });
623
- return /* @__PURE__ */ jsxs15(MyActionIconUpdate, { form, onSubmit: async (values2) => {
529
+ return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
624
530
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
625
531
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
626
532
  }));
627
- }, children: [
628
- /* @__PURE__ */ jsx22(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
629
- /* @__PURE__ */ jsx22(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
630
- /* @__PURE__ */ jsx22(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
631
- /* @__PURE__ */ jsx22(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
632
- /* @__PURE__ */ jsx22(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
633
- /* @__PURE__ */ jsx22(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
634
- ] });
533
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))), /* @__PURE__ */ React.createElement(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))), /* @__PURE__ */ React.createElement(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy"))));
635
534
  }
636
535
 
637
536
  // src/modules-features/admin/core/core27311/F_core27311_Read.tsx
638
- import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
639
537
  function F_core27311_Read() {
640
538
  var _a, _b, _c;
641
539
  const documentAttributeQuery = useQuery6({
@@ -648,11 +546,11 @@ function F_core27311_Read() {
648
546
  });
649
547
  if (documentAttributeQuery.isLoading) return "Loading...";
650
548
  if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
651
- if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ jsx23(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
652
- return /* @__PURE__ */ jsx23(MyFlexColumn, { children: /* @__PURE__ */ jsx23(Accordion3, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
549
+ if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ React.createElement(Blockquote3, { color: "yellow" }, "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n");
550
+ return /* @__PURE__ */ React.createElement(MyFlexColumn, null, /* @__PURE__ */ React.createElement(Accordion3, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
653
551
  var _a2;
654
552
  return (_a2 = item.id) == null ? void 0 : _a2.toString();
655
- }), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx23(SubRead3, { name: item.name, documentType: item.id }, idx)) }) });
553
+ }), multiple: true }, (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ React.createElement(SubRead3, { key: idx, name: item.name, documentType: item.id }))));
656
554
  }
657
555
  function SubRead3({ name, documentType }) {
658
556
  const documentQuery = useQuery6({
@@ -679,7 +577,7 @@ function SubRead3({ name, documentType }) {
679
577
  {
680
578
  header: "File",
681
579
  accessorFn: (row) => {
682
- return /* @__PURE__ */ jsx23(MyCenterFull, { children: /* @__PURE__ */ jsx23(MyButtonViewPDF, { id: row.id }) });
580
+ return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
683
581
  }
684
582
  }
685
583
  ],
@@ -687,26 +585,19 @@ function SubRead3({ name, documentType }) {
687
585
  );
688
586
  if (documentQuery.isLoading) return "Loading...";
689
587
  if (documentQuery.isError) return "Error!";
690
- return /* @__PURE__ */ jsxs16(Accordion3.Item, { value: documentType.toString(), children: [
691
- /* @__PURE__ */ jsx23(Accordion3.Control, { children: name }),
692
- /* @__PURE__ */ jsx23(Accordion3.Panel, { children: /* @__PURE__ */ jsx23(
693
- MyDataTable,
694
- {
695
- columns,
696
- data: documentQuery.data,
697
- renderRowActions: ({ row }) => /* @__PURE__ */ jsxs16(MyCenterFull, { children: [
698
- /* @__PURE__ */ jsx23(F_core27311_Update, { values: row.original }),
699
- /* @__PURE__ */ jsx23(F_core27311_Delete, { id: row.original.id })
700
- ] })
701
- }
702
- ) })
703
- ] });
588
+ return /* @__PURE__ */ React.createElement(Accordion3.Item, { value: documentType.toString() }, /* @__PURE__ */ React.createElement(Accordion3.Control, null, name), /* @__PURE__ */ React.createElement(Accordion3.Panel, null, /* @__PURE__ */ React.createElement(
589
+ MyDataTable,
590
+ {
591
+ columns,
592
+ data: documentQuery.data,
593
+ renderRowActions: ({ row }) => /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(F_core27311_Update, { values: row.original }), /* @__PURE__ */ React.createElement(F_core27311_Delete, { id: row.original.id }))
594
+ }
595
+ )));
704
596
  }
705
597
 
706
598
  // src/modules-features/admin/core/core27311/F_core27311.tsx
707
- import { jsx as jsx24 } from "react/jsx-runtime";
708
599
  function F_core27311() {
709
- return /* @__PURE__ */ jsx24(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx24(F_core27311_Create, {}), children: /* @__PURE__ */ jsx24(F_core27311_Read, {}) });
600
+ return /* @__PURE__ */ React.createElement(MyPageContent, { rightTopBar: /* @__PURE__ */ React.createElement(F_core27311_Create, null) }, /* @__PURE__ */ React.createElement(F_core27311_Read, null));
710
601
  }
711
602
 
712
603
  // src/modules-features/admin/core/core38677/F_core38677.tsx
@@ -766,7 +657,6 @@ function utils_core83092_mergePage(arr1, arr2) {
766
657
  }
767
658
 
768
659
  // src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
769
- import { jsx as jsx25 } from "react/jsx-runtime";
770
660
  function F_core38677_ReadUser() {
771
661
  const store = useS_core83092();
772
662
  const query = useQ_Account_GetAdminAccount();
@@ -799,7 +689,7 @@ function F_core38677_ReadUser() {
799
689
  }, [query.data]);
800
690
  if (query.isLoading) return "Loading...";
801
691
  if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
802
- return /* @__PURE__ */ jsx25(Container, { fluid: true, children: /* @__PURE__ */ jsx25(
692
+ return /* @__PURE__ */ React.createElement(Container, { fluid: true }, /* @__PURE__ */ React.createElement(
803
693
  MyDataTable,
804
694
  {
805
695
  columns,
@@ -817,7 +707,7 @@ function F_core38677_ReadUser() {
817
707
  }),
818
708
  state: rowSelection
819
709
  }
820
- ) });
710
+ ));
821
711
  }
822
712
  function useQ_Account_GetAdminAccount() {
823
713
  const query = useQuery7({
@@ -835,7 +725,6 @@ function useQ_Account_GetAdminAccount() {
835
725
  // src/modules-features/admin/core/core38677/F_core38677_Save.tsx
836
726
  import { useMutation } from "@tanstack/react-query";
837
727
  import { useEffect as useEffect2, useState as useState2 } from "react";
838
- import { jsx as jsx26 } from "react/jsx-runtime";
839
728
  function F_core38677_Save() {
840
729
  const store = useS_core83092();
841
730
  const disable = useState2(false);
@@ -864,7 +753,7 @@ function F_core38677_Save() {
864
753
  }
865
754
  disable[1](false);
866
755
  }, [store.state.rolePermissions]);
867
- return /* @__PURE__ */ jsx26(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
756
+ return /* @__PURE__ */ React.createElement(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
868
757
  }
869
758
 
870
759
  // src/data/menuData.ts
@@ -879,7 +768,8 @@ var menuData = [
879
768
  { name: "Document categories", label: "Danh m\u1EE5c lo\u1EA1i v\u0103n b\u1EA3n", link: "core18256" },
880
769
  { pageId: 4, name: "Security regulations", label: "Quy \u0111\u1ECBnh an to\xE0n/ b\u1EA3o m\u1EADt th\xF4ng tin", link: "core76318", status: "Default" },
881
770
  { pageId: 5, name: "System updates", label: "Th\xF4ng tin x\xE2y d\u1EF1ng, c\u1EA3i ti\u1EBFn, b\u1EA3o tr\xEC h\u1EC7 th\u1ED1ng", link: "core16209", status: "Default" },
882
- { pageId: 6, name: "User guide", label: "T\xE0i li\u1EC7u h\u01B0\u1EDBng d\u1EABn s\u1EED d\u1EE5ng", link: "core40207", status: "Default" }
771
+ { pageId: 6, name: "User guide", label: "T\xE0i li\u1EC7u h\u01B0\u1EDBng d\u1EABn s\u1EED d\u1EE5ng", link: "core40207", status: "Default" },
772
+ { pageId: 0, name: "Ch\u01B0a \u0111\u1EB7t", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "core64229", status: "Default" }
883
773
  ]
884
774
  },
885
775
  {
@@ -1004,8 +894,7 @@ var menuData = [
1004
894
  import { Checkbox, Flex, ScrollArea, Table, Text } from "@mantine/core";
1005
895
  import { IconEdit, IconEyeUp, IconFileExport, IconPlus, IconPrinter, IconTrash } from "@tabler/icons-react";
1006
896
  import { useQuery as useQuery8 } from "@tanstack/react-query";
1007
- import React, { useEffect as useEffect3, useState as useState3 } from "react";
1008
- import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
897
+ import React2, { useEffect as useEffect3, useState as useState3 } from "react";
1009
898
  var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
1010
899
  function F_core38677_ViewMenuPermissions() {
1011
900
  var _a, _b;
@@ -1020,173 +909,107 @@ function F_core38677_ViewMenuPermissions() {
1020
909
  store.setProperty("rolePermissions", query.data);
1021
910
  }, [query.data]);
1022
911
  if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
1023
- return /* @__PURE__ */ jsx27(ScrollArea.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs17(Table, { children: [
1024
- /* @__PURE__ */ jsx27(
1025
- Table.Thead,
1026
- {
1027
- bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
1028
- style: {
1029
- position: "sticky",
1030
- top: 0,
1031
- zIndex: 1,
1032
- boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
1033
- border: "1px solid var(--mantine-color-gray-4)"
1034
- },
1035
- children: /* @__PURE__ */ jsxs17(Table.Tr, { children: [
1036
- /* @__PURE__ */ jsx27(Table.Th, { children: title }),
1037
- /* @__PURE__ */ jsx27(Table.Th, { children: /* @__PURE__ */ jsxs17(Flex, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1038
- /* @__PURE__ */ jsx27(Checkbox, { checked: store.isAllPermission("isRead"), onChange: (e) => {
1039
- store.toogleAllPermissionWithType("isRead", e.target.checked);
1040
- } }),
1041
- /* @__PURE__ */ jsxs17(MyFlexRow, { gap: 3, children: [
1042
- "Xem",
1043
- /* @__PURE__ */ jsx27(IconEyeUp, { color: "gray" })
1044
- ] })
1045
- ] }) }),
1046
- /* @__PURE__ */ jsx27(Table.Th, { children: /* @__PURE__ */ jsxs17(Flex, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1047
- /* @__PURE__ */ jsx27(Checkbox, { checked: store.isAllPermission("isCreate"), onChange: (e) => {
1048
- store.toogleAllPermissionWithType("isCreate", e.target.checked);
1049
- } }),
1050
- /* @__PURE__ */ jsxs17(MyFlexRow, { gap: 3, children: [
1051
- "Th\xEAm",
1052
- /* @__PURE__ */ jsx27(IconPlus, { color: "blue" })
1053
- ] })
1054
- ] }) }),
1055
- /* @__PURE__ */ jsx27(Table.Th, { children: /* @__PURE__ */ jsxs17(Flex, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1056
- /* @__PURE__ */ jsx27(Checkbox, { checked: store.isAllPermission("isUpdate"), onChange: (e) => {
1057
- store.toogleAllPermissionWithType("isUpdate", e.target.checked);
1058
- } }),
1059
- /* @__PURE__ */ jsxs17(MyFlexRow, { gap: 3, children: [
1060
- "S\u1EEDa",
1061
- /* @__PURE__ */ jsx27(IconEdit, { color: "var(--mantine-color-yellow-8)" })
1062
- ] })
1063
- ] }) }),
1064
- /* @__PURE__ */ jsx27(Table.Th, { children: /* @__PURE__ */ jsxs17(Flex, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1065
- /* @__PURE__ */ jsx27(Checkbox, { checked: store.isAllPermission("isDelete"), onChange: (e) => {
1066
- store.toogleAllPermissionWithType("isDelete", e.target.checked);
1067
- } }),
1068
- /* @__PURE__ */ jsxs17(MyFlexRow, { gap: 3, children: [
1069
- "X\xF3a",
1070
- /* @__PURE__ */ jsx27(IconTrash, { color: "var(--mantine-color-red-8)" })
1071
- ] })
1072
- ] }) }),
1073
- /* @__PURE__ */ jsx27(Table.Th, { children: /* @__PURE__ */ jsxs17(Flex, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1074
- /* @__PURE__ */ jsx27(Checkbox, { checked: store.isAllPermission("isPrint"), onChange: (e) => {
1075
- store.toogleAllPermissionWithType("isPrint", e.target.checked);
1076
- } }),
1077
- /* @__PURE__ */ jsxs17(MyFlexRow, { gap: 3, children: [
1078
- "In",
1079
- /* @__PURE__ */ jsx27(IconPrinter, { color: "var(--mantine-color-cyan-8)" })
1080
- ] })
1081
- ] }) }),
1082
- /* @__PURE__ */ jsx27(Table.Th, { children: /* @__PURE__ */ jsxs17(Flex, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1083
- /* @__PURE__ */ jsx27(Checkbox, { checked: store.isAllPermission("isExport"), onChange: (e) => {
1084
- store.toogleAllPermissionWithType("isExport", e.target.checked);
1085
- } }),
1086
- /* @__PURE__ */ jsxs17(MyFlexRow, { gap: 3, children: [
1087
- "Xu\u1EA5t",
1088
- /* @__PURE__ */ jsx27(IconFileExport, { color: "var(--mantine-color-green-8)" })
1089
- ] })
1090
- ] }) })
1091
- ] })
912
+ return /* @__PURE__ */ React2.createElement(ScrollArea.Autosize, { h: "70vh" }, /* @__PURE__ */ React2.createElement(Table, null, /* @__PURE__ */ React2.createElement(
913
+ Table.Thead,
914
+ {
915
+ bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
916
+ style: {
917
+ position: "sticky",
918
+ top: 0,
919
+ zIndex: 1,
920
+ boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
921
+ border: "1px solid var(--mantine-color-gray-4)"
1092
922
  }
1093
- ),
1094
- /* @__PURE__ */ jsx27(Table.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
1095
- if (item.links == void 0) return /* @__PURE__ */ jsxs17(Table.Tr, { children: [
1096
- /* @__PURE__ */ jsx27(Table.Td, { children: item.label }),
1097
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(Checkbox, {}) }) }),
1098
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(Checkbox, {}) }) }),
1099
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(Checkbox, {}) }) }),
1100
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(Checkbox, {}) }) }),
1101
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(Checkbox, {}) }) }),
1102
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(Checkbox, {}) }) })
1103
- ] }, idx);
1104
- return /* @__PURE__ */ jsxs17(React.Fragment, { children: [
1105
- /* @__PURE__ */ jsx27(Table.Tr, { children: /* @__PURE__ */ jsx27(
1106
- Table.Td,
923
+ },
924
+ /* @__PURE__ */ React2.createElement(Table.Tr, null, /* @__PURE__ */ React2.createElement(Table.Th, null, title), /* @__PURE__ */ React2.createElement(Table.Th, null, /* @__PURE__ */ React2.createElement(Flex, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React2.createElement(Checkbox, { checked: store.isAllPermission("isRead"), onChange: (e) => {
925
+ store.toogleAllPermissionWithType("isRead", e.target.checked);
926
+ } }), /* @__PURE__ */ React2.createElement(MyFlexRow, { gap: 3 }, "Xem", /* @__PURE__ */ React2.createElement(IconEyeUp, { color: "gray" })))), /* @__PURE__ */ React2.createElement(Table.Th, null, /* @__PURE__ */ React2.createElement(Flex, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React2.createElement(Checkbox, { checked: store.isAllPermission("isCreate"), onChange: (e) => {
927
+ store.toogleAllPermissionWithType("isCreate", e.target.checked);
928
+ } }), /* @__PURE__ */ React2.createElement(MyFlexRow, { gap: 3 }, "Th\xEAm", /* @__PURE__ */ React2.createElement(IconPlus, { color: "blue" })))), /* @__PURE__ */ React2.createElement(Table.Th, null, /* @__PURE__ */ React2.createElement(Flex, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React2.createElement(Checkbox, { checked: store.isAllPermission("isUpdate"), onChange: (e) => {
929
+ store.toogleAllPermissionWithType("isUpdate", e.target.checked);
930
+ } }), /* @__PURE__ */ React2.createElement(MyFlexRow, { gap: 3 }, "S\u1EEDa", /* @__PURE__ */ React2.createElement(IconEdit, { color: "var(--mantine-color-yellow-8)" })))), /* @__PURE__ */ React2.createElement(Table.Th, null, /* @__PURE__ */ React2.createElement(Flex, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React2.createElement(Checkbox, { checked: store.isAllPermission("isDelete"), onChange: (e) => {
931
+ store.toogleAllPermissionWithType("isDelete", e.target.checked);
932
+ } }), /* @__PURE__ */ React2.createElement(MyFlexRow, { gap: 3 }, "X\xF3a", /* @__PURE__ */ React2.createElement(IconTrash, { color: "var(--mantine-color-red-8)" })))), /* @__PURE__ */ React2.createElement(Table.Th, null, /* @__PURE__ */ React2.createElement(Flex, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React2.createElement(Checkbox, { checked: store.isAllPermission("isPrint"), onChange: (e) => {
933
+ store.toogleAllPermissionWithType("isPrint", e.target.checked);
934
+ } }), /* @__PURE__ */ React2.createElement(MyFlexRow, { gap: 3 }, "In", /* @__PURE__ */ React2.createElement(IconPrinter, { color: "var(--mantine-color-cyan-8)" })))), /* @__PURE__ */ React2.createElement(Table.Th, null, /* @__PURE__ */ React2.createElement(Flex, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React2.createElement(Checkbox, { checked: store.isAllPermission("isExport"), onChange: (e) => {
935
+ store.toogleAllPermissionWithType("isExport", e.target.checked);
936
+ } }), /* @__PURE__ */ React2.createElement(MyFlexRow, { gap: 3 }, "Xu\u1EA5t", /* @__PURE__ */ React2.createElement(IconFileExport, { color: "var(--mantine-color-green-8)" })))))
937
+ ), /* @__PURE__ */ React2.createElement(Table.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))" }, (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
938
+ if (item.links == void 0) return /* @__PURE__ */ React2.createElement(Table.Tr, { key: idx }, /* @__PURE__ */ React2.createElement(Table.Td, null, item.label), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(Checkbox, null))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(Checkbox, null))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(Checkbox, null))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(Checkbox, null))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(Checkbox, null))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(Checkbox, null))));
939
+ return /* @__PURE__ */ React2.createElement(React2.Fragment, { key: idx }, /* @__PURE__ */ React2.createElement(Table.Tr, { key: item.label }, /* @__PURE__ */ React2.createElement(
940
+ Table.Td,
941
+ {
942
+ colSpan: 7,
943
+ bg: OBJECT_COlORS.mantineBackgroundBlueLight
944
+ },
945
+ /* @__PURE__ */ React2.createElement(Text, { fs: "oblique", size: "sm", fw: "bold" }, item.label)
946
+ )), item.links.map(
947
+ (item2, idx2) => {
948
+ var _a2, _b2, _c, _d, _e, _f;
949
+ return /* @__PURE__ */ React2.createElement(Table.Tr, { key: idx2 }, /* @__PURE__ */ React2.createElement(Table.Td, null, item2.label), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
950
+ Checkbox,
1107
951
  {
1108
- colSpan: 7,
1109
- bg: OBJECT_COlORS.mantineBackgroundBlueLight,
1110
- children: /* @__PURE__ */ jsx27(Text, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
952
+ checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
953
+ onChange: (e) => {
954
+ store.updatePermission(item2.pageId, {
955
+ isRead: e.target.checked
956
+ });
957
+ }
958
+ }
959
+ ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
960
+ Checkbox,
961
+ {
962
+ checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
963
+ onChange: (e) => {
964
+ store.updatePermission(item2.pageId, {
965
+ isCreate: e.target.checked
966
+ });
967
+ }
968
+ }
969
+ ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
970
+ Checkbox,
971
+ {
972
+ checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
973
+ onChange: (e) => {
974
+ store.updatePermission(item2.pageId, {
975
+ isUpdate: e.target.checked
976
+ });
977
+ }
978
+ }
979
+ ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
980
+ Checkbox,
981
+ {
982
+ checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
983
+ onChange: (e) => {
984
+ store.updatePermission(item2.pageId, {
985
+ isDelete: e.target.checked
986
+ });
987
+ }
988
+ }
989
+ ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
990
+ Checkbox,
991
+ {
992
+ checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
993
+ onChange: (e) => {
994
+ store.updatePermission(item2.pageId, {
995
+ isPrint: e.target.checked
996
+ });
997
+ }
1111
998
  }
1112
- ) }, item.label),
1113
- item.links.map(
1114
- (item2, idx2) => {
1115
- var _a2, _b2, _c, _d, _e, _f;
1116
- return /* @__PURE__ */ jsxs17(Table.Tr, { children: [
1117
- /* @__PURE__ */ jsx27(Table.Td, { children: item2.label }),
1118
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(
1119
- Checkbox,
1120
- {
1121
- checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
1122
- onChange: (e) => {
1123
- store.updatePermission(item2.pageId, {
1124
- isRead: e.target.checked
1125
- });
1126
- }
1127
- }
1128
- ) }) }),
1129
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(
1130
- Checkbox,
1131
- {
1132
- checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
1133
- onChange: (e) => {
1134
- store.updatePermission(item2.pageId, {
1135
- isCreate: e.target.checked
1136
- });
1137
- }
1138
- }
1139
- ) }) }),
1140
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(
1141
- Checkbox,
1142
- {
1143
- checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
1144
- onChange: (e) => {
1145
- store.updatePermission(item2.pageId, {
1146
- isUpdate: e.target.checked
1147
- });
1148
- }
1149
- }
1150
- ) }) }),
1151
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(
1152
- Checkbox,
1153
- {
1154
- checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
1155
- onChange: (e) => {
1156
- store.updatePermission(item2.pageId, {
1157
- isDelete: e.target.checked
1158
- });
1159
- }
1160
- }
1161
- ) }) }),
1162
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(
1163
- Checkbox,
1164
- {
1165
- checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
1166
- onChange: (e) => {
1167
- store.updatePermission(item2.pageId, {
1168
- isPrint: e.target.checked
1169
- });
1170
- }
1171
- }
1172
- ) }) }),
1173
- /* @__PURE__ */ jsx27(Table.Td, { children: /* @__PURE__ */ jsx27(MyCenterFull, { children: /* @__PURE__ */ jsx27(
1174
- Checkbox,
1175
- {
1176
- checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
1177
- onChange: (e) => {
1178
- store.updatePermission(item2.pageId, {
1179
- isExport: e.target.checked
1180
- });
1181
- }
1182
- }
1183
- ) }) })
1184
- ] }, idx2);
999
+ ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
1000
+ Checkbox,
1001
+ {
1002
+ checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
1003
+ onChange: (e) => {
1004
+ store.updatePermission(item2.pageId, {
1005
+ isExport: e.target.checked
1006
+ });
1007
+ }
1185
1008
  }
1186
- )
1187
- ] }, idx);
1188
- }) })
1189
- ] }) });
1009
+ ))));
1010
+ }
1011
+ ));
1012
+ }))));
1190
1013
  }
1191
1014
  function useGetUserPermission() {
1192
1015
  const store = useS_core83092();
@@ -1225,9 +1048,6 @@ function useGetUserPermission() {
1225
1048
  return query;
1226
1049
  }
1227
1050
 
1228
- // src/modules-features/admin/core/core38677/F_core38677.tsx
1229
- import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
1230
-
1231
1051
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
1232
1052
  import { useQuery as useQuery9 } from "@tanstack/react-query";
1233
1053
  import { useMemo as useMemo7 } from "react";
@@ -1235,12 +1055,11 @@ import { useMemo as useMemo7 } from "react";
1235
1055
  // src/modules-features/admin/core/core40207/F_core40207_Create.tsx
1236
1056
  import { FileInput as FileInput3 } from "@mantine/core";
1237
1057
  import { useForm as useForm11 } from "@mantine/form";
1238
- import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
1239
1058
  function F_core40207_Create() {
1240
1059
  const form = useForm11({
1241
1060
  mode: "uncontrolled"
1242
1061
  });
1243
- return /* @__PURE__ */ jsxs19(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
1062
+ return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
1244
1063
  return await baseAxios_default.post(
1245
1064
  "/Document/create",
1246
1065
  __spreadProps(__spreadValues({}, values), {
@@ -1249,23 +1068,17 @@ function F_core40207_Create() {
1249
1068
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
1250
1069
  })
1251
1070
  );
1252
- }, children: [
1253
- /* @__PURE__ */ jsx29(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))),
1254
- /* @__PURE__ */ jsx29(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
1255
- /* @__PURE__ */ jsx29(FileInput3, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
1256
- ] });
1071
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(FileInput3, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file"))));
1257
1072
  }
1258
1073
 
1259
1074
  // src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
1260
- import { jsx as jsx30 } from "react/jsx-runtime";
1261
1075
  function F_core40207_Delete({ id }) {
1262
- return /* @__PURE__ */ jsx30(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
1076
+ return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
1263
1077
  }
1264
1078
 
1265
1079
  // src/modules-features/admin/core/core40207/F_core40207_Update.tsx
1266
1080
  import { FileInput as FileInput4 } from "@mantine/core";
1267
1081
  import { useForm as useForm12 } from "@mantine/form";
1268
- import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
1269
1082
  function F_core40207_Update({ values }) {
1270
1083
  var _a;
1271
1084
  const form = useForm12({
@@ -1275,19 +1088,14 @@ function F_core40207_Update({ values }) {
1275
1088
  promulgateDate: new Date(values.promulgateDate)
1276
1089
  })
1277
1090
  });
1278
- return /* @__PURE__ */ jsxs20(MyActionIconUpdate, { form, onSubmit: async (values2) => {
1091
+ return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
1279
1092
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
1280
1093
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
1281
1094
  }));
1282
- }, children: [
1283
- /* @__PURE__ */ jsx31(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))),
1284
- /* @__PURE__ */ jsx31(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
1285
- /* @__PURE__ */ jsx31(FileInput4, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
1286
- ] });
1095
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(FileInput4, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file"))));
1287
1096
  }
1288
1097
 
1289
1098
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
1290
- import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
1291
1099
  function F_core40207_Read() {
1292
1100
  const query = useQuery9({
1293
1101
  queryKey: ["F_core40207_Read"],
@@ -1310,7 +1118,7 @@ function F_core40207_Read() {
1310
1118
  {
1311
1119
  header: "File",
1312
1120
  accessorFn: (row) => {
1313
- return /* @__PURE__ */ jsx32(MyCenterFull, { children: /* @__PURE__ */ jsx32(MyButtonViewPDF, { id: row.id }) });
1121
+ return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
1314
1122
  }
1315
1123
  }
1316
1124
  ],
@@ -1318,26 +1126,22 @@ function F_core40207_Read() {
1318
1126
  );
1319
1127
  if (query.isLoading) return "Loading...";
1320
1128
  if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
1321
- return /* @__PURE__ */ jsx32(
1129
+ return /* @__PURE__ */ React.createElement(
1322
1130
  MyDataTable,
1323
1131
  {
1324
1132
  columns,
1325
1133
  data: query.data,
1326
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx32(F_core40207_Create, {}),
1134
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ React.createElement(F_core40207_Create, null),
1327
1135
  renderRowActions: ({ row }) => {
1328
- return /* @__PURE__ */ jsxs21(MyCenterFull, { children: [
1329
- /* @__PURE__ */ jsx32(F_core40207_Update, { values: row.original }),
1330
- /* @__PURE__ */ jsx32(F_core40207_Delete, { id: row.original.id })
1331
- ] });
1136
+ return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(F_core40207_Update, { values: row.original }), /* @__PURE__ */ React.createElement(F_core40207_Delete, { id: row.original.id }));
1332
1137
  }
1333
1138
  }
1334
1139
  );
1335
1140
  }
1336
1141
 
1337
1142
  // src/modules-features/admin/core/core40207/F_core40207.tsx
1338
- import { jsx as jsx33 } from "react/jsx-runtime";
1339
1143
  function F_core40207() {
1340
- return /* @__PURE__ */ jsx33(MyPageContent, { children: /* @__PURE__ */ jsx33(F_core40207_Read, {}) });
1144
+ return /* @__PURE__ */ React.createElement(MyPageContent, null, /* @__PURE__ */ React.createElement(F_core40207_Read, null));
1341
1145
  }
1342
1146
 
1343
1147
  // src/modules-features/admin/core/core47643/F_core47643_Read.tsx
@@ -1346,10 +1150,9 @@ import { useQuery as useQuery10 } from "@tanstack/react-query";
1346
1150
  import { useMemo as useMemo8 } from "react";
1347
1151
 
1348
1152
  // src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
1349
- import { jsx as jsx34 } from "react/jsx-runtime";
1350
1153
  var ENDPOINT = "/Role/Delete";
1351
1154
  function F_core47643_Delete({ values }) {
1352
- return /* @__PURE__ */ jsx34(
1155
+ return /* @__PURE__ */ React.createElement(
1353
1156
  MyActionIconDelete,
1354
1157
  {
1355
1158
  contextData: values.code,
@@ -1360,28 +1163,20 @@ function F_core47643_Delete({ values }) {
1360
1163
 
1361
1164
  // src/modules-features/admin/core/core47643/F_core47643_Form.tsx
1362
1165
  import { useForm as useForm13 } from "@mantine/form";
1363
- import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
1364
1166
  function F_core47643_Form({ values }) {
1365
1167
  const form = useForm13({
1366
1168
  mode: "uncontrolled",
1367
1169
  initialValues: values
1368
1170
  });
1369
- if (values) return /* @__PURE__ */ jsxs22(MyActionIconUpdate, { form, onSubmit: async () => {
1171
+ if (values) return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async () => {
1370
1172
  return await baseAxios_default.post("/Role/Update", form.getValues());
1371
- }, children: [
1372
- /* @__PURE__ */ jsx35(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
1373
- /* @__PURE__ */ jsx35(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
1374
- ] });
1375
- return /* @__PURE__ */ jsxs22(MyButtonCreate, { form, onSubmit: async () => {
1173
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name"))));
1174
+ return /* @__PURE__ */ React.createElement(MyButtonCreate, { form, onSubmit: async () => {
1376
1175
  return await baseAxios_default.post("/Role/Create", form.getValues());
1377
- }, children: [
1378
- /* @__PURE__ */ jsx35(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
1379
- /* @__PURE__ */ jsx35(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
1380
- ] });
1176
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name"))));
1381
1177
  }
1382
1178
 
1383
1179
  // src/modules-features/admin/core/core47643/F_core47643_Read.tsx
1384
- import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
1385
1180
  function F_core47643_Read() {
1386
1181
  const query = useQ_core47643_GetAdminRole();
1387
1182
  const columns = useMemo8(() => [
@@ -1396,16 +1191,13 @@ function F_core47643_Read() {
1396
1191
  ], []);
1397
1192
  if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
1398
1193
  if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
1399
- return /* @__PURE__ */ jsx36(
1194
+ return /* @__PURE__ */ React.createElement(
1400
1195
  MyDataTable,
1401
1196
  {
1402
1197
  data: query.data,
1403
1198
  columns,
1404
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx36(Group, { children: /* @__PURE__ */ jsx36(F_core47643_Form, {}) }),
1405
- renderRowActions: ({ row }) => /* @__PURE__ */ jsxs23(MyCenterFull, { children: [
1406
- /* @__PURE__ */ jsx36(F_core47643_Form, { values: row.original }),
1407
- /* @__PURE__ */ jsx36(F_core47643_Delete, { values: row.original })
1408
- ] })
1199
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ React.createElement(Group, null, /* @__PURE__ */ React.createElement(F_core47643_Form, null)),
1200
+ renderRowActions: ({ row }) => /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(F_core47643_Form, { values: row.original }), /* @__PURE__ */ React.createElement(F_core47643_Delete, { values: row.original }))
1409
1201
  }
1410
1202
  );
1411
1203
  }
@@ -1421,30 +1213,204 @@ function useQ_core47643_GetAdminRole() {
1421
1213
  }
1422
1214
 
1423
1215
  // src/modules-features/admin/core/core47643/F_core47643.tsx
1424
- import { jsx as jsx37 } from "react/jsx-runtime";
1425
1216
  function F_core47643() {
1426
- return /* @__PURE__ */ jsx37(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx37(F_core47643_Read, {}) });
1217
+ return /* @__PURE__ */ React.createElement(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true }, /* @__PURE__ */ React.createElement(F_core47643_Read, null));
1218
+ }
1219
+
1220
+ // src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
1221
+ import React3 from "react";
1222
+ function F_core64229_Delete({ values }) {
1223
+ return /* @__PURE__ */ React3.createElement(
1224
+ MyActionIconDelete,
1225
+ {
1226
+ contextData: values == null ? void 0 : values.code,
1227
+ onSubmit: () => {
1228
+ return baseAxios_default.post("/EmailConfig/Delete", {
1229
+ id: values == null ? void 0 : values.id
1230
+ });
1231
+ }
1232
+ }
1233
+ );
1234
+ }
1235
+
1236
+ // src/constants/enum/ENUM_EMAILCONFIG.ts
1237
+ var ENUM_EMAILCONFIG_MODULE = /* @__PURE__ */ ((ENUM_EMAILCONFIG_MODULE2) => {
1238
+ ENUM_EMAILCONFIG_MODULE2[ENUM_EMAILCONFIG_MODULE2["\u0110\xE0o t\u1EA1o"] = 1] = "\u0110\xE0o t\u1EA1o";
1239
+ ENUM_EMAILCONFIG_MODULE2[ENUM_EMAILCONFIG_MODULE2["Tuy\u1EC3n sinh"] = 2] = "Tuy\u1EC3n sinh";
1240
+ ENUM_EMAILCONFIG_MODULE2[ENUM_EMAILCONFIG_MODULE2["Sinh vi\xEAn"] = 3] = "Sinh vi\xEAn";
1241
+ ENUM_EMAILCONFIG_MODULE2[ENUM_EMAILCONFIG_MODULE2["Kh\u1EA3o th\xED"] = 4] = "Kh\u1EA3o th\xED";
1242
+ return ENUM_EMAILCONFIG_MODULE2;
1243
+ })(ENUM_EMAILCONFIG_MODULE || {});
1244
+
1245
+ // src/modules-features/admin/core/core64229/F_core64229_Form.tsx
1246
+ import { PasswordInput } from "@mantine/core";
1247
+ import { useForm as useForm14 } from "@mantine/form";
1248
+ import React4 from "react";
1249
+ function F_core64229_Form({ values }) {
1250
+ const form = useForm14({
1251
+ mode: "uncontrolled",
1252
+ initialValues: values ? values : {
1253
+ emailModule: 1 /* Đào tạo */
1254
+ }
1255
+ });
1256
+ function handleSubmit() {
1257
+ const formValues = form.getValues();
1258
+ return baseAxios_default.post(`/EmailConfig/${values ? "update" : "create"}`, {
1259
+ "id": values ? formValues.id : 0,
1260
+ "code": "string",
1261
+ "name": "string",
1262
+ "concurrencyStamp": "string",
1263
+ "isEnabled": true,
1264
+ "order": 0,
1265
+ "emailModule": formValues.emailModule,
1266
+ "hostMailServer": formValues.hostMailServer,
1267
+ "outgoingPort": formValues.outgoingPort,
1268
+ "incomingPort": formValues.incomingPort,
1269
+ "sll": formValues.sll,
1270
+ "userName": formValues.userName,
1271
+ "password": formValues.password
1272
+ });
1273
+ }
1274
+ if (values) return /* @__PURE__ */ React4.createElement(
1275
+ MyActionIconUpdate,
1276
+ {
1277
+ form,
1278
+ onSubmit: handleSubmit
1279
+ },
1280
+ /* @__PURE__ */ React4.createElement(FormInput, { form })
1281
+ );
1282
+ return /* @__PURE__ */ React4.createElement(
1283
+ MyButtonCreate,
1284
+ {
1285
+ form,
1286
+ onSubmit: handleSubmit
1287
+ },
1288
+ /* @__PURE__ */ React4.createElement(FormInput, { form })
1289
+ );
1290
+ }
1291
+ function FormInput({ form }) {
1292
+ var _a, _b;
1293
+ return /* @__PURE__ */ React4.createElement(MyFlexColumn, null, /* @__PURE__ */ React4.createElement(
1294
+ MySelect,
1295
+ __spreadProps(__spreadValues({
1296
+ label: "Ph\xE2n h\u1EC7",
1297
+ data: utils_converter_enumToSelectOptions(ENUM_EMAILCONFIG_MODULE)
1298
+ }, form.getInputProps("emailModule")), {
1299
+ value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
1300
+ })
1301
+ ), /* @__PURE__ */ React4.createElement(
1302
+ MyTextInput,
1303
+ __spreadValues({
1304
+ label: "Host mail server"
1305
+ }, form.getInputProps("hostMailServer"))
1306
+ ), /* @__PURE__ */ React4.createElement(
1307
+ MyNumberInput,
1308
+ __spreadValues({
1309
+ label: "Outgoing port"
1310
+ }, form.getInputProps("outgoingPort"))
1311
+ ), /* @__PURE__ */ React4.createElement(
1312
+ MyNumberInput,
1313
+ __spreadValues({
1314
+ label: "Incoming port"
1315
+ }, form.getInputProps("incomingPort"))
1316
+ ), /* @__PURE__ */ React4.createElement(
1317
+ MySelect,
1318
+ {
1319
+ label: "SSL",
1320
+ data: ["true", "false"],
1321
+ value: (_b = form.getValues().sll) == null ? void 0 : _b.toString(),
1322
+ onChange: (e) => form.setFieldValue("sll", e == "true" ? true : false)
1323
+ }
1324
+ ), /* @__PURE__ */ React4.createElement(
1325
+ MyTextInput,
1326
+ __spreadValues({
1327
+ label: "Username"
1328
+ }, form.getInputProps("userName"))
1329
+ ), /* @__PURE__ */ React4.createElement(
1330
+ PasswordInput,
1331
+ __spreadValues({
1332
+ label: "Password",
1333
+ placeholder: "Nh\u1EADp password"
1334
+ }, form.getInputProps("password"))
1335
+ ));
1336
+ }
1337
+
1338
+ // src/modules-features/admin/core/core64229/F_core64229_Read.tsx
1339
+ import { useQuery as useQuery11 } from "@tanstack/react-query";
1340
+ import React5, { useMemo as useMemo9 } from "react";
1341
+ function F_core64229_Read() {
1342
+ const query = useQuery11({
1343
+ queryKey: ["F_core64229_Read"],
1344
+ queryFn: async () => {
1345
+ const res = await baseAxios_default.get("/EmailConfig/GetAll");
1346
+ return res.data.data;
1347
+ }
1348
+ });
1349
+ const columns = useMemo9(() => [
1350
+ {
1351
+ header: "Ph\xE2n h\u1EC7",
1352
+ accessorFn: (row) => {
1353
+ return ENUM_EMAILCONFIG_MODULE[row.emailModule];
1354
+ }
1355
+ },
1356
+ {
1357
+ header: "Host mail server",
1358
+ accessorKey: "hostMailServer"
1359
+ },
1360
+ {
1361
+ header: "Outgoing port",
1362
+ accessorKey: "outgoingPort"
1363
+ },
1364
+ {
1365
+ header: "Incoming port",
1366
+ accessorKey: "incomingPort"
1367
+ },
1368
+ {
1369
+ header: "SSL",
1370
+ accessorFn: (row) => {
1371
+ var _a;
1372
+ return (_a = row.sll) == null ? void 0 : _a.toString();
1373
+ }
1374
+ },
1375
+ {
1376
+ header: "Username",
1377
+ accessorKey: "userName"
1378
+ },
1379
+ {
1380
+ header: "Password",
1381
+ accessorFn: () => "*******"
1382
+ }
1383
+ ], []);
1384
+ if (query.isLoading) return "\u0110ang t\u1EA3i";
1385
+ return /* @__PURE__ */ React5.createElement(
1386
+ MyDataTable,
1387
+ {
1388
+ columns,
1389
+ data: query.data,
1390
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ React5.createElement(F_core64229_Form, null),
1391
+ renderRowActions: ({ row }) => /* @__PURE__ */ React5.createElement(MyCenterFull, null, /* @__PURE__ */ React5.createElement(F_core64229_Form, { values: row.original }), /* @__PURE__ */ React5.createElement(F_core64229_Delete, { values: row.original }))
1392
+ }
1393
+ );
1427
1394
  }
1428
1395
 
1429
1396
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
1430
1397
  import { Button as Button2, Group as Group3 } from "@mantine/core";
1431
1398
  import { IconShield } from "@tabler/icons-react";
1432
- import { useQuery as useQuery12 } from "@tanstack/react-query";
1399
+ import { useQuery as useQuery13 } from "@tanstack/react-query";
1433
1400
  import { useRouter } from "next/navigation";
1434
- import { useMemo as useMemo10, useState as useState5 } from "react";
1401
+ import { useMemo as useMemo11, useState as useState5 } from "react";
1435
1402
 
1436
1403
  // src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
1437
1404
  import { Button, Fieldset, Group as Group2, Table as Table2 } from "@mantine/core";
1438
1405
  import { useDisclosure } from "@mantine/hooks";
1439
- import { useMutation as useMutation2, useQuery as useQuery11, useQueryClient } from "@tanstack/react-query";
1440
- import { useEffect as useEffect4, useMemo as useMemo9, useState as useState4 } from "react";
1441
- import { jsx as jsx38, jsxs as jsxs24 } from "react/jsx-runtime";
1406
+ import { useMutation as useMutation2, useQuery as useQuery12, useQueryClient } from "@tanstack/react-query";
1407
+ import { useEffect as useEffect4, useMemo as useMemo10, useState as useState4 } from "react";
1442
1408
  function F_core71678_ChangePermission({ user }) {
1443
1409
  const disc = useDisclosure();
1444
1410
  const queryClient = useQueryClient();
1445
1411
  const [rowSelection, setRowSelection] = useState4({});
1446
1412
  const rowSelect = useState4();
1447
- const query = useQuery11({
1413
+ const query = useQuery12({
1448
1414
  queryKey: [`F1_1ChangePermission`],
1449
1415
  queryFn: async () => {
1450
1416
  const response = await baseAxios_default.get("/Role/GetAdminRole");
@@ -1457,7 +1423,7 @@ function F_core71678_ChangePermission({ user }) {
1457
1423
  return res;
1458
1424
  }
1459
1425
  });
1460
- const permissionColumns = useMemo9(
1426
+ const permissionColumns = useMemo10(
1461
1427
  () => [
1462
1428
  {
1463
1429
  header: "Quy\u1EC1n",
@@ -1485,65 +1451,45 @@ function F_core71678_ChangePermission({ user }) {
1485
1451
  }, {});
1486
1452
  setRowSelection(result);
1487
1453
  }, []);
1488
- return /* @__PURE__ */ jsxs24(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n", children: [
1489
- /* @__PURE__ */ jsx38(
1490
- Table2,
1491
- {
1492
- w: "100%",
1493
- variant: "vertical",
1494
- layout: "fixed",
1495
- children: /* @__PURE__ */ jsxs24(Table2.Tbody, { children: [
1496
- /* @__PURE__ */ jsxs24(Table2.Tr, { children: [
1497
- /* @__PURE__ */ jsx38(Table2.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
1498
- /* @__PURE__ */ jsx38(Table2.Td, { children: user.fullName })
1499
- ] }),
1500
- /* @__PURE__ */ jsxs24(Table2.Tr, { children: [
1501
- /* @__PURE__ */ jsx38(Table2.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
1502
- /* @__PURE__ */ jsx38(Table2.Td, { children: user.userName })
1503
- ] }),
1504
- /* @__PURE__ */ jsxs24(Table2.Tr, { children: [
1505
- /* @__PURE__ */ jsx38(Table2.Th, { children: "Email:" }),
1506
- /* @__PURE__ */ jsx38(Table2.Td, { children: user.email })
1507
- ] })
1508
- ] })
1509
- }
1510
- ),
1511
- query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
1512
- query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
1513
- /* @__PURE__ */ jsx38(Fieldset, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx38(
1514
- MyDataTable,
1515
- {
1516
- enableRowSelection: true,
1517
- onRowSelectionChange: setRowSelection,
1518
- state: { rowSelection },
1519
- setSelectedRow: rowSelect[1],
1520
- getRowId: (originalRow) => {
1521
- var _a;
1522
- return (_a = originalRow.id) == null ? void 0 : _a.toString();
1523
- },
1524
- initialState: {
1525
- density: "xs",
1526
- pagination: { pageIndex: 0, pageSize: 10 },
1527
- columnPinning: { right: ["mrt-row-actions"] },
1528
- columnVisibility: {
1529
- nguoiCapNhat: false,
1530
- ngayCapNhat: false
1531
- }
1532
- },
1533
- columns: permissionColumns,
1534
- data: query.data
1535
- }
1536
- ) }),
1537
- /* @__PURE__ */ jsx38(Group2, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx38(Button, { onClick: handleSave, children: "L\u01B0u" }) })
1538
- ] });
1454
+ return /* @__PURE__ */ React.createElement(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n" }, /* @__PURE__ */ React.createElement(
1455
+ Table2,
1456
+ {
1457
+ w: "100%",
1458
+ variant: "vertical",
1459
+ layout: "fixed"
1460
+ },
1461
+ /* @__PURE__ */ React.createElement(Table2.Tbody, null, /* @__PURE__ */ React.createElement(Table2.Tr, null, /* @__PURE__ */ React.createElement(Table2.Th, { w: 160 }, "H\u1ECD v\xE0 t\xEAn:"), /* @__PURE__ */ React.createElement(Table2.Td, null, user.fullName)), /* @__PURE__ */ React.createElement(Table2.Tr, null, /* @__PURE__ */ React.createElement(Table2.Th, null, "T\xEAn \u0111\u0103ng nh\u1EADp:"), /* @__PURE__ */ React.createElement(Table2.Td, null, user.userName)), /* @__PURE__ */ React.createElement(Table2.Tr, null, /* @__PURE__ */ React.createElement(Table2.Th, null, "Email:"), /* @__PURE__ */ React.createElement(Table2.Td, null, user.email)))
1462
+ ), query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...", query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...", /* @__PURE__ */ React.createElement(Fieldset, { legend: "Ch\u1ECDn quy\u1EC1n" }, /* @__PURE__ */ React.createElement(
1463
+ MyDataTable,
1464
+ {
1465
+ enableRowSelection: true,
1466
+ onRowSelectionChange: setRowSelection,
1467
+ state: { rowSelection },
1468
+ setSelectedRow: rowSelect[1],
1469
+ getRowId: (originalRow) => {
1470
+ var _a;
1471
+ return (_a = originalRow.id) == null ? void 0 : _a.toString();
1472
+ },
1473
+ initialState: {
1474
+ density: "xs",
1475
+ pagination: { pageIndex: 0, pageSize: 10 },
1476
+ columnPinning: { right: ["mrt-row-actions"] },
1477
+ columnVisibility: {
1478
+ nguoiCapNhat: false,
1479
+ ngayCapNhat: false
1480
+ }
1481
+ },
1482
+ columns: permissionColumns,
1483
+ data: query.data
1484
+ }
1485
+ )), /* @__PURE__ */ React.createElement(Group2, { justify: "flex-end", mt: 24 }, /* @__PURE__ */ React.createElement(Button, { onClick: handleSave }, "L\u01B0u")));
1539
1486
  }
1540
1487
 
1541
1488
  // src/modules-features/admin/core/core71678/F_core71678_Create.tsx
1542
- import { useForm as useForm14 } from "@mantine/form";
1543
- import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
1489
+ import { useForm as useForm15 } from "@mantine/form";
1544
1490
  var ENDPOINT2 = "/Account/create";
1545
1491
  function F_core71678_Create() {
1546
- const form = useForm14({
1492
+ const form = useForm15({
1547
1493
  initialValues: {
1548
1494
  fullName: "",
1549
1495
  code: "",
@@ -1568,21 +1514,13 @@ function F_core71678_Create() {
1568
1514
  AQModuleId: 1002
1569
1515
  }));
1570
1516
  }
1571
- return /* @__PURE__ */ jsxs25(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
1572
- /* @__PURE__ */ jsx39(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
1573
- /* @__PURE__ */ jsx39(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
1574
- /* @__PURE__ */ jsx39(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
1575
- /* @__PURE__ */ jsx39(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
1576
- /* @__PURE__ */ jsx39(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
1577
- /* @__PURE__ */ jsx39(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
1578
- ] });
1517
+ return /* @__PURE__ */ React.createElement(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng" }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))));
1579
1518
  }
1580
1519
 
1581
1520
  // src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
1582
- import { jsx as jsx40 } from "react/jsx-runtime";
1583
1521
  var ENDPOINT3 = "/Account/delete";
1584
1522
  function F_core71678_Delete({ id, code }) {
1585
- return /* @__PURE__ */ jsx40(
1523
+ return /* @__PURE__ */ React.createElement(
1586
1524
  MyActionIconDelete,
1587
1525
  {
1588
1526
  contextData: code,
@@ -1592,17 +1530,16 @@ function F_core71678_Delete({ id, code }) {
1592
1530
  }
1593
1531
 
1594
1532
  // src/modules-features/admin/core/core71678/F_core71678_Update.tsx
1595
- import { useForm as useForm15 } from "@mantine/form";
1533
+ import { useForm as useForm16 } from "@mantine/form";
1596
1534
  import { useEffect as useEffect5 } from "react";
1597
- import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
1598
1535
  function F_core71678_Update({ user }) {
1599
- const form = useForm15({
1536
+ const form = useForm16({
1600
1537
  initialValues: user
1601
1538
  });
1602
1539
  useEffect5(() => {
1603
1540
  console.log(form.values);
1604
1541
  }, [form.values]);
1605
- return /* @__PURE__ */ jsx41(MyActionIconUpdate, { form, onSubmit: async (values) => {
1542
+ return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values) => {
1606
1543
  return await baseAxios_default.post(
1607
1544
  "/Account/update",
1608
1545
  __spreadProps(__spreadValues({}, values), {
@@ -1614,22 +1551,15 @@ function F_core71678_Update({ user }) {
1614
1551
  workingUnitId: null
1615
1552
  })
1616
1553
  );
1617
- }, children: /* @__PURE__ */ jsxs26(MyFlexColumn, { children: [
1618
- /* @__PURE__ */ jsx41(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
1619
- /* @__PURE__ */ jsx41(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
1620
- /* @__PURE__ */ jsx41(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
1621
- /* @__PURE__ */ jsx41(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
1622
- /* @__PURE__ */ jsx41(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
1623
- ] }) });
1554
+ } }, /* @__PURE__ */ React.createElement(MyFlexColumn, null, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))));
1624
1555
  }
1625
1556
 
1626
1557
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
1627
- import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
1628
1558
  var ENDPOINT4 = "/Account/GetAdminAccount";
1629
1559
  function F_core71678_Read() {
1630
1560
  const router = useRouter();
1631
1561
  const [rowSelection, setRowSelection] = useState5({});
1632
- const AllUserQuery = useQuery12({
1562
+ const AllUserQuery = useQuery13({
1633
1563
  queryKey: ["F_core71678_Read"],
1634
1564
  queryFn: async () => {
1635
1565
  var _a;
@@ -1640,7 +1570,7 @@ function F_core71678_Read() {
1640
1570
  return ((_a = result.data) == null ? void 0 : _a.data) || [];
1641
1571
  }
1642
1572
  });
1643
- const columns = useMemo10(
1573
+ const columns = useMemo11(
1644
1574
  () => [
1645
1575
  {
1646
1576
  header: "T\xEAn t\xE0i kho\u1EA3n",
@@ -1656,59 +1586,49 @@ function F_core71678_Read() {
1656
1586
  },
1657
1587
  {
1658
1588
  header: "Quy\u1EC1n",
1659
- accessorFn: (row) => /* @__PURE__ */ jsx42(F_core71678_ChangePermission, { user: row })
1589
+ accessorFn: (row) => /* @__PURE__ */ React.createElement(F_core71678_ChangePermission, { user: row })
1660
1590
  }
1661
1591
  ],
1662
1592
  []
1663
1593
  );
1664
1594
  if (AllUserQuery.isLoading) return "Loading...";
1665
- return /* @__PURE__ */ jsx42(
1595
+ return /* @__PURE__ */ React.createElement(
1666
1596
  MyDataTable,
1667
1597
  {
1668
1598
  columns,
1669
1599
  data: AllUserQuery.data,
1670
1600
  renderTopToolbarCustomActions: () => {
1671
- return /* @__PURE__ */ jsxs27(Group3, { children: [
1672
- /* @__PURE__ */ jsx42(F_core71678_Create, {}),
1673
- /* @__PURE__ */ jsx42(
1674
- Button2,
1675
- {
1676
- color: "violet",
1677
- leftSection: /* @__PURE__ */ jsx42(IconShield, {}),
1678
- onClick: () => {
1679
- router.push("core47643");
1680
- },
1681
- children: "Danh m\u1EE5c quy\u1EC1n"
1601
+ return /* @__PURE__ */ React.createElement(Group3, null, /* @__PURE__ */ React.createElement(F_core71678_Create, null), /* @__PURE__ */ React.createElement(
1602
+ Button2,
1603
+ {
1604
+ color: "violet",
1605
+ leftSection: /* @__PURE__ */ React.createElement(IconShield, null),
1606
+ onClick: () => {
1607
+ router.push("core47643");
1682
1608
  }
1683
- )
1684
- ] });
1609
+ },
1610
+ "Danh m\u1EE5c quy\u1EC1n"
1611
+ ));
1685
1612
  },
1686
1613
  renderRowActions: ({ row }) => {
1687
- return /* @__PURE__ */ jsxs27(MyCenterFull, { children: [
1688
- /* @__PURE__ */ jsx42(F_core71678_Update, { user: row.original }),
1689
- /* @__PURE__ */ jsx42(F_core71678_Delete, { id: row.original.id, code: row.original.code })
1690
- ] });
1614
+ return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(F_core71678_Update, { user: row.original }), /* @__PURE__ */ React.createElement(F_core71678_Delete, { id: row.original.id, code: row.original.code }));
1691
1615
  }
1692
1616
  }
1693
1617
  );
1694
1618
  }
1695
1619
 
1696
- // src/modules-features/admin/core/core71678/F_core71678.tsx
1697
- import { jsx as jsx43 } from "react/jsx-runtime";
1698
-
1699
1620
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
1700
- import { useQuery as useQuery13 } from "@tanstack/react-query";
1701
- import { useMemo as useMemo11 } from "react";
1621
+ import { useQuery as useQuery14 } from "@tanstack/react-query";
1622
+ import { useMemo as useMemo12 } from "react";
1702
1623
 
1703
1624
  // src/modules-features/admin/core/core76318/F_core76318_Create.tsx
1704
1625
  import { FileInput as FileInput5 } from "@mantine/core";
1705
- import { useForm as useForm16 } from "@mantine/form";
1706
- import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
1626
+ import { useForm as useForm17 } from "@mantine/form";
1707
1627
  function F_core76318_Create() {
1708
- const form = useForm16({
1628
+ const form = useForm17({
1709
1629
  mode: "uncontrolled"
1710
1630
  });
1711
- return /* @__PURE__ */ jsxs28(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
1631
+ return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
1712
1632
  return await baseAxios_default.post(
1713
1633
  "/Document/create",
1714
1634
  __spreadProps(__spreadValues({}, values), {
@@ -1717,64 +1637,45 @@ function F_core76318_Create() {
1717
1637
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
1718
1638
  })
1719
1639
  );
1720
- }, children: [
1721
- /* @__PURE__ */ jsx44(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
1722
- /* @__PURE__ */ jsx44(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
1723
- /* @__PURE__ */ jsx44(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
1724
- /* @__PURE__ */ jsx44(FileInput5, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
1725
- ] });
1640
+ } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(FileInput5, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file"))));
1726
1641
  }
1727
1642
 
1728
1643
  // src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
1729
- import { jsx as jsx45 } from "react/jsx-runtime";
1730
1644
  function F_core76318_Delete({ id }) {
1731
- return /* @__PURE__ */ jsx45(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
1645
+ return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
1732
1646
  }
1733
1647
 
1734
1648
  // src/modules-features/admin/core/core76318/F_core76318_Update.tsx
1735
1649
  import { FileInput as FileInput6, TextInput as TextInput2 } from "@mantine/core";
1736
- import { useForm as useForm17 } from "@mantine/form";
1737
- import { jsx as jsx46, jsxs as jsxs29 } from "react/jsx-runtime";
1650
+ import { useForm as useForm18 } from "@mantine/form";
1738
1651
  function F_core76318_Update({ values }) {
1739
1652
  var _a;
1740
- const form = useForm17({
1653
+ const form = useForm18({
1741
1654
  mode: "uncontrolled",
1742
1655
  initialValues: __spreadProps(__spreadValues({}, values), {
1743
1656
  file: new File([], (_a = values.path) == null ? void 0 : _a.split("/")[values.path.split("/").length - 1]),
1744
1657
  promulgateDate: new Date(values.promulgateDate)
1745
1658
  })
1746
1659
  });
1747
- return /* @__PURE__ */ jsxs29(MyActionIconUpdate, { form, onSubmit: async (values2) => {
1660
+ return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
1748
1661
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
1749
1662
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
1750
1663
  }));
1751
- }, children: [
1752
- /* @__PURE__ */ jsx46(TextInput2, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
1753
- /* @__PURE__ */ jsx46(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
1754
- /* @__PURE__ */ jsx46(TextInput2, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
1755
- /* @__PURE__ */ jsx46(FileInput6, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
1756
- ] });
1664
+ } }, /* @__PURE__ */ React.createElement(TextInput2, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))), /* @__PURE__ */ React.createElement(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))), /* @__PURE__ */ React.createElement(TextInput2, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))), /* @__PURE__ */ React.createElement(FileInput6, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file"))));
1757
1665
  }
1758
1666
 
1759
- // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
1760
- import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
1761
-
1762
- // src/modules-features/admin/core/core76318/F_core76318.tsx
1763
- import { jsx as jsx48 } from "react/jsx-runtime";
1764
-
1765
1667
  // src/modules-features/admin/core/core83092/F_core83092.tsx
1766
1668
  import { Grid as Grid2, Paper as Paper2, ScrollArea as ScrollArea4 } from "@mantine/core";
1767
1669
 
1768
1670
  // src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
1769
1671
  import { Container as Container2 } from "@mantine/core";
1770
- import { useQuery as useQuery14 } from "@tanstack/react-query";
1771
- import { useEffect as useEffect6, useMemo as useMemo12, useState as useState6 } from "react";
1772
- import { jsx as jsx49 } from "react/jsx-runtime";
1672
+ import { useQuery as useQuery15 } from "@tanstack/react-query";
1673
+ import { useEffect as useEffect6, useMemo as useMemo13, useState as useState6 } from "react";
1773
1674
  function F_core83092_ReadUser() {
1774
1675
  const store = useS_core83092();
1775
1676
  const query = useQ_core83092_Account_GetAdminAccount();
1776
1677
  const [rowSelection, setRowSelection] = useState6({});
1777
- const columns = useMemo12(
1678
+ const columns = useMemo13(
1778
1679
  () => [
1779
1680
  {
1780
1681
  header: "H\u1ECD v\xE0 t\xEAn",
@@ -1802,7 +1703,7 @@ function F_core83092_ReadUser() {
1802
1703
  }, [query.data]);
1803
1704
  if (query.isLoading) return "Loading...";
1804
1705
  if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
1805
- return /* @__PURE__ */ jsx49(Container2, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx49(
1706
+ return /* @__PURE__ */ React.createElement(Container2, { fluid: true, w: "100%" }, /* @__PURE__ */ React.createElement(
1806
1707
  MyDataTable,
1807
1708
  {
1808
1709
  columns,
@@ -1820,10 +1721,10 @@ function F_core83092_ReadUser() {
1820
1721
  }),
1821
1722
  state: rowSelection
1822
1723
  }
1823
- ) });
1724
+ ));
1824
1725
  }
1825
1726
  function useQ_core83092_Account_GetAdminAccount() {
1826
- const query = useQuery14({
1727
+ const query = useQuery15({
1827
1728
  queryKey: ["useQ_core83092_Account_GetAdminAccount"],
1828
1729
  queryFn: async () => {
1829
1730
  var _a;
@@ -1838,7 +1739,6 @@ function useQ_core83092_Account_GetAdminAccount() {
1838
1739
  // src/modules-features/admin/core/core83092/F_core83092_Save.tsx
1839
1740
  import { useMutation as useMutation3 } from "@tanstack/react-query";
1840
1741
  import { useEffect as useEffect7, useState as useState7 } from "react";
1841
- import { jsx as jsx50 } from "react/jsx-runtime";
1842
1742
  function F_core83092_Save() {
1843
1743
  const store = useS_core83092();
1844
1744
  const disable = useState7(false);
@@ -1867,15 +1767,14 @@ function F_core83092_Save() {
1867
1767
  }
1868
1768
  disable[1](false);
1869
1769
  }, [store.state.rolePermissions]);
1870
- return /* @__PURE__ */ jsx50(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
1770
+ return /* @__PURE__ */ React.createElement(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
1871
1771
  }
1872
1772
 
1873
1773
  // src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
1874
1774
  import { Checkbox as Checkbox2, Flex as Flex2, ScrollArea as ScrollArea3, Table as Table3, Text as Text2 } from "@mantine/core";
1875
1775
  import { IconEdit as IconEdit2, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport2, IconPlus as IconPlus2, IconPrinter as IconPrinter2, IconTrash as IconTrash2 } from "@tabler/icons-react";
1876
- import { useQuery as useQuery15 } from "@tanstack/react-query";
1877
- import React2, { useEffect as useEffect8, useState as useState8 } from "react";
1878
- import { jsx as jsx51, jsxs as jsxs31 } from "react/jsx-runtime";
1776
+ import { useQuery as useQuery16 } from "@tanstack/react-query";
1777
+ import React6, { useEffect as useEffect8, useState as useState8 } from "react";
1879
1778
  var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
1880
1779
  function F_core83092_ViewMenuPermissions() {
1881
1780
  var _a, _b;
@@ -1890,177 +1789,111 @@ function F_core83092_ViewMenuPermissions() {
1890
1789
  store.setProperty("rolePermissions", query.data);
1891
1790
  }, [query.data]);
1892
1791
  if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
1893
- return /* @__PURE__ */ jsx51(ScrollArea3.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs31(Table3, { children: [
1894
- /* @__PURE__ */ jsx51(
1895
- Table3.Thead,
1896
- {
1897
- bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
1898
- style: {
1899
- position: "sticky",
1900
- top: 0,
1901
- zIndex: 1,
1902
- boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
1903
- border: "1px solid var(--mantine-color-gray-4)"
1904
- },
1905
- children: /* @__PURE__ */ jsxs31(Table3.Tr, { children: [
1906
- /* @__PURE__ */ jsx51(Table3.Th, { children: title2 }),
1907
- /* @__PURE__ */ jsx51(Table3.Th, { children: /* @__PURE__ */ jsxs31(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1908
- /* @__PURE__ */ jsx51(Checkbox2, { checked: store.isAllPermission("isRead"), onChange: (e) => {
1909
- store.toogleAllPermissionWithType("isRead", e.target.checked);
1910
- } }),
1911
- /* @__PURE__ */ jsxs31(MyFlexRow, { gap: 3, children: [
1912
- "Xem",
1913
- /* @__PURE__ */ jsx51(IconEyeUp2, { color: "gray" })
1914
- ] })
1915
- ] }) }),
1916
- /* @__PURE__ */ jsx51(Table3.Th, { children: /* @__PURE__ */ jsxs31(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1917
- /* @__PURE__ */ jsx51(Checkbox2, { checked: store.isAllPermission("isCreate"), onChange: (e) => {
1918
- store.toogleAllPermissionWithType("isCreate", e.target.checked);
1919
- } }),
1920
- /* @__PURE__ */ jsxs31(MyFlexRow, { gap: 3, children: [
1921
- "Th\xEAm",
1922
- /* @__PURE__ */ jsx51(IconPlus2, { color: "blue" })
1923
- ] })
1924
- ] }) }),
1925
- /* @__PURE__ */ jsx51(Table3.Th, { children: /* @__PURE__ */ jsxs31(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1926
- /* @__PURE__ */ jsx51(Checkbox2, { checked: store.isAllPermission("isUpdate"), onChange: (e) => {
1927
- store.toogleAllPermissionWithType("isUpdate", e.target.checked);
1928
- } }),
1929
- /* @__PURE__ */ jsxs31(MyFlexRow, { gap: 3, children: [
1930
- "S\u1EEDa",
1931
- /* @__PURE__ */ jsx51(IconEdit2, { color: "var(--mantine-color-yellow-8)" })
1932
- ] })
1933
- ] }) }),
1934
- /* @__PURE__ */ jsx51(Table3.Th, { children: /* @__PURE__ */ jsxs31(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1935
- /* @__PURE__ */ jsx51(Checkbox2, { checked: store.isAllPermission("isDelete"), onChange: (e) => {
1936
- store.toogleAllPermissionWithType("isDelete", e.target.checked);
1937
- } }),
1938
- /* @__PURE__ */ jsxs31(MyFlexRow, { gap: 3, children: [
1939
- "X\xF3a",
1940
- /* @__PURE__ */ jsx51(IconTrash2, { color: "var(--mantine-color-red-8)" })
1941
- ] })
1942
- ] }) }),
1943
- /* @__PURE__ */ jsx51(Table3.Th, { children: /* @__PURE__ */ jsxs31(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1944
- /* @__PURE__ */ jsx51(Checkbox2, { checked: store.isAllPermission("isPrint"), onChange: (e) => {
1945
- store.toogleAllPermissionWithType("isPrint", e.target.checked);
1946
- } }),
1947
- /* @__PURE__ */ jsxs31(MyFlexRow, { gap: 3, children: [
1948
- "In",
1949
- /* @__PURE__ */ jsx51(IconPrinter2, { color: "var(--mantine-color-cyan-8)" })
1950
- ] })
1951
- ] }) }),
1952
- /* @__PURE__ */ jsx51(Table3.Th, { children: /* @__PURE__ */ jsxs31(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
1953
- /* @__PURE__ */ jsx51(Checkbox2, { checked: store.isAllPermission("isExport"), onChange: (e) => {
1954
- store.toogleAllPermissionWithType("isExport", e.target.checked);
1955
- } }),
1956
- /* @__PURE__ */ jsxs31(MyFlexRow, { gap: 3, children: [
1957
- "Xu\u1EA5t",
1958
- /* @__PURE__ */ jsx51(IconFileExport2, { color: "var(--mantine-color-green-8)" })
1959
- ] })
1960
- ] }) })
1961
- ] })
1792
+ return /* @__PURE__ */ React6.createElement(ScrollArea3.Autosize, { h: "70vh" }, /* @__PURE__ */ React6.createElement(Table3, null, /* @__PURE__ */ React6.createElement(
1793
+ Table3.Thead,
1794
+ {
1795
+ bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
1796
+ style: {
1797
+ position: "sticky",
1798
+ top: 0,
1799
+ zIndex: 1,
1800
+ boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
1801
+ border: "1px solid var(--mantine-color-gray-4)"
1962
1802
  }
1963
- ),
1964
- /* @__PURE__ */ jsx51(Table3.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
1965
- if (item.links == void 0) return /* @__PURE__ */ jsxs31(Table3.Tr, { children: [
1966
- /* @__PURE__ */ jsx51(Table3.Td, { children: item.label }),
1967
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(Checkbox2, {}) }) }),
1968
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(Checkbox2, {}) }) }),
1969
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(Checkbox2, {}) }) }),
1970
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(Checkbox2, {}) }) }),
1971
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(Checkbox2, {}) }) }),
1972
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(Checkbox2, {}) }) })
1973
- ] }, idx);
1974
- return /* @__PURE__ */ jsxs31(React2.Fragment, { children: [
1975
- /* @__PURE__ */ jsx51(Table3.Tr, { children: /* @__PURE__ */ jsx51(
1976
- Table3.Td,
1803
+ },
1804
+ /* @__PURE__ */ React6.createElement(Table3.Tr, null, /* @__PURE__ */ React6.createElement(Table3.Th, null, title2), /* @__PURE__ */ React6.createElement(Table3.Th, null, /* @__PURE__ */ React6.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React6.createElement(Checkbox2, { checked: store.isAllPermission("isRead"), onChange: (e) => {
1805
+ store.toogleAllPermissionWithType("isRead", e.target.checked);
1806
+ } }), /* @__PURE__ */ React6.createElement(MyFlexRow, { gap: 3 }, "Xem", /* @__PURE__ */ React6.createElement(IconEyeUp2, { color: "gray" })))), /* @__PURE__ */ React6.createElement(Table3.Th, null, /* @__PURE__ */ React6.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React6.createElement(Checkbox2, { checked: store.isAllPermission("isCreate"), onChange: (e) => {
1807
+ store.toogleAllPermissionWithType("isCreate", e.target.checked);
1808
+ } }), /* @__PURE__ */ React6.createElement(MyFlexRow, { gap: 3 }, "Th\xEAm", /* @__PURE__ */ React6.createElement(IconPlus2, { color: "blue" })))), /* @__PURE__ */ React6.createElement(Table3.Th, null, /* @__PURE__ */ React6.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React6.createElement(Checkbox2, { checked: store.isAllPermission("isUpdate"), onChange: (e) => {
1809
+ store.toogleAllPermissionWithType("isUpdate", e.target.checked);
1810
+ } }), /* @__PURE__ */ React6.createElement(MyFlexRow, { gap: 3 }, "S\u1EEDa", /* @__PURE__ */ React6.createElement(IconEdit2, { color: "var(--mantine-color-yellow-8)" })))), /* @__PURE__ */ React6.createElement(Table3.Th, null, /* @__PURE__ */ React6.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React6.createElement(Checkbox2, { checked: store.isAllPermission("isDelete"), onChange: (e) => {
1811
+ store.toogleAllPermissionWithType("isDelete", e.target.checked);
1812
+ } }), /* @__PURE__ */ React6.createElement(MyFlexRow, { gap: 3 }, "X\xF3a", /* @__PURE__ */ React6.createElement(IconTrash2, { color: "var(--mantine-color-red-8)" })))), /* @__PURE__ */ React6.createElement(Table3.Th, null, /* @__PURE__ */ React6.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React6.createElement(Checkbox2, { checked: store.isAllPermission("isPrint"), onChange: (e) => {
1813
+ store.toogleAllPermissionWithType("isPrint", e.target.checked);
1814
+ } }), /* @__PURE__ */ React6.createElement(MyFlexRow, { gap: 3 }, "In", /* @__PURE__ */ React6.createElement(IconPrinter2, { color: "var(--mantine-color-cyan-8)" })))), /* @__PURE__ */ React6.createElement(Table3.Th, null, /* @__PURE__ */ React6.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React6.createElement(Checkbox2, { checked: store.isAllPermission("isExport"), onChange: (e) => {
1815
+ store.toogleAllPermissionWithType("isExport", e.target.checked);
1816
+ } }), /* @__PURE__ */ React6.createElement(MyFlexRow, { gap: 3 }, "Xu\u1EA5t", /* @__PURE__ */ React6.createElement(IconFileExport2, { color: "var(--mantine-color-green-8)" })))))
1817
+ ), /* @__PURE__ */ React6.createElement(Table3.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))" }, (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
1818
+ if (item.links == void 0) return /* @__PURE__ */ React6.createElement(Table3.Tr, { key: idx }, /* @__PURE__ */ React6.createElement(Table3.Td, null, item.label), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(Checkbox2, null))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(Checkbox2, null))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(Checkbox2, null))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(Checkbox2, null))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(Checkbox2, null))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(Checkbox2, null))));
1819
+ return /* @__PURE__ */ React6.createElement(React6.Fragment, { key: idx }, /* @__PURE__ */ React6.createElement(Table3.Tr, { key: item.label }, /* @__PURE__ */ React6.createElement(
1820
+ Table3.Td,
1821
+ {
1822
+ colSpan: 7,
1823
+ bg: OBJECT_COlORS.mantineBackgroundBlueLight
1824
+ },
1825
+ /* @__PURE__ */ React6.createElement(Text2, { fs: "oblique", size: "sm", fw: "bold" }, item.label)
1826
+ )), item.links.map(
1827
+ (item2, idx2) => {
1828
+ var _a2, _b2, _c, _d, _e, _f;
1829
+ return /* @__PURE__ */ React6.createElement(Table3.Tr, { key: idx2 }, /* @__PURE__ */ React6.createElement(Table3.Td, null, item2.label), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(
1830
+ Checkbox2,
1977
1831
  {
1978
- colSpan: 7,
1979
- bg: OBJECT_COlORS.mantineBackgroundBlueLight,
1980
- children: /* @__PURE__ */ jsx51(Text2, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
1832
+ checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
1833
+ onChange: (e) => {
1834
+ store.updatePermission(item2.pageId, {
1835
+ isRead: e.target.checked
1836
+ });
1837
+ }
1838
+ }
1839
+ ))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(
1840
+ Checkbox2,
1841
+ {
1842
+ checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
1843
+ onChange: (e) => {
1844
+ store.updatePermission(item2.pageId, {
1845
+ isCreate: e.target.checked
1846
+ });
1847
+ }
1981
1848
  }
1982
- ) }, item.label),
1983
- item.links.map(
1984
- (item2, idx2) => {
1985
- var _a2, _b2, _c, _d, _e, _f;
1986
- return /* @__PURE__ */ jsxs31(Table3.Tr, { children: [
1987
- /* @__PURE__ */ jsx51(Table3.Td, { children: item2.label }),
1988
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(
1989
- Checkbox2,
1990
- {
1991
- checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
1992
- onChange: (e) => {
1993
- store.updatePermission(item2.pageId, {
1994
- isRead: e.target.checked
1995
- });
1996
- }
1997
- }
1998
- ) }) }),
1999
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(
2000
- Checkbox2,
2001
- {
2002
- checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
2003
- onChange: (e) => {
2004
- store.updatePermission(item2.pageId, {
2005
- isCreate: e.target.checked
2006
- });
2007
- }
2008
- }
2009
- ) }) }),
2010
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(
2011
- Checkbox2,
2012
- {
2013
- checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
2014
- onChange: (e) => {
2015
- store.updatePermission(item2.pageId, {
2016
- isUpdate: e.target.checked
2017
- });
2018
- }
2019
- }
2020
- ) }) }),
2021
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(
2022
- Checkbox2,
2023
- {
2024
- checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
2025
- onChange: (e) => {
2026
- store.updatePermission(item2.pageId, {
2027
- isDelete: e.target.checked
2028
- });
2029
- }
2030
- }
2031
- ) }) }),
2032
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(
2033
- Checkbox2,
2034
- {
2035
- checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
2036
- onChange: (e) => {
2037
- store.updatePermission(item2.pageId, {
2038
- isPrint: e.target.checked
2039
- });
2040
- }
2041
- }
2042
- ) }) }),
2043
- /* @__PURE__ */ jsx51(Table3.Td, { children: /* @__PURE__ */ jsx51(MyCenterFull, { children: /* @__PURE__ */ jsx51(
2044
- Checkbox2,
2045
- {
2046
- checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
2047
- onChange: (e) => {
2048
- store.updatePermission(item2.pageId, {
2049
- isExport: e.target.checked
2050
- });
2051
- }
2052
- }
2053
- ) }) })
2054
- ] }, idx2);
1849
+ ))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(
1850
+ Checkbox2,
1851
+ {
1852
+ checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
1853
+ onChange: (e) => {
1854
+ store.updatePermission(item2.pageId, {
1855
+ isUpdate: e.target.checked
1856
+ });
1857
+ }
2055
1858
  }
2056
- )
2057
- ] }, idx);
2058
- }) })
2059
- ] }) });
1859
+ ))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(
1860
+ Checkbox2,
1861
+ {
1862
+ checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
1863
+ onChange: (e) => {
1864
+ store.updatePermission(item2.pageId, {
1865
+ isDelete: e.target.checked
1866
+ });
1867
+ }
1868
+ }
1869
+ ))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(
1870
+ Checkbox2,
1871
+ {
1872
+ checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
1873
+ onChange: (e) => {
1874
+ store.updatePermission(item2.pageId, {
1875
+ isPrint: e.target.checked
1876
+ });
1877
+ }
1878
+ }
1879
+ ))), /* @__PURE__ */ React6.createElement(Table3.Td, null, /* @__PURE__ */ React6.createElement(MyCenterFull, null, /* @__PURE__ */ React6.createElement(
1880
+ Checkbox2,
1881
+ {
1882
+ checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
1883
+ onChange: (e) => {
1884
+ store.updatePermission(item2.pageId, {
1885
+ isExport: e.target.checked
1886
+ });
1887
+ }
1888
+ }
1889
+ ))));
1890
+ }
1891
+ ));
1892
+ }))));
2060
1893
  }
2061
1894
  function useGetUserPermission2() {
2062
1895
  const store = useS_core83092();
2063
- const query = useQuery15({
1896
+ const query = useQuery16({
2064
1897
  queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
2065
1898
  queryFn: async () => {
2066
1899
  const result = await baseAxios_default.get("/Role/GetUserPermission?userId=" + store.state.roleId);
@@ -2096,72 +1929,54 @@ function useGetUserPermission2() {
2096
1929
  }
2097
1930
 
2098
1931
  // src/modules-features/admin/core/core83092/F_core83092.tsx
2099
- import { jsx as jsx52, jsxs as jsxs32 } from "react/jsx-runtime";
2100
1932
  function F_core83092() {
2101
- return /* @__PURE__ */ jsx52(MyPageContent, { children: /* @__PURE__ */ jsxs32(Grid2, { grow: true, children: [
2102
- /* @__PURE__ */ jsx52(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx52(F_core83092_ReadUser, {}) }),
2103
- /* @__PURE__ */ jsx52(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs32(MyFlexColumn, { h: "80vh", flex: 1, children: [
2104
- /* @__PURE__ */ jsx52(ScrollArea4.Autosize, { h: "100%", children: /* @__PURE__ */ jsx52(Paper2, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx52(F_core83092_ViewMenuPermissions, {}) }) }),
2105
- /* @__PURE__ */ jsx52(F_core83092_Save, {})
2106
- ] }) })
2107
- ] }) });
1933
+ return /* @__PURE__ */ React.createElement(MyPageContent, null, /* @__PURE__ */ React.createElement(Grid2, { grow: true }, /* @__PURE__ */ React.createElement(Grid2.Col, { span: 4 }, /* @__PURE__ */ React.createElement(F_core83092_ReadUser, null)), /* @__PURE__ */ React.createElement(Grid2.Col, { span: 8 }, /* @__PURE__ */ React.createElement(MyFlexColumn, { h: "80vh", flex: 1 }, /* @__PURE__ */ React.createElement(ScrollArea4.Autosize, { h: "100%" }, /* @__PURE__ */ React.createElement(Paper2, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary }, /* @__PURE__ */ React.createElement(F_core83092_ViewMenuPermissions, null))), /* @__PURE__ */ React.createElement(F_core83092_Save, null)))));
2108
1934
  }
2109
1935
 
2110
1936
  // src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
2111
1937
  import { BarChart } from "@mantine/charts";
2112
1938
  import { Group as Group4, Paper as Paper3, Text as Text3, useMantineColorScheme } from "@mantine/core";
2113
- import { Fragment, jsx as jsx53, jsxs as jsxs33 } from "react/jsx-runtime";
2114
1939
 
2115
1940
  // src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
2116
1941
  import { BarChart as BarChart2 } from "@mantine/charts";
2117
1942
  import { Group as Group5, Paper as Paper4, Text as Text4, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
2118
- import { Fragment as Fragment2, jsx as jsx54, jsxs as jsxs34 } from "react/jsx-runtime";
2119
1943
 
2120
1944
  // src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
2121
1945
  import { BarChart as BarChart3 } from "@mantine/charts";
2122
1946
  import { Group as Group6, Paper as Paper5, Text as Text5, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
2123
- import { Fragment as Fragment3, jsx as jsx55, jsxs as jsxs35 } from "react/jsx-runtime";
2124
1947
 
2125
1948
  // src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
2126
1949
  import { BarChart as BarChart4 } from "@mantine/charts";
2127
1950
  import { Group as Group7, Paper as Paper6, Text as Text6, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
2128
- import { Fragment as Fragment4, jsx as jsx56, jsxs as jsxs36 } from "react/jsx-runtime";
2129
1951
 
2130
1952
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
2131
1953
  import { BarChart as BarChart5 } from "@mantine/charts";
2132
1954
  import { Group as Group8, Paper as Paper7, Text as Text7, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
2133
- import { jsx as jsx57, jsxs as jsxs37 } from "react/jsx-runtime";
2134
1955
 
2135
1956
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
2136
1957
  import { BarChart as BarChart6 } from "@mantine/charts";
2137
1958
  import { Group as Group9, Paper as Paper8, Text as Text8, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
2138
- import { jsx as jsx58, jsxs as jsxs38 } from "react/jsx-runtime";
2139
1959
 
2140
1960
  // src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
2141
1961
  import { LineChart } from "@mantine/charts";
2142
1962
  import { Group as Group10, Paper as Paper9, Text as Text9 } from "@mantine/core";
2143
- import { Fragment as Fragment5, jsx as jsx59, jsxs as jsxs39 } from "react/jsx-runtime";
2144
1963
 
2145
1964
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
2146
1965
  import { LineChart as LineChart2 } from "@mantine/charts";
2147
1966
  import { Group as Group11, Paper as Paper10, Text as Text10 } from "@mantine/core";
2148
- import { Fragment as Fragment6, jsx as jsx60, jsxs as jsxs40 } from "react/jsx-runtime";
2149
1967
 
2150
1968
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
2151
1969
  import { LineChart as LineChart3 } from "@mantine/charts";
2152
1970
  import { Group as Group12, Paper as Paper11, Text as Text11 } from "@mantine/core";
2153
- import { Fragment as Fragment7, jsx as jsx61, jsxs as jsxs41 } from "react/jsx-runtime";
2154
1971
 
2155
1972
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
2156
1973
  import { LineChart as LineChart4 } from "@mantine/charts";
2157
1974
  import { Group as Group13, Paper as Paper12, Text as Text12 } from "@mantine/core";
2158
- import { Fragment as Fragment8, jsx as jsx62, jsxs as jsxs42 } from "react/jsx-runtime";
2159
1975
 
2160
1976
  // src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
2161
1977
  import { Center, Progress, Space, Text as Text13 } from "@mantine/core";
2162
1978
  import { PieChart } from "@mantine/charts";
2163
- import { useMemo as useMemo13 } from "react";
2164
- import { Fragment as Fragment9, jsx as jsx63, jsxs as jsxs43 } from "react/jsx-runtime";
1979
+ import { useMemo as useMemo14 } from "react";
2165
1980
  function getRandomColor(seed) {
2166
1981
  const random = Math.sin(seed) * 1e4;
2167
1982
  const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
@@ -2333,13 +2148,13 @@ var mockData = [
2333
2148
  ];
2334
2149
  function PieChart_DiscountUsedPercentage() {
2335
2150
  const totalDisountCode = mockData.reduce((acc, cur) => acc + cur.used, 0);
2336
- const columns = useMemo13(
2151
+ const columns = useMemo14(
2337
2152
  () => [
2338
2153
  {
2339
2154
  header: "M\xE0u",
2340
2155
  accessorKey: "color",
2341
2156
  accessorFn(originalRow) {
2342
- return /* @__PURE__ */ jsx63("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
2157
+ return /* @__PURE__ */ React.createElement("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
2343
2158
  },
2344
2159
  minSize: 30,
2345
2160
  maxSize: 30
@@ -2354,10 +2169,7 @@ function PieChart_DiscountUsedPercentage() {
2354
2169
  header: "%",
2355
2170
  accessorKey: "used",
2356
2171
  accessorFn(originalRow) {
2357
- return /* @__PURE__ */ jsx63(Fragment9, { children: /* @__PURE__ */ jsx63(Center, { children: /* @__PURE__ */ jsxs43(Text13, { children: [
2358
- (originalRow.used / totalDisountCode * 100).toFixed(0),
2359
- "%"
2360
- ] }) }) });
2172
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Center, null, /* @__PURE__ */ React.createElement(Text13, null, (originalRow.used / totalDisountCode * 100).toFixed(0), "%")));
2361
2173
  },
2362
2174
  minSize: 64,
2363
2175
  maxSize: 64
@@ -2369,20 +2181,7 @@ function PieChart_DiscountUsedPercentage() {
2369
2181
  return originalRow.used;
2370
2182
  },
2371
2183
  Cell: ({ row }) => {
2372
- return /* @__PURE__ */ jsxs43(Fragment9, { children: [
2373
- /* @__PURE__ */ jsx63(Center, { children: /* @__PURE__ */ jsxs43(Text13, { children: [
2374
- "\u0110\xE3 s\u1EED d\u1EE5ng: ",
2375
- /* @__PURE__ */ jsxs43("strong", { children: [
2376
- row.original.used,
2377
- " / ",
2378
- row.original.total
2379
- ] }),
2380
- " - (",
2381
- (row.original.used / row.original.total * 100).toFixed(2),
2382
- "%)"
2383
- ] }) }),
2384
- /* @__PURE__ */ jsx63(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
2385
- ] });
2184
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Center, null, /* @__PURE__ */ React.createElement(Text13, null, "\u0110\xE3 s\u1EED d\u1EE5ng: ", /* @__PURE__ */ React.createElement("strong", null, row.original.used, " / ", row.original.total), " - (", (row.original.used / row.original.total * 100).toFixed(2), "%)")), /* @__PURE__ */ React.createElement(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 }));
2386
2185
  },
2387
2186
  minSize: 50,
2388
2187
  maxSize: 50
@@ -2390,41 +2189,35 @@ function PieChart_DiscountUsedPercentage() {
2390
2189
  ],
2391
2190
  []
2392
2191
  );
2393
- return /* @__PURE__ */ jsx63(Fragment9, { children: /* @__PURE__ */ jsxs43(MyFlexColumn, { children: [
2394
- /* @__PURE__ */ jsx63(Text13, { mb: "20", children: "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng chi\u1EBFt kh\u1EA5u h\u1ECDc vi\xEAn trong 60 ng\xE0y qua" }),
2395
- /* @__PURE__ */ jsx63(Center, { children: /* @__PURE__ */ jsx63(
2396
- PieChart,
2397
- {
2398
- startAngle: 90,
2399
- endAngle: -270,
2400
- strokeWidth: 0,
2401
- withLabelsLine: true,
2402
- labelsPosition: "outside",
2403
- withLabels: true,
2404
- labelsType: "percent",
2405
- data: data_used_discountCode
2406
- }
2407
- ) }),
2408
- /* @__PURE__ */ jsx63(Space, { mt: 5 }),
2409
- /* @__PURE__ */ jsx63(
2410
- MyDataTable,
2411
- {
2412
- data: mockData,
2413
- columns,
2414
- initialState: {
2415
- density: "xs",
2416
- pagination: { pageIndex: 0, pageSize: 5 }
2417
- }
2192
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(MyFlexColumn, null, /* @__PURE__ */ React.createElement(Text13, { mb: "20" }, "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng chi\u1EBFt kh\u1EA5u h\u1ECDc vi\xEAn trong 60 ng\xE0y qua"), /* @__PURE__ */ React.createElement(Center, null, /* @__PURE__ */ React.createElement(
2193
+ PieChart,
2194
+ {
2195
+ startAngle: 90,
2196
+ endAngle: -270,
2197
+ strokeWidth: 0,
2198
+ withLabelsLine: true,
2199
+ labelsPosition: "outside",
2200
+ withLabels: true,
2201
+ labelsType: "percent",
2202
+ data: data_used_discountCode
2203
+ }
2204
+ )), /* @__PURE__ */ React.createElement(Space, { mt: 5 }), /* @__PURE__ */ React.createElement(
2205
+ MyDataTable,
2206
+ {
2207
+ data: mockData,
2208
+ columns,
2209
+ initialState: {
2210
+ density: "xs",
2211
+ pagination: { pageIndex: 0, pageSize: 5 }
2418
2212
  }
2419
- )
2420
- ] }) });
2213
+ }
2214
+ )));
2421
2215
  }
2422
2216
 
2423
2217
  // src/modules-features/admin/core/MainDashboard/ViewVoucherStat.tsx
2424
2218
  import { Center as Center2, Progress as Progress2, Space as Space2, Text as Text14 } from "@mantine/core";
2425
2219
  import { PieChart as PieChart2 } from "@mantine/charts";
2426
- import { useMemo as useMemo14 } from "react";
2427
- import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
2220
+ import { useMemo as useMemo15 } from "react";
2428
2221
  function getRandomColor2(seed) {
2429
2222
  const random = Math.sin(seed) * 1e4;
2430
2223
  const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
@@ -2596,13 +2389,13 @@ var mockData2 = [
2596
2389
  ];
2597
2390
  function PieChart_VoucherUsedPercentage() {
2598
2391
  const totalVoucherCode = mockData2.reduce((acc, cur) => acc + cur.used, 0);
2599
- const columns = useMemo14(
2392
+ const columns = useMemo15(
2600
2393
  () => [
2601
2394
  {
2602
2395
  header: "M\xE0u",
2603
2396
  accessorKey: "color",
2604
2397
  accessorFn(originalRow) {
2605
- return /* @__PURE__ */ jsx64("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
2398
+ return /* @__PURE__ */ React.createElement("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
2606
2399
  },
2607
2400
  minSize: 30,
2608
2401
  maxSize: 30
@@ -2617,10 +2410,7 @@ function PieChart_VoucherUsedPercentage() {
2617
2410
  header: "%",
2618
2411
  accessorKey: "used",
2619
2412
  accessorFn(originalRow) {
2620
- return /* @__PURE__ */ jsx64(Fragment10, { children: /* @__PURE__ */ jsx64(Center2, { children: /* @__PURE__ */ jsxs44(Text14, { children: [
2621
- (originalRow.used / totalVoucherCode * 100).toFixed(0),
2622
- "%"
2623
- ] }) }) });
2413
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Center2, null, /* @__PURE__ */ React.createElement(Text14, null, (originalRow.used / totalVoucherCode * 100).toFixed(0), "%")));
2624
2414
  },
2625
2415
  minSize: 64,
2626
2416
  maxSize: 64
@@ -2632,20 +2422,7 @@ function PieChart_VoucherUsedPercentage() {
2632
2422
  return originalRow.used;
2633
2423
  },
2634
2424
  Cell: ({ row }) => {
2635
- return /* @__PURE__ */ jsxs44(Fragment10, { children: [
2636
- /* @__PURE__ */ jsx64(Center2, { children: /* @__PURE__ */ jsxs44(Text14, { children: [
2637
- "\u0110\xE3 s\u1EED d\u1EE5ng: ",
2638
- /* @__PURE__ */ jsxs44("strong", { children: [
2639
- row.original.used,
2640
- " / ",
2641
- row.original.total
2642
- ] }),
2643
- " - (",
2644
- (row.original.used / row.original.total * 100).toFixed(2),
2645
- "%)"
2646
- ] }) }),
2647
- /* @__PURE__ */ jsx64(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
2648
- ] });
2425
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Center2, null, /* @__PURE__ */ React.createElement(Text14, null, "\u0110\xE3 s\u1EED d\u1EE5ng: ", /* @__PURE__ */ React.createElement("strong", null, row.original.used, " / ", row.original.total), " - (", (row.original.used / row.original.total * 100).toFixed(2), "%)")), /* @__PURE__ */ React.createElement(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 }));
2649
2426
  },
2650
2427
  minSize: 50,
2651
2428
  maxSize: 50
@@ -2653,34 +2430,29 @@ function PieChart_VoucherUsedPercentage() {
2653
2430
  ],
2654
2431
  []
2655
2432
  );
2656
- return /* @__PURE__ */ jsx64(Fragment10, { children: /* @__PURE__ */ jsxs44(MyFlexColumn, { children: [
2657
- /* @__PURE__ */ jsx64(Text14, { mb: "20", children: "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng m\xE3 gi\u1EA3m gi\xE1 h\u1ECDc vi\xEAn trong 60 ng\xE0y qua" }),
2658
- /* @__PURE__ */ jsx64(Center2, { children: /* @__PURE__ */ jsx64(
2659
- PieChart2,
2660
- {
2661
- startAngle: 90,
2662
- endAngle: -270,
2663
- strokeWidth: 0,
2664
- withLabelsLine: true,
2665
- labelsPosition: "outside",
2666
- withLabels: true,
2667
- labelsType: "percent",
2668
- data: data_used_discountCode2
2669
- }
2670
- ) }),
2671
- /* @__PURE__ */ jsx64(Space2, { mt: 5 }),
2672
- /* @__PURE__ */ jsx64(
2673
- MyDataTable,
2674
- {
2675
- data: mockData2,
2676
- columns,
2677
- initialState: {
2678
- density: "xs",
2679
- pagination: { pageIndex: 0, pageSize: 5 }
2680
- }
2433
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(MyFlexColumn, null, /* @__PURE__ */ React.createElement(Text14, { mb: "20" }, "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng m\xE3 gi\u1EA3m gi\xE1 h\u1ECDc vi\xEAn trong 60 ng\xE0y qua"), /* @__PURE__ */ React.createElement(Center2, null, /* @__PURE__ */ React.createElement(
2434
+ PieChart2,
2435
+ {
2436
+ startAngle: 90,
2437
+ endAngle: -270,
2438
+ strokeWidth: 0,
2439
+ withLabelsLine: true,
2440
+ labelsPosition: "outside",
2441
+ withLabels: true,
2442
+ labelsType: "percent",
2443
+ data: data_used_discountCode2
2444
+ }
2445
+ )), /* @__PURE__ */ React.createElement(Space2, { mt: 5 }), /* @__PURE__ */ React.createElement(
2446
+ MyDataTable,
2447
+ {
2448
+ data: mockData2,
2449
+ columns,
2450
+ initialState: {
2451
+ density: "xs",
2452
+ pagination: { pageIndex: 0, pageSize: 5 }
2681
2453
  }
2682
- )
2683
- ] }) });
2454
+ }
2455
+ )));
2684
2456
  }
2685
2457
  export {
2686
2458
  F_core12196,
@@ -2718,6 +2490,9 @@ export {
2718
2490
  F_core47643_Delete,
2719
2491
  F_core47643_Form,
2720
2492
  F_core47643_Read,
2493
+ F_core64229_Delete,
2494
+ F_core64229_Form,
2495
+ F_core64229_Read,
2721
2496
  F_core71678_ChangePermission,
2722
2497
  F_core71678_Create,
2723
2498
  F_core71678_Delete,