/* Metro module 289; source: unknown; dependencies: [57, 29, 31, 33, 38, 147, 114, 290, 292] */
function _fun4468(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:6, offset: 0x00cc358f, size: 256 bytes, params: 8, frame: 19
const env0_0 = require;
const env0_3 = ['ref', 'accessible', 'accessibilityLabel', 'accessibilityState', 'allowFontScaling', 'aria-busy',
'aria-checked', 'aria-disabled', 'aria-expanded', 'aria-label', 'aria-selected', 'children', 'ellipsizeMode',
'disabled', 'id', 'nativeID', 'numberOfLines', 'onLongPress', 'onPress', 'onPressIn', 'onPressOut',
'onResponderGrant', 'onResponderMove', 'onResponderRelease', 'onResponderTerminate',
'onResponderTerminationRequest', 'onStartShouldSetResponder', 'pressRetentionOffset', 'selectable',
'selectionColor', 'suppressHighlighting', 'style'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importDefault(29) /* metro dependency 29 */;
importAll(31) /* metro dependency 31 */;
const value = require(31) /* metro dependency 31 */;
const env0_6 = value.useContext;
const env0_7 = value.useMemo;
const env0_8 = value.useState;
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
const closure = TextImpl;
closure.displayName = 'Text';
const env0_12 = {'auto': true, 'text': true, 'none': false, 'contain': true, 'all': true};
const env0_13 = {'auto': 'auto', 'top': 'top', 'bottom': 'bottom', 'middle': 'center'};
exports.default = closure;
}
function useTextPressability({onLongPress, onPress, onPressIn, onPressOut, onResponderGrant, onResponderMove, onResponderRelease, onResponderTerminate, onResponderTerminationRequest, onStartShouldSetResponder, pressRetentionOffset, suppressHighlighting}) { // fn#4469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:3875, offset: 0x00cc368f, size: 318 bytes, params: 2, frame: 27
const value3 = onResponderGrant(useState(false), 2);
const property = value3[0];
value3[1];
let items2 = [pressRetentionOffset, onLongPress, onPress, onPressIn, onPressOut, suppressHighlighting];
items2 = [(importDefault(292) /* metro dependency 292 */)(useMemo(function() {
return {disabled: false, pressRectOffset: pressRetentionOffset, onLongPress: onLongPress, onPress: onPress,
onPressIn: onPressIn, onPressOut: onPressOut};
}, items2)), onResponderGrant, onResponderMove, onResponderRelease, onResponderTerminate,
onResponderTerminationRequest, onStartShouldSetResponder];
items2 = [property, useMemo(_fun4471, items2)];
return useMemo(_fun4476, items2);
}
function TextImpl(a0) { // fn#4477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:712, offset: 0x00cc3963, size: 1577 bytes, params: 2, frame: 53
var r0;
var r36;
var r35;
var r34;
var r30;
var r24;
var r28;
var disabled;
var r20;
var r41;
var r19;
var r37;
var r23;
var r25;
var r2;
var r39;
var r3;
var value6;
var value7;
var value8;
var value9;
var object3;
var busy;
var checked;
var expanded;
var selected;
var value11;
var value12;
var value13;
var value14;
var value16;
var value17;
var fontWeight;
var toString;
var userSelect;
var verticalAlign;
var value20;
var value21;
var value22;
var value23;
var Object;
var assign;
var value24;
var value25;
var value26;
var jsxRuntimeEnv0_9Binding;
var NativeText;
var object4;
var length;
var value31;
var iterator;
var iterator2;
var item;
var item2;
var value32;
var value33;
var value34;
var error;
var defaultImport;
var NativeVirtualText;
const value = undefined;
const ref = a0.ref;
const accessible = a0.accessible;
const accessibilityLabel = a0.accessibilityLabel;
const accessibilityState = a0.accessibilityState;
const allowFontScaling = a0.allowFontScaling;
let property = a0['aria-busy'];
const property2 = a0['aria-checked'];
const property3 = a0['aria-disabled'];
const property4 = a0['aria-expanded'];
const property5 = a0['aria-label'];
const property6 = a0['aria-selected'];
const children = a0.children;
const ellipsizeMode = a0.ellipsizeMode;
const disabled2 = a0.disabled;
const id = a0.id;
const nativeID = a0.nativeID;
let numberOfLines = a0.numberOfLines;
const onLongPress = a0.onLongPress;
const onPress = a0.onPress;
const onPressIn = a0.onPressIn;
const onPressOut = a0.onPressOut;
const onResponderGrant = a0.onResponderGrant;
const onResponderMove = a0.onResponderMove;
const onResponderRelease = a0.onResponderRelease;
const onResponderTerminate = a0.onResponderTerminate;
const onResponderTerminationRequest = a0.onResponderTerminationRequest;
const onStartShouldSetResponder = a0.onStartShouldSetResponder;
const pressRetentionOffset = a0.pressRetentionOffset;
const selectable = a0.selectable;
const selectionColor = a0.selectionColor;
const suppressHighlighting = a0.suppressHighlighting;
const style = a0.style;
let binding = env0_5;
const value3 = binding(a0, env0_3);
const value4 = null;
const r29 = value4 == property5 ? accessibilityLabel : property5;
const value5 = value4 == property;
reducibleJoin3: while (true) {
if (value5) {
value6 = value4 == property2;
r0 = value6;
break reducibleJoin3;
}
r0 = value5;
break reducibleJoin3;
}
reducibleJoin5: while (true) {
if (r0) {
value7 = value4 == property3;
r0 = value7;
break reducibleJoin5;
}
break reducibleJoin5;
}
reducibleJoin7: while (true) {
if (r0) {
value8 = value4 == property4;
r0 = value8;
break reducibleJoin7;
}
break reducibleJoin7;
}
reducibleJoin9: while (true) {
if (r0) {
value9 = value4 == property6;
r0 = value9;
break reducibleJoin9;
}
break reducibleJoin9;
}
reducibleJoin24: while (true) {
if (r0) {
r28 = accessibilityState;
break reducibleJoin24;
}
if (value4 != accessibilityState) {
reducibleJoin14: while (true) {
if (value4 != property) {
r36 = property;
break reducibleJoin14;
}
busy = accessibilityState.busy;
r36 = busy;
break reducibleJoin14;
}
reducibleJoin16: while (true) {
if (value4 != property2) {
r35 = property2;
break reducibleJoin16;
}
checked = accessibilityState.checked;
r35 = checked;
break reducibleJoin16;
}
reducibleJoin18: while (true) {
if (value4 != property3) {
r34 = property3;
break reducibleJoin18;
}
disabled = accessibilityState.disabled;
r34 = disabled;
break reducibleJoin18;
}
reducibleJoin20: while (true) {
if (value4 != property4) {
r30 = property4;
break reducibleJoin20;
}
expanded = accessibilityState.expanded;
r30 = expanded;
break reducibleJoin20;
}
reducibleJoin22: while (true) {
if (value4 != property6) {
r24 = property6;
break reducibleJoin22;
}
selected = accessibilityState.selected;
r24 = selected;
break reducibleJoin22;
}
r0 = {busy: r36, checked: r35, disabled: r34, expanded: r30, selected: r24};
} else {
r0 = {busy: property, checked: property2, disabled: property3, expanded: property4, selected: property6};
}
r28 = r0;
break reducibleJoin24;
}
reducibleJoin26: while (true) {
if (value4 == r28) {
disabled = value;
break reducibleJoin26;
}
disabled = r28.disabled;
break reducibleJoin26;
}
r34 = value4 == disabled2 ? disabled : disabled2;
const value10 = value4 != onPress;
reducibleJoin29: while (true) {
if (value10) {
r0 = value10;
break reducibleJoin29;
}
value11 = value4 != onLongPress;
r0 = value11;
break reducibleJoin29;
}
reducibleJoin31: while (true) {
if (r0) {
break reducibleJoin31;
}
value12 = value4 != onStartShouldSetResponder;
r0 = value12;
break reducibleJoin31;
}
reducibleJoin33: while (true) {
if (r0) {
value13 = r34 !== true;
r0 = value13;
break reducibleJoin33;
}
break reducibleJoin33;
}
reducibleJoin35: while (true) {
if (value4 != selectionColor) {
value14 = (importDefault(38) /* metro dependency 38 */)(selectionColor);
r24 = value14;
break reducibleJoin35;
}
r24 = value;
break reducibleJoin35;
}
const value15 = value4 == numberOfLines;
reducibleJoin37: while (true) {
if (value15) {
r20 = value15;
break reducibleJoin37;
}
value16 = numberOfLines >= 0;
r20 = value16;
break reducibleJoin37;
}
reducibleJoin39: while (true) {
if (r20) {
break reducibleJoin39;
}
value17 = 0;
numberOfLines = value17;
break reducibleJoin39;
}
const value18 = (importDefault(147) /* metro dependency 147 */)(style);
reducibleJoin52: while (true) {
if (value4 == value18) {
r23 = style;
r25 = selectable;
break reducibleJoin52;
}
fontWeight = value18.fontWeight;
reducibleJoin42: while (true) {
if (typeof fontWeight !== 'number') {
r41 = value4;
break reducibleJoin42;
}
fontWeight = value18.fontWeight;
toString = fontWeight.toString;
r41 = {fontWeight: Reflect.apply(toString, fontWeight, [])};
break reducibleJoin42;
}
userSelect = value18.userSelect;
reducibleJoin46: while (true) {
if (value4 == userSelect) {
r19 = selectable;
r37 = r41;
break reducibleJoin46;
}
binding = env0_12;
userSelect = value18.userSelect;
property = binding[userSelect];
reducibleJoin45: while (true) {
if (r41) {
r20 = r41;
break reducibleJoin45;
}
r20 = {};
break reducibleJoin45;
}
r20.userSelect = value;
r19 = property;
r37 = r20;
break reducibleJoin46;
}
verticalAlign = value18.verticalAlign;
reducibleJoin50: while (true) {
if (value4 == verticalAlign) {
r30 = r37;
break reducibleJoin50;
}
reducibleJoin49: while (true) {
if (r37) {
r20 = r37;
break reducibleJoin49;
}
r20 = {};
break reducibleJoin49;
}
binding = env0_13;
verticalAlign = value18.verticalAlign;
r20.textAlignVertical = binding[verticalAlign];
r20.verticalAlign = value;
r30 = r20;
break reducibleJoin50;
}
if (value4 == r30) {
r23 = style;
r25 = r19;
break reducibleJoin52;
}
r23 = [style, r30];
r25 = r19;
break reducibleJoin52;
}
const r27 = value4 == id ? nativeID : id;
if (useContext(importDefault(114) /* metro dependency 114 */)) {
if (r0) {
Object = global.Object;
r0 = ;
} else {
NativeVirtualText = (require(290) /* metro dependency 290 */).NativeVirtualText;
Object = global.Object;
r0 = ;
}
return r0;
}
const value19 = r34 !== disabled;
reducibleJoin62: while (true) {
if (value19) {
value20 = value4 != r34;
reducibleJoin57: while (true) {
if (value20) {
value21 = r34 !== false;
r19 = value21;
break reducibleJoin57;
}
r19 = value20;
break reducibleJoin57;
}
reducibleJoin61: while (true) {
if (r19) {
break reducibleJoin61;
}
value22 = value4 != disabled;
reducibleJoin60: while (true) {
if (value22) {
value23 = disabled !== false;
r20 = value23;
break reducibleJoin60;
}
r20 = value22;
break reducibleJoin60;
}
r19 = r20;
break reducibleJoin61;
}
r2 = r19;
break reducibleJoin62;
}
r2 = value19;
break reducibleJoin62;
}
reducibleJoin64: while (true) {
if (r2) {
Object = global.Object;
assign = Object.assign;
value24 = Reflect.apply(assign, Object, [{}, r28, {disabled: r34}]);
r41 = value24;
break reducibleJoin64;
}
r41 = r28;
break reducibleJoin64;
}
reducibleJoin68: while (true) {
if (value4 != accessible) {
r39 = accessible;
break reducibleJoin68;
}
value25 = value4 != onPress;
reducibleJoin67: while (true) {
if (value25) {
r2 = value25;
break reducibleJoin67;
}
value26 = value4 != onLongPress;
r2 = value26;
break reducibleJoin67;
}
r39 = r2;
break reducibleJoin68;
}
if (r0) {
object3 = {ref: ref};
Object = global.Object;
assign = Object.assign;
object4 = {accessibilityLabel: r29, accessibilityState: r41, accessible: r39,
allowFontScaling: allowFontScaling !== false, disabled: r34};
r34 = value4 != ellipsizeMode ? ellipsizeMode : 'tail';
object4.ellipsizeMode = r34;
object4.nativeID = r27;
object4.numberOfLines = numberOfLines;
object4.selectable = r25;
object4.selectionColor = r24;
object4.style = r23;
object4.children = children;
object3.textProps = Reflect.apply(assign, Object, [{}, value3, object4]);
object3.textPressabilityProps = {onLongPress: onLongPress, onPress: onPress, onPressIn: onPressIn,
onPressOut: onPressOut, onResponderGrant: onResponderGrant, onResponderMove: onResponderMove,
onResponderRelease: onResponderRelease, onResponderTerminate: onResponderTerminate,
onResponderTerminationRequest: onResponderTerminationRequest,
onStartShouldSetResponder: onStartShouldSetResponder, pressRetentionOffset: pressRetentionOffset,
suppressHighlighting: suppressHighlighting};
r2 = ;
} else {
NativeText = (require(290) /* metro dependency 290 */).NativeText;
Object = global.Object;
assign = Object.assign;
r2 = value4 != ellipsizeMode ? ellipsizeMode : 'tail';
r2 = ;
}
if (value4 != children) {
var Array = global.Array;
reducibleJoin80: while (true) {
reducibleJoin76: while (true) {
if (Array.isArray(children)) {
length = children.length;
if (!(length <= 3)) {
break reducibleJoin76;
}
value31 = false;
iterator = children[Symbol.iterator]();
iterator2 = iterator.next;
r20 = iterator;
item2 = Reflect.apply(iterator2, r20, []);
item = item2.value;
item2 = item2.done ? undefined : r20;
if (item2 !== value) {
break reducibleJoin80;
}
r3 = value31;
reducibleJoin89: while (true) {
if (!r3) {
return r2;
}
break reducibleJoin89;
}
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
defaultImport = importDefault(114) /* metro dependency 114 */;
return ((Component) => {r2})(defaultImport);
}
break reducibleJoin76;
}
if (typeof children === 'object') {
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
return ((Component) => {r2})(importDefault(114) /* metro dependency 114 */);
}
return r2;
}
reducibleLoop80: while (true) {
try {
value32 = value4 == item;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
if (value32) {
r20 = item2;
} else {
try {
value33 = typeof item === 'object';
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
reducibleJoin79: while (true) {
if (value33) {
value34 = true;
item2.return();
r3 = value34;
break reducibleLoop80;
}
r20 = item2;
break reducibleJoin79;
}
}
item2 = Reflect.apply(iterator2, r20, []);
item = item2.value;
item2 = item2.done ? undefined : r20;
if (item2 === value) {
r3 = value31;
break reducibleLoop80;
}
continue reducibleLoop80;
}
if (r3) {
return ((Component) => {r2})(importDefault(114) /* metro dependency 114 */);
}
}
return r2;
}
function NativePressableVirtualText(a0) { // fn#4478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:4962, offset: 0x00cc3f8c, size: 144 bytes, params: 2, frame: 21
const ref = a0.ref;
const textProps = a0.textProps;
const value3 = env0_4(useTextPressability(a0.textPressabilityProps), 2);
const property = value3[0];
const property2 = value3[1];
const NativeVirtualText = (require(290) /* metro dependency 290 */).NativeVirtualText;
const Object = global.Object;
return (
);
}
function NativePressableText(a0) { // fn#4479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:5197, offset: 0x00cc401c, size: 144 bytes, params: 2, frame: 21
const ref = a0.ref;
const textProps = a0.textProps;
const value3 = env0_4(useTextPressability(a0.textPressabilityProps), 2);
const property = value3[0];
const property2 = value3[1];
const NativeText = (require(290) /* metro dependency 290 */).NativeText;
const Object = global.Object;
return (
);
}
function _fun4471() { // fn#4471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:4340, offset: 0x00cc3806, size: 140 bytes, params: 1, frame: 6
const value2 = null;
return value2 == env0_12 ? value2 : {onResponderGrant: onResponderGrant_4472, onResponderMove: onResponderMove_4473,
onResponderRelease: onResponderRelease_4474, onResponderTerminate: onResponderTerminate_4475,
onClick: env0_12.onClick,
onResponderTerminationRequest: value2 != onResponderTerminationRequest ? onResponderTerminationRequest : env0_12.onResponderTerminationRequest,
onStartShouldSetResponder: value2 != onStartShouldSetResponder ? onStartShouldSetResponder : env0_12.onStartShouldSetResponder};
}
function _fun4476() { // fn#4476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:4903, offset: 0x00cc394a, size: 25 bytes, params: 1, frame: 3
return [env0_11, env0_13];
}
function onResponderGrant_4472(a0) { // fn#4472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:4389, offset: 0x00cc3892, size: 46 bytes, params: 2, frame: 12
env1_12.onResponderGrant(a0);
if (onResponderGrant != null) {
onResponderGrant(a0);
}
}
function onResponderMove_4473(a0) { // fn#4473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:4471, offset: 0x00cc38c0, size: 46 bytes, params: 2, frame: 12
env1_12.onResponderMove(a0);
if (onResponderMove != null) {
onResponderMove(a0);
}
}
function onResponderRelease_4474(a0) { // fn#4474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:4554, offset: 0x00cc38ee, size: 46 bytes, params: 2, frame: 12
env1_12.onResponderRelease(a0);
if (onResponderRelease != null) {
onResponderRelease(a0);
}
}
function onResponderTerminate_4475(a0) { // fn#4475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:330:4645, offset: 0x00cc391c, size: 46 bytes, params: 2, frame: 12
env1_12.onResponderTerminate(a0);
if (onResponderTerminate != null) {
onResponderTerminate(a0);
}
}