/* Metro module 13394; source: modules/parent_tools/native/FamilyCenterModalQRCode.tsx; dependencies: [57, 31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 3856, 1244, 5080, 12624, 44, 4594, 683, 6258, 6259, 1305, 11785, 4573, 2224, 6766, 5278, 9181, 10120, 6261, 4578, 5282, 10121, 2] */ function _fun101968(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:6, offset: 0x02225af1, size: 563 bytes, params: 8, frame: 24 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; let value = require(5117) /* metro dependency 5117: FamilyCenterConstants */; const env0_6 = value.FamilyCenterAction; const env0_7 = value.PLACEHOLDER_QR_CODE_URL; const env0_8 = value.QR_CODE_AUTO_HIDE_TIMEOUT; const env0_9 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents; value = require(33) /* metro dependency 33 */; const env0_10 = value.jsx; const env0_11 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object2 = {}; const MESSAGE_MENTIONED_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MESSAGE_MENTIONED_BACKGROUND_DEFAULT; object2.noticeContainer = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center', 'backgroundColor': null, 'padding': 12, 'marginBottom': 24, 'marginHorizontal': -16, backgroundColor: MESSAGE_MENTIONED_BACKGROUND_DEFAULT}; const object4 = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'backgroundColor': null, 'marginRight': 8, 'width': 18, 'height': 18}; let STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING; object4.backgroundColor = STATUS_WARNING; object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; object2.noticeIconCircle = object4; const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; object2.noticeIcon = {'width': 11, 'height': 11, tintColor: BACKGROUND_BASE_LOW}; STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING; object2.noticeText = {color: STATUS_WARNING}; object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'textAlign': 'center', 'marginBottom': 16}; object2.headerText = {marginBottom: 4}; object2.description = {textAlign: 'center'}; object2.reminder = {'marginTop': 16, 'textAlign': 'center'}; object2.qrCode = {'display': 'flex', 'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center'}; const env0_12 = Reflect.apply(createStyles, value, [object2]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalQRCode.tsx'); exports.default = FamilyCenterModalQRCode; } function FamilyCenterModalQRCodeScreen() { // fn#101969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1124, offset: 0x02225d24, size: 1502 bytes, params: 1, frame: 40 const styles = useStyles(); const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)(); const [property, env0_1] = env0_3(env0_4.useState(false), 2); const value5 = (require(8170) /* metro dependency 8170: useUserLinks */).usePendingRequestCount(); const value6 = env0_4.useRef(value5); const value8 = (require(12624) /* metro dependency 12624: useFamilyCenterActions */).useFamilyCenterActions({onError: env0_4.useCallback(_fun101970, [])}); var env0_4 = value8.getLinkCode; const isGetLinkCodeLoading = value8.isGetLinkCodeLoading; const value9 = (require(8170) /* metro dependency 8170: useUserLinks */).useUserQRLinkUrl(); (importDefault(44) /* metro dependency 44 */)(!value2, 'FamilyCenterQRCodeModal should only be rendered for teens.'); (importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() { getLinkCode(); }); env0_4.useEffect(_fun101972, [value6, value5]); const value10 = env0_4.useCallback(_fun101973, [property]); const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen; const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent; const Icon = (require(1305) /* metro dependency 1305: native */).Icon; const view = ; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let string = intl.string; const items2 = [{view}{Reflect.apply(string, intl, [(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).iHYMAz])}]; string = intl.string; const AVTZaN = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).AVTZaN; const text = {Reflect.apply(string, intl, [AVTZaN])}; const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround; const format = intl.format; const LyyCsE = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).LyyCsE; items2[1] = {text}{Reflect.apply(format, intl, [LyyCsE, {link: 'https://support.discord.com/hc/articles/14155060633623'}])}; const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity; const QRCodeWithOverlay = (require(9181) /* metro dependency 9181: QRCode */).QRCodeWithOverlay; const r11 = property ? isGetLinkCodeLoading ? PLACEHOLDER_QR_CODE_URL : value9 ?? PLACEHOLDER_QR_CODE_URL : PLACEHOLDER_QR_CODE_URL; const QRCodeOverlaySizes = (require(9181) /* metro dependency 9181: QRCode */).QRCodeOverlaySizes; const SIZE_60 = QRCodeOverlaySizes.SIZE_60; items2[2] = ; items2[3] = {intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).goDyoe)}; const modalContent = {items2}; const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter; const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup; const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button; string = intl.string; const defaultImport3 = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */; return ( {modalContent}