aq-fe-framework 0.1.37 → 0.1.39

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.
@@ -20,7 +20,7 @@ import {
20
20
  createGenericStore,
21
21
  groupToTwoLevels,
22
22
  utils_layout_getItemsWithoutLinks
23
- } from "../../../chunk-NRCIH2ZV.mjs";
23
+ } from "../../../chunk-HI66LEBI.mjs";
24
24
  import {
25
25
  U0DateToDDMMYYYString,
26
26
  U0MyValidateEmail,
@@ -53,6 +53,7 @@ import { useMemo } from "react";
53
53
  // src/modules-features/admin/core/core18256/F_core18256_Select.tsx
54
54
  import { Select } from "@mantine/core";
55
55
  import { useQuery } from "@tanstack/react-query";
56
+ import { jsx } from "react/jsx-runtime";
56
57
  function F_core18256_Select(_a) {
57
58
  var _b = _a, { documentTypeId, label = "", dataMapper } = _b, rest = __objRest(_b, ["documentTypeId", "label", "dataMapper"]);
58
59
  var _a2, _b2;
@@ -72,7 +73,7 @@ function F_core18256_Select(_a) {
72
73
  label: `${item.code}-${item.name}`
73
74
  };
74
75
  });
75
- return /* @__PURE__ */ React.createElement(
76
+ return /* @__PURE__ */ jsx(
76
77
  Select,
77
78
  __spreadProps(__spreadValues({
78
79
  label,
@@ -86,11 +87,12 @@ function F_core18256_Select(_a) {
86
87
 
87
88
  // src/modules-features/admin/core/core12196/F_core12196_Create.tsx
88
89
  import { useForm } from "@mantine/form";
90
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
89
91
  function F_core12196_Create() {
90
92
  const form = useForm({
91
93
  mode: "uncontrolled"
92
94
  });
93
- return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
95
+ return /* @__PURE__ */ jsxs(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
94
96
  return await baseAxios_default.post(
95
97
  "/Document/create",
96
98
  __spreadProps(__spreadValues({}, values), {
@@ -98,16 +100,25 @@ function F_core12196_Create() {
98
100
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
99
101
  })
100
102
  );
101
- } }, /* @__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"))));
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
+ ] });
102
111
  }
103
112
 
104
113
  // src/modules-features/admin/core/core12196/F_core12196_Delete.tsx
114
+ import { jsx as jsx3 } from "react/jsx-runtime";
105
115
  function F_core12196_Delete({ id }) {
106
- return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
116
+ return /* @__PURE__ */ jsx3(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
107
117
  }
108
118
 
109
119
  // src/modules-features/admin/core/core12196/F_core12196_Update.tsx
110
120
  import { useForm as useForm2 } from "@mantine/form";
121
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
111
122
  function F_core12196_Update({ values }) {
112
123
  var _a;
113
124
  const form = useForm2({
@@ -116,14 +127,22 @@ function F_core12196_Update({ values }) {
116
127
  promulgateDate: new Date(values.promulgateDate)
117
128
  })
118
129
  });
119
- return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
130
+ return /* @__PURE__ */ jsxs2(MyActionIconUpdate, { form, onSubmit: async (values2) => {
120
131
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
121
132
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
122
133
  }));
123
- } }, /* @__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"))));
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
+ ] });
124
142
  }
125
143
 
126
144
  // src/modules-features/admin/core/core12196/F_core12196.tsx
145
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
127
146
  function F_core12196() {
128
147
  var _a, _b, _c;
129
148
  const documentAttributeQuery = useQuery2({
@@ -136,11 +155,11 @@ function F_core12196() {
136
155
  });
137
156
  if (documentAttributeQuery.isLoading) return "Loading...";
138
157
  if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
139
- 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");
140
- 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) => {
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
160
  var _a2;
142
161
  return (_a2 = item.id) == null ? void 0 : _a2.toString();
143
- }), multiple: true }, (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ React.createElement(SubRead, { key: idx, name: item.name, documentType: item.id })))));
162
+ }), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx5(SubRead, { name: item.name, documentType: item.id }, idx)) }) }) });
144
163
  }
145
164
  function SubRead({ name, documentType }) {
146
165
  const documentQuery = useQuery2({
@@ -167,7 +186,7 @@ function SubRead({ name, documentType }) {
167
186
  {
168
187
  header: "File",
169
188
  accessorFn: (row) => {
170
- return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
189
+ return /* @__PURE__ */ jsx5(MyCenterFull, { children: /* @__PURE__ */ jsx5(MyButtonViewPDF, { id: row.id }) });
171
190
  }
172
191
  }
173
192
  ],
@@ -175,14 +194,20 @@ function SubRead({ name, documentType }) {
175
194
  );
176
195
  if (documentQuery.isLoading) return "Loading...";
177
196
  if (documentQuery.isError) return "Error!";
178
- 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(
179
- MyDataTable,
180
- {
181
- columns,
182
- data: documentQuery.data,
183
- 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 }))
184
- }
185
- )));
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
+ ] });
186
211
  }
187
212
 
188
213
  // src/modules-features/admin/core/core16209/F_core16209.tsx
@@ -192,11 +217,12 @@ import { useMemo as useMemo2 } from "react";
192
217
  // src/modules-features/admin/core/core16209/F_core16209_Create.tsx
193
218
  import { FileInput } from "@mantine/core";
194
219
  import { useForm as useForm3 } from "@mantine/form";
220
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
195
221
  function F_core16209_Create() {
196
222
  const form = useForm3({
197
223
  mode: "uncontrolled"
198
224
  });
199
- return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
225
+ return /* @__PURE__ */ jsxs4(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
200
226
  return await baseAxios_default.post(
201
227
  "/Document/create",
202
228
  __spreadProps(__spreadValues({}, values), {
@@ -205,17 +231,25 @@ function F_core16209_Create() {
205
231
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
206
232
  })
207
233
  );
208
- } }, /* @__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"))));
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
+ ] });
209
241
  }
210
242
 
211
243
  // src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
244
+ import { jsx as jsx7 } from "react/jsx-runtime";
212
245
  function F_core16209_Delete({ id }) {
213
- return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
246
+ return /* @__PURE__ */ jsx7(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
214
247
  }
215
248
 
216
249
  // src/modules-features/admin/core/core16209/F_core16209_Update.tsx
217
250
  import { FileInput as FileInput2, TextInput } from "@mantine/core";
218
251
  import { useForm as useForm4 } from "@mantine/form";
252
+ import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
219
253
  function F_core16209_Update({ values }) {
220
254
  var _a;
221
255
  const form = useForm4({
@@ -225,14 +259,20 @@ function F_core16209_Update({ values }) {
225
259
  promulgateDate: new Date(values.promulgateDate)
226
260
  })
227
261
  });
228
- return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
262
+ return /* @__PURE__ */ jsxs5(MyActionIconUpdate, { form, onSubmit: async (values2) => {
229
263
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
230
264
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
231
265
  }));
232
- } }, /* @__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"))));
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
+ ] });
233
272
  }
234
273
 
235
274
  // src/modules-features/admin/core/core16209/F_core16209.tsx
275
+ import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
236
276
  function F_core16209() {
237
277
  const query = useQuery3({
238
278
  queryKey: ["F_core16209_Read"],
@@ -263,7 +303,7 @@ function F_core16209() {
263
303
  {
264
304
  header: "File",
265
305
  accessorFn: (row) => {
266
- return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
306
+ return /* @__PURE__ */ jsx9(MyCenterFull, { children: /* @__PURE__ */ jsx9(MyButtonViewPDF, { id: row.id }) });
267
307
  }
268
308
  }
269
309
  ],
@@ -271,17 +311,20 @@ function F_core16209() {
271
311
  );
272
312
  if (query.isLoading) return "Loading...";
273
313
  if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
274
- return /* @__PURE__ */ React.createElement(MyPageContent, null, /* @__PURE__ */ React.createElement(
314
+ return /* @__PURE__ */ jsx9(MyPageContent, { children: /* @__PURE__ */ jsx9(
275
315
  MyDataTable,
276
316
  {
277
317
  columns,
278
318
  data: query.data,
279
- renderTopToolbarCustomActions: () => /* @__PURE__ */ React.createElement(F_core16209_Create, null),
319
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx9(F_core16209_Create, {}),
280
320
  renderRowActions: ({ row }) => {
281
- 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 }));
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
+ ] });
282
325
  }
283
326
  }
284
- ));
327
+ ) });
285
328
  }
286
329
 
287
330
  // src/modules-features/admin/core/core18256/F_core18256.tsx
@@ -293,6 +336,7 @@ import { useMemo as useMemo3 } from "react";
293
336
 
294
337
  // src/modules-features/admin/core/core18256/F_core18256_Create.tsx
295
338
  import { useForm as useForm5 } from "@mantine/form";
339
+ import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
296
340
  function F_core18256_Create({ documentType }) {
297
341
  const form = useForm5({
298
342
  mode: "uncontrolled",
@@ -305,12 +349,16 @@ function F_core18256_Create({ documentType }) {
305
349
  name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
306
350
  }
307
351
  });
308
- 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"))));
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
+ ] });
309
356
  }
310
357
 
311
358
  // src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
359
+ import { jsx as jsx11 } from "react/jsx-runtime";
312
360
  function F_core18256_Delete({ id }) {
313
- return /* @__PURE__ */ React.createElement(
361
+ return /* @__PURE__ */ jsx11(
314
362
  MyActionIconDelete,
315
363
  {
316
364
  onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
@@ -320,14 +368,19 @@ function F_core18256_Delete({ id }) {
320
368
 
321
369
  // src/modules-features/admin/core/core18256/F_core18256_Update.tsx
322
370
  import { useForm as useForm6 } from "@mantine/form";
371
+ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
323
372
  function F_core18256_Update({ values }) {
324
373
  const form = useForm6({
325
374
  initialValues: values
326
375
  });
327
- 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"))));
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
+ ] });
328
380
  }
329
381
 
330
382
  // src/modules-features/admin/core/core18256/F_core18256_Read.tsx
383
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
331
384
  function F_core18256_Read({ documentType }) {
332
385
  const documentAttributeQuery = useQuery4({
333
386
  queryKey: ["F_core18256_Read", documentType],
@@ -352,37 +405,46 @@ function F_core18256_Read({ documentType }) {
352
405
  );
353
406
  if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
354
407
  if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
355
- return /* @__PURE__ */ React.createElement(
408
+ return /* @__PURE__ */ jsx13(
356
409
  MyDataTable,
357
410
  {
358
411
  columns,
359
412
  enableRowNumbers: true,
360
413
  data: documentAttributeQuery.data,
361
- renderTopToolbarCustomActions: () => /* @__PURE__ */ React.createElement(F_core18256_Create, { documentType }),
414
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx13(F_core18256_Create, { documentType }),
362
415
  renderRowActions: ({ row }) => {
363
- 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 }));
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
+ ] });
364
420
  }
365
421
  }
366
422
  );
367
423
  }
368
424
 
369
425
  // src/modules-features/admin/core/core18256/F_core18256.tsx
426
+ import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
370
427
  var tabData = [
371
428
  { label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
372
429
  { label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
373
430
  { label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
374
431
  ];
375
432
  function F_core18256() {
376
- 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 }))));
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
+ ] }) });
377
438
  }
378
439
 
379
440
  // src/modules-features/admin/core/core26965/F_core26965_Create.tsx
380
441
  import { useForm as useForm7 } from "@mantine/form";
442
+ import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
381
443
  function F_core26965_Create() {
382
444
  const form = useForm7({
383
445
  mode: "uncontrolled"
384
446
  });
385
- return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
447
+ return /* @__PURE__ */ jsxs11(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
386
448
  return await baseAxios_default.post(
387
449
  "/Document/create",
388
450
  __spreadProps(__spreadValues({}, values), {
@@ -390,7 +452,14 @@ function F_core26965_Create() {
390
452
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
391
453
  })
392
454
  );
393
- } }, /* @__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"))));
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
+ ] });
394
463
  }
395
464
 
396
465
  // src/modules-features/admin/core/core26965/F_core26965_Read.tsx
@@ -399,12 +468,14 @@ import { useQuery as useQuery5 } from "@tanstack/react-query";
399
468
  import { useMemo as useMemo4 } from "react";
400
469
 
401
470
  // src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
471
+ import { jsx as jsx16 } from "react/jsx-runtime";
402
472
  function F_core26965_Delete({ id }) {
403
- return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
473
+ return /* @__PURE__ */ jsx16(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
404
474
  }
405
475
 
406
476
  // src/modules-features/admin/core/core26965/F_core26965_Update.tsx
407
477
  import { useForm as useForm8 } from "@mantine/form";
478
+ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
408
479
  function F_core26965_Update({ values }) {
409
480
  var _a;
410
481
  const form = useForm8({
@@ -413,14 +484,22 @@ function F_core26965_Update({ values }) {
413
484
  promulgateDate: new Date(values.promulgateDate)
414
485
  })
415
486
  });
416
- return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
487
+ return /* @__PURE__ */ jsxs12(MyActionIconUpdate, { form, onSubmit: async (values2) => {
417
488
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
418
489
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
419
490
  }));
420
- } }, /* @__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"))));
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
+ ] });
421
499
  }
422
500
 
423
501
  // src/modules-features/admin/core/core26965/F_core26965_Read.tsx
502
+ import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
424
503
  function F_core26965_Read() {
425
504
  var _a, _b, _c;
426
505
  const documentAttributeQuery = useQuery5({
@@ -433,11 +512,11 @@ function F_core26965_Read() {
433
512
  });
434
513
  if (documentAttributeQuery.isLoading) return "Loading...";
435
514
  if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
436
- 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");
437
- return /* @__PURE__ */ React.createElement(MyFlexColumn, null, /* @__PURE__ */ React.createElement(Accordion2, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
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
517
  var _a2;
439
518
  return (_a2 = item.id) == null ? void 0 : _a2.toString();
440
- }), multiple: true }, (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ React.createElement(SubRead2, { key: idx, name: item.name, documentType: item.id }))));
519
+ }), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx18(SubRead2, { name: item.name, documentType: item.id }, idx)) }) });
441
520
  }
442
521
  function SubRead2({ name, documentType }) {
443
522
  const documentQuery = useQuery5({
@@ -464,7 +543,7 @@ function SubRead2({ name, documentType }) {
464
543
  {
465
544
  header: "File",
466
545
  accessorFn: (row) => {
467
- return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
546
+ return /* @__PURE__ */ jsx18(MyCenterFull, { children: /* @__PURE__ */ jsx18(MyButtonViewPDF, { id: row.id }) });
468
547
  }
469
548
  }
470
549
  ],
@@ -472,28 +551,36 @@ function SubRead2({ name, documentType }) {
472
551
  );
473
552
  if (documentQuery.isLoading) return "Loading...";
474
553
  if (documentQuery.isError) return "Error!";
475
- 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(
476
- MyDataTable,
477
- {
478
- columns,
479
- data: documentQuery.data,
480
- 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 }))
481
- }
482
- )));
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
+ ] });
483
568
  }
484
569
 
485
570
  // src/modules-features/admin/core/core26965/F_core26965.tsx
571
+ import { jsx as jsx19 } from "react/jsx-runtime";
486
572
  function F_core26965() {
487
- return /* @__PURE__ */ React.createElement(MyPageContent, { rightTopBar: /* @__PURE__ */ React.createElement(F_core26965_Create, null) }, /* @__PURE__ */ React.createElement(F_core26965_Read, null));
573
+ return /* @__PURE__ */ jsx19(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx19(F_core26965_Create, {}), children: /* @__PURE__ */ jsx19(F_core26965_Read, {}) });
488
574
  }
489
575
 
490
576
  // src/modules-features/admin/core/core27311/F_core27311_Create.tsx
491
577
  import { useForm as useForm9 } from "@mantine/form";
578
+ import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
492
579
  function F_core27311_Create() {
493
580
  const form = useForm9({
494
581
  mode: "uncontrolled"
495
582
  });
496
- return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
583
+ return /* @__PURE__ */ jsxs14(MyButtonCreate, { objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", form, onSubmit: async (values) => {
497
584
  return await baseAxios_default.post(
498
585
  "/Document/create",
499
586
  __spreadProps(__spreadValues({}, values), {
@@ -501,7 +588,14 @@ function F_core27311_Create() {
501
588
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
502
589
  })
503
590
  );
504
- } }, /* @__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"))));
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
+ ] });
505
599
  }
506
600
 
507
601
  // src/modules-features/admin/core/core27311/F_core27311_Read.tsx
@@ -510,12 +604,14 @@ import { useQuery as useQuery6 } from "@tanstack/react-query";
510
604
  import { useMemo as useMemo5 } from "react";
511
605
 
512
606
  // src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
607
+ import { jsx as jsx21 } from "react/jsx-runtime";
513
608
  function F_core27311_Delete({ id }) {
514
- return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
609
+ return /* @__PURE__ */ jsx21(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
515
610
  }
516
611
 
517
612
  // src/modules-features/admin/core/core27311/F_core27311_Update.tsx
518
613
  import { useForm as useForm10 } from "@mantine/form";
614
+ import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
519
615
  function F_core27311_Update({ values }) {
520
616
  var _a;
521
617
  const form = useForm10({
@@ -524,14 +620,22 @@ function F_core27311_Update({ values }) {
524
620
  promulgateDate: new Date(values.promulgateDate)
525
621
  })
526
622
  });
527
- return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
623
+ return /* @__PURE__ */ jsxs15(MyActionIconUpdate, { form, onSubmit: async (values2) => {
528
624
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
529
625
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
530
626
  }));
531
- } }, /* @__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"))));
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
+ ] });
532
635
  }
533
636
 
534
637
  // src/modules-features/admin/core/core27311/F_core27311_Read.tsx
638
+ import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
535
639
  function F_core27311_Read() {
536
640
  var _a, _b, _c;
537
641
  const documentAttributeQuery = useQuery6({
@@ -544,11 +648,11 @@ function F_core27311_Read() {
544
648
  });
545
649
  if (documentAttributeQuery.isLoading) return "Loading...";
546
650
  if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
547
- 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");
548
- return /* @__PURE__ */ React.createElement(MyFlexColumn, null, /* @__PURE__ */ React.createElement(Accordion3, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
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
653
  var _a2;
550
654
  return (_a2 = item.id) == null ? void 0 : _a2.toString();
551
- }), multiple: true }, (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ React.createElement(SubRead3, { key: idx, name: item.name, documentType: item.id }))));
655
+ }), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx23(SubRead3, { name: item.name, documentType: item.id }, idx)) }) });
552
656
  }
553
657
  function SubRead3({ name, documentType }) {
554
658
  const documentQuery = useQuery6({
@@ -575,7 +679,7 @@ function SubRead3({ name, documentType }) {
575
679
  {
576
680
  header: "File",
577
681
  accessorFn: (row) => {
578
- return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
682
+ return /* @__PURE__ */ jsx23(MyCenterFull, { children: /* @__PURE__ */ jsx23(MyButtonViewPDF, { id: row.id }) });
579
683
  }
580
684
  }
581
685
  ],
@@ -583,19 +687,26 @@ function SubRead3({ name, documentType }) {
583
687
  );
584
688
  if (documentQuery.isLoading) return "Loading...";
585
689
  if (documentQuery.isError) return "Error!";
586
- 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(
587
- MyDataTable,
588
- {
589
- columns,
590
- data: documentQuery.data,
591
- 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 }))
592
- }
593
- )));
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
+ ] });
594
704
  }
595
705
 
596
706
  // src/modules-features/admin/core/core27311/F_core27311.tsx
707
+ import { jsx as jsx24 } from "react/jsx-runtime";
597
708
  function F_core27311() {
598
- return /* @__PURE__ */ React.createElement(MyPageContent, { rightTopBar: /* @__PURE__ */ React.createElement(F_core27311_Create, null) }, /* @__PURE__ */ React.createElement(F_core27311_Read, null));
709
+ return /* @__PURE__ */ jsx24(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx24(F_core27311_Create, {}), children: /* @__PURE__ */ jsx24(F_core27311_Read, {}) });
599
710
  }
600
711
 
601
712
  // src/modules-features/admin/core/core38677/F_core38677.tsx
@@ -655,6 +766,7 @@ function utils_core83092_mergePage(arr1, arr2) {
655
766
  }
656
767
 
657
768
  // src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
769
+ import { jsx as jsx25 } from "react/jsx-runtime";
658
770
  function F_core38677_ReadUser() {
659
771
  const store = useS_core83092();
660
772
  const query = useQ_Account_GetAdminAccount();
@@ -687,7 +799,7 @@ function F_core38677_ReadUser() {
687
799
  }, [query.data]);
688
800
  if (query.isLoading) return "Loading...";
689
801
  if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
690
- return /* @__PURE__ */ React.createElement(Container, { fluid: true }, /* @__PURE__ */ React.createElement(
802
+ return /* @__PURE__ */ jsx25(Container, { fluid: true, children: /* @__PURE__ */ jsx25(
691
803
  MyDataTable,
692
804
  {
693
805
  columns,
@@ -705,7 +817,7 @@ function F_core38677_ReadUser() {
705
817
  }),
706
818
  state: rowSelection
707
819
  }
708
- ));
820
+ ) });
709
821
  }
710
822
  function useQ_Account_GetAdminAccount() {
711
823
  const query = useQuery7({
@@ -723,6 +835,7 @@ function useQ_Account_GetAdminAccount() {
723
835
  // src/modules-features/admin/core/core38677/F_core38677_Save.tsx
724
836
  import { useMutation } from "@tanstack/react-query";
725
837
  import { useEffect as useEffect2, useState as useState2 } from "react";
838
+ import { jsx as jsx26 } from "react/jsx-runtime";
726
839
  function F_core38677_Save() {
727
840
  const store = useS_core83092();
728
841
  const disable = useState2(false);
@@ -751,7 +864,7 @@ function F_core38677_Save() {
751
864
  }
752
865
  disable[1](false);
753
866
  }, [store.state.rolePermissions]);
754
- return /* @__PURE__ */ React.createElement(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
867
+ return /* @__PURE__ */ jsx26(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
755
868
  }
756
869
 
757
870
  // src/data/menuData.ts
@@ -891,7 +1004,8 @@ var menuData = [
891
1004
  import { Checkbox, Flex, ScrollArea, Table, Text } from "@mantine/core";
892
1005
  import { IconEdit, IconEyeUp, IconFileExport, IconPlus, IconPrinter, IconTrash } from "@tabler/icons-react";
893
1006
  import { useQuery as useQuery8 } from "@tanstack/react-query";
894
- import React2, { useEffect as useEffect3, useState as useState3 } from "react";
1007
+ import React, { useEffect as useEffect3, useState as useState3 } from "react";
1008
+ import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
895
1009
  var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
896
1010
  function F_core38677_ViewMenuPermissions() {
897
1011
  var _a, _b;
@@ -906,107 +1020,173 @@ function F_core38677_ViewMenuPermissions() {
906
1020
  store.setProperty("rolePermissions", query.data);
907
1021
  }, [query.data]);
908
1022
  if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
909
- return /* @__PURE__ */ React2.createElement(ScrollArea.Autosize, { h: "70vh" }, /* @__PURE__ */ React2.createElement(Table, null, /* @__PURE__ */ React2.createElement(
910
- Table.Thead,
911
- {
912
- bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
913
- style: {
914
- position: "sticky",
915
- top: 0,
916
- zIndex: 1,
917
- boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
918
- border: "1px solid var(--mantine-color-gray-4)"
919
- }
920
- },
921
- /* @__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) => {
922
- store.toogleAllPermissionWithType("isRead", e.target.checked);
923
- } }), /* @__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) => {
924
- store.toogleAllPermissionWithType("isCreate", e.target.checked);
925
- } }), /* @__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) => {
926
- store.toogleAllPermissionWithType("isUpdate", e.target.checked);
927
- } }), /* @__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) => {
928
- store.toogleAllPermissionWithType("isDelete", e.target.checked);
929
- } }), /* @__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) => {
930
- store.toogleAllPermissionWithType("isPrint", e.target.checked);
931
- } }), /* @__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) => {
932
- store.toogleAllPermissionWithType("isExport", e.target.checked);
933
- } }), /* @__PURE__ */ React2.createElement(MyFlexRow, { gap: 3 }, "Xu\u1EA5t", /* @__PURE__ */ React2.createElement(IconFileExport, { color: "var(--mantine-color-green-8)" })))))
934
- ), /* @__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) => {
935
- 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))));
936
- return /* @__PURE__ */ React2.createElement(React2.Fragment, { key: idx }, /* @__PURE__ */ React2.createElement(Table.Tr, { key: item.label }, /* @__PURE__ */ React2.createElement(
937
- Table.Td,
1023
+ return /* @__PURE__ */ jsx27(ScrollArea.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs17(Table, { children: [
1024
+ /* @__PURE__ */ jsx27(
1025
+ Table.Thead,
938
1026
  {
939
- colSpan: 7,
940
- bg: OBJECT_COlORS.mantineBackgroundBlueLight
941
- },
942
- /* @__PURE__ */ React2.createElement(Text, { fs: "oblique", size: "sm", fw: "bold" }, item.label)
943
- )), item.links.map(
944
- (item2, idx2) => {
945
- var _a2, _b2, _c, _d, _e, _f;
946
- 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(
947
- Checkbox,
948
- {
949
- checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
950
- onChange: (e) => {
951
- store.updatePermission(item2.pageId, {
952
- isRead: e.target.checked
953
- });
954
- }
955
- }
956
- ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
957
- Checkbox,
958
- {
959
- checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
960
- onChange: (e) => {
961
- store.updatePermission(item2.pageId, {
962
- isCreate: e.target.checked
963
- });
964
- }
965
- }
966
- ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
967
- Checkbox,
968
- {
969
- checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
970
- onChange: (e) => {
971
- store.updatePermission(item2.pageId, {
972
- isUpdate: e.target.checked
973
- });
974
- }
975
- }
976
- ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
977
- Checkbox,
978
- {
979
- checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
980
- onChange: (e) => {
981
- store.updatePermission(item2.pageId, {
982
- isDelete: e.target.checked
983
- });
984
- }
985
- }
986
- ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
987
- Checkbox,
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
+ ] })
1092
+ }
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,
988
1107
  {
989
- checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
990
- onChange: (e) => {
991
- store.updatePermission(item2.pageId, {
992
- isPrint: e.target.checked
993
- });
994
- }
1108
+ colSpan: 7,
1109
+ bg: OBJECT_COlORS.mantineBackgroundBlueLight,
1110
+ children: /* @__PURE__ */ jsx27(Text, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
995
1111
  }
996
- ))), /* @__PURE__ */ React2.createElement(Table.Td, null, /* @__PURE__ */ React2.createElement(MyCenterFull, null, /* @__PURE__ */ React2.createElement(
997
- Checkbox,
998
- {
999
- checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
1000
- onChange: (e) => {
1001
- store.updatePermission(item2.pageId, {
1002
- isExport: e.target.checked
1003
- });
1004
- }
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);
1005
1185
  }
1006
- ))));
1007
- }
1008
- ));
1009
- }))));
1186
+ )
1187
+ ] }, idx);
1188
+ }) })
1189
+ ] }) });
1010
1190
  }
1011
1191
  function useGetUserPermission() {
1012
1192
  const store = useS_core83092();
@@ -1045,6 +1225,9 @@ function useGetUserPermission() {
1045
1225
  return query;
1046
1226
  }
1047
1227
 
1228
+ // src/modules-features/admin/core/core38677/F_core38677.tsx
1229
+ import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
1230
+
1048
1231
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
1049
1232
  import { useQuery as useQuery9 } from "@tanstack/react-query";
1050
1233
  import { useMemo as useMemo7 } from "react";
@@ -1052,11 +1235,12 @@ import { useMemo as useMemo7 } from "react";
1052
1235
  // src/modules-features/admin/core/core40207/F_core40207_Create.tsx
1053
1236
  import { FileInput as FileInput3 } from "@mantine/core";
1054
1237
  import { useForm as useForm11 } from "@mantine/form";
1238
+ import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
1055
1239
  function F_core40207_Create() {
1056
1240
  const form = useForm11({
1057
1241
  mode: "uncontrolled"
1058
1242
  });
1059
- return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
1243
+ return /* @__PURE__ */ jsxs19(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
1060
1244
  return await baseAxios_default.post(
1061
1245
  "/Document/create",
1062
1246
  __spreadProps(__spreadValues({}, values), {
@@ -1065,17 +1249,23 @@ function F_core40207_Create() {
1065
1249
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
1066
1250
  })
1067
1251
  );
1068
- } }, /* @__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"))));
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
+ ] });
1069
1257
  }
1070
1258
 
1071
1259
  // src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
1260
+ import { jsx as jsx30 } from "react/jsx-runtime";
1072
1261
  function F_core40207_Delete({ id }) {
1073
- return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
1262
+ return /* @__PURE__ */ jsx30(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
1074
1263
  }
1075
1264
 
1076
1265
  // src/modules-features/admin/core/core40207/F_core40207_Update.tsx
1077
1266
  import { FileInput as FileInput4 } from "@mantine/core";
1078
1267
  import { useForm as useForm12 } from "@mantine/form";
1268
+ import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
1079
1269
  function F_core40207_Update({ values }) {
1080
1270
  var _a;
1081
1271
  const form = useForm12({
@@ -1085,14 +1275,19 @@ function F_core40207_Update({ values }) {
1085
1275
  promulgateDate: new Date(values.promulgateDate)
1086
1276
  })
1087
1277
  });
1088
- return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
1278
+ return /* @__PURE__ */ jsxs20(MyActionIconUpdate, { form, onSubmit: async (values2) => {
1089
1279
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
1090
1280
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
1091
1281
  }));
1092
- } }, /* @__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"))));
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
+ ] });
1093
1287
  }
1094
1288
 
1095
1289
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
1290
+ import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
1096
1291
  function F_core40207_Read() {
1097
1292
  const query = useQuery9({
1098
1293
  queryKey: ["F_core40207_Read"],
@@ -1115,7 +1310,7 @@ function F_core40207_Read() {
1115
1310
  {
1116
1311
  header: "File",
1117
1312
  accessorFn: (row) => {
1118
- return /* @__PURE__ */ React.createElement(MyCenterFull, null, /* @__PURE__ */ React.createElement(MyButtonViewPDF, { id: row.id }));
1313
+ return /* @__PURE__ */ jsx32(MyCenterFull, { children: /* @__PURE__ */ jsx32(MyButtonViewPDF, { id: row.id }) });
1119
1314
  }
1120
1315
  }
1121
1316
  ],
@@ -1123,22 +1318,26 @@ function F_core40207_Read() {
1123
1318
  );
1124
1319
  if (query.isLoading) return "Loading...";
1125
1320
  if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
1126
- return /* @__PURE__ */ React.createElement(
1321
+ return /* @__PURE__ */ jsx32(
1127
1322
  MyDataTable,
1128
1323
  {
1129
1324
  columns,
1130
1325
  data: query.data,
1131
- renderTopToolbarCustomActions: () => /* @__PURE__ */ React.createElement(F_core40207_Create, null),
1326
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx32(F_core40207_Create, {}),
1132
1327
  renderRowActions: ({ row }) => {
1133
- 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 }));
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
+ ] });
1134
1332
  }
1135
1333
  }
1136
1334
  );
1137
1335
  }
1138
1336
 
1139
1337
  // src/modules-features/admin/core/core40207/F_core40207.tsx
1338
+ import { jsx as jsx33 } from "react/jsx-runtime";
1140
1339
  function F_core40207() {
1141
- return /* @__PURE__ */ React.createElement(MyPageContent, null, /* @__PURE__ */ React.createElement(F_core40207_Read, null));
1340
+ return /* @__PURE__ */ jsx33(MyPageContent, { children: /* @__PURE__ */ jsx33(F_core40207_Read, {}) });
1142
1341
  }
1143
1342
 
1144
1343
  // src/modules-features/admin/core/core47643/F_core47643_Read.tsx
@@ -1147,9 +1346,10 @@ import { useQuery as useQuery10 } from "@tanstack/react-query";
1147
1346
  import { useMemo as useMemo8 } from "react";
1148
1347
 
1149
1348
  // src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
1349
+ import { jsx as jsx34 } from "react/jsx-runtime";
1150
1350
  var ENDPOINT = "/Role/Delete";
1151
1351
  function F_core47643_Delete({ values }) {
1152
- return /* @__PURE__ */ React.createElement(
1352
+ return /* @__PURE__ */ jsx34(
1153
1353
  MyActionIconDelete,
1154
1354
  {
1155
1355
  contextData: values.code,
@@ -1160,20 +1360,28 @@ function F_core47643_Delete({ values }) {
1160
1360
 
1161
1361
  // src/modules-features/admin/core/core47643/F_core47643_Form.tsx
1162
1362
  import { useForm as useForm13 } from "@mantine/form";
1363
+ import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
1163
1364
  function F_core47643_Form({ values }) {
1164
1365
  const form = useForm13({
1165
1366
  mode: "uncontrolled",
1166
1367
  initialValues: values
1167
1368
  });
1168
- if (values) return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async () => {
1369
+ if (values) return /* @__PURE__ */ jsxs22(MyActionIconUpdate, { form, onSubmit: async () => {
1169
1370
  return await baseAxios_default.post("/Role/Update", form.getValues());
1170
- } }, /* @__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"))));
1171
- return /* @__PURE__ */ React.createElement(MyButtonCreate, { form, onSubmit: async () => {
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 () => {
1172
1376
  return await baseAxios_default.post("/Role/Create", form.getValues());
1173
- } }, /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))), /* @__PURE__ */ React.createElement(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name"))));
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
+ ] });
1174
1381
  }
1175
1382
 
1176
1383
  // src/modules-features/admin/core/core47643/F_core47643_Read.tsx
1384
+ import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
1177
1385
  function F_core47643_Read() {
1178
1386
  const query = useQ_core47643_GetAdminRole();
1179
1387
  const columns = useMemo8(() => [
@@ -1188,13 +1396,16 @@ function F_core47643_Read() {
1188
1396
  ], []);
1189
1397
  if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
1190
1398
  if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
1191
- return /* @__PURE__ */ React.createElement(
1399
+ return /* @__PURE__ */ jsx36(
1192
1400
  MyDataTable,
1193
1401
  {
1194
1402
  data: query.data,
1195
1403
  columns,
1196
- renderTopToolbarCustomActions: () => /* @__PURE__ */ React.createElement(Group, null, /* @__PURE__ */ React.createElement(F_core47643_Form, null)),
1197
- 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 }))
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
+ ] })
1198
1409
  }
1199
1410
  );
1200
1411
  }
@@ -1210,8 +1421,9 @@ function useQ_core47643_GetAdminRole() {
1210
1421
  }
1211
1422
 
1212
1423
  // src/modules-features/admin/core/core47643/F_core47643.tsx
1424
+ import { jsx as jsx37 } from "react/jsx-runtime";
1213
1425
  function F_core47643() {
1214
- return /* @__PURE__ */ React.createElement(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true }, /* @__PURE__ */ React.createElement(F_core47643_Read, null));
1426
+ return /* @__PURE__ */ jsx37(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx37(F_core47643_Read, {}) });
1215
1427
  }
1216
1428
 
1217
1429
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
@@ -1226,6 +1438,7 @@ import { Button, Fieldset, Group as Group2, Table as Table2 } from "@mantine/cor
1226
1438
  import { useDisclosure } from "@mantine/hooks";
1227
1439
  import { useMutation as useMutation2, useQuery as useQuery11, useQueryClient } from "@tanstack/react-query";
1228
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";
1229
1442
  function F_core71678_ChangePermission({ user }) {
1230
1443
  const disc = useDisclosure();
1231
1444
  const queryClient = useQueryClient();
@@ -1272,42 +1485,62 @@ function F_core71678_ChangePermission({ user }) {
1272
1485
  }, {});
1273
1486
  setRowSelection(result);
1274
1487
  }, []);
1275
- 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(
1276
- Table2,
1277
- {
1278
- w: "100%",
1279
- variant: "vertical",
1280
- layout: "fixed"
1281
- },
1282
- /* @__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)))
1283
- ), 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(
1284
- MyDataTable,
1285
- {
1286
- enableRowSelection: true,
1287
- onRowSelectionChange: setRowSelection,
1288
- state: { rowSelection },
1289
- setSelectedRow: rowSelect[1],
1290
- getRowId: (originalRow) => {
1291
- var _a;
1292
- return (_a = originalRow.id) == null ? void 0 : _a.toString();
1293
- },
1294
- initialState: {
1295
- density: "xs",
1296
- pagination: { pageIndex: 0, pageSize: 10 },
1297
- columnPinning: { right: ["mrt-row-actions"] },
1298
- columnVisibility: {
1299
- nguoiCapNhat: false,
1300
- ngayCapNhat: false
1301
- }
1302
- },
1303
- columns: permissionColumns,
1304
- data: query.data
1305
- }
1306
- )), /* @__PURE__ */ React.createElement(Group2, { justify: "flex-end", mt: 24 }, /* @__PURE__ */ React.createElement(Button, { onClick: handleSave }, "L\u01B0u")));
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
+ ] });
1307
1539
  }
1308
1540
 
1309
1541
  // src/modules-features/admin/core/core71678/F_core71678_Create.tsx
1310
1542
  import { useForm as useForm14 } from "@mantine/form";
1543
+ import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
1311
1544
  var ENDPOINT2 = "/Account/create";
1312
1545
  function F_core71678_Create() {
1313
1546
  const form = useForm14({
@@ -1335,13 +1568,21 @@ function F_core71678_Create() {
1335
1568
  AQModuleId: 1002
1336
1569
  }));
1337
1570
  }
1338
- 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"))));
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
+ ] });
1339
1579
  }
1340
1580
 
1341
1581
  // src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
1582
+ import { jsx as jsx40 } from "react/jsx-runtime";
1342
1583
  var ENDPOINT3 = "/Account/delete";
1343
1584
  function F_core71678_Delete({ id, code }) {
1344
- return /* @__PURE__ */ React.createElement(
1585
+ return /* @__PURE__ */ jsx40(
1345
1586
  MyActionIconDelete,
1346
1587
  {
1347
1588
  contextData: code,
@@ -1353,6 +1594,7 @@ function F_core71678_Delete({ id, code }) {
1353
1594
  // src/modules-features/admin/core/core71678/F_core71678_Update.tsx
1354
1595
  import { useForm as useForm15 } from "@mantine/form";
1355
1596
  import { useEffect as useEffect5 } from "react";
1597
+ import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
1356
1598
  function F_core71678_Update({ user }) {
1357
1599
  const form = useForm15({
1358
1600
  initialValues: user
@@ -1360,7 +1602,7 @@ function F_core71678_Update({ user }) {
1360
1602
  useEffect5(() => {
1361
1603
  console.log(form.values);
1362
1604
  }, [form.values]);
1363
- return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values) => {
1605
+ return /* @__PURE__ */ jsx41(MyActionIconUpdate, { form, onSubmit: async (values) => {
1364
1606
  return await baseAxios_default.post(
1365
1607
  "/Account/update",
1366
1608
  __spreadProps(__spreadValues({}, values), {
@@ -1372,10 +1614,17 @@ function F_core71678_Update({ user }) {
1372
1614
  workingUnitId: null
1373
1615
  })
1374
1616
  );
1375
- } }, /* @__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")))));
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
+ ] }) });
1376
1624
  }
1377
1625
 
1378
1626
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
1627
+ import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
1379
1628
  var ENDPOINT4 = "/Account/GetAdminAccount";
1380
1629
  function F_core71678_Read() {
1381
1630
  const router = useRouter();
@@ -1407,37 +1656,46 @@ function F_core71678_Read() {
1407
1656
  },
1408
1657
  {
1409
1658
  header: "Quy\u1EC1n",
1410
- accessorFn: (row) => /* @__PURE__ */ React.createElement(F_core71678_ChangePermission, { user: row })
1659
+ accessorFn: (row) => /* @__PURE__ */ jsx42(F_core71678_ChangePermission, { user: row })
1411
1660
  }
1412
1661
  ],
1413
1662
  []
1414
1663
  );
1415
1664
  if (AllUserQuery.isLoading) return "Loading...";
1416
- return /* @__PURE__ */ React.createElement(
1665
+ return /* @__PURE__ */ jsx42(
1417
1666
  MyDataTable,
1418
1667
  {
1419
1668
  columns,
1420
1669
  data: AllUserQuery.data,
1421
1670
  renderTopToolbarCustomActions: () => {
1422
- return /* @__PURE__ */ React.createElement(Group3, null, /* @__PURE__ */ React.createElement(F_core71678_Create, null), /* @__PURE__ */ React.createElement(
1423
- Button2,
1424
- {
1425
- color: "violet",
1426
- leftSection: /* @__PURE__ */ React.createElement(IconShield, null),
1427
- onClick: () => {
1428
- router.push("core47643");
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"
1429
1682
  }
1430
- },
1431
- "Danh m\u1EE5c quy\u1EC1n"
1432
- ));
1683
+ )
1684
+ ] });
1433
1685
  },
1434
1686
  renderRowActions: ({ row }) => {
1435
- 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 }));
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
+ ] });
1436
1691
  }
1437
1692
  }
1438
1693
  );
1439
1694
  }
1440
1695
 
1696
+ // src/modules-features/admin/core/core71678/F_core71678.tsx
1697
+ import { jsx as jsx43 } from "react/jsx-runtime";
1698
+
1441
1699
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
1442
1700
  import { useQuery as useQuery13 } from "@tanstack/react-query";
1443
1701
  import { useMemo as useMemo11 } from "react";
@@ -1445,11 +1703,12 @@ import { useMemo as useMemo11 } from "react";
1445
1703
  // src/modules-features/admin/core/core76318/F_core76318_Create.tsx
1446
1704
  import { FileInput as FileInput5 } from "@mantine/core";
1447
1705
  import { useForm as useForm16 } from "@mantine/form";
1706
+ import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
1448
1707
  function F_core76318_Create() {
1449
1708
  const form = useForm16({
1450
1709
  mode: "uncontrolled"
1451
1710
  });
1452
- return /* @__PURE__ */ React.createElement(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
1711
+ return /* @__PURE__ */ jsxs28(MyButtonCreate, { objectName: "v\u0103n b\u1EA3n", form, onSubmit: async (values) => {
1453
1712
  return await baseAxios_default.post(
1454
1713
  "/Document/create",
1455
1714
  __spreadProps(__spreadValues({}, values), {
@@ -1458,17 +1717,24 @@ function F_core76318_Create() {
1458
1717
  fileDetail: await utils_file_fileToAQDocumentType(values.file)
1459
1718
  })
1460
1719
  );
1461
- } }, /* @__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"))));
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
+ ] });
1462
1726
  }
1463
1727
 
1464
1728
  // src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
1729
+ import { jsx as jsx45 } from "react/jsx-runtime";
1465
1730
  function F_core76318_Delete({ id }) {
1466
- return /* @__PURE__ */ React.createElement(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
1731
+ return /* @__PURE__ */ jsx45(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
1467
1732
  }
1468
1733
 
1469
1734
  // src/modules-features/admin/core/core76318/F_core76318_Update.tsx
1470
1735
  import { FileInput as FileInput6, TextInput as TextInput2 } from "@mantine/core";
1471
1736
  import { useForm as useForm17 } from "@mantine/form";
1737
+ import { jsx as jsx46, jsxs as jsxs29 } from "react/jsx-runtime";
1472
1738
  function F_core76318_Update({ values }) {
1473
1739
  var _a;
1474
1740
  const form = useForm17({
@@ -1478,13 +1744,24 @@ function F_core76318_Update({ values }) {
1478
1744
  promulgateDate: new Date(values.promulgateDate)
1479
1745
  })
1480
1746
  });
1481
- return /* @__PURE__ */ React.createElement(MyActionIconUpdate, { form, onSubmit: async (values2) => {
1747
+ return /* @__PURE__ */ jsxs29(MyActionIconUpdate, { form, onSubmit: async (values2) => {
1482
1748
  return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
1483
1749
  fileDetail: await utils_file_fileToAQDocumentType(values2.file)
1484
1750
  }));
1485
- } }, /* @__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"))));
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
+ ] });
1486
1757
  }
1487
1758
 
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
+
1488
1765
  // src/modules-features/admin/core/core83092/F_core83092.tsx
1489
1766
  import { Grid as Grid2, Paper as Paper2, ScrollArea as ScrollArea4 } from "@mantine/core";
1490
1767
 
@@ -1492,6 +1769,7 @@ import { Grid as Grid2, Paper as Paper2, ScrollArea as ScrollArea4 } from "@mant
1492
1769
  import { Container as Container2 } from "@mantine/core";
1493
1770
  import { useQuery as useQuery14 } from "@tanstack/react-query";
1494
1771
  import { useEffect as useEffect6, useMemo as useMemo12, useState as useState6 } from "react";
1772
+ import { jsx as jsx49 } from "react/jsx-runtime";
1495
1773
  function F_core83092_ReadUser() {
1496
1774
  const store = useS_core83092();
1497
1775
  const query = useQ_core83092_Account_GetAdminAccount();
@@ -1524,7 +1802,7 @@ function F_core83092_ReadUser() {
1524
1802
  }, [query.data]);
1525
1803
  if (query.isLoading) return "Loading...";
1526
1804
  if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
1527
- return /* @__PURE__ */ React.createElement(Container2, { fluid: true, w: "100%" }, /* @__PURE__ */ React.createElement(
1805
+ return /* @__PURE__ */ jsx49(Container2, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx49(
1528
1806
  MyDataTable,
1529
1807
  {
1530
1808
  columns,
@@ -1542,7 +1820,7 @@ function F_core83092_ReadUser() {
1542
1820
  }),
1543
1821
  state: rowSelection
1544
1822
  }
1545
- ));
1823
+ ) });
1546
1824
  }
1547
1825
  function useQ_core83092_Account_GetAdminAccount() {
1548
1826
  const query = useQuery14({
@@ -1560,6 +1838,7 @@ function useQ_core83092_Account_GetAdminAccount() {
1560
1838
  // src/modules-features/admin/core/core83092/F_core83092_Save.tsx
1561
1839
  import { useMutation as useMutation3 } from "@tanstack/react-query";
1562
1840
  import { useEffect as useEffect7, useState as useState7 } from "react";
1841
+ import { jsx as jsx50 } from "react/jsx-runtime";
1563
1842
  function F_core83092_Save() {
1564
1843
  const store = useS_core83092();
1565
1844
  const disable = useState7(false);
@@ -1588,14 +1867,15 @@ function F_core83092_Save() {
1588
1867
  }
1589
1868
  disable[1](false);
1590
1869
  }, [store.state.rolePermissions]);
1591
- return /* @__PURE__ */ React.createElement(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
1870
+ return /* @__PURE__ */ jsx50(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
1592
1871
  }
1593
1872
 
1594
1873
  // src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
1595
1874
  import { Checkbox as Checkbox2, Flex as Flex2, ScrollArea as ScrollArea3, Table as Table3, Text as Text2 } from "@mantine/core";
1596
1875
  import { IconEdit as IconEdit2, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport2, IconPlus as IconPlus2, IconPrinter as IconPrinter2, IconTrash as IconTrash2 } from "@tabler/icons-react";
1597
1876
  import { useQuery as useQuery15 } from "@tanstack/react-query";
1598
- import React3, { useEffect as useEffect8, useState as useState8 } from "react";
1877
+ import React2, { useEffect as useEffect8, useState as useState8 } from "react";
1878
+ import { jsx as jsx51, jsxs as jsxs31 } from "react/jsx-runtime";
1599
1879
  var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
1600
1880
  function F_core83092_ViewMenuPermissions() {
1601
1881
  var _a, _b;
@@ -1610,107 +1890,173 @@ function F_core83092_ViewMenuPermissions() {
1610
1890
  store.setProperty("rolePermissions", query.data);
1611
1891
  }, [query.data]);
1612
1892
  if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
1613
- return /* @__PURE__ */ React3.createElement(ScrollArea3.Autosize, { h: "70vh" }, /* @__PURE__ */ React3.createElement(Table3, null, /* @__PURE__ */ React3.createElement(
1614
- Table3.Thead,
1615
- {
1616
- bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
1617
- style: {
1618
- position: "sticky",
1619
- top: 0,
1620
- zIndex: 1,
1621
- boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
1622
- border: "1px solid var(--mantine-color-gray-4)"
1623
- }
1624
- },
1625
- /* @__PURE__ */ React3.createElement(Table3.Tr, null, /* @__PURE__ */ React3.createElement(Table3.Th, null, title2), /* @__PURE__ */ React3.createElement(Table3.Th, null, /* @__PURE__ */ React3.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React3.createElement(Checkbox2, { checked: store.isAllPermission("isRead"), onChange: (e) => {
1626
- store.toogleAllPermissionWithType("isRead", e.target.checked);
1627
- } }), /* @__PURE__ */ React3.createElement(MyFlexRow, { gap: 3 }, "Xem", /* @__PURE__ */ React3.createElement(IconEyeUp2, { color: "gray" })))), /* @__PURE__ */ React3.createElement(Table3.Th, null, /* @__PURE__ */ React3.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React3.createElement(Checkbox2, { checked: store.isAllPermission("isCreate"), onChange: (e) => {
1628
- store.toogleAllPermissionWithType("isCreate", e.target.checked);
1629
- } }), /* @__PURE__ */ React3.createElement(MyFlexRow, { gap: 3 }, "Th\xEAm", /* @__PURE__ */ React3.createElement(IconPlus2, { color: "blue" })))), /* @__PURE__ */ React3.createElement(Table3.Th, null, /* @__PURE__ */ React3.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React3.createElement(Checkbox2, { checked: store.isAllPermission("isUpdate"), onChange: (e) => {
1630
- store.toogleAllPermissionWithType("isUpdate", e.target.checked);
1631
- } }), /* @__PURE__ */ React3.createElement(MyFlexRow, { gap: 3 }, "S\u1EEDa", /* @__PURE__ */ React3.createElement(IconEdit2, { color: "var(--mantine-color-yellow-8)" })))), /* @__PURE__ */ React3.createElement(Table3.Th, null, /* @__PURE__ */ React3.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React3.createElement(Checkbox2, { checked: store.isAllPermission("isDelete"), onChange: (e) => {
1632
- store.toogleAllPermissionWithType("isDelete", e.target.checked);
1633
- } }), /* @__PURE__ */ React3.createElement(MyFlexRow, { gap: 3 }, "X\xF3a", /* @__PURE__ */ React3.createElement(IconTrash2, { color: "var(--mantine-color-red-8)" })))), /* @__PURE__ */ React3.createElement(Table3.Th, null, /* @__PURE__ */ React3.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React3.createElement(Checkbox2, { checked: store.isAllPermission("isPrint"), onChange: (e) => {
1634
- store.toogleAllPermissionWithType("isPrint", e.target.checked);
1635
- } }), /* @__PURE__ */ React3.createElement(MyFlexRow, { gap: 3 }, "In", /* @__PURE__ */ React3.createElement(IconPrinter2, { color: "var(--mantine-color-cyan-8)" })))), /* @__PURE__ */ React3.createElement(Table3.Th, null, /* @__PURE__ */ React3.createElement(Flex2, { gap: 3, direction: "column", justify: "center", align: "center" }, /* @__PURE__ */ React3.createElement(Checkbox2, { checked: store.isAllPermission("isExport"), onChange: (e) => {
1636
- store.toogleAllPermissionWithType("isExport", e.target.checked);
1637
- } }), /* @__PURE__ */ React3.createElement(MyFlexRow, { gap: 3 }, "Xu\u1EA5t", /* @__PURE__ */ React3.createElement(IconFileExport2, { color: "var(--mantine-color-green-8)" })))))
1638
- ), /* @__PURE__ */ React3.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) => {
1639
- if (item.links == void 0) return /* @__PURE__ */ React3.createElement(Table3.Tr, { key: idx }, /* @__PURE__ */ React3.createElement(Table3.Td, null, item.label), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(Checkbox2, null))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(Checkbox2, null))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(Checkbox2, null))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(Checkbox2, null))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(Checkbox2, null))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(Checkbox2, null))));
1640
- return /* @__PURE__ */ React3.createElement(React3.Fragment, { key: idx }, /* @__PURE__ */ React3.createElement(Table3.Tr, { key: item.label }, /* @__PURE__ */ React3.createElement(
1641
- Table3.Td,
1893
+ return /* @__PURE__ */ jsx51(ScrollArea3.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs31(Table3, { children: [
1894
+ /* @__PURE__ */ jsx51(
1895
+ Table3.Thead,
1642
1896
  {
1643
- colSpan: 7,
1644
- bg: OBJECT_COlORS.mantineBackgroundBlueLight
1645
- },
1646
- /* @__PURE__ */ React3.createElement(Text2, { fs: "oblique", size: "sm", fw: "bold" }, item.label)
1647
- )), item.links.map(
1648
- (item2, idx2) => {
1649
- var _a2, _b2, _c, _d, _e, _f;
1650
- return /* @__PURE__ */ React3.createElement(Table3.Tr, { key: idx2 }, /* @__PURE__ */ React3.createElement(Table3.Td, null, item2.label), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(
1651
- Checkbox2,
1652
- {
1653
- checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
1654
- onChange: (e) => {
1655
- store.updatePermission(item2.pageId, {
1656
- isRead: e.target.checked
1657
- });
1658
- }
1659
- }
1660
- ))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(
1661
- Checkbox2,
1662
- {
1663
- checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
1664
- onChange: (e) => {
1665
- store.updatePermission(item2.pageId, {
1666
- isCreate: e.target.checked
1667
- });
1668
- }
1669
- }
1670
- ))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(
1671
- Checkbox2,
1672
- {
1673
- checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
1674
- onChange: (e) => {
1675
- store.updatePermission(item2.pageId, {
1676
- isUpdate: e.target.checked
1677
- });
1678
- }
1679
- }
1680
- ))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(
1681
- Checkbox2,
1682
- {
1683
- checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
1684
- onChange: (e) => {
1685
- store.updatePermission(item2.pageId, {
1686
- isDelete: e.target.checked
1687
- });
1688
- }
1689
- }
1690
- ))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(
1691
- Checkbox2,
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
+ ] })
1962
+ }
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,
1692
1977
  {
1693
- checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
1694
- onChange: (e) => {
1695
- store.updatePermission(item2.pageId, {
1696
- isPrint: e.target.checked
1697
- });
1698
- }
1978
+ colSpan: 7,
1979
+ bg: OBJECT_COlORS.mantineBackgroundBlueLight,
1980
+ children: /* @__PURE__ */ jsx51(Text2, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
1699
1981
  }
1700
- ))), /* @__PURE__ */ React3.createElement(Table3.Td, null, /* @__PURE__ */ React3.createElement(MyCenterFull, null, /* @__PURE__ */ React3.createElement(
1701
- Checkbox2,
1702
- {
1703
- checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
1704
- onChange: (e) => {
1705
- store.updatePermission(item2.pageId, {
1706
- isExport: e.target.checked
1707
- });
1708
- }
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);
1709
2055
  }
1710
- ))));
1711
- }
1712
- ));
1713
- }))));
2056
+ )
2057
+ ] }, idx);
2058
+ }) })
2059
+ ] }) });
1714
2060
  }
1715
2061
  function useGetUserPermission2() {
1716
2062
  const store = useS_core83092();
@@ -1750,54 +2096,72 @@ function useGetUserPermission2() {
1750
2096
  }
1751
2097
 
1752
2098
  // src/modules-features/admin/core/core83092/F_core83092.tsx
2099
+ import { jsx as jsx52, jsxs as jsxs32 } from "react/jsx-runtime";
1753
2100
  function F_core83092() {
1754
- 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)))));
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
+ ] }) });
1755
2108
  }
1756
2109
 
1757
2110
  // src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
1758
2111
  import { BarChart } from "@mantine/charts";
1759
2112
  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";
1760
2114
 
1761
2115
  // src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
1762
2116
  import { BarChart as BarChart2 } from "@mantine/charts";
1763
2117
  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";
1764
2119
 
1765
2120
  // src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
1766
2121
  import { BarChart as BarChart3 } from "@mantine/charts";
1767
2122
  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";
1768
2124
 
1769
2125
  // src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
1770
2126
  import { BarChart as BarChart4 } from "@mantine/charts";
1771
2127
  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";
1772
2129
 
1773
2130
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
1774
2131
  import { BarChart as BarChart5 } from "@mantine/charts";
1775
2132
  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";
1776
2134
 
1777
2135
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
1778
2136
  import { BarChart as BarChart6 } from "@mantine/charts";
1779
2137
  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";
1780
2139
 
1781
2140
  // src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
1782
2141
  import { LineChart } from "@mantine/charts";
1783
2142
  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";
1784
2144
 
1785
2145
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
1786
2146
  import { LineChart as LineChart2 } from "@mantine/charts";
1787
2147
  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";
1788
2149
 
1789
2150
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
1790
2151
  import { LineChart as LineChart3 } from "@mantine/charts";
1791
2152
  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";
1792
2154
 
1793
2155
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
1794
2156
  import { LineChart as LineChart4 } from "@mantine/charts";
1795
2157
  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";
1796
2159
 
1797
2160
  // src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
1798
2161
  import { Center, Progress, Space, Text as Text13 } from "@mantine/core";
1799
2162
  import { PieChart } from "@mantine/charts";
1800
2163
  import { useMemo as useMemo13 } from "react";
2164
+ import { Fragment as Fragment9, jsx as jsx63, jsxs as jsxs43 } from "react/jsx-runtime";
1801
2165
  function getRandomColor(seed) {
1802
2166
  const random = Math.sin(seed) * 1e4;
1803
2167
  const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
@@ -1975,7 +2339,7 @@ function PieChart_DiscountUsedPercentage() {
1975
2339
  header: "M\xE0u",
1976
2340
  accessorKey: "color",
1977
2341
  accessorFn(originalRow) {
1978
- return /* @__PURE__ */ React.createElement("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
2342
+ return /* @__PURE__ */ jsx63("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
1979
2343
  },
1980
2344
  minSize: 30,
1981
2345
  maxSize: 30
@@ -1990,7 +2354,10 @@ function PieChart_DiscountUsedPercentage() {
1990
2354
  header: "%",
1991
2355
  accessorKey: "used",
1992
2356
  accessorFn(originalRow) {
1993
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Center, null, /* @__PURE__ */ React.createElement(Text13, null, (originalRow.used / totalDisountCode * 100).toFixed(0), "%")));
2357
+ return /* @__PURE__ */ jsx63(Fragment9, { children: /* @__PURE__ */ jsx63(Center, { children: /* @__PURE__ */ jsxs43(Text13, { children: [
2358
+ (originalRow.used / totalDisountCode * 100).toFixed(0),
2359
+ "%"
2360
+ ] }) }) });
1994
2361
  },
1995
2362
  minSize: 64,
1996
2363
  maxSize: 64
@@ -2002,7 +2369,20 @@ function PieChart_DiscountUsedPercentage() {
2002
2369
  return originalRow.used;
2003
2370
  },
2004
2371
  Cell: ({ row }) => {
2005
- 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 }));
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
+ ] });
2006
2386
  },
2007
2387
  minSize: 50,
2008
2388
  maxSize: 50
@@ -2010,35 +2390,41 @@ function PieChart_DiscountUsedPercentage() {
2010
2390
  ],
2011
2391
  []
2012
2392
  );
2013
- 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(
2014
- PieChart,
2015
- {
2016
- startAngle: 90,
2017
- endAngle: -270,
2018
- strokeWidth: 0,
2019
- withLabelsLine: true,
2020
- labelsPosition: "outside",
2021
- withLabels: true,
2022
- labelsType: "percent",
2023
- data: data_used_discountCode
2024
- }
2025
- )), /* @__PURE__ */ React.createElement(Space, { mt: 5 }), /* @__PURE__ */ React.createElement(
2026
- MyDataTable,
2027
- {
2028
- data: mockData,
2029
- columns,
2030
- initialState: {
2031
- density: "xs",
2032
- pagination: { pageIndex: 0, pageSize: 5 }
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
2033
2406
  }
2034
- }
2035
- )));
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
+ }
2418
+ }
2419
+ )
2420
+ ] }) });
2036
2421
  }
2037
2422
 
2038
2423
  // src/modules-features/admin/core/MainDashboard/ViewVoucherStat.tsx
2039
2424
  import { Center as Center2, Progress as Progress2, Space as Space2, Text as Text14 } from "@mantine/core";
2040
2425
  import { PieChart as PieChart2 } from "@mantine/charts";
2041
2426
  import { useMemo as useMemo14 } from "react";
2427
+ import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
2042
2428
  function getRandomColor2(seed) {
2043
2429
  const random = Math.sin(seed) * 1e4;
2044
2430
  const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
@@ -2216,7 +2602,7 @@ function PieChart_VoucherUsedPercentage() {
2216
2602
  header: "M\xE0u",
2217
2603
  accessorKey: "color",
2218
2604
  accessorFn(originalRow) {
2219
- return /* @__PURE__ */ React.createElement("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
2605
+ return /* @__PURE__ */ jsx64("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
2220
2606
  },
2221
2607
  minSize: 30,
2222
2608
  maxSize: 30
@@ -2231,7 +2617,10 @@ function PieChart_VoucherUsedPercentage() {
2231
2617
  header: "%",
2232
2618
  accessorKey: "used",
2233
2619
  accessorFn(originalRow) {
2234
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Center2, null, /* @__PURE__ */ React.createElement(Text14, null, (originalRow.used / totalVoucherCode * 100).toFixed(0), "%")));
2620
+ return /* @__PURE__ */ jsx64(Fragment10, { children: /* @__PURE__ */ jsx64(Center2, { children: /* @__PURE__ */ jsxs44(Text14, { children: [
2621
+ (originalRow.used / totalVoucherCode * 100).toFixed(0),
2622
+ "%"
2623
+ ] }) }) });
2235
2624
  },
2236
2625
  minSize: 64,
2237
2626
  maxSize: 64
@@ -2243,7 +2632,20 @@ function PieChart_VoucherUsedPercentage() {
2243
2632
  return originalRow.used;
2244
2633
  },
2245
2634
  Cell: ({ row }) => {
2246
- 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 }));
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
+ ] });
2247
2649
  },
2248
2650
  minSize: 50,
2249
2651
  maxSize: 50
@@ -2251,29 +2653,34 @@ function PieChart_VoucherUsedPercentage() {
2251
2653
  ],
2252
2654
  []
2253
2655
  );
2254
- 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(
2255
- PieChart2,
2256
- {
2257
- startAngle: 90,
2258
- endAngle: -270,
2259
- strokeWidth: 0,
2260
- withLabelsLine: true,
2261
- labelsPosition: "outside",
2262
- withLabels: true,
2263
- labelsType: "percent",
2264
- data: data_used_discountCode2
2265
- }
2266
- )), /* @__PURE__ */ React.createElement(Space2, { mt: 5 }), /* @__PURE__ */ React.createElement(
2267
- MyDataTable,
2268
- {
2269
- data: mockData2,
2270
- columns,
2271
- initialState: {
2272
- density: "xs",
2273
- pagination: { pageIndex: 0, pageSize: 5 }
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
2274
2669
  }
2275
- }
2276
- )));
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
+ }
2681
+ }
2682
+ )
2683
+ ] }) });
2277
2684
  }
2278
2685
  export {
2279
2686
  F_core12196,