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

80 lines
3.7 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 15609
// Function ID: 15610
2026-07-29 08:29:29 +00:00
// Name: items
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 15548, 21, 4661, 712, 15561, 1367, 15558, 1435, 7188, 4827, 1236, 8874, 15610, 15580, 5449, 2]
2026-07-20 16:05:17 +00:00
2026-08-15 05:55:55 +00:00
// Module 15609 (items)
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
import { GUILD_ITEM_BADGE_SIZE } from "GUILD_ITEM_SIZE";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
let obj = { guildIcon: null, geoRestrictedBadge: null };
obj = { width: require("Themes").modules.mobile.GUILD_BAR_ITEM_SIZE, height: require("Themes").modules.mobile.GUILD_BAR_ITEM_SIZE };
obj[0] = obj;
obj[1] = { borderColor: "transparent", width: GUILD_ITEM_BADGE_SIZE, height: GUILD_ITEM_BADGE_SIZE, bottom: 4, right: 12 };
let closure_5 = createCacheKey.createStyles(obj);
2026-07-23 10:11:24 +00:00
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;
2026-07-29 08:29:29 +00:00
const tmp4 = callback();
2026-08-15 05:55:55 +00:00
let obj = restrictedGuild(15558);
2026-07-20 16:05:17 +00:00
let animatableSourceWithFallback = null;
2026-08-11 06:20:06 +00:00
const tmp3 = importDefault(1367)("GuildsBarGeoRestrictedGuild");
2026-07-29 08:29:29 +00:00
const tmp5 = restrictedGuild;
2026-07-20 16:05:17 +00:00
if (null != restrictedGuild.icon) {
2026-08-11 06:20:06 +00:00
let tmpResult = tmp(1435);
2026-07-29 08:29:29 +00:00
animatableSourceWithFallback = tmpResult.getAnimatableSourceWithFallback(false, (arg0) => {
2026-07-23 10:11:24 +00:00
let obj = outer1_1(outer1_2[8]);
2026-07-29 08:29:29 +00:00
obj = { id: restrictedGuild.id, size: null, icon: null, canAnimate: null };
obj[1] = restrictedGuild(outer1_2[9]).ImageSizes[restrictedGuild(undefined, outer1_2[9]).GuildIconSizes.LARGE];
obj[2] = restrictedGuild.icon;
obj[3] = arg0;
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-29 08:29:29 +00:00
let obj = outer1_1(outer1_2[10]);
obj = { title: null, body: null, cancelText: null, onCancel: null };
const intl = outer1_0(outer1_2[11]).intl;
obj[0] = intl.string(outer1_0(outer1_2[11]).t.aCAiGl);
const intl2 = outer1_0(outer1_2[11]).intl;
obj = { serverName: name.name };
obj[1] = intl2.format(outer1_0(outer1_2[11]).t["4cJV9S"], obj);
const intl3 = outer1_0(outer1_2[11]).intl;
obj[2] = intl3.string(outer1_0(outer1_2[11]).t.J2TBi3);
obj[3] = function onCancel() {
outer1_1(outer1_2[12]).leaveGuild(id.id);
2026-07-20 16:05:17 +00:00
};
obj.show(obj);
}
}), items);
2026-08-04 08:36:32 +00:00
obj = { selected: false, unread: false, circle: !tmp3, styles: obj.useGuildsBarAnimatedWrapperStyles({ disableSelectedColor: true, disableBGColor: true }), label: restrictedGuild.name, isDragTarget: false, config: memo, cutouts: items, overState: "a", externalChildren: 1, expandedChildren: 2, children: 4 };
2026-08-15 05:55:55 +00:00
tmpResult = tmp(15558);
2026-07-29 08:29:29 +00:00
obj = { style: tmp4.geoRestrictedBadge };
2026-08-15 05:55:55 +00:00
obj[9] = jsx(importDefault(15610), { style: tmp4.geoRestrictedBadge });
obj[10] = jsx(importDefault(15580), { guildId: restrictedGuild.id });
2026-07-20 16:05:17 +00:00
if (null != animatableSourceWithFallback) {
2026-07-29 08:29:29 +00:00
const obj2 = { source: null, style: null, fadeDuration: 0 };
obj2[0] = animatableSourceWithFallback;
obj2[1] = tmp4.guildIcon;
2026-08-15 05:55:55 +00:00
let tmp9Result = tmp9(tmp(5449), obj2);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj3 = { value: null, selected: false, animate: false, size: null };
obj3[0] = restrictedGuild.name;
2026-08-15 05:55:55 +00:00
obj3[3] = tmp5(7188).GuildIconSizes.LARGE;
tmp9Result = tmp9(tmp(7188), obj3);
const tmpResult1 = tmp(7188);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[11] = tmp9Result;
return <tmpResult style={tmp4.geoRestrictedBadge} />;
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;