99 lines
3.3 KiB
JavaScript
99 lines
3.3 KiB
JavaScript
// Module ID: 5571
|
|
// Function ID: 5572
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 5572, 5538, 5560, 5558]
|
|
|
|
// Module 5571 (_isNativeReflectConstruct)
|
|
import noopDefault from "noop" /* 19 */;
|
|
import _isNativeReflectConstructDefault from "_isNativeReflectConstruct" /* 5560 */;
|
|
import closure_2 from "_classCallCheck" /* 41 */;
|
|
import closure_3 from "_possibleConstructorReturn" /* 93 */;
|
|
import closure_4 from "_getPrototypeOf" /* 95 */;
|
|
import importDefaultResult from "_createClass" /* 42 */;
|
|
import importDefaultResult1 from "_inherits" /* 98 */;
|
|
import importDefaultResult3 from "PlatformConstants" /* 5572 */;
|
|
|
|
const ForceTouchFallback = arg1;
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
class ForceTouchFallback {
|
|
constructor() {
|
|
self = this;
|
|
tmp = closure_2(this, ForceTouchFallback);
|
|
tmp2 = closure_4;
|
|
obj = closure_4(ForceTouchFallback);
|
|
tmp3 = closure_3;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp7 = globalThis;
|
|
_Reflect = Reflect;
|
|
tmp8 = arguments;
|
|
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
|
|
} else {
|
|
tmp4 = arguments;
|
|
tmp5 = arguments;
|
|
constructResult = obj(...arguments);
|
|
}
|
|
return tmp3(self, constructResult);
|
|
}
|
|
}
|
|
importDefaultResult1(ForceTouchFallback, noopDefault.Component);
|
|
let obj = {
|
|
key: "componentDidMount",
|
|
value: function componentDidMount() {
|
|
console.warn(ForceTouchFallback(5538).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"));
|
|
}
|
|
};
|
|
const items = [
|
|
obj,
|
|
{
|
|
key: "render",
|
|
value: function render() {
|
|
return this.props.children;
|
|
}
|
|
}
|
|
];
|
|
let importDefaultResultResult = importDefaultResult(ForceTouchFallback, items);
|
|
importDefaultResultResult.forceTouchAvailable = false;
|
|
let forceTouchAvailable;
|
|
if (importDefaultResult3 != null) {
|
|
forceTouchAvailable = importDefaultResult3.forceTouchAvailable;
|
|
}
|
|
const items1 = ["minForce", "maxForce", "feedbackOnActivation"];
|
|
if (forceTouchAvailable) {
|
|
obj = { name: "ForceTouchGestureHandler", allowedProps: null, config: null };
|
|
const items2 = [];
|
|
HermesBuiltin.arraySpread(items1, HermesBuiltin.arraySpread(require("items1").baseGestureHandlerProps, 0));
|
|
obj[1] = items2;
|
|
obj[2] = {};
|
|
importDefaultResultResult = _isNativeReflectConstructDefault(obj);
|
|
const importDefaultResult4 = _isNativeReflectConstructDefault;
|
|
}
|
|
let flag;
|
|
if (importDefaultResult3 != null) {
|
|
flag = importDefaultResult3.forceTouchAvailable;
|
|
}
|
|
if (!flag) {
|
|
flag = false;
|
|
}
|
|
importDefaultResultResult.forceTouchAvailable = flag;
|
|
|
|
export const forceTouchGestureHandlerProps = items1;
|
|
export const forceTouchHandlerName = "ForceTouchGestureHandler";
|
|
export const ForceTouchGestureHandler = importDefaultResultResult;
|