aq-fe-framework 0.1.1106 → 0.1.1107

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.
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  const_object_colors,
33
33
  const_object_documentTypes
34
- } from "./chunk-N5DFWFM6.mjs";
34
+ } from "./chunk-S5NCYRRY.mjs";
35
35
  import {
36
36
  enumLabel_gender,
37
37
  enum_daysOfWeek
@@ -10351,10 +10351,55 @@ function CustomDataTableAPI(_a) {
10351
10351
  );
10352
10352
  }
10353
10353
 
10354
+ // src/core/withAPI/CustomSelectAPI.tsx
10355
+ import { useEffect as useEffect18 } from "react";
10356
+ import { jsx as jsx99 } from "react/jsx-runtime";
10357
+ function CustomSelectAPI(_a) {
10358
+ var _b = _a, {
10359
+ query,
10360
+ autoSelectFirst = false,
10361
+ value,
10362
+ onChange
10363
+ } = _b, rest = __objRest(_b, [
10364
+ "query",
10365
+ "autoSelectFirst",
10366
+ "value",
10367
+ "onChange"
10368
+ ]);
10369
+ var _a2;
10370
+ useEffect18(() => {
10371
+ var _a3, _b2;
10372
+ if (autoSelectFirst && !value && // chỉ auto chọn nếu chưa có giá trị
10373
+ query.data && query.data.length > 0) {
10374
+ const first = query.data[0];
10375
+ onChange == null ? void 0 : onChange((_a3 = first.id) == null ? void 0 : _a3.toString(), {
10376
+ label: first.code + " - " + first.name,
10377
+ value: (_b2 = first.id) == null ? void 0 : _b2.toString()
10378
+ });
10379
+ }
10380
+ }, [autoSelectFirst, query.data, value, onChange]);
10381
+ return /* @__PURE__ */ jsx99(
10382
+ MySelect2,
10383
+ __spreadValues({
10384
+ isLoading: query.isLoading,
10385
+ isError: query.isError,
10386
+ data: (_a2 = query.data) == null ? void 0 : _a2.map((item) => {
10387
+ var _a3;
10388
+ return {
10389
+ label: item.code + " - " + item.name,
10390
+ value: (_a3 = item.id) == null ? void 0 : _a3.toString()
10391
+ };
10392
+ }),
10393
+ value,
10394
+ onChange
10395
+ }, rest)
10396
+ );
10397
+ }
10398
+
10354
10399
  // src/core/withAPI/MyButtonViewFileAPI.tsx
10355
10400
  import { useDisclosure as useDisclosure18 } from "@mantine/hooks";
10356
10401
  import { useQuery as useQuery3 } from "@tanstack/react-query";
10357
- import { jsx as jsx99 } from "react/jsx-runtime";
10402
+ import { jsx as jsx100 } from "react/jsx-runtime";
10358
10403
  function MyButtonViewFileAPI(_a) {
10359
10404
  var _b = _a, { filePath, externalDisc } = _b, rest = __objRest(_b, ["filePath", "externalDisc"]);
10360
10405
  var _a2;
@@ -10368,7 +10413,7 @@ function MyButtonViewFileAPI(_a) {
10368
10413
  },
10369
10414
  enabled: filePath != void 0 && disc[0]
10370
10415
  });
10371
- return /* @__PURE__ */ jsx99(
10416
+ return /* @__PURE__ */ jsx100(
10372
10417
  MyButtonViewFile,
10373
10418
  __spreadProps(__spreadValues({
10374
10419
  file: query.data,
@@ -10387,7 +10432,7 @@ function MyButtonViewFileAPI(_a) {
10387
10432
 
10388
10433
  // src/components/Button/ButtonCRUD/AQButtonExportData.tsx
10389
10434
  import { utils as utils3, writeFile } from "xlsx";
10390
- import { jsx as jsx100 } from "react/jsx-runtime";
10435
+ import { jsx as jsx101 } from "react/jsx-runtime";
10391
10436
  function AQButtonExportData(_a) {
10392
10437
  var _b = _a, {
10393
10438
  objectName,
@@ -10417,7 +10462,7 @@ function AQButtonExportData(_a) {
10417
10462
  utils3.book_append_sheet(workbook, worksheet, "Exported Data");
10418
10463
  writeFile(workbook, `${objectName}.xlsx`);
10419
10464
  };
10420
- return /* @__PURE__ */ jsx100(
10465
+ return /* @__PURE__ */ jsx101(
10421
10466
  MyButton,
10422
10467
  __spreadProps(__spreadValues({
10423
10468
  isCheckPermission: false,
@@ -10434,7 +10479,7 @@ function AQButtonExportData(_a) {
10434
10479
  }
10435
10480
 
10436
10481
  // src/modules-features/admin/core/academicYears/AcademicYearExport.tsx
10437
- import { jsx as jsx101 } from "react/jsx-runtime";
10482
+ import { jsx as jsx102 } from "react/jsx-runtime";
10438
10483
  function AcademicYearExport({ data, table }) {
10439
10484
  const exportConfig4 = {
10440
10485
  fields: [
@@ -10477,7 +10522,7 @@ function AcademicYearExport({ data, table }) {
10477
10522
  administrativeYearEnd: item.administrativeYearEnd ? utils_date.toDDMMYYYY(item.administrativeYearEnd) : void 0
10478
10523
  });
10479
10524
  });
10480
- return /* @__PURE__ */ jsx101(
10525
+ return /* @__PURE__ */ jsx102(
10481
10526
  AQButtonExportData,
10482
10527
  {
10483
10528
  objectName: "Danh m\u1EE5c n\u0103m h\u1ECDc",
@@ -10507,7 +10552,7 @@ var service_academicYear = __spreadProps(__spreadValues({}, createBaseApi(CONTRO
10507
10552
  });
10508
10553
 
10509
10554
  // src/modules-features/admin/core/academicYears/AcademicYearImport.tsx
10510
- import { Fragment as Fragment17, jsx as jsx102, jsxs as jsxs54 } from "react/jsx-runtime";
10555
+ import { Fragment as Fragment17, jsx as jsx103, jsxs as jsxs54 } from "react/jsx-runtime";
10511
10556
  var config2 = [
10512
10557
  { fieldKey: "code", fieldName: "N\u0103m h\u1ECDc (v\xED d\u1EE5: 2024)", isRequired: true },
10513
10558
  { fieldKey: "name", fieldName: "T\xEAn n\u0103m h\u1ECDc", isRequired: true },
@@ -10539,7 +10584,7 @@ function AcademicYearImport() {
10539
10584
  return new Date(parseInt(year), parseInt(month) - 1, parseInt(day));
10540
10585
  };
10541
10586
  return /* @__PURE__ */ jsxs54(Fragment17, { children: [
10542
- /* @__PURE__ */ jsx102(
10587
+ /* @__PURE__ */ jsx103(
10543
10588
  MyModalImport,
10544
10589
  {
10545
10590
  fieldDefinition: config2.map((item) => ({
@@ -10569,7 +10614,7 @@ function AcademicYearImport() {
10569
10614
  }
10570
10615
  }
10571
10616
  ),
10572
- /* @__PURE__ */ jsx102(
10617
+ /* @__PURE__ */ jsx103(
10573
10618
  MyButton,
10574
10619
  {
10575
10620
  actionType: "import",
@@ -10585,8 +10630,8 @@ import { DateInput as DateInput2 } from "@mantine/dates";
10585
10630
  import { useForm as useForm2 } from "@mantine/form";
10586
10631
  import { IconCalendar } from "@tabler/icons-react";
10587
10632
  import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
10588
- import { useEffect as useEffect18 } from "react";
10589
- import { jsx as jsx103, jsxs as jsxs55 } from "react/jsx-runtime";
10633
+ import { useEffect as useEffect19 } from "react";
10634
+ import { jsx as jsx104, jsxs as jsxs55 } from "react/jsx-runtime";
10590
10635
  function AcademicYearsCreate() {
10591
10636
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
10592
10637
  const queryClient = useQueryClient3();
@@ -10638,7 +10683,7 @@ function AcademicYearsCreate() {
10638
10683
  }
10639
10684
  }
10640
10685
  });
10641
- useEffect18(() => {
10686
+ useEffect19(() => {
10642
10687
  const year = parseInt(String(form.values.code), 10);
10643
10688
  if (!isNaN(year)) {
10644
10689
  form.setFieldValue("administrativeYearStart", toUTCDatePreserveDay(year, 0, 1));
@@ -10651,7 +10696,7 @@ function AcademicYearsCreate() {
10651
10696
  }
10652
10697
  }
10653
10698
  }, [form.values.code]);
10654
- return /* @__PURE__ */ jsx103(
10699
+ return /* @__PURE__ */ jsx104(
10655
10700
  MyButtonCreate,
10656
10701
  {
10657
10702
  label: "Th\xEAm",
@@ -10671,7 +10716,7 @@ function AcademicYearsCreate() {
10671
10716
  },
10672
10717
  children: /* @__PURE__ */ jsxs55(Grid2, { children: [
10673
10718
  /* @__PURE__ */ jsxs55(Grid2.Col, { span: { base: 12, md: 6 }, py: 0, children: [
10674
- /* @__PURE__ */ jsx103(Group30, { pb: 10, children: /* @__PURE__ */ jsx103(
10719
+ /* @__PURE__ */ jsx104(Group30, { pb: 10, children: /* @__PURE__ */ jsx104(
10675
10720
  MyTextInput2,
10676
10721
  __spreadValues({
10677
10722
  withAsterisk: true,
@@ -10679,19 +10724,19 @@ function AcademicYearsCreate() {
10679
10724
  flex: 1
10680
10725
  }, form.getInputProps("code"))
10681
10726
  ) }),
10682
- /* @__PURE__ */ jsx103(Group30, { pb: 10, children: /* @__PURE__ */ jsx103(
10727
+ /* @__PURE__ */ jsx104(Group30, { pb: 10, children: /* @__PURE__ */ jsx104(
10683
10728
  DateInput2,
10684
10729
  __spreadProps(__spreadValues({
10685
10730
  withAsterisk: true,
10686
10731
  label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u n\u0103m h\u1ECDc",
10687
10732
  flex: 1,
10688
- rightSection: /* @__PURE__ */ jsx103(IconCalendar, {})
10733
+ rightSection: /* @__PURE__ */ jsx104(IconCalendar, {})
10689
10734
  }, form.getInputProps("academicYearStart")), {
10690
10735
  minDate: form.values.administrativeYearStart,
10691
10736
  maxDate: form.values.administrativeYearEnd
10692
10737
  })
10693
10738
  ) }),
10694
- /* @__PURE__ */ jsx103(Group30, { pb: 10, children: /* @__PURE__ */ jsx103(
10739
+ /* @__PURE__ */ jsx104(Group30, { pb: 10, children: /* @__PURE__ */ jsx104(
10695
10740
  DateInput2,
10696
10741
  {
10697
10742
  label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u h\xE0nh ch\xEDnh",
@@ -10705,7 +10750,7 @@ function AcademicYearsCreate() {
10705
10750
  ) })
10706
10751
  ] }),
10707
10752
  /* @__PURE__ */ jsxs55(Grid2.Col, { span: { base: 12, md: 6 }, py: 0, children: [
10708
- /* @__PURE__ */ jsx103(Group30, { pb: 10, children: /* @__PURE__ */ jsx103(
10753
+ /* @__PURE__ */ jsx104(Group30, { pb: 10, children: /* @__PURE__ */ jsx104(
10709
10754
  MyTextInput2,
10710
10755
  __spreadValues({
10711
10756
  withAsterisk: true,
@@ -10713,18 +10758,18 @@ function AcademicYearsCreate() {
10713
10758
  flex: 1
10714
10759
  }, form.getInputProps("name"))
10715
10760
  ) }),
10716
- /* @__PURE__ */ jsx103(Group30, { pb: 10, children: /* @__PURE__ */ jsx103(
10761
+ /* @__PURE__ */ jsx104(Group30, { pb: 10, children: /* @__PURE__ */ jsx104(
10717
10762
  DateInput2,
10718
10763
  __spreadProps(__spreadValues({
10719
10764
  withAsterisk: true,
10720
10765
  label: "Ng\xE0y k\u1EBFt th\xFAc n\u0103m h\u1ECDc",
10721
10766
  flex: 1,
10722
- rightSection: /* @__PURE__ */ jsx103(IconCalendar, {})
10767
+ rightSection: /* @__PURE__ */ jsx104(IconCalendar, {})
10723
10768
  }, form.getInputProps("academicYearEnd")), {
10724
10769
  minDate: form.values.academicYearStart
10725
10770
  })
10726
10771
  ) }),
10727
- /* @__PURE__ */ jsx103(Group30, { pb: 10, children: /* @__PURE__ */ jsx103(
10772
+ /* @__PURE__ */ jsx104(Group30, { pb: 10, children: /* @__PURE__ */ jsx104(
10728
10773
  DateInput2,
10729
10774
  {
10730
10775
  label: "Ng\xE0y k\u1EBFt th\xFAc h\xE0nh ch\xEDnh",
@@ -10737,8 +10782,8 @@ function AcademicYearsCreate() {
10737
10782
  }
10738
10783
  ) })
10739
10784
  ] }),
10740
- /* @__PURE__ */ jsx103(Grid2.Col, { span: 12, py: 0, children: /* @__PURE__ */ jsx103(Group30, { pb: 10, children: /* @__PURE__ */ jsx103(MyTextArea, __spreadValues({ label: "Ghi ch\xFA", flex: 1 }, form.getInputProps("note"))) }) }),
10741
- /* @__PURE__ */ jsx103(Grid2.Col, { span: 12, py: 0, children: /* @__PURE__ */ jsx103(Group30, { pb: 10, children: /* @__PURE__ */ jsx103(
10785
+ /* @__PURE__ */ jsx104(Grid2.Col, { span: 12, py: 0, children: /* @__PURE__ */ jsx104(Group30, { pb: 10, children: /* @__PURE__ */ jsx104(MyTextArea, __spreadValues({ label: "Ghi ch\xFA", flex: 1 }, form.getInputProps("note"))) }) }),
10786
+ /* @__PURE__ */ jsx104(Grid2.Col, { span: 12, py: 0, children: /* @__PURE__ */ jsx104(Group30, { pb: 10, children: /* @__PURE__ */ jsx104(
10742
10787
  Checkbox2,
10743
10788
  __spreadValues({
10744
10789
  label: "Hi\u1EC7n h\xE0nh"
@@ -10750,9 +10795,9 @@ function AcademicYearsCreate() {
10750
10795
  }
10751
10796
 
10752
10797
  // src/modules-features/admin/core/academicYears/AcademicYearsDelete.tsx
10753
- import { jsx as jsx104 } from "react/jsx-runtime";
10798
+ import { jsx as jsx105 } from "react/jsx-runtime";
10754
10799
  function AcademicYearsDelete({ values }) {
10755
- return /* @__PURE__ */ jsx104(
10800
+ return /* @__PURE__ */ jsx105(
10756
10801
  MyActionIconDelete,
10757
10802
  {
10758
10803
  contextData: values.code,
@@ -10764,9 +10809,9 @@ function AcademicYearsDelete({ values }) {
10764
10809
  }
10765
10810
 
10766
10811
  // src/modules-features/admin/core/academicYears/AcademicYearsDeleteList.tsx
10767
- import { jsx as jsx105 } from "react/jsx-runtime";
10812
+ import { jsx as jsx106 } from "react/jsx-runtime";
10768
10813
  function AcademicYearsDeleteList({ values }) {
10769
- return /* @__PURE__ */ jsx105(
10814
+ return /* @__PURE__ */ jsx106(
10770
10815
  MyButtonDeleteList,
10771
10816
  {
10772
10817
  contextData: values.map((item) => item.code).join(","),
@@ -10786,8 +10831,8 @@ import { Checkbox as Checkbox3, Grid as Grid3, Group as Group31 } from "@mantine
10786
10831
  import { DateInput as DateInput3 } from "@mantine/dates";
10787
10832
  import { useForm as useForm3 } from "@mantine/form";
10788
10833
  import { IconCalendar as IconCalendar2 } from "@tabler/icons-react";
10789
- import { useEffect as useEffect19 } from "react";
10790
- import { jsx as jsx106, jsxs as jsxs56 } from "react/jsx-runtime";
10834
+ import { useEffect as useEffect20 } from "react";
10835
+ import { jsx as jsx107, jsxs as jsxs56 } from "react/jsx-runtime";
10791
10836
  function AcademicYearsUpdate({
10792
10837
  values
10793
10838
  }) {
@@ -10859,7 +10904,7 @@ function AcademicYearsUpdate({
10859
10904
  }
10860
10905
  }
10861
10906
  });
10862
- useEffect19(() => {
10907
+ useEffect20(() => {
10863
10908
  const year = parseInt(String(form.values.code), 10);
10864
10909
  if (!isNaN(year)) {
10865
10910
  form.setFieldValue("administrativeYearStart", new Date(year, 0, 1));
@@ -10872,12 +10917,12 @@ function AcademicYearsUpdate({
10872
10917
  }
10873
10918
  }
10874
10919
  }, [form.values.code]);
10875
- useEffect19(() => {
10920
+ useEffect20(() => {
10876
10921
  if (form.values.concurrencyStamp !== values.concurrencyStamp) {
10877
10922
  form.setFieldValue("concurrencyStamp", values.concurrencyStamp);
10878
10923
  }
10879
10924
  }, [values.concurrencyStamp]);
10880
- return /* @__PURE__ */ jsx106(
10925
+ return /* @__PURE__ */ jsx107(
10881
10926
  MyActionIconUpdate,
10882
10927
  {
10883
10928
  form,
@@ -10896,7 +10941,7 @@ function AcademicYearsUpdate({
10896
10941
  },
10897
10942
  children: /* @__PURE__ */ jsxs56(Grid3, { children: [
10898
10943
  /* @__PURE__ */ jsxs56(Grid3.Col, { span: { base: 12, md: 6 }, py: 0, children: [
10899
- /* @__PURE__ */ jsx106(Group31, { pb: 10, children: /* @__PURE__ */ jsx106(
10944
+ /* @__PURE__ */ jsx107(Group31, { pb: 10, children: /* @__PURE__ */ jsx107(
10900
10945
  MyTextInput2,
10901
10946
  __spreadValues({
10902
10947
  readOnly: true,
@@ -10905,20 +10950,20 @@ function AcademicYearsUpdate({
10905
10950
  label: "M\xE3 N\u0103m h\u1ECDc"
10906
10951
  }, form.getInputProps("code"))
10907
10952
  ) }),
10908
- /* @__PURE__ */ jsx106(Group31, { pb: 10, children: /* @__PURE__ */ jsx106(
10953
+ /* @__PURE__ */ jsx107(Group31, { pb: 10, children: /* @__PURE__ */ jsx107(
10909
10954
  DateInput3,
10910
10955
  __spreadProps(__spreadValues({
10911
10956
  withAsterisk: true,
10912
10957
  flex: 1,
10913
10958
  placeholder: "Ch\u1ECDn ng\xE0y b\u1EAFt \u0111\u1EA7u n\u0103m h\u1ECDc",
10914
10959
  label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u n\u0103m h\u1ECDc",
10915
- rightSection: /* @__PURE__ */ jsx106(IconCalendar2, {})
10960
+ rightSection: /* @__PURE__ */ jsx107(IconCalendar2, {})
10916
10961
  }, form.getInputProps("academicYearStart")), {
10917
10962
  minDate: form.values.administrativeYearStart,
10918
10963
  maxDate: form.values.administrativeYearEnd
10919
10964
  })
10920
10965
  ) }),
10921
- /* @__PURE__ */ jsx106(Group31, { pb: 10, children: /* @__PURE__ */ jsx106(
10966
+ /* @__PURE__ */ jsx107(Group31, { pb: 10, children: /* @__PURE__ */ jsx107(
10922
10967
  DateInput3,
10923
10968
  {
10924
10969
  flex: 1,
@@ -10932,7 +10977,7 @@ function AcademicYearsUpdate({
10932
10977
  ) })
10933
10978
  ] }),
10934
10979
  /* @__PURE__ */ jsxs56(Grid3.Col, { span: { base: 12, md: 6 }, py: 0, children: [
10935
- /* @__PURE__ */ jsx106(Group31, { pb: 10, children: /* @__PURE__ */ jsx106(
10980
+ /* @__PURE__ */ jsx107(Group31, { pb: 10, children: /* @__PURE__ */ jsx107(
10936
10981
  MyTextInput2,
10937
10982
  __spreadValues({
10938
10983
  withAsterisk: true,
@@ -10940,19 +10985,19 @@ function AcademicYearsUpdate({
10940
10985
  label: "T\xEAn n\u0103m h\u1ECDc"
10941
10986
  }, form.getInputProps("name"))
10942
10987
  ) }),
10943
- /* @__PURE__ */ jsx106(Group31, { pb: 10, children: /* @__PURE__ */ jsx106(
10988
+ /* @__PURE__ */ jsx107(Group31, { pb: 10, children: /* @__PURE__ */ jsx107(
10944
10989
  DateInput3,
10945
10990
  __spreadProps(__spreadValues({
10946
10991
  withAsterisk: true,
10947
10992
  flex: 1,
10948
10993
  label: "Ng\xE0y k\u1EBFt th\xFAc n\u0103m h\u1ECDc",
10949
10994
  placeholder: "Ch\u1ECDn ng\xE0y k\u1EBFt th\xFAc n\u0103m h\u1ECDc",
10950
- rightSection: /* @__PURE__ */ jsx106(IconCalendar2, {})
10995
+ rightSection: /* @__PURE__ */ jsx107(IconCalendar2, {})
10951
10996
  }, form.getInputProps("academicYearEnd")), {
10952
10997
  minDate: form.values.academicYearStart
10953
10998
  })
10954
10999
  ) }),
10955
- /* @__PURE__ */ jsx106(Group31, { pb: 10, children: /* @__PURE__ */ jsx106(
11000
+ /* @__PURE__ */ jsx107(Group31, { pb: 10, children: /* @__PURE__ */ jsx107(
10956
11001
  DateInput3,
10957
11002
  {
10958
11003
  flex: 1,
@@ -10965,8 +11010,8 @@ function AcademicYearsUpdate({
10965
11010
  }
10966
11011
  ) })
10967
11012
  ] }),
10968
- /* @__PURE__ */ jsx106(Grid3.Col, { span: 12, py: 0, children: /* @__PURE__ */ jsx106(Group31, { pb: 10, children: /* @__PURE__ */ jsx106(MyTextArea, __spreadValues({ label: "Ghi ch\xFA", flex: 1 }, form.getInputProps("note"))) }) }),
10969
- /* @__PURE__ */ jsx106(Grid3.Col, { span: 12, py: 0, children: /* @__PURE__ */ jsx106(Group31, { pb: 10, children: /* @__PURE__ */ jsx106(
11013
+ /* @__PURE__ */ jsx107(Grid3.Col, { span: 12, py: 0, children: /* @__PURE__ */ jsx107(Group31, { pb: 10, children: /* @__PURE__ */ jsx107(MyTextArea, __spreadValues({ label: "Ghi ch\xFA", flex: 1 }, form.getInputProps("note"))) }) }),
11014
+ /* @__PURE__ */ jsx107(Grid3.Col, { span: 12, py: 0, children: /* @__PURE__ */ jsx107(Group31, { pb: 10, children: /* @__PURE__ */ jsx107(
10970
11015
  Checkbox3,
10971
11016
  __spreadValues({
10972
11017
  label: "Hi\u1EC7n h\xE0nh"
@@ -10978,7 +11023,7 @@ function AcademicYearsUpdate({
10978
11023
  }
10979
11024
 
10980
11025
  // src/modules-features/admin/core/academicYears/AcademicYearsRead.tsx
10981
- import { Fragment as Fragment18, jsx as jsx107, jsxs as jsxs57 } from "react/jsx-runtime";
11026
+ import { Fragment as Fragment18, jsx as jsx108, jsxs as jsxs57 } from "react/jsx-runtime";
10982
11027
  function AcademicYearsRead() {
10983
11028
  const academicyearsQuery = useMyReactQuery({
10984
11029
  queryKey: ["academicyearsQuery"],
@@ -11016,13 +11061,13 @@ function AcademicYearsRead() {
11016
11061
  {
11017
11062
  header: "Hi\u1EC7n h\xE0nh",
11018
11063
  accessorKey: "isCurrent",
11019
- accessorFn: (row) => /* @__PURE__ */ jsx107(MyCenterFull, { children: /* @__PURE__ */ jsx107(CustomThemeIconSquareCheck, { checked: row.isCurrent }) })
11064
+ accessorFn: (row) => /* @__PURE__ */ jsx108(MyCenterFull, { children: /* @__PURE__ */ jsx108(CustomThemeIconSquareCheck, { checked: row.isCurrent }) })
11020
11065
  },
11021
11066
  { header: "Ghi ch\xFA", accessorKey: "note" }
11022
11067
  ],
11023
11068
  [academicyearsQuery.data]
11024
11069
  );
11025
- return /* @__PURE__ */ jsx107(MyFlexColumn2, { children: /* @__PURE__ */ jsx107(
11070
+ return /* @__PURE__ */ jsx108(MyFlexColumn2, { children: /* @__PURE__ */ jsx108(
11026
11071
  MyDataTable,
11027
11072
  {
11028
11073
  isLoading: academicyearsQuery.isLoading,
@@ -11032,17 +11077,17 @@ function AcademicYearsRead() {
11032
11077
  columns,
11033
11078
  data: academicyearsQuery.data || [],
11034
11079
  renderTopToolbarCustomActions: ({ table }) => {
11035
- return /* @__PURE__ */ jsx107(Fragment18, { children: /* @__PURE__ */ jsxs57(Group32, { children: [
11036
- /* @__PURE__ */ jsx107(AcademicYearsCreate, {}),
11037
- /* @__PURE__ */ jsx107(AcademicYearImport, {}),
11038
- /* @__PURE__ */ jsx107(AcademicYearExport, { data: academicyearsQuery.data || [], table }),
11039
- /* @__PURE__ */ jsx107(AcademicYearsDeleteList, { values: table.getSelectedRowModel().flatRows.flatMap((item) => item.original) })
11080
+ return /* @__PURE__ */ jsx108(Fragment18, { children: /* @__PURE__ */ jsxs57(Group32, { children: [
11081
+ /* @__PURE__ */ jsx108(AcademicYearsCreate, {}),
11082
+ /* @__PURE__ */ jsx108(AcademicYearImport, {}),
11083
+ /* @__PURE__ */ jsx108(AcademicYearExport, { data: academicyearsQuery.data || [], table }),
11084
+ /* @__PURE__ */ jsx108(AcademicYearsDeleteList, { values: table.getSelectedRowModel().flatRows.flatMap((item) => item.original) })
11040
11085
  ] }) });
11041
11086
  },
11042
11087
  renderRowActions: ({ row }) => {
11043
11088
  return /* @__PURE__ */ jsxs57(MyCenterFull, { children: [
11044
- /* @__PURE__ */ jsx107(AcademicYearsUpdate, { values: row.original }),
11045
- /* @__PURE__ */ jsx107(AcademicYearsDelete, { values: row.original })
11089
+ /* @__PURE__ */ jsx108(AcademicYearsUpdate, { values: row.original }),
11090
+ /* @__PURE__ */ jsx108(AcademicYearsDelete, { values: row.original })
11046
11091
  ] });
11047
11092
  }
11048
11093
  }
@@ -11053,8 +11098,8 @@ function AcademicYearsRead() {
11053
11098
  import { TextInput as TextInput5 } from "@mantine/core";
11054
11099
  import { useDebouncedValue } from "@mantine/hooks";
11055
11100
  import { IconSearch as IconSearch4 } from "@tabler/icons-react";
11056
- import { useEffect as useEffect20, useMemo as useMemo9, useState as useState18 } from "react";
11057
- import { jsx as jsx108 } from "react/jsx-runtime";
11101
+ import { useEffect as useEffect21, useMemo as useMemo9, useState as useState18 } from "react";
11102
+ import { jsx as jsx109 } from "react/jsx-runtime";
11058
11103
  function AccessControl_AccountTable(_a) {
11059
11104
  var rest = __objRest(_a, []);
11060
11105
  const paggingState = useState18({
@@ -11093,16 +11138,16 @@ function AccessControl_AccountTable(_a) {
11093
11138
  accessorKey: "email"
11094
11139
  }
11095
11140
  ], []);
11096
- useEffect20(() => {
11141
+ useEffect21(() => {
11097
11142
  var _a2, _b, _c;
11098
11143
  if (!query.data) return;
11099
11144
  (_c = rest.setIdSelectionOne) == null ? void 0 : _c.call(rest, (_b = (_a2 = query.data[0]) == null ? void 0 : _a2.id) == null ? void 0 : _b.toString());
11100
11145
  }, [query.data]);
11101
- useEffect20(() => {
11146
+ useEffect21(() => {
11102
11147
  setGlobalFilter(debouncedSearch);
11103
11148
  paggingState[1]({ pageIndex: 0, pageSize: paggingState[0].pageSize });
11104
11149
  }, [debouncedSearch]);
11105
- return /* @__PURE__ */ jsx108(
11150
+ return /* @__PURE__ */ jsx109(
11106
11151
  MyDataTable,
11107
11152
  __spreadValues({
11108
11153
  enableFilters: false,
@@ -11114,12 +11159,12 @@ function AccessControl_AccountTable(_a) {
11114
11159
  data: query.data || [],
11115
11160
  isLoading: query.isLoading,
11116
11161
  isError: query.isError,
11117
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx108(
11162
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx109(
11118
11163
  TextInput5,
11119
11164
  {
11120
11165
  w: "250",
11121
11166
  placeholder: "T\xECm theo t\xE0i kho\u1EA3n ho\u1EB7c h\u1ECD t\xEAn...",
11122
- leftSection: /* @__PURE__ */ jsx108(IconSearch4, { size: 16 }),
11167
+ leftSection: /* @__PURE__ */ jsx109(IconSearch4, { size: 16 }),
11123
11168
  value: searchInput,
11124
11169
  onChange: (e4) => setSearchInput(e4.currentTarget.value)
11125
11170
  }
@@ -11185,7 +11230,7 @@ var service_role = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER5, b
11185
11230
  });
11186
11231
 
11187
11232
  // src/module/Permission/adapter/Permission_SaveMenuPermission.tsx
11188
- import { jsx as jsx109 } from "react/jsx-runtime";
11233
+ import { jsx as jsx110 } from "react/jsx-runtime";
11189
11234
  function Permission_SaveMenuPermission({
11190
11235
  roleOrUserId,
11191
11236
  isUserPermission,
@@ -11206,7 +11251,7 @@ function Permission_SaveMenuPermission({
11206
11251
  },
11207
11252
  mutationType: "update"
11208
11253
  });
11209
- return /* @__PURE__ */ jsx109(
11254
+ return /* @__PURE__ */ jsx110(
11210
11255
  MyButton,
11211
11256
  {
11212
11257
  hidden: !((_a = permissionStore.state.currentPermissionPage) == null ? void 0 : _a.isUpdate),
@@ -11227,20 +11272,20 @@ function Permission_SaveMenuPermission({
11227
11272
  }
11228
11273
 
11229
11274
  // src/module/Permission/adapter/Permission_ViewCheckMenuPermission.tsx
11230
- import { useEffect as useEffect21, useState as useState19 } from "react";
11275
+ import { useEffect as useEffect22, useState as useState19 } from "react";
11231
11276
 
11232
11277
  // src/module/Permission/usecase/UseCase_PermissionViewCheckTable.tsx
11233
11278
  import { Center as Center8, Checkbox as Checkbox4, Flex as Flex10, Paper as Paper11, ScrollArea as ScrollArea7, Skeleton as Skeleton2, Stack as Stack8, Table as Table5, Text as Text29 } from "@mantine/core";
11234
11279
  import { IconEye as IconEye3, IconFileExport as IconFileExport3, IconPencil as IconPencil2, IconPlus as IconPlus9, IconPrinter as IconPrinter6, IconTrash as IconTrash8 } from "@tabler/icons-react";
11235
11280
  import React3 from "react";
11236
- import { jsx as jsx110, jsxs as jsxs58 } from "react/jsx-runtime";
11281
+ import { jsx as jsx111, jsxs as jsxs58 } from "react/jsx-runtime";
11237
11282
  var actionType = [
11238
- { text: "Xem", icon: /* @__PURE__ */ jsx110(IconEye3, {}), iconColor: "gray" },
11239
- { text: "Th\xEAm", icon: /* @__PURE__ */ jsx110(IconPlus9, {}), iconColor: "blue" },
11240
- { text: "S\u1EEDa", icon: /* @__PURE__ */ jsx110(IconPencil2, {}), iconColor: "yellow" },
11241
- { text: "X\xF3a", icon: /* @__PURE__ */ jsx110(IconTrash8, {}), iconColor: "red" },
11242
- { text: "In", icon: /* @__PURE__ */ jsx110(IconPrinter6, {}), iconColor: "cyan" },
11243
- { text: "Xu\u1EA5t", icon: /* @__PURE__ */ jsx110(IconFileExport3, {}), iconColor: "green" }
11283
+ { text: "Xem", icon: /* @__PURE__ */ jsx111(IconEye3, {}), iconColor: "gray" },
11284
+ { text: "Th\xEAm", icon: /* @__PURE__ */ jsx111(IconPlus9, {}), iconColor: "blue" },
11285
+ { text: "S\u1EEDa", icon: /* @__PURE__ */ jsx111(IconPencil2, {}), iconColor: "yellow" },
11286
+ { text: "X\xF3a", icon: /* @__PURE__ */ jsx111(IconTrash8, {}), iconColor: "red" },
11287
+ { text: "In", icon: /* @__PURE__ */ jsx111(IconPrinter6, {}), iconColor: "cyan" },
11288
+ { text: "Xu\u1EA5t", icon: /* @__PURE__ */ jsx111(IconFileExport3, {}), iconColor: "green" }
11244
11289
  ];
11245
11290
  var permissionKeys = [
11246
11291
  "isRead",
@@ -11283,23 +11328,23 @@ function UseCase_PermissionViewCheckTable({ value = [], onChange, isLoading }) {
11283
11328
  };
11284
11329
  const duplicateIds = getDuplicateMenuIds(value);
11285
11330
  const groupedMenus = groupMenusByTitle(value);
11286
- return /* @__PURE__ */ jsx110(Paper11, { children: /* @__PURE__ */ jsx110(ScrollArea7, { children: isLoading ? /* @__PURE__ */ jsxs58(Table5, { children: [
11287
- /* @__PURE__ */ jsx110(Table5.Thead, { children: /* @__PURE__ */ jsxs58(Table5.Tr, { children: [
11288
- /* @__PURE__ */ jsx110(Table5.Th, { children: /* @__PURE__ */ jsx110(Skeleton2, { height: 12, width: "80%" }) }),
11289
- Array.from({ length: permissionKeys.length }).map((_5, idx) => /* @__PURE__ */ jsx110(Table5.Th, { children: /* @__PURE__ */ jsx110(Skeleton2, { height: 12, width: 40 }) }, idx))
11331
+ return /* @__PURE__ */ jsx111(Paper11, { children: /* @__PURE__ */ jsx111(ScrollArea7, { children: isLoading ? /* @__PURE__ */ jsxs58(Table5, { children: [
11332
+ /* @__PURE__ */ jsx111(Table5.Thead, { children: /* @__PURE__ */ jsxs58(Table5.Tr, { children: [
11333
+ /* @__PURE__ */ jsx111(Table5.Th, { children: /* @__PURE__ */ jsx111(Skeleton2, { height: 12, width: "80%" }) }),
11334
+ Array.from({ length: permissionKeys.length }).map((_5, idx) => /* @__PURE__ */ jsx111(Table5.Th, { children: /* @__PURE__ */ jsx111(Skeleton2, { height: 12, width: 40 }) }, idx))
11290
11335
  ] }) }),
11291
- /* @__PURE__ */ jsx110(Table5.Tbody, { children: Array.from({ length: 5 }).map((_5, rowIdx) => /* @__PURE__ */ jsxs58(Table5.Tr, { children: [
11292
- /* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(Skeleton2, { height: 14, width: "60%" }) }),
11293
- Array.from({ length: permissionKeys.length }).map((_6, colIdx) => /* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(Skeleton2, { height: 16, circle: true }) }, colIdx))
11336
+ /* @__PURE__ */ jsx111(Table5.Tbody, { children: Array.from({ length: 5 }).map((_5, rowIdx) => /* @__PURE__ */ jsxs58(Table5.Tr, { children: [
11337
+ /* @__PURE__ */ jsx111(Table5.Td, { children: /* @__PURE__ */ jsx111(Skeleton2, { height: 14, width: "60%" }) }),
11338
+ Array.from({ length: permissionKeys.length }).map((_6, colIdx) => /* @__PURE__ */ jsx111(Table5.Td, { children: /* @__PURE__ */ jsx111(Skeleton2, { height: 16, circle: true }) }, colIdx))
11294
11339
  ] }, rowIdx)) })
11295
- ] }) : /* @__PURE__ */ jsx110(Table5.ScrollContainer, { minWidth: 500, maxHeight: "70vh", children: /* @__PURE__ */ jsxs58(Table5, { stickyHeader: true, children: [
11296
- /* @__PURE__ */ jsx110(Table5.Thead, { children: /* @__PURE__ */ jsxs58(Table5.Tr, { children: [
11297
- /* @__PURE__ */ jsx110(Table5.Th, { children: "Danh s\xE1ch ch\u1EE9c n\u0103ng" }),
11340
+ ] }) : /* @__PURE__ */ jsx111(Table5.ScrollContainer, { minWidth: 500, maxHeight: "70vh", children: /* @__PURE__ */ jsxs58(Table5, { stickyHeader: true, children: [
11341
+ /* @__PURE__ */ jsx111(Table5.Thead, { children: /* @__PURE__ */ jsxs58(Table5.Tr, { children: [
11342
+ /* @__PURE__ */ jsx111(Table5.Th, { children: "Danh s\xE1ch ch\u1EE9c n\u0103ng" }),
11298
11343
  actionType.map((item, idx) => {
11299
11344
  const key = permissionKeys[idx];
11300
11345
  const allChecked = value.every((menu) => menu[key]);
11301
- return /* @__PURE__ */ jsx110(Table5.Th, { children: /* @__PURE__ */ jsxs58(Stack8, { align: "center", gap: 4, children: [
11302
- /* @__PURE__ */ jsx110(
11346
+ return /* @__PURE__ */ jsx111(Table5.Th, { children: /* @__PURE__ */ jsxs58(Stack8, { align: "center", gap: 4, children: [
11347
+ /* @__PURE__ */ jsx111(
11303
11348
  Checkbox4,
11304
11349
  {
11305
11350
  checked: allChecked,
@@ -11307,19 +11352,19 @@ function UseCase_PermissionViewCheckTable({ value = [], onChange, isLoading }) {
11307
11352
  }
11308
11353
  ),
11309
11354
  /* @__PURE__ */ jsxs58(Flex10, { direction: "row", align: "center", gap: "sm", children: [
11310
- /* @__PURE__ */ jsx110(Text29, { size: "xs", children: item.text }),
11355
+ /* @__PURE__ */ jsx111(Text29, { size: "xs", children: item.text }),
11311
11356
  item.icon
11312
11357
  ] })
11313
11358
  ] }) }, idx);
11314
11359
  })
11315
11360
  ] }) }),
11316
- /* @__PURE__ */ jsx110(Table5.Tbody, { children: groupedMenus.map(([groupTitle, menus], gIdx) => /* @__PURE__ */ jsxs58(React3.Fragment, { children: [
11317
- /* @__PURE__ */ jsx110(Table5.Tr, { bg: const_object_colors.mantineBackgroundBlueLight, children: /* @__PURE__ */ jsx110(Table5.Td, { fw: "bold", fs: "italic", colSpan: 7, children: groupTitle }) }),
11361
+ /* @__PURE__ */ jsx111(Table5.Tbody, { children: groupedMenus.map(([groupTitle, menus], gIdx) => /* @__PURE__ */ jsxs58(React3.Fragment, { children: [
11362
+ /* @__PURE__ */ jsx111(Table5.Tr, { bg: const_object_colors.mantineBackgroundBlueLight, children: /* @__PURE__ */ jsx111(Table5.Td, { fw: "bold", fs: "italic", colSpan: 7, children: groupTitle }) }),
11318
11363
  menus.map((menu, mIdx) => {
11319
11364
  const menuIndex = value.indexOf(menu);
11320
11365
  const isDuplicate = menu.id && duplicateIds.has(menu.id);
11321
11366
  return /* @__PURE__ */ jsxs58(Table5.Tr, { bg: isDuplicate ? "red.1" : void 0, children: [
11322
- /* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsxs58(Flex10, { direction: "column", children: [
11367
+ /* @__PURE__ */ jsx111(Table5.Td, { children: /* @__PURE__ */ jsxs58(Flex10, { direction: "column", children: [
11323
11368
  menu.name,
11324
11369
  isDuplicate && /* @__PURE__ */ jsxs58(Text29, { size: "xs", color: "red", children: [
11325
11370
  "ID tr\xF9ng: ",
@@ -11328,7 +11373,7 @@ function UseCase_PermissionViewCheckTable({ value = [], onChange, isLoading }) {
11328
11373
  ] }) }),
11329
11374
  permissionKeys.map((key, pIdx) => {
11330
11375
  var _a;
11331
- return /* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(Center8, { children: /* @__PURE__ */ jsx110(
11376
+ return /* @__PURE__ */ jsx111(Table5.Td, { children: /* @__PURE__ */ jsx111(Center8, { children: /* @__PURE__ */ jsx111(
11332
11377
  Checkbox4,
11333
11378
  {
11334
11379
  checked: (_a = menu[key]) != null ? _a : false,
@@ -11343,7 +11388,7 @@ function UseCase_PermissionViewCheckTable({ value = [], onChange, isLoading }) {
11343
11388
  }
11344
11389
 
11345
11390
  // src/module/Permission/adapter/Permission_ViewCheckMenuPermission.tsx
11346
- import { jsx as jsx111 } from "react/jsx-runtime";
11391
+ import { jsx as jsx112 } from "react/jsx-runtime";
11347
11392
  function Permission_ViewCheckMenuPermission({
11348
11393
  value,
11349
11394
  onChange,
@@ -11398,7 +11443,7 @@ function Permission_ViewCheckMenuPermission({
11398
11443
  }
11399
11444
  return result;
11400
11445
  }
11401
- useEffect21(() => {
11446
+ useEffect22(() => {
11402
11447
  if (!rolePermissionQuery.data) return;
11403
11448
  const flattenMenu = extractMenusWithRootGroupTitle(menuDataRoot || []);
11404
11449
  const menuMerged = mergePermissionsType(flattenMenu, rolePermissionQuery.data);
@@ -11406,7 +11451,7 @@ function Permission_ViewCheckMenuPermission({
11406
11451
  isLoadingState[1](false);
11407
11452
  }, [rolePermissionQuery.data]);
11408
11453
  if (roleOrUserId == void 0) return "Vui l\xF2ng ch\u1ECDn Ng\u01B0\u1EDDi d\xF9ng";
11409
- return /* @__PURE__ */ jsx111(
11454
+ return /* @__PURE__ */ jsx112(
11410
11455
  UseCase_PermissionViewCheckTable,
11411
11456
  {
11412
11457
  isLoading: isLoadingState[0],
@@ -11419,20 +11464,20 @@ function Permission_ViewCheckMenuPermission({
11419
11464
  // src/modules-features/admin/core/accessControl/Feat_accessControl.tsx
11420
11465
  import { Grid as Grid4, Stack as Stack9 } from "@mantine/core";
11421
11466
  import { useState as useState20 } from "react";
11422
- import { jsx as jsx112, jsxs as jsxs59 } from "react/jsx-runtime";
11467
+ import { jsx as jsx113, jsxs as jsxs59 } from "react/jsx-runtime";
11423
11468
  function Feat_accessControl({ menuData }) {
11424
11469
  const accountIdState = useState20();
11425
11470
  const memuPermissionState = useState20();
11426
11471
  return /* @__PURE__ */ jsxs59(Grid4, { children: [
11427
- /* @__PURE__ */ jsx112(Grid4.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx112(
11472
+ /* @__PURE__ */ jsx113(Grid4.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx113(
11428
11473
  AccessControl_AccountTable,
11429
11474
  {
11430
11475
  idSelectionOne: accountIdState[0],
11431
11476
  setIdSelectionOne: accountIdState[1]
11432
11477
  }
11433
11478
  ) }),
11434
- /* @__PURE__ */ jsx112(Grid4.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsxs59(Stack9, { children: [
11435
- /* @__PURE__ */ jsx112(
11479
+ /* @__PURE__ */ jsx113(Grid4.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsxs59(Stack9, { children: [
11480
+ /* @__PURE__ */ jsx113(
11436
11481
  Permission_ViewCheckMenuPermission,
11437
11482
  {
11438
11483
  isUserPermission: true,
@@ -11442,7 +11487,7 @@ function Feat_accessControl({ menuData }) {
11442
11487
  menuDataRoot: menuData
11443
11488
  }
11444
11489
  ),
11445
- /* @__PURE__ */ jsx112(
11490
+ /* @__PURE__ */ jsx113(
11446
11491
  Permission_SaveMenuPermission,
11447
11492
  {
11448
11493
  isUserPermission: true,
@@ -11455,11 +11500,11 @@ function Feat_accessControl({ menuData }) {
11455
11500
  }
11456
11501
 
11457
11502
  // src/module/Role/adapter/Role_Table.tsx
11458
- import { useEffect as useEffect22 } from "react";
11503
+ import { useEffect as useEffect23 } from "react";
11459
11504
 
11460
11505
  // src/module/Role/usecase/UseCase_RoleTable.tsx
11461
11506
  import { useMemo as useMemo10 } from "react";
11462
- import { jsx as jsx113 } from "react/jsx-runtime";
11507
+ import { jsx as jsx114 } from "react/jsx-runtime";
11463
11508
  function UseCase_RoleTable(_a) {
11464
11509
  var rest = __objRest(_a, []);
11465
11510
  const allColumns = useMemo10(() => [
@@ -11484,7 +11529,7 @@ function UseCase_RoleTable(_a) {
11484
11529
  }
11485
11530
  }
11486
11531
  ], []);
11487
- return /* @__PURE__ */ jsx113(
11532
+ return /* @__PURE__ */ jsx114(
11488
11533
  MyDataTable,
11489
11534
  __spreadValues({
11490
11535
  columns: allColumns
@@ -11493,7 +11538,7 @@ function UseCase_RoleTable(_a) {
11493
11538
  }
11494
11539
 
11495
11540
  // src/module/Role/adapter/Role_Table.tsx
11496
- import { jsx as jsx114 } from "react/jsx-runtime";
11541
+ import { jsx as jsx115 } from "react/jsx-runtime";
11497
11542
  function Adapter_RoleTable(_a) {
11498
11543
  var rest = __objRest(_a, []);
11499
11544
  var _a2;
@@ -11501,12 +11546,12 @@ function Adapter_RoleTable(_a) {
11501
11546
  queryKey: ["roles"],
11502
11547
  axiosFn: () => service_role.getAdminRole()
11503
11548
  });
11504
- useEffect22(() => {
11549
+ useEffect23(() => {
11505
11550
  var _a3, _b;
11506
11551
  if (!adminRoleQuery.data) return;
11507
11552
  (_b = rest.setIdSelectionOne) == null ? void 0 : _b.call(rest, (_a3 = adminRoleQuery.data[0].id) == null ? void 0 : _a3.toString());
11508
11553
  }, [adminRoleQuery.data]);
11509
- return /* @__PURE__ */ jsx114(
11554
+ return /* @__PURE__ */ jsx115(
11510
11555
  UseCase_RoleTable,
11511
11556
  __spreadValues({
11512
11557
  data: ((_a2 = adminRoleQuery.data) == null ? void 0 : _a2.map((item) => __spreadValues({
@@ -11522,20 +11567,20 @@ function Adapter_RoleTable(_a) {
11522
11567
  // src/modules-features/admin/core/accessControlLevel/Feat_accessControlLevel.tsx
11523
11568
  import { Grid as Grid5, Stack as Stack10 } from "@mantine/core";
11524
11569
  import { useState as useState21 } from "react";
11525
- import { jsx as jsx115, jsxs as jsxs60 } from "react/jsx-runtime";
11570
+ import { jsx as jsx116, jsxs as jsxs60 } from "react/jsx-runtime";
11526
11571
  function Feat_accessControlLevel({ menuData }) {
11527
11572
  const accountIdState = useState21();
11528
11573
  const memuPermissionState = useState21();
11529
11574
  return /* @__PURE__ */ jsxs60(Grid5, { children: [
11530
- /* @__PURE__ */ jsx115(Grid5.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx115(
11575
+ /* @__PURE__ */ jsx116(Grid5.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx116(
11531
11576
  Adapter_RoleTable,
11532
11577
  {
11533
11578
  idSelectionOne: accountIdState[0],
11534
11579
  setIdSelectionOne: accountIdState[1]
11535
11580
  }
11536
11581
  ) }),
11537
- /* @__PURE__ */ jsx115(Grid5.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsxs60(Stack10, { children: [
11538
- /* @__PURE__ */ jsx115(
11582
+ /* @__PURE__ */ jsx116(Grid5.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsxs60(Stack10, { children: [
11583
+ /* @__PURE__ */ jsx116(
11539
11584
  Permission_ViewCheckMenuPermission,
11540
11585
  {
11541
11586
  roleOrUserId: parseInt(accountIdState[0]),
@@ -11544,7 +11589,7 @@ function Feat_accessControlLevel({ menuData }) {
11544
11589
  menuDataRoot: menuData
11545
11590
  }
11546
11591
  ),
11547
- /* @__PURE__ */ jsx115(
11592
+ /* @__PURE__ */ jsx116(
11548
11593
  Permission_SaveMenuPermission,
11549
11594
  {
11550
11595
  roleOrUserId: parseInt(accountIdState[0]),
@@ -11568,8 +11613,8 @@ var service_department = __spreadProps(__spreadValues({}, createBaseApi(CONTROLL
11568
11613
  // src/modules-features/admin/core/accountManagement/AccountManagement_CreateUpdateUser.tsx
11569
11614
  import { PasswordInput as PasswordInput2, SimpleGrid, Textarea as Textarea2 } from "@mantine/core";
11570
11615
  import { isEmail, useForm as useForm4 } from "@mantine/form";
11571
- import { useEffect as useEffect23 } from "react";
11572
- import { jsx as jsx116, jsxs as jsxs61 } from "react/jsx-runtime";
11616
+ import { useEffect as useEffect24 } from "react";
11617
+ import { jsx as jsx117, jsxs as jsxs61 } from "react/jsx-runtime";
11573
11618
  function AccountManagement_CreateUpdateUser({ values }) {
11574
11619
  var _a, _b;
11575
11620
  const projectInfoStore = useStore_ProjectInfo();
@@ -11595,7 +11640,7 @@ function AccountManagement_CreateUpdateUser({ values }) {
11595
11640
  queryKey: ["workingUnits"],
11596
11641
  axiosFn: () => service_department.getWorkingUnit()
11597
11642
  });
11598
- useEffect23(() => {
11643
+ useEffect24(() => {
11599
11644
  if (!values) return;
11600
11645
  const valueSetter = __spreadProps(__spreadValues({}, values), {
11601
11646
  accountStatus: values.isBlocked ? "0" : "1"
@@ -11622,11 +11667,11 @@ function AccountManagement_CreateUpdateUser({ values }) {
11622
11667
  },
11623
11668
  children: [
11624
11669
  /* @__PURE__ */ jsxs61(SimpleGrid, { cols: { base: 1, md: 2 }, children: [
11625
- /* @__PURE__ */ jsx116(MyTextInput2, __spreadProps(__spreadValues({ readOnly: values ? true : false, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("userName")), { withAsterisk: true })),
11626
- !values && /* @__PURE__ */ jsx116(PasswordInput2, __spreadProps(__spreadValues({ label: "M\u1EADt kh\u1EA9u", placeholder: "Nh\u1EADp m\u1EADt kh\u1EA9u" }, form.getInputProps("password")), { withAsterisk: true })),
11627
- /* @__PURE__ */ jsx116(MyTextInput2, __spreadProps(__spreadValues({ label: "H\u1ECD t\xEAn" }, form.getInputProps("fullName")), { withAsterisk: true })),
11628
- /* @__PURE__ */ jsx116(MyTextInput2, __spreadProps(__spreadValues({ label: "Email" }, form.getInputProps("email")), { withAsterisk: true })),
11629
- /* @__PURE__ */ jsx116(
11670
+ /* @__PURE__ */ jsx117(MyTextInput2, __spreadProps(__spreadValues({ readOnly: values ? true : false, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("userName")), { withAsterisk: true })),
11671
+ !values && /* @__PURE__ */ jsx117(PasswordInput2, __spreadProps(__spreadValues({ label: "M\u1EADt kh\u1EA9u", placeholder: "Nh\u1EADp m\u1EADt kh\u1EA9u" }, form.getInputProps("password")), { withAsterisk: true })),
11672
+ /* @__PURE__ */ jsx117(MyTextInput2, __spreadProps(__spreadValues({ label: "H\u1ECD t\xEAn" }, form.getInputProps("fullName")), { withAsterisk: true })),
11673
+ /* @__PURE__ */ jsx117(MyTextInput2, __spreadProps(__spreadValues({ label: "Email" }, form.getInputProps("email")), { withAsterisk: true })),
11674
+ /* @__PURE__ */ jsx117(
11630
11675
  MySelect2,
11631
11676
  {
11632
11677
  label: "\u0110\u01A1n v\u1ECB",
@@ -11641,8 +11686,8 @@ function AccountManagement_CreateUpdateUser({ values }) {
11641
11686
  onChange: (val) => form.setFieldValue("workingUnitId", Number(val))
11642
11687
  }
11643
11688
  ),
11644
- /* @__PURE__ */ jsx116(MyTextInput2, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
11645
- /* @__PURE__ */ jsx116(
11689
+ /* @__PURE__ */ jsx117(MyTextInput2, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
11690
+ /* @__PURE__ */ jsx117(
11646
11691
  MySelect2,
11647
11692
  __spreadValues({
11648
11693
  label: "Tr\u1EA1ng th\xE1i t\xE0i kho\u1EA3n",
@@ -11659,16 +11704,16 @@ function AccountManagement_CreateUpdateUser({ values }) {
11659
11704
  }, form.getInputProps("accountStatus"))
11660
11705
  )
11661
11706
  ] }),
11662
- /* @__PURE__ */ jsx116(Textarea2, __spreadValues({ label: "Ghi ch\xFA", placeholder: "Nh\u1EADp ghi ch\xFA" }, form.getInputProps("note")))
11707
+ /* @__PURE__ */ jsx117(Textarea2, __spreadValues({ label: "Ghi ch\xFA", placeholder: "Nh\u1EADp ghi ch\xFA" }, form.getInputProps("note")))
11663
11708
  ]
11664
11709
  }
11665
11710
  );
11666
11711
  }
11667
11712
 
11668
11713
  // src/modules-features/admin/core/accountManagement/AccountManagement_DeleteListUser.tsx
11669
- import { jsx as jsx117 } from "react/jsx-runtime";
11714
+ import { jsx as jsx118 } from "react/jsx-runtime";
11670
11715
  function AccountManagement_DeleteListUser({ values }) {
11671
- return /* @__PURE__ */ jsx117(
11716
+ return /* @__PURE__ */ jsx118(
11672
11717
  MyButtonDeleteList,
11673
11718
  {
11674
11719
  contextData: values.map((item) => item.code).join(", "),
@@ -11678,10 +11723,10 @@ function AccountManagement_DeleteListUser({ values }) {
11678
11723
  }
11679
11724
 
11680
11725
  // src/modules-features/admin/core/accountManagement/AccountManagement_DeleteUser.tsx
11681
- import { jsx as jsx118 } from "react/jsx-runtime";
11726
+ import { jsx as jsx119 } from "react/jsx-runtime";
11682
11727
  var ENDPOINT = "/Account/delete";
11683
11728
  function AccountManagement_DeleteUser({ id, code }) {
11684
- return /* @__PURE__ */ jsx118(
11729
+ return /* @__PURE__ */ jsx119(
11685
11730
  MyActionIconDelete,
11686
11731
  {
11687
11732
  contextData: code,
@@ -11693,8 +11738,8 @@ function AccountManagement_DeleteUser({ id, code }) {
11693
11738
  }
11694
11739
 
11695
11740
  // src/modules-features/admin/core/accountManagement/AccountManagement_ExportUsers.tsx
11696
- import { useEffect as useEffect24, useState as useState22 } from "react";
11697
- import { jsx as jsx119 } from "react/jsx-runtime";
11741
+ import { useEffect as useEffect25, useState as useState22 } from "react";
11742
+ import { jsx as jsx120 } from "react/jsx-runtime";
11698
11743
  var exportConfig = {
11699
11744
  fields: [
11700
11745
  {
@@ -11733,13 +11778,13 @@ function AccountManagement_ExportUsers({ data }) {
11733
11778
  enabled: isActive[0]
11734
11779
  }
11735
11780
  });
11736
- useEffect24(() => {
11781
+ useEffect25(() => {
11737
11782
  if (!userQuery.data) return;
11738
11783
  if (!isActive[0]) return;
11739
11784
  utils_excel_handleExport(userQuery.data, exportConfig, "danhSachTaiKhoan");
11740
11785
  isActive[1](false);
11741
11786
  }, [userQuery.data, isActive[0]]);
11742
- return /* @__PURE__ */ jsx119(
11787
+ return /* @__PURE__ */ jsx120(
11743
11788
  MyButton,
11744
11789
  {
11745
11790
  actionType: "export",
@@ -11759,7 +11804,7 @@ function AccountManagement_ExportUsers({ data }) {
11759
11804
  import { useModalsStack as useModalsStack2 } from "@mantine/core";
11760
11805
  import { notifications as notifications4 } from "@mantine/notifications";
11761
11806
  import { Workbook } from "exceljs";
11762
- import { Fragment as Fragment19, jsx as jsx120, jsxs as jsxs62 } from "react/jsx-runtime";
11807
+ import { Fragment as Fragment19, jsx as jsx121, jsxs as jsxs62 } from "react/jsx-runtime";
11763
11808
  var columnsConfig = [
11764
11809
  {
11765
11810
  fieldKey: "code",
@@ -11816,8 +11861,8 @@ function AccountManagement_Import() {
11816
11861
  mutationType: "import"
11817
11862
  });
11818
11863
  return /* @__PURE__ */ jsxs62(Fragment19, { children: [
11819
- /* @__PURE__ */ jsx120(MyButton, { actionType: "import", onClick: () => stack.open("FileImportConfig") }),
11820
- /* @__PURE__ */ jsx120(
11864
+ /* @__PURE__ */ jsx121(MyButton, { actionType: "import", onClick: () => stack.open("FileImportConfig") }),
11865
+ /* @__PURE__ */ jsx121(
11821
11866
  MyModalImport,
11822
11867
  {
11823
11868
  stack,
@@ -11862,7 +11907,7 @@ function AccountManagement_Import() {
11862
11907
  import { Button as Button19, Center as Center9, Flex as Flex11, Modal as Modal16, Text as Text30 } from "@mantine/core";
11863
11908
  import { useDisclosure as useDisclosure19 } from "@mantine/hooks";
11864
11909
  import { IconRefresh as IconRefresh3 } from "@tabler/icons-react";
11865
- import { Fragment as Fragment20, jsx as jsx121, jsxs as jsxs63 } from "react/jsx-runtime";
11910
+ import { Fragment as Fragment20, jsx as jsx122, jsxs as jsxs63 } from "react/jsx-runtime";
11866
11911
  function AccountManagement_SyncUserFormEdusoftnet() {
11867
11912
  const disc = useDisclosure19();
11868
11913
  const discConfirm = useDisclosure19();
@@ -11877,19 +11922,19 @@ function AccountManagement_SyncUserFormEdusoftnet() {
11877
11922
  }
11878
11923
  });
11879
11924
  return /* @__PURE__ */ jsxs63(Fragment20, { children: [
11880
- /* @__PURE__ */ jsx121(Button19, { color: "green", loading: mutation.isPending, leftSection: /* @__PURE__ */ jsx121(IconRefresh3, {}), onClick: () => {
11925
+ /* @__PURE__ */ jsx122(Button19, { color: "green", loading: mutation.isPending, leftSection: /* @__PURE__ */ jsx122(IconRefresh3, {}), onClick: () => {
11881
11926
  discConfirm[1].open();
11882
11927
  }, children: "\u0110\u1ED3ng b\u1ED9 t\u1EEB Edusoft.Net" }),
11883
- /* @__PURE__ */ jsx121(Modal16, { title: "X\xE1c nh\u1EADn \u0111\u1ED3ng b\u1ED9", opened: discConfirm[0], onClose: discConfirm[1].close, children: /* @__PURE__ */ jsxs63(Flex11, { gap: "md", children: [
11884
- /* @__PURE__ */ jsx121(MyButton, { actionType: "cancel", fullWidth: true }),
11885
- /* @__PURE__ */ jsx121(MyButton, { actionType: "sync", onClick: () => {
11928
+ /* @__PURE__ */ jsx122(Modal16, { title: "X\xE1c nh\u1EADn \u0111\u1ED3ng b\u1ED9", opened: discConfirm[0], onClose: discConfirm[1].close, children: /* @__PURE__ */ jsxs63(Flex11, { gap: "md", children: [
11929
+ /* @__PURE__ */ jsx122(MyButton, { actionType: "cancel", fullWidth: true }),
11930
+ /* @__PURE__ */ jsx122(MyButton, { actionType: "sync", onClick: () => {
11886
11931
  discConfirm[1].close();
11887
11932
  mutation.mutate();
11888
11933
  }, fullWidth: true, children: "B\u1EAFt \u0111\u1EA7u \u0111\u1ED3ng b\u1ED9" })
11889
11934
  ] }) }),
11890
11935
  /* @__PURE__ */ jsxs63(Modal16, { title: "Th\xF4ng b\xE1o \u0111\u1ED3ng b\u1ED9", onClose: disc[1].close, opened: disc[0], children: [
11891
- /* @__PURE__ */ jsx121(Text30, { children: `\u0110\xE3 \u0111\u1ED3ng b\u1ED9 t\xE0i kho\u1EA3n ng\u01B0\u1EDDi d\xF9ng t\u1EEB h\u1EC7 th\u1ED1ng Edusoft.NET v\u1EDBi tr\u1EA1ng th\xE1i "\u0110ang ho\u1EA1t \u0111\u1ED9ng". B\u1EA1n vui l\xF2ng ki\u1EC3m tra l\u1EA1i` }),
11892
- /* @__PURE__ */ jsx121(Center9, { children: /* @__PURE__ */ jsx121(Button19, { onClick: disc[1].close, children: "\u0110\u1ED3ng \xFD" }) })
11936
+ /* @__PURE__ */ jsx122(Text30, { children: `\u0110\xE3 \u0111\u1ED3ng b\u1ED9 t\xE0i kho\u1EA3n ng\u01B0\u1EDDi d\xF9ng t\u1EEB h\u1EC7 th\u1ED1ng Edusoft.NET v\u1EDBi tr\u1EA1ng th\xE1i "\u0110ang ho\u1EA1t \u0111\u1ED9ng". B\u1EA1n vui l\xF2ng ki\u1EC3m tra l\u1EA1i` }),
11937
+ /* @__PURE__ */ jsx122(Center9, { children: /* @__PURE__ */ jsx122(Button19, { onClick: disc[1].close, children: "\u0110\u1ED3ng \xFD" }) })
11893
11938
  ] })
11894
11939
  ] });
11895
11940
  }
@@ -11898,7 +11943,7 @@ function AccountManagement_SyncUserFormEdusoftnet() {
11898
11943
  import { Badge as Badge6, Group as Group33, TextInput as TextInput6 } from "@mantine/core";
11899
11944
  import { useDebouncedValue as useDebouncedValue2 } from "@mantine/hooks";
11900
11945
  import { IconSearch as IconSearch5 } from "@tabler/icons-react";
11901
- import { useEffect as useEffect25, useMemo as useMemo11, useState as useState23 } from "react";
11946
+ import { useEffect as useEffect26, useMemo as useMemo11, useState as useState23 } from "react";
11902
11947
 
11903
11948
  // src/modules-features/admin/core/accountManagement/useStore_AccountManagement.ts
11904
11949
  var useStore4 = createGenericStore2({
@@ -11910,7 +11955,7 @@ function useStore_AccountManagement() {
11910
11955
  }
11911
11956
 
11912
11957
  // src/modules-features/admin/core/accountManagement/AccountManagement_ReadUser.tsx
11913
- import { jsx as jsx122, jsxs as jsxs64 } from "react/jsx-runtime";
11958
+ import { jsx as jsx123, jsxs as jsxs64 } from "react/jsx-runtime";
11914
11959
  function AccountManagement_ReadUser() {
11915
11960
  var _a;
11916
11961
  const paginationState = useState23({ pageIndex: 0, pageSize: 10 });
@@ -11959,7 +12004,7 @@ function AccountManagement_ReadUser() {
11959
12004
  accessorKey: "isBlocked",
11960
12005
  accessorFn: (row) => row.isBlocked ? "Kh\xF3a t\xE0i kho\u1EA3n" : "\u0110ang ho\u1EA1t \u0111\u1ED9ng",
11961
12006
  Cell: ({ row }) => {
11962
- return row.original.isBlocked ? /* @__PURE__ */ jsx122(Badge6, { color: "gray", children: "Kh\xF3a t\xE0i kho\u1EA3n" }) : /* @__PURE__ */ jsx122(Badge6, { color: "green", children: "\u0110ang ho\u1EA1t \u0111\u1ED9ng" });
12007
+ return row.original.isBlocked ? /* @__PURE__ */ jsx123(Badge6, { color: "gray", children: "Kh\xF3a t\xE0i kho\u1EA3n" }) : /* @__PURE__ */ jsx123(Badge6, { color: "green", children: "\u0110ang ho\u1EA1t \u0111\u1ED9ng" });
11963
12008
  }
11964
12009
  }
11965
12010
  ];
@@ -11974,11 +12019,11 @@ function AccountManagement_ReadUser() {
11974
12019
  }
11975
12020
  return baseColumns;
11976
12021
  }, [(_a = accountManagementStore.state) == null ? void 0 : _a.isRequireSkillCenter]);
11977
- useEffect25(() => {
12022
+ useEffect26(() => {
11978
12023
  setGlobalFilter(debouncedSearch);
11979
12024
  paginationState[1]({ pageIndex: 0, pageSize: paginationState[0].pageSize });
11980
12025
  }, [debouncedSearch]);
11981
- return /* @__PURE__ */ jsx122(
12026
+ return /* @__PURE__ */ jsx123(
11982
12027
  MyDataTable,
11983
12028
  {
11984
12029
  enableRowSelection: true,
@@ -11992,27 +12037,27 @@ function AccountManagement_ReadUser() {
11992
12037
  data: AllUserQuery.data || [],
11993
12038
  renderTopToolbarCustomActions: ({ table }) => {
11994
12039
  return /* @__PURE__ */ jsxs64(Group33, { children: [
11995
- /* @__PURE__ */ jsx122(
12040
+ /* @__PURE__ */ jsx123(
11996
12041
  TextInput6,
11997
12042
  {
11998
12043
  w: "330",
11999
12044
  placeholder: "T\xECm theo t\xE0i kho\u1EA3n, email ho\u1EB7c h\u1ECD t\xEAn",
12000
- leftSection: /* @__PURE__ */ jsx122(IconSearch5, { size: 16 }),
12045
+ leftSection: /* @__PURE__ */ jsx123(IconSearch5, { size: 16 }),
12001
12046
  value: searchInput,
12002
12047
  onChange: (e4) => setSearchInput(e4.currentTarget.value)
12003
12048
  }
12004
12049
  ),
12005
- /* @__PURE__ */ jsx122(AccountManagement_CreateUpdateUser, {}),
12006
- /* @__PURE__ */ jsx122(AccountManagement_Import, {}),
12007
- /* @__PURE__ */ jsx122(AccountManagement_ExportUsers, { data: table.getSelectedRowModel().flatRows.map((item) => item.original) }),
12008
- /* @__PURE__ */ jsx122(AccountManagement_DeleteListUser, { values: table.getSelectedRowModel().flatRows.flatMap((item) => item.original) }),
12009
- /* @__PURE__ */ jsx122(AccountManagement_SyncUserFormEdusoftnet, {})
12050
+ /* @__PURE__ */ jsx123(AccountManagement_CreateUpdateUser, {}),
12051
+ /* @__PURE__ */ jsx123(AccountManagement_Import, {}),
12052
+ /* @__PURE__ */ jsx123(AccountManagement_ExportUsers, { data: table.getSelectedRowModel().flatRows.map((item) => item.original) }),
12053
+ /* @__PURE__ */ jsx123(AccountManagement_DeleteListUser, { values: table.getSelectedRowModel().flatRows.flatMap((item) => item.original) }),
12054
+ /* @__PURE__ */ jsx123(AccountManagement_SyncUserFormEdusoftnet, {})
12010
12055
  ] });
12011
12056
  },
12012
12057
  renderRowActions: ({ row }) => {
12013
12058
  return /* @__PURE__ */ jsxs64(MyCenterFull, { children: [
12014
- /* @__PURE__ */ jsx122(AccountManagement_CreateUpdateUser, { values: row.original }),
12015
- /* @__PURE__ */ jsx122(AccountManagement_DeleteUser, { id: row.original.id, code: row.original.code })
12059
+ /* @__PURE__ */ jsx123(AccountManagement_CreateUpdateUser, { values: row.original }),
12060
+ /* @__PURE__ */ jsx123(AccountManagement_DeleteUser, { id: row.original.id, code: row.original.code })
12016
12061
  ] });
12017
12062
  }
12018
12063
  }
@@ -12047,14 +12092,14 @@ var mockUserData = [
12047
12092
  ];
12048
12093
 
12049
12094
  // src/modules-features/admin/core/accountManagement/F_accountManagement.tsx
12050
- import { useEffect as useEffect26 } from "react";
12051
- import { jsx as jsx123 } from "react/jsx-runtime";
12095
+ import { useEffect as useEffect27 } from "react";
12096
+ import { jsx as jsx124 } from "react/jsx-runtime";
12052
12097
  function F_accountManagement({ isRequireSkillCenter = false }) {
12053
12098
  const store = useStore_AccountManagement();
12054
- useEffect26(() => {
12099
+ useEffect27(() => {
12055
12100
  store.setProperty("isRequireSkillCenter", isRequireSkillCenter);
12056
12101
  }, []);
12057
- return /* @__PURE__ */ jsx123(AccountManagement_ReadUser, {});
12102
+ return /* @__PURE__ */ jsx124(AccountManagement_ReadUser, {});
12058
12103
  }
12059
12104
 
12060
12105
  // src/api/services/service_codeFormula.ts
@@ -12064,7 +12109,7 @@ var service_codeFormula = __spreadValues({}, createBaseApi(CONTROLLER7, baseAxio
12064
12109
  // src/modules-features/admin/core/CodeFormula/CodeFormulaCreate.tsx
12065
12110
  import { Select as Select6 } from "@mantine/core";
12066
12111
  import { useForm as useForm5 } from "@mantine/form";
12067
- import { jsx as jsx124, jsxs as jsxs65 } from "react/jsx-runtime";
12112
+ import { jsx as jsx125, jsxs as jsxs65 } from "react/jsx-runtime";
12068
12113
  function CodeFormulaCreate({
12069
12114
  businessTypeEnum,
12070
12115
  objectTypeEnum,
@@ -12102,21 +12147,21 @@ function CodeFormulaCreate({
12102
12147
  isEnabled: true
12103
12148
  })),
12104
12149
  children: [
12105
- /* @__PURE__ */ jsx124(
12150
+ /* @__PURE__ */ jsx125(
12106
12151
  MyTextInput2,
12107
12152
  __spreadValues({
12108
12153
  withAsterisk: true,
12109
12154
  label: "M\xE3 b\u1ED9 \u0111\u1EBFm"
12110
12155
  }, form.getInputProps("code"))
12111
12156
  ),
12112
- /* @__PURE__ */ jsx124(
12157
+ /* @__PURE__ */ jsx125(
12113
12158
  MyTextInput2,
12114
12159
  __spreadValues({
12115
12160
  withAsterisk: true,
12116
12161
  label: "T\xEAn b\u1ED9 \u0111\u1EBFm"
12117
12162
  }, form.getInputProps("name"))
12118
12163
  ),
12119
- businessTypeEnum && /* @__PURE__ */ jsx124(
12164
+ businessTypeEnum && /* @__PURE__ */ jsx125(
12120
12165
  Select6,
12121
12166
  {
12122
12167
  clearable: false,
@@ -12130,7 +12175,7 @@ function CodeFormulaCreate({
12130
12175
  )
12131
12176
  }
12132
12177
  ),
12133
- objectTypeEnum && /* @__PURE__ */ jsx124(
12178
+ objectTypeEnum && /* @__PURE__ */ jsx125(
12134
12179
  Select6,
12135
12180
  {
12136
12181
  clearable: false,
@@ -12144,7 +12189,7 @@ function CodeFormulaCreate({
12144
12189
  )
12145
12190
  }
12146
12191
  ),
12147
- repeatCycleEnum && /* @__PURE__ */ jsx124(
12192
+ repeatCycleEnum && /* @__PURE__ */ jsx125(
12148
12193
  Select6,
12149
12194
  {
12150
12195
  clearable: false,
@@ -12158,15 +12203,15 @@ function CodeFormulaCreate({
12158
12203
  )
12159
12204
  }
12160
12205
  ),
12161
- /* @__PURE__ */ jsx124(MyTextInput2, __spreadValues({ label: "Ti\u1EC1n t\u1ED1" }, form.getInputProps("prefix"))),
12162
- /* @__PURE__ */ jsx124(MyTextInput2, __spreadValues({ label: "H\u1EADu t\u1ED1" }, form.getInputProps("suffix"))),
12163
- /* @__PURE__ */ jsx124(
12206
+ /* @__PURE__ */ jsx125(MyTextInput2, __spreadValues({ label: "Ti\u1EC1n t\u1ED1" }, form.getInputProps("prefix"))),
12207
+ /* @__PURE__ */ jsx125(MyTextInput2, __spreadValues({ label: "H\u1EADu t\u1ED1" }, form.getInputProps("suffix"))),
12208
+ /* @__PURE__ */ jsx125(
12164
12209
  MyNumberInput,
12165
12210
  __spreadValues({
12166
12211
  label: "Chi\u1EC1u d\xE0i"
12167
12212
  }, form.getInputProps("length"))
12168
12213
  ),
12169
- /* @__PURE__ */ jsx124(
12214
+ /* @__PURE__ */ jsx125(
12170
12215
  MyCheckbox,
12171
12216
  __spreadProps(__spreadValues({
12172
12217
  label: "C\xF3 d\xF9ng s\u1ED1 0"
@@ -12180,15 +12225,15 @@ function CodeFormulaCreate({
12180
12225
  }
12181
12226
 
12182
12227
  // src/modules-features/admin/core/CodeFormula/CodeFormulaDelete.tsx
12183
- import { jsx as jsx125 } from "react/jsx-runtime";
12228
+ import { jsx as jsx126 } from "react/jsx-runtime";
12184
12229
  function CodeFormulaDelete({ id, code }) {
12185
- return /* @__PURE__ */ jsx125(MyActionIconDelete, { contextData: code, onSubmit: () => service_codeFormula.delete(id) });
12230
+ return /* @__PURE__ */ jsx126(MyActionIconDelete, { contextData: code, onSubmit: () => service_codeFormula.delete(id) });
12186
12231
  }
12187
12232
 
12188
12233
  // src/modules-features/admin/core/CodeFormula/CodeFormulaDeleteList.tsx
12189
- import { jsx as jsx126 } from "react/jsx-runtime";
12234
+ import { jsx as jsx127 } from "react/jsx-runtime";
12190
12235
  function CodeFormulaDeleteList({ values }) {
12191
- return /* @__PURE__ */ jsx126(
12236
+ return /* @__PURE__ */ jsx127(
12192
12237
  MyButtonDeleteList,
12193
12238
  {
12194
12239
  buttonProps: {
@@ -12208,8 +12253,8 @@ import { useMemo as useMemo12, useState as useState24 } from "react";
12208
12253
  // src/modules-features/admin/core/CodeFormula/CodeFormulaUpdate.tsx
12209
12254
  import { Select as Select7 } from "@mantine/core";
12210
12255
  import { useForm as useForm6 } from "@mantine/form";
12211
- import { useEffect as useEffect27 } from "react";
12212
- import { jsx as jsx127, jsxs as jsxs66 } from "react/jsx-runtime";
12256
+ import { useEffect as useEffect28 } from "react";
12257
+ import { jsx as jsx128, jsxs as jsxs66 } from "react/jsx-runtime";
12213
12258
  function CodeFormulaUpdate({
12214
12259
  data,
12215
12260
  businessTypeEnum,
@@ -12227,7 +12272,7 @@ function CodeFormulaUpdate({
12227
12272
  length: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
12228
12273
  }
12229
12274
  });
12230
- useEffect27(() => {
12275
+ useEffect28(() => {
12231
12276
  if (data) {
12232
12277
  form.setValues(data);
12233
12278
  }
@@ -12254,7 +12299,7 @@ function CodeFormulaUpdate({
12254
12299
  return service_codeFormula.update(body);
12255
12300
  },
12256
12301
  children: [
12257
- /* @__PURE__ */ jsx127(
12302
+ /* @__PURE__ */ jsx128(
12258
12303
  MyTextInput2,
12259
12304
  __spreadValues({
12260
12305
  withAsterisk: true,
@@ -12262,14 +12307,14 @@ function CodeFormulaUpdate({
12262
12307
  label: "M\xE3 b\u1ED9 \u0111\u1EBFm"
12263
12308
  }, form.getInputProps("code"))
12264
12309
  ),
12265
- /* @__PURE__ */ jsx127(
12310
+ /* @__PURE__ */ jsx128(
12266
12311
  MyTextInput2,
12267
12312
  __spreadValues({
12268
12313
  withAsterisk: true,
12269
12314
  label: "T\xEAn b\u1ED9 \u0111\u1EBFm"
12270
12315
  }, form.getInputProps("name"))
12271
12316
  ),
12272
- businessTypeEnum && /* @__PURE__ */ jsx127(
12317
+ businessTypeEnum && /* @__PURE__ */ jsx128(
12273
12318
  Select7,
12274
12319
  {
12275
12320
  clearable: false,
@@ -12283,7 +12328,7 @@ function CodeFormulaUpdate({
12283
12328
  )
12284
12329
  }
12285
12330
  ),
12286
- objectTypeEnum && /* @__PURE__ */ jsx127(
12331
+ objectTypeEnum && /* @__PURE__ */ jsx128(
12287
12332
  Select7,
12288
12333
  {
12289
12334
  clearable: false,
@@ -12297,7 +12342,7 @@ function CodeFormulaUpdate({
12297
12342
  )
12298
12343
  }
12299
12344
  ),
12300
- repeatCycleEnum && /* @__PURE__ */ jsx127(
12345
+ repeatCycleEnum && /* @__PURE__ */ jsx128(
12301
12346
  Select7,
12302
12347
  {
12303
12348
  clearable: false,
@@ -12311,25 +12356,25 @@ function CodeFormulaUpdate({
12311
12356
  )
12312
12357
  }
12313
12358
  ),
12314
- /* @__PURE__ */ jsx127(
12359
+ /* @__PURE__ */ jsx128(
12315
12360
  MyTextInput2,
12316
12361
  __spreadValues({
12317
12362
  label: "Ti\u1EC1n t\u1ED1"
12318
12363
  }, form.getInputProps("prefix"))
12319
12364
  ),
12320
- /* @__PURE__ */ jsx127(
12365
+ /* @__PURE__ */ jsx128(
12321
12366
  MyTextInput2,
12322
12367
  __spreadValues({
12323
12368
  label: "H\u1EADu t\u1ED1"
12324
12369
  }, form.getInputProps("suffix"))
12325
12370
  ),
12326
- /* @__PURE__ */ jsx127(
12371
+ /* @__PURE__ */ jsx128(
12327
12372
  MyNumberInput,
12328
12373
  __spreadValues({
12329
12374
  label: "Chi\u1EC1u d\xE0i"
12330
12375
  }, form.getInputProps("length"))
12331
12376
  ),
12332
- /* @__PURE__ */ jsx127(
12377
+ /* @__PURE__ */ jsx128(
12333
12378
  MyCheckbox,
12334
12379
  __spreadProps(__spreadValues({
12335
12380
  label: "C\xF3 d\xF9ng s\u1ED1 0"
@@ -12343,7 +12388,7 @@ function CodeFormulaUpdate({
12343
12388
  }
12344
12389
 
12345
12390
  // src/modules-features/admin/core/CodeFormula/CodeFormulaRead.tsx
12346
- import { jsx as jsx128, jsxs as jsxs67 } from "react/jsx-runtime";
12391
+ import { jsx as jsx129, jsxs as jsxs67 } from "react/jsx-runtime";
12347
12392
  function CodeFormulaRead({
12348
12393
  businessTypeEnum,
12349
12394
  objectTypeEnum,
@@ -12402,7 +12447,7 @@ function CodeFormulaRead({
12402
12447
  }
12403
12448
  return cols;
12404
12449
  }, [businessTypeEnum, objectTypeEnum, repeatCycleEnum]);
12405
- return /* @__PURE__ */ jsx128(
12450
+ return /* @__PURE__ */ jsx129(
12406
12451
  MyDataTable,
12407
12452
  {
12408
12453
  isLoading: codeConfigQuery.isLoading,
@@ -12413,14 +12458,14 @@ function CodeFormulaRead({
12413
12458
  exportAble: true,
12414
12459
  data: codeConfigQuery.data || [],
12415
12460
  renderTopToolbarCustomActions: ({ table }) => /* @__PURE__ */ jsxs67(Group34, { children: [
12416
- /* @__PURE__ */ jsx128(CodeFormulaCreate, { businessTypeEnum, objectTypeEnum, repeatCycleEnum }),
12417
- /* @__PURE__ */ jsx128(
12461
+ /* @__PURE__ */ jsx129(CodeFormulaCreate, { businessTypeEnum, objectTypeEnum, repeatCycleEnum }),
12462
+ /* @__PURE__ */ jsx129(
12418
12463
  CodeFormulaDeleteList,
12419
12464
  {
12420
12465
  values: table.getSelectedRowModel().flatRows.map((item) => item.original)
12421
12466
  }
12422
12467
  ),
12423
- /* @__PURE__ */ jsx128(
12468
+ /* @__PURE__ */ jsx129(
12424
12469
  AQButtonCreateByImportFile,
12425
12470
  {
12426
12471
  setImportedData: setImportData,
@@ -12433,8 +12478,8 @@ function CodeFormulaRead({
12433
12478
  )
12434
12479
  ] }),
12435
12480
  renderRowActions: ({ row }) => /* @__PURE__ */ jsxs67(MyCenterFull, { children: [
12436
- /* @__PURE__ */ jsx128(CodeFormulaUpdate, { data: row.original, businessTypeEnum, objectTypeEnum, repeatCycleEnum }),
12437
- /* @__PURE__ */ jsx128(
12481
+ /* @__PURE__ */ jsx129(CodeFormulaUpdate, { data: row.original, businessTypeEnum, objectTypeEnum, repeatCycleEnum }),
12482
+ /* @__PURE__ */ jsx129(
12438
12483
  CodeFormulaDelete,
12439
12484
  {
12440
12485
  id: row.original.id,
@@ -12468,11 +12513,11 @@ var ENUM_REPEAT_CYCLE = /* @__PURE__ */ ((ENUM_REPEAT_CYCLE2) => {
12468
12513
 
12469
12514
  // src/modules-features/admin/core/departmentList/feature/departmentCreateOrUpdateFeature.tsx
12470
12515
  import { useForm as useForm8 } from "@mantine/form";
12471
- import { useEffect as useEffect28, useState as useState25 } from "react";
12516
+ import { useEffect as useEffect29, useState as useState25 } from "react";
12472
12517
 
12473
12518
  // src/modules-features/admin/core/departmentList/view/departmentCreateOrUpdate.tsx
12474
12519
  import { Checkbox as Checkbox5, Textarea as Textarea3, TextInput as TextInput7 } from "@mantine/core";
12475
- import { jsx as jsx129, jsxs as jsxs68 } from "react/jsx-runtime";
12520
+ import { jsx as jsx130, jsxs as jsxs68 } from "react/jsx-runtime";
12476
12521
  var type = {
12477
12522
  1: "Khoa",
12478
12523
  2: "B\u1ED9 m\xF4n",
@@ -12507,7 +12552,7 @@ function DepartmentCreateOrUpdate({
12507
12552
  form,
12508
12553
  onSubmit,
12509
12554
  children: [
12510
- /* @__PURE__ */ jsx129(
12555
+ /* @__PURE__ */ jsx130(
12511
12556
  TextInput7,
12512
12557
  __spreadValues({
12513
12558
  withAsterisk: true,
@@ -12516,7 +12561,7 @@ function DepartmentCreateOrUpdate({
12516
12561
  placeholder: "\u0110i\u1EC1n m\xE3 \u0111\u01A1n v\u1ECB"
12517
12562
  }, form.getInputProps("code"))
12518
12563
  ),
12519
- /* @__PURE__ */ jsx129(
12564
+ /* @__PURE__ */ jsx130(
12520
12565
  TextInput7,
12521
12566
  __spreadValues({
12522
12567
  withAsterisk: true,
@@ -12524,7 +12569,7 @@ function DepartmentCreateOrUpdate({
12524
12569
  placeholder: "\u0110i\u1EC1n t\xEAn \u0111\u01A1n v\u1ECB"
12525
12570
  }, form.getInputProps("name"))
12526
12571
  ),
12527
- /* @__PURE__ */ jsx129(
12572
+ /* @__PURE__ */ jsx130(
12528
12573
  MySelect2,
12529
12574
  {
12530
12575
  data: getDeoartmentTypeData(),
@@ -12535,7 +12580,7 @@ function DepartmentCreateOrUpdate({
12535
12580
  error: form.errors.type
12536
12581
  }
12537
12582
  ),
12538
- /* @__PURE__ */ jsx129(
12583
+ /* @__PURE__ */ jsx130(
12539
12584
  MySelect2,
12540
12585
  {
12541
12586
  clearable: true,
@@ -12546,14 +12591,14 @@ function DepartmentCreateOrUpdate({
12546
12591
  error: form.errors.unitId
12547
12592
  }
12548
12593
  ),
12549
- /* @__PURE__ */ jsx129(
12594
+ /* @__PURE__ */ jsx130(
12550
12595
  Textarea3,
12551
12596
  __spreadValues({
12552
12597
  label: "Ghi ch\xFA",
12553
12598
  placeholder: "Ghi ch\xFA"
12554
12599
  }, form.getInputProps("note"))
12555
12600
  ),
12556
- /* @__PURE__ */ jsx129(
12601
+ /* @__PURE__ */ jsx130(
12557
12602
  Checkbox5,
12558
12603
  {
12559
12604
  label: "\u0110\u01A1n v\u1ECB ngo\xE0i tr\u01B0\u1EDDng",
@@ -12569,7 +12614,7 @@ function DepartmentCreateOrUpdate({
12569
12614
  }
12570
12615
 
12571
12616
  // src/modules-features/admin/core/departmentList/feature/departmentCreateOrUpdateFeature.tsx
12572
- import { jsx as jsx130 } from "react/jsx-runtime";
12617
+ import { jsx as jsx131 } from "react/jsx-runtime";
12573
12618
  var getDefaultInitialValues = () => ({
12574
12619
  id: 0,
12575
12620
  code: "",
@@ -12604,12 +12649,12 @@ function DepartmentCreateOrUpdateFeature({ mode, data }) {
12604
12649
  queryKey: ["UnitRead"],
12605
12650
  axiosFn: () => service_department.getAll()
12606
12651
  });
12607
- useEffect28(() => {
12652
+ useEffect29(() => {
12608
12653
  if (isCreateMode) {
12609
12654
  form_multiple.setValues({ importedData: fileData });
12610
12655
  }
12611
12656
  }, [fileData, isCreateMode]);
12612
- useEffect28(() => {
12657
+ useEffect29(() => {
12613
12658
  var _a, _b;
12614
12659
  if (isUpdateMode && data) {
12615
12660
  const sanitizedData = __spreadProps(__spreadValues({}, data), {
@@ -12660,7 +12705,7 @@ function DepartmentCreateOrUpdateFeature({ mode, data }) {
12660
12705
  }));
12661
12706
  }
12662
12707
  };
12663
- return /* @__PURE__ */ jsx130(
12708
+ return /* @__PURE__ */ jsx131(
12664
12709
  DepartmentCreateOrUpdate,
12665
12710
  {
12666
12711
  mode,
@@ -12675,8 +12720,8 @@ function DepartmentCreateOrUpdateFeature({ mode, data }) {
12675
12720
 
12676
12721
  // src/modules-features/admin/core/departmentList/feature/DepartmentExport.tsx
12677
12722
  import { useDisclosure as useDisclosure20 } from "@mantine/hooks";
12678
- import { useEffect as useEffect29, useState as useState26 } from "react";
12679
- import { jsx as jsx131 } from "react/jsx-runtime";
12723
+ import { useEffect as useEffect30, useState as useState26 } from "react";
12724
+ import { jsx as jsx132 } from "react/jsx-runtime";
12680
12725
  var type2 = {
12681
12726
  1: "Khoa",
12682
12727
  2: "B\u1ED9 m\xF4n",
@@ -12712,7 +12757,7 @@ function DepartmentExport({ data }) {
12712
12757
  // không fetch tự động
12713
12758
  }
12714
12759
  });
12715
- useEffect29(() => {
12760
+ useEffect30(() => {
12716
12761
  if (!userQuery.data) return;
12717
12762
  utils_excel_handleExport(userQuery.data.map((item) => {
12718
12763
  var _a;
@@ -12722,7 +12767,7 @@ function DepartmentExport({ data }) {
12722
12767
  }), exportConfig2, "export danh s\xE1ch \u0111\u01A1n v\u1ECB");
12723
12768
  active[1](false);
12724
12769
  }, [userQuery.data, active[0]]);
12725
- return /* @__PURE__ */ jsx131(
12770
+ return /* @__PURE__ */ jsx132(
12726
12771
  MyButton,
12727
12772
  {
12728
12773
  actionType: "export",
@@ -12748,19 +12793,19 @@ import { Group as Group35 } from "@mantine/core";
12748
12793
  import { useMemo as useMemo13 } from "react";
12749
12794
 
12750
12795
  // src/modules-features/admin/core/departmentList/view/departmentDelete.tsx
12751
- import { jsx as jsx132 } from "react/jsx-runtime";
12796
+ import { jsx as jsx133 } from "react/jsx-runtime";
12752
12797
  function DepartmentDelete({ id }) {
12753
- return /* @__PURE__ */ jsx132(MyActionIconDelete, { onSubmit: async () => {
12798
+ return /* @__PURE__ */ jsx133(MyActionIconDelete, { onSubmit: async () => {
12754
12799
  return service_department.delete(id);
12755
12800
  } });
12756
12801
  }
12757
12802
 
12758
12803
  // src/modules-features/admin/core/departmentList/view/departmentDeleteList.tsx
12759
- import { jsx as jsx133 } from "react/jsx-runtime";
12804
+ import { jsx as jsx134 } from "react/jsx-runtime";
12760
12805
  function DepartmentDeleteList({
12761
12806
  values
12762
12807
  }) {
12763
- return /* @__PURE__ */ jsx133(
12808
+ return /* @__PURE__ */ jsx134(
12764
12809
  MyButtonDeleteList,
12765
12810
  {
12766
12811
  contextData: values.map((item) => item.code).join(","),
@@ -12772,7 +12817,7 @@ function DepartmentDeleteList({
12772
12817
  }
12773
12818
 
12774
12819
  // src/modules-features/admin/core/departmentList/view/departmentTable.tsx
12775
- import { jsx as jsx134 } from "react/jsx-runtime";
12820
+ import { jsx as jsx135 } from "react/jsx-runtime";
12776
12821
  function DepartmentTable({
12777
12822
  isLoading,
12778
12823
  isError,
@@ -12782,7 +12827,7 @@ function DepartmentTable({
12782
12827
  renderRowActions,
12783
12828
  renderTopToolbarCustomActions
12784
12829
  }) {
12785
- return /* @__PURE__ */ jsx134(MyFlexColumn2, { children: /* @__PURE__ */ jsx134(
12830
+ return /* @__PURE__ */ jsx135(MyFlexColumn2, { children: /* @__PURE__ */ jsx135(
12786
12831
  MyDataTable,
12787
12832
  {
12788
12833
  isLoading,
@@ -12798,7 +12843,7 @@ function DepartmentTable({
12798
12843
  }
12799
12844
 
12800
12845
  // src/modules-features/admin/core/departmentList/feature/departmentFeature.tsx
12801
- import { jsx as jsx135, jsxs as jsxs69 } from "react/jsx-runtime";
12846
+ import { jsx as jsx136, jsxs as jsxs69 } from "react/jsx-runtime";
12802
12847
  var type3 = {
12803
12848
  1: "Khoa",
12804
12849
  2: "B\u1ED9 m\xF4n",
@@ -12831,7 +12876,7 @@ function DepartmentFeature() {
12831
12876
  {
12832
12877
  header: "\u0110\u01A1n v\u1ECB ngo\xE0i tr\u01B0\u1EDDng",
12833
12878
  accessorKey: "isWorkingUnit",
12834
- Cell: ({ row }) => /* @__PURE__ */ jsx135(MyCenterFull, { children: /* @__PURE__ */ jsx135(CustomThemeIconSquareCheck, { checked: !row.original.isWorkingUnit }) })
12879
+ Cell: ({ row }) => /* @__PURE__ */ jsx136(MyCenterFull, { children: /* @__PURE__ */ jsx136(CustomThemeIconSquareCheck, { checked: !row.original.isWorkingUnit }) })
12835
12880
  },
12836
12881
  {
12837
12882
  header: "Ng\u01B0\u1EDDi c\u1EADp nh\u1EADt",
@@ -12852,7 +12897,7 @@ function DepartmentFeature() {
12852
12897
  { fieldName: "affiliated", header: "Tr\u1EF1c thu\u1ED9c" }
12853
12898
  ]
12854
12899
  };
12855
- return /* @__PURE__ */ jsx135(
12900
+ return /* @__PURE__ */ jsx136(
12856
12901
  DepartmentTable,
12857
12902
  {
12858
12903
  columns,
@@ -12861,13 +12906,13 @@ function DepartmentFeature() {
12861
12906
  unitData: query.data || [],
12862
12907
  exportConfig: exportConfig4,
12863
12908
  renderTopToolbarCustomActions: ({ table }) => /* @__PURE__ */ jsxs69(Group35, { children: [
12864
- /* @__PURE__ */ jsx135(DepartmentCreateOrUpdateFeature, { mode: "create" }),
12865
- /* @__PURE__ */ jsx135(DepartmentExport, { data: table.getSelectedRowModel().flatRows.map((item) => item.original) }),
12866
- /* @__PURE__ */ jsx135(DepartmentDeleteList, { values: table.getSelectedRowModel().flatRows.flatMap((item) => item.original) })
12909
+ /* @__PURE__ */ jsx136(DepartmentCreateOrUpdateFeature, { mode: "create" }),
12910
+ /* @__PURE__ */ jsx136(DepartmentExport, { data: table.getSelectedRowModel().flatRows.map((item) => item.original) }),
12911
+ /* @__PURE__ */ jsx136(DepartmentDeleteList, { values: table.getSelectedRowModel().flatRows.flatMap((item) => item.original) })
12867
12912
  ] }),
12868
12913
  renderRowActions: ({ row }) => /* @__PURE__ */ jsxs69(MyCenterFull, { children: [
12869
- /* @__PURE__ */ jsx135(DepartmentCreateOrUpdateFeature, { mode: "update", data: row.original }),
12870
- /* @__PURE__ */ jsx135(DepartmentDelete, { id: row.original.id })
12914
+ /* @__PURE__ */ jsx136(DepartmentCreateOrUpdateFeature, { mode: "update", data: row.original }),
12915
+ /* @__PURE__ */ jsx136(DepartmentDelete, { id: row.original.id })
12871
12916
  ] })
12872
12917
  }
12873
12918
  );
@@ -12891,7 +12936,7 @@ import { useMemo as useMemo14 } from "react";
12891
12936
 
12892
12937
  // src/modules-features/admin/core/documentCategories/F_documentCategories_Create.tsx
12893
12938
  import { useForm as useForm9 } from "@mantine/form";
12894
- import { jsx as jsx136, jsxs as jsxs70 } from "react/jsx-runtime";
12939
+ import { jsx as jsx137, jsxs as jsxs70 } from "react/jsx-runtime";
12895
12940
  function F_documentCategories_Create({ documentType }) {
12896
12941
  const form = useForm9({
12897
12942
  mode: "uncontrolled",
@@ -12906,15 +12951,15 @@ function F_documentCategories_Create({ documentType }) {
12906
12951
  }
12907
12952
  });
12908
12953
  return /* @__PURE__ */ jsxs70(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => service_documentAttribute.create(values), children: [
12909
- /* @__PURE__ */ jsx136(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
12910
- /* @__PURE__ */ jsx136(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
12954
+ /* @__PURE__ */ jsx137(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
12955
+ /* @__PURE__ */ jsx137(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
12911
12956
  ] });
12912
12957
  }
12913
12958
 
12914
12959
  // src/modules-features/admin/core/documentCategories/F_documentCategories_Delete.tsx
12915
- import { jsx as jsx137 } from "react/jsx-runtime";
12960
+ import { jsx as jsx138 } from "react/jsx-runtime";
12916
12961
  function F_documentCategories_Delete({ id, context }) {
12917
- return /* @__PURE__ */ jsx137(
12962
+ return /* @__PURE__ */ jsx138(
12918
12963
  MyActionIconDelete,
12919
12964
  {
12920
12965
  contextData: context,
@@ -12925,7 +12970,7 @@ function F_documentCategories_Delete({ id, context }) {
12925
12970
 
12926
12971
  // src/modules-features/admin/core/documentCategories/F_documentCategories_Update.tsx
12927
12972
  import { useForm as useForm10 } from "@mantine/form";
12928
- import { jsx as jsx138, jsxs as jsxs71 } from "react/jsx-runtime";
12973
+ import { jsx as jsx139, jsxs as jsxs71 } from "react/jsx-runtime";
12929
12974
  function F_documentCategories_Update({ values }) {
12930
12975
  const form = useForm10({
12931
12976
  initialValues: values,
@@ -12935,13 +12980,13 @@ function F_documentCategories_Update({ values }) {
12935
12980
  }
12936
12981
  });
12937
12982
  return /* @__PURE__ */ jsxs71(MyActionIconUpdate, { form, onSubmit: async (values2) => service_documentAttribute.update(values2), children: [
12938
- /* @__PURE__ */ jsx138(MyTextInput2, __spreadValues({ readOnly: true, label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
12939
- /* @__PURE__ */ jsx138(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
12983
+ /* @__PURE__ */ jsx139(MyTextInput2, __spreadValues({ readOnly: true, label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
12984
+ /* @__PURE__ */ jsx139(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
12940
12985
  ] });
12941
12986
  }
12942
12987
 
12943
12988
  // src/modules-features/admin/core/documentCategories/F_documentCategories_Read.tsx
12944
- import { jsx as jsx139, jsxs as jsxs72 } from "react/jsx-runtime";
12989
+ import { jsx as jsx140, jsxs as jsxs72 } from "react/jsx-runtime";
12945
12990
  function F_documentCategories_Read({ documentType }) {
12946
12991
  const documentAttributeQuery = useMyReactQuery({
12947
12992
  queryKey: ["F_core18256_Read" + documentType],
@@ -12960,7 +13005,7 @@ function F_documentCategories_Read({ documentType }) {
12960
13005
  ],
12961
13006
  []
12962
13007
  );
12963
- return /* @__PURE__ */ jsx139(
13008
+ return /* @__PURE__ */ jsx140(
12964
13009
  MyDataTable,
12965
13010
  {
12966
13011
  isLoading: documentAttributeQuery.isLoading,
@@ -12968,11 +13013,11 @@ function F_documentCategories_Read({ documentType }) {
12968
13013
  columns,
12969
13014
  enableRowNumbers: true,
12970
13015
  data: documentAttributeQuery.data || [],
12971
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx139(F_documentCategories_Create, { documentType }),
13016
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx140(F_documentCategories_Create, { documentType }),
12972
13017
  renderRowActions: ({ row }) => {
12973
13018
  return /* @__PURE__ */ jsxs72(MyCenterFull, { children: [
12974
- /* @__PURE__ */ jsx139(F_documentCategories_Update, { values: row.original }),
12975
- /* @__PURE__ */ jsx139(F_documentCategories_Delete, { id: row.original.id, context: row.original.code })
13019
+ /* @__PURE__ */ jsx140(F_documentCategories_Update, { values: row.original }),
13020
+ /* @__PURE__ */ jsx140(F_documentCategories_Delete, { id: row.original.id, context: row.original.code })
12976
13021
  ] });
12977
13022
  }
12978
13023
  }
@@ -12980,7 +13025,7 @@ function F_documentCategories_Read({ documentType }) {
12980
13025
  }
12981
13026
 
12982
13027
  // src/modules-features/admin/core/documentCategories/F_documentCategories.tsx
12983
- import { jsx as jsx140, jsxs as jsxs73 } from "react/jsx-runtime";
13028
+ import { jsx as jsx141, jsxs as jsxs73 } from "react/jsx-runtime";
12984
13029
  var tabData = [
12985
13030
  { label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
12986
13031
  { label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
@@ -12988,15 +13033,15 @@ var tabData = [
12988
13033
  ];
12989
13034
  function F_documentCategories({ documentTypes }) {
12990
13035
  return /* @__PURE__ */ jsxs73(MyTab, { tabList: tabData, children: [
12991
- /* @__PURE__ */ jsx140(Tabs3.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx140(F_documentCategories_Read, { documentType: documentTypes.Regulations }) }),
12992
- /* @__PURE__ */ jsx140(Tabs3.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx140(F_documentCategories_Read, { documentType: documentTypes.Workflow }) }),
12993
- /* @__PURE__ */ jsx140(Tabs3.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx140(F_documentCategories_Read, { documentType: documentTypes.Form }) })
13036
+ /* @__PURE__ */ jsx141(Tabs3.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx141(F_documentCategories_Read, { documentType: documentTypes.Regulations }) }),
13037
+ /* @__PURE__ */ jsx141(Tabs3.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx141(F_documentCategories_Read, { documentType: documentTypes.Workflow }) }),
13038
+ /* @__PURE__ */ jsx141(Tabs3.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx141(F_documentCategories_Read, { documentType: documentTypes.Form }) })
12994
13039
  ] });
12995
13040
  }
12996
13041
 
12997
13042
  // src/modules-features/admin/core/documentCategories/F_documentCategories_Select.tsx
12998
13043
  import { Select as Select8 } from "@mantine/core";
12999
- import { jsx as jsx141 } from "react/jsx-runtime";
13044
+ import { jsx as jsx142 } from "react/jsx-runtime";
13000
13045
  function F_documentCategories_Select(_a) {
13001
13046
  var _b = _a, { documentTypeId, label = "", dataMapper } = _b, rest = __objRest(_b, ["documentTypeId", "label", "dataMapper"]);
13002
13047
  var _a2, _b2;
@@ -13013,7 +13058,7 @@ function F_documentCategories_Select(_a) {
13013
13058
  label: `${item.code}-${item.name}`
13014
13059
  };
13015
13060
  });
13016
- return /* @__PURE__ */ jsx141(
13061
+ return /* @__PURE__ */ jsx142(
13017
13062
  Select8,
13018
13063
  __spreadProps(__spreadValues({
13019
13064
  label,
@@ -13038,7 +13083,7 @@ var service_emailTemplate = __spreadProps(__spreadValues({}, createBaseApi(`${CO
13038
13083
  // src/modules-features/admin/core/EmailTemplate/EmailTemplateButtonImport.tsx
13039
13084
  import { useModalsStack as useModalsStack3 } from "@mantine/core";
13040
13085
  import ExcelJS3 from "exceljs";
13041
- import { Fragment as Fragment21, jsx as jsx142, jsxs as jsxs74 } from "react/jsx-runtime";
13086
+ import { Fragment as Fragment21, jsx as jsx143, jsxs as jsxs74 } from "react/jsx-runtime";
13042
13087
  var config3 = [
13043
13088
  {
13044
13089
  fieldKey: "name",
@@ -13097,7 +13142,7 @@ function EmailTemplateButtonImport({ emailTemplateEnum }) {
13097
13142
  });
13098
13143
  };
13099
13144
  return /* @__PURE__ */ jsxs74(Fragment21, { children: [
13100
- /* @__PURE__ */ jsx142(
13145
+ /* @__PURE__ */ jsx143(
13101
13146
  MyModalImport,
13102
13147
  {
13103
13148
  fieldDefinition: config3.map((item) => ({
@@ -13119,7 +13164,7 @@ function EmailTemplateButtonImport({ emailTemplateEnum }) {
13119
13164
  }
13120
13165
  }
13121
13166
  ),
13122
- /* @__PURE__ */ jsx142(MyButton, { actionType: "import", onClick: () => stack.open("FileImportConfig") })
13167
+ /* @__PURE__ */ jsx143(MyButton, { actionType: "import", onClick: () => stack.open("FileImportConfig") })
13123
13168
  ] });
13124
13169
  }
13125
13170
 
@@ -13127,8 +13172,8 @@ function EmailTemplateButtonImport({ emailTemplateEnum }) {
13127
13172
  import { Badge as Badge7, Button as Button20, Grid as Grid6, Stack as Stack11, Text as Text31 } from "@mantine/core";
13128
13173
  import { useForm as useForm11 } from "@mantine/form";
13129
13174
  import { notifications as notifications5 } from "@mantine/notifications";
13130
- import { useEffect as useEffect30, useMemo as useMemo15 } from "react";
13131
- import { Fragment as Fragment22, jsx as jsx143, jsxs as jsxs75 } from "react/jsx-runtime";
13175
+ import { useEffect as useEffect31, useMemo as useMemo15 } from "react";
13176
+ import { Fragment as Fragment22, jsx as jsx144, jsxs as jsxs75 } from "react/jsx-runtime";
13132
13177
  var getDefaultBodyFortype1 = () => {
13133
13178
  return ``;
13134
13179
  };
@@ -13168,9 +13213,9 @@ function EmailTemplateCreateUpdateButton({ initValue, emailTemplateEnum }) {
13168
13213
  header: "D\u1EEF li\u1EC7u \u0111\u1ED9ng",
13169
13214
  accessorKey: "code",
13170
13215
  Cell({ row }) {
13171
- return /* @__PURE__ */ jsx143(Fragment22, { children: /* @__PURE__ */ jsxs75(Stack11, { gap: 4, children: [
13172
- /* @__PURE__ */ jsx143(Text31, { children: row.original.name }),
13173
- /* @__PURE__ */ jsx143(Badge7, { variant: "default", color: "gray", size: "lg", radius: "md", children: `{${row.original.code}}` })
13216
+ return /* @__PURE__ */ jsx144(Fragment22, { children: /* @__PURE__ */ jsxs75(Stack11, { gap: 4, children: [
13217
+ /* @__PURE__ */ jsx144(Text31, { children: row.original.name }),
13218
+ /* @__PURE__ */ jsx144(Badge7, { variant: "default", color: "gray", size: "lg", radius: "md", children: `{${row.original.code}}` })
13174
13219
  ] }) });
13175
13220
  },
13176
13221
  size: 240,
@@ -13224,12 +13269,12 @@ function EmailTemplateCreateUpdateButton({ initValue, emailTemplateEnum }) {
13224
13269
  form.setFieldValue("body", newContent);
13225
13270
  }
13226
13271
  };
13227
- useEffect30(() => {
13272
+ useEffect31(() => {
13228
13273
  if (!initValue) return;
13229
13274
  form.setInitialValues(__spreadValues({}, initValue));
13230
13275
  form.setValues(__spreadValues({}, initValue));
13231
13276
  }, [initValue]);
13232
- useEffect30(() => {
13277
+ useEffect31(() => {
13233
13278
  mailVariableQuery.refetch();
13234
13279
  }, [form.values.type]);
13235
13280
  return /* @__PURE__ */ jsxs75(
@@ -13282,8 +13327,8 @@ function EmailTemplateCreateUpdateButton({ initValue, emailTemplateEnum }) {
13282
13327
  form,
13283
13328
  isUpdate: !!initValue,
13284
13329
  children: [
13285
- /* @__PURE__ */ jsx143(MyTextInput, __spreadValues({ error: form.errors.name, label: "Ti\xEAu \u0111\u1EC1" }, form.getInputProps("name"))),
13286
- /* @__PURE__ */ jsx143(
13330
+ /* @__PURE__ */ jsx144(MyTextInput, __spreadValues({ error: form.errors.name, label: "Ti\xEAu \u0111\u1EC1" }, form.getInputProps("name"))),
13331
+ /* @__PURE__ */ jsx144(
13287
13332
  MySelect2,
13288
13333
  {
13289
13334
  error: form.errors.type,
@@ -13304,12 +13349,12 @@ function EmailTemplateCreateUpdateButton({ initValue, emailTemplateEnum }) {
13304
13349
  clearable: false
13305
13350
  }
13306
13351
  ),
13307
- /* @__PURE__ */ jsx143(
13352
+ /* @__PURE__ */ jsx144(
13308
13353
  MyFieldset,
13309
13354
  {
13310
13355
  title: "N\u1ED9i dung th\xF4ng b\xE1o",
13311
13356
  children: /* @__PURE__ */ jsxs75(Grid6, { gutter: "12", children: [
13312
- /* @__PURE__ */ jsx143(Grid6.Col, { span: { base: 5, md: 6, lg: 7, xl: 8 }, children: /* @__PURE__ */ jsx143(
13357
+ /* @__PURE__ */ jsx144(Grid6.Col, { span: { base: 5, md: 6, lg: 7, xl: 8 }, children: /* @__PURE__ */ jsx144(
13313
13358
  MyRichTextEditor,
13314
13359
  {
13315
13360
  richTextEditorContentProps: {
@@ -13325,11 +13370,11 @@ function EmailTemplateCreateUpdateButton({ initValue, emailTemplateEnum }) {
13325
13370
  inputWrapperProps: { error: form.errors.body }
13326
13371
  }
13327
13372
  ) }),
13328
- /* @__PURE__ */ jsx143(
13373
+ /* @__PURE__ */ jsx144(
13329
13374
  Grid6.Col,
13330
13375
  {
13331
13376
  span: { base: 7, md: 6, lg: 5, xl: 4 },
13332
- children: /* @__PURE__ */ jsx143(
13377
+ children: /* @__PURE__ */ jsx144(
13333
13378
  MyDataTable,
13334
13379
  {
13335
13380
  enableTopToolbar: false,
@@ -13347,15 +13392,15 @@ function EmailTemplateCreateUpdateButton({ initValue, emailTemplateEnum }) {
13347
13392
  },
13348
13393
  "mrt-row-numbers": {
13349
13394
  Header(props) {
13350
- return /* @__PURE__ */ jsx143(Fragment22, { children: "STT" });
13395
+ return /* @__PURE__ */ jsx144(Fragment22, { children: "STT" });
13351
13396
  },
13352
13397
  size: 56,
13353
13398
  Cell(props) {
13354
- return /* @__PURE__ */ jsx143(Fragment22, { children: /* @__PURE__ */ jsx143(MyCenterFull, { children: props.cell.row.index + 1 }) });
13399
+ return /* @__PURE__ */ jsx144(Fragment22, { children: /* @__PURE__ */ jsx144(MyCenterFull, { children: props.cell.row.index + 1 }) });
13355
13400
  }
13356
13401
  }
13357
13402
  },
13358
- renderRowActions: ({ row }) => /* @__PURE__ */ jsx143(MyCenterFull, { children: /* @__PURE__ */ jsx143(
13403
+ renderRowActions: ({ row }) => /* @__PURE__ */ jsx144(MyCenterFull, { children: /* @__PURE__ */ jsx144(
13359
13404
  Button20,
13360
13405
  {
13361
13406
  size: "compact-md",
@@ -13383,9 +13428,9 @@ function EmailTemplateCreateUpdateButton({ initValue, emailTemplateEnum }) {
13383
13428
  }
13384
13429
 
13385
13430
  // src/modules-features/admin/core/EmailTemplate/EmailTemplateDeleteButton.tsx
13386
- import { jsx as jsx144 } from "react/jsx-runtime";
13431
+ import { jsx as jsx145 } from "react/jsx-runtime";
13387
13432
  function MailTemplateDeleteButton({ values }) {
13388
- return /* @__PURE__ */ jsx144(
13433
+ return /* @__PURE__ */ jsx145(
13389
13434
  MyActionIconDelete,
13390
13435
  {
13391
13436
  contextData: values == null ? void 0 : values.name,
@@ -13397,9 +13442,9 @@ function MailTemplateDeleteButton({ values }) {
13397
13442
  }
13398
13443
 
13399
13444
  // src/modules-features/admin/core/EmailTemplate/EmailTemplateDeleteListButton.tsx
13400
- import { jsx as jsx145 } from "react/jsx-runtime";
13445
+ import { jsx as jsx146 } from "react/jsx-runtime";
13401
13446
  function EmailTemplateDeleteListButton({ values }) {
13402
- return /* @__PURE__ */ jsx145(
13447
+ return /* @__PURE__ */ jsx146(
13403
13448
  MyButtonDeleteList,
13404
13449
  {
13405
13450
  count: values.length,
@@ -13409,7 +13454,7 @@ function EmailTemplateDeleteListButton({ values }) {
13409
13454
  }
13410
13455
 
13411
13456
  // src/modules-features/admin/core/EmailTemplate/EmailTemplateExport.tsx
13412
- import { jsx as jsx146 } from "react/jsx-runtime";
13457
+ import { jsx as jsx147 } from "react/jsx-runtime";
13413
13458
  function EmailTemplateExport({ data, emailTemplateEnum }) {
13414
13459
  const exportConfig4 = {
13415
13460
  fields: [
@@ -13427,7 +13472,7 @@ function EmailTemplateExport({ data, emailTemplateEnum }) {
13427
13472
  }
13428
13473
  ]
13429
13474
  };
13430
- return /* @__PURE__ */ jsx146(
13475
+ return /* @__PURE__ */ jsx147(
13431
13476
  AQButtonExportData,
13432
13477
  {
13433
13478
  objectName: "Mau_mail_thong_bao",
@@ -13440,7 +13485,7 @@ function EmailTemplateExport({ data, emailTemplateEnum }) {
13440
13485
  // src/modules-features/admin/core/EmailTemplate/EmailTemplateTable.tsx
13441
13486
  import { Group as Group37 } from "@mantine/core";
13442
13487
  import { useMemo as useMemo16 } from "react";
13443
- import { Fragment as Fragment23, jsx as jsx147, jsxs as jsxs76 } from "react/jsx-runtime";
13488
+ import { Fragment as Fragment23, jsx as jsx148, jsxs as jsxs76 } from "react/jsx-runtime";
13444
13489
  function EmailTemplateTable({ emailTemplateEnum }) {
13445
13490
  const storePermission = useStore_Permission();
13446
13491
  const mailTemplateQuery = useMyReactQuery({
@@ -13463,7 +13508,7 @@ function EmailTemplateTable({ emailTemplateEnum }) {
13463
13508
  ],
13464
13509
  []
13465
13510
  );
13466
- return /* @__PURE__ */ jsx147(MyFieldset, { title: "Danh s\xE1ch m\u1EABu Mail th\xF4ng b\xE1o", children: /* @__PURE__ */ jsx147(
13511
+ return /* @__PURE__ */ jsx148(MyFieldset, { title: "Danh s\xE1ch m\u1EABu Mail th\xF4ng b\xE1o", children: /* @__PURE__ */ jsx148(
13467
13512
  MyDataTable,
13468
13513
  {
13469
13514
  isLoading: mailTemplateQuery.isLoading,
@@ -13477,22 +13522,22 @@ function EmailTemplateTable({ emailTemplateEnum }) {
13477
13522
  const selectedRows = table.getSelectedRowModel().flatRows.map((item) => item.original) || [];
13478
13523
  return /* @__PURE__ */ jsxs76(Group37, { children: [
13479
13524
  ((_b = (_a = storePermission.state) == null ? void 0 : _a.currentPermissionPage) == null ? void 0 : _b.isCreate) && /* @__PURE__ */ jsxs76(Fragment23, { children: [
13480
- /* @__PURE__ */ jsx147(EmailTemplateCreateUpdateButton, { emailTemplateEnum }),
13481
- /* @__PURE__ */ jsx147(EmailTemplateButtonImport, { emailTemplateEnum })
13525
+ /* @__PURE__ */ jsx148(EmailTemplateCreateUpdateButton, { emailTemplateEnum }),
13526
+ /* @__PURE__ */ jsx148(EmailTemplateButtonImport, { emailTemplateEnum })
13482
13527
  ] }),
13483
- ((_d = (_c = storePermission.state) == null ? void 0 : _c.currentPermissionPage) == null ? void 0 : _d.isExport) && /* @__PURE__ */ jsx147(
13528
+ ((_d = (_c = storePermission.state) == null ? void 0 : _c.currentPermissionPage) == null ? void 0 : _d.isExport) && /* @__PURE__ */ jsx148(
13484
13529
  EmailTemplateExport,
13485
13530
  {
13486
13531
  emailTemplateEnum: { emailTemplateEnum },
13487
13532
  data: table.getIsAllPageRowsSelected() ? mailTemplateQuery.data : table.getSelectedRowModel().rows.map((item) => item.original)
13488
13533
  }
13489
13534
  ),
13490
- /* @__PURE__ */ jsx147(EmailTemplateDeleteListButton, { values: selectedRows })
13535
+ /* @__PURE__ */ jsx148(EmailTemplateDeleteListButton, { values: selectedRows })
13491
13536
  ] });
13492
13537
  },
13493
13538
  renderRowActions: ({ row }) => /* @__PURE__ */ jsxs76(MyCenterFull, { children: [
13494
- /* @__PURE__ */ jsx147(EmailTemplateCreateUpdateButton, { emailTemplateEnum, initValue: row.original }),
13495
- /* @__PURE__ */ jsx147(MailTemplateDeleteButton, { values: row.original })
13539
+ /* @__PURE__ */ jsx148(EmailTemplateCreateUpdateButton, { emailTemplateEnum, initValue: row.original }),
13540
+ /* @__PURE__ */ jsx148(MailTemplateDeleteButton, { values: row.original })
13496
13541
  ] })
13497
13542
  }
13498
13543
  ) });
@@ -13519,7 +13564,7 @@ var service_document = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER
13519
13564
  // src/shared/Shared_DocTypeSelect.tsx
13520
13565
  import { Select as Select9 } from "@mantine/core";
13521
13566
  import { useQuery as useQuery4 } from "@tanstack/react-query";
13522
- import { jsx as jsx148 } from "react/jsx-runtime";
13567
+ import { jsx as jsx149 } from "react/jsx-runtime";
13523
13568
  function Shared_DocTypeSelect(_a) {
13524
13569
  var _b = _a, { documentTypeId, label = "", dataMapper } = _b, rest = __objRest(_b, ["documentTypeId", "label", "dataMapper"]);
13525
13570
  var _a2, _b2;
@@ -13539,7 +13584,7 @@ function Shared_DocTypeSelect(_a) {
13539
13584
  label: `${item.code}-${item.name}`
13540
13585
  };
13541
13586
  });
13542
- return /* @__PURE__ */ jsx148(
13587
+ return /* @__PURE__ */ jsx149(
13543
13588
  Select9,
13544
13589
  __spreadProps(__spreadValues({
13545
13590
  label,
@@ -13553,7 +13598,7 @@ function Shared_DocTypeSelect(_a) {
13553
13598
 
13554
13599
  // src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Create.tsx
13555
13600
  import { useForm as useForm12 } from "@mantine/form";
13556
- import { jsx as jsx149, jsxs as jsxs77 } from "react/jsx-runtime";
13601
+ import { jsx as jsx150, jsxs as jsxs77 } from "react/jsx-runtime";
13557
13602
  function F_formTemplateDocs_Create({ FormTypeId }) {
13558
13603
  const form = useForm12({
13559
13604
  mode: "uncontrolled",
@@ -13578,28 +13623,28 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
13578
13623
  return service_document.create(body);
13579
13624
  },
13580
13625
  children: [
13581
- /* @__PURE__ */ jsx149(
13626
+ /* @__PURE__ */ jsx150(
13582
13627
  MyTextInput,
13583
13628
  __spreadValues({
13584
13629
  withAsterisk: true,
13585
13630
  label: "S\u1ED1 quy \u0111\u1ECBnh"
13586
13631
  }, form.getInputProps("decisionCode"))
13587
13632
  ),
13588
- /* @__PURE__ */ jsx149(
13633
+ /* @__PURE__ */ jsx150(
13589
13634
  MyDateInput,
13590
13635
  __spreadValues({
13591
13636
  withAsterisk: true,
13592
13637
  label: "Ng\xE0y ban h\xE0nh"
13593
13638
  }, form.getInputProps("promulgateDate"))
13594
13639
  ),
13595
- /* @__PURE__ */ jsx149(
13640
+ /* @__PURE__ */ jsx150(
13596
13641
  MyTextInput,
13597
13642
  __spreadValues({
13598
13643
  withAsterisk: true,
13599
13644
  label: "T\xEAn t\xE0i li\u1EC7u"
13600
13645
  }, form.getInputProps("name"))
13601
13646
  ),
13602
- /* @__PURE__ */ jsx149(
13647
+ /* @__PURE__ */ jsx150(
13603
13648
  Shared_DocTypeSelect,
13604
13649
  __spreadValues({
13605
13650
  withAsterisk: true,
@@ -13607,14 +13652,14 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
13607
13652
  documentTypeId: FormTypeId
13608
13653
  }, form.getInputProps("documentAttributeId"))
13609
13654
  ),
13610
- /* @__PURE__ */ jsx149(
13655
+ /* @__PURE__ */ jsx150(
13611
13656
  MyFileInput,
13612
13657
  __spreadValues({
13613
13658
  withAsterisk: true,
13614
13659
  label: "V\u0103n b\u1EA3n"
13615
13660
  }, form.getInputProps("file"))
13616
13661
  ),
13617
- /* @__PURE__ */ jsx149(
13662
+ /* @__PURE__ */ jsx150(
13618
13663
  MyNumberInput,
13619
13664
  __spreadValues({
13620
13665
  label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
@@ -13627,16 +13672,16 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
13627
13672
 
13628
13673
  // src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
13629
13674
  import { Accordion, Alert as Alert2, Blockquote, Skeleton as Skeleton3 } from "@mantine/core";
13630
- import { useEffect as useEffect31, useMemo as useMemo17, useState as useState27 } from "react";
13675
+ import { useEffect as useEffect32, useMemo as useMemo17, useState as useState27 } from "react";
13631
13676
  import { IconBug as IconBug2 } from "@tabler/icons-react";
13632
13677
 
13633
13678
  // src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Delete.tsx
13634
- import { jsx as jsx150 } from "react/jsx-runtime";
13679
+ import { jsx as jsx151 } from "react/jsx-runtime";
13635
13680
  function F_formTemplateDocs_Delete({
13636
13681
  id,
13637
13682
  contextData
13638
13683
  }) {
13639
- return /* @__PURE__ */ jsx150(
13684
+ return /* @__PURE__ */ jsx151(
13640
13685
  MyActionIconDelete,
13641
13686
  {
13642
13687
  contextData,
@@ -13647,7 +13692,7 @@ function F_formTemplateDocs_Delete({
13647
13692
 
13648
13693
  // src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Update.tsx
13649
13694
  import { useForm as useForm13 } from "@mantine/form";
13650
- import { jsx as jsx151, jsxs as jsxs78 } from "react/jsx-runtime";
13695
+ import { jsx as jsx152, jsxs as jsxs78 } from "react/jsx-runtime";
13651
13696
  function F_formTemplateDocs_Update({
13652
13697
  values,
13653
13698
  FormTypeId
@@ -13680,7 +13725,7 @@ function F_formTemplateDocs_Update({
13680
13725
  return service_document.update(body);
13681
13726
  },
13682
13727
  children: [
13683
- /* @__PURE__ */ jsx151(
13728
+ /* @__PURE__ */ jsx152(
13684
13729
  MyTextInput,
13685
13730
  __spreadValues({
13686
13731
  withAsterisk: true,
@@ -13688,21 +13733,21 @@ function F_formTemplateDocs_Update({
13688
13733
  label: "S\u1ED1 quy \u0111\u1ECBnh"
13689
13734
  }, form.getInputProps("decisionCode"))
13690
13735
  ),
13691
- /* @__PURE__ */ jsx151(
13736
+ /* @__PURE__ */ jsx152(
13692
13737
  MyDateInput,
13693
13738
  __spreadValues({
13694
13739
  withAsterisk: true,
13695
13740
  label: "Ng\xE0y ban h\xE0nh"
13696
13741
  }, form.getInputProps("promulgateDate"))
13697
13742
  ),
13698
- /* @__PURE__ */ jsx151(
13743
+ /* @__PURE__ */ jsx152(
13699
13744
  MyTextInput,
13700
13745
  __spreadValues({
13701
13746
  withAsterisk: true,
13702
13747
  label: "T\xEAn t\xE0i li\u1EC7u"
13703
13748
  }, form.getInputProps("name"))
13704
13749
  ),
13705
- /* @__PURE__ */ jsx151(
13750
+ /* @__PURE__ */ jsx152(
13706
13751
  Shared_DocTypeSelect,
13707
13752
  __spreadValues({
13708
13753
  withAsterisk: true,
@@ -13710,14 +13755,14 @@ function F_formTemplateDocs_Update({
13710
13755
  documentTypeId: FormTypeId
13711
13756
  }, form.getInputProps("documentAttributeId"))
13712
13757
  ),
13713
- /* @__PURE__ */ jsx151(
13758
+ /* @__PURE__ */ jsx152(
13714
13759
  MyFileInput,
13715
13760
  __spreadValues({
13716
13761
  withAsterisk: true,
13717
13762
  label: "V\u0103n b\u1EA3n"
13718
13763
  }, form.getInputProps("file"))
13719
13764
  ),
13720
- /* @__PURE__ */ jsx151(
13765
+ /* @__PURE__ */ jsx152(
13721
13766
  MyNumberInput,
13722
13767
  __spreadValues({
13723
13768
  label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
@@ -13729,7 +13774,7 @@ function F_formTemplateDocs_Update({
13729
13774
  }
13730
13775
 
13731
13776
  // src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
13732
- import { jsx as jsx152, jsxs as jsxs79 } from "react/jsx-runtime";
13777
+ import { jsx as jsx153, jsxs as jsxs79 } from "react/jsx-runtime";
13733
13778
  function F_formTemplateDocs_Read({ FormTypeId }) {
13734
13779
  var _a, _b;
13735
13780
  const [openItems, setOpenItems] = useState27([]);
@@ -13737,7 +13782,7 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
13737
13782
  queryKey: ["F_formTemplateDocs_Read" + FormTypeId],
13738
13783
  axiosFn: () => service_documentAttribute.GetByType(FormTypeId)
13739
13784
  });
13740
- useEffect31(() => {
13785
+ useEffect32(() => {
13741
13786
  var _a2;
13742
13787
  if (documentAttributeQuery.data && documentAttributeQuery.data.length > 0) {
13743
13788
  const firstItemId = (_a2 = documentAttributeQuery.data[0].id) == null ? void 0 : _a2.toString();
@@ -13747,10 +13792,10 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
13747
13792
  }
13748
13793
  }, [documentAttributeQuery.data]);
13749
13794
  if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
13750
- return /* @__PURE__ */ jsx152(Blockquote, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
13795
+ return /* @__PURE__ */ jsx153(Blockquote, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
13751
13796
  if (documentAttributeQuery.isError)
13752
- return /* @__PURE__ */ jsx152(Alert2, { icon: /* @__PURE__ */ jsx152(IconBug2, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
13753
- return /* @__PURE__ */ jsx152(Skeleton3, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx152(MyFlexColumn, { children: /* @__PURE__ */ jsx152(
13797
+ return /* @__PURE__ */ jsx153(Alert2, { icon: /* @__PURE__ */ jsx153(IconBug2, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
13798
+ return /* @__PURE__ */ jsx153(Skeleton3, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx153(MyFlexColumn, { children: /* @__PURE__ */ jsx153(
13754
13799
  Accordion,
13755
13800
  {
13756
13801
  variant: "separated",
@@ -13763,7 +13808,7 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
13763
13808
  value: openItems,
13764
13809
  onChange: setOpenItems,
13765
13810
  multiple: true,
13766
- children: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item, idx) => /* @__PURE__ */ jsx152(
13811
+ children: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item, idx) => /* @__PURE__ */ jsx153(
13767
13812
  SubRead,
13768
13813
  {
13769
13814
  name: item.name,
@@ -13801,7 +13846,7 @@ function SubRead({
13801
13846
  {
13802
13847
  header: "File",
13803
13848
  accessorFn: (row) => {
13804
- return /* @__PURE__ */ jsx152(MyCenterFull, { children: /* @__PURE__ */ jsx152(MyButtonViewFileAPI, { filePath: row.path }) });
13849
+ return /* @__PURE__ */ jsx153(MyCenterFull, { children: /* @__PURE__ */ jsx153(MyButtonViewFileAPI, { filePath: row.path }) });
13805
13850
  }
13806
13851
  }
13807
13852
  ],
@@ -13809,9 +13854,9 @@ function SubRead({
13809
13854
  );
13810
13855
  if (documentQuery.isLoading) return "Loading...";
13811
13856
  if (documentQuery.isError) return "Error!";
13812
- return /* @__PURE__ */ jsx152(Skeleton3, { mt: 10, visible: documentQuery.isLoading, children: /* @__PURE__ */ jsxs79(Accordion.Item, { value: id.toString(), children: [
13813
- /* @__PURE__ */ jsx152(Accordion.Control, { children: name }),
13814
- /* @__PURE__ */ jsx152(Accordion.Panel, { children: /* @__PURE__ */ jsx152(
13857
+ return /* @__PURE__ */ jsx153(Skeleton3, { mt: 10, visible: documentQuery.isLoading, children: /* @__PURE__ */ jsxs79(Accordion.Item, { value: id.toString(), children: [
13858
+ /* @__PURE__ */ jsx153(Accordion.Control, { children: name }),
13859
+ /* @__PURE__ */ jsx153(Accordion.Panel, { children: /* @__PURE__ */ jsx153(
13815
13860
  MyDataTable,
13816
13861
  {
13817
13862
  isLoading: documentQuery.isLoading,
@@ -13819,14 +13864,14 @@ function SubRead({
13819
13864
  columns,
13820
13865
  data: documentQuery.data || [],
13821
13866
  renderRowActions: ({ row }) => /* @__PURE__ */ jsxs79(MyCenterFull, { children: [
13822
- /* @__PURE__ */ jsx152(
13867
+ /* @__PURE__ */ jsx153(
13823
13868
  F_formTemplateDocs_Update,
13824
13869
  {
13825
13870
  FormTypeId,
13826
13871
  values: row.original
13827
13872
  }
13828
13873
  ),
13829
- /* @__PURE__ */ jsx152(
13874
+ /* @__PURE__ */ jsx153(
13830
13875
  F_formTemplateDocs_Delete,
13831
13876
  {
13832
13877
  id: row.original.id,
@@ -13840,19 +13885,19 @@ function SubRead({
13840
13885
  }
13841
13886
 
13842
13887
  // src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs.tsx
13843
- import { Fragment as Fragment24, jsx as jsx153, jsxs as jsxs80 } from "react/jsx-runtime";
13888
+ import { Fragment as Fragment24, jsx as jsx154, jsxs as jsxs80 } from "react/jsx-runtime";
13844
13889
  function F_formTemplateDocs({
13845
13890
  FormTypeId
13846
13891
  }) {
13847
13892
  return /* @__PURE__ */ jsxs80(Fragment24, { children: [
13848
- /* @__PURE__ */ jsx153(MyFlexEnd, { children: /* @__PURE__ */ jsx153(F_formTemplateDocs_Create, { FormTypeId }) }),
13849
- /* @__PURE__ */ jsx153(Space5, {}),
13850
- /* @__PURE__ */ jsx153(F_formTemplateDocs_Read, { FormTypeId })
13893
+ /* @__PURE__ */ jsx154(MyFlexEnd, { children: /* @__PURE__ */ jsx154(F_formTemplateDocs_Create, { FormTypeId }) }),
13894
+ /* @__PURE__ */ jsx154(Space5, {}),
13895
+ /* @__PURE__ */ jsx154(F_formTemplateDocs_Read, { FormTypeId })
13851
13896
  ] });
13852
13897
  }
13853
13898
 
13854
13899
  // src/modules-features/admin/core/lecturerList/LecturerListExport.tsx
13855
- import { jsx as jsx154 } from "react/jsx-runtime";
13900
+ import { jsx as jsx155 } from "react/jsx-runtime";
13856
13901
  var exportConfig3 = {
13857
13902
  fields: [
13858
13903
  {
@@ -13914,7 +13959,7 @@ var exportConfig3 = {
13914
13959
  };
13915
13960
  function LecturerListExport({ table }) {
13916
13961
  const { data } = useExportData(table);
13917
- return /* @__PURE__ */ jsx154(AQButtonExportData, { objectName: "Danh s\xE1ch vi\xEAn ch\u1EE9c", data, exportConfig: exportConfig3 });
13962
+ return /* @__PURE__ */ jsx155(AQButtonExportData, { objectName: "Danh s\xE1ch vi\xEAn ch\u1EE9c", data, exportConfig: exportConfig3 });
13918
13963
  }
13919
13964
 
13920
13965
  // src/modules-features/admin/core/lecturerList/LecturerListSyncFromEdusoft.tsx
@@ -13922,7 +13967,7 @@ import { Button as Button21, Modal as Modal17, Stack as Stack12 } from "@mantine
13922
13967
  import { useDisclosure as useDisclosure21 } from "@mantine/hooks";
13923
13968
  import { IconRefresh as IconRefresh4 } from "@tabler/icons-react";
13924
13969
  import { useState as useState28 } from "react";
13925
- import { Fragment as Fragment25, jsx as jsx155, jsxs as jsxs81 } from "react/jsx-runtime";
13970
+ import { Fragment as Fragment25, jsx as jsx156, jsxs as jsxs81 } from "react/jsx-runtime";
13926
13971
  function LecturerListSyncFromEdusoft() {
13927
13972
  const disc = useDisclosure21();
13928
13973
  const notificationState = useState28("");
@@ -13936,10 +13981,10 @@ function LecturerListSyncFromEdusoft() {
13936
13981
  }
13937
13982
  });
13938
13983
  return /* @__PURE__ */ jsxs81(Fragment25, { children: [
13939
- /* @__PURE__ */ jsx155(Button21, { loading: mutation.isPending, color: "green", leftSection: /* @__PURE__ */ jsx155(IconRefresh4, {}), onClick: () => mutation.mutate(), children: "\u0110\u1ED3ng b\u1ED9 t\u1EEB EduSoft.NET" }),
13940
- /* @__PURE__ */ jsx155(Modal17, { onClose: disc[1].close, opened: disc[0], title: "Th\xF4ng b\xE1o \u0111\u1ED3ng b\u1ED9", children: /* @__PURE__ */ jsxs81(Stack12, { children: [
13984
+ /* @__PURE__ */ jsx156(Button21, { loading: mutation.isPending, color: "green", leftSection: /* @__PURE__ */ jsx156(IconRefresh4, {}), onClick: () => mutation.mutate(), children: "\u0110\u1ED3ng b\u1ED9 t\u1EEB EduSoft.NET" }),
13985
+ /* @__PURE__ */ jsx156(Modal17, { onClose: disc[1].close, opened: disc[0], title: "Th\xF4ng b\xE1o \u0111\u1ED3ng b\u1ED9", children: /* @__PURE__ */ jsxs81(Stack12, { children: [
13941
13986
  notificationState[0],
13942
- /* @__PURE__ */ jsx155(
13987
+ /* @__PURE__ */ jsx156(
13943
13988
  Button21,
13944
13989
  {
13945
13990
  onClick: () => {
@@ -13955,7 +14000,7 @@ function LecturerListSyncFromEdusoft() {
13955
14000
  // src/modules-features/admin/core/lecturerList/LecturerListTable.tsx
13956
14001
  import { Group as Group38 } from "@mantine/core";
13957
14002
  import { useMemo as useMemo18 } from "react";
13958
- import { jsx as jsx156, jsxs as jsxs82 } from "react/jsx-runtime";
14003
+ import { jsx as jsx157, jsxs as jsxs82 } from "react/jsx-runtime";
13959
14004
  function LecturerListTable() {
13960
14005
  const query = useMyReactQuery({
13961
14006
  queryKey: ["lecturers"],
@@ -14009,17 +14054,17 @@ function LecturerListTable() {
14009
14054
  {
14010
14055
  header: "Vi\xEAn ch\u1EE9c ngo\xE0i tr\u01B0\u1EDDng",
14011
14056
  accessorKey: "isExternal",
14012
- accessorFn: (row) => /* @__PURE__ */ jsx156(CustomThemeIconSquareCheck, { checked: row.isExternal })
14057
+ accessorFn: (row) => /* @__PURE__ */ jsx157(CustomThemeIconSquareCheck, { checked: row.isExternal })
14013
14058
  }
14014
14059
  ], []);
14015
- return /* @__PURE__ */ jsx156(
14060
+ return /* @__PURE__ */ jsx157(
14016
14061
  CustomDataTableAPI,
14017
14062
  {
14018
14063
  query,
14019
14064
  enableRowSelection: true,
14020
14065
  renderTopToolbarCustomActions: ({ table }) => /* @__PURE__ */ jsxs82(Group38, { children: [
14021
- /* @__PURE__ */ jsx156(LecturerListSyncFromEdusoft, {}),
14022
- /* @__PURE__ */ jsx156(LecturerListExport, { table })
14066
+ /* @__PURE__ */ jsx157(LecturerListSyncFromEdusoft, {}),
14067
+ /* @__PURE__ */ jsx157(LecturerListExport, { table })
14023
14068
  ] }),
14024
14069
  columns,
14025
14070
  deleteListFn: service_account.deleteListIds,
@@ -14039,8 +14084,8 @@ import { useMemo as useMemo19 } from "react";
14039
14084
  // src/modules-features/admin/core/mailConfig/F_mailConfig_CreateUpdate.tsx
14040
14085
  import { PasswordInput as PasswordInput3, Stack as Stack13 } from "@mantine/core";
14041
14086
  import { useForm as useForm14 } from "@mantine/form";
14042
- import { useEffect as useEffect32 } from "react";
14043
- import { jsx as jsx157, jsxs as jsxs83 } from "react/jsx-runtime";
14087
+ import { useEffect as useEffect33 } from "react";
14088
+ import { jsx as jsx158, jsxs as jsxs83 } from "react/jsx-runtime";
14044
14089
  function F_mailConfig_CreateUpdate({ values, emailModule }) {
14045
14090
  function getEmailModuleLabelByValue(emailModuleOptions, value) {
14046
14091
  const selectedOption = emailModuleOptions.find((option) => {
@@ -14052,7 +14097,7 @@ function F_mailConfig_CreateUpdate({ values, emailModule }) {
14052
14097
  });
14053
14098
  return typeof selectedOption === "string" ? selectedOption : (selectedOption == null ? void 0 : selectedOption.label) || "Unknown";
14054
14099
  }
14055
- useEffect32(() => {
14100
+ useEffect33(() => {
14056
14101
  if (!values) return;
14057
14102
  form.setFieldValue("password", "");
14058
14103
  }, [values]);
@@ -14091,27 +14136,27 @@ function F_mailConfig_CreateUpdate({ values, emailModule }) {
14091
14136
  "password": formValues.password
14092
14137
  });
14093
14138
  }
14094
- if (values) return /* @__PURE__ */ jsx157(
14139
+ if (values) return /* @__PURE__ */ jsx158(
14095
14140
  MyActionIconUpdate,
14096
14141
  {
14097
14142
  form,
14098
14143
  onSubmit: handleSubmit,
14099
- children: /* @__PURE__ */ jsx157(FormInput, { isUpdate: true, form, aqModuleId: emailModule })
14144
+ children: /* @__PURE__ */ jsx158(FormInput, { isUpdate: true, form, aqModuleId: emailModule })
14100
14145
  }
14101
14146
  );
14102
- return /* @__PURE__ */ jsx157(
14147
+ return /* @__PURE__ */ jsx158(
14103
14148
  MyButtonCreate,
14104
14149
  {
14105
14150
  form,
14106
14151
  onSubmit: handleSubmit,
14107
- children: /* @__PURE__ */ jsx157(FormInput, { form, aqModuleId: emailModule })
14152
+ children: /* @__PURE__ */ jsx158(FormInput, { form, aqModuleId: emailModule })
14108
14153
  }
14109
14154
  );
14110
14155
  }
14111
14156
  function FormInput({ form, aqModuleId, isUpdate }) {
14112
14157
  var _a, _b;
14113
14158
  return /* @__PURE__ */ jsxs83(Stack13, { children: [
14114
- /* @__PURE__ */ jsx157(
14159
+ /* @__PURE__ */ jsx158(
14115
14160
  MySelect2,
14116
14161
  __spreadValues({
14117
14162
  label: "Ph\xE2n h\u1EC7",
@@ -14119,14 +14164,14 @@ function FormInput({ form, aqModuleId, isUpdate }) {
14119
14164
  value: (_a = form.getValues().aqModuleId) == null ? void 0 : _a.toString()
14120
14165
  }, form.getInputProps("aqModuleId"))
14121
14166
  ),
14122
- /* @__PURE__ */ jsx157(
14167
+ /* @__PURE__ */ jsx158(
14123
14168
  MyTextInput2,
14124
14169
  __spreadValues({
14125
14170
  withAsterisk: true,
14126
14171
  label: "Host mail server"
14127
14172
  }, form.getInputProps("hostMailServer"))
14128
14173
  ),
14129
- /* @__PURE__ */ jsx157(
14174
+ /* @__PURE__ */ jsx158(
14130
14175
  CustomNumberInput,
14131
14176
  __spreadValues({
14132
14177
  withAsterisk: true,
@@ -14134,7 +14179,7 @@ function FormInput({ form, aqModuleId, isUpdate }) {
14134
14179
  label: "Outgoing port"
14135
14180
  }, form.getInputProps("outgoingPort"))
14136
14181
  ),
14137
- /* @__PURE__ */ jsx157(
14182
+ /* @__PURE__ */ jsx158(
14138
14183
  CustomNumberInput,
14139
14184
  __spreadValues({
14140
14185
  withAsterisk: true,
@@ -14142,7 +14187,7 @@ function FormInput({ form, aqModuleId, isUpdate }) {
14142
14187
  label: "Incoming port"
14143
14188
  }, form.getInputProps("incomingPort"))
14144
14189
  ),
14145
- /* @__PURE__ */ jsx157(
14190
+ /* @__PURE__ */ jsx158(
14146
14191
  MySelect2,
14147
14192
  __spreadProps(__spreadValues({
14148
14193
  withAsterisk: true,
@@ -14153,13 +14198,13 @@ function FormInput({ form, aqModuleId, isUpdate }) {
14153
14198
  onChange: (e4) => form.setFieldValue("isSslEnabled", e4 == "true" ? true : false)
14154
14199
  })
14155
14200
  ),
14156
- /* @__PURE__ */ jsx157(
14201
+ /* @__PURE__ */ jsx158(
14157
14202
  MyTextInput2,
14158
14203
  __spreadValues({
14159
14204
  label: "Username"
14160
14205
  }, form.getInputProps("emailAddress"))
14161
14206
  ),
14162
- /* @__PURE__ */ jsx157(
14207
+ /* @__PURE__ */ jsx158(
14163
14208
  PasswordInput3,
14164
14209
  __spreadProps(__spreadValues({
14165
14210
  label: "Password",
@@ -14172,9 +14217,9 @@ function FormInput({ form, aqModuleId, isUpdate }) {
14172
14217
  }
14173
14218
 
14174
14219
  // src/modules-features/admin/core/mailConfig/F_mailConfig_Delete.tsx
14175
- import { jsx as jsx158 } from "react/jsx-runtime";
14220
+ import { jsx as jsx159 } from "react/jsx-runtime";
14176
14221
  function F_mailConfig_Delete({ id, contextData }) {
14177
- return /* @__PURE__ */ jsx158(
14222
+ return /* @__PURE__ */ jsx159(
14178
14223
  MyActionIconDelete,
14179
14224
  {
14180
14225
  contextData,
@@ -14188,7 +14233,7 @@ function F_mailConfig_Delete({ id, contextData }) {
14188
14233
  }
14189
14234
 
14190
14235
  // src/modules-features/admin/core/mailConfig/F_mailConfig_Read.tsx
14191
- import { jsx as jsx159, jsxs as jsxs84 } from "react/jsx-runtime";
14236
+ import { jsx as jsx160, jsxs as jsxs84 } from "react/jsx-runtime";
14192
14237
  function F_mailConfig_Read({ emailModule }) {
14193
14238
  const mailConfigQuery = useMyReactQuery({
14194
14239
  queryKey: ["mailConfigs"],
@@ -14216,7 +14261,7 @@ function F_mailConfig_Read({ emailModule }) {
14216
14261
  },
14217
14262
  {
14218
14263
  header: "SSL",
14219
- accessorFn: (row) => /* @__PURE__ */ jsx159(Center11, { children: /* @__PURE__ */ jsx159(CustomThemeIconSquareCheck, { checked: row.isSslEnabled }) })
14264
+ accessorFn: (row) => /* @__PURE__ */ jsx160(Center11, { children: /* @__PURE__ */ jsx160(CustomThemeIconSquareCheck, { checked: row.isSslEnabled }) })
14220
14265
  },
14221
14266
  {
14222
14267
  header: "Username",
@@ -14228,17 +14273,17 @@ function F_mailConfig_Read({ emailModule }) {
14228
14273
  }
14229
14274
  ], []);
14230
14275
  if (mailConfigQuery.isLoading) return "\u0110ang t\u1EA3i";
14231
- return /* @__PURE__ */ jsx159(
14276
+ return /* @__PURE__ */ jsx160(
14232
14277
  MyDataTable,
14233
14278
  {
14234
14279
  isLoading: mailConfigQuery.isLoading,
14235
14280
  isError: mailConfigQuery.isError,
14236
14281
  columns,
14237
14282
  data: mailConfigQuery.data || [],
14238
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx159(F_mailConfig_CreateUpdate, { emailModule }),
14283
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx160(F_mailConfig_CreateUpdate, { emailModule }),
14239
14284
  renderRowActions: ({ row }) => /* @__PURE__ */ jsxs84(MyCenterFull, { children: [
14240
- /* @__PURE__ */ jsx159(F_mailConfig_CreateUpdate, { values: row.original, emailModule }),
14241
- /* @__PURE__ */ jsx159(F_mailConfig_Delete, { id: row.original.id, contextData: row.original.hostMailServer })
14285
+ /* @__PURE__ */ jsx160(F_mailConfig_CreateUpdate, { values: row.original, emailModule }),
14286
+ /* @__PURE__ */ jsx160(F_mailConfig_Delete, { id: row.original.id, contextData: row.original.hostMailServer })
14242
14287
  ] })
14243
14288
  }
14244
14289
  );
@@ -14254,15 +14299,15 @@ var mockData = [
14254
14299
  ];
14255
14300
 
14256
14301
  // src/modules-features/admin/core/mailConfig/F_mailConfig.tsx
14257
- import { jsx as jsx160 } from "react/jsx-runtime";
14302
+ import { jsx as jsx161 } from "react/jsx-runtime";
14258
14303
 
14259
14304
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
14260
- import { useEffect as useEffect34 } from "react";
14305
+ import { useEffect as useEffect35 } from "react";
14261
14306
 
14262
14307
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
14263
14308
  import { Center as Center12, Grid as Grid7, Image as Image5, Paper as Paper12 } from "@mantine/core";
14264
14309
  import { useForm as useForm15 } from "@mantine/form";
14265
- import { useEffect as useEffect33 } from "react";
14310
+ import { useEffect as useEffect34 } from "react";
14266
14311
 
14267
14312
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
14268
14313
  import { useMutation as useMutation3 } from "@tanstack/react-query";
@@ -14277,7 +14322,7 @@ function useS_moduleConfig() {
14277
14322
  }
14278
14323
 
14279
14324
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
14280
- import { jsx as jsx161 } from "react/jsx-runtime";
14325
+ import { jsx as jsx162 } from "react/jsx-runtime";
14281
14326
  function F_moduleConfig_Save({
14282
14327
  form
14283
14328
  }) {
@@ -14311,7 +14356,7 @@ function F_moduleConfig_Save({
14311
14356
  }
14312
14357
  });
14313
14358
  }
14314
- return /* @__PURE__ */ jsx161(
14359
+ return /* @__PURE__ */ jsx162(
14315
14360
  MyButton2,
14316
14361
  {
14317
14362
  disabled: !form.isDirty(),
@@ -14322,7 +14367,7 @@ function F_moduleConfig_Save({
14322
14367
  }
14323
14368
 
14324
14369
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
14325
- import { jsx as jsx162, jsxs as jsxs85 } from "react/jsx-runtime";
14370
+ import { jsx as jsx163, jsxs as jsxs85 } from "react/jsx-runtime";
14326
14371
  function F_moduleConfig_Form() {
14327
14372
  var _a, _b, _c, _d;
14328
14373
  const query = useQ_AQ_GetAQModule();
@@ -14333,7 +14378,7 @@ function F_moduleConfig_Form() {
14333
14378
  logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
14334
14379
  }
14335
14380
  });
14336
- useEffect33(() => {
14381
+ useEffect34(() => {
14337
14382
  var _a2, _b2;
14338
14383
  if (!query.data) return;
14339
14384
  const values = {
@@ -14354,7 +14399,7 @@ function F_moduleConfig_Form() {
14354
14399
  form.setInitialValues(values);
14355
14400
  form.setValues(values);
14356
14401
  }, [query.data]);
14357
- useEffect33(() => {
14402
+ useEffect34(() => {
14358
14403
  if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
14359
14404
  const values = {
14360
14405
  code: "moduleCode",
@@ -14377,12 +14422,12 @@ function F_moduleConfig_Form() {
14377
14422
  }, []);
14378
14423
  return /* @__PURE__ */ jsxs85(Paper12, { p: "md", children: [
14379
14424
  /* @__PURE__ */ jsxs85(Grid7, { children: [
14380
- /* @__PURE__ */ jsx162(Grid7.Col, { span: 5, children: /* @__PURE__ */ jsx162(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
14381
- /* @__PURE__ */ jsx162(Grid7.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx162(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
14382
- /* @__PURE__ */ jsx162(Grid7.Col, { span: 12, children: /* @__PURE__ */ jsx162(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
14383
- /* @__PURE__ */ jsx162(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx162(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
14384
- /* @__PURE__ */ jsx162(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx162(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
14385
- /* @__PURE__ */ jsx162(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx162(
14425
+ /* @__PURE__ */ jsx163(Grid7.Col, { span: 5, children: /* @__PURE__ */ jsx163(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
14426
+ /* @__PURE__ */ jsx163(Grid7.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx163(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
14427
+ /* @__PURE__ */ jsx163(Grid7.Col, { span: 12, children: /* @__PURE__ */ jsx163(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
14428
+ /* @__PURE__ */ jsx163(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx163(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
14429
+ /* @__PURE__ */ jsx163(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx163(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
14430
+ /* @__PURE__ */ jsx163(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx163(
14386
14431
  MyDateInput,
14387
14432
  {
14388
14433
  value: form.getValues().registrationDate,
@@ -14391,7 +14436,7 @@ function F_moduleConfig_Form() {
14391
14436
  label: "Ng\xE0y \u0111\u0103ng k\xFD"
14392
14437
  }
14393
14438
  ) }),
14394
- /* @__PURE__ */ jsx162(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx162(
14439
+ /* @__PURE__ */ jsx163(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx163(
14395
14440
  MyDateInput,
14396
14441
  {
14397
14442
  value: form.getValues().limiteDate,
@@ -14400,8 +14445,8 @@ function F_moduleConfig_Form() {
14400
14445
  label: "Ng\xE0y h\u1EBFt h\u1EA1n"
14401
14446
  }
14402
14447
  ) }),
14403
- /* @__PURE__ */ jsx162(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs85(MyFlexColumn, { children: [
14404
- /* @__PURE__ */ jsx162(
14448
+ /* @__PURE__ */ jsx163(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs85(MyFlexColumn, { children: [
14449
+ /* @__PURE__ */ jsx163(
14405
14450
  MyFileInput,
14406
14451
  {
14407
14452
  accept: "image/png,image/jpeg",
@@ -14413,7 +14458,7 @@ function F_moduleConfig_Form() {
14413
14458
  }
14414
14459
  }
14415
14460
  ),
14416
- /* @__PURE__ */ jsx162(Paper12, { w: "100%", children: /* @__PURE__ */ jsx162(Center12, { children: /* @__PURE__ */ jsx162(
14461
+ /* @__PURE__ */ jsx163(Paper12, { w: "100%", children: /* @__PURE__ */ jsx163(Center12, { children: /* @__PURE__ */ jsx163(
14417
14462
  Image5,
14418
14463
  {
14419
14464
  fit: "contain",
@@ -14426,8 +14471,8 @@ function F_moduleConfig_Form() {
14426
14471
  }
14427
14472
  ) }) })
14428
14473
  ] }) }),
14429
- /* @__PURE__ */ jsx162(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs85(MyFlexColumn, { children: [
14430
- /* @__PURE__ */ jsx162(
14474
+ /* @__PURE__ */ jsx163(Grid7.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs85(MyFlexColumn, { children: [
14475
+ /* @__PURE__ */ jsx163(
14431
14476
  MyFileInput,
14432
14477
  {
14433
14478
  accept: "image/png,image/jpeg",
@@ -14439,7 +14484,7 @@ function F_moduleConfig_Form() {
14439
14484
  }
14440
14485
  }
14441
14486
  ),
14442
- /* @__PURE__ */ jsx162(Paper12, { children: /* @__PURE__ */ jsx162(Center12, { children: /* @__PURE__ */ jsx162(
14487
+ /* @__PURE__ */ jsx163(Paper12, { children: /* @__PURE__ */ jsx163(Center12, { children: /* @__PURE__ */ jsx163(
14443
14488
  Image5,
14444
14489
  {
14445
14490
  fit: "contain",
@@ -14453,18 +14498,18 @@ function F_moduleConfig_Form() {
14453
14498
  ) }) })
14454
14499
  ] }) })
14455
14500
  ] }),
14456
- /* @__PURE__ */ jsx162(MyFlexEnd, { children: /* @__PURE__ */ jsx162(F_moduleConfig_Save, { form }) })
14501
+ /* @__PURE__ */ jsx163(MyFlexEnd, { children: /* @__PURE__ */ jsx163(F_moduleConfig_Save, { form }) })
14457
14502
  ] });
14458
14503
  }
14459
14504
 
14460
14505
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
14461
- import { jsx as jsx163 } from "react/jsx-runtime";
14506
+ import { jsx as jsx164 } from "react/jsx-runtime";
14462
14507
  function F_moduleConfig({ AQModuleId }) {
14463
14508
  const store = useS_moduleConfig();
14464
- useEffect34(() => {
14509
+ useEffect35(() => {
14465
14510
  store.setProperty("AQModuleId", AQModuleId);
14466
14511
  }, []);
14467
- return /* @__PURE__ */ jsx163(F_moduleConfig_Form, {});
14512
+ return /* @__PURE__ */ jsx164(F_moduleConfig_Form, {});
14468
14513
  }
14469
14514
 
14470
14515
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
@@ -14472,7 +14517,7 @@ import { Space as Space6 } from "@mantine/core";
14472
14517
 
14473
14518
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Create.tsx
14474
14519
  import { useForm as useForm16 } from "@mantine/form";
14475
- import { jsx as jsx164, jsxs as jsxs86 } from "react/jsx-runtime";
14520
+ import { jsx as jsx165, jsxs as jsxs86 } from "react/jsx-runtime";
14476
14521
  function F_organizationPolicyDocs_Create({
14477
14522
  RegulationsTypeId
14478
14523
  }) {
@@ -14499,28 +14544,28 @@ function F_organizationPolicyDocs_Create({
14499
14544
  return service_document.create(body);
14500
14545
  },
14501
14546
  children: [
14502
- /* @__PURE__ */ jsx164(
14547
+ /* @__PURE__ */ jsx165(
14503
14548
  MyTextInput,
14504
14549
  __spreadValues({
14505
14550
  withAsterisk: true,
14506
14551
  label: "S\u1ED1 quy \u0111\u1ECBnh"
14507
14552
  }, form.getInputProps("decisionCode"))
14508
14553
  ),
14509
- /* @__PURE__ */ jsx164(
14554
+ /* @__PURE__ */ jsx165(
14510
14555
  MyDateInput,
14511
14556
  __spreadValues({
14512
14557
  withAsterisk: true,
14513
14558
  label: "Ng\xE0y ban h\xE0nh"
14514
14559
  }, form.getInputProps("promulgateDate"))
14515
14560
  ),
14516
- /* @__PURE__ */ jsx164(
14561
+ /* @__PURE__ */ jsx165(
14517
14562
  MyTextInput,
14518
14563
  __spreadValues({
14519
14564
  withAsterisk: true,
14520
14565
  label: "T\xEAn t\xE0i li\u1EC7u"
14521
14566
  }, form.getInputProps("name"))
14522
14567
  ),
14523
- /* @__PURE__ */ jsx164(
14568
+ /* @__PURE__ */ jsx165(
14524
14569
  Shared_DocTypeSelect,
14525
14570
  __spreadValues({
14526
14571
  withAsterisk: true,
@@ -14528,14 +14573,14 @@ function F_organizationPolicyDocs_Create({
14528
14573
  documentTypeId: RegulationsTypeId
14529
14574
  }, form.getInputProps("documentAttributeId"))
14530
14575
  ),
14531
- /* @__PURE__ */ jsx164(
14576
+ /* @__PURE__ */ jsx165(
14532
14577
  MyFileInput,
14533
14578
  __spreadValues({
14534
14579
  withAsterisk: true,
14535
14580
  label: "V\u0103n b\u1EA3n"
14536
14581
  }, form.getInputProps("file"))
14537
14582
  ),
14538
- /* @__PURE__ */ jsx164(
14583
+ /* @__PURE__ */ jsx165(
14539
14584
  MyNumberInput,
14540
14585
  __spreadValues({
14541
14586
  label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
@@ -14549,15 +14594,15 @@ function F_organizationPolicyDocs_Create({
14549
14594
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
14550
14595
  import { Accordion as Accordion2, Alert as Alert3, Blockquote as Blockquote2, Skeleton as Skeleton4 } from "@mantine/core";
14551
14596
  import { IconBug as IconBug3 } from "@tabler/icons-react";
14552
- import { useEffect as useEffect35, useMemo as useMemo20, useState as useState29 } from "react";
14597
+ import { useEffect as useEffect36, useMemo as useMemo20, useState as useState29 } from "react";
14553
14598
 
14554
14599
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Delete.tsx
14555
- import { jsx as jsx165 } from "react/jsx-runtime";
14600
+ import { jsx as jsx166 } from "react/jsx-runtime";
14556
14601
  function F_organizationPolicyDocs_Delete({
14557
14602
  id,
14558
14603
  contextData
14559
14604
  }) {
14560
- return /* @__PURE__ */ jsx165(
14605
+ return /* @__PURE__ */ jsx166(
14561
14606
  MyActionIconDelete,
14562
14607
  {
14563
14608
  contextData,
@@ -14568,7 +14613,7 @@ function F_organizationPolicyDocs_Delete({
14568
14613
 
14569
14614
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Update.tsx
14570
14615
  import { useForm as useForm17 } from "@mantine/form";
14571
- import { jsx as jsx166, jsxs as jsxs87 } from "react/jsx-runtime";
14616
+ import { jsx as jsx167, jsxs as jsxs87 } from "react/jsx-runtime";
14572
14617
  function F_organizationPolicyDocs_Update({
14573
14618
  values,
14574
14619
  RegulationsTypeId
@@ -14601,7 +14646,7 @@ function F_organizationPolicyDocs_Update({
14601
14646
  return service_document.update(body);
14602
14647
  },
14603
14648
  children: [
14604
- /* @__PURE__ */ jsx166(
14649
+ /* @__PURE__ */ jsx167(
14605
14650
  MyTextInput,
14606
14651
  __spreadValues({
14607
14652
  withAsterisk: true,
@@ -14609,21 +14654,21 @@ function F_organizationPolicyDocs_Update({
14609
14654
  label: "S\u1ED1 quy \u0111\u1ECBnh"
14610
14655
  }, form.getInputProps("decisionCode"))
14611
14656
  ),
14612
- /* @__PURE__ */ jsx166(
14657
+ /* @__PURE__ */ jsx167(
14613
14658
  MyDateInput,
14614
14659
  __spreadValues({
14615
14660
  withAsterisk: true,
14616
14661
  label: "Ng\xE0y ban h\xE0nh"
14617
14662
  }, form.getInputProps("promulgateDate"))
14618
14663
  ),
14619
- /* @__PURE__ */ jsx166(
14664
+ /* @__PURE__ */ jsx167(
14620
14665
  MyTextInput,
14621
14666
  __spreadValues({
14622
14667
  withAsterisk: true,
14623
14668
  label: "T\xEAn t\xE0i li\u1EC7u"
14624
14669
  }, form.getInputProps("name"))
14625
14670
  ),
14626
- /* @__PURE__ */ jsx166(
14671
+ /* @__PURE__ */ jsx167(
14627
14672
  Shared_DocTypeSelect,
14628
14673
  __spreadValues({
14629
14674
  withAsterisk: true,
@@ -14631,14 +14676,14 @@ function F_organizationPolicyDocs_Update({
14631
14676
  documentTypeId: RegulationsTypeId
14632
14677
  }, form.getInputProps("documentAttributeId"))
14633
14678
  ),
14634
- /* @__PURE__ */ jsx166(
14679
+ /* @__PURE__ */ jsx167(
14635
14680
  MyFileInput,
14636
14681
  __spreadValues({
14637
14682
  withAsterisk: true,
14638
14683
  label: "V\u0103n b\u1EA3n"
14639
14684
  }, form.getInputProps("file"))
14640
14685
  ),
14641
- /* @__PURE__ */ jsx166(
14686
+ /* @__PURE__ */ jsx167(
14642
14687
  MyNumberInput,
14643
14688
  __spreadValues({
14644
14689
  label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
@@ -14650,7 +14695,7 @@ function F_organizationPolicyDocs_Update({
14650
14695
  }
14651
14696
 
14652
14697
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
14653
- import { jsx as jsx167, jsxs as jsxs88 } from "react/jsx-runtime";
14698
+ import { jsx as jsx168, jsxs as jsxs88 } from "react/jsx-runtime";
14654
14699
  function F_organizationPolicyDocs_Read({
14655
14700
  RegulationsTypeId
14656
14701
  }) {
@@ -14660,7 +14705,7 @@ function F_organizationPolicyDocs_Read({
14660
14705
  queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
14661
14706
  axiosFn: () => service_documentAttribute.GetByType(RegulationsTypeId)
14662
14707
  });
14663
- useEffect35(() => {
14708
+ useEffect36(() => {
14664
14709
  var _a2;
14665
14710
  if (documentAttributeQuery.data && documentAttributeQuery.data.length > 0) {
14666
14711
  const firstItemId = (_a2 = documentAttributeQuery.data[0].id) == null ? void 0 : _a2.toString();
@@ -14670,10 +14715,10 @@ function F_organizationPolicyDocs_Read({
14670
14715
  }
14671
14716
  }, [documentAttributeQuery.data]);
14672
14717
  if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
14673
- return /* @__PURE__ */ jsx167(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
14718
+ return /* @__PURE__ */ jsx168(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
14674
14719
  if (documentAttributeQuery.isError)
14675
- return /* @__PURE__ */ jsx167(Alert3, { icon: /* @__PURE__ */ jsx167(IconBug3, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
14676
- return /* @__PURE__ */ jsx167(Skeleton4, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx167(MyFlexColumn, { children: /* @__PURE__ */ jsx167(
14720
+ return /* @__PURE__ */ jsx168(Alert3, { icon: /* @__PURE__ */ jsx168(IconBug3, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
14721
+ return /* @__PURE__ */ jsx168(Skeleton4, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx168(MyFlexColumn, { children: /* @__PURE__ */ jsx168(
14677
14722
  Accordion2,
14678
14723
  {
14679
14724
  variant: "separated",
@@ -14686,7 +14731,7 @@ function F_organizationPolicyDocs_Read({
14686
14731
  value: openItems,
14687
14732
  onChange: setOpenItems,
14688
14733
  multiple: true,
14689
- children: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item, idx) => /* @__PURE__ */ jsx167(
14734
+ children: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item, idx) => /* @__PURE__ */ jsx168(
14690
14735
  SubRead2,
14691
14736
  {
14692
14737
  name: item.name || "",
@@ -14724,15 +14769,15 @@ function SubRead2({
14724
14769
  {
14725
14770
  header: "File",
14726
14771
  accessorFn: (row) => {
14727
- return /* @__PURE__ */ jsx167(MyCenterFull, { children: /* @__PURE__ */ jsx167(MyButtonViewFileAPI, { filePath: row.path }) });
14772
+ return /* @__PURE__ */ jsx168(MyCenterFull, { children: /* @__PURE__ */ jsx168(MyButtonViewFileAPI, { filePath: row.path }) });
14728
14773
  }
14729
14774
  }
14730
14775
  ],
14731
14776
  []
14732
14777
  );
14733
- return /* @__PURE__ */ jsx167(Skeleton4, { mt: 10, visible: documentQuery.isLoading, children: /* @__PURE__ */ jsxs88(Accordion2.Item, { value: id.toString(), children: [
14734
- /* @__PURE__ */ jsx167(Accordion2.Control, { children: name }),
14735
- /* @__PURE__ */ jsx167(Accordion2.Panel, { children: /* @__PURE__ */ jsx167(
14778
+ return /* @__PURE__ */ jsx168(Skeleton4, { mt: 10, visible: documentQuery.isLoading, children: /* @__PURE__ */ jsxs88(Accordion2.Item, { value: id.toString(), children: [
14779
+ /* @__PURE__ */ jsx168(Accordion2.Control, { children: name }),
14780
+ /* @__PURE__ */ jsx168(Accordion2.Panel, { children: /* @__PURE__ */ jsx168(
14736
14781
  MyDataTable,
14737
14782
  {
14738
14783
  isLoading: documentQuery.isLoading,
@@ -14740,14 +14785,14 @@ function SubRead2({
14740
14785
  columns,
14741
14786
  data: documentQuery.data || [],
14742
14787
  renderRowActions: ({ row }) => /* @__PURE__ */ jsxs88(MyCenterFull, { children: [
14743
- /* @__PURE__ */ jsx167(
14788
+ /* @__PURE__ */ jsx168(
14744
14789
  F_organizationPolicyDocs_Update,
14745
14790
  {
14746
14791
  RegulationsTypeId,
14747
14792
  values: row.original
14748
14793
  }
14749
14794
  ),
14750
- /* @__PURE__ */ jsx167(
14795
+ /* @__PURE__ */ jsx168(
14751
14796
  F_organizationPolicyDocs_Delete,
14752
14797
  {
14753
14798
  id: row.original.id,
@@ -14761,12 +14806,12 @@ function SubRead2({
14761
14806
  }
14762
14807
 
14763
14808
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
14764
- import { Fragment as Fragment26, jsx as jsx168, jsxs as jsxs89 } from "react/jsx-runtime";
14809
+ import { Fragment as Fragment26, jsx as jsx169, jsxs as jsxs89 } from "react/jsx-runtime";
14765
14810
  function F_organizationPolicyDocs({ RegulationsTypeId }) {
14766
14811
  return /* @__PURE__ */ jsxs89(Fragment26, { children: [
14767
- /* @__PURE__ */ jsx168(MyFlexEnd, { children: /* @__PURE__ */ jsx168(F_organizationPolicyDocs_Create, { RegulationsTypeId }) }),
14768
- /* @__PURE__ */ jsx168(Space6, {}),
14769
- /* @__PURE__ */ jsx168(F_organizationPolicyDocs_Read, { RegulationsTypeId })
14812
+ /* @__PURE__ */ jsx169(MyFlexEnd, { children: /* @__PURE__ */ jsx169(F_organizationPolicyDocs_Create, { RegulationsTypeId }) }),
14813
+ /* @__PURE__ */ jsx169(Space6, {}),
14814
+ /* @__PURE__ */ jsx169(F_organizationPolicyDocs_Read, { RegulationsTypeId })
14770
14815
  ] });
14771
14816
  }
14772
14817
 
@@ -14775,7 +14820,7 @@ import { Group as Group39, TextInput as TextInput8 } from "@mantine/core";
14775
14820
  import { useMemo as useMemo21 } from "react";
14776
14821
 
14777
14822
  // src/modules-features/admin/core/pageContent/PageContentExport.tsx
14778
- import { jsx as jsx169 } from "react/jsx-runtime";
14823
+ import { jsx as jsx170 } from "react/jsx-runtime";
14779
14824
  var config4 = {
14780
14825
  fields: [
14781
14826
  {
@@ -14798,17 +14843,17 @@ var config4 = {
14798
14843
  };
14799
14844
  function PageContentExport({ table }) {
14800
14845
  const { data } = useExportData(table);
14801
- return /* @__PURE__ */ jsx169(AQButtonExportData, { exportConfig: config4, objectName: "Danh s\xE1ch Page content", data });
14846
+ return /* @__PURE__ */ jsx170(AQButtonExportData, { exportConfig: config4, objectName: "Danh s\xE1ch Page content", data });
14802
14847
  }
14803
14848
 
14804
14849
  // src/modules-features/admin/core/pageContent/PageContentSave.tsx
14805
- import { jsx as jsx170 } from "react/jsx-runtime";
14850
+ import { jsx as jsx171 } from "react/jsx-runtime";
14806
14851
  function PageContentSave({ values }) {
14807
14852
  const mutation = useMyReactMutation({
14808
14853
  axiosFn: (mutateValue) => service_page.updateList(mutateValue),
14809
14854
  mutationType: "update"
14810
14855
  });
14811
- return /* @__PURE__ */ jsx170(
14856
+ return /* @__PURE__ */ jsx171(
14812
14857
  MyButton,
14813
14858
  {
14814
14859
  actionType: "save",
@@ -14821,7 +14866,7 @@ function PageContentSave({ values }) {
14821
14866
  }
14822
14867
 
14823
14868
  // src/modules-features/admin/core/pageContent/PageContentTable.tsx
14824
- import { jsx as jsx171, jsxs as jsxs90 } from "react/jsx-runtime";
14869
+ import { jsx as jsx172, jsxs as jsxs90 } from "react/jsx-runtime";
14825
14870
  function PageContentTable({ menuData }) {
14826
14871
  const pageQuery = useMyReactQuery({
14827
14872
  queryKey: ["pages"],
@@ -14840,7 +14885,7 @@ function PageContentTable({ menuData }) {
14840
14885
  header: "M\xF4 t\u1EA3",
14841
14886
  accessorKey: "description",
14842
14887
  Cell: ({ row }) => {
14843
- return /* @__PURE__ */ jsx171(
14888
+ return /* @__PURE__ */ jsx172(
14844
14889
  TextInput8,
14845
14890
  {
14846
14891
  defaultValue: row.original.description,
@@ -14854,7 +14899,7 @@ function PageContentTable({ menuData }) {
14854
14899
  {
14855
14900
  header: "Url video h\u01B0\u1EDBng d\u1EABn",
14856
14901
  accessorKey: "link",
14857
- Cell: ({ row }) => /* @__PURE__ */ jsx171(
14902
+ Cell: ({ row }) => /* @__PURE__ */ jsx172(
14858
14903
  TextInput8,
14859
14904
  {
14860
14905
  defaultValue: row.original.link,
@@ -14869,7 +14914,7 @@ function PageContentTable({ menuData }) {
14869
14914
  accessorKey: "pageDocumentFileDetail.fileName",
14870
14915
  Cell: ({ row }) => {
14871
14916
  const file = row.original.pageDocumentFileDetail;
14872
- return /* @__PURE__ */ jsx171(
14917
+ return /* @__PURE__ */ jsx172(
14873
14918
  MyFileInput,
14874
14919
  {
14875
14920
  placeholder: (file == null ? void 0 : file.fileName) || "Vui l\xF2ng ch\u1ECDn file",
@@ -14905,7 +14950,7 @@ function PageContentTable({ menuData }) {
14905
14950
  });
14906
14951
  });
14907
14952
  }, [pageQuery.data, menuData]).filter(Boolean);
14908
- return /* @__PURE__ */ jsx171(
14953
+ return /* @__PURE__ */ jsx172(
14909
14954
  MyDataTable,
14910
14955
  {
14911
14956
  columns,
@@ -14920,17 +14965,17 @@ function PageContentTable({ menuData }) {
14920
14965
  return (_a = row.id) == null ? void 0 : _a.toString();
14921
14966
  },
14922
14967
  renderTopToolbarCustomActions: ({ table }) => /* @__PURE__ */ jsxs90(Group39, { children: [
14923
- /* @__PURE__ */ jsx171(PageContentSave, { values: editedRows }),
14924
- /* @__PURE__ */ jsx171(PageContentExport, { table })
14968
+ /* @__PURE__ */ jsx172(PageContentSave, { values: editedRows }),
14969
+ /* @__PURE__ */ jsx172(PageContentExport, { table })
14925
14970
  ] })
14926
14971
  }
14927
14972
  );
14928
14973
  }
14929
14974
 
14930
14975
  // src/modules-features/admin/core/pageContent/Feat_PageContentTable.tsx
14931
- import { jsx as jsx172 } from "react/jsx-runtime";
14976
+ import { jsx as jsx173 } from "react/jsx-runtime";
14932
14977
  function Feat_PageContentTable({ menuData }) {
14933
- return /* @__PURE__ */ jsx172(PageContentTable, { menuData });
14978
+ return /* @__PURE__ */ jsx173(PageContentTable, { menuData });
14934
14979
  }
14935
14980
 
14936
14981
  // src/modules/Role/usecase/UseCase_RoleTable.tsx
@@ -14948,7 +14993,7 @@ var enumLabel_roleStatus = {
14948
14993
  };
14949
14994
 
14950
14995
  // src/modules/Role/usecase/UseCase_RoleTable.tsx
14951
- import { jsx as jsx173 } from "react/jsx-runtime";
14996
+ import { jsx as jsx174 } from "react/jsx-runtime";
14952
14997
  function UseCase_RoleTable2(_a) {
14953
14998
  var rest = __objRest(_a, []);
14954
14999
  const allColumns = useMemo22(() => [
@@ -14976,7 +15021,7 @@ function UseCase_RoleTable2(_a) {
14976
15021
  }
14977
15022
  }
14978
15023
  ], []);
14979
- return /* @__PURE__ */ jsx173(
15024
+ return /* @__PURE__ */ jsx174(
14980
15025
  MyDataTable,
14981
15026
  __spreadValues({
14982
15027
  columns: allColumns
@@ -15005,7 +15050,7 @@ var mapper_role = {
15005
15050
  };
15006
15051
 
15007
15052
  // src/modules/Role/adapter/Adapter_RoleTable.tsx
15008
- import { jsx as jsx174 } from "react/jsx-runtime";
15053
+ import { jsx as jsx175 } from "react/jsx-runtime";
15009
15054
  function Adapter_RoleTable2(_a) {
15010
15055
  var rest = __objRest(_a, []);
15011
15056
  var _a2;
@@ -15013,7 +15058,7 @@ function Adapter_RoleTable2(_a) {
15013
15058
  queryKey: ["roles"],
15014
15059
  axiosFn: () => service_role.getAdminRole()
15015
15060
  });
15016
- return /* @__PURE__ */ jsx174(
15061
+ return /* @__PURE__ */ jsx175(
15017
15062
  UseCase_RoleTable2,
15018
15063
  __spreadValues({
15019
15064
  data: ((_a2 = query.data) == null ? void 0 : _a2.map(mapper_role.mapToDomain)) || [],
@@ -15025,20 +15070,20 @@ function Adapter_RoleTable2(_a) {
15025
15070
 
15026
15071
  // src/modules/Role/adapter/Adapter_RoleForm.tsx
15027
15072
  import { useForm as useForm18 } from "@mantine/form";
15028
- import { useEffect as useEffect36 } from "react";
15073
+ import { useEffect as useEffect37 } from "react";
15029
15074
 
15030
15075
  // src/modules/Role/usecase/UseCase_RoleForm.tsx
15031
15076
  import { Stack as Stack14 } from "@mantine/core";
15032
- import { jsx as jsx175, jsxs as jsxs91 } from "react/jsx-runtime";
15077
+ import { jsx as jsx176, jsxs as jsxs91 } from "react/jsx-runtime";
15033
15078
  function UseCase_RoleCreate({
15034
15079
  form,
15035
15080
  onSubmit
15036
15081
  }) {
15037
15082
  var _a;
15038
- return /* @__PURE__ */ jsx175("form", { onSubmit: form.onSubmit(onSubmit), children: /* @__PURE__ */ jsxs91(Stack14, { children: [
15039
- /* @__PURE__ */ jsx175(MyTextInput2, __spreadValues({ label: "M\xE3 nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
15040
- /* @__PURE__ */ jsx175(MyTextInput2, __spreadValues({ label: "T\xEAn nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("name"))),
15041
- /* @__PURE__ */ jsx175(
15083
+ return /* @__PURE__ */ jsx176("form", { onSubmit: form.onSubmit(onSubmit), children: /* @__PURE__ */ jsxs91(Stack14, { children: [
15084
+ /* @__PURE__ */ jsx176(MyTextInput2, __spreadValues({ label: "M\xE3 nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
15085
+ /* @__PURE__ */ jsx176(MyTextInput2, __spreadValues({ label: "T\xEAn nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("name"))),
15086
+ /* @__PURE__ */ jsx176(
15042
15087
  MySelect2,
15043
15088
  {
15044
15089
  label: "Tr\u1EA1ng th\xE1i t\xE0i kho\u1EA3n",
@@ -15047,13 +15092,13 @@ function UseCase_RoleCreate({
15047
15092
  onChange: (val) => form.setFieldValue("status", val)
15048
15093
  }
15049
15094
  ),
15050
- /* @__PURE__ */ jsx175(MyTextInput2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note"))),
15051
- /* @__PURE__ */ jsx175(MyButton, { actionType: "save" })
15095
+ /* @__PURE__ */ jsx176(MyTextInput2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note"))),
15096
+ /* @__PURE__ */ jsx176(MyButton, { actionType: "save" })
15052
15097
  ] }) });
15053
15098
  }
15054
15099
 
15055
15100
  // src/modules/Role/adapter/Adapter_RoleForm.tsx
15056
- import { jsx as jsx176 } from "react/jsx-runtime";
15101
+ import { jsx as jsx177 } from "react/jsx-runtime";
15057
15102
  function Adapter_RoleForm({
15058
15103
  values,
15059
15104
  onSuccess
@@ -15071,11 +15116,11 @@ function Adapter_RoleForm({
15071
15116
  },
15072
15117
  mutationType: values ? "update" : "create"
15073
15118
  });
15074
- useEffect36(() => {
15119
+ useEffect37(() => {
15075
15120
  if (!values) return;
15076
15121
  form.initialize(values);
15077
15122
  }, [values]);
15078
- return /* @__PURE__ */ jsx176(
15123
+ return /* @__PURE__ */ jsx177(
15079
15124
  UseCase_RoleCreate,
15080
15125
  {
15081
15126
  form,
@@ -15090,11 +15135,11 @@ function Adapter_RoleForm({
15090
15135
  import { Group as Group40, TextInput as TextInput9 } from "@mantine/core";
15091
15136
  import { useDebouncedValue as useDebouncedValue3 } from "@mantine/hooks";
15092
15137
  import { IconSearch as IconSearch6 } from "@tabler/icons-react";
15093
- import { useEffect as useEffect37, useState as useState30 } from "react";
15138
+ import { useEffect as useEffect38, useState as useState30 } from "react";
15094
15139
 
15095
15140
  // src/modules/User/usecase/Usecase_UserTable.tsx
15096
15141
  import { useMemo as useMemo23 } from "react";
15097
- import { jsx as jsx177 } from "react/jsx-runtime";
15142
+ import { jsx as jsx178 } from "react/jsx-runtime";
15098
15143
  function UseCase_UserTable(_a) {
15099
15144
  var rest = __objRest(_a, []);
15100
15145
  const allColumns = useMemo23(() => [
@@ -15120,7 +15165,7 @@ function UseCase_UserTable(_a) {
15120
15165
  accessorKey: "phoneNumber"
15121
15166
  }
15122
15167
  ], []);
15123
- return /* @__PURE__ */ jsx177(
15168
+ return /* @__PURE__ */ jsx178(
15124
15169
  MyDataTable,
15125
15170
  __spreadValues({
15126
15171
  columns: allColumns
@@ -15147,7 +15192,7 @@ var mapper_user = {
15147
15192
  };
15148
15193
 
15149
15194
  // src/modules/User/adapter/Adapter_UserTable.tsx
15150
- import { jsx as jsx178, jsxs as jsxs92 } from "react/jsx-runtime";
15195
+ import { jsx as jsx179, jsxs as jsxs92 } from "react/jsx-runtime";
15151
15196
  function Adapter_UserTable(_a) {
15152
15197
  var rest = __objRest(_a, []);
15153
15198
  var _a2;
@@ -15167,11 +15212,11 @@ function Adapter_UserTable(_a) {
15167
15212
  });
15168
15213
  }
15169
15214
  });
15170
- useEffect37(() => {
15215
+ useEffect38(() => {
15171
15216
  setGlobalFilter(debouncedSearch);
15172
15217
  paginationState[1]({ pageIndex: 0, pageSize: paginationState[0].pageSize });
15173
15218
  }, [debouncedSearch]);
15174
- return /* @__PURE__ */ jsx178(
15219
+ return /* @__PURE__ */ jsx179(
15175
15220
  UseCase_UserTable,
15176
15221
  __spreadProps(__spreadValues({
15177
15222
  rowCount: adminAccountQuery.dataCount,
@@ -15186,12 +15231,12 @@ function Adapter_UserTable(_a) {
15186
15231
  var _a3;
15187
15232
  return /* @__PURE__ */ jsxs92(Group40, { children: [
15188
15233
  (_a3 = rest == null ? void 0 : rest.renderTopToolbarCustomActions) == null ? void 0 : _a3.call(rest, table),
15189
- /* @__PURE__ */ jsx178(
15234
+ /* @__PURE__ */ jsx179(
15190
15235
  TextInput9,
15191
15236
  {
15192
15237
  w: "250",
15193
15238
  placeholder: "T\xECm theo t\xE0i kho\u1EA3n ho\u1EB7c h\u1ECD t\xEAn...",
15194
- leftSection: /* @__PURE__ */ jsx178(IconSearch6, { size: 16 }),
15239
+ leftSection: /* @__PURE__ */ jsx179(IconSearch6, { size: 16 }),
15195
15240
  value: searchInput,
15196
15241
  onChange: (e4) => setSearchInput(e4.currentTarget.value)
15197
15242
  }
@@ -15206,8 +15251,8 @@ function Adapter_UserTable(_a) {
15206
15251
  import { useDisclosure as useDisclosure22 } from "@mantine/hooks";
15207
15252
  import { notifications as notifications6 } from "@mantine/notifications";
15208
15253
  import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
15209
- import { useEffect as useEffect38, useState as useState31 } from "react";
15210
- import { jsx as jsx179 } from "react/jsx-runtime";
15254
+ import { useEffect as useEffect39, useState as useState31 } from "react";
15255
+ import { jsx as jsx180 } from "react/jsx-runtime";
15211
15256
  function Adapter_UserAddToRole({
15212
15257
  roleId,
15213
15258
  userIds
@@ -15247,7 +15292,7 @@ function Adapter_UserAddToRole({
15247
15292
  },
15248
15293
  enableDefaultSuccess: false
15249
15294
  });
15250
- useEffect38(() => {
15295
+ useEffect39(() => {
15251
15296
  if (userIds == null ? void 0 : userIds.length) {
15252
15297
  const selected = userIds.reduce((acc, id) => {
15253
15298
  acc[id] = true;
@@ -15257,20 +15302,20 @@ function Adapter_UserAddToRole({
15257
15302
  setDefaultSelectedIds(userIds);
15258
15303
  }
15259
15304
  }, [userIds]);
15260
- return /* @__PURE__ */ jsx179(
15305
+ return /* @__PURE__ */ jsx180(
15261
15306
  MyButtonModal,
15262
15307
  {
15263
15308
  disclosure: disc,
15264
15309
  buttonProps: { actionType: "create" },
15265
15310
  modalProps: { title: "Danh s\xE1ch t\xE0i kho\u1EA3n ng\u01B0\u1EDDi d\xF9ng thu\u1ED9c quy\u1EC1n", size: "70%" },
15266
- children: /* @__PURE__ */ jsx179(
15311
+ children: /* @__PURE__ */ jsx180(
15267
15312
  Adapter_UserTable,
15268
15313
  {
15269
15314
  enableRowSelection: true,
15270
15315
  state: { rowSelection: userSelectedId[0] },
15271
15316
  onRowSelectionChange: userSelectedId[1],
15272
15317
  getRowId: (row) => row.id,
15273
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx179(
15318
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx180(
15274
15319
  MyButton,
15275
15320
  {
15276
15321
  actionType: "select",
@@ -15293,17 +15338,17 @@ function Adapter_UserAddToRole({
15293
15338
  }
15294
15339
 
15295
15340
  // src/modules/User/adapter/Adapter_UserDeleteFromRole.tsx
15296
- import { jsx as jsx180 } from "react/jsx-runtime";
15341
+ import { jsx as jsx181 } from "react/jsx-runtime";
15297
15342
  function Adapter_UserDeleteFromRole({
15298
15343
  roleId,
15299
15344
  userId
15300
15345
  }) {
15301
- return /* @__PURE__ */ jsx180(MyActionIconDelete, { onSubmit: () => service_role.removeUsersFromRole({ roleId, userIds: [userId] }) });
15346
+ return /* @__PURE__ */ jsx181(MyActionIconDelete, { onSubmit: () => service_role.removeUsersFromRole({ roleId, userIds: [userId] }) });
15302
15347
  }
15303
15348
 
15304
15349
  // src/modules/User/adapter/Adapter_UserTableByRole.tsx
15305
- import { useEffect as useEffect39 } from "react";
15306
- import { jsx as jsx181 } from "react/jsx-runtime";
15350
+ import { useEffect as useEffect40 } from "react";
15351
+ import { jsx as jsx182 } from "react/jsx-runtime";
15307
15352
  function Adapter_UserTableByRole(_a) {
15308
15353
  var _b = _a, { byRoleId } = _b, rest = __objRest(_b, ["byRoleId"]);
15309
15354
  var _a2;
@@ -15313,13 +15358,13 @@ function Adapter_UserTableByRole(_a) {
15313
15358
  return service_role.getUserByRole({ roleId: byRoleId });
15314
15359
  }
15315
15360
  });
15316
- useEffect39(() => {
15361
+ useEffect40(() => {
15317
15362
  if (adminAccountQuery.data && rest.onUserLoad) {
15318
15363
  const users = adminAccountQuery.data.map(mapper_user.mapToDomain);
15319
15364
  rest.onUserLoad(users);
15320
15365
  }
15321
15366
  }, [adminAccountQuery.data]);
15322
- return /* @__PURE__ */ jsx181(
15367
+ return /* @__PURE__ */ jsx182(
15323
15368
  UseCase_UserTable,
15324
15369
  __spreadValues({
15325
15370
  isLoading: adminAccountQuery.isLoading,
@@ -15338,7 +15383,7 @@ import { useState as useState32 } from "react";
15338
15383
  // src/modules-features/admin/core/roleManagement/RoleManagement_Import.tsx
15339
15384
  import { useModalsStack as useModalsStack4 } from "@mantine/core";
15340
15385
  import { Workbook as Workbook2 } from "exceljs";
15341
- import { Fragment as Fragment27, jsx as jsx182, jsxs as jsxs93 } from "react/jsx-runtime";
15386
+ import { Fragment as Fragment27, jsx as jsx183, jsxs as jsxs93 } from "react/jsx-runtime";
15342
15387
  var fieldConfig = [
15343
15388
  {
15344
15389
  fieldKey: "code",
@@ -15367,8 +15412,8 @@ function RoleManagement_Import({ roleId }) {
15367
15412
  await utils_excel.download({ workbook, name: "C\u1EA5u tr\xFAc import t\xE0i kho\u1EA3n v\xE0o quy\u1EC1n" });
15368
15413
  };
15369
15414
  return /* @__PURE__ */ jsxs93(Fragment27, { children: [
15370
- /* @__PURE__ */ jsx182(MyButton, { actionType: "import", onClick: () => stack.open("FileImportConfig") }),
15371
- /* @__PURE__ */ jsx182(
15415
+ /* @__PURE__ */ jsx183(MyButton, { actionType: "import", onClick: () => stack.open("FileImportConfig") }),
15416
+ /* @__PURE__ */ jsx183(
15372
15417
  MyModalImport,
15373
15418
  {
15374
15419
  fieldDefinition: fieldConfig.map((item) => ({
@@ -15390,12 +15435,12 @@ function RoleManagement_Import({ roleId }) {
15390
15435
  }
15391
15436
 
15392
15437
  // src/modules-features/admin/core/roleManagement/features/Feat_CreateUpdateRole.tsx
15393
- import { jsx as jsx183, jsxs as jsxs94 } from "react/jsx-runtime";
15438
+ import { jsx as jsx184, jsxs as jsxs94 } from "react/jsx-runtime";
15394
15439
  function Feat_CreateUpdateRole({ values }) {
15395
15440
  const isUpdate = values != void 0;
15396
15441
  const disc = useDisclosure23();
15397
15442
  const userIds = useState32([]);
15398
- return /* @__PURE__ */ jsx183(
15443
+ return /* @__PURE__ */ jsx184(
15399
15444
  MyButtonModal,
15400
15445
  {
15401
15446
  disclosure: disc,
@@ -15405,11 +15450,11 @@ function Feat_CreateUpdateRole({ values }) {
15405
15450
  isActionIcon: isUpdate,
15406
15451
  children: /* @__PURE__ */ jsxs94(Tabs4, { defaultValue: "gallery", children: [
15407
15452
  /* @__PURE__ */ jsxs94(Tabs4.List, { children: [
15408
- /* @__PURE__ */ jsx183(Tabs4.Tab, { value: "gallery", children: "Th\xF4ng tin chung" }),
15409
- /* @__PURE__ */ jsx183(Tabs4.Tab, { value: "messages", hidden: !isUpdate, children: "Danh s\xE1ch th\xE0nh vi\xEAn" })
15453
+ /* @__PURE__ */ jsx184(Tabs4.Tab, { value: "gallery", children: "Th\xF4ng tin chung" }),
15454
+ /* @__PURE__ */ jsx184(Tabs4.Tab, { value: "messages", hidden: !isUpdate, children: "Danh s\xE1ch th\xE0nh vi\xEAn" })
15410
15455
  ] }),
15411
- /* @__PURE__ */ jsx183(Tabs4.Panel, { value: "gallery", pt: "md", children: /* @__PURE__ */ jsx183(Adapter_RoleForm, { onSuccess: disc[1].close, values }) }),
15412
- /* @__PURE__ */ jsx183(Tabs4.Panel, { value: "messages", pt: "md", children: /* @__PURE__ */ jsx183(MyFieldset, { title: "Danh s\xE1ch t\xE0i kho\u1EA3n ng\u01B0\u1EDDi d\xF9ng thu\u1ED9c nh\xF3m", children: /* @__PURE__ */ jsx183(
15456
+ /* @__PURE__ */ jsx184(Tabs4.Panel, { value: "gallery", pt: "md", children: /* @__PURE__ */ jsx184(Adapter_RoleForm, { onSuccess: disc[1].close, values }) }),
15457
+ /* @__PURE__ */ jsx184(Tabs4.Panel, { value: "messages", pt: "md", children: /* @__PURE__ */ jsx184(MyFieldset, { title: "Danh s\xE1ch t\xE0i kho\u1EA3n ng\u01B0\u1EDDi d\xF9ng thu\u1ED9c nh\xF3m", children: /* @__PURE__ */ jsx184(
15413
15458
  Adapter_UserTableByRole,
15414
15459
  {
15415
15460
  byRoleId: Number(values == null ? void 0 : values.id),
@@ -15419,16 +15464,16 @@ function Feat_CreateUpdateRole({ values }) {
15419
15464
  },
15420
15465
  visibleFields: ["code", "userFullName", "unit"],
15421
15466
  renderTopToolbarCustomActions: () => /* @__PURE__ */ jsxs94(Group41, { children: [
15422
- /* @__PURE__ */ jsx183(
15467
+ /* @__PURE__ */ jsx184(
15423
15468
  Adapter_UserAddToRole,
15424
15469
  {
15425
15470
  roleId: Number(values == null ? void 0 : values.id),
15426
15471
  userIds: userIds[0]
15427
15472
  }
15428
15473
  ),
15429
- /* @__PURE__ */ jsx183(RoleManagement_Import, { roleId: Number(values == null ? void 0 : values.id) })
15474
+ /* @__PURE__ */ jsx184(RoleManagement_Import, { roleId: Number(values == null ? void 0 : values.id) })
15430
15475
  ] }),
15431
- renderRowActions: ({ row }) => /* @__PURE__ */ jsx183(MyCenterFull, { children: /* @__PURE__ */ jsx183(Adapter_UserDeleteFromRole, { roleId: Number(values == null ? void 0 : values.id), userId: Number(row.original.id) }) })
15476
+ renderRowActions: ({ row }) => /* @__PURE__ */ jsx184(MyCenterFull, { children: /* @__PURE__ */ jsx184(Adapter_UserDeleteFromRole, { roleId: Number(values == null ? void 0 : values.id), userId: Number(row.original.id) }) })
15432
15477
  }
15433
15478
  ) }) })
15434
15479
  ] })
@@ -15437,27 +15482,27 @@ function Feat_CreateUpdateRole({ values }) {
15437
15482
  }
15438
15483
 
15439
15484
  // src/modules-features/admin/core/roleManagement/RoleManagement_Delete.tsx
15440
- import { jsx as jsx184 } from "react/jsx-runtime";
15485
+ import { jsx as jsx185 } from "react/jsx-runtime";
15441
15486
  function RoleManagement_Delete({ code, id }) {
15442
- return /* @__PURE__ */ jsx184(MyActionIconDelete, { contextData: code, onSubmit: () => service_role.delete(id) });
15487
+ return /* @__PURE__ */ jsx185(MyActionIconDelete, { contextData: code, onSubmit: () => service_role.delete(id) });
15443
15488
  }
15444
15489
 
15445
15490
  // src/modules-features/admin/core/roleManagement/Feat_RoleManagement.tsx
15446
- import { jsx as jsx185, jsxs as jsxs95 } from "react/jsx-runtime";
15491
+ import { jsx as jsx186, jsxs as jsxs95 } from "react/jsx-runtime";
15447
15492
  function Feat_RoleManagement() {
15448
- return /* @__PURE__ */ jsx185(
15493
+ return /* @__PURE__ */ jsx186(
15449
15494
  Adapter_RoleTable2,
15450
15495
  {
15451
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx185(Feat_CreateUpdateRole, {}),
15496
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx186(Feat_CreateUpdateRole, {}),
15452
15497
  renderRowActions: ({ row }) => {
15453
15498
  return /* @__PURE__ */ jsxs95(MyCenterFull, { children: [
15454
- /* @__PURE__ */ jsx185(
15499
+ /* @__PURE__ */ jsx186(
15455
15500
  Feat_CreateUpdateRole,
15456
15501
  {
15457
15502
  values: row.original
15458
15503
  }
15459
15504
  ),
15460
- /* @__PURE__ */ jsx185(
15505
+ /* @__PURE__ */ jsx186(
15461
15506
  RoleManagement_Delete,
15462
15507
  {
15463
15508
  id: Number(row.original.id),
@@ -15476,7 +15521,7 @@ import { useMemo as useMemo24 } from "react";
15476
15521
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
15477
15522
  import { FileInput as FileInput5 } from "@mantine/core";
15478
15523
  import { useForm as useForm19 } from "@mantine/form";
15479
- import { jsx as jsx186, jsxs as jsxs96 } from "react/jsx-runtime";
15524
+ import { jsx as jsx187, jsxs as jsxs96 } from "react/jsx-runtime";
15480
15525
  function F_securityPolicyDocs_Create({ SecurityTypeId }) {
15481
15526
  const form = useForm19({
15482
15527
  mode: "uncontrolled",
@@ -15500,28 +15545,28 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
15500
15545
  return service_document.create(body);
15501
15546
  },
15502
15547
  children: [
15503
- /* @__PURE__ */ jsx186(
15548
+ /* @__PURE__ */ jsx187(
15504
15549
  MyTextInput,
15505
15550
  __spreadValues({
15506
15551
  withAsterisk: true,
15507
15552
  label: "S\u1ED1 quy \u0111\u1ECBnh"
15508
15553
  }, form.getInputProps("decisionCode"))
15509
15554
  ),
15510
- /* @__PURE__ */ jsx186(
15555
+ /* @__PURE__ */ jsx187(
15511
15556
  MyDateInput,
15512
15557
  __spreadValues({
15513
15558
  withAsterisk: true,
15514
15559
  label: "Ng\xE0y ban h\xE0nh"
15515
15560
  }, form.getInputProps("promulgateDate"))
15516
15561
  ),
15517
- /* @__PURE__ */ jsx186(
15562
+ /* @__PURE__ */ jsx187(
15518
15563
  MyTextInput,
15519
15564
  __spreadValues({
15520
15565
  withAsterisk: true,
15521
15566
  label: "T\xEAn t\xE0i li\u1EC7u"
15522
15567
  }, form.getInputProps("name"))
15523
15568
  ),
15524
- /* @__PURE__ */ jsx186(
15569
+ /* @__PURE__ */ jsx187(
15525
15570
  FileInput5,
15526
15571
  __spreadValues({
15527
15572
  withAsterisk: true,
@@ -15535,12 +15580,12 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
15535
15580
  }
15536
15581
 
15537
15582
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Delete.tsx
15538
- import { jsx as jsx187 } from "react/jsx-runtime";
15583
+ import { jsx as jsx188 } from "react/jsx-runtime";
15539
15584
  function F_securityPolicyDocs_Delete({
15540
15585
  id,
15541
15586
  contextData
15542
15587
  }) {
15543
- return /* @__PURE__ */ jsx187(
15588
+ return /* @__PURE__ */ jsx188(
15544
15589
  MyActionIconDelete,
15545
15590
  {
15546
15591
  contextData,
@@ -15552,7 +15597,7 @@ function F_securityPolicyDocs_Delete({
15552
15597
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Update.tsx
15553
15598
  import { FileInput as FileInput6, TextInput as TextInput10 } from "@mantine/core";
15554
15599
  import { useForm as useForm20 } from "@mantine/form";
15555
- import { jsx as jsx188, jsxs as jsxs97 } from "react/jsx-runtime";
15600
+ import { jsx as jsx189, jsxs as jsxs97 } from "react/jsx-runtime";
15556
15601
  function F_securityPolicyDocs_Update({ values }) {
15557
15602
  var _a;
15558
15603
  const form = useForm20({
@@ -15582,7 +15627,7 @@ function F_securityPolicyDocs_Update({ values }) {
15582
15627
  return service_document.update(body);
15583
15628
  },
15584
15629
  children: [
15585
- /* @__PURE__ */ jsx188(
15630
+ /* @__PURE__ */ jsx189(
15586
15631
  TextInput10,
15587
15632
  __spreadValues({
15588
15633
  withAsterisk: true,
@@ -15590,21 +15635,21 @@ function F_securityPolicyDocs_Update({ values }) {
15590
15635
  label: "S\u1ED1 quy \u0111\u1ECBnh"
15591
15636
  }, form.getInputProps("decisionCode"))
15592
15637
  ),
15593
- /* @__PURE__ */ jsx188(
15638
+ /* @__PURE__ */ jsx189(
15594
15639
  MyDateInput,
15595
15640
  __spreadValues({
15596
15641
  withAsterisk: true,
15597
15642
  label: "Ng\xE0y ban h\xE0nh"
15598
15643
  }, form.getInputProps("promulgateDate"))
15599
15644
  ),
15600
- /* @__PURE__ */ jsx188(
15645
+ /* @__PURE__ */ jsx189(
15601
15646
  TextInput10,
15602
15647
  __spreadValues({
15603
15648
  withAsterisk: true,
15604
15649
  label: "T\xEAn t\xE0i li\u1EC7u"
15605
15650
  }, form.getInputProps("name"))
15606
15651
  ),
15607
- /* @__PURE__ */ jsx188(
15652
+ /* @__PURE__ */ jsx189(
15608
15653
  FileInput6,
15609
15654
  __spreadValues({
15610
15655
  withAsterisk: true,
@@ -15617,7 +15662,7 @@ function F_securityPolicyDocs_Update({ values }) {
15617
15662
  }
15618
15663
 
15619
15664
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
15620
- import { jsx as jsx189, jsxs as jsxs98 } from "react/jsx-runtime";
15665
+ import { jsx as jsx190, jsxs as jsxs98 } from "react/jsx-runtime";
15621
15666
  function F_securityPolicyDocs_Read({ SecurityTypeId }) {
15622
15667
  const query = useMyReactQuery({
15623
15668
  queryKey: ["F_securityPolicyDocs_Read"],
@@ -15640,25 +15685,25 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
15640
15685
  {
15641
15686
  header: "File",
15642
15687
  accessorFn: (row) => {
15643
- return /* @__PURE__ */ jsx189(MyCenterFull, { children: /* @__PURE__ */ jsx189(MyButtonViewFileAPI, { filePath: row.path }) });
15688
+ return /* @__PURE__ */ jsx190(MyCenterFull, { children: /* @__PURE__ */ jsx190(MyButtonViewFileAPI, { filePath: row.path }) });
15644
15689
  }
15645
15690
  }
15646
15691
  ],
15647
15692
  []
15648
15693
  );
15649
- return /* @__PURE__ */ jsx189(
15694
+ return /* @__PURE__ */ jsx190(
15650
15695
  MyDataTable,
15651
15696
  {
15652
15697
  isLoading: query.isLoading,
15653
15698
  isError: query.isError,
15654
15699
  columns,
15655
15700
  data: query.data || [],
15656
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx189(F_securityPolicyDocs_Create, { SecurityTypeId }),
15701
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx190(F_securityPolicyDocs_Create, { SecurityTypeId }),
15657
15702
  renderRowActions: ({ row }) => {
15658
15703
  var _a;
15659
15704
  return /* @__PURE__ */ jsxs98(MyCenterFull, { children: [
15660
- /* @__PURE__ */ jsx189(F_securityPolicyDocs_Update, { values: row.original }),
15661
- /* @__PURE__ */ jsx189(
15705
+ /* @__PURE__ */ jsx190(F_securityPolicyDocs_Update, { values: row.original }),
15706
+ /* @__PURE__ */ jsx190(
15662
15707
  F_securityPolicyDocs_Delete,
15663
15708
  {
15664
15709
  id: row.original.id,
@@ -15672,9 +15717,9 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
15672
15717
  }
15673
15718
 
15674
15719
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs.tsx
15675
- import { jsx as jsx190 } from "react/jsx-runtime";
15720
+ import { jsx as jsx191 } from "react/jsx-runtime";
15676
15721
  function F_securityPolicyDocs({ SecurityTypeId }) {
15677
- return /* @__PURE__ */ jsx190(F_securityPolicyDocs_Read, { SecurityTypeId });
15722
+ return /* @__PURE__ */ jsx191(F_securityPolicyDocs_Read, { SecurityTypeId });
15678
15723
  }
15679
15724
 
15680
15725
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
@@ -15683,7 +15728,7 @@ import { useMemo as useMemo25 } from "react";
15683
15728
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
15684
15729
  import { FileInput as FileInput7, Textarea as Textarea4 } from "@mantine/core";
15685
15730
  import { useForm as useForm21 } from "@mantine/form";
15686
- import { jsx as jsx191, jsxs as jsxs99 } from "react/jsx-runtime";
15731
+ import { jsx as jsx192, jsxs as jsxs99 } from "react/jsx-runtime";
15687
15732
  function F_systemUpdateDocs_Create({
15688
15733
  RefinementTypeId
15689
15734
  }) {
@@ -15711,43 +15756,43 @@ function F_systemUpdateDocs_Create({
15711
15756
  return service_document.create(body);
15712
15757
  },
15713
15758
  children: [
15714
- /* @__PURE__ */ jsx191(
15759
+ /* @__PURE__ */ jsx192(
15715
15760
  MyDateInput,
15716
15761
  __spreadValues({
15717
15762
  withAsterisk: true,
15718
15763
  label: "Ng\xE0y h\u1ECDp"
15719
15764
  }, form.getInputProps("meetingDate"))
15720
15765
  ),
15721
- /* @__PURE__ */ jsx191(
15766
+ /* @__PURE__ */ jsx192(
15722
15767
  MyTextInput,
15723
15768
  __spreadValues({
15724
15769
  withAsterisk: true,
15725
15770
  label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
15726
15771
  }, form.getInputProps("departmentName"))
15727
15772
  ),
15728
- /* @__PURE__ */ jsx191(
15773
+ /* @__PURE__ */ jsx192(
15729
15774
  MyTextInput,
15730
15775
  __spreadValues({
15731
15776
  withAsterisk: true,
15732
15777
  label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
15733
15778
  }, form.getInputProps("description"))
15734
15779
  ),
15735
- /* @__PURE__ */ jsx191(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
15736
- /* @__PURE__ */ jsx191(
15780
+ /* @__PURE__ */ jsx192(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
15781
+ /* @__PURE__ */ jsx192(
15737
15782
  MyDateInput,
15738
15783
  __spreadValues({
15739
15784
  withAsterisk: true,
15740
15785
  label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
15741
15786
  }, form.getInputProps("startDate"))
15742
15787
  ),
15743
- /* @__PURE__ */ jsx191(
15788
+ /* @__PURE__ */ jsx192(
15744
15789
  MyDateInput,
15745
15790
  __spreadValues({
15746
15791
  withAsterisk: true,
15747
15792
  label: "Ng\xE0y k\u1EBFt th\xFAc"
15748
15793
  }, form.getInputProps("endDate"))
15749
15794
  ),
15750
- /* @__PURE__ */ jsx191(
15795
+ /* @__PURE__ */ jsx192(
15751
15796
  FileInput7,
15752
15797
  __spreadValues({
15753
15798
  placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
@@ -15755,19 +15800,19 @@ function F_systemUpdateDocs_Create({
15755
15800
  label: "T\xE0i li\u1EC7u"
15756
15801
  }, form.getInputProps("file"))
15757
15802
  ),
15758
- /* @__PURE__ */ jsx191(Textarea4, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
15803
+ /* @__PURE__ */ jsx192(Textarea4, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
15759
15804
  ]
15760
15805
  }
15761
15806
  );
15762
15807
  }
15763
15808
 
15764
15809
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Delete.tsx
15765
- import { jsx as jsx192 } from "react/jsx-runtime";
15810
+ import { jsx as jsx193 } from "react/jsx-runtime";
15766
15811
  function F_systemUpdateDocs_Delete({
15767
15812
  id,
15768
15813
  contextData
15769
15814
  }) {
15770
- return /* @__PURE__ */ jsx192(
15815
+ return /* @__PURE__ */ jsx193(
15771
15816
  MyActionIconDelete,
15772
15817
  {
15773
15818
  contextData,
@@ -15779,7 +15824,7 @@ function F_systemUpdateDocs_Delete({
15779
15824
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Update.tsx
15780
15825
  import { FileInput as FileInput8, Textarea as Textarea5 } from "@mantine/core";
15781
15826
  import { useForm as useForm22 } from "@mantine/form";
15782
- import { jsx as jsx193, jsxs as jsxs100 } from "react/jsx-runtime";
15827
+ import { jsx as jsx194, jsxs as jsxs100 } from "react/jsx-runtime";
15783
15828
  function F_systemUpdateDocs_Update({ values }) {
15784
15829
  var _a;
15785
15830
  const form = useForm22({
@@ -15813,43 +15858,43 @@ function F_systemUpdateDocs_Update({ values }) {
15813
15858
  return service_document.update(body);
15814
15859
  },
15815
15860
  children: [
15816
- /* @__PURE__ */ jsx193(
15861
+ /* @__PURE__ */ jsx194(
15817
15862
  MyDateInput,
15818
15863
  __spreadValues({
15819
15864
  withAsterisk: true,
15820
15865
  label: "Ng\xE0y h\u1ECDp"
15821
15866
  }, form.getInputProps("meetingDate"))
15822
15867
  ),
15823
- /* @__PURE__ */ jsx193(
15868
+ /* @__PURE__ */ jsx194(
15824
15869
  MyTextInput,
15825
15870
  __spreadValues({
15826
15871
  withAsterisk: true,
15827
15872
  label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
15828
15873
  }, form.getInputProps("departmentName"))
15829
15874
  ),
15830
- /* @__PURE__ */ jsx193(
15875
+ /* @__PURE__ */ jsx194(
15831
15876
  MyTextInput,
15832
15877
  __spreadValues({
15833
15878
  withAsterisk: true,
15834
15879
  label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
15835
15880
  }, form.getInputProps("description"))
15836
15881
  ),
15837
- /* @__PURE__ */ jsx193(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
15838
- /* @__PURE__ */ jsx193(
15882
+ /* @__PURE__ */ jsx194(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
15883
+ /* @__PURE__ */ jsx194(
15839
15884
  MyDateInput,
15840
15885
  __spreadValues({
15841
15886
  withAsterisk: true,
15842
15887
  label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
15843
15888
  }, form.getInputProps("startDate"))
15844
15889
  ),
15845
- /* @__PURE__ */ jsx193(
15890
+ /* @__PURE__ */ jsx194(
15846
15891
  MyDateInput,
15847
15892
  __spreadValues({
15848
15893
  withAsterisk: true,
15849
15894
  label: "Ng\xE0y k\u1EBFt th\xFAc"
15850
15895
  }, form.getInputProps("endDate"))
15851
15896
  ),
15852
- /* @__PURE__ */ jsx193(
15897
+ /* @__PURE__ */ jsx194(
15853
15898
  FileInput8,
15854
15899
  __spreadValues({
15855
15900
  placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
@@ -15857,14 +15902,14 @@ function F_systemUpdateDocs_Update({ values }) {
15857
15902
  label: "T\xE0i li\u1EC7u"
15858
15903
  }, form.getInputProps("file"))
15859
15904
  ),
15860
- /* @__PURE__ */ jsx193(Textarea5, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
15905
+ /* @__PURE__ */ jsx194(Textarea5, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
15861
15906
  ]
15862
15907
  }
15863
15908
  );
15864
15909
  }
15865
15910
 
15866
15911
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
15867
- import { jsx as jsx194, jsxs as jsxs101 } from "react/jsx-runtime";
15912
+ import { jsx as jsx195, jsxs as jsxs101 } from "react/jsx-runtime";
15868
15913
  function F_systemUpdateDocs({ RefinementTypeId }) {
15869
15914
  const query = useMyReactQuery({
15870
15915
  queryKey: ["F_systemUpdateDocs_Read"],
@@ -15891,24 +15936,24 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
15891
15936
  {
15892
15937
  header: "File",
15893
15938
  accessorFn: (row) => {
15894
- return /* @__PURE__ */ jsx194(MyCenterFull, { children: /* @__PURE__ */ jsx194(MyButtonViewFileAPI, { filePath: row.path }) });
15939
+ return /* @__PURE__ */ jsx195(MyCenterFull, { children: /* @__PURE__ */ jsx195(MyButtonViewFileAPI, { filePath: row.path }) });
15895
15940
  }
15896
15941
  }
15897
15942
  ],
15898
15943
  []
15899
15944
  );
15900
- return /* @__PURE__ */ jsx194(
15945
+ return /* @__PURE__ */ jsx195(
15901
15946
  MyDataTable,
15902
15947
  {
15903
15948
  isLoading: query.isLoading,
15904
15949
  isError: query.isError,
15905
15950
  columns,
15906
15951
  data: query.data || [],
15907
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx194(F_systemUpdateDocs_Create, { RefinementTypeId }),
15952
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx195(F_systemUpdateDocs_Create, { RefinementTypeId }),
15908
15953
  renderRowActions: ({ row }) => {
15909
15954
  return /* @__PURE__ */ jsxs101(MyCenterFull, { children: [
15910
- /* @__PURE__ */ jsx194(F_systemUpdateDocs_Update, { values: row.original }),
15911
- /* @__PURE__ */ jsx194(
15955
+ /* @__PURE__ */ jsx195(F_systemUpdateDocs_Update, { values: row.original }),
15956
+ /* @__PURE__ */ jsx195(
15912
15957
  F_systemUpdateDocs_Delete,
15913
15958
  {
15914
15959
  id: row.original.id,
@@ -15927,7 +15972,7 @@ import { useMemo as useMemo26 } from "react";
15927
15972
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
15928
15973
  import { FileInput as FileInput9 } from "@mantine/core";
15929
15974
  import { useForm as useForm23 } from "@mantine/form";
15930
- import { jsx as jsx195, jsxs as jsxs102 } from "react/jsx-runtime";
15975
+ import { jsx as jsx196, jsxs as jsxs102 } from "react/jsx-runtime";
15931
15976
  function F_userGuideDocs_Create({ GuidelineTypeId }) {
15932
15977
  const form = useForm23({
15933
15978
  mode: "uncontrolled",
@@ -15950,21 +15995,21 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
15950
15995
  return service_document.create(body);
15951
15996
  },
15952
15997
  children: [
15953
- /* @__PURE__ */ jsx195(
15998
+ /* @__PURE__ */ jsx196(
15954
15999
  MyTextInput,
15955
16000
  __spreadValues({
15956
16001
  withAsterisk: true,
15957
16002
  label: "M\xE3 t\xE0i li\u1EC7u"
15958
16003
  }, form.getInputProps("code"))
15959
16004
  ),
15960
- /* @__PURE__ */ jsx195(
16005
+ /* @__PURE__ */ jsx196(
15961
16006
  MyTextInput,
15962
16007
  __spreadValues({
15963
16008
  withAsterisk: true,
15964
16009
  label: "T\xEAn t\xE0i li\u1EC7u"
15965
16010
  }, form.getInputProps("name"))
15966
16011
  ),
15967
- /* @__PURE__ */ jsx195(
16012
+ /* @__PURE__ */ jsx196(
15968
16013
  FileInput9,
15969
16014
  __spreadValues({
15970
16015
  withAsterisk: true,
@@ -15978,12 +16023,12 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
15978
16023
  }
15979
16024
 
15980
16025
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Delete.tsx
15981
- import { jsx as jsx196 } from "react/jsx-runtime";
16026
+ import { jsx as jsx197 } from "react/jsx-runtime";
15982
16027
  function F_userGuideDocs_Delete({
15983
16028
  id,
15984
16029
  contextData
15985
16030
  }) {
15986
- return /* @__PURE__ */ jsx196(
16031
+ return /* @__PURE__ */ jsx197(
15987
16032
  MyActionIconDelete,
15988
16033
  {
15989
16034
  contextData,
@@ -15995,7 +16040,7 @@ function F_userGuideDocs_Delete({
15995
16040
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Update.tsx
15996
16041
  import { FileInput as FileInput10 } from "@mantine/core";
15997
16042
  import { useForm as useForm24 } from "@mantine/form";
15998
- import { jsx as jsx197, jsxs as jsxs103 } from "react/jsx-runtime";
16043
+ import { jsx as jsx198, jsxs as jsxs103 } from "react/jsx-runtime";
15999
16044
  function F_userGuideDocs_Update({ values }) {
16000
16045
  var _a;
16001
16046
  const form = useForm24({
@@ -16023,7 +16068,7 @@ function F_userGuideDocs_Update({ values }) {
16023
16068
  return service_document.update(body);
16024
16069
  },
16025
16070
  children: [
16026
- /* @__PURE__ */ jsx197(
16071
+ /* @__PURE__ */ jsx198(
16027
16072
  MyTextInput,
16028
16073
  __spreadValues({
16029
16074
  withAsterisk: true,
@@ -16031,14 +16076,14 @@ function F_userGuideDocs_Update({ values }) {
16031
16076
  label: "M\xE3 t\xE0i li\u1EC7u"
16032
16077
  }, form.getInputProps("code"))
16033
16078
  ),
16034
- /* @__PURE__ */ jsx197(
16079
+ /* @__PURE__ */ jsx198(
16035
16080
  MyTextInput,
16036
16081
  __spreadValues({
16037
16082
  withAsterisk: true,
16038
16083
  label: "T\xEAn t\xE0i li\u1EC7u"
16039
16084
  }, form.getInputProps("name"))
16040
16085
  ),
16041
- /* @__PURE__ */ jsx197(
16086
+ /* @__PURE__ */ jsx198(
16042
16087
  FileInput10,
16043
16088
  __spreadValues({
16044
16089
  withAsterisk: true,
@@ -16052,7 +16097,7 @@ function F_userGuideDocs_Update({ values }) {
16052
16097
  }
16053
16098
 
16054
16099
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
16055
- import { jsx as jsx198, jsxs as jsxs104 } from "react/jsx-runtime";
16100
+ import { jsx as jsx199, jsxs as jsxs104 } from "react/jsx-runtime";
16056
16101
  function F_userGuideDocs_Read({ GuidelineTypeId }) {
16057
16102
  const query = useMyReactQuery({
16058
16103
  queryKey: ["F_userGuideDocs_Read"],
@@ -16071,24 +16116,24 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
16071
16116
  {
16072
16117
  header: "File",
16073
16118
  accessorFn: (row) => {
16074
- return /* @__PURE__ */ jsx198(MyCenterFull, { children: /* @__PURE__ */ jsx198(MyButtonViewFileAPI, { filePath: row.path }) });
16119
+ return /* @__PURE__ */ jsx199(MyCenterFull, { children: /* @__PURE__ */ jsx199(MyButtonViewFileAPI, { filePath: row.path }) });
16075
16120
  }
16076
16121
  }
16077
16122
  ],
16078
16123
  []
16079
16124
  );
16080
- return /* @__PURE__ */ jsx198(
16125
+ return /* @__PURE__ */ jsx199(
16081
16126
  MyDataTable,
16082
16127
  {
16083
16128
  isLoading: query.isLoading,
16084
16129
  isError: query.isError,
16085
16130
  columns,
16086
16131
  data: query.data || [],
16087
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx198(F_userGuideDocs_Create, { GuidelineTypeId }),
16132
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx199(F_userGuideDocs_Create, { GuidelineTypeId }),
16088
16133
  renderRowActions: ({ row }) => {
16089
16134
  return /* @__PURE__ */ jsxs104(MyCenterFull, { children: [
16090
- /* @__PURE__ */ jsx198(F_userGuideDocs_Update, { values: row.original }),
16091
- /* @__PURE__ */ jsx198(
16135
+ /* @__PURE__ */ jsx199(F_userGuideDocs_Update, { values: row.original }),
16136
+ /* @__PURE__ */ jsx199(
16092
16137
  F_userGuideDocs_Delete,
16093
16138
  {
16094
16139
  id: row.original.id,
@@ -16102,9 +16147,9 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
16102
16147
  }
16103
16148
 
16104
16149
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs.tsx
16105
- import { jsx as jsx199 } from "react/jsx-runtime";
16150
+ import { jsx as jsx200 } from "react/jsx-runtime";
16106
16151
  function F_userGuideDocs({ GuidelineTypeId }) {
16107
- return /* @__PURE__ */ jsx199(F_userGuideDocs_Read, { GuidelineTypeId });
16152
+ return /* @__PURE__ */ jsx200(F_userGuideDocs_Read, { GuidelineTypeId });
16108
16153
  }
16109
16154
 
16110
16155
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
@@ -16112,7 +16157,7 @@ import { Space as Space7 } from "@mantine/core";
16112
16157
 
16113
16158
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Create.tsx
16114
16159
  import { useForm as useForm25 } from "@mantine/form";
16115
- import { jsx as jsx200, jsxs as jsxs105 } from "react/jsx-runtime";
16160
+ import { jsx as jsx201, jsxs as jsxs105 } from "react/jsx-runtime";
16116
16161
  function F_workflowProcessDocs_Create({
16117
16162
  WorkflowTypeId
16118
16163
  }) {
@@ -16139,28 +16184,28 @@ function F_workflowProcessDocs_Create({
16139
16184
  return service_document.create(body);
16140
16185
  },
16141
16186
  children: [
16142
- /* @__PURE__ */ jsx200(
16187
+ /* @__PURE__ */ jsx201(
16143
16188
  MyTextInput,
16144
16189
  __spreadValues({
16145
16190
  withAsterisk: true,
16146
16191
  label: "S\u1ED1 quy \u0111\u1ECBnh"
16147
16192
  }, form.getInputProps("decisionCode"))
16148
16193
  ),
16149
- /* @__PURE__ */ jsx200(
16194
+ /* @__PURE__ */ jsx201(
16150
16195
  MyDateInput,
16151
16196
  __spreadValues({
16152
16197
  withAsterisk: true,
16153
16198
  label: "Ng\xE0y ban h\xE0nh"
16154
16199
  }, form.getInputProps("promulgateDate"))
16155
16200
  ),
16156
- /* @__PURE__ */ jsx200(
16201
+ /* @__PURE__ */ jsx201(
16157
16202
  MyTextInput,
16158
16203
  __spreadValues({
16159
16204
  withAsterisk: true,
16160
16205
  label: "T\xEAn t\xE0i li\u1EC7u"
16161
16206
  }, form.getInputProps("name"))
16162
16207
  ),
16163
- /* @__PURE__ */ jsx200(
16208
+ /* @__PURE__ */ jsx201(
16164
16209
  Shared_DocTypeSelect,
16165
16210
  __spreadValues({
16166
16211
  withAsterisk: true,
@@ -16168,14 +16213,14 @@ function F_workflowProcessDocs_Create({
16168
16213
  documentTypeId: WorkflowTypeId
16169
16214
  }, form.getInputProps("documentAttributeId"))
16170
16215
  ),
16171
- /* @__PURE__ */ jsx200(
16216
+ /* @__PURE__ */ jsx201(
16172
16217
  MyFileInput,
16173
16218
  __spreadValues({
16174
16219
  withAsterisk: true,
16175
16220
  label: "V\u0103n b\u1EA3n"
16176
16221
  }, form.getInputProps("file"))
16177
16222
  ),
16178
- /* @__PURE__ */ jsx200(
16223
+ /* @__PURE__ */ jsx201(
16179
16224
  MyNumberInput,
16180
16225
  __spreadValues({
16181
16226
  label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
@@ -16189,15 +16234,15 @@ function F_workflowProcessDocs_Create({
16189
16234
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
16190
16235
  import { Accordion as Accordion3, Alert as Alert4, Blockquote as Blockquote3, Skeleton as Skeleton5 } from "@mantine/core";
16191
16236
  import { IconBug as IconBug4 } from "@tabler/icons-react";
16192
- import { useEffect as useEffect40, useMemo as useMemo27, useState as useState33 } from "react";
16237
+ import { useEffect as useEffect41, useMemo as useMemo27, useState as useState33 } from "react";
16193
16238
 
16194
16239
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
16195
- import { jsx as jsx201 } from "react/jsx-runtime";
16240
+ import { jsx as jsx202 } from "react/jsx-runtime";
16196
16241
  function F_workflowProcessDocs_Delete({
16197
16242
  id,
16198
16243
  contextData
16199
16244
  }) {
16200
- return /* @__PURE__ */ jsx201(
16245
+ return /* @__PURE__ */ jsx202(
16201
16246
  MyActionIconDelete,
16202
16247
  {
16203
16248
  contextData,
@@ -16208,7 +16253,7 @@ function F_workflowProcessDocs_Delete({
16208
16253
 
16209
16254
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Update.tsx
16210
16255
  import { useForm as useForm26 } from "@mantine/form";
16211
- import { jsx as jsx202, jsxs as jsxs106 } from "react/jsx-runtime";
16256
+ import { jsx as jsx203, jsxs as jsxs106 } from "react/jsx-runtime";
16212
16257
  function F_workflowProcessDocs_Update({
16213
16258
  values,
16214
16259
  WorkflowTypeId
@@ -16241,7 +16286,7 @@ function F_workflowProcessDocs_Update({
16241
16286
  return service_document.update(body);
16242
16287
  },
16243
16288
  children: [
16244
- /* @__PURE__ */ jsx202(
16289
+ /* @__PURE__ */ jsx203(
16245
16290
  MyTextInput,
16246
16291
  __spreadValues({
16247
16292
  withAsterisk: true,
@@ -16249,21 +16294,21 @@ function F_workflowProcessDocs_Update({
16249
16294
  label: "S\u1ED1 quy \u0111\u1ECBnh"
16250
16295
  }, form.getInputProps("decisionCode"))
16251
16296
  ),
16252
- /* @__PURE__ */ jsx202(
16297
+ /* @__PURE__ */ jsx203(
16253
16298
  MyDateInput,
16254
16299
  __spreadValues({
16255
16300
  withAsterisk: true,
16256
16301
  label: "Ng\xE0y ban h\xE0nh"
16257
16302
  }, form.getInputProps("promulgateDate"))
16258
16303
  ),
16259
- /* @__PURE__ */ jsx202(
16304
+ /* @__PURE__ */ jsx203(
16260
16305
  MyTextInput,
16261
16306
  __spreadValues({
16262
16307
  withAsterisk: true,
16263
16308
  label: "T\xEAn t\xE0i li\u1EC7u"
16264
16309
  }, form.getInputProps("name"))
16265
16310
  ),
16266
- /* @__PURE__ */ jsx202(
16311
+ /* @__PURE__ */ jsx203(
16267
16312
  Shared_DocTypeSelect,
16268
16313
  __spreadValues({
16269
16314
  withAsterisk: true,
@@ -16271,14 +16316,14 @@ function F_workflowProcessDocs_Update({
16271
16316
  documentTypeId: WorkflowTypeId
16272
16317
  }, form.getInputProps("documentAttributeId"))
16273
16318
  ),
16274
- /* @__PURE__ */ jsx202(
16319
+ /* @__PURE__ */ jsx203(
16275
16320
  MyFileInput,
16276
16321
  __spreadValues({
16277
16322
  withAsterisk: true,
16278
16323
  label: "V\u0103n b\u1EA3n"
16279
16324
  }, form.getInputProps("file"))
16280
16325
  ),
16281
- /* @__PURE__ */ jsx202(
16326
+ /* @__PURE__ */ jsx203(
16282
16327
  MyNumberInput,
16283
16328
  __spreadValues({
16284
16329
  label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
@@ -16290,7 +16335,7 @@ function F_workflowProcessDocs_Update({
16290
16335
  }
16291
16336
 
16292
16337
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
16293
- import { jsx as jsx203, jsxs as jsxs107 } from "react/jsx-runtime";
16338
+ import { jsx as jsx204, jsxs as jsxs107 } from "react/jsx-runtime";
16294
16339
  function F_workflowProcessDocs_Read({
16295
16340
  WorkflowTypeId
16296
16341
  }) {
@@ -16300,7 +16345,7 @@ function F_workflowProcessDocs_Read({
16300
16345
  queryKey: ["F_workflowProcessDocs_Read" + WorkflowTypeId],
16301
16346
  axiosFn: () => service_documentAttribute.GetByType(WorkflowTypeId)
16302
16347
  });
16303
- useEffect40(() => {
16348
+ useEffect41(() => {
16304
16349
  var _a2;
16305
16350
  if (documentAttributeQuery.data && documentAttributeQuery.data.length > 0) {
16306
16351
  const firstItemId = (_a2 = documentAttributeQuery.data[0].id) == null ? void 0 : _a2.toString();
@@ -16310,10 +16355,10 @@ function F_workflowProcessDocs_Read({
16310
16355
  }
16311
16356
  }, [documentAttributeQuery.data]);
16312
16357
  if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
16313
- return /* @__PURE__ */ jsx203(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
16358
+ return /* @__PURE__ */ jsx204(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
16314
16359
  if (documentAttributeQuery.isError)
16315
- return /* @__PURE__ */ jsx203(Alert4, { icon: /* @__PURE__ */ jsx203(IconBug4, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
16316
- return /* @__PURE__ */ jsx203(Skeleton5, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx203(MyFlexColumn, { children: /* @__PURE__ */ jsx203(
16360
+ return /* @__PURE__ */ jsx204(Alert4, { icon: /* @__PURE__ */ jsx204(IconBug4, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
16361
+ return /* @__PURE__ */ jsx204(Skeleton5, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx204(MyFlexColumn, { children: /* @__PURE__ */ jsx204(
16317
16362
  Accordion3,
16318
16363
  {
16319
16364
  variant: "separated",
@@ -16326,7 +16371,7 @@ function F_workflowProcessDocs_Read({
16326
16371
  value: openItems,
16327
16372
  onChange: setOpenItems,
16328
16373
  multiple: true,
16329
- children: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item, idx) => /* @__PURE__ */ jsx203(
16374
+ children: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item, idx) => /* @__PURE__ */ jsx204(
16330
16375
  SubRead3,
16331
16376
  {
16332
16377
  name: item.name,
@@ -16364,15 +16409,15 @@ function SubRead3({
16364
16409
  {
16365
16410
  header: "File",
16366
16411
  accessorFn: (row) => {
16367
- return /* @__PURE__ */ jsx203(MyCenterFull, { children: /* @__PURE__ */ jsx203(MyButtonViewFileAPI, { filePath: row.path }) });
16412
+ return /* @__PURE__ */ jsx204(MyCenterFull, { children: /* @__PURE__ */ jsx204(MyButtonViewFileAPI, { filePath: row.path }) });
16368
16413
  }
16369
16414
  }
16370
16415
  ],
16371
16416
  []
16372
16417
  );
16373
- return /* @__PURE__ */ jsx203(Skeleton5, { mt: 10, visible: documentQuery.isLoading, children: /* @__PURE__ */ jsxs107(Accordion3.Item, { value: id.toString(), children: [
16374
- /* @__PURE__ */ jsx203(Accordion3.Control, { children: name }),
16375
- /* @__PURE__ */ jsx203(Accordion3.Panel, { children: /* @__PURE__ */ jsx203(
16418
+ return /* @__PURE__ */ jsx204(Skeleton5, { mt: 10, visible: documentQuery.isLoading, children: /* @__PURE__ */ jsxs107(Accordion3.Item, { value: id.toString(), children: [
16419
+ /* @__PURE__ */ jsx204(Accordion3.Control, { children: name }),
16420
+ /* @__PURE__ */ jsx204(Accordion3.Panel, { children: /* @__PURE__ */ jsx204(
16376
16421
  MyDataTable,
16377
16422
  {
16378
16423
  isLoading: documentQuery.isLoading,
@@ -16380,14 +16425,14 @@ function SubRead3({
16380
16425
  columns,
16381
16426
  data: documentQuery.data || [],
16382
16427
  renderRowActions: ({ row }) => /* @__PURE__ */ jsxs107(MyCenterFull, { children: [
16383
- /* @__PURE__ */ jsx203(
16428
+ /* @__PURE__ */ jsx204(
16384
16429
  F_workflowProcessDocs_Update,
16385
16430
  {
16386
16431
  WorkflowTypeId,
16387
16432
  values: row.original
16388
16433
  }
16389
16434
  ),
16390
- /* @__PURE__ */ jsx203(
16435
+ /* @__PURE__ */ jsx204(
16391
16436
  F_workflowProcessDocs_Delete,
16392
16437
  {
16393
16438
  id: row.original.id,
@@ -16401,14 +16446,14 @@ function SubRead3({
16401
16446
  }
16402
16447
 
16403
16448
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
16404
- import { Fragment as Fragment28, jsx as jsx204, jsxs as jsxs108 } from "react/jsx-runtime";
16449
+ import { Fragment as Fragment28, jsx as jsx205, jsxs as jsxs108 } from "react/jsx-runtime";
16405
16450
  function F_workflowProcessDocs({
16406
16451
  WorkflowTypeId
16407
16452
  }) {
16408
16453
  return /* @__PURE__ */ jsxs108(Fragment28, { children: [
16409
- /* @__PURE__ */ jsx204(MyFlexEnd, { children: /* @__PURE__ */ jsx204(F_workflowProcessDocs_Create, { WorkflowTypeId }) }),
16410
- /* @__PURE__ */ jsx204(Space7, {}),
16411
- /* @__PURE__ */ jsx204(F_workflowProcessDocs_Read, { WorkflowTypeId })
16454
+ /* @__PURE__ */ jsx205(MyFlexEnd, { children: /* @__PURE__ */ jsx205(F_workflowProcessDocs_Create, { WorkflowTypeId }) }),
16455
+ /* @__PURE__ */ jsx205(Space7, {}),
16456
+ /* @__PURE__ */ jsx205(F_workflowProcessDocs_Read, { WorkflowTypeId })
16412
16457
  ] });
16413
16458
  }
16414
16459
 
@@ -16431,8 +16476,8 @@ import { notifications as notifications7 } from "@mantine/notifications";
16431
16476
  import { useMutation as useMutation4 } from "@tanstack/react-query";
16432
16477
  import Link5 from "next/link.js";
16433
16478
  import { useRouter as useRouter4 } from "next/navigation.js";
16434
- import { useEffect as useEffect41 } from "react";
16435
- import { jsx as jsx205, jsxs as jsxs109 } from "react/jsx-runtime";
16479
+ import { useEffect as useEffect42 } from "react";
16480
+ import { jsx as jsx206, jsxs as jsxs109 } from "react/jsx-runtime";
16436
16481
  function Feat_Authenticate_Login({
16437
16482
  header,
16438
16483
  redirectUrlAfterLogin = "/admin/dashboard",
@@ -16465,7 +16510,7 @@ function Feat_Authenticate_Login({
16465
16510
  password: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
16466
16511
  }
16467
16512
  });
16468
- useEffect41(() => {
16513
+ useEffect42(() => {
16469
16514
  var _a;
16470
16515
  form.setValues({
16471
16516
  username: ((_a = authenticateStore.state) == null ? void 0 : _a.username) || "",
@@ -16522,15 +16567,15 @@ function Feat_Authenticate_Login({
16522
16567
  }
16523
16568
  });
16524
16569
  }
16525
- return /* @__PURE__ */ jsx205(
16570
+ return /* @__PURE__ */ jsx206(
16526
16571
  BackgroundImage,
16527
16572
  {
16528
16573
  src: backgroundImage,
16529
16574
  h: "100vh",
16530
- children: /* @__PURE__ */ jsx205(Center13, { h: "100vh", children: /* @__PURE__ */ jsxs109(Paper13, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
16531
- header ? header : /* @__PURE__ */ jsx205(Flex13, { direction: "column", mb: "md", children: /* @__PURE__ */ jsx205(Title3, { ta: "center", fw: "900", children: "\u0110\u0103ng nh\u1EADp!" }) }),
16532
- /* @__PURE__ */ jsx205("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs109(MyFlexColumn, { children: [
16533
- /* @__PURE__ */ jsx205(
16575
+ children: /* @__PURE__ */ jsx206(Center13, { h: "100vh", children: /* @__PURE__ */ jsxs109(Paper13, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
16576
+ header ? header : /* @__PURE__ */ jsx206(Flex13, { direction: "column", mb: "md", children: /* @__PURE__ */ jsx206(Title3, { ta: "center", fw: "900", children: "\u0110\u0103ng nh\u1EADp!" }) }),
16577
+ /* @__PURE__ */ jsx206("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs109(MyFlexColumn, { children: [
16578
+ /* @__PURE__ */ jsx206(
16534
16579
  TextInput11,
16535
16580
  __spreadProps(__spreadValues({}, form.getInputProps("username")), {
16536
16581
  label: "T\xE0i kho\u1EA3n",
@@ -16538,7 +16583,7 @@ function Feat_Authenticate_Login({
16538
16583
  withAsterisk: true
16539
16584
  })
16540
16585
  ),
16541
- /* @__PURE__ */ jsx205(
16586
+ /* @__PURE__ */ jsx206(
16542
16587
  PasswordInput4,
16543
16588
  __spreadProps(__spreadValues({}, form.getInputProps("password")), {
16544
16589
  label: "M\u1EADt kh\u1EA9u",
@@ -16547,7 +16592,7 @@ function Feat_Authenticate_Login({
16547
16592
  })
16548
16593
  ),
16549
16594
  /* @__PURE__ */ jsxs109(Group42, { justify: "space-between", children: [
16550
- showSaveLogin && /* @__PURE__ */ jsx205(
16595
+ showSaveLogin && /* @__PURE__ */ jsx206(
16551
16596
  Checkbox6,
16552
16597
  {
16553
16598
  checked: authenticateStore.state.saveLogin,
@@ -16555,9 +16600,9 @@ function Feat_Authenticate_Login({
16555
16600
  label: "L\u01B0u \u0111\u0103ng nh\u1EADp"
16556
16601
  }
16557
16602
  ),
16558
- showForgotPassword && /* @__PURE__ */ jsx205(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
16603
+ showForgotPassword && /* @__PURE__ */ jsx206(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
16559
16604
  ] }),
16560
- showLoginButton && /* @__PURE__ */ jsx205(
16605
+ showLoginButton && /* @__PURE__ */ jsx206(
16561
16606
  Button22,
16562
16607
  __spreadProps(__spreadValues({
16563
16608
  loading: mutation.isPending,
@@ -16578,21 +16623,21 @@ function Feat_Authenticate_Login({
16578
16623
  import { Button as Button23 } from "@mantine/core";
16579
16624
  import { IconLogout } from "@tabler/icons-react";
16580
16625
  import { useRouter as useRouter5 } from "next/navigation.js";
16581
- import { jsx as jsx206 } from "react/jsx-runtime";
16626
+ import { jsx as jsx207 } from "react/jsx-runtime";
16582
16627
  function Feat_Authenticate_Logout({ redirectURL = "/auth/login" }) {
16583
16628
  const router = useRouter5();
16584
16629
  const authenticateStore = useStore_Authenticate();
16585
16630
  const permissionStore = useStore_Permission();
16586
- return /* @__PURE__ */ jsx206(Button23, { onClick: () => {
16631
+ return /* @__PURE__ */ jsx207(Button23, { onClick: () => {
16587
16632
  authenticateStore.setState({});
16588
16633
  permissionStore.setState({});
16589
16634
  router.replace(redirectURL);
16590
- }, leftSection: /* @__PURE__ */ jsx206(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
16635
+ }, leftSection: /* @__PURE__ */ jsx207(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
16591
16636
  }
16592
16637
 
16593
16638
  // src/modules-features/authenticate/Feat_Authenticate_SSOHandler.tsx
16594
16639
  import { useSearchParams } from "next/navigation.js";
16595
- import { useEffect as useEffect42, useState as useState34 } from "react";
16640
+ import { useEffect as useEffect43, useState as useState34 } from "react";
16596
16641
 
16597
16642
  // src/modules-features/authenticate/useAuthenticateManager.ts
16598
16643
  function useAuthenticateManager() {
@@ -16616,7 +16661,7 @@ function useAuthenticateManager() {
16616
16661
  }
16617
16662
 
16618
16663
  // src/modules-features/authenticate/Feat_Authenticate_SSOHandler.tsx
16619
- import { jsx as jsx207, jsxs as jsxs110 } from "react/jsx-runtime";
16664
+ import { jsx as jsx208, jsxs as jsxs110 } from "react/jsx-runtime";
16620
16665
  function Feat_Authenticate_SSOHandler({
16621
16666
  menuData,
16622
16667
  onSuccessNavigateFollowRole
@@ -16629,7 +16674,7 @@ function Feat_Authenticate_SSOHandler({
16629
16674
  const [messError, setMessError] = useState34("");
16630
16675
  const studentCode = searchParams.get("code");
16631
16676
  const token = searchParams.get("token");
16632
- useEffect42(() => {
16677
+ useEffect43(() => {
16633
16678
  localStorage.clear();
16634
16679
  if (config5.isLoading == true) return;
16635
16680
  if (studentCode && token) {
@@ -16668,51 +16713,51 @@ function Feat_Authenticate_SSOHandler({
16668
16713
  }
16669
16714
  }
16670
16715
  return /* @__PURE__ */ jsxs110("div", { children: [
16671
- /* @__PURE__ */ jsx207("h2", { children: "\u0110ang \u0111\u0103ng nh\u1EADp b\u1EB1ng SSO..." }),
16672
- messError && /* @__PURE__ */ jsx207("p", { style: { color: "red" }, children: messError })
16716
+ /* @__PURE__ */ jsx208("h2", { children: "\u0110ang \u0111\u0103ng nh\u1EADp b\u1EB1ng SSO..." }),
16717
+ messError && /* @__PURE__ */ jsx208("p", { style: { color: "red" }, children: messError })
16673
16718
  ] });
16674
16719
  }
16675
16720
 
16676
16721
  // src/modules-features/authenticate/F_authenticate_SplashPage.tsx
16677
16722
  import { useRouter as useRouter6 } from "next/navigation.js";
16678
- import { useEffect as useEffect43 } from "react";
16679
- import { jsx as jsx208 } from "react/jsx-runtime";
16723
+ import { useEffect as useEffect44 } from "react";
16724
+ import { jsx as jsx209 } from "react/jsx-runtime";
16680
16725
  function F_authenticate_SplashPage() {
16681
16726
  const router = useRouter6();
16682
16727
  const authenticateStore = useStore_Authenticate();
16683
- useEffect43(() => {
16728
+ useEffect44(() => {
16684
16729
  if (authenticateStore.state.token == "") {
16685
16730
  router.push("/authenticate/login");
16686
16731
  return;
16687
16732
  }
16688
16733
  router.push("/admin/core71678");
16689
16734
  }, [authenticateStore.state.token]);
16690
- return /* @__PURE__ */ jsx208(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
16735
+ return /* @__PURE__ */ jsx209(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
16691
16736
  }
16692
16737
 
16693
16738
  // src/modules-features/authenticate/tokenExpired/Feat_TokenExpired.tsx
16694
16739
  import { Button as Button24, Card as Card5, CardSection, Center as Center14, Text as Text32, Title as Title4 } from "@mantine/core";
16695
16740
  import { Clock, LogIn, Shield } from "lucide-react";
16696
- import { jsx as jsx209, jsxs as jsxs111 } from "react/jsx-runtime";
16741
+ import { jsx as jsx210, jsxs as jsxs111 } from "react/jsx-runtime";
16697
16742
  function Feat_TokenExpired({
16698
16743
  loginRedirect = "/auth/login"
16699
16744
  }) {
16700
16745
  const handleLogin = () => {
16701
16746
  window.location.href = loginRedirect;
16702
16747
  };
16703
- return /* @__PURE__ */ jsx209("div", { className: "min-h-screen flex items-center justify-center bg-gradient-to-br from-blue-50 via-indigo-50 to-purple-50 px-4 py-8", children: /* @__PURE__ */ jsxs111("div", { className: "w-full max-w-md", children: [
16748
+ return /* @__PURE__ */ jsx210("div", { className: "min-h-screen flex items-center justify-center bg-gradient-to-br from-blue-50 via-indigo-50 to-purple-50 px-4 py-8", children: /* @__PURE__ */ jsxs111("div", { className: "w-full max-w-md", children: [
16704
16749
  /* @__PURE__ */ jsxs111("div", { className: "absolute inset-0 overflow-hidden pointer-events-none", children: [
16705
- /* @__PURE__ */ jsx209("div", { className: "absolute -top-40 -right-40 w-80 h-80 bg-gradient-to-br from-blue-200/30 to-purple-200/30 rounded-full blur-3xl" }),
16706
- /* @__PURE__ */ jsx209("div", { className: "absolute -bottom-40 -left-40 w-80 h-80 bg-gradient-to-tr from-indigo-200/30 to-pink-200/30 rounded-full blur-3xl" })
16750
+ /* @__PURE__ */ jsx210("div", { className: "absolute -top-40 -right-40 w-80 h-80 bg-gradient-to-br from-blue-200/30 to-purple-200/30 rounded-full blur-3xl" }),
16751
+ /* @__PURE__ */ jsx210("div", { className: "absolute -bottom-40 -left-40 w-80 h-80 bg-gradient-to-tr from-indigo-200/30 to-pink-200/30 rounded-full blur-3xl" })
16707
16752
  ] }),
16708
16753
  /* @__PURE__ */ jsxs111(Card5, { className: "relative backdrop-blur-sm bg-white/80 border-0 shadow-2xl shadow-blue-500/10 py-12 px-8 rounded-xl", children: [
16709
16754
  /* @__PURE__ */ jsxs111(CardSection, { className: "text-center space-y-6 pb-8", children: [
16710
- /* @__PURE__ */ jsx209("div", { className: "relative", children: /* @__PURE__ */ jsx209(Center14, { children: /* @__PURE__ */ jsx209("div", { className: "w-20 h-20 bg-gradient-to-br from-orange-400 to-red-500 rounded-full flex items-center justify-center shadow-lg shadow-orange-500/25 animate-pulse", children: /* @__PURE__ */ jsx209(Clock, { className: "w-10 h-10 text-white" }) }) }) }),
16755
+ /* @__PURE__ */ jsx210("div", { className: "relative", children: /* @__PURE__ */ jsx210(Center14, { children: /* @__PURE__ */ jsx210("div", { className: "w-20 h-20 bg-gradient-to-br from-orange-400 to-red-500 rounded-full flex items-center justify-center shadow-lg shadow-orange-500/25 animate-pulse", children: /* @__PURE__ */ jsx210(Clock, { className: "w-10 h-10 text-white" }) }) }) }),
16711
16756
  /* @__PURE__ */ jsxs111("div", { className: "space-y-3", children: [
16712
- /* @__PURE__ */ jsx209(Title4, { className: "text-3xl font-bold bg-gradient-to-r from-gray-800 to-gray-600 bg-clip-text text-transparent", children: "Phi\xEAn \u0111\u0103ng nh\u1EADp \u0111\xE3 h\u1EBFt h\u1EA1n" }),
16757
+ /* @__PURE__ */ jsx210(Title4, { className: "text-3xl font-bold bg-gradient-to-r from-gray-800 to-gray-600 bg-clip-text text-transparent", children: "Phi\xEAn \u0111\u0103ng nh\u1EADp \u0111\xE3 h\u1EBFt h\u1EA1n" }),
16713
16758
  /* @__PURE__ */ jsxs111(Text32, { className: "text-gray-600 text-base leading-relaxed px-2", children: [
16714
16759
  "Phi\xEAn l\xE0m vi\u1EC7c c\u1EE7a b\u1EA1n \u0111\xE3 h\u1EBFt h\u1EA1n v\xEC l\xFD do b\u1EA3o m\u1EADt.",
16715
- /* @__PURE__ */ jsx209("br", {}),
16760
+ /* @__PURE__ */ jsx210("br", {}),
16716
16761
  "Vui l\xF2ng \u0111\u0103ng nh\u1EADp l\u1EA1i \u0111\u1EC3 ti\u1EBFp t\u1EE5c s\u1EED d\u1EE5ng d\u1ECBch v\u1EE5."
16717
16762
  ] })
16718
16763
  ] })
@@ -16725,17 +16770,17 @@ function Feat_TokenExpired({
16725
16770
  className: "w-full h-12 bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white font-semibold rounded-xl shadow-lg shadow-blue-500/25 transition-all duration-300 hover:shadow-xl hover:shadow-blue-500/30 hover:scale-[1.02]",
16726
16771
  size: "lg",
16727
16772
  children: [
16728
- /* @__PURE__ */ jsx209(LogIn, { className: "w-5 h-5 mr-2" }),
16773
+ /* @__PURE__ */ jsx210(LogIn, { className: "w-5 h-5 mr-2" }),
16729
16774
  "\u0110\u0103ng nh\u1EADp l\u1EA1i"
16730
16775
  ]
16731
16776
  }
16732
16777
  ),
16733
- /* @__PURE__ */ jsx209("div", { className: "bg-gradient-to-r from-gray-50 to-blue-50 rounded-xl p-4 border border-gray-100", children: /* @__PURE__ */ jsxs111("div", { className: "text-center space-y-2", children: [
16734
- /* @__PURE__ */ jsx209("p", { className: "text-sm font-medium text-gray-700", children: "C\u1EA7n h\u1ED7 tr\u1EE3?" }),
16778
+ /* @__PURE__ */ jsx210("div", { className: "bg-gradient-to-r from-gray-50 to-blue-50 rounded-xl p-4 border border-gray-100", children: /* @__PURE__ */ jsxs111("div", { className: "text-center space-y-2", children: [
16779
+ /* @__PURE__ */ jsx210("p", { className: "text-sm font-medium text-gray-700", children: "C\u1EA7n h\u1ED7 tr\u1EE3?" }),
16735
16780
  /* @__PURE__ */ jsxs111("p", { className: "text-sm text-gray-600", children: [
16736
16781
  "Li\xEAn h\u1EC7",
16737
16782
  " ",
16738
- /* @__PURE__ */ jsx209(
16783
+ /* @__PURE__ */ jsx210(
16739
16784
  "a",
16740
16785
  {
16741
16786
  href: "/support",
@@ -16747,8 +16792,8 @@ function Feat_TokenExpired({
16747
16792
  "c\u1EE7a ch\xFAng t\xF4i"
16748
16793
  ] })
16749
16794
  ] }) }),
16750
- /* @__PURE__ */ jsx209("div", { className: "text-center", children: /* @__PURE__ */ jsxs111("p", { className: "text-xs text-gray-500 flex items-center justify-center gap-1", children: [
16751
- /* @__PURE__ */ jsx209(Shield, { className: "w-3 h-3" }),
16795
+ /* @__PURE__ */ jsx210("div", { className: "text-center", children: /* @__PURE__ */ jsxs111("p", { className: "text-xs text-gray-500 flex items-center justify-center gap-1", children: [
16796
+ /* @__PURE__ */ jsx210(Shield, { className: "w-3 h-3" }),
16752
16797
  "B\u1EA3o m\u1EADt t\xE0i kho\u1EA3n \u0111\u01B0\u1EE3c \u01B0u ti\xEAn h\xE0ng \u0111\u1EA7u"
16753
16798
  ] }) })
16754
16799
  ] })
@@ -16923,5 +16968,6 @@ export {
16923
16968
  CustomTabs,
16924
16969
  MyPrintContent,
16925
16970
  CustomButtonDeleteListAPI,
16926
- CustomDataTableAPI
16971
+ CustomDataTableAPI,
16972
+ CustomSelectAPI
16927
16973
  };