2026-08-13 07:00:46 +00:00
|
|
|
// Module ID: 16204
|
|
|
|
|
// Function ID: 16205
|
2026-08-06 08:05:19 +00:00
|
|
|
// Name: FrameViewInner
|
2026-08-13 07:00:46 +00:00
|
|
|
// Dependencies: [32, 19, 10564, 10565, 4370, 21, 5769, 709, 10950, 16205, 10693, 16206, 10720, 589, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-13 07:00:46 +00:00
|
|
|
// Module 16204 (FrameViewInner)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _slicedToArray from "_slicedToArray";
|
2026-07-29 08:29:29 +00:00
|
|
|
import importAllResult from "noop";
|
|
|
|
|
import map from "map";
|
2026-08-06 08:05:19 +00:00
|
|
|
import FrameLayoutModes from "FrameLayoutModes";
|
2026-07-23 10:11:24 +00:00
|
|
|
import { ActivityPlatform } from "items3";
|
|
|
|
|
import { jsx } from "jsxProd";
|
|
|
|
|
|
2026-08-06 08:05:19 +00:00
|
|
|
let closure_6;
|
|
|
|
|
let error;
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
2026-08-06 08:05:19 +00:00
|
|
|
function FrameViewInner(frame) {
|
|
|
|
|
let isLandscape;
|
|
|
|
|
let isResetting;
|
|
|
|
|
frame = frame.frame;
|
|
|
|
|
const layoutMode = frame.layoutMode;
|
|
|
|
|
let landscapeSafeAreasConfig = frame.portraitSafeAreasConfig;
|
2026-07-23 10:11:24 +00:00
|
|
|
let setIsResetting;
|
2026-08-06 08:05:19 +00:00
|
|
|
let obj = frame(setIsResetting[6]);
|
|
|
|
|
const data = obj.useApplication(frame.applicationId).data;
|
|
|
|
|
const orientationLock = frame.data.orientationLock;
|
|
|
|
|
const tmp3 = callback(importAllResult.useState(true), 2);
|
|
|
|
|
let first = tmp3[0];
|
|
|
|
|
const items = [layoutMode, , ];
|
|
|
|
|
({ applicationId: arr[1], id: arr[2] } = frame);
|
2026-07-20 16:05:17 +00:00
|
|
|
const layoutEffect = importAllResult.useLayoutEffect(() => {
|
2026-08-06 08:05:19 +00:00
|
|
|
let obj = layoutMode(setIsResetting[7]);
|
|
|
|
|
obj = { type: "FRAME_UPDATE_LAYOUT_MODE", layoutMode, applicationId: frame.applicationId, frameId: frame.id };
|
|
|
|
|
obj.dispatch(obj);
|
|
|
|
|
}, items);
|
|
|
|
|
const items1 = [frame.id];
|
|
|
|
|
const items2 = [frame.id];
|
|
|
|
|
callback = importAllResult.useCallback(() => {
|
|
|
|
|
layoutMode(setIsResetting[8]).leaveFrame(frame.id);
|
|
|
|
|
}, items1);
|
|
|
|
|
const callback1 = importAllResult.useCallback((arg0, arg1) => frame(setIsResetting[9]).setOrientationLockState(frame.id, arg0, arg1), items2);
|
|
|
|
|
if (!first) {
|
|
|
|
|
first = null == data;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-06 08:05:19 +00:00
|
|
|
let tmpResult = tmp(tmp2[10]);
|
|
|
|
|
const baseActivityView = tmpResult.useBaseActivityView({ orientationLockState: orientationLock, showLoadingIndicator: first, setShowLoadingStateForLockingOrientation: tmp3[1], application: data, setOrientationLockState: callback1 });
|
2026-07-23 10:11:24 +00:00
|
|
|
setIsResetting = baseActivityView.setIsResetting;
|
2026-08-06 08:05:19 +00:00
|
|
|
obj = { instance_id: "example-cl-instance", platform: ActivityPlatform.MOBILE, discord_proxy_ticket: frame.data.proxyTicket };
|
|
|
|
|
({ isResetting, isLandscape } = baseActivityView);
|
|
|
|
|
obj = { wakeLockKey: "FrameActivities", showLoadingIndicator: first, isResetting, children: null };
|
|
|
|
|
const obj1 = {
|
|
|
|
|
onActivityCrash() {
|
2026-07-29 08:29:29 +00:00
|
|
|
setIsResetting(true);
|
|
|
|
|
const timerId = setTimeout(() => callback(false), 0);
|
2026-08-06 08:05:19 +00:00
|
|
|
},
|
|
|
|
|
applicationId: frame.applicationId,
|
|
|
|
|
frameId: frame.id,
|
|
|
|
|
activityUrl: frame.data.url,
|
|
|
|
|
queryParams: obj,
|
|
|
|
|
onLoadError: callback,
|
|
|
|
|
allowPopups: null,
|
|
|
|
|
referrerPolicy: "origin",
|
|
|
|
|
isPipOrGridMode: null,
|
|
|
|
|
webViewKey: null,
|
|
|
|
|
safeAreasConfig: null
|
|
|
|
|
};
|
|
|
|
|
tmpResult = tmp(tmp2[12]);
|
|
|
|
|
obj1[6] = tmpResult.allowPopups(data);
|
|
|
|
|
obj1[8] = layoutMode === constants.PIP;
|
|
|
|
|
obj1[9] = frame(setIsResetting[8]).FRAME_WEB_VIEW_KEY;
|
|
|
|
|
if (isLandscape) {
|
|
|
|
|
landscapeSafeAreasConfig = frame.landscapeSafeAreasConfig;
|
|
|
|
|
}
|
|
|
|
|
obj1[10] = landscapeSafeAreasConfig;
|
|
|
|
|
obj[3] = jsx(layoutMode(setIsResetting[11]), {
|
|
|
|
|
onActivityCrash() {
|
|
|
|
|
setIsResetting(true);
|
|
|
|
|
const timerId = setTimeout(() => callback(false), 0);
|
|
|
|
|
},
|
|
|
|
|
applicationId: frame.applicationId,
|
|
|
|
|
frameId: frame.id,
|
|
|
|
|
activityUrl: frame.data.url,
|
|
|
|
|
queryParams: obj,
|
|
|
|
|
onLoadError: callback,
|
|
|
|
|
allowPopups: null,
|
|
|
|
|
referrerPolicy: "origin",
|
|
|
|
|
isPipOrGridMode: null,
|
|
|
|
|
webViewKey: null,
|
|
|
|
|
safeAreasConfig: null
|
|
|
|
|
});
|
|
|
|
|
return jsx(frame(setIsResetting[10]).BaseActivityView, { wakeLockKey: "FrameActivities", showLoadingIndicator: first, isResetting, children: null });
|
|
|
|
|
}
|
|
|
|
|
let c4 = importAllResult;
|
|
|
|
|
({ asLaunched: closure_6, FrameLayoutModes: error } = FrameLayoutModes);
|
|
|
|
|
const memoResult = importAllResult.memo(function FrameViewGate(arg0) {
|
|
|
|
|
let obj = require(589) /* initialize */;
|
|
|
|
|
const items = [map];
|
|
|
|
|
const stateFromStores = obj.useStateFromStores(items, () => callback(mainFrame.getMainFrame()));
|
|
|
|
|
let tmp2 = null;
|
|
|
|
|
if (null != stateFromStores) {
|
|
|
|
|
obj = { frame: null };
|
|
|
|
|
obj[0] = stateFromStores;
|
|
|
|
|
const merged = Object.assign(arg0);
|
|
|
|
|
tmp2 = <FrameViewInner frame={null} />;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-06 08:05:19 +00:00
|
|
|
return tmp2;
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
2026-07-29 08:29:29 +00:00
|
|
|
const result = require("map").fileFinishedImporting("modules/frames/native/FrameView.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default memoResult;
|
|
|
|
|
export const FrameView = memoResult;
|