// Module ID: 15675 // Function ID: 15676 // Name: items // Dependencies: [19, 15613, 21, 4668, 712, 15626, 1367, 15623, 1435, 7226, 4832, 1236, 8911, 15676, 15645, 5454, 2] // Module 15675 (items) import ThemesDefault from "Themes" /* 712 */; import useIsMobileVisualRefreshExperimentEnabledDefault from "useIsMobileVisualRefreshExperimentEnabled" /* 1367 */; import computeGuildsBarCutoutDefault from "computeGuildsBarCutout" /* 15626 */; import GuildRowWrapperDefault from "GuildRowWrapper" /* 15645 */; import _modDef15676 from "module_15676" /* 15676 */; import importAllResult from "noop" /* 19 */; import { GUILD_ITEM_BADGE_SIZE } from "GUILD_ITEM_SIZE" /* 15613 */; import { jsx } from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4668 */; const require = arg1; let c3 = importAllResult; let obj = { guildIcon: null, geoRestrictedBadge: null }; obj = { width: ThemesDefault.modules.mobile.GUILD_BAR_ITEM_SIZE, height: ThemesDefault.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); let items = [computeGuildsBarCutoutDefault({ position: "bottom-right" })]; const memoResult = importAllResult.memo(function GuildsBarGeoRestrictedGuild(restrictedGuild) { restrictedGuild = restrictedGuild.restrictedGuild; const tmp4 = callback(); let obj = restrictedGuild(15623); let animatableSourceWithFallback = null; const tmp3 = useIsMobileVisualRefreshExperimentEnabledDefault("GuildsBarGeoRestrictedGuild"); const tmp5 = restrictedGuild; if (null != restrictedGuild.icon) { let tmpResult = tmp(1435); animatableSourceWithFallback = tmpResult.getAnimatableSourceWithFallback(false, (canAnimate) => { let obj = closure_1_1(closure_1_2[8]); obj = { id: restrictedGuild.id, size: restrictedGuild(closure_1_2[9]).ImageSizes[restrictedGuild(undefined, closure_1_2[9]).GuildIconSizes.LARGE], icon: restrictedGuild.icon, canAnimate }; return obj.getGuildIconSource(obj); }); } items = [, ]; ({ id: arr[0], name: arr[1] } = restrictedGuild); const memo = importAllResult.useMemo(() => ({ onPress() { let obj = closure_1_1(closure_1_2[10]); obj = { title: null, body: null, cancelText: null, onCancel: null }; const intl = closure_1_0(closure_1_2[11]).intl; obj[0] = intl.string(closure_1_0(closure_1_2[11]).t.aCAiGl); const intl2 = closure_1_0(closure_1_2[11]).intl; obj = { serverName: name.name }; obj[1] = intl2.format(closure_1_0(closure_1_2[11]).t["4cJV9S"], obj); const intl3 = closure_1_0(closure_1_2[11]).intl; obj[2] = intl3.string(closure_1_0(closure_1_2[11]).t.J2TBi3); obj[3] = function onCancel() { closure_1_1(closure_1_2[12]).leaveGuild(id.id); }; obj.show(obj); } }), items); 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 }; tmpResult = tmp(15623); obj = { style: tmp4.geoRestrictedBadge }; obj[9] = jsx(_modDef15676, { style: tmp4.geoRestrictedBadge }); obj[10] = jsx(GuildRowWrapperDefault, { guildId: restrictedGuild.id }); if (null != animatableSourceWithFallback) { const obj2 = { source: null, style: null, fadeDuration: 0 }; obj2[0] = animatableSourceWithFallback; obj2[1] = tmp4.guildIcon; let tmp9Result = tmp9(tmp(5454), obj2); } else { const obj3 = { value: null, selected: false, animate: false, size: null }; obj3[0] = restrictedGuild.name; obj3[3] = tmp5(7226).GuildIconSizes.LARGE; tmp9Result = tmp9(tmp(7226), obj3); const tmpResult1 = tmp(7226); } obj[11] = tmp9Result; return ; }); const result = require("set").fileFinishedImporting("modules/guilds_bar/native/GuildsBarGeoRestrictedGuild.tsx"); export default memoResult;