42 lines
2.1 KiB
TypeScript
42 lines
2.1 KiB
TypeScript
/* Metro module 9819; source: utils/GIFPickerUtils.tsx; dependencies: [661, 2] */
|
|
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});
|
|
const env0_0 = (require(661) /* metro dependency 661: Constants */).SearchTypes;
|
|
(require(2) /* metro dependency 2 */).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};
|
|
}
|
|
|