99 lines
6.1 KiB
TypeScript
99 lines
6.1 KiB
TypeScript
/* Metro module 10501; source: modules/custom_status/native/ClearAfterOptionsActionSheet.tsx; dependencies: [57, 31, 27, 8522, 33, 4501, 697, 6275, 6758, 1244, 7988, 7987, 10502, 4578, 4080, 2] */
|
|
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
|
|
import FormatClearAfterOption from '../utils/formatClearAfterOption.tsx'; /* Metro dependency 10502 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
|
|
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
|
|
import * as BottomSheetTitleHeaderNativeModule from '../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
|
|
import * as TableRadioRowNativeModule from '../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
|
|
import * as TableRadioGroupNativeModule from '../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
|
|
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 8522 */
|
|
|
|
function _fun81216(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10687:6, offset: 0x01e9e928, size: 325 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = JsxRuntimeModule;
|
|
const env0_7 = value.jsx;
|
|
const env0_8 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object = {};
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object.content = {paddingHorizontal: PX_16};
|
|
const object3 = {};
|
|
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object3.marginTop = PX_24;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object3.paddingBottom = PX_16;
|
|
object.buttonWrapper = object3;
|
|
const env0_9 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/custom_status/native/ClearAfterOptionsActionSheet.tsx');
|
|
exports.default = ClearAfterOptionsActionSheet;
|
|
function ClearAfterOptionsActionSheet({initialValue, onChange}) { // fn#81217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10687:446, offset: 0x01e9ea6d, size: 459 bytes, params: 2, frame: 27
|
|
const styles = useStyles();
|
|
const [env0_1, property] = Module00057(ReactModule.useState(initialValue), 2);
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
const bottomSheetProps = {contentStyles: styles.content};
|
|
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
bottomSheetProps.header = (
|
|
<BottomSheetTitleHeader
|
|
title={Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['5XnRQ+']])}
|
|
/>
|
|
);
|
|
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
|
|
string = intl.string;
|
|
const E45wvP = (require(1244) /* metro dependency 1244: indexNative */).t.E45wvP;
|
|
const tableRadioGroup = (
|
|
<TableRadioGroup
|
|
onChange={property}
|
|
title={Reflect.apply(string, intl, [E45wvP])}
|
|
defaultValue={initialValue}
|
|
hasIcons={false}
|
|
>
|
|
{ClearAfterOptions.map(_fun81218)}
|
|
</TableRadioGroup>
|
|
);
|
|
const Button = (ButtonNativeModule).Button;
|
|
const object2 = {onPress: onPress_81219};
|
|
string = intl.string;
|
|
const TyCVIq = (require(1244) /* metro dependency 1244: indexNative */).t.TyCVIq;
|
|
object2.text = Reflect.apply(string, intl, [TyCVIq]);
|
|
return (
|
|
<BottomSheet {...bottomSheetProps}>
|
|
{tableRadioGroup}
|
|
<View style={styles.buttonWrapper}>
|
|
<Button {...object2} />
|
|
</View>
|
|
</BottomSheet>
|
|
);
|
|
function _fun81218(a0) { // fn#81218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10687:842, offset: 0x01e9ec38, size: 78 bytes, params: 2, frame: 18
|
|
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
|
|
return (
|
|
<TableRadioRow
|
|
value={a0}
|
|
label={(FormatClearAfterOption)(a0)}
|
|
key={a0}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function ClearAfterOptionsActionSheetOnPress() { // fn#81219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10687:968, owner: ClearAfterOptionsActionSheet.onPress, offset: 0x01e9ec86, size: 53 bytes, params: 1, frame: 12
|
|
onChange(env0_1);
|
|
const value = environment.__proto__;
|
|
(ActionSheetActionCreators).hideActionSheet();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun81216, 10501, [57, 31, 27, 8522, 33, 4501, 697, 6275, 6758, 1244, 7988, 7987, 10502, 4578, 4080,
|
|
2]) /* metro module 10501, dependencies: [57, 31, 27, 8522, 33, 4501, 697, 6275, 6758, 1244, 7988, 7987, 10502, 4578, 4080, 2] */;
|