Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
67 lines
2.2 KiB
TypeScript
67 lines
2.2 KiB
TypeScript
// Module ID: 17426
|
|
// Function ID: 17427
|
|
// Name: MediaPlaybackPanelContainer
|
|
// Dependencies: [19, 21, 14653, 4262, 17427, 17429, 2]
|
|
|
|
// Module 17426 (MediaPlaybackPanelContainer)
|
|
import MediaPlayerManager from "MediaPlayerManager" /* 14653 */;
|
|
import MediaPlaybackPanelControllerDefault from "MediaPlaybackPanelController" /* 17427 */;
|
|
import MediaPlaybackPanelUIDefault from "MediaPlaybackPanelUI" /* 17429 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/media_panel/native/MediaPlaybackPanelContainer.tsx");
|
|
|
|
export default noop.memo(function MediaPlaybackPanelContainer() {
|
|
const obj = MediaPlayerManager;
|
|
let tmp2 = null;
|
|
if (obj.useMediaPlayerManagerStore(obj2.useShallow((showPip) => {
|
|
showPip = showPip.showPip;
|
|
let tmp = !showPip;
|
|
if (showPip) {
|
|
tmp = !showPip.canAccessMedia;
|
|
}
|
|
if (!tmp) {
|
|
tmp = null == showPip.activeMediaPlayerSource;
|
|
}
|
|
let tmp3 = !tmp;
|
|
if (!tmp) {
|
|
({ mediaSourceMessage, activeMediaPlayerSource } = showPip);
|
|
if (activeMediaPlayerSource != null) {
|
|
const attachmentIndex = activeMediaPlayerSource.attachmentIndex;
|
|
}
|
|
let flag = false;
|
|
if (null != mediaSourceMessage) {
|
|
flag = false;
|
|
if (null != attachmentIndex) {
|
|
let tmp5;
|
|
if (mediaSourceMessage != null) {
|
|
const contentMessage = mediaSourceMessage.getContentMessage();
|
|
if (contentMessage != null) {
|
|
tmp5 = contentMessage.attachments[attachmentIndex];
|
|
}
|
|
}
|
|
let flag2;
|
|
if (tmp5 != null) {
|
|
const content_type = tmp5.content_type;
|
|
if (content_type != null) {
|
|
flag2 = content_type.startsWith("audio");
|
|
}
|
|
}
|
|
if (flag2 == null) {
|
|
flag2 = false;
|
|
}
|
|
flag = flag2;
|
|
}
|
|
}
|
|
tmp3 = flag;
|
|
}
|
|
return tmp3;
|
|
}))) {
|
|
const obj3 = { children: jsx(MediaPlaybackPanelUIDefault, {}) };
|
|
tmp2 = jsx(MediaPlaybackPanelControllerDefault, { children: jsx(MediaPlaybackPanelUIDefault, {}) });
|
|
}
|
|
return tmp2;
|
|
});
|