decord/source/246_renderApplication.js
2026-08-24 06:08:38 +00:00

54 lines
1.8 KiB
JavaScript

// Module ID: 246
// Function ID: 247
// Name: renderApplication
// Dependencies: [19, 247, 21, 38, 251, 257, 114, 253]
// Exports: default
// Module 246 (renderApplication)
import _modDef38 from "module_38" /* 38 */;
import renderElementAll from "renderElement" /* 114 */;
import childrenDefault from "children" /* 251 */;
import RootTagContext from "RootTagContext" /* 253 */;
import frozenDefault from "frozen" /* 257 */;
import closure_4 from "noop" /* 19 */;
import module_247 from "module_247" /* 247 */;
import { jsx } from "jsxProd" /* 21 */;
require = arg1;
export default function renderApplication(arg0) {
({ initialProps, rootTag, debugName, displayMode } = arg0);
({ RootComponent, WrapperComponent, rootViewStyle, isLogBox, useOffscreen } = arg0);
_modDef38(rootTag, "Expect to have a valid rootTag, instead got ", rootTag);
let obj = { rootTag, WrapperComponent, rootViewStyle, initialProps: null, internal_excludeLogBox: null, children: null };
let frozen = initialProps;
if (initialProps == null) {
const _Object = Object;
frozen = Object.freeze({});
}
obj[3] = frozen;
obj[4] = isLogBox;
obj = {};
const merged = Object.assign(initialProps);
obj.rootTag = rootTag;
obj[5] = <RootComponent />;
let tmp4Result = tmp4(childrenDefault, obj);
if (true === useOffscreen) {
if (null != displayMode) {
let str = "hidden";
if (displayMode === frozenDefault.VISIBLE) {
str = "visible";
}
obj = { mode: null, children: null };
obj[0] = str;
obj[1] = tmp4Result;
tmp4Result = tmp4(unstable_Activity.unstable_Activity, obj);
}
}
const tmp = importDefault;
const tmp5 = childrenDefault;
obj1 = { element: tmp4Result, rootTag: null };
const obj4 = renderElementAll;
obj1[1] = RootTagContext.createRootTag(rootTag);
obj4.renderElement(obj1);
};