2026-07-29 08:29:29 +00:00
|
|
|
// Module ID: 322
|
|
|
|
|
// Function ID: 323
|
|
|
|
|
// Name: createContext
|
|
|
|
|
// Dependencies: [19, 21]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: VirtualizedListCellContextProvider, VirtualizedListContextProvider, VirtualizedListContextResetter
|
|
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
// Module 322 (createContext)
|
2026-08-24 06:08:38 +00:00
|
|
|
import noopAll from "noop" /* 19 */;
|
|
|
|
|
import noop from "noop" /* 19 */;
|
|
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
noopAll;
|
2026-07-29 08:29:29 +00:00
|
|
|
({ useContext: c0, useMemo: closure_1, createContext } = noop);
|
|
|
|
|
const context = createContext(null);
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const VirtualizedListContext = context;
|
|
|
|
|
export const VirtualizedListContextResetter = function VirtualizedListContextResetter(children) {
|
|
|
|
|
return <context.Provider value={null}>{arg0.children}</context.Provider>;
|
|
|
|
|
};
|
|
|
|
|
export const VirtualizedListContextProvider = function VirtualizedListContextProvider(children) {
|
|
|
|
|
const value = children.value;
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = value;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [, , , , ];
|
|
|
|
|
({ getScrollMetrics: arr[0], horizontal: arr[1], getOutermostParentListRef: arr[2], registerAsNestedChild: arr[3], unregisterAsNestedChild: arr[4] } = value);
|
|
|
|
|
return <context.Provider value={callback(() => ({ cellKey: null, getScrollMetrics: value.getScrollMetrics, horizontal: value.horizontal, getOutermostParentListRef: value.getOutermostParentListRef, registerAsNestedChild: value.registerAsNestedChild, unregisterAsNestedChild: value.unregisterAsNestedChild }), items)}>{arg0.children}</context.Provider>;
|
|
|
|
|
};
|
|
|
|
|
export const VirtualizedListCellContextProvider = function VirtualizedListCellContextProvider(cellKey) {
|
|
|
|
|
cellKey = cellKey.cellKey;
|
2026-07-29 08:29:29 +00:00
|
|
|
let callback;
|
2026-07-20 16:05:17 +00:00
|
|
|
const tmp = cellKey(context);
|
2026-07-29 08:29:29 +00:00
|
|
|
callback = tmp;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [tmp, cellKey];
|
2026-07-23 10:11:24 +00:00
|
|
|
return <context.Provider value={callback(() => {
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp2 = null;
|
2026-08-24 06:08:38 +00:00
|
|
|
if (null != closure_1) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj = {};
|
|
|
|
|
const merged = Object.assign(tmp);
|
|
|
|
|
obj.cellKey = cellKey;
|
|
|
|
|
tmp2 = obj;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp2;
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items)}>{arg0.children}</context.Provider>;
|
|
|
|
|
};
|