This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,13 @@
// Metro module 12170 (f12171).
import { getAPIBaseURL } from "../../_bundle/sendRequest";
import { getBestMediaProxySize } from "../image_upload/ImageLoaderUtils";
export function getApplicationAssetUrl(a0, a1, a2) {
const r36 = window.GLOBAL_ENV.CDN_HOST != null ? new URL(`${location.protocol}//${window.GLOBAL_ENV.CDN_HOST}/app-assets/${a0}/${a1.asset_id}.webp`) : new URL(`${getAPIBaseURL()}/applications/${a0}/app-assets/${a1.asset_id}.webp`);
if (a2 != null) {
r36.searchParams.set("size", getBestMediaProxySize(a2).toString());
}
if (a1.metadata.is_animated) {
r36.searchParams.set("animated", "true");
}
return r36.toString();
}