Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,118 @@
|
||||
/* Metro module 408; source: unknown; dependencies: [31, 38, 44, 115] */
|
||||
function _fun5803(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:449:6, offset: 0x00ce6038, size: 105 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(31) /* metro dependency 31 */).useMemo;
|
||||
exports.default = useAndroidRippleForView;
|
||||
}
|
||||
|
||||
function useAndroidRippleForView(a0, a1) { // fn#5804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:449:132, offset: 0x00ce60a1, size: 115 bytes, params: 3, frame: 17
|
||||
const value = a0;
|
||||
const env0_0 = a1;
|
||||
const r2 = value ?? ({});
|
||||
const color = r2.color;
|
||||
const borderless = r2.borderless;
|
||||
const radius = r2.radius;
|
||||
const env0_4 = r2.cornerRadius;
|
||||
return useMemo(_fun5805, [borderless, color, r2.foreground, radius, a1]);
|
||||
}
|
||||
|
||||
function _fun5805() { // fn#5805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:449:267, offset: 0x00ce6114, size: 224 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
var value2;
|
||||
var value3;
|
||||
var object2;
|
||||
if (color != null) {
|
||||
value2 = environment.__proto__;
|
||||
value3 = (importDefault(38) /* metro dependency 38 */)(color);
|
||||
(importDefault(44) /* metro dependency 44 */)(value3 == null || typeof value3 === 'number',
|
||||
'Unexpected color given for Ripple color');
|
||||
object2 = {type: 'RippleAndroid', color: value3};
|
||||
object2.borderless = borderless === true;
|
||||
object2.rippleRadius = radius;
|
||||
object2.rippleCornerRadius = cornerRadius;
|
||||
return {viewProps: foreground === true ? {nativeForegroundAndroid: object2} : {nativeBackgroundAndroid: object2},
|
||||
|
||||
onPressIn: onPressIn_5806, onPressMove: onPressMove_5807, onPressOut: onPressOut_5808};
|
||||
}
|
||||
if (borderless != null) {
|
||||
value2 = environment.__proto__;
|
||||
value3 = (importDefault(38) /* metro dependency 38 */)(color);
|
||||
(importDefault(44) /* metro dependency 44 */)(value3 == null || typeof value3 === 'number',
|
||||
'Unexpected color given for Ripple color');
|
||||
object2 = {type: 'RippleAndroid', color: value3};
|
||||
object2.borderless = borderless === true;
|
||||
object2.rippleRadius = radius;
|
||||
object2.rippleCornerRadius = cornerRadius;
|
||||
return {viewProps: foreground === true ? {nativeForegroundAndroid: object2} : {nativeBackgroundAndroid: object2},
|
||||
|
||||
onPressIn: onPressIn_5806, onPressMove: onPressMove_5807, onPressOut: onPressOut_5808};
|
||||
}
|
||||
if (radius != null) {
|
||||
value2 = environment.__proto__;
|
||||
value3 = (importDefault(38) /* metro dependency 38 */)(color);
|
||||
(importDefault(44) /* metro dependency 44 */)(value3 == null || typeof value3 === 'number',
|
||||
'Unexpected color given for Ripple color');
|
||||
object2 = {type: 'RippleAndroid', color: value3};
|
||||
object2.borderless = borderless === true;
|
||||
object2.rippleRadius = radius;
|
||||
object2.rippleCornerRadius = cornerRadius;
|
||||
return {viewProps: foreground === true ? {nativeForegroundAndroid: object2} : {nativeBackgroundAndroid: object2},
|
||||
|
||||
onPressIn: onPressIn_5806, onPressMove: onPressMove_5807, onPressOut: onPressOut_5808};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function onPressIn_5806(a0) { // fn#5806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:449:585, offset: 0x00ce61f4, size: 157 bytes, params: 2, frame: 22
|
||||
var r1;
|
||||
const Commands = (require(115) /* metro dependency 115 */).Commands;
|
||||
var hotspotUpdate;
|
||||
var nativeEvent;
|
||||
var locationX;
|
||||
var value2;
|
||||
const current = require.current;
|
||||
if (current != null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
hotspotUpdate = Commands.hotspotUpdate;
|
||||
nativeEvent = a0.nativeEvent;
|
||||
locationX = nativeEvent.locationX;
|
||||
value2 = 0;
|
||||
r1 = locationX ?? value2;
|
||||
nativeEvent = a0.nativeEvent;
|
||||
Reflect.apply(hotspotUpdate, Commands, [current, r1, nativeEvent.locationY ?? value2]);
|
||||
Commands.setPressed(current, true);
|
||||
}
|
||||
}
|
||||
|
||||
function onPressMove_5807(a0) { // fn#5807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:449:795, offset: 0x00ce6291, size: 117 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var Commands;
|
||||
var hotspotUpdate;
|
||||
var nativeEvent;
|
||||
var locationX;
|
||||
let value = environment.__proto__;
|
||||
const current = require.current;
|
||||
if (current != null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
Commands = (require(115) /* metro dependency 115 */).Commands;
|
||||
hotspotUpdate = Commands.hotspotUpdate;
|
||||
nativeEvent = a0.nativeEvent;
|
||||
locationX = nativeEvent.locationX;
|
||||
value = 0;
|
||||
r0 = locationX ?? value;
|
||||
nativeEvent = a0.nativeEvent;
|
||||
Reflect.apply(hotspotUpdate, Commands, [current, r0, nativeEvent.locationY ?? value]);
|
||||
}
|
||||
}
|
||||
|
||||
function onPressOut_5808(a0) { // fn#5808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:449:970, offset: 0x00ce6306, size: 67 bytes, params: 2, frame: 13
|
||||
const current = require.current;
|
||||
if (current != null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
(require(115) /* metro dependency 115 */).Commands.setPressed(current, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user