decord/source/modules/media_channel/native/MediaPostGridThumbnail.tsx

117 lines
4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11239
// Function ID: 11240
2026-07-20 16:05:17 +00:00
// Name: MediaPostGridThumbnailAndroid
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 11237, 5454, 500, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11239 (MediaPostGridThumbnailAndroid)
import noopAll from "noop" /* 19 */;
import preloadDefault from "preload" /* 5454 */;
import ForumPostMediaAndroid from "ForumPostMediaAndroid" /* 11237 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function MediaPostGridThumbnailAndroid(arg0) {
({ shouldSpoiler, blurTheme, source, androidStyle, backgroundImagesource } = arg0);
if (null == backgroundImagesource) {
2026-07-29 08:29:29 +00:00
let obj = { style: null, source: null, blurRadius: null, resizeMode: "cover", children: null };
obj[0] = androidStyle;
obj[1] = source;
2026-07-20 16:05:17 +00:00
let num = 0;
if (shouldSpoiler) {
num = 10;
}
2026-07-29 08:29:29 +00:00
obj[2] = num;
obj = { shouldSpoiler: null, blurTheme: null };
obj[0] = shouldSpoiler;
obj[1] = blurTheme;
2026-08-24 06:08:38 +00:00
obj[4] = callback(ForumPostMediaAndroid.ForumPostMediaSpoiler, obj);
2026-07-29 08:29:29 +00:00
let tmp2Result = tmp2(closure_3, obj);
2026-07-20 16:05:17 +00:00
const tmp3 = closure_3;
} else {
2026-07-29 08:29:29 +00:00
obj = { style: null, source: null, resizeMode: "cover", imageStyle: null, children: null };
obj[0] = androidStyle;
obj[1] = backgroundImagesource;
obj[3] = { opacity: 0.2 };
2026-08-24 06:08:38 +00:00
obj1 = { style: null, source: null, resizeMode: null };
2026-07-29 08:29:29 +00:00
obj1[0] = closure_4.absoluteFill;
obj1[1] = source;
obj1[2] = tmp;
2026-08-24 06:08:38 +00:00
const items = [callback(preloadDefault, obj1), ];
2026-07-29 08:29:29 +00:00
const obj2 = { shouldSpoiler: null, blurTheme: null };
obj2[0] = shouldSpoiler;
obj2[1] = blurTheme;
2026-08-24 06:08:38 +00:00
items[1] = callback(ForumPostMediaAndroid.ForumPostMediaSpoiler, obj2);
2026-07-29 08:29:29 +00:00
obj[4] = items;
2026-07-20 16:05:17 +00:00
tmp2Result = callback2(closure_3, obj);
}
return tmp2Result;
}
function MediaPostGridThumbnailIOS(arg0) {
({ shouldSpoiler, blurTheme, source, iosStyle, backgroundImagesource, resizeMode } = arg0);
if (null == backgroundImagesource) {
2026-07-29 08:29:29 +00:00
let obj = { children: null };
obj = { style: null, source: null, resizeMode: null };
obj[0] = iosStyle;
obj[1] = source;
obj[2] = resizeMode;
2026-08-24 06:08:38 +00:00
const items = [callback(preloadDefault, obj), ];
2026-07-29 08:29:29 +00:00
obj = { shouldSpoiler: null, blurTheme: null };
obj[0] = shouldSpoiler;
obj[1] = blurTheme;
2026-08-24 06:08:38 +00:00
items[1] = callback(ForumPostMediaAndroid.ForumPostMediaSpoiler, obj);
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-08-24 06:08:38 +00:00
obj1 = obj;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj1 = { children: null };
const obj2 = { style: null, source: null, resizeMode: "cover" };
const items1 = [closure_4.absoluteFill, { opacity: 0.2 }];
obj2[0] = items1;
obj2[1] = backgroundImagesource;
2026-08-24 06:08:38 +00:00
const items2 = [callback(preloadDefault, obj2), , ];
2026-07-29 08:29:29 +00:00
const obj3 = { style: null, source: null, resizeMode: null };
obj3[0] = iosStyle;
obj3[1] = source;
obj3[2] = resizeMode;
2026-08-24 06:08:38 +00:00
items2[1] = callback(preloadDefault, obj3);
2026-07-29 08:29:29 +00:00
const obj4 = { shouldSpoiler: null, blurTheme: null };
obj4[0] = shouldSpoiler;
obj4[1] = blurTheme;
2026-08-24 06:08:38 +00:00
items2[2] = callback(ForumPostMediaAndroid.ForumPostMediaSpoiler, obj4);
2026-07-29 08:29:29 +00:00
obj1[0] = items2;
2026-07-20 16:05:17 +00:00
}
return closure_6(closure_7, obj1);
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ ImageBackground: c3, StyleSheet: c4 } = get_ActivityIndicator);
({ jsx: c5, jsxs: closure_6, Fragment: error } = jsxProd);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/media_channel/native/MediaPostGridThumbnail.tsx");
2026-07-20 16:05:17 +00:00
export default function MediaPostGridThumbnail(isPortrait) {
let tmp = true === isPortrait.isPortrait;
if (tmp) {
tmp = false === isPortrait.shouldSpoiler;
}
let str = "cover";
let source;
if (tmp) {
source = isPortrait.source;
str = "contain";
}
let obj = {};
const merged = Object.assign(isPortrait);
2026-07-29 08:29:29 +00:00
obj.backgroundImagesource = source;
obj.resizeMode = str;
2026-07-20 16:05:17 +00:00
if (obj2.isAndroid()) {
obj = {};
const merged1 = Object.assign(obj);
let tmp4Result = tmp4(MediaPostGridThumbnailAndroid, obj);
} else {
obj = {};
const merged2 = Object.assign(obj);
tmp4Result = tmp4(MediaPostGridThumbnailIOS, obj);
}
return tmp4Result;
};