decord/source/__polyfill/04xxx/module_4516.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

43 lines
1.3 KiB
JavaScript

// Module ID: 4516
// Function ID: 4517
// Dependencies: [32, 19, 21, 4517, 4513, 4512, 4514]
// Module 4516
import _mod4512 from "module_4512" /* 4512 */;
import ACTIONS from "ACTIONS" /* 4513 */;
import PortalHost from "PortalHost" /* 4514 */;
import registerHost from "registerHost" /* 4517 */;
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(_mod4512.PortalStateContext.Provider, obj2);
return React4(_mod4512.PortalDispatchContext.Provider, obj);
});
memoResult.displayName = "PortalProvider";
export const PortalProvider = memoResult;