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,188 @@
/* Metro module 12034; source: modules/accept_invite/native/AcceptInvite.tsx; dependencies: [57, 31, 27, 661, 33, 4501, 697, 1360, 3860, 5465, 12035, 12037, 1423, 1457, 12040, 1478, 6239, 2] */
function _fun92494(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:6, offset: 0x0208bb74, size: 482 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_5 = value.ActivityIndicator;
const env0_6 = value.ImageBackground;
const env0_7 = value.View;
const env0_8 = (require(661) /* metro dependency 661: Constants */).InviteStates;
value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.parentContainer = {'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center',
backgroundColor: BACKGROUND_BASE_LOW};
object2.imageStyle = {'marginVertical': 0, 'resizeMode': 'cover'};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object2.cardContainer = {'position': 'absolute', 'flex': 1, 'width': '90%', 'alignItems': 'center',
'justifyContent': 'center', 'padding': 0, backgroundColor: BACKGROUND_SURFACE_HIGH};
object2.cardContent = {'padding': 16, 'flex': 1, 'justifyContent': 'center', 'alignItems': 'center',
'width': '100%'};
object2.resolvingContainer = {padding: 64};
const env0_11 = Reflect.apply(createStyles, value, [object2]);
object2 = {LOADING: 0};
object2[0] = 'LOADING';
object2.DETAILS = 1;
object2[1] = 'DETAILS';
object2.ERROR = 2;
object2[2] = 'ERROR';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/AcceptInvite.tsx');
exports.default = AcceptInvite;
}
function InviteResolving() { // fn#92495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1211, offset: 0x0208bd56, size: 131 bytes, params: 1, frame: 17
const styles = useStyles();
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
return (
<View style={styles.resolvingContainer}>
<ActivityIndicator color={Reflect.apply(useToken, useTokenModule,
[INTERACTIVE_TEXT_DEFAULT])} size="large" />
</View>
);
}
function AcceptInviteCardComponent(a0) { // fn#92496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1386, offset: 0x0208bdd9, size: 290 bytes, params: 2, frame: 19
const invite = a0.invite;
const binding = env0_4;
const useState = binding.useState;
const value3 = env0_3(Reflect.apply(useState, binding, [getInviteState(invite)]), 2);
const property = value3[0];
const env0_2 = value3[1];
env0_4.useEffect(_fun92497, [invite, property]);
if (invite != null) {
var DETAILS = env0_12.DETAILS;
if (DETAILS === property) {
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12035) /* metro dependency 12035: InviteDetails */);
}
var ERROR = env0_12.ERROR;
if (ERROR === property) {
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12037) /* metro dependency 12037: InviteError */);
}
}
return <InviteResolving />;
}
function getInviteState(a0) { // fn#92498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:817, offset: 0x0208bf41, size: 315 bytes, params: 2, frame: 14
let value = undefined;
let state = a0 == null ? value : a0.state;
const r2 = state == null && (a0 == null ? value : a0.channel) == null;
if (a0 == null) {
value = environment;
return env0_12.LOADING;
}
if (a0.state == null) {
value = environment;
return env0_12.LOADING;
}
if (r2) {
value = environment;
return env0_12.LOADING;
}
state = a0.state;
const RESOLVED = InviteStates.RESOLVED;
if (RESOLVED === state) {
return env0_12.DETAILS;
}
const ACCEPTED = InviteStates.ACCEPTED;
if (ACCEPTED === state) {
return env0_12.DETAILS;
}
const EXPIRED = InviteStates.EXPIRED;
if (EXPIRED === state) {
return env0_12.ERROR;
}
const BANNED = InviteStates.BANNED;
if (BANNED === state) {
return env0_12.ERROR;
}
const ERROR = InviteStates.ERROR;
if (ERROR === state) {
return env0_12.ERROR;
}
const RESOLVING = InviteStates.RESOLVING;
if (RESOLVING === state) {
return env0_12.LOADING;
}
const APP_NOT_OPENED = InviteStates.APP_NOT_OPENED;
if (APP_NOT_OPENED === state) {
return env0_12.LOADING;
}
const APP_OPENED = InviteStates.APP_OPENED;
if (APP_OPENED === state) {
return env0_12.LOADING;
}
const APP_OPENING = InviteStates.APP_OPENING;
if (APP_OPENING === state) {
return env0_12.LOADING;
}
const ACCEPTING = InviteStates.ACCEPTING;
if (ACCEPTING === state) {
return env0_12.LOADING;
}
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(state);
return value;
}
function AcceptInvite(a0) { // fn#92499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1871, offset: 0x0208c07c, size: 448 bytes, params: 2, frame: 26
var r7;
var object2;
var defaultImport;
var getGuildSplashSource;
var moduleValue;
const invite = a0.invite;
const value = Object.create(null);
value.invite = 0;
const value2 = copyDataProperties({}, a0, value, invite);
const value4 = undefined;
const styles = useStyles();
const {height, width} = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
const guild = (invite ?? ({})).guild;
if ((guild == null ? value4 : guild.splash) == null) {
r7 = importDefault(12040) /* metro dependency 12040 */;
} else {
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildSplashSource = defaultImport.getGuildSplashSource;
object2 = {};
object2.id = guild.id;
object2.splash = guild.splash;
moduleValue = require(1457) /* metro dependency 1457: ImageLoaderUtils */;
object2.size = width * moduleValue.getDevicePixelRatio();
r7 = Reflect.apply(getGuildSplashSource, defaultImport,
[object2]) ?? (importDefault(12040) /* metro dependency 12040 */);
}
const items2 = [styles.parentContainer];
items2[1] = {height: height, width: width};
const imageBackground = <ImageBackground source={r7} imageStyle={styles.imageStyle} style={{height: height,
width: width}} />;
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
return (
<View style={items2}>
{imageBackground}
<Card style={styles.cardContainer}>
<View style={styles.cardContent}>
<AcceptInviteCardComponent invite={invite} {...value2} />
</View>
</Card>
</View>
);
}
function _fun92497() { // fn#92497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1510, offset: 0x0208befb, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
const inviteState = getInviteState(invite);
if (inviteState !== env0_1) {
(require(5465) /* metro dependency 5465: DeprecatedLayoutAnimation */).DeprecatedLayoutAnimation();
env0_2(inviteState);
}
}