77 lines
4.6 KiB
TypeScript
77 lines
4.6 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] */
|
|
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
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_4 = importAll(31) /* metro dependency 31 */;
|
|
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
|
const env0_6 = (require(8522) /* metro dependency 8522: Constants */).ClearAfterOptions;
|
|
let value = require(33) /* metro dependency 33 */;
|
|
const env0_7 = value.jsx;
|
|
const env0_8 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object2 = {};
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object2.content = {paddingHorizontal: PX_16};
|
|
const object4 = {};
|
|
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object4.marginTop = PX_24;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object4.paddingBottom = PX_16;
|
|
object2.buttonWrapper = object4;
|
|
const env0_9 = Reflect.apply(createStyles, value, [object2]);
|
|
(require(2) /* metro dependency 2 */).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] = env0_3(env0_4.useState(initialValue), 2);
|
|
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
|
const bottomSheetProps = {contentStyles: styles.content};
|
|
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).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 = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).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 = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
const object = {onPress: onPress_81219};
|
|
string = intl.string;
|
|
const TyCVIq = (require(1244) /* metro dependency 1244: indexNative */).t.TyCVIq;
|
|
object.text = Reflect.apply(string, intl, [TyCVIq]);
|
|
return (
|
|
<BottomSheet {...bottomSheetProps}>
|
|
{tableRadioGroup}
|
|
<View style={styles.buttonWrapper}>
|
|
<Button {...object} />
|
|
</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 = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
|
return (
|
|
<TableRadioRow
|
|
value={a0}
|
|
label={(importDefault(10502) /* metro dependency 10502: 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__;
|
|
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
|
}
|
|
|