decord/source/modules/custom_status/native/ClearAfterOptionsActionSheet.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

64 lines
2.8 KiB
TypeScript

// Module ID: 11347
// Function ID: 11348
// Name: ClearAfterOptionsActionSheet
// Dependencies: [32, 19, 17, 11268, 21, 4638, 576, 7260, 7259, 1115, 5771, 5774, 11348, 5060, 4605, 2]
// Exports: default
// Module 11347 (ClearAfterOptionsActionSheet)
import nativeDefault from "native" /* 576 */;
import util from "util" /* 1115 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4605 */;
import components_Button_Button from "components/Button/Button" /* 5060 */;
import TableRadioGroup from "TableRadioGroup" /* 5771 */;
import TableRadioRow from "TableRadioRow" /* 5774 */;
import BottomSheetTitleHeader from "BottomSheetTitleHeader" /* 7259 */;
import Sheet_BottomSheet from "Sheet/BottomSheet" /* 7260 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
const require = globalThis.__r;
require = fn;
const View = fn(17).View;
const ClearAfterOptions = fn(11268).ClearAfterOptions;
const jsxProd = fn(21);
({ jsx: closure_7, jsxs: closure_8 } = jsxProd);
const createStyles = fn(4638);
let obj2 = { content: { paddingHorizontal: nativeDefault.space.PX_16 }, buttonWrapper: null };
let obj3 = { paddingHorizontal: nativeDefault.space.PX_16 };
obj2.buttonWrapper = { marginTop: nativeDefault.space.PX_24, paddingBottom: nativeDefault.space.PX_16 };
let closure_9 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/custom_status/native/ClearAfterOptionsActionSheet.tsx");
export default function ClearAfterOptionsActionSheet(arg0) {
({ initialValue, onChange: require } = arg0);
const tmp = closure_9();
const tmp2 = _slicedToArray(noop.useState(initialValue), 2);
closure_1 = tmp2[0];
const obj = { contentStyles: tmp.content, header: null, children: null };
const obj2 = { title: null };
const intl = util.intl;
obj2.title = intl.string(util.t["5XnRQ+"]);
obj.header = closure_7(BottomSheetTitleHeader.BottomSheetTitleHeader, obj2);
const obj3 = { onChange: tmp2[1], title: null, defaultValue: null, hasIcons: false, children: null };
const intl2 = util.intl;
obj3.title = intl2.string(util.t.E45wvP);
obj3.defaultValue = initialValue;
obj3.children = ClearAfterOptions.map((value) => closure_1_7(TableRadioRow.TableRadioRow, { value, label: closure_1(11348)(value) }, value));
const items = [closure_7(TableRadioGroup.TableRadioGroup, obj3), ];
const obj4 = { style: tmp.buttonWrapper, children: null };
const obj5 = {
onPress() {
require(closure_1);
ActionSheetActionCreatorsDefault.hideActionSheet();
},
text: null
};
const intl3 = util.intl;
obj5.text = intl3.string(util.t.TyCVIq);
obj4.children = closure_7(components_Button_Button.Button, obj5);
items[1] = closure_7(View, obj4);
obj.children = items;
return closure_8(Sheet_BottomSheet.BottomSheet, obj);
};