/* Metro module 13439; source: modules/parent_tools/native/FamilyCenterModalDecline.tsx; dependencies: [31, 27, 33, 4501, 697, 8171, 5080, 3856, 1244, 12624, 44, 6258, 6259, 13435, 8160, 4573, 2224, 13405, 10120, 6261, 4578, 5282, 10121, 2] */ import Module00044 from '../../../by-id/module-00044.js'; /* Metro dependency 44 */ import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */ import Module08160 from '../../../by-id/module-08160.js'; /* Metro dependency 8160 */ import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */ import FamilyCenterAvatarPair from './FamilyCenterAvatarPair.tsx'; /* Metro dependency 13435 */ 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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */ import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */ import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */ import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */ import * as ModalFooterNativeModule from '../../../design/components/Modal/native/ModalFooter.native.tsx'; /* Metro dependency 10120 */ import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */ import * as UseFamilyCenterActionsModule from '../hooks/useFamilyCenterActions.tsx'; /* Metro dependency 12624 */ function _fun102200(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:6, offset: 0x02231fc7, size: 418 bytes, params: 8, frame: 22 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = JsxRuntimeModule; const env0_5 = value.jsx; const env0_6 = 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.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16}; const object3 = {}; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object3.marginTop = PX_16; let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4; object3.marginBottom = PX_4; object.headerText = object3; const object4 = {}; const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object4.padding = PX_24; object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md; const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH; object4.backgroundColor = BACKGROUND_SURFACE_HIGH; object.body = object4; PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4; object.noticeHeader = {marginBottom: PX_4}; const env0_7 = Reflect.apply(createStyles, value, [object]); (FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalDecline.tsx'); exports.default = FamilyCenterModalDecline; function FamilyCenterModalDeclineScreen({otherUser}) { // fn#102201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:517, offset: 0x02232169, size: 1038 bytes, params: 2, frame: 37 const styles = useStyles(); const value2 = (UseIsInAdultAgeGroup)(); const {declineLinkRequest, isDeclineLoading} = (UseFamilyCenterActionsModule).useFamilyCenterActions({onSuccess: ReactModule.useCallback(_fun102202, []), onError: ReactModule.useCallback(_fun102203, [])}); const value6 = ReactModule.useCallback(function() { declineLinkRequest(otherUser.id); }, [declineLinkRequest, otherUser.id]); (Module00044)(!value2, 'FamilyCenterDeclineLinkModal should only be rendered for teens.'); const ModalScreen = (ModalScreenNativeModule).ModalScreen; const ModalContent = (ModalContentNativeModule).ModalContent; const items2 = [ ((Component) => )(FamilyCenterAvatarPair), ]; const Text = (TextModule).Text; const intl = (IndexNativeModule).intl; let string = intl.string; items2[1] = ( {Reflect.apply(string, intl, [(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).teIRCR])} ); items2[2] = ((Component) => )(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */); const view = ( {items2} ); const text = ( {intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).cXgKMD)} ); string = intl.string; const LcM8BS = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).LcM8BS; const modalContent = ( {view} {text} {Reflect.apply(string, intl, [LcM8BS])} ); const ModalFooter = (ModalFooterNativeModule).ModalFooter; const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup; const Button = (ButtonNativeModule).Button; return ( {modalContent}