61 lines
4.4 KiB
TypeScript
61 lines
4.4 KiB
TypeScript
/* Metro module 14409; source: modules/guilds_bar/native/GuildsBarMessages.tsx; dependencies: [31, 3969, 661, 33, 14410, 1357, 14395, 566, 14397, 697, 1244, 14411, 6682, 2] */
|
|
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import MobileVisualRefreshExperiment from '../../themes/experiments/MobileVisualRefreshExperiment.tsx'; /* Metro dependency 1357 */
|
|
import SelectedGuildStore from '../../../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
|
|
import GuildsBarAnimatedItemWrapper from './GuildsBarAnimatedItemWrapper.tsx'; /* Metro dependency 14395 */
|
|
import UseGuildsBarBottomRightBadge from './hooks/useGuildsBarBottomRightBadge.tsx'; /* Metro dependency 14397 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as ChatIconModule from '../../../design/components/Icon/native/redesign/generated/ChatIcon.tsx'; /* Metro dependency 6682 */
|
|
import * as GuildsBarAnimatedItemWrapperModule from './GuildsBarAnimatedItemWrapper.tsx'; /* Metro dependency 14395 */
|
|
|
|
function _fun109079(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14606:6, offset: 0x0233c69f, size: 203 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
object = {onPress: function() {
|
|
importDefault(dependencyMap[4])(ME);
|
|
}};
|
|
value = value.memo(GuildsBarMessages);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/guilds_bar/native/GuildsBarMessages.tsx');
|
|
exports.default = value;
|
|
function GuildsBarMessages() { // fn#109081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14606:186, offset: 0x0233c78e, size: 398 bytes, params: 1, frame: 21
|
|
const value2 = (MobileVisualRefreshExperiment)('GuildsBarMessages');
|
|
const value3 = (GuildsBarAnimatedItemWrapperModule).useGuildsBarAnimatedWrapperStyles();
|
|
const value4 = (FluxModule).useStateFromStores([SelectedGuildStore], _fun109082);
|
|
const {badge,
|
|
cutouts} = (UseGuildsBarBottomRightBadge)({mentionCount: 0});
|
|
const colors = (Native).colors;
|
|
const r7 = value4 ? colors.WHITE : colors.MOBILE_GUILDBAR_ICON_DEFAULT;
|
|
const defaultImport3Props = {selected: value4, circle: !value2 && !value4, unread: false, styles: value3,
|
|
cutouts: cutouts, config: env0_6, overState: undefined};
|
|
const intl = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const YUU0RF = (IndexNativeModule).t.YUU0RF;
|
|
defaultImport3Props.label = Reflect.apply(string, intl, [YUU0RF]);
|
|
defaultImport3Props.externalChildren = badge;
|
|
defaultImport3Props.expandedChildren = ((Component) => <Component />)(importDefault(14411) /* metro dependency 14411: HomeDrawerDirectMessagesRow */);
|
|
const ChatIcon = (ChatIconModule).ChatIcon;
|
|
return (
|
|
<GuildsBarAnimatedItemWrapper {...defaultImport3Props}>
|
|
<ChatIcon color={r7} />
|
|
</GuildsBarAnimatedItemWrapper>
|
|
);
|
|
function _fun109082() { // fn#109082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14606:330, offset: 0x0233c91c, size: 36 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
const guildId = SelectedGuildStore.getGuildId();
|
|
return guildId == null || guildId === ME;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun109079, 14409, [31, 3969, 661, 33, 14410, 1357, 14395, 566, 14397, 697, 1244, 14411, 6682,
|
|
2]) /* metro module 14409, dependencies: [31, 3969, 661, 33, 14410, 1357, 14395, 566, 14397, 697, 1244, 14411, 6682, 2] */;
|