decord/source/modules/quests/native/QuestModalContentCloudBackground.tsx

98 lines
3 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 14367
// Function ID: 14368
2026-07-20 16:05:17 +00:00
// Name: items
2026-08-08 06:10:11 +00:00
// Dependencies: [19, 17, 21, 4303, 4011, 4239, 4725, 5268, 14368, 14369, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-08 06:10:11 +00:00
// Module 14367 (items)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-29 08:29:29 +00:00
({ View: c3, StyleSheet: c4 } = get_ActivityIndicator);
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let closure_7 = createCacheKey.createStyles((arg0) => {
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(absoluteFillObject.absoluteFillObject);
obj = { wrapper: null, cloudsImage: null, cloudsImageLight: null, gradient: null, solidBackground: null };
2026-08-08 06:10:11 +00:00
const merged1 = Object.assign(arg0 ? { top: "sa" } : { bottom: "sa" });
2026-07-29 08:29:29 +00:00
obj.height = 380;
obj.zIndex = 1;
obj[0] = obj;
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged2 = Object.assign(tmp.absoluteFillObject);
2026-08-08 06:10:11 +00:00
const merged3 = Object.assign(arg0 ? { top: "sa" } : { bottom: "sa" });
2026-07-20 16:05:17 +00:00
if (arg0) {
2026-07-29 08:29:29 +00:00
let obj1 = {};
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj1 = { transform: null };
const items = [{ rotate: "180deg" }];
obj1[0] = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const merged4 = Object.assign(obj1);
obj.width = "100%";
obj[1] = obj;
2026-07-20 16:05:17 +00:00
const obj2 = {};
2026-07-29 08:29:29 +00:00
const merged5 = Object.assign(tmp.absoluteFillObject);
obj2.bottom = undefined;
obj2.width = "100%";
obj[2] = obj2;
const obj3 = {};
const merged6 = Object.assign(tmp.absoluteFillObject);
obj3.opacity = 1;
obj[3] = obj3;
const merged7 = Object.assign(tmp.absoluteFillObject);
obj[4] = {};
2026-07-20 16:05:17 +00:00
return obj;
});
2026-07-23 10:11:24 +00:00
let items = ["#292252FF", "#1E1F2200"];
2026-07-20 16:05:17 +00:00
const substr = items.slice();
let closure_9 = substr.reverse();
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/quests/native/QuestModalContentCloudBackground.tsx");
2026-07-20 16:05:17 +00:00
export default function QuestModalContentCloudBackground(align) {
let imgStyle;
let style;
align = align.align;
let str = "bottom";
if (undefined !== align) {
str = align;
}
const resizeMode = align.resizeMode;
let str2 = "cover";
({ style, imgStyle } = align);
if (undefined !== resizeMode) {
str2 = resizeMode;
}
const tmp = callback("bottom" === str);
2026-08-07 06:50:47 +00:00
let obj = require(4011) /* isThemeLight */;
2026-08-08 06:10:11 +00:00
let obj1 = require(4239) /* useTheme */;
2026-07-20 16:05:17 +00:00
const isThemeDarkResult = obj.isThemeDark(obj1.useTheme());
2026-07-29 08:29:29 +00:00
obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.wrapper, style];
2026-07-20 16:05:17 +00:00
if (isThemeDarkResult) {
2026-07-29 08:29:29 +00:00
obj = { colors: null, style: null };
obj[0] = "top" === str ? items : closure_9;
obj[1] = tmp.gradient;
2026-08-08 06:10:11 +00:00
tmp6(importDefault(4725), obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj1 = { style: null };
obj1[0] = tmp.solidBackground;
const items1 = [tmp6(tmp5, obj1), ];
const obj2 = { style: null, source: null, resizeMode: null };
2026-07-20 16:05:17 +00:00
const items2 = [isThemeDarkResult ? tmp.cloudsImage : tmp.cloudsImageLight, imgStyle];
2026-07-29 08:29:29 +00:00
obj2[0] = items2;
2026-08-08 06:10:11 +00:00
obj2[1] = importDefault(isThemeDarkResult ? 14368 : 14369);
2026-07-29 08:29:29 +00:00
obj2[2] = str2;
2026-08-08 06:10:11 +00:00
items1[1] = tmp6(importDefault(5268), obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items1;
return tmp4(tmp5, obj);
2026-07-20 16:05:17 +00:00
}
};