2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 8932
|
|
|
|
|
// Function ID: 8933
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: EmbeddedActivityBackgroundImageWithOverlay
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [32, 19, 17, 21, 4836, 576, 8933, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: default
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 8932 (EmbeddedActivityBackgroundImageWithOverlay)
|
2026-10-01 14:13:23 +00:00
|
|
|
import Fragment from "Fragment" /* 21 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import nativeDefault from "native" /* 576 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import useEmbeddedActivityBackgroundDefault from "useEmbeddedActivityBackground" /* 8933 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import react_native from "react-native" /* 17 */;
|
|
|
|
|
import createStyles from "createStyles" /* 4836 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_4;
|
|
|
|
|
let hasOwnProperty;
|
|
|
|
|
let metroRequire;
|
|
|
|
|
let obj2;
|
|
|
|
|
({ ImageBackground: closure_4, View: hasOwnProperty, StyleSheet: metroRequire } = react_native);
|
|
|
|
|
const jsx = Fragment.jsx;
|
|
|
|
|
let obj = { overlay: obj2 };
|
|
|
|
|
obj2 = { flex: 1, opacity: 0.6, backgroundColor: nativeDefault.colors.BLACK };
|
|
|
|
|
let closure_8 = createStyles.createStyles(obj);
|
2026-09-18 19:45:33 +00:00
|
|
|
const names = ["embedded_background"];
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/native/EmbeddedActivityBackgroundImageWithOverlay.tsx");
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
export default function EmbeddedActivityBackgroundImageWithOverlay(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let application;
|
|
|
|
|
let borderRadius;
|
|
|
|
|
let closure_0;
|
|
|
|
|
let dimensionsStyle;
|
|
|
|
|
let first;
|
|
|
|
|
let obj3;
|
|
|
|
|
let obj4;
|
|
|
|
|
let resizeMode;
|
2026-09-18 19:45:33 +00:00
|
|
|
({ application, dimensionsStyle, borderRadius, resizeMode } = arg0);
|
|
|
|
|
if (resizeMode === undefined) {
|
|
|
|
|
resizeMode = "contain";
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
closure_0 = undefined;
|
2026-09-26 17:57:22 +00:00
|
|
|
const tmp = closure_8();
|
2026-10-01 14:13:23 +00:00
|
|
|
[first, closure_0] = react.useState(false);
|
|
|
|
|
let str;
|
|
|
|
|
const tmp4 = useEmbeddedActivityBackgroundDefault;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (application != null) {
|
|
|
|
|
str = application.id;
|
|
|
|
|
}
|
|
|
|
|
if (str == null) {
|
|
|
|
|
str = "";
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = { applicationId: str, names, size: 1024 };
|
|
|
|
|
const url = tmp4(obj).url;
|
|
|
|
|
let tmp8Result = null;
|
|
|
|
|
if (!first) {
|
|
|
|
|
tmp8Result = null;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null != url) {
|
2026-10-01 14:13:23 +00:00
|
|
|
tmp8Result = null;
|
2026-09-18 19:45:33 +00:00
|
|
|
if ("" !== url) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = {
|
|
|
|
|
resizeMode,
|
|
|
|
|
source: obj3,
|
|
|
|
|
style: dimensionsStyle,
|
|
|
|
|
imageStyle: obj4,
|
|
|
|
|
onError() {
|
|
|
|
|
return closure_0(true);
|
|
|
|
|
},
|
|
|
|
|
children: null
|
|
|
|
|
};
|
|
|
|
|
obj3 = { uri: url };
|
|
|
|
|
const tmp9 = React3;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (dimensionsStyle == null) {
|
2026-10-01 14:13:23 +00:00
|
|
|
dimensionsStyle = metroRequire.absoluteFillObject;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
const items = [tmp.overlay, ];
|
2026-10-01 14:13:23 +00:00
|
|
|
obj4 = { borderRadius };
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj6 = { borderRadius };
|
|
|
|
|
items[1] = obj6;
|
2026-10-01 14:13:23 +00:00
|
|
|
tmp8Result = tmp8(tmp9, obj2);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
return tmp8Result;
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|