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

209 lines
11 KiB
React

/* Metro module 112; source: unknown; dependencies: [29, 113, 31, 33, 114, 79, 115] */
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Module00113 from './module-00113.js'; /* Metro dependency 113 */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module00079Module from './module-00079.js'; /* Metro dependency 79 */
function _fun1611(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:137:6, offset: 0x00c6361c, size: 208 bytes, params: 8, frame: 20
const env0_3 = ['accessibilityState', 'accessibilityValue', 'aria-busy', 'aria-checked', 'aria-disabled',
'aria-expanded', 'aria-hidden', 'aria-label', 'aria-labelledby', 'aria-live', 'aria-selected', 'aria-valuemax',
'aria-valuemin', 'aria-valuenow', 'aria-valuetext', 'id', 'tabIndex'];
const env0_4 = ['accessibilityElementsHidden', 'accessibilityLabel', 'accessibilityLabelledBy',
'accessibilityLiveRegion', 'accessibilityState', 'accessibilityValue', 'aria-busy', 'aria-checked',
'aria-disabled', 'aria-expanded', 'aria-hidden', 'aria-label', 'aria-labelledby', 'aria-live', 'aria-selected',
'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext', 'focusable', 'id',
'importantForAccessibility', 'nativeID', 'tabIndex'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
value = value.forwardRef(View_withRef);
value.displayName = 'View';
exports.default = value;
function View_withRef(a0, a1) { // fn#1612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:137:846, offset: 0x00c636ec, size: 1472 bytes, params: 3, frame: 46
var r6;
var r17;
var r15;
var r20;
var r4;
var r25;
var accessibilityElementsHidden;
var accessibilityLabel;
var accessibilityLabelledBy;
var accessibilityLiveRegion;
var accessibilityState;
var accessibilityValue;
var property;
var property2;
var property3;
var property4;
var property5;
var property6;
var property7;
var property8;
var property9;
var property10;
var property11;
var property12;
var property13;
var focusable;
var id;
var importantForAccessibility;
var nativeID;
var tabIndex;
var value5;
var object;
var defaultImport;
var property14;
var property15;
var property16;
var property17;
var property18;
var property19;
var property20;
var property21;
var property22;
var property23;
var property24;
var property25;
var value11;
let Object = global.Object;
let assign = Object.assign;
const value2 = undefined;
Module00113(a0);
const value3 = Reflect.apply(assign, Object, [{}, a0]);
const value4 = use(importDefault(114) /* metro dependency 114 */);
if (Module00079Module.reduceDefaultPropsInView()) {
accessibilityState = value3.accessibilityState;
accessibilityValue = value3.accessibilityValue;
property = value3['aria-busy'];
property14 = value3['aria-checked'];
property15 = value3['aria-disabled'];
property16 = value3['aria-expanded'];
property17 = value3['aria-hidden'];
property18 = value3['aria-label'];
property19 = value3['aria-labelledby'];
property20 = value3['aria-live'];
property21 = value3['aria-selected'];
property22 = value3['aria-valuemax'];
property23 = value3['aria-valuemin'];
property24 = value3['aria-valuenow'];
property25 = value3['aria-valuetext'];
id = value3.id;
tabIndex = value3.tabIndex;
value11 = ObjectWithoutProperties(value3, env0_3);
r25 = property19 == null ? value2 : property19.split(RegExp('\\s*,\\s*', 'g'));
if (value2 !== r25) {
value11.accessibilityLabelledBy = r25;
}
if (value2 !== property18) {
value11.accessibilityLabel = property18;
}
if (value2 !== property20) {
value11.accessibilityLiveRegion = property20 === 'off' ? 'none' : property20;
}
if (value2 !== property17) {
value11.accessibilityElementsHidden = property17;
if (property17 === true) {
value11.importantForAccessibility = 'no-hide-descendants';
}
}
if (value2 !== id) {
value11.nativeID = id;
}
if (value2 !== tabIndex) {
value11.focusable = !tabIndex;
}
r6 = accessibilityState == null && property == null;
r6 = r6 && property14 == null;
r6 = r6 && property15 == null;
r6 = r6 && property16 == null;
r6 = r6 && property21 == null;
if (!r6) {
value11.accessibilityState = {busy: property ?? (accessibilityState == null ? value2 : accessibilityState.busy),
checked: property14 ?? (accessibilityState == null ? value2 : accessibilityState.checked),
disabled: property15 ?? (accessibilityState == null ? value2 : accessibilityState.disabled),
expanded: property16 ?? (accessibilityState == null ? value2 : accessibilityState.expanded),
selected: property21 ?? (accessibilityState == null ? value2 : accessibilityState.selected)};
}
r6 = accessibilityValue == null && property22 == null;
r6 = r6 && property23 == null;
r6 = r6 && property24 == null;
r6 = r6 && property25 == null;
if (!r6) {
value11.accessibilityValue = {max: property22 ?? (accessibilityValue == null ? value2 : accessibilityValue.max),
min: property23 ?? (accessibilityValue == null ? value2 : accessibilityValue.min),
now: property24 ?? (accessibilityValue == null ? value2 : accessibilityValue.now),
text: property25 ?? (accessibilityValue == null ? value2 : accessibilityValue.text)};
}
r4 = ((Component) => <Component {...a1 == null ? global.Object.assign({}, value11) : global.Object.assign({},
value11, {ref: a1})} />)(importDefault(115) /* metro dependency 115 */);
} else {
accessibilityElementsHidden = value3.accessibilityElementsHidden;
accessibilityLabel = value3.accessibilityLabel;
accessibilityLabelledBy = value3.accessibilityLabelledBy;
accessibilityLiveRegion = value3.accessibilityLiveRegion;
accessibilityState = value3.accessibilityState;
accessibilityValue = value3.accessibilityValue;
property = value3['aria-busy'];
property2 = value3['aria-checked'];
property3 = value3['aria-disabled'];
property4 = value3['aria-expanded'];
property5 = value3['aria-hidden'];
property6 = value3['aria-label'];
property7 = value3['aria-labelledby'];
property8 = value3['aria-live'];
property9 = value3['aria-selected'];
property10 = value3['aria-valuemax'];
property11 = value3['aria-valuemin'];
property12 = value3['aria-valuenow'];
property13 = value3['aria-valuetext'];
focusable = value3.focusable;
id = value3.id;
importantForAccessibility = value3.importantForAccessibility;
nativeID = value3.nativeID;
tabIndex = value3.tabIndex;
value5 = ObjectWithoutProperties(value3, env0_4);
r17 = (property7 == null ? value2 : property7.split(RegExp('\\s*,\\s*', 'g'))) ?? accessibilityLabelledBy;
r20 = accessibilityState != null || property != null || (property2 != null || property3 != null) || (property4 != null || property9 != null) ? {busy: property ?? (accessibilityState == null ? value2 : accessibilityState.busy),
checked: property2 ?? (accessibilityState == null ? value2 : accessibilityState.checked),
disabled: property3 ?? (accessibilityState == null ? value2 : accessibilityState.disabled),
expanded: property4 ?? (accessibilityState == null ? value2 : accessibilityState.expanded),
selected: property9 ?? (accessibilityState == null ? value2 : accessibilityState.selected)} : value2;
r15 = accessibilityValue != null || property10 != null || (property11 != null || property12 != null) || property13 != null ? {max: property10 ?? (accessibilityValue == null ? value2 : accessibilityValue.max),
min: property11 ?? (accessibilityValue == null ? value2 : accessibilityValue.min),
now: property12 ?? (accessibilityValue == null ? value2 : accessibilityValue.now),
text: property13 ?? (accessibilityValue == null ? value2 : accessibilityValue.text)} : value2;
defaultImport = importDefault(115) /* metro dependency 115 */;
Object = global.Object;
assign = Object.assign;
object = {};
object.accessibilityLiveRegion = property8 === 'off' ? 'none' : property8 ?? accessibilityLiveRegion;
object.accessibilityLabel = property6 ?? accessibilityLabel;
object.focusable = value2 === tabIndex ? focusable : !tabIndex;
object.accessibilityState = r20;
object.accessibilityElementsHidden = property5 ?? accessibilityElementsHidden;
object.accessibilityLabelledBy = r17;
object.accessibilityValue = r15;
r15 = property5 === true ? 'no-hide-descendants' : importantForAccessibility;
object.importantForAccessibility = r15;
r4 = id ?? nativeID;
object.nativeID = r4;
object.ref = a1;
r4 = ((Component) => <Component {...Reflect.apply(assign, Object, [{}, value5, object])} />)(defaultImport);
}
if (value4) {
return ((Component) => <Component value={false}>{r4}</Component>)(importDefault(114) /* metro dependency 114 */);
}
return r4;
}
}
global.__d(_fun1611, 112, [29, 113, 31, 33, 114, 79,
115]) /* metro module 112, dependencies: [29, 113, 31, 33, 114, 79, 115] */;