Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,54 @@
|
||||
/* Metro module 14155; source: modules/settings/native/search/SettingSearchBar.tsx; dependencies: [31, 27, 13172, 33, 4501, 697, 1848, 7006, 6984, 2] */
|
||||
function _fun107115(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14352:6, offset: 0x022f3c97, size: 243 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const userSettingSearchStore = importDefault(13172) /* metro dependency 13172: UserSettingSearchStore */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const SETTINGS_PADDING_TOP = (importDefault(697) /* metro dependency 697: native */).modules.mobile.SETTINGS_PADDING_TOP;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{container: {marginTop: SETTINGS_PADDING_TOP}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/settings/native/search/SettingSearchBar.tsx');
|
||||
exports.default = SettingSearchBar;
|
||||
}
|
||||
|
||||
function SettingSearchBar() { // fn#107116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14352:332, offset: 0x022f3d8a, size: 240 bytes, params: 1, frame: 22
|
||||
const styles = useStyles();
|
||||
const binding = env0_2;
|
||||
const value2 = binding.useRef(null);
|
||||
const value3 = binding.useCallback(_fun107117, []);
|
||||
const value4 = binding.useCallback(function() {
|
||||
require(dependencyMap[7]).trackSettingSearchInputFocused();
|
||||
UserSettingSearchStore.setState({'isActive': true, 'isFocused': true});
|
||||
}, []);
|
||||
const value5 = binding.useCallback(function() {
|
||||
UserSettingSearchStore.setState({isFocused: false});
|
||||
}, []);
|
||||
const value6 = binding.useCallback(function(a0) {
|
||||
UserSettingSearchStore.setState({query: a0});
|
||||
}, []);
|
||||
const SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<SearchField
|
||||
ref={value2}
|
||||
size="md"
|
||||
onFocus={value4}
|
||||
onBlur={value5}
|
||||
onClear={value3}
|
||||
defaultValue={UserSettingSearchStore.getField('query')}
|
||||
onChange={value6}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun107117() { // fn#107117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14352:404, offset: 0x022f3e7a, size: 66 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
UserSettingSearchStore.setState({'isActive': false, 'query': '', 'isFocused': false});
|
||||
(require(1848) /* metro dependency 1848: KeyboardManagerUtils */).dismissGlobalKeyboard();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user