decord/source/modules/guilds_bar/native/GuildsBarGeoRestrictedGuild.tsx

80 lines
4 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 14922
// Function ID: 113757
2026-07-20 16:05:17 +00:00
// Name: GUILD_ITEM_BADGE_SIZE
2026-07-24 07:16:23 +00:00
// Dependencies: [31, 14860, 33, 4130, 689, 14874, 1324, 14870, 1392, 5513, 4470, 1212, 8482, 14923, 14891, 5085, 2]
2026-07-20 16:05:17 +00:00
2026-07-24 07:16:23 +00:00
// Module 14922 (GUILD_ITEM_BADGE_SIZE)
2026-07-23 10:11:24 +00:00
import importAllResult from "result";
import { GUILD_ITEM_BADGE_SIZE } from "GUILD_ITEM_SIZE";
import { jsx } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
const require = arg1;
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { width: require("_createForOfIteratorHelperLoose").modules.mobile.GUILD_BAR_ITEM_SIZE, height: require("_createForOfIteratorHelperLoose").modules.mobile.GUILD_BAR_ITEM_SIZE };
2026-07-20 16:05:17 +00:00
obj.guildIcon = obj;
2026-07-23 10:11:24 +00:00
_createForOfIteratorHelperLoose = { borderColor: "transparent", width: GUILD_ITEM_BADGE_SIZE, height: GUILD_ITEM_BADGE_SIZE, bottom: 4, right: 12 };
obj.geoRestrictedBadge = _createForOfIteratorHelperLoose;
let closure_5 = _createForOfIteratorHelperLoose.createStyles(obj);
let items = [require("computeGuildsBarCutout")({ position: "bottom-right" })];
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function GuildsBarGeoRestrictedGuild(restrictedGuild) {
restrictedGuild = restrictedGuild.restrictedGuild;
const tmp2 = callback();
2026-07-24 07:16:23 +00:00
let obj = restrictedGuild(14870);
2026-07-20 16:05:17 +00:00
let animatableSourceWithFallback = null;
2026-07-23 10:11:24 +00:00
const tmp = importDefault(1324)("GuildsBarGeoRestrictedGuild");
2026-07-20 16:05:17 +00:00
if (null != restrictedGuild.icon) {
2026-07-23 10:11:24 +00:00
let obj1 = importDefault(1392);
2026-07-20 16:05:17 +00:00
animatableSourceWithFallback = obj1.getAnimatableSourceWithFallback(false, (canAnimate) => {
2026-07-23 10:11:24 +00:00
let obj = outer1_1(outer1_2[8]);
obj = { id: restrictedGuild.id, size: restrictedGuild(outer1_2[9]).ImageSizes[restrictedGuild(undefined, outer1_2[9]).GuildIconSizes.LARGE], icon: restrictedGuild.icon, canAnimate };
2026-07-20 16:05:17 +00:00
return obj.getGuildIconSource(obj);
});
}
const items = [, ];
({ id: arr[0], name: arr[1] } = restrictedGuild);
const memo = importAllResult.useMemo(() => ({
onPress() {
2026-07-23 10:11:24 +00:00
let obj = outer2_1(outer2_2[10]);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const intl = restrictedGuild(outer2_2[11]).intl;
obj.title = intl.string(restrictedGuild(outer2_2[11]).t.aCAiGl);
const intl2 = restrictedGuild(outer2_2[11]).intl;
obj = { serverName: outer1_0.name };
obj.body = intl2.format(restrictedGuild(outer2_2[11]).t["4cJV9S"], obj);
const intl3 = restrictedGuild(outer2_2[11]).intl;
obj.cancelText = intl3.string(restrictedGuild(outer2_2[11]).t.J2TBi3);
2026-07-20 16:05:17 +00:00
obj.onCancel = function onCancel() {
2026-07-23 10:11:24 +00:00
outer3_1(outer3_2[12]).leaveGuild(outer2_0.id);
2026-07-20 16:05:17 +00:00
};
obj.show(obj);
}
}), items);
2026-07-23 10:11:24 +00:00
obj = { selected: false, unread: false, circle: !tmp };
obj.styles = obj.useGuildsBarAnimatedWrapperStyles({ disableSelectedColor: true, disableBGColor: true });
obj.label = restrictedGuild.name;
obj.isDragTarget = false;
obj.config = memo;
obj.cutouts = items;
obj.overState = undefined;
const guildsBarAnimatedWrapperStyles = obj.useGuildsBarAnimatedWrapperStyles({ disableSelectedColor: true, disableBGColor: true });
2026-07-20 16:05:17 +00:00
const tmp8 = jsx;
obj = { style: tmp2.geoRestrictedBadge };
2026-07-24 07:16:23 +00:00
obj.externalChildren = jsx(importDefault(14923), { style: tmp2.geoRestrictedBadge });
2026-07-20 16:05:17 +00:00
obj1 = { guildId: restrictedGuild.id };
2026-07-24 07:16:23 +00:00
obj.expandedChildren = jsx(importDefault(14891), { guildId: restrictedGuild.id });
2026-07-20 16:05:17 +00:00
if (null != animatableSourceWithFallback) {
const obj2 = { source: animatableSourceWithFallback, style: tmp2.guildIcon, fadeDuration: 0 };
2026-07-23 10:11:24 +00:00
let tmp15 = jsx(importDefault(5085), { source: animatableSourceWithFallback, style: tmp2.guildIcon, fadeDuration: 0 });
2026-07-20 16:05:17 +00:00
} else {
2026-07-24 07:16:23 +00:00
const obj3 = { value: restrictedGuild.name, selected: false, animate: false, size: restrictedGuild(5513).GuildIconSizes.LARGE };
tmp15 = jsx(importDefault(5513), { value: restrictedGuild.name, selected: false, animate: false, size: restrictedGuild(5513).GuildIconSizes.LARGE });
const tmp13 = importDefault(5513);
2026-07-20 16:05:17 +00:00
}
obj.children = tmp15;
2026-07-24 07:16:23 +00:00
return tmp8(importDefault(14870), obj);
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/guilds_bar/native/GuildsBarGeoRestrictedGuild.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;