// Module ID: 14260 // Function ID: 14261 // Name: RefreshEmptyState // Dependencies: [19, 17, 1074, 21, 4605, 5574, 576, 8682, 5025, 4456, 2] // Exports: ThemedEmptyState // Module 14260 (RefreshEmptyState) import nativeDefault from "native" /* 576 */; import shared from "shared" /* 4456 */; import components_Button_Button from "components/Button/Button" /* 5025 */; import LegacyText_LegacyTextDefault from "LegacyText/LegacyText" /* 8682 */; import noop from "module_19" /* 19 */; import TextStyles_mod from "TextStyles" /* 5574 */; require = fn; class EmptyState { constructor(arg0) { ({ source, title, callToAction } = global); ({ body, containerStyle, imageStyle, titleStyle, bodyStyle } = global); tmp = closure_7(); tmp3 = View; obj = { style: null, children: null }; items = [, ]; items[0] = tmp.container; items[1] = containerStyle; obj.style = items; tmp4 = null; tmp2 = jsxs; if (null != source) { tmp5 = jsx; tmp6 = Image; obj1 = { source: null, style: null }; obj1.source = source; items1 = [, ]; items1[0] = tmp.image; items1[1] = imageStyle; obj1.style = items1; tmp4 = jsx(Image, obj1); } items2 = [, , , ]; items2[0] = tmp4; tmp7 = null; if (null != title) { tmp8 = jsx; tmp9 = closure_1; tmp10 = closure_2; obj7 = { style: null, children: null }; items3 = [, ]; items3[0] = tmp.title; items3[1] = titleStyle; obj7.style = items3; obj7.children = title; tmp7 = jsx(closure_1(closure_2[7]), obj7); } items2[1] = tmp7; tmp11 = jsx; tmp12 = closure_2; obj8 = { style: null, children: body }; items4 = [, ]; items4[0] = tmp.body; items4[1] = bodyStyle; obj8.style = items4; items2[2] = jsx(closure_1(closure_2[7]), obj8); tmp11Result = null; if (null != callToAction) { obj9 = { style: null, children: null }; obj9.style = tmp.cta; tmp14 = closure_0; obj10 = { shrink: true, text: null, onPress: null, size: "sm" }; ({ label: obj6.text, onPress: obj6.onPress } = callToAction); obj9.children = tmp11(closure_0(tmp12[8]).Button, obj10); tmp11Result = tmp11(tmp3, obj9); } items2[3] = tmp11Result; obj.children = items2; return tmp2(tmp3, obj); } } get_ActivityIndicator = fn(17); ({ View: c3, Image: closure_4 } = get_ActivityIndicator); const Fonts = fn(1074).Fonts; const jsxProd = fn(21); ({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd); const createStyles = fn(4605); let obj2 = { container: { alignItems: "center", justifyContent: "center", padding: 16 }, title: null, body: null, image: null, cta: null }; let obj3 = {}; let TextStyles = TextStyles_mod; let merged = Object.assign(TextStyles(Fonts.DISPLAY_SEMIBOLD, nativeDefault.colors.MOBILE_TEXT_HEADING_PRIMARY, 16)); obj3.textAlign = "center"; obj3.marginBottom = 8; obj2.title = obj3; let obj4 = {}; let TextStyles = TextStyles_mod; let merged1 = Object.assign(TextStyles(Fonts.PRIMARY_MEDIUM, nativeDefault.colors.TEXT_SUBTLE, 14)); obj4.textAlign = "center"; obj2.body = obj4; obj2.image = { marginBottom: 32 }; obj2.cta = { alignSelf: "center", marginTop: 16 }; const React5 = createStyles.createStyles(obj2); const size = fn(2); const result = size.fileFinishedImporting("design/void/RefreshEmptyState/native/RefreshEmptyState.tsx"); export default EmptyState; export const ThemedEmptyState = function ThemedEmptyState(darkSource) { let lightSource = darkSource.darkSource; const merged = Object.assign(darkSource, Object.assign({ lightSource: 0, darkSource: 0 })); const obj = shared; if (obj2.isThemeLight(obj.useThemeContext().theme)) { lightSource = darkSource.lightSource; } const merged1 = Object.assign(merged); return hasOwnProperty(EmptyState, { source: lightSource }); };