Files
discord-decomp/sources/by-id/module-00423.js
T
2026-07-28 01:06:53 +03:00

360 lines
14 KiB
JavaScript

/* Metro module 423; source: unknown; dependencies: [29, 31, 33, 292] */
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Module00292 from './module-00292.js'; /* Metro dependency 292 */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun5938(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:464:6, offset: 0x00ceab44, size: 176 bytes, params: 8, frame: 19
const env0_2 = ['onBlur', 'onFocus'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(JsxRuntimeModule).jsx;
const env0_7 = ['accessibilityActions', 'accessibilityElementsHidden', 'accessibilityHint', 'accessibilityLanguage',
'accessibilityIgnoresInvertColors', 'accessibilityLabel', 'accessibilityLiveRegion', 'accessibilityRole',
'accessibilityValue', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext',
'accessibilityViewIsModal', 'aria-modal', 'hitSlop', 'importantForAccessibility', 'nativeID',
'onAccessibilityAction', 'onBlur', 'onFocus', 'onLayout', 'testID'];
exports.default = TouchableWithoutFeedback;
function TouchableWithoutFeedback(a0) { // fn#5939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:464:647, offset: 0x00ceabf4, size: 961 bytes, params: 2, frame: 34
var busy;
var r2;
var checked;
var expanded;
var selected;
var importantForAccessibility;
var r13;
var Object2;
var assign2;
var value7;
var value9;
var value10;
var accessibilityElementsHidden;
var accessibilityLiveRegion;
var nativeID;
var value14;
var error;
var cloneElementBinding;
var apply;
var items2;
const value = undefined;
let disabled = a0.disabled;
const rejectResponderTermination = a0.rejectResponderTermination;
let property = a0['aria-disabled'];
const property8 = property;
let accessibilityState = a0.accessibilityState;
const accessibilityState2 = accessibilityState;
const hitSlop = a0.hitSlop;
const hitSlop2 = hitSlop;
const delayLongPress = a0.delayLongPress;
const delayPressIn = a0.delayPressIn;
const delayPressOut = a0.delayPressOut;
const delayPressOut2 = delayPressOut;
const pressRetentionOffset = a0.pressRetentionOffset;
const touchSoundDisabled = a0.touchSoundDisabled;
const onBlur = a0.onBlur;
const onFocus = a0.onFocus;
const onLongPress = a0.onLongPress;
let onPress = a0.onPress;
const onPressIn = a0.onPressIn;
const onPressOut = a0.onPressOut;
let items3 = [rejectResponderTermination, disabled, property];
reducibleJoin2: while (true) {
if (accessibilityState == null) {
disabled = value;
break reducibleJoin2;
}
disabled = accessibilityState.disabled;
break reducibleJoin2;
}
items3[3] = disabled;
items3[4] = hitSlop;
items3[5] = delayLongPress;
items3[6] = delayPressIn;
items3[7] = delayPressOut;
items3[8] = pressRetentionOffset;
items3[9] = touchSoundDisabled;
items3[10] = onBlur;
items3[11] = onFocus;
items3[12] = onLongPress;
items3[13] = onPress;
items3[14] = onPressIn;
items3[15] = onPressOut;
const value4 = (Module00292)(useMemo(_fun5940, items3));
const Children = hitSlop2.Children;
const value5 = Children.only(a0.children);
items3 = [value5.props.children];
property = a0['aria-live'];
const object = {};
const property2 = a0['aria-busy'];
reducibleJoin6: while (true) {
if (property2 != null) {
r2 = property2;
break reducibleJoin6;
}
accessibilityState = a0.accessibilityState;
reducibleJoin5: while (true) {
if (accessibilityState == null) {
busy = value;
break reducibleJoin5;
}
busy = accessibilityState.busy;
break reducibleJoin5;
}
r2 = busy;
break reducibleJoin6;
}
object.busy = r2;
const property3 = a0['aria-checked'];
reducibleJoin10: while (true) {
if (property3 != null) {
r2 = property3;
break reducibleJoin10;
}
accessibilityState = a0.accessibilityState;
reducibleJoin9: while (true) {
if (accessibilityState == null) {
checked = value;
break reducibleJoin9;
}
checked = accessibilityState.checked;
break reducibleJoin9;
}
r2 = checked;
break reducibleJoin10;
}
object.checked = r2;
const property4 = a0['aria-disabled'];
reducibleJoin14: while (true) {
if (property4 != null) {
r2 = property4;
break reducibleJoin14;
}
accessibilityState = a0.accessibilityState;
reducibleJoin13: while (true) {
if (accessibilityState == null) {
disabled = value;
break reducibleJoin13;
}
disabled = accessibilityState.disabled;
break reducibleJoin13;
}
r2 = disabled;
break reducibleJoin14;
}
object.disabled = r2;
const property5 = a0['aria-expanded'];
reducibleJoin18: while (true) {
if (property5 != null) {
r2 = property5;
break reducibleJoin18;
}
accessibilityState = a0.accessibilityState;
reducibleJoin17: while (true) {
if (accessibilityState == null) {
expanded = value;
break reducibleJoin17;
}
expanded = accessibilityState.expanded;
break reducibleJoin17;
}
r2 = expanded;
break reducibleJoin18;
}
object.expanded = r2;
const property6 = a0['aria-selected'];
reducibleJoin22: while (true) {
if (property6 != null) {
r2 = property6;
break reducibleJoin22;
}
accessibilityState = a0.accessibilityState;
reducibleJoin21: while (true) {
if (accessibilityState == null) {
selected = value;
break reducibleJoin21;
}
selected = accessibilityState.selected;
break reducibleJoin21;
}
r2 = selected;
break reducibleJoin22;
}
object.selected = r2;
value4.onBlur;
value4.onFocus;
const value6 = accessibilityState2(value4, property8);
const Object = global.Object;
const assign = Object.assign;
const object2 = {};
object2.accessible = a0.accessible !== false;
disabled = a0.disabled;
reducibleJoin24: while (true) {
if (disabled == null) {
r2 = object;
break reducibleJoin24;
}
Object2 = global.Object;
assign2 = Object2.assign;
disabled = a0.disabled;
value7 = Reflect.apply(assign2, Object2, [{}, object, {disabled: disabled}]);
r2 = value7;
break reducibleJoin24;
}
object2.accessibilityState = r2;
const value8 = a0.focusable !== false;
reducibleJoin26: while (true) {
if (value8) {
onPress = a0.onPress;
value9 = value !== onPress;
r2 = value9;
break reducibleJoin26;
}
r2 = value8;
break reducibleJoin26;
}
reducibleJoin28: while (true) {
if (r2) {
disabled = a0.disabled;
value10 = !disabled;
r2 = value10;
break reducibleJoin28;
}
break reducibleJoin28;
}
object2.focusable = r2;
const property7 = a0['aria-hidden'];
reducibleJoin30: while (true) {
if (property7 != null) {
r2 = property7;
break reducibleJoin30;
}
accessibilityElementsHidden = a0.accessibilityElementsHidden;
r2 = accessibilityElementsHidden;
break reducibleJoin30;
}
object2.accessibilityElementsHidden = r2;
reducibleJoin32: while (true) {
if (a0['aria-hidden'] === true) {
importantForAccessibility = 'no-hide-descendants';
break reducibleJoin32;
}
importantForAccessibility = a0.importantForAccessibility;
break reducibleJoin32;
}
object2.importantForAccessibility = importantForAccessibility;
reducibleJoin36: while (true) {
if (property === 'off') {
r2 = 'none';
break reducibleJoin36;
}
reducibleJoin35: while (true) {
if (property != null) {
r13 = property;
break reducibleJoin35;
}
accessibilityLiveRegion = a0.accessibilityLiveRegion;
r13 = accessibilityLiveRegion;
break reducibleJoin35;
}
r2 = r13;
break reducibleJoin36;
}
object2.accessibilityLiveRegion = r2;
const id = a0.id;
reducibleJoin38: while (true) {
if (id != null) {
r2 = id;
break reducibleJoin38;
}
nativeID = a0.nativeID;
r2 = nativeID;
break reducibleJoin38;
}
object2.nativeID = r2;
const value13 = Reflect.apply(assign, Object, [{}, value6, object2]);
const iterator = delayPressOut2[Symbol.iterator]();
const iterator2 = iterator.next;
let r4 = iterator;
let item2 = Reflect.apply(iterator2, r4, []);
let item = item2.value;
item2 = item2.done ? undefined : r4;
reducibleJoin40: while (true) {
if (item2 === value) {
cloneElementBinding = cloneElement;
apply = cloneElementBinding.apply;
items2 = [value5, value13];
return Reflect.apply(apply, cloneElementBinding, [value, items2.concat(items3)]);
}
break reducibleJoin40;
}
reducibleLoop40: while (true) {
try {
property = a0[item];
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
value14 = value === property;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
reducibleJoin39: while (true) {
if (value14) {
r4 = item2;
break reducibleJoin39;
}
try {
property = a0[item];
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
value13[item] = property;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
r4 = item2;
break reducibleJoin39;
}
item2 = Reflect.apply(iterator2, r4, []);
item = item2.value;
item2 = item2.done ? undefined : r4;
if (item2 === value) {
break reducibleLoop40;
}
continue reducibleLoop40;
}
cloneElementBinding = cloneElement;
apply = cloneElementBinding.apply;
items2 = [value5, value13];
return Reflect.apply(apply, cloneElementBinding, [value, items2.concat(items3)]);
function _fun5940() { // fn#5940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:464:999, offset: 0x00ceafb5, size: 189 bytes, params: 1, frame: 4
return {cancelable: !rejectResponderTermination,
disabled: disabled !== null ? disabled : env0_2 ?? accessibilityState?.disabled, hitSlop: hitSlop,
delayLongPress: delayLongPress, delayPressIn: delayPressIn, delayPressOut: delayPressOut, minPressDuration: 0,
pressRectOffset: pressRetentionOffset, android_disableSound: touchSoundDisabled, onBlur: onBlur,
onFocus: onFocus, onLongPress: onLongPress, onPress: onPress, onPressIn: onPressIn, onPressOut: onPressOut};
}
}
}
global.__d(_fun5938, 423, [29, 31, 33, 292]) /* metro module 423, dependencies: [29, 31, 33, 292] */;