100 lines
4.4 KiB
React
100 lines
4.4 KiB
React
/* Metro module 211; source: unknown; dependencies: [57, 6, 7] */
|
|
function _fun2948(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:236:6, offset: 0x00c8d129, size: 109 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_2 = importDefault(7) /* metro dependency 7 */;
|
|
exports.default = _fun2949();
|
|
}
|
|
|
|
function _fun2949() { // fn#2949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:236:132, offset: 0x00c8d196, size: 101 bytes, params: 1, frame: 15
|
|
return env0_2(FormData, [{key: 'append', value: function(a0, a1) {
|
|
this._parts.push([a0, a1]);
|
|
}}, {key: 'getAll', value: function(a0) {
|
|
var env0_0 = a0;
|
|
return this._parts.filter(_fun2953).map(_fun2954);
|
|
}}, {key: 'getParts', value: function() {
|
|
return this._parts.map(_fun2956);
|
|
}}]);
|
|
}
|
|
|
|
function FormData() { // fn#2950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:236:153, offset: 0x00c8d1fb, size: 37 bytes, params: 1, frame: 13
|
|
env1_1(this, FormData);
|
|
this._parts = [];
|
|
}
|
|
|
|
function value_2952(a0) { // fn#2952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:236:295, offset: 0x00c8d249, size: 50 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
return this._parts.filter(_fun2953).map(_fun2954);
|
|
}
|
|
|
|
function value_2955() { // fn#2955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:236:438, offset: 0x00c8d2c1, size: 28 bytes, params: 1, frame: 11
|
|
return this._parts.map(_fun2956);
|
|
}
|
|
|
|
function _fun2953(a0) { // fn#2953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:236:341, offset: 0x00c8d27b, size: 40 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
return env2_0(a0, 1)[0] === env0_0;
|
|
}
|
|
|
|
function _fun2954(a0) { // fn#2954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:236:382, offset: 0x00c8d2a3, size: 30 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
return env2_0(a0, 2)[1];
|
|
}
|
|
|
|
function _fun2956(a0) { // fn#2956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:236:482, offset: 0x00c8d2dd, size: 294 bytes, params: 2, frame: 23
|
|
var r0;
|
|
var Array;
|
|
var name;
|
|
var property3;
|
|
var Object;
|
|
var object2;
|
|
let value = environment.__proto__.__proto__;
|
|
value = env2_0(a0, 2);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
const object4 = {};
|
|
object4['content-disposition'] = 'form-data; name="' + property + '"';
|
|
if (typeof property2 !== 'object') {
|
|
object2 = {};
|
|
object2.string = global.String(property2);
|
|
object2.headers = object4;
|
|
object2.fieldName = property;
|
|
r0 = object2;
|
|
} else {
|
|
Array = global.Array;
|
|
if (Array.isArray(property2)) {
|
|
object2 = {};
|
|
object2.string = global.String(property2);
|
|
object2.headers = object4;
|
|
object2.fieldName = property;
|
|
r0 = object2;
|
|
} else if (property2) {
|
|
name = property2.name;
|
|
if (typeof name === 'string') {
|
|
property3 = object4['content-disposition'];
|
|
name = property2.name;
|
|
object4['content-disposition'] = property3 + ('; filename="' + global.encodeURIComponent(name.replace(RegExp('\\/',
|
|
|
|
|
|
|
|
'g'), '_')) + '"');
|
|
}
|
|
if (typeof property2.type === 'string') {
|
|
object4['content-type'] = property2.type;
|
|
}
|
|
Object = global.Object;
|
|
r0 = Object.assign({}, property2, {headers: object4, fieldName: property});
|
|
} else {
|
|
object2 = {};
|
|
object2.string = global.String(property2);
|
|
object2.headers = object4;
|
|
object2.fieldName = property;
|
|
r0 = object2;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|