sevago-library 1.3.7 → 1.3.8

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.
package/dist/index.esm.js CHANGED
@@ -78283,7 +78283,6 @@ const SystemMonitorSidebarPart = ({
78283
78283
  )
78284
78284
  ] });
78285
78285
  };
78286
- const normalizeSearchText = (value) => value.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase().trim();
78287
78286
  const SystemMonitorScreen = ({
78288
78287
  blacklist,
78289
78288
  onClickApp,
@@ -78293,8 +78292,6 @@ const SystemMonitorScreen = ({
78293
78292
  }) => {
78294
78293
  const theme = useTheme();
78295
78294
  const [tab, setTab] = useState(AppGroup.ALL);
78296
- const currentSearchText = searchText;
78297
- const normalizedSearchText = normalizeSearchText(currentSearchText);
78298
78295
  const availableApps = React__default.useMemo(
78299
78296
  () => Object.entries(APP_OBJ).filter(([key]) => !(blacklist == null ? void 0 : blacklist.includes(key))).map(([, app]) => {
78300
78297
  const appInfo = app;
@@ -78317,13 +78314,13 @@ const SystemMonitorScreen = ({
78317
78314
  if (tab !== AppGroup.ALL && app.group !== tab) {
78318
78315
  return false;
78319
78316
  }
78320
- if (!normalizedSearchText) {
78317
+ if (!searchText.trim()) {
78321
78318
  return true;
78322
78319
  }
78323
- const searchableText = normalizeSearchText(`${app.title ?? ""} ${app.content}`);
78324
- return searchableText.includes(normalizedSearchText);
78320
+ const searchableText = `${app.title ?? ""} ${app.content}`.toLocaleLowerCase();
78321
+ return searchableText.includes(searchText.toLocaleLowerCase().trim());
78325
78322
  }),
78326
- [availableApps, normalizedSearchText, tab]
78323
+ [availableApps, searchText, tab]
78327
78324
  );
78328
78325
  const availableGroups = React__default.useMemo(
78329
78326
  () => Object.values(AppGroup).filter(
@@ -78393,7 +78390,7 @@ const SystemMonitorScreen = ({
78393
78390
  onClickApp,
78394
78391
  isShowAppHidden: true
78395
78392
  },
78396
- `${tab}-${normalizedSearchText}`
78393
+ `${tab}-${searchText}`
78397
78394
  ) : /* @__PURE__ */ jsx(EmptyComponent, { content: "Không tìm thấy ứng dụng phù hợp" }) })
78398
78395
  ]
78399
78396
  }