105 lines
5.3 KiB
JavaScript
105 lines
5.3 KiB
JavaScript
/* Metro module 5348; source: unknown; dependencies: [65, 6, 7, 15, 17, 18, 31, 5349, 5325, 5340, 5338] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import React from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import Module00065 from './module-00065.js'; /* Metro dependency 65 */
|
|
import Module05349 from './module-05349.js'; /* Metro dependency 5349 */
|
|
|
|
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 object;
|
|
var items2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = undefined;
|
|
items3 = ['minForce', 'maxForce', 'feedbackOnActivation'];
|
|
const Component = React.Component;
|
|
const value5 = _fun47222(Component);
|
|
const value6 = false;
|
|
value5.forceTouchAvailable = value6;
|
|
if (Module05349 == null) {
|
|
r1 = value5;
|
|
} else if (Module05349.forceTouchAvailable) {
|
|
value7 = importDefault(5340) /* metro dependency 5340 */;
|
|
object = {name: 'ForceTouchGestureHandler'};
|
|
items2 = [];
|
|
object.allowedProps = items2.concat(Module00065((require(5338) /* metro dependency 5338 */).baseGestureHandlerProps),
|
|
items3);
|
|
object.config = {};
|
|
r1 = value7(object);
|
|
} else {
|
|
r1 = value5;
|
|
}
|
|
let forceTouchAvailable = Module05349 == null ? value : Module05349.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 ForceTouchFallback2 = ForceTouchFallback;
|
|
Inherits(ForceTouchFallback2, a0);
|
|
return CreateClass(ForceTouchFallback2, [{key: 'componentDidMount', value: value_47224}, {key: 'render',
|
|
value: function() {
|
|
return this.props.children;
|
|
}}]);
|
|
function ForceTouchFallback() { // fn#47223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5526:464, offset: 0x00c7f278, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_2(this, ForceTouchFallback);
|
|
const value3 = env1_5(ForceTouchFallback);
|
|
return env1_4(this, _isNativeReflectConstruct_47219() ? global.Reflect.construct(value3, arguments,
|
|
env1_5(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
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')]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun47218, 5348, [65, 6, 7, 15, 17, 18, 31, 5349, 5325, 5340,
|
|
5338]) /* metro module 5348, dependencies: [65, 6, 7, 15, 17, 18, 31, 5349, 5325, 5340, 5338] */;
|