// Module ID: 9721 // Function ID: 9722 // Name: EmbeddedActivityBackgroundImageWithOverlay // Dependencies: [32, 19, 17, 21, 4605, 576, 9722, 2] // Exports: default // Module 9721 (EmbeddedActivityBackgroundImageWithOverlay) import nativeDefault from "native" /* 576 */; import useEmbeddedActivityBackgroundDefault from "useEmbeddedActivityBackground" /* 9722 */; import _slicedToArray from "module_32" /* 32 */; import noop from "module_19" /* 19 */; get_ActivityIndicator = fn(17); ({ ImageBackground: closure_4, View: hasOwnProperty, StyleSheet: metroRequire } = get_ActivityIndicator); const jsx = fn(21).jsx; const createStyles = fn(4605); let obj2 = { overlay: { flex: 1, opacity: 0.6, backgroundColor: nativeDefault.colors.BLACK } }; let closure_8 = createStyles.createStyles(obj2); const names = ["embedded_background"]; const size = fn(2); const result = size.fileFinishedImporting("modules/activities/native/EmbeddedActivityBackgroundImageWithOverlay.tsx"); export default function EmbeddedActivityBackgroundImageWithOverlay(arg0) { ({ application, dimensionsStyle, borderRadius, resizeMode } = arg0); if (resizeMode === undefined) { resizeMode = "contain"; } const tmp2 = _slicedToArray(noop.useState(false), 2); closure_0 = tmp2[1]; let str; const tmp = closure_8(); if (application != null) { str = application.id; } if (str == null) { str = ""; } const url = useEmbeddedActivityBackgroundDefault({ applicationId: str, names, size: 1024 }).url; let tmp7Result = null; if (!tmp2[0]) { tmp7Result = null; if (null != url) { tmp7Result = null; if ("" !== url) { const obj2 = { resizeMode, source: null, style: null, imageStyle: null, onError: null, children: null }; const obj3 = { uri: url }; obj2.source = obj3; if (dimensionsStyle == null) { dimensionsStyle = absoluteFillObject.absoluteFillObject; } obj2.style = dimensionsStyle; const obj4 = { borderRadius }; obj2.imageStyle = obj4; obj2.onError = function onError() { return closure_0(true); }; const obj5 = { style: null }; const items = [tmp.overlay, ]; const obj6 = { borderRadius }; items[1] = obj6; obj5.style = items; obj2.children = ; tmp7Result = tmp7(React4, obj2); } } } return tmp7Result; };