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

117 lines
6.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Metro module 4754; source: unknown; dependencies: [] */
function _fun41023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4932:6, offset: 0x011132e7, size: 269 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = {ApertureValue: function(a0) {
var Math = global.Math;
var Math2 = global.Math;
var value = Math2.sqrt(2);
value = Math.pow(value, a0[0] / a0[1]);
return value.toFixed(2);
}, ColorSpace: function(a0) {
return a0 === 1 ? 'sRGB' : a0 !== 65535 ? 'Unknown' : 'Uncalibrated';
}, ComponentsConfiguration: function(a0) {
return a0.map(_fun41027).join('');
}, Contrast: function(a0) {
return a0 === 0 ? 'Normal' : a0 === 1 ? 'Soft' : a0 !== 2 ? 'Unknown' : 'Hard';
}, CustomRendered: function(a0) {
return a0 === 0 ? 'Normal process' : a0 !== 1 ? 'Unknown' : 'Custom process';
}, ExposureMode: function(a0) {
return a0 === 0 ? 'Auto exposure' : a0 === 1 ? 'Manual exposure' : a0 !== 2 ? 'Unknown' : 'Auto bracket';
}, ExposureProgram: ExposureProgram, ExposureTime: ExposureTime, FNumber: function(a0) {
var Number = global.Number;
var value = Number(a0[0] / a0[1]);
value = value.toFixed(1);
return 'f/' + value;
}, FocalLength: function(a0) {
return a0[0] / a0[1] + ' mm';
}, FocalPlaneResolutionUnit: function(a0) {
return a0 === 2 ? 'inches' : a0 === 3 ? 'centimeters' : a0 !== 4 ? 'Unknown' : 'millimeters';
}, LightSource: LightSource, MeteringMode: function(a0) {
return a0 === 1 ? 'Average' : a0 === 2 ? 'CenterWeightedAverage' : a0 === 3 ? 'Spot' : a0 === 4 ? 'MultiSpot' : a0 === 5 ? 'Pattern' : a0 === 6 ? 'Partial' : a0 !== 255 ? 'Unknown' : 'Other';
}, ResolutionUnit: function(a0) {
return a0 === 2 ? 'inches' : a0 !== 3 ? 'Unknown' : 'centimeters';
}, Saturation: function(a0) {
return a0 === 0 ? 'Normal' : a0 === 1 ? 'Low saturation' : a0 !== 2 ? 'Unknown' : 'High saturation';
}, FocalLengthIn35mmFilm: function(a0) {
return a0 === 0 ? 'Unknown' : a0 + ' mm';
}, SceneCaptureType: function(a0) {
return a0 === 0 ? 'Standard' : a0 === 1 ? 'Landscape' : a0 === 2 ? 'Portrait' : a0 !== 3 ? 'Unknown' : 'Night scene';
}, Sharpness: function(a0) {
return a0 === 0 ? 'Normal' : a0 === 1 ? 'Soft' : a0 !== 2 ? 'Unknown' : 'Hard';
}, ShutterSpeedValue: ShutterSpeedValue, WhiteBalance: function(a0) {
return a0 === 0 ? 'Auto white balance' : a0 !== 1 ? 'Unknown' : 'Manual white balance';
}, XResolution: function(a0) {
var Math = global.Math;
return String(Math.round(a0[0] / a0[1]));
}, YResolution: function(a0) {
var Math = global.Math;
return String(Math.round(a0[0] / a0[1]));
}};
function ComponentsConfiguration(a0) { // fn#41026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4932:305, offset: 0x01113464, size: 36 bytes, params: 2, frame: 11
return a0.map(function(a0) {
return a0 === 49 ? 'Y' : a0 === 50 ? 'Cb' : a0 === 51 ? 'Cr' : a0 === 52 ? 'R' : a0 === 53 ? 'G' : a0 !== 54 ? undefined : 'B';
}).join('');
}
}
function _fun41027(a0) { // fn#41027, offset: 0x01113488, size: 92 bytes, params: 2, frame: 8
return a0 === 49 ? 'Y' : a0 === 50 ? 'Cb' : a0 === 51 ? 'Cr' : a0 === 52 ? 'R' : a0 === 53 ? 'G' : a0 !== 54 ? undefined : 'B';
}
function ExposureProgram(a0) { // fn#41031, offset: 0x01113573, size: 169 bytes, params: 2, frame: 12
return a0 === 0 ? 'Undefined' : a0 === 1 ? 'Manual' : a0 === 2 ? 'Normal program' : a0 === 3 ? 'Aperture priority' : a0 === 4 ? 'Shutter priority' : a0 === 5 ? 'Creative program' : a0 === 6 ? 'Action program' : a0 === 7 ? 'Portrait mode' : a0 === 8 ? 'Landscape mode' : a0 !== 9 ? 'Unknown' : 'Bulb';
}
function ExposureTime(a0) { // fn#41032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4932:1068, offset: 0x0111361c, size: 178 bytes, params: 2, frame: 17
var r3;
var r0;
var value;
var Math;
var Number;
if (a0[0] / a0[1] > 0.25) {
value = a0[0] / a0[1];
Number = global.Number;
if (Number.isInteger(value)) {
value = String(value);
r0 = value;
} else {
value = value.toFixed(1);
r0 = value;
}
return r0;
}
if (a0[0] !== 0) {
Math = global.Math;
value = Math.round(a0[1] / a0[0]);
value = '1/' + value;
r3 = value;
} else {
r3 = '0/' + a0[1];
}
return r3;
}
function LightSource(a0) { // fn#41036, offset: 0x0111376a, size: 362 bytes, params: 2, frame: 22
return a0 === 1 ? 'Daylight' : a0 === 2 ? 'Fluorescent' : a0 === 3 ? 'Tungsten (incandescent light)' : a0 === 4 ? 'Flash' : a0 === 9 ? 'Fine weather' : a0 === 10 ? 'Cloudy weather' : a0 === 11 ? 'Shade' : a0 === 12 ? 'Daylight fluorescent (D 5700 – 7100K)' : a0 === 13 ? 'Day white fluorescent (N 4600 – 5400K)' : a0 === 14 ? 'Cool white fluorescent (W 3900 – 4500K)' : a0 === 15 ? 'White fluorescent (WW 3200 – 3700K)' : a0 === 17 ? 'Standard light A' : a0 === 18 ? 'Standard light B' : a0 === 19 ? 'Standard light C' : a0 === 20 ? 'D55' : a0 === 21 ? 'D65' : a0 === 22 ? 'D75' : a0 === 23 ? 'D50' : a0 === 24 ? 'ISO studio tungsten' : a0 !== 255 ? 'Unknown' : 'Other light source';
}
function ShutterSpeedValue(a0) { // fn#41043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4932:2807, offset: 0x01113a01, size: 129 bytes, params: 2, frame: 15
var r0;
const Math = global.Math;
let value = Math.pow(2, a0[0] / a0[1]);
if (value <= 1) {
value = global.Math.round(1 / value);
value = '' + value;
r0 = value;
} else {
value = global.Math.round(value);
value = '1/' + value;
r0 = value;
}
return r0;
}
global.__d(_fun41023, 4754, []) /* metro module 4754 */;