61 lines
3.3 KiB
TypeScript
61 lines
3.3 KiB
TypeScript
/* Metro module 15404; source: modules/voice_panel/native/VoicePanelContainer.tsx; dependencies: [31, 1379, 7710, 33, 566, 15405, 15445, 3769, 4508, 2] */
|
|
function _fun117721(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15601:6, offset: 0x024bef64, size: 217 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const getChannelKey = function(a0) {
|
|
return a0;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
const voicePanelStore = importDefault(7710) /* metro dependency 7710: VoicePanelStore */;
|
|
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
|
value = value.memo(VoicePanelContainer);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/VoicePanelContainer.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function VoicePanel(a0) { // fn#117722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15601:140, offset: 0x024bf03d, size: 148 bytes, params: 2, frame: 18
|
|
const env0_0 = a0;
|
|
return ((Component) => <Component {...a0} {...{['guildId']: (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore],
|
|
_fun117723)}}>{env0_3.useMemo(_fun117724,
|
|
[])}</Component>)(importDefault(15405) /* metro dependency 15405: VoicePanelController */);
|
|
}
|
|
|
|
function renderVoicePanel(a0, a1, a2, a3) { // fn#117726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15601:389, offset: 0x024bf127, size: 47 bytes, params: 5, frame: 15
|
|
return (
|
|
<VoicePanel
|
|
channelId={a1}
|
|
transitionState={a2}
|
|
transitionCleanUp={a3}
|
|
key={a1}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function VoicePanelContainer() { // fn#117727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15601:513, offset: 0x024bf156, size: 105 bytes, params: 1, frame: 16
|
|
const value2 = VoicePanelStore(function({channels}) {
|
|
var Array = global.Array;
|
|
return Array.from(channels);
|
|
}, (require(3769) /* metro dependency 3769 */).shallow);
|
|
const TransitionGroup = (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionGroup;
|
|
return (
|
|
<TransitionGroup
|
|
items={value2}
|
|
getItemKey={getChannelKey}
|
|
renderItem={renderVoicePanel}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function _fun117723() { // fn#117723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15601:201, offset: 0x024bf0d1, size: 47 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return ChannelStore.getChannel(env0_0.channelId)?.guild_id;
|
|
}
|
|
|
|
function _fun117724() { // fn#117724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15601:329, offset: 0x024bf100, size: 39 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component />)(importDefault(15445) /* metro dependency 15445: VoicePanelUI */);
|
|
}
|
|
|