This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+139
View File
@@ -0,0 +1,139 @@
// Metro module 8569 (f8570).
import Module19 from "react";
import { processColor } from "react-native";
import extractBrush from "./extractBrush";
import extractOpacity from "./extractOpacity";
let c5506_3 = /\s+/;
let c5506_4 = {
type: 0,
payload: processColor("black")
};
export default function extractFeFlood(a0) {
let floodColor2, floodOpacity;
L5: {
L3: {
const floodColor = a0.floodColor;
floodOpacity = a0.floodOpacity;
if (floodColor != null) {
if (!floodColor && typeof floodColor !== "number") {
break L3;
}
floodColor2 = extractBrush(floodColor);
break L5;
}
}
floodColor2 = c5506_4;
}
const r11 = {
floodColor: floodColor2
};
if (floodOpacity != null) {
r11.floodOpacity = extractOpacity(floodOpacity);
}
return r11;
};
export const extractFilter = (a0) => ({
x: a0.x,
y: a0.y,
width: a0.width,
height: a0.height,
result: a0.result
});
export const extractIn = (a0) => a0.in ? {
in1: a0.in
} : {};
export const extractFeBlend = (a0) => {
const r0 = {};
if (a0.in2) {
r0.in2 = a0.in2;
}
if (a0.mode) {
r0.mode = a0.mode;
}
return r0;
};
export const extractFeColorMatrix = (a0) => {
const r1 = {};
if (a0.values !== void 0) {
const isArray = Array.isArray(a0.values);
const values = a0.values;
if (isArray) {
r1.values = values.map((value) => typeof value !== "number" ? parseFloat(value) : value);
} else if (typeof values === "number") {
r1.values = [a0.values];
} else if (typeof a0.values === "string") {
r1.values = a0.values.split(c5506_3).map(parseFloat).filter((item) => !isNaN(item));
} else {
console.warn("Invalid value for FeColorMatrix `values` prop");
}
}
if (a0.type) {
r1.type = a0.type;
}
return r1;
};
export const extractFeComposite = (a0) => {
const r0 = {
in1: a0.in || "",
in2: a0.in2 || "",
operator1: a0.operator || "over"
};
let c16639_1 = r0;
["k1", "k2", "k3", "k4"].forEach((item) => {
if (a0[item] !== void 0) {
c16639_1[item] = Number(a0[item]) || 0;
}
});
return r0;
};
export const extractFeGaussianBlur = (a0) => {
let r4;
L23: {
r4 = {};
if (Array.isArray(a0.stdDeviation)) {
r4.stdDeviationX = Number(a0.stdDeviation[0]) || 0;
r4.stdDeviationY = Number(a0.stdDeviation[1]) || 0;
} else {
if (typeof a0.stdDeviation === "string" && a0.stdDeviation.match(c5506_3)) {
const r32 = a0.stdDeviation.split(c5506_3);
r4.stdDeviationX = Number(r32[0]) || 0;
r4.stdDeviationY = Number(r32[1]) || 0;
break L23;
}
const stdDeviation = a0.stdDeviation;
let r1 = typeof stdDeviation === "number";
if (typeof stdDeviation !== "number") {
const stdDeviation2 = a0.stdDeviation;
r1 = typeof stdDeviation2 === "string" ? !a0.stdDeviation.match(c5506_3) : typeof stdDeviation2 === "string";
}
if (r1) {
r4.stdDeviationX = Number(a0.stdDeviation) || 0;
r4.stdDeviationY = Number(a0.stdDeviation) || 0;
}
}
}
if (a0.edgeMode) {
r4.edgeMode = a0.edgeMode;
}
return r4;
};
export const extractFeMerge = (a0, parent) => {
const r7 = a0.children ? Module19.Children.map(a0.children, (a0) => Module19.cloneElement(a0, {
parent
})) : [];
const nodes = [];
const length = r7.length;
let r0 = 0;
while (r0 < length) {
let in2 = r7[r0].props.in;
const r1 = r0;
if (!in2) {
in2 = "";
}
nodes.push(in2);
r0 = r1 + 1;
}
return {
nodes
};
};