Files
2026-07-28 01:06:53 +03:00

249 lines
10 KiB
JavaScript

/* Metro module 7782; source: unknown; dependencies: [31, 27, 7762, 7750] */
import React from './module-00031-React.js'; /* Metro dependency 31 */
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun62261(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:6, offset: 0x01b5b05e, size: 221 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const processColor = (ReactNativeModule).processColor;
const env0_3 = RegExp('\\s+', '');
object = {type: 0, payload: processColor('black')};
exports.default = extractFeFlood;
exports.extractFilter = function(a0) {
return {x: a0.x, y: a0.y, width: a0.width, height: a0.height, result: a0.result};
};
exports.extractIn = function(a0) {
return a0.in ? {in1: a0.in} : {};
};
exports.extractFeBlend = function(a0) {
var object = {};
if (a0.in2) {
object.in2 = a0.in2;
}
if (a0.mode) {
object.mode = a0.mode;
}
return object;
};
exports.extractFeColorMatrix = extractFeColorMatrix;
exports.extractFeComposite = function(a0) {
var env0_0 = a0;
var object = {};
object.in1 = a0.in || '';
object.in2 = a0.in2 || '';
object.operator1 = a0.operator || 'over';
var env0_1 = object;
['k1', 'k2', 'k3', 'k4'].forEach(_fun62270);
return object;
};
exports.extractFeGaussianBlur = extractFeGaussianBlur;
exports.extractFeMerge = extractFeMerge;
function extractFeFlood({floodColor, floodOpacity}) { // fn#62262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:179, offset: 0x01b5b13b, size: 124 bytes, params: 2, frame: 16
const object = {};
object.floodColor = floodColor == null ? env0_4 : floodColor || typeof floodColor === 'number' ? (importDefault(7762) /* metro dependency 7762 */)(floodColor) : env0_4;
if (floodOpacity != null) {
object.floodOpacity = (importDefault(7750) /* metro dependency 7750 */)(floodOpacity);
}
return object;
}
function extractFeColorMatrix(a0) { // fn#62266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:656, offset: 0x01b5b23e, size: 230 bytes, params: 2, frame: 16
var Array;
var isArray;
var value;
const object = {};
let values = a0.values;
if (values !== undefined) {
Array = global.Array;
isArray = Array.isArray;
values = a0.values;
value = Reflect.apply(isArray, Array, [values]);
values = a0.values;
if (value) {
object.values = values.map(function(a0) {
var r0;
var value = a0;
if (typeof value === 'number') {
r0 = value;
} else {
value = (0, global.parseFloat)(value);
r0 = value;
}
return r0;
});
} else if (typeof values === 'number') {
object.values = [a0.values];
} else if (typeof a0.values === 'string') {
value = a0.values.split(env0_3);
value = value.map(global.parseFloat);
object.values = value.filter(_fun62268);
} else {
global.console.warn('Invalid value for FeColorMatrix `values` prop');
}
}
if (a0.type) {
object.type = a0.type;
}
return object;
}
function extractFeComposite(a0) { // fn#62269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:1093, offset: 0x01b5b346, size: 96 bytes, params: 2, frame: 13
const env0_0 = a0;
const object = {};
object.in1 = a0.in || '';
let in2 = a0.in2;
in2 = !in2 ? '' : in2;
object.in2 = in2;
let operator = a0.operator;
operator = !operator ? 'over' : operator;
object.operator1 = operator;
['k1', 'k2', 'k3', 'k4'].forEach(_fun62270);
return object;
function _fun62270(a0) { // fn#62270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:1225, offset: 0x01b5b3a6, size: 56 bytes, params: 2, frame: 13
if (env0_0[a0] !== undefined) {
env0_1[a0] = global.Number(env0_0[a0]) || 0;
}
}
}
function extractFeGaussianBlur(a0) { // fn#62271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:1305, offset: 0x01b5b3de, size: 392 bytes, params: 2, frame: 17
var r5;
var r4;
var r3;
var value;
var Number;
var value2;
const object = {};
const Array = global.Array;
const isArray = Array.isArray;
let stdDeviation = a0.stdDeviation;
if (Reflect.apply(isArray, Array, [stdDeviation])) {
Number = global.Number;
stdDeviation = a0.stdDeviation;
value = 0;
object.stdDeviationX = Number(stdDeviation[value]) || value;
Number = global.Number;
stdDeviation = a0.stdDeviation;
object.stdDeviationY = Number(stdDeviation[1]) || value;
} else {
stdDeviation = a0.stdDeviation;
if (typeof stdDeviation !== 'string') {
stdDeviation = a0.stdDeviation;
value = typeof stdDeviation === 'number';
if (value) {
r4 = value;
} else {
stdDeviation = a0.stdDeviation;
value = typeof stdDeviation === 'string';
if (value) {
stdDeviation = a0.stdDeviation;
r5 = !stdDeviation.match(env0_3);
} else {
r5 = value;
}
r4 = r5;
}
if (r4) {
Number = global.Number;
stdDeviation = a0.stdDeviation;
value = Number(stdDeviation);
r4 = value || 0;
object.stdDeviationX = r4;
Number = global.Number;
stdDeviation = a0.stdDeviation;
value = Number(stdDeviation);
r4 = value || 0;
object.stdDeviationY = r4;
}
} else {
stdDeviation = a0.stdDeviation;
if (stdDeviation.match(env0_3)) {
value = a0.stdDeviation.split(env0_3);
Number = global.Number;
value2 = 0;
r3 = Number(value[value2]) || value2;
object.stdDeviationX = r3;
Number = global.Number;
value = Number(value[1]);
r3 = value || value2;
object.stdDeviationY = r3;
} else {
stdDeviation = a0.stdDeviation;
value = typeof stdDeviation === 'number';
if (value) {
r4 = value;
} else {
stdDeviation = a0.stdDeviation;
value = typeof stdDeviation === 'string';
if (value) {
stdDeviation = a0.stdDeviation;
r5 = !stdDeviation.match(env0_3);
} else {
r5 = value;
}
r4 = r5;
}
if (r4) {
Number = global.Number;
stdDeviation = a0.stdDeviation;
value = Number(stdDeviation);
r4 = value || 0;
object.stdDeviationX = r4;
Number = global.Number;
stdDeviation = a0.stdDeviation;
value = Number(stdDeviation);
r4 = value || 0;
object.stdDeviationY = r4;
}
}
}
}
if (a0.edgeMode) {
object.edgeMode = a0.edgeMode;
}
return object;
}
function extractFeMerge(a0, a1) { // fn#62272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:1878, offset: 0x01b5b566, size: 129 bytes, params: 3, frame: 17
var r2;
var r6;
var props;
var property;
var push;
const env0_0 = a1;
const items2 = [];
const r4 = a0.children ? React.Children.map(a0.children, _fun62273) : [];
const length = r4.length;
let value = 0;
if (value < length) {
r2 = value;
while (true) {
props = r4[r2].props;
property = props.in;
push = items2.push;
r6 = property || '';
Reflect.apply(push, items2, [r6]);
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value < length) {
r2 = value;
continue;
}
break;
}
}
return {nodes: items2};
function _fun62273(a0) { // fn#62273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:1960, offset: 0x01b5b5e7, size: 37 bytes, params: 2, frame: 13
return env1_2.cloneElement(a0, {parent: require});
}
}
}
function _fun62268(a0) { // fn#62268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7960:951, offset: 0x00e3c582, size: 23 bytes, params: 2, frame: 11
return !global.isNaN(a0);
}
global.__d(_fun62261, 7782, [31, 27, 7762, 7750]) /* metro module 7782, dependencies: [31, 27, 7762, 7750] */;