2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 15110
|
|
|
|
|
// Function ID: 115050
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: GuildPowerupsChannelRowIndicator
|
2026-07-27 11:26:19 +00:00
|
|
|
// Dependencies: [31, 27, 10223, 33, 11524, 6673, 689, 1273, 4131, 15072, 14855, 5451, 11520, 11539, 11416, 11509, 5482, 1212, 2231, 15111, 11382, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 15110 (GuildPowerupsChannelRowIndicator)
|
2026-07-23 10:11:24 +00:00
|
|
|
import result from "result";
|
|
|
|
|
import { View } from "get ActivityIndicator";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_5;
|
|
|
|
|
let closure_6;
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function GuildPowerupsChannelRowIndicator(indicator) {
|
|
|
|
|
indicator = indicator.indicator;
|
|
|
|
|
if (null == indicator) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
|
|
|
|
const type = indicator.type;
|
2026-07-27 11:26:19 +00:00
|
|
|
if (require(11524) /* GUILD_POWERUP_NOTIFICATION_COOLDOWN */.GuildPowerupNotificationIndicatorType.WARNING === type) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = { color: importDefault(689).colors.STATUS_WARNING, size: "sm" };
|
2026-07-25 08:10:48 +00:00
|
|
|
return callback(require(6673) /* CircleErrorIcon */.CircleErrorIcon, obj);
|
2026-07-27 11:26:19 +00:00
|
|
|
} else if (require(11524) /* GUILD_POWERUP_NOTIFICATION_COOLDOWN */.GuildPowerupNotificationIndicatorType.UNREAD === type) {
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { value: indicator.count, isMentionLowImportance: true };
|
2026-07-23 10:11:24 +00:00
|
|
|
return callback(require(1273) /* Button */.Badge, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function GuildPowerupsCoachmarkHost(arg0) {
|
|
|
|
|
let guildId;
|
|
|
|
|
let popout;
|
|
|
|
|
let targetRef;
|
|
|
|
|
({ targetRef, guildId, popout } = arg0);
|
2026-07-27 11:26:19 +00:00
|
|
|
importDefault(15072)(targetRef, guildId, popout);
|
2026-07-20 16:05:17 +00:00
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
function GuildPowerupsCoachmark(arg0) {
|
|
|
|
|
let guildId;
|
|
|
|
|
let popout;
|
|
|
|
|
let targetRef;
|
|
|
|
|
({ targetRef, guildId, popout } = arg0);
|
2026-07-27 11:26:19 +00:00
|
|
|
const context = React.useContext(require(14855) /* SidebarCoachmarkOverlayLayer */.SidebarCoachmarkOverlayContext);
|
2026-07-20 16:05:17 +00:00
|
|
|
const tmp2 = callback(GuildPowerupsCoachmarkHost, { targetRef, guildId, popout });
|
|
|
|
|
let tmp3 = tmp2;
|
|
|
|
|
if (null != context) {
|
|
|
|
|
const obj = { value: context, children: tmp2 };
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp3 = callback(require(5451) /* LayerContextManager */.LayerContext.Provider, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp3;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
({ jsx: closure_5, jsxs: closure_6 } = jsxProd);
|
|
|
|
|
_createForOfIteratorHelperLoose = {};
|
|
|
|
|
_createForOfIteratorHelperLoose = { marginVertical: require("hairlineWidth").CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8, borderRadius: require("_createForOfIteratorHelperLoose").radii.md };
|
|
|
|
|
_createForOfIteratorHelperLoose.container = _createForOfIteratorHelperLoose;
|
|
|
|
|
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
|
|
|
|
|
const result = require("hairlineWidth").fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsChannelRow.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function GuildPowerupsChannelRow(guildId) {
|
|
|
|
|
guildId = guildId.guildId;
|
2026-07-23 10:11:24 +00:00
|
|
|
let dismissNewBadgeIfShown;
|
2026-07-20 16:05:17 +00:00
|
|
|
const ref = React.useRef(null);
|
2026-07-27 11:26:19 +00:00
|
|
|
const tmp3 = dismissNewBadgeIfShown(11520)(guildId);
|
2026-07-20 16:05:17 +00:00
|
|
|
let indicator;
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp = _createForOfIteratorHelperLoose();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != tmp3) {
|
|
|
|
|
indicator = tmp3.indicator;
|
|
|
|
|
}
|
|
|
|
|
let tmp6 = null != indicator;
|
|
|
|
|
if (!tmp6) {
|
|
|
|
|
let popout;
|
|
|
|
|
if (null != tmp3) {
|
|
|
|
|
popout = tmp3.popout;
|
|
|
|
|
}
|
|
|
|
|
tmp6 = null != popout;
|
|
|
|
|
}
|
2026-07-27 11:26:19 +00:00
|
|
|
const tmp4Result = dismissNewBadgeIfShown(11539)(guildId, tmp6);
|
2026-07-23 10:11:24 +00:00
|
|
|
dismissNewBadgeIfShown = tmp4Result.dismissNewBadgeIfShown;
|
2026-07-20 16:05:17 +00:00
|
|
|
let showUnread;
|
|
|
|
|
if (null != tmp3) {
|
|
|
|
|
showUnread = tmp3.showUnread;
|
|
|
|
|
}
|
2026-07-27 11:26:19 +00:00
|
|
|
const ChannelModes = guildId(11416).ChannelModes;
|
2026-07-20 16:05:17 +00:00
|
|
|
const tmp11 = true === showUnread ? ChannelModes.UNREAD_IMPORTANT : ChannelModes.DEFAULT;
|
|
|
|
|
const items = [guildId, dismissNewBadgeIfShown];
|
|
|
|
|
let obj = { ref, collapsable: false };
|
|
|
|
|
obj = { targetRef: ref, guildId };
|
|
|
|
|
let popout1;
|
|
|
|
|
const callback = React.useCallback(() => {
|
|
|
|
|
dismissNewBadgeIfShown();
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj = { guildId, analyticsLocation: dismissNewBadgeIfShown(outer1_2[16]).GUILD_POWERUPS_CHANNEL_LIST_ROW };
|
|
|
|
|
dismissNewBadgeIfShown(outer1_2[15])(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items);
|
|
|
|
|
if (null != tmp3) {
|
|
|
|
|
popout1 = tmp3.popout;
|
|
|
|
|
}
|
|
|
|
|
obj.popout = popout1;
|
|
|
|
|
const items1 = [callback(GuildPowerupsCoachmark, obj), ];
|
|
|
|
|
obj = { onPress: callback, style: tmp.container, accessible: true, mode: tmp11, unread: tmp10 };
|
|
|
|
|
const tmp13 = closure_6;
|
|
|
|
|
const tmp14 = View;
|
|
|
|
|
const tmp15 = callback;
|
|
|
|
|
const tmp16 = GuildPowerupsCoachmark;
|
|
|
|
|
const tmp18 = callback;
|
2026-07-27 11:26:19 +00:00
|
|
|
const tmp4 = dismissNewBadgeIfShown(11539);
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = guildId(1212).intl;
|
2026-07-25 08:10:48 +00:00
|
|
|
obj.accessibilityLabel = intl.string(dismissNewBadgeIfShown(2231).yv3DJJ);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.accessibilityState = { selected: false };
|
|
|
|
|
const obj1 = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl2 = guildId(1212).intl;
|
2026-07-25 08:10:48 +00:00
|
|
|
obj1.name = intl2.string(dismissNewBadgeIfShown(2231).yv3DJJ);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj1.mode = tmp11;
|
2026-07-27 11:26:19 +00:00
|
|
|
obj.name = callback(guildId(11416).BaseChannelName, obj1);
|
|
|
|
|
const obj2 = { mode: tmp11, IconComponent: guildId(15111).BoostTier2Icon };
|
|
|
|
|
obj.icon = callback(guildId(11416).BaseChannelIcon, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp4Result.showNewBadgeOnRow) {
|
2026-07-27 11:26:19 +00:00
|
|
|
let tmp20Result = tmp20(guildId(11382).NewBadge, {});
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
const obj3 = {};
|
|
|
|
|
let indicator1;
|
|
|
|
|
if (null != tmp3) {
|
|
|
|
|
indicator1 = tmp3.indicator;
|
|
|
|
|
}
|
|
|
|
|
obj3.indicator = indicator1;
|
|
|
|
|
tmp20Result = tmp20(GuildPowerupsChannelRowIndicator, obj3);
|
|
|
|
|
const tmp21 = GuildPowerupsChannelRowIndicator;
|
|
|
|
|
}
|
|
|
|
|
obj.channelInfo = tmp20Result;
|
2026-07-27 11:26:19 +00:00
|
|
|
items1[1] = tmp18(dismissNewBadgeIfShown(11416), obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items1;
|
|
|
|
|
return tmp13(tmp14, obj);
|
|
|
|
|
};
|