94 lines
4.2 KiB
React
94 lines
4.2 KiB
React
/* Metro module 5348; source: unknown; dependencies: [65, 6, 7, 15, 17, 18, 31, 5349, 5325, 5340, 5338] */
|
|
function _fun47218(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5526:6, offset: 0x011bc1f5, size: 364 bytes, params: 8, frame: 25
|
|
var r1;
|
|
var value7;
|
|
var object3;
|
|
var items2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = undefined;
|
|
const value2 = importDefault(65) /* metro dependency 65 */;
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
|
const value3 = importDefault(31) /* metro dependency 31 */;
|
|
const value4 = importDefault(5349) /* metro dependency 5349 */;
|
|
items3 = ['minForce', 'maxForce', 'feedbackOnActivation'];
|
|
const Component = value3.Component;
|
|
const value5 = _fun47222(Component);
|
|
const value6 = false;
|
|
value5.forceTouchAvailable = value6;
|
|
if (value4 == null) {
|
|
r1 = value5;
|
|
} else if (value4.forceTouchAvailable) {
|
|
value7 = importDefault(5340) /* metro dependency 5340 */;
|
|
object3 = {name: 'ForceTouchGestureHandler'};
|
|
items2 = [];
|
|
object3.allowedProps = items2.concat(value2((require(5338) /* metro dependency 5338 */).baseGestureHandlerProps),
|
|
|
|
items3);
|
|
object3.config = {};
|
|
r1 = value7(object3);
|
|
} else {
|
|
r1 = value5;
|
|
}
|
|
let forceTouchAvailable = value4 == null ? value : value4.forceTouchAvailable;
|
|
forceTouchAvailable = !forceTouchAvailable ? value6 : forceTouchAvailable;
|
|
r1.forceTouchAvailable = forceTouchAvailable;
|
|
exports.forceTouchGestureHandlerProps = items3;
|
|
exports.forceTouchHandlerName = 'ForceTouchGestureHandler';
|
|
exports.ForceTouchGestureHandler = r1;
|
|
return value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_47219() { // fn#47219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5526:178, offset: 0x011bc361, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_47219_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun47222(a0) { // fn#47222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5526:452, offset: 0x011bc3bf, size: 91 bytes, params: 2, frame: 16
|
|
const closure = ForceTouchFallback;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, [{key: 'componentDidMount', value: value_47224}, {key: 'render', value: function() {
|
|
return this.props.children;
|
|
}}]);
|
|
}
|
|
|
|
function value_47224() { // fn#47224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5526:779, offset: 0x011bc41a, size: 62 bytes, params: 1, frame: 14
|
|
const console = global.console;
|
|
const warn = console.warn;
|
|
let value = environment.__proto__;
|
|
value = require(5325) /* metro dependency 5325 */;
|
|
Reflect.apply(warn, console,
|
|
[value.tagMessage('ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase')]);
|
|
}
|
|
|