31 lines
1.7 KiB
React
31 lines
1.7 KiB
React
/* Metro module 4783; source: unknown; dependencies: [4731] */
|
|
function _fun41334(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4961:6, offset: 0x0111c436, size: 86 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = [6, 7, 99];
|
|
exports.default = {get: get_41335};
|
|
}
|
|
|
|
function get_41335(a0, a1, a2) { // fn#41335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4961:114, offset: 0x0111c48c, size: 225 bytes, params: 4, frame: 16
|
|
var value9;
|
|
var buffer;
|
|
const value = a1;
|
|
let r1 = value && (value.Compression === undefined || env0_2.includes(value.Compression.value)) && value.JPEGInterchangeFormat;
|
|
r1 = r1 && value.JPEGInterchangeFormat.value && value.JPEGInterchangeFormatLength && value.JPEGInterchangeFormatLength.value;
|
|
if (r1) {
|
|
value.type = 'image/jpeg';
|
|
value9 = a2 + value.JPEGInterchangeFormat.value;
|
|
buffer = a0.buffer;
|
|
value.image = buffer.slice(value9, value9 + value.JPEGInterchangeFormatLength.value);
|
|
(require(4731) /* metro dependency 4731 */).deferInit(value, 'base64', _fun41336);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function _fun41336() { // fn#41336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4961:515, offset: 0x0111c56d, size: 46 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return (require(4731) /* metro dependency 4731 */).getBase64Image(this.image);
|
|
}
|
|
|