decord/source/design/components/Layers/native/LayerScope.native.tsx

71 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 5582
// Function ID: 5583
2026-07-20 16:05:17 +00:00
// Name: Layer
2026-08-05 07:35:12 +00:00
// Dependencies: [32, 19, 17, 676, 21, 5583, 5584, 2]
2026-07-20 16:05:17 +00:00
// Exports: LayerScope
2026-08-05 07:35:12 +00:00
// Module 5582 (Layer)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import { NOOP } from "ME";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
let c5;
let c9;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let metroImportAll;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function Layer(zIndex) {
zIndex = zIndex.zIndex;
2026-07-29 08:29:29 +00:00
let context;
let dependencyMap;
let callback;
2026-08-05 07:35:12 +00:00
context = React.useContext(zIndex(5584).LayerContext);
2026-07-29 08:29:29 +00:00
dependencyMap = callback(React.useState({}), 2)[1];
2026-07-23 10:11:24 +00:00
callback = React.useRef(null);
2026-07-20 16:05:17 +00:00
const items = [context];
const effect = React.useEffect(() => {
2026-07-29 08:29:29 +00:00
context.invalidate = () => callback({});
2026-07-20 16:05:17 +00:00
return () => {
2026-07-29 08:29:29 +00:00
closure_1.invalidate = () => null;
2026-07-20 16:05:17 +00:00
};
}, items);
const items1 = context.items;
const items2 = [zIndex];
return callback2(closure_5, {
style: React.useMemo(() => {
const obj = {};
2026-07-23 10:11:24 +00:00
const merged = Object.assign(outer1_6.absoluteFillObject);
2026-07-29 08:29:29 +00:00
obj.zIndex = zIndex;
2026-07-20 16:05:17 +00:00
return obj;
}, items2),
ref(current) {
2026-07-23 10:11:24 +00:00
_slicedToArray.current = current;
2026-07-20 16:05:17 +00:00
context.setSurfaceRef(current);
},
onLayout: NOOP,
pointerEvents: "box-none",
2026-07-29 08:29:29 +00:00
children: items1.map((children) => callback(React.Fragment, { children: children.component }, children.key))
2026-07-20 16:05:17 +00:00
});
}
2026-07-29 08:29:29 +00:00
({ View: c5, StyleSheet: closure_6 } = get_ActivityIndicator);
({ jsx: metroImportAll, jsxs: c9 } = jsxProd);
2026-07-23 10:11:24 +00:00
const result = require("get ActivityIndicator").fileFinishedImporting("design/components/Layers/native/LayerScope.native.tsx");
2026-07-20 16:05:17 +00:00
export const LayerScope = function LayerScope(arg0) {
let children;
let zIndex;
({ children, zIndex } = arg0);
const obj = {
2026-08-05 07:35:12 +00:00
value: importDefault(5583)(() => {
2026-07-29 08:29:29 +00:00
const layerContextManager = new callback(table[6]).LayerContextManager();
2026-07-20 16:05:17 +00:00
return layerContextManager;
2026-07-29 08:29:29 +00:00
}),
children: null
2026-07-20 16:05:17 +00:00
};
const items = [children, callback2(Layer, { zIndex })];
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-08-05 07:35:12 +00:00
return callback3(require(5584) /* add */.LayerContext.Provider, obj);
2026-07-20 16:05:17 +00:00
};