decord/source/modules/quests/native/QuestModalContentCloudBackground.tsx
2026-07-30 10:14:41 +00:00

97 lines
3 KiB
TypeScript

// Module ID: 14147
// Function ID: 14148
// Name: items
// Dependencies: [19, 17, 21, 4189, 3899, 4125, 4611, 5141, 14148, 14149, 2]
// Exports: default
// Module 14147 (items)
import "noop";
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
import createCacheKey from "createCacheKey";
let c3;
let c4;
let c5;
let closure_6;
const require = arg1;
({ View: c3, StyleSheet: c4 } = get_ActivityIndicator);
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let closure_7 = createCacheKey.createStyles((arg0) => {
let obj = {};
const merged = Object.assign(absoluteFillObject.absoluteFillObject);
obj = { wrapper: null, cloudsImage: null, cloudsImageLight: null, gradient: null, solidBackground: null };
const merged1 = Object.assign(arg0 ? { top: "Array" } : { bottom: "Array" });
obj.height = 380;
obj.zIndex = 1;
obj[0] = obj;
obj = {};
const merged2 = Object.assign(tmp.absoluteFillObject);
const merged3 = Object.assign(arg0 ? { top: "Array" } : { bottom: "Array" });
if (arg0) {
let obj1 = {};
} else {
obj1 = { transform: null };
const items = [{ rotate: "180deg" }];
obj1[0] = items;
}
const merged4 = Object.assign(obj1);
obj.width = "100%";
obj[1] = obj;
const obj2 = {};
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] = {};
return obj;
});
let items = ["#292252FF", "#1E1F2200"];
const substr = items.slice();
let closure_9 = substr.reverse();
const result = require("jsxProd").fileFinishedImporting("modules/quests/native/QuestModalContentCloudBackground.tsx");
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);
let obj = require(3899) /* isThemeLight */;
let obj1 = require(4125) /* useTheme */;
const isThemeDarkResult = obj.isThemeDark(obj1.useTheme());
obj = { style: items, children: null };
items = [tmp.wrapper, style];
if (isThemeDarkResult) {
obj = { colors: null, style: null };
obj[0] = "top" === str ? items : closure_9;
obj[1] = tmp.gradient;
tmp6(importDefault(4611), obj);
} else {
obj1 = { style: null };
obj1[0] = tmp.solidBackground;
const items1 = [tmp6(tmp5, obj1), ];
const obj2 = { style: null, source: null, resizeMode: null };
const items2 = [isThemeDarkResult ? tmp.cloudsImage : tmp.cloudsImageLight, imgStyle];
obj2[0] = items2;
obj2[1] = importDefault(isThemeDarkResult ? 14148 : 14149);
obj2[2] = str2;
items1[1] = tmp6(importDefault(5141), obj2);
obj[1] = items1;
return tmp4(tmp5, obj);
}
};