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

50 lines
2.3 KiB
JavaScript

/* Metro module 4756; source: unknown; dependencies: [] */
function _fun41077(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4934:6, offset: 0x01114782, size: 78 bytes, params: 8, frame: 17
const closure = function(a0) {
return a0.map(_fun41079).join('');
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.getStringValue = closure;
exports.getEncodedString = getEncodedString;
exports.getCalculatedGpsValue = function(a0) {
var value = a0[0][0] / a0[0][1];
value += a0[1][0] / a0[1][1] / 60;
return value + a0[2][0] / a0[2][1] / 3600;
};
function getStringValue(a0) { // fn#41078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4934:43, offset: 0x011147d0, size: 36 bytes, params: 2, frame: 11
return a0.map(function(a0) {
var String = global.String;
return String.fromCharCode(a0);
}).join('');
}
function getEncodedString(a0) { // fn#41080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4934:238, offset: 0x011147f4, size: 135 bytes, params: 2, frame: 15
var stringValue;
if (a0.length >= 8) {
stringValue = getStringValue(a0.slice(0, 8));
if (stringValue === 'ASCII\x00\x00\x00') {
return getStringValue(a0.slice(8));
}
if (stringValue === 'JIS\x00\x00\x00\x00\x00') {
return '[JIS encoded text]';
}
if (stringValue === 'UNICODE\x00') {
return '[Unicode encoded text]';
}
if (stringValue === '\x00\x00\x00\x00\x00\x00\x00\x00') {
return '[Undefined encoding]';
}
}
return 'Undefined';
}
}
function _fun41079(a0) { // fn#41079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4934:84, offset: 0x011075bf, size: 24 bytes, params: 2, frame: 11
const String = global.String;
return String.fromCharCode(a0);
}
global.__d(_fun41077, 4756, []) /* metro module 4756 */;