decord/source/modules/frames/panel/native/FramePanelHeader.tsx

115 lines
3.8 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 15874
// Function ID: 15875
// Dependencies: [32, 19, 17, 5686, 21, 589, 5521, 15850, 15852, 15856, 15857, 15875, 15867, 2]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 15874
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
import map from "map";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: closure_6, jsxs: error } = jsxProd);
2026-07-20 16:05:17 +00:00
let closure_8 = importAllResult.memo(function FramePanelHeaderContentInner(arg0) {
let gesture;
let headerStyles;
let headerWrapperStyles;
let landscape;
let pipState;
let setMode;
let wrapperOffset;
({ landscape, setMode } = arg0);
({ pipState, wrapperOffset } = arg0);
2026-07-29 08:29:29 +00:00
let obj = require(589) /* initialize */;
const items = [map];
const stateFromStores = obj.useStateFromStores(items, () => connectedFrame.getConnectedFrame(), []);
2026-07-20 16:05:17 +00:00
let applicationId;
2026-07-29 08:29:29 +00:00
if (stateFromStores != null) {
2026-07-20 16:05:17 +00:00
applicationId = stateFromStores.applicationId;
}
const items1 = [applicationId];
2026-07-29 08:29:29 +00:00
const first = callback(importDefault(5521)(items1), 1)[0];
let tmpResult = tmp(15850);
const baseActivityPanelHeaderContent = tmpResult.useBaseActivityPanelHeaderContent({ landscape, setMode, wrapperOffset, pipState });
2026-07-20 16:05:17 +00:00
({ gesture, headerWrapperStyles, headerStyles } = baseActivityPanelHeaderContent);
2026-07-29 08:29:29 +00:00
tmpResult = tmp(15850);
const minimizeAndQuestButtonContainerStyles = tmpResult.useMinimizeAndQuestButtonContainerStyles();
2026-07-20 16:05:17 +00:00
if (null == stateFromStores) {
return null;
} else {
let id;
2026-07-29 08:29:29 +00:00
let tmp5Result = tmp5(15852);
if (first != null) {
2026-07-20 16:05:17 +00:00
id = first.id;
}
2026-07-29 08:29:29 +00:00
obj = { applicationId: null };
obj[0] = id;
let tmp20Result = tmp20(tmp5Result, obj);
obj = { hasConnectedActivity: null, gesture: null, headerWrapperStyles: null, headerStyles: null, landscape: null, children: null };
obj[0] = null != stateFromStores;
obj[1] = gesture;
obj[2] = headerWrapperStyles;
obj[3] = headerStyles;
obj[4] = landscape;
2026-07-20 16:05:17 +00:00
const items2 = [minimizeAndQuestButtonContainerStyles.buttonContainer, ];
let prop;
if (landscape) {
prop = minimizeAndQuestButtonContainerStyles.buttonContainerLandscape;
}
2026-07-29 08:29:29 +00:00
const obj1 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
items2[1] = prop;
2026-07-29 08:29:29 +00:00
obj1[0] = items2;
let tmp15;
tmp5Result = tmp5(15856);
2026-07-20 16:05:17 +00:00
if (!landscape) {
2026-07-29 08:29:29 +00:00
let name;
if (first != null) {
2026-07-20 16:05:17 +00:00
name = first.name;
}
2026-07-29 08:29:29 +00:00
tmp15 = name;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj2 = { activityName: null, setMode: null };
obj2[0] = tmp15;
obj2[1] = setMode;
const items3 = [closure_6(tmp5Result, obj2), , ];
tmp20Result = null != applicationId;
if (tmp20Result) {
const obj3 = { applicationId: null };
obj3[0] = applicationId;
tmp20Result = tmp20(tmp5(15857), obj3);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items3[1] = tmp20Result;
let tmp18 = null;
2026-07-20 16:05:17 +00:00
if (landscape) {
2026-07-29 08:29:29 +00:00
tmp18 = tmp20Result;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items3[2] = tmp18;
obj1[1] = items3;
const items4 = [closure_7(View, obj1), , ];
let tmp19 = null;
2026-07-20 16:05:17 +00:00
if (!landscape) {
2026-07-29 08:29:29 +00:00
tmp19 = tmp20Result;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items4[1] = tmp19;
const obj4 = { frame: null, setMode: null };
obj4[0] = stateFromStores;
obj4[1] = setMode;
items4[2] = closure_6(tmp5(15875), obj4);
obj[5] = items4;
return closure_7(tmp(15850).BaseActivityPanelContent, obj);
2026-07-20 16:05:17 +00:00
}
});
const memoResult = importAllResult.memo(() => {
2026-07-29 08:29:29 +00:00
let obj = require(15850) /* useBaseActivityPanelHeaderContent */;
obj = { context: importDefault(15867) };
2026-07-20 16:05:17 +00:00
const baseActivityPanelHeader = obj.useBaseActivityPanelHeader(obj);
obj = { style: baseActivityPanelHeader.headerStyles, children: callback2(closure_8, obj1) };
return callback2(View, obj);
});
2026-07-23 10:11:24 +00:00
const result = require("get ActivityIndicator").fileFinishedImporting("modules/frames/panel/native/FramePanelHeader.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;