Files
2026-07-28 01:06:53 +03:00

45 lines
2.3 KiB
TypeScript

/* Metro module 9819; source: utils/GIFPickerUtils.tsx; dependencies: [661, 2] */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun76911(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10005:6, offset: 0x01de93a4, size: 160 bytes, params: 8, frame: 20
const closure = function(a0) {
return a0 === 'Klipy';
};
const closure2 = function(a0) {
return isKlipyProvider(a0);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('utils/GIFPickerUtils.tsx');
exports.isKlipyProvider = closure;
exports.shouldUseAnimatedWebPThumbnail = closure2;
exports.getGIFThumbnailForFavorite = function(a0) {
var r0;
var property;
if (shouldUseAnimatedWebPThumbnail(a0.providerName)) {
property = a0.thumbnail;
if (property != null) {
r0 = property.proxyURL ?? property.url;
r0 = r0 ?? property.uri;
return r0;
}
}
};
exports.calculateAnalyticsMetadata = calculateAnalyticsMetadata;
function calculateAnalyticsMetadata(a0, a1, a2) { // fn#76915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10005:630, offset: 0x01de9495, size: 209 bytes, params: 4, frame: 19
let value = a2;
const value2 = null;
const r1 = value2 != a1 ? {[a1]: 1} : {};
const {offset, limit, results, totalResults} = value2 != value ? value : {};
const GIF = SearchTypes.GIF;
value = 1;
const Object = global.Object;
return {search_type: GIF, load_id: a0, limit: limit, offset: offset,
page: value2 != limit && value2 != offset ? global.Math.floor(offset / limit) + value : value, total_results: totalResults, page_results: value2 != results ? results : value2, num_modifiers: Object.keys(r1).length, modifiers: r1};
}
}
global.__d(_fun76911, 9819, [661, 2]) /* metro module 9819, dependencies: [661, 2] */;