decord/source/__polyfill/04xxx/module_4518.js
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

43 lines
1.3 KiB
JavaScript

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