Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,76 @@
|
||||
/* Metro module 14597; source: modules/premium/powerups/native/GuildPowerupsChannelRow.tsx; dependencies: [31, 27, 10980, 33, 14598, 7684, 697, 1305, 4501, 14599, 6789, 14607, 14681, 11846, 1244, 2256, 14687, 2] */
|
||||
function _fun110373(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14794:6, offset: 0x02376f0a, size: 263 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const CHANNEL_MARGIN_VERTICAL = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).CHANNEL_MARGIN_VERTICAL;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsChannelRow.tsx');
|
||||
exports.default = GuildPowerupsChannelRow;
|
||||
}
|
||||
|
||||
function GuildPowerupsChannelRowIndicator({indicator}) { // fn#110374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14794:169, offset: 0x02377011, size: 236 bytes, params: 2, frame: 17
|
||||
if (indicator != null) {
|
||||
var type = indicator.type;
|
||||
var GuildPowerupNotificationIndicatorType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationIndicatorType;
|
||||
var WARNING = GuildPowerupNotificationIndicatorType.WARNING;
|
||||
if (WARNING === type) {
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
return (
|
||||
<CircleErrorIcon color={(importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING} size="sm" />
|
||||
);
|
||||
}
|
||||
GuildPowerupNotificationIndicatorType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationIndicatorType;
|
||||
var UNREAD = GuildPowerupNotificationIndicatorType.UNREAD;
|
||||
if (UNREAD === type) {
|
||||
const Badge = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
return <Badge value={indicator.count} isMentionLowImportance />;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function GuildPowerupsChannelRow({guildId}) { // fn#110375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14794:762, offset: 0x023770fd, size: 564 bytes, params: 2, frame: 31
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const value3 = binding.useRef(null);
|
||||
const value4 = binding.useCallback(_fun110376, [guildId]);
|
||||
const value5 = (importDefault(14607) /* metro dependency 14607: useGuildPowerupsNotifications */)(guildId);
|
||||
(importDefault(14681) /* metro dependency 14681: useGuildPowerupsCoachmark */)(value3, guildId, value5?.popout);
|
||||
const r13 = value5 == null ? (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes.DEFAULT : value5.showUnread ? (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes.UNREAD_IMPORTANT : (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes.DEFAULT;
|
||||
const BaseChannelItem = importDefault(11846) /* metro dependency 11846: BaseChannelItem */;
|
||||
const defaultImport2Props = {onPress: value4, style: styles.container, accessible: true, mode: r13,
|
||||
unread: value5?.showUnread};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
defaultImport2Props.accessibilityLabel = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).yv3DJJ);
|
||||
defaultImport2Props.accessibilityState = {selected: false};
|
||||
const BaseChannelName = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelName;
|
||||
defaultImport2Props.name = <BaseChannelName name={intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).yv3DJJ)} mode={r13} />;
|
||||
const BaseChannelIcon = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelIcon;
|
||||
const BoostTier2Icon = (require(14687) /* metro dependency 14687: BoostTier2Icon */).BoostTier2Icon;
|
||||
defaultImport2Props.icon = <BaseChannelIcon mode={r13} IconComponent={BoostTier2Icon} />;
|
||||
defaultImport2Props.channelInfo = <GuildPowerupsChannelRowIndicator indicator={value5?.indicator} />;
|
||||
return (
|
||||
<View ref={value3} collapsable={false}>
|
||||
<BaseChannelItem {...defaultImport2Props} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110376() { // fn#110376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14794:852, offset: 0x02377331, size: 68 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(14599) /* metro dependency 14599: openGuildPowerupsModal */;
|
||||
const object2 = {};
|
||||
object2.guildId = guildId;
|
||||
const GUILD_POWERUPS_CHANNEL_LIST_ROW = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GUILD_POWERUPS_CHANNEL_LIST_ROW;
|
||||
object2.analyticsLocation = GUILD_POWERUPS_CHANNEL_LIST_ROW;
|
||||
value(object2);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user