53 lines
3.4 KiB
TypeScript
53 lines
3.4 KiB
TypeScript
/* Metro module 7870; source: modules/application_commands/ApplicationCommandFrecencyHooks.tsx; dependencies: [31, 7863, 670, 1362, 566, 2] */
|
|
function _fun62982(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8048:6, offset: 0x01b6ddc1, size: 195 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importAll(31) /* metro dependency 31 */;
|
|
const applicationCommandFrecencyStoreModule = require(7863) /* metro dependency 7863: ApplicationCommandFrecencyStore */;
|
|
const env0_3 = applicationCommandFrecencyStoreModule.getFilteredTopCommands;
|
|
const env0_4 = applicationCommandFrecencyStoreModule.getTopRealCommands;
|
|
const applicationCommandFrecencyStore = importDefault(7863) /* metro dependency 7863: ApplicationCommandFrecencyStore */;
|
|
const env0_6 = (require(670) /* metro dependency 670: UserSettingsConstants */).UserSettingsTypes;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/ApplicationCommandFrecencyHooks.tsx');
|
|
exports.useTopCommands = useTopCommands;
|
|
exports.useTopRealCommands = useTopRealCommands;
|
|
}
|
|
|
|
function useTopCommands(a0) { // fn#62983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8048:319, offset: 0x01b6de84, size: 120 bytes, params: 2, frame: 16
|
|
const env0_0 = a0;
|
|
const binding = env0_2;
|
|
binding.useEffect(function() {
|
|
var FrecencyUserSettingsActionCreators = require(dependencyMap[3]).FrecencyUserSettingsActionCreators;
|
|
FrecencyUserSettingsActionCreators.loadIfUncached(UserSettingsTypes.FRECENCY_AND_FAVORITES_SETTINGS);
|
|
}, []);
|
|
return binding.useMemo(_fun62986,
|
|
[(require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationCommandFrecencyStore],
|
|
function() {
|
|
return ApplicationCommandFrecencyStore.getTopCommandsWithoutLoadingLatest();
|
|
}), a0]);
|
|
}
|
|
|
|
function useTopRealCommands(a0) { // fn#62987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8048:605, offset: 0x01b6df61, size: 120 bytes, params: 2, frame: 16
|
|
const env0_0 = a0;
|
|
const binding = env0_2;
|
|
binding.useEffect(function() {
|
|
var FrecencyUserSettingsActionCreators = require(dependencyMap[3]).FrecencyUserSettingsActionCreators;
|
|
FrecencyUserSettingsActionCreators.loadIfNecessary();
|
|
}, []);
|
|
return binding.useMemo(_fun62990,
|
|
[(require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationCommandFrecencyStore],
|
|
function() {
|
|
return ApplicationCommandFrecencyStore.getTopCommandsWithoutLoadingLatest();
|
|
}), a0]);
|
|
}
|
|
|
|
function _fun62986() { // fn#62986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8048:564, offset: 0x01b6df45, size: 28 bytes, params: 1, frame: 13
|
|
return getFilteredTopCommands(topCommandsWithoutLoadingLatest, env0_0);
|
|
}
|
|
|
|
function _fun62990() { // fn#62990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8048:822, offset: 0x01b6e004, size: 37 bytes, params: 1, frame: 14
|
|
return getTopRealCommands(getFilteredTopCommands(topCommandsWithoutLoadingLatest, env0_0));
|
|
}
|
|
|