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

38 lines
2.1 KiB
JavaScript

/* Metro module 4780; source: unknown; dependencies: [4748] */
import Module04748 from './module-04748.js'; /* Metro dependency 4748 */
function _fun41318(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4958:6, offset: 0x0111bbf4, size: 114 bytes, params: 8, frame: 16
const getAlpha = function(a0) {
var value = 16 & a0;
return {value: value ? 1 : 0, description: value ? 'Yes' : 'No'};
};
const getAnimation = function(a0) {
var value = 2 & a0;
return {value: value ? 1 : 0, description: value ? 'Yes' : 'No'};
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = {read: read_41322};
function getThreeByteValue(a0, a1) { // fn#41321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4958:458, offset: 0x0111bcc0, size: 150 bytes, params: 3, frame: 20
let value = importDefault(4748) /* metro dependency 4748 */;
value = value.getByteAt(a0, a1);
value += 256 * (importDefault(4748) /* metro dependency 4748 */).getByteAt(a0, a1 + 1);
value = value + 65536 * (importDefault(4748) /* metro dependency 4748 */).getByteAt(a0, a1 + 2) + 1;
return {value: value, description: value + 'px'};
}
function read_41322(a0, a1) { // fn#41322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4958:104, offset: 0x0111bd56, size: 128 bytes, params: 3, frame: 16
const object = {};
const byteAt = (Module04748).getByteAt(a0, a1);
object.Alpha = getAlpha(byteAt);
object.Animation = getAnimation(byteAt);
const getThreeByteValueBinding = getThreeByteValue;
object.ImageWidth = getThreeByteValueBinding(a0, a1 + env0_2);
object.ImageHeight = getThreeByteValueBinding(a0, a1 + env0_3);
return object;
}
}
global.__d(_fun41318, 4780, [4748]) /* metro module 4780, dependencies: [4748] */;