/* Metro module 8791; source: modules/people/native/ClearAllIncomingRequestsConfirmation.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 5080, 3856, 1244, 8783, 6618, 8792, 8196, 4573, 4578, 2] */
function _fun68726(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:6, offset: 0x01c5a19b, size: 726 bytes, params: 8, frame: 23
var object3;
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 */;
let value = require(27) /* metro dependency 27 */;
const env0_5 = value.View;
const env0_6 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.Fragment;
const env0_9 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {'display': 'flex', 'flexDirection': 'column', 'backgroundColor': null, 'height': '100%'};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object4.backgroundColor = BACKGROUND_BASE_LOW;
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.paddingTop = PX_24;
object3.root = object4;
object3.closeButton = {'marginRight': 8, 'alignSelf': 'flex-end'};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.content = {flexGrow: 1, padding: PX_16};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.container = {'display': 'flex', 'flexDirection': 'column', 'height': '100%', marginTop: PX_24};
const object6 = {'flexGrow': 0, 'flexShrink': 1};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object6.backgroundColor = BORDER_SUBTLE;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.paddingVertical = PX_24;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.paddingHorizontal = PX_16;
object3.footer = object6;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object9 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object9.marginTop = PX_16;
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object9.marginBottom = PX_4;
object3.headerText = object9;
const object10 = {};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object10.padding = PX_24;
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object10.backgroundColor = BACKGROUND_SURFACE_HIGH;
object3.body = object10;
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.noticeHeader = {marginBottom: PX_4};
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.buttonWrapper = {marginBottom: PX_4};
const env0_10 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/native/ClearAllIncomingRequestsConfirmation.tsx');
exports.default = ClearAllIncomingRequestsConfirmationModal;
}
function ClearAllIncomingRequestsConfirmationModal({incomingPendingRequestCount}) { // fn#68727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1199, offset: 0x01c5a471, size: 1039 bytes, params: 2, frame: 40
const styles = useStyles();
const binding = env0_4;
const [property, env0_0] = env0_3(binding.useState(false), 2);
const value6 = binding.useCallback(_fun68730, [binding.useCallback(_fun68728, []), binding.useCallback(_fun68729,
[])]);
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const touchableHitBox = ;
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let value = {intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eVjfAu)};
value = <>{value}{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.jaXsA3,
{incomingRequestCount: incomingPendingRequestCount})}>;
const items4 = [value];
const SafeAreaPaddingView2 = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const Eq9seb = (require(1244) /* metro dependency 1244: indexNative */).t.Eq9seb;
items4[1] = <>>;
return (
{touchableHitBox}
{items4}
);
}
function _fun68728() { // fn#68728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1350, offset: 0x01c5a880, size: 51 bytes, params: 1, frame: 12
env0_0(false);
const value = environment.__proto__;
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function _fun68729() { // fn#68729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1398, offset: 0x01c5a8b3, size: 99 bytes, params: 1, frame: 16
env0_0(false);
let value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
const presentFailedToast = value.presentFailedToast;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const R0RpRX = (require(1244) /* metro dependency 1244: indexNative */).t.R0RpRX;
Reflect.apply(presentFailedToast, value, [Reflect.apply(string, intl, [R0RpRX])]);
}
function _fun68730() { // fn#68730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1498, offset: 0x01c5a916, size: 80 bytes, params: 1, frame: 13
env0_0(true);
(importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */).clearPendingRelationships().then(env0_1).catch(env0_2);
}
function ClearAllIncomingRequestsConfirmationModalOnPress() { // fn#68731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8976:1796, owner: ClearAllIncomingRequestsConfirmationModal.onPress, offset: 0x01c5a966, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}