This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,42 +1,45 @@
/* Metro module 11666; source: modules/global_discovery_apps/utils/getCollectionItemAssetUrl.tsx; dependencies: [661, 1457, 1423, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as AvatarUtilsModule from '../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import * as ImageLoaderUtilsModule from '../../image_upload/ImageLoaderUtils.tsx'; /* Metro dependency 1457 */
function _fun89441(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11852:6, offset: 0x0200d7db, size: 149 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const GLOBAL_ENV = global.window.GLOBAL_ENV;
const env0_3 = GLOBAL_ENV.API_ENDPOINT;
const env0_4 = GLOBAL_ENV.CDN_HOST;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/utils/getCollectionItemAssetUrl.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/utils/getCollectionItemAssetUrl.tsx');
exports.getCollectionItemAssetUrl = getCollectionItemAssetUrl;
}
function getCollectionItemAssetUrl({itemId, hash, containerWidth}) { // fn#89442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11852:293, offset: 0x0200d870, size: 313 bytes, params: 2, frame: 28
var r0;
var value;
var protocol;
containerWidth = containerWidth === undefined ? 1024 : containerWidth;
const imageLoaderUtilsModule = require(1457) /* metro dependency 1457: ImageLoaderUtils */;
const getBestMediaProxySize = imageLoaderUtilsModule.getBestMediaProxySize;
const moduleValue2 = imageLoaderUtilsModule;
const getDevicePixelRatio = moduleValue2.getDevicePixelRatio;
const value3 = Reflect.apply(getBestMediaProxySize, imageLoaderUtilsModule,
[containerWidth * Reflect.apply(getDevicePixelRatio, moduleValue2, [])]).toString();
const URLSearchParams = global.URLSearchParams;
const object2 = {size: value3};
const value4 = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
const uRLSearchParams = new URLSearchParams(object2);
const value6 = (uRLSearchParams instanceof Object ? uRLSearchParams : value4).toString();
const SUPPORTS_WEBP = (require(1423) /* metro dependency 1423: AvatarUtils */).SUPPORTS_WEBP;
const r8 = SUPPORTS_WEBP ? 'webp' : 'png';
if (CDN_HOST != null) {
r0 = 'https://' + CDN_HOST + '/app-assets/application-directory/collection-items/' + itemId + '/' + hash + '.' + r8 + '?' + value6;
} else {
protocol = global.location.protocol;
value = Endpoints.APPLICATION_DIRECTORY_COLLECTION_ITEM_IMAGE(itemId, hash, r8);
value = '' + protocol + API_ENDPOINT + value + '?' + value6;
r0 = value;
function getCollectionItemAssetUrl({itemId, hash, containerWidth}) { // fn#89442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11852:293, offset: 0x0200d870, size: 313 bytes, params: 2, frame: 28
var r0;
var value;
var protocol;
containerWidth = containerWidth === undefined ? 1024 : containerWidth;
const getBestMediaProxySize = ImageLoaderUtilsModule.getBestMediaProxySize;
const getDevicePixelRatio = ImageLoaderUtilsModule.getDevicePixelRatio;
const value3 = Reflect.apply(getBestMediaProxySize, ImageLoaderUtilsModule,
[containerWidth * Reflect.apply(getDevicePixelRatio, ImageLoaderUtilsModule, [])]).toString();
const URLSearchParams = global.URLSearchParams;
const object = {size: value3};
const value4 = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
const uRLSearchParams = new URLSearchParams(object);
const value6 = (uRLSearchParams instanceof Object ? uRLSearchParams : value4).toString();
const SUPPORTS_WEBP = (AvatarUtilsModule).SUPPORTS_WEBP;
const r8 = SUPPORTS_WEBP ? 'webp' : 'png';
if (CDN_HOST != null) {
r0 = 'https://' + CDN_HOST + '/app-assets/application-directory/collection-items/' + itemId + '/' + hash + '.' + r8 + '?' + value6;
} else {
protocol = global.location.protocol;
value = Endpoints.APPLICATION_DIRECTORY_COLLECTION_ITEM_IMAGE(itemId, hash, r8);
value = '' + protocol + API_ENDPOINT + value + '?' + value6;
r0 = value;
}
return r0;
}
return r0;
}
global.__d(_fun89441, 11666, [661, 1457, 1423, 2]) /* metro module 11666, dependencies: [661, 1457, 1423, 2] */;