70 lines
4.1 KiB
TypeScript
70 lines
4.1 KiB
TypeScript
/* Metro module 15404; source: modules/voice_panel/native/VoicePanelContainer.tsx; dependencies: [31, 1379, 7710, 33, 566, 15405, 15445, 3769, 4508, 2] */
|
|
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import VoicePanelStore from '../VoicePanelStore.tsx'; /* Metro dependency 7710 */
|
|
import VoicePanelController from './VoicePanelController.tsx'; /* Metro dependency 15405 */
|
|
import VoicePanelUI from './VoicePanelUI.tsx'; /* Metro dependency 15445 */
|
|
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 JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as TransitionGroupModule from '../../../design/components/TransitionGroup/TransitionGroup.tsx'; /* Metro dependency 4508 */
|
|
|
|
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 = ReactModule;
|
|
value = value.memo(VoicePanelContainer);
|
|
(FileImportTrackerModule).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']: (FluxModule).useStateFromStores([ChannelStore],
|
|
_fun117723)}}>{env0_3.useMemo(_fun117724,
|
|
[])}</Component>)(VoicePanelController);
|
|
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 />)(VoicePanelUI);
|
|
}
|
|
|
|
}
|
|
|
|
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 = (TransitionGroupModule).TransitionGroup;
|
|
return (
|
|
<TransitionGroup
|
|
items={value2}
|
|
getItemKey={getChannelKey}
|
|
renderItem={renderVoicePanel}
|
|
/>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun117721, 15404, [31, 1379, 7710, 33, 566, 15405, 15445, 3769, 4508,
|
|
2]) /* metro module 15404, dependencies: [31, 1379, 7710, 33, 566, 15405, 15445, 3769, 4508, 2] */;
|