2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 313
|
|
|
|
|
// Function ID: 4797
|
|
|
|
|
// Name: context
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [31, 33]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: VirtualizedListCellContextProvider, VirtualizedListContextProvider, VirtualizedListContextResetter
|
|
|
|
|
|
|
|
|
|
// Module 313 (context)
|
2026-07-23 10:11:24 +00:00
|
|
|
import "result";
|
|
|
|
|
import result from "result";
|
|
|
|
|
import { jsx } from "jsxProd";
|
|
|
|
|
|
|
|
|
|
let closure_0;
|
|
|
|
|
let closure_1;
|
|
|
|
|
({ useContext: closure_0, useMemo: closure_1 } = result);
|
|
|
|
|
const context = result.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;
|
|
|
|
|
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;
|
|
|
|
|
const tmp = cellKey(context);
|
2026-07-23 10:11:24 +00:00
|
|
|
const 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-20 16:05:17 +00:00
|
|
|
let merged = null;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (null != closure_1) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const _Object = Object;
|
|
|
|
|
const obj = { cellKey };
|
2026-07-23 10:11:24 +00:00
|
|
|
merged = Object.assign({}, closure_1, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return merged;
|
|
|
|
|
}, items)}>{arg0.children}</context.Provider>;
|
|
|
|
|
};
|