// Module ID: 9674 // Function ID: 9675 // Name: ClearAfterOptionsActionSheet // Dependencies: [32, 19, 17, 9602, 21, 4380, 712, 5503, 5502, 1236, 8136, 8135, 9675, 4815, 4347, 2] // Exports: default // Module 9674 (ClearAfterOptionsActionSheet) import ThemesDefault from "Themes" /* 712 */; import getSystemLocale from "getSystemLocale" /* 1236 */; import Button from "Button" /* 4815 */; import RedesignBottomSheetTitleHeaderBase from "RedesignBottomSheetTitleHeaderBase" /* 5502 */; import Background from "Background" /* 5503 */; import context from "context" /* 8136 */; import closure_3 from "_slicedToArray" /* 32 */; import closure_4 from "noop" /* 19 */; import { View } from "get ActivityIndicator" /* 17 */; import { ClearAfterOptions } from "StatusTypes" /* 9602 */; import jsxProd from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4380 */; require = arg1; ({ jsx: error, jsxs: closure_8 } = jsxProd); createCacheKey = { content: null, buttonWrapper: null }; createCacheKey = { paddingHorizontal: ThemesDefault.space.PX_16 }; createCacheKey[0] = createCacheKey; createCacheKey[1] = { marginTop: ThemesDefault.space.PX_24, paddingBottom: ThemesDefault.space.PX_16 }; let closure_9 = createCacheKey.createStyles(createCacheKey); let obj1 = { marginTop: ThemesDefault.space.PX_24, paddingBottom: ThemesDefault.space.PX_16 }; const result = require("set").fileFinishedImporting("modules/custom_status/native/ClearAfterOptionsActionSheet.tsx"); export default function ClearAfterOptionsActionSheet(arg0) { ({ initialValue, onChange: require } = arg0); closure_1 = undefined; const tmp = callback4(); const tmp2 = callback(React.useState(initialValue), 2); closure_1 = tmp2[0]; let obj = { contentStyles: tmp.content, header: null, children: null }; obj = { title: null }; const intl = getSystemLocale.intl; obj[0] = intl.string(getSystemLocale.t["5XnRQ+"]); obj[1] = callback2(RedesignBottomSheetTitleHeaderBase.BottomSheetTitleHeader, obj); obj = { onChange: tmp2[1], title: null, defaultValue: null, hasIcons: false, children: null }; const intl2 = getSystemLocale.intl; obj[1] = intl2.string(getSystemLocale.t.E45wvP); obj[2] = initialValue; obj[4] = ClearAfterOptions.map((value) => callback3(callback(8135).TableRadioRow, { value, label: callback2(9675)(value) }, value)); const items = [callback2(context.TableRadioGroup, obj), ]; obj1 = { style: tmp.buttonWrapper, children: null }; const obj2 = { onPress() { callback(callback2); callback2(closure_1_2[14]).hideActionSheet(); }, text: null }; const intl3 = getSystemLocale.intl; obj2[1] = intl3.string(getSystemLocale.t.TyCVIq); obj1[1] = callback2(Button.Button, obj2); items[1] = callback2(View, obj1); obj[2] = items; return callback3(Background.BottomSheet, obj); };