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

67 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5449
2026-07-27 11:26:19 +00:00
// Function ID: 46595
2026-07-20 16:05:17 +00:00
// Name: Layer
2026-07-23 10:11:24 +00:00
// Dependencies: [57, 31, 27, 653, 33, 5450, 5451, 2]
2026-07-20 16:05:17 +00:00
// Exports: LayerScope
2026-07-23 10:11:24 +00:00
// Module 5449 (Layer)
import _slicedToArray from "_slicedToArray";
import result from "result";
import get_ActivityIndicator from "get ActivityIndicator";
import { NOOP } from "ME";
import jsxProd from "jsxProd";
let closure_5;
let closure_6;
let closure_8;
let closure_9;
const require = arg1;
2026-07-20 16:05:17 +00:00
function Layer(zIndex) {
zIndex = zIndex.zIndex;
2026-07-23 10:11:24 +00:00
const context = React.useContext(zIndex(5451).LayerContext);
const dependencyMap = callback(React.useState({}), 2)[1];
callback = React.useRef(null);
2026-07-20 16:05:17 +00:00
const items = [context];
const effect = React.useEffect(() => {
2026-07-23 10:11:24 +00:00
context.invalidate = () => outer1_2({});
2026-07-20 16:05:17 +00:00
return () => {
2026-07-23 10:11:24 +00:00
outer1_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-20 16:05:17 +00:00
obj["zIndex"] = zIndex;
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-23 10:11:24 +00:00
children: items1.map((children) => outer1_8(outer1_4.Fragment, { children: children.component }, children.key))
2026-07-20 16:05:17 +00:00
});
}
2026-07-23 10:11:24 +00:00
({ View: closure_5, StyleSheet: closure_6 } = get_ActivityIndicator);
({ jsx: closure_8, jsxs: closure_9 } = jsxProd);
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-07-23 10:11:24 +00:00
value: importDefault(5450)(() => {
const layerContextManager = new outer1_0(outer1_2[6]).LayerContextManager();
2026-07-20 16:05:17 +00:00
return layerContextManager;
})
};
const items = [children, callback2(Layer, { zIndex })];
obj.children = items;
2026-07-23 10:11:24 +00:00
return callback3(require(5451) /* LayerContextManager */.LayerContext.Provider, obj);
2026-07-20 16:05:17 +00:00
};