// Metro module 12270 (f12271). import { Endpoints } from "../../../Constants"; import { getBestMediaProxySize, getDevicePixelRatio } from "../../image_upload/ImageLoaderUtils"; export default function getGuildEventImageURL(a0, a1) { if (a0.image == null) { return null; } const bestMediaProxySize = getBestMediaProxySize(a1 == null ? window.screen.width * getDevicePixelRatio() : a1); const CDN_HOST = window.GLOBAL_ENV.CDN_HOST; return (CDN_HOST != null ? `https://${CDN_HOST}/guild-events/${a0.id}/${a0.image}` : location.protocol + window.GLOBAL_ENV.API_ENDPOINT + Endpoints.GUILD_EVENT_IMAGE(a0.id, a0.image, "png")) + `?size=${bestMediaProxySize}`; };