172 lines
6.9 KiB
TypeScript
172 lines
6.9 KiB
TypeScript
// Module ID: 9393
|
|
// Function ID: 73211
|
|
// Name: ExpressionGuildDetails
|
|
// Dependencies: []
|
|
|
|
// Module 9393 (ExpressionGuildDetails)
|
|
importAll(dependencyMap[0]);
|
|
const View = arg1(dependencyMap[1]).View;
|
|
let closure_4 = arg1(dependencyMap[2]).ExpressionSourceGuildRecord;
|
|
({ jsx: closure_5, Fragment: closure_6, jsxs: closure_7 } = arg1(dependencyMap[3]));
|
|
let obj = arg1(dependencyMap[4]);
|
|
obj = { guildDetailsContainer: { flexDirection: "column" }, guildDetailsContent: {} };
|
|
obj = { 2018655073: false, 1669594568: false, 1045670548: false, -460645489: false, borderRadius: importDefault(dependencyMap[5]).radii.sm };
|
|
obj.guildIcon = obj;
|
|
obj.guildNameAndOnlineMembers = { flexDirection: "column" };
|
|
obj.guildNameWrapper = { 33964765073235: 1, -9223372036854775808: 71, -9223372036854775808: null };
|
|
obj.guildPartnerIcon = { marginRight: 8 };
|
|
obj.guildDescriptionSection = { headerIcons: true, RowButtonIconProps: true, headerLabel: true };
|
|
const tmp3 = arg1(dependencyMap[3]);
|
|
obj.dotSeparator = { borderRadius: importDefault(dependencyMap[5]).radii.xs, backgroundColor: importDefault(dependencyMap[5]).colors.BACKGROUND_MOD_MUTED };
|
|
const obj1 = { borderRadius: importDefault(dependencyMap[5]).radii.xs, backgroundColor: importDefault(dependencyMap[5]).colors.BACKGROUND_MOD_MUTED };
|
|
obj.joinGuildButton = { borderRadius: importDefault(dependencyMap[5]).radii.sm, borderColor: importDefault(dependencyMap[5]).colors.BORDER_STRONG };
|
|
let closure_8 = obj.createStyles(obj);
|
|
class ExpressionGuildDetails {
|
|
constructor(arg0) {
|
|
guild = global.guild;
|
|
arg1 = guild;
|
|
hasJoinedGuild = global.hasJoinedGuild;
|
|
({ title, showingJoinGuildCta } = global);
|
|
tmp = closure_8();
|
|
fromGuildType = closure_4.createFromGuildType(guild);
|
|
isDiscoverableResult = fromGuildType.isDiscoverable();
|
|
if (!isDiscoverableResult) {
|
|
if (!hasJoinedGuild) {
|
|
tmp3 = importDefault;
|
|
tmp4 = dependencyMap;
|
|
num = 7;
|
|
obj2 = importDefault(dependencyMap[7]);
|
|
obj = {};
|
|
({ id: obj3.id, icon: obj3.icon } = guild);
|
|
flag = true;
|
|
obj.canAnimate = true;
|
|
num2 = 32;
|
|
obj.size = 32;
|
|
tmp6 = jsx;
|
|
num3 = 8;
|
|
guildIconSource = obj2.getGuildIconSource(obj);
|
|
obj1 = {};
|
|
obj1.style = tmp.guildIcon;
|
|
obj1.source = guildIconSource;
|
|
tmp7 = jsx(importDefault(dependencyMap[8]), obj1);
|
|
}
|
|
tmp9 = jsxs;
|
|
tmp10 = View;
|
|
obj2 = {};
|
|
obj2.style = tmp.guildDetailsContainer;
|
|
tmp12 = arg1;
|
|
tmp13 = dependencyMap;
|
|
obj16 = 9;
|
|
tmp11 = jsx;
|
|
obj3 = { hasMaxConnections: "/assets/images/native/premium/illustrations", isBoostOnlySubscription: 51 };
|
|
obj3.children = title;
|
|
items = [, ];
|
|
items[0] = jsx(arg1(dependencyMap[9]).Text, obj3);
|
|
obj4 = {};
|
|
obj4.style = tmp.guildDetailsContent;
|
|
items1 = [, ];
|
|
items1[0] = tmp7;
|
|
obj5 = {};
|
|
obj5.style = tmp.guildNameAndOnlineMembers;
|
|
obj6 = {};
|
|
obj6.style = tmp.guildNameWrapper;
|
|
tmp14 = importDefault;
|
|
num4 = 13;
|
|
obj7 = {};
|
|
obj7.guild = guild;
|
|
obj7.style = tmp.guildPartnerIcon;
|
|
num5 = 14;
|
|
tmp15 = importDefault(dependencyMap[13]);
|
|
obj7.size = arg1(dependencyMap[14]).Icon.Sizes.REFRESH_SMALL_16;
|
|
flag2 = true;
|
|
obj7.disableColor = true;
|
|
items2 = [, ];
|
|
items2[0] = jsx(tmp15, obj7);
|
|
obj8 = { hasMaxConnections: "Array", isBoostOnlySubscription: "isArray" };
|
|
obj8.children = guild.name;
|
|
items2[1] = jsx(arg1(dependencyMap[9]).Text, obj8);
|
|
obj6.children = items2;
|
|
items3 = [, ];
|
|
items3[0] = jsxs(View, obj6);
|
|
obj9 = {};
|
|
obj9.style = tmp.guildDescriptionSection;
|
|
if (isDiscoverableResult) {
|
|
tmp16 = null;
|
|
if (null != fromGuildType.presenceCount) {
|
|
obj10 = {};
|
|
tmp22 = jsx;
|
|
tmp23 = arg1;
|
|
tmp24 = dependencyMap;
|
|
tmp20 = jsxs;
|
|
tmp21 = Fragment;
|
|
obj11 = { hasMaxConnections: 1961492483, isBoostOnlySubscription: 1964048387 };
|
|
num7 = 10;
|
|
intl2 = arg1(dependencyMap[10]).intl;
|
|
obj12 = {};
|
|
obj12.membersOnline = fromGuildType.presenceCount;
|
|
obj11.children = intl2.format(arg1(dependencyMap[10]).t.LC+S+m, obj12);
|
|
items4 = [, , ];
|
|
items4[0] = jsx(arg1(dependencyMap[obj16]).Text, obj11);
|
|
tmp25 = View;
|
|
obj13 = {};
|
|
obj13.style = tmp.dotSeparator;
|
|
items4[1] = jsx(View, obj13);
|
|
if (!hasJoinedGuild) {
|
|
if (!showingJoinGuildCta) {
|
|
tmp26 = jsx;
|
|
tmp27 = arg1;
|
|
tmp28 = dependencyMap;
|
|
num8 = 11;
|
|
obj14 = {};
|
|
obj14.style = tmp.joinGuildButton;
|
|
obj14.onPress = function onPress() {
|
|
return guild(closure_2[12]).handleJoinGuild(guild.id);
|
|
};
|
|
obj15 = { hasMaxConnections: 1961492483, isBoostOnlySubscription: 1964048387 };
|
|
intl3 = arg1(dependencyMap[10]).intl;
|
|
obj15.children = intl3.string(arg1(dependencyMap[10]).t.riu2R5);
|
|
obj14.children = jsx(arg1(dependencyMap[obj16]).Text, obj15);
|
|
tmp29 = jsx(arg1(dependencyMap[11]).PressableOpacity, obj14);
|
|
}
|
|
items4[2] = tmp29;
|
|
obj10.children = items4;
|
|
tmp20Result = tmp20(tmp21, obj10);
|
|
}
|
|
tmp30 = jsx;
|
|
tmp31 = arg1;
|
|
tmp32 = dependencyMap;
|
|
obj16 = { hasMaxConnections: 1961492483, isBoostOnlySubscription: 1964048387 };
|
|
intl4 = arg1(dependencyMap[10]).intl;
|
|
obj16.children = intl4.string(arg1(dependencyMap[10]).t.inyJqO);
|
|
tmp29 = jsx(arg1(dependencyMap[obj16]).Text, obj16);
|
|
}
|
|
}
|
|
tmp17 = jsx;
|
|
tmp18 = arg1;
|
|
tmp19 = dependencyMap;
|
|
obj17 = { hasMaxConnections: 1961492483, isBoostOnlySubscription: 1964048387 };
|
|
num6 = 10;
|
|
intl = arg1(dependencyMap[10]).intl;
|
|
obj17.children = intl.string(arg1(dependencyMap[10]).t.H29mx4);
|
|
obj9.children = jsx(arg1(dependencyMap[obj16]).Text, obj17);
|
|
items3[1] = tmp11(tmp10, obj9);
|
|
obj5.children = items3;
|
|
items1[1] = tmp9(tmp10, obj5);
|
|
obj4.children = items1;
|
|
items[1] = tmp9(tmp10, obj4);
|
|
obj2.children = items;
|
|
return tmp9(tmp10, obj2);
|
|
}
|
|
obj18 = { style: tmp.guildIcon, guild: fromGuildType };
|
|
tmp8 = importDefault(dependencyMap[6]);
|
|
obj18.size = arg1(dependencyMap[6]).GuildIconSizes.XLARGE;
|
|
obj18.animate = true;
|
|
tmp7 = jsx(tmp8, obj18);
|
|
return;
|
|
}
|
|
}
|
|
const obj2 = { borderRadius: importDefault(dependencyMap[5]).radii.sm, borderColor: importDefault(dependencyMap[5]).colors.BORDER_STRONG };
|
|
const result = arg1(dependencyMap[15]).fileFinishedImporting("modules/messages/native/emoji/ExpressionGuildDetails.tsx");
|
|
|
|
export default ExpressionGuildDetails;
|
|
export { ExpressionGuildDetails };
|