/* Metro module 8792; source: design/void/TouchableHitBox/native/TouchableHitBox.tsx; dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 4501, 697, 1305, 5278, 3868, 2] */
import ClassCallCheck from '../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
import * as CreateStylesModule from '../../../components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as PressablesModule from '../../Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
function _fun68732(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8977:6, offset: 0x01c5a98b, size: 443 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
const createLegacyClassComponentStyles = CreateStylesModule.createLegacyClassComponentStyles;
const object2 = {'flexGrow': 0, 'flexShrink': 1, 'justifyContent': 'center', 'alignItems': 'center',
'backgroundColor': 'transparent', 'alignSelf': 'flex-start'};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const env0_9 = Reflect.apply(createLegacyClassComponentStyles, CreateStylesModule, [{button: object2,
buttonText: {'lineHeight': 24, 'margin': 10, 'maxWidth': 60, 'fontSize': 16}, buttonIcon: {margin: 10},
buttonSpinner: {margin: 12}, buttonDisabled: {opacity: 0.6}}]);
const PureComponent = value.PureComponent;
value = _fun68736(PureComponent);
const ThemeContext = (NativeModule).ThemeContext;
value.contextType = ThemeContext;
value.defaultProps = {onPress: function() {
}};
(FileImportTrackerModule).fileFinishedImporting('design/void/TouchableHitBox/native/TouchableHitBox.tsx');
exports.default = value;
function _isNativeReflectConstruct_68733() { // fn#68733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8977:200, offset: 0x01c5ab46, size: 98 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_68733_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun68736(a0) { // fn#68736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8977:743, offset: 0x01c5aba8, size: 72 bytes, params: 2, frame: 15
const TouchableHitBox2 = TouchableHitBox;
Inherits(TouchableHitBox2, a0);
return CreateClass(TouchableHitBox2, [{key: 'render', value: value_68738}]);
function TouchableHitBox() { // fn#68737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8977:755, offset: 0x00ec62ac, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, TouchableHitBox);
const value3 = env1_5(TouchableHitBox);
return env1_4(this, _isNativeReflectConstruct_68733() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_68738() { // fn#68738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8977:1044, offset: 0x01c5abf0, size: 580 bytes, params: 1, frame: 37
var r4;
const binding = env1_9;
const context = this.context;
const value2 = undefined;
const value3 = binding(context);
const props = this.props;
const disabled = props.disabled;
const source = props.source;
const text = props.text;
const loading = props.loading;
const activeOpacity = props.activeOpacity;
const onPress = props.onPress;
const onLongPress = props.onLongPress;
const style = props.style;
const IconComponent = props.IconComponent;
const iconSize = props.iconSize;
const iconStyle = props.iconStyle;
const color = props.color;
const disableColor = props.disableColor;
const r23 = value2 !== disableColor && disableColor;
const accessibilityLabel = props.accessibilityLabel;
const accessibilityRole = props.accessibilityRole;
const accessibilityState = props.accessibilityState;
const children = props.children;
if (source != null) {
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
r4 = (
);
} else {
r4 = value2;
}
if (loading) {
r4 = (
);
} else if (text != null) {
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
r4 = (
{text}
);
} else {
r4 = (
IconComponent == null
? source == null ? children ?? value2 : r4
: (
source != null
? (
)
: source == null ? children ?? value2 : r4
)
);
}
const PressableOpacity = (PressablesModule).PressableOpacity;
return (
{r4}
);
}
}
}
global.__d(_fun68732, 8792, [6, 7, 15, 17, 18, 31, 27, 33, 4501, 697, 1305, 5278, 3868,
2]) /* metro module 8792, dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 4501, 697, 1305, 5278, 3868, 2] */;