110 lines
5.7 KiB
TypeScript
110 lines
5.7 KiB
TypeScript
/* Metro module 11434; source: modules/messages/native/MessageGameIconActionSheet.tsx; dependencies: [31, 27, 4234, 661, 33, 4501, 477, 697, 566, 6275, 1305, 4573, 6766, 1244, 1948, 2] */
|
|
import ApplicationStore from '../../applications/ApplicationStore.tsx'; /* Metro dependency 4234 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
|
|
function _fun87512(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11620:6, offset: 0x01fc114c, size: 377 bytes, params: 8, frame: 24
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = 0;
|
|
importAll(dependencyMap[value]);
|
|
const createStyles = CreateStylesModule.createStyles;
|
|
object = {};
|
|
object.contentWrapper = {'paddingHorizontal': 24, 'paddingTop': 8,
|
|
paddingBottom: PlatformUtilsModule.isAndroid() ? 16 : value};
|
|
object.gameDescriptionWrapper = {'flexDirection': 'column', 'justifyContent': 'flex-start', 'flex': 1};
|
|
const object3 = {'width': 56, 'height': 56, 'marginRight': 8};
|
|
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
|
object.gameIcon = object3;
|
|
object.gameDescriptionWrapperOuter = {flexDirection: 'row'};
|
|
object.timestamp = {marginBottom: 4};
|
|
const env0_8 = Reflect.apply(createStyles, CreateStylesModule, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/messages/native/MessageGameIconActionSheet.tsx');
|
|
exports.default = _default_87513;
|
|
function _default_87513({applicationId, messageTimestamp}) { // fn#87513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11620:542, offset: 0x01fc12c5, size: 627 bytes, params: 2, frame: 34
|
|
var r0;
|
|
var BottomSheet;
|
|
var Icon;
|
|
var object2;
|
|
var items4;
|
|
var items2;
|
|
var TextWithIOSLinkWorkaround;
|
|
const intl = (IndexNativeModule).intl;
|
|
var format;
|
|
const t = (IndexNativeModule).t;
|
|
var items3;
|
|
var BPDKoA;
|
|
var defaultImport;
|
|
const styles = useStyles();
|
|
const application = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationStore],
|
|
function() {
|
|
return ApplicationStore.getApplication(applicationId);
|
|
});
|
|
if (application == null) {
|
|
r0 = null;
|
|
} else {
|
|
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
|
var viewBindingProps = {style: styles.contentWrapper};
|
|
var viewBindingProps2 = {style: styles.gameDescriptionWrapperOuter};
|
|
Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
|
var iconProps = {style: styles.gameIcon, resizeMode: 'contain'};
|
|
object2 = {};
|
|
object2.uri = application?.getIconURL(56) ?? '';
|
|
iconProps.source = object2;
|
|
iconProps.disableColor = true;
|
|
items4 = [
|
|
<Icon {...iconProps} />,
|
|
];
|
|
var viewBinding2Props = {style: styles.gameDescriptionWrapper};
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
items2 = [
|
|
<Text
|
|
style={styles.timestamp}
|
|
variant="text-xs/medium"
|
|
color="text-muted"
|
|
>
|
|
{messageTimestamp}
|
|
</Text>,
|
|
];
|
|
TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
|
format = intl.format;
|
|
items3 = [Reflect.apply(format, intl, [t.J3s8JP, {applicationName: application.name}]), ' '];
|
|
format = intl.format;
|
|
BPDKoA = t.BPDKoA;
|
|
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
|
items3[2] = Reflect.apply(format, intl, [BPDKoA,
|
|
{helpdeskArticle: defaultImport.getArticleURL(HelpdeskArticles.SOCIAL_LAYER_CONNECTIONS)}]);
|
|
items2[1] = (
|
|
<TextWithIOSLinkWorkaround variant="text-sm/medium">
|
|
{items3}
|
|
</TextWithIOSLinkWorkaround>
|
|
);
|
|
items4[1] = (
|
|
<View {...viewBinding2Props}>
|
|
{items2}
|
|
</View>
|
|
);
|
|
r0 = (
|
|
<BottomSheet startExpanded>
|
|
<View {...viewBindingProps}>
|
|
<View {...viewBindingProps2}>
|
|
{items4}
|
|
</View>
|
|
</View>
|
|
</BottomSheet>
|
|
);
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun87512, 11434, [31, 27, 4234, 661, 33, 4501, 477, 697, 566, 6275, 1305, 4573, 6766, 1244, 1948,
|
|
2]) /* metro module 11434, dependencies: [31, 27, 4234, 661, 33, 4501, 477, 697, 566, 6275, 1305, 4573, 6766, 1244, 1948, 2] */;
|