Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,102 @@
|
||||
/* Metro module 15748; source: modules/interaction_components/native/InteractionIframeModal.tsx; dependencies: [57, 31, 27, 4238, 33, 4501, 697, 15736, 5463, 7717, 15749, 4571, 3857, 1244, 10709, 10716, 5278, 4066, 4573, 8706, 2] */
|
||||
function _fun120932(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15956:6, offset: 0x0253aac5, size: 378 bytes, params: 8, frame: 23
|
||||
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 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_6 = (require(4238) /* metro dependency 4238: ApplicationConstants */).BotTagTypes;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [{wrapper: {backgroundColor: BACKGROUND_SURFACE_HIGH, flex: 1},
|
||||
header: {'flexDirection': 'row', 'padding': 16, 'justifyContent': 'space-between', 'alignItems': 'center'},
|
||||
headerCenterContainer: {'flexDirection': 'column', 'alignItems': 'center'},
|
||||
headerTitleContainer: {'flexDirection': 'row', 'marginBottom': 2}, closeButton: {marginEnd: 8},
|
||||
spacerView: {'marginStart': 8, 'width': 32}, botTag: {marginStart: 4}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/interaction_components/native/InteractionIframeModal.tsx');
|
||||
exports.default = InteractionIframeModal;
|
||||
}
|
||||
|
||||
function InteractionIframeModal(a0) { // fn#120933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15956:688, offset: 0x0253ac3f, size: 944 bytes, params: 2, frame: 29
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const application = a0.application;
|
||||
const title = a0.title;
|
||||
const id = application.id;
|
||||
const {queryParams,
|
||||
iframeUrl} = (require(15736) /* metro dependency 15736: InteractionModalUtils */).useIframeModalState(a0);
|
||||
const binding = env0_4;
|
||||
const [property, env0_1] = env0_3(binding.useState(false), 2);
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
|
||||
binding.useLayoutEffect(_fun120934, []);
|
||||
let useCallback = binding.useCallback;
|
||||
const value6 = Reflect.apply(useCallback, binding, [_fun120936, [id]]);
|
||||
useCallback = binding.useCallback;
|
||||
(importDefault(4571) /* metro dependency 4571: useBackPressHandler */)(Reflect.apply(useCallback, binding,
|
||||
[_fun120937, [value6]]));
|
||||
const value8 = null;
|
||||
const r5 = property ? value8 : ((Component) => <Component onActivityCrash={onActivityCrash} applicationId={application.id} channelId={queryParams.channel_id} guildId={queryParams.guild_id} activityUrl={iframeUrl} activitySessionId={queryParams.instance_id} queryParams={queryParams} onLoadError={onLoadError} allowPopups={(require(10716) /* metro dependency 10716: allowPopups */).allowPopups(application)} referrerPolicy="origin" isPipOrGridMode={false} webViewKey={value2} ignoreSilentHardwareSwitch={false} />)(importDefault(10709) /* metro dependency 10709: EmbeddedActivityWebView */);
|
||||
const items3 = [styles.wrapper];
|
||||
items3[1] = {paddingTop: insets.top, paddingBottom: insets.bottom};
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const cpT0Cq = (require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq;
|
||||
const XLargeIcon = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
|
||||
const items2 = [<PressableOpacity accessibilityRole="button" accessibilityLabel={Reflect.apply(string, intl,
|
||||
[cpT0Cq])} onPress={value6} style={styles.closeButton}><XLargeIcon /></PressableOpacity>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text variant="heading-sm/bold" color="mobile-text-heading-primary">{application.name}</Text>;
|
||||
const BotTag = importDefault(8706) /* metro dependency 8706: BotTag */;
|
||||
const BOT = BotTagTypes.BOT;
|
||||
const bot = application.bot;
|
||||
items2[1] = <View style={styles.headerCenterContainer}><View style={styles.headerTitleContainer}>{text}<BotTag type={BOT} verified={value8 == bot ? value2 : bot.verified} style={styles.botTag} /></View><Text variant="text-xs/medium" color="interactive-text-default">{title}</Text></View>;
|
||||
items2[2] = <View style={styles.spacerView} />;
|
||||
return (
|
||||
<View style={items3}>
|
||||
<View style={styles.header}>
|
||||
{items2}
|
||||
</View>
|
||||
{r5}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun120934() { // fn#120934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15956:935, offset: 0x0253afef, size: 51 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('PORTRAIT');
|
||||
return _fun120935;
|
||||
}
|
||||
|
||||
function _fun120936() { // fn#120936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15956:1045, offset: 0x0253b047, size: 40 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
(importDefault(15749) /* metro dependency 15749: closeIFrameModalNative */)(id, undefined);
|
||||
}
|
||||
|
||||
function InteractionIframeModalOnActivityCrash() { // fn#120938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15956:1176, owner: InteractionIframeModal.onActivityCrash, offset: 0x0253b06f, size: 43 bytes, params: 1, frame: 13
|
||||
env0_1(true);
|
||||
global.setTimeout(_fun120939, 0);
|
||||
}
|
||||
|
||||
function onLoadError() { // fn#120940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15956:1347, owner: InteractionIframeModal.onLoadError, offset: 0x0253b09a, size: 118 bytes, params: 1, frame: 17
|
||||
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
const open = defaultImport.open;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const HehpFW = (require(1244) /* metro dependency 1244: indexNative */).t.HehpFW;
|
||||
Reflect.apply(open, defaultImport, [{key: 'interaction_iframe_modal', content: Reflect.apply(string, intl,
|
||||
[HehpFW])}]);
|
||||
env0_2();
|
||||
}
|
||||
|
||||
function _fun120935() { // fn#120935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15956:976, offset: 0x0253b022, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
(require(7717) /* metro dependency 7717: DeviceOrientation */).restoreDefaultOrientation();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user