decord/source/modules/settings/native/search/SettingSearchBar.tsx

44 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15131
// Function ID: 15132
2026-07-20 16:05:17 +00:00
// Name: SettingSearchBar
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 14061, 21, 4668, 712, 1892, 7397, 7375, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 15131 (SettingSearchBar)
import ThemesDefault from "Themes" /* 712 */;
import SearchField from "SearchField" /* 7375 */;
import closure_2 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_4 from "zustandStore" /* 14061 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
createCacheKey = { container: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { marginTop: ThemesDefault.modules.mobile.SETTINGS_PADDING_TOP };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
let result = require("set").fileFinishedImporting("modules/settings/native/search/SettingSearchBar.tsx");
2026-07-20 16:05:17 +00:00
export default function SettingSearchBar() {
2026-08-24 06:08:38 +00:00
const tmp = callback();
callback = React.useCallback(() => {
2026-07-29 08:29:29 +00:00
store.setState({ isActive: false, query: "", isFocused: false });
2026-08-15 05:55:55 +00:00
const result = callback(1892).dismissGlobalKeyboard();
2026-07-20 16:05:17 +00:00
}, []);
const callback1 = React.useCallback(() => {
2026-08-24 06:08:38 +00:00
const result = callback(7397).trackSettingSearchInputFocused();
2026-07-29 08:29:29 +00:00
store.setState({ isActive: true, isFocused: true });
2026-07-20 16:05:17 +00:00
}, []);
const callback2 = React.useCallback(() => {
2026-07-29 08:29:29 +00:00
store.setState({ isFocused: false });
2026-07-20 16:05:17 +00:00
}, []);
2026-07-29 08:29:29 +00:00
let obj = { style: tmp.container, children: null };
2026-07-20 16:05:17 +00:00
const callback3 = React.useCallback((query) => {
2026-07-29 08:29:29 +00:00
store.setState({ query });
2026-07-20 16:05:17 +00:00
}, []);
2026-08-24 06:08:38 +00:00
obj = { ref: React.useRef(null), size: "md", onFocus: callback1, onBlur: callback2, onClear: callback, defaultValue: field.getField("query"), onChange: callback3 };
obj[1] = jsx(SearchField.SearchField, { ref: React.useRef(null), size: "md", onFocus: callback1, onBlur: callback2, onClear: callback, defaultValue: field.getField("query"), onChange: callback3 });
return <View ref={React.useRef(null)} size="md" onFocus={callback1} onBlur={callback2} onClear={callback} defaultValue={field.getField("query")} onChange={callback3} />;
2026-07-20 16:05:17 +00:00
};