2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 17078
|
|
|
|
|
// Function ID: 17079
|
|
|
|
|
// Name: FramePanelFocusedView
|
|
|
|
|
// Dependencies: [19, 9542, 9543, 9537, 21, 504, 17057, 17075, 17079, 9539, 16650, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 17078 (FramePanelFocusedView)
|
|
|
|
|
import FramesActionCreatorsDefault from "FramesActionCreators" /* 9539 */;
|
|
|
|
|
import FrameViewDefault from "FrameView" /* 16650 */;
|
|
|
|
|
import ActivityPanelFocusedView from "ActivityPanelFocusedView" /* 17057 */;
|
|
|
|
|
import FramePanelStateContextDefault from "FramePanelStateContext" /* 17075 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
|
import FramesStore from "FramesStore" /* 9542 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const FramesConstants = fn(9543);
|
|
|
|
|
({ asLaunched: hasOwnProperty, FrameLayoutModes: metroRequire } = FramesConstants);
|
|
|
|
|
const ActivityPanelModes = fn(9537).ActivityPanelModes;
|
|
|
|
|
const jsx = fn(21).jsx;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/frames/panel/native/FramePanelFocusedView.tsx");
|
|
|
|
|
|
|
|
|
|
export default noop.memo((transitionState) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
transitionState = transitionState.transitionState;
|
|
|
|
|
const transitionCleanUp = transitionState.transitionCleanUp;
|
2026-07-29 08:29:29 +00:00
|
|
|
let stateFromStores;
|
|
|
|
|
let landscapeSafeAreasConfig;
|
2026-07-23 10:11:24 +00:00
|
|
|
const items = [landscapeSafeAreasConfig];
|
2026-09-10 05:38:07 +00:00
|
|
|
stateFromStores = transitionState(stateFromStores[5]).useStateFromStores(items, () => {
|
2026-08-07 06:50:47 +00:00
|
|
|
const tmp = memo(landscapeSafeAreasConfig.getMainFrame());
|
|
|
|
|
let id;
|
|
|
|
|
if (tmp != null) {
|
|
|
|
|
id = tmp.id;
|
|
|
|
|
}
|
|
|
|
|
return id;
|
|
|
|
|
});
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj = transitionState(stateFromStores[5]);
|
|
|
|
|
const obj2 = transitionState(stateFromStores[6]);
|
|
|
|
|
const baseActivityPanelFocusedView = obj2.useBaseActivityPanelFocusedView({ context: transitionCleanUp(stateFromStores[7]) });
|
|
|
|
|
const portraitSafeAreasConfig = baseActivityPanelFocusedView.portraitSafeAreasConfig;
|
2026-07-23 10:11:24 +00:00
|
|
|
landscapeSafeAreasConfig = baseActivityPanelFocusedView.landscapeSafeAreasConfig;
|
2026-09-10 05:38:07 +00:00
|
|
|
const memo = portraitSafeAreasConfig.useMemo(() => jsx(transitionCleanUp(stateFromStores[8]), {}), []);
|
2026-08-07 06:50:47 +00:00
|
|
|
const items1 = [stateFromStores];
|
2026-09-10 05:38:07 +00:00
|
|
|
const updateActivityPanelModeToPIP = portraitSafeAreasConfig.useCallback(() => {
|
2026-08-07 06:50:47 +00:00
|
|
|
if (null != stateFromStores) {
|
2026-09-10 05:38:07 +00:00
|
|
|
FramesActionCreatorsDefault.updateFramePanelMode(tmp, ActivityPanelModes.PIP);
|
2026-08-07 06:50:47 +00:00
|
|
|
}
|
|
|
|
|
}, items1);
|
2026-09-10 05:38:07 +00:00
|
|
|
const items2 = [stateFromStores, memo, landscapeSafeAreasConfig, portraitSafeAreasConfig, transitionCleanUp, transitionState, updateActivityPanelModeToPIP];
|
2026-07-20 16:05:17 +00:00
|
|
|
return portraitSafeAreasConfig.useMemo(() => {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = { transitionState, transitionCleanUp, updateActivityPanelModeToPIP, hasActivity: null != stateFromStores, context: FramePanelStateContextDefault, header: memo, children: jsx(FrameViewDefault, { layoutMode: constants.FOCUSED, portraitSafeAreasConfig, landscapeSafeAreasConfig }) };
|
|
|
|
|
return jsx(ActivityPanelFocusedView.BaseActivityPanelFocusedView, { transitionState, transitionCleanUp, updateActivityPanelModeToPIP, hasActivity: null != stateFromStores, context: FramePanelStateContextDefault, header: memo, children: jsx(FrameViewDefault, { layoutMode: constants.FOCUSED, portraitSafeAreasConfig, landscapeSafeAreasConfig }) });
|
2026-08-07 06:50:47 +00:00
|
|
|
}, items2);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|