aq-fe-framework 0.1.95 → 0.1.97

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.
@@ -1,3 +1,6 @@
1
+ import {
2
+ createGenericStore
3
+ } from "./chunk-Y3YGC5IH.mjs";
1
4
  import {
2
5
  U0DateToDDMMYYYString,
3
6
  U0MyValidateEmail,
@@ -6,9 +9,6 @@ import {
6
9
  utils_notification_show,
7
10
  utils_pdf_download
8
11
  } from "./chunk-EEQENBXZ.mjs";
9
- import {
10
- createGenericStore
11
- } from "./chunk-Y3YGC5IH.mjs";
12
12
  import {
13
13
  __objRest,
14
14
  __spreadProps,
@@ -599,8 +599,34 @@ function MyNumberInput(_a) {
599
599
  import { TextInput } from "@mantine/core";
600
600
  import { jsx as jsx13 } from "react/jsx-runtime";
601
601
  function MyTextInput(_a) {
602
- var _b = _a, { label, defaultValue } = _b, rest = __objRest(_b, ["label", "defaultValue"]);
603
- return /* @__PURE__ */ jsx13(TextInput, __spreadValues({ label, defaultValue, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
602
+ var _b = _a, { label, defaultValue, isPhoneNumber } = _b, rest = __objRest(_b, ["label", "defaultValue", "isPhoneNumber"]);
603
+ return /* @__PURE__ */ jsx13(
604
+ TextInput,
605
+ __spreadValues({
606
+ onKeyDown: (e4) => {
607
+ if (!isPhoneNumber) return;
608
+ const allowedKeys = [
609
+ "Backspace",
610
+ "Tab",
611
+ "ArrowLeft",
612
+ "ArrowRight",
613
+ "Delete",
614
+ "+",
615
+ "-",
616
+ "(",
617
+ ")",
618
+ " "
619
+ // các ký tự đặc biệt cho số điện thoại
620
+ ];
621
+ if (!/[0-9]/.test(e4.key) && !allowedKeys.includes(e4.key)) {
622
+ e4.preventDefault();
623
+ }
624
+ },
625
+ label,
626
+ defaultValue,
627
+ placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : ""
628
+ }, rest)
629
+ );
604
630
  }
605
631
 
606
632
  // src/modules-features/admin/core/core18256/F_core18256_Select.tsx
@@ -1109,13 +1135,34 @@ import { IconSearch } from "@tabler/icons-react";
1109
1135
  import { usePathname, useRouter } from "next/navigation";
1110
1136
  import { useMemo as useMemo2, useState as useState5 } from "react";
1111
1137
 
1138
+ // src/hooks/query/AQ/useQ_AQ_GetAQModule.ts
1139
+ import { useQuery as useQuery4 } from "@tanstack/react-query";
1140
+ function useQ_AQ_GetAQModule() {
1141
+ const query = useQuery4({
1142
+ queryKey: ["/AQ/GetAQModule"],
1143
+ queryFn: async () => {
1144
+ const res = await baseAxios_default.get("/AQ/GetAQModule");
1145
+ return res.data.data;
1146
+ }
1147
+ });
1148
+ return query;
1149
+ }
1150
+
1112
1151
  // src/components/Layouts/BasicAppShell/useS_BasicAppShell.ts
1152
+ import { useEffect as useEffect3 } from "react";
1113
1153
  var useStore = createGenericStore({
1114
- initialState: { moduleName: "AQ Project Name", title: "", opened: true, groupMenuOpenId: [] },
1154
+ initialState: {
1155
+ menuCode: "",
1156
+ moduleName: "",
1157
+ title: "",
1158
+ opened: true,
1159
+ groupMenuOpenId: []
1160
+ },
1115
1161
  storageKey: "useS_BasicAppShell"
1116
1162
  });
1117
1163
  function useS_BasicAppShell() {
1118
1164
  const store = useStore();
1165
+ const GetAQModule_query = useQ_AQ_GetAQModule();
1119
1166
  function toggle() {
1120
1167
  store.setProperty("opened", !store.state.opened);
1121
1168
  }
@@ -1133,6 +1180,12 @@ function useS_BasicAppShell() {
1133
1180
  function clearGroupMenuOpenId() {
1134
1181
  store.setProperty("groupMenuOpenId", []);
1135
1182
  }
1183
+ useEffect3(() => {
1184
+ var _a, _b;
1185
+ if (!GetAQModule_query.data) return;
1186
+ store.setProperty("faviconFileDetail", (_a = GetAQModule_query.data) == null ? void 0 : _a.faviconFileDetail);
1187
+ store.setProperty("logoFileDetail", (_b = GetAQModule_query.data) == null ? void 0 : _b.logoFileDetail);
1188
+ }, [GetAQModule_query.data]);
1136
1189
  return __spreadProps(__spreadValues({}, store), {
1137
1190
  toggle,
1138
1191
  toggleGroupMenuOpenId,
@@ -1578,7 +1631,7 @@ import { Button as Button7, Divider, Fieldset, Group as Group8, Modal as Modal7,
1578
1631
  import { IconArrowBackUp, IconArrowBigLeft, IconArrowBigRight, IconSquareRoundedX } from "@tabler/icons-react";
1579
1632
 
1580
1633
  // src/components/Buttons/ButtonImport/useS_ButtonImport.ts
1581
- import { useEffect as useEffect3, useMemo as useMemo3 } from "react";
1634
+ import { useEffect as useEffect4, useMemo as useMemo3 } from "react";
1582
1635
  import * as XLSX3 from "xlsx";
1583
1636
  var useStore2 = createGenericStore({
1584
1637
  initialState: {
@@ -1691,7 +1744,7 @@ function useS_ButtonImport() {
1691
1744
  }))) || []
1692
1745
  ];
1693
1746
  }, [store.state.title]);
1694
- useEffect3(() => {
1747
+ useEffect4(() => {
1695
1748
  if (store.state.file == null) {
1696
1749
  store.resetState();
1697
1750
  }
@@ -1712,7 +1765,7 @@ function useS_ButtonImport() {
1712
1765
  };
1713
1766
  reader.readAsArrayBuffer(store.state.file);
1714
1767
  }, [store.state.file]);
1715
- useEffect3(() => {
1768
+ useEffect4(() => {
1716
1769
  var _a;
1717
1770
  if (((_a = store.state.data) == null ? void 0 : _a.length) == 0) return;
1718
1771
  autoMap();
@@ -6504,7 +6557,7 @@ import { createEventsServicePlugin } from "@schedule-x/events-service";
6504
6557
  import { ScheduleXCalendar, useNextCalendarApp } from "@schedule-x/react";
6505
6558
  import { Paper as Paper5, Text as Text6 } from "@mantine/core";
6506
6559
  import "@schedule-x/theme-default/dist/index.css";
6507
- import { useEffect as useEffect4 } from "react";
6560
+ import { useEffect as useEffect5 } from "react";
6508
6561
  import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
6509
6562
  function MyCalendar() {
6510
6563
  const plugins = [createEventsServicePlugin(), createEventModalPlugin()];
@@ -6576,7 +6629,7 @@ function MyCalendar() {
6576
6629
  }
6577
6630
  ]
6578
6631
  }, plugins);
6579
- useEffect4(() => {
6632
+ useEffect5(() => {
6580
6633
  calendar == null ? void 0 : calendar.events.getAll();
6581
6634
  }, []);
6582
6635
  return /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42(ScheduleXCalendar, { calendarApp: calendar, customComponents: {
@@ -6755,6 +6808,32 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
6755
6808
  ) });
6756
6809
  }
6757
6810
 
6811
+ // src/components/FaviconSetter/FaviconSetter.tsx
6812
+ import { useEffect as useEffect6 } from "react";
6813
+ function FaviconSetter() {
6814
+ var _a;
6815
+ const store = useS_BasicAppShell();
6816
+ useEffect6(() => {
6817
+ var _a2, _b, _c;
6818
+ if (!((_a2 = store.state.faviconFileDetail) == null ? void 0 : _a2.fileBase64String)) return;
6819
+ try {
6820
+ const base64Icon = `data:image/${(_b = store.state.faviconFileDetail.fileExtension) == null ? void 0 : _b.replaceAll(".", "")};base64,${(_c = store.state.faviconFileDetail) == null ? void 0 : _c.fileBase64String}`;
6821
+ if (base64Icon) {
6822
+ let link = document.querySelector("link[rel~='icon']");
6823
+ if (!link) {
6824
+ link = document.createElement("link");
6825
+ link.rel = "icon";
6826
+ document.head.appendChild(link);
6827
+ }
6828
+ link.href = base64Icon;
6829
+ }
6830
+ } catch (error) {
6831
+ console.error("Error setting favicon from localStorage:", error);
6832
+ }
6833
+ }, [(_a = store.state.faviconFileDetail) == null ? void 0 : _a.fileBase64String]);
6834
+ return null;
6835
+ }
6836
+
6758
6837
  // src/components/Inputs/Fieldset/MyFieldset.tsx
6759
6838
  import { Box as Box3, Fieldset as Fieldset4, Text as Text10 } from "@mantine/core";
6760
6839
  import { jsx as jsx49 } from "react/jsx-runtime";
@@ -6804,7 +6883,7 @@ import TextAlign from "@tiptap/extension-text-align";
6804
6883
  import Underline from "@tiptap/extension-underline";
6805
6884
  import { useEditor } from "@tiptap/react";
6806
6885
  import StarterKit from "@tiptap/starter-kit";
6807
- import { useEffect as useEffect5, useState as useState7 } from "react";
6886
+ import { useEffect as useEffect7, useState as useState7 } from "react";
6808
6887
  import { jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
6809
6888
  function MyTextEditor(_a) {
6810
6889
  var _b = _a, {
@@ -6902,7 +6981,7 @@ function MyTextEditor(_a) {
6902
6981
  }
6903
6982
  }
6904
6983
  }, rest));
6905
- useEffect5(() => {
6984
+ useEffect7(() => {
6906
6985
  if (editor && value !== editor.getHTML()) {
6907
6986
  editor.commands.setContent(value);
6908
6987
  }
@@ -7075,6 +7154,7 @@ function BasicAppShell_transformMenuToEnum(prefixProjectName, menu) {
7075
7154
  }, {});
7076
7155
  }
7077
7156
  function BasicAppShell({ children, menu }) {
7157
+ var _a, _b;
7078
7158
  const basicAppShellStore = useS_BasicAppShell();
7079
7159
  const media = useMediaQuery("(min-width: 72em)");
7080
7160
  const selectMedia = useMediaQuery("(min-width: 80em)");
@@ -7131,7 +7211,7 @@ function BasicAppShell({ children, menu }) {
7131
7211
  left: "50%",
7132
7212
  transform: "translateX(-50%)"
7133
7213
  },
7134
- children: /* @__PURE__ */ jsx52(Text11, { c: "green", fw: "bold", children: "AQ EduCourseEvaluation - Ph\u1EA7n m\u1EC1m \u0111\xE1nh gi\xE1 chu\u1EA9n \u0111\u1EA7u ra" })
7214
+ children: /* @__PURE__ */ jsx52(Text11, { c: "green", fw: "bold", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` })
7135
7215
  }
7136
7216
  ),
7137
7217
  /* @__PURE__ */ jsxs28(Group11, { children: [
@@ -7163,7 +7243,7 @@ function BasicAppShell({ children, menu }) {
7163
7243
  children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx52(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx52(IconLayoutSidebarLeftCollapse, {})
7164
7244
  }
7165
7245
  ),
7166
- /* @__PURE__ */ jsx52(Text11, { c: "green", fw: "bold", size: "sm", children: basicAppShellStore.state.moduleName }),
7246
+ /* @__PURE__ */ jsx52(Text11, { c: "green", fw: "bold", size: "sm", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` }),
7167
7247
  /* @__PURE__ */ jsxs28(Group11, { children: [
7168
7248
  /* @__PURE__ */ jsx52(
7169
7249
  Select4,
@@ -7203,7 +7283,16 @@ function BasicAppShell({ children, menu }) {
7203
7283
  ] }),
7204
7284
  /* @__PURE__ */ jsxs28(AppShell.Section, { p: "md", children: [
7205
7285
  /* @__PURE__ */ jsx52(Divider2, {}),
7206
- /* @__PURE__ */ jsx52(Image3, { src: "/imgs/0/IMG0LogoAQTech.png", h: 50, alt: "", w: "auto" })
7286
+ /* @__PURE__ */ jsx52(
7287
+ Image3,
7288
+ {
7289
+ src: `data:image/${(_a = basicAppShellStore.state.logoFileDetail) == null ? void 0 : _a.fileExtension};base64,
7290
+ ${(_b = basicAppShellStore.state.logoFileDetail) == null ? void 0 : _b.fileBase64String}`,
7291
+ h: "115px",
7292
+ alt: "",
7293
+ w: "330px"
7294
+ }
7295
+ )
7207
7296
  ] })
7208
7297
  ] }),
7209
7298
  /* @__PURE__ */ jsx52(
@@ -7499,12 +7588,12 @@ function MyDataTableSelect(_a) {
7499
7588
 
7500
7589
  // src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
7501
7590
  import { Select as Select5 } from "@mantine/core";
7502
- import { useQuery as useQuery4 } from "@tanstack/react-query";
7591
+ import { useQuery as useQuery5 } from "@tanstack/react-query";
7503
7592
  import { jsx as jsx58 } from "react/jsx-runtime";
7504
7593
  function MySelectAPIGet(_a) {
7505
7594
  var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
7506
7595
  var _a2;
7507
- const query = useQuery4({
7596
+ const query = useQuery5({
7508
7597
  queryKey: [apiGet],
7509
7598
  queryFn: async () => {
7510
7599
  return (await baseAxios_default.get(apiGet)).data;
@@ -7675,7 +7764,7 @@ function F_core12196({
7675
7764
  }
7676
7765
 
7677
7766
  // src/modules-features/admin/core/core16209/F_core16209.tsx
7678
- import { useQuery as useQuery5 } from "@tanstack/react-query";
7767
+ import { useQuery as useQuery6 } from "@tanstack/react-query";
7679
7768
  import { useMemo as useMemo4 } from "react";
7680
7769
 
7681
7770
  // src/modules-features/admin/core/core16209/F_core16209_Create.tsx
@@ -7863,7 +7952,7 @@ function F_core16209_Update({ values }) {
7863
7952
  // src/modules-features/admin/core/core16209/F_core16209.tsx
7864
7953
  import { jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
7865
7954
  function F_core16209({ RefinementTypeId }) {
7866
- const query = useQuery5({
7955
+ const query = useQuery6({
7867
7956
  queryKey: ["F_core16209_Read"],
7868
7957
  queryFn: async () => {
7869
7958
  var _a;
@@ -7928,7 +8017,7 @@ function F_core16209({ RefinementTypeId }) {
7928
8017
  import { Tabs as Tabs2 } from "@mantine/core";
7929
8018
 
7930
8019
  // src/modules-features/admin/core/core18256/F_core18256_Read.tsx
7931
- import { useQuery as useQuery6 } from "@tanstack/react-query";
8020
+ import { useQuery as useQuery7 } from "@tanstack/react-query";
7932
8021
  import { useMemo as useMemo5 } from "react";
7933
8022
 
7934
8023
  // src/modules-features/admin/core/core18256/F_core18256_Create.tsx
@@ -7979,7 +8068,7 @@ function F_core18256_Update({ values }) {
7979
8068
  // src/modules-features/admin/core/core18256/F_core18256_Read.tsx
7980
8069
  import { jsx as jsx70, jsxs as jsxs40 } from "react/jsx-runtime";
7981
8070
  function F_core18256_Read({ documentType }) {
7982
- const documentAttributeQuery = useQuery6({
8071
+ const documentAttributeQuery = useQuery7({
7983
8072
  queryKey: ["F_core18256_Read", documentType],
7984
8073
  queryFn: async () => {
7985
8074
  var _a;
@@ -8027,11 +8116,11 @@ var tabData = [
8027
8116
  { label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
8028
8117
  ];
8029
8118
  function F_core18256() {
8030
- return /* @__PURE__ */ jsx71(MyPageContent, { children: /* @__PURE__ */ jsxs41(MyTab, { tabList: tabData, children: [
8119
+ return /* @__PURE__ */ jsxs41(MyTab, { tabList: tabData, children: [
8031
8120
  /* @__PURE__ */ jsx71(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx71(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
8032
8121
  /* @__PURE__ */ jsx71(Tabs2.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx71(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Workflow }) }),
8033
8122
  /* @__PURE__ */ jsx71(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx71(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
8034
- ] }) });
8123
+ ] });
8035
8124
  }
8036
8125
 
8037
8126
  // src/modules-features/admin/core/core26965/F_core26965_Create.tsx
@@ -8111,7 +8200,7 @@ function F_core26965_Create({
8111
8200
 
8112
8201
  // src/modules-features/admin/core/core26965/F_core26965_Read.tsx
8113
8202
  import { Accordion as Accordion2, Blockquote as Blockquote2 } from "@mantine/core";
8114
- import { useQuery as useQuery7 } from "@tanstack/react-query";
8203
+ import { useQuery as useQuery8 } from "@tanstack/react-query";
8115
8204
  import { useMemo as useMemo6 } from "react";
8116
8205
 
8117
8206
  // src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
@@ -8216,7 +8305,7 @@ function F_core26965_Read({
8216
8305
  RegulationsTypeId
8217
8306
  }) {
8218
8307
  var _a, _b, _c;
8219
- const documentAttributeQuery = useQuery7({
8308
+ const documentAttributeQuery = useQuery8({
8220
8309
  queryKey: ["F_core26965_Read", RegulationsTypeId],
8221
8310
  queryFn: async () => {
8222
8311
  var _a2;
@@ -8258,7 +8347,7 @@ function SubRead2({
8258
8347
  documentType,
8259
8348
  RegulationsTypeId
8260
8349
  }) {
8261
- const documentQuery = useQuery7({
8350
+ const documentQuery = useQuery8({
8262
8351
  queryKey: ["SubRead" + documentType],
8263
8352
  queryFn: async () => {
8264
8353
  const result = await baseAxios_default.get(
@@ -8408,7 +8497,7 @@ function F_core27311_Create({
8408
8497
 
8409
8498
  // src/modules-features/admin/core/core27311/F_core27311_Read.tsx
8410
8499
  import { Accordion as Accordion3, Blockquote as Blockquote3 } from "@mantine/core";
8411
- import { useQuery as useQuery8 } from "@tanstack/react-query";
8500
+ import { useQuery as useQuery9 } from "@tanstack/react-query";
8412
8501
  import { useMemo as useMemo7 } from "react";
8413
8502
 
8414
8503
  // src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
@@ -8513,7 +8602,7 @@ function F_core27311_Read({
8513
8602
  WorkflowTypeId
8514
8603
  }) {
8515
8604
  var _a, _b, _c;
8516
- const documentAttributeQuery = useQuery8({
8605
+ const documentAttributeQuery = useQuery9({
8517
8606
  queryKey: ["F_core27311_Read", WorkflowTypeId],
8518
8607
  queryFn: async () => {
8519
8608
  var _a2;
@@ -8555,7 +8644,7 @@ function SubRead3({
8555
8644
  documentType,
8556
8645
  WorkflowTypeId
8557
8646
  }) {
8558
- const documentQuery = useQuery8({
8647
+ const documentQuery = useQuery9({
8559
8648
  queryKey: ["SubRead" + documentType],
8560
8649
  queryFn: async () => {
8561
8650
  const result = await baseAxios_default.get(
@@ -8655,8 +8744,8 @@ import { Grid as Grid2, Paper as Paper10, ScrollArea as ScrollArea6 } from "@man
8655
8744
 
8656
8745
  // src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
8657
8746
  import { Container as Container4 } from "@mantine/core";
8658
- import { useQuery as useQuery9 } from "@tanstack/react-query";
8659
- import { useEffect as useEffect6, useMemo as useMemo8, useState as useState9 } from "react";
8747
+ import { useQuery as useQuery10 } from "@tanstack/react-query";
8748
+ import { useEffect as useEffect8, useMemo as useMemo8, useState as useState9 } from "react";
8660
8749
 
8661
8750
  // src/modules-features/admin/core/core83092/useS_core83092.tsx
8662
8751
  var useStore4 = createGenericStore({
@@ -8730,11 +8819,11 @@ function F_core38677_ReadUser() {
8730
8819
  setRowSelection({ [rowId]: true });
8731
8820
  store.setProperty("roleId", parseInt(rowId));
8732
8821
  };
8733
- useEffect6(() => {
8822
+ useEffect8(() => {
8734
8823
  if (store.state.roleId == 0) return;
8735
8824
  setRowSelection({ [store.state.roleId]: true });
8736
8825
  }, [store.state.roleId]);
8737
- useEffect6(() => {
8826
+ useEffect8(() => {
8738
8827
  if (!query.data) return;
8739
8828
  store.setProperty("roleId", query.data[0].id);
8740
8829
  }, [query.data]);
@@ -8761,7 +8850,7 @@ function F_core38677_ReadUser() {
8761
8850
  ) });
8762
8851
  }
8763
8852
  function useQ_Account_GetAdminAccount() {
8764
- const query = useQuery9({
8853
+ const query = useQuery10({
8765
8854
  queryKey: ["useQ_Role_GetAdminRole"],
8766
8855
  queryFn: async () => {
8767
8856
  var _a;
@@ -8775,7 +8864,7 @@ function useQ_Account_GetAdminAccount() {
8775
8864
 
8776
8865
  // src/modules-features/admin/core/core38677/F_core38677_Save.tsx
8777
8866
  import { useMutation as useMutation5 } from "@tanstack/react-query";
8778
- import { useEffect as useEffect7, useState as useState10 } from "react";
8867
+ import { useEffect as useEffect9, useState as useState10 } from "react";
8779
8868
  import { jsx as jsx84 } from "react/jsx-runtime";
8780
8869
  function F_core38677_Save() {
8781
8870
  const store = useS_core83092();
@@ -8798,7 +8887,7 @@ function F_core38677_Save() {
8798
8887
  }
8799
8888
  });
8800
8889
  }
8801
- useEffect7(() => {
8890
+ useEffect9(() => {
8802
8891
  if (!store.state.rolePermissions || store.state.rolePermissions.length == 0) {
8803
8892
  disable[1](true);
8804
8893
  return;
@@ -8833,7 +8922,8 @@ var menuData = [
8833
8922
  label: "Danh m\u1EE5c h\u1EC7 th\u1ED1ng ",
8834
8923
  links: [
8835
8924
  { name: "Document categories", label: "Danh m\u1EE5c lo\u1EA1i v\u0103n b\u1EA3n", link: "core18256" },
8836
- { pageId: 0, name: "Ch\u01B0a \u0111\u1EB7t", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "core64229", status: "Default" }
8925
+ { pageId: 0, name: "", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "core64229", status: "Default" },
8926
+ { pageId: 0, name: "", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "core60524", status: "Default" }
8837
8927
  ]
8838
8928
  }
8839
8929
  ];
@@ -8841,8 +8931,8 @@ var menuData = [
8841
8931
  // src/modules-features/admin/core/core38677/F_core38677_ViewMenuPermissions.tsx
8842
8932
  import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table as Table3, Text as Text13 } from "@mantine/core";
8843
8933
  import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
8844
- import { useQuery as useQuery10 } from "@tanstack/react-query";
8845
- import React2, { useEffect as useEffect8, useState as useState11 } from "react";
8934
+ import { useQuery as useQuery11 } from "@tanstack/react-query";
8935
+ import React2, { useEffect as useEffect10, useState as useState11 } from "react";
8846
8936
  import { jsx as jsx85, jsxs as jsxs51 } from "react/jsx-runtime";
8847
8937
  var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
8848
8938
  function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
@@ -8850,10 +8940,10 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
8850
8940
  const store = useS_core83092();
8851
8941
  const query = useGetUserPermission();
8852
8942
  const list = useState11([]);
8853
- useEffect8(() => {
8943
+ useEffect10(() => {
8854
8944
  list[1](groupToTwoLevels(menuData2));
8855
8945
  }, []);
8856
- useEffect8(() => {
8946
+ useEffect10(() => {
8857
8947
  if (!query.data) return;
8858
8948
  store.setProperty("rolePermissions", query.data);
8859
8949
  }, [query.data]);
@@ -9028,7 +9118,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
9028
9118
  }
9029
9119
  function useGetUserPermission() {
9030
9120
  const store = useS_core83092();
9031
- const query = useQuery10({
9121
+ const query = useQuery11({
9032
9122
  queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
9033
9123
  queryFn: async () => {
9034
9124
  const result = await baseAxios_default.get("/Role/GetRolePermission?roleId=" + store.state.roleId);
@@ -9076,7 +9166,7 @@ function F_core38677({ menuData: menuData2 }) {
9076
9166
  }
9077
9167
 
9078
9168
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
9079
- import { useQuery as useQuery11 } from "@tanstack/react-query";
9169
+ import { useQuery as useQuery12 } from "@tanstack/react-query";
9080
9170
  import { useMemo as useMemo9 } from "react";
9081
9171
 
9082
9172
  // src/modules-features/admin/core/core40207/F_core40207_Create.tsx
@@ -9207,7 +9297,7 @@ function F_core40207_Update({ values }) {
9207
9297
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
9208
9298
  import { jsx as jsx90, jsxs as jsxs55 } from "react/jsx-runtime";
9209
9299
  function F_core40207_Read({ GuidelineTypeId }) {
9210
- const query = useQuery11({
9300
+ const query = useQuery12({
9211
9301
  queryKey: ["F_core40207_Read"],
9212
9302
  queryFn: async () => {
9213
9303
  var _a;
@@ -9268,7 +9358,7 @@ function F_core40207({ GuidelineTypeId }) {
9268
9358
 
9269
9359
  // src/modules-features/admin/core/core47643/F_core47643_Read.tsx
9270
9360
  import { Group as Group15 } from "@mantine/core";
9271
- import { useQuery as useQuery12 } from "@tanstack/react-query";
9361
+ import { useQuery as useQuery13 } from "@tanstack/react-query";
9272
9362
  import { useMemo as useMemo10 } from "react";
9273
9363
 
9274
9364
  // src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
@@ -9336,7 +9426,7 @@ function F_core47643_Read() {
9336
9426
  );
9337
9427
  }
9338
9428
  function useQ_core47643_GetAdminRole() {
9339
- const query = useQuery12({
9429
+ const query = useQuery13({
9340
9430
  queryKey: ["useQ_core47643_GetAdminRole"],
9341
9431
  queryFn: async () => {
9342
9432
  const res = await baseAxios_default.get("/Role/GetAdminRole");
@@ -9352,6 +9442,163 @@ function F_core47643() {
9352
9442
  return /* @__PURE__ */ jsx95(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx95(F_core47643_Read, {}) });
9353
9443
  }
9354
9444
 
9445
+ // src/modules-features/admin/core/core60524/F_core60524.tsx
9446
+ import { useEffect as useEffect12 } from "react";
9447
+
9448
+ // src/modules-features/admin/core/core60524/F_core60524_Form.tsx
9449
+ import { Grid as Grid3, Paper as Paper11 } from "@mantine/core";
9450
+ import { useForm as useForm14 } from "@mantine/form";
9451
+ import { useEffect as useEffect11 } from "react";
9452
+
9453
+ // src/modules-features/admin/core/core60524/F_core60524_Save.tsx
9454
+ import { useMutation as useMutation6 } from "@tanstack/react-query";
9455
+
9456
+ // src/modules-features/admin/core/core60524/useS_core60524.ts
9457
+ var useStore5 = createGenericStore({
9458
+ initialState: {}
9459
+ });
9460
+ function useS_core60524() {
9461
+ const store = useStore5();
9462
+ return __spreadValues({}, store);
9463
+ }
9464
+
9465
+ // src/modules-features/admin/core/core60524/F_core60524_Save.tsx
9466
+ import { jsx as jsx96 } from "react/jsx-runtime";
9467
+ function F_core60524_Save({
9468
+ form
9469
+ }) {
9470
+ const store = useS_core60524();
9471
+ const mutation = useMutation6({
9472
+ mutationFn: async (body) => {
9473
+ const res = await baseAxios_default.post("/AQ/UpdateAQSetting", body);
9474
+ return res;
9475
+ }
9476
+ });
9477
+ async function handleSave() {
9478
+ var _b, _c, _d, _e;
9479
+ const _a = form.getValues(), { faviconFile, logoFile } = _a, formValues = __objRest(_a, ["faviconFile", "logoFile"]);
9480
+ mutation.mutate(__spreadProps(__spreadValues({}, formValues), {
9481
+ logoFileDetail: form.isDirty("logoFileDetail") == false ? {
9482
+ fileName: (_b = formValues.logoFileDetail) == null ? void 0 : _b.fileName,
9483
+ fileExtension: (_c = formValues.logoFileDetail) == null ? void 0 : _c.fileExtension,
9484
+ fileBase64String: ""
9485
+ } : formValues.logoFileDetail,
9486
+ faviconFileDetail: form.isDirty("faviconFileDetail") == false ? {
9487
+ fileName: (_d = formValues.faviconFileDetail) == null ? void 0 : _d.fileName,
9488
+ fileExtension: (_e = formValues.faviconFileDetail) == null ? void 0 : _e.fileExtension,
9489
+ fileBase64String: ""
9490
+ } : formValues.faviconFileDetail,
9491
+ id: store.state.AQModuleId
9492
+ }), {
9493
+ onSuccess: () => {
9494
+ utils_notification_show({
9495
+ crudType: "update"
9496
+ });
9497
+ }
9498
+ });
9499
+ }
9500
+ return /* @__PURE__ */ jsx96(
9501
+ MyButton,
9502
+ {
9503
+ disabled: !form.isDirty(),
9504
+ crudType: "save",
9505
+ onClick: handleSave
9506
+ }
9507
+ );
9508
+ }
9509
+
9510
+ // src/modules-features/admin/core/core60524/F_core60524_Form.tsx
9511
+ import { jsx as jsx97, jsxs as jsxs58 } from "react/jsx-runtime";
9512
+ function F_core60524_Form() {
9513
+ const query = useQ_AQ_GetAQModule();
9514
+ const form = useForm14({
9515
+ mode: "uncontrolled",
9516
+ validate: {
9517
+ faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
9518
+ logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
9519
+ }
9520
+ });
9521
+ useEffect11(() => {
9522
+ var _a, _b;
9523
+ if (!query.data) return;
9524
+ const values = {
9525
+ code: query.data.code || "",
9526
+ name: query.data.name || "",
9527
+ officelName: query.data.officelName || "",
9528
+ email: query.data.email || "",
9529
+ phoneNumber: query.data.phoneNumber || "",
9530
+ registrationDate: new Date(query.data.registrationDate) || /* @__PURE__ */ new Date(),
9531
+ limiteDate: new Date(query.data.limiteDate) || /* @__PURE__ */ new Date(),
9532
+ faviconPath: query.data.faviconPath || "",
9533
+ logoPath: query.data.logoPath || "",
9534
+ faviconFile: new File([], (_a = query.data.faviconFileDetail) == null ? void 0 : _a.fileName),
9535
+ logoFile: new File([], (_b = query.data.logoFileDetail) == null ? void 0 : _b.fileName),
9536
+ faviconFileDetail: query.data.faviconFileDetail,
9537
+ logoFileDetail: query.data.logoFileDetail
9538
+ };
9539
+ form.setInitialValues(values);
9540
+ form.setValues(values);
9541
+ }, [query.data]);
9542
+ return /* @__PURE__ */ jsxs58(Paper11, { p: "md", children: [
9543
+ /* @__PURE__ */ jsxs58(Grid3, { children: [
9544
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: 5, children: /* @__PURE__ */ jsx97(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
9545
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx97(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
9546
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: 12, children: /* @__PURE__ */ jsx97(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
9547
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
9548
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
9549
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(
9550
+ MyDateInput,
9551
+ {
9552
+ value: form.getValues().registrationDate,
9553
+ onChange: (date) => form.setFieldValue("registrationDate", date),
9554
+ label: "Ng\xE0y \u0111\u0103ng k\xFD"
9555
+ }
9556
+ ) }),
9557
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(
9558
+ MyDateInput,
9559
+ {
9560
+ value: form.getValues().limiteDate,
9561
+ onChange: (date) => form.setFieldValue("limiteDate", date),
9562
+ label: "Ng\xE0y h\u1EBFt h\u1EA1n"
9563
+ }
9564
+ ) }),
9565
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(
9566
+ MyFileInput,
9567
+ {
9568
+ label: "Favicon (16px x 16px)",
9569
+ value: form.getValues().faviconFile,
9570
+ onChange: async (e4) => {
9571
+ form.setFieldValue("faviconFile", e4);
9572
+ form.setFieldValue("faviconFileDetail", await utils_file_fileToAQDocumentType(e4));
9573
+ }
9574
+ }
9575
+ ) }),
9576
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(
9577
+ MyFileInput,
9578
+ {
9579
+ label: "Logo (330px x 115px)",
9580
+ value: form.getValues().logoFile,
9581
+ onChange: async (e4) => {
9582
+ form.setFieldValue("logoFile", e4);
9583
+ form.setFieldValue("logoFileDetail", await utils_file_fileToAQDocumentType(e4));
9584
+ }
9585
+ }
9586
+ ) })
9587
+ ] }),
9588
+ /* @__PURE__ */ jsx97(MyFlexEnd, { children: /* @__PURE__ */ jsx97(F_core60524_Save, { form }) })
9589
+ ] });
9590
+ }
9591
+
9592
+ // src/modules-features/admin/core/core60524/F_core60524.tsx
9593
+ import { jsx as jsx98 } from "react/jsx-runtime";
9594
+ function F_core60524({ AQModuleId }) {
9595
+ const store = useS_core60524();
9596
+ useEffect12(() => {
9597
+ store.setProperty("AQModuleId", AQModuleId);
9598
+ }, []);
9599
+ return /* @__PURE__ */ jsx98(F_core60524_Form, {});
9600
+ }
9601
+
9355
9602
  // src/constants/enum/ENUM_EMAILCONFIG.ts
9356
9603
  var ENUM_EMAILCONFIG_MODULE = /* @__PURE__ */ ((ENUM_EMAILCONFIG_MODULE2) => {
9357
9604
  ENUM_EMAILCONFIG_MODULE2[ENUM_EMAILCONFIG_MODULE2["\u0110\xE0o t\u1EA1o"] = 1] = "\u0110\xE0o t\u1EA1o";
@@ -9362,15 +9609,15 @@ var ENUM_EMAILCONFIG_MODULE = /* @__PURE__ */ ((ENUM_EMAILCONFIG_MODULE2) => {
9362
9609
  })(ENUM_EMAILCONFIG_MODULE || {});
9363
9610
 
9364
9611
  // src/modules-features/admin/core/core64229/F_core64229_Read.tsx
9365
- import { useQuery as useQuery13 } from "@tanstack/react-query";
9612
+ import { useQuery as useQuery14 } from "@tanstack/react-query";
9366
9613
  import { useMemo as useMemo11 } from "react";
9367
9614
 
9368
9615
  // src/modules-features/admin/core/core64229/F_core64229_Form.tsx
9369
9616
  import { PasswordInput } from "@mantine/core";
9370
- import { useForm as useForm14 } from "@mantine/form";
9371
- import { jsx as jsx96, jsxs as jsxs58 } from "react/jsx-runtime";
9617
+ import { useForm as useForm15 } from "@mantine/form";
9618
+ import { jsx as jsx99, jsxs as jsxs59 } from "react/jsx-runtime";
9372
9619
  function F_core64229_Form({ values }) {
9373
- const form = useForm14({
9620
+ const form = useForm15({
9374
9621
  mode: "uncontrolled",
9375
9622
  initialValues: values ? values : {
9376
9623
  emailModule: 1 /* Đào tạo */
@@ -9394,27 +9641,27 @@ function F_core64229_Form({ values }) {
9394
9641
  "password": formValues.password
9395
9642
  });
9396
9643
  }
9397
- if (values) return /* @__PURE__ */ jsx96(
9644
+ if (values) return /* @__PURE__ */ jsx99(
9398
9645
  MyActionIconUpdate,
9399
9646
  {
9400
9647
  form,
9401
9648
  onSubmit: handleSubmit,
9402
- children: /* @__PURE__ */ jsx96(FormInput, { form })
9649
+ children: /* @__PURE__ */ jsx99(FormInput, { form })
9403
9650
  }
9404
9651
  );
9405
- return /* @__PURE__ */ jsx96(
9652
+ return /* @__PURE__ */ jsx99(
9406
9653
  MyButtonCreate,
9407
9654
  {
9408
9655
  form,
9409
9656
  onSubmit: handleSubmit,
9410
- children: /* @__PURE__ */ jsx96(FormInput, { form })
9657
+ children: /* @__PURE__ */ jsx99(FormInput, { form })
9411
9658
  }
9412
9659
  );
9413
9660
  }
9414
9661
  function FormInput({ form }) {
9415
9662
  var _a, _b;
9416
- return /* @__PURE__ */ jsxs58(MyFlexColumn, { children: [
9417
- /* @__PURE__ */ jsx96(
9663
+ return /* @__PURE__ */ jsxs59(MyFlexColumn, { children: [
9664
+ /* @__PURE__ */ jsx99(
9418
9665
  MySelect,
9419
9666
  __spreadProps(__spreadValues({
9420
9667
  label: "Ph\xE2n h\u1EC7",
@@ -9423,25 +9670,25 @@ function FormInput({ form }) {
9423
9670
  value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
9424
9671
  })
9425
9672
  ),
9426
- /* @__PURE__ */ jsx96(
9673
+ /* @__PURE__ */ jsx99(
9427
9674
  MyTextInput,
9428
9675
  __spreadValues({
9429
9676
  label: "Host mail server"
9430
9677
  }, form.getInputProps("hostMailServer"))
9431
9678
  ),
9432
- /* @__PURE__ */ jsx96(
9679
+ /* @__PURE__ */ jsx99(
9433
9680
  MyNumberInput,
9434
9681
  __spreadValues({
9435
9682
  label: "Outgoing port"
9436
9683
  }, form.getInputProps("outgoingPort"))
9437
9684
  ),
9438
- /* @__PURE__ */ jsx96(
9685
+ /* @__PURE__ */ jsx99(
9439
9686
  MyNumberInput,
9440
9687
  __spreadValues({
9441
9688
  label: "Incoming port"
9442
9689
  }, form.getInputProps("incomingPort"))
9443
9690
  ),
9444
- /* @__PURE__ */ jsx96(
9691
+ /* @__PURE__ */ jsx99(
9445
9692
  MySelect,
9446
9693
  {
9447
9694
  label: "SSL",
@@ -9450,13 +9697,13 @@ function FormInput({ form }) {
9450
9697
  onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
9451
9698
  }
9452
9699
  ),
9453
- /* @__PURE__ */ jsx96(
9700
+ /* @__PURE__ */ jsx99(
9454
9701
  MyTextInput,
9455
9702
  __spreadValues({
9456
9703
  label: "Username"
9457
9704
  }, form.getInputProps("userName"))
9458
9705
  ),
9459
- /* @__PURE__ */ jsx96(
9706
+ /* @__PURE__ */ jsx99(
9460
9707
  PasswordInput,
9461
9708
  __spreadValues({
9462
9709
  label: "Password",
@@ -9467,9 +9714,9 @@ function FormInput({ form }) {
9467
9714
  }
9468
9715
 
9469
9716
  // src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
9470
- import { jsx as jsx97 } from "react/jsx-runtime";
9717
+ import { jsx as jsx100 } from "react/jsx-runtime";
9471
9718
  function F_core64229_Delete({ values }) {
9472
- return /* @__PURE__ */ jsx97(
9719
+ return /* @__PURE__ */ jsx100(
9473
9720
  MyActionIconDelete,
9474
9721
  {
9475
9722
  contextData: values == null ? void 0 : values.code,
@@ -9483,9 +9730,9 @@ function F_core64229_Delete({ values }) {
9483
9730
  }
9484
9731
 
9485
9732
  // src/modules-features/admin/core/core64229/F_core64229_Read.tsx
9486
- import { jsx as jsx98, jsxs as jsxs59 } from "react/jsx-runtime";
9733
+ import { jsx as jsx101, jsxs as jsxs60 } from "react/jsx-runtime";
9487
9734
  function F_core64229_Read() {
9488
- const query = useQuery13({
9735
+ const query = useQuery14({
9489
9736
  queryKey: ["F_core64229_Read"],
9490
9737
  queryFn: async () => {
9491
9738
  const res = await baseAxios_default.get("/EmailConfig/GetAll");
@@ -9528,52 +9775,52 @@ function F_core64229_Read() {
9528
9775
  }
9529
9776
  ], []);
9530
9777
  if (query.isLoading) return "\u0110ang t\u1EA3i";
9531
- return /* @__PURE__ */ jsx98(
9778
+ return /* @__PURE__ */ jsx101(
9532
9779
  MyDataTable,
9533
9780
  {
9534
9781
  columns,
9535
9782
  data: query.data,
9536
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx98(F_core64229_Form, {}),
9537
- renderRowActions: ({ row }) => /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
9538
- /* @__PURE__ */ jsx98(F_core64229_Form, { values: row.original }),
9539
- /* @__PURE__ */ jsx98(F_core64229_Delete, { values: row.original })
9783
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx101(F_core64229_Form, {}),
9784
+ renderRowActions: ({ row }) => /* @__PURE__ */ jsxs60(MyCenterFull, { children: [
9785
+ /* @__PURE__ */ jsx101(F_core64229_Form, { values: row.original }),
9786
+ /* @__PURE__ */ jsx101(F_core64229_Delete, { values: row.original })
9540
9787
  ] })
9541
9788
  }
9542
9789
  );
9543
9790
  }
9544
9791
 
9545
9792
  // src/modules-features/admin/core/core64229/F_core64229.tsx
9546
- import { jsx as jsx99 } from "react/jsx-runtime";
9793
+ import { jsx as jsx102 } from "react/jsx-runtime";
9547
9794
  function F_core64229() {
9548
- return /* @__PURE__ */ jsx99(MyPageContent, { children: /* @__PURE__ */ jsx99(F_core64229_Read, {}) });
9795
+ return /* @__PURE__ */ jsx102(F_core64229_Read, {});
9549
9796
  }
9550
9797
 
9551
9798
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
9552
9799
  import { Button as Button17, Group as Group17 } from "@mantine/core";
9553
9800
  import { IconShield } from "@tabler/icons-react";
9554
- import { useQuery as useQuery15 } from "@tanstack/react-query";
9801
+ import { useQuery as useQuery16 } from "@tanstack/react-query";
9555
9802
  import { useRouter as useRouter3 } from "next/navigation";
9556
9803
  import { useMemo as useMemo13, useState as useState13 } from "react";
9557
9804
 
9558
9805
  // src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
9559
9806
  import { Button as Button16, Fieldset as Fieldset6, Group as Group16, Table as Table4 } from "@mantine/core";
9560
9807
  import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
9561
- import { useMutation as useMutation6, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
9562
- import { useEffect as useEffect9, useMemo as useMemo12, useState as useState12 } from "react";
9563
- import { jsx as jsx100, jsxs as jsxs60 } from "react/jsx-runtime";
9808
+ import { useMutation as useMutation7, useQuery as useQuery15, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
9809
+ import { useEffect as useEffect13, useMemo as useMemo12, useState as useState12 } from "react";
9810
+ import { jsx as jsx103, jsxs as jsxs61 } from "react/jsx-runtime";
9564
9811
  function F_core71678_ChangePermission({ user }) {
9565
9812
  const disc = useDisclosure12();
9566
9813
  const queryClient = useQueryClient5();
9567
9814
  const [rowSelection, setRowSelection] = useState12({});
9568
9815
  const rowSelect = useState12();
9569
- const query = useQuery14({
9816
+ const query = useQuery15({
9570
9817
  queryKey: [`F1_1ChangePermission`],
9571
9818
  queryFn: async () => {
9572
9819
  const response = await baseAxios_default.get("/Role/GetAdminRole");
9573
9820
  return response.data.data;
9574
9821
  }
9575
9822
  });
9576
- const mutation = useMutation6({
9823
+ const mutation = useMutation7({
9577
9824
  mutationFn: async (roleIds) => {
9578
9825
  const res = await baseAxios_default.post("/Role/AddUser?userId=" + user.id, roleIds);
9579
9826
  return res;
@@ -9597,7 +9844,7 @@ function F_core71678_ChangePermission({ user }) {
9597
9844
  }
9598
9845
  });
9599
9846
  }
9600
- useEffect9(() => {
9847
+ useEffect13(() => {
9601
9848
  var _a;
9602
9849
  const result = (_a = user.roles) == null ? void 0 : _a.reduce((acc, item) => {
9603
9850
  if (item.id !== void 0) {
@@ -9607,32 +9854,32 @@ function F_core71678_ChangePermission({ user }) {
9607
9854
  }, {});
9608
9855
  setRowSelection(result);
9609
9856
  }, []);
9610
- return /* @__PURE__ */ jsxs60(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n", children: [
9611
- /* @__PURE__ */ jsx100(
9857
+ return /* @__PURE__ */ jsxs61(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n", children: [
9858
+ /* @__PURE__ */ jsx103(
9612
9859
  Table4,
9613
9860
  {
9614
9861
  w: "100%",
9615
9862
  variant: "vertical",
9616
9863
  layout: "fixed",
9617
- children: /* @__PURE__ */ jsxs60(Table4.Tbody, { children: [
9618
- /* @__PURE__ */ jsxs60(Table4.Tr, { children: [
9619
- /* @__PURE__ */ jsx100(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
9620
- /* @__PURE__ */ jsx100(Table4.Td, { children: user.fullName })
9864
+ children: /* @__PURE__ */ jsxs61(Table4.Tbody, { children: [
9865
+ /* @__PURE__ */ jsxs61(Table4.Tr, { children: [
9866
+ /* @__PURE__ */ jsx103(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
9867
+ /* @__PURE__ */ jsx103(Table4.Td, { children: user.fullName })
9621
9868
  ] }),
9622
- /* @__PURE__ */ jsxs60(Table4.Tr, { children: [
9623
- /* @__PURE__ */ jsx100(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
9624
- /* @__PURE__ */ jsx100(Table4.Td, { children: user.userName })
9869
+ /* @__PURE__ */ jsxs61(Table4.Tr, { children: [
9870
+ /* @__PURE__ */ jsx103(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
9871
+ /* @__PURE__ */ jsx103(Table4.Td, { children: user.userName })
9625
9872
  ] }),
9626
- /* @__PURE__ */ jsxs60(Table4.Tr, { children: [
9627
- /* @__PURE__ */ jsx100(Table4.Th, { children: "Email:" }),
9628
- /* @__PURE__ */ jsx100(Table4.Td, { children: user.email })
9873
+ /* @__PURE__ */ jsxs61(Table4.Tr, { children: [
9874
+ /* @__PURE__ */ jsx103(Table4.Th, { children: "Email:" }),
9875
+ /* @__PURE__ */ jsx103(Table4.Td, { children: user.email })
9629
9876
  ] })
9630
9877
  ] })
9631
9878
  }
9632
9879
  ),
9633
9880
  query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
9634
9881
  query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
9635
- /* @__PURE__ */ jsx100(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx100(
9882
+ /* @__PURE__ */ jsx103(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx103(
9636
9883
  MyDataTable,
9637
9884
  {
9638
9885
  enableRowSelection: true,
@@ -9656,16 +9903,16 @@ function F_core71678_ChangePermission({ user }) {
9656
9903
  data: query.data
9657
9904
  }
9658
9905
  ) }),
9659
- /* @__PURE__ */ jsx100(Group16, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx100(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
9906
+ /* @__PURE__ */ jsx103(Group16, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx103(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
9660
9907
  ] });
9661
9908
  }
9662
9909
 
9663
9910
  // src/modules-features/admin/core/core71678/F_core71678_Create.tsx
9664
- import { useForm as useForm15 } from "@mantine/form";
9665
- import { jsx as jsx101, jsxs as jsxs61 } from "react/jsx-runtime";
9911
+ import { useForm as useForm16 } from "@mantine/form";
9912
+ import { jsx as jsx104, jsxs as jsxs62 } from "react/jsx-runtime";
9666
9913
  var ENDPOINT2 = "/Account/create";
9667
9914
  function F_core71678_Create() {
9668
- const form = useForm15({
9915
+ const form = useForm16({
9669
9916
  initialValues: {
9670
9917
  fullName: "",
9671
9918
  code: "",
@@ -9690,21 +9937,21 @@ function F_core71678_Create() {
9690
9937
  AQModuleId: 1002
9691
9938
  }));
9692
9939
  }
9693
- return /* @__PURE__ */ jsxs61(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
9694
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
9695
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
9696
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
9697
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
9698
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
9699
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
9940
+ return /* @__PURE__ */ jsxs62(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
9941
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
9942
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
9943
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
9944
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
9945
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
9946
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
9700
9947
  ] });
9701
9948
  }
9702
9949
 
9703
9950
  // src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
9704
- import { jsx as jsx102 } from "react/jsx-runtime";
9951
+ import { jsx as jsx105 } from "react/jsx-runtime";
9705
9952
  var ENDPOINT3 = "/Account/delete";
9706
9953
  function F_core71678_Delete({ id, code }) {
9707
- return /* @__PURE__ */ jsx102(
9954
+ return /* @__PURE__ */ jsx105(
9708
9955
  MyActionIconDelete,
9709
9956
  {
9710
9957
  contextData: code,
@@ -9714,17 +9961,17 @@ function F_core71678_Delete({ id, code }) {
9714
9961
  }
9715
9962
 
9716
9963
  // src/modules-features/admin/core/core71678/F_core71678_Update.tsx
9717
- import { useForm as useForm16 } from "@mantine/form";
9718
- import { useEffect as useEffect10 } from "react";
9719
- import { jsx as jsx103, jsxs as jsxs62 } from "react/jsx-runtime";
9964
+ import { useForm as useForm17 } from "@mantine/form";
9965
+ import { useEffect as useEffect14 } from "react";
9966
+ import { jsx as jsx106, jsxs as jsxs63 } from "react/jsx-runtime";
9720
9967
  function F_core71678_Update({ user }) {
9721
- const form = useForm16({
9968
+ const form = useForm17({
9722
9969
  initialValues: user
9723
9970
  });
9724
- useEffect10(() => {
9971
+ useEffect14(() => {
9725
9972
  console.log(form.values);
9726
9973
  }, [form.values]);
9727
- return /* @__PURE__ */ jsx103(MyActionIconUpdate, { form, onSubmit: async (values) => {
9974
+ return /* @__PURE__ */ jsx106(MyActionIconUpdate, { form, onSubmit: async (values) => {
9728
9975
  return await baseAxios_default.post(
9729
9976
  "/Account/update",
9730
9977
  __spreadProps(__spreadValues({}, values), {
@@ -9736,22 +9983,22 @@ function F_core71678_Update({ user }) {
9736
9983
  workingUnitId: null
9737
9984
  })
9738
9985
  );
9739
- }, children: /* @__PURE__ */ jsxs62(MyFlexColumn, { children: [
9740
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
9741
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
9742
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
9743
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
9744
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
9986
+ }, children: /* @__PURE__ */ jsxs63(MyFlexColumn, { children: [
9987
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
9988
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
9989
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
9990
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
9991
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
9745
9992
  ] }) });
9746
9993
  }
9747
9994
 
9748
9995
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
9749
- import { jsx as jsx104, jsxs as jsxs63 } from "react/jsx-runtime";
9996
+ import { jsx as jsx107, jsxs as jsxs64 } from "react/jsx-runtime";
9750
9997
  var ENDPOINT4 = "/Account/GetAdminAccount";
9751
9998
  function F_core71678_Read() {
9752
9999
  const router = useRouter3();
9753
10000
  const [rowSelection, setRowSelection] = useState13({});
9754
- const AllUserQuery = useQuery15({
10001
+ const AllUserQuery = useQuery16({
9755
10002
  queryKey: ["F_core71678_Read"],
9756
10003
  queryFn: async () => {
9757
10004
  var _a;
@@ -9778,25 +10025,25 @@ function F_core71678_Read() {
9778
10025
  },
9779
10026
  {
9780
10027
  header: "Quy\u1EC1n",
9781
- accessorFn: (row) => /* @__PURE__ */ jsx104(F_core71678_ChangePermission, { user: row })
10028
+ accessorFn: (row) => /* @__PURE__ */ jsx107(F_core71678_ChangePermission, { user: row })
9782
10029
  }
9783
10030
  ],
9784
10031
  []
9785
10032
  );
9786
10033
  if (AllUserQuery.isLoading) return "Loading...";
9787
- return /* @__PURE__ */ jsx104(
10034
+ return /* @__PURE__ */ jsx107(
9788
10035
  MyDataTable,
9789
10036
  {
9790
10037
  columns,
9791
10038
  data: AllUserQuery.data,
9792
10039
  renderTopToolbarCustomActions: () => {
9793
- return /* @__PURE__ */ jsxs63(Group17, { children: [
9794
- /* @__PURE__ */ jsx104(F_core71678_Create, {}),
9795
- /* @__PURE__ */ jsx104(
10040
+ return /* @__PURE__ */ jsxs64(Group17, { children: [
10041
+ /* @__PURE__ */ jsx107(F_core71678_Create, {}),
10042
+ /* @__PURE__ */ jsx107(
9796
10043
  Button17,
9797
10044
  {
9798
10045
  color: "violet",
9799
- leftSection: /* @__PURE__ */ jsx104(IconShield, {}),
10046
+ leftSection: /* @__PURE__ */ jsx107(IconShield, {}),
9800
10047
  onClick: () => {
9801
10048
  router.push("core47643");
9802
10049
  },
@@ -9806,9 +10053,9 @@ function F_core71678_Read() {
9806
10053
  ] });
9807
10054
  },
9808
10055
  renderRowActions: ({ row }) => {
9809
- return /* @__PURE__ */ jsxs63(MyCenterFull, { children: [
9810
- /* @__PURE__ */ jsx104(F_core71678_Update, { user: row.original }),
9811
- /* @__PURE__ */ jsx104(F_core71678_Delete, { id: row.original.id, code: row.original.code })
10056
+ return /* @__PURE__ */ jsxs64(MyCenterFull, { children: [
10057
+ /* @__PURE__ */ jsx107(F_core71678_Update, { user: row.original }),
10058
+ /* @__PURE__ */ jsx107(F_core71678_Delete, { id: row.original.id, code: row.original.code })
9812
10059
  ] });
9813
10060
  }
9814
10061
  }
@@ -9816,21 +10063,21 @@ function F_core71678_Read() {
9816
10063
  }
9817
10064
 
9818
10065
  // src/modules-features/admin/core/core71678/F_core71678.tsx
9819
- import { jsx as jsx105 } from "react/jsx-runtime";
10066
+ import { jsx as jsx108 } from "react/jsx-runtime";
9820
10067
  function F_core71678() {
9821
- return /* @__PURE__ */ jsx105(F_core71678_Read, {});
10068
+ return /* @__PURE__ */ jsx108(F_core71678_Read, {});
9822
10069
  }
9823
10070
 
9824
10071
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
9825
- import { useQuery as useQuery16 } from "@tanstack/react-query";
10072
+ import { useQuery as useQuery17 } from "@tanstack/react-query";
9826
10073
  import { useMemo as useMemo14 } from "react";
9827
10074
 
9828
10075
  // src/modules-features/admin/core/core76318/F_core76318_Create.tsx
9829
10076
  import { FileInput as FileInput8 } from "@mantine/core";
9830
- import { useForm as useForm17 } from "@mantine/form";
9831
- import { jsx as jsx106, jsxs as jsxs64 } from "react/jsx-runtime";
10077
+ import { useForm as useForm18 } from "@mantine/form";
10078
+ import { jsx as jsx109, jsxs as jsxs65 } from "react/jsx-runtime";
9832
10079
  function F_core76318_Create({ SecurityTypeId }) {
9833
- const form = useForm17({
10080
+ const form = useForm18({
9834
10081
  mode: "uncontrolled",
9835
10082
  validate: {
9836
10083
  decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
@@ -9839,7 +10086,7 @@ function F_core76318_Create({ SecurityTypeId }) {
9839
10086
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
9840
10087
  }
9841
10088
  });
9842
- return /* @__PURE__ */ jsxs64(
10089
+ return /* @__PURE__ */ jsxs65(
9843
10090
  MyButtonCreate,
9844
10091
  {
9845
10092
  objectName: "v\u0103n b\u1EA3n",
@@ -9852,28 +10099,28 @@ function F_core76318_Create({ SecurityTypeId }) {
9852
10099
  }));
9853
10100
  },
9854
10101
  children: [
9855
- /* @__PURE__ */ jsx106(
10102
+ /* @__PURE__ */ jsx109(
9856
10103
  MyTextInput,
9857
10104
  __spreadValues({
9858
10105
  withAsterisk: true,
9859
10106
  label: "S\u1ED1 quy \u0111\u1ECBnh"
9860
10107
  }, form.getInputProps("decisionCode"))
9861
10108
  ),
9862
- /* @__PURE__ */ jsx106(
10109
+ /* @__PURE__ */ jsx109(
9863
10110
  MyDateInput,
9864
10111
  __spreadValues({
9865
10112
  withAsterisk: true,
9866
10113
  label: "Ng\xE0y ban h\xE0nh"
9867
10114
  }, form.getInputProps("promulgateDate"))
9868
10115
  ),
9869
- /* @__PURE__ */ jsx106(
10116
+ /* @__PURE__ */ jsx109(
9870
10117
  MyTextInput,
9871
10118
  __spreadValues({
9872
10119
  withAsterisk: true,
9873
10120
  label: "T\xEAn t\xE0i li\u1EC7u"
9874
10121
  }, form.getInputProps("name"))
9875
10122
  ),
9876
- /* @__PURE__ */ jsx106(
10123
+ /* @__PURE__ */ jsx109(
9877
10124
  FileInput8,
9878
10125
  __spreadValues({
9879
10126
  withAsterisk: true,
@@ -9887,12 +10134,12 @@ function F_core76318_Create({ SecurityTypeId }) {
9887
10134
  }
9888
10135
 
9889
10136
  // src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
9890
- import { jsx as jsx107 } from "react/jsx-runtime";
10137
+ import { jsx as jsx110 } from "react/jsx-runtime";
9891
10138
  function F_core76318_Delete({
9892
10139
  id,
9893
10140
  contextData
9894
10141
  }) {
9895
- return /* @__PURE__ */ jsx107(
10142
+ return /* @__PURE__ */ jsx110(
9896
10143
  MyActionIconDelete,
9897
10144
  {
9898
10145
  contextData,
@@ -9903,11 +10150,11 @@ function F_core76318_Delete({
9903
10150
 
9904
10151
  // src/modules-features/admin/core/core76318/F_core76318_Update.tsx
9905
10152
  import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
9906
- import { useForm as useForm18 } from "@mantine/form";
9907
- import { jsx as jsx108, jsxs as jsxs65 } from "react/jsx-runtime";
10153
+ import { useForm as useForm19 } from "@mantine/form";
10154
+ import { jsx as jsx111, jsxs as jsxs66 } from "react/jsx-runtime";
9908
10155
  function F_core76318_Update({ values }) {
9909
10156
  var _a;
9910
- const form = useForm18({
10157
+ const form = useForm19({
9911
10158
  mode: "uncontrolled",
9912
10159
  initialValues: __spreadProps(__spreadValues({}, values), {
9913
10160
  file: new File(
@@ -9923,7 +10170,7 @@ function F_core76318_Update({ values }) {
9923
10170
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
9924
10171
  }
9925
10172
  });
9926
- return /* @__PURE__ */ jsxs65(
10173
+ return /* @__PURE__ */ jsxs66(
9927
10174
  MyActionIconUpdate,
9928
10175
  {
9929
10176
  form,
@@ -9933,28 +10180,28 @@ function F_core76318_Update({ values }) {
9933
10180
  }));
9934
10181
  },
9935
10182
  children: [
9936
- /* @__PURE__ */ jsx108(
10183
+ /* @__PURE__ */ jsx111(
9937
10184
  TextInput5,
9938
10185
  __spreadValues({
9939
10186
  withAsterisk: true,
9940
10187
  label: "S\u1ED1 quy \u0111\u1ECBnh"
9941
10188
  }, form.getInputProps("decisionCode"))
9942
10189
  ),
9943
- /* @__PURE__ */ jsx108(
10190
+ /* @__PURE__ */ jsx111(
9944
10191
  MyDateInput,
9945
10192
  __spreadValues({
9946
10193
  withAsterisk: true,
9947
10194
  label: "Ng\xE0y ban h\xE0nh"
9948
10195
  }, form.getInputProps("promulgateDate"))
9949
10196
  ),
9950
- /* @__PURE__ */ jsx108(
10197
+ /* @__PURE__ */ jsx111(
9951
10198
  TextInput5,
9952
10199
  __spreadValues({
9953
10200
  withAsterisk: true,
9954
10201
  label: "T\xEAn t\xE0i li\u1EC7u"
9955
10202
  }, form.getInputProps("name"))
9956
10203
  ),
9957
- /* @__PURE__ */ jsx108(
10204
+ /* @__PURE__ */ jsx111(
9958
10205
  FileInput9,
9959
10206
  __spreadValues({
9960
10207
  withAsterisk: true,
@@ -9967,9 +10214,9 @@ function F_core76318_Update({ values }) {
9967
10214
  }
9968
10215
 
9969
10216
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
9970
- import { jsx as jsx109, jsxs as jsxs66 } from "react/jsx-runtime";
10217
+ import { jsx as jsx112, jsxs as jsxs67 } from "react/jsx-runtime";
9971
10218
  function F_core76318_Read({ SecurityTypeId }) {
9972
- const query = useQuery16({
10219
+ const query = useQuery17({
9973
10220
  queryKey: ["F_core76318_Read"],
9974
10221
  queryFn: async () => {
9975
10222
  var _a;
@@ -9996,7 +10243,7 @@ function F_core76318_Read({ SecurityTypeId }) {
9996
10243
  {
9997
10244
  header: "File",
9998
10245
  accessorFn: (row) => {
9999
- return /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(MyButtonViewPDF, { id: row.id }) });
10246
+ return /* @__PURE__ */ jsx112(MyCenterFull, { children: /* @__PURE__ */ jsx112(MyButtonViewPDF, { id: row.id }) });
10000
10247
  }
10001
10248
  }
10002
10249
  ],
@@ -10004,17 +10251,17 @@ function F_core76318_Read({ SecurityTypeId }) {
10004
10251
  );
10005
10252
  if (query.isLoading) return "Loading...";
10006
10253
  if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
10007
- return /* @__PURE__ */ jsx109(
10254
+ return /* @__PURE__ */ jsx112(
10008
10255
  MyDataTable,
10009
10256
  {
10010
10257
  columns,
10011
10258
  data: query.data,
10012
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx109(F_core76318_Create, { SecurityTypeId }),
10259
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx112(F_core76318_Create, { SecurityTypeId }),
10013
10260
  renderRowActions: ({ row }) => {
10014
10261
  var _a;
10015
- return /* @__PURE__ */ jsxs66(MyCenterFull, { children: [
10016
- /* @__PURE__ */ jsx109(F_core76318_Update, { values: row.original }),
10017
- /* @__PURE__ */ jsx109(
10262
+ return /* @__PURE__ */ jsxs67(MyCenterFull, { children: [
10263
+ /* @__PURE__ */ jsx112(F_core76318_Update, { values: row.original }),
10264
+ /* @__PURE__ */ jsx112(
10018
10265
  F_core76318_Delete,
10019
10266
  {
10020
10267
  id: row.original.id,
@@ -10028,19 +10275,19 @@ function F_core76318_Read({ SecurityTypeId }) {
10028
10275
  }
10029
10276
 
10030
10277
  // src/modules-features/admin/core/core76318/F_core76318.tsx
10031
- import { jsx as jsx110 } from "react/jsx-runtime";
10278
+ import { jsx as jsx113 } from "react/jsx-runtime";
10032
10279
  function F_core76318({ SecurityTypeId }) {
10033
- return /* @__PURE__ */ jsx110(F_core76318_Read, { SecurityTypeId });
10280
+ return /* @__PURE__ */ jsx113(F_core76318_Read, { SecurityTypeId });
10034
10281
  }
10035
10282
 
10036
10283
  // src/modules-features/admin/core/core83092/F_core83092.tsx
10037
- import { Grid as Grid3, Paper as Paper11, ScrollArea as ScrollArea8 } from "@mantine/core";
10284
+ import { Grid as Grid4, Paper as Paper12, ScrollArea as ScrollArea8 } from "@mantine/core";
10038
10285
 
10039
10286
  // src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
10040
10287
  import { Container as Container5 } from "@mantine/core";
10041
- import { useQuery as useQuery17 } from "@tanstack/react-query";
10042
- import { useEffect as useEffect11, useMemo as useMemo15, useState as useState14 } from "react";
10043
- import { jsx as jsx111 } from "react/jsx-runtime";
10288
+ import { useQuery as useQuery18 } from "@tanstack/react-query";
10289
+ import { useEffect as useEffect15, useMemo as useMemo15, useState as useState14 } from "react";
10290
+ import { jsx as jsx114 } from "react/jsx-runtime";
10044
10291
  function F_core83092_ReadUser() {
10045
10292
  const store = useS_core83092();
10046
10293
  const query = useQ_core83092_Account_GetAdminAccount();
@@ -10063,17 +10310,17 @@ function F_core83092_ReadUser() {
10063
10310
  setRowSelection({ [rowId]: true });
10064
10311
  store.setProperty("roleId", parseInt(rowId));
10065
10312
  };
10066
- useEffect11(() => {
10313
+ useEffect15(() => {
10067
10314
  if (store.state.roleId == 0) return;
10068
10315
  setRowSelection({ [store.state.roleId]: true });
10069
10316
  }, [store.state.roleId]);
10070
- useEffect11(() => {
10317
+ useEffect15(() => {
10071
10318
  if (!query.data) return;
10072
10319
  store.setProperty("roleId", query.data[0].id);
10073
10320
  }, [query.data]);
10074
10321
  if (query.isLoading) return "Loading...";
10075
10322
  if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
10076
- return /* @__PURE__ */ jsx111(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx111(
10323
+ return /* @__PURE__ */ jsx114(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx114(
10077
10324
  MyDataTable,
10078
10325
  {
10079
10326
  columns,
@@ -10094,7 +10341,7 @@ function F_core83092_ReadUser() {
10094
10341
  ) });
10095
10342
  }
10096
10343
  function useQ_core83092_Account_GetAdminAccount() {
10097
- const query = useQuery17({
10344
+ const query = useQuery18({
10098
10345
  queryKey: ["useQ_core83092_Account_GetAdminAccount"],
10099
10346
  queryFn: async () => {
10100
10347
  var _a;
@@ -10107,13 +10354,13 @@ function useQ_core83092_Account_GetAdminAccount() {
10107
10354
  }
10108
10355
 
10109
10356
  // src/modules-features/admin/core/core83092/F_core83092_Save.tsx
10110
- import { useMutation as useMutation7 } from "@tanstack/react-query";
10111
- import { useEffect as useEffect12, useState as useState15 } from "react";
10112
- import { jsx as jsx112 } from "react/jsx-runtime";
10357
+ import { useMutation as useMutation8 } from "@tanstack/react-query";
10358
+ import { useEffect as useEffect16, useState as useState15 } from "react";
10359
+ import { jsx as jsx115 } from "react/jsx-runtime";
10113
10360
  function F_core83092_Save() {
10114
10361
  const store = useS_core83092();
10115
10362
  const disable = useState15(false);
10116
- const mutation = useMutation7({
10363
+ const mutation = useMutation8({
10117
10364
  mutationFn: async (body) => {
10118
10365
  const res = await baseAxios_default.put("/Role/UpdateUserPermission", body);
10119
10366
  return res;
@@ -10131,38 +10378,38 @@ function F_core83092_Save() {
10131
10378
  }
10132
10379
  });
10133
10380
  }
10134
- useEffect12(() => {
10381
+ useEffect16(() => {
10135
10382
  if (!store.state.rolePermissions || store.state.rolePermissions.length == 0) {
10136
10383
  disable[1](true);
10137
10384
  return;
10138
10385
  }
10139
10386
  disable[1](false);
10140
10387
  }, [store.state.rolePermissions]);
10141
- return /* @__PURE__ */ jsx112(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
10388
+ return /* @__PURE__ */ jsx115(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
10142
10389
  }
10143
10390
 
10144
10391
  // src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
10145
10392
  import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table as Table5, Text as Text14 } from "@mantine/core";
10146
10393
  import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
10147
- import { useQuery as useQuery18 } from "@tanstack/react-query";
10148
- import React4, { useEffect as useEffect13, useState as useState16 } from "react";
10149
- import { jsx as jsx113, jsxs as jsxs67 } from "react/jsx-runtime";
10394
+ import { useQuery as useQuery19 } from "@tanstack/react-query";
10395
+ import React4, { useEffect as useEffect17, useState as useState16 } from "react";
10396
+ import { jsx as jsx116, jsxs as jsxs68 } from "react/jsx-runtime";
10150
10397
  var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
10151
10398
  function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10152
10399
  var _a, _b;
10153
10400
  const store = useS_core83092();
10154
10401
  const query = useGetUserPermission2({ menuData: menuData2 });
10155
10402
  const list = useState16([]);
10156
- useEffect13(() => {
10403
+ useEffect17(() => {
10157
10404
  list[1](groupToTwoLevels(menuData2));
10158
10405
  }, []);
10159
- useEffect13(() => {
10406
+ useEffect17(() => {
10160
10407
  if (!query.data) return;
10161
10408
  store.setProperty("rolePermissions", query.data);
10162
10409
  }, [query.data]);
10163
10410
  if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
10164
- return /* @__PURE__ */ jsx113(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs67(Table5, { children: [
10165
- /* @__PURE__ */ jsx113(
10411
+ return /* @__PURE__ */ jsx116(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs68(Table5, { children: [
10412
+ /* @__PURE__ */ jsx116(
10166
10413
  Table5.Thead,
10167
10414
  {
10168
10415
  bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
@@ -10173,90 +10420,90 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10173
10420
  boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
10174
10421
  border: "1px solid var(--mantine-color-gray-4)"
10175
10422
  },
10176
- children: /* @__PURE__ */ jsxs67(Table5.Tr, { children: [
10177
- /* @__PURE__ */ jsx113(Table5.Th, { children: title2 }),
10178
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10179
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
10423
+ children: /* @__PURE__ */ jsxs68(Table5.Tr, { children: [
10424
+ /* @__PURE__ */ jsx116(Table5.Th, { children: title2 }),
10425
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10426
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
10180
10427
  store.toogleAllPermissionWithType("isRead", e4.target.checked);
10181
10428
  } }),
10182
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10429
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10183
10430
  "Xem",
10184
- /* @__PURE__ */ jsx113(IconEyeUp2, { color: "gray" })
10431
+ /* @__PURE__ */ jsx116(IconEyeUp2, { color: "gray" })
10185
10432
  ] })
10186
10433
  ] }) }),
10187
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10188
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
10434
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10435
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
10189
10436
  store.toogleAllPermissionWithType("isCreate", e4.target.checked);
10190
10437
  } }),
10191
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10438
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10192
10439
  "Th\xEAm",
10193
- /* @__PURE__ */ jsx113(IconPlus6, { color: "blue" })
10440
+ /* @__PURE__ */ jsx116(IconPlus6, { color: "blue" })
10194
10441
  ] })
10195
10442
  ] }) }),
10196
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10197
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
10443
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10444
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
10198
10445
  store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
10199
10446
  } }),
10200
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10447
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10201
10448
  "S\u1EEDa",
10202
- /* @__PURE__ */ jsx113(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
10449
+ /* @__PURE__ */ jsx116(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
10203
10450
  ] })
10204
10451
  ] }) }),
10205
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10206
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
10452
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10453
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
10207
10454
  store.toogleAllPermissionWithType("isDelete", e4.target.checked);
10208
10455
  } }),
10209
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10456
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10210
10457
  "X\xF3a",
10211
- /* @__PURE__ */ jsx113(IconTrash6, { color: "var(--mantine-color-red-8)" })
10458
+ /* @__PURE__ */ jsx116(IconTrash6, { color: "var(--mantine-color-red-8)" })
10212
10459
  ] })
10213
10460
  ] }) }),
10214
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10215
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
10461
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10462
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
10216
10463
  store.toogleAllPermissionWithType("isPrint", e4.target.checked);
10217
10464
  } }),
10218
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10465
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10219
10466
  "In",
10220
- /* @__PURE__ */ jsx113(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
10467
+ /* @__PURE__ */ jsx116(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
10221
10468
  ] })
10222
10469
  ] }) }),
10223
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10224
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
10470
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10471
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
10225
10472
  store.toogleAllPermissionWithType("isExport", e4.target.checked);
10226
10473
  } }),
10227
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10474
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10228
10475
  "Xu\u1EA5t",
10229
- /* @__PURE__ */ jsx113(IconFileExport3, { color: "var(--mantine-color-green-8)" })
10476
+ /* @__PURE__ */ jsx116(IconFileExport3, { color: "var(--mantine-color-green-8)" })
10230
10477
  ] })
10231
10478
  ] }) })
10232
10479
  ] })
10233
10480
  }
10234
10481
  ),
10235
- /* @__PURE__ */ jsx113(Table5.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
10236
- if (item.links == void 0) return /* @__PURE__ */ jsxs67(Table5.Tr, { children: [
10237
- /* @__PURE__ */ jsx113(Table5.Td, { children: item.label }),
10238
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10239
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10240
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10241
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10242
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10243
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) })
10482
+ /* @__PURE__ */ jsx116(Table5.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
10483
+ if (item.links == void 0) return /* @__PURE__ */ jsxs68(Table5.Tr, { children: [
10484
+ /* @__PURE__ */ jsx116(Table5.Td, { children: item.label }),
10485
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10486
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10487
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10488
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10489
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10490
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) })
10244
10491
  ] }, idx);
10245
- return /* @__PURE__ */ jsxs67(React4.Fragment, { children: [
10246
- /* @__PURE__ */ jsx113(Table5.Tr, { children: /* @__PURE__ */ jsx113(
10492
+ return /* @__PURE__ */ jsxs68(React4.Fragment, { children: [
10493
+ /* @__PURE__ */ jsx116(Table5.Tr, { children: /* @__PURE__ */ jsx116(
10247
10494
  Table5.Td,
10248
10495
  {
10249
10496
  colSpan: 7,
10250
10497
  bg: OBJECT_COlORS.mantineBackgroundBlueLight,
10251
- children: /* @__PURE__ */ jsx113(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
10498
+ children: /* @__PURE__ */ jsx116(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
10252
10499
  }
10253
10500
  ) }, item.label),
10254
10501
  item.links.map(
10255
10502
  (item2, idx2) => {
10256
10503
  var _a2, _b2, _c, _d, _e, _f;
10257
- return /* @__PURE__ */ jsxs67(Table5.Tr, { children: [
10258
- /* @__PURE__ */ jsx113(Table5.Td, { children: item2.label }),
10259
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10504
+ return /* @__PURE__ */ jsxs68(Table5.Tr, { children: [
10505
+ /* @__PURE__ */ jsx116(Table5.Td, { children: item2.label }),
10506
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10260
10507
  Checkbox4,
10261
10508
  {
10262
10509
  checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
@@ -10267,7 +10514,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10267
10514
  }
10268
10515
  }
10269
10516
  ) }) }),
10270
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10517
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10271
10518
  Checkbox4,
10272
10519
  {
10273
10520
  checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
@@ -10278,7 +10525,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10278
10525
  }
10279
10526
  }
10280
10527
  ) }) }),
10281
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10528
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10282
10529
  Checkbox4,
10283
10530
  {
10284
10531
  checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
@@ -10289,7 +10536,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10289
10536
  }
10290
10537
  }
10291
10538
  ) }) }),
10292
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10539
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10293
10540
  Checkbox4,
10294
10541
  {
10295
10542
  checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
@@ -10300,7 +10547,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10300
10547
  }
10301
10548
  }
10302
10549
  ) }) }),
10303
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10550
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10304
10551
  Checkbox4,
10305
10552
  {
10306
10553
  checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
@@ -10311,7 +10558,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10311
10558
  }
10312
10559
  }
10313
10560
  ) }) }),
10314
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10561
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10315
10562
  Checkbox4,
10316
10563
  {
10317
10564
  checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
@@ -10331,7 +10578,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10331
10578
  }
10332
10579
  function useGetUserPermission2({ menuData: menuData2 }) {
10333
10580
  const store = useS_core83092();
10334
- const query = useQuery18({
10581
+ const query = useQuery19({
10335
10582
  queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
10336
10583
  queryFn: async () => {
10337
10584
  const result = await baseAxios_default.get("/Role/GetUserPermission?userId=" + store.state.roleId);
@@ -10367,72 +10614,72 @@ function useGetUserPermission2({ menuData: menuData2 }) {
10367
10614
  }
10368
10615
 
10369
10616
  // src/modules-features/admin/core/core83092/F_core83092.tsx
10370
- import { jsx as jsx114, jsxs as jsxs68 } from "react/jsx-runtime";
10617
+ import { jsx as jsx117, jsxs as jsxs69 } from "react/jsx-runtime";
10371
10618
  function F_core83092({ menuData: menuData2 }) {
10372
- return /* @__PURE__ */ jsxs68(Grid3, { grow: true, children: [
10373
- /* @__PURE__ */ jsx114(Grid3.Col, { span: 4, children: /* @__PURE__ */ jsx114(F_core83092_ReadUser, {}) }),
10374
- /* @__PURE__ */ jsx114(Grid3.Col, { span: 8, children: /* @__PURE__ */ jsxs68(MyFlexColumn, { h: "80vh", flex: 1, children: [
10375
- /* @__PURE__ */ jsx114(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx114(Paper11, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx114(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
10376
- /* @__PURE__ */ jsx114(F_core83092_Save, {})
10619
+ return /* @__PURE__ */ jsxs69(Grid4, { grow: true, children: [
10620
+ /* @__PURE__ */ jsx117(Grid4.Col, { span: 4, children: /* @__PURE__ */ jsx117(F_core83092_ReadUser, {}) }),
10621
+ /* @__PURE__ */ jsx117(Grid4.Col, { span: 8, children: /* @__PURE__ */ jsxs69(MyFlexColumn, { h: "80vh", flex: 1, children: [
10622
+ /* @__PURE__ */ jsx117(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx117(Paper12, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx117(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
10623
+ /* @__PURE__ */ jsx117(F_core83092_Save, {})
10377
10624
  ] }) })
10378
10625
  ] });
10379
10626
  }
10380
10627
 
10381
10628
  // src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
10382
10629
  import { BarChart } from "@mantine/charts";
10383
- import { Group as Group18, Paper as Paper12, Text as Text15, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
10384
- import { Fragment as Fragment13, jsx as jsx115, jsxs as jsxs69 } from "react/jsx-runtime";
10630
+ import { Group as Group18, Paper as Paper13, Text as Text15, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
10631
+ import { Fragment as Fragment13, jsx as jsx118, jsxs as jsxs70 } from "react/jsx-runtime";
10385
10632
 
10386
10633
  // src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
10387
10634
  import { BarChart as BarChart2 } from "@mantine/charts";
10388
- import { Group as Group19, Paper as Paper13, Text as Text16, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
10389
- import { Fragment as Fragment14, jsx as jsx116, jsxs as jsxs70 } from "react/jsx-runtime";
10635
+ import { Group as Group19, Paper as Paper14, Text as Text16, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
10636
+ import { Fragment as Fragment14, jsx as jsx119, jsxs as jsxs71 } from "react/jsx-runtime";
10390
10637
 
10391
10638
  // src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
10392
10639
  import { BarChart as BarChart3 } from "@mantine/charts";
10393
- import { Group as Group20, Paper as Paper14, Text as Text17, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
10394
- import { Fragment as Fragment15, jsx as jsx117, jsxs as jsxs71 } from "react/jsx-runtime";
10640
+ import { Group as Group20, Paper as Paper15, Text as Text17, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
10641
+ import { Fragment as Fragment15, jsx as jsx120, jsxs as jsxs72 } from "react/jsx-runtime";
10395
10642
 
10396
10643
  // src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
10397
10644
  import { BarChart as BarChart4 } from "@mantine/charts";
10398
- import { Group as Group21, Paper as Paper15, Text as Text18, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
10399
- import { Fragment as Fragment16, jsx as jsx118, jsxs as jsxs72 } from "react/jsx-runtime";
10645
+ import { Group as Group21, Paper as Paper16, Text as Text18, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
10646
+ import { Fragment as Fragment16, jsx as jsx121, jsxs as jsxs73 } from "react/jsx-runtime";
10400
10647
 
10401
10648
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
10402
10649
  import { BarChart as BarChart5 } from "@mantine/charts";
10403
- import { Group as Group22, Paper as Paper16, Text as Text19, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
10404
- import { jsx as jsx119, jsxs as jsxs73 } from "react/jsx-runtime";
10650
+ import { Group as Group22, Paper as Paper17, Text as Text19, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
10651
+ import { jsx as jsx122, jsxs as jsxs74 } from "react/jsx-runtime";
10405
10652
 
10406
10653
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
10407
10654
  import { BarChart as BarChart6 } from "@mantine/charts";
10408
- import { Group as Group23, Paper as Paper17, Text as Text20, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
10409
- import { jsx as jsx120, jsxs as jsxs74 } from "react/jsx-runtime";
10655
+ import { Group as Group23, Paper as Paper18, Text as Text20, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
10656
+ import { jsx as jsx123, jsxs as jsxs75 } from "react/jsx-runtime";
10410
10657
 
10411
10658
  // src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
10412
10659
  import { LineChart } from "@mantine/charts";
10413
- import { Group as Group24, Paper as Paper18, Text as Text21 } from "@mantine/core";
10414
- import { Fragment as Fragment17, jsx as jsx121, jsxs as jsxs75 } from "react/jsx-runtime";
10660
+ import { Group as Group24, Paper as Paper19, Text as Text21 } from "@mantine/core";
10661
+ import { Fragment as Fragment17, jsx as jsx124, jsxs as jsxs76 } from "react/jsx-runtime";
10415
10662
 
10416
10663
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
10417
10664
  import { LineChart as LineChart2 } from "@mantine/charts";
10418
- import { Group as Group25, Paper as Paper19, Text as Text22 } from "@mantine/core";
10419
- import { Fragment as Fragment18, jsx as jsx122, jsxs as jsxs76 } from "react/jsx-runtime";
10665
+ import { Group as Group25, Paper as Paper20, Text as Text22 } from "@mantine/core";
10666
+ import { Fragment as Fragment18, jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
10420
10667
 
10421
10668
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
10422
10669
  import { LineChart as LineChart3 } from "@mantine/charts";
10423
- import { Group as Group26, Paper as Paper20, Text as Text23 } from "@mantine/core";
10424
- import { Fragment as Fragment19, jsx as jsx123, jsxs as jsxs77 } from "react/jsx-runtime";
10670
+ import { Group as Group26, Paper as Paper21, Text as Text23 } from "@mantine/core";
10671
+ import { Fragment as Fragment19, jsx as jsx126, jsxs as jsxs78 } from "react/jsx-runtime";
10425
10672
 
10426
10673
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
10427
10674
  import { LineChart as LineChart4 } from "@mantine/charts";
10428
- import { Group as Group27, Paper as Paper21, Text as Text24 } from "@mantine/core";
10429
- import { Fragment as Fragment20, jsx as jsx124, jsxs as jsxs78 } from "react/jsx-runtime";
10675
+ import { Group as Group27, Paper as Paper22, Text as Text24 } from "@mantine/core";
10676
+ import { Fragment as Fragment20, jsx as jsx127, jsxs as jsxs79 } from "react/jsx-runtime";
10430
10677
 
10431
10678
  // src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
10432
10679
  import { Center as Center4, Progress, Space as Space8, Text as Text25 } from "@mantine/core";
10433
10680
  import { PieChart } from "@mantine/charts";
10434
10681
  import { useMemo as useMemo16 } from "react";
10435
- import { Fragment as Fragment21, jsx as jsx125, jsxs as jsxs79 } from "react/jsx-runtime";
10682
+ import { Fragment as Fragment21, jsx as jsx128, jsxs as jsxs80 } from "react/jsx-runtime";
10436
10683
  function getRandomColor(seed) {
10437
10684
  const random = Math.sin(seed) * 1e4;
10438
10685
  const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
@@ -10610,7 +10857,7 @@ function PieChart_DiscountUsedPercentage() {
10610
10857
  header: "M\xE0u",
10611
10858
  accessorKey: "color",
10612
10859
  accessorFn(originalRow) {
10613
- return /* @__PURE__ */ jsx125("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
10860
+ return /* @__PURE__ */ jsx128("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
10614
10861
  },
10615
10862
  minSize: 30,
10616
10863
  maxSize: 30
@@ -10625,7 +10872,7 @@ function PieChart_DiscountUsedPercentage() {
10625
10872
  header: "%",
10626
10873
  accessorKey: "used",
10627
10874
  accessorFn(originalRow) {
10628
- return /* @__PURE__ */ jsx125(Fragment21, { children: /* @__PURE__ */ jsx125(Center4, { children: /* @__PURE__ */ jsxs79(Text25, { children: [
10875
+ return /* @__PURE__ */ jsx128(Fragment21, { children: /* @__PURE__ */ jsx128(Center4, { children: /* @__PURE__ */ jsxs80(Text25, { children: [
10629
10876
  (originalRow.used / totalDisountCode * 100).toFixed(0),
10630
10877
  "%"
10631
10878
  ] }) }) });
@@ -10640,10 +10887,10 @@ function PieChart_DiscountUsedPercentage() {
10640
10887
  return originalRow.used;
10641
10888
  },
10642
10889
  Cell: ({ row }) => {
10643
- return /* @__PURE__ */ jsxs79(Fragment21, { children: [
10644
- /* @__PURE__ */ jsx125(Center4, { children: /* @__PURE__ */ jsxs79(Text25, { children: [
10890
+ return /* @__PURE__ */ jsxs80(Fragment21, { children: [
10891
+ /* @__PURE__ */ jsx128(Center4, { children: /* @__PURE__ */ jsxs80(Text25, { children: [
10645
10892
  "\u0110\xE3 s\u1EED d\u1EE5ng: ",
10646
- /* @__PURE__ */ jsxs79("strong", { children: [
10893
+ /* @__PURE__ */ jsxs80("strong", { children: [
10647
10894
  row.original.used,
10648
10895
  " / ",
10649
10896
  row.original.total
@@ -10652,7 +10899,7 @@ function PieChart_DiscountUsedPercentage() {
10652
10899
  (row.original.used / row.original.total * 100).toFixed(2),
10653
10900
  "%)"
10654
10901
  ] }) }),
10655
- /* @__PURE__ */ jsx125(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
10902
+ /* @__PURE__ */ jsx128(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
10656
10903
  ] });
10657
10904
  },
10658
10905
  minSize: 50,
@@ -10661,9 +10908,9 @@ function PieChart_DiscountUsedPercentage() {
10661
10908
  ],
10662
10909
  []
10663
10910
  );
10664
- return /* @__PURE__ */ jsx125(Fragment21, { children: /* @__PURE__ */ jsxs79(MyFlexColumn, { children: [
10665
- /* @__PURE__ */ jsx125(Text25, { 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" }),
10666
- /* @__PURE__ */ jsx125(Center4, { children: /* @__PURE__ */ jsx125(
10911
+ return /* @__PURE__ */ jsx128(Fragment21, { children: /* @__PURE__ */ jsxs80(MyFlexColumn, { children: [
10912
+ /* @__PURE__ */ jsx128(Text25, { 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" }),
10913
+ /* @__PURE__ */ jsx128(Center4, { children: /* @__PURE__ */ jsx128(
10667
10914
  PieChart,
10668
10915
  {
10669
10916
  startAngle: 90,
@@ -10676,8 +10923,8 @@ function PieChart_DiscountUsedPercentage() {
10676
10923
  data: data_used_discountCode
10677
10924
  }
10678
10925
  ) }),
10679
- /* @__PURE__ */ jsx125(Space8, { mt: 5 }),
10680
- /* @__PURE__ */ jsx125(
10926
+ /* @__PURE__ */ jsx128(Space8, { mt: 5 }),
10927
+ /* @__PURE__ */ jsx128(
10681
10928
  MyDataTable,
10682
10929
  {
10683
10930
  data: mockData,
@@ -10695,7 +10942,7 @@ function PieChart_DiscountUsedPercentage() {
10695
10942
  import { Center as Center5, Progress as Progress2, Space as Space9, Text as Text26 } from "@mantine/core";
10696
10943
  import { PieChart as PieChart2 } from "@mantine/charts";
10697
10944
  import { useMemo as useMemo17 } from "react";
10698
- import { Fragment as Fragment22, jsx as jsx126, jsxs as jsxs80 } from "react/jsx-runtime";
10945
+ import { Fragment as Fragment22, jsx as jsx129, jsxs as jsxs81 } from "react/jsx-runtime";
10699
10946
  function getRandomColor2(seed) {
10700
10947
  const random = Math.sin(seed) * 1e4;
10701
10948
  const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
@@ -10873,7 +11120,7 @@ function PieChart_VoucherUsedPercentage() {
10873
11120
  header: "M\xE0u",
10874
11121
  accessorKey: "color",
10875
11122
  accessorFn(originalRow) {
10876
- return /* @__PURE__ */ jsx126("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
11123
+ return /* @__PURE__ */ jsx129("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
10877
11124
  },
10878
11125
  minSize: 30,
10879
11126
  maxSize: 30
@@ -10888,7 +11135,7 @@ function PieChart_VoucherUsedPercentage() {
10888
11135
  header: "%",
10889
11136
  accessorKey: "used",
10890
11137
  accessorFn(originalRow) {
10891
- return /* @__PURE__ */ jsx126(Fragment22, { children: /* @__PURE__ */ jsx126(Center5, { children: /* @__PURE__ */ jsxs80(Text26, { children: [
11138
+ return /* @__PURE__ */ jsx129(Fragment22, { children: /* @__PURE__ */ jsx129(Center5, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
10892
11139
  (originalRow.used / totalVoucherCode * 100).toFixed(0),
10893
11140
  "%"
10894
11141
  ] }) }) });
@@ -10903,10 +11150,10 @@ function PieChart_VoucherUsedPercentage() {
10903
11150
  return originalRow.used;
10904
11151
  },
10905
11152
  Cell: ({ row }) => {
10906
- return /* @__PURE__ */ jsxs80(Fragment22, { children: [
10907
- /* @__PURE__ */ jsx126(Center5, { children: /* @__PURE__ */ jsxs80(Text26, { children: [
11153
+ return /* @__PURE__ */ jsxs81(Fragment22, { children: [
11154
+ /* @__PURE__ */ jsx129(Center5, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
10908
11155
  "\u0110\xE3 s\u1EED d\u1EE5ng: ",
10909
- /* @__PURE__ */ jsxs80("strong", { children: [
11156
+ /* @__PURE__ */ jsxs81("strong", { children: [
10910
11157
  row.original.used,
10911
11158
  " / ",
10912
11159
  row.original.total
@@ -10915,7 +11162,7 @@ function PieChart_VoucherUsedPercentage() {
10915
11162
  (row.original.used / row.original.total * 100).toFixed(2),
10916
11163
  "%)"
10917
11164
  ] }) }),
10918
- /* @__PURE__ */ jsx126(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
11165
+ /* @__PURE__ */ jsx129(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
10919
11166
  ] });
10920
11167
  },
10921
11168
  minSize: 50,
@@ -10924,9 +11171,9 @@ function PieChart_VoucherUsedPercentage() {
10924
11171
  ],
10925
11172
  []
10926
11173
  );
10927
- return /* @__PURE__ */ jsx126(Fragment22, { children: /* @__PURE__ */ jsxs80(MyFlexColumn, { children: [
10928
- /* @__PURE__ */ jsx126(Text26, { 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" }),
10929
- /* @__PURE__ */ jsx126(Center5, { children: /* @__PURE__ */ jsx126(
11174
+ return /* @__PURE__ */ jsx129(Fragment22, { children: /* @__PURE__ */ jsxs81(MyFlexColumn, { children: [
11175
+ /* @__PURE__ */ jsx129(Text26, { 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" }),
11176
+ /* @__PURE__ */ jsx129(Center5, { children: /* @__PURE__ */ jsx129(
10930
11177
  PieChart2,
10931
11178
  {
10932
11179
  startAngle: 90,
@@ -10939,8 +11186,8 @@ function PieChart_VoucherUsedPercentage() {
10939
11186
  data: data_used_discountCode2
10940
11187
  }
10941
11188
  ) }),
10942
- /* @__PURE__ */ jsx126(Space9, { mt: 5 }),
10943
- /* @__PURE__ */ jsx126(
11189
+ /* @__PURE__ */ jsx129(Space9, { mt: 5 }),
11190
+ /* @__PURE__ */ jsx129(
10944
11191
  MyDataTable,
10945
11192
  {
10946
11193
  data: mockData2,
@@ -10960,43 +11207,43 @@ import { IconLogout } from "@tabler/icons-react";
10960
11207
  import { useRouter as useRouter4 } from "next/navigation";
10961
11208
 
10962
11209
  // src/modules-features/authenticate/useS_authenticate.ts
10963
- var useStore5 = createGenericStore({
11210
+ var useStore6 = createGenericStore({
10964
11211
  initialState: { token: "" },
10965
11212
  storageKey: "useS_authenticate"
10966
11213
  });
10967
11214
  function useS_authenticate() {
10968
- const store = useStore5();
11215
+ const store = useStore6();
10969
11216
  function logOut() {
10970
11217
  }
10971
11218
  return __spreadValues({}, store);
10972
11219
  }
10973
11220
 
10974
11221
  // src/modules-features/authenticate/F_authenticate_Logout.tsx
10975
- import { jsx as jsx127 } from "react/jsx-runtime";
11222
+ import { jsx as jsx130 } from "react/jsx-runtime";
10976
11223
  function F_authenticate_Logout() {
10977
11224
  const router = useRouter4();
10978
11225
  const S_Authenticate = useS_authenticate();
10979
- return /* @__PURE__ */ jsx127(Button18, { onClick: () => {
11226
+ return /* @__PURE__ */ jsx130(Button18, { onClick: () => {
10980
11227
  S_Authenticate.setProperty("token", "");
10981
11228
  router.replace("/authenticate/login");
10982
- }, leftSection: /* @__PURE__ */ jsx127(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
11229
+ }, leftSection: /* @__PURE__ */ jsx130(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
10983
11230
  }
10984
11231
 
10985
11232
  // src/modules-features/authenticate/F_authenticate_SplashPage.tsx
10986
11233
  import { useRouter as useRouter5 } from "next/navigation";
10987
- import { useEffect as useEffect14 } from "react";
10988
- import { jsx as jsx128 } from "react/jsx-runtime";
11234
+ import { useEffect as useEffect18 } from "react";
11235
+ import { jsx as jsx131 } from "react/jsx-runtime";
10989
11236
  function F_authenticate_SplashPage() {
10990
11237
  const router = useRouter5();
10991
11238
  const S_Authenticate = useS_authenticate();
10992
- useEffect14(() => {
11239
+ useEffect18(() => {
10993
11240
  if (S_Authenticate.state.token == "") {
10994
11241
  router.push("/authenticate/login");
10995
11242
  return;
10996
11243
  }
10997
11244
  router.push("/admin/core71678");
10998
11245
  }, [S_Authenticate.state.token]);
10999
- return /* @__PURE__ */ jsx128(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
11246
+ return /* @__PURE__ */ jsx131(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
11000
11247
  }
11001
11248
 
11002
11249
  // src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
@@ -11008,14 +11255,14 @@ import {
11008
11255
  Checkbox as Checkbox5,
11009
11256
  Flex as Flex7,
11010
11257
  Group as Group28,
11011
- Paper as Paper22,
11258
+ Paper as Paper23,
11012
11259
  PasswordInput as PasswordInput2,
11013
11260
  Text as Text27,
11014
11261
  TextInput as TextInput6,
11015
11262
  Title as Title2
11016
11263
  } from "@mantine/core";
11017
- import { useForm as useForm19 } from "@mantine/form";
11018
- import { useMutation as useMutation8 } from "@tanstack/react-query";
11264
+ import { useForm as useForm20 } from "@mantine/form";
11265
+ import { useMutation as useMutation9 } from "@tanstack/react-query";
11019
11266
  import axios2 from "axios";
11020
11267
  import Link5 from "next/link";
11021
11268
  import { useRouter as useRouter6 } from "next/navigation";
@@ -11025,7 +11272,7 @@ import { useState as useState17 } from "react";
11025
11272
  var css_default3 = {};
11026
11273
 
11027
11274
  // src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
11028
- import { jsx as jsx129, jsxs as jsxs81 } from "react/jsx-runtime";
11275
+ import { jsx as jsx132, jsxs as jsxs82 } from "react/jsx-runtime";
11029
11276
  function F_authenticate_Login({
11030
11277
  loginInfo,
11031
11278
  redirectUrlAfterLogin = "/admin/dashboard",
@@ -11037,7 +11284,7 @@ function F_authenticate_Login({
11037
11284
  const authStore = useS_authenticate();
11038
11285
  const loadingState = useState17(false);
11039
11286
  const mutation = useM_Account_Sigin();
11040
- const form = useForm19({
11287
+ const form = useForm20({
11041
11288
  mode: "uncontrolled",
11042
11289
  initialValues: {
11043
11290
  username: (loginInfo == null ? void 0 : loginInfo.username) || "admincoe",
@@ -11078,21 +11325,21 @@ function F_authenticate_Login({
11078
11325
  }
11079
11326
  });
11080
11327
  }
11081
- return /* @__PURE__ */ jsx129(
11328
+ return /* @__PURE__ */ jsx132(
11082
11329
  BackgroundImage,
11083
11330
  {
11084
11331
  src: backgroundImage,
11085
11332
  h: "100vh",
11086
- children: /* @__PURE__ */ jsx129(Center6, { h: "100vh", children: /* @__PURE__ */ jsxs81(Paper22, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
11087
- /* @__PURE__ */ jsxs81(Flex7, { direction: "column", mb: "md", children: [
11088
- /* @__PURE__ */ jsx129(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
11089
- /* @__PURE__ */ jsxs81(Text27, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
11333
+ children: /* @__PURE__ */ jsx132(Center6, { h: "100vh", children: /* @__PURE__ */ jsxs82(Paper23, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
11334
+ /* @__PURE__ */ jsxs82(Flex7, { direction: "column", mb: "md", children: [
11335
+ /* @__PURE__ */ jsx132(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
11336
+ /* @__PURE__ */ jsxs82(Text27, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
11090
11337
  "B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
11091
- /* @__PURE__ */ jsx129(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
11338
+ /* @__PURE__ */ jsx132(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
11092
11339
  ] })
11093
11340
  ] }),
11094
- /* @__PURE__ */ jsx129("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs81(MyFlexColumn, { children: [
11095
- /* @__PURE__ */ jsx129(
11341
+ /* @__PURE__ */ jsx132("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs82(MyFlexColumn, { children: [
11342
+ /* @__PURE__ */ jsx132(
11096
11343
  TextInput6,
11097
11344
  __spreadProps(__spreadValues({}, form.getInputProps("username")), {
11098
11345
  label: "T\xE0i kho\u1EA3n",
@@ -11100,7 +11347,7 @@ function F_authenticate_Login({
11100
11347
  withAsterisk: true
11101
11348
  })
11102
11349
  ),
11103
- /* @__PURE__ */ jsx129(
11350
+ /* @__PURE__ */ jsx132(
11104
11351
  PasswordInput2,
11105
11352
  __spreadProps(__spreadValues({}, form.getInputProps("password")), {
11106
11353
  label: "M\u1EADt kh\u1EA9u",
@@ -11108,11 +11355,11 @@ function F_authenticate_Login({
11108
11355
  withAsterisk: true
11109
11356
  })
11110
11357
  ),
11111
- /* @__PURE__ */ jsxs81(Group28, { justify: "space-between", children: [
11112
- /* @__PURE__ */ jsx129(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
11113
- /* @__PURE__ */ jsx129(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
11358
+ /* @__PURE__ */ jsxs82(Group28, { justify: "space-between", children: [
11359
+ /* @__PURE__ */ jsx132(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
11360
+ /* @__PURE__ */ jsx132(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
11114
11361
  ] }),
11115
- /* @__PURE__ */ jsx129(
11362
+ /* @__PURE__ */ jsx132(
11116
11363
  Button19,
11117
11364
  {
11118
11365
  loading: loadingState[0],
@@ -11129,7 +11376,7 @@ function F_authenticate_Login({
11129
11376
  }
11130
11377
  function useM_Account_Sigin() {
11131
11378
  const ENDPOINT5 = process.env.NEXT_PUBLIC_API + "/Account/SignIn";
11132
- const mutation = useMutation8({
11379
+ const mutation = useMutation9({
11133
11380
  mutationFn: async (values) => {
11134
11381
  const result = await axios2.post(ENDPOINT5, values);
11135
11382
  return result.data;
@@ -11184,6 +11431,7 @@ export {
11184
11431
  MyKeyLabel,
11185
11432
  MyNumberFormatter,
11186
11433
  AQStatCard1,
11434
+ FaviconSetter,
11187
11435
  MyDateInput,
11188
11436
  MyFieldset,
11189
11437
  MyFileInput,
@@ -11230,6 +11478,8 @@ export {
11230
11478
  F_core47643_Form,
11231
11479
  F_core47643_Read,
11232
11480
  F_core47643,
11481
+ useS_core60524,
11482
+ F_core60524,
11233
11483
  F_core64229_Form,
11234
11484
  F_core64229_Delete,
11235
11485
  F_core64229_Read,