/* Metro module 10998; source: modules/reactions/native/useEmojisForReactionRow.tsx; dependencies: [31, 1881, 8533, 1478, 3801, 2] */ import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */ import EmojiUtils from '../../../utils/EmojiUtils.tsx'; /* Metro dependency 3801 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as EmojiConstantsModule from '../../emojis/EmojiConstants.tsx'; /* Metro dependency 1881 */ 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}); (FileImportTrackerModule).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 = (UseWindowDimensionsNative)().width; let Math = global.Math; const value3 = Math.min(width, a1); Math = global.Math; const value4 = Math.floor(value3 / a2); value = ReactModule.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 = EmojiUtils; const isEmojiFilteredOrLocked = defaultImport.isEmojiFilteredOrLocked; const REACTION = EmojiIntention.REACTION; return !Reflect.apply(isEmojiFilteredOrLocked, defaultImport, [{emoji: a0, channel: env1_0, intention: REACTION}]); } } } } global.__d(_fun84170, 10998, [31, 1881, 8533, 1478, 3801, 2]) /* metro module 10998, dependencies: [31, 1881, 8533, 1478, 3801, 2] */;