aq-fe-framework 0.1.965 → 0.1.966

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createGenericStore,
3
3
  createGenericStore2
4
- } from "../chunk-2C57OWJX.mjs";
4
+ } from "../chunk-YGWSHSTG.mjs";
5
5
  import {
6
6
  baseAxios_default
7
7
  } from "../chunk-YWANA62C.mjs";
@@ -86,7 +86,7 @@ function createRepository(baseUrl, mapper, extra) {
86
86
 
87
87
  // src/build-object/createTenantSettingsStore.ts
88
88
  function createTenantSettingsStore(params) {
89
- const useStore = createGenericStore({
89
+ const useStore = createGenericStore2({
90
90
  initialState: params.initialState || {},
91
91
  storageKey: params.storageKey || "useStore_TenantSettings"
92
92
  });
@@ -103,7 +103,7 @@ function createTenantSettingsStore(params) {
103
103
  }
104
104
  export {
105
105
  createBaseUrl,
106
- createGenericStore2 as createGenericStore,
106
+ createGenericStore,
107
107
  createMapper,
108
108
  createRepository,
109
109
  createTenantSettingsStore
@@ -1,3 +1,7 @@
1
+ import {
2
+ useStore_Permission,
3
+ useStore_ProjectInfo
4
+ } from "./chunk-BJAYNNOF.mjs";
1
5
  import {
2
6
  utils_aq_mapBaseEntityToDomain,
3
7
  utils_aq_mapDomainToEntity,
@@ -12,25 +16,21 @@ import {
12
16
  utils_notification_show,
13
17
  utils_pdf_download
14
18
  } from "./chunk-KGBXMHKR.mjs";
15
- import {
16
- useStore_Permission,
17
- useStore_ProjectInfo
18
- } from "./chunk-Q75LZPR4.mjs";
19
19
  import {
20
20
  utils_date,
21
21
  utils_excel,
22
22
  utils_mantineReactTable
23
23
  } from "./chunk-ZDINCHBS.mjs";
24
24
  import {
25
- createGenericStore
26
- } from "./chunk-2C57OWJX.mjs";
25
+ createGenericStore2 as createGenericStore
26
+ } from "./chunk-YGWSHSTG.mjs";
27
+ import {
28
+ enum_daysOfWeek
29
+ } from "./chunk-K6S7R6LU.mjs";
27
30
  import {
28
31
  const_object_colors,
29
32
  const_object_documentTypes
30
33
  } from "./chunk-SPG47QW7.mjs";
31
- import {
32
- enum_daysOfWeek
33
- } from "./chunk-K6S7R6LU.mjs";
34
34
  import {
35
35
  createBaseApi,
36
36
  useConfig,
@@ -785,17 +785,19 @@ var MyBoxesCore = (_a) => {
785
785
  var Boxes = React.memo(MyBoxesCore);
786
786
 
787
787
  // src/components/Loaders/MyCardioLoader.tsx
788
- import { useEffect as useEffect2 } from "react";
788
+ import { Cardio } from "ldrs/react";
789
+ import "ldrs/react/Cardio.css";
789
790
  import { jsx as jsx14 } from "react/jsx-runtime";
790
791
  function MyCardioLoader() {
791
- useEffect2(() => {
792
- async function getLoader() {
793
- const { cardio } = await import("ldrs");
794
- cardio.register();
792
+ return /* @__PURE__ */ jsx14(
793
+ Cardio,
794
+ {
795
+ size: "50",
796
+ stroke: "4",
797
+ speed: "2",
798
+ color: "black"
795
799
  }
796
- getLoader();
797
- }, []);
798
- return /* @__PURE__ */ jsx14("l-cardio", { color: "var(--cyan-400)" });
800
+ );
799
801
  }
800
802
 
801
803
  // src/components/Aceternity/BoxesBackground/MyBoxesBackground.tsx
@@ -1102,7 +1104,7 @@ function MyActionIconDelete(_a) {
1102
1104
 
1103
1105
  // src/components/ActionIcons/ActionIconCRUD/MyActionIconUpdate.tsx
1104
1106
  import { useDisclosure as useDisclosure4 } from "@mantine/hooks";
1105
- import { useEffect as useEffect3 } from "react";
1107
+ import { useEffect as useEffect2 } from "react";
1106
1108
  import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
1107
1109
  function MyActionIconUpdate(_a) {
1108
1110
  var _b = _a, {
@@ -1144,7 +1146,7 @@ function MyActionIconUpdate(_a) {
1144
1146
  }
1145
1147
  })
1146
1148
  }, useMyReactMutationProps));
1147
- useEffect3(() => {
1149
+ useEffect2(() => {
1148
1150
  if (!resetFormWhenclose) return;
1149
1151
  if (disc[0] == true) return;
1150
1152
  form.reset();
@@ -1844,7 +1846,7 @@ import { Button as Button7, Divider, Fieldset, Group as Group7, Modal as Modal7,
1844
1846
  import { IconArrowBackUp, IconArrowBigLeft, IconArrowBigRight, IconSquareRoundedX } from "@tabler/icons-react";
1845
1847
 
1846
1848
  // src/components/Button/ButtonImport/useS_ButtonImport.ts
1847
- import { useEffect as useEffect4, useMemo as useMemo2 } from "react";
1849
+ import { useEffect as useEffect3, useMemo as useMemo2 } from "react";
1848
1850
  import * as XLSX2 from "xlsx";
1849
1851
  var useStore = createGenericStore({
1850
1852
  initialState: {
@@ -1957,7 +1959,7 @@ function useS_ButtonImport() {
1957
1959
  }))) || []
1958
1960
  ];
1959
1961
  }, [store.state.title]);
1960
- useEffect4(() => {
1962
+ useEffect3(() => {
1961
1963
  if (store.state.file == null) {
1962
1964
  store.resetState();
1963
1965
  }
@@ -1978,7 +1980,7 @@ function useS_ButtonImport() {
1978
1980
  };
1979
1981
  reader.readAsArrayBuffer(store.state.file);
1980
1982
  }, [store.state.file]);
1981
- useEffect4(() => {
1983
+ useEffect3(() => {
1982
1984
  var _a;
1983
1985
  if (((_a = store.state.data) == null ? void 0 : _a.length) == 0) return;
1984
1986
  autoMap();
@@ -2104,7 +2106,7 @@ import {
2104
2106
  useMantineReactTable
2105
2107
  } from "mantine-react-table";
2106
2108
  import { MRT_Localization_VI } from "mantine-react-table/locales/vi/index.cjs";
2107
- import { useEffect as useEffect5, useMemo as useMemo3 } from "react";
2109
+ import { useEffect as useEffect4, useMemo as useMemo3 } from "react";
2108
2110
  import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
2109
2111
  function MyDataTable(_a) {
2110
2112
  var _b = _a, {
@@ -2228,7 +2230,7 @@ function MyDataTable(_a) {
2228
2230
  showSkeletons: isLoading
2229
2231
  }, pagination ? { pagination } : {}), rest.state)
2230
2232
  }));
2231
- useEffect5(() => {
2233
+ useEffect4(() => {
2232
2234
  setSelectedRow && setSelectedRow(table.getSelectedRowModel().rows.map((row) => row.original));
2233
2235
  }, [table.getState().rowSelection]);
2234
2236
  return /* @__PURE__ */ jsx34("main", { style: { position: "relative", zIndex: 1 }, children: table.getState().isFullScreen ? /* @__PURE__ */ jsx34(Portal, { children: /* @__PURE__ */ jsx34(MantineReactTable, { table }) }) : /* @__PURE__ */ jsx34(MantineReactTable, { table }) });
@@ -2635,7 +2637,7 @@ import {
2635
2637
  import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
2636
2638
  import { IconLivePhoto as IconLivePhoto3, IconMaximize as IconMaximize3, IconMinimize as IconMinimize3 } from "@tabler/icons-react";
2637
2639
  import { useQuery } from "@tanstack/react-query";
2638
- import { useEffect as useEffect6, useState as useState7 } from "react";
2640
+ import { useEffect as useEffect5, useState as useState7 } from "react";
2639
2641
  import { Fragment as Fragment14, jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
2640
2642
  function MyButtonViewPDF({
2641
2643
  id,
@@ -2661,7 +2663,7 @@ function MyButtonViewPDF({
2661
2663
  },
2662
2664
  enabled: opened && !src
2663
2665
  });
2664
- useEffect6(() => {
2666
+ useEffect5(() => {
2665
2667
  var _a, _b, _c;
2666
2668
  if (!query.data) return;
2667
2669
  const base64String = filePath ? (_a = query.data) == null ? void 0 : _a.fileBase64String : (_c = (_b = query.data) == null ? void 0 : _b.fileDetail) == null ? void 0 : _c.fileBase64String;
@@ -2679,7 +2681,7 @@ function MyButtonViewPDF({
2679
2681
  URL.revokeObjectURL(newBlobUrl);
2680
2682
  };
2681
2683
  }, [query.data]);
2682
- useEffect6(() => {
2684
+ useEffect5(() => {
2683
2685
  if (opened) {
2684
2686
  query.refetch();
2685
2687
  } else {
@@ -7395,7 +7397,7 @@ import { createEventsServicePlugin } from "@schedule-x/events-service";
7395
7397
  import { ScheduleXCalendar, useNextCalendarApp } from "@schedule-x/react";
7396
7398
  import { Paper as Paper4, Text as Text8 } from "@mantine/core";
7397
7399
  import "@schedule-x/theme-default/dist/index.css";
7398
- import { useEffect as useEffect7 } from "react";
7400
+ import { useEffect as useEffect6 } from "react";
7399
7401
  import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
7400
7402
  function MyCalendar() {
7401
7403
  const plugins = [createEventsServicePlugin(), createEventModalPlugin()];
@@ -7467,7 +7469,7 @@ function MyCalendar() {
7467
7469
  }
7468
7470
  ]
7469
7471
  }, plugins);
7470
- useEffect7(() => {
7472
+ useEffect6(() => {
7471
7473
  calendar == null ? void 0 : calendar.events.getAll();
7472
7474
  }, []);
7473
7475
  return /* @__PURE__ */ jsx44("div", { children: /* @__PURE__ */ jsx44(ScheduleXCalendar, { calendarApp: calendar, customComponents: {
@@ -7787,7 +7789,7 @@ function AQStatCard2({
7787
7789
  }
7788
7790
 
7789
7791
  // src/components/FaviconSetter/FaviconSetter.tsx
7790
- import { useEffect as useEffect8 } from "react";
7792
+ import { useEffect as useEffect7 } from "react";
7791
7793
 
7792
7794
  // src/components/Layouts/BasicAppShell/useStore_BasicAppShell.ts
7793
7795
  var useStore2 = createGenericStore({
@@ -7839,7 +7841,7 @@ function useStore_BasicAppShell() {
7839
7841
  function FaviconSetter() {
7840
7842
  var _a;
7841
7843
  const store = useStore_BasicAppShell();
7842
- useEffect8(() => {
7844
+ useEffect7(() => {
7843
7845
  var _a2, _b, _c;
7844
7846
  if (!((_a2 = store.state.faviconFileDetail) == null ? void 0 : _a2.fileBase64String)) return;
7845
7847
  try {
@@ -7970,7 +7972,7 @@ import TextAlign from "@tiptap/extension-text-align";
7970
7972
  import Underline from "@tiptap/extension-underline";
7971
7973
  import { useEditor } from "@tiptap/react";
7972
7974
  import StarterKit from "@tiptap/starter-kit";
7973
- import { useEffect as useEffect9, useState as useState8 } from "react";
7975
+ import { useEffect as useEffect8, useState as useState8 } from "react";
7974
7976
  import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
7975
7977
  function MyTextEditor(_a) {
7976
7978
  var _b = _a, {
@@ -8072,7 +8074,7 @@ function MyTextEditor(_a) {
8072
8074
  }
8073
8075
  }
8074
8076
  }, rest));
8075
- useEffect9(() => {
8077
+ useEffect8(() => {
8076
8078
  if (editor && value !== editor.getHTML()) {
8077
8079
  editor.commands.setContent(value);
8078
8080
  }
@@ -8186,7 +8188,7 @@ import {
8186
8188
  IconLibraryMinus
8187
8189
  } from "@tabler/icons-react";
8188
8190
  import { usePathname as usePathname3 } from "next/navigation.js";
8189
- import { useEffect as useEffect38, useMemo as useMemo35, useState as useState29 } from "react";
8191
+ import { useEffect as useEffect37, useMemo as useMemo35, useState as useState29 } from "react";
8190
8192
 
8191
8193
  // src/components/Layouts/BasicAppShell/RenderNavLinks.tsx
8192
8194
  import { Badge as Badge4, NavLink } from "@mantine/core";
@@ -8327,7 +8329,7 @@ import {
8327
8329
  IconPlus as IconPlus7,
8328
8330
  IconRowRemove
8329
8331
  } from "@tabler/icons-react";
8330
- import { useEffect as useEffect10, useMemo as useMemo4, useState as useState9 } from "react";
8332
+ import { useEffect as useEffect9, useMemo as useMemo4, useState as useState9 } from "react";
8331
8333
  import { jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
8332
8334
  var findMatchingColumn = (columns, fieldKey) => columns.find((col) => col.toLowerCase() === fieldKey.toLowerCase()) || "";
8333
8335
  var getDefaultMapping = (fields, columns) => {
@@ -8366,7 +8368,7 @@ function FileFieldMappingModal(_a) {
8366
8368
  () => jsonData.length > 0 ? Object.keys(jsonData[0]) : [],
8367
8369
  [jsonData]
8368
8370
  );
8369
- useEffect10(() => {
8371
+ useEffect9(() => {
8370
8372
  const { selected, mapping } = getDefaultMapping(fieldDefinitions, excelColumns);
8371
8373
  setSelectedFields(selected);
8372
8374
  setColumnMapping(mapping);
@@ -8514,7 +8516,7 @@ import {
8514
8516
  } from "@mantine/core";
8515
8517
  import { notifications as notifications2 } from "@mantine/notifications";
8516
8518
  import { IconCircleFilled } from "@tabler/icons-react";
8517
- import { useEffect as useEffect11, useMemo as useMemo5, useState as useState10 } from "react";
8519
+ import { useEffect as useEffect10, useMemo as useMemo5, useState as useState10 } from "react";
8518
8520
  import { read as read3, utils as utils4 } from "xlsx";
8519
8521
  import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
8520
8522
  function toVietnamTime(utcString) {
@@ -8599,7 +8601,7 @@ function FileImportConfigModal(_a) {
8599
8601
  setDataStartIndex("3");
8600
8602
  if (file2) parseExcel(file2);
8601
8603
  };
8602
- useEffect11(() => {
8604
+ useEffect10(() => {
8603
8605
  const headerRowIndex = titleIndex ? parseInt(titleIndex) - 1 : null;
8604
8606
  const dataRowIndex = dataStartIndex ? parseInt(dataStartIndex) - 1 : null;
8605
8607
  if (!rawData || headerRowIndex === null || dataRowIndex === null || dataRowIndex >= rawData.length || headerRowIndex >= rawData.length) {
@@ -8635,7 +8637,7 @@ function FileImportConfigModal(_a) {
8635
8637
  return obj;
8636
8638
  });
8637
8639
  }, [rawData]);
8638
- useEffect11(() => {
8640
+ useEffect10(() => {
8639
8641
  if (titleIndex && dataStartIndex && parseInt(dataStartIndex) <= parseInt(titleIndex)) {
8640
8642
  setDataStartIndex((parseInt(titleIndex) + 1).toString());
8641
8643
  }
@@ -8873,7 +8875,7 @@ import { DateInput as DateInput2 } from "@mantine/dates";
8873
8875
  import { useForm } from "@mantine/form";
8874
8876
  import { IconCalendar } from "@tabler/icons-react";
8875
8877
  import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
8876
- import { useEffect as useEffect12 } from "react";
8878
+ import { useEffect as useEffect11 } from "react";
8877
8879
  import { jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
8878
8880
  function AcademicYearsCreate() {
8879
8881
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
@@ -8926,7 +8928,7 @@ function AcademicYearsCreate() {
8926
8928
  }
8927
8929
  }
8928
8930
  });
8929
- useEffect12(() => {
8931
+ useEffect11(() => {
8930
8932
  const year = parseInt(String(form.values.code), 10);
8931
8933
  if (!isNaN(year)) {
8932
8934
  form.setFieldValue("administrativeYearStart", toUTCDatePreserveDay(year, 0, 1));
@@ -9074,7 +9076,7 @@ import { Checkbox as Checkbox3, Grid as Grid3, Group as Group19 } from "@mantine
9074
9076
  import { DateInput as DateInput3 } from "@mantine/dates";
9075
9077
  import { useForm as useForm2 } from "@mantine/form";
9076
9078
  import { IconCalendar as IconCalendar2 } from "@tabler/icons-react";
9077
- import { useEffect as useEffect13 } from "react";
9079
+ import { useEffect as useEffect12 } from "react";
9078
9080
  import { jsx as jsx69, jsxs as jsxs39 } from "react/jsx-runtime";
9079
9081
  function AcademicYearsUpdate({
9080
9082
  values
@@ -9147,7 +9149,7 @@ function AcademicYearsUpdate({
9147
9149
  }
9148
9150
  }
9149
9151
  });
9150
- useEffect13(() => {
9152
+ useEffect12(() => {
9151
9153
  const year = parseInt(String(form.values.code), 10);
9152
9154
  if (!isNaN(year)) {
9153
9155
  form.setFieldValue("administrativeYearStart", new Date(year, 0, 1));
@@ -9160,7 +9162,7 @@ function AcademicYearsUpdate({
9160
9162
  }
9161
9163
  }
9162
9164
  }, [form.values.code]);
9163
- useEffect13(() => {
9165
+ useEffect12(() => {
9164
9166
  if (form.values.concurrencyStamp !== values.concurrencyStamp) {
9165
9167
  form.setFieldValue("concurrencyStamp", values.concurrencyStamp);
9166
9168
  }
@@ -9370,7 +9372,7 @@ var service_account = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER3
9370
9372
  import { TextInput as TextInput3 } from "@mantine/core";
9371
9373
  import { useDebouncedValue } from "@mantine/hooks";
9372
9374
  import { IconSearch as IconSearch3 } from "@tabler/icons-react";
9373
- import { useEffect as useEffect14, useMemo as useMemo7, useState as useState12 } from "react";
9375
+ import { useEffect as useEffect13, useMemo as useMemo7, useState as useState12 } from "react";
9374
9376
  import { jsx as jsx71 } from "react/jsx-runtime";
9375
9377
  function AccessControl_AccountTable(_a) {
9376
9378
  var rest = __objRest(_a, []);
@@ -9410,12 +9412,12 @@ function AccessControl_AccountTable(_a) {
9410
9412
  accessorKey: "email"
9411
9413
  }
9412
9414
  ], []);
9413
- useEffect14(() => {
9415
+ useEffect13(() => {
9414
9416
  var _a2, _b, _c;
9415
9417
  if (!query.data) return;
9416
9418
  (_c = rest.setIdSelectionOne) == null ? void 0 : _c.call(rest, (_b = (_a2 = query.data[0]) == null ? void 0 : _a2.id) == null ? void 0 : _b.toString());
9417
9419
  }, [query.data]);
9418
- useEffect14(() => {
9420
+ useEffect13(() => {
9419
9421
  setGlobalFilter(debouncedSearch);
9420
9422
  paggingState[1]({ pageIndex: 0, pageSize: paggingState[0].pageSize });
9421
9423
  }, [debouncedSearch]);
@@ -9544,7 +9546,7 @@ function Permission_SaveMenuPermission({
9544
9546
  }
9545
9547
 
9546
9548
  // src/module/Permission/adapter/Permission_ViewCheckMenuPermission.tsx
9547
- import { useEffect as useEffect15, useState as useState13 } from "react";
9549
+ import { useEffect as useEffect14, useState as useState13 } from "react";
9548
9550
 
9549
9551
  // src/module/Permission/usecase/UseCase_PermissionViewCheckTable.tsx
9550
9552
  import { Center as Center6, Checkbox as Checkbox4, Flex as Flex6, Paper as Paper8, ScrollArea as ScrollArea3, Skeleton, Stack as Stack4, Table as Table4, Text as Text16 } from "@mantine/core";
@@ -9715,7 +9717,7 @@ function Permission_ViewCheckMenuPermission({
9715
9717
  }
9716
9718
  return result;
9717
9719
  }
9718
- useEffect15(() => {
9720
+ useEffect14(() => {
9719
9721
  if (!rolePermissionQuery.data) return;
9720
9722
  const flattenMenu = extractMenusWithRootGroupTitle(menuDataRoot || []);
9721
9723
  const menuMerged = mergePermissionsType(flattenMenu, rolePermissionQuery.data);
@@ -9772,7 +9774,7 @@ function Feat_accessControl({ menuData }) {
9772
9774
  }
9773
9775
 
9774
9776
  // src/module/Role/adapter/Role_Table.tsx
9775
- import { useEffect as useEffect16 } from "react";
9777
+ import { useEffect as useEffect15 } from "react";
9776
9778
 
9777
9779
  // src/module/Role/usecase/UseCase_RoleTable.tsx
9778
9780
  import { useMemo as useMemo8 } from "react";
@@ -9818,7 +9820,7 @@ function Adapter_RoleTable(_a) {
9818
9820
  queryKey: ["roles"],
9819
9821
  axiosFn: () => service_role.getAdminRole()
9820
9822
  });
9821
- useEffect16(() => {
9823
+ useEffect15(() => {
9822
9824
  var _a3, _b;
9823
9825
  if (!adminRoleQuery.data) return;
9824
9826
  (_b = rest.setIdSelectionOne) == null ? void 0 : _b.call(rest, (_a3 = adminRoleQuery.data[0].id) == null ? void 0 : _a3.toString());
@@ -9885,7 +9887,7 @@ var service_department = __spreadProps(__spreadValues({}, createBaseApi(CONTROLL
9885
9887
  // src/modules-features/admin/core/accountManagement/AccountManagement_CreateUpdateUser.tsx
9886
9888
  import { PasswordInput, SimpleGrid as SimpleGrid3, Textarea as Textarea2 } from "@mantine/core";
9887
9889
  import { isEmail, useForm as useForm3 } from "@mantine/form";
9888
- import { useEffect as useEffect17 } from "react";
9890
+ import { useEffect as useEffect16 } from "react";
9889
9891
  import { jsx as jsx79, jsxs as jsxs44 } from "react/jsx-runtime";
9890
9892
  function AccountManagement_CreateUpdateUser({ values }) {
9891
9893
  var _a, _b;
@@ -9912,7 +9914,7 @@ function AccountManagement_CreateUpdateUser({ values }) {
9912
9914
  queryKey: ["workingUnits"],
9913
9915
  axiosFn: () => service_department.getWorkingUnit()
9914
9916
  });
9915
- useEffect17(() => {
9917
+ useEffect16(() => {
9916
9918
  if (!values) return;
9917
9919
  const valueSetter = __spreadProps(__spreadValues({}, values), {
9918
9920
  accountStatus: values.isBlocked ? "0" : "1"
@@ -10010,7 +10012,7 @@ function AccountManagement_DeleteUser({ id, code }) {
10010
10012
  }
10011
10013
 
10012
10014
  // src/modules-features/admin/core/accountManagement/AccountManagement_ExportUsers.tsx
10013
- import { useEffect as useEffect18, useState as useState16 } from "react";
10015
+ import { useEffect as useEffect17, useState as useState16 } from "react";
10014
10016
  import { jsx as jsx82 } from "react/jsx-runtime";
10015
10017
  var exportConfig = {
10016
10018
  fields: [
@@ -10050,7 +10052,7 @@ function AccountManagement_ExportUsers({ data }) {
10050
10052
  enabled: isActive[0]
10051
10053
  }
10052
10054
  });
10053
- useEffect18(() => {
10055
+ useEffect17(() => {
10054
10056
  if (!userQuery.data) return;
10055
10057
  if (!isActive[0]) return;
10056
10058
  utils_excel_handleExport(userQuery.data, exportConfig, "danhSachTaiKhoan");
@@ -10245,7 +10247,7 @@ function AccountManagement_SyncUserFormEdusoftnet() {
10245
10247
  import { Badge as Badge5, Group as Group21, TextInput as TextInput4 } from "@mantine/core";
10246
10248
  import { useDebouncedValue as useDebouncedValue2 } from "@mantine/hooks";
10247
10249
  import { IconSearch as IconSearch4 } from "@tabler/icons-react";
10248
- import { useEffect as useEffect19, useMemo as useMemo9, useState as useState17 } from "react";
10250
+ import { useEffect as useEffect18, useMemo as useMemo9, useState as useState17 } from "react";
10249
10251
 
10250
10252
  // src/modules-features/admin/core/accountManagement/useStore_AccountManagement.ts
10251
10253
  var useStore3 = createGenericStore({
@@ -10321,7 +10323,7 @@ function AccountManagement_ReadUser() {
10321
10323
  }
10322
10324
  return baseColumns;
10323
10325
  }, [(_a = accountManagementStore.state) == null ? void 0 : _a.isRequireSkillCenter]);
10324
- useEffect19(() => {
10326
+ useEffect18(() => {
10325
10327
  setGlobalFilter(debouncedSearch);
10326
10328
  paginationState[1]({ pageIndex: 0, pageSize: paginationState[0].pageSize });
10327
10329
  }, [debouncedSearch]);
@@ -10394,11 +10396,11 @@ var mockUserData = [
10394
10396
  ];
10395
10397
 
10396
10398
  // src/modules-features/admin/core/accountManagement/F_accountManagement.tsx
10397
- import { useEffect as useEffect20 } from "react";
10399
+ import { useEffect as useEffect19 } from "react";
10398
10400
  import { jsx as jsx87 } from "react/jsx-runtime";
10399
10401
  function F_accountManagement({ isRequireSkillCenter = false }) {
10400
10402
  const store = useStore_AccountManagement();
10401
- useEffect20(() => {
10403
+ useEffect19(() => {
10402
10404
  store.setProperty("isRequireSkillCenter", isRequireSkillCenter);
10403
10405
  }, []);
10404
10406
  return /* @__PURE__ */ jsx87(AccountManagement_ReadUser, {});
@@ -10555,7 +10557,7 @@ import { useMemo as useMemo10, useState as useState18 } from "react";
10555
10557
  // src/modules-features/admin/core/CodeFormula/CodeFormulaUpdate.tsx
10556
10558
  import { Select as Select6 } from "@mantine/core";
10557
10559
  import { useForm as useForm5 } from "@mantine/form";
10558
- import { useEffect as useEffect21 } from "react";
10560
+ import { useEffect as useEffect20 } from "react";
10559
10561
  import { jsx as jsx91, jsxs as jsxs49 } from "react/jsx-runtime";
10560
10562
  function CodeFormulaUpdate({
10561
10563
  data,
@@ -10574,7 +10576,7 @@ function CodeFormulaUpdate({
10574
10576
  length: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
10575
10577
  }
10576
10578
  });
10577
- useEffect21(() => {
10579
+ useEffect20(() => {
10578
10580
  if (data) {
10579
10581
  form.setValues(data);
10580
10582
  }
@@ -12618,7 +12620,7 @@ function F_core76318({ SecurityTypeId }) {
12618
12620
 
12619
12621
  // src/modules-features/admin/core/departmentList/feature/departmentCreateOrUpdateFeature.tsx
12620
12622
  import { useForm as useForm22 } from "@mantine/form";
12621
- import { useEffect as useEffect22, useState as useState19 } from "react";
12623
+ import { useEffect as useEffect21, useState as useState19 } from "react";
12622
12624
 
12623
12625
  // src/modules-features/admin/core/departmentList/view/departmentCreateOrUpdate.tsx
12624
12626
  import { Checkbox as Checkbox5, Textarea as Textarea5, TextInput as TextInput6 } from "@mantine/core";
@@ -12754,12 +12756,12 @@ function DepartmentCreateOrUpdateFeature({ mode, data }) {
12754
12756
  queryKey: ["UnitRead"],
12755
12757
  axiosFn: () => service_department.getAll()
12756
12758
  });
12757
- useEffect22(() => {
12759
+ useEffect21(() => {
12758
12760
  if (isCreateMode) {
12759
12761
  form_multiple.setValues({ importedData: fileData });
12760
12762
  }
12761
12763
  }, [fileData, isCreateMode]);
12762
- useEffect22(() => {
12764
+ useEffect21(() => {
12763
12765
  var _a, _b;
12764
12766
  if (isUpdateMode && data) {
12765
12767
  const sanitizedData = __spreadProps(__spreadValues({}, data), {
@@ -12825,7 +12827,7 @@ function DepartmentCreateOrUpdateFeature({ mode, data }) {
12825
12827
 
12826
12828
  // src/modules-features/admin/core/departmentList/feature/DepartmentExport.tsx
12827
12829
  import { useDisclosure as useDisclosure13 } from "@mantine/hooks";
12828
- import { useEffect as useEffect23, useState as useState20 } from "react";
12830
+ import { useEffect as useEffect22, useState as useState20 } from "react";
12829
12831
  import { jsx as jsx135 } from "react/jsx-runtime";
12830
12832
  var type2 = {
12831
12833
  1: "Khoa",
@@ -12862,7 +12864,7 @@ function DepartmentExport({ data }) {
12862
12864
  // không fetch tự động
12863
12865
  }
12864
12866
  });
12865
- useEffect23(() => {
12867
+ useEffect22(() => {
12866
12868
  if (!userQuery.data) return;
12867
12869
  utils_excel_handleExport(userQuery.data.map((item) => {
12868
12870
  var _a;
@@ -13277,7 +13279,7 @@ function EmailTemplateButtonImport({ emailTemplateEnum }) {
13277
13279
  import { Badge as Badge6, Button as Button18, Grid as Grid7, Stack as Stack7, Text as Text18 } from "@mantine/core";
13278
13280
  import { useForm as useForm25 } from "@mantine/form";
13279
13281
  import { notifications as notifications4 } from "@mantine/notifications";
13280
- import { useEffect as useEffect24, useMemo as useMemo21 } from "react";
13282
+ import { useEffect as useEffect23, useMemo as useMemo21 } from "react";
13281
13283
  import { Fragment as Fragment22, jsx as jsx147, jsxs as jsxs86 } from "react/jsx-runtime";
13282
13284
  var getDefaultBodyFortype1 = () => {
13283
13285
  return ``;
@@ -13374,12 +13376,12 @@ function EmailTemplateCreateUpdateButton({ initValue, emailTemplateEnum }) {
13374
13376
  form.setFieldValue("body", newContent);
13375
13377
  }
13376
13378
  };
13377
- useEffect24(() => {
13379
+ useEffect23(() => {
13378
13380
  if (!initValue) return;
13379
13381
  form.setInitialValues(__spreadValues({}, initValue));
13380
13382
  form.setValues(__spreadValues({}, initValue));
13381
13383
  }, [initValue]);
13382
- useEffect24(() => {
13384
+ useEffect23(() => {
13383
13385
  mailVariableQuery.refetch();
13384
13386
  }, [form.values.type]);
13385
13387
  return /* @__PURE__ */ jsxs86(
@@ -13742,7 +13744,7 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
13742
13744
 
13743
13745
  // src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
13744
13746
  import { Accordion as Accordion4, Alert as Alert5, Blockquote as Blockquote4, Skeleton as Skeleton5 } from "@mantine/core";
13745
- import { useEffect as useEffect25, useMemo as useMemo23, useState as useState21 } from "react";
13747
+ import { useEffect as useEffect24, useMemo as useMemo23, useState as useState21 } from "react";
13746
13748
  import { IconBug as IconBug5 } from "@tabler/icons-react";
13747
13749
 
13748
13750
  // src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Delete.tsx
@@ -13852,7 +13854,7 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
13852
13854
  queryKey: ["F_formTemplateDocs_Read" + FormTypeId],
13853
13855
  axiosFn: () => service_documentAttribute.GetByType(FormTypeId)
13854
13856
  });
13855
- useEffect25(() => {
13857
+ useEffect24(() => {
13856
13858
  var _a2;
13857
13859
  if (documentAttributeQuery.data && documentAttributeQuery.data.length > 0) {
13858
13860
  const firstItemId = (_a2 = documentAttributeQuery.data[0].id) == null ? void 0 : _a2.toString();
@@ -13977,7 +13979,7 @@ import { useMemo as useMemo24 } from "react";
13977
13979
  // src/modules-features/admin/core/mailConfig/F_mailConfig_CreateUpdate.tsx
13978
13980
  import { PasswordInput as PasswordInput2, Stack as Stack8 } from "@mantine/core";
13979
13981
  import { useForm as useForm28 } from "@mantine/form";
13980
- import { useEffect as useEffect26 } from "react";
13982
+ import { useEffect as useEffect25 } from "react";
13981
13983
  import { jsx as jsx157, jsxs as jsxs92 } from "react/jsx-runtime";
13982
13984
  function F_mailConfig_CreateUpdate({ values, emailModule }) {
13983
13985
  function getEmailModuleLabelByValue(emailModuleOptions, value) {
@@ -13990,7 +13992,7 @@ function F_mailConfig_CreateUpdate({ values, emailModule }) {
13990
13992
  });
13991
13993
  return typeof selectedOption === "string" ? selectedOption : (selectedOption == null ? void 0 : selectedOption.label) || "Unknown";
13992
13994
  }
13993
- useEffect26(() => {
13995
+ useEffect25(() => {
13994
13996
  if (!values) return;
13995
13997
  form.setFieldValue("password", "");
13996
13998
  }, [values]);
@@ -14195,12 +14197,12 @@ var mockData = [
14195
14197
  import { jsx as jsx160 } from "react/jsx-runtime";
14196
14198
 
14197
14199
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
14198
- import { useEffect as useEffect28 } from "react";
14200
+ import { useEffect as useEffect27 } from "react";
14199
14201
 
14200
14202
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
14201
14203
  import { Center as Center10, Grid as Grid8, Image as Image3, Paper as Paper12 } from "@mantine/core";
14202
14204
  import { useForm as useForm29 } from "@mantine/form";
14203
- import { useEffect as useEffect27 } from "react";
14205
+ import { useEffect as useEffect26 } from "react";
14204
14206
 
14205
14207
  // src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
14206
14208
  import { useMutation as useMutation3 } from "@tanstack/react-query";
@@ -14271,7 +14273,7 @@ function F_moduleConfig_Form() {
14271
14273
  logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
14272
14274
  }
14273
14275
  });
14274
- useEffect27(() => {
14276
+ useEffect26(() => {
14275
14277
  var _a2, _b2;
14276
14278
  if (!query.data) return;
14277
14279
  const values = {
@@ -14292,7 +14294,7 @@ function F_moduleConfig_Form() {
14292
14294
  form.setInitialValues(values);
14293
14295
  form.setValues(values);
14294
14296
  }, [query.data]);
14295
- useEffect27(() => {
14297
+ useEffect26(() => {
14296
14298
  if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
14297
14299
  const values = {
14298
14300
  code: "moduleCode",
@@ -14399,7 +14401,7 @@ function F_moduleConfig_Form() {
14399
14401
  import { jsx as jsx163 } from "react/jsx-runtime";
14400
14402
  function F_moduleConfig({ AQModuleId }) {
14401
14403
  const store = useS_moduleConfig();
14402
- useEffect28(() => {
14404
+ useEffect27(() => {
14403
14405
  store.setProperty("AQModuleId", AQModuleId);
14404
14406
  }, []);
14405
14407
  return /* @__PURE__ */ jsx163(F_moduleConfig_Form, {});
@@ -14487,7 +14489,7 @@ function F_organizationPolicyDocs_Create({
14487
14489
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
14488
14490
  import { Accordion as Accordion5, Alert as Alert6, Blockquote as Blockquote5, Skeleton as Skeleton6 } from "@mantine/core";
14489
14491
  import { IconBug as IconBug6 } from "@tabler/icons-react";
14490
- import { useEffect as useEffect29, useMemo as useMemo25, useState as useState22 } from "react";
14492
+ import { useEffect as useEffect28, useMemo as useMemo25, useState as useState22 } from "react";
14491
14493
 
14492
14494
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Delete.tsx
14493
14495
  import { jsx as jsx165 } from "react/jsx-runtime";
@@ -14598,7 +14600,7 @@ function F_organizationPolicyDocs_Read({
14598
14600
  queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
14599
14601
  axiosFn: () => service_documentAttribute.GetByType(RegulationsTypeId)
14600
14602
  });
14601
- useEffect29(() => {
14603
+ useEffect28(() => {
14602
14604
  var _a2;
14603
14605
  if (documentAttributeQuery.data && documentAttributeQuery.data.length > 0) {
14604
14606
  const firstItemId = (_a2 = documentAttributeQuery.data[0].id) == null ? void 0 : _a2.toString();
@@ -15072,7 +15074,7 @@ function Adapter_RoleTable2(_a) {
15072
15074
 
15073
15075
  // src/modules/Role/adapter/Adapter_RoleForm.tsx
15074
15076
  import { useForm as useForm32 } from "@mantine/form";
15075
- import { useEffect as useEffect30 } from "react";
15077
+ import { useEffect as useEffect29 } from "react";
15076
15078
 
15077
15079
  // src/modules/Role/usecase/UseCase_RoleForm.tsx
15078
15080
  import { Stack as Stack9 } from "@mantine/core";
@@ -15118,7 +15120,7 @@ function Adapter_RoleForm({
15118
15120
  },
15119
15121
  mutationType: values ? "update" : "create"
15120
15122
  });
15121
- useEffect30(() => {
15123
+ useEffect29(() => {
15122
15124
  if (!values) return;
15123
15125
  form.initialize(values);
15124
15126
  }, [values]);
@@ -15137,7 +15139,7 @@ function Adapter_RoleForm({
15137
15139
  import { Group as Group29, TextInput as TextInput8 } from "@mantine/core";
15138
15140
  import { useDebouncedValue as useDebouncedValue3 } from "@mantine/hooks";
15139
15141
  import { IconSearch as IconSearch5 } from "@tabler/icons-react";
15140
- import { useEffect as useEffect31, useState as useState24 } from "react";
15142
+ import { useEffect as useEffect30, useState as useState24 } from "react";
15141
15143
 
15142
15144
  // src/modules/User/usecase/Usecase_UserTable.tsx
15143
15145
  import { useMemo as useMemo30 } from "react";
@@ -15213,7 +15215,7 @@ function Adapter_UserTable(_a) {
15213
15215
  });
15214
15216
  }
15215
15217
  });
15216
- useEffect31(() => {
15218
+ useEffect30(() => {
15217
15219
  setGlobalFilter(debouncedSearch);
15218
15220
  paginationState[1]({ pageIndex: 0, pageSize: paginationState[0].pageSize });
15219
15221
  }, [debouncedSearch]);
@@ -15252,7 +15254,7 @@ function Adapter_UserTable(_a) {
15252
15254
  import { useDisclosure as useDisclosure14 } from "@mantine/hooks";
15253
15255
  import { notifications as notifications6 } from "@mantine/notifications";
15254
15256
  import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
15255
- import { useEffect as useEffect32, useState as useState25 } from "react";
15257
+ import { useEffect as useEffect31, useState as useState25 } from "react";
15256
15258
  import { jsx as jsx182 } from "react/jsx-runtime";
15257
15259
  function Adapter_UserAddToRole({
15258
15260
  roleId,
@@ -15293,7 +15295,7 @@ function Adapter_UserAddToRole({
15293
15295
  },
15294
15296
  enableDefaultSuccess: false
15295
15297
  });
15296
- useEffect32(() => {
15298
+ useEffect31(() => {
15297
15299
  if (userIds == null ? void 0 : userIds.length) {
15298
15300
  const selected = userIds.reduce((acc, id) => {
15299
15301
  acc[id] = true;
@@ -15348,7 +15350,7 @@ function Adapter_UserDeleteFromRole({
15348
15350
  }
15349
15351
 
15350
15352
  // src/modules/User/adapter/Adapter_UserTableByRole.tsx
15351
- import { useEffect as useEffect33 } from "react";
15353
+ import { useEffect as useEffect32 } from "react";
15352
15354
  import { jsx as jsx184 } from "react/jsx-runtime";
15353
15355
  function Adapter_UserTableByRole(_a) {
15354
15356
  var _b = _a, { byRoleId } = _b, rest = __objRest(_b, ["byRoleId"]);
@@ -15359,7 +15361,7 @@ function Adapter_UserTableByRole(_a) {
15359
15361
  return service_role.getUserByRole({ roleId: byRoleId });
15360
15362
  }
15361
15363
  });
15362
- useEffect33(() => {
15364
+ useEffect32(() => {
15363
15365
  if (adminAccountQuery.data && rest.onUserLoad) {
15364
15366
  const users = adminAccountQuery.data.map(mapper_user.mapToDomain);
15365
15367
  rest.onUserLoad(users);
@@ -16235,7 +16237,7 @@ function F_workflowProcessDocs_Create({
16235
16237
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
16236
16238
  import { Accordion as Accordion6, Alert as Alert7, Blockquote as Blockquote6, Skeleton as Skeleton7 } from "@mantine/core";
16237
16239
  import { IconBug as IconBug7 } from "@tabler/icons-react";
16238
- import { useEffect as useEffect34, useMemo as useMemo34, useState as useState27 } from "react";
16240
+ import { useEffect as useEffect33, useMemo as useMemo34, useState as useState27 } from "react";
16239
16241
 
16240
16242
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
16241
16243
  import { jsx as jsx204 } from "react/jsx-runtime";
@@ -16346,7 +16348,7 @@ function F_workflowProcessDocs_Read({
16346
16348
  queryKey: ["F_workflowProcessDocs_Read" + WorkflowTypeId],
16347
16349
  axiosFn: () => service_documentAttribute.GetByType(WorkflowTypeId)
16348
16350
  });
16349
- useEffect34(() => {
16351
+ useEffect33(() => {
16350
16352
  var _a2;
16351
16353
  if (documentAttributeQuery.data && documentAttributeQuery.data.length > 0) {
16352
16354
  const firstItemId = (_a2 = documentAttributeQuery.data[0].id) == null ? void 0 : _a2.toString();
@@ -16478,7 +16480,7 @@ import { notifications as notifications7 } from "@mantine/notifications";
16478
16480
  import { useMutation as useMutation4 } from "@tanstack/react-query";
16479
16481
  import Link3 from "next/link.js";
16480
16482
  import { useRouter as useRouter4 } from "next/navigation.js";
16481
- import { useEffect as useEffect35 } from "react";
16483
+ import { useEffect as useEffect34 } from "react";
16482
16484
 
16483
16485
  // src/modules-features/authenticate/useStore_Authenticate.ts
16484
16486
  var useStore5 = createGenericStore({
@@ -16519,7 +16521,7 @@ function Feat_Authenticate_Login({
16519
16521
  password: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
16520
16522
  }
16521
16523
  });
16522
- useEffect35(() => {
16524
+ useEffect34(() => {
16523
16525
  var _a;
16524
16526
  form.setValues({
16525
16527
  username: ((_a = authenticateStore.state) == null ? void 0 : _a.username) || "",
@@ -16661,7 +16663,7 @@ function Feat_Authenticate_Logout({ redirectURL = "/auth/login" }) {
16661
16663
 
16662
16664
  // src/modules-features/authenticate/Feat_Authenticate_SSOHandler.tsx
16663
16665
  import { useSearchParams } from "next/navigation.js";
16664
- import { useEffect as useEffect36, useState as useState28 } from "react";
16666
+ import { useEffect as useEffect35, useState as useState28 } from "react";
16665
16667
 
16666
16668
  // src/modules-features/authenticate/useAuthenticateManager.ts
16667
16669
  function useAuthenticateManager() {
@@ -16698,7 +16700,7 @@ function Feat_Authenticate_SSOHandler({
16698
16700
  const [messError, setMessError] = useState28("");
16699
16701
  const studentCode = searchParams.get("code");
16700
16702
  const token = searchParams.get("token");
16701
- useEffect36(() => {
16703
+ useEffect35(() => {
16702
16704
  localStorage.clear();
16703
16705
  if (config4.isLoading == true) return;
16704
16706
  if (studentCode && token) {
@@ -16744,12 +16746,12 @@ function Feat_Authenticate_SSOHandler({
16744
16746
 
16745
16747
  // src/modules-features/authenticate/F_authenticate_SplashPage.tsx
16746
16748
  import { useRouter as useRouter6 } from "next/navigation.js";
16747
- import { useEffect as useEffect37 } from "react";
16749
+ import { useEffect as useEffect36 } from "react";
16748
16750
  import { jsx as jsx211 } from "react/jsx-runtime";
16749
16751
  function F_authenticate_SplashPage() {
16750
16752
  const router = useRouter6();
16751
16753
  const authenticateStore = useStore_Authenticate();
16752
- useEffect37(() => {
16754
+ useEffect36(() => {
16753
16755
  if (authenticateStore.state.token == "") {
16754
16756
  router.push("/authenticate/login");
16755
16757
  return;
@@ -17122,7 +17124,7 @@ function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect, i
17122
17124
  return result;
17123
17125
  }, [filteredMenu]);
17124
17126
  useFavicon(faviconUrl);
17125
- useEffect38(() => {
17127
+ useEffect37(() => {
17126
17128
  if (!moduleData) return;
17127
17129
  const { code, name, faviconFileDetail, logoFileDetail } = moduleData;
17128
17130
  appShellStore.setProperty("moduleCode", code);
@@ -17135,12 +17137,12 @@ function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect, i
17135
17137
  return () => URL.revokeObjectURL(url);
17136
17138
  }
17137
17139
  }, [moduleData]);
17138
- useEffect38(() => {
17140
+ useEffect37(() => {
17139
17141
  if (moduleData == null ? void 0 : moduleData.name) {
17140
17142
  document.title = moduleData.name;
17141
17143
  }
17142
17144
  }, [moduleData == null ? void 0 : moduleData.name]);
17143
- useEffect38(() => {
17145
+ useEffect37(() => {
17144
17146
  var _a, _b, _c, _d, _e, _f, _g;
17145
17147
  const currentItem = allChildItems.find((item) => pathname.includes(item.link));
17146
17148
  const currentPermission = (_a = permissionStore.state.permission) == null ? void 0 : _a.find((item) => item.pageId == (currentItem == null ? void 0 : currentItem.pageId));
@@ -17411,7 +17413,7 @@ import { Badge as Badge7, Breadcrumbs, Center as Center13, Container as Containe
17411
17413
  import { useClipboard, useDisclosure as useDisclosure18 } from "@mantine/hooks";
17412
17414
  import { notifications as notifications8 } from "@mantine/notifications";
17413
17415
  import { IconBrandParsinta } from "@tabler/icons-react";
17414
- import { useEffect as useEffect39, useState as useState30 } from "react";
17416
+ import { useEffect as useEffect38, useState as useState30 } from "react";
17415
17417
 
17416
17418
  // src/components/Layouts/PageContent/utils.ts
17417
17419
  function getFinalLinkVieo(url) {
@@ -17487,7 +17489,7 @@ function MyPageContent({
17487
17489
  });
17488
17490
  const videoDisc = useDisclosure18();
17489
17491
  const finalTitle = title || basicAppShellStore.state.title;
17490
- useEffect39(() => {
17492
+ useEffect38(() => {
17491
17493
  fileGuildDetailState[1](void 0);
17492
17494
  if (!query.data) return;
17493
17495
  fileGuildDetailState[1](query.data);
@@ -17751,7 +17753,7 @@ function CustomThemeIconSquareCheck({ checked }) {
17751
17753
  }
17752
17754
 
17753
17755
  // src/core/dataDisplay/MyDataTableSelectOne.tsx
17754
- import { useEffect as useEffect40, useMemo as useMemo36 } from "react";
17756
+ import { useEffect as useEffect39, useMemo as useMemo36 } from "react";
17755
17757
  import { jsx as jsx227 } from "react/jsx-runtime";
17756
17758
  function MyDataTableSelectOne({
17757
17759
  columns,
@@ -17760,7 +17762,7 @@ function MyDataTableSelectOne({
17760
17762
  setIdSelection
17761
17763
  }) {
17762
17764
  const columnsState = useMemo36(() => columns, []);
17763
- useEffect40(() => {
17765
+ useEffect39(() => {
17764
17766
  if (!queryResult.data) return;
17765
17767
  setIdSelection(queryResult.data[0].id);
17766
17768
  }, [queryResult.data]);
@@ -17791,7 +17793,7 @@ function MyDataTableSelectOne({
17791
17793
  // src/core/dataDisplay/MyDataTableStagedChanges.tsx
17792
17794
  import { Group as Group37, Stack as Stack12 } from "@mantine/core";
17793
17795
  import { useDisclosure as useDisclosure20 } from "@mantine/hooks";
17794
- import { useEffect as useEffect41, useState as useState32 } from "react";
17796
+ import { useEffect as useEffect40, useState as useState32 } from "react";
17795
17797
  import { jsx as jsx228, jsxs as jsxs130 } from "react/jsx-runtime";
17796
17798
  function MyDataTableStagedChanges(_a) {
17797
17799
  var _b = _a, {
@@ -17838,7 +17840,7 @@ function MyDataTableStagedChanges(_a) {
17838
17840
  const displayData = data.filter(
17839
17841
  (row) => currentIds.includes(row.id)
17840
17842
  );
17841
- useEffect41(() => {
17843
+ useEffect40(() => {
17842
17844
  if (disc[0]) {
17843
17845
  const initSelection = {};
17844
17846
  data.forEach((row) => {
@@ -18076,7 +18078,7 @@ import TextAlign2 from "@tiptap/extension-text-align";
18076
18078
  import Underline2 from "@tiptap/extension-underline";
18077
18079
  import { useEditor as useEditor2 } from "@tiptap/react";
18078
18080
  import StarterKit2 from "@tiptap/starter-kit";
18079
- import { useEffect as useEffect42 } from "react";
18081
+ import { useEffect as useEffect41 } from "react";
18080
18082
  import { jsx as jsx238, jsxs as jsxs135 } from "react/jsx-runtime";
18081
18083
  function isEditorContentEmpty(html) {
18082
18084
  var _a;
@@ -18107,7 +18109,7 @@ function MyRichTextEditor(props) {
18107
18109
  (_a = props.onBlur) == null ? void 0 : _a.call(props, isEditorContentEmpty(html) ? "" : html);
18108
18110
  }
18109
18111
  }, props.useEditorProps));
18110
- useEffect42(() => {
18112
+ useEffect41(() => {
18111
18113
  if (editor && props.value !== editor.getHTML()) {
18112
18114
  editor.commands.setContent(props.value || "", false);
18113
18115
  }
@@ -18215,7 +18217,7 @@ function MySelect2(_a) {
18215
18217
  }
18216
18218
 
18217
18219
  // src/core/input/MySelectFromAPI.tsx
18218
- import { useCallback, useEffect as useEffect43, useMemo as useMemo37, useRef as useRef4 } from "react";
18220
+ import { useCallback, useEffect as useEffect42, useMemo as useMemo37, useRef as useRef4 } from "react";
18219
18221
  import { jsx as jsx240 } from "react/jsx-runtime";
18220
18222
  function MySelectFromAPI(_a) {
18221
18223
  var _b = _a, {
@@ -18269,7 +18271,7 @@ function MySelectFromAPI(_a) {
18269
18271
  setObjectData(selected);
18270
18272
  }
18271
18273
  };
18272
- useEffect43(() => {
18274
+ useEffect42(() => {
18273
18275
  var _a2, _b2, _c;
18274
18276
  if (autoSelectFirstItem && !hasAutoSelected.current && ((_a2 = query.data) == null ? void 0 : _a2.length) && (value === void 0 || value === null || value === "")) {
18275
18277
  const firstItem = query.data[0];
@@ -1,6 +1,6 @@
1
1
  import {
2
- createGenericStore2 as createGenericStore
3
- } from "./chunk-2C57OWJX.mjs";
2
+ createGenericStore
3
+ } from "./chunk-YGWSHSTG.mjs";
4
4
  import {
5
5
  __spreadValues
6
6
  } from "./chunk-JD6AELXS.mjs";
@@ -68,13 +68,13 @@ import {
68
68
  useHeaderMegaMenuStore,
69
69
  useS_ButtonImport,
70
70
  useStore_BasicAppShell
71
- } from "../chunk-C5DYDDMC.mjs";
71
+ } from "../chunk-AMXMIGSV.mjs";
72
+ import "../chunk-BJAYNNOF.mjs";
72
73
  import "../chunk-KGBXMHKR.mjs";
73
- import "../chunk-Q75LZPR4.mjs";
74
74
  import "../chunk-ZDINCHBS.mjs";
75
- import "../chunk-2C57OWJX.mjs";
76
- import "../chunk-SPG47QW7.mjs";
75
+ import "../chunk-YGWSHSTG.mjs";
77
76
  import "../chunk-K6S7R6LU.mjs";
77
+ import "../chunk-SPG47QW7.mjs";
78
78
  import "../chunk-G2IMUVMM.mjs";
79
79
  import "../chunk-WZ6PXGGC.mjs";
80
80
  import "../chunk-YWANA62C.mjs";
@@ -31,13 +31,13 @@ import {
31
31
  MyStatsCard,
32
32
  MyTextInput2 as MyTextInput,
33
33
  MyWeeklySessionSchedulerPicker
34
- } from "../chunk-C5DYDDMC.mjs";
34
+ } from "../chunk-AMXMIGSV.mjs";
35
+ import "../chunk-BJAYNNOF.mjs";
35
36
  import "../chunk-KGBXMHKR.mjs";
36
- import "../chunk-Q75LZPR4.mjs";
37
37
  import "../chunk-ZDINCHBS.mjs";
38
- import "../chunk-2C57OWJX.mjs";
39
- import "../chunk-SPG47QW7.mjs";
38
+ import "../chunk-YGWSHSTG.mjs";
40
39
  import "../chunk-K6S7R6LU.mjs";
40
+ import "../chunk-SPG47QW7.mjs";
41
41
  import "../chunk-G2IMUVMM.mjs";
42
42
  import "../chunk-WZ6PXGGC.mjs";
43
43
  import "../chunk-YWANA62C.mjs";
@@ -102,13 +102,13 @@ import {
102
102
  MailTemplateDeleteButton,
103
103
  useS_moduleConfig,
104
104
  useStore_Authenticate
105
- } from "../chunk-C5DYDDMC.mjs";
105
+ } from "../chunk-AMXMIGSV.mjs";
106
+ import "../chunk-BJAYNNOF.mjs";
106
107
  import "../chunk-KGBXMHKR.mjs";
107
- import "../chunk-Q75LZPR4.mjs";
108
108
  import "../chunk-ZDINCHBS.mjs";
109
- import "../chunk-2C57OWJX.mjs";
110
- import "../chunk-SPG47QW7.mjs";
109
+ import "../chunk-YGWSHSTG.mjs";
111
110
  import "../chunk-K6S7R6LU.mjs";
111
+ import "../chunk-SPG47QW7.mjs";
112
112
  import "../chunk-G2IMUVMM.mjs";
113
113
  import "../chunk-WZ6PXGGC.mjs";
114
114
  import "../chunk-YWANA62C.mjs";
@@ -4,15 +4,15 @@ import {
4
4
  } from "../chunk-RGUQWALX.mjs";
5
5
  import {
6
6
  MySelect
7
- } from "../chunk-C5DYDDMC.mjs";
7
+ } from "../chunk-AMXMIGSV.mjs";
8
+ import "../chunk-BJAYNNOF.mjs";
8
9
  import "../chunk-KGBXMHKR.mjs";
9
- import "../chunk-Q75LZPR4.mjs";
10
10
  import {
11
11
  utils_converter
12
12
  } from "../chunk-ZDINCHBS.mjs";
13
- import "../chunk-2C57OWJX.mjs";
14
- import "../chunk-SPG47QW7.mjs";
13
+ import "../chunk-YGWSHSTG.mjs";
15
14
  import "../chunk-K6S7R6LU.mjs";
15
+ import "../chunk-SPG47QW7.mjs";
16
16
  import "../chunk-G2IMUVMM.mjs";
17
17
  import "../chunk-WZ6PXGGC.mjs";
18
18
  import "../chunk-YWANA62C.mjs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  useStore_Permission,
3
3
  useStore_ProjectInfo
4
- } from "../chunk-Q75LZPR4.mjs";
4
+ } from "../chunk-BJAYNNOF.mjs";
5
5
  import {
6
- createGenericStore
7
- } from "../chunk-2C57OWJX.mjs";
6
+ createGenericStore2 as createGenericStore
7
+ } from "../chunk-YGWSHSTG.mjs";
8
8
  import "../chunk-JD6AELXS.mjs";
9
9
  export {
10
10
  createGenericStore,
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "types": "./dist/build-object/index.d.mts"
55
55
  }
56
56
  },
57
- "version": "0.1.965",
57
+ "version": "0.1.966",
58
58
  "private": false,
59
59
  "files": [
60
60
  "dist"
@@ -64,7 +64,6 @@
64
64
  "update-mantine": "npx npm-check-updates @mantine/* @mantinex/* postcss-preset-mantine -u",
65
65
  "dev": "next dev --turbopack -p 3001",
66
66
  "build": "next build",
67
- "storybook:build": "storybook build",
68
67
  "gen": "barrelsby --config barrelsby.json",
69
68
  "build-npm": "tsup --tsconfig tsconfig.lib.json && cpx \"src/**/*.module.css\" dist",
70
69
  "start": "next start",
@@ -128,7 +127,7 @@
128
127
  "fs-extra": "^11.2.0",
129
128
  "glob": "^11.0.2",
130
129
  "json-server": "^1.0.0-beta.3",
131
- "ldrs": "^1.0.2",
130
+ "ldrs": "^1.1.7",
132
131
  "lodash": "^4.17.21",
133
132
  "lodash.debounce": "^4.0.8",
134
133
  "lucide-react": "^0.534.0",
@@ -3,7 +3,7 @@ import {
3
3
  __spreadValues
4
4
  } from "./chunk-JD6AELXS.mjs";
5
5
 
6
- // src/stores/CreateGenericStore.ts
6
+ // src/build-object/CreateGenericStore.ts
7
7
  import { create } from "zustand";
8
8
  import { persist } from "zustand/middleware";
9
9
  function createGenericStore({ initialState, storageKey }) {
@@ -16,7 +16,7 @@ function createGenericStore({ initialState, storageKey }) {
16
16
  return storageKey ? create(persist(storeCreator, { name: storageKey })) : create(storeCreator);
17
17
  }
18
18
 
19
- // src/build-object/CreateGenericStore.ts
19
+ // src/stores/CreateGenericStore.ts
20
20
  import { create as create2 } from "zustand";
21
21
  import { persist as persist2 } from "zustand/middleware";
22
22
  function createGenericStore2({ initialState, storageKey }) {