2026-09-11 19:12:58 +00:00
|
|
|
// Module ID: 17126
|
|
|
|
|
// Function ID: 17127
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: FramePanelFocusedView
|
2026-09-11 19:12:58 +00:00
|
|
|
// Dependencies: [19, 9601, 9602, 9596, 21, 504, 17105, 17123, 17127, 9598, 16693, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-11 19:12:58 +00:00
|
|
|
// Module 17126 (FramePanelFocusedView)
|
|
|
|
|
import FramesActionCreatorsDefault from "FramesActionCreators" /* 9598 */;
|
2026-09-11 10:30:06 +00:00
|
|
|
import FrameViewDefault from "FrameView" /* 16693 */;
|
2026-09-11 19:12:58 +00:00
|
|
|
import ActivityPanelFocusedView from "ActivityPanelFocusedView" /* 17105 */;
|
|
|
|
|
import FramePanelStateContextDefault from "FramePanelStateContext" /* 17123 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-09-11 19:12:58 +00:00
|
|
|
import FramesStore from "FramesStore" /* 9601 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
2026-09-11 19:12:58 +00:00
|
|
|
const FramesConstants = fn(9602);
|
2026-09-10 05:38:07 +00:00
|
|
|
({ asLaunched: hasOwnProperty, FrameLayoutModes: metroRequire } = FramesConstants);
|
2026-09-11 19:12:58 +00:00
|
|
|
const ActivityPanelModes = fn(9596).ActivityPanelModes;
|
2026-09-10 05:38:07 +00:00
|
|
|
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
|
|
|
});
|