Files
discord-decomp/_bundle/getStatics.js
T
2026-11-01 12:12:55 +02:00

88 lines
2.3 KiB
JavaScript

// Metro module 1140 (f1141).
let c947_0, c947_1, c947_2, c947_3, c947_4, c947_6, c947_7, c947_8, c947_9, c947_10, prototype, hoistNonReactStatics;
const getStatics = function getStatics(a0) {
if ((typeof a0 === "object" ? a0 !== null : typeof a0 === "object") && a0.$$typeof === c947_3) {
return c947_2;
}
const r6 = a0.$$typeof;
return r6 && c947_4[r6] || c947_0;
};
Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
c947_0 = {
childContextTypes: true,
contextType: true,
contextTypes: true,
defaultProps: true,
displayName: true,
getDefaultProps: true,
getDerivedStateFromError: true,
getDerivedStateFromProps: true,
mixins: true,
propTypes: true,
type: true
};
c947_1 = {
name: true,
length: true,
prototype: true,
caller: true,
callee: true,
arguments: true,
arity: true
};
c947_2 = {
$$typeof: true,
compare: true,
defaultProps: true,
displayName: true,
propTypes: true,
type: true
};
const r9 = Symbol.for("react.forward_ref");
c947_3 = Symbol.for("react.memo");
c947_4 = {};
c947_4[r9] = {
$$typeof: true,
render: true,
defaultProps: true,
displayName: true,
propTypes: true
};
c947_4[c947_3] = c947_2;
c947_6 = Object.defineProperty.bind(Object);
c947_7 = Object.getOwnPropertyNames.bind(Object);
const getOwnPropertySymbols = Object.getOwnPropertySymbols;
c947_8 = getOwnPropertySymbols == null ? void 0 : getOwnPropertySymbols.bind(Object);
c947_9 = Object.getOwnPropertyDescriptor.bind(Object);
c947_10 = Object.getPrototypeOf.bind(Object);
prototype = Object.prototype;
hoistNonReactStatics = function hoistNonReactStatics(a0, a1, a2) {
if (typeof a1 !== "string") {
if (prototype) {
const r2 = c947_10(a1);
if (r2 && r2 !== prototype) {
hoistNonReactStatics(a0, r2);
}
}
const r4 = c947_7(a1);
const r34 = c947_8 ? r4.concat(c947_8(a1)) : r4;
const statics2 = getStatics(a0);
const statics = getStatics(a1);
for (const item of r34) {
const r46 = String(item);
if (!c947_1[r46] && !(statics == null ? void 0 : statics[r46]) && !(statics2 == null ? void 0 : statics2[r46]) && !c947_9(a0, item)) {
const r60 = c947_9(a1, item);
if (r60) {
try {
c947_6(a0, item, r60);
} catch ($e) {}
}
}
}
}
return a0;
};
export { hoistNonReactStatics };