Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/* Metro module 11666; source: modules/global_discovery_apps/utils/getCollectionItemAssetUrl.tsx; dependencies: [661, 1457, 1423, 2] */
|
||||
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');
|
||||
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;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user