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

131 lines
2.7 KiB
JavaScript

// Metro module 1619 (f1620).
import { HermesBuiltin } from "../_hermes/prelude";
const r15 = global?.nativeFabricUIManager != null;
let r16 = {
borderBottomEndRadius: true,
borderBottomLeftRadius: true,
borderBottomRightRadius: true,
borderBottomStartRadius: true,
borderRadius: true,
borderTopEndRadius: true,
borderTopLeftRadius: true,
borderTopRightRadius: true,
borderTopStartRadius: true
};
const r17 = r15 ? r16 : {};
let r18 = {
color: true,
tintColor: true,
shadowColor: true,
placeholderTextColor: true
};
const UI_THREAD_PROPS_WHITELIST = {
opacity: true,
transform: true,
backgroundColor: true,
borderRightColor: true,
borderBottomColor: true,
borderColor: true,
borderEndColor: true,
borderLeftColor: true,
borderStartColor: true,
borderTopColor: true,
shadowOpacity: true,
shadowRadius: true,
...r17,
scaleX: true,
scaleY: true,
translateX: true,
translateY: true,
...r15 ? r18 : {}
};
if (r15) {
r18 = {};
}
const NATIVE_THREAD_PROPS_WHITELIST = {
borderBottomWidth: true,
borderEndWidth: true,
borderLeftWidth: true,
borderRightWidth: true,
borderStartWidth: true,
borderTopWidth: true,
borderWidth: true,
bottom: true,
boxShadow: true,
flex: true,
flexGrow: true,
flexShrink: true,
height: true,
left: true,
margin: true,
marginBottom: true,
marginEnd: true,
marginHorizontal: true,
marginLeft: true,
marginRight: true,
marginStart: true,
marginTop: true,
marginVertical: true,
maxHeight: true,
maxWidth: true,
minHeight: true,
minWidth: true,
padding: true,
paddingBottom: true,
paddingEnd: true,
paddingHorizontal: true,
paddingLeft: true,
paddingRight: true,
paddingStart: true,
paddingTop: true,
paddingVertical: true,
right: true,
start: true,
top: true,
width: true,
zIndex: true,
elevation: true,
fontSize: true,
lineHeight: true,
textShadowRadius: true,
textShadowOffset: true,
letterSpacing: true,
aspectRatio: true,
columnGap: true,
end: true,
flexBasis: true,
gap: true,
rowGap: true,
display: true,
backfaceVisibility: true,
overflow: true,
resizeMode: true,
fontStyle: true,
fontWeight: true,
textAlign: true,
textDecorationLine: true,
fontFamily: true,
textAlignVertical: true,
fontVariant: true,
textDecorationStyle: true,
textTransform: true,
writingDirection: true,
alignContent: true,
alignItems: true,
alignSelf: true,
direction: true,
flexDirection: true,
flexWrap: true,
justifyContent: true,
position: true,
...r18
};
if (r15) {
r16 = {};
}
HermesBuiltin.copyDataProperties(NATIVE_THREAD_PROPS_WHITELIST, r16);
export const PropsAllowlists = {
UI_THREAD_PROPS_WHITELIST,
NATIVE_THREAD_PROPS_WHITELIST
};