189 lines
7.6 KiB
JavaScript
189 lines
7.6 KiB
JavaScript
/* Metro module 4411; source: unknown; dependencies: [] */
|
|
function _fun37657(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#37657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4583:6, offset: 0x010ab9de, size: 22 bytes, params: 8, frame: 9
|
|
_fun37658();
|
|
function _fun37658() { // fn#37658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4589:2, offset: 0x010ab9f4, size: 187 bytes, params: 1, frame: 17
|
|
const closure = function() {
|
|
var r2;
|
|
var r4;
|
|
var r7;
|
|
var r0;
|
|
var value = 0;
|
|
var value2 = '';
|
|
if (value < arguments.length) {
|
|
r2 = value2;
|
|
r4 = value;
|
|
while (true) {
|
|
value = arguments[r4];
|
|
if (value) {
|
|
value = appendClass(r2, parseValue_37660(value));
|
|
r7 = value;
|
|
} else {
|
|
r7 = r2;
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (value < arguments.length) {
|
|
r2 = r7;
|
|
r4 = value;
|
|
continue;
|
|
}
|
|
r0 = r7;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
};
|
|
const appendClass = function(a0, a1) {
|
|
var r1;
|
|
var r0;
|
|
var value = a0;
|
|
if (a1) {
|
|
if (value) {
|
|
value = value + ' ' + a1;
|
|
r1 = value;
|
|
} else {
|
|
value += a1;
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const hasOwnProperty = ({}).hasOwnProperty;
|
|
if (hasOwnProperty === undefined) {
|
|
if (typeof global.define !== 'function') {
|
|
global.window.classNames = closure;
|
|
} else if (typeof global.define.amd !== 'object') {
|
|
global.window.classNames = closure;
|
|
} else if (global.define.amd) {
|
|
global.define('classnames', [], function() {
|
|
return classNames;
|
|
});
|
|
} else {
|
|
global.window.classNames = closure;
|
|
}
|
|
} else if (hasOwnProperty.exports) {
|
|
closure.default = closure;
|
|
hasOwnProperty.exports = closure;
|
|
} else if (typeof global.define !== 'function') {
|
|
global.window.classNames = closure;
|
|
} else if (typeof global.define.amd !== 'object') {
|
|
global.window.classNames = closure;
|
|
} else if (global.define.amd) {
|
|
global.define('classnames', [], _fun37662);
|
|
} else {
|
|
global.window.classNames = closure;
|
|
}
|
|
function parseValue_37660(a0) { // fn#37660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4589:177, offset: 0x010abaf8, size: 245 bytes, params: 2, frame: 23
|
|
var r2;
|
|
var r7;
|
|
var r10;
|
|
var r1;
|
|
var Array;
|
|
var isArray;
|
|
var toString;
|
|
var Object;
|
|
var prototype;
|
|
var toString2;
|
|
var toString3;
|
|
var includes;
|
|
var value2;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnPropertyBinding;
|
|
var call;
|
|
var property;
|
|
var classNamesBinding;
|
|
let value = typeof a0;
|
|
if (value !== 'string') {
|
|
reducibleJoin16: while (true) {
|
|
if (value !== 'number') {
|
|
if (value !== 'object') {
|
|
return '';
|
|
}
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [a0])) {
|
|
value = environment;
|
|
classNamesBinding = classNames;
|
|
return classNamesBinding.apply(null, a0);
|
|
}
|
|
toString = a0.toString;
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
toString2 = prototype.toString;
|
|
if (toString !== toString2) {
|
|
toString = a0.toString;
|
|
toString3 = toString.toString;
|
|
value = Reflect.apply(toString3, toString, []);
|
|
includes = value.includes;
|
|
reducibleJoin7: while (true) {
|
|
if (!Reflect.apply(includes, value, ['[native code]'])) {
|
|
return a0.toString();
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
}
|
|
value = '';
|
|
value2 = environment;
|
|
properties = Object.keys(a0);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties === undefined) {
|
|
r1 = value;
|
|
} else {
|
|
r2 = value;
|
|
r7 = properties2;
|
|
reducibleLoop8: while (true) {
|
|
propertyName = properties[r7];
|
|
propertyName2 = r7 + 1;
|
|
if (propertyName === undefined) {
|
|
r1 = r2;
|
|
break reducibleLoop8;
|
|
}
|
|
hasOwnPropertyBinding = hasOwnProperty;
|
|
call = hasOwnPropertyBinding.call;
|
|
value = Reflect.apply(call, hasOwnPropertyBinding, [a0, propertyName]);
|
|
reducibleJoin11: while (true) {
|
|
if (value) {
|
|
property = a0[propertyName];
|
|
r10 = property;
|
|
break reducibleJoin11;
|
|
}
|
|
r10 = value;
|
|
break reducibleJoin11;
|
|
}
|
|
if (r10) {
|
|
value = appendClass(r2, propertyName);
|
|
r2 = value;
|
|
r7 = propertyName2;
|
|
continue reducibleLoop8;
|
|
}
|
|
r7 = propertyName2;
|
|
continue reducibleLoop8;
|
|
}
|
|
}
|
|
return r1;
|
|
}
|
|
break reducibleJoin16;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function _fun37662() { // fn#37662, offset: 0x00c38205, size: 9 bytes, params: 1, frame: 1
|
|
return classNames;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun37657, 4411, []) /* metro module 4411 */;
|