58 lines
2.9 KiB
TypeScript
58 lines
2.9 KiB
TypeScript
/* Metro module 6618; source: components_native/common/SafeAreaView.tsx; dependencies: [31, 27, 33, 1585, 6619, 644, 2] */
|
|
function _fun52319(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6796:6, offset: 0x01326bb0, size: 157 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/common/SafeAreaView.tsx');
|
|
exports.SafeAreaPaddingView = SafeAreaPaddingView;
|
|
}
|
|
|
|
function SafeAreaPaddingView(a0) { // fn#52320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6796:232, offset: 0x01326c4d, size: 467 bytes, params: 2, frame: 27
|
|
var r16;
|
|
let top = a0.top;
|
|
const value = undefined;
|
|
top = !(top === value) && top;
|
|
let bottom = a0.bottom;
|
|
bottom = !(bottom === value) && bottom;
|
|
let left = a0.left;
|
|
left = !(left === value) && left;
|
|
let right = a0.right;
|
|
right = !(right === value) && right;
|
|
const style = a0.style;
|
|
const object2 = {'top': 0, 'bottom': 0, 'left': 0, 'right': 0, 'style': 0};
|
|
silentSetPrototypeOf(object2, null, undefined);
|
|
const value6 = copyDataProperties({}, a0, object2, r16);
|
|
let env0_2 = value;
|
|
const value8 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
|
const value9 = env0_2.useRef(null);
|
|
const r2 = style ?? ({});
|
|
r16 = r2.paddingTop || r2.paddingVertical;
|
|
r16 = !r16 ? 0 : r16;
|
|
let r14 = r2.paddingBottom || r2.paddingVertical;
|
|
r14 = !r14 ? 0 : r14;
|
|
let r12 = r2.paddingLeft || r2.paddingHorizontal;
|
|
r12 = !r12 ? 0 : r12;
|
|
let r9 = r2.paddingRight || r2.paddingHorizontal;
|
|
r9 = !r9 ? 0 : r9;
|
|
const items2 = [r2];
|
|
items2[1] = top ? {paddingTop: value8.top + r16} : value;
|
|
items2[2] = bottom ? {paddingBottom: value8.bottom + r14} : value;
|
|
items2[3] = left ? {paddingLeft: value8.left + r12} : value;
|
|
items2[4] = right ? {paddingRight: value8.right + r9} : value;
|
|
const value14 = (importDefault(6619) /* metro dependency 6619: useRefValue */)(value9);
|
|
const value15 = (importDefault(644) /* metro dependency 644 */)(items2, value14);
|
|
env0_2 = value15;
|
|
const r5 = value15 ? value14 : items2;
|
|
env0_2.useInsertionEffect(_fun52321);
|
|
return <View style={r5} {...value6} />;
|
|
}
|
|
|
|
function _fun52321() { // fn#52321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6796:729, offset: 0x01326e20, size: 28 bytes, params: 1, frame: 2
|
|
if (!env0_2) {
|
|
env0_0.current = env0_1;
|
|
}
|
|
}
|
|
|