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();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 14154; source: modules/settings/native/search/components/SettingsSearchEmptyState.tsx; dependencies: [31, 27, 33, 4501, 3869, 1244, 9105, 4572, 4573, 2] */
|
||||
function _fun107112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14351:6, offset: 0x022f39e2, size: 235 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value2.jsx;
|
||||
const env0_5 = value2.jsxs;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'paddingTop': 24,
|
||||
'justifyContent': 'center', 'alignItems': 'center'}, textContainer: {marginTop: 24}});
|
||||
value = value.memo(SettingsSearchEmptyState);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/settings/native/search/components/SettingsSearchEmptyState.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function SettingsSearchEmptyState() { // fn#107113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14351:287, offset: 0x022f3acd, size: 360 bytes, params: 1, frame: 26
|
||||
const styles = useStyles();
|
||||
env0_2.useEffect(_fun107114, []);
|
||||
const NoResultsAlt = (require(9105) /* metro dependency 9105: NoResultsAlt */).NoResultsAlt;
|
||||
const items2 = [<NoResultsAlt resizeMode="contain" />];
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const text = <Text variant="text-md/semibold" color="mobile-text-heading-primary">{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.zihbmv])}</Text>;
|
||||
string = intl.string;
|
||||
const XclvsB = (require(1244) /* metro dependency 1244: indexNative */).t.XclvsB;
|
||||
items2[1] = <Stack style={styles.textContainer} align="center" justify="center">{text}<Text variant="text-xs/medium" color="text-muted">{Reflect.apply(string,
|
||||
intl, [XclvsB])}</Text></Stack>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun107114() { // fn#107114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14351:353, offset: 0x022f3c35, size: 98 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
|
||||
const announce = AccessibilityAnnouncer.announce;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer,
|
||||
[intl.string((require(1244) /* metro dependency 1244: indexNative */).t.zihbmv), 'polite']);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
/* Metro module 14151; source: modules/settings/native/search/hooks/useSettingSearchResults.tsx; dependencies: [57, 31, 13172, 13173, 14147, 13177, 14152, 13175, 6949, 2] */
|
||||
function _fun107077(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:6, offset: 0x022f29d7, size: 177 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const userSettingSearchStore = importDefault(13172) /* metro dependency 13172: UserSettingSearchStore */;
|
||||
const settingBlocklistStore = importDefault(13173) /* metro dependency 13173: SettingBlocklistStore */;
|
||||
const env0_7 = [];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/settings/native/search/hooks/useSettingSearchResults.tsx');
|
||||
exports.useSettingSearchResults = useSettingSearchResults;
|
||||
}
|
||||
|
||||
function useSettingSearchResults() { // fn#107078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:267, offset: 0x022f2a88, size: 217 bytes, params: 1, frame: 21
|
||||
const binding = env0_4;
|
||||
const value2 = binding.useMemo(_fun107079, []);
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [env0_7]);
|
||||
const binding2 = env0_3;
|
||||
let value = binding2(value3, 2);
|
||||
const property = value[0];
|
||||
const env0_1 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value[0];
|
||||
const env0_2 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, [10]), 2);
|
||||
const property3 = value[0];
|
||||
var env0_3 = value[1];
|
||||
binding.useEffect(function() {
|
||||
var env0_0 = UserSettingSearchStore.subscribe(_fun107084, _fun107085, {equalityFn: _fun107086});
|
||||
return _fun107087;
|
||||
}, [binding.useMemo(_fun107080, [value2])]);
|
||||
return {settings: property, isLoading: property2, placeholderCount: property3};
|
||||
}
|
||||
|
||||
function _fun107079() { // fn#107079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:319, offset: 0x022f2b61, size: 73 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(14152) /* metro dependency 14152: UserSettingSearchManager */;
|
||||
value = require(13175) /* metro dependency 13175: SettingRendererUtils */;
|
||||
value = value.getSettingSearchableTitles();
|
||||
const value2 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
|
||||
value = new defaultImport(value);
|
||||
return value instanceof Object ? value : value2;
|
||||
}
|
||||
|
||||
function _fun107080() { // fn#107080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:511, offset: 0x022f2baa, size: 48 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(6949) /* metro dependency 6949 */)(_fun107081, 350);
|
||||
}
|
||||
|
||||
function _fun107083() { // fn#107083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:824, offset: 0x022f2cd2, size: 63 bytes, params: 1, frame: 16
|
||||
const env0_0 = UserSettingSearchStore.subscribe(function({query}) {
|
||||
return query.trim();
|
||||
}, _fun107085, {equalityFn: function(a0, a1) {
|
||||
return a0 === a1;
|
||||
}});
|
||||
return _fun107087;
|
||||
}
|
||||
|
||||
function _fun107081(a0) { // fn#107081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:524, offset: 0x022f2bda, size: 148 bytes, params: 2, frame: 17
|
||||
const env0_0 = SettingBlocklistStore.getField('blocklist');
|
||||
const value3 = env1_0.getScoredSearchResults(a0).filter(_fun107082);
|
||||
env1_1(value3);
|
||||
const Math = global.Math;
|
||||
const max = Math.max;
|
||||
const Math2 = global.Math;
|
||||
env1_3(Reflect.apply(max, Math, [Math2.min(value3.length, 10), 5]));
|
||||
env1_2(false);
|
||||
}
|
||||
|
||||
function _fun107085(a0) { // fn#107085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:868, offset: 0x022f2d26, size: 104 bytes, params: 2, frame: 13
|
||||
var value;
|
||||
var binding;
|
||||
var value2;
|
||||
if (a0 === '') {
|
||||
value = environment.__proto__;
|
||||
if (env1_4.cancel != null) {
|
||||
env1_4.cancel();
|
||||
}
|
||||
binding = env1_1;
|
||||
value2 = environment.__proto__.__proto__;
|
||||
binding(env2_7);
|
||||
env1_2(false);
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
env1_2(true);
|
||||
env1_4(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun107087() { // fn#107087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:967, offset: 0x022f2d8e, size: 48 bytes, params: 1, frame: 11
|
||||
env0_0();
|
||||
if (env1_4.cancel != null) {
|
||||
env1_4.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun107082({setting}) { // fn#107082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14348:596, offset: 0x022f2c6e, size: 100 bytes, params: 2, frame: 15
|
||||
const binding = env0_0;
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return !(importDefault(14147) /* metro dependency 14147: SettingTreeManager */).isBlocked(setting,
|
||||
binding) && !(require(13177) /* metro dependency 13177: SettingsRendererConfig */).SETTING_RENDERER_CONFIG[setting].unsearchable;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user