Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
98 lines
3.1 KiB
JavaScript
98 lines
3.1 KiB
JavaScript
// Module ID: 6794
|
|
// Function ID: 6795
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 6795, 6761, 6783, 6781]
|
|
|
|
// Module 6794
|
|
import _modDef6783 from "module_6783" /* 6783 */;
|
|
import _classCallCheck from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import c3 from "_possibleConstructorReturn" /* 93 */;
|
|
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
|
|
import _inherits from "_inherits" /* 98 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import PlatformConstants from "module_6795" /* 6795 */;
|
|
|
|
const ForceTouchFallback = fn;
|
|
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 = c2(this, ForceTouchFallback);
|
|
tmp2 = closure_4;
|
|
obj = closure_4(ForceTouchFallback);
|
|
tmp3 = closure_3;
|
|
if (hasOwnProperty()) {
|
|
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);
|
|
}
|
|
}
|
|
_inherits(ForceTouchFallback, noop.Component);
|
|
const entry = {
|
|
key: "componentDidMount",
|
|
value: function componentDidMount() {
|
|
console.warn(ForceTouchFallback(6761).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 = [
|
|
entry,
|
|
{
|
|
key: "render",
|
|
value: function render() {
|
|
return this.props.children;
|
|
}
|
|
}
|
|
];
|
|
let importDefaultResultResult = _createClass(ForceTouchFallback, items);
|
|
importDefaultResultResult.forceTouchAvailable = false;
|
|
let forceTouchAvailable;
|
|
if (PlatformConstants != null) {
|
|
forceTouchAvailable = PlatformConstants.forceTouchAvailable;
|
|
}
|
|
const items1 = ["minForce", "maxForce", "feedbackOnActivation"];
|
|
if (forceTouchAvailable) {
|
|
let obj = { name: "ForceTouchGestureHandler", allowedProps: null, config: null };
|
|
const items2 = [];
|
|
HermesBuiltin.arraySpread(items1, HermesBuiltin.arraySpread(fn(6781).baseGestureHandlerProps, 0));
|
|
obj.allowedProps = items2;
|
|
obj.config = {};
|
|
importDefaultResultResult = _modDef6783(obj);
|
|
const importDefaultResult4 = _modDef6783;
|
|
}
|
|
let flag;
|
|
if (PlatformConstants != null) {
|
|
flag = PlatformConstants.forceTouchAvailable;
|
|
}
|
|
if (!flag) {
|
|
flag = false;
|
|
}
|
|
importDefaultResultResult.forceTouchAvailable = flag;
|
|
|
|
export const forceTouchGestureHandlerProps = items1;
|
|
export const forceTouchHandlerName = "ForceTouchGestureHandler";
|
|
export const ForceTouchGestureHandler = importDefaultResultResult;
|