Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,117 @@
/* Metro module 4562; source: design/components/Backdrop/native/Backdrop.native.tsx; dependencies: [31, 27, 33, 4501, 697, 1244, 3868, 1585, 4000, 4017, 4563, 2] */
function _fun38785(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4740:6, offset: 0x010ca32e, size: 315 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const getBlurAmount = function(a0) {
if (a0 === 'none') {
return 0;
}
if (a0 === 'subtle') {
return 0.05;
}
if (a0 === 'strong') {
return 0.25;
}
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const StyleSheet = value.StyleSheet;
const env0_4 = value.Pressable;
value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = {};
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object2.fill = StyleSheet.absoluteFillObject;
const BACKGROUND_SCRIM = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SCRIM;
object2.backdrop = {backgroundColor: BACKGROUND_SCRIM};
const MOBILE_BACKGROUND_SCRIM_OPAQUE = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_BACKGROUND_SCRIM_OPAQUE;
object2.backdropOpaque = {backgroundColor: MOBILE_BACKGROUND_SCRIM_OPAQUE};
object2.accessibilityDismiss = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'height': 16};
const env0_8 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Backdrop/native/Backdrop.native.tsx');
exports.Backdrop = Backdrop;
}
function Backdrop(a0) { // fn#38787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4740:643, offset: 0x010ca4a6, size: 636 bytes, params: 2, frame: 31
var r11;
var r5;
var intl;
var object2;
var object3;
var VisualEffectViewAnimated;
const style = a0.style;
const accessibleDismissStyle = a0.accessibleDismissStyle;
const animatedProps = a0.animatedProps;
const r4 = animatedProps !== undefined ? animatedProps : env0_7;
let opaque = a0.opaque;
opaque = !(opaque === undefined) && opaque;
let blur = a0.blur;
blur = blur === undefined ? 'none' : blur;
const onDismiss = a0.onDismiss;
const accessibilityLabel = a0.accessibilityLabel;
if (accessibilityLabel !== undefined) {
r11 = accessibilityLabel;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r11 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WAI6xu);
}
const property = a0['aria-hidden'];
const styles = useStyles();
const nativeModule = require(3868) /* metro dependency 3868: native */;
const useThemeContext = nativeModule.useThemeContext;
const theme = Reflect.apply(useThemeContext, nativeModule, []).theme;
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
const backgroundColor = styles.backdrop.backgroundColor;
const binding = env0_3;
const useMemo = binding.useMemo;
const items2 = [backgroundColor];
const value2 = Reflect.apply(useMemo, binding, [_fun38788, items2]);
({onPress: onDismiss})['aria-hidden'] = true;
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
let fill = styles.fill;
const items4 = [fill, style];
const items3 = [onDismiss != null && <Pressable style={[styles.accessibilityDismiss, {top: top},
accessibleDismissStyle]} onPress={onDismiss} accessibilityRole="button" accessibilityLabel={r11} {...{['aria-hidden']: property}} />];
if (blur !== 'none') {
object3 = {};
copyDataProperties(object3, items2, top);
fill = styles.fill;
object3['style'] = fill;
VisualEffectViewAnimated = importDefault(4563) /* metro dependency 4563: VisualEffectViewAnimated */;
var defaultImportProps = {blurAmount: getBlurAmount(blur)};
fill = styles.fill;
defaultImportProps.style = fill;
defaultImportProps.blurTheme = theme;
defaultImportProps.blurTintRgba = value2;
defaultImportProps.android_fallbackColor = styles.backdrop.backgroundColor;
object3['children'] = <VisualEffectViewAnimated {...defaultImportProps} />;
r5 = object3;
} else {
object2 = {};
copyDataProperties(object2, items2, top);
object2['style'] = [styles.fill, opaque ? styles.backdropOpaque : styles.backdrop];
r5 = object2;
}
items3[1] = <Pressable {...r5} />;
return (
<View
style={items4}
pointerEvents="box-none"
animatedProps={r4}
>
{items3}
</View>
);
}
function _fun38788() { // fn#38788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4740:930, offset: 0x010ca722, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = require(4000) /* metro dependency 4000: ColorUtils */;
return value.hexToRgbaString(backgroundColor);
}
@@ -0,0 +1,8 @@
/* Metro module 12760; source: design/components/Backdrop/native/BackdropConstants.tsx; dependencies: [2] */
function _fun97522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12950:6, offset: 0x021875be, size: 88 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Backdrop/native/BackdropConstants.tsx');
exports.BACKDROP_OPAQUE_MAX_OPACITY = 0.7;
}