// Module ID: 12762 // Function ID: 12763 // Name: AppDMOptionsBottomSheet // Dependencies: [19, 17, 5356, 676, 21, 4380, 712, 589, 8930, 4347, 6125, 5842, 5503, 5873, 5480, 1236, 2] // Exports: default // Module 12762 (AppDMOptionsBottomSheet) import ThemesDefault from "Themes" /* 712 */; import closure_3 from "noop" /* 19 */; import { View } from "get ActivityIndicator" /* 17 */; import closure_5 from "recomputeFromAppTokens" /* 5356 */; import { UserSettingsSections } from "ME" /* 676 */; import jsxProd from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4380 */; const require = arg1; ({ jsx: error, jsxs: closure_8 } = jsxProd); createCacheKey = { sheet: null, content: null }; createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST }; createCacheKey[0] = createCacheKey; createCacheKey[1] = { paddingLeft: 16, paddingRight: 16, paddingBottom: 24 }; let closure_9 = createCacheKey.createStyles(createCacheKey); const result = require("set").fileFinishedImporting("modules/app_dms/native/AppDMOptionsBottomSheet.tsx"); export default function AppDMOptionsBottomSheet(userId) { userId = userId.userId; const channel = userId.channel; const application = userId.application; let stateFromStores; let tmp = callback3(); let obj = userId(application[7]); const items = [closure_5]; stateFromStores = obj.useStateFromStores(items, () => { let id; if (application != null) { id = application.id; } return closure_1_5.getNewestTokenForApplication(id); }); const items1 = [channel.id, userId]; const items2 = [application, stateFromStores]; const callback = stateFromStores.useCallback(() => { channel(application[8])({ userId, channelId: channel.id }); channel(application[9]).hideActionSheet(); }, items1); const callback1 = stateFromStores.useCallback(() => { let tmp = null != application; if (tmp) { tmp = null != stateFromStores; } if (tmp) { let obj = userId(application[10]); obj = { screen: null, params: null }; obj[0] = closure_1_6.AUTHORIZED_APP; obj = { oauth2Token: null }; obj[0] = stateFromStores; obj[1] = obj; obj.openUserSettings(obj); channel(application[9]).hideActionSheet(); const obj4 = channel(application[9]); } }, items2); const effect = stateFromStores.useEffect(() => { const response = channel(application[11]).fetch(); }, []); obj = { startExpanded: true, backgroundStyles: tmp.sheet, children: null }; obj = { style: tmp.content, children: null }; obj1 = { hasIcons: false, children: null }; const obj2 = { label: null, onPress: null }; const intl = userId(application[15]).intl; obj2[0] = intl.string(userId(application[15]).t.iXAna6); obj2[1] = callback; const items3 = [callback(userId(application[14]).TableRow, obj2), ]; const obj3 = { label: null, onPress: null, disabled: null }; const intl2 = userId(application[15]).intl; obj3[0] = intl2.string(userId(application[15]).t.KUsDNI); obj3[1] = callback1; obj3[2] = null == stateFromStores; items3[1] = callback(userId(application[14]).TableRow, obj3); obj1[1] = items3; obj[1] = callback2(userId(application[13]).TableRowGroup, obj1); obj[2] = callback(View, obj); return callback(userId(application[12]).BottomSheet, obj); };