decord/source/__polyfill/04xxx/module_4484.js
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

43 lines
1.3 KiB
JavaScript

// Module ID: 4484
// Function ID: 4485
// Dependencies: [32, 19, 21, 4485, 4481, 4480, 4482]
// Module 4484
import _mod4480 from "module_4480" /* 4480 */;
import ACTIONS from "ACTIONS" /* 4481 */;
import PortalHost from "PortalHost" /* 4482 */;
import registerHost from "registerHost" /* 4485 */;
import _slicedToArray from "module_32" /* 32 */;
import noop_mod from "module_19" /* 19 */;
require = fn;
let noop = fn(19);
({ useReducer: c3, memo } = noop);
let noop = noop_mod;
const jsxProd = fn(21);
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
const memoResult = memo((rootHostName) => {
let str = rootHostName.rootHostName;
if (str === undefined) {
str = "root";
}
let flag = rootHostName.shouldAddRootHost;
if (flag === undefined) {
flag = true;
}
[tmp4, tmp5] = React3(registerHost.reducer, ACTIONS.INITIAL_STATE);
const obj = { value: tmp5, children: null };
const obj2 = { value: tmp4, children: null };
const items = [rootHostName.children, ];
if (flag) {
const obj3 = { name: str };
flag = tmp6(PortalHost.PortalHost, obj3);
}
items[1] = flag;
obj2.children = items;
obj.children = hasOwnProperty(_mod4480.PortalStateContext.Provider, obj2);
return React4(_mod4480.PortalDispatchContext.Provider, obj);
});
memoResult.displayName = "PortalProvider";
export const PortalProvider = memoResult;