179 lines
9.6 KiB
React
179 lines
9.6 KiB
React
/* Metro module 4769; source: unknown; dependencies: [57, 4754] */
|
|
function _fun41198(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:6, offset: 0x01117f2c, size: 367 bytes, params: 8, frame: 19
|
|
const fraction = function(a0, a1) {
|
|
var r0;
|
|
var value = a1;
|
|
if (isFraction(value)) {
|
|
value = value.split('/');
|
|
value = a0(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const isFraction = function(a0) {
|
|
return RegExp('^-?\\d+\\/-?\\d+$', '').test(a0);
|
|
};
|
|
const closure = calculateGPSValue;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
|
exports.default = {['tiff:Orientation']: tiffOrientation, ['tiff:ResolutionUnit']: tiffResolutionUnit,
|
|
['tiff:XResolution']: function(a0) {
|
|
var fractionBinding = fraction;
|
|
var XResolution = importDefault(dependencyMap[1]).XResolution;
|
|
return fractionBinding(XResolution, a0);
|
|
}, ['tiff:YResolution']: function(a0) {
|
|
var fractionBinding = fraction;
|
|
var YResolution = importDefault(dependencyMap[1]).YResolution;
|
|
return fractionBinding(YResolution, a0);
|
|
}, ['exif:ApertureValue']: function(a0) {
|
|
var fractionBinding = fraction;
|
|
var ApertureValue = importDefault(dependencyMap[1]).ApertureValue;
|
|
return fractionBinding(ApertureValue, a0);
|
|
}, ['exif:GPSLatitude']: closure, ['exif:GPSLongitude']: closure, ['exif:FNumber']: function(a0) {
|
|
var fractionBinding = fraction;
|
|
var FNumber = importDefault(dependencyMap[1]).FNumber;
|
|
return fractionBinding(FNumber, a0);
|
|
}, ['exif:FocalLength']: function(a0) {
|
|
var fractionBinding = fraction;
|
|
var FocalLength = importDefault(dependencyMap[1]).FocalLength;
|
|
return fractionBinding(FocalLength, a0);
|
|
}, ['exif:FocalPlaneResolutionUnit']: exifFocalPlaneResolutionUnit, ['exif:ColorSpace']: exifColorSpace,
|
|
['exif:ComponentsConfiguration']: exifComponentsConfiguration, ['exif:Contrast']: exifContrast,
|
|
['exif:CustomRendered']: exifCustomRendered, ['exif:ExposureMode']: exifExposureMode,
|
|
['exif:ExposureProgram']: exifExposureProgram, ['exif:ExposureTime']: function(a0) {
|
|
var r0;
|
|
var defaultImport;
|
|
var value = a0;
|
|
if (isFraction(value)) {
|
|
defaultImport = importDefault(dependencyMap[1]);
|
|
value = value.split('/');
|
|
value = defaultImport.ExposureTime(value.map(_fun41218));
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}, ['exif:MeteringMode']: exifMeteringMode, ['exif:Saturation']: exifSaturation,
|
|
['exif:SceneCaptureType']: exifSceneCaptureType, ['exif:Sharpness']: exifSharpness,
|
|
['exif:ShutterSpeedValue']: function(a0) {
|
|
var fractionBinding = fraction;
|
|
var ShutterSpeedValue = importDefault(dependencyMap[1]).ShutterSpeedValue;
|
|
return fractionBinding(ShutterSpeedValue, a0);
|
|
}, ['exif:WhiteBalance']: exifWhiteBalance};
|
|
}
|
|
|
|
function calculateGPSValue(a0) { // fn#41201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:2764, offset: 0x011180e7, size: 162 bytes, params: 2, frame: 17
|
|
let value = a0.split(',');
|
|
value = env0_2(value, 2);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
if (property === undefined) {
|
|
return a0;
|
|
}
|
|
if (property2 === undefined) {
|
|
return a0;
|
|
}
|
|
value = global.parseFloat(property);
|
|
const float = global.parseFloat(property2);
|
|
const value3 = property2.charAt(property2.length - 1);
|
|
let Number = global.Number;
|
|
if (Number.isNaN(value)) {
|
|
return a0;
|
|
}
|
|
Number = global.Number;
|
|
if (Number.isNaN(float)) {
|
|
return a0;
|
|
}
|
|
return String(value + float / 60) + value3;
|
|
}
|
|
|
|
function tiffOrientation(a0) { // fn#41202, offset: 0x01118189, size: 160 bytes, params: 2, frame: 10
|
|
const value = a0;
|
|
return value === '1' ? 'Horizontal (normal)' : value === '2' ? 'Mirror horizontal' : value === '3' ? 'Rotate 180' : value === '4' ? 'Mirror vertical' : value === '5' ? 'Mirror horizontal and rotate 270 CW' : value === '6' ? 'Rotate 90 CW' : value === '7' ? 'Mirror horizontal and rotate 90 CW' : value === '8' ? 'Rotate 270 CW' : value;
|
|
}
|
|
|
|
function tiffResolutionUnit(a0) { // fn#41203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:430, offset: 0x01118229, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).ResolutionUnit(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifFocalPlaneResolutionUnit(a0) { // fn#41209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:1044, offset: 0x01118349, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).FocalPlaneResolutionUnit(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifColorSpace(a0) { // fn#41210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:1160, offset: 0x01118383, size: 115 bytes, params: 2, frame: 17
|
|
return (importDefault(4754) /* metro dependency 4754 */).ColorSpace(a0.substring(0,
|
|
2) === '0x' ? global.parseInt(a0.substring(2), 16) : global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifComponentsConfiguration(a0, a1) { // fn#41211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:1358, offset: 0x011183f6, size: 103 bytes, params: 3, frame: 12
|
|
var value;
|
|
const regexp = RegExp('^\\d, \\d, \\d, \\d$', '');
|
|
if (regexp.test(a1)) {
|
|
value = a1.split(', ');
|
|
value = value.map(function(a0) {
|
|
return a0.charCodeAt(0);
|
|
});
|
|
return (importDefault(4754) /* metro dependency 4754 */).ComponentsConfiguration(value);
|
|
}
|
|
return a1;
|
|
}
|
|
|
|
function exifContrast(a0) { // fn#41213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:1562, offset: 0x0111845d, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).Contrast(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifCustomRendered(a0) { // fn#41214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:1650, offset: 0x01118497, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).CustomRendered(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifExposureMode(a0) { // fn#41215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:1748, offset: 0x011184d1, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).ExposureMode(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifExposureProgram(a0) { // fn#41216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:1845, offset: 0x0111850b, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).ExposureProgram(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifExposureTime(a0) { // fn#41217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:1945, offset: 0x01118545, size: 87 bytes, params: 2, frame: 14
|
|
var r0;
|
|
var defaultImport;
|
|
var ExposureTime;
|
|
let value = a0;
|
|
if (isFraction(value)) {
|
|
defaultImport = importDefault(4754) /* metro dependency 4754 */;
|
|
ExposureTime = defaultImport.ExposureTime;
|
|
value = value.split('/');
|
|
value = Reflect.apply(ExposureTime, defaultImport, [value.map(function(a0) {
|
|
return (0, global.parseInt)(a0, 10);
|
|
})]);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function exifMeteringMode(a0) { // fn#41219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:2095, offset: 0x0111859c, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).MeteringMode(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifSaturation(a0) { // fn#41220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:2187, offset: 0x011185d6, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).Saturation(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifSceneCaptureType(a0) { // fn#41221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:2281, offset: 0x01118610, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).SceneCaptureType(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifSharpness(a0) { // fn#41222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:2380, offset: 0x0111864a, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).Sharpness(global.parseInt(a0, 10));
|
|
}
|
|
|
|
function exifWhiteBalance(a0) { // fn#41224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4947:2573, offset: 0x011186b2, size: 58 bytes, params: 2, frame: 15
|
|
return (importDefault(4754) /* metro dependency 4754 */).WhiteBalance(global.parseInt(a0, 10));
|
|
}
|
|
|