decord/source/5434__isNativeReflectConstruct.js

109 lines
3.7 KiB
JavaScript
Raw Normal View History

2026-08-04 08:36:32 +00:00
// Module ID: 5434
// Function ID: 5435
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-04 08:36:32 +00:00
// Dependencies: [109, 41, 42, 93, 95, 98, 17, 19, 21, 5435]
2026-07-29 08:29:29 +00:00
2026-08-04 08:36:32 +00:00
// Module 5434 (_isNativeReflectConstruct)
2026-07-29 08:29:29 +00:00
import _objectWithoutProperties from "_objectWithoutProperties";
import _classCallCheck from "_classCallCheck";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import importDefaultResult from "_createClass";
2026-07-31 08:44:05 +00:00
import { Platform } from "get ActivityIndicator";
import "noop";
2026-07-29 08:29:29 +00:00
import { jsx } from "jsxProd";
2026-07-31 08:44:05 +00:00
const TouchableNativeFeedback = importDefault;
2026-07-29 08:29:29 +00:00
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);
}
let closure_0 = !callResult;
function _isNativeReflectConstruct() {
return closure_0;
}
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-07-31 08:44:05 +00:00
let closure_2 = ["style"];
class TouchableNativeFeedback {
constructor() {
2026-07-29 08:29:29 +00:00
self = this;
2026-07-31 08:44:05 +00:00
tmp = _isNativeReflectConstruct(this, TouchableNativeFeedback);
2026-07-29 08:29:29 +00:00
tmp2 = _isNativeReflectConstruct;
2026-07-31 08:44:05 +00:00
obj = _isNativeReflectConstruct(TouchableNativeFeedback);
2026-07-29 08:29:29 +00:00
tmp3 = _isNativeReflectConstruct;
if (_isNativeReflectConstruct()) {
2026-07-31 08:44:05 +00:00
tmp7 = globalThis;
2026-07-29 08:29:29 +00:00
_Reflect = Reflect;
2026-07-31 08:44:05 +00:00
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-07-31 08:44:05 +00:00
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
2026-07-29 08:29:29 +00:00
}
2026-07-31 08:44:05 +00:00
return tmp3(self, constructResult);
2026-07-29 08:29:29 +00:00
}
}
2026-07-31 08:44:05 +00:00
require("_inherits")(TouchableNativeFeedback, require("noop").Component);
2026-07-29 08:29:29 +00:00
let obj = {
2026-07-31 08:44:05 +00:00
key: "getExtraButtonProps",
value: function getExtraButtonProps() {
const obj = {};
let rippleRadius = this.props.background;
if (!rippleRadius) {
obj.foreground = this.props.useForeground;
return obj;
2026-07-29 08:29:29 +00:00
} else {
2026-07-31 08:44:05 +00:00
if ("RippleAndroid" === rippleRadius.type) {
({ borderless: obj.borderless, color: obj.rippleColor } = rippleRadius);
} else if ("ThemeAttrAndroid" === rippleRadius.type) {
obj.borderless = "selectableItemBackgroundBorderless" === rippleRadius.attribute;
}
rippleRadius = rippleRadius.rippleRadius;
obj.rippleRadius = rippleRadius;
2026-07-29 08:29:29 +00:00
}
}
};
2026-07-31 08:44:05 +00:00
const items = [
2026-07-29 08:29:29 +00:00
obj,
{
key: "render",
value: function render() {
const self = this;
const props = this.props;
let style = props.style;
if (undefined === style) {
style = {};
}
const obj = {};
2026-07-31 08:44:05 +00:00
const tmp = callback(props, closure_2);
2026-07-29 08:29:29 +00:00
const merged = Object.assign(tmp);
2026-07-31 08:44:05 +00:00
obj.style = style;
obj.extraButtonProps = self.getExtraButtonProps();
2026-08-04 08:36:32 +00:00
return jsx(TouchableNativeFeedback(5435), {});
2026-07-29 08:29:29 +00:00
}
}
];
2026-07-31 08:44:05 +00:00
const importDefaultResultResult = importDefaultResult(TouchableNativeFeedback, items);
2026-07-29 08:29:29 +00:00
obj = {};
let merged = Object.assign(require("_isNativeReflectConstruct").defaultProps);
2026-07-31 08:44:05 +00:00
obj.useForeground = true;
obj.extraButtonProps = { rippleColor: null };
2026-07-29 08:29:29 +00:00
importDefaultResultResult.defaultProps = obj;
2026-07-31 08:44:05 +00:00
importDefaultResultResult.SelectableBackground = (rippleRadius) => ({ type: "ThemeAttrAndroid", attribute: "selectableItemBackground", rippleRadius });
importDefaultResultResult.SelectableBackgroundBorderless = (rippleRadius) => ({ type: "ThemeAttrAndroid", attribute: "selectableItemBackgroundBorderless", rippleRadius });
importDefaultResultResult.Ripple = (color, borderless, rippleRadius) => ({ type: "RippleAndroid", color, borderless, rippleRadius });
importDefaultResultResult.canUseNativeForeground = () => Platform.Version >= 23;
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;