decord/source/modules/custom_status/native/ClearAfterOptionsActionSheet.tsx

63 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9674
// Function ID: 9675
2026-07-20 16:05:17 +00:00
// Name: ClearAfterOptionsActionSheet
2026-08-25 06:04:03 +00:00
// Dependencies: [32, 19, 17, 9602, 21, 4380, 712, 5503, 5502, 1236, 8136, 8135, 9675, 4815, 4347, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 9674 (ClearAfterOptionsActionSheet)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import Button from "Button" /* 4815 */;
import RedesignBottomSheetTitleHeaderBase from "RedesignBottomSheetTitleHeaderBase" /* 5502 */;
import Background from "Background" /* 5503 */;
import context from "context" /* 8136 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import { ClearAfterOptions } from "StatusTypes" /* 9602 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
({ jsx: error, jsxs: closure_8 } = jsxProd);
2026-07-29 08:29:29 +00:00
createCacheKey = { content: null, buttonWrapper: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { paddingHorizontal: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
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");
2026-07-20 16:05:17 +00:00
export default function ClearAfterOptionsActionSheet(arg0) {
2026-07-23 10:11:24 +00:00
({ initialValue, onChange: require } = arg0);
2026-08-24 06:08:38 +00:00
closure_1 = undefined;
const tmp = callback4();
2026-07-20 16:05:17 +00:00
const tmp2 = callback(React.useState(initialValue), 2);
2026-07-29 08:29:29 +00:00
closure_1 = tmp2[0];
let obj = { contentStyles: tmp.content, header: null, children: null };
obj = { title: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t["5XnRQ+"]);
obj[1] = callback2(RedesignBottomSheetTitleHeaderBase.BottomSheetTitleHeader, obj);
2026-07-29 08:29:29 +00:00
obj = { onChange: tmp2[1], title: null, defaultValue: null, hasIcons: false, children: null };
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
obj[1] = intl2.string(getSystemLocale.t.E45wvP);
2026-07-29 08:29:29 +00:00
obj[2] = initialValue;
2026-08-25 06:04:03 +00:00
obj[4] = ClearAfterOptions.map((value) => callback3(callback(8135).TableRadioRow, { value, label: callback2(9675)(value) }, value));
2026-08-24 06:08:38 +00:00
const items = [callback2(context.TableRadioGroup, obj), ];
obj1 = { style: tmp.buttonWrapper, children: null };
2026-07-20 16:05:17 +00:00
const obj2 = {
onPress() {
callback(callback2);
2026-08-24 06:08:38 +00:00
callback2(closure_1_2[14]).hideActionSheet();
2026-07-29 08:29:29 +00:00
},
text: null
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
obj2[1] = intl3.string(getSystemLocale.t.TyCVIq);
obj1[1] = callback2(Button.Button, obj2);
2026-07-20 16:05:17 +00:00
items[1] = callback2(View, obj1);
2026-07-29 08:29:29 +00:00
obj[2] = items;
2026-08-24 06:08:38 +00:00
return callback3(Background.BottomSheet, obj);
2026-07-20 16:05:17 +00:00
};