aq-fe-framework 0.1.94 → 0.1.96

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.
@@ -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,9 @@ 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
+
6758
6814
  // src/components/Inputs/Fieldset/MyFieldset.tsx
6759
6815
  import { Box as Box3, Fieldset as Fieldset4, Text as Text10 } from "@mantine/core";
6760
6816
  import { jsx as jsx49 } from "react/jsx-runtime";
@@ -6804,7 +6860,7 @@ import TextAlign from "@tiptap/extension-text-align";
6804
6860
  import Underline from "@tiptap/extension-underline";
6805
6861
  import { useEditor } from "@tiptap/react";
6806
6862
  import StarterKit from "@tiptap/starter-kit";
6807
- import { useEffect as useEffect5, useState as useState7 } from "react";
6863
+ import { useEffect as useEffect7, useState as useState7 } from "react";
6808
6864
  import { jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
6809
6865
  function MyTextEditor(_a) {
6810
6866
  var _b = _a, {
@@ -6902,7 +6958,7 @@ function MyTextEditor(_a) {
6902
6958
  }
6903
6959
  }
6904
6960
  }, rest));
6905
- useEffect5(() => {
6961
+ useEffect7(() => {
6906
6962
  if (editor && value !== editor.getHTML()) {
6907
6963
  editor.commands.setContent(value);
6908
6964
  }
@@ -7075,6 +7131,7 @@ function BasicAppShell_transformMenuToEnum(prefixProjectName, menu) {
7075
7131
  }, {});
7076
7132
  }
7077
7133
  function BasicAppShell({ children, menu }) {
7134
+ var _a, _b;
7078
7135
  const basicAppShellStore = useS_BasicAppShell();
7079
7136
  const media = useMediaQuery("(min-width: 72em)");
7080
7137
  const selectMedia = useMediaQuery("(min-width: 80em)");
@@ -7131,7 +7188,7 @@ function BasicAppShell({ children, menu }) {
7131
7188
  left: "50%",
7132
7189
  transform: "translateX(-50%)"
7133
7190
  },
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" })
7191
+ children: /* @__PURE__ */ jsx52(Text11, { c: "green", fw: "bold", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` })
7135
7192
  }
7136
7193
  ),
7137
7194
  /* @__PURE__ */ jsxs28(Group11, { children: [
@@ -7163,7 +7220,7 @@ function BasicAppShell({ children, menu }) {
7163
7220
  children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx52(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx52(IconLayoutSidebarLeftCollapse, {})
7164
7221
  }
7165
7222
  ),
7166
- /* @__PURE__ */ jsx52(Text11, { c: "green", fw: "bold", size: "sm", children: basicAppShellStore.state.moduleName }),
7223
+ /* @__PURE__ */ jsx52(Text11, { c: "green", fw: "bold", size: "sm", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` }),
7167
7224
  /* @__PURE__ */ jsxs28(Group11, { children: [
7168
7225
  /* @__PURE__ */ jsx52(
7169
7226
  Select4,
@@ -7203,7 +7260,16 @@ function BasicAppShell({ children, menu }) {
7203
7260
  ] }),
7204
7261
  /* @__PURE__ */ jsxs28(AppShell.Section, { p: "md", children: [
7205
7262
  /* @__PURE__ */ jsx52(Divider2, {}),
7206
- /* @__PURE__ */ jsx52(Image3, { src: "/imgs/0/IMG0LogoAQTech.png", h: 50, alt: "", w: "auto" })
7263
+ /* @__PURE__ */ jsx52(
7264
+ Image3,
7265
+ {
7266
+ src: `data:image/${(_a = basicAppShellStore.state.logoFileDetail) == null ? void 0 : _a.fileExtension};base64,
7267
+ ${(_b = basicAppShellStore.state.logoFileDetail) == null ? void 0 : _b.fileBase64String}`,
7268
+ h: "115px",
7269
+ alt: "",
7270
+ w: "330px"
7271
+ }
7272
+ )
7207
7273
  ] })
7208
7274
  ] }),
7209
7275
  /* @__PURE__ */ jsx52(
@@ -7499,12 +7565,12 @@ function MyDataTableSelect(_a) {
7499
7565
 
7500
7566
  // src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
7501
7567
  import { Select as Select5 } from "@mantine/core";
7502
- import { useQuery as useQuery4 } from "@tanstack/react-query";
7568
+ import { useQuery as useQuery5 } from "@tanstack/react-query";
7503
7569
  import { jsx as jsx58 } from "react/jsx-runtime";
7504
7570
  function MySelectAPIGet(_a) {
7505
7571
  var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
7506
7572
  var _a2;
7507
- const query = useQuery4({
7573
+ const query = useQuery5({
7508
7574
  queryKey: [apiGet],
7509
7575
  queryFn: async () => {
7510
7576
  return (await baseAxios_default.get(apiGet)).data;
@@ -7675,17 +7741,20 @@ function F_core12196({
7675
7741
  }
7676
7742
 
7677
7743
  // src/modules-features/admin/core/core16209/F_core16209.tsx
7678
- import { useQuery as useQuery5 } from "@tanstack/react-query";
7744
+ import { useQuery as useQuery6 } from "@tanstack/react-query";
7679
7745
  import { useMemo as useMemo4 } from "react";
7680
7746
 
7681
7747
  // src/modules-features/admin/core/core16209/F_core16209_Create.tsx
7682
- import { FileInput as FileInput4 } from "@mantine/core";
7748
+ import { FileInput as FileInput4, Textarea as Textarea2 } from "@mantine/core";
7683
7749
  import { useForm as useForm3 } from "@mantine/form";
7684
7750
  import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
7685
- function F_core16209_Create({ RefinementTypeId }) {
7751
+ function F_core16209_Create({
7752
+ RefinementTypeId
7753
+ }) {
7686
7754
  const form = useForm3({
7687
7755
  mode: "uncontrolled",
7688
7756
  validate: {
7757
+ meetingDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7689
7758
  departmentName: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7690
7759
  description: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7691
7760
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
@@ -7706,6 +7775,13 @@ function F_core16209_Create({ RefinementTypeId }) {
7706
7775
  }));
7707
7776
  },
7708
7777
  children: [
7778
+ /* @__PURE__ */ jsx63(
7779
+ MyDateInput,
7780
+ __spreadValues({
7781
+ withAsterisk: true,
7782
+ label: "Ng\xE0y h\u1ECDp"
7783
+ }, form.getInputProps("meetingDate"))
7784
+ ),
7709
7785
  /* @__PURE__ */ jsx63(
7710
7786
  MyTextInput,
7711
7787
  __spreadValues({
@@ -7720,6 +7796,7 @@ function F_core16209_Create({ RefinementTypeId }) {
7720
7796
  label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
7721
7797
  }, form.getInputProps("description"))
7722
7798
  ),
7799
+ /* @__PURE__ */ jsx63(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
7723
7800
  /* @__PURE__ */ jsx63(
7724
7801
  MyDateInput,
7725
7802
  __spreadValues({
@@ -7741,7 +7818,8 @@ function F_core16209_Create({ RefinementTypeId }) {
7741
7818
  withAsterisk: true,
7742
7819
  label: "T\xE0i li\u1EC7u"
7743
7820
  }, form.getInputProps("file"))
7744
- )
7821
+ ),
7822
+ /* @__PURE__ */ jsx63(Textarea2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
7745
7823
  ]
7746
7824
  }
7747
7825
  );
@@ -7763,7 +7841,7 @@ function F_core16209_Delete({
7763
7841
  }
7764
7842
 
7765
7843
  // src/modules-features/admin/core/core16209/F_core16209_Update.tsx
7766
- import { FileInput as FileInput5 } from "@mantine/core";
7844
+ import { FileInput as FileInput5, Textarea as Textarea3 } from "@mantine/core";
7767
7845
  import { useForm as useForm4 } from "@mantine/form";
7768
7846
  import { jsx as jsx65, jsxs as jsxs36 } from "react/jsx-runtime";
7769
7847
  function F_core16209_Update({ values }) {
@@ -7771,11 +7849,16 @@ function F_core16209_Update({ values }) {
7771
7849
  const form = useForm4({
7772
7850
  mode: "uncontrolled",
7773
7851
  initialValues: __spreadProps(__spreadValues({}, values), {
7774
- file: new File([], (_a = values.path) == null ? void 0 : _a.split("/")[values.path.split("/").length - 1]),
7852
+ file: new File(
7853
+ [],
7854
+ (_a = values.path) == null ? void 0 : _a.split("/")[values.path.split("/").length - 1]
7855
+ ),
7775
7856
  startDate: new Date(values.startDate),
7776
- endDate: new Date(values.endDate)
7857
+ endDate: new Date(values.endDate),
7858
+ meetingDate: new Date(values.meetingDate)
7777
7859
  }),
7778
7860
  validate: {
7861
+ meetingDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7779
7862
  departmentName: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7780
7863
  description: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
7781
7864
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
@@ -7783,23 +7866,70 @@ function F_core16209_Update({ values }) {
7783
7866
  endDate: (value, values2) => value && values2.startDate && new Date(value) > new Date(values2.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
7784
7867
  }
7785
7868
  });
7786
- return /* @__PURE__ */ jsxs36(MyActionIconUpdate, { form, onSubmit: async (values2) => {
7787
- return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
7788
- fileDetail: await utils_file_fileToAQDocumentType(values2.file)
7789
- }));
7790
- }, children: [
7791
- /* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ withAsterisk: true, label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u" }, form.getInputProps("departmentName"))),
7792
- /* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ withAsterisk: true, label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn" }, form.getInputProps("description"))),
7793
- /* @__PURE__ */ jsx65(MyDateInput, __spreadValues({ withAsterisk: true, label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u" }, form.getInputProps("startDate"))),
7794
- /* @__PURE__ */ jsx65(MyDateInput, __spreadValues({ withAsterisk: true, label: "Ng\xE0y k\u1EBFt th\xFAc" }, form.getInputProps("endDate"))),
7795
- /* @__PURE__ */ jsx65(FileInput5, __spreadValues({ withAsterisk: true, label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
7796
- ] });
7869
+ return /* @__PURE__ */ jsxs36(
7870
+ MyActionIconUpdate,
7871
+ {
7872
+ form,
7873
+ onSubmit: async (values2) => {
7874
+ return await baseAxios_default.post("/Document/Update", __spreadProps(__spreadValues({}, values2), {
7875
+ fileDetail: await utils_file_fileToAQDocumentType(values2.file)
7876
+ }));
7877
+ },
7878
+ children: [
7879
+ /* @__PURE__ */ jsx65(
7880
+ MyDateInput,
7881
+ __spreadValues({
7882
+ withAsterisk: true,
7883
+ label: "Ng\xE0y h\u1ECDp"
7884
+ }, form.getInputProps("meetingDate"))
7885
+ ),
7886
+ /* @__PURE__ */ jsx65(
7887
+ MyTextInput,
7888
+ __spreadValues({
7889
+ withAsterisk: true,
7890
+ label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
7891
+ }, form.getInputProps("departmentName"))
7892
+ ),
7893
+ /* @__PURE__ */ jsx65(
7894
+ MyTextInput,
7895
+ __spreadValues({
7896
+ withAsterisk: true,
7897
+ label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
7898
+ }, form.getInputProps("description"))
7899
+ ),
7900
+ /* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
7901
+ /* @__PURE__ */ jsx65(
7902
+ MyDateInput,
7903
+ __spreadValues({
7904
+ withAsterisk: true,
7905
+ label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
7906
+ }, form.getInputProps("startDate"))
7907
+ ),
7908
+ /* @__PURE__ */ jsx65(
7909
+ MyDateInput,
7910
+ __spreadValues({
7911
+ withAsterisk: true,
7912
+ label: "Ng\xE0y k\u1EBFt th\xFAc"
7913
+ }, form.getInputProps("endDate"))
7914
+ ),
7915
+ /* @__PURE__ */ jsx65(
7916
+ FileInput5,
7917
+ __spreadValues({
7918
+ placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
7919
+ withAsterisk: true,
7920
+ label: "T\xE0i li\u1EC7u"
7921
+ }, form.getInputProps("file"))
7922
+ ),
7923
+ /* @__PURE__ */ jsx65(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
7924
+ ]
7925
+ }
7926
+ );
7797
7927
  }
7798
7928
 
7799
7929
  // src/modules-features/admin/core/core16209/F_core16209.tsx
7800
7930
  import { jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
7801
7931
  function F_core16209({ RefinementTypeId }) {
7802
- const query = useQuery5({
7932
+ const query = useQuery6({
7803
7933
  queryKey: ["F_core16209_Read"],
7804
7934
  queryFn: async () => {
7805
7935
  var _a;
@@ -7864,7 +7994,7 @@ function F_core16209({ RefinementTypeId }) {
7864
7994
  import { Tabs as Tabs2 } from "@mantine/core";
7865
7995
 
7866
7996
  // src/modules-features/admin/core/core18256/F_core18256_Read.tsx
7867
- import { useQuery as useQuery6 } from "@tanstack/react-query";
7997
+ import { useQuery as useQuery7 } from "@tanstack/react-query";
7868
7998
  import { useMemo as useMemo5 } from "react";
7869
7999
 
7870
8000
  // src/modules-features/admin/core/core18256/F_core18256_Create.tsx
@@ -7915,7 +8045,7 @@ function F_core18256_Update({ values }) {
7915
8045
  // src/modules-features/admin/core/core18256/F_core18256_Read.tsx
7916
8046
  import { jsx as jsx70, jsxs as jsxs40 } from "react/jsx-runtime";
7917
8047
  function F_core18256_Read({ documentType }) {
7918
- const documentAttributeQuery = useQuery6({
8048
+ const documentAttributeQuery = useQuery7({
7919
8049
  queryKey: ["F_core18256_Read", documentType],
7920
8050
  queryFn: async () => {
7921
8051
  var _a;
@@ -7963,11 +8093,11 @@ var tabData = [
7963
8093
  { label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
7964
8094
  ];
7965
8095
  function F_core18256() {
7966
- return /* @__PURE__ */ jsx71(MyPageContent, { children: /* @__PURE__ */ jsxs41(MyTab, { tabList: tabData, children: [
8096
+ return /* @__PURE__ */ jsxs41(MyTab, { tabList: tabData, children: [
7967
8097
  /* @__PURE__ */ jsx71(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx71(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
7968
8098
  /* @__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 }) }),
7969
8099
  /* @__PURE__ */ jsx71(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx71(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
7970
- ] }) });
8100
+ ] });
7971
8101
  }
7972
8102
 
7973
8103
  // src/modules-features/admin/core/core26965/F_core26965_Create.tsx
@@ -8047,7 +8177,7 @@ function F_core26965_Create({
8047
8177
 
8048
8178
  // src/modules-features/admin/core/core26965/F_core26965_Read.tsx
8049
8179
  import { Accordion as Accordion2, Blockquote as Blockquote2 } from "@mantine/core";
8050
- import { useQuery as useQuery7 } from "@tanstack/react-query";
8180
+ import { useQuery as useQuery8 } from "@tanstack/react-query";
8051
8181
  import { useMemo as useMemo6 } from "react";
8052
8182
 
8053
8183
  // src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
@@ -8152,7 +8282,7 @@ function F_core26965_Read({
8152
8282
  RegulationsTypeId
8153
8283
  }) {
8154
8284
  var _a, _b, _c;
8155
- const documentAttributeQuery = useQuery7({
8285
+ const documentAttributeQuery = useQuery8({
8156
8286
  queryKey: ["F_core26965_Read", RegulationsTypeId],
8157
8287
  queryFn: async () => {
8158
8288
  var _a2;
@@ -8194,7 +8324,7 @@ function SubRead2({
8194
8324
  documentType,
8195
8325
  RegulationsTypeId
8196
8326
  }) {
8197
- const documentQuery = useQuery7({
8327
+ const documentQuery = useQuery8({
8198
8328
  queryKey: ["SubRead" + documentType],
8199
8329
  queryFn: async () => {
8200
8330
  const result = await baseAxios_default.get(
@@ -8344,7 +8474,7 @@ function F_core27311_Create({
8344
8474
 
8345
8475
  // src/modules-features/admin/core/core27311/F_core27311_Read.tsx
8346
8476
  import { Accordion as Accordion3, Blockquote as Blockquote3 } from "@mantine/core";
8347
- import { useQuery as useQuery8 } from "@tanstack/react-query";
8477
+ import { useQuery as useQuery9 } from "@tanstack/react-query";
8348
8478
  import { useMemo as useMemo7 } from "react";
8349
8479
 
8350
8480
  // src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
@@ -8449,7 +8579,7 @@ function F_core27311_Read({
8449
8579
  WorkflowTypeId
8450
8580
  }) {
8451
8581
  var _a, _b, _c;
8452
- const documentAttributeQuery = useQuery8({
8582
+ const documentAttributeQuery = useQuery9({
8453
8583
  queryKey: ["F_core27311_Read", WorkflowTypeId],
8454
8584
  queryFn: async () => {
8455
8585
  var _a2;
@@ -8491,7 +8621,7 @@ function SubRead3({
8491
8621
  documentType,
8492
8622
  WorkflowTypeId
8493
8623
  }) {
8494
- const documentQuery = useQuery8({
8624
+ const documentQuery = useQuery9({
8495
8625
  queryKey: ["SubRead" + documentType],
8496
8626
  queryFn: async () => {
8497
8627
  const result = await baseAxios_default.get(
@@ -8591,8 +8721,8 @@ import { Grid as Grid2, Paper as Paper10, ScrollArea as ScrollArea6 } from "@man
8591
8721
 
8592
8722
  // src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
8593
8723
  import { Container as Container4 } from "@mantine/core";
8594
- import { useQuery as useQuery9 } from "@tanstack/react-query";
8595
- import { useEffect as useEffect6, useMemo as useMemo8, useState as useState9 } from "react";
8724
+ import { useQuery as useQuery10 } from "@tanstack/react-query";
8725
+ import { useEffect as useEffect8, useMemo as useMemo8, useState as useState9 } from "react";
8596
8726
 
8597
8727
  // src/modules-features/admin/core/core83092/useS_core83092.tsx
8598
8728
  var useStore4 = createGenericStore({
@@ -8666,11 +8796,11 @@ function F_core38677_ReadUser() {
8666
8796
  setRowSelection({ [rowId]: true });
8667
8797
  store.setProperty("roleId", parseInt(rowId));
8668
8798
  };
8669
- useEffect6(() => {
8799
+ useEffect8(() => {
8670
8800
  if (store.state.roleId == 0) return;
8671
8801
  setRowSelection({ [store.state.roleId]: true });
8672
8802
  }, [store.state.roleId]);
8673
- useEffect6(() => {
8803
+ useEffect8(() => {
8674
8804
  if (!query.data) return;
8675
8805
  store.setProperty("roleId", query.data[0].id);
8676
8806
  }, [query.data]);
@@ -8697,7 +8827,7 @@ function F_core38677_ReadUser() {
8697
8827
  ) });
8698
8828
  }
8699
8829
  function useQ_Account_GetAdminAccount() {
8700
- const query = useQuery9({
8830
+ const query = useQuery10({
8701
8831
  queryKey: ["useQ_Role_GetAdminRole"],
8702
8832
  queryFn: async () => {
8703
8833
  var _a;
@@ -8711,7 +8841,7 @@ function useQ_Account_GetAdminAccount() {
8711
8841
 
8712
8842
  // src/modules-features/admin/core/core38677/F_core38677_Save.tsx
8713
8843
  import { useMutation as useMutation5 } from "@tanstack/react-query";
8714
- import { useEffect as useEffect7, useState as useState10 } from "react";
8844
+ import { useEffect as useEffect9, useState as useState10 } from "react";
8715
8845
  import { jsx as jsx84 } from "react/jsx-runtime";
8716
8846
  function F_core38677_Save() {
8717
8847
  const store = useS_core83092();
@@ -8734,7 +8864,7 @@ function F_core38677_Save() {
8734
8864
  }
8735
8865
  });
8736
8866
  }
8737
- useEffect7(() => {
8867
+ useEffect9(() => {
8738
8868
  if (!store.state.rolePermissions || store.state.rolePermissions.length == 0) {
8739
8869
  disable[1](true);
8740
8870
  return;
@@ -8769,7 +8899,8 @@ var menuData = [
8769
8899
  label: "Danh m\u1EE5c h\u1EC7 th\u1ED1ng ",
8770
8900
  links: [
8771
8901
  { name: "Document categories", label: "Danh m\u1EE5c lo\u1EA1i v\u0103n b\u1EA3n", link: "core18256" },
8772
- { pageId: 0, name: "Ch\u01B0a \u0111\u1EB7t", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "core64229", status: "Default" }
8902
+ { pageId: 0, name: "", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "core64229", status: "Default" },
8903
+ { pageId: 0, name: "", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "core60524", status: "Default" }
8773
8904
  ]
8774
8905
  }
8775
8906
  ];
@@ -8777,8 +8908,8 @@ var menuData = [
8777
8908
  // src/modules-features/admin/core/core38677/F_core38677_ViewMenuPermissions.tsx
8778
8909
  import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table as Table3, Text as Text13 } from "@mantine/core";
8779
8910
  import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
8780
- import { useQuery as useQuery10 } from "@tanstack/react-query";
8781
- import React2, { useEffect as useEffect8, useState as useState11 } from "react";
8911
+ import { useQuery as useQuery11 } from "@tanstack/react-query";
8912
+ import React2, { useEffect as useEffect10, useState as useState11 } from "react";
8782
8913
  import { jsx as jsx85, jsxs as jsxs51 } from "react/jsx-runtime";
8783
8914
  var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
8784
8915
  function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
@@ -8786,10 +8917,10 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
8786
8917
  const store = useS_core83092();
8787
8918
  const query = useGetUserPermission();
8788
8919
  const list = useState11([]);
8789
- useEffect8(() => {
8920
+ useEffect10(() => {
8790
8921
  list[1](groupToTwoLevels(menuData2));
8791
8922
  }, []);
8792
- useEffect8(() => {
8923
+ useEffect10(() => {
8793
8924
  if (!query.data) return;
8794
8925
  store.setProperty("rolePermissions", query.data);
8795
8926
  }, [query.data]);
@@ -8964,7 +9095,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
8964
9095
  }
8965
9096
  function useGetUserPermission() {
8966
9097
  const store = useS_core83092();
8967
- const query = useQuery10({
9098
+ const query = useQuery11({
8968
9099
  queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
8969
9100
  queryFn: async () => {
8970
9101
  const result = await baseAxios_default.get("/Role/GetRolePermission?roleId=" + store.state.roleId);
@@ -9012,7 +9143,7 @@ function F_core38677({ menuData: menuData2 }) {
9012
9143
  }
9013
9144
 
9014
9145
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
9015
- import { useQuery as useQuery11 } from "@tanstack/react-query";
9146
+ import { useQuery as useQuery12 } from "@tanstack/react-query";
9016
9147
  import { useMemo as useMemo9 } from "react";
9017
9148
 
9018
9149
  // src/modules-features/admin/core/core40207/F_core40207_Create.tsx
@@ -9143,7 +9274,7 @@ function F_core40207_Update({ values }) {
9143
9274
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
9144
9275
  import { jsx as jsx90, jsxs as jsxs55 } from "react/jsx-runtime";
9145
9276
  function F_core40207_Read({ GuidelineTypeId }) {
9146
- const query = useQuery11({
9277
+ const query = useQuery12({
9147
9278
  queryKey: ["F_core40207_Read"],
9148
9279
  queryFn: async () => {
9149
9280
  var _a;
@@ -9204,7 +9335,7 @@ function F_core40207({ GuidelineTypeId }) {
9204
9335
 
9205
9336
  // src/modules-features/admin/core/core47643/F_core47643_Read.tsx
9206
9337
  import { Group as Group15 } from "@mantine/core";
9207
- import { useQuery as useQuery12 } from "@tanstack/react-query";
9338
+ import { useQuery as useQuery13 } from "@tanstack/react-query";
9208
9339
  import { useMemo as useMemo10 } from "react";
9209
9340
 
9210
9341
  // src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
@@ -9272,7 +9403,7 @@ function F_core47643_Read() {
9272
9403
  );
9273
9404
  }
9274
9405
  function useQ_core47643_GetAdminRole() {
9275
- const query = useQuery12({
9406
+ const query = useQuery13({
9276
9407
  queryKey: ["useQ_core47643_GetAdminRole"],
9277
9408
  queryFn: async () => {
9278
9409
  const res = await baseAxios_default.get("/Role/GetAdminRole");
@@ -9288,6 +9419,163 @@ function F_core47643() {
9288
9419
  return /* @__PURE__ */ jsx95(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx95(F_core47643_Read, {}) });
9289
9420
  }
9290
9421
 
9422
+ // src/modules-features/admin/core/core60524/F_core60524.tsx
9423
+ import { useEffect as useEffect12 } from "react";
9424
+
9425
+ // src/modules-features/admin/core/core60524/F_core60524_Form.tsx
9426
+ import { Grid as Grid3, Paper as Paper11 } from "@mantine/core";
9427
+ import { useForm as useForm14 } from "@mantine/form";
9428
+ import { useEffect as useEffect11 } from "react";
9429
+
9430
+ // src/modules-features/admin/core/core60524/F_core60524_Save.tsx
9431
+ import { useMutation as useMutation6 } from "@tanstack/react-query";
9432
+
9433
+ // src/modules-features/admin/core/core60524/useS_core60524.ts
9434
+ var useStore5 = createGenericStore({
9435
+ initialState: {}
9436
+ });
9437
+ function useS_core60524() {
9438
+ const store = useStore5();
9439
+ return __spreadValues({}, store);
9440
+ }
9441
+
9442
+ // src/modules-features/admin/core/core60524/F_core60524_Save.tsx
9443
+ import { jsx as jsx96 } from "react/jsx-runtime";
9444
+ function F_core60524_Save({
9445
+ form
9446
+ }) {
9447
+ const store = useS_core60524();
9448
+ const mutation = useMutation6({
9449
+ mutationFn: async (body) => {
9450
+ const res = await baseAxios_default.post("/AQ/UpdateAQSetting", body);
9451
+ return res;
9452
+ }
9453
+ });
9454
+ async function handleSave() {
9455
+ var _b, _c, _d, _e;
9456
+ const _a = form.getValues(), { faviconFile, logoFile } = _a, formValues = __objRest(_a, ["faviconFile", "logoFile"]);
9457
+ mutation.mutate(__spreadProps(__spreadValues({}, formValues), {
9458
+ logoFileDetail: form.isDirty("logoFileDetail") == false ? {
9459
+ fileName: (_b = formValues.logoFileDetail) == null ? void 0 : _b.fileName,
9460
+ fileExtension: (_c = formValues.logoFileDetail) == null ? void 0 : _c.fileExtension,
9461
+ fileBase64String: ""
9462
+ } : formValues.logoFileDetail,
9463
+ faviconFileDetail: form.isDirty("faviconFileDetail") == false ? {
9464
+ fileName: (_d = formValues.faviconFileDetail) == null ? void 0 : _d.fileName,
9465
+ fileExtension: (_e = formValues.faviconFileDetail) == null ? void 0 : _e.fileExtension,
9466
+ fileBase64String: ""
9467
+ } : formValues.faviconFileDetail,
9468
+ id: store.state.AQModuleId
9469
+ }), {
9470
+ onSuccess: () => {
9471
+ utils_notification_show({
9472
+ crudType: "update"
9473
+ });
9474
+ }
9475
+ });
9476
+ }
9477
+ return /* @__PURE__ */ jsx96(
9478
+ MyButton,
9479
+ {
9480
+ disabled: !form.isDirty(),
9481
+ crudType: "save",
9482
+ onClick: handleSave
9483
+ }
9484
+ );
9485
+ }
9486
+
9487
+ // src/modules-features/admin/core/core60524/F_core60524_Form.tsx
9488
+ import { jsx as jsx97, jsxs as jsxs58 } from "react/jsx-runtime";
9489
+ function F_core60524_Form() {
9490
+ const query = useQ_AQ_GetAQModule();
9491
+ const form = useForm14({
9492
+ mode: "uncontrolled",
9493
+ validate: {
9494
+ faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
9495
+ logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
9496
+ }
9497
+ });
9498
+ useEffect11(() => {
9499
+ var _a, _b;
9500
+ if (!query.data) return;
9501
+ const values = {
9502
+ code: query.data.code || "",
9503
+ name: query.data.name || "",
9504
+ officelName: query.data.officelName || "",
9505
+ email: query.data.email || "",
9506
+ phoneNumber: query.data.phoneNumber || "",
9507
+ registrationDate: new Date(query.data.registrationDate) || /* @__PURE__ */ new Date(),
9508
+ limiteDate: new Date(query.data.limiteDate) || /* @__PURE__ */ new Date(),
9509
+ faviconPath: query.data.faviconPath || "",
9510
+ logoPath: query.data.logoPath || "",
9511
+ faviconFile: new File([], (_a = query.data.faviconFileDetail) == null ? void 0 : _a.fileName),
9512
+ logoFile: new File([], (_b = query.data.logoFileDetail) == null ? void 0 : _b.fileName),
9513
+ faviconFileDetail: query.data.faviconFileDetail,
9514
+ logoFileDetail: query.data.logoFileDetail
9515
+ };
9516
+ form.setInitialValues(values);
9517
+ form.setValues(values);
9518
+ }, [query.data]);
9519
+ return /* @__PURE__ */ jsxs58(Paper11, { p: "md", children: [
9520
+ /* @__PURE__ */ jsxs58(Grid3, { children: [
9521
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: 5, children: /* @__PURE__ */ jsx97(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
9522
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx97(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
9523
+ /* @__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" })) }),
9524
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
9525
+ /* @__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" })) }),
9526
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(
9527
+ MyDateInput,
9528
+ {
9529
+ value: form.getValues().registrationDate,
9530
+ onChange: (date) => form.setFieldValue("registrationDate", date),
9531
+ label: "Ng\xE0y \u0111\u0103ng k\xFD"
9532
+ }
9533
+ ) }),
9534
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(
9535
+ MyDateInput,
9536
+ {
9537
+ value: form.getValues().limiteDate,
9538
+ onChange: (date) => form.setFieldValue("limiteDate", date),
9539
+ label: "Ng\xE0y h\u1EBFt h\u1EA1n"
9540
+ }
9541
+ ) }),
9542
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(
9543
+ MyFileInput,
9544
+ {
9545
+ label: "Favicon (16px x 16px)",
9546
+ value: form.getValues().faviconFile,
9547
+ onChange: async (e4) => {
9548
+ form.setFieldValue("faviconFile", e4);
9549
+ form.setFieldValue("faviconFileDetail", await utils_file_fileToAQDocumentType(e4));
9550
+ }
9551
+ }
9552
+ ) }),
9553
+ /* @__PURE__ */ jsx97(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx97(
9554
+ MyFileInput,
9555
+ {
9556
+ label: "Logo (330px x 115px)",
9557
+ value: form.getValues().logoFile,
9558
+ onChange: async (e4) => {
9559
+ form.setFieldValue("logoFile", e4);
9560
+ form.setFieldValue("logoFileDetail", await utils_file_fileToAQDocumentType(e4));
9561
+ }
9562
+ }
9563
+ ) })
9564
+ ] }),
9565
+ /* @__PURE__ */ jsx97(MyFlexEnd, { children: /* @__PURE__ */ jsx97(F_core60524_Save, { form }) })
9566
+ ] });
9567
+ }
9568
+
9569
+ // src/modules-features/admin/core/core60524/F_core60524.tsx
9570
+ import { jsx as jsx98 } from "react/jsx-runtime";
9571
+ function F_core60524({ AQModuleId }) {
9572
+ const store = useS_core60524();
9573
+ useEffect12(() => {
9574
+ store.setProperty("AQModuleId", AQModuleId);
9575
+ }, []);
9576
+ return /* @__PURE__ */ jsx98(F_core60524_Form, {});
9577
+ }
9578
+
9291
9579
  // src/constants/enum/ENUM_EMAILCONFIG.ts
9292
9580
  var ENUM_EMAILCONFIG_MODULE = /* @__PURE__ */ ((ENUM_EMAILCONFIG_MODULE2) => {
9293
9581
  ENUM_EMAILCONFIG_MODULE2[ENUM_EMAILCONFIG_MODULE2["\u0110\xE0o t\u1EA1o"] = 1] = "\u0110\xE0o t\u1EA1o";
@@ -9298,15 +9586,15 @@ var ENUM_EMAILCONFIG_MODULE = /* @__PURE__ */ ((ENUM_EMAILCONFIG_MODULE2) => {
9298
9586
  })(ENUM_EMAILCONFIG_MODULE || {});
9299
9587
 
9300
9588
  // src/modules-features/admin/core/core64229/F_core64229_Read.tsx
9301
- import { useQuery as useQuery13 } from "@tanstack/react-query";
9589
+ import { useQuery as useQuery14 } from "@tanstack/react-query";
9302
9590
  import { useMemo as useMemo11 } from "react";
9303
9591
 
9304
9592
  // src/modules-features/admin/core/core64229/F_core64229_Form.tsx
9305
9593
  import { PasswordInput } from "@mantine/core";
9306
- import { useForm as useForm14 } from "@mantine/form";
9307
- import { jsx as jsx96, jsxs as jsxs58 } from "react/jsx-runtime";
9594
+ import { useForm as useForm15 } from "@mantine/form";
9595
+ import { jsx as jsx99, jsxs as jsxs59 } from "react/jsx-runtime";
9308
9596
  function F_core64229_Form({ values }) {
9309
- const form = useForm14({
9597
+ const form = useForm15({
9310
9598
  mode: "uncontrolled",
9311
9599
  initialValues: values ? values : {
9312
9600
  emailModule: 1 /* Đào tạo */
@@ -9330,27 +9618,27 @@ function F_core64229_Form({ values }) {
9330
9618
  "password": formValues.password
9331
9619
  });
9332
9620
  }
9333
- if (values) return /* @__PURE__ */ jsx96(
9621
+ if (values) return /* @__PURE__ */ jsx99(
9334
9622
  MyActionIconUpdate,
9335
9623
  {
9336
9624
  form,
9337
9625
  onSubmit: handleSubmit,
9338
- children: /* @__PURE__ */ jsx96(FormInput, { form })
9626
+ children: /* @__PURE__ */ jsx99(FormInput, { form })
9339
9627
  }
9340
9628
  );
9341
- return /* @__PURE__ */ jsx96(
9629
+ return /* @__PURE__ */ jsx99(
9342
9630
  MyButtonCreate,
9343
9631
  {
9344
9632
  form,
9345
9633
  onSubmit: handleSubmit,
9346
- children: /* @__PURE__ */ jsx96(FormInput, { form })
9634
+ children: /* @__PURE__ */ jsx99(FormInput, { form })
9347
9635
  }
9348
9636
  );
9349
9637
  }
9350
9638
  function FormInput({ form }) {
9351
9639
  var _a, _b;
9352
- return /* @__PURE__ */ jsxs58(MyFlexColumn, { children: [
9353
- /* @__PURE__ */ jsx96(
9640
+ return /* @__PURE__ */ jsxs59(MyFlexColumn, { children: [
9641
+ /* @__PURE__ */ jsx99(
9354
9642
  MySelect,
9355
9643
  __spreadProps(__spreadValues({
9356
9644
  label: "Ph\xE2n h\u1EC7",
@@ -9359,25 +9647,25 @@ function FormInput({ form }) {
9359
9647
  value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
9360
9648
  })
9361
9649
  ),
9362
- /* @__PURE__ */ jsx96(
9650
+ /* @__PURE__ */ jsx99(
9363
9651
  MyTextInput,
9364
9652
  __spreadValues({
9365
9653
  label: "Host mail server"
9366
9654
  }, form.getInputProps("hostMailServer"))
9367
9655
  ),
9368
- /* @__PURE__ */ jsx96(
9656
+ /* @__PURE__ */ jsx99(
9369
9657
  MyNumberInput,
9370
9658
  __spreadValues({
9371
9659
  label: "Outgoing port"
9372
9660
  }, form.getInputProps("outgoingPort"))
9373
9661
  ),
9374
- /* @__PURE__ */ jsx96(
9662
+ /* @__PURE__ */ jsx99(
9375
9663
  MyNumberInput,
9376
9664
  __spreadValues({
9377
9665
  label: "Incoming port"
9378
9666
  }, form.getInputProps("incomingPort"))
9379
9667
  ),
9380
- /* @__PURE__ */ jsx96(
9668
+ /* @__PURE__ */ jsx99(
9381
9669
  MySelect,
9382
9670
  {
9383
9671
  label: "SSL",
@@ -9386,13 +9674,13 @@ function FormInput({ form }) {
9386
9674
  onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
9387
9675
  }
9388
9676
  ),
9389
- /* @__PURE__ */ jsx96(
9677
+ /* @__PURE__ */ jsx99(
9390
9678
  MyTextInput,
9391
9679
  __spreadValues({
9392
9680
  label: "Username"
9393
9681
  }, form.getInputProps("userName"))
9394
9682
  ),
9395
- /* @__PURE__ */ jsx96(
9683
+ /* @__PURE__ */ jsx99(
9396
9684
  PasswordInput,
9397
9685
  __spreadValues({
9398
9686
  label: "Password",
@@ -9403,9 +9691,9 @@ function FormInput({ form }) {
9403
9691
  }
9404
9692
 
9405
9693
  // src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
9406
- import { jsx as jsx97 } from "react/jsx-runtime";
9694
+ import { jsx as jsx100 } from "react/jsx-runtime";
9407
9695
  function F_core64229_Delete({ values }) {
9408
- return /* @__PURE__ */ jsx97(
9696
+ return /* @__PURE__ */ jsx100(
9409
9697
  MyActionIconDelete,
9410
9698
  {
9411
9699
  contextData: values == null ? void 0 : values.code,
@@ -9419,9 +9707,9 @@ function F_core64229_Delete({ values }) {
9419
9707
  }
9420
9708
 
9421
9709
  // src/modules-features/admin/core/core64229/F_core64229_Read.tsx
9422
- import { jsx as jsx98, jsxs as jsxs59 } from "react/jsx-runtime";
9710
+ import { jsx as jsx101, jsxs as jsxs60 } from "react/jsx-runtime";
9423
9711
  function F_core64229_Read() {
9424
- const query = useQuery13({
9712
+ const query = useQuery14({
9425
9713
  queryKey: ["F_core64229_Read"],
9426
9714
  queryFn: async () => {
9427
9715
  const res = await baseAxios_default.get("/EmailConfig/GetAll");
@@ -9464,52 +9752,52 @@ function F_core64229_Read() {
9464
9752
  }
9465
9753
  ], []);
9466
9754
  if (query.isLoading) return "\u0110ang t\u1EA3i";
9467
- return /* @__PURE__ */ jsx98(
9755
+ return /* @__PURE__ */ jsx101(
9468
9756
  MyDataTable,
9469
9757
  {
9470
9758
  columns,
9471
9759
  data: query.data,
9472
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx98(F_core64229_Form, {}),
9473
- renderRowActions: ({ row }) => /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
9474
- /* @__PURE__ */ jsx98(F_core64229_Form, { values: row.original }),
9475
- /* @__PURE__ */ jsx98(F_core64229_Delete, { values: row.original })
9760
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx101(F_core64229_Form, {}),
9761
+ renderRowActions: ({ row }) => /* @__PURE__ */ jsxs60(MyCenterFull, { children: [
9762
+ /* @__PURE__ */ jsx101(F_core64229_Form, { values: row.original }),
9763
+ /* @__PURE__ */ jsx101(F_core64229_Delete, { values: row.original })
9476
9764
  ] })
9477
9765
  }
9478
9766
  );
9479
9767
  }
9480
9768
 
9481
9769
  // src/modules-features/admin/core/core64229/F_core64229.tsx
9482
- import { jsx as jsx99 } from "react/jsx-runtime";
9770
+ import { jsx as jsx102 } from "react/jsx-runtime";
9483
9771
  function F_core64229() {
9484
- return /* @__PURE__ */ jsx99(MyPageContent, { children: /* @__PURE__ */ jsx99(F_core64229_Read, {}) });
9772
+ return /* @__PURE__ */ jsx102(F_core64229_Read, {});
9485
9773
  }
9486
9774
 
9487
9775
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
9488
9776
  import { Button as Button17, Group as Group17 } from "@mantine/core";
9489
9777
  import { IconShield } from "@tabler/icons-react";
9490
- import { useQuery as useQuery15 } from "@tanstack/react-query";
9778
+ import { useQuery as useQuery16 } from "@tanstack/react-query";
9491
9779
  import { useRouter as useRouter3 } from "next/navigation";
9492
9780
  import { useMemo as useMemo13, useState as useState13 } from "react";
9493
9781
 
9494
9782
  // src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
9495
9783
  import { Button as Button16, Fieldset as Fieldset6, Group as Group16, Table as Table4 } from "@mantine/core";
9496
9784
  import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
9497
- import { useMutation as useMutation6, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
9498
- import { useEffect as useEffect9, useMemo as useMemo12, useState as useState12 } from "react";
9499
- import { jsx as jsx100, jsxs as jsxs60 } from "react/jsx-runtime";
9785
+ import { useMutation as useMutation7, useQuery as useQuery15, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
9786
+ import { useEffect as useEffect13, useMemo as useMemo12, useState as useState12 } from "react";
9787
+ import { jsx as jsx103, jsxs as jsxs61 } from "react/jsx-runtime";
9500
9788
  function F_core71678_ChangePermission({ user }) {
9501
9789
  const disc = useDisclosure12();
9502
9790
  const queryClient = useQueryClient5();
9503
9791
  const [rowSelection, setRowSelection] = useState12({});
9504
9792
  const rowSelect = useState12();
9505
- const query = useQuery14({
9793
+ const query = useQuery15({
9506
9794
  queryKey: [`F1_1ChangePermission`],
9507
9795
  queryFn: async () => {
9508
9796
  const response = await baseAxios_default.get("/Role/GetAdminRole");
9509
9797
  return response.data.data;
9510
9798
  }
9511
9799
  });
9512
- const mutation = useMutation6({
9800
+ const mutation = useMutation7({
9513
9801
  mutationFn: async (roleIds) => {
9514
9802
  const res = await baseAxios_default.post("/Role/AddUser?userId=" + user.id, roleIds);
9515
9803
  return res;
@@ -9533,7 +9821,7 @@ function F_core71678_ChangePermission({ user }) {
9533
9821
  }
9534
9822
  });
9535
9823
  }
9536
- useEffect9(() => {
9824
+ useEffect13(() => {
9537
9825
  var _a;
9538
9826
  const result = (_a = user.roles) == null ? void 0 : _a.reduce((acc, item) => {
9539
9827
  if (item.id !== void 0) {
@@ -9543,32 +9831,32 @@ function F_core71678_ChangePermission({ user }) {
9543
9831
  }, {});
9544
9832
  setRowSelection(result);
9545
9833
  }, []);
9546
- 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: [
9547
- /* @__PURE__ */ jsx100(
9834
+ 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: [
9835
+ /* @__PURE__ */ jsx103(
9548
9836
  Table4,
9549
9837
  {
9550
9838
  w: "100%",
9551
9839
  variant: "vertical",
9552
9840
  layout: "fixed",
9553
- children: /* @__PURE__ */ jsxs60(Table4.Tbody, { children: [
9554
- /* @__PURE__ */ jsxs60(Table4.Tr, { children: [
9555
- /* @__PURE__ */ jsx100(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
9556
- /* @__PURE__ */ jsx100(Table4.Td, { children: user.fullName })
9841
+ children: /* @__PURE__ */ jsxs61(Table4.Tbody, { children: [
9842
+ /* @__PURE__ */ jsxs61(Table4.Tr, { children: [
9843
+ /* @__PURE__ */ jsx103(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
9844
+ /* @__PURE__ */ jsx103(Table4.Td, { children: user.fullName })
9557
9845
  ] }),
9558
- /* @__PURE__ */ jsxs60(Table4.Tr, { children: [
9559
- /* @__PURE__ */ jsx100(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
9560
- /* @__PURE__ */ jsx100(Table4.Td, { children: user.userName })
9846
+ /* @__PURE__ */ jsxs61(Table4.Tr, { children: [
9847
+ /* @__PURE__ */ jsx103(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
9848
+ /* @__PURE__ */ jsx103(Table4.Td, { children: user.userName })
9561
9849
  ] }),
9562
- /* @__PURE__ */ jsxs60(Table4.Tr, { children: [
9563
- /* @__PURE__ */ jsx100(Table4.Th, { children: "Email:" }),
9564
- /* @__PURE__ */ jsx100(Table4.Td, { children: user.email })
9850
+ /* @__PURE__ */ jsxs61(Table4.Tr, { children: [
9851
+ /* @__PURE__ */ jsx103(Table4.Th, { children: "Email:" }),
9852
+ /* @__PURE__ */ jsx103(Table4.Td, { children: user.email })
9565
9853
  ] })
9566
9854
  ] })
9567
9855
  }
9568
9856
  ),
9569
9857
  query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
9570
9858
  query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
9571
- /* @__PURE__ */ jsx100(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx100(
9859
+ /* @__PURE__ */ jsx103(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx103(
9572
9860
  MyDataTable,
9573
9861
  {
9574
9862
  enableRowSelection: true,
@@ -9592,16 +9880,16 @@ function F_core71678_ChangePermission({ user }) {
9592
9880
  data: query.data
9593
9881
  }
9594
9882
  ) }),
9595
- /* @__PURE__ */ jsx100(Group16, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx100(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
9883
+ /* @__PURE__ */ jsx103(Group16, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx103(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
9596
9884
  ] });
9597
9885
  }
9598
9886
 
9599
9887
  // src/modules-features/admin/core/core71678/F_core71678_Create.tsx
9600
- import { useForm as useForm15 } from "@mantine/form";
9601
- import { jsx as jsx101, jsxs as jsxs61 } from "react/jsx-runtime";
9888
+ import { useForm as useForm16 } from "@mantine/form";
9889
+ import { jsx as jsx104, jsxs as jsxs62 } from "react/jsx-runtime";
9602
9890
  var ENDPOINT2 = "/Account/create";
9603
9891
  function F_core71678_Create() {
9604
- const form = useForm15({
9892
+ const form = useForm16({
9605
9893
  initialValues: {
9606
9894
  fullName: "",
9607
9895
  code: "",
@@ -9626,21 +9914,21 @@ function F_core71678_Create() {
9626
9914
  AQModuleId: 1002
9627
9915
  }));
9628
9916
  }
9629
- return /* @__PURE__ */ jsxs61(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
9630
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
9631
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
9632
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
9633
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
9634
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
9635
- /* @__PURE__ */ jsx101(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
9917
+ return /* @__PURE__ */ jsxs62(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
9918
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
9919
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
9920
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
9921
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
9922
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
9923
+ /* @__PURE__ */ jsx104(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
9636
9924
  ] });
9637
9925
  }
9638
9926
 
9639
9927
  // src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
9640
- import { jsx as jsx102 } from "react/jsx-runtime";
9928
+ import { jsx as jsx105 } from "react/jsx-runtime";
9641
9929
  var ENDPOINT3 = "/Account/delete";
9642
9930
  function F_core71678_Delete({ id, code }) {
9643
- return /* @__PURE__ */ jsx102(
9931
+ return /* @__PURE__ */ jsx105(
9644
9932
  MyActionIconDelete,
9645
9933
  {
9646
9934
  contextData: code,
@@ -9650,17 +9938,17 @@ function F_core71678_Delete({ id, code }) {
9650
9938
  }
9651
9939
 
9652
9940
  // src/modules-features/admin/core/core71678/F_core71678_Update.tsx
9653
- import { useForm as useForm16 } from "@mantine/form";
9654
- import { useEffect as useEffect10 } from "react";
9655
- import { jsx as jsx103, jsxs as jsxs62 } from "react/jsx-runtime";
9941
+ import { useForm as useForm17 } from "@mantine/form";
9942
+ import { useEffect as useEffect14 } from "react";
9943
+ import { jsx as jsx106, jsxs as jsxs63 } from "react/jsx-runtime";
9656
9944
  function F_core71678_Update({ user }) {
9657
- const form = useForm16({
9945
+ const form = useForm17({
9658
9946
  initialValues: user
9659
9947
  });
9660
- useEffect10(() => {
9948
+ useEffect14(() => {
9661
9949
  console.log(form.values);
9662
9950
  }, [form.values]);
9663
- return /* @__PURE__ */ jsx103(MyActionIconUpdate, { form, onSubmit: async (values) => {
9951
+ return /* @__PURE__ */ jsx106(MyActionIconUpdate, { form, onSubmit: async (values) => {
9664
9952
  return await baseAxios_default.post(
9665
9953
  "/Account/update",
9666
9954
  __spreadProps(__spreadValues({}, values), {
@@ -9672,22 +9960,22 @@ function F_core71678_Update({ user }) {
9672
9960
  workingUnitId: null
9673
9961
  })
9674
9962
  );
9675
- }, children: /* @__PURE__ */ jsxs62(MyFlexColumn, { children: [
9676
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
9677
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
9678
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
9679
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
9680
- /* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
9963
+ }, children: /* @__PURE__ */ jsxs63(MyFlexColumn, { children: [
9964
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
9965
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
9966
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
9967
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
9968
+ /* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
9681
9969
  ] }) });
9682
9970
  }
9683
9971
 
9684
9972
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
9685
- import { jsx as jsx104, jsxs as jsxs63 } from "react/jsx-runtime";
9973
+ import { jsx as jsx107, jsxs as jsxs64 } from "react/jsx-runtime";
9686
9974
  var ENDPOINT4 = "/Account/GetAdminAccount";
9687
9975
  function F_core71678_Read() {
9688
9976
  const router = useRouter3();
9689
9977
  const [rowSelection, setRowSelection] = useState13({});
9690
- const AllUserQuery = useQuery15({
9978
+ const AllUserQuery = useQuery16({
9691
9979
  queryKey: ["F_core71678_Read"],
9692
9980
  queryFn: async () => {
9693
9981
  var _a;
@@ -9714,25 +10002,25 @@ function F_core71678_Read() {
9714
10002
  },
9715
10003
  {
9716
10004
  header: "Quy\u1EC1n",
9717
- accessorFn: (row) => /* @__PURE__ */ jsx104(F_core71678_ChangePermission, { user: row })
10005
+ accessorFn: (row) => /* @__PURE__ */ jsx107(F_core71678_ChangePermission, { user: row })
9718
10006
  }
9719
10007
  ],
9720
10008
  []
9721
10009
  );
9722
10010
  if (AllUserQuery.isLoading) return "Loading...";
9723
- return /* @__PURE__ */ jsx104(
10011
+ return /* @__PURE__ */ jsx107(
9724
10012
  MyDataTable,
9725
10013
  {
9726
10014
  columns,
9727
10015
  data: AllUserQuery.data,
9728
10016
  renderTopToolbarCustomActions: () => {
9729
- return /* @__PURE__ */ jsxs63(Group17, { children: [
9730
- /* @__PURE__ */ jsx104(F_core71678_Create, {}),
9731
- /* @__PURE__ */ jsx104(
10017
+ return /* @__PURE__ */ jsxs64(Group17, { children: [
10018
+ /* @__PURE__ */ jsx107(F_core71678_Create, {}),
10019
+ /* @__PURE__ */ jsx107(
9732
10020
  Button17,
9733
10021
  {
9734
10022
  color: "violet",
9735
- leftSection: /* @__PURE__ */ jsx104(IconShield, {}),
10023
+ leftSection: /* @__PURE__ */ jsx107(IconShield, {}),
9736
10024
  onClick: () => {
9737
10025
  router.push("core47643");
9738
10026
  },
@@ -9742,9 +10030,9 @@ function F_core71678_Read() {
9742
10030
  ] });
9743
10031
  },
9744
10032
  renderRowActions: ({ row }) => {
9745
- return /* @__PURE__ */ jsxs63(MyCenterFull, { children: [
9746
- /* @__PURE__ */ jsx104(F_core71678_Update, { user: row.original }),
9747
- /* @__PURE__ */ jsx104(F_core71678_Delete, { id: row.original.id, code: row.original.code })
10033
+ return /* @__PURE__ */ jsxs64(MyCenterFull, { children: [
10034
+ /* @__PURE__ */ jsx107(F_core71678_Update, { user: row.original }),
10035
+ /* @__PURE__ */ jsx107(F_core71678_Delete, { id: row.original.id, code: row.original.code })
9748
10036
  ] });
9749
10037
  }
9750
10038
  }
@@ -9752,21 +10040,21 @@ function F_core71678_Read() {
9752
10040
  }
9753
10041
 
9754
10042
  // src/modules-features/admin/core/core71678/F_core71678.tsx
9755
- import { jsx as jsx105 } from "react/jsx-runtime";
10043
+ import { jsx as jsx108 } from "react/jsx-runtime";
9756
10044
  function F_core71678() {
9757
- return /* @__PURE__ */ jsx105(F_core71678_Read, {});
10045
+ return /* @__PURE__ */ jsx108(F_core71678_Read, {});
9758
10046
  }
9759
10047
 
9760
10048
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
9761
- import { useQuery as useQuery16 } from "@tanstack/react-query";
10049
+ import { useQuery as useQuery17 } from "@tanstack/react-query";
9762
10050
  import { useMemo as useMemo14 } from "react";
9763
10051
 
9764
10052
  // src/modules-features/admin/core/core76318/F_core76318_Create.tsx
9765
10053
  import { FileInput as FileInput8 } from "@mantine/core";
9766
- import { useForm as useForm17 } from "@mantine/form";
9767
- import { jsx as jsx106, jsxs as jsxs64 } from "react/jsx-runtime";
10054
+ import { useForm as useForm18 } from "@mantine/form";
10055
+ import { jsx as jsx109, jsxs as jsxs65 } from "react/jsx-runtime";
9768
10056
  function F_core76318_Create({ SecurityTypeId }) {
9769
- const form = useForm17({
10057
+ const form = useForm18({
9770
10058
  mode: "uncontrolled",
9771
10059
  validate: {
9772
10060
  decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
@@ -9775,7 +10063,7 @@ function F_core76318_Create({ SecurityTypeId }) {
9775
10063
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
9776
10064
  }
9777
10065
  });
9778
- return /* @__PURE__ */ jsxs64(
10066
+ return /* @__PURE__ */ jsxs65(
9779
10067
  MyButtonCreate,
9780
10068
  {
9781
10069
  objectName: "v\u0103n b\u1EA3n",
@@ -9788,28 +10076,28 @@ function F_core76318_Create({ SecurityTypeId }) {
9788
10076
  }));
9789
10077
  },
9790
10078
  children: [
9791
- /* @__PURE__ */ jsx106(
10079
+ /* @__PURE__ */ jsx109(
9792
10080
  MyTextInput,
9793
10081
  __spreadValues({
9794
10082
  withAsterisk: true,
9795
10083
  label: "S\u1ED1 quy \u0111\u1ECBnh"
9796
10084
  }, form.getInputProps("decisionCode"))
9797
10085
  ),
9798
- /* @__PURE__ */ jsx106(
10086
+ /* @__PURE__ */ jsx109(
9799
10087
  MyDateInput,
9800
10088
  __spreadValues({
9801
10089
  withAsterisk: true,
9802
10090
  label: "Ng\xE0y ban h\xE0nh"
9803
10091
  }, form.getInputProps("promulgateDate"))
9804
10092
  ),
9805
- /* @__PURE__ */ jsx106(
10093
+ /* @__PURE__ */ jsx109(
9806
10094
  MyTextInput,
9807
10095
  __spreadValues({
9808
10096
  withAsterisk: true,
9809
10097
  label: "T\xEAn t\xE0i li\u1EC7u"
9810
10098
  }, form.getInputProps("name"))
9811
10099
  ),
9812
- /* @__PURE__ */ jsx106(
10100
+ /* @__PURE__ */ jsx109(
9813
10101
  FileInput8,
9814
10102
  __spreadValues({
9815
10103
  withAsterisk: true,
@@ -9823,12 +10111,12 @@ function F_core76318_Create({ SecurityTypeId }) {
9823
10111
  }
9824
10112
 
9825
10113
  // src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
9826
- import { jsx as jsx107 } from "react/jsx-runtime";
10114
+ import { jsx as jsx110 } from "react/jsx-runtime";
9827
10115
  function F_core76318_Delete({
9828
10116
  id,
9829
10117
  contextData
9830
10118
  }) {
9831
- return /* @__PURE__ */ jsx107(
10119
+ return /* @__PURE__ */ jsx110(
9832
10120
  MyActionIconDelete,
9833
10121
  {
9834
10122
  contextData,
@@ -9839,11 +10127,11 @@ function F_core76318_Delete({
9839
10127
 
9840
10128
  // src/modules-features/admin/core/core76318/F_core76318_Update.tsx
9841
10129
  import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
9842
- import { useForm as useForm18 } from "@mantine/form";
9843
- import { jsx as jsx108, jsxs as jsxs65 } from "react/jsx-runtime";
10130
+ import { useForm as useForm19 } from "@mantine/form";
10131
+ import { jsx as jsx111, jsxs as jsxs66 } from "react/jsx-runtime";
9844
10132
  function F_core76318_Update({ values }) {
9845
10133
  var _a;
9846
- const form = useForm18({
10134
+ const form = useForm19({
9847
10135
  mode: "uncontrolled",
9848
10136
  initialValues: __spreadProps(__spreadValues({}, values), {
9849
10137
  file: new File(
@@ -9859,7 +10147,7 @@ function F_core76318_Update({ values }) {
9859
10147
  file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
9860
10148
  }
9861
10149
  });
9862
- return /* @__PURE__ */ jsxs65(
10150
+ return /* @__PURE__ */ jsxs66(
9863
10151
  MyActionIconUpdate,
9864
10152
  {
9865
10153
  form,
@@ -9869,28 +10157,28 @@ function F_core76318_Update({ values }) {
9869
10157
  }));
9870
10158
  },
9871
10159
  children: [
9872
- /* @__PURE__ */ jsx108(
10160
+ /* @__PURE__ */ jsx111(
9873
10161
  TextInput5,
9874
10162
  __spreadValues({
9875
10163
  withAsterisk: true,
9876
10164
  label: "S\u1ED1 quy \u0111\u1ECBnh"
9877
10165
  }, form.getInputProps("decisionCode"))
9878
10166
  ),
9879
- /* @__PURE__ */ jsx108(
10167
+ /* @__PURE__ */ jsx111(
9880
10168
  MyDateInput,
9881
10169
  __spreadValues({
9882
10170
  withAsterisk: true,
9883
10171
  label: "Ng\xE0y ban h\xE0nh"
9884
10172
  }, form.getInputProps("promulgateDate"))
9885
10173
  ),
9886
- /* @__PURE__ */ jsx108(
10174
+ /* @__PURE__ */ jsx111(
9887
10175
  TextInput5,
9888
10176
  __spreadValues({
9889
10177
  withAsterisk: true,
9890
10178
  label: "T\xEAn t\xE0i li\u1EC7u"
9891
10179
  }, form.getInputProps("name"))
9892
10180
  ),
9893
- /* @__PURE__ */ jsx108(
10181
+ /* @__PURE__ */ jsx111(
9894
10182
  FileInput9,
9895
10183
  __spreadValues({
9896
10184
  withAsterisk: true,
@@ -9903,9 +10191,9 @@ function F_core76318_Update({ values }) {
9903
10191
  }
9904
10192
 
9905
10193
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
9906
- import { jsx as jsx109, jsxs as jsxs66 } from "react/jsx-runtime";
10194
+ import { jsx as jsx112, jsxs as jsxs67 } from "react/jsx-runtime";
9907
10195
  function F_core76318_Read({ SecurityTypeId }) {
9908
- const query = useQuery16({
10196
+ const query = useQuery17({
9909
10197
  queryKey: ["F_core76318_Read"],
9910
10198
  queryFn: async () => {
9911
10199
  var _a;
@@ -9932,7 +10220,7 @@ function F_core76318_Read({ SecurityTypeId }) {
9932
10220
  {
9933
10221
  header: "File",
9934
10222
  accessorFn: (row) => {
9935
- return /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(MyButtonViewPDF, { id: row.id }) });
10223
+ return /* @__PURE__ */ jsx112(MyCenterFull, { children: /* @__PURE__ */ jsx112(MyButtonViewPDF, { id: row.id }) });
9936
10224
  }
9937
10225
  }
9938
10226
  ],
@@ -9940,17 +10228,17 @@ function F_core76318_Read({ SecurityTypeId }) {
9940
10228
  );
9941
10229
  if (query.isLoading) return "Loading...";
9942
10230
  if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
9943
- return /* @__PURE__ */ jsx109(
10231
+ return /* @__PURE__ */ jsx112(
9944
10232
  MyDataTable,
9945
10233
  {
9946
10234
  columns,
9947
10235
  data: query.data,
9948
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx109(F_core76318_Create, { SecurityTypeId }),
10236
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx112(F_core76318_Create, { SecurityTypeId }),
9949
10237
  renderRowActions: ({ row }) => {
9950
10238
  var _a;
9951
- return /* @__PURE__ */ jsxs66(MyCenterFull, { children: [
9952
- /* @__PURE__ */ jsx109(F_core76318_Update, { values: row.original }),
9953
- /* @__PURE__ */ jsx109(
10239
+ return /* @__PURE__ */ jsxs67(MyCenterFull, { children: [
10240
+ /* @__PURE__ */ jsx112(F_core76318_Update, { values: row.original }),
10241
+ /* @__PURE__ */ jsx112(
9954
10242
  F_core76318_Delete,
9955
10243
  {
9956
10244
  id: row.original.id,
@@ -9964,19 +10252,19 @@ function F_core76318_Read({ SecurityTypeId }) {
9964
10252
  }
9965
10253
 
9966
10254
  // src/modules-features/admin/core/core76318/F_core76318.tsx
9967
- import { jsx as jsx110 } from "react/jsx-runtime";
10255
+ import { jsx as jsx113 } from "react/jsx-runtime";
9968
10256
  function F_core76318({ SecurityTypeId }) {
9969
- return /* @__PURE__ */ jsx110(F_core76318_Read, { SecurityTypeId });
10257
+ return /* @__PURE__ */ jsx113(F_core76318_Read, { SecurityTypeId });
9970
10258
  }
9971
10259
 
9972
10260
  // src/modules-features/admin/core/core83092/F_core83092.tsx
9973
- import { Grid as Grid3, Paper as Paper11, ScrollArea as ScrollArea8 } from "@mantine/core";
10261
+ import { Grid as Grid4, Paper as Paper12, ScrollArea as ScrollArea8 } from "@mantine/core";
9974
10262
 
9975
10263
  // src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
9976
10264
  import { Container as Container5 } from "@mantine/core";
9977
- import { useQuery as useQuery17 } from "@tanstack/react-query";
9978
- import { useEffect as useEffect11, useMemo as useMemo15, useState as useState14 } from "react";
9979
- import { jsx as jsx111 } from "react/jsx-runtime";
10265
+ import { useQuery as useQuery18 } from "@tanstack/react-query";
10266
+ import { useEffect as useEffect15, useMemo as useMemo15, useState as useState14 } from "react";
10267
+ import { jsx as jsx114 } from "react/jsx-runtime";
9980
10268
  function F_core83092_ReadUser() {
9981
10269
  const store = useS_core83092();
9982
10270
  const query = useQ_core83092_Account_GetAdminAccount();
@@ -9999,17 +10287,17 @@ function F_core83092_ReadUser() {
9999
10287
  setRowSelection({ [rowId]: true });
10000
10288
  store.setProperty("roleId", parseInt(rowId));
10001
10289
  };
10002
- useEffect11(() => {
10290
+ useEffect15(() => {
10003
10291
  if (store.state.roleId == 0) return;
10004
10292
  setRowSelection({ [store.state.roleId]: true });
10005
10293
  }, [store.state.roleId]);
10006
- useEffect11(() => {
10294
+ useEffect15(() => {
10007
10295
  if (!query.data) return;
10008
10296
  store.setProperty("roleId", query.data[0].id);
10009
10297
  }, [query.data]);
10010
10298
  if (query.isLoading) return "Loading...";
10011
10299
  if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
10012
- return /* @__PURE__ */ jsx111(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx111(
10300
+ return /* @__PURE__ */ jsx114(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx114(
10013
10301
  MyDataTable,
10014
10302
  {
10015
10303
  columns,
@@ -10030,7 +10318,7 @@ function F_core83092_ReadUser() {
10030
10318
  ) });
10031
10319
  }
10032
10320
  function useQ_core83092_Account_GetAdminAccount() {
10033
- const query = useQuery17({
10321
+ const query = useQuery18({
10034
10322
  queryKey: ["useQ_core83092_Account_GetAdminAccount"],
10035
10323
  queryFn: async () => {
10036
10324
  var _a;
@@ -10043,13 +10331,13 @@ function useQ_core83092_Account_GetAdminAccount() {
10043
10331
  }
10044
10332
 
10045
10333
  // src/modules-features/admin/core/core83092/F_core83092_Save.tsx
10046
- import { useMutation as useMutation7 } from "@tanstack/react-query";
10047
- import { useEffect as useEffect12, useState as useState15 } from "react";
10048
- import { jsx as jsx112 } from "react/jsx-runtime";
10334
+ import { useMutation as useMutation8 } from "@tanstack/react-query";
10335
+ import { useEffect as useEffect16, useState as useState15 } from "react";
10336
+ import { jsx as jsx115 } from "react/jsx-runtime";
10049
10337
  function F_core83092_Save() {
10050
10338
  const store = useS_core83092();
10051
10339
  const disable = useState15(false);
10052
- const mutation = useMutation7({
10340
+ const mutation = useMutation8({
10053
10341
  mutationFn: async (body) => {
10054
10342
  const res = await baseAxios_default.put("/Role/UpdateUserPermission", body);
10055
10343
  return res;
@@ -10067,38 +10355,38 @@ function F_core83092_Save() {
10067
10355
  }
10068
10356
  });
10069
10357
  }
10070
- useEffect12(() => {
10358
+ useEffect16(() => {
10071
10359
  if (!store.state.rolePermissions || store.state.rolePermissions.length == 0) {
10072
10360
  disable[1](true);
10073
10361
  return;
10074
10362
  }
10075
10363
  disable[1](false);
10076
10364
  }, [store.state.rolePermissions]);
10077
- return /* @__PURE__ */ jsx112(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
10365
+ return /* @__PURE__ */ jsx115(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
10078
10366
  }
10079
10367
 
10080
10368
  // src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
10081
10369
  import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table as Table5, Text as Text14 } from "@mantine/core";
10082
10370
  import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
10083
- import { useQuery as useQuery18 } from "@tanstack/react-query";
10084
- import React4, { useEffect as useEffect13, useState as useState16 } from "react";
10085
- import { jsx as jsx113, jsxs as jsxs67 } from "react/jsx-runtime";
10371
+ import { useQuery as useQuery19 } from "@tanstack/react-query";
10372
+ import React4, { useEffect as useEffect17, useState as useState16 } from "react";
10373
+ import { jsx as jsx116, jsxs as jsxs68 } from "react/jsx-runtime";
10086
10374
  var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
10087
10375
  function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10088
10376
  var _a, _b;
10089
10377
  const store = useS_core83092();
10090
10378
  const query = useGetUserPermission2({ menuData: menuData2 });
10091
10379
  const list = useState16([]);
10092
- useEffect13(() => {
10380
+ useEffect17(() => {
10093
10381
  list[1](groupToTwoLevels(menuData2));
10094
10382
  }, []);
10095
- useEffect13(() => {
10383
+ useEffect17(() => {
10096
10384
  if (!query.data) return;
10097
10385
  store.setProperty("rolePermissions", query.data);
10098
10386
  }, [query.data]);
10099
10387
  if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
10100
- return /* @__PURE__ */ jsx113(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs67(Table5, { children: [
10101
- /* @__PURE__ */ jsx113(
10388
+ return /* @__PURE__ */ jsx116(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs68(Table5, { children: [
10389
+ /* @__PURE__ */ jsx116(
10102
10390
  Table5.Thead,
10103
10391
  {
10104
10392
  bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
@@ -10109,90 +10397,90 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10109
10397
  boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
10110
10398
  border: "1px solid var(--mantine-color-gray-4)"
10111
10399
  },
10112
- children: /* @__PURE__ */ jsxs67(Table5.Tr, { children: [
10113
- /* @__PURE__ */ jsx113(Table5.Th, { children: title2 }),
10114
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10115
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
10400
+ children: /* @__PURE__ */ jsxs68(Table5.Tr, { children: [
10401
+ /* @__PURE__ */ jsx116(Table5.Th, { children: title2 }),
10402
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10403
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
10116
10404
  store.toogleAllPermissionWithType("isRead", e4.target.checked);
10117
10405
  } }),
10118
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10406
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10119
10407
  "Xem",
10120
- /* @__PURE__ */ jsx113(IconEyeUp2, { color: "gray" })
10408
+ /* @__PURE__ */ jsx116(IconEyeUp2, { color: "gray" })
10121
10409
  ] })
10122
10410
  ] }) }),
10123
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10124
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
10411
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10412
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
10125
10413
  store.toogleAllPermissionWithType("isCreate", e4.target.checked);
10126
10414
  } }),
10127
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10415
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10128
10416
  "Th\xEAm",
10129
- /* @__PURE__ */ jsx113(IconPlus6, { color: "blue" })
10417
+ /* @__PURE__ */ jsx116(IconPlus6, { color: "blue" })
10130
10418
  ] })
10131
10419
  ] }) }),
10132
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10133
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
10420
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10421
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
10134
10422
  store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
10135
10423
  } }),
10136
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10424
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10137
10425
  "S\u1EEDa",
10138
- /* @__PURE__ */ jsx113(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
10426
+ /* @__PURE__ */ jsx116(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
10139
10427
  ] })
10140
10428
  ] }) }),
10141
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10142
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
10429
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10430
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
10143
10431
  store.toogleAllPermissionWithType("isDelete", e4.target.checked);
10144
10432
  } }),
10145
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10433
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10146
10434
  "X\xF3a",
10147
- /* @__PURE__ */ jsx113(IconTrash6, { color: "var(--mantine-color-red-8)" })
10435
+ /* @__PURE__ */ jsx116(IconTrash6, { color: "var(--mantine-color-red-8)" })
10148
10436
  ] })
10149
10437
  ] }) }),
10150
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10151
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
10438
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10439
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
10152
10440
  store.toogleAllPermissionWithType("isPrint", e4.target.checked);
10153
10441
  } }),
10154
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10442
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10155
10443
  "In",
10156
- /* @__PURE__ */ jsx113(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
10444
+ /* @__PURE__ */ jsx116(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
10157
10445
  ] })
10158
10446
  ] }) }),
10159
- /* @__PURE__ */ jsx113(Table5.Th, { children: /* @__PURE__ */ jsxs67(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10160
- /* @__PURE__ */ jsx113(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
10447
+ /* @__PURE__ */ jsx116(Table5.Th, { children: /* @__PURE__ */ jsxs68(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
10448
+ /* @__PURE__ */ jsx116(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
10161
10449
  store.toogleAllPermissionWithType("isExport", e4.target.checked);
10162
10450
  } }),
10163
- /* @__PURE__ */ jsxs67(MyFlexRow, { gap: 3, children: [
10451
+ /* @__PURE__ */ jsxs68(MyFlexRow, { gap: 3, children: [
10164
10452
  "Xu\u1EA5t",
10165
- /* @__PURE__ */ jsx113(IconFileExport3, { color: "var(--mantine-color-green-8)" })
10453
+ /* @__PURE__ */ jsx116(IconFileExport3, { color: "var(--mantine-color-green-8)" })
10166
10454
  ] })
10167
10455
  ] }) })
10168
10456
  ] })
10169
10457
  }
10170
10458
  ),
10171
- /* @__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) => {
10172
- if (item.links == void 0) return /* @__PURE__ */ jsxs67(Table5.Tr, { children: [
10173
- /* @__PURE__ */ jsx113(Table5.Td, { children: item.label }),
10174
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10175
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10176
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10177
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10178
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) }),
10179
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(Checkbox4, {}) }) })
10459
+ /* @__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) => {
10460
+ if (item.links == void 0) return /* @__PURE__ */ jsxs68(Table5.Tr, { children: [
10461
+ /* @__PURE__ */ jsx116(Table5.Td, { children: item.label }),
10462
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10463
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10464
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10465
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10466
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) }),
10467
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(Checkbox4, {}) }) })
10180
10468
  ] }, idx);
10181
- return /* @__PURE__ */ jsxs67(React4.Fragment, { children: [
10182
- /* @__PURE__ */ jsx113(Table5.Tr, { children: /* @__PURE__ */ jsx113(
10469
+ return /* @__PURE__ */ jsxs68(React4.Fragment, { children: [
10470
+ /* @__PURE__ */ jsx116(Table5.Tr, { children: /* @__PURE__ */ jsx116(
10183
10471
  Table5.Td,
10184
10472
  {
10185
10473
  colSpan: 7,
10186
10474
  bg: OBJECT_COlORS.mantineBackgroundBlueLight,
10187
- children: /* @__PURE__ */ jsx113(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
10475
+ children: /* @__PURE__ */ jsx116(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
10188
10476
  }
10189
10477
  ) }, item.label),
10190
10478
  item.links.map(
10191
10479
  (item2, idx2) => {
10192
10480
  var _a2, _b2, _c, _d, _e, _f;
10193
- return /* @__PURE__ */ jsxs67(Table5.Tr, { children: [
10194
- /* @__PURE__ */ jsx113(Table5.Td, { children: item2.label }),
10195
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10481
+ return /* @__PURE__ */ jsxs68(Table5.Tr, { children: [
10482
+ /* @__PURE__ */ jsx116(Table5.Td, { children: item2.label }),
10483
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10196
10484
  Checkbox4,
10197
10485
  {
10198
10486
  checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
@@ -10203,7 +10491,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10203
10491
  }
10204
10492
  }
10205
10493
  ) }) }),
10206
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10494
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10207
10495
  Checkbox4,
10208
10496
  {
10209
10497
  checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
@@ -10214,7 +10502,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10214
10502
  }
10215
10503
  }
10216
10504
  ) }) }),
10217
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10505
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10218
10506
  Checkbox4,
10219
10507
  {
10220
10508
  checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
@@ -10225,7 +10513,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10225
10513
  }
10226
10514
  }
10227
10515
  ) }) }),
10228
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10516
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10229
10517
  Checkbox4,
10230
10518
  {
10231
10519
  checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
@@ -10236,7 +10524,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10236
10524
  }
10237
10525
  }
10238
10526
  ) }) }),
10239
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10527
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10240
10528
  Checkbox4,
10241
10529
  {
10242
10530
  checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
@@ -10247,7 +10535,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10247
10535
  }
10248
10536
  }
10249
10537
  ) }) }),
10250
- /* @__PURE__ */ jsx113(Table5.Td, { children: /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(
10538
+ /* @__PURE__ */ jsx116(Table5.Td, { children: /* @__PURE__ */ jsx116(MyCenterFull, { children: /* @__PURE__ */ jsx116(
10251
10539
  Checkbox4,
10252
10540
  {
10253
10541
  checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
@@ -10267,7 +10555,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
10267
10555
  }
10268
10556
  function useGetUserPermission2({ menuData: menuData2 }) {
10269
10557
  const store = useS_core83092();
10270
- const query = useQuery18({
10558
+ const query = useQuery19({
10271
10559
  queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
10272
10560
  queryFn: async () => {
10273
10561
  const result = await baseAxios_default.get("/Role/GetUserPermission?userId=" + store.state.roleId);
@@ -10303,72 +10591,72 @@ function useGetUserPermission2({ menuData: menuData2 }) {
10303
10591
  }
10304
10592
 
10305
10593
  // src/modules-features/admin/core/core83092/F_core83092.tsx
10306
- import { jsx as jsx114, jsxs as jsxs68 } from "react/jsx-runtime";
10594
+ import { jsx as jsx117, jsxs as jsxs69 } from "react/jsx-runtime";
10307
10595
  function F_core83092({ menuData: menuData2 }) {
10308
- return /* @__PURE__ */ jsxs68(Grid3, { grow: true, children: [
10309
- /* @__PURE__ */ jsx114(Grid3.Col, { span: 4, children: /* @__PURE__ */ jsx114(F_core83092_ReadUser, {}) }),
10310
- /* @__PURE__ */ jsx114(Grid3.Col, { span: 8, children: /* @__PURE__ */ jsxs68(MyFlexColumn, { h: "80vh", flex: 1, children: [
10311
- /* @__PURE__ */ jsx114(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx114(Paper11, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx114(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
10312
- /* @__PURE__ */ jsx114(F_core83092_Save, {})
10596
+ return /* @__PURE__ */ jsxs69(Grid4, { grow: true, children: [
10597
+ /* @__PURE__ */ jsx117(Grid4.Col, { span: 4, children: /* @__PURE__ */ jsx117(F_core83092_ReadUser, {}) }),
10598
+ /* @__PURE__ */ jsx117(Grid4.Col, { span: 8, children: /* @__PURE__ */ jsxs69(MyFlexColumn, { h: "80vh", flex: 1, children: [
10599
+ /* @__PURE__ */ jsx117(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx117(Paper12, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx117(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
10600
+ /* @__PURE__ */ jsx117(F_core83092_Save, {})
10313
10601
  ] }) })
10314
10602
  ] });
10315
10603
  }
10316
10604
 
10317
10605
  // src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
10318
10606
  import { BarChart } from "@mantine/charts";
10319
- import { Group as Group18, Paper as Paper12, Text as Text15, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
10320
- import { Fragment as Fragment13, jsx as jsx115, jsxs as jsxs69 } from "react/jsx-runtime";
10607
+ import { Group as Group18, Paper as Paper13, Text as Text15, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
10608
+ import { Fragment as Fragment13, jsx as jsx118, jsxs as jsxs70 } from "react/jsx-runtime";
10321
10609
 
10322
10610
  // src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
10323
10611
  import { BarChart as BarChart2 } from "@mantine/charts";
10324
- import { Group as Group19, Paper as Paper13, Text as Text16, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
10325
- import { Fragment as Fragment14, jsx as jsx116, jsxs as jsxs70 } from "react/jsx-runtime";
10612
+ import { Group as Group19, Paper as Paper14, Text as Text16, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
10613
+ import { Fragment as Fragment14, jsx as jsx119, jsxs as jsxs71 } from "react/jsx-runtime";
10326
10614
 
10327
10615
  // src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
10328
10616
  import { BarChart as BarChart3 } from "@mantine/charts";
10329
- import { Group as Group20, Paper as Paper14, Text as Text17, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
10330
- import { Fragment as Fragment15, jsx as jsx117, jsxs as jsxs71 } from "react/jsx-runtime";
10617
+ import { Group as Group20, Paper as Paper15, Text as Text17, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
10618
+ import { Fragment as Fragment15, jsx as jsx120, jsxs as jsxs72 } from "react/jsx-runtime";
10331
10619
 
10332
10620
  // src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
10333
10621
  import { BarChart as BarChart4 } from "@mantine/charts";
10334
- import { Group as Group21, Paper as Paper15, Text as Text18, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
10335
- import { Fragment as Fragment16, jsx as jsx118, jsxs as jsxs72 } from "react/jsx-runtime";
10622
+ import { Group as Group21, Paper as Paper16, Text as Text18, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
10623
+ import { Fragment as Fragment16, jsx as jsx121, jsxs as jsxs73 } from "react/jsx-runtime";
10336
10624
 
10337
10625
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
10338
10626
  import { BarChart as BarChart5 } from "@mantine/charts";
10339
- import { Group as Group22, Paper as Paper16, Text as Text19, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
10340
- import { jsx as jsx119, jsxs as jsxs73 } from "react/jsx-runtime";
10627
+ import { Group as Group22, Paper as Paper17, Text as Text19, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
10628
+ import { jsx as jsx122, jsxs as jsxs74 } from "react/jsx-runtime";
10341
10629
 
10342
10630
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
10343
10631
  import { BarChart as BarChart6 } from "@mantine/charts";
10344
- import { Group as Group23, Paper as Paper17, Text as Text20, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
10345
- import { jsx as jsx120, jsxs as jsxs74 } from "react/jsx-runtime";
10632
+ import { Group as Group23, Paper as Paper18, Text as Text20, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
10633
+ import { jsx as jsx123, jsxs as jsxs75 } from "react/jsx-runtime";
10346
10634
 
10347
10635
  // src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
10348
10636
  import { LineChart } from "@mantine/charts";
10349
- import { Group as Group24, Paper as Paper18, Text as Text21 } from "@mantine/core";
10350
- import { Fragment as Fragment17, jsx as jsx121, jsxs as jsxs75 } from "react/jsx-runtime";
10637
+ import { Group as Group24, Paper as Paper19, Text as Text21 } from "@mantine/core";
10638
+ import { Fragment as Fragment17, jsx as jsx124, jsxs as jsxs76 } from "react/jsx-runtime";
10351
10639
 
10352
10640
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
10353
10641
  import { LineChart as LineChart2 } from "@mantine/charts";
10354
- import { Group as Group25, Paper as Paper19, Text as Text22 } from "@mantine/core";
10355
- import { Fragment as Fragment18, jsx as jsx122, jsxs as jsxs76 } from "react/jsx-runtime";
10642
+ import { Group as Group25, Paper as Paper20, Text as Text22 } from "@mantine/core";
10643
+ import { Fragment as Fragment18, jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
10356
10644
 
10357
10645
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
10358
10646
  import { LineChart as LineChart3 } from "@mantine/charts";
10359
- import { Group as Group26, Paper as Paper20, Text as Text23 } from "@mantine/core";
10360
- import { Fragment as Fragment19, jsx as jsx123, jsxs as jsxs77 } from "react/jsx-runtime";
10647
+ import { Group as Group26, Paper as Paper21, Text as Text23 } from "@mantine/core";
10648
+ import { Fragment as Fragment19, jsx as jsx126, jsxs as jsxs78 } from "react/jsx-runtime";
10361
10649
 
10362
10650
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
10363
10651
  import { LineChart as LineChart4 } from "@mantine/charts";
10364
- import { Group as Group27, Paper as Paper21, Text as Text24 } from "@mantine/core";
10365
- import { Fragment as Fragment20, jsx as jsx124, jsxs as jsxs78 } from "react/jsx-runtime";
10652
+ import { Group as Group27, Paper as Paper22, Text as Text24 } from "@mantine/core";
10653
+ import { Fragment as Fragment20, jsx as jsx127, jsxs as jsxs79 } from "react/jsx-runtime";
10366
10654
 
10367
10655
  // src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
10368
10656
  import { Center as Center4, Progress, Space as Space8, Text as Text25 } from "@mantine/core";
10369
10657
  import { PieChart } from "@mantine/charts";
10370
10658
  import { useMemo as useMemo16 } from "react";
10371
- import { Fragment as Fragment21, jsx as jsx125, jsxs as jsxs79 } from "react/jsx-runtime";
10659
+ import { Fragment as Fragment21, jsx as jsx128, jsxs as jsxs80 } from "react/jsx-runtime";
10372
10660
  function getRandomColor(seed) {
10373
10661
  const random = Math.sin(seed) * 1e4;
10374
10662
  const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
@@ -10546,7 +10834,7 @@ function PieChart_DiscountUsedPercentage() {
10546
10834
  header: "M\xE0u",
10547
10835
  accessorKey: "color",
10548
10836
  accessorFn(originalRow) {
10549
- return /* @__PURE__ */ jsx125("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
10837
+ return /* @__PURE__ */ jsx128("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
10550
10838
  },
10551
10839
  minSize: 30,
10552
10840
  maxSize: 30
@@ -10561,7 +10849,7 @@ function PieChart_DiscountUsedPercentage() {
10561
10849
  header: "%",
10562
10850
  accessorKey: "used",
10563
10851
  accessorFn(originalRow) {
10564
- return /* @__PURE__ */ jsx125(Fragment21, { children: /* @__PURE__ */ jsx125(Center4, { children: /* @__PURE__ */ jsxs79(Text25, { children: [
10852
+ return /* @__PURE__ */ jsx128(Fragment21, { children: /* @__PURE__ */ jsx128(Center4, { children: /* @__PURE__ */ jsxs80(Text25, { children: [
10565
10853
  (originalRow.used / totalDisountCode * 100).toFixed(0),
10566
10854
  "%"
10567
10855
  ] }) }) });
@@ -10576,10 +10864,10 @@ function PieChart_DiscountUsedPercentage() {
10576
10864
  return originalRow.used;
10577
10865
  },
10578
10866
  Cell: ({ row }) => {
10579
- return /* @__PURE__ */ jsxs79(Fragment21, { children: [
10580
- /* @__PURE__ */ jsx125(Center4, { children: /* @__PURE__ */ jsxs79(Text25, { children: [
10867
+ return /* @__PURE__ */ jsxs80(Fragment21, { children: [
10868
+ /* @__PURE__ */ jsx128(Center4, { children: /* @__PURE__ */ jsxs80(Text25, { children: [
10581
10869
  "\u0110\xE3 s\u1EED d\u1EE5ng: ",
10582
- /* @__PURE__ */ jsxs79("strong", { children: [
10870
+ /* @__PURE__ */ jsxs80("strong", { children: [
10583
10871
  row.original.used,
10584
10872
  " / ",
10585
10873
  row.original.total
@@ -10588,7 +10876,7 @@ function PieChart_DiscountUsedPercentage() {
10588
10876
  (row.original.used / row.original.total * 100).toFixed(2),
10589
10877
  "%)"
10590
10878
  ] }) }),
10591
- /* @__PURE__ */ jsx125(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
10879
+ /* @__PURE__ */ jsx128(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
10592
10880
  ] });
10593
10881
  },
10594
10882
  minSize: 50,
@@ -10597,9 +10885,9 @@ function PieChart_DiscountUsedPercentage() {
10597
10885
  ],
10598
10886
  []
10599
10887
  );
10600
- return /* @__PURE__ */ jsx125(Fragment21, { children: /* @__PURE__ */ jsxs79(MyFlexColumn, { children: [
10601
- /* @__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" }),
10602
- /* @__PURE__ */ jsx125(Center4, { children: /* @__PURE__ */ jsx125(
10888
+ return /* @__PURE__ */ jsx128(Fragment21, { children: /* @__PURE__ */ jsxs80(MyFlexColumn, { children: [
10889
+ /* @__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" }),
10890
+ /* @__PURE__ */ jsx128(Center4, { children: /* @__PURE__ */ jsx128(
10603
10891
  PieChart,
10604
10892
  {
10605
10893
  startAngle: 90,
@@ -10612,8 +10900,8 @@ function PieChart_DiscountUsedPercentage() {
10612
10900
  data: data_used_discountCode
10613
10901
  }
10614
10902
  ) }),
10615
- /* @__PURE__ */ jsx125(Space8, { mt: 5 }),
10616
- /* @__PURE__ */ jsx125(
10903
+ /* @__PURE__ */ jsx128(Space8, { mt: 5 }),
10904
+ /* @__PURE__ */ jsx128(
10617
10905
  MyDataTable,
10618
10906
  {
10619
10907
  data: mockData,
@@ -10631,7 +10919,7 @@ function PieChart_DiscountUsedPercentage() {
10631
10919
  import { Center as Center5, Progress as Progress2, Space as Space9, Text as Text26 } from "@mantine/core";
10632
10920
  import { PieChart as PieChart2 } from "@mantine/charts";
10633
10921
  import { useMemo as useMemo17 } from "react";
10634
- import { Fragment as Fragment22, jsx as jsx126, jsxs as jsxs80 } from "react/jsx-runtime";
10922
+ import { Fragment as Fragment22, jsx as jsx129, jsxs as jsxs81 } from "react/jsx-runtime";
10635
10923
  function getRandomColor2(seed) {
10636
10924
  const random = Math.sin(seed) * 1e4;
10637
10925
  const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
@@ -10809,7 +11097,7 @@ function PieChart_VoucherUsedPercentage() {
10809
11097
  header: "M\xE0u",
10810
11098
  accessorKey: "color",
10811
11099
  accessorFn(originalRow) {
10812
- return /* @__PURE__ */ jsx126("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
11100
+ return /* @__PURE__ */ jsx129("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
10813
11101
  },
10814
11102
  minSize: 30,
10815
11103
  maxSize: 30
@@ -10824,7 +11112,7 @@ function PieChart_VoucherUsedPercentage() {
10824
11112
  header: "%",
10825
11113
  accessorKey: "used",
10826
11114
  accessorFn(originalRow) {
10827
- return /* @__PURE__ */ jsx126(Fragment22, { children: /* @__PURE__ */ jsx126(Center5, { children: /* @__PURE__ */ jsxs80(Text26, { children: [
11115
+ return /* @__PURE__ */ jsx129(Fragment22, { children: /* @__PURE__ */ jsx129(Center5, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
10828
11116
  (originalRow.used / totalVoucherCode * 100).toFixed(0),
10829
11117
  "%"
10830
11118
  ] }) }) });
@@ -10839,10 +11127,10 @@ function PieChart_VoucherUsedPercentage() {
10839
11127
  return originalRow.used;
10840
11128
  },
10841
11129
  Cell: ({ row }) => {
10842
- return /* @__PURE__ */ jsxs80(Fragment22, { children: [
10843
- /* @__PURE__ */ jsx126(Center5, { children: /* @__PURE__ */ jsxs80(Text26, { children: [
11130
+ return /* @__PURE__ */ jsxs81(Fragment22, { children: [
11131
+ /* @__PURE__ */ jsx129(Center5, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
10844
11132
  "\u0110\xE3 s\u1EED d\u1EE5ng: ",
10845
- /* @__PURE__ */ jsxs80("strong", { children: [
11133
+ /* @__PURE__ */ jsxs81("strong", { children: [
10846
11134
  row.original.used,
10847
11135
  " / ",
10848
11136
  row.original.total
@@ -10851,7 +11139,7 @@ function PieChart_VoucherUsedPercentage() {
10851
11139
  (row.original.used / row.original.total * 100).toFixed(2),
10852
11140
  "%)"
10853
11141
  ] }) }),
10854
- /* @__PURE__ */ jsx126(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
11142
+ /* @__PURE__ */ jsx129(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
10855
11143
  ] });
10856
11144
  },
10857
11145
  minSize: 50,
@@ -10860,9 +11148,9 @@ function PieChart_VoucherUsedPercentage() {
10860
11148
  ],
10861
11149
  []
10862
11150
  );
10863
- return /* @__PURE__ */ jsx126(Fragment22, { children: /* @__PURE__ */ jsxs80(MyFlexColumn, { children: [
10864
- /* @__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" }),
10865
- /* @__PURE__ */ jsx126(Center5, { children: /* @__PURE__ */ jsx126(
11151
+ return /* @__PURE__ */ jsx129(Fragment22, { children: /* @__PURE__ */ jsxs81(MyFlexColumn, { children: [
11152
+ /* @__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" }),
11153
+ /* @__PURE__ */ jsx129(Center5, { children: /* @__PURE__ */ jsx129(
10866
11154
  PieChart2,
10867
11155
  {
10868
11156
  startAngle: 90,
@@ -10875,8 +11163,8 @@ function PieChart_VoucherUsedPercentage() {
10875
11163
  data: data_used_discountCode2
10876
11164
  }
10877
11165
  ) }),
10878
- /* @__PURE__ */ jsx126(Space9, { mt: 5 }),
10879
- /* @__PURE__ */ jsx126(
11166
+ /* @__PURE__ */ jsx129(Space9, { mt: 5 }),
11167
+ /* @__PURE__ */ jsx129(
10880
11168
  MyDataTable,
10881
11169
  {
10882
11170
  data: mockData2,
@@ -10896,43 +11184,43 @@ import { IconLogout } from "@tabler/icons-react";
10896
11184
  import { useRouter as useRouter4 } from "next/navigation";
10897
11185
 
10898
11186
  // src/modules-features/authenticate/useS_authenticate.ts
10899
- var useStore5 = createGenericStore({
11187
+ var useStore6 = createGenericStore({
10900
11188
  initialState: { token: "" },
10901
11189
  storageKey: "useS_authenticate"
10902
11190
  });
10903
11191
  function useS_authenticate() {
10904
- const store = useStore5();
11192
+ const store = useStore6();
10905
11193
  function logOut() {
10906
11194
  }
10907
11195
  return __spreadValues({}, store);
10908
11196
  }
10909
11197
 
10910
11198
  // src/modules-features/authenticate/F_authenticate_Logout.tsx
10911
- import { jsx as jsx127 } from "react/jsx-runtime";
11199
+ import { jsx as jsx130 } from "react/jsx-runtime";
10912
11200
  function F_authenticate_Logout() {
10913
11201
  const router = useRouter4();
10914
11202
  const S_Authenticate = useS_authenticate();
10915
- return /* @__PURE__ */ jsx127(Button18, { onClick: () => {
11203
+ return /* @__PURE__ */ jsx130(Button18, { onClick: () => {
10916
11204
  S_Authenticate.setProperty("token", "");
10917
11205
  router.replace("/authenticate/login");
10918
- }, leftSection: /* @__PURE__ */ jsx127(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
11206
+ }, leftSection: /* @__PURE__ */ jsx130(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
10919
11207
  }
10920
11208
 
10921
11209
  // src/modules-features/authenticate/F_authenticate_SplashPage.tsx
10922
11210
  import { useRouter as useRouter5 } from "next/navigation";
10923
- import { useEffect as useEffect14 } from "react";
10924
- import { jsx as jsx128 } from "react/jsx-runtime";
11211
+ import { useEffect as useEffect18 } from "react";
11212
+ import { jsx as jsx131 } from "react/jsx-runtime";
10925
11213
  function F_authenticate_SplashPage() {
10926
11214
  const router = useRouter5();
10927
11215
  const S_Authenticate = useS_authenticate();
10928
- useEffect14(() => {
11216
+ useEffect18(() => {
10929
11217
  if (S_Authenticate.state.token == "") {
10930
11218
  router.push("/authenticate/login");
10931
11219
  return;
10932
11220
  }
10933
11221
  router.push("/admin/core71678");
10934
11222
  }, [S_Authenticate.state.token]);
10935
- return /* @__PURE__ */ jsx128(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
11223
+ return /* @__PURE__ */ jsx131(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
10936
11224
  }
10937
11225
 
10938
11226
  // src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
@@ -10944,14 +11232,14 @@ import {
10944
11232
  Checkbox as Checkbox5,
10945
11233
  Flex as Flex7,
10946
11234
  Group as Group28,
10947
- Paper as Paper22,
11235
+ Paper as Paper23,
10948
11236
  PasswordInput as PasswordInput2,
10949
11237
  Text as Text27,
10950
11238
  TextInput as TextInput6,
10951
11239
  Title as Title2
10952
11240
  } from "@mantine/core";
10953
- import { useForm as useForm19 } from "@mantine/form";
10954
- import { useMutation as useMutation8 } from "@tanstack/react-query";
11241
+ import { useForm as useForm20 } from "@mantine/form";
11242
+ import { useMutation as useMutation9 } from "@tanstack/react-query";
10955
11243
  import axios2 from "axios";
10956
11244
  import Link5 from "next/link";
10957
11245
  import { useRouter as useRouter6 } from "next/navigation";
@@ -10961,7 +11249,7 @@ import { useState as useState17 } from "react";
10961
11249
  var css_default3 = {};
10962
11250
 
10963
11251
  // src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
10964
- import { jsx as jsx129, jsxs as jsxs81 } from "react/jsx-runtime";
11252
+ import { jsx as jsx132, jsxs as jsxs82 } from "react/jsx-runtime";
10965
11253
  function F_authenticate_Login({
10966
11254
  loginInfo,
10967
11255
  redirectUrlAfterLogin = "/admin/dashboard",
@@ -10973,7 +11261,7 @@ function F_authenticate_Login({
10973
11261
  const authStore = useS_authenticate();
10974
11262
  const loadingState = useState17(false);
10975
11263
  const mutation = useM_Account_Sigin();
10976
- const form = useForm19({
11264
+ const form = useForm20({
10977
11265
  mode: "uncontrolled",
10978
11266
  initialValues: {
10979
11267
  username: (loginInfo == null ? void 0 : loginInfo.username) || "admincoe",
@@ -11014,21 +11302,21 @@ function F_authenticate_Login({
11014
11302
  }
11015
11303
  });
11016
11304
  }
11017
- return /* @__PURE__ */ jsx129(
11305
+ return /* @__PURE__ */ jsx132(
11018
11306
  BackgroundImage,
11019
11307
  {
11020
11308
  src: backgroundImage,
11021
11309
  h: "100vh",
11022
- 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: [
11023
- /* @__PURE__ */ jsxs81(Flex7, { direction: "column", mb: "md", children: [
11024
- /* @__PURE__ */ jsx129(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
11025
- /* @__PURE__ */ jsxs81(Text27, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
11310
+ 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: [
11311
+ /* @__PURE__ */ jsxs82(Flex7, { direction: "column", mb: "md", children: [
11312
+ /* @__PURE__ */ jsx132(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
11313
+ /* @__PURE__ */ jsxs82(Text27, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
11026
11314
  "B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
11027
- /* @__PURE__ */ jsx129(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
11315
+ /* @__PURE__ */ jsx132(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
11028
11316
  ] })
11029
11317
  ] }),
11030
- /* @__PURE__ */ jsx129("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs81(MyFlexColumn, { children: [
11031
- /* @__PURE__ */ jsx129(
11318
+ /* @__PURE__ */ jsx132("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs82(MyFlexColumn, { children: [
11319
+ /* @__PURE__ */ jsx132(
11032
11320
  TextInput6,
11033
11321
  __spreadProps(__spreadValues({}, form.getInputProps("username")), {
11034
11322
  label: "T\xE0i kho\u1EA3n",
@@ -11036,7 +11324,7 @@ function F_authenticate_Login({
11036
11324
  withAsterisk: true
11037
11325
  })
11038
11326
  ),
11039
- /* @__PURE__ */ jsx129(
11327
+ /* @__PURE__ */ jsx132(
11040
11328
  PasswordInput2,
11041
11329
  __spreadProps(__spreadValues({}, form.getInputProps("password")), {
11042
11330
  label: "M\u1EADt kh\u1EA9u",
@@ -11044,11 +11332,11 @@ function F_authenticate_Login({
11044
11332
  withAsterisk: true
11045
11333
  })
11046
11334
  ),
11047
- /* @__PURE__ */ jsxs81(Group28, { justify: "space-between", children: [
11048
- /* @__PURE__ */ jsx129(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
11049
- /* @__PURE__ */ jsx129(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
11335
+ /* @__PURE__ */ jsxs82(Group28, { justify: "space-between", children: [
11336
+ /* @__PURE__ */ jsx132(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
11337
+ /* @__PURE__ */ jsx132(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
11050
11338
  ] }),
11051
- /* @__PURE__ */ jsx129(
11339
+ /* @__PURE__ */ jsx132(
11052
11340
  Button19,
11053
11341
  {
11054
11342
  loading: loadingState[0],
@@ -11065,7 +11353,7 @@ function F_authenticate_Login({
11065
11353
  }
11066
11354
  function useM_Account_Sigin() {
11067
11355
  const ENDPOINT5 = process.env.NEXT_PUBLIC_API + "/Account/SignIn";
11068
- const mutation = useMutation8({
11356
+ const mutation = useMutation9({
11069
11357
  mutationFn: async (values) => {
11070
11358
  const result = await axios2.post(ENDPOINT5, values);
11071
11359
  return result.data;
@@ -11166,6 +11454,8 @@ export {
11166
11454
  F_core47643_Form,
11167
11455
  F_core47643_Read,
11168
11456
  F_core47643,
11457
+ useS_core60524,
11458
+ F_core60524,
11169
11459
  F_core64229_Form,
11170
11460
  F_core64229_Delete,
11171
11461
  F_core64229_Read,