47 lines
2.6 KiB
TypeScript
47 lines
2.6 KiB
TypeScript
/* Metro module 10998; source: modules/reactions/native/useEmojisForReactionRow.tsx; dependencies: [31, 1881, 8533, 1478, 3801, 2] */
|
|
function _fun84170(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11184:6, offset: 0x01f3cfd5, size: 143 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(1881) /* metro dependency 1881: EmojiConstants */).EmojiIntention;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/reactions/native/useEmojisForReactionRow.tsx');
|
|
exports.useEmojisForReactionRow = useEmojisForReactionRow;
|
|
}
|
|
|
|
function useEmojisForReactionRow(a0, a1, a2) { // fn#84171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11184:243, offset: 0x01f3d064, size: 194 bytes, params: 4, frame: 18
|
|
const env0_0 = a0;
|
|
let value = a0.getGuildId();
|
|
value = (require(8533) /* metro dependency 8533: EmojiPickerUtils */).useFrequentlyUsedReactionEmojis(value);
|
|
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
|
let Math = global.Math;
|
|
const value3 = Math.min(width, a1);
|
|
Math = global.Math;
|
|
const value4 = Math.floor(value3 / a2);
|
|
value = env0_3.useMemo(_fun84172, [value, a0, value4]);
|
|
return value.slice(0, value4 - 1);
|
|
}
|
|
|
|
function _fun84172() { // fn#84172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11184:419, offset: 0x01f3d126, size: 66 bytes, params: 1, frame: 13
|
|
const value2 = env0_1.filter(_fun84173);
|
|
let length = value2.length;
|
|
if (length < env0_2) {
|
|
while (true) {
|
|
value2.push(null);
|
|
length = value2.length;
|
|
if (!(length < env0_2)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function _fun84173(a0) { // fn#84173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11184:444, offset: 0x01f3d168, size: 77 bytes, params: 2, frame: 13
|
|
const defaultImport = importDefault(3801) /* metro dependency 3801: EmojiUtils */;
|
|
const isEmojiFilteredOrLocked = defaultImport.isEmojiFilteredOrLocked;
|
|
const REACTION = EmojiIntention.REACTION;
|
|
return !Reflect.apply(isEmojiFilteredOrLocked, defaultImport, [{emoji: a0, channel: env1_0, intention: REACTION}]);
|
|
}
|
|
|