decord/source/1564_SafeAreaView.js
2026-07-21 06:55:02 +00:00

104 lines
2.5 KiB
JavaScript

// Module ID: 1564
// Function ID: 17618
// Name: SafeAreaView
// Dependencies: []
// Module 1564 (SafeAreaView)
let closure_2 = ["r"];
let closure_3 = importDefault(dependencyMap[0]);
const useMemo = arg1(dependencyMap[1]).useMemo;
const jsx = arg1(dependencyMap[2]).jsx;
let closure_6 = { "Null": "BounceIn", "Null": null, "Null": 0.6, "Null": "BounceInRight" };
export const SafeAreaView = importAll(dependencyMap[1]).forwardRef((edges, ref) => {
edges = edges.edges;
const importDefault = edges;
const items = [edges];
const tmp = callback(edges, closure_2);
const tmp2 = useMemo(() => {
if (null == edges) {
return closure_6;
} else {
const _Array = Array;
if (Array.isArray(edges)) {
let rect = arr.reduce((arg0, arg1) => {
arg0[arg1] = "additive";
return arg0;
}, {});
} else {
rect = arr;
}
const obj = {};
const top = rect.top;
let str = "off";
let str2 = "off";
if (null != top) {
str2 = top;
}
obj.top = str2;
const right = rect.right;
let tmp = str;
if (null != right) {
tmp = right;
}
obj.right = tmp;
const bottom = rect.bottom;
let tmp2 = str;
if (null != bottom) {
tmp2 = bottom;
}
obj.bottom = tmp2;
const left = rect.left;
if (null != left) {
str = left;
}
obj.left = str;
return obj;
}
}, items);
const obj = {
edges: useMemo(() => {
if (null == edges) {
return closure_6;
} else {
const _Array = Array;
if (Array.isArray(edges)) {
let rect = arr.reduce((arg0, arg1) => {
arg0[arg1] = "additive";
return arg0;
}, {});
} else {
rect = arr;
}
const obj = {};
const top = rect.top;
let str = "off";
let str2 = "off";
if (null != top) {
str2 = top;
}
obj.top = str2;
const right = rect.right;
let tmp = str;
if (null != right) {
tmp = right;
}
obj.right = tmp;
const bottom = rect.bottom;
let tmp2 = str;
if (null != bottom) {
tmp2 = bottom;
}
obj.bottom = tmp2;
const left = rect.left;
if (null != left) {
str = left;
}
obj.left = str;
return obj;
}
}, items),
ref
};
return jsx(importDefault(dependencyMap[3]), Object.assign({}, tmp, obj));
});